/* AppleAi — kebun pagi: hijau pucat, tinta hutan, merah apel */
:root {
  --font-ui: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-read: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f2f4ec;
  --side: #e9ede0;
  --surf: #fbfcf7;
  --surf-2: #e6ebdb;
  --ink: #14201a;
  --ink-2: #4c5a50;
  --ink-3: #82907f;
  --line: #dde3d2;
  --line-2: #c9d1bb;
  --accent: #cf2f3b;
  --accent-soft: rgba(207, 47, 59, .12);
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 10px 32px -14px rgba(20, 40, 25, .22);

  --code-bg: #14211a;
  --code-h: #1b2c22;
  --code-ink: #e3ecdd;
  --c-kw: #f08a7e;
  --c-str: #a8d18a;
  --c-num: #efc772;
  --c-com: #7f9486;
  --c-fn: #86c7d9;
  --c-tag: #f08a7e;
}
[data-theme="dark"] {
  --bg: #0f1511; --side: #121a15; --surf: #18211b; --surf-2: #1e2a22;
  --ink: #e8eee4; --ink-2: #a9b7a9; --ink-3: #71806f;
  --line: #223027; --line-2: #2f4035; --accent: #ef5a5f; --accent-soft: rgba(239, 90, 95, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(0, 0, 0, .7);
  --code-bg: #0a100c; --code-h: #121b15;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #0f1511; --side: #121a15; --surf: #18211b; --surf-2: #1e2a22;
    --ink: #e8eee4; --ink-2: #a9b7a9; --ink-3: #71806f;
    --line: #223027; --line-2: #2f4035; --accent: #ef5a5f; --accent-soft: rgba(239, 90, 95, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(0, 0, 0, .7);
    --code-bg: #0a100c; --code-h: #121b15;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo { width: 28px; height: 28px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }

.ibtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); transition: background .15s, color .15s; flex: none; }
.ibtn:hover { background: var(--surf-2); color: var(--ink); }
.ibtn.sm { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 100; transition: opacity .3s; }
.boot .logo { width: 44px; height: 44px; animation: bob 1.1s ease-in-out infinite; }
.boot.off { opacity: 0; pointer-events: none; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); height: 100dvh; }
.auth-side {
  --logo-leaf: #7cc15a;
  position: relative; overflow: hidden; background: #11261a; color: #eef3e6;
  padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.auth-side::after {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: #cf2f3b; right: -190px; bottom: -230px;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-copy h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; max-width: 15em; }
.auth-copy p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: #b5c6b3; max-width: 26em; }
.mock {
  max-width: 400px; background: rgba(238, 243, 230, .07); border: 1px solid rgba(238, 243, 230, .14);
  border-radius: 18px; padding: 16px; backdrop-filter: blur(6px); font-size: 14px;
}
.mk-u { margin-left: auto; width: fit-content; max-width: 90%; background: rgba(238, 243, 230, .14); padding: 9px 13px; border-radius: 14px 14px 4px 14px; }
.mk-a { margin-top: 14px; }
.mk-a p { font-family: var(--font-read); font-size: 15.5px; color: #dbe6d5; margin-bottom: 10px; }
.mk-code { background: #0a140e; border-radius: 12px; overflow: hidden; }
.mk-ch { display: flex; justify-content: space-between; padding: 7px 12px; font-size: 12px; color: #8fa391; background: rgba(255, 255, 255, .05); }
.mk-code pre { padding: 12px 14px; font: 12.5px/1.6 var(--font-mono); color: var(--code-ink); overflow: hidden; }

.auth-main { display: grid; place-items: center; padding: 32px 24px; overflow-y: auto; }
.auth-card { width: min(400px, 100%); }
.m-brand { display: none; margin-bottom: 28px; }
.auth-card h1 { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.lead { margin: 10px 0 26px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surf-2); border-radius: 12px; margin-bottom: 22px; }
.seg button { height: 38px; border-radius: 9px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .18s, color .18s, box-shadow .18s; }
.seg button.on { background: var(--surf); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 40, 25, .12); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; background: var(--surf); border: 1px solid var(--line-2);
  border-radius: 12px; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw .ibtn { position: absolute; right: 9px; top: 9px; }
.form-err { margin: -2px 0 14px; color: var(--accent); font-size: 14px; line-height: 1.45; }
.btn {
  width: 100%; height: 50px; border-radius: 12px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 16px; transition: background .15s, transform .1s, opacity .15s;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .6; cursor: progress; }
.note { margin-top: 18px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 288px minmax(0, 1fr); height: 100dvh; overflow: hidden; transition: grid-template-columns .25s ease; }
.app.collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.side {
  background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  min-height: 0; min-width: 0; overflow: hidden; width: 288px;
}
.app.collapsed .side { visibility: hidden; }
.side-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 10px 18px; }
.new {
  margin: 6px 14px 10px; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-radius: 12px; background: var(--surf); border: 1px solid var(--line-2); font-weight: 500; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.new:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.new .i { color: var(--accent); }
.searchbox { margin: 0 14px 8px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; color: var(--ink-3); border-radius: 10px; transition: background .15s; }
.searchbox:focus-within { background: var(--surf); color: var(--ink-2); }
.searchbox input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14.5px; }
.searchbox input::placeholder { color: var(--ink-3); }
.convs { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.grp { padding: 14px 10px 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.conv { position: relative; display: flex; align-items: center; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); gap: 6px; }
.conv span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv:hover { background: var(--surf-2); color: var(--ink); }
.conv.on { background: var(--surf); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 40, 25, .08); }
.conv .del { opacity: 0; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); transition: opacity .12s; }
.conv:hover .del, .conv.on .del, .conv:focus-within .del { opacity: 1; }
.conv .del:hover { background: var(--accent-soft); color: var(--accent); }
.conv .del .i { width: 15px; height: 15px; }
.empty-list { padding: 18px 12px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }

.side-f { position: relative; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; transition: background .15s; }
.me:hover { background: var(--surf-2); }
.ava { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.me-t b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pop {
  position: absolute; z-index: 30; background: var(--surf); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; min-width: 250px; animation: pop .14s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.menu { left: 12px; right: 12px; bottom: calc(100% - 4px); min-width: 0; }
.menu-label { padding: 8px 10px 6px; font-size: 13px; color: var(--ink-3); }
.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 4px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.theme-row button { height: 32px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); background: var(--surf-2); }
.theme-row button.on { background: var(--ink); color: var(--bg); }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 9px; font-size: 14.5px; text-align: left; }
.mi:hover { background: var(--surf-2); }
.mi .i { color: var(--ink-3); }

.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; flex: none; }
#btnMenu { display: none; }
.app.collapsed #btnMenu { display: grid; }
.ttl { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.model { position: relative; }
.model-btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 14px; border-radius: 10px; font-weight: 500; font-size: 14.5px; transition: background .15s; }
.model-btn:hover { background: var(--surf-2); }
.model-btn .i { width: 15px; height: 15px; color: var(--ink-3); }
.model .pop { right: 0; top: calc(100% + 6px); }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 9px; text-align: left; }
.opt:hover { background: var(--surf-2); }
.opt-t { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.opt-t b { font-weight: 600; font-size: 14.5px; }
.opt-t small { font-size: 13px; color: var(--ink-3); }
.opt .i { color: var(--accent); opacity: 0; }
.opt.on .i { opacity: 1; }

.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.thread { max-width: 760px; margin: 0 auto; padding: 14px 22px 28px; min-height: 100%; }

/* hero */
.hero { min-height: calc(100% - 20px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 0 40px; animation: fade .5s ease both; }
.hero .logo { width: 46px; height: 46px; margin-bottom: 20px; }
.hero h3 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.hero p { margin-top: 12px; font-size: 17px; color: var(--ink-2); line-height: 1.5; }
.chips { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.chip { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--line-2); transform: translateY(-1px); }
.chip .i { color: var(--accent); margin-top: 2px; }
.chip b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.chip span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes fade { from { opacity: 0; } }

/* messages */
.msg { display: flex; gap: 14px; margin-bottom: 28px; animation: rise .32s ease both; }
.msg.static { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.msg.user { justify-content: flex-end; }
.bubble { max-width: 84%; background: var(--surf-2); padding: 11px 17px; border-radius: 18px 18px 5px 18px; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; line-height: 1.6; }
.av { width: 28px; height: 28px; flex: none; margin-top: 4px; }
.col { flex: 1; min-width: 0; }

.prose { font-family: var(--font-read); font-size: 18.5px; line-height: 1.72; color: var(--ink); word-break: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 .95em; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-ui); letter-spacing: -.02em; line-height: 1.25; margin: 1.4em 0 .5em; font-weight: 600; }
.prose h1 { font-size: 1.5em; } .prose h2 { font-size: 1.3em; } .prose h3 { font-size: 1.12em; } .prose h4 { font-size: 1em; }
.prose ul, .prose ol { margin: 0 0 .95em; padding-left: 1.5em; }
.prose li { margin: .28em 0; padding-left: .2em; }
.prose li::marker { color: var(--ink-3); }
.prose li > ul, .prose li > ol { margin: .3em 0 .2em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 0 0 .95em; padding: 2px 0 2px 16px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.6em 0; }
.prose code { font-family: var(--font-mono); font-size: .8em; background: var(--surf-2); border-radius: 6px; padding: .15em .42em; }
.prose img.inl { max-width: 100%; border-radius: 12px; }
.tbl { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line-2); border-radius: 12px; }
.tbl table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: 15px; }
.tbl th, .tbl td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { background: var(--surf-2); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }

/* blok kode */
.cb { margin: 1.1em 0; border-radius: 12px; overflow: hidden; background: var(--code-bg); }
.cb-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 6px 16px; background: var(--code-h); font: 500 13px var(--font-ui); color: #8fa391; }
.cb-copy { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 8px; color: #c4d2c2; font: 500 13px var(--font-ui); transition: background .15s, color .15s; }
.cb-copy:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.cb-copy .i { width: 15px; height: 15px; }
.cb-copy.ok { color: #a8d18a; }
.cb pre { padding: 14px 18px 16px; overflow-x: auto; font: 400 14px/1.68 var(--font-mono); color: var(--code-ink); tab-size: 2; }
.cb pre code { background: none; padding: 0; font: inherit; border-radius: 0; color: inherit; }
.t-k { color: var(--c-kw); } .t-s { color: var(--c-str); } .t-n { color: var(--c-num); }
.t-c { color: var(--c-com); font-style: italic; } .t-f { color: var(--c-fn); } .t-g { color: var(--c-tag); }

.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--accent); vertical-align: -.18em; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.think { display: flex; align-items: center; gap: 12px; padding: 6px 0; font: 500 15px var(--font-ui); color: var(--ink-3); }
.dots { display: flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-5px); opacity: 1; } }
.skel { margin-top: 10px; width: min(320px, 100%); aspect-ratio: 1; border-radius: 14px; background: linear-gradient(100deg, var(--surf-2) 30%, var(--line) 50%, var(--surf-2) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }

.err { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font: 15px/1.5 var(--font-ui); }
.err .i { color: var(--accent); margin-top: 1px; }

.imgs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 12px; }
.imgs figure { position: relative; border-radius: 14px; overflow: hidden; background: var(--surf-2); min-height: 120px; }
.imgs img { display: block; width: 100%; height: auto; }
.fig-a { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.imgs figure:hover .fig-a, .imgs figure:focus-within .fig-a { opacity: 1; }
.fig-a .ibtn { background: rgba(10, 16, 12, .72); color: #fff; backdrop-filter: blur(6px); }
.fig-a .ibtn:hover { background: rgba(10, 16, 12, .9); }

.acts { display: none; gap: 2px; margin: 6px 0 0 -8px; }
.acts.ready { display: flex; }
.acts button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; font: 500 13.5px var(--font-ui); color: var(--ink-3); transition: background .15s, color .15s; }
.acts button:hover { background: var(--surf-2); color: var(--ink); }
.acts .i { width: 16px; height: 16px; }
.acts .ok { color: var(--accent); }

/* composer */
.dock { flex: none; padding: 0 20px max(14px, env(safe-area-inset-bottom)); }
.dock-in { max-width: 760px; margin: 0 auto; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 9px 9px 9px 20px; background: var(--surf); border: 1px solid var(--line-2); border-radius: 26px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft); }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; font-size: 16px; line-height: 1.5; padding: 8px 0; max-height: 200px; }
.composer textarea::placeholder { color: var(--ink-3); }
.send { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: #fff; transition: transform .12s, opacity .15s, background .15s; }
.send:hover:not(:disabled) { transform: scale(1.06); }
.send:disabled { background: var(--surf-2); color: var(--ink-3); cursor: default; }
.send.stop { background: var(--ink); color: var(--bg); }
.fine { text-align: center; margin-top: 9px; font-size: 12.5px; color: var(--ink-3); }

.jump { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surf); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--ink-2); z-index: 5; animation: pop .16s ease; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 16px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14.5px; box-shadow: var(--shadow); animation: rise .22s ease both; }
.toast button { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: inherit; }

.scrim { display: none; }

/* ---------- responsif ---------- */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .m-brand { display: flex; }

  .app, .app.collapsed { grid-template-columns: minmax(0, 1fr); }
  .app.collapsed .side { visibility: visible; }
  .side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(86vw, 320px); transform: translateX(-104%); transition: transform .28s cubic-bezier(.3, .8, .3, 1); box-shadow: var(--shadow); }
  .app.open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 20, 14, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .app.open .scrim { opacity: 1; pointer-events: auto; }
  #btnMenu, .app.collapsed #btnMenu { display: grid; }
  #btnCollapse { display: none; }
  .thread { padding: 8px 16px 24px; }
  .chips { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
  .dock { padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
  .jump { bottom: 104px; }
}
@media (hover: none) {
  .conv .del, .acts button { opacity: 1; }
  .fig-a { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .caret { animation: none; }
}
