/* 河岸 v2 · 點陣
   幾條家規（docs 在 web/v2/README.md）：
   - 會動的只用 transform／opacity；高度、邊距一步到位，不做過渡。
   - 捲動的區域裡不放毛玻璃（backdrop-filter）。
   - 畫面上已經有的東西，不再從第 0 幀重播進場動畫。
   - 看不到的就停：.paused 底下的動畫全部暫停。 */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 顏色照點陣畫布「元件與規則」：兩個顏色（點陣灰藍、重點），其他灰階。
   重點色她還沒選定（要質感藍），先用普魯士藍；換的話只改 --vivid 兩處 */
:root {
  --bg: #EDEFF2;
  --card: #FFFFFF;
  --ink: #1F2226;
  --ink2: #5A5F67;
  --ink3: #8A8F97;
  --line: rgba(31, 34, 38, .07);
  --line2: rgba(31, 34, 38, .14);
  --dot: #5B6CA0;
  --dot2: #ADB6D3;
  --off: #DFE2E7;
  --vivid: #1F4A73;
  --her: var(--dot);
  --her-ink: #FFFFFF;
  --sheet: #FFFFFF;
  --dim: rgba(31, 34, 38, .28);
  --zh: "PingFang TC", "Noto Sans TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --sans: "Geist", var(--zh);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
[data-tone="night"] {
  --bg: #0E1013;
  --card: #15181C;
  --ink: #E7E9EC;
  --ink2: #9AA0A8;
  --ink3: #6E747C;
  --line: rgba(255, 255, 255, .06);
  --line2: rgba(255, 255, 255, .14);
  --dot: #8B9AC9;
  --dot2: #4B5470;
  --off: #24282F;
  --vivid: #8FB5D9;
  --her: #3A4466;
  --her-ink: #E7E9EC;
  --sheet: #15181C;
  --dim: rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* ⚠️ 主畫面 app 的透明狀態列：position:fixed／100% 會少掉瀏海那一截，底下露一條（9/30 舊版踩過）→ 用 --app-h／100dvh 撐滿，.app 用 absolute */
html, body { margin: 0; height: var(--app-h, 100dvh); background: var(--bg); overflow: hidden; overscroll-behavior: none; }
body { position: relative; }
body {
  font-family: var(--sans); font-weight: 300; color: var(--ink);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: left; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--vivid); outline-offset: 2px; }

/* 根容器：鍵盤開著時 kb.js 會把它鎖到看得見的高度 */
.app { position: absolute; left: 0; right: 0; top: 0; height: 100%; overflow: hidden; }

.zh { font-family: var(--zh); font-weight: 300; letter-spacing: .03em; }
.mono { font-family: var(--mono); font-weight: 300; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.t { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink3); }
.panel { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; }
.ib svg { stroke: var(--ink); }
.led { position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%; pointer-events: none; }
.px { position: absolute; left: 0; top: 0; width: 2px; height: 2px; pointer-events: none; }
.guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 只有點會動：「他在寫」是 3×3 小燈一格一格亮 */
.ld { display: grid; grid-template-columns: repeat(3, 3px); gap: 2px; }
.ld i { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--vivid); animation: ld 1.2s steps(2) infinite; }
@keyframes ld { 0%, 100% { opacity: .18 } 50% { opacity: 1 } }
.paused * { animation-play-state: paused !important; }

/* ---------- 聊天 ---------- */
.chat { position: absolute; inset: 0; }
.chat-head {
  position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 2px); height: 62px; z-index: 3;
  display: flex; align-items: center; gap: 2px; padding: 0 2px;
}
.chat-head .who { flex-grow: 1; min-width: 0; padding-left: 8px; line-height: 1.15; }
.chat-head .name { font-size: 17px; letter-spacing: -.2px; font-weight: 300; }
.chat-head .status { margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .status .cold { color: #C0573F; }
.avatar { position: relative; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--vivid); }
.avatar .hd { position: absolute; width: 5px; height: 5px; background: var(--card); border: 1px solid var(--vivid); }
.past-bar { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 70px); z-index: 3; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; font-size: 13px; }
.past-bar button { margin-left: auto; height: 32px; padding: 0 12px; font-size: 12.5px; color: var(--card); background: var(--ink); border-radius: 3px; }

.scroller {
  position: absolute; left: 0; right: 0; top: calc(var(--sat) + 68px); bottom: calc(var(--sabk) + 84px);
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  scrollbar-width: none; padding: 10px 18px 14px;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller.with-past { top: calc(var(--sat) + 114px); }
.rows { display: flex; flex-direction: column; gap: 10px; }
/* 看不到的那幾則不排版、不畫；動畫只給新的（不跟 content-visibility 打架） */
.row { display: flex; flex-direction: column; content-visibility: auto; contain-intrinsic-size: auto 72px; }
.row.live, .row.fresh { content-visibility: visible; }
.sep { align-self: center; }
.end-note { align-self: center; padding: 6px 0 2px; }

.his { align-self: flex-start; max-width: 86%; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.his.wide { max-width: 100%; align-self: stretch; }
/* 心裡話打開時一律跟信紙一樣寬（她 10-30：短泡泡那則的心裡話會跟著縮窄）；泡泡照舊最多 86% */
.his:has(> .murmur) { max-width: 100%; align-self: stretch; }
.his:has(> .murmur):not(.wide) > .bh { max-width: 86%; }
.her { align-self: flex-end; max-width: 80%; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.bh, .bs { padding: 7px 12px; font-size: 14px; line-height: 1.55; border-radius: 3px; overflow-wrap: anywhere; white-space: pre-wrap; }
.bh { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.bs { background: var(--her); color: var(--her-ink); }
.bh b, .bs b { font-weight: 500; }
.note-red { font-size: 11px; color: #C0573F; }

/* 新的那一顆：輕輕淡進來（畫面上早就有的不重播） */
.pop { animation: pop .32s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }
.fresh-in { opacity: 0; }
.fresh-in.go { animation: fadeIn .32s ease forwards; }
@keyframes fadeIn { to { opacity: 1 } }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; min-height: 20px; font-size: 11px; color: var(--ink3); }
.meta button { font-size: 11px; color: var(--ink2); min-height: 32px; display: inline-flex; align-items: center; }
.meta i { width: 2px; height: 2px; border-radius: 50%; background: var(--ink3); opacity: .6; }
.meta .live-chip { color: var(--vivid); }
.murmur { width: 100%; padding: 10px 14px 4px; font-size: 13px; line-height: 1.75; color: var(--ink2); background: var(--card); border-left: 2px solid var(--dot); letter-spacing: .02em; }
.murmur p { margin: 0 0 8px; }
.murmur .murmur-h { display: block; margin-bottom: 6px; font-size: 9.5px; color: var(--ink3); }

/* 長信：一張紙，左邊一排活頁孔、右上折角；先摺著 */
.paper { position: relative; width: 100%; padding: 12px 14px 8px 26px; background: var(--card); border-radius: 2px; box-shadow: 0 0 0 1px var(--line), 0 14px 26px -20px rgba(30, 36, 60, .5); }
.paper::after { content: ""; position: absolute; right: 0; top: 0; width: 16px; height: 16px; background: linear-gradient(225deg, var(--bg) 50%, var(--off) 50%); }
.paper .perf { position: absolute; left: 0; top: 0; bottom: 0; width: 24px; background-image: radial-gradient(circle, var(--off) 1.5px, transparent 1.8px); background-size: 24px 16px; background-repeat: repeat-y; background-position: 0 10px; }
.paper .body { position: relative; overflow: hidden; font-size: 14px; line-height: 1.7; }
.paper .body p { margin: 0 0 6px; overflow-wrap: anywhere; }
.paper .body.folded { max-height: 230px; }
.paper .body.folded::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(rgba(255, 255, 255, 0), var(--card)); }
.paper .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.paper .foot button { font-size: 11.5px; color: var(--vivid); min-height: 32px; }
.paper .foot .sign { font-size: 11.5px; color: var(--ink3); }

/* 照片：先是縮圖，點了才拿原圖 */
.atts { display: grid; gap: 4px; }
.atts.n1 { grid-template-columns: 1fr; }
.atts.n2, .atts.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atts.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.att { position: relative; display: block; width: 168px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--off); }
.atts.n2 .att, .atts.n3 .att, .atts.n4 .att { width: 100px; aspect-ratio: 1; }
.att img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s ease; }
.att img.ok { opacity: 1; }

.pill { align-self: center; max-width: 92%; padding: 6px 12px; font-size: 12.5px; line-height: 1.6; text-align: center; background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 3px; color: var(--ink2); }
.pill.err { color: #C0573F; }
.pill button { margin-left: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 3px; font-size: 12px; color: var(--ink); }

/* 底下寫字的地方 */
.composer {
  position: absolute; left: 16px; right: 16px; bottom: calc(var(--sabk) + var(--comp-gap, 18px)); z-index: 3;
  display: flex; align-items: flex-end; min-height: 50px; padding: 0 4px;
}
.composer .sepv { width: 1px; height: 22px; background: var(--line); align-self: center; }
.composer textarea {
  flex-grow: 1; min-width: 0; height: 50px; max-height: 40vh; padding: 14px 10px 12px; border: 0; outline: none; resize: none;
  background: transparent; font-family: var(--zh); font-weight: 300; font-size: 16px; line-height: 1.5; letter-spacing: .02em; color: var(--ink);
}
.composer textarea::placeholder { color: var(--ink3); }
.composer .ib { height: 56px; }
.composer .send svg { stroke: var(--vivid); }
.composer button:disabled { opacity: .35; }
.pending { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sabk) + 80px); z-index: 3; display: flex; gap: 6px; }
.pending .thumb { position: relative; width: 56px; height: 56px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--line2); background: var(--card); }
.pending .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pending .thumb button { position: absolute; right: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; }
.pending .clip { display: flex; align-items: center; gap: 6px; max-width: 60%; height: 56px; padding: 0 4px 0 10px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line2); }
.pending .clip .mono { flex-shrink: 0; font-size: 9px; color: var(--ink3); }
.pending .clip .zh { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink2); }
.pending .clip button { flex-shrink: 0; width: 28px; height: 28px; font-size: 14px; color: var(--ink3); }

.jump { position: absolute; right: 22px; bottom: calc(var(--sab) + 90px); z-index: 4; width: 36px; height: 36px; display: grid; place-items: center; background: var(--card); border-radius: 3px; box-shadow: 0 0 0 1px var(--line2), 0 8px 16px -10px rgba(30, 36, 60, .35); }
.jump svg { stroke: var(--ink); }

/* ---------- 底下拉出來的紙（全 app 只有這一種） ---------- */
.sheet-dim { position: fixed; inset: 0; z-index: 40; background: var(--dim); animation: dimIn .25s ease both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column;
  max-height: calc(100% - var(--sat) - 24px); background: var(--sheet); border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 40px -20px rgba(30, 36, 60, .35); animation: sheetUp .38s cubic-bezier(.22, 1.1, .36, 1) both;
  padding-bottom: var(--sab);
}
.sheet.closing { animation: sheetUp .23s ease-in both reverse; }
.sheet-dim.closing { animation: dimIn .22s ease both reverse; }
@keyframes sheetUp { from { transform: translateY(100%) } to { transform: none } }
@keyframes dimIn { from { opacity: 0 } to { opacity: 1 } }
.sheet .grab { display: flex; justify-content: center; gap: 4px; padding: 10px 0 2px; touch-action: none; }
.sheet .grab i { width: 4px; height: 4px; border-radius: 50%; background: var(--off); }
.sheet .head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 6px 16px; touch-action: none; }
.sheet .head h2 { margin: 3px 0 0; font-size: 17px; font-weight: 400; font-family: var(--zh); letter-spacing: .05em; }
.sheet .body { flex-grow: 1; min-height: 0; overflow: auto; padding: 0 16px 24px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet .seg { display: flex; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; }
.sheet .seg button { flex: 1; height: 34px; text-align: center; font-size: 13px; font-family: var(--zh); }
.sheet .seg button + button { border-left: 1px solid var(--line); }
.sheet .seg button[aria-selected="true"] { background: var(--ink); color: var(--card); }
.sheet .rowi { display: block; width: 100%; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.sheet .kv { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 6px; padding: 4px 2px 12px; }
.sheet .kv b { overflow: hidden; text-overflow: ellipsis; }
.sheet .kv span { display: block; font-family: var(--zh); font-size: 10.5px; color: var(--ink2); }
.sheet .kv b { display: block; margin-top: 3px; font-weight: 300; font-size: 17px; letter-spacing: -.3px; white-space: nowrap; }
.sheet pre { margin: 6px 0 0; padding: 6px 8px; background: var(--bg); font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--ink2); white-space: pre-wrap; word-break: break-all; }
.sheet .think { font-family: var(--zh); font-size: 14.5px; line-height: 1.85; color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet .think-div { margin: 14px 0 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink3); }
.sheet .star { width: 100%; margin-top: 12px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 3px; font-family: var(--zh); font-size: 13.5px; }
.sheet .star[aria-pressed="true"] { border-color: var(--vivid); color: var(--vivid); }

/* 月曆 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .wd { font-family: var(--mono); font-size: 9.5px; color: var(--ink3); padding: 6px 0; }
.cal button { position: relative; height: 44px; text-align: center; font-family: var(--mono); font-size: 13px; border-radius: 3px; }
.cal button:disabled { opacity: .3; }
.cal button i { position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--dot); }
.cal button[aria-current="date"] { background: var(--ink); color: var(--card); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

/* 看大圖 */
.viewer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, .86); animation: dimIn .2s ease both; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* 登入 */
.login { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.login form { width: 100%; max-width: 340px; padding: 22px 20px; }
.login input { width: 100%; height: 48px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 3px; background: var(--card); font-size: 16px; outline: none; }
.login button { width: 100%; height: 48px; margin-top: 12px; text-align: center; border-radius: 3px; background: var(--ink); color: var(--card); font-family: var(--zh); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .fresh-in { opacity: 1; }
}

/* 語音卡：四角小框角、播放鍵＋點陣波形＋秒數、一條細線、聽到的字；卡外一排語氣小標籤 */
.vc { position: relative; width: 248px; max-width: 100%; padding: 9px 11px 9px; border-radius: 3px; }
.vc.vc-her { background: var(--her); color: var(--her-ink); }
.vc.vc-his { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.vc-c { position: absolute; width: 7px; height: 7px; border: 0 solid currentColor; opacity: .55; pointer-events: none; }
.vc-c.tl { left: 3px; top: 3px; border-left-width: 1px; border-top-width: 1px; }
.vc-c.tr { right: 3px; top: 3px; border-right-width: 1px; border-top-width: 1px; }
.vc-c.bl { left: 3px; bottom: 3px; border-left-width: 1px; border-bottom-width: 1px; }
.vc-c.br { right: 3px; bottom: 3px; border-right-width: 1px; border-bottom-width: 1px; }
.vc.vc-her .vc-c { color: var(--her); opacity: .9; }
.vc-row { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 22%, transparent); }
.vc-play { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); color: inherit; }
.vc-play svg { fill: currentColor; }
.vc-play:disabled { opacity: .5; }
.vc-wave { flex-grow: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 1px; }
.vc-wave i { flex: 1; max-width: 3px; min-height: 4px; background-image: radial-gradient(circle at 50% 50%, currentColor 1.05px, transparent 1.35px); background-size: 3px 3.4px; background-position: center; opacity: .28; }
.vc-wave i.on { opacity: 1; filter: drop-shadow(0 0 1.5px currentColor); }
.vc-dur { flex-shrink: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; opacity: .85; }
.vc-text { padding-top: 6px; font-size: 12.5px; line-height: 1.45; letter-spacing: .02em; overflow-wrap: anywhere; white-space: pre-wrap; }
.vc-text.small { font-size: 11.5px; opacity: .8; }
.vc-text.dim { opacity: .65; font-size: 12px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 248px; }
.vc-tags.vc-her { justify-content: flex-end; }
.vc-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; line-height: 1.45; box-sizing: border-box; border: 1px solid var(--line2); border-radius: 3px; font-size: 11px; color: var(--ink2); background: var(--card); } /* 11-04 她：「你看那個框框有點跑了」——新耳朵的聲音描述比較長，會折成兩行，框要跟著長高，不能卡死 22px */
.vc-tag.ev { color: var(--vivid); border-color: color-mix(in srgb, var(--vivid) 45%, transparent); }

/* ---------- 頁面切換：藏起來的那頁不畫（visibility 也讓它停掉命中測試）---------- */
.page { position: absolute; inset: 0; }
.page.off { visibility: hidden; pointer-events: none; content-visibility: hidden; }

