:root{color-scheme:dark;--bg:#0f1721;--surface:#1c2a39;--surface-hi:#253647;--line:#ffffff12;--text:#f3f7fc;--muted:#9cabbc;--accent:#5ba8ff}*{box-sizing:border-box}body{margin:0;background:var(--tg-theme-bg-color,var(--bg));color:var(--tg-theme-text-color,var(--text));font:16px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}main{max-width:720px;margin:auto;padding:calc(18px + env(safe-area-inset-top)) 14px calc(32px + env(safe-area-inset-bottom))}header{display:flex;align-items:end;justify-content:space-between;padding:2px 4px 16px}.eyebrow{margin:0;color:var(--accent);font-weight:750;font-size:16px;letter-spacing:-.2px}.eyebrow span{color:var(--muted);font-weight:600}h1{letter-spacing:-.7px;font-size:29px;line-height:1.04;margin:4px 0 0}.status,.meta{color:var(--muted);font-size:13px}.controls{position:sticky;z-index:2;top:0;padding:7px 0 10px;background:linear-gradient(var(--tg-theme-bg-color,var(--bg)) 78%,transparent)}.search{display:flex;gap:10px;align-items:center;background:var(--tg-theme-secondary-bg-color,var(--surface-hi));border:1px solid var(--line);border-radius:15px;padding:0 14px}.search>span{color:var(--muted);font-size:22px;line-height:1}.search input{appearance:none;border:0;outline:0;background:transparent;color:inherit;width:100%;font:inherit;padding:14px 0 13px}nav{display:flex;gap:8px;overflow-x:auto;padding:11px 0 1px;scrollbar-width:none}nav::-webkit-scrollbar{display:none}button{border:1px solid transparent;border-radius:999px;padding:8px 13px;background:var(--tg-theme-secondary-bg-color,#2a3949);color:var(--text);font:650 14px inherit;white-space:nowrap}button.active{background:var(--tg-theme-button-color,var(--accent));color:var(--tg-theme-button-text-color,#fff);box-shadow:0 4px 12px #0003}.result-head{display:flex;align-items:center;gap:8px;min-height:26px}.hint{margin:5px 4px 12px;color:var(--muted);font-size:13px}.result-head .hint{margin-left:0}.result-head #back{padding:5px 9px;font-size:12px}.result-head #back[hidden]{display:none}#results{display:grid;gap:14px;transition:opacity .18s ease}#results.is-loading{opacity:.42;pointer-events:none}.card{overflow:hidden;border-radius:20px;background:var(--tg-theme-secondary-bg-color,var(--surface));border:1px solid var(--line);box-shadow:0 7px 20px #00000018;cursor:pointer}.media{background:#101923;min-height:40px}.media img,.media video{display:block;width:100%;max-height:520px;object-fit:contain}.card.is-sticker .media{background:transparent;padding:12px 12px 0}.card.is-sticker .media img{border-radius:13px}.info{padding:13px 15px 14px}.is-sticker .info{padding:10px 15px 12px;border-top:1px solid var(--line)}.quote{white-space:pre-wrap;margin:0 0 12px;line-height:1.35;font-size:18px;letter-spacing:-.2px}.is-sticker .quote{display:none}.footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.meta{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rating{flex:none;border-radius:999px;background:#ffffff0b;padding:6px 9px;font-size:13px;font-weight:700;letter-spacing:.1px}.rating .down{color:var(--muted);font-weight:600}.author-card{display:flex;align-items:center;width:100%;gap:12px;padding:12px;border-radius:18px;text-align:left;background:var(--tg-theme-secondary-bg-color,var(--surface));border:1px solid var(--line)}.author-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#4a9cff,#7d65e9);font-weight:800}.author-copy{display:grid;gap:3px;min-width:0}.author-copy b{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.author-copy small{color:var(--muted);font-size:13px}.author-arrow{margin-left:auto;color:var(--muted);font-size:28px;font-weight:300}.empty{color:var(--muted);text-align:center;padding:54px 12px}#more{display:block;margin:19px auto 0}.sheet-wrap{position:fixed;z-index:10;inset:0;display:grid;align-items:end}.sheet-shade{position:absolute;inset:0;width:100%;border-radius:0;background:#0009}.sheet{position:relative;width:100%;max-width:720px;margin:auto;background:var(--tg-theme-secondary-bg-color,#1c2a39);border-radius:24px 24px 0 0;padding:10px 20px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -12px 34px #0005}.handle{width:38px;height:4px;border-radius:9px;background:#ffffff38;margin:0 auto 16px}.close{position:absolute;right:14px;top:11px;width:32px;height:32px;padding:0;font-size:23px;line-height:1;background:#ffffff10}.sheet-label{margin:0;color:var(--muted);font-size:13px}.sheet h2{margin:7px 36px 7px 0;font-size:21px;line-height:1.25;white-space:pre-wrap}.sheet #sheet-meta{margin:0 0 18px;color:var(--muted);font-size:14px}.send{width:100%;padding:13px;background:var(--tg-theme-button-color,var(--accent));color:var(--tg-theme-button-text-color,#fff);font-size:16px}.send:disabled{opacity:.6}.send-status{min-height:18px;margin:10px 2px 0;color:var(--muted);font-size:13px;text-align:center}@media (max-width:360px){h1{font-size:26px}.footer{align-items:flex-start;flex-direction:column;gap:8px}.rating{padding:5px 8px}}
/* CSS display rules must not override native hidden state of the bottom sheet. */
[hidden]{display:none!important}
/* Archive-only card refinement: one continuous quote surface, no duplicate author. */
:root{--surface:#202f3f;--surface-hi:#293b4d}.media{background:var(--surface)}.card.is-sticker .info{border-top:0;padding-top:8px}.card.is-sticker .media{padding-bottom:3px}.meta{font-size:14px}
/* HTML quote cards: avatar, author and text are independently alignable. */
:root{--quote-block:#233444}.card{background:var(--quote-block)}.card .media{background:var(--quote-block)}.quote-row{display:flex;align-items:flex-start;gap:12px;padding:14px 14px 7px}.avatar{flex:0 0 52px;width:52px;height:52px;margin-top:2px;border-radius:50%;overflow:hidden;background:#ffffff10}.avatar img,.avatar .initial{display:grid;width:100%;height:100%;place-items:center;object-fit:cover;font-size:20px;font-weight:800;color:#fff}.bubble{flex:1;min-width:0;background:var(--quote-block);border-radius:17px;padding:5px 0 8px}.bubble .author{margin:0 0 4px;font-size:18px;line-height:1.15;font-weight:800;letter-spacing:-.25px}.bubble .quote{display:block;margin:0;white-space:pre-wrap;font-size:18px;line-height:1.32;letter-spacing:-.2px}.card .info{padding:5px 14px 13px}.card .footer{min-height:29px}.card.is-video .media{padding:0 14px 4px}.card.is-video .media video{border-radius:15px}.card.is-video .quote-row{padding-top:10px}
/* Compact reading density for a large chat archive. */
.bubble .author{font-size:16px}.bubble .quote{font-size:16px;line-height:1.3}.meta{font-size:13px}.rating{font-size:12px;padding:5px 8px}h1{font-size:26px}.eyebrow{font-size:15px}button{font-size:13px;padding:8px 12px}.search input{font-size:15px}
/* Dense mode requested for the quote list. */
.bubble .author,.bubble .quote{font-size:14px}.bubble .quote{line-height:1.32}.meta{font-size:12px}
