:root{--bg: #f6f2eb;--surface: #ffffff;--surface-2: #f1ece3;--text: #1c1917;--text-muted: #78716c;--border: #e7e0d5;--primary: #c2410c;--primary-soft: rgba(194, 65, 12, .12);--accent: #15803d;--accent-soft: rgba(21, 128, 61, .12);--danger: #dc2626;--gold: #d97706;--shadow: 0 2px 10px rgba(28, 25, 23, .06);--radius: 16px}.dark{--bg: #121110;--surface: #1e1c1a;--surface-2: #292522;--text: #f5f5f4;--text-muted: #a8a29e;--border: #332e2a;--primary: #ea580c;--primary-soft: rgba(234, 88, 12, .18);--accent: #22c55e;--accent-soft: rgba(34, 197, 94, .15);--danger: #ef4444;--gold: #f59e0b;--shadow: 0 4px 14px rgba(0, 0, 0, .35)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.45}button,input,textarea,select{font-family:inherit;color:inherit}button{cursor:pointer;border:none;background:none;padding:0}.app-shell{max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);position:relative;padding-bottom:78px}.top-bar{position:sticky;top:0;z-index:30;background:var(--surface);border-bottom:1px solid var(--border);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:9px}.brand-icon{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--primary),var(--gold));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px;box-shadow:0 3px 8px #c2410c47}.brand-name{font-size:19px;font-weight:800;letter-spacing:-.3px}.brand-sub{font-size:10px;color:var(--text-muted);display:block;margin-top:-3px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.top-actions{display:flex;align-items:center;gap:6px}.icon-btn{width:38px;height:38px;border-radius:50%;background:var(--surface-2);color:var(--text);display:flex;align-items:center;justify-content:center;position:relative;transition:transform .12s ease}.icon-btn:active{transform:scale(.92)}.badge-count{position:absolute;top:-2px;right:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--primary);color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}.global-search-wrap{padding:10px 14px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:61px;z-index:25}.search-results-box{margin-top:8px;max-height:260px;overflow-y:auto;border:1px solid var(--border);border-radius:12px;background:var(--bg)}.search-result-row{width:100%;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);text-align:left;font-size:13px}.search-result-row:last-child{border-bottom:none}.main-content{padding:12px 12px 20px;display:flex;flex-direction:column;gap:12px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow)}.input,.textarea,.select{width:100%;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:10px 13px;font-size:14px;outline:none}.input:focus,.textarea:focus,.select:focus{border-color:var(--primary)}.textarea{resize:vertical;min-height:88px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border-radius:12px;font-weight:600;font-size:14px;transition:opacity .15s,transform .1s}.btn:active{transform:scale(.97)}.btn-primary{background:var(--primary);color:#fff}.btn-secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.btn-accent{background:var(--accent);color:#fff}.btn-danger{background:#dc26261f;color:var(--danger)}.btn-sm{padding:6px 12px;font-size:12px;border-radius:10px}.btn-full{width:100%}.avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;flex-shrink:0;overflow:hidden;position:relative}.avatar-sm{width:30px;height:30px;font-size:11px}.avatar-lg{width:78px;height:78px;font-size:26px}.avatar img{width:100%;height:100%;object-fit:cover}.stories-strip{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:none}.stories-strip::-webkit-scrollbar{display:none}.story-item{display:flex;flex-direction:column;align-items:center;gap:5px;width:68px;flex-shrink:0}.story-ring{width:62px;height:62px;border-radius:50%;padding:3px;background:linear-gradient(135deg,var(--primary),var(--gold));display:flex;align-items:center;justify-content:center}.story-ring.viewed{background:var(--border)}.story-ring.add-ring{background:var(--surface-2);border:2px dashed var(--primary)}.story-inner{width:100%;height:100%;border-radius:50%;border:2px solid var(--surface);overflow:hidden;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:17px;position:relative}.story-inner img{width:100%;height:100%;object-fit:cover}.story-label{font-size:11px;color:var(--text);max-width:66px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.composer-trigger{display:flex;align-items:center;gap:10px}.composer-fake-input{flex:1;text-align:left;background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);padding:10px 14px;border-radius:99px;font-size:13px}.pills-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.pills-row::-webkit-scrollbar{display:none}.pill{padding:6px 13px;border-radius:99px;background:var(--surface);border:1px solid var(--border);font-size:12px;font-weight:600;color:var(--text-muted);white-space:nowrap}.pill.active{background:var(--primary);color:#fff;border-color:var(--primary)}.post-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.post-author-btn{display:flex;align-items:center;gap:10px;text-align:left}.post-name{font-weight:700;font-size:14px;display:flex;align-items:center;gap:6px}.post-time{font-size:11px;color:var(--text-muted)}.type-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:6px;background:var(--primary-soft);color:var(--primary);text-transform:uppercase}.book-tag-pill{margin-top:9px;display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:8px;background:var(--surface-2);border:1px solid var(--border);font-size:12px;font-weight:600;color:var(--primary)}.post-body{margin-top:9px;font-size:14px;white-space:pre-wrap}.post-quote{margin-top:9px;padding:12px 14px;border-left:4px solid var(--primary);background:var(--surface-2);border-radius:0 12px 12px 0;font-style:italic;font-size:14px}.post-photo{margin-top:10px;width:100%;max-height:340px;object-fit:cover;border-radius:12px;border:1px solid var(--border)}.stars-row{display:flex;align-items:center;gap:3px;margin-top:7px;color:var(--gold)}.post-actions{margin-top:12px;padding-top:10px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.action-btn{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--text-muted);padding:5px 8px;border-radius:8px}.action-btn:active{background:var(--surface-2)}.action-btn.liked{color:#e11d48}.action-btn.saved{color:var(--primary)}.comments-box{margin-top:10px;padding-top:10px;border-top:1px dashed var(--border);display:flex;flex-direction:column;gap:8px}.comment-item{display:flex;gap:8px;align-items:flex-start}.comment-bubble{flex:1;background:var(--surface-2);border-radius:12px;padding:7px 10px;font-size:13px}.comment-form{display:flex;gap:8px;margin-top:4px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-title{font-size:18px;font-weight:800;margin:0}.book-card{display:flex;gap:12px}.book-cover{width:72px;height:104px;border-radius:10px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;font-size:26px;font-weight:800;box-shadow:2px 4px 10px #00000029;overflow:hidden;padding:6px;text-align:center}.book-cover img{width:100%;height:100%;object-fit:cover}.book-info{flex:1;min-width:0}.book-title{font-weight:800;font-size:15px;margin:0}.book-author{font-size:12px;color:var(--text-muted);margin-top:2px}.progress-track{width:100%;height:7px;border-radius:99px;background:var(--surface-2);overflow:hidden;margin-top:7px}.progress-fill{height:100%;background:var(--accent);border-radius:99px;transition:width .25s ease}.status-chips{display:flex;gap:5px;margin-top:8px;flex-wrap:wrap}.status-chip{font-size:11px;font-weight:600;padding:4px 9px;border-radius:8px;background:var(--surface-2);color:var(--text-muted)}.status-chip.active{background:var(--primary-soft);color:var(--primary)}.sub-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:4px;gap:4px}.sub-tab{padding:8px 6px;border-radius:9px;font-size:12px;font-weight:700;color:var(--text-muted)}.sub-tab.active{background:var(--primary);color:#fff}.friend-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.online-dot{position:absolute;bottom:1px;right:1px;width:10px;height:10px;border-radius:50%;background:#22c55e;border:2px solid var(--surface)}.chat-list-item{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:12px}.chat-screen{display:flex;flex-direction:column;height:calc(100vh - 155px);min-height:420px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.chat-header{padding:10px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px;background:var(--surface)}.chat-messages{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:var(--bg)}.bubble-row{display:flex;flex-direction:column;align-items:flex-start}.bubble-row.me{align-items:flex-end}.bubble{max-width:80%;padding:9px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--border);font-size:13.5px}.bubble-row.me .bubble{background:var(--primary);color:#fff;border-color:var(--primary)}.bubble-book{margin-top:6px;padding:8px 10px;border-radius:10px;background:#00000024;font-size:12px;font-weight:600}.bubble-time{font-size:10px;color:var(--text-muted);margin-top:2px}.chat-input-bar{padding:8px 10px;border-top:1px solid var(--border);display:flex;align-items:center;gap:7px;background:var(--surface)}.book-picker-tray{padding:8px 10px;border-top:1px solid var(--border);background:var(--surface-2);display:flex;gap:6px;overflow-x:auto}.profile-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.avatar-upload-wrap{position:relative;display:inline-block}.avatar-cam-badge{position:absolute;bottom:0;right:0;width:28px;height:28px;border-radius:50%;background:var(--primary);color:#fff;border:2px solid var(--surface);display:flex;align-items:center;justify-content:center}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;margin-top:6px}.stat-box{background:var(--surface-2);padding:10px 6px;border-radius:12px;text-align:center}.stat-num{font-size:17px;font-weight:800}.stat-label{font-size:11px;color:var(--text-muted)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:480px;background:var(--surface);border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(5,1fr);padding:6px 4px 8px;z-index:40}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10.5px;font-weight:600;color:var(--text-muted);position:relative;padding:4px 0}.nav-item.active{color:var(--primary)}.nav-badge{position:absolute;top:0;right:18%;min-width:15px;height:15px;padding:0 4px;border-radius:99px;background:var(--primary);color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000094;z-index:60;display:flex;align-items:flex-end;justify-content:center}@media (min-width: 520px){.modal-backdrop{align-items:center}}.modal-sheet{width:100%;max-width:480px;max-height:90vh;overflow-y:auto;background:var(--surface);border-radius:20px 20px 0 0;padding:16px;display:flex;flex-direction:column;gap:12px}@media (min-width: 520px){.modal-sheet{border-radius:20px}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid var(--border)}.modal-title{font-size:16px;font-weight:800;margin:0}.story-viewer{position:fixed;top:0;right:0;bottom:0;left:0;max-width:480px;margin:0 auto;z-index:80;background:#111;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:14px}.story-progress-track{height:3px;background:#ffffff4d;border-radius:99px;overflow:hidden;margin-bottom:12px}.story-progress-fill{height:100%;background:#fff;transition:width .1s linear}.story-viewer-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;position:relative;padding:16px;border-radius:18px;overflow:hidden}.story-viewer-img{max-width:100%;max-height:55vh;border-radius:14px;object-fit:contain;margin-bottom:12px}.toast{position:fixed;bottom:86px;left:50%;transform:translate(-50%);background:#1c1917;color:#fff;padding:9px 16px;border-radius:99px;font-size:13px;font-weight:600;z-index:100;box-shadow:0 6px 20px #0000004d;max-width:90%;text-align:center}.muted{color:var(--text-muted);font-size:12px}.row-gap{display:flex;align-items:center;gap:8px}.hidden-input{display:none}
