.shopping-page{height:100vh;height:100dvh;background:linear-gradient(135deg,var(--theme-accent-color,#007bff) 0,var(--theme-accent-hover,#0056b3) 100%);display:flex;flex-direction:column;overflow:hidden;color:var(--theme-text-primary,#333)}.shopping-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem;background:var(--theme-header-bg,rgba(255,255,255,.95));backdrop-filter:blur(10px);box-shadow:0 2px 10px var(--theme-shadow-light,rgba(0,0,0,.1));z-index:100;border-bottom:1px solid var(--theme-border-light,rgba(0,0,0,.1))}.shopping-header h1{margin:0;font-size:1.25rem;font-weight:600;color:var(--theme-text-primary,#333)}.back-btn{background:none;border:none;font-size:1.5rem;color:var(--theme-text-secondary,#666);cursor:pointer;padding:.5rem;border-radius:50%;transition:all .3s ease}.back-btn:hover{background:var(--theme-bg-secondary,rgba(0,0,0,.1));color:var(--theme-text-primary,#333)}.header-icon-btn{position:relative;background:none;border:none;cursor:pointer;padding:.5rem;border-radius:50%;transition:all .3s ease;color:var(--theme-text-secondary,#666);display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem}.header-icon-btn:hover{background:var(--theme-bg-secondary,rgba(0,0,0,.1));color:var(--theme-text-primary,#333)}.header-icon-btn svg{width:20px;height:20px;flex-shrink:0}.header-text-btn{position:relative;background:var(--theme-accent-color,#007bff);border:none;font-size:.75rem;cursor:pointer;padding:.375rem .75rem;border-radius:16px;transition:all .3s ease;color:white;display:flex;align-items:center;justify-content:center;font-weight:500;white-space:nowrap}.header-text-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,123,255,.3)}.cart-btn{position:relative}.store-menu-dropdown{position:absolute;top:100%;right:0;margin-top:.5rem;background:var(--theme-bg-primary,white);border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.15),0 0 0 1px var(--theme-border-light,rgba(0,0,0,.1));padding:.5rem;min-width:160px;z-index:1000;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--theme-border-light,rgba(0,0,0,.1))}.store-menu-item{width:100%;display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:none;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;color:var(--theme-text-primary,#333);font-size:.9rem;text-align:left}.store-menu-item:hover{background:var(--theme-bg-secondary,rgba(0,0,0,.05))}.store-menu-item svg{width:18px;height:18px;flex-shrink:0}.store-menu-item span{flex:1}.cart-badge{position:absolute;top:0;right:0;background:var(--theme-accent-color,#ff4757);color:white;font-size:.7rem;padding:.2rem .4rem;border-radius:10px;min-width:18px;text-align:center}.shopping-search-section{padding:.3rem 1rem;background:var(--theme-bg-secondary,rgba(255,255,255,.9));backdrop-filter:blur(10px);border-bottom:1px solid var(--theme-border-light,rgba(0,0,0,.1));display:flex;justify-content:center;align-items:center;gap:.5rem}.shopping-search-box{gap:.5rem;max-width:600px;flex:1}.shopping-search-box,.sort-selector{display:flex;align-items:center}.sort-select{padding:.375rem .75rem;background:var(--theme-bg-primary,white);border:1px solid var(--theme-border-color,#e1e5e9);border-radius:16px;font-size:.75rem;color:var(--theme-text-primary,#333);cursor:pointer;transition:all .3s ease;outline:none;font-weight:500;min-width:100px}.sort-select:hover{background:var(--theme-bg-secondary,rgba(0,0,0,.02))}.sort-select:focus,.sort-select:hover{border-color:var(--theme-accent-color,#007bff)}.sort-select:focus{box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent-color,#007bff) 20%,transparent)}.request-product-btn{padding:.375rem .75rem;background:var(--theme-accent-color,#007bff);border:none;font-size:.75rem;cursor:pointer;border-radius:16px;transition:all .3s ease;color:white;display:flex;align-items:center;justify-content:center;font-weight:500;white-space:nowrap;flex-shrink:0}.request-product-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,123,255,.3)}.leaderboard-btn{padding:.375rem .75rem;border-radius:16px;border:1px solid var(--theme-border-color,#e1e5e9);background:var(--theme-bg-primary,#ffffff);color:var(--theme-accent-color,#007bff);font-size:.75rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;font-weight:500;white-space:nowrap;flex-shrink:0}.leaderboard-btn:hover{background:color-mix(in srgb,var(--theme-accent-color,#007bff) 8%,transparent);border-color:color-mix(in srgb,var(--theme-accent-color,#007bff) 35%,var(--theme-border-color,#e1e5e9));transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,123,255,.18)}.shopping-search-box input{flex:1;padding:.5rem 1rem;border:2px solid var(--theme-border-color,#e1e5e9);border-radius:20px;font-size:.95rem;outline:none;transition:border-color .3s ease;background:var(--theme-bg-primary,white);color:var(--theme-text-primary,#333);min-width:0}.shopping-search-box input:focus{border-color:var(--theme-accent-color,#007bff)}.shopping-search-box input::placeholder{color:var(--theme-text-tertiary,#999)}.products-container{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0) + 2rem);background:var(--theme-bg-primary,transparent)}.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:var(--theme-text-primary,white)}.loading-spinner{width:40px;height:40px;border-top:4px solid var(--theme-border-light,rgba(255,255,255,.3));border:4px solid var(--theme-border-light,rgba(255,255,255,.3));border-top-color:var(--theme-accent-color,#007bff);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.no-products{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:var(--theme-text-primary,white);text-align:center}.no-products-icon{font-size:3rem;margin-bottom:1rem;opacity:.8}.products-grid,.stores-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;padding-bottom:2rem}.load-more-container{padding:2rem 1rem;margin-top:1rem}.load-more-btn,.load-more-container{display:flex;justify-content:center;align-items:center}.load-more-btn{gap:.5rem;padding:.75rem 2rem;background:var(--theme-accent-color,#007bff);color:white;border:none;border-radius:24px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px rgba(0,123,255,.3)}.load-more-btn:hover:not(:disabled){background:var(--theme-accent-hover,#0056b3);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,123,255,.4)}.load-more-btn:disabled{opacity:.6;cursor:not-allowed}.loading-more{display:flex;align-items:center;gap:.75rem;color:var(--theme-text-secondary,#666);font-size:.9rem}.loading-spinner-small{width:20px;height:20px;border:2px solid var(--theme-border-light,rgba(255,255,255,.3));border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.load-more-tip,.no-more-tip{color:var(--theme-text-tertiary,#999);font-size:.875rem;text-align:center}.no-more-tip{opacity:.7}.store-card{background:var(--theme-bg-primary,white);border-radius:16px;padding:1.5rem;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px var(--theme-shadow-light,rgba(0,0,0,.1));border:1px solid var(--theme-border-light,rgba(0,0,0,.1));display:flex;flex-direction:column;gap:1rem;min-height:120px;justify-content:center}.store-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px var(--theme-shadow-medium,rgba(0,0,0,.15));border-color:var(--theme-accent-color,#007bff)}.store-name{font-size:1.25rem;font-weight:600;color:var(--theme-text-primary,#333);margin:0;text-align:center}.store-info{display:flex;flex-direction:column;gap:.75rem;align-items:center}.store-product-count{display:flex;align-items:baseline;justify-content:center;gap:.5rem;color:var(--theme-text-secondary,#666)}.count-number{font-size:1.5rem;font-weight:700;color:var(--theme-accent-color,#007bff)}.count-label{font-size:.9rem}.store-rating{justify-content:center;gap:.5rem}.store-rating,.store-stars{display:flex;align-items:center}.store-stars{gap:.1rem}.store-stars .star{font-size:.9rem;line-height:1;color:var(--theme-border-light,#ddd)}.store-stars .star.full{color:#ffc107}.store-stars .star.half{color:#ffc107;opacity:.5}.store-stars .star.empty{color:var(--theme-border-light,#ddd)}.store-rating-value{font-size:.875rem;font-weight:600;color:var(--theme-text-primary,#333)}.store-no-rating{font-size:.875rem;color:var(--theme-text-tertiary,#999)}@media (max-width:768px){.shopping-header{padding:.375rem}.shopping-header h1{font-size:1.1rem}.products-grid,.stores-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}.store-card{padding:1.25rem;min-height:100px}.store-name{font-size:1.1rem}.count-number{font-size:1.3rem}.shopping-search-section{padding:.5rem .8rem;flex-wrap:wrap;gap:.4rem}.shopping-search-box{gap:.4rem;min-width:0;flex:1 1 auto}.shopping-search-box input{padding:.4rem .8rem;font-size:.9rem}.sort-selector{flex-shrink:0}.sort-select{min-width:90px}.leaderboard-btn,.request-product-btn,.sort-select{font-size:.7rem;padding:.35rem .6rem}}@media (max-width:480px){.products-grid,.stores-grid{grid-template-columns:1fr}.store-card{padding:1rem;min-height:90px}.store-name{font-size:1rem}.count-number{font-size:1.2rem}.shopping-search-section{padding:.4rem .6rem;flex-wrap:wrap;gap:.3rem}.shopping-search-box{gap:.3rem;min-width:0;flex:1 1 100%}.shopping-search-box input{padding:.35rem .6rem;font-size:.85rem;border-radius:16px}.sort-selector{flex:1 1 auto;min-width:0}.sort-select{width:100%;min-width:80px;font-size:.7rem;padding:.35rem .5rem}.leaderboard-btn,.request-product-btn{flex:1 1 auto;font-size:.7rem;padding:.35rem .5rem;white-space:nowrap}}@media (max-width:400px){.shopping-search-section{padding:.3rem .5rem}.shopping-search-box{gap:.25rem}.shopping-search-box input{padding:.3rem .5rem;font-size:.8rem;border-radius:14px}.shopping-header{padding:.375rem}.shopping-header h1{font-size:1.1rem}}.user-info-display{display:flex;align-items:center;gap:12px;padding:12px;background-color:#f8f9fa;border-radius:8px;border:1px solid #e0e0e0}.user-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #e0e0e0}.user-details{flex:1}.username{font-size:16px;font-weight:600;color:#1f1f1f;margin-bottom:4px}.privacy-btn{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:16px;padding:4px 12px;font-size:12px;cursor:pointer;transition:all .2s ease}.privacy-btn:hover{background:#e9ecef}.privacy-btn.public{color:#007bff;border-color:#007bff}.privacy-btn.private{color:#6c757d;border-color:#6c757d}.images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px;margin-top:8px}.image-container{position:relative;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:#f8f9fa}.preview-image{width:100%;height:100%;object-fit:cover}.remove-image-btn{position:absolute;top:4px;right:4px;width:20px;height:20px;border:none;background:rgba(0,0,0,.7);color:white;border-radius:50%;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.tag-input-container{display:flex;gap:8px;margin-bottom:8px}.tag-input-container input{flex:1;margin:0}.add-tag-btn{background:#007bff;color:white;border:none;border-radius:8px;padding:12px 16px;font-size:14px;cursor:pointer;transition:background-color .2s ease;white-space:nowrap}.add-tag-btn:hover:not(:disabled){background:#0056b3}.add-tag-btn:disabled{background:#6c757d;cursor:not-allowed}.tags-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.tag-item{gap:4px;background:rgba(0,123,255,.1);color:#007bff;padding:4px 8px;border-radius:12px}.remove-tag-btn,.tag-item{display:flex;align-items:center;font-size:12px}.remove-tag-btn{background:none;border:none;color:inherit;cursor:pointer;padding:0;width:16px;height:16px;justify-content:center;border-radius:50%}.remove-tag-btn:hover{background:rgba(0,123,255,.2)}.action-buttons{display:flex;gap:8px;margin-top:8px}.action-btn{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:8px;padding:12px;color:#6c757d}.action-btn:hover:not(:disabled){background:#e9ecef;color:#1f1f1f}.action-btn:disabled{opacity:.5;cursor:not-allowed}@media (max-width:768px){.modal-overlay{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.api-settings-modal{width:95%;max-height:95vh}.modal-body,.modal-footer,.modal-header{padding:16px}.user-avatar{width:36px;height:36px}.username{font-size:15px}.images-grid{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:6px}.action-buttons{flex-direction:row;gap:6px;flex-wrap:wrap}.action-btn{flex:1;min-width:0;font-size:13px;padding:10px 8px}}@media (max-width:480px){.modal-overlay{padding:0;align-items:stretch}.api-settings-modal{width:100%;height:100vh;max-height:100vh;border-radius:0;box-shadow:none;height:100dvh;max-height:100dvh}.modal-header{padding:max(12px,env(safe-area-inset-top)) 12px 12px}.modal-body{max-height:calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.modal-body,.modal-footer{padding:12px 12px calc(12px + env(safe-area-inset-bottom))}.user-avatar{width:32px;height:32px}.username{font-size:14px}.images-grid{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:4px}.action-btn{flex:none;width:auto;min-width:120px;text-align:center}}.theme-dark .user-info-display{background-color:#2a2a2a;border-color:#404040}.theme-dark .user-avatar{border-color:#404040}.theme-dark .username{color:#ffffff}.theme-dark .privacy-btn{background:#2a2a2a;border-color:#404040}.theme-dark .privacy-btn:hover{background:#404040}.theme-dark .image-container{background:#2a2a2a}.theme-dark .action-btn{background:#2a2a2a;border-color:#404040}.theme-dark .action-btn:hover:not(:disabled){background:#404040}@media (prefers-reduced-motion:reduce){.action-btn,.add-tag-btn,.cancel-btn,.close-btn,.privacy-btn,.save-btn{transition:none}}@media (prefers-contrast:high){.api-settings-modal{border:2px solid #000000}.form-group input,.form-group select,.form-group textarea,.modal-footer,.modal-header,.user-info-display{border-width:2px}.user-avatar{border-width:3px}}.action-btn:focus,.add-tag-btn:focus,.cancel-btn:focus,.close-btn:focus,.form-group input:focus,.form-group select:focus,.form-group textarea:focus,.privacy-btn:focus,.remove-image-btn:focus,.remove-tag-btn:focus,.save-btn:focus{outline:2px solid #007bff;outline-offset:2px}.action-btn:focus:not(:focus-visible),.add-tag-btn:focus:not(:focus-visible),.cancel-btn:focus:not(:focus-visible),.close-btn:focus:not(:focus-visible),.form-group input:focus:not(:focus-visible),.form-group select:focus:not(:focus-visible),.form-group textarea:focus:not(:focus-visible),.privacy-btn:focus:not(:focus-visible),.remove-image-btn:focus:not(:focus-visible),.remove-tag-btn:focus:not(:focus-visible),.save-btn:focus:not(:focus-visible){outline:none}.post-images{display:grid;gap:4px;border-radius:8px;overflow:hidden;margin-bottom:12px}.post-images-single{grid-template-columns:1fr}.post-images-single .post-image-container{aspect-ratio:16/9}.post-images-double{grid-template-columns:1fr 1fr}.post-images-double .post-image-container{aspect-ratio:1/1}.post-images-triple{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.post-images-triple .post-image-container:first-child{grid-column:1/-1;aspect-ratio:16/9}.post-images-triple .post-image-container:not(:first-child){aspect-ratio:1/1}.post-images-quad{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.post-images-quad .post-image-container{aspect-ratio:1/1}.post-images-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.post-images-grid .post-image-container{aspect-ratio:1/1}.post-image-container{position:relative;cursor:pointer;overflow:hidden;background:var(--theme-bg-secondary,#f8f9fa);transition:transform .2s ease}.post-image-container:hover{transform:scale(1.02)}.post-image{width:100%;height:100%;object-fit:cover;display:block}.image-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease}.post-image-container:hover .image-overlay{opacity:1}.image-count{color:white;font-size:12px;font-weight:600;background:rgba(0,0,0,.7);padding:4px 8px;border-radius:12px}.image-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.9);z-index:10000;animation:fadeIn .2s ease-out}.image-modal,.image-modal-content{display:flex;align-items:center;justify-content:center}.image-modal-content{position:relative;max-width:90vw;max-height:90vh}.modal-image{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}.modal-close-btn{position:absolute;top:-40px;right:0;width:32px;height:32px;border:none;background:rgba(255,255,255,.2);color:white;border-radius:50%;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease}.modal-close-btn:hover{background:rgba(255,255,255,.3)}.modal-nav-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border:none;background:rgba(255,255,255,.2);color:white;border-radius:50%;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease}.modal-nav-btn:hover{background:rgba(255,255,255,.3)}.modal-prev-btn{left:-50px}.modal-next-btn{right:-50px}.modal-indicators{position:absolute;bottom:-30px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.modal-indicator{width:8px;height:8px;border:none;border-radius:50%;background:rgba(255,255,255,.3);cursor:pointer;transition:background-color .2s ease}.modal-indicator.active{background:white}.modal-indicator:hover{background:rgba(255,255,255,.6)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@media (max-width:768px){.post-images{gap:2px}.modal-nav-btn{width:36px;height:36px;font-size:20px}.modal-prev-btn{left:-40px}.modal-next-btn{right:-40px}}@media (max-width:480px){.post-images-grid{grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}.modal-nav-btn{width:32px;height:32px;font-size:18px}.modal-prev-btn{left:-30px}.modal-next-btn{right:-30px}.modal-close-btn{top:-30px;width:28px;height:28px;font-size:18px}}.theme-dark .post-image-container{background:var(--theme-bg-secondary,#2a2a2a)}@media (prefers-reduced-motion:reduce){.image-overlay,.modal-close-btn,.modal-indicator,.modal-nav-btn,.post-image-container{transition:none!important}.post-image-container:hover{transform:none!important}.image-modal{animation:none!important}}@media (prefers-contrast:high){.post-image-container{border:1px solid var(--theme-border-color,#000000)}.modal-close-btn,.modal-nav-btn{border:1px solid white}}.modal-close-btn:focus,.modal-indicator:focus,.modal-nav-btn:focus,.post-image-container:focus{outline:2px solid var(--theme-accent-color,#007bff);outline-offset:2px}.modal-close-btn:focus:not(:focus-visible),.modal-indicator:focus:not(:focus-visible),.modal-nav-btn:focus:not(:focus-visible),.post-image-container:focus:not(:focus-visible){outline:none}.post-actions{display:flex;gap:8px;padding-top:12px;border-top:1px solid var(--theme-border-light,#e9ecef)}.action-btn{display:flex;align-items:center;gap:6px;padding:8px 12px;border:none;border-radius:20px;background:transparent;color:var(--theme-text-secondary,#6c757d);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;flex:1;justify-content:center}.action-btn:hover{background:var(--theme-bg-secondary,#f8f9fa);color:var(--theme-text-primary,#1f1f1f);transform:translateY(-1px)}.action-btn:active{transform:translateY(0)}.action-btn svg{transition:transform .2s ease}.action-btn:hover svg{transform:scale(1.1)}.like-btn.liked{color:#e74c3c}.like-btn.liked:hover{background:rgba(231,76,60,.1);color:#c0392b}.like-btn.liked svg{animation:heartBeat .3s ease-in-out}@keyframes heartBeat{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}.comment-btn.active{color:var(--theme-accent-color,#007bff);background:var(--theme-accent-light,rgba(0,123,255,.1))}.comment-btn.active:hover{background:var(--theme-accent-lighter,rgba(0,123,255,.2))}.share-btn:hover{color:#27ae60;background:rgba(39,174,96,.1)}@media (max-width:768px){.post-actions{gap:6px;padding-top:10px}.action-btn{padding:6px 10px;font-size:13px;gap:4px}.action-btn svg{width:18px;height:18px}}@media (max-width:480px){.post-actions{gap:4px;padding-top:8px}.action-btn{padding:5px 8px;font-size:12px;gap:3px}.action-btn svg{width:16px;height:16px}.action-btn span{display:none}.action-btn{flex:none;width:40px;height:40px;border-radius:50%;justify-content:center}}.theme-dark .post-actions{border-top-color:var(--theme-border-color,#404040)}.theme-dark .action-btn:hover{background:var(--theme-bg-secondary,#2a2a2a);color:var(--theme-text-primary,#ffffff)}.theme-dark .comment-btn.active{background:var(--theme-accent-light,rgba(0,123,255,.2))}.theme-dark .share-btn:hover{background:rgba(39,174,96,.2)}.action-btn{transition:background-color .3s ease-in-out,color .3s ease-in-out,transform .2s ease-in-out}.action-btn svg{transition:transform .2s ease-in-out,fill .3s ease-in-out}@media (prefers-reduced-motion:reduce){.action-btn,.action-btn svg{transition:none!important}.action-btn:hover,.action-btn:hover svg{transform:none!important}.like-btn.liked svg{animation:none!important}}@media (prefers-contrast:high){.post-actions{border-top-width:2px}.action-btn{border:1px solid var(--theme-border-color,#000000)}.action-btn:hover{border-color:var(--theme-accent-color,#0000ff)}}.action-btn:focus{outline:2px solid var(--theme-accent-color,#007bff);outline-offset:2px}.action-btn:focus:not(:focus-visible){outline:none}@media (hover:none) and (pointer:coarse){.action-btn:hover,.action-btn:hover svg{transform:none}.action-btn:active{background:var(--theme-bg-tertiary,#e9ecef);transform:scale(.95)}.theme-dark .action-btn:active{background:var(--theme-bg-tertiary,#404040)}}.post-comments{margin-top:12px;border-top:1px solid var(--theme-border-light,#e9ecef);background:rgba(248,249,250,.5);backdrop-filter:blur(10px);border-radius:8px;padding:12px}.comments-empty{text-align:center;padding:20px;color:var(--theme-text-tertiary,#adb5bd);font-size:14px}.comments-list{display:flex;flex-direction:column;gap:12px}.comment-item{display:flex;gap:8px;padding:8px 0;position:relative}.comment-item.ai-generated{background:var(--theme-accent-light,rgba(0,123,255,.05));border-radius:8px;padding:8px;margin:0 -8px}.comment-item.new-comment{position:relative;background:rgba(40,167,69,.05);border-left:3px solid #28a745;border-radius:8px;padding:8px;margin:0 -8px}.new-comment-indicator{position:absolute;top:4px;right:4px;z-index:10}.new-comment-indicator .new-badge{background:linear-gradient(135deg,#28a745,#20c997);color:white;font-size:8px;font-weight:600;padding:1px 4px;border-radius:6px;box-shadow:0 1px 3px rgba(40,167,69,.3);animation:pulse 2s infinite}.comment-avatar{position:relative;flex-shrink:0}.comment-avatar-img{width:32px;height:32px;border-radius:50%;object-fit:cover;border:1px solid var(--theme-border-light,#e9ecef)}.comment-content{flex:1;min-width:0}.comment-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.comment-author{font-size:13px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.comment-time{font-size:11px;color:var(--theme-text-tertiary,#adb5bd)}.comment-text{font-size:14px;line-height:1.4;color:var(--theme-text-primary,#1f1f1f);word-wrap:break-word;margin-bottom:4px}.comment-text .mention{color:var(--theme-accent-color,#007bff);font-weight:500;background-color:rgba(0,123,255,.1);padding:1px 3px;border-radius:3px;cursor:pointer;transition:all .2s ease}.comment-text .mention:hover{background-color:rgba(0,123,255,.2);transform:translateY(-1px)}.comment-actions{display:flex;align-items:center;gap:12px;margin-top:6px}.comment-likes{font-size:11px;color:var(--theme-text-tertiary,#adb5bd);display:flex;align-items:center;gap:2px}.reply-btn{background:none;border:none;color:var(--theme-accent-color,#007bff);font-size:12px;cursor:pointer;padding:2px 6px;border-radius:4px;transition:all .2s ease}.reply-btn:hover{background-color:var(--theme-accent-light,rgba(0,123,255,.1))}.delete-btn{background:none;border:none;color:var(--theme-danger-color,#dc3545);font-size:14px;cursor:pointer;padding:2px 6px;border-radius:4px;transition:all .2s ease;opacity:.7}.delete-btn:hover{background-color:rgba(220,53,69,.1);opacity:1}@media (max-width:768px){.post-comments{margin-top:10px;padding-top:10px}.comments-list{gap:10px}.comment-item{gap:6px;padding:6px 0}.comment-item.ai-generated{padding:6px;margin:0 -6px}.comment-avatar-img{width:28px;height:28px}.comment-author{font-size:12px}.comment-text{font-size:13px}.comment-time{font-size:10px}}@media (max-width:480px){.post-comments{margin-top:8px;padding-top:8px}.comments-list{gap:8px}.comment-item{gap:4px;padding:4px 0}.comment-item.ai-generated{padding:4px;margin:0 -4px}.comment-avatar-img{width:24px;height:24px}.comment-author{font-size:11px}.comment-text{font-size:12px}.comment-time{font-size:9px}.comment-likes{font-size:10px}}.theme-dark .post-comments{background:rgba(45,45,45,.5);backdrop-filter:blur(10px);border-top-color:var(--theme-border-color,#404040)}.theme-dark .comment-avatar-img{border-color:var(--theme-border-color,#404040)}.theme-dark .comment-item.ai-generated{background:var(--theme-accent-light,rgba(0,123,255,.1))}.comment-avatar-img,.comment-item,.post-comments{transition:background-color .3s ease-in-out,border-color .3s ease-in-out}@media (prefers-reduced-motion:reduce){.comment-avatar-img,.comment-item,.post-comments{transition:none!important}}@media (prefers-contrast:high){.post-comments{border-top-width:2px}.comment-avatar-img{border-width:2px}}.comment-item:focus-within{outline:2px solid var(--theme-accent-color,#007bff);outline-offset:2px;border-radius:8px}.comment-item:focus-within:not(:focus-visible){outline:none}.comments-more{display:flex;justify-content:center;padding:12px 0 8px;border-top:1px solid var(--theme-border-light,#e9ecef);margin-top:8px}.show-more-btn{background:none;color:var(--theme-accent-color,#007bff);font-size:13px;font-weight:500;cursor:pointer;padding:6px 12px;border-radius:16px;transition:all .2s ease;border:1px solid transparent}.show-more-btn:hover{background-color:var(--theme-accent-light,rgba(0,123,255,.1));border-color:var(--theme-accent-color,#007bff)}.show-more-btn:active{transform:translateY(1px)}.reply-input-container{margin-top:12px;padding-top:12px;border-top:1px solid var(--theme-border-light,#e9ecef)}.reply-input-wrapper{background:var(--theme-bg-primary,#ffffff);border:1px solid var(--theme-border-light,#e9ecef);border-radius:8px;padding:12px;box-shadow:0 2px 8px rgba(0,0,0,.1)}.reply-input{width:100%;border:none;outline:none;resize:none;font-size:14px;line-height:1.4;color:var(--theme-text-primary,#1f1f1f);background:transparent;font-family:inherit}.reply-input::placeholder{color:var(--theme-text-tertiary,#adb5bd)}.reply-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--theme-border-light,#e9ecef)}.reply-cancel-btn{background:none;border:1px solid var(--theme-border-light,#e9ecef);color:var(--theme-text-secondary,#6c757d);font-size:13px;padding:6px 12px;border-radius:16px;cursor:pointer;transition:all .2s ease}.reply-cancel-btn:hover{background-color:var(--theme-bg-secondary,#f8f9fa)}.reply-submit-btn{background:var(--theme-accent-color,#007bff);border:none;color:white;font-size:13px;padding:6px 16px;border-radius:16px;cursor:pointer;transition:all .2s ease;font-weight:500}.reply-submit-btn:hover:not(:disabled){background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}.reply-submit-btn:disabled{background:var(--theme-text-tertiary,#adb5bd);cursor:not-allowed;transform:none}.comments-summary{display:flex;justify-content:center;padding:8px 0 4px;border-top:1px solid var(--theme-border-light,#e9ecef);margin-top:4px}.comments-count{font-size:12px;color:var(--theme-text-tertiary,#adb5bd);font-weight:500}@media (max-width:768px){.comments-more{padding:10px 0 6px;margin-top:6px}.show-more-btn{font-size:12px;padding:5px 10px}.comments-summary{padding:6px 0 3px;margin-top:3px}.comments-count{font-size:11px}}@media (max-width:480px){.comments-more{padding:8px 0 4px;margin-top:4px}.show-more-btn{font-size:11px;padding:4px 8px}.comments-summary{padding:4px 0 2px;margin-top:2px}.comments-count{font-size:10px}}.theme-dark .comments-more,.theme-dark .comments-summary{border-top-color:var(--theme-border-color,#404040)}.theme-dark .show-more-btn:hover{background-color:var(--theme-accent-light,rgba(0,123,255,.15))}@media (prefers-reduced-motion:reduce){.show-more-btn{transition:none!important}.show-more-btn:active{transform:none!important}}.show-more-comments-btn{width:100%;background:var(--theme-bg-secondary,#f8f9fa);color:var(--theme-text-secondary,#6c757d);border:1px solid var(--theme-border-color,#e0e0e0);border-radius:8px;padding:8px 12px;font-size:13px;cursor:pointer;transition:all .2s ease;margin-top:8px}.show-more-comments-btn:hover{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-primary,#1f1f1f)}.theme-dark .show-more-comments-btn{background:var(--theme-bg-secondary,#2a2a2a);border-color:var(--theme-border-color,#404040);color:var(--theme-text-secondary,#a0a0a0)}.theme-dark .show-more-comments-btn:hover{background:var(--theme-bg-tertiary,#404040);color:var(--theme-text-primary,#ffffff)}.post-card{background:rgba(255,255,255,.5);backdrop-filter:blur(10px);border:1px solid var(--theme-border-color,#e0e0e0);border-radius:12px;padding:16px;box-shadow:var(--theme-shadow-light,0 1px 3px rgba(0,0,0,.1));transition:all .2s ease}.post-card:hover{box-shadow:var(--theme-shadow-medium,0 4px 12px rgba(0,0,0,.15));transform:translateY(-1px)}.post-card.ai-generated{border-left:4px solid var(--theme-accent-color,#007bff)}.post-card.new-post{position:relative;border-left:4px solid #28a745}.new-post-indicator{position:absolute;top:12px;right:12px;z-index:10}.new-badge{background:linear-gradient(135deg,#28a745,#20c997);color:white;font-size:10px;font-weight:600;padding:2px 6px;border-radius:8px;box-shadow:0 2px 4px rgba(40,167,69,.3);animation:pulse 2s infinite}@keyframes pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.8}to{transform:scale(1);opacity:1}}.post-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.post-author{display:flex;align-items:center;gap:12px;flex:1}.post-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--theme-border-light,#e9ecef)}.post-author-info{flex:1;min-width:0}.post-author-name{font-size:16px;font-weight:600;color:var(--theme-text-primary,#1f1f1f);margin-bottom:2px;gap:6px}.post-author-name,.post-meta{display:flex;align-items:center}.post-meta{font-size:12px;color:var(--theme-text-secondary,#6c757d);flex-wrap:wrap;gap:4px}.post-separator{opacity:.5}.post-location,.post-mood{color:var(--theme-accent-color,#007bff)}.post-header-actions{display:flex;align-items:center;gap:8px}.post-delete-btn,.post-privacy{font-size:16px;opacity:.7}.post-delete-btn{background:none;border:none;color:var(--theme-text-secondary,#666);cursor:pointer;padding:4px;border-radius:4px;transition:all .2s ease}.post-delete-btn:hover{opacity:1;color:#dc3545;background-color:rgba(220,53,69,.1)}.post-content,.post-text{margin-bottom:12px}.post-text{font-size:15px;line-height:1.6;color:var(--theme-text-primary,#1f1f1f);word-wrap:break-word}.post-text .mention{color:var(--theme-accent-color,#007bff);font-weight:500;background-color:rgba(0,123,255,.1);padding:2px 4px;border-radius:4px;cursor:pointer;transition:all .2s ease}.post-text .mention:hover{background-color:rgba(0,123,255,.2);transform:translateY(-1px)}.post-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.post-tag{font-size:12px;color:var(--theme-accent-color,#007bff);background:var(--theme-accent-light,rgba(0,123,255,.1));padding:2px 8px;border-radius:12px;cursor:pointer;transition:background-color .2s ease}.post-tag:hover{background:var(--theme-accent-lighter,rgba(0,123,255,.2))}.post-stats{display:flex;gap:16px;margin-bottom:12px;font-size:13px;color:var(--theme-text-secondary,#6c757d)}.post-comments-count,.post-likes-count{display:flex;align-items:center;gap:4px}.post-comment-input{display:flex;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--theme-border-light,#e9ecef)}.comment-textarea{flex:1;border:1px solid var(--theme-border-color,#e0e0e0);border-radius:20px;padding:8px 12px;font-size:14px;resize:none;background:rgba(248,249,250,.5);backdrop-filter:blur(10px);color:var(--theme-text-primary,#1f1f1f);transition:border-color .2s ease}.comment-textarea:focus{outline:none;border-color:var(--theme-accent-color,#007bff);background:var(--theme-bg-primary,#ffffff)}.comment-textarea::placeholder{color:var(--theme-text-tertiary,#adb5bd)}.comment-submit-btn{padding:8px 16px;border:none;border-radius:20px;background:var(--theme-accent-color,#007bff);color:white;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap}.comment-submit-btn:hover:not(:disabled){background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}.comment-submit-btn:disabled{background:var(--theme-border-color,#e0e0e0);color:var(--theme-text-tertiary,#adb5bd);cursor:not-allowed}@media (max-width:768px){.post-card{padding:12px;border-radius:8px}.post-avatar{width:36px;height:36px}.post-author-name{font-size:15px}.post-text{font-size:14px}.post-stats{font-size:12px}.comment-textarea{font-size:13px;padding:6px 10px}.comment-submit-btn{padding:6px 12px;font-size:13px}}@media (max-width:480px){.post-card{padding:10px}.post-author{gap:8px}.post-avatar{width:32px;height:32px}.post-author-name{font-size:14px}.post-meta{font-size:11px}.post-text{font-size:13px}.post-tags{gap:4px}.post-tag{font-size:11px;padding:1px 6px}}.theme-dark .post-card{background:rgba(26,26,26,.5);backdrop-filter:blur(10px)}.theme-dark .comment-textarea,.theme-dark .post-avatar,.theme-dark .post-card{border-color:var(--theme-border-color,#404040)}.theme-dark .comment-textarea{background:rgba(45,45,45,.5);backdrop-filter:blur(10px);color:var(--theme-text-primary,#ffffff)}.theme-dark .comment-textarea:focus{background:var(--theme-bg-primary,#1a1a1a)}.comment-submit-btn,.comment-textarea,.post-card,.post-tag{transition:background-color .3s ease-in-out,color .3s ease-in-out,border-color .3s ease-in-out,box-shadow .3s ease-in-out,transform .2s ease-in-out}@media (prefers-reduced-motion:reduce){.comment-submit-btn,.comment-textarea,.post-card,.post-tag{transition:none!important}.comment-submit-btn:hover:not(:disabled),.post-card:hover{transform:none!important}}@media (prefers-contrast:high){.post-card{border-width:2px}.post-card.ai-generated{border-left-width:6px}.post-avatar{border-width:3px}.comment-textarea{border-width:2px}}.comment-submit-btn:focus,.comment-textarea:focus{outline:2px solid var(--theme-accent-color,#007bff);outline-offset:2px}.comment-submit-btn:focus:not(:focus-visible),.comment-textarea:focus:not(:focus-visible){outline:none}.post-list{display:flex;flex-direction:column;gap:16px;max-width:600px;margin:0 auto;padding:0 16px}@media (max-width:768px){.post-list{gap:12px;padding:0 12px}}@media (max-width:480px){.post-list{gap:10px;padding:0 8px}}.post-list{animation:fadeInUp .3s ease-out}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.post-list{animation:none}}.discover-header{background:var(--theme-bg-primary,#ffffff);border-bottom:1px solid var(--theme-border-color,#e0e0e0);padding:12px 16px;position:sticky;top:0;z-index:1000;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.discover-header-content{display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:0 auto}.discover-header-left{display:flex;flex-direction:column;gap:4px}.discover-title{font-size:24px;font-weight:700;color:var(--theme-text-primary,#1f1f1f);margin:0;line-height:1.2}.discover-count{font-size:12px;color:var(--theme-text-secondary,#6c757d);font-weight:500}.discover-header-right{display:flex;align-items:center;gap:8px}.discover-header-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:none;border-radius:8px;background:var(--theme-bg-secondary,#f8f9fa);color:var(--theme-text-secondary,#6c757d);cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden}.discover-header-btn:hover{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-primary,#1f1f1f);transform:translateY(-1px)}.discover-header-btn:active{transform:translateY(0)}.discover-header-btn svg{transition:transform .2s ease}.discover-header-btn:hover svg{transform:scale(1.1)}.refresh-btn:hover svg{animation:spin .6s ease-in-out}.compose-btn{background:var(--theme-accent-color,#007bff);color:white}.compose-btn:hover{background:var(--theme-accent-hover,#0056b3);color:white}.compose-btn svg{stroke-width:2.5}.settings-btn:hover{background:var(--theme-accent-color,#007bff);color:white}.test-api-btn{background:var(--theme-success-light,rgba(40,167,69,.1));color:var(--theme-success,#28a745)}.test-api-btn:hover{background:var(--theme-success,#28a745);color:white;transform:scale(1.05)}@media (max-width:768px){.discover-header{padding:10px 12px}.discover-title{font-size:20px}.discover-count{font-size:11px}.discover-header-btn{width:36px;height:36px}.discover-header-btn svg{width:18px;height:18px}}@media (max-width:480px){.discover-header{padding:8px 10px}.discover-title{font-size:18px}.discover-count{font-size:10px}.discover-header-btn{width:32px;height:32px}.discover-header-btn svg{width:16px;height:16px}.discover-header-right{gap:6px}}.theme-dark .discover-header{background:var(--theme-bg-primary,#1a1a1a);border-bottom-color:var(--theme-border-color,#404040)}.theme-dark .discover-header-btn{background:var(--theme-bg-secondary,#2a2a2a);color:var(--theme-text-secondary,#a0a0a0)}.theme-dark .discover-header-btn:hover{background:var(--theme-bg-tertiary,#404040);color:var(--theme-text-primary,#ffffff)}.discover-header,.discover-header-btn{transition:background-color .3s ease-in-out,color .3s ease-in-out,border-color .3s ease-in-out}@media (prefers-reduced-motion:reduce){.discover-header,.discover-header-btn,.discover-header-btn svg{transition:none!important;animation:none!important}.discover-header-btn:hover{transform:none!important}}@media (prefers-contrast:high){.discover-header{border-bottom-width:2px}.discover-header-btn{border:1px solid var(--theme-border-color,#000000)}.compose-btn{border-color:var(--theme-accent-color,#0000ff)}}.discover-header-btn:focus{outline:2px solid var(--theme-accent-color,#007bff);outline-offset:2px}.discover-header-btn:focus:not(:focus-visible){outline:none}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:10000;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.api-settings-modal{background:white;border-radius:12px;width:90%;max-width:500px;max-height:90vh;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.3)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e0e0e0;background-color:#f8f9fa}.modal-header h2{margin:0;font-size:18px;font-weight:600;color:#1f1f1f}.close-btn{background:none;border:none;font-size:24px;color:#666;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}.close-btn:hover{background-color:#f0f0f0}.modal-body{padding:20px;max-height:calc(90vh - 140px);overflow-y:auto}.tip-box{background-color:#f0f2f5;border:1px solid #e0e0e0;border-radius:8px;padding:15px;margin-bottom:20px;font-size:14px;color:#666}.status-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.status-item:last-child{margin-bottom:0}.status-item span:first-child{font-size:13px;color:#6c757d;font-weight:500}.status-value{font-size:13px;font-weight:600;padding:4px 8px;border-radius:12px;transition:all .2s ease}.status-value.active{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.status-value.inactive{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-weight:500;color:#333;font-size:14px}.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px;border:1px solid #ddd;border-radius:8px;font-size:14px;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px rgba(0,123,255,.1)}.form-group textarea{resize:vertical;min-height:100px}.field-hint{display:block;margin-top:6px;font-size:12px;color:#666;font-style:italic;line-height:1.4}.divider{margin:20px 0;border:none;border-top:1px solid #e0e0e0;opacity:.3}.toggle-group{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.toggle-label{flex:1}.toggle-label span{font-size:14px;color:#666;line-height:1.4}.toggle-group input[type=checkbox]{width:auto;height:20px;margin:0;flex-shrink:0}.number-input{width:80px!important}.number-input,.select-input{text-align:center;flex-shrink:0}.select-input{width:120px!important;background:white;border:1px solid #ddd;border-radius:6px;padding:8px 12px;font-size:14px;color:#333;cursor:pointer}.modal-footer{display:flex;gap:10px;padding:20px;border-top:1px solid #e0e0e0;background-color:#f8f9fa}.cancel-btn,.save-btn{flex:1;padding:12px 20px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .2s}.cancel-btn{background-color:#f8f9fa;color:#666;border:1px solid #ddd}.cancel-btn:hover:not(:disabled){background-color:#e9ecef}.cancel-btn:disabled{opacity:.6;cursor:not-allowed}.save-btn{background-color:#007bff;color:white}.save-btn:hover:not(:disabled){background-color:#0056b3}.save-btn:disabled{opacity:.6;cursor:not-allowed}.modal-body::-webkit-scrollbar{width:6px}.modal-body::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.modal-body::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.modal-body::-webkit-scrollbar-thumb:hover{background:#a8a8a8}@media (max-width:768px){.modal-overlay{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.api-settings-modal{width:95%;max-height:95vh}.modal-body,.modal-footer,.modal-header{padding:16px}}@media (max-width:480px){.modal-overlay{padding:0;align-items:stretch}.api-settings-modal{width:100%;height:100vh;max-height:100vh;border-radius:0;box-shadow:none;height:100dvh;max-height:100dvh}.modal-header{padding:max(12px,env(safe-area-inset-top)) 12px 12px}.modal-body{max-height:calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.modal-body,.modal-footer{padding:12px 12px calc(12px + env(safe-area-inset-bottom))}.toggle-group{flex-direction:column;gap:10px}.toggle-group input[type=checkbox]{align-self:flex-end}}@supports (height:100dvh){@media (max-width:480px){.api-settings-modal{height:100dvh;max-height:100dvh}.modal-body{max-height:calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}}.theme-dark .api-settings-modal{background:#1a1a1a;border-color:#404040}.theme-dark .modal-header{background-color:#2a2a2a;border-bottom-color:#404040}.theme-dark .modal-header h2{color:#ffffff}.theme-dark .close-btn{color:#cccccc}.theme-dark .close-btn:hover{background-color:#404040}.theme-dark .modal-body{background:#1a1a1a}.theme-dark .tip-box{background-color:#2a2a2a;border-color:#404040;color:#cccccc}.theme-dark .form-group label{color:#ffffff}.theme-dark .form-group input,.theme-dark .form-group select,.theme-dark .form-group textarea{background:#2a2a2a;border-color:#404040;color:#ffffff}.theme-dark .form-group input:focus,.theme-dark .form-group select:focus,.theme-dark .form-group textarea:focus{background:#1a1a1a}.theme-dark .field-hint{color:#999999}.theme-dark .toggle-label span{color:#cccccc}.theme-dark .divider{border-top-color:#404040}.theme-dark .modal-footer{background-color:#2a2a2a;border-top-color:#404040}.theme-dark .cancel-btn{background-color:#2a2a2a;color:#cccccc;border-color:#404040}.theme-dark .cancel-btn:hover:not(:disabled){background-color:#404040}@media (prefers-reduced-motion:reduce){.cancel-btn,.close-btn,.save-btn{transition:none}}@media (prefers-contrast:high){.api-settings-modal{border:2px solid #000000}.form-group input,.form-group select,.form-group textarea,.modal-footer,.modal-header{border-width:2px}}.cancel-btn:focus,.close-btn:focus,.form-group input:focus,.form-group select:focus,.form-group textarea:focus,.save-btn:focus{outline:2px solid #007bff;outline-offset:2px}.cancel-btn:focus:not(:focus-visible),.close-btn:focus:not(:focus-visible),.form-group input:focus:not(:focus-visible),.form-group select:focus:not(:focus-visible),.form-group textarea:focus:not(:focus-visible),.save-btn:focus:not(:focus-visible){outline:none}.discover-page{flex-direction:column;height:100vh;color:var(--theme-text-primary,#1f1f1f);overflow:hidden}.discover-loading,.discover-page{display:flex;background:transparent}.discover-loading{align-items:center;justify-content:center}.loading-spinner{text-align:center;color:var(--theme-text-secondary,#6c757d)}.loading-spinner .spinner{width:40px;height:40px;border-top:4px solid var(--theme-border-light,#e9ecef);border:4px solid var(--theme-border-light,#e9ecef);border-top-color:var(--theme-accent-color,#007bff);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 16px}.loading-spinner p{margin:0;font-size:14px;font-weight:500}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.discover-content{flex:1;overflow-y:auto;padding:0 0 80px}.discover-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--theme-text-secondary,#6c757d);text-align:center;padding:40px 20px}.discover-empty-icon{font-size:48px;margin-bottom:16px;opacity:.5}.discover-empty-title{font-size:18px;font-weight:600;margin-bottom:8px;color:var(--theme-text-primary,#1f1f1f)}.discover-empty-description{font-size:14px;line-height:1.5;max-width:300px}@media (max-width:768px){.discover-content{padding:0 0 80px}.discover-empty{padding:20px}.discover-empty-icon{font-size:36px}.discover-empty-title{font-size:16px}.discover-empty-description{font-size:13px}}@media (max-width:480px){.discover-content{padding:0 0 80px}.discover-empty{padding:16px}.discover-empty-icon{font-size:32px}.discover-empty-title{font-size:15px}.discover-empty-description{font-size:12px}}.theme-dark .discover-loading,.theme-dark .discover-page{background:transparent}.discover-page{transition:background-color .3s ease-in-out,color .3s ease-in-out}.discover-content::-webkit-scrollbar{width:6px}.discover-content::-webkit-scrollbar-track{background:var(--theme-bg-secondary,#f8f9fa)}.discover-content::-webkit-scrollbar-thumb{background:var(--theme-border-color,#e0e0e0);border-radius:3px}.discover-content::-webkit-scrollbar-thumb:hover{background:var(--theme-text-secondary,#6c757d)}.theme-dark .discover-content::-webkit-scrollbar-track{background:var(--theme-bg-secondary,#2a2a2a)}.theme-dark .discover-content::-webkit-scrollbar-thumb{background:var(--theme-border-color,#404040)}.theme-dark .discover-content::-webkit-scrollbar-thumb:hover{background:var(--theme-text-secondary,#a0a0a0)}@media (prefers-reduced-motion:reduce){.discover-page,.loading-spinner .spinner{transition:none!important;animation:none!important}}@media (prefers-contrast:high){.discover-page{border:1px solid var(--theme-border-color,#000000)}.loading-spinner .spinner{border-width:3px}}.recollection-list{padding:20px;max-width:800px;margin:0 auto;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(var(--bottom-nav-height, 85px) * .6667 + env(safe-area-inset-bottom, 0px));scroll-padding-bottom:calc(var(--bottom-nav-height, 85px) * .6667 + env(safe-area-inset-bottom, 0px))}.recollection-list-content{display:flex;flex-direction:column;gap:16px}.recollection-item{background:rgba(248,249,250,.5);backdrop-filter:blur(10px);border:1px solid var(--theme-border-color,#e0e0e0);border-radius:12px;padding:20px;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden}.recollection-item:hover{transform:translateY(-2px);box-shadow:var(--theme-shadow-medium,0 4px 12px rgba(0,0,0,.1));border-color:var(--theme-accent-color,#007bff)}.recollection-item-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.recollection-chat-info{display:flex;align-items:center;flex:1}.recollection-chat-details{flex:1;min-width:0}.recollection-chat-name{margin:0 0 4px;font-size:18px;font-weight:600;color:var(--theme-text-primary,#1f1f1f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recollection-chat-date{margin:0;font-size:14px;color:var(--theme-text-secondary,#6c757d)}.recollection-item-arrow{color:var(--theme-text-tertiary,#adb5bd);transition:all .2s ease;flex-shrink:0}.recollection-item:hover .recollection-item-arrow{color:var(--theme-accent-color,#007bff);transform:translateX(4px)}.recollection-item-content{margin-bottom:16px}.recollection-preview{margin:0;font-size:15px;line-height:1.6;color:var(--theme-text-secondary,#6c757d);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.recollection-item-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.recollection-tags{display:flex;gap:8px;flex-wrap:wrap}.recollection-tag{padding:4px 8px;border-radius:6px;font-size:12px}.recollection-meta{display:flex;gap:12px;align-items:center}.recollection-meta-item{font-size:12px;gap:4px}.recollection-delete-btn,.recollection-meta-item{color:var(--theme-text-tertiary,#adb5bd);display:flex;align-items:center}.recollection-delete-btn{background:none;border:none;cursor:pointer;padding:6px;border-radius:4px;transition:all .2s ease;justify-content:center;margin-left:8px}.recollection-delete-btn:hover{background:var(--theme-error-color,#dc3545);color:white}.recollection-delete-btn:disabled{opacity:.6;cursor:not-allowed}.recollection-delete-spinner{width:12px;height:12px;border-top:2px solid var(--theme-border-light,#e9ecef);border:2px solid var(--theme-border-light,#e9ecef);border-top-color:var(--theme-error-color,#dc3545);border-radius:50%;animation:recollection-list-spin 1s linear infinite}.recollection-list-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.recollection-list-loading .recollection-spinner{width:40px;height:40px;border-top:3px solid var(--theme-border-light,#e9ecef);border:3px solid var(--theme-border-light,#e9ecef);border-top-color:var(--theme-accent-color,#007bff);border-radius:50%;animation:recollection-list-spin 1s linear infinite;margin-bottom:20px}@keyframes recollection-list-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.recollection-list-loading p{margin:0;color:var(--theme-text-secondary,#6c757d);font-size:16px}.recollection-list-error{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.recollection-list-error p{margin:0 0 20px;color:var(--theme-error-color,#dc3545);font-size:16px}.recollection-retry-btn{padding:10px 20px;background:var(--theme-accent-color,#007bff);color:white;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.recollection-retry-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}.recollection-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 20px;text-align:center}.recollection-empty-icon{font-size:64px;margin-bottom:24px;opacity:.6}.recollection-list-empty h3{margin:0 0 12px;font-size:20px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.recollection-list-empty p{margin:0;color:var(--theme-text-secondary,#6c757d);font-size:16px;line-height:1.6;max-width:400px}@media (max-width:768px){.recollection-item,.recollection-list{padding:16px}.recollection-chat-name{font-size:16px}.recollection-item-footer{flex-direction:column;align-items:flex-start}.recollection-meta{width:100%;justify-content:flex-start}.recollection-delete-modal{padding:10px}.recollection-modal-content{max-height:90vh}.recollection-modal-header{padding:16px 20px}.recollection-modal-body{padding:20px}.recollection-modal-actions{flex-direction:column}.recollection-cancel-btn,.recollection-confirm-delete-btn{width:100%}}.theme-dark .recollection-item{background:rgba(45,45,45,.5);backdrop-filter:blur(10px);border-color:var(--theme-border-color,#404040)}.theme-dark .recollection-item:hover{border-color:var(--theme-accent-color,#007bff)}.theme-dark .recollection-modal-content{background:var(--theme-bg-primary,#1a1a1a)}.theme-dark .recollection-delete-info,.theme-dark .recollection-modal-header{background:var(--theme-bg-secondary,#2d2d2d);border-color:var(--theme-border-color,#404040)}.theme-dark .recollection-cancel-btn{background:var(--theme-bg-tertiary,#404040);border-color:var(--theme-border-color,#404040);color:var(--theme-text-secondary,#b0b0b0)}.recollection-delete-modal{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:10010;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.recollection-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);backdrop-filter:blur(4px)}.recollection-modal-content{position:relative;background:var(--theme-bg-primary,#ffffff);border-radius:12px;box-shadow:var(--theme-shadow-heavy,0 4px 16px rgba(0,0,0,.2));max-width:500px;width:100%;max-height:80vh;overflow:hidden;display:flex;flex-direction:column;animation:recollection-modal-slide-in .3s ease;z-index:10011}@keyframes recollection-modal-slide-in{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.recollection-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-secondary,#f8f9fa)}.recollection-modal-header h3{margin:0;font-size:18px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.recollection-modal-close{background:none;border:none;font-size:24px;color:var(--theme-text-secondary,#6c757d);cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s ease}.recollection-modal-close:hover{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-primary,#1f1f1f)}.recollection-modal-body{padding:24px}.recollection-delete-warning{text-align:center;margin-bottom:24px}.recollection-warning-icon{font-size:48px;margin-bottom:16px}.recollection-delete-warning h4{margin:0 0 12px;font-size:18px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.recollection-delete-warning p{margin:0 0 20px;color:var(--theme-text-secondary,#6c757d);line-height:1.6}.recollection-delete-info{background:var(--theme-bg-secondary,#f8f9fa);border:1px solid var(--theme-border-color,#e0e0e0);border-radius:8px;padding:16px;text-align:left}.recollection-delete-info p{margin:0 0 8px;font-size:14px;color:var(--theme-text-primary,#1f1f1f)}.recollection-delete-info p:last-child{margin-bottom:0}.recollection-modal-actions{display:flex;gap:12px;justify-content:center}.recollection-cancel-btn,.recollection-confirm-delete-btn{padding:12px 24px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;min-width:100px}.recollection-cancel-btn{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-secondary,#6c757d);border:1px solid var(--theme-border-color,#e0e0e0)}.recollection-cancel-btn:hover:not(:disabled){background:var(--theme-border-light,#e9ecef);color:var(--theme-text-primary,#1f1f1f)}.recollection-confirm-delete-btn{background:var(--theme-error-color,#dc3545);color:white}.recollection-confirm-delete-btn:hover:not(:disabled){background:#c82333;transform:translateY(-1px)}.recollection-cancel-btn:disabled,.recollection-confirm-delete-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.recollection-delete-info,.recollection-item,.recollection-modal-content,.recollection-modal-header,.recollection-tag{transition:background-color .3s ease,color .3s ease,border-color .3s ease}.character-analysis-renderer{width:100%;max-width:100%}.character-analysis-renderer-content{color:var(--theme-text-primary,#1f1f1f);line-height:1.6}.character-analysis-renderer-content .character-analysis-saved-content{display:flex;flex-direction:column;gap:24px}.character-analysis-renderer-content .character-analysis-message-info{background:linear-gradient(135deg,#f8f9fa,#e9ecef);border:2px solid var(--theme-accent-color,#1a73e8);border-radius:12px;padding:20px;box-shadow:0 4px 12px rgba(26,115,232,.1)}.character-analysis-renderer-content .character-analysis-message-info h3{margin:0 0 16px;font-size:18px;font-weight:700;color:var(--theme-accent-color,#1a73e8);text-align:center}.character-analysis-renderer-content .message-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;border-bottom:1px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-primary,#ffffff);padding:12px 16px;border-radius:8px}.character-analysis-renderer-content .message-meta .sender{font-weight:600;color:var(--theme-text-primary,#1f1f1f);font-size:14px}.character-analysis-renderer-content .message-meta .time{font-size:12px;color:var(--theme-text-tertiary,#8a8a8a)}.character-analysis-renderer-content .message-content{color:var(--theme-text-primary,#1f1f1f);line-height:1.6;font-size:14px;white-space:pre-wrap;word-wrap:break-word;background:var(--theme-bg-primary,#ffffff);padding:16px;border-radius:8px;border:1px solid var(--theme-border-color,#e0e0e0)}.character-analysis-renderer-content .character-analysis-section{margin-bottom:24px}.character-analysis-renderer-content .character-analysis-section:last-child{margin-bottom:0}.character-analysis-renderer-content .character-analysis-section h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:16px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.character-analysis-renderer-content .character-analysis-section>div,.character-analysis-renderer-content .character-analysis-section>p{background:var(--theme-bg-secondary,#f8f9fa);border-radius:8px;padding:16px;color:var(--theme-text-primary,#1f1f1f);line-height:1.6;font-size:14px;border:1px solid var(--theme-border-color,#e0e0e0)}.character-analysis-renderer-content .analysis-section{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;padding:12px;background:var(--theme-bg-tertiary,#f8f9fa);border-radius:8px;border-left:4px solid var(--theme-accent-color,#1a73e8)}.character-analysis-renderer-content .analysis-section:last-child{margin-bottom:0}.character-analysis-renderer-content .section-icon{font-size:24px;flex-shrink:0;margin-top:2px}.character-analysis-renderer-content .section-content{flex:1;line-height:1.6;color:var(--theme-text-primary,#1f1f1f)}.character-analysis-renderer-content .section-content p{margin:0 0 8px}.character-analysis-renderer-content .section-content p:last-child{margin-bottom:0}.character-analysis-renderer-content .section-content strong{color:var(--theme-accent-color,#1a73e8);font-weight:600}.character-analysis-renderer-content .section-content em{color:var(--theme-text-secondary,#666);font-style:italic}.character-analysis-renderer-content .section-content ul{margin:8px 0;padding-left:20px}.character-analysis-renderer-content .section-content li{margin-bottom:4px}.character-analysis-renderer-content .medical-chart{background:linear-gradient(135deg,#e8f5e8,#f0f8f0);border:2px solid #4caf50;border-radius:12px;padding:16px;margin-bottom:16px;box-shadow:0 2px 8px rgba(76,175,80,.2)}.character-analysis-renderer-content .medical-chart .chart-header{font-size:16px;font-weight:700;color:#2e7d32;text-align:center;margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid #4caf50;text-transform:uppercase;letter-spacing:1px}.character-analysis-renderer-content .medical-chart .chart-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.character-analysis-renderer-content .medical-chart .vital-item{display:flex;flex-direction:column;align-items:center;padding:12px 8px;background:rgba(255,255,255,.7);border-radius:8px;border:1px solid rgba(76,175,80,.3);transition:all .2s ease}.character-analysis-renderer-content .medical-chart .vital-item:hover{background:rgba(255,255,255,.9);transform:translateY(-2px);box-shadow:0 4px 12px rgba(76,175,80,.3)}.character-analysis-renderer-content .medical-chart .vital-label{font-size:12px;color:#2e7d32;font-weight:600;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}.character-analysis-renderer-content .medical-chart .vital-value{font-size:14px;color:#1b5e20;font-weight:700;text-align:center}@media (max-width:768px){.character-analysis-renderer-content .character-analysis-message-info{padding:16px}.character-analysis-renderer-content .character-analysis-message-info h3{font-size:16px}.character-analysis-renderer-content .message-meta{padding:10px 12px}.character-analysis-renderer-content .message-content{padding:12px;font-size:13px}.character-analysis-renderer-content .character-analysis-section h3{font-size:15px}.character-analysis-renderer-content .character-analysis-section>div,.character-analysis-renderer-content .character-analysis-section>p{padding:12px;font-size:13px}}@media (max-width:480px){.character-analysis-renderer-content .character-analysis-message-info{padding:12px}.character-analysis-renderer-content .character-analysis-message-info h3{font-size:15px}.character-analysis-renderer-content .message-meta{padding:8px 10px;flex-direction:column;align-items:flex-start;gap:4px}.character-analysis-renderer-content .message-content{padding:10px;font-size:12px}.character-analysis-renderer-content .character-analysis-section h3{font-size:14px}.character-analysis-renderer-content .character-analysis-section>div,.character-analysis-renderer-content .character-analysis-section>p{padding:10px;font-size:12px}}.recollection-detail{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100vw;height:100dvh;z-index:10000;background:var(--theme-bg-primary,#ffffff);transition:all .3s ease}.recollection-detail-header{display:flex;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-secondary,#f8f9fa);flex-shrink:0}.recollection-back-btn{background:none;border:none;color:var(--theme-text-secondary,#6c757d);cursor:pointer;padding:8px;border-radius:6px;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.recollection-back-btn:hover{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-primary,#1f1f1f)}.recollection-detail-info{flex:1;min-width:0}.recollection-detail-title{margin:0 0 8px;font-size:20px;font-weight:600;color:var(--theme-text-primary,#1f1f1f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recollection-detail-meta{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--theme-text-secondary,#6c757d);flex-wrap:wrap}.recollection-chat-name{font-weight:500;color:var(--theme-accent-color,#007bff)}.recollection-separator{color:var(--theme-text-tertiary,#adb5bd)}.recollection-date,.recollection-message-count{color:var(--theme-text-secondary,#6c757d)}.recollection-detail-actions{display:flex;gap:8px;flex-shrink:0}.recollection-action-btn{background:none;border:none;color:var(--theme-text-secondary,#6c757d);cursor:pointer;padding:8px;border-radius:6px;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.recollection-action-btn:hover{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-primary,#1f1f1f)}.recollection-detail-content{flex:1;overflow-y:auto;padding:24px 24px calc(24px + env(safe-area-inset-bottom, 0px) + 80px)}.recollection-content-wrapper{max-width:800px;margin:0 auto;line-height:1.8}.recollection-detail-tags{padding:20px 24px;border-top:1px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-secondary,#f8f9fa);flex-shrink:0}.recollection-detail-tags h4{margin:0 0 12px;font-size:14px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.recollection-tags-list{display:flex;gap:8px;flex-wrap:wrap}.recollection-tag{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-secondary,#6c757d);padding:6px 12px;border-radius:8px;font-size:13px;font-weight:500}@media (max-width:768px){.recollection-detail-header{padding:16px;gap:12px}.recollection-detail-title{font-size:18px}.recollection-detail-meta{font-size:13px;gap:6px}.recollection-detail-content,.recollection-detail-tags{padding:16px}.recollection-detail-actions{gap:4px}.recollection-action-btn{padding:6px}}.theme-dark .recollection-detail{background:var(--theme-bg-primary,#1a1a1a)}.theme-dark .recollection-detail-header,.theme-dark .recollection-detail-tags{background:var(--theme-bg-secondary,#2d2d2d);border-color:var(--theme-border-color,#404040)}.theme-dark .recollection-tag{background:var(--theme-bg-tertiary,#404040);color:var(--theme-text-secondary,#b0b0b0)}.recollection-detail,.recollection-detail-header,.recollection-detail-tags,.recollection-tag{transition:background-color .3s ease,color .3s ease,border-color .3s ease}.memo-list-container{width:100%}.memo-header{display:flex;justify-content:flex-start;align-items:center;margin-bottom:24px}.memo-create-btn{background:var(--theme-accent-color,#007bff);color:white;border:none;padding:10px 20px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .3s ease}.memo-create-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}.memo-empty{text-align:center;padding:60px 20px}.memo-empty-icon{font-size:4rem;margin-bottom:20px;opacity:.5}.memo-empty p{color:var(--theme-text-secondary,#6c757d);font-size:16px;margin:0}.memo-section{margin-bottom:32px}.memo-section-title{font-size:1.2rem;font-weight:600;color:var(--theme-text-primary,#1f1f1f);margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid var(--theme-border-color,#e0e0e0)}.memo-card{background:rgba(255,255,255,.7);backdrop-filter:blur(10px);border:1px solid var(--theme-border-color,#e0e0e0);border-radius:12px;padding:20px;margin-bottom:16px;transition:all .3s ease}.memo-card:hover{transform:translateY(-2px);box-shadow:var(--theme-shadow-medium,0 4px 12px rgba(0,0,0,.1))}.memo-card.completed{opacity:1;background:rgba(255,255,255,.7)}.memo-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.memo-card-header h4{font-size:1.2rem;font-weight:600;color:var(--theme-text-primary,#1f1f1f);margin:0;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.memo-countdown{font-size:1.1rem;font-weight:600;color:var(--theme-accent-color,#007bff);font-family:Courier New,monospace;padding:4px 12px;background:rgba(0,123,255,.1);border-radius:6px}.memo-overdue{color:#28a745!important;background:rgba(40,167,69,.1)!important}.memo-content{color:var(--theme-text-secondary,#6c757d);font-size:14px;line-height:1.6;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.memo-card-footer{gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid var(--theme-border-light,#f0f0f0)}.memo-card-footer,.memo-dates{display:flex;flex-direction:column}.memo-dates{gap:6px}.memo-date,.memo-target{font-size:12px;color:var(--theme-text-secondary,#6c757d)}.memo-target{color:var(--theme-accent-color,#007bff);font-weight:500}.memo-inject-switch{padding:8px 0;margin-bottom:8px;border-bottom:1px solid var(--theme-border-light,#f0f0f0);display:flex;gap:16px}.memo-inject-label{display:flex;align-items:center;gap:6px;cursor:pointer;user-select:none}.memo-inject-checkbox{width:18px;height:18px;cursor:pointer;accent-color:var(--theme-accent-color,#007bff)}.memo-inject-text{font-size:13px;color:var(--theme-text-secondary,#6c757d)}.memo-inject-label:hover .memo-inject-text{color:var(--theme-text-primary,#1f1f1f)}.memo-actions{display:flex;gap:8px}.memo-btn-complete,.memo-btn-delete,.memo-btn-edit{padding:6px 12px;border:none;border-radius:6px;font-size:12px;cursor:pointer;transition:all .3s ease}.memo-btn-edit{background:var(--theme-accent-color,#007bff);color:white}.memo-btn-edit:hover{background:var(--theme-accent-hover,#0056b3)}.memo-btn-complete{background:#28a745;color:white}.memo-btn-complete:hover{background:#218838}.memo-btn-delete{background:#dc3545;color:white}.memo-btn-delete:hover{background:#c82333}.memo-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000}.memo-modal{background:white;border-radius:16px;width:90%;max-width:500px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 10px 40px rgba(0,0,0,.2);overflow:hidden}.memo-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--theme-border-color,#e0e0e0)}.memo-modal-header h3{margin:0;font-size:1.3rem;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.memo-modal-close{background:none;border:none;font-size:28px;color:var(--theme-text-secondary,#6c757d);cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease}.memo-modal-close:hover{background:rgba(0,0,0,.05)}.memo-modal-body{padding:24px}.memo-form-group{margin-bottom:20px}.memo-form-group label{display:block;font-weight:500;margin-bottom:8px}.memo-form-group label,.memo-input,.memo-textarea{font-size:14px;color:var(--theme-text-primary,#1f1f1f)}.memo-input,.memo-textarea{width:100%;padding:10px 14px;border:1px solid var(--theme-border-color,#e0e0e0);border-radius:8px;background:white;transition:all .3s ease}.memo-input:focus,.memo-textarea:focus{outline:none;border-color:var(--theme-accent-color,#007bff);box-shadow:0 0 0 3px rgba(0,123,255,.1)}.memo-textarea{resize:vertical;font-family:inherit}.memo-modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid var(--theme-border-color,#e0e0e0)}.memo-preview-body{padding:0;flex:1;overflow-y:auto;max-height:calc(90vh - 140px)}.memo-preview-content{padding:24px 24px 16px}.memo-preview-content h4{margin:0 0 12px;font-size:1rem;color:var(--theme-text-primary,#1f1f1f)}.memo-preview-content p{margin:0;font-size:14px;line-height:1.8;color:var(--theme-text-secondary,#6c757d);white-space:pre-wrap;word-break:break-word}.memo-preview-info{padding:0 24px 24px}.memo-info-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--theme-border-light,#f0f0f0)}.memo-info-item:last-child{border-bottom:none}.memo-info-label{font-size:14px;color:var(--theme-text-secondary,#6c757d)}.memo-info-value{font-size:14px;color:var(--theme-text-primary,#1f1f1f);font-weight:500}.memo-info-value.completed{color:#28a745}.memo-info-value.active{color:#ffc107}.memo-info-value.achieved{color:#28a745}.memo-btn-cancel,.memo-btn-save{padding:10px 24px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .3s ease}.memo-btn-cancel{background:var(--theme-secondary-bg,#f8f9fa);color:var(--theme-text-primary,#1f1f1f)}.memo-btn-cancel:hover{background:var(--theme-hover-bg,#e9ecef)}.memo-btn-save{background:var(--theme-accent-color,#007bff);color:white}.memo-btn-save:hover{background:var(--theme-accent-hover,#0056b3)}@media (max-width:768px){.memo-header{margin-bottom:20px}.memo-header h2{font-size:1.3rem}.memo-create-btn{padding:8px 16px;font-size:13px}.memo-card{padding:16px}.memo-time-inputs{flex-direction:column}.memo-modal{width:95%}}.theme-dark .memo-card{background:rgba(45,45,45,.7);border-color:var(--theme-border-color,#404040)}.theme-dark .memo-modal{background:#2d2d2d;color:var(--theme-text-primary,#fff)}.theme-dark .memo-input,.theme-dark .memo-textarea,.theme-dark .memo-time-input input{background:#1f1f1f;border-color:var(--theme-border-color,#404040);color:var(--theme-text-primary,#fff)}.theme-dark .memo-btn-cancel{background:#3a3a3a;color:var(--theme-text-primary,#fff)}