:root{--bg:#121410;--surface:#1c201a;--raised:#262b22;--line:#31362c;--fg:#f4f0e6;--muted:#a39b8b;--faint:#746d61;--accent:#e25b2a;--ink:#1a0c07;--serif:"Newsreader",Georgia,serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font-family:"Outfit",system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}a{color:inherit}
.bar{height:4px;background:var(--accent)}.wrap{max-width:42rem;margin:auto;padding:24px 20px 64px}
header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.eyebrow{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin:0}
h1{font-family:var(--serif);font-weight:400;font-size:36px;line-height:1;margin:8px 0 0}h1 span{color:var(--muted);font-style:italic}
.rule{display:block;margin-top:12px;height:2px;width:40px;background:var(--accent)}.sub{margin:12px 0 0;max-width:20rem;font-size:14px;line-height:1.6;color:var(--muted)}
.ic{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pill{display:flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:14px;margin-bottom:4px;transition:.15s}
.pill.on{background:var(--accent);border-color:var(--accent);color:var(--ink)}.pill.on .ic{fill:var(--ink)}
.pill:active,.tbtn:active{scale:.96}
form{margin-top:24px}.search{position:relative}.search .s{position:absolute;left:16px;top:50%;translate:0 -50%;color:var(--faint)}
#q{width:100%;height:48px;border-radius:99px;border:1px solid var(--line);background:var(--surface);color:var(--fg);padding:0 48px 0 44px;font:inherit;font-size:16px;outline:0}#q:focus{border-color:var(--accent)}#q::placeholder{color:var(--faint)}
#clearQ{position:absolute;right:4px;top:4px;width:40px;height:40px;font-size:22px;color:var(--muted)}
.seg{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:99px;border:1px solid var(--line);background:var(--surface)}
.seg button{height:44px;border-radius:99px;font-size:14px;color:var(--muted)}.seg button.on{background:var(--raised);color:var(--fg)}
.whens{margin-top:12px;display:flex;gap:8px}.whens button{height:36px;padding:0 14px;border-radius:99px;border:1px solid var(--line);font-size:13px;color:var(--muted)}.whens button.on{border-color:var(--accent);color:var(--fg)}
.beats{margin-top:12px;display:flex;overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:none}
.beats button{height:44px;flex-shrink:0;padding:0 12px;border-bottom:2px solid transparent;font-size:14px;color:var(--muted)}.beats button.on{border-color:var(--accent);color:var(--fg)}
.status{margin-top:16px;display:flex;justify-content:space-between;align-items:baseline}.status p{margin:0;font-size:14px;color:var(--muted)}.status b{font-weight:400;color:var(--fg)}
.link{color:var(--accent);font-size:14px}.loadbar{margin-top:8px;height:2px;background:var(--accent);opacity:0;transition:.15s}.loadbar.on{opacity:1}
ul{list-style:none;margin:0;padding:0}li{display:flex;gap:4px;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--line)}
.story{flex:1;min-width:0;text-align:left;padding:4px 0}.meta{display:flex;gap:8px;font-size:12px;letter-spacing:.03em;color:var(--faint);margin:0}
.meta .k{color:var(--accent)}.meta .src{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase}
.story h2{font-family:var(--serif);font-weight:400;font-size:20px;line-height:1.35;margin:8px 0 0;text-wrap:balance}.au{margin:4px 0 0;font-size:14px;color:var(--muted)}
.deck{margin:8px 0 0;font-size:14px;line-height:1.6;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.clip{width:44px;height:44px;display:grid;place-items:center;color:var(--muted)}.clip .ic{width:20px;height:20px}.clip.on{color:var(--accent)}.clip.on .ic{fill:var(--accent)}
.sk{height:12px;border-radius:4px;background:var(--raised);animation:p 1.4s infinite}@keyframes p{50%{opacity:.5}}
.empty{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.empty h2,.err h2{font-family:var(--serif);font-weight:400;font-size:24px;margin:0}.empty p,.err p{font-size:14px;color:var(--muted);line-height:1.6;max-width:24rem}
.err{margin-top:16px;border:1px solid var(--line);background:var(--surface);border-radius:1rem;padding:24px 20px}
.btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:99px;background:var(--accent);color:var(--ink);font-size:14px;text-decoration:none}.btn.ghost{background:none;border:1px solid var(--line);color:var(--fg)}
footer{margin-top:40px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--faint)}
.scrim{position:fixed;inset:0;z-index:40;background:rgb(18 20 16/.8);opacity:0;pointer-events:none;transition:.2s}.scrim.on{opacity:1;pointer-events:auto}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:50;margin:auto;max-width:42rem;max-height:88dvh;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:24px 24px 0 0;background:var(--surface);translate:0 100%;transition:.2s ease-out;pointer-events:none}
.sheet.on{translate:0 0;pointer-events:auto}.sh{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 0}.sb{overflow-y:auto;padding:0 20px 24px}
.sb h2{font-family:var(--serif);font-weight:400;font-size:30px;line-height:1.2;margin:12px 0 0}.sb h3{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin:16px 0 0;font-weight:400}.sb p.t{margin:4px 0 0;line-height:1.6}
.acts{margin-top:24px;display:flex;gap:8px;flex-wrap:wrap}.note{font-size:12px;color:var(--faint);margin-top:16px}