/* ---------- 首頁 ---------- */
.home { position: absolute; inset: 0; overflow: hidden; touch-action: manipulation; }
.home .rail { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.home .rail.l { left: 16px; } .home .rail.r { right: 16px; }
.cv-water, .cv-koi { position: absolute; left: 0; top: 0; pointer-events: none; }
.cv-water { z-index: 0; }
.cv-koi { z-index: 2; }
.cv-koi.top { z-index: 6; }
.home-head { position: absolute; left: 24px; right: 18px; top: calc(var(--sat) + 3px); z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; }
.home-head .mono { line-height: 1.6; }
.home-zh { font-size: 10.5px; letter-spacing: .1em; text-transform: none; }
.home-r { display: flex; align-items: flex-start; }
.home-r .ib { width: 36px; height: 36px; margin: -6px -6px 0 4px; }
.pond { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 49px); height: var(--pond-h, 284px); z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.pond-mood { margin-top: 3px; font-size: 13px; color: var(--vivid); max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 820px) { .home { --pond-h: 262px; } }
/* 玻璃卡：首頁不捲，但底下的水會動，毛玻璃每格都要重算 → 用半透明的實色代替 */
.glass { background: color-mix(in srgb, var(--card) 84%, transparent); border: 1px solid color-mix(in srgb, var(--card) 90%, transparent); box-shadow: inset 0 1px 0 var(--card), 0 24px 48px -26px rgba(30, 36, 60, .38); }
[data-tone="night"] .glass { border-color: var(--line2); box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .7); }
.together { position: absolute; left: 32px; right: 32px; top: calc(var(--sat) + 49px + var(--pond-h, 284px) - 36px); z-index: 3; border-radius: 22px; padding: 16px 18px 14px; }
.tg-top { display: flex; align-items: center; gap: 16px; }
.tg-led { position: relative; height: 58px; flex-shrink: 0; }
.tg-name { margin-top: 3px; font-size: 15px; font-weight: 400; color: var(--vivid); }
.tg-bar { position: relative; height: 32px; margin-top: 14px; }
.tg-ticks { position: absolute; left: 0; right: 0; top: 6px; height: 10px; background: repeating-linear-gradient(90deg, var(--line2) 0 1px, transparent 1px 6px); }
.tg-now { position: absolute; top: 0; width: 1.5px; height: 20px; background: var(--vivid); }
.tg-bar .mono { position: absolute; top: 22px; font-size: 8px; letter-spacing: .04em; }
.tg-l { left: 0; } .tg-r { right: 0; } .tg-t { color: var(--vivid); transform: translateX(-50%); }
.tg-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.k { display: flex; flex-direction: column; gap: 2px; }
.k .kc { font-size: 10.5px; color: var(--ink2); }
.k .kc.hot { color: var(--vivid); }
.k .n { font-family: var(--sans); font-weight: 300; font-size: 24px; letter-spacing: -.5px; line-height: 1; color: var(--vivid); }
.k .n small { font-family: var(--mono); font-size: 9.5px; margin-left: 3px; letter-spacing: .04em; color: var(--ink2); }
.latest { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) + 6px + 138px + 14px); height: 72px; z-index: 3;
  display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); text-align: left; }
.latest svg { stroke: var(--ink); flex-shrink: 0; }
.latest-t { margin-top: 5px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blink { display: inline-block; width: 5px; height: 5px; margin-left: 8px; vertical-align: 1px; background: var(--vivid); border-radius: 50%; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
.rooms { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) + 6px); z-index: 3; border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rooms a, .rooms button { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; color: var(--ink); text-decoration: none;
  box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); }
.rooms a:active, .rooms button:active { background: var(--line); }
.rooms b { font-family: var(--zh); font-weight: 400; font-size: 13.5px; letter-spacing: .1em; white-space: nowrap; }
.rooms .nw { margin-left: auto; color: var(--vivid); }
/* 11-06 重roll／改句／切版本 */
.her.rolled { opacity: .5; }
.her.rolled summary { list-style: none; cursor: pointer; font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.her.rolled summary::-webkit-details-marker { display: none; }
.her.rolled[open] summary { margin-bottom: 6px; }
.meta .reroll { color: var(--ink2); }
.meta .vers { display: inline-flex; align-items: center; gap: 2px; }
.meta .vers button { width: 24px; height: 22px; padding: 0; color: var(--ink2); }
.meta .vers button:disabled { opacity: .3; }
.meta .vers .mono { min-width: 28px; text-align: center; font-size: 10px; }
.her .edit-chip { margin-left: 8px; color: var(--ink3); font-size: 12px; padding: 0 4px; opacity: .55; }
.her .edit-chip:active { opacity: 1; }
.her.editing { align-self: flex-end; width: 92%; }
.her.editing textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 3px; background: var(--card); color: var(--ink); font-size: 16px; line-height: 1.5; resize: none; }
.her .edit-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; justify-content: flex-end; }
.her .edit-row .mono { margin-right: auto; }
.her .edit-row button { height: 30px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 3px; font-size: 13px; color: var(--ink); }
.her .edit-row button.go { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* 紙船（11-06 搬到首頁右上角）*/
.boat-ib { position: relative; background: none; border: none; color: var(--ink); cursor: pointer; }
.boat-dot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--vivid); }
.boat textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 3px; background: var(--card); color: var(--ink); font-size: 16px; line-height: 1.5; outline: none; resize: none; }
.boat-go { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.boat-go span { flex-grow: 1; font-size: 11.5px; line-height: 1.5; color: var(--ink3); }
.boat-go button { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 3px; background: var(--ink); color: var(--card); font-size: 13px; }
.boat-go button:disabled { opacity: .4; }
.boat-h { display: flex; justify-content: space-between; align-items: center; }
.boat-s { font-size: 11px; color: var(--vivid); }
.boat-c { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.boat-a { margin: 4px 0 0; font-size: 13px; color: var(--ink2); }
.dimp { font-size: 13px; color: var(--ink3); }
/* 池子左下：他下次醒來（玻璃卡蓋住池子最下面 36px，所以擺在那上面） */
.pond { position: absolute; }
.pond-wake { position: absolute; left: 16px; bottom: 50px; }
.pond-wt { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.pond-wt .n { font-family: var(--sans); font-weight: 300; font-size: 18px; letter-spacing: -.3px; color: var(--vivid); }
.pond-wt .zh { font-size: 11px; color: var(--ink2); }

/* ---------- 岸這邊 ---------- */
.shore-name { font-size: 16px; font-weight: 400; letter-spacing: .1em; display: inline-block; }
.chipb { display: inline-flex; align-items: center; height: 28px; padding: 0 9px; margin-left: 4px; border: 1px solid var(--line2); border-radius: 3px; flex-shrink: 0; letter-spacing: .1em; }
.chipb.vivid { color: var(--vivid); border-color: var(--vivid); }
.reply { width: 100%; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.rp-head { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px 6px; border-bottom: 1px solid var(--line); }
.rp-head .mono:last-child { letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.rp-body { padding: 9px 12px 10px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.rp-body > div { position: relative; margin: 0 0 6px; border-radius: 2px; -webkit-user-select: text; user-select: text; -webkit-touch-callout: none; }
.rp-body > div:last-child { margin-bottom: 0; }
.rp-body .md-h { font-weight: 500; margin-top: 4px; }
.rp-body .md-li { display: flex; gap: 6px; }
.rp-body .li-dot { flex-shrink: 0; color: var(--ink3); font-family: var(--mono); font-size: 11px; line-height: 22px; }
.rp-body .md-q { padding-left: 10px; border-left: 2px solid var(--dot2); color: var(--ink2); }
.rp-body pre { margin: 0 0 6px; padding: 6px 8px; background: var(--bg); font-family: var(--mono); font-size: 11px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
.rp-body .shot > span:not(.li-dot) { text-decoration: line-through wavy color-mix(in srgb, var(--vivid) 60%, transparent); opacity: .7; }
.mark { font-style: normal; margin-left: 4px; font-size: .8em; color: var(--vivid); }
.mark.heart { color: #C0573F; }
.lnk { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.rp-foot { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rp-foot .zh { flex-grow: 1; min-width: 0; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.her .bs { position: relative; }
.hole { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(16, 20, 30, .9) 0 26%, color-mix(in srgb, var(--vivid) 70%, transparent) 28% 40%, transparent 43%),
              repeating-conic-gradient(from 12deg, color-mix(in srgb, var(--vivid) 60%, transparent) 0 5deg, transparent 5deg 47deg); }
.recall { align-self: flex-end; width: 86%; margin-top: 6px; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.recall.good { box-shadow: 0 0 0 1px var(--vivid); }
.recall.miss { opacity: .78; }
.rc-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px 12px; }
.rc-head .mono { color: var(--vivid); text-transform: none; letter-spacing: .08em; }
.rc-votes { display: flex; gap: 4px; }
.rc-votes button { height: 26px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 3px; font-size: 11px; color: var(--ink2); }
.rc-votes button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.rc-note { display: block; width: calc(100% - 24px); margin: 0 12px 6px; height: 34px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 3px; background: var(--bg); color: var(--ink); font-size: 13px; outline: none; } /* 10-31 她：字怎麼變這麼大。viewport 有 maximum-scale=1，iPhone 不會自動放大，不用 16px */
.rc-row { display: flex; gap: 8px; width: 100%; padding: 6px 12px; border-top: 1px solid var(--line); text-align: left; }
.rc-tag { flex-shrink: 0; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: .04em; line-height: 18px; }
.rc-text { font-size: 12px; line-height: 1.5; color: var(--ink2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.rc-row.open .rc-text { -webkit-line-clamp: unset; }
.wake { align-self: center; max-width: 92%; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.wake summary { padding: 7px 12px; cursor: pointer; list-style: none; text-transform: none; }
.wake summary::-webkit-details-marker { display: none; }
.wake .zh { padding: 0 12px 10px; font-size: 12.5px; line-height: 1.6; color: var(--ink2); white-space: pre-wrap; }
.fail { width: 100%; padding: 10px 12px; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.6; color: var(--ink2); }
.fail b { color: #C0573F; font-weight: 400; }
.fail > button { margin-top: 8px; height: 30px; padding: 0 12px; border-radius: 3px; background: var(--ink); color: var(--card); font-size: 12.5px; }
.fail details { margin-top: 6px; } .fail summary { cursor: pointer; text-transform: none; }
.fail pre { margin: 4px 0 0; font-family: var(--mono); font-size: 10.5px; white-space: pre-wrap; word-break: break-all; color: var(--ink3); }
.gun { position: absolute; z-index: 9; display: flex; width: 260px; border-radius: 3px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line2), 0 14px 30px -14px rgba(30, 36, 60, .5); }
.gun button { flex: 1; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; box-shadow: inset -1px 0 0 var(--line); }
.gun button:first-child .zh { color: #C0573F; }
.gun .zh { font-size: 13.5px; }
.gun-dim { position: absolute; inset: 0; z-index: 8; }
.bullet { position: fixed; z-index: 90; pointer-events: none; font-size: 15px; font-weight: 500; color: #C0573F; will-change: transform; }
.heart-fx { position: fixed; z-index: 90; pointer-events: none; color: #C0573F; font-size: 16px; will-change: transform; }
.rec { position: absolute; left: 50%; bottom: calc(var(--sabk) + var(--comp-h) + 40px); transform: translateX(-50%); z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 200px; padding: 14px 20px; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px var(--line2), 0 14px 30px -14px rgba(30, 36, 60, .5); pointer-events: none; }
.rec .rec-t { font-size: 22px; color: var(--ink); letter-spacing: .08em; }
.rec .zh { font-size: 12px; color: var(--ink2); }
.rec.cancel { box-shadow: 0 0 0 1px #C0573F; } .rec.cancel .zh { color: #C0573F; }
.composer .hold { flex-grow: 1; min-width: 0; height: 50px; text-align: center; font-size: 15px; letter-spacing: .3em; color: var(--ink); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.composer .hold.on { color: var(--vivid); } .composer .hold.cancel { color: #C0573F; }
.sheet .rowi.day, .sheet .rowi.model { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 4px; }
.sheet .rowi.day.on .zh, .sheet .rowi.model.on b { color: var(--vivid); }
.sheet .rowi.model b { font-family: var(--sans); font-weight: 400; font-size: 15px; }
.sheet .rowi.shelf { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.sheet .rowi.shelf b { font-weight: 400; font-size: 15px; letter-spacing: .08em; }
.sheet .rowi.shelf span { font-size: 12px; color: var(--ink3); }
.wide-btn { width: 100%; height: 44px; border-radius: 3px; background: var(--ink); color: var(--card); font-size: 14px; text-align: center; }
.wide-btn:disabled { opacity: .5; }
.sheet .rowi pre.err { color: #C0573F; }
.shore .chat-head .status { letter-spacing: .02em; }
.shore .chat-head .who { padding-left: 0; }
.shore .chipb { height: 26px; padding: 0 5px; margin-left: 3px; letter-spacing: .02em; } /* 11-04 頁首多了放大鏡，按鈕收窄讓狀態列的快取露出來 */
.shore .chat-head .ib:last-child { width: 38px; }
.shore .chat-head .ib.find { width: 30px; } /* 11-04 頁首放回放大鏡（舊版 10-17 有），小一點，不擠名字 */
.her .hole { background: radial-gradient(circle, rgba(14, 18, 28, .92) 0 26%, rgba(255, 255, 255, .85) 28% 40%, transparent 43%),
  repeating-conic-gradient(from 12deg, rgba(255, 255, 255, .7) 0 5deg, transparent 5deg 47deg); }
.gun button:nth-child(2) .zh { color: #C0573F; }
.sheet .stats { margin: 0 0 8px; text-transform: none; letter-spacing: .06em; color: var(--ink3); }

/* ---------- 捲軸（右邊那條框線）---------- */
.rail { position: absolute; right: 16px; width: 1px; z-index: 4; }
.rail-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.rail-ticks i { position: absolute; right: -3px; width: 7px; height: 1px; background: var(--ink3); opacity: .55; }
.rail-run { position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--vivid); animation: railrun 1.2s linear infinite; }
@keyframes railrun { from { top: 0 } to { top: calc(100% - 5px) } }
.rail-move { position: absolute; left: 0; top: 0; }
.rail-knob { position: absolute; left: -6px; top: 0; width: 13px; height: 13px; background: var(--card); border: 1px solid var(--vivid); touch-action: none; cursor: grab; will-change: transform; }
.rail-knob::before { content: ""; position: absolute; inset: -14px -12px; } /* 手指點得到 */
.rail-lbl { position: absolute; right: 12px; top: -2px; padding: 1px 5px; font-size: 9px; letter-spacing: .06em; color: var(--card); background: var(--vivid); white-space: nowrap; pointer-events: none; will-change: transform; }
.rail-dim { position: fixed; inset: 0; z-index: 5; }
.rail-menu { position: absolute; right: 12px; z-index: 6; display: flex; flex-direction: column; width: 136px; border-radius: 3px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line2), 0 14px 28px -14px rgba(30, 36, 60, .5); animation: railpop .18s ease-out both; }
.rail-menu button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; font-size: 13px; color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
.rail-menu button:last-child { box-shadow: none; }
@keyframes railpop { from { opacity: 0; transform: scale(.95) } to { opacity: 1; transform: none } }
.rail-note { position: absolute; right: 14px; bottom: 6px; padding: 5px 10px; font-size: 12px; white-space: nowrap; background: var(--card); box-shadow: 0 0 0 1px var(--line2); border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .rail-run { animation: none; top: 50%; } }

/* 鍵盤開著：底部橫線被鍵盤蓋住，聊天頁不用再留那一截；輸入列貼近鍵盤 */
:root { --sabk: var(--sab); }
html.kb { --sabk: 0px; --comp-gap: -6px; } /* iOS 26 的鍵盤上緣有一圈透明的邊，輸入列往下塞一點才貼得到工具列 */

/* ---------- 他的心裡 ---------- */
.inner { position: absolute; inset: 0; overflow: hidden; }
.inner > .panel:not(.chat-head), .inner .in-cards { position: absolute; left: 16px; right: 16px; }
.in-now { top: calc(var(--sat) + 76px); height: clamp(150px, 23vh, 196px); overflow: hidden; touch-action: manipulation; }
.in-now canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.in-now-t { position: absolute; left: 14px; top: 12px; z-index: 1; }
.in-now-t .zh { margin-top: 3px; font-size: 13px; color: var(--vivid); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-mood { top: calc(var(--sat) + 88px + clamp(150px, 23vh, 196px)); height: 212px; display: block; text-align: left; cursor: pointer; }
.in-mood-h { display: flex; justify-content: space-between; padding: 12px 14px 0; }
.meters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 14px 8px 0; }
.meter { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.m-col { position: relative; display: grid; grid-template-rows: repeat(12, 4px); gap: 3px; width: 24px; justify-items: center; }
.m-col i { width: 4px; height: 4px; border-radius: 50%; background: var(--off); }
.m-col i.on { background: var(--dot); }
.m-col i.top { background: var(--vivid); box-shadow: 0 0 0 2px color-mix(in srgb, var(--vivid) 20%, transparent); }
.m-base { position: absolute; left: -6px; right: -6px; height: 1px; background: var(--ink); margin-bottom: -2px; }
.m-name { font-size: 12px; font-weight: 400; white-space: nowrap; }
.m-name .mono { letter-spacing: 0; }
.in-mood-l { position: absolute; left: 14px; right: 14px; bottom: 11px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-cards { top: calc(var(--sat) + 312px + clamp(150px, 23vh, 196px)); bottom: calc(var(--sab) + 12px); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) 50px; gap: 8px; }
.card2 { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 12px; text-align: left; min-height: 0; color: var(--ink); text-decoration: none; overflow: hidden; }
.card2.slim { flex-direction: row; align-items: center; }
.card2 .c-t { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 400; }
.card2 .c-p { font-size: 12px; line-height: 1.6; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card2 .c-list { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.card2 .c-li .heat-lock { font-size: 8.5px; }
.card2 .c-li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card2 .c-li .zh { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card2 .c-f { display: flex; justify-content: space-between; width: 100%; }
.mono.vivid, .vivid { color: var(--vivid); }
.heat { display: inline-flex; gap: 2px; flex-shrink: 0; }
.heat i { width: 6px; height: 6px; background: var(--off); }
.heat i.on { background: var(--vivid); }
.heat-lock { letter-spacing: .06em; color: var(--vivid); }
/* 紙上 */
.sheet .eye-head { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.sheet .eye-head .zh { font-size: 14.5px; font-weight: 400; }
.sheet .eye-group { margin: 14px 2px 2px; text-transform: none; letter-spacing: .1em; }
.sheet .eye-body { padding: 4px 2px 12px; font-size: 14px; line-height: 1.8; color: var(--ink2); }
.sheet .eye-body p { margin: 0 0 8px; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fchip { height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 3px; font-size: 12.5px; }
.fchip.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.fchip .mono { color: inherit; letter-spacing: .04em; }
.sheet .rc { display: flex; flex-direction: column; gap: 5px; padding: 11px 2px; }
.sheet .rc-h { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.sheet .rc-t { font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet .rc.open .rc-t { -webkit-line-clamp: unset; }
.sheet .rc-n { font-size: 12.5px; color: var(--ink3); }
.sheet .more { text-align: center; font-size: 13px; color: var(--vivid); }
.sheet .round { display: flex; flex-direction: column; gap: 6px; padding: 10px 2px; }
.sheet .round-h { display: flex; align-items: center; gap: 8px; }
.sheet .round-h .zh { font-size: 13px; }
.sheet .round-c { display: flex; gap: 4px; flex-wrap: wrap; }
.mchip { display: inline-flex; align-items: baseline; gap: 3px; height: 22px; padding: 0 7px; border: 1px solid var(--line2); border-radius: 3px; font-size: 11.5px; color: var(--ink2); }
.mchip.up { color: var(--vivid); border-color: color-mix(in srgb, var(--vivid) 45%, transparent); }
.mchip small { font-size: 10px; color: var(--ink3); }
.sheet .day-sum { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 10px 2px; }
.sheet .day-sum .zh { font-size: 13px; }
.sheet .how p { margin: 0 0 12px; font-size: 14px; line-height: 1.85; color: var(--ink2); }

/* ---------- 日記本 ---------- */
.diary { position: absolute; inset: 0; overflow: hidden; }
.diary .dcol { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 76px); bottom: calc(var(--sab) + 12px); display: flex; flex-direction: column; gap: 10px; }
.diary .dcol > * { flex-shrink: 0; }
.ib.sm { width: 36px; height: 36px; }
.ib:disabled { opacity: .3; }
.dcal { padding: 4px 8px 8px; }
.dcal-h { display: flex; justify-content: space-between; align-items: center; }
.dcal-h .mono { letter-spacing: .1em; }
.dcal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.dcal-g .wd { text-align: center; font-size: 10.5px; color: var(--ink3); padding: 2px 0 4px; }
.dd { position: relative; height: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 3px; }
.dd .mono { font-size: 10.5px; letter-spacing: .02em; color: var(--ink3); text-transform: none; }
.dd i { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.dd.talk i { background: var(--off); }
.dd.has i { background: var(--vivid); }
.dd.has .mono { color: var(--ink); }
.dd.today { box-shadow: inset 0 0 0 1px var(--vivid); }
.dd:disabled { cursor: default; }
.diary .dcol > .dlatest { flex: 1 1 92px; min-height: 92px; max-height: 210px; }
.dlatest { display: flex; flex-direction: column; gap: 6px; padding: 11px 14px; text-align: left; overflow: hidden; }
.dl-h { display: flex; justify-content: space-between; width: 100%; }
.dl-p { font-size: 13px; line-height: 1.6; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.dalbum { padding: 10px 12px 12px; }
.da-h { display: flex; justify-content: space-between; align-items: center; }
.da-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.ph { position: relative; aspect-ratio: 1; background: var(--off); overflow: hidden; border-radius: 2px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 104px; }
.dcards .c-t { margin-top: 0; }
/* 紙上 */
.entry-body { font-size: 15px; line-height: 1.95; }
.entry-sum { font-size: 13.5px; line-height: 1.8; color: var(--ink2); padding: 10px 12px; background: var(--bg); border-radius: 3px; }
.md-text p { margin: 0 0 10px; } .md-text h4 { margin: 14px 0 6px; font-size: 1em; font-weight: 500; } .md-text .q { padding-left: 10px; border-left: 2px solid var(--dot2); color: var(--ink2); }
.srch { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 3px; color: var(--ink2); }
.srch input { flex-grow: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; color: var(--ink); }
.sheet .hit { display: flex; flex-direction: column; gap: 4px; padding: 10px 2px; }
.sheet .hit .zh { font-size: 13px; line-height: 1.6; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.photo-big { display: block; width: 100%; }
.photo-big img { width: 100%; display: block; border-radius: 3px; }
.ph.big { aspect-ratio: 4 / 3; width: 100%; }
.ph-sec { padding: 10px 0; border-top: 1px solid var(--line); }
.ph-sec p { margin: 5px 0 0; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.sheet .quote { padding: 10px 2px; }
.sheet .quote p { margin: 0; font-size: 14px; line-height: 1.7; }
.q-f { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.q-f button { height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 3px; font-size: 12px; color: var(--ink2); }
.sheet .rcp, .sheet .sc { display: flex; flex-direction: column; gap: 5px; padding: 11px 2px; }
.rcp-h { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.rcp-t { font-size: 13px; line-height: 1.6; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-l { font-size: 12.5px; line-height: 1.7; color: var(--ink2); }
.rc-item { padding: 10px 0; border-top: 1px solid var(--line); }
.rc-item p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.stars { display: flex; gap: 6px; margin: 2px 0 6px; }
.stars button { width: 26px; height: 26px; font-size: 13px; color: var(--off); text-align: center; }
.stars button.on { color: var(--vivid); }
.line-in { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line2); background: none; outline: none; font-size: 16px; color: var(--ink); resize: none; }
.rc-btns, .confirm { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.rc-btns button, .confirm button { height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 3px; font-size: 13px; }
.rc-btns .seal, .confirm button:first-of-type { background: var(--ink); color: var(--card); border-color: var(--ink); }
.confirm span { flex-basis: 100%; font-size: 13px; color: var(--ink2); }
.scent-fr { width: 100%; height: 60vh; border: 0; border-radius: 3px; background: #fff; display: block; }

/* 檐廊 */
.porch { position: absolute; inset: 0; overflow: hidden; }
.porch .dcol { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 76px); bottom: calc(var(--sab) + 12px); display: flex; flex-direction: column; gap: 10px; }
.porch .dcol > * { flex-shrink: 0; }
.po-scene { position: relative; height: 168px; overflow: hidden; }
.po-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.po-sky { position: absolute; left: 12px; bottom: 18px; font-size: 10px; line-height: 1.55; color: var(--ink2); background: var(--card); padding: 2px 4px 2px 0; }
.po-strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; }
.po-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0 4px; border-radius: 2px; opacity: .32; }
.po-day.has { opacity: 1; }
.po-day .mono { font-size: 11px; color: var(--ink); }
.po-day .zh { font-size: 9px; color: var(--ink3); }
.po-day.on { background: var(--ink); }
.po-day.on .mono, .po-day.on .zh { color: var(--card); }
.po-seg { display: flex; box-shadow: 0 0 0 1px var(--line); background: var(--card); }
.po-seg button { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px; height: 38px; align-items: center; }
.po-seg button + button { border-left: 1px solid var(--line); }
.po-seg .mono { font-size: 9.5px; color: var(--ink3); }
.po-seg .zh { font-size: 13px; color: var(--ink2); }
.po-seg button[aria-selected="true"] { background: var(--ink); }
.po-seg button[aria-selected="true"] .mono, .po-seg button[aria-selected="true"] .zh { color: var(--card); }
.porch .dcol > .po-body { flex: 1 1 auto; min-height: 0; padding: 12px; overflow: hidden; display: flex; flex-direction: column; }
.po-today { display: flex; gap: 12px; min-height: 0; flex: 1; }
.po-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.po-lnk { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.po-lnk .mono { font-size: 9.5px; color: var(--ink3); }
.po-ttl { font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.po-poemline { font-size: 14px; line-height: 1.6; color: var(--ink); font-family: var(--kai, var(--zh)); }
.po-ev { font-size: 12px; line-height: 1.55; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* 網點：灰階＋圓點遮罩 */
.dotimg { display: block; flex-shrink: 0; position: relative; overflow: hidden; background: var(--card); }
.dotimg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35) brightness(.92);
  -webkit-mask-image: radial-gradient(circle, #000 0 1px, transparent 1.25px); mask-image: radial-gradient(circle, #000 0 1px, transparent 1.25px);
  -webkit-mask-size: 3px 3px; mask-size: 3px 3px; }
.dotimg::after { content: ''; position: absolute; inset: 0; background: var(--dot); mix-blend-mode: screen; opacity: .55; pointer-events: none; }
.dotimg.big { width: 132px; height: 176px; box-shadow: 0 0 0 1px var(--line); }
.dotimg.sm { width: 64px; height: 64px; box-shadow: 0 0 0 1px var(--line); }
.dotimg.empty { background: repeating-radial-gradient(circle at 1.5px 1.5px, var(--off) 0 1px, transparent 1.3px 3px); background-size: 3px 3px; }
.po-board { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; flex: 1; }
.po-note .po-nh { display: flex; align-items: center; gap: 6px; }
.po-note .po-nh .zh { font-size: 12.5px; color: var(--ink); }
.po-note .po-nh .mono { font-size: 10px; color: var(--ink3); margin-left: auto; }
.po-nt { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.po-note.full { padding: 12px 0; border-bottom: 1px solid var(--line); }
.po-note.full .po-nt { -webkit-line-clamp: unset; display: block; }
.po-ni { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.po-who { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; }
.po-who.v { background: var(--vivid); }
.po-who.s { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dot); border-radius: 1px; }
.po-more { align-self: flex-end; margin-top: auto; padding-top: 8px; font-size: 11px; }
.po-arch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.po-arch .card2 { min-height: 0; }
.po-src { margin-bottom: 14px; }
.po-link { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.po-sum { font-size: 12px; color: var(--ink2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.po-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.po-gi .dotimg { width: 100%; aspect-ratio: 3 / 4; box-shadow: 0 0 0 1px var(--line); }
.po-gi .mono { display: block; margin-top: 6px; font-size: 10px; color: var(--ink3); }
.po-gt { font-size: 12.5px; color: var(--ink); }
.po-art .po-full-img { display: block; width: 100%; margin-bottom: 12px; }
.po-art .po-full-img img { width: 100%; height: auto; display: block; }
.po-poem .po-full { font-size: 15px; line-height: 1.9; font-family: var(--kai, var(--zh)); }

/* 足跡 */
.steps { position: absolute; inset: 0; overflow: hidden; }
.steps .dcol { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 76px); bottom: calc(var(--sab) + 12px); display: flex; flex-direction: column; gap: 10px; }
.steps .dcol > * { flex-shrink: 0; }
.st-tl { padding: 6px 12px 10px; }
.st-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.st-nav .mono { font-size: 10.5px; color: var(--ink2); }
.st-lane { display: flex; align-items: center; height: 22px; }
.st-lane .zh { width: 34px; flex-shrink: 0; font-size: 11px; color: var(--ink3); }
.st-axis { position: relative; flex: 1; height: 100%; background: radial-gradient(circle, var(--off) 0 1px, transparent 1.3px) 0 50% / 6px 6px repeat-x; }
.st-dot { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--dot); }
.st-dot.wake { background: var(--vivid); }
.st-dot.x { border-radius: 1px; }
.st-dot.room { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dot); }
.st-dot.lock { box-shadow: inset 0 0 0 1.5px var(--vivid); background: transparent; }
.st-now { position: absolute; top: 2px; bottom: 2px; width: 1px; background: var(--vivid); }
.st-ticks { display: flex; justify-content: space-between; margin-left: 34px; font-size: 9px; color: var(--ink3); }
.steps .dcol > .st-feed { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 4px 12px 10px; display: flex; flex-direction: column; }
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } /* 11-02 她：醒來太小、太多東西擠在這——九格收成 3×3 */
.st-cards .card2 { height: 62px; padding: 7px 10px; gap: 1px; text-decoration: none; color: var(--ink); }
.st-cards .card2 .c-t { font-size: 14px; }
.st-cards .card2 .mono { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-p { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-note { font-size: 12px; line-height: 1.6; margin: 0 0 10px; }
.st-wake .mono { margin-top: 6px; }

/* 日子 */
.dayspg { position: absolute; inset: 0; overflow: hidden; }
.dayspg .dcol { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 76px); bottom: calc(var(--sab) + 12px); display: flex; flex-direction: column; gap: 10px; }
.dayspg .dcol > * { flex-shrink: 0; }
.dy-top { display: flex; align-items: center; gap: 14px; padding: 14px 12px; }
.dy-led { position: relative; height: 46px; flex-shrink: 0; }
.dy-name { font-size: 17px; margin-top: 2px; color: var(--ink); }
.dy-work { font-size: 12px; color: var(--ink2); margin-top: 4px; }
.dy-cal .dy-d { position: relative; }
.dy-d i { width: 6px; height: 6px; border-radius: 50%; }
.dy-d.work i { background: var(--dot); }
.dy-d.off i { background: transparent; box-shadow: inset 0 0 0 1.3px var(--dot); }
.dy-d.flip i { background: var(--vivid); box-shadow: none; }
.dy-d.flip.off i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--vivid); }
.dy-d em { position: absolute; left: 0; right: 0; bottom: -1px; font-style: normal; font-size: 8px; color: var(--ink3); text-align: center; white-space: nowrap; overflow: hidden; }
.dy-d.busy { opacity: .4; }
.dy-leg { display: flex; align-items: center; gap: 12px; padding: 8px 2px 0; }
.dy-leg .zh { font-size: 11px; color: var(--ink3); display: inline-flex; align-items: center; gap: 4px; }
.dy-leg button { margin-left: auto; font-size: 10.5px; }
.dy-leg .k { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dy-leg .k.work { background: var(--dot); }
.dy-leg .k.off { box-shadow: inset 0 0 0 1.3px var(--dot); }
.dy-leg .k.flip { background: var(--vivid); }
.dayspg .dcol > .dy-ann { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 10px 12px; display: flex; flex-direction: column; }
.dy-list { overflow-y: auto; min-height: 0; }
.dy-a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; text-align: left; }
.dy-an { font-size: 14px; color: var(--ink); }
.dy-a .mono { font-size: 10px; color: var(--ink3); grid-row: 2; }
.dy-ai { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 13px; color: var(--vivid); }
.dy-form { display: flex; flex-direction: column; gap: 6px; }
.dy-form label { margin-top: 8px; }
.dy-in { width: 100%; box-sizing: border-box; padding: 10px; font-size: 16px; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line2); border: 0; border-radius: 3px; }
.dy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dy-wd { display: flex; gap: 6px; }
.dy-wd button { flex: 1; height: 36px; box-shadow: 0 0 0 1px var(--line2); border-radius: 3px; font-size: 13px; color: var(--ink2); }
.dy-wd button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.dy-btn { margin-top: 16px; height: 44px; background: var(--ink); color: var(--card); border-radius: 3px; font-size: 14px; }
.dy-btn.ghost { background: transparent; color: #C0573F; box-shadow: 0 0 0 1px var(--line2); }
.dy-cal .dd { height: 40px; justify-content: flex-start; padding-top: 4px; gap: 3px; }
.dy-d em { position: static; font-size: 8px; line-height: 1; }
.dy-wd button, .dy-btn, .dy-form .seg button { display: flex; align-items: center; justify-content: center; text-align: center; }
.dayspg .dy-a { display: grid; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
/* 長按他一段叫出噠噠噠：不讓 iPhone 順便把整頁選成藍色（要複製用選單裡的複製） */
.shore .reply [class^="md-"], .shore .reply [class*=" md-"] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.shore .reply pre, .shore .reply code { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.code-wrap { position: relative; }
.code-copy { position: absolute; top: 4px; right: 4px; z-index: 1; height: 26px; padding: 0 9px; font-size: 10px; letter-spacing: .08em; color: var(--ink2); background: var(--card); box-shadow: 0 0 0 1px var(--line2); border-radius: 3px; }
.code-copy.ok { color: var(--vivid); }

/* 岸的行事曆、醒來那則 */
.shore .wake summary .mono { color: var(--ink3); font-size: 10px; }
.ag-next { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.ag-next .mono { font-size: 10px; color: var(--ink3); }
.ag-next b { font-family: var(--mono); font-weight: 400; font-size: 20px; color: var(--vivid); }
.ag-next .zh { font-size: 13.5px; color: var(--ink); }
.ag-seg { margin-bottom: 8px; }
.ag-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.ag-grid .wd { text-align: center; font-size: 10.5px; color: var(--ink3); padding: 2px 0 4px; }
.ag-c { height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: 4px; border-radius: 3px; }
.ag-c .mono { font-size: 11px; color: var(--ink); }
.ag-c.off .mono { color: var(--ink3); }
.ag-c em { font-style: normal; font-size: 8px; line-height: 1; color: var(--ink3); white-space: nowrap; overflow: hidden; max-width: 100%; }
.ag-c.today { box-shadow: inset 0 0 0 1px var(--vivid); }
.ag-c.sel { background: var(--ink); }
.ag-c.sel .mono, .ag-c.sel em { color: var(--card); }
.ag-dots { display: flex; gap: 2px; margin-top: auto; padding-bottom: 4px; }
.ag-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--vivid); }
.ag-dots i.shore { background: transparent; box-shadow: inset 0 0 0 1.2px var(--dot); border-radius: 1px; }
.ag-c.sel .ag-dots i { background: var(--card); }
.ag-c.sel .ag-dots i.shore { background: transparent; box-shadow: inset 0 0 0 1.2px var(--card); }
.ag-day { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.ag-day > .mono, .ag-sec { font-size: 10px; color: var(--ink3); margin: 0 0 6px; }
.ag-sec { margin-top: 14px; }
.ag-fixed { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ag-fixed .mono { font-size: 12px; color: var(--ink); }
.ag-fixed .mono.past { color: var(--ink3); }
.ag-fixed em { font-style: normal; font-size: 11px; color: var(--ink3); }
.ag-it { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ag-h { display: flex; align-items: baseline; gap: 6px; }
.ag-h .mono { font-size: 10.5px; color: var(--ink3); flex-shrink: 0; }
.ag-w { width: 7px; height: 7px; border-radius: 50%; background: var(--vivid); flex-shrink: 0; align-self: center; }
.ag-w.shore { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dot); border-radius: 1px; }
.ag-t { font-size: 14px; color: var(--ink); }
.ag-n { font-size: 12px; line-height: 1.6; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.ag-n.open { display: block; }
.ag-m { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink3); }
.ag-x { margin-left: auto; font-size: 11px; color: var(--ink3); padding: 2px 0 2px 10px; }
.ag-x.sure { color: #C0573F; }
.ag-addb { margin-top: 12px; font-size: 11px; }
.ag-add { margin-top: 6px; }
.ag-chk { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 10px; }

/* 足跡的那天：左邊時間＋點連成一條線，右邊小標跟字 */
.st-it { position: relative; display: grid; grid-template-columns: 38px 14px 1fr; align-items: start; width: 100%; padding: 9px 0; text-align: left; }
.st-it + .st-it { border-top: 1px solid var(--line); }
.st-tm { font-size: 10.5px; color: var(--ink3); padding-top: 2px; }
.st-k { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--dot); justify-self: center; }
.st-k.wake { background: var(--vivid); }
.st-k.x { border-radius: 1px; }
.st-k.room { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dot); }
.st-k.lock { background: transparent; box-shadow: inset 0 0 0 1.5px var(--vivid); }
.st-bd { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 6px; }
.st-tag { font-size: 10.5px; color: var(--ink3); letter-spacing: .04em; }
.st-t { font-size: 13px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-it.quiet .st-t { color: var(--ink3); -webkit-line-clamp: 1; }
.st-it.quiet .st-k { background: transparent; box-shadow: inset 0 0 0 1.5px var(--vivid); }
.chat-head .status.s2 { margin-top: 1px; }
.st-it > * { align-self: start; }
.st-tm, .st-tag { line-height: 16px; display: block; } .st-k { margin-top: 4.5px; }
.code-wrap pre { padding-top: 34px !important; }
.code-copy { top: 6px; right: 6px; }
.shore .reply code.ic { font-family: var(--mono); font-size: .9em; padding: 1px 5px; margin: 0 1px; border-radius: 2px; background: var(--off); color: var(--ink); cursor: pointer; -webkit-user-select: text; user-select: text; }
.shore .reply code.ic.ok { color: var(--vivid); }
.cal button.old { color: var(--ink3); }
.cal button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.cal-foot { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.cal-foot button { font-size: 11px; flex-shrink: 0; }
.cal-foot .zh { font-size: 11px; color: var(--ink3); }

/* ---------- 放映廳（點陣畫布 Screening.dc.html）：#screen 起頭，class 一律 ys- ---------- */
.ys, .ys-rd { position: absolute; inset: 0; overflow: hidden; }
.ys-head .ys-ttl { font-size: 17px; font-weight: 400; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys-head .ys-sub { margin-top: 2px; font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys-head .ys-r { color: var(--ink); letter-spacing: .06em; padding-right: 12px; flex-shrink: 0; }
.ys-col { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 74px); bottom: 0; padding-bottom: calc(var(--sab) + 16px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 12px; }
.ys-col > * { flex-shrink: 0; }
.ys-col.pad-b { padding-bottom: calc(var(--sab) + 110px); }
.ys-seg { display: flex; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; background: var(--card); }
.ys-seg button { flex: 1; height: 32px; text-align: center; font-size: 13px; color: var(--ink); }
.ys-seg button + button { border-left: 1px solid var(--line); }
.ys-seg button[aria-selected="true"], .ys-seg button[aria-checked="true"] { background: var(--ink); color: var(--card); }
.ys-seg button.w-vero[aria-checked="true"] { background: var(--vivid); }
.ys-seg button.w-shore[aria-checked="true"] { background: var(--dot); }
.ys-seg.sm button { height: 28px; font-size: 12px; }
.ys-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 3px; font-size: 14px; letter-spacing: .08em; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.ys-btn.pri { background: var(--dot); color: var(--card); }
.ys-btn.gh { border: 1px solid var(--line2); background: var(--card); color: var(--ink); }
.ys-btn.dimc { color: var(--ink3); }
.ys-btn.wide { width: 100%; }
.ys-btn.big { height: 48px; }
.ys-btn:disabled { opacity: .4; }
.ys-chip { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 12px; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.ys-chip.pri { background: var(--dot); color: var(--card); }
.ys-chip.gh { border: 1px solid var(--line2); color: var(--ink); }
.ys-chip.more { margin-left: auto; padding: 0 4px; color: var(--ink2); }
.ys-field { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 3px; background: var(--bg); font-size: 16px; color: var(--ink); outline: none; }
textarea.ys-field { height: auto; padding: 9px 12px; resize: none; line-height: 1.5; }
.ys-inrow { display: flex; gap: 8px; align-items: flex-end; }
.ys-two { display: flex; gap: 8px; }
.ys-two > * { flex: 1; }
.ys-bar { display: flex; align-items: center; gap: 12px; }
.ys-q { font-size: 11.5px; line-height: 1.5; color: var(--vivid); }
.ys-empty { padding: 8px 2px; line-height: 1.7; }

/* 封面：書架上網點、點進去原色 */
.ys-cv { position: relative; display: block; flex-shrink: 0; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ys-cv:not(.dotimg) img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ys-cv.rc { width: 54px; height: 72px; margin-top: 3px; }
.ys-cv.li { width: 42px; height: 56px; }
.ys-cv.hero { width: 68px; height: 90px; }
.ys-cv.hero.sm { width: 63px; height: 84px; }
.ys-whotag { position: absolute; left: 5px; bottom: 5px; z-index: 1; padding: 1px 6px; background: var(--card); border-radius: 2px; font-size: 10.5px; border: 1px solid; }
.ys-whotag.w-vero { color: var(--vivid); } .ys-whotag.w-shore { color: var(--dot); }

/* 推薦卡 */
.ys-rec { display: flex; gap: 12px; padding: 10px 12px; }
.ys-rec-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ys-rec-h { display: flex; justify-content: space-between; width: 100%; }
.ys-rec-t { margin-top: 2px; font-size: 14px; font-weight: 400; }
.ys-rec-t span { font-size: 11px; color: var(--ink3); font-weight: 300; }
.ys-rec-w { margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys-rec-a { display: flex; gap: 6px; margin-top: 8px; }

/* 書架：一頁六本 */
.ys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.ys-book { display: flex; flex-direction: column; gap: 5px; min-width: 0; text-align: left; }
.ys-book .ys-cv { width: 100%; aspect-ratio: 3 / 4; }
.ys-bt { display: block; font-size: 12.5px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ys-bs { display: block; margin-top: -4px; font-size: 10.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys-pager { display: flex; justify-content: center; align-items: center; gap: 14px; height: 30px; }
.ys-pager button { min-width: 30px; height: 30px; font-size: 13px; color: var(--ink); }
.ys-pager button.zh { font-size: 12.5px; }
.ys-pager button:disabled { color: var(--off); }
.ys-pager .mono { color: var(--ink); letter-spacing: .06em; }
.ys-texts { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; }
.ys-texts > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ys-tt { margin-top: 3px; font-size: 14.5px; font-weight: 400; color: var(--ink); }
.ys-ts { margin-top: 1px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys-play { padding: 14px; }
.ys-play p { margin: 8px 0 0; line-height: 1.7; }

/* 清單列（找漫畫、片庫） */
.ys-list, .ys-mv { padding: 0; }
.ys-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; text-align: left; color: var(--ink); }
.ys-row + .ys-row { border-top: 1px solid var(--line); }
.ys-row:disabled { opacity: .55; }
.ys-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ys-mt { font-size: 14px; font-weight: 400; color: var(--ink); }
.ys-ms { margin-top: 2px; font-size: 11.5px; color: var(--ink2); }
.ys-have { margin-top: 1px; font-size: 11px; color: var(--dot); }
.ys-acct { font-size: 12px; color: var(--ink2); padding: 0 2px; }
.ys-acct button { margin-left: 4px; }
.ys-login, .ys-addmv { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.ys-file { position: relative; overflow: hidden; }
.ys-file input { position: absolute; inset: 0; opacity: 0; }
.ys-last { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 12px 14px; text-align: left; }
.ys-lt { margin-top: 6px; font-size: 16px; font-weight: 400; color: var(--ink); }
.ys-ls { margin-top: 2px; font-size: 11.5px; color: var(--ink3); }
.ys-ln { margin-top: 8px; font-size: 12px; color: var(--ink2); }
.ys-lab { padding: 0 2px; margin-bottom: -6px; }

/* 一部、章節 */
.ys-hero { display: flex; gap: 12px; padding: 10px 12px; }
.ys-hero-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ys-hero-b .ys-ms { margin-top: -4px; }
.ys-brief { font-size: 11.5px; line-height: 1.6; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ys-whorow { display: flex; align-items: center; gap: 12px; }
.ys-whorow > .zh { font-size: 13px; flex-shrink: 0; }
.ys-whorow .ys-seg { flex: 1; }
.ys-chs { padding: 10px 12px 12px; }
.ys-chs-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ys-chs-h > .zh:first-child { font-weight: 400; }
.ys-chs-h button { font-size: 12px; color: var(--ink2); }
.ys-chs-h button.vivid { color: var(--vivid); }
.ys-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 6px; margin-top: 10px; }
.ys-ch.w2 { grid-column: span 2; } .ys-ch.w5 { grid-column: 1 / -1; }
.ys-ch { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 30px; padding: 0 2px; border-radius: 3px; border: 1px solid var(--line2); font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.ys-ch.two { height: 40px; line-height: 1.2; }
.ys-ch small { font-size: 9.5px; color: var(--ink3); }
.ys-ch.sel { background: var(--ink); color: var(--card); border-color: var(--ink); }
.ys-ch.have { border-color: color-mix(in srgb, var(--dot) 55%, transparent); color: var(--dot); }
.ys-ch.have.read { opacity: .5; }
.ys-ch.wait { color: var(--vivid); border-style: dashed; }
.ys-ch.bad { color: #C0573F; border-color: rgba(192, 87, 63, .45); }
.ys-foot { position: absolute; left: 16px; right: 16px; bottom: 0; padding: 10px 0 calc(var(--sab) + 10px); display: flex; flex-direction: column; gap: 6px; align-items: center; background: linear-gradient(to bottom, transparent, var(--bg) 14px); }
.ys-foot .dimp { font-size: 11.5px; }
.ys-flow { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink); padding: 0 2px; }
.ys-flow input { margin: 3px 0 0; accent-color: var(--dot); }
.ys-flow em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink3); }
.ys-flow.center { justify-content: center; }

/* 小紙、提示 */
.ys-cf p { margin: 4px 2px 16px; font-size: 14.5px; line-height: 1.7; }
.ys-tip { position: fixed; left: 50%; bottom: calc(var(--sab) + 90px); z-index: 70; transform: translateX(-50%); max-width: calc(100% - 48px); padding: 9px 14px; border-radius: 3px; background: var(--ink); color: var(--card); font-size: 13px; line-height: 1.5; animation: dimIn .2s ease both; }
.ys-txs .ys-tx { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ys-tx-t { font-size: 14.5px; color: var(--ink); }
.ys-tx-s { font-size: 11.5px; color: var(--ink3); }
.ys-add { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ys-add .dimp { margin: 0; font-size: 11.5px; }

/* ---------- 閱讀器 ---------- */
.ys-rd { background: var(--bg); }
.ys-rd-sc { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: calc(var(--sat) + 70px); }
.ys-rd-err { position: absolute; left: 20px; right: 20px; top: calc(var(--sat) + 90px); }
.ys-rdh { transition: transform .22s ease, opacity .22s ease; }
.ys-rdh.off { transform: translateY(calc(-100% - var(--sat) - 8px)); opacity: 0; pointer-events: none; }
.ys-pg { position: relative; max-width: 900px; margin: 0 auto; }
.ys-pg img { display: block; width: 100%; height: auto; background: var(--off); }
.ys-liked { position: absolute; left: 10px; top: 10px; font-size: 16px; color: var(--vivid); text-shadow: 0 0 4px var(--card); pointer-events: none; }
.ys-mk { position: absolute; right: 10px; top: 10px; padding: 2px 9px; border-radius: 10px; font-size: 11px; color: var(--card); background: var(--dot); }
.ys-mk.w-vero { background: var(--vivid); }
.ys-crop { position: absolute; inset: 0; z-index: 4; cursor: crosshair; touch-action: none; background: rgba(31, 34, 38, .32); }
.ys-box { position: absolute; border: 1.5px solid var(--vivid); pointer-events: none; }
.ys-box.drag { background: rgba(255, 255, 255, .35); }
.ys-box.flash { z-index: 3; background: color-mix(in srgb, var(--vivid) 10%, transparent); animation: ysFlash 2.5s ease-out forwards; }
@keyframes ysFlash { 0%, 60% { opacity: 1 } 100% { opacity: 0 } }
.ys-end { padding: 28px 16px calc(var(--sab) + 100px); text-align: center; display: flex; flex-direction: column; gap: 12px; }
.ys-end .dimp { margin: 0; }
.ys-pill { position: absolute; left: 50%; bottom: calc(var(--sab) + 16px); z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 6px; max-width: calc(100% - 24px); background: var(--card); border-radius: 22px; box-shadow: 0 0 0 1px var(--line2), 0 12px 24px -14px rgba(30, 36, 60, .5); white-space: nowrap; transition: transform .22s ease, opacity .22s ease; }
.ys-pill.off { opacity: 0; pointer-events: none; transform: translate(-50%, 140%); }
.ys-pill button { height: 34px; padding: 0 11px; border-radius: 17px; font-size: 13px; color: var(--ink); flex-shrink: 0; }
.ys-pill button.on { color: var(--vivid); }
.ys-st { min-width: 0; max-width: 130px; padding: 0 8px 0 4px; font-size: 11px; color: var(--vivid); overflow: hidden; text-overflow: ellipsis; }
.ys-cropf { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px calc(var(--sab) + 14px); border-radius: 14px 14px 0 0; }
.ys-cropf > .zh { font-size: 13px; }
.ys-cropf .ys-btn { height: 42px; padding: 0 12px; }
.ys-toast { position: absolute; left: 12px; right: 12px; bottom: calc(var(--sab) + 72px); z-index: 6; padding: 10px 12px; max-height: 38%; overflow: auto; box-shadow: 0 0 0 1px var(--line2), 0 12px 24px -14px rgba(30, 36, 60, .5); }
.ys-toast.w-vero { box-shadow: 0 0 0 1px color-mix(in srgb, var(--vivid) 50%, transparent), 0 12px 24px -14px rgba(30, 36, 60, .5); }
.ys-toast-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); }
.ys-toast-b { margin-top: 6px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; color: var(--ink); }
.ys-toast-a { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
/* 說話那張紙：上面來回、下面輸入 */
.ys-talk { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ys-talk-l { flex: 1; min-height: 0; overflow-y: auto; }
.ys-ent { display: block; width: 100%; padding: 9px 0; border-top: 1px solid var(--line); text-align: left; }
.ys-ent .mono { display: block; letter-spacing: .04em; }
.ys-ent .zh { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; }
.ys-ent.ys-her .zh { color: var(--ink2); }
.ys-ent.ys-his .zh { padding-left: 10px; border-left: 2px solid var(--vivid); }
.ys-ent em { font-style: normal; font-size: 11px; color: var(--ink3); }
.ys-talk-in { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.ys-talk-in .ys-btn { height: 42px; padding: 0 14px; }
/* 跟讀 */
.ys-txt { max-width: 680px; margin: 0 auto; padding: 8px 22px 0; }
.ys-chh { margin: 30px 0 14px; font-size: 18px; font-weight: 400; letter-spacing: .1em; color: var(--vivid); }
.ys-pa { position: relative; margin: 0 0 1em; font-size: 17px; line-height: 1.9; letter-spacing: .02em; color: var(--ink); }
.ys-pa.liked { box-shadow: -3px 0 0 var(--vivid); padding-left: 10px; }
.ys-pa .ys-mk { top: -1.4em; right: 0; }

/* ---------- 機房＝主控台（點陣畫布 Console.dc.html，A 版）：#room，class 一律 cs- ---------- */
.cs { position: absolute; inset: 0; overflow: hidden; }
.cs-col { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 74px); bottom: 0; padding-bottom: calc(var(--sab) + 14px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.cs-col > * { flex-shrink: 0; }
.cs-chip { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 10px; margin-right: 12px; border: 1px solid var(--line2); border-radius: 3px; font-size: 11.5px; white-space: nowrap; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.cs-ph { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 14px; }
.cs-scan { display: inline-flex; align-items: center; gap: 6px; }
.cs-scan i { width: 4px; height: 4px; border-radius: 50%; background: var(--dot); animation: csScan 3s ease-in-out infinite; }
@keyframes csScan { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
.cs-lamp { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--dot); }
.cs-lamp.watch { background: var(--vivid); }
.cs-lamp.alert { background: var(--vivid); animation: csLp 1.6s steps(2) infinite; }
.cs-lamp.none { background: transparent; box-shadow: inset 0 0 0 1px var(--ink3); }
@keyframes csLp { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
/* 01 總覽 */
.cs-hb { position: relative; display: flex; align-items: flex-start; gap: 14px; height: 50px; padding: 0 14px; }
.cs-led { position: relative; width: 34px; height: 44px; flex-shrink: 0; }
.cs-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 4px; }
.cs-ht b { font-size: 17px; font-weight: 400; letter-spacing: .08em; }
.cs-ht small { margin-top: 3px; font-size: 11.5px; color: var(--ink2); }
.cs-hb .cs-chip { margin: 8px 0 0; }
.cs-hl { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--vivid); text-align: left; }
.cs-hlt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-hlt.quiet { color: var(--ink2); }
.cs-hl .mono { color: inherit; }
/* 02 三扇門 */
.cs-dg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cs-door { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; min-width: 0; text-align: left; color: var(--ink); }
.cs-door + .cs-door { border-left: 1px solid var(--line); }
.cs-dn { display: flex; align-items: center; gap: 6px; }
.cs-dn b { font-size: 14px; font-weight: 400; }
.cs-ds { font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-meter { display: flex; gap: 4px; height: 6px; align-items: center; }
.cs-meter i { width: 2px; height: 2px; border-radius: 50%; box-shadow: 0 0 0 1px var(--off); background: var(--off); }
.cs-meter i.on { background: var(--dot); box-shadow: 0 0 0 1px var(--dot); }
.cs-dr { font-size: 8.5px; letter-spacing: .08em; text-transform: none; }
/* 03 巡檢 */
.cs-chks { padding: 4px 0 8px; border-top: 1px solid var(--line); }
.cs-chk { display: flex; align-items: center; width: 100%; height: 21px; padding: 0 14px; font-size: 12.5px; color: var(--ink); }
.cs-chk .cn { flex-shrink: 0; }
.cs-chk .cv { flex-shrink: 0; max-width: 170px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-chk .cs-lamp { margin-left: 8px; }
.cs-chk.watch .cn, .cs-chk.watch .cv, .cs-chk.alert .cn, .cs-chk.alert .cv { color: var(--vivid); }
.cs-chk.none .cn, .cs-chk.none .cv { color: var(--ink3); }
.cs-ld { flex-grow: 1; min-width: 12px; height: 2px; margin: 0 7px; background-image: radial-gradient(circle, var(--off) .8px, transparent 1.2px); background-size: 5px 2px; background-repeat: repeat-x; background-position: 0 50%; }
/* 04 排程 */
.cs-sched { display: block; width: 100%; padding-bottom: 10px; text-align: left; color: var(--ink); }
.cs-ruler { position: relative; display: block; height: 14px; margin: 2px 14px 0; border-bottom: 1px dotted var(--off); }
.cs-ruler i { position: absolute; bottom: 0; width: 1.5px; margin-left: -.75px; }
.cs-ruler .hr { height: 4px; background: var(--off); }
.cs-ruler .tk { height: 7px; background: var(--ink3); }
.cs-ruler .tk.next { height: 11px; background: var(--vivid); }
.cs-ruler .now { bottom: auto; top: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); }
.cs-hours { display: flex; justify-content: space-between; margin: 4px 14px 0; font-size: 8px; letter-spacing: .06em; }
.cs-next { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 14px 0; font-size: 12px; }
.cs-next .mono { letter-spacing: .06em; text-transform: none; }
.cs-drawer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 50px; }
.cs-drawer .zh { font-size: 12.5px; color: var(--ink2); letter-spacing: .1em; }
.cs-grab { display: flex; gap: 4px; }
.cs-grab i { width: 4px; height: 4px; border-radius: 50%; background: var(--off); }
.cs-tip { position: absolute; z-index: 10; left: 50%; top: calc(var(--sat) + 72px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line2), 0 10px 20px -12px rgba(30, 36, 60, .3); font-size: 13px; white-space: nowrap; animation: dimIn .2s ease both; }
.cs-tip i { width: 5px; height: 5px; border-radius: 50%; background: var(--vivid); }
/* 抽屜裡 */
.cs-alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; background: var(--bg); font-size: 13px; line-height: 1.65; }
.cs-alert .cs-lamp { margin-top: 6px; }
.cs-kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13.5px; line-height: 1.5; }
.cs-kv + .cs-kv { border-top: 1px solid var(--line); }
.cs-kv > span:first-child { color: var(--ink2); flex-shrink: 0; }
.cs-kv > span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.cs-kv .mono { text-transform: none; letter-spacing: .04em; }
.cs-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.75; color: var(--ink2); }
.cs-src { margin-top: 14px; text-transform: none; letter-spacing: .06em; }
.cs-box { border: 1px solid var(--line2); border-radius: 3px; padding: 2px 12px; }
.cs-sh { margin: 14px 0 6px; }
.cs-sh:first-child { margin-top: 4px; }
.cs-sch .cs-kv { padding: 6px 0; font-size: 13px; }
.cs-sch .cs-kv > span:first-child.cs-t { font-family: var(--mono); color: var(--ink); width: 44px; }
.cs-sch .cs-t.w { width: 76px; font-size: 12px; }
.cs-sch .cs-n { flex: 1; text-align: left !important; color: var(--ink); }
.cs-sch .cs-n small { color: var(--ink3); font-size: 11px; }
.cs-sch .cs-n small.blk { display: block; }
.cs-sch .past > span { opacity: .55; }
.cs-sch .next > span, .cs-sch .next .cs-n { color: var(--vivid); opacity: 1; }
.cs-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 2px; color: var(--ink); text-decoration: none; }
.cs-row + .cs-row { border-top: 1px solid var(--line); }
.cs-lab { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-lab b { font-weight: 400; font-size: 14.5px; }
.cs-lab small { font-size: 12px; color: var(--ink2); }

/* ---------- 岸的書架 › 記憶日報（#memday），class 一律 mr- ---------- */
.mr { position: absolute; inset: 0; overflow: hidden; }
.mr-col { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 74px); bottom: 0; padding-bottom: calc(var(--sab) + 24px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; }
.mr-col > * { flex-shrink: 0; }
.mr-sum { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.mr-led { position: relative; height: 38px; flex-shrink: 0; }
.mr-sumt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mr-sumt > .zh { font-size: 14.5px; font-weight: 400; color: var(--ink); }
.mr-sumt .mr-sub { font-size: 11.5px; font-weight: 300; color: var(--ink2); }
.mr-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.mr-day { flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); text-align: left; color: var(--ink); }
.mr-day .zh { font-size: 13px; }
.mr-day .mono { text-transform: none; letter-spacing: .04em; font-size: 9.5px; }
.mr-day.has .mono { color: var(--vivid); }
.mr-day[aria-selected="true"] { background: var(--ink); }
.mr-day[aria-selected="true"] .zh, .mr-day[aria-selected="true"] .mono { color: var(--card); }
.mr-card { padding: 12px 14px; }
.mr-card.flagged { box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--vivid); }
.mr-card.r-approved { box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--dot); }
.mr-card.r-rejected { opacity: .55; }
.mr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11.5px; color: var(--ink3); }
.mr-top .mono { text-transform: none; letter-spacing: .04em; }
.mr-kind { padding: 0 6px; border: 1px solid var(--line2); border-radius: 2px; color: var(--ink2); }
.mr-kind.k-stable { border-color: color-mix(in srgb, var(--dot) 55%, transparent); color: var(--dot); }
.mr-kind.k-ongoing { border-style: dashed; }
.mr-st { margin-left: auto; }
.mr-st.r-approved { color: var(--dot); } .mr-st.r-rejected { color: #C0573F; } .mr-st.r-pending { color: var(--vivid); }
.mr-body { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.mr-flag { margin-top: 8px; padding: 7px 10px; background: var(--bg); font-size: 12.5px; line-height: 1.55; color: var(--vivid); }
.mr-ev { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mr-q { padding-left: 9px; border-left: 2px solid var(--off); font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.mr-q .mono { display: block; text-transform: none; letter-spacing: .04em; color: var(--ink3); }
.mr-q.me { font-size: 12.5px; color: var(--ink3); }
.mr-meta { margin-top: 6px; font-size: 11.5px; color: var(--ink3); }
.mr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.mr-acts .ys-btn { height: 38px; padding: 0 18px; }
.mr-no { color: #C0573F !important; }
.mr-done { font-size: 12px; color: var(--ink3); }
.mr-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mr-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mr-sel select { font-size: 14px; }
.mr-empty { text-align: center; padding: 24px 0; }
.mr-sec { margin: 8px 2px 0; text-transform: none; letter-spacing: .06em; }
.mr-hint { margin: 8px 2px 0; font-size: 11.5px; line-height: 1.75; color: var(--ink3); }
/* 11-01～02 搬過來的：放日錄、點原句看那段對話、框起來、找一句、日錄 */
.mr .tabs button { font-size: 12px; padding: 0 2px; white-space: nowrap; }
.mr-card.r-log { opacity: .8; box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--off); }
.mr-st.r-log, .mr-log { color: var(--ink3) !important; }
.mr-q { display: block; width: 100%; }
.mr-q:active { background: var(--bg); }
.mr-q.mark { border-left-color: var(--dot); }
.mr-daily { padding: 12px 14px; }
.mr-daily.none { padding: 6px 0; text-align: center; font-size: 12.5px; }
.mr-dh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
.mr-dh .mono { text-transform: none; letter-spacing: .04em; }
.mr-dl { display: grid; grid-template-columns: 46px 1fr; gap: 2px 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--ink); }
.mr-dl:first-of-type { border-top: 0; }
.mr-dl > .mono { white-space: pre-line; line-height: 1.35; padding-top: 3px; text-transform: none; letter-spacing: .02em; color: var(--ink3); }
.mr-dl.flag > .zh { color: var(--vivid); }
.mr-door { margin-left: 6px; padding: 0 5px; border: 1px solid var(--line2); border-radius: 2px; font-size: 11px; color: var(--ink2); }
.mr-why { grid-column: 2; font-size: 12px; color: var(--vivid); }
.mr-ctx { display: flex; flex-direction: column; gap: 8px; }
.mr-find { display: flex; gap: 8px; }
.mr-find input { flex: 1; min-width: 0; font-size: 16px; }
.mr-find .ys-btn { flex: 0 0 auto; padding: 0 16px; }
.mr-ctx-t { text-transform: none; letter-spacing: .04em; color: var(--ink2); }
.mr-ctx-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: calc(var(--sab) + 20px); }
.mr-tip { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink3); }
.mr-cm { padding: 8px 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.mr-cm.w-me { background: var(--bg); color: var(--ink2); }
.mr-cm.is-hit { box-shadow: 0 0 0 2px var(--vivid); }
.mr-cm.is-marked { box-shadow: 0 0 0 2px var(--dot); }
.mr-cmh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 3px; }
.mr-cmh .mono { text-transform: none; letter-spacing: .04em; color: var(--ink3); }
.mr-on { font-size: 11px; color: var(--dot); }
.mr-cmc { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.mr-hit { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.mr-hit.w-me { background: var(--bg); }
.mr-hit:active { background: var(--bg); }
.mr-hit .mono { text-transform: none; letter-spacing: .04em; color: var(--ink3); }
.mr-hit .zh { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- 岸的書架 › 記憶考卷（#exam），外框借 .mr，class 一律 ex- ---------- */
.ex-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.ex-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink3); }
.ex-meta .mono { text-transform: none; letter-spacing: .04em; }
.ex-type { padding: 0 6px; border: 1px solid var(--line2); border-radius: 2px; color: var(--ink2); }
.ex-st { margin-left: auto; color: var(--ink3); }
.ex-st.s-ok { color: var(--dot); } .ex-st.s-drop { color: #C0573F; }
.ex-q { margin: 2px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.ex-a { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink2); }
.ex-a b { font-weight: 400; color: var(--ink3); margin-right: 8px; font-size: 11.5px; }
.ex-ev { padding-left: 9px; border-left: 2px solid var(--off); font-size: 13px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-ev .mono { display: block; text-transform: none; letter-spacing: .04em; color: var(--ink3); }
.ex-ev.none { color: var(--ink3); }
.ex-btns { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.ex-btns .ys-btn { height: 38px; padding: 0 14px; }
.ex-btns .ys-field { height: 38px; font-size: 14px; }
.ex-x.on { background: #C0573F; color: var(--card); }
.ex-x.gh { color: #C0573F; }
.ex-hint { margin: 0 2px; font-size: 11.5px; line-height: 1.75; color: var(--ink3); }
.ex-form .ex-hint { margin: 0; }
.ex-empty { text-align: center; padding: 24px 0; }
.ex-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ex-pill { padding: 2px 8px; border: 1px solid var(--line2); border-radius: 2px; font-size: 11.5px; color: var(--ink2); }
.ex-pill.good { border-color: color-mix(in srgb, var(--dot) 55%, transparent); color: var(--dot); }
.ex-pill.bad { border-color: rgba(192, 87, 63, .45); color: #C0573F; }
.ex-more { align-self: flex-start; margin-top: 4px; }
.ex-try { display: flex; flex-direction: column; gap: 4px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.ex-try .mono { text-transform: none; letter-spacing: .04em; }
.ex-cardtxt { padding: 8px 10px; background: var(--bg); font-size: 12.5px; line-height: 1.6; color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-reply { font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.ex-bad { color: #C0573F; }
.ex-sum { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.ex-sum th { font-weight: 300; font-size: 10.5px; color: var(--ink3); text-align: right; padding: 4px 0 6px; }
.ex-sum td { text-align: right; padding: 5px 0; border-top: 1px solid var(--line); }
.ex-sum th:first-child, .ex-sum td:first-child { text-align: left; }
.ex-sum tr.all td { color: var(--vivid); border-top: 1px solid var(--line2); }

/* ---------- 岸的書架 › 聲音（#voice），外框借 .mr，class 一律 vs- ---------- */
.vs-tab { display: flex; flex-direction: column; gap: 10px; }
.vs-tab[hidden] { display: none; }
.vs-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.vs-card.nest { padding: 10px 0 0; box-shadow: none; border-top: 1px solid var(--line); }
.vs-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vs-lab { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--ink2); }
.vs-lab .mono { text-transform: none; letter-spacing: .04em; }
.vs-lab .mono.bad { color: #C0573F; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-row select.ys-field { font-size: 14px; padding: 0 8px; }
.vs-knobs { display: flex; flex-direction: column; gap: 10px; }
.vs-knobs input[type="range"] { width: 100%; accent-color: var(--dot); height: 28px; }
.vs-chk { display: inline-flex; align-items: center; gap: 4px; }
.vs-chk input { margin: 0; accent-color: var(--dot); }
.vs-hint { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--ink3); }
.vs-item { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.vs-item + .vs-item { border-top: 1px solid var(--line); }
.vs-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12px; color: var(--ink3); }
.vs-meta b { font-weight: 400; font-size: 14px; color: var(--ink); }
.vs-meta .mono { text-transform: none; letter-spacing: .04em; }
.vs-seed { color: var(--vivid) !important; text-decoration: underline dotted; text-underline-offset: 3px; }
.vs-desc { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink2); }
.vs-play { align-self: flex-start; height: 32px; }
.vs-audio { width: 100%; height: 40px; }
.vs-v3 summary { cursor: pointer; }
.vs-keep .ys-field { height: 38px; font-size: 14px; }
.vs-keep .ys-btn { height: 38px; padding: 0 14px; }
.vs-rmx { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.vs-remix { align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--bg); }
.vs-sec { margin: 8px 2px 0; }
.vs-warn { color: #C0573F; }
.vs-text { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); text-align: left; white-space: pre-wrap; }
.vs-text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vs-text.clamp.open { display: block; }
.vs-who { padding: 0 6px; border: 1px solid var(--line2); border-radius: 2px; color: var(--ink2); }
.vs-who.w-vero { color: var(--vivid); border-color: color-mix(in srgb, var(--vivid) 45%, transparent); }
.vs-who.w-web { border-style: dashed; }
.vs-name { font-size: 15px !important; }
.vs-del { height: 32px; color: #C0573F; }
.vs-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vs-acts .vs-audio { flex: 1 1 100%; }
.vs-desc.vs-text { font-size: 12.5px; color: var(--ink2); }

/* ---------- 機房 › 日誌（#logs），外框借主控台 .cs，class 一律 lg- ---------- */
.cs-lamp.quiet { background: var(--off); }
.cs-chip.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.lg-day { display: flex; align-items: center; gap: 2px; margin-left: -10px; }
.lg-day .ib { width: 30px; height: 30px; }
.lg-day .ib:disabled svg { stroke: var(--off); }
.lg-day .mono { letter-spacing: .06em; text-transform: none; color: var(--ink); }
.lg-grid { display: flex; gap: 8px; padding: 2px 14px 0; }
.lg-names { display: flex; flex-direction: column; width: 46px; flex-shrink: 0; }
.lg-lane { display: flex; align-items: baseline; justify-content: space-between; height: 19px; font-size: 12px; color: var(--ink); text-align: left; }
.lg-lane b { font-weight: 400; } .lg-lane small { font-family: var(--mono); font-size: 9px; color: var(--ink3); }
.lg-lane.on, .lg-lane.on small { color: var(--vivid); }
.lg-strip { position: relative; flex: 1; min-width: 0; cursor: pointer; }
.lg-row { display: grid; grid-template-columns: repeat(48, 1fr); height: 19px; align-items: center; justify-items: center; }
.lg-row i { width: 1.5px; height: 1.5px; border-radius: 50%; background: var(--off); }
.lg-row i.n1 { width: 3px; height: 3px; background: var(--dot); }
.lg-row i.n2 { width: 4.5px; height: 4.5px; background: var(--dot); }
.lg-row i.n3 { width: 5.5px; height: 5.5px; background: var(--dot); }
.lg-row i.bad { background: var(--vivid); }
.lg-row i.fut { background: transparent; box-shadow: none; }
.lg-row i.off, .lg-row.dim i { opacity: .3; }
.lg-hour { position: absolute; top: -2px; bottom: -2px; width: calc(100% / 24); background: color-mix(in srgb, var(--vivid) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vivid) 25%, transparent); pointer-events: none; }
.lg-now { position: absolute; top: -3px; bottom: -1px; width: 1px; background: var(--ink); opacity: .35; pointer-events: none; }
.lg-hours { display: flex; justify-content: space-between; margin: 4px 14px 10px 68px; font-size: 8px; letter-spacing: .06em; }
.lg-bar { display: flex; gap: 8px; }
.lg-bar .ys-seg { flex: 0 0 186px; }
.lg-bar .ys-seg button { height: 34px; }
.lg-q { height: 36px; font-size: 15px; }
.lg-filter { flex: 1; min-width: 0; font-size: 12px; color: var(--vivid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-lines { display: flex; flex-direction: column; }
.lg-list { min-height: 340px; border-top: 1px solid var(--line); }
.lg-ln { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 14px; text-align: left; color: var(--ink); }
.lg-ln + .lg-ln { border-top: 1px solid var(--line); }
.lg-t { flex-shrink: 0; width: 36px; letter-spacing: .04em; text-transform: none; color: var(--ink2); }
.lg-tg { flex-shrink: 0; max-width: 78px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-x { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-x.alert { color: var(--vivid); }
.lg-n { flex-shrink: 0; text-transform: none; letter-spacing: .04em; }
.lg-empty { text-align: center; padding-top: 130px; }
.lg-pager { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 6px; border-top: 1px solid var(--line); }
.lg-pager > button { height: 42px; padding: 0 8px; font-size: 12px; color: var(--ink); }
.lg-pager > button:disabled { opacity: .3; }
.lg-pm { display: flex; align-items: center; gap: 8px; }
.lg-pm .mono { letter-spacing: .1em; }
.lg-pm .cs-chip { margin: 0; height: 24px; padding: 0 8px; font-size: 11px; }
/* 11-04 岸的書架 › 聽語氣（#ear），版面借 .mr／.mr-col，自己的一律 el- */
.el-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.el-meta { text-transform: none; letter-spacing: .04em; color: var(--ink3); }
.el-said { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.el-tone { font-size: 12.5px; line-height: 1.55; color: var(--ink2); }
.el-audio { width: 100%; height: 40px; }
.el-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.el-chips .ys-chip, .el-row .ys-chip { height: 30px; font-size: 13px; }
.el-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--ink2); }
.el-row label { display: inline-flex; align-items: center; gap: 4px; }
.el-mine { margin: 4px 0 0; font-size: 14.5px; color: var(--ink); }
.el-guess { padding: 7px 10px; background: var(--bg); font-size: 13px; line-height: 1.55; color: var(--dot); }
.el-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.el-acts .ys-btn { height: 38px; padding: 0 16px; }
/* 11-04 主控台：記憶總覽、召回考卷整份（舊版足跡搬過來） */
.cs-mem .cs-note { margin: 4px 0; }
.cs-mb { margin: 8px 0 10px; }
.cs-mbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); margin-bottom: 4px; }
.cs-mbl .mono { text-transform: none; letter-spacing: .04em; }
.cs-bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.cs-bars button { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.cs-bars i { display: block; width: 100%; background: var(--off); }
.cs-bars.b-hit i { background: color-mix(in srgb, var(--dot) 55%, var(--off)); }
.cs-bars.b-vero i { background: color-mix(in srgb, var(--vivid) 45%, var(--off)); }
.cs-bars button.on i { background: var(--ink); }
.cs-exam > .cs-chip { margin: 6px 0 12px; }
.cs-xc { padding: 8px 0 8px 10px; border-top: 1px solid var(--line); border-left: 2px solid var(--off); }
.cs-xc.pass { border-left-color: var(--dot); }
.cs-xc.fail { border-left-color: var(--vivid); }
.cs-xh { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink3); }
.cs-xh b { font-weight: 400; color: var(--ink); }
.cs-xc.fail .cs-xh > span:last-child { color: var(--vivid); }
.cs-xc p { margin: 3px 0 0; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.lg-where { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 50px; padding: 0 14px; color: var(--ink); }
.lg-where > span:first-child { display: flex; align-items: center; gap: 10px; }
.lg-where .zh { font-size: 12.5px; }
.lg-text { padding: 12px 14px; background: var(--bg); font-size: 13.5px; line-height: 1.75; color: var(--ink); white-space: pre-wrap; word-break: break-all; }
.lg-text.alert { color: var(--vivid); }
.lg-sh .cs-kv:first-of-type { margin-top: 8px; }
.lg-sh small.mono { text-transform: none; letter-spacing: .04em; font-size: 10px; color: var(--ink3); }
.lg-it > span:last-child { text-align: left !important; flex: 1; font-size: 12.5px; color: var(--ink); }
.lg-it .mono { width: 40px; }
.lg-only { display: flex; justify-content: flex-end; margin-top: 12px; }
.lg-only .cs-chip { margin: 0; }
.lg-src { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.lg-src:first-child { border-top: 0; }
.lg-src .cs-lamp { margin-top: 7px; }
.lg-srcb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-srch { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.lg-st { font-size: 11.5px; color: var(--dot); flex-shrink: 0; } .lg-st.no { color: var(--ink3); }
.lg-what { font-size: 11.5px; line-height: 1.6; color: var(--ink2); }
.lg-path { font-size: 10px; letter-spacing: .02em; text-transform: none; color: var(--ink3); word-break: break-all; }
.lg-clr { flex-shrink: 0; height: 30px; padding-left: 10px; font-size: 12px; }

/* ---------- 他的身體（#body），外框借主控台 .cs，class 一律 bd-（SVG 裡 r-／d-） ---------- */
.bd-on { margin-right: 12px; gap: 6px; }
.bd-on i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink3); }
.bd-on.is i { background: var(--vivid); }
.bd-sum { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; }
.bd-sum .mono { color: var(--ink); letter-spacing: .04em; }
.bd-dim { color: var(--ink3); font-size: 11.5px; }
.bd-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.75; color: var(--ink2); }
.bd-link { font-size: 11.5px; color: var(--ink2); }
.bd-led { position: relative; display: block; height: 46px; flex-shrink: 0; }
.bd-hero { display: flex; gap: 14px; padding: 14px; }
.bd-hb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bd-ht { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bd-ht b { font-size: 17px; font-weight: 400; }
.bd-ht .zh:not(b) { font-size: 11.5px; }
.bd-why { font-size: 12.5px; line-height: 1.6; color: var(--ink2); }
.bd-hf { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.bd-hf .mono { letter-spacing: .06em; text-transform: none; }
.bd-radar { position: relative; padding: 0 14px 14px; }
.bd-radar svg { display: block; overflow: visible; }
.bd-radar .r-g { fill: none; stroke: var(--off); stroke-width: .8; }
.bd-radar .r-wake { fill: none; stroke: var(--dot2); stroke-width: 1; stroke-dasharray: 2 3; }
.bd-radar .r-speak { fill: none; stroke: var(--vivid); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.bd-radar .r-v { fill: color-mix(in srgb, var(--dot) 18%, transparent); stroke: var(--dot); stroke-width: 1.4; }
.bd-radar .r-pt { fill: var(--dot); }
.bd-radar .r-top { fill: var(--vivid); }
.bd-axl { position: absolute; display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 8px; background: var(--card); border: 1px solid var(--line2); border-radius: 3px; white-space: nowrap; transform: translate(-50%, -50%); color: var(--ink); }
.bd-axl .zh { font-size: 12px; }
.bd-axl .mono { letter-spacing: .02em; color: inherit; }
.bd-axl.over { color: var(--vivid); }
.bd-axl.top { border-color: var(--vivid); color: var(--vivid); }
.bd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-ms { padding: 12px 10px 8px 12px; }
.bd-ms > .mono { margin-bottom: 6px; }
.bd-mrow { display: flex; align-items: center; gap: 6px; height: 24px; }
.bd-mrow .zh { width: 40px; font-size: 12px; flex-shrink: 0; }
.bd-mrow .mono { letter-spacing: .02em; color: var(--ink); width: 22px; text-align: right; }
.bd-meter { display: flex; gap: 2px; flex: 1; min-width: 0; }
.bd-meter i { width: 3px; height: 3px; border-radius: 50%; background: var(--off); }
.bd-meter i.on { background: var(--dot); }
/* 身體 */
.bd-lg { display: inline-flex; align-items: center; gap: 5px; }
.bd-lg i { width: 4px; height: 4px; border-radius: 50%; background: var(--vivid); }
.bd-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 4px 8px 8px; }
.bd-col { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--ink); }
.bd-col .zh { font-size: 12.5px; } .bd-col .mono { letter-spacing: .02em; color: inherit; }
.bd-col.on { color: var(--vivid); }
.bd-col.on .zh { box-shadow: 0 2px 0 var(--vivid); }
.bd-bar { display: grid; grid-template-rows: repeat(20, 4px); gap: 3px; justify-items: center; margin-bottom: 4px; }
.bd-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--off); }
.bd-bar i.on { background: var(--dot); }
.bd-bar i.up { background: var(--vivid); }
.bd-cur { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.bd-curh { display: flex; align-items: baseline; gap: 8px; }
.bd-curh b { font-size: 15px; font-weight: 400; }
.bd-curh .mono { letter-spacing: .04em; text-transform: none; }
.bd-curh .mono:first-of-type { color: var(--ink); }
.bd-word { margin: 4px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.bd-word.sm { font-size: 12.5px; color: var(--ink2); }
.bd-curf { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.bd-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px; text-align: left; color: var(--ink); }
.bd-row > .zh:nth-child(2) { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; }
.bd-row > .mono:first-child { flex-shrink: 0; }
.bd-row.col { flex-direction: column; align-items: stretch; gap: 4px; }
.bd-row.col > .zh { font-size: 13.5px; }
.bd-rh { display: flex; justify-content: space-between; }
.bd-last .zh { color: var(--ink2); }
.bd-senses { display: flex; flex-direction: column; width: 100%; padding-bottom: 8px; text-align: left; color: var(--ink); }
.bd-sl { display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 14px; font-size: 12.5px; }
.bd-sl > .zh:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-sl .vivid { font-size: 11px; flex-shrink: 0; }
.bd-sk { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; background: var(--dot); color: var(--card); font-size: 13px; border-radius: 3px; }
.bd-sk.sm { width: 18px; height: 18px; font-size: 10.5px; border-radius: 2px; }
/* 時間 */
.bd-dial { display: block; max-width: 280px; margin: 0 auto; }
.bd-dial .d-f { fill: var(--off); } .bd-dial .d-p { fill: var(--dot2); } .bd-dial .d-m { fill: var(--dot); }
.bd-dial .d-hand { stroke: var(--line2); stroke-width: 1; }
.bd-dial .d-now { fill: var(--vivid); }
.bd-dial .d-wake { fill: none; stroke: var(--vivid); stroke-width: 1.4; }
.bd-dial .d-t { font-family: var(--mono); font-size: 9px; fill: var(--ink3); text-anchor: middle; }
.bd-dial .d-big { font-family: var(--mono); font-size: 20px; font-weight: 300; fill: var(--ink); text-anchor: middle; }
.bd-dial .d-sm { font-family: var(--zh); font-size: 11px; fill: var(--vivid); text-anchor: middle; }
.bd-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 14px 0; font-size: 11px; color: var(--ink2); }
.bd-legend i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; }
.bd-legend .d-now { background: var(--vivid); } .bd-legend .d-wake { box-shadow: inset 0 0 0 1.4px var(--vivid); } .bd-legend .d-m { background: var(--dot); }
.bd-offs { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 14px 12px; font-size: 12px; color: var(--ink2); }
.bd-offs b { font-weight: 400; color: var(--ink); }
.bd-offs b.vivid { color: var(--vivid); }
.bd-cyc { display: flex; gap: 3px; flex-wrap: wrap; margin: 4px 0 2px; }
.bd-cyc i { width: 6px; height: 6px; border-radius: 50%; background: var(--off); }
.bd-cyc i.c-p { background: var(--dot2); }
.bd-cyc i.c-now { background: var(--vivid); box-shadow: 0 0 0 2px color-mix(in srgb, var(--vivid) 25%, transparent); }
/* 抽屜裡 */
.bd-sh .bd-sec { margin: 14px 0 6px; }
.bd-dr { display: flex; align-items: center; gap: 16px; }
.bd-dr > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.bd-lv { font-size: 13px; }
.bd-inject { padding: 12px 14px; background: var(--bg); font-size: 14px; line-height: 1.85; white-space: pre-wrap; color: var(--ink); }
.bd-tier { display: flex; gap: 12px; padding: 9px 10px; margin-bottom: 4px; border-left: 2px solid var(--off); }
.bd-tier .mono { flex-shrink: 0; width: 46px; padding-top: 3px; letter-spacing: .04em; }
.bd-tier .zh { font-size: 13.5px; line-height: 1.65; color: var(--ink2); }
.bd-tier.on { border-left-color: var(--vivid); background: var(--bg); }
.bd-tier.on .zh { color: var(--ink); }
.bd-card { border: 1px solid var(--line2); border-radius: 3px; padding: 10px 12px; font-size: 13.5px; line-height: 1.8; }
.bd-card + .bd-card { margin-top: 6px; }
.bd-vrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.bd-vrow .cs-chip { margin: 0; height: 30px; }
.bd-acc .mono { color: var(--ink); letter-spacing: .04em; text-transform: none; }
.bd-ch { margin-left: 10px; font-size: 12px; }
.bd-acc .bd-dim { line-height: 1.6; }
.bd-sg { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.bd-sg .bd-card { flex: 1; min-width: 0; padding: 4px 12px; }
.bd-se { padding: 6px 0; }
.bd-se + .bd-se { border-top: 1px solid var(--line); }
.bd-seh { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.bd-tag { font-size: 11.5px; color: var(--vivid); flex-shrink: 0; }
.bd-se .mono { text-transform: none; letter-spacing: .04em; }

/* ---------- 機房抽屜的設定（js/room/settings.js），class 一律 se- ---------- */
.se-box { padding: 0 12px; }
.se-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 0; text-align: left; color: var(--ink); }
.se-row + .se-row { border-top: 1px solid var(--line); }
.se-lab { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.se-lab b { font-weight: 400; font-size: 14.5px; }
.se-lab small { font-size: 12px; line-height: 1.5; color: var(--ink2); }
.se-danger { color: #C0573F; }
.se-sw { position: relative; width: 44px; height: 26px; flex-shrink: 0; border-radius: 13px; background: var(--off); transition: background .18s ease; }
.se-sw i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease; }
.se-sw.on { background: var(--dot); }
.se-sw.on i { transform: translateX(18px); }
.se-sw:disabled { opacity: .4; }
.se { display: flex; flex-direction: column; gap: 8px; }
.se-ta { height: 52dvh; min-height: 260px; padding: 10px 12px; font-family: var(--zh); font-size: 14px; line-height: 1.75; resize: none; }
.se-st { margin: 0 2px; font-size: 12px; color: var(--ink2); }
.se-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.se-btns .ys-btn { height: 36px; padding: 0 14px; font-size: 13px; }
.se-name { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--bg); font-size: 12.5px; }
.se-name .ys-btn { height: 42px; padding: 0 12px; }
.se-tun { flex-wrap: wrap; }
.se-tun .se-lab { flex: 1 1 160px; }
.se-in { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.se-in .ys-field { width: 7.5em; height: 34px; padding: 0 8px; font-size: 15px; text-align: right; }
.se-in select.ys-field { width: auto; max-width: 11em; text-align: left; font-size: 14px; }
.se-in .ys-chip { height: 30px; }
.se-dot { display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-radius: 50%; background: var(--vivid); vertical-align: 3px; }
.se-key { display: flex; flex-direction: column; gap: 8px; }
.se-key .ys-field { font-family: var(--mono); font-size: 16px; }
.se-code { font-family: var(--mono); font-size: 11px; word-break: break-all; color: var(--ink); }
.se .cs-kv > span:last-child { color: var(--ink); }
.ys-btn.se-danger { color: #C0573F; }
.se-p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink); }
.se-addr { margin: 0; font-family: var(--mono); font-size: 14px; word-break: break-all; color: var(--ink); -webkit-user-select: all; user-select: all; }
.se-seed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.se-seed li { display: flex; align-items: baseline; gap: 6px; padding: 8px; background: var(--bg); font-family: var(--mono); font-size: 14px; color: var(--ink); }
.se-seed .mono { font-size: 9px; }
.se-ord { padding: 9px 0; font-size: 12.5px; line-height: 1.6; }
.se-ord + .se-ord { border-top: 1px solid var(--line); }
.se-ord.dim { opacity: .7; }
.se-ord b { font-weight: 400; }
.se-ord .mono { text-transform: none; letter-spacing: .04em; }
.se-dimt { font-size: 12px; color: var(--ink3); }
.se-lock { align-items: center; padding-top: 18px; }
.se-hold { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 24px; font-size: 13px; color: var(--ink2); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.se-ring { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); background: conic-gradient(var(--dot) 0deg, transparent 0deg); }
.se-hold.on .se-ring { animation: seFill 2s linear forwards; }
@property --se-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes seFill { from { --se-a: 0deg; } to { --se-a: 360deg; } }
.se-hold.on .se-ring { background: conic-gradient(var(--dot) var(--se-a), transparent var(--se-a)); }
button.cs-row { width: 100%; text-align: left; }
.se-link { font-size: 12px; color: var(--vivid); text-decoration: none; }
.se-ch { display: flex; justify-content: space-between; align-items: baseline; }
.se-ch .zh { font-size: 11.5px; color: var(--ink); }
.se-dots { display: flex; flex-wrap: wrap; gap: 12px; padding: 2px 2px 4px; }
.se-dots button { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line2); }
.se-dots button.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
.se-also a { color: var(--vivid); text-decoration: none; }
.se-holdrow { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.se-ring.sm { width: 28px; height: 28px; flex-shrink: 0; }
.se-holdrow.on .se-ring { animation: seFill 2s linear forwards; background: conic-gradient(var(--dot) var(--se-a), transparent var(--se-a)); }
/* 主控台底下那條：每個字一顆按鈕（10-29） */
.cs-bar { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.cs-bar-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cs-bi { display: flex; align-items: center; justify-content: center; height: 40px; border: 1px solid var(--line2); border-radius: 3px; font-size: 13px; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.cs-bi.link { color: var(--ink2); border-style: dashed; }
.cs-bi:active { background: var(--bg); }
/* 擋後重寫、被擋掐掉重送、想到一半被停：聊天、岸這邊、足跡都用紅字標（10-29 她要的） */
.flag-tag { font-size: 11px; color: #C0573F; white-space: nowrap; }
.st-tag.flag { color: #C0573F; }
.st-flag { margin: 0 0 10px; padding: 8px 10px; background: var(--bg); font-size: 12.5px; line-height: 1.6; color: #C0573F; }
.st-date { font-size: 12.5px; letter-spacing: .06em; color: var(--ink); }
.steps .dcol > .st-feed { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------- 岸的書架：岸邊、念頭、大事記、晨報、郵票、文件（#book/…），外框借 .mr，class 一律 bk- ---------- */
.bk-note { margin: 0 2px; font-size: 11.5px; line-height: 1.7; color: var(--ink3); }
.bk-empty { text-align: center; padding: 30px 0; }
.bk-sec { margin: 8px 2px -2px; }
.bk-paper { padding: 14px 16px; }
.bk-md { font-size: 14.5px; line-height: 1.85; color: var(--ink); overflow-wrap: anywhere; }
.bk-md p { margin: 0 0 .8em; white-space: pre-wrap; }
.bk-md hr { border: 0; border-top: 1px dashed var(--line2); margin: 14px 0; }
.bk-h { margin: 16px 0 6px; font-weight: 400; color: var(--ink); }
.bk-h.h1, .bk-h.h2 { font-size: 16.5px; letter-spacing: .06em; }
.bk-h.h3, .bk-h.h4 { font-size: 15px; color: var(--vivid); }
.bk-md > :first-child { margin-top: 0; }
.bk-li { position: relative; padding-left: 14px; margin: 2px 0; }
.bk-li::before { content: ''; position: absolute; left: 2px; top: .8em; width: 4px; height: 4px; border-radius: 50%; background: var(--dot); }
.bk-q { margin: 6px 0; padding-left: 10px; border-left: 2px solid var(--off); color: var(--ink2); }
.bk-md a { color: var(--vivid); text-decoration: none; word-break: break-all; }
.bk-ic { font-family: var(--mono); font-size: .88em; padding: 1px 5px; border-radius: 2px; background: var(--off); }
.bk-pre { margin: 8px 0; padding: 10px 12px; overflow-x: auto; background: var(--bg); font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: pre; }
.bk-tw { overflow-x: auto; margin: 8px 0; }
.bk-tb { border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.bk-tb th, .bk-tb td { padding: 5px 8px; border: 1px solid var(--line2); text-align: left; vertical-align: top; }
.bk-tb th { font-weight: 400; background: var(--bg); }
.bk-mm { margin: 10px 0; overflow-x: auto; background: var(--bg); padding: 6px; }
.bk-mm pre.mermaid:not([data-processed]) { font-family: var(--mono); font-size: 11px; white-space: pre; color: var(--ink3); }
.bk-err { font-size: 11.5px; color: #C0573F; }
/* 岸邊 */
.bk-lt { display: flex; flex-direction: column; gap: 3px; max-width: 86%; }
.bk-lt.l-in { align-self: flex-start; }
.bk-lt.l-out { align-self: flex-end; align-items: flex-end; }
.bk-lt .mono { text-transform: none; letter-spacing: .04em; }
.bk-lb { padding: 9px 12px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.bk-lt.l-out .bk-lb { background: var(--her); color: var(--her-ink); box-shadow: none; }
.bk-ls { font-size: 11px; color: var(--ink3); }
/* 念頭 */
.bk-th { padding: 12px 14px 10px; box-shadow: 0 0 0 1px var(--line), inset 0 3px 0 var(--dot); scroll-margin-top: 10px; }
.bk-th.done { box-shadow: 0 0 0 1px var(--line), inset 0 3px 0 var(--off); opacity: .85; }
.bk-th.flash { animation: bkFlash 1.6s ease; }
@keyframes bkFlash { 0%, 40% { box-shadow: 0 0 0 2px var(--vivid), inset 0 3px 0 var(--dot); } }
.bk-th > b { display: block; font-weight: 400; font-size: 16px; margin-bottom: 6px; }
.bk-now { font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; }
.bk-thm { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.bk-thm .mono { text-transform: none; letter-spacing: .04em; }
.bk-thm button { font-size: 12.5px; }
.bk-vers { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line2); }
.bk-ver { margin: 10px 0; font-size: 13.5px; line-height: 1.75; color: var(--ink2); white-space: pre-wrap; }
.bk-ver .mono { text-transform: none; letter-spacing: .04em; }
.bk-why { font-size: 12.5px; color: var(--dot); }
/* 郵票 */
.bk-stamp { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 6px; background: var(--card); box-shadow: 0 8px 18px -12px rgba(30, 36, 60, .45);
  outline: 2px dotted var(--line2); outline-offset: -3px; transform: rotate(var(--rot)); }
.bk-stamp.big { align-self: center; width: 78%; margin: 6px 0 4px; }
.bk-ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--off); }
.bk-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-sd { display: flex; width: 100%; justify-content: space-between; align-items: baseline; }
.bk-sd .mono { text-transform: none; font-size: 9px; } .bk-sd b { font-weight: 300; font-size: 12px; color: var(--ink); }
.bk-cap { font-size: 12.5px; line-height: 1.6; color: var(--ink2); text-align: left; }
.bk-wall .bk-cap { font-size: 10.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bk-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; padding: 6px 4px; }
/* 文件 */
.bk-list { padding: 0; }
.bk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: 14px; }
.bk-row + .bk-row { border-top: 1px solid var(--line); }
.bk-row .mono { flex-shrink: 0; text-transform: none; letter-spacing: .04em; }
.bk-dh { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.bk-dh b { font-weight: 400; font-size: 17px; }
.bk-dh .mono { text-transform: none; letter-spacing: .04em; }
.st-letters { margin-top: 0; justify-content: space-between; padding: 12px 14px; }
.bk-wide { margin: 8px 0 -4px; font-size: 11.5px; color: var(--ink3); }
.bk-mm { max-height: 70vh; overflow: auto; }

.st-logs { display: flex; gap: 14px; } .st-logs button { min-height: 32px; }
.bk-gl { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.bk-glh { display: flex; justify-content: space-between; gap: 8px; text-transform: none; font-size: 10px; color: var(--ink3); }
.bk-gli { display: block; padding: 0; border: 0; background: var(--off); }
.bk-gli img { display: block; width: 100%; height: auto; min-height: 120px; }
.bk-gl b { font-weight: 400; font-size: 15px; overflow-wrap: anywhere; } .bk-gl .dimp { font-size: 12.5px; }
.bk-gln { margin-top: 4px; padding-left: 9px; border-left: 2px solid var(--dot); font-size: 13.5px; line-height: 1.7; color: var(--ink2); }
.bk-glp { align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; text-transform: none; text-decoration: none; }

.st-note .st-src { display: inline-flex; align-items: center; min-height: 28px; margin-bottom: 4px; text-transform: none; text-decoration: none; letter-spacing: .04em; }
.st-fold { border-top: 1px solid var(--line); } .st-fold:first-of-type { border-top: 0; }
.st-fold > summary { list-style: none; display: flex; align-items: center; min-height: 40px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.st-fold > summary::-webkit-details-marker { display: none; }
.st-fold > summary::after { content: '›'; margin-left: auto; color: var(--ink3); transition: transform .2s; } .st-fold[open] > summary::after { transform: rotate(90deg); }
.bk-made { display: block; width: 100%; height: calc(100dvh - var(--sat) - 150px); min-height: 420px; border: 0; border-radius: 3px; background: #fff; }
button.bk-row { width: 100%; text-align: left; }
.bk-row small.blk { display: block; margin-top: 3px; font-size: 12px; line-height: 1.6; color: var(--ink3); }
.bk-row > .zh { min-width: 0; }

.sr-box { display: flex; flex-direction: column; gap: 8px; }
.sr-who { margin: 2px 0 0; }
.sr-st { margin: 2px 0; font-size: 12px; }
.sr-it { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 9px 2px; text-align: left; border-top: 1px solid var(--line); }
.sr-it .mono { text-transform: none; font-size: 10px; color: var(--ink3); letter-spacing: .04em; }
.sr-t { font-size: 13.5px; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sr-t mark { background: color-mix(in srgb, var(--vivid) 28%, transparent); color: inherit; padding: 0 1px; }
.sr-more { align-self: center; min-height: 40px; padding: 0 16px; font-size: 13px; color: var(--vivid); }
.row.hit > * { animation: hitFlash 1.6s ease-out; }
@keyframes hitFlash { 0%, 30% { box-shadow: 0 0 0 2px var(--vivid); } 100% { box-shadow: 0 0 0 0 transparent; } }

.bk-tr { padding: 14px 16px; } .bk-tr p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; }
.bk-trm { display: flex; flex-wrap: wrap; gap: 4px 12px; text-transform: none; font-size: 10px; color: var(--ink3); letter-spacing: .04em; }
.bk-tr.flash { box-shadow: 0 0 0 2px var(--vivid); }
.bk-up { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; } .bk-up .mono { text-transform: none; font-size: 10px; color: var(--ink3); margin-top: 4px; }
.bk-pick { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px; border: 1px dashed var(--line2); border-radius: 3px; font-size: 13.5px; color: var(--ink2); text-align: center; overflow-wrap: anywhere; }
.bk-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; } .bk-bar i { display: block; height: 100%; background: var(--vivid); transition: width .2s; }
.bk-msg { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink2); } .bk-msg.err { color: #C0573F; } .bk-msg.ok { color: var(--vivid); }

.st-xacct { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.st-xacct .mono { text-transform: none; font-size: 10px; color: var(--ink3); letter-spacing: .04em; }
.st-xms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.st-xm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 11px; color: var(--ink3); } .st-xm .mono { font-size: 13px; color: var(--ink); }
.st-xm i { display: block; flex-basis: 100%; height: 2px; background: var(--line); } .st-xm i b { display: block; height: 100%; background: var(--vivid); }
.st-xsec { margin: 14px 0 4px; font-size: 10px; color: var(--ink3); }
.st-xr { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); position: relative; }
a.st-xr > .mono.vivid { position: absolute; right: 0; top: 9px; }
.st-xk { font-size: 13.5px; } .st-xk .mono { margin-left: 8px; font-size: 10px; color: var(--ink3); text-transform: none; }
.st-xt { font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 18px; }
.st-xw, .st-xh { font-size: 12.5px; line-height: 1.6; color: var(--ink2); } .st-xr .mono { text-transform: none; font-size: 10px; color: var(--ink3); letter-spacing: .03em; }
.mood-day > summary { list-style: none; cursor: pointer; } .mood-day > summary::-webkit-details-marker { display: none; }
.mood-day[open] > summary { color: var(--ink); }
.mood-how p { margin: 8px 0; font-size: 12.5px; line-height: 1.7; }
.ph-btns { display: flex; gap: 8px; margin-top: 14px; }
.dy-term { margin-top: 3px; font-size: 12px; color: var(--ink3); }
.dy-d.ring { box-shadow: inset 0 0 0 1px var(--dot); border-radius: 50%; } .dy-d.ring.today { box-shadow: inset 0 0 0 1px var(--vivid), 0 0 0 2px var(--dot); }
.dy-arow { display: flex; align-items: stretch; } .dy-arow .dy-a { flex: 1; min-width: 0; }
.dy-x { flex-shrink: 0; width: 40px; color: var(--ink3); font-size: 12px; }
.home-pr { font-size: 10.5px; letter-spacing: .02em; color: var(--ink3); } .home-pr.warn { color: #C0573F; }
.home-alert { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 44px); z-index: 6; display: flex; flex-direction: column; gap: 6px; }
.home-alert .ha { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; font-size: 12.5px; text-align: left; color: var(--ink); }
.home-alert .ha.warn { color: #C0573F; box-shadow: 0 0 0 1px #C0573F; } .home-alert .ha .mono { flex-shrink: 0; }
.rooms .boat-st { font-size: 10px; color: var(--ink3); }

.song { align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 10px 12px 8px; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.song-h { display: flex; flex-direction: column; gap: 2px; } .song-h .zh { font-size: 13.5px; } .song-h .dimp { font-size: 11.5px; }
.song-play { align-self: flex-start; min-height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 3px; text-transform: none; color: var(--vivid); }
.song-yt { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; } .song-yt iframe, .song-yt > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ly-list { max-height: 42vh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 1px; }
.ly { padding: 5px 6px; border-radius: 3px; opacity: .55; transition: opacity .25s, background .25s; cursor: pointer; }
.ly.on { opacity: 1; background: color-mix(in srgb, var(--vivid) 14%, transparent); } .ly.noted { opacity: .9; }
.ly-t { font-size: 13.5px; line-height: 1.55; }
.ly-note { margin-top: 3px; padding: 3px 8px; border-radius: 3px; font-size: 12px; line-height: 1.5; max-width: 92%; }
.ly-note.her { margin-left: auto; background: var(--her); color: var(--her-ink); } .ly-note.me { background: var(--off); }
.ly-form { display: flex; gap: 6px; margin-top: 6px; } .ly-form input { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 3px; background: var(--bg); color: var(--ink); font-size: 13px; outline: none; }
.ly-form button { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 3px; background: var(--ink); color: var(--card); font-size: 13px; }
.ly-none { font-size: 12.5px; padding: 4px 6px; }
.movie-bar { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 70px); z-index: 4; padding: 8px 10px 10px; }
.movie-bar .mv-head { display: flex; align-items: center; gap: 6px; } .mv-title { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-time { font-size: 11px; color: var(--ink3); text-transform: none; }
.movie-bar video { display: block; width: 100%; max-height: 32vh; margin-top: 8px; background: #000; border-radius: 3px; }
.movie-bar.folded video { display: none; }
.bk-stv { display: flex; flex-direction: column; gap: 12px; }
.bk-stv-ph { display: block; padding: 0; } .bk-stv-ph img { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: var(--off); border-radius: 3px; }
.bk-stv p { margin: 0; font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; }

/* ---------- 抽牌（js/lib/tarot.js，11-04），class 一律 tr- ---------- */
.tr-draw { display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(var(--sab) + 16px); }
.tr-draw .wide { width: 100%; height: 44px; }
.tr-hint { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink2); }
.tr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tr-row.sm { gap: 6px; }
.tr-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.tr-lab { font-size: 12px; color: var(--ink2); text-align: center; line-height: 1.35; }
.tr-card { display: block; width: 100%; aspect-ratio: 2 / 3; perspective: 900px; }
.tr-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.tr-card.open .tr-in { transform: rotateY(180deg); }
.tr-back, .tr-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line2); }
.tr-back { background: var(--card); display: grid; place-items: center; }
.tr-back i { position: absolute; inset: 6px; border: 1px solid var(--line2); background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.4px); background-size: 7px 7px; opacity: .55; }
.tr-front { transform: rotateY(180deg); background: var(--bg); display: grid; place-items: center; }
.tr-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-front img.rev { transform: rotate(180deg); }
.tr-ph { font-size: 18px; color: var(--ink3); }
@media (prefers-reduced-motion: reduce) { .tr-in { transition: none; } }
.tr-spread { display: flex; flex-direction: column; gap: 12px; }
.tr-q { margin: 0; font-size: 13.5px; color: var(--ink2); }
.tr-read { padding: 10px 0 0; border-top: 1px solid var(--line); }
.tr-rh { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--ink3); }
.tr-rh b { font-size: 16px; font-weight: 400; color: var(--ink); }
.tr-field { display: block; margin-top: 4px; text-transform: none; letter-spacing: .04em; color: var(--vivid); }
.tr-desc { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.tr-text { margin: 4px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink2); }
.tr-acts { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.tr-acts .ys-btn { height: 44px; }
.tr-strip { display: flex; flex-direction: column; gap: 8px; width: min(300px, 78vw); padding: 10px 12px; text-align: left; }
.her > .tr-strip { align-self: flex-end; }
.tr-sh { text-transform: none; letter-spacing: .06em; color: var(--ink3); }
.tr-more { font-size: 11.5px; color: var(--vivid); }
.tr-strip .tr-lab { font-size: 11px; }
.tr-strip > .tr-row { width: 100%; }
.tr-card.sm .tr-back i { inset: 3px; background-size: 5px 5px; }
.tr-card.sm .tr-back, .tr-card.sm .tr-front { border-radius: 3px; }
.tr-lab b { font-weight: 400; color: var(--ink); white-space: nowrap; }

/* ---------- 岸的書架 › 足跡圖（#footmap，11-04），版面借 .mr／.mr-col ---------- */
.fm-days { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14.5px; color: var(--ink); }
.fm-map { height: 58vh; min-height: 300px; overflow: hidden; background: var(--bg); }
.fm .leaflet-tile-pane { filter: grayscale(1) brightness(1.05) contrast(.92); } /* 底圖褪成灰，點跟線留顏色 */
[data-tone="night"] .fm .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.78) contrast(.9); }
.fm .leaflet-container { font-family: inherit; background: var(--bg); }
.fm .leaflet-popup-content { font-size: 13px; line-height: 1.5; }
.fm-now { margin: 4px 2px 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.fm-now small { font-size: 12px; color: var(--ink3); }
.fm-list { margin: 0 2px; font-size: 12.5px; line-height: 1.8; color: var(--ink3); }

/* ---------- 收藏夾（11-04，主線 4b8ebcf）：岸那則時間後一顆星、語音旁一顆收藏、書架 › 收藏夾（#favs，借 .mr） ---------- */
.fav-star { color: var(--vivid); }
.sh-fav { align-self: flex-end; min-height: 30px; padding: 0 6px; font-size: 12px; color: var(--ink3); }
.sh-fav.on { color: var(--vivid); }
.fv-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.fv-meta { text-transform: none; letter-spacing: .04em; color: var(--ink3); }
.fv-text { font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.fv-text.clip { max-height: 10em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.fv-quote { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.fv-acts { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.fv-go { font-size: 13px; color: var(--vivid); min-height: 32px; padding: 0 4px; }
/* 11-04 牌背圖（deck.json 的 back）；遊戲版的紙換成牌桌：深色絨布、金線、金字（她的牌是金框油畫，點陣灰藍配不上） */
.tr-card.has-back .tr-back { box-shadow: 0 0 0 1px rgba(201, 162, 98, .55); background: #1a0f12; }
.tr-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-draw.play { --gold: #D4AE6A; --gold2: #8E6D3A; margin: -4px -6px 0; padding: 14px 12px calc(var(--sab) + 18px); border-radius: 6px;
  background: radial-gradient(120% 70% at 50% 0%, #3A1820 0%, #1C0E13 55%, #120A0E 100%); color: #EFE3CF; box-shadow: inset 0 0 0 1px rgba(212, 174, 106, .35); }
.tr-draw.play .tr-hint, .tr-draw.play .tr-q, .tr-draw.play .tr-text { color: rgba(239, 227, 207, .72); }
.tr-draw.play .tr-lab { color: var(--gold); letter-spacing: .12em; }
.tr-draw.play .tr-card .tr-front, .tr-draw.play .tr-card .tr-back { box-shadow: 0 0 0 1px rgba(212, 174, 106, .6), 0 10px 24px -12px rgba(0, 0, 0, .8); }
.tr-draw.play .tr-read { border-top-color: rgba(212, 174, 106, .28); }
.tr-draw.play .tr-rh { color: rgba(239, 227, 207, .55); }
.tr-draw.play .tr-rh b { color: var(--gold); font-family: 'Songti TC', 'Noto Serif TC', serif; font-size: 18px; letter-spacing: .08em; }
.tr-draw.play .tr-field { color: #C98B8B; }
.tr-draw.play .tr-desc { color: #F4EAD8; }
.tr-draw.play .ys-seg { background: transparent; border-color: rgba(212, 174, 106, .5); }
.tr-draw.play .ys-seg button { color: #EFE3CF; }
.tr-draw.play .ys-seg button + button { border-left-color: rgba(212, 174, 106, .35); }
.tr-draw.play .ys-seg button[aria-checked="true"] { background: var(--gold); color: #1C0E13; }
.tr-draw.play .ys-btn.pri { background: linear-gradient(180deg, #E2C285, #B48A4A); color: #1C0E13; }
.tr-draw.play .ys-btn.gh { color: var(--gold); border-color: rgba(212, 174, 106, .55); background: transparent; }
.tr-strip.play { background: linear-gradient(180deg, #2A141A, #170C10); box-shadow: 0 0 0 1px rgba(212, 174, 106, .45); }
.tr-strip.play .tr-sh { color: rgba(239, 227, 207, .55); }
.tr-strip.play .tr-lab { color: rgba(239, 227, 207, .7); }
.tr-strip.play .tr-lab b { color: #D4AE6A; }
.tr-strip.play .tr-more { color: #D4AE6A; }

.tr-see { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.tr-see input { width: 18px; height: 18px; accent-color: var(--vivid); }
.tr-draw.play .tr-see { color: rgba(239, 227, 207, .8); }
.tr-draw.play .tr-see input { accent-color: #D4AE6A; }

/* 11-04 一張・今天 */
.tr-row.one { grid-template-columns: minmax(0, 46%); justify-content: center; }
.tr-acts.solo { grid-template-columns: 1fr; }
.tr-part + .tr-part { margin-top: 10px; }
.tr-draw.play .ys-seg.sm button[aria-checked="true"] { background: var(--gold); color: #1C0E13; }

/* 11-05 通話紀錄（她 12:44：「這邊就像一般軟體那樣顯示通話多久」）：電話那幾則收成一顆，點開才看全文 */
.callrec { display: flex; flex-direction: column; gap: 4px; max-width: 86%; }
.callrec.her { align-self: flex-end; align-items: flex-end; }
.callrec.his { align-self: flex-start; align-items: flex-start; }
.call-pill { font: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 3px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-size: 14px; line-height: 1.4; cursor: pointer; }
.callrec.her .call-pill { background: var(--her); color: var(--her-ink); box-shadow: none; }
.call-pill svg { stroke: currentColor; flex: none; }
.call-pill .cp-more { font-size: 10px; color: inherit; opacity: .8; letter-spacing: .04em; }
.call-log { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.6; color: var(--ink2); max-width: 100%; box-sizing: border-box; }
.call-log .cl { display: flex; gap: 8px; align-items: baseline; }
.call-log .who { flex: none; font-size: 11px; color: var(--ink3); }
.call-log .cl-her .who { color: var(--dot); }
.call-log .say { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 11-06 經期卡（#cycle，岸的書架）：她丟 Aria 的經期卡片「加做這個」。顏色照家規：點陣灰藍＋重點色，其他灰階 */
.cy { padding-bottom: 48px; display: flex; flex-direction: column; gap: 12px; }
.cy > .panel { border-radius: 3px; }
.cy-top { padding: 16px 16px 14px; margin-top: 12px; }
.cy-hero { display: flex; gap: 14px; align-items: center; }
.cy-ring { width: 104px; height: 104px; flex: none; }
.cy-ring-bg { fill: none; stroke: var(--off); stroke-width: 7; }
.cy-ring-p { fill: none; stroke: var(--dot2); stroke-width: 7; }
.cy-ring-fg { fill: none; stroke: var(--dot); stroke-width: 7; stroke-linecap: round; }
.cy-ring-dot { fill: var(--vivid); stroke: var(--card); stroke-width: 2; }
.cy-ring-n { font-family: var(--mono); font-weight: 300; font-size: 30px; text-anchor: middle; fill: var(--ink); }
.cy-ring-sub { font-family: var(--mono); font-size: 7.5px; letter-spacing: .14em; text-anchor: middle; fill: var(--ink3); }
.cy-hero-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cy-hero-t b { font-size: 21px; font-weight: 400; letter-spacing: .08em; color: var(--ink); }
.cy-hero-t .dimp { font-size: 12px; color: var(--ink3); }
.cy-line { margin: 2px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.cy-line .mono { margin-right: 7px; color: var(--dot); }
.cy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.cy-stats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: var(--bg); border-radius: 3px; }
.cy-stats b { font-size: 15px; letter-spacing: .06em; color: var(--ink); text-transform: none; }
.cy-edit { padding: 12px 16px 16px; }
.cy-day { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cy-day b { flex: 1; text-align: center; font-size: 15px; font-weight: 400; letter-spacing: .06em; }
.cy-day .ib { width: 34px; height: 34px; font-size: 20px; color: var(--ink2); }
.cy-day .ib:disabled { opacity: .25; }
.cy-k { margin: 14px 0 7px; color: var(--ink3); }
.cy-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cy-chip { height: 32px; padding: 0 13px; border-radius: 3px; font-size: 13.5px; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line2); }
.cy-chip.on { background: var(--dot); color: var(--card); box-shadow: none; }
.cy-note { width: 100%; box-sizing: border-box; border: 0; border-radius: 3px; padding: 9px 11px; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; resize: vertical; }
.cy-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.cy-log { padding: 4px 16px 10px; }
.cy-log .cy-k { margin: 12px 0 4px; }
.cy-row { display: grid; grid-template-columns: 48px auto 1fr; gap: 10px; align-items: baseline; width: 100%; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 13.5px; color: var(--ink); }
.cy-row:last-child { border-bottom: 0; }
.cy-row .mono { color: var(--ink3); }
.cy-row .dimp { color: var(--ink3); overflow-wrap: anywhere; }
.cy-nw { white-space: nowrap; }

/* 11-06 想起一張（新記憶）：跟召回卡同一個樣子，點開多一段原句跟為什麼 */
.memc .rc-row { border-top: 1px solid var(--line); }
.mc-more { padding: 2px 12px 10px; }
.mc-q { margin: 6px 0 4px; font-size: 13px; line-height: 1.6; color: var(--ink); }
.mc-q .mono { display: block; margin-bottom: 2px; font-size: 10.5px; letter-spacing: .06em; text-transform: none; color: var(--ink2); }
.mc-why { margin: 4px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--ink2); }
