/* PCアシスタント on the phone (PH1, layout C 「横から出るメニュー」; PA1 D32, D57; PH6 D58: no tabs, ≡ opens the panel). Colours and (TH1, D26) the look's corners, lines and
   typeface come from /theme.css (the PC's look, P12): --r-btn --r-card --r-in --r-chip --r-bub --line --font. */
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--drawer-bg);color:var(--ink);-webkit-text-size-adjust:100%}
body{font-family:var(--font);overscroll-behavior:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent}
button:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
button:disabled{cursor:default}
.ph{position:fixed;inset:0;overflow:hidden}
.scr{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--drawer-bg)}
.hd{flex:none;min-height:56px;padding-top:max(env(safe-area-inset-top),var(--sat,0px));display:flex;align-items:center;gap:4px;padding-left:4px;padding-right:8px;background:var(--header-bg) linear-gradient(90deg,var(--top-line),var(--top-line-end)) bottom/100% 3px no-repeat;border-bottom:var(--line) solid var(--panel-border)}
.icon{position:relative;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;flex:none;color:var(--ink)}
.icon:active{background:var(--code-bg)}
.icon svg{width:22px;height:22px}
.mdot{position:absolute;top:9px;right:8px;width:10px;height:10px;border-radius:5px;background:var(--accent);border:2px solid var(--surface)}
.hd-mid{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;padding-left:2px}
.hd-name{display:block;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* lane C0, LB3: 「PCコンシェルジュ」 whole in a narrow header (360 px: the model chip, the folder and 会話 beside it) — smaller, never cut */
.hd-mid{container-type:inline-size}
.hd-name.desk{font-size:clamp(11px,calc(100cqw / 8.6),16px)} /* its 9 characters are 8.25 em wide: as large as the room lets it be */
.hd-sub{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;margin-top:1px}
.hd-sub[hidden]{display:none}
/* PM1: the badge stays one line (the header never changes height as it changes; PF1's ファイル took room) */
.hd-sub{white-space:nowrap;min-width:0}
.hd-sub .stt{min-width:0;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
/* LM3 (owner 10-25): the agent's header has no state line (PM1's busy and D40's limited header classes that made room for it are gone); .hd-sub is the PCアシスタント's connection line */
/* LB3 review 1: on a narrow phone the PCコンシェルジュ's header (its whole name beside the model's 「中・Sonnet」) keeps 会話's icon only */
.hd.hd-desk{container:hdbar/inline-size}
@container hdbar (max-width:379px){.convb{padding:0 9px}.convb span{display:none}}
/* lane SC2: a PCエージェント's header with the calendar mark: on a narrow phone ファイル and 会話 keep their icons only (the name stays readable) */
.hd.hd-book{container:hdbar/inline-size}
@container hdbar (max-width:429px){.hd-book .convb,.hd-book .filesb{padding:0 9px}.hd-book .convb span,.hd-book .filesb span{display:none}}
/* lane BK5 (owner 10-20): with the mark, the model pill gives way before the agent's name — the level word goes, then the
   model's name is cut; the buttons drop their extra 4 px; the name keeps at least 96 px (six characters) */
.model .mdl-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hd-book .model{flex:0 1 auto;min-width:0}.hd-book .hd-mid{min-width:96px}
@container hdbar (max-width:429px){.hd-book .model .mdl-lv{display:none}.hd-book .model.pick{padding:0 6px 0 8px}.hd-book .bookb,.hd-book .convb{margin-left:0}}
.dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none;display:inline-block}
.st-run{color:var(--accent)}.st-ask{color:var(--amber)}.st-idle{color:var(--muted)}.st-stop{color:var(--red)}.st-limit{color:var(--amber)}
.model{height:30px;padding:0 10px;border-radius:15px;border:1px solid var(--panel-border);font-size:11px;font-weight:600;color:var(--muted);white-space:nowrap;flex:none;display:inline-flex;align-items:center}
.model.opus{border-color:var(--accent-line);background:var(--accent-bg);color:var(--accent-dark)}
.model.pick{gap:3px;padding:0 7px 0 10px}.model.pick svg{width:12px;height:12px;flex:none}.model.pick:disabled{opacity:.55}
.sh-m .mt{display:flex;align-items:center;gap:8px;max-width:100%}.sh-m .mt svg{width:18px;height:18px;flex:none;color:var(--accent)}
.sh-m .m{line-height:1.5}.sh-m:disabled{opacity:.6}
.sh-m .mn{font-size:12.5px;color:var(--muted);white-space:nowrap}.sh-m .mtag{font-size:11.5px;font-weight:700;color:var(--accent-dark);white-space:nowrap}
/* the row in use: a frame in the panels' border colour (C: its strong frame, as C's cards and pills; A/B: their light line) */
.sh-m{border:1px solid transparent}.sh-m.on{border-color:var(--panel-border)}
.pcpill{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:15px;font-size:12px;font-weight:600;background:var(--other-bg);color:var(--other-fg);white-space:nowrap;align-self:flex-start}
.pcpill.locked{background:var(--amber-bg);color:var(--amber-dark)}
.pcpill.offline{background:var(--red-bg);color:var(--red)}
.warn{margin:10px 12px 0;padding:11px 14px;border-radius:var(--r-card);background:var(--red-bg);border:1px solid var(--red-card-border);color:var(--red);font-size:13px;line-height:1.6;display:flex;gap:10px;flex:none}
.warn.lock{background:var(--amber-bg);border-color:var(--amber-border);color:var(--amber-dark)}
.warn svg{width:18px;height:18px;flex:none;margin-top:2px}
.chat{flex:1;overflow-y:auto;padding:16px 16px 10px;display:flex;flex-direction:column;gap:12px}
.empty{margin:auto;padding:40px 24px;text-align:center;font-size:14px;line-height:1.8;color:var(--muted)}
/* PH5: 「PCが見つかりません」 (nothing came from the PC) and the last-seen line of the banner */
.nf{margin:auto;padding:28px 20px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;max-width:340px;width:100%}
.nf-ic{width:56px;height:56px;display:block;flex:none}
.empty.wait .brand{display:block;width:56px;height:56px;margin:0 auto 14px}
/* LG1 (D151): the app icon's tile (brand() in app.js) in the PC's look's colours (theme.css --logo-1..3: A magenta, B and C sky) */
.ic-s1{stop-color:var(--logo-1,#30dad6)}
.ic-s2{stop-color:var(--logo-2,#18b4e8)}
.ic-s3{stop-color:var(--logo-3,#0a79e8)}
.nf-t{margin-top:14px;font-size:17px;font-weight:700;color:var(--ink)}
.nf-l{margin:12px 0 0;padding:0;list-style:none;text-align:left;font-size:13.5px;line-height:1.6;color:var(--ink-2)}
.nf-l li{position:relative;padding-left:16px;margin-top:4px}
.nf-l li::before{content:"";position:absolute;left:3px;top:.62em;width:6px;height:6px;border-radius:3px;background:var(--muted)}
.nf-b{margin-top:20px;min-width:160px;height:44px;padding:0 22px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);font-size:15px;font-weight:700;text-align:center}
.nf-b:disabled{opacity:.6}
.nf-s{margin-top:14px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.nf-h{margin-top:22px;align-self:flex-start;font-size:12.5px;font-weight:700;color:var(--muted)} /* P14d: the other PCs, right on this screen */
.nf .pcs-list{width:100%;margin-top:8px;text-align:left}
.nf .pc-tx span{white-space:normal;line-height:1.45} /* narrow: 「… ・ 返事あり n」 wraps, never cut */
.warn-x{display:flex;flex-direction:column;min-width:0}
.warn-s{font-size:12px;opacity:.85;font-variant-numeric:tabular-nums}
.earlier{align-self:center;font-size:12px;color:var(--muted);padding:4px 10px;border-radius:10px;background:var(--code-bg)}
.earlier-b{align-self:center;display:inline-flex;align-items:center;gap:6px;min-height:34px;font-size:12.5px;font-weight:600;color:var(--muted);padding:6px 12px 6px 14px;border-radius:17px;background:var(--code-bg)}
.earlier-b .chev svg{width:15px;height:15px;display:block}
.convb{height:34px;padding:0 11px 0 9px;border-radius:17px;border:1px solid var(--panel-border);display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--ink-2);flex:none;margin-left:4px}
.convb svg{width:17px;height:17px}
.convb:active{background:var(--code-bg)}
.pastbar{flex:none;display:flex;align-items:baseline;gap:8px;padding:9px 16px;background:var(--accent-bg);border-bottom:1px solid var(--accent-line);color:var(--accent-dark);font-size:13px}
/* lane BK1 (owner 10-18): 「← PCコンシェルジュ」 over every PCエージェント's conversation — one slim row on the header's ground, 44 px to press (OC1c: nothing card-like pinned over the chat) */
.dk-back{flex:none;display:flex;align-items:center;gap:7px;width:100%;min-height:44px;padding:0 14px;background:var(--header-bg);border-bottom:var(--line) solid var(--panel-border);color:var(--accent-dark);font-size:13px;font-weight:700;white-space:nowrap;text-align:left}
.dk-back svg{width:17px;height:17px;flex:none}
.dk-back span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.dk-back:active{background:var(--code-bg)}
.pb-t{font-weight:700;white-space:nowrap}
.pb-d{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.backnow{width:100%;height:46px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);font-weight:700;font-size:15px;text-align:center}
.sheet{position:absolute;left:0;right:0;bottom:0;z-index:16;max-height:84%;display:flex;flex-direction:column;background:var(--surface);border-radius:18px 18px 0 0;box-shadow:0 -6px 24px rgba(var(--shade-1,15,22,32),.18);padding-bottom:max(env(safe-area-inset-bottom),var(--sab,0px));animation:su .22s ease-out}
@keyframes su{from{transform:translateY(100%)}to{transform:none}}
.sh-hd{flex:none;padding:16px 18px 10px;display:flex;align-items:baseline;gap:8px}
.sh-t{font-size:17px;font-weight:700;flex:none}
.sh-sub{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-body{overflow-y:auto;padding:0 12px 14px}
.sh-new{display:flex;flex-direction:column;gap:3px;width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--accent-line);background:var(--accent-bg);color:var(--accent-dark)}
.sh-new:disabled{opacity:.5}
.sh-new .t{font-size:15px;font-weight:700}
.sh-new .d{font-size:12px;color:var(--muted);line-height:1.5}
.sh-new .w{font-size:12px;color:var(--amber-dark);font-weight:700}
.sh-sec{font-size:12px;font-weight:700;color:var(--muted);padding:14px 6px 4px}
.sh-i{display:flex;flex-direction:column;justify-content:center;gap:3px;width:100%;min-height:56px;padding:9px 12px;border-radius:12px}
.sh-i.on{background:var(--code-bg)}
.sh-i:active{background:var(--code-bg)}
.sh-i .t{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sh-i .m{font-size:12px;color:var(--muted)}
.sh-row{display:flex;align-items:center;gap:6px}
.sh-row .sh-i{flex:1;min-width:0}
.sh-back{flex:none;height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--accent-line);background:var(--accent-bg);color:var(--accent-dark);font-size:13px;font-weight:700}
.sh-back:disabled{opacity:.45}
/* lane CN1 (D131): 「名前を変える」 on a row, and the row's box (16 px: iOS does not zoom into it) */
.sh-ren{flex:none;height:36px;padding:0 10px;border-radius:18px;border:0;background:transparent;color:var(--accent-dark);font-size:12.5px;font-weight:700}
.sh-ren:disabled{opacity:.45}
.sh-ren-on{padding:6px 0}
.sh-renbox{display:flex;flex-direction:column;gap:8px;width:100%}
.sh-rni{width:100%;height:42px;border:1px solid var(--accent-line);border-radius:var(--r-in);padding:0 14px;font:inherit;font-size:16px;background:var(--input-bg);caret-color:var(--caret);color:var(--ink);-webkit-appearance:none;appearance:none}
.sh-rni::placeholder{color:var(--faint)}
.sh-rni:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.sh-renbar{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.sh-renerr{flex:1;min-width:0;font-size:12.5px;color:var(--amber-dark);line-height:1.5}
.sh-back.sub{background:transparent}
.backnow.sub{background:transparent;color:var(--accent-dark);border:1px solid var(--accent-line)}
.backnow:disabled{opacity:.5}
.sh-none{font-size:13px;color:var(--muted);padding:6px 12px}
.sh-foot{font-size:12px;color:var(--muted);padding:12px 6px 0;line-height:1.6}
.sh-note{margin:8px 2px 2px;padding:9px 12px;border-radius:10px;background:var(--amber-bg);border:1px solid var(--amber-border);color:var(--amber-dark);font-size:12.5px;line-height:1.6}
/* CV2: the 会話 sheet in pages and its search (16 px in the box: iOS does not zoom into it) */
.sheet.tall{height:84%}
.sh-q{flex:none;position:relative;margin:0 14px 6px}
.sh-qi{width:100%;height:42px;border:1px solid var(--input-border);border-radius:var(--r-in);padding:0 40px 0 14px;font:inherit;font-size:16px;background:var(--input-bg);caret-color:var(--caret);color:var(--ink);-webkit-appearance:none;appearance:none}
.sh-qi::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.sh-qi::placeholder{color:var(--faint)}
.sh-qi:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.sh-qx{position:absolute;right:2px;top:1px;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.sh-qx svg{width:16px;height:16px}
.sh-hit{min-height:0;padding:10px 12px}
.sh-hit .sn{font-size:13px;line-height:1.55;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sh-hit mark{background:var(--mark-hit);color:var(--ink);border-radius:3px;padding:0 1px}
.sh-more{display:block;width:100%;height:44px;margin-top:8px;border-radius:12px;border:1px solid var(--panel-border);text-align:center;font-size:13.5px;font-weight:700;color:var(--accent-dark)}
.sh-more:disabled{opacity:.6}
.u{align-self:flex-end;max-width:84%;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.u-b{background:var(--bubble-bg);color:var(--bubble-fg);border:var(--line) solid var(--bubble-line);border-radius:var(--r-bub);padding:10px 14px;font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.u-meta{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--muted)}
.u-meta svg{width:12px;height:12px}
.u-att{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
.chip{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:var(--r-chip);background:var(--chip-bg);border:1px solid var(--chip-border);font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pend{font-size:11px;color:var(--amber);font-weight:600}
.txt{font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.txt p{margin:0 0 8px}.txt p:last-child{margin-bottom:0}
.txt h3{font-size:16px;margin:10px 0 6px}
.txt ul,.txt ol{margin:0 0 8px;padding-left:22px}
.txt li{margin:2px 0}
.txt code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;background:var(--code-bg);border-radius:4px;padding:1px 4px}
.txt pre{margin:0 0 8px;padding:10px 12px;background:var(--code-bg);border-radius:10px;overflow-x:auto;font-size:12.5px;line-height:1.5}
.txt pre code{background:none;padding:0}
.txt strong{font-weight:700}
/* PH8: any part of what the AI wrote (and what was asked) is picked with a long press and copied, from one character */
.txt,.u-b,.q-t,.q-d,.q-fold,.q-more,.as-req,.as-step,.hq,.why,.notice,.fl-s,.fl-h,.fl-c,.fl-fold{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.work{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:8px 12px;border-radius:10px;background:var(--code-bg);font-size:13px;color:var(--muted)}
.work-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.work svg{width:16px;height:16px;flex:none}
.chev svg{transition:transform .15s}
.chev.up svg{transform:rotate(180deg)}
.work-lines{margin:-6px 0 0;padding:8px 12px 10px 14px;background:var(--code-bg);border-radius:0 0 10px 10px;font-size:12.5px;line-height:1.85;color:var(--ink-2)}
.wl{display:flex;gap:6px;align-items:baseline}
.wl-i{flex:none;width:18px;text-align:center}
.wl-t{flex:1;min-width:0;overflow-wrap:anywhere}
.wl-d{color:var(--muted);font-size:11.5px;margin-left:4px;display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom} /* r2-4: 「3 シート」 never breaks */
.wl.err .wl-t{color:var(--red)}
/* PM1: the PC's spinner (one turn in 0.9 s, transform only) and its slow blink of the badge's dot (1 → 0.4, 1.1 s each way) */
.spin{width:14px;height:14px;flex:none;display:inline-block;color:var(--accent);animation:sp .9s linear infinite}
.spin .trk{stroke:var(--accent-line)}
@keyframes sp{to{transform:rotate(360deg)}}
.dot.blink{animation:bl 1.1s ease-in-out infinite alternate}
@keyframes bl{from{opacity:1}to{opacity:.4}}
.wl-i .spin{width:12px;height:12px;vertical-align:-1px}
.wl-c{font-variant-numeric:tabular-nums}
.dr-st .spin{width:12px;height:12px}
.stopm{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 7px 0 5px;border-radius:10px;background:var(--red-bg);color:var(--red);font-size:11px;font-weight:700;align-self:flex-start}
.stopm svg{width:12px;height:12px}
/* PH3: the card says its type (the badge), what it is (one line) and how it opens (「開く ⌃」) */
.art{display:flex;align-items:center;gap:12px;width:100%;min-height:66px;padding:10px 14px 10px 10px;background:var(--surface);border:var(--line) solid var(--panel-border);border-radius:var(--r-card);box-shadow:var(--card-shadow)}
.art:active{background:var(--drawer-bg)}
.art[disabled]{opacity:1}
.thumb{width:46px;height:46px;flex:none;border-radius:10px;background:var(--accent-bg);border:1px solid var(--accent-line);display:inline-flex;align-items:center;justify-content:center;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10.5px;font-weight:700;letter-spacing:.02em;color:var(--accent-dark)}
.art.ext .thumb{background:var(--code-bg);border-color:var(--rule);color:var(--muted)}
.art-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.art-name{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.art-meta{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.art-open{flex:none;display:inline-flex;align-items:center;gap:2px;font-size:12.5px;font-weight:700;color:var(--accent-dark);white-space:nowrap}
.art-open svg{width:15px;height:15px}
.art-open svg.up{transform:rotate(180deg)}
.tag{display:inline-flex;align-items:center;flex:none;height:18px;padding:0 6px;border-radius:4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10.5px;font-weight:700;background:var(--accent-badge);color:var(--accent-dark)}
.pics{display:flex;flex-wrap:wrap;gap:6px}
.pics img{width:120px;height:90px;object-fit:cover;border-radius:10px;border:1px solid var(--rule);background:var(--surface)}
.more{font-size:12px;color:var(--muted)}
.q{background:var(--question-bg);border:1px solid var(--question-border);border-radius:var(--r-card);padding:14px;display:flex;flex-direction:column;gap:8px}
.q-h{font-size:11px;font-weight:700;color:var(--muted)}
.q-t{font-size:15px;font-weight:700;line-height:1.6}
.q.perm{background:var(--amber-bg);border-color:var(--amber-border)}
.q.perm .q-h{color:var(--amber-dark)}
.q-more{font-size:12px;color:var(--amber-dark);margin-top:-2px}
.q.perm .opt.r-approve{background:var(--primary-bg);border-color:var(--primary-bg);color:var(--primary-fg);font-weight:700}
.q.perm .opt.r-approve .opt-d{color:var(--primary-fg);opacity:.85;font-weight:400}
.q.perm .opt.r-skip{background:transparent;border:1.5px solid var(--primary-bg);color:var(--primary-bg)}
.q.perm .opt.r-skip .opt-d{color:var(--primary-bg);opacity:.85}
.q.perm .opt.r-decline{background:transparent;border:1px solid var(--input-border)}
.q-d{max-height:40vh;overflow:auto;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.5;white-space:pre-wrap;word-break:break-all;border:1px solid var(--input-border);border-radius:var(--r-in);padding:6px 8px;background:var(--surface);color:var(--ink)}
/* D96 (lane CE1): an approval card in plain words — facts, the guidance, the agent's note, the AI's line, ［中身を見る］ */
.q-f{margin:-2px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px;font-size:13.5px;line-height:1.55;color:var(--ink-2)}
.q-f li::before{content:"・";color:var(--muted)}
.q-g{font-size:13.5px;font-weight:700;line-height:1.55;color:var(--amber-dark)}
.q-n,.q-ai{font-size:12.5px;line-height:1.55;color:var(--muted)}
.q-raw{align-self:flex-start;min-height:44px;padding:0 4px;background:transparent;border:0;color:var(--accent);font-size:13.5px;text-decoration:underline;text-underline-offset:3px}
.opt{display:flex;flex-direction:column;justify-content:center;min-height:48px;padding:10px 14px;border-radius:var(--r-in);background:var(--surface);border:1px solid var(--input-border);font-size:14px;line-height:1.5;width:100%}
.opt:active,.opt.on{background:var(--accent-bg);border-color:var(--accent)}
.opt-d{font-size:12px;color:var(--muted);margin-top:2px}
.q-other{width:100%;min-height:44px;border:1px solid var(--input-border);border-radius:var(--r-in);padding:10px 12px;font:inherit;font-size:16px;background:var(--input-bg);caret-color:var(--caret);color:var(--ink)}
.q-go{align-self:flex-end;height:42px;padding:0 18px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);font-weight:700;font-size:14px}
.q-go:disabled{opacity:.45}
.q-ans{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--other-fg);font-weight:600}
.q-ans.closed{color:var(--muted)}
.q-ans svg{width:18px;height:18px}
.notice{font-size:12px;color:var(--muted);align-self:center;text-align:center;line-height:1.6}
.notice.warn2{align-self:stretch;text-align:left;white-space:pre-line;font-size:13px;padding:10px 12px;border-radius:12px;background:var(--amber-bg);border:1px solid var(--amber-border);color:var(--amber-dark)}
.notice.warn2 .nw{white-space:nowrap}
.notice.err{align-self:stretch;text-align:left;font-size:13px;padding:10px 12px;border-radius:12px;background:var(--red-bg);border:1px solid var(--red-card-border);color:var(--red)}
.notice.err .notice-link{display:inline-block;margin-top:6px;color:var(--link-dark);font-weight:700;text-decoration:underline}
.notice.div{align-self:stretch;display:flex;align-items:center;gap:10px}
.notice.div::before,.notice.div::after{content:"";flex:1;height:1px;background:var(--rule)}
/* PM1: the one line at the bottom of a running turn: always one line high, so nothing above it jumps as its words change */
.live{flex:none;display:flex;align-items:center;gap:8px;height:24px;padding:0 2px;font-size:13px;font-weight:600;color:var(--accent);white-space:nowrap;overflow:hidden}
.live .wd{display:none;width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.live.wait{color:var(--amber)}
.live.wait .spin{display:none}
.live.wait .wd{display:inline-block}
.live.quiet{color:var(--muted)}
.live.quiet .spin{color:var(--muted)}
.live .lt{flex:none;max-width:72%;overflow:hidden;text-overflow:ellipsis}
.live .el{flex:none;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
.live .tl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11.5px;font-weight:400;color:var(--faint);opacity:.8;transition:opacity .5s}
.live .tl.gone{opacity:0}
/* PM1: a request shown before the PC has it (faint), or one that did not reach it */
.u.ob{opacity:.55}
.u.ob.failed{opacity:1}
.u.ob.failed .u-b{border-color:var(--red-card-border)}
.ob-why{font-size:12px;color:var(--red);text-align:right;line-height:1.5}
.ob-acts{display:flex;gap:6px}
.ob-b{height:34px;padding:0 14px;border-radius:17px;border:1px solid var(--panel-border);background:var(--surface);font-size:12.5px;font-weight:700;color:var(--ink-2)}
.ob-b.pri{background:var(--primary-bg);border-color:var(--primary-bg);color:var(--primary-fg)}
.ob-b:disabled{opacity:.45}
.comp{flex:none;background:var(--surface);border-top:1px solid var(--panel-border);padding:10px 14px 4px;display:flex;flex-direction:column;gap:6px}
.comp-note{font-size:12px;color:var(--red);padding:0 6px}
/* D42: the PC's framed box (the hidden copy that measures the examples has the same rule: UX1) */
.ta{display:block;width:100%;min-height:62px;max-height:140px;resize:none;border:1px solid var(--composer-line);border-radius:var(--r-comp);padding:8px 10px;font:inherit;font-size:16px;line-height:1.5;color:var(--ink);background:var(--input-bg);caret-color:var(--caret);outline:none}
.ta:focus{border-color:var(--accent)}
.ta:disabled{background:var(--code-bg)}
.ta::placeholder{color:var(--faint)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.scrim{position:absolute;inset:0;z-index:15;background:rgba(var(--shade-1,15,22,32),.38);animation:fd .2s;width:100%}
.scrim.still{animation:none}
.scrim.out{opacity:0;transition:opacity .2s}
@keyframes fd{from{opacity:0}to{opacity:1}}
/* the agents from the left (P11); PH3: they slide in once, follow a finger to the left and slide back out */
.drawer{position:absolute;top:0;bottom:0;left:0;width:min(304px,84vw);z-index:16;background:var(--surface);display:flex;flex-direction:column;box-shadow:4px 0 24px rgba(var(--shade-1,15,22,32),.18);padding-top:max(env(safe-area-inset-top),var(--sat,0px));transition:transform .2s ease-out;touch-action:pan-y}
.drawer.in{animation:dr .24s cubic-bezier(.2,.8,.2,1)}
.drawer.out{transform:translateX(-105%);transition:transform .2s ease-in}
@keyframes dr{from{transform:translateX(-100%)}to{transform:none}}
.dr-hd{padding:18px 16px 12px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--rule)}
.dr-t{font-size:19px;font-weight:700;display:flex;align-items:center;gap:10px}
.dr-t .brand{width:26px;height:26px;flex:none}
/* lane PI1 (owner 10-25, 案 A): the title is a button to the PCアシスタント — the look barely changes, a faint 「›」, a pressed state */
.dr-tb{align-self:stretch;margin:-6px -8px;padding:6px 8px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:19px;font-weight:700;text-align:left;-webkit-tap-highlight-color:transparent}
.dr-tb:active{background:var(--code-bg)}
.dr-tb:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.dr-tc{margin-left:auto;font-size:18px;font-weight:400;color:var(--faint)}
.dr-list{flex:1;overflow-y:auto;padding:6px 0}
.drawer>.dr-list:last-child{padding-bottom:calc(6px + max(env(safe-area-inset-bottom),var(--sab,0px)))} /* review PH12: no ⚙ line below */
.dr-i{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:8px 16px}
.dr-i.on{background:var(--accent-bg)}
.dr-i:active{background:var(--code-bg)}
.av{width:36px;height:36px;border-radius:11px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;background:var(--accent-badge);color:var(--accent-dark)}
.dr-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.dr-n{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr-g{padding:12px 16px 4px;font-size:12px;font-weight:700;color:var(--muted)}
.dr-pin{margin-left:6px;font-size:12px;color:var(--accent)}
.dr-pv{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr-st{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.ask{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:10px;background:var(--amber-bg);color:var(--amber-dark);font-size:11px;font-weight:700;align-self:flex-start}
.ubadge{min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--accent);color:var(--primary-fg);font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none}
.dr-note{padding:4px 16px 14px 64px;font-size:12px;line-height:1.5;color:var(--muted)} /* D65: removing stays on the PC, under 新しいエージェント */
/* D80 (PH12): ⚙ 設定, the panel's last line (the set-and-forget switches live behind it) */
.dr-set{flex:none;display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px 16px calc(12px + max(env(safe-area-inset-bottom),var(--sab,0px)));border-top:1px solid var(--rule);font-size:14px;font-weight:600;color:var(--ink)}
.dr-set:active{background:var(--code-bg)}
.dr-set svg{width:20px;height:20px;flex:none;color:var(--muted);margin:0 8px}
/* PH3 (P13): the artifact sheet: from below to 92 %, the conversation dimmed behind; A's line and C's frame on it too */
.vwrap{position:absolute;inset:0;z-index:30}
.vscrim{position:absolute;inset:0;width:100%;background:rgba(var(--shade-1,15,22,32),.42)}
.vscrim.in{animation:fd .26s}
.vscrim.out{opacity:0;transition:opacity .22s}
.vsheet{position:absolute;left:0;right:0;bottom:0;height:92%;display:flex;flex-direction:column;overflow:hidden;background:var(--surface) linear-gradient(90deg,var(--top-line),var(--top-line-end)) top/100% 3px no-repeat;border:1px solid var(--panel-border);border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -10px 30px rgba(var(--shade-1,15,22,32),.2);transition:transform .24s cubic-bezier(.2,.8,.2,1)}
.vsheet.in{animation:vsu .3s cubic-bezier(.2,.8,.2,1)}
.vsheet.out{transform:translateY(105%);transition:transform .22s ease-in}
@keyframes vsu{from{transform:translateY(100%)}to{transform:none}}
.vtop{flex:none;touch-action:none;cursor:grab}
.grab{width:42px;height:5px;border-radius:3px;background:var(--input-border);margin:8px auto 2px}
.vh{display:flex;align-items:center;gap:10px;padding:4px 12px 10px 16px;border-bottom:1px solid var(--rule)}
.vh-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.vh-name{display:block;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vh-sub{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;color:var(--muted)}
.vh-sum{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vclose{flex:none;display:inline-flex;align-items:center;gap:3px;height:36px;padding:0 12px 0 14px;border-radius:18px;background:var(--code-bg);color:var(--ink);font-size:13px;font-weight:700;white-space:nowrap}
.vclose svg{width:16px;height:16px}
.vclose:active{background:var(--rule)}
.vfoot{flex:none;display:flex;align-items:center;gap:8px;padding:10px 14px calc(12px + max(env(safe-area-inset-bottom),var(--sab,0px)));background:var(--surface);border-top:1px solid var(--rule)}
.vfoot .grow{flex:1}
.vnote{flex:none;padding:8px 16px;font-size:12px;color:var(--muted);background:var(--surface);border-top:1px solid var(--rule)}
.pill{height:42px;padding:0 18px;border-radius:21px;background:var(--code-bg);color:var(--ink);font-size:14px;font-weight:700;white-space:nowrap}
.pill.pri{background:var(--primary-bg);color:var(--primary-fg)}
.pill:active{opacity:.8}
/* PH2: the box scrolls, the frame never widens the page (width:1px + min-width: iOS sizes a frame to its content otherwise) */
.vbox{flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;background:var(--surface)}
.vframe{position:absolute;top:0;left:0;width:1px;min-width:100%;height:100%;border:0;display:block;background:var(--surface)}
.vbar{flex:none;display:flex;justify-content:center;padding:8px 12px;background:var(--surface);border-bottom:1px solid var(--rule)}
.vopen{display:inline-flex;align-items:center;height:36px;padding:0 16px;border-radius:10px;border:1px solid var(--input-border);font-size:13px;font-weight:600;color:var(--accent-dark);text-decoration:none}
.toast{position:absolute;left:24px;right:24px;bottom:96px;z-index:40;padding:12px 16px;border-radius:12px;background:var(--ink);color:var(--surface);font-size:13px;line-height:1.6;text-align:center;animation:bn2 .2s ease-out}
@keyframes bn2{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.pics-col{display:flex;flex-direction:column;gap:8px}
/* PH3: the artifacts 「これについて頼む」 added, waiting in the composer */
.att{display:flex;flex-wrap:wrap;gap:6px;padding:0 2px}
.achip{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:34px;padding:0 3px 0 8px;border-radius:10px;background:var(--chip-bg);border:1px solid var(--chip-border);font-size:12.5px}
.achip .an{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.achip button{width:28px;height:28px;flex:none;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.achip button svg{width:14px;height:14px}
@media (prefers-reduced-motion:reduce){.vsheet,.vscrim,.drawer,.scrim,.toast,.chev svg{animation:none!important;transition:none!important}}
/* PM1: with less motion asked for, nothing turns, blinks or fades: the clocks alone still move */
@media (prefers-reduced-motion:reduce){.spin,.dot.blink,.live .tl{animation:none!important;transition:none!important}}
/* PF1 (P17, mock 案 B): the agent's files from below — the artifact sheet's component (A's line and C's frame come with it) */
.filesb{margin-left:4px}
.ph{container-type:inline-size}
@media (max-width:430px){.filesb{padding:0 9px}.filesb span{display:none}} /* the director: narrow phones keep the room for the agent's name (PR1: 録音 took 40 px more) */
@container (max-width:430px){.filesb{padding:0 9px}.filesb span{display:none}} /* the page's own width (also in the preview) */
.fwrap{z-index:25}
.vsheet.fsheet{height:86%}
.fs-add{flex:none;display:flex;gap:8px;padding:12px 14px 6px}
.fs-pb{flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px}
.fs-pb svg{width:18px;height:18px;flex:none}
.fs-pb span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fs-pb:disabled{opacity:.45}
.fs-prog{flex:none;display:flex;flex-direction:column;gap:6px;padding:6px 16px 4px;font-size:12px;color:var(--muted)}
.fs-bar{display:block;height:5px;border-radius:3px;background:var(--rule);overflow:hidden}
.fs-bar i{display:block;height:100%;width:0;background:var(--accent);border-radius:3px;transition:width .2s}
.fs-tree{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px 8px 14px;overscroll-behavior:contain}
.fs-row{display:flex;align-items:center;gap:10px;flex:1;min-width:0;width:100%;min-height:48px;padding:6px 8px;border-radius:10px}
.fs-row:active{background:var(--code-bg)}
.fs-row.off{color:var(--muted)}
.fs-tw{width:16px;flex:none;display:inline-flex;justify-content:center;color:var(--muted)}
.fs-tw svg{width:14px;height:14px;transition:transform .15s}
.fs-tw.down svg{transform:rotate(90deg)}
.fs-ic{flex:none;display:inline-flex;color:var(--accent-dark)}
.fs-ic svg{width:19px;height:19px}
.fs-row.off .fs-ic{color:var(--muted)}
.fs-ty{min-width:40px;justify-content:center}
.fs-row.off .fs-ty{background:var(--code-bg);color:var(--muted)}
.fs-nm{flex:1;min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fs-row.dir .fs-nm{font-weight:600}
.fs-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.fs-meta{display:flex;align-items:center;gap:6px;min-width:0}
.fs-dt{flex:none;font-size:11.5px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.fs-mark{flex:none;height:17px;padding:0 6px;border-radius:9px;display:inline-flex;align-items:center;font-size:10.5px;font-weight:700;background:var(--new-bg);color:var(--new-fg)}
.fs-mark.mod{background:var(--accent-badge);color:var(--accent-dark)}
.fs-line{display:flex;align-items:center;gap:2px}
.fs-more{flex:none;width:40px;height:40px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.fs-more svg{width:18px;height:18px}
.fs-more[aria-expanded="true"]{background:var(--code-bg);color:var(--ink)}
.fs-menu{display:flex;flex-direction:column;margin:0 44px 6px 0;border:1px solid var(--panel-border);border-radius:12px;background:var(--surface);overflow:hidden;box-shadow:0 4px 14px rgba(var(--shade-1,15,22,32),.08)}
.fs-menu button{min-height:44px;padding:0 14px;font-size:14px;font-weight:600}
.fs-menu button+button{border-top:1px solid var(--rule)}
.fs-menu button:active{background:var(--code-bg)}
.fs-none{font-size:12.5px;color:var(--muted);padding:8px 12px 8px 32px}
.fs-foot{flex:none;padding:10px 16px calc(12px + max(env(safe-area-inset-bottom),var(--sab,0px)));font-size:12px;line-height:1.6;color:var(--muted);border-top:1px solid var(--rule);background:var(--surface)}
@media (prefers-reduced-motion:reduce){.fsheet,.fs-bar i,.fs-tw svg{animation:none!important;transition:none!important}}
/* PR1 (D30 ②): 録音 (the PC's mark: grey ring, red dot; red is the recording's meaning colour in A, B and C) and the 🎤 */
.recmark circle{fill:none}.recmark .rdot{fill:var(--red);stroke:none}
@keyframes recpulse{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.rd-dot.on{animation:none}}
.comp-note.dict{color:var(--muted)}
.comp-note.amber{color:var(--amber-dark)} /* review PR1 F12: the 🎤's notes are not errors */
.recdock{flex:none;background:var(--surface);border-top:1px solid var(--panel-border);padding:10px 12px 12px;display:flex;flex-direction:column;gap:7px}
.rd-top{display:flex;align-items:center;gap:9px;min-height:28px}
.rd-dot{width:12px;height:12px;border-radius:50%;background:var(--faint);flex:none}
.rd-dot.on{background:var(--red);animation:recpulse 1.6s ease-in-out infinite}
.rd-clock{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink);min-width:64px}
.rd-meter{display:flex;align-items:center;gap:8px} /* RC2 item 5: the big マイク meter */
.rd-ml{flex:none;width:74px;font-size:12px;color:var(--ink)}
.rd-seg{flex:1;min-width:0;display:flex;gap:2px;height:30px}
.rd-seg i{flex:1;min-width:0;border-radius:3px;background:var(--panel-border)}
.rd-seg i.on{background:var(--accent)}
.rd-mw{flex:none;min-width:52px;font-size:12px;color:var(--muted);text-align:right}
.rd-to{flex:1;min-width:0;font-size:12px;color:var(--muted);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-line{font-size:13px;font-weight:700;color:var(--red)}
.rd-warn{font-size:12px;color:var(--amber-dark);background:var(--amber-bg);border:1px solid var(--amber-border);border-radius:var(--r-in);padding:6px 9px}
.rd-send{font-size:12px;color:var(--muted)}
.rd-b{display:flex;gap:8px}
.rd-pause{flex:none;height:44px;padding:0 16px;border-radius:var(--r-btn);border:1px solid var(--input-border);background:transparent;color:var(--ink);font-size:14px}
.rd-pause:disabled{opacity:.45}
.rd-fin{flex:1;height:44px;padding:0 12px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);font-weight:700;font-size:14px}
.rd-more{align-self:flex-end;font-size:12px;color:var(--muted);padding:4px 2px;background:none}
.rcard{margin:8px 10px 0;flex:none}
.rc-d{font-size:13px;line-height:1.6;color:var(--ink)}
.rc-wifi{color:var(--muted);font-size:12px}
.recmk{flex:none;display:flex;align-items:center;gap:8px;margin:6px 12px;font-size:12.5px;color:var(--muted)}
.recmk svg{width:16px;height:16px}
.notice.min{align-self:stretch;text-align:left;padding:10px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--panel-border);color:var(--ink);font-size:13.5px;display:flex;flex-direction:column;gap:8px}
.min-t{display:flex;gap:7px;align-items:flex-start;font-weight:600}
.min-t svg{width:17px;height:17px;flex:none;margin-top:1px;color:var(--accent)}
.min-b{display:flex;gap:8px;flex-wrap:wrap}
.min-open{height:36px;padding:0 16px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);font-weight:700;font-size:13px}
.min-ask{height:36px;padding:0 14px;border-radius:var(--r-btn);border:1.5px solid var(--primary-bg);color:var(--primary-bg);background:transparent;font-size:13px}
/* PH16 (D135): the read-only sheet (minutes, 完全おまかせの控え), ≡'s row */
.rs-body{padding-top:6px}
.rs-sub{padding:0 16px 6px;font-size:12.5px;color:var(--faint);font-variant-numeric:tabular-nums}
.rs-sub[hidden]{display:none}
.rs-x{margin:4px 0 0}
.rs-plain{white-space:pre-wrap;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.rs-follow{display:flex;flex-direction:column;gap:2px;margin:4px 0 10px;padding:9px 12px;border-radius:var(--r-card);background:var(--accent-bg);color:var(--accent-dark);font-size:13.5px;line-height:1.6}
.rs-follow b{font-size:12px;font-weight:700;letter-spacing:.04em}
.rs-hint{margin:4px 0 10px;font-size:12.5px;line-height:1.6;color:var(--muted)}
.rs-cut{margin:14px 0 0;font-size:12.5px;color:var(--faint);text-align:center}
.rs-log{list-style:none;margin:0;padding:0}
.rs-log li{display:flex;flex-wrap:wrap;gap:2px 10px;padding:10px 2px;border-bottom:1px solid var(--rule);font-size:14px;line-height:1.55}
.rs-log .t{flex:none;color:var(--faint);font-variant-numeric:tabular-nums;font-size:12.5px;padding-top:1px}
.rs-log .w{flex:none;font-weight:600;font-size:13px}
.rs-log .l{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}
.dr-log{flex:none;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 16px;border-top:1px solid var(--rule);font-size:14px;font-weight:600;color:var(--ink);text-align:left}
.dr-log:active{background:var(--code-bg)}
.dr-log svg{width:20px;height:20px;flex:none;color:var(--muted);margin:0 8px}
.dr-kept{display:block;margin:2px 12px 0;padding:8px 12px;border-radius:10px;background:var(--amber-bg);border:1px solid var(--amber-border);color:var(--amber-dark);font-size:13px;text-align:left}
/* GR1: the rules line (amber when the person's text changed or the turn read outside content) and its diff; the handover line */
.rules{align-self:stretch;display:flex;flex-direction:column;gap:4px}
.rules-b,.hand-b{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:8px 12px;border-radius:10px;background:var(--accent-bg);border:1px solid var(--accent-line);color:var(--accent-dark);font-size:13px;text-align:left}
.rules.amber .rules-b{background:var(--amber-bg);border-color:var(--amber-border);color:var(--amber-dark)}
.rules-t,.hand-t{flex:1;min-width:0;overflow-wrap:anywhere}
.rules-b .chev svg,.hand-b .chev svg{width:15px;height:15px;display:block}
.rules-n{font-size:12px;color:var(--amber-dark);padding:0 4px}
.rules-d,.hand-d{padding:8px 10px 10px;background:var(--code-bg);border-radius:10px;font-size:12px;line-height:1.7;color:var(--ink-2)}
.rules-h{font-weight:700;margin-bottom:4px;color:var(--ink-2)}
.rules-d .dl{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;padding:0 4px;border-radius:4px}
.rules-d .dl.add{background:rgba(26,127,55,.14)}
.rules-d .dl.del{background:var(--red-bg);color:var(--red)}
.rules-d .dl.hunk{color:var(--muted)}
.rules-f{margin-top:6px;font-size:11.5px;color:var(--muted)}
.hand{align-self:stretch;display:flex;flex-direction:column;gap:4px}
.hand-b{background:var(--code-bg);border-color:transparent;color:var(--muted)}
.hand-b svg{width:16px;height:16px;flex:none}
.hand-l{font-size:11.5px;color:var(--muted);margin-top:2px}
.hand-s{white-space:pre-wrap;overflow-wrap:anywhere}
.hand-w{margin:0 0 6px;padding:2px 0 4px;background:transparent}
/* PA1 (D42, the owner's approved mock): the PC's ComposerView on both tabs — the small label, the framed two-line box in the
   look's line, ring and corners (ComposerLine, InputRing, ComposerRadius), and under the frame ＋ ⏺ 録音 … 🎤 頼む／送る */
.comp-l{display:block;font-size:12px;line-height:18px;min-height:18px;color:var(--muted);padding:0 1px}
.comp-l .comp-m{color:var(--faint)} /* lane ML1: the model that runs now, quieter than the label */
.comp-l.dict{color:var(--link-dark);font-weight:700;display:flex;align-items:center;gap:7px}
/* VF1 (D46): the waveform, the clock, the ring around the listening 🎤, the finished line that fades */
.wave{flex:none;display:inline-flex;align-items:center;gap:2px;height:12px;color:var(--link)}
.wave i{display:block;width:3px;height:20%;min-height:3px;border-radius:2px;background:currentColor}
.dclock{font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
.comp-l.cue{display:flex;width:fit-content;max-width:100%;align-items:center;flex-wrap:wrap;column-gap:6px;padding:4px 10px;border-radius:var(--r-btn);background:var(--ok-bg);color:var(--ok-fg);font-weight:700;opacity:1;transition:opacity .6s}
.comp-l.cue.fade{opacity:0}
.cue-ok{width:14px;height:14px;flex:none}
.cue-d{display:inline-flex;align-items:center;gap:5px;font-weight:400}
.cue-d svg{width:12px;height:12px}
.comp-box{position:relative;border-radius:var(--r-comp);box-shadow:0 0 0 3px var(--input-ring)}
.comp-b{display:flex;align-items:center;gap:2px;min-height:48px}
.cb-plus{width:40px;height:44px;margin-left:-8px;display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--ink-2);border-radius:7px}
.cb-plus svg{width:20px;height:20px}
.cb-rec{height:44px;padding:0 8px 0 5px;display:inline-flex;align-items:center;gap:5px;flex:none;font-size:14px;color:var(--ink);border-radius:7px}
.cb-rec .recmark{width:18px;height:18px;color:var(--muted)}
.cb-gap{flex:1}
.cb-mic{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--ink-2);border-radius:7px}
.cb-mic svg{width:20px;height:20px}
.cb-mic.on{background:var(--primary-bg);color:var(--primary-fg);border-radius:var(--r-send);position:relative}
.cb-mic.on::after{content:"";position:absolute;inset:-3px;border:2px solid var(--primary-bg);border-radius:calc(var(--r-send) + 3px);pointer-events:none;animation:micring 1.8s ease-out infinite}
@keyframes micring{0%{opacity:.6;transform:scale(1)}83%,100%{opacity:0;transform:scale(1.22)}}
@media (prefers-reduced-motion:reduce){.cb-mic.on::after{animation:none;opacity:.4}.comp-l.cue{transition:none}}
.cb-plus:active,.cb-rec:active,.cb-mic:active{background:var(--code-bg)}
.cb-plus:disabled,.cb-rec:disabled,.cb-mic:disabled{opacity:.45}
/* lane PI1 (owner 10-25, the approved mock): the PC's 画像 button left of 🎤 — the typing mode (its tint, the box's accent frame,
   「🖼 画像モード」 on the box), held (頼む's colours and a ring, as the listening 🎤), its row above the box and its card */
.cb-img{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--ink-2);border-radius:7px;position:relative;
  -webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none} /* review 1 B1: the hold is the button's own (no scroll takes it) */
.cb-img svg{width:20px;height:20px}
.cb-img circle{fill:currentColor;stroke:none}
.cb-img.mode{background:var(--accent-bg);color:var(--accent-dark);box-shadow:inset 0 0 0 2px var(--accent)}
.cb-img.on{background:var(--primary-bg);color:var(--primary-fg);border-radius:var(--r-send)}
.cb-img.on::after{content:"";position:absolute;inset:-3px;border:2px solid var(--primary-bg);border-radius:calc(var(--r-send) + 3px);pointer-events:none;animation:micring 1.8s ease-out infinite}
@media (prefers-reduced-motion:reduce){.cb-img.on::after{animation:none;opacity:.4}}
.cb-img:active{background:var(--code-bg)}
.cb-img:disabled{opacity:.45}
.comp-box.imgmode{box-shadow:0 0 0 3px var(--accent-bg)}
.comp-box.imgmode .ta{border-color:var(--accent);padding-top:30px}
.img-chip{position:absolute;top:7px;left:10px;z-index:1;display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 9px;border-radius:999px;background:var(--accent-bg);color:var(--accent-dark);font-size:11.5px;font-weight:700;pointer-events:none}
.comp-l.img{color:var(--accent-dark);font-weight:700}
.img-st .sts .spin{width:16px;height:16px}
.icw{display:flex;flex-direction:column;gap:8px}
.icard{align-self:stretch;border:1px solid var(--panel-border);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.icard.stopped{background:var(--code-bg)}
.icard.stopped .ic-h,.icard.stopped .ic-m{color:var(--muted)}
.icard.failed .ic-m{background:var(--red)}
.icard.stopped .ic-m{background:var(--faint)}
.ic-live{display:flex;align-items:center;gap:8px;padding:10px 12px;font-size:13.5px;font-weight:600;color:var(--accent)}
.ic-h{display:flex;align-items:center;gap:7px;padding:9px 6px 9px 12px;font-size:14px}
.ic-m{width:18px;height:18px;flex:none;border-radius:50%;background:var(--accent);color:var(--primary-fg);display:inline-flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:700}
.ic-x{margin-left:auto;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:var(--faint);border-radius:8px}
.ic-x svg{width:16px;height:16px}
.ic-pic{display:block;width:100%;padding:0;border:0;background:var(--code-bg);cursor:zoom-in}
.ic-pic img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain}
.ic-acts{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px 4px}
.ic-l{padding:2px 12px 8px;font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.ic-cost{padding:4px 12px 10px;font-size:12px;color:var(--faint)}
.icard .notice-link{display:inline-block;margin:0 12px 10px}
.cb-send{height:40px;min-width:76px;padding:0 20px;margin-left:4px;border-radius:var(--r-send);background:var(--primary-bg);color:var(--primary-fg);font-size:15px;font-weight:700;text-align:center;flex:none}
.cb-send:disabled{opacity:.4}
.cb-send.stop{background:var(--surface);color:var(--red);border:1.5px solid var(--red)}
.cb-send.stop.busy{opacity:.45}
.hd-sub.st-ok{color:var(--other-fg)}
/* PA1 (D32): the assistant tab — 「PC に何を頼みますか？」, the skill chips, the run and its cards, the result, さっきの依頼 */
.asst{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:18px 16px 14px;display:flex;flex-direction:column;gap:14px}
.as-h{margin:0;font-size:20px;font-weight:700;line-height:1.4;color:var(--ink)}
.as-sk{display:flex;flex-direction:column;gap:6px}
.as-sk-h{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}
.as-all{font-size:13px;color:var(--link);padding:10px 0 10px 10px}
.as-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.as-chips.wrap{flex-wrap:wrap;overflow-x:visible}
.as-chip{flex:none;height:40px;padding:0 14px;border-radius:var(--r-chip);border:1px solid var(--chip-border);background:var(--surface);font-size:14px;white-space:nowrap;color:var(--ink)}
.as-chip.on{border:1.5px solid var(--accent);background:var(--accent-bg);color:var(--accent-dark);font-weight:700}
.as-card{flex:none}
.as-run{flex:none;background:var(--surface);border:1px solid var(--panel-border);border-radius:var(--r-card);padding:14px;display:flex;flex-direction:column;gap:7px;box-shadow:var(--card-shadow)}
.as-run.lock{background:var(--amber-bg);border-color:var(--amber-border)}
.as-run-t{display:flex;align-items:center;gap:8px;font-size:15px}
.as-run-t svg{width:18px;height:18px;flex:none;color:var(--accent)}
.as-run.lock .as-run-t,.as-run.lock .as-run-t svg,.as-run.lock .as-step{color:var(--amber-dark)}
.as-ck{margin-left:auto;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.as-req{font-size:14px;line-height:1.6;color:var(--ink);white-space:pre-wrap;word-break:break-word}
.as-run .as-req.clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden} /* PH9: a long request in three lines */
.as-more{align-self:flex-end;margin-top:-6px;padding:4px 0 4px 12px;font-size:13px;color:var(--link)}
.as-more[hidden]{display:none}
.as-step{font-size:13px;line-height:1.6;color:var(--muted)}
.as-stop{align-self:flex-start;height:40px;padding:0 16px;margin-top:2px;border-radius:var(--r-btn);border:1.5px solid var(--input-border);color:var(--ink);font-size:14px}
.as-stop:disabled{opacity:.5}
.as-res{flex:none;background:var(--surface);border:1px solid var(--panel-border);border-radius:var(--r-card);padding:14px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--card-shadow)}
.as-res.err{border-color:var(--red-card-border)}
.as-res-t{display:flex;align-items:center;gap:8px;font-size:15px}
.as-res-t svg{width:18px;height:18px;flex:none}
.as-res.ok .as-res-t svg{color:var(--ok)}
.as-res.ok .as-res-t>b{color:var(--ok)} /* DN1: 「✓ 完了」 in green, as the PC window */
.as-res.err .as-res-t{color:var(--red)}
.as-res.stopped .as-res-t{color:var(--muted)}
.as-res .as-res-t .mini{color:var(--muted)}.as-res .as-res-t .mini svg{width:15px;height:15px;color:inherit}.as-res .as-res-t .mini.ok{color:var(--ok)} /* PH8: 答えをコピー, as at a turn's end */
.as-res .as-req{color:var(--muted);font-size:13px}
.as-res-x{font-size:14px;line-height:1.7;max-height:50vh;overflow-y:auto}
.as-close{align-self:flex-start;height:40px;padding:0 16px;border-radius:var(--r-btn);border:1.5px solid var(--input-border);font-size:14px;color:var(--ink)}
.as-min{flex:none}
.as-min.failed{border-color:var(--amber-border);background:var(--amber-bg)}
.as-min-d{font-size:12.5px;color:var(--muted)}
.cb-menu{display:flex;gap:8px}
.cb-menu .fs-pb{flex:1;justify-content:center}
.cb-plus.on{background:var(--code-bg)}
.comp-note.up{color:var(--muted)}
/* PA1 review F5 (D75): Japanese never cut mid-word — breaks only where jaBreaks() put one, a longer phrase still fits */
.ja,.ta{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
.nb{white-space:nowrap} /* lane BL1 (UX3b leftover): 「3 件」 never parts at a line's end */
.ta::placeholder{word-break:keep-all;overflow-wrap:anywhere}
/* SV1 (D45): the PC's screen while the AI works — 「今の画面を見る」, the newest snapshot in the run card, the lock line,
   「作業の画面（N 枚）」, and the large view (dark like a photo viewer in every look; a tap on the picture zooms) */
.as-look{flex:none;display:flex;margin-top:-6px}
.look-b{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border-radius:19px;border:1px solid var(--accent-line);background:var(--accent-bg);color:var(--accent-dark);font-size:13.5px;font-weight:700;white-space:nowrap}
.look-b svg{width:17px;height:17px;flex:none}
.look-b.sm{height:36px;font-size:13px}
.look-b:disabled{opacity:.55}
.shot-b{position:relative;display:flex;flex-direction:column;align-self:stretch;max-width:340px;border:1px solid var(--panel-border);border-radius:10px;overflow:hidden;background:var(--surface);cursor:zoom-in}
.shot-i{display:block;width:100%;height:auto;max-height:240px;object-fit:contain;background:#14171b}
/* review F7 (mock ④): 「0:41 · 3 枚目」 on the picture, 今の画面を見る ・ 押すと大きく under it, the run's small pictures */
.shot-w{position:absolute;right:6px;bottom:6px;padding:1px 7px;border-radius:5px;background:rgba(0,0,0,.58);color:#fff;font-size:11.5px;line-height:1.6;font-variant-numeric:tabular-nums}
.shot-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:-2px}
.look-b.lk{height:40px;padding:0 2px;border:0;border-radius:6px;background:none;color:var(--link);font-weight:700}
.look-b.lk svg{width:16px;height:16px}
.shot-hint{font-size:12px;color:var(--muted)}
.look-why{align-self:center;font-size:12.5px;color:var(--amber-dark)}
.as-look{flex-wrap:wrap;align-items:center;gap:6px 10px}
.shot-strip{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.shot-strip .shot-list{height:40px;padding:0 2px;border:0;background:none;color:var(--link)}
.shot-s{display:flex;gap:6px;max-width:100%;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.shot-st{flex:none;width:64px;height:40px;border:1px solid var(--panel-border);border-radius:5px;overflow:hidden;background:#14171b}
.shot-st img{display:block;width:100%;height:100%;object-fit:cover}
.shot-lock{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:10px;border:1px solid var(--amber-border);background:var(--amber-bg);color:var(--amber-dark);font-size:13px;line-height:1.55}
.shot-lock svg{width:16px;height:16px;flex:none;margin-top:2px}
.shot-list{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:var(--r-btn);border:1.5px solid var(--accent-line);background:var(--accent-bg);color:var(--accent-dark);font-size:14px;font-weight:700;white-space:nowrap}
.shot-list svg{width:17px;height:17px;flex:none}
.as-res-b{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* D78 (PH11): the PC's green line under the result — 覚える (filled) / 覚えない (outline), and a changed skill's line */
.as-learn{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--rule);padding-top:10px}
.as-learn-q{font-size:14px;line-height:1.6;color:var(--ink)}
.as-learn-b{display:flex;flex-wrap:wrap;gap:8px}
.as-learn-yes{height:40px;padding:0 20px;border-radius:var(--r-btn);background:var(--primary-bg);border:1.5px solid var(--primary-bg);color:var(--primary-fg);font-size:14px;font-weight:700}
.as-learn-no{height:40px;padding:0 16px;border-radius:var(--r-btn);border:1.5px solid var(--accent-line);font-size:14px;color:var(--ink)}
.as-learn-yes:disabled,.as-learn-no:disabled{opacity:.45}
.as-chg{border-top:1px solid var(--rule);padding-top:10px;font-size:13px;line-height:1.6;color:var(--muted)}
.shot-ag{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:2px 0 6px}
.shot-ag .shot-b{width:100%}
.shot-ag .shot-row{align-self:stretch}
/* lane SV2 (owner 10-25, the mock's 案3): 「今の画面」 floats at the bottom right of an agent's conversation, in a zero-height
   holder under the chat (outside what PG1's swipe moves); under the sheets, ≡ and the viewer; the last lines scroll above it */
.fabw{flex:none;position:relative;height:0}
.fab{position:absolute;right:12px;bottom:12px;z-index:3;display:inline-flex;align-items:center;gap:7px;height:46px;padding:0 16px 0 14px;border-radius:23px;background:var(--surface);color:var(--accent-dark);border:1px solid var(--accent-line);font-size:14px;font-weight:700;white-space:nowrap;box-shadow:0 4px 14px rgba(var(--shade-1,15,22,32),.18)}
.fab svg{width:18px;height:18px;flex:none}
.fab .spin{width:16px;height:16px}
.fab:disabled{opacity:.55;box-shadow:0 2px 8px rgba(var(--shade-1,15,22,32),.1)}
.chat.fab-on::after{content:"";flex:none;height:40px}
/* lane PH-JUMP: the PC's 「↓ 最新へ」 floats at the bottom left while the person reads above (「今の画面」 has the right), in its
   own zero-height holder under the chat; hidden it takes no taps and no focus (visibility), shown or not nothing moves */
.chat.jp-end::after{content:"";flex:none;height:40px}
.jpw{flex:none;position:relative;height:0}
.jump{position:absolute;left:12px;bottom:12px;z-index:3;display:inline-flex;align-items:center;height:46px;padding:0 16px;border-radius:23px;background:var(--surface);color:var(--accent-dark);border:1px solid var(--accent-line);font-size:14px;font-weight:700;white-space:nowrap;box-shadow:0 4px 14px rgba(var(--shade-1,15,22,32),.18);visibility:hidden;opacity:0;transition:opacity .15s ease-out,visibility 0s linear .15s}
.jump.on{visibility:visible;opacity:1;transition:opacity .15s ease-out}
@media (prefers-reduced-motion:reduce){.jump{transition:none}}
.shv-top{flex:none;position:relative;z-index:2;display:flex;align-items:center;gap:8px;min-height:56px;padding:6px 8px 6px 16px}
.shv-h{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.shv-h b{font-size:15px}
.shv-s{font-size:12.5px;color:rgba(255,255,255,.72);font-variant-numeric:tabular-nums}
.shv-x{flex:none;width:44px;height:44px;border-radius:22px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);color:#fff}
.shv-x svg{width:22px;height:22px}
.shv-p,.shv-n{width:48px;height:48px;border-radius:24px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);color:#fff}
.shv-p svg,.shv-n svg{width:24px;height:24px}
.shv-p:disabled,.shv-n:disabled{opacity:.3}
.shv button:focus-visible{outline-color:#fff}
/* PH6 (D58, the owner's approved mock): no tabs at the bottom — ≡ opens the panel; the height is the composer's (the safe area only) */
.comp{padding-bottom:calc(4px + max(env(safe-area-inset-bottom),var(--sab,0px)))}
.recdock{padding-bottom:calc(12px + max(env(safe-area-inset-bottom),var(--sab,0px)))}
.mdot.wait{background:var(--amber)}
/* the amber line under the header: something waits for the person elsewhere (a tap opens it) */
.attn{flex:none;display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:0 10px 0 14px;background:var(--amber-bg);color:var(--amber-dark);border-bottom:1px solid var(--amber-border);font-size:13.5px;font-weight:700;letter-spacing:.02em;text-align:left;animation:fd .25s ease-out}
.attn .wd{width:8px;height:8px;border-radius:50%;flex:none;background:var(--amber);box-shadow:0 0 0 3px rgba(196,106,29,.18)}
.attn .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.attn .go{flex:none;display:inline-flex;align-items:center;gap:2px;font-size:12.5px;font-weight:400;white-space:nowrap}
.attn .go svg{width:14px;height:14px}
/* the panel: the PCアシスタント row, 「PCエージェント」 and the agents (the PCコンシェルジュ first) */
.dr-h{display:flex;align-items:center;gap:8px;margin:12px 16px 2px;font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.08em}
.dr-h::after{content:"";flex:1;height:1px;background:var(--rule)}
.dr-i{position:relative}
.dr-i.on::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:2px;background:var(--accent)}
.av.as-av{background:none}
.av.as-av .brand{width:36px;height:36px}
.av.desk{background:linear-gradient(135deg,var(--logo-1,#30dad6) 0%,var(--logo-2,#18b4e8) 50%,var(--logo-3,#0a79e8) 100%);color:#fff}
.ubadge.wait{background:var(--amber);color:#fff}
/* D59: ［履歴 N］ in the header */
.histb{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px 0 9px;border-radius:var(--r-btn);color:var(--ink);font-size:13.5px;font-weight:700;letter-spacing:.03em;white-space:nowrap}
.histb svg{width:20px;height:20px;flex:none;color:var(--accent-dark)}
.histb .cnt{min-width:21px;height:19px;padding:0 6px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-bg);color:var(--accent-dark);font-size:11.5px;letter-spacing:0;font-variant-numeric:tabular-nums}
.histb:active{background:var(--code-bg)}
/* the result's ［もう一度頼む］ and the line 「前回 … ✓ ›」 above the box */
.as-again{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:var(--r-btn);border:1.5px solid var(--accent);color:var(--accent-dark);font-size:14px;font-weight:700;white-space:nowrap}
.as-again svg{width:16px;height:16px;flex:none}
.as-again:disabled{opacity:.45}
.last{flex:none;display:flex;align-items:center;gap:9px;width:100%;min-height:48px;margin-top:auto;padding:6px 10px 6px 12px;border:var(--line) solid var(--panel-border);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--card-shadow);font-size:14px;color:var(--ink);text-align:left}
.last>svg{width:16px;height:16px;flex:none;color:var(--faint)}
.last .lb{flex:none;font-size:12.5px;color:var(--muted);letter-spacing:.06em}
.last .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.last .go{width:14px;height:14px}
.stt{display:inline-flex;align-items:center;gap:4px;font-weight:700;white-space:nowrap}
.stt.ok{color:var(--ok)}.stt.err{color:var(--amber-dark)}.stt.stop{color:var(--faint)}
.stt .sq{display:inline-block;width:8px;height:8px;border-radius:1.5px;background:currentColor}
/* the history sheet (from below, over the header's lower edge) */
.hs .scrim{z-index:30}
.hsheet{position:absolute;left:0;right:0;bottom:0;top:calc(58px + max(env(safe-area-inset-top),var(--sat,0px)));z-index:31;display:flex;flex-direction:column;background:var(--drawer-bg);border-radius:calc(var(--r-card) * 1.4) calc(var(--r-card) * 1.4) 0 0;box-shadow:0 -10px 30px rgba(var(--shade-2,10,20,30),.22);padding-bottom:max(env(safe-area-inset-bottom),var(--sab,0px));transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.hsheet.in{animation:su .28s cubic-bezier(.2,.8,.2,1)}
.hsheet.out{transform:translateY(100%)!important;transition:transform .2s ease-in}
.hs-grip{flex:none;touch-action:none;cursor:grab}
.hs-grip .grab{margin:8px auto 4px}
.hs-top{display:flex;align-items:center;gap:8px;padding:0 6px 4px 16px}
.hs-top h2{margin:0;font-size:18px;font-weight:700;letter-spacing:.04em}
.hs-top .n{font-size:12.5px;color:var(--faint);font-variant-numeric:tabular-nums}
.hs-top .sp{flex:1}
.hs-q{flex:none;position:relative;margin:4px 15px}
.hs-q[hidden],.hs-busy[hidden]{display:none}
.hs-q svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--faint);pointer-events:none}
.hs-q input{width:100%;height:44px;padding:0 12px 0 38px;border:var(--line) solid var(--input-border);border-radius:var(--r-in);background:var(--input-bg);box-shadow:var(--card-shadow);font:inherit;font-size:16px;color:var(--ink);caret-color:var(--caret);-webkit-appearance:none;appearance:none}
.hs-q input::placeholder{color:var(--faint)}
.hs-q input:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.hs-busy{flex:none;display:flex;align-items:center;gap:8px;margin:4px 15px 0;padding:8px 12px;border-radius:var(--r-card);background:var(--accent-bg);color:var(--accent-dark);font-size:13px}
.hs-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 15px 18px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.gh{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:10px;margin:0;padding:12px 0 7px;background:var(--drawer-bg);font-size:12.5px;font-weight:700;color:var(--faint);letter-spacing:.08em}
.gh::after{content:"";flex:1;height:1px;background:var(--rule)}
.gh .c{font-weight:400}
.hi{margin-bottom:10px;padding:12px 14px;border:var(--line) solid var(--panel-border);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--card-shadow)}
.hq{margin:0;font-size:15px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hq mark{background:var(--mark-hit);color:inherit;border-radius:2px;padding:0 1px}
.hm{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;margin-top:6px;font-size:12.5px;color:var(--faint)}
.hm time{color:var(--muted);font-variant-numeric:tabular-nums}
.skc{font-size:12px;padding:0 7px;border-radius:var(--r-chip);background:var(--code-bg);color:var(--muted);border:var(--line) solid var(--rule);line-height:1.7;white-space:nowrap}
.shl{position:relative;display:inline-flex;align-items:center;gap:4px;min-height:28px;color:var(--link);font-size:12.5px;font-weight:700;white-space:nowrap}
.shl::after{content:"";position:absolute;inset:-8px -6px}
.shl svg{width:15px;height:15px}
.why{margin:4px 0 0;font-size:12.5px;line-height:1.55;color:var(--amber-dark)}
.hb{display:flex;gap:8px;margin-top:10px}
.hb-b{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 10px;border-radius:var(--r-btn);font-size:14px;white-space:nowrap}
.hb-b svg{width:16px;height:16px;flex:none}
.hb-b.again{border:1.5px solid var(--accent);color:var(--accent-dark);font-weight:700}
.hb-b.fix{border:1px solid var(--rule);background:var(--code-bg);color:var(--ink)}
.hb-b:disabled{opacity:.45}
/* D79 (HS1b): a row's ⋯ (44 px, after the two buttons) and its three items under the row, as the PC's ⋯ */
.hb-m{flex:none;width:44px;min-height:44px;margin-left:auto;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--rule);border-radius:var(--r-btn);color:var(--muted)}
.hb-m svg{width:18px;height:18px}
.hb-m.on{border-color:var(--accent);color:var(--accent-dark);background:var(--accent-bg)}
.hb-m:disabled{opacity:.45}
.hpm{display:flex;flex-direction:column;margin-top:8px;border-top:1px solid var(--rule)}
.hpm-b{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px;text-align:left;font-size:14.5px;color:var(--ink);border-bottom:1px solid var(--rule)}
.hpm-b:last-child{border-bottom:0}
.hpm-b svg{width:16px;height:16px;flex:none;color:var(--accent-dark)}
.hpm-b:disabled{opacity:.45}
.copied.follow{min-width:0;max-width:78%}
.comp-lr .comp-l{flex:none;white-space:nowrap}
.copied.follow .ft{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hs-foot{margin:14px 0 0;text-align:center;font-size:12px;line-height:1.6;color:var(--faint)}
.hs-none{padding:28px 6px;text-align:center;font-size:14px;color:var(--muted)}
.hs-empty{box-sizing:border-box;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 30px 60px;text-align:center}
.hs-empty .ei{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent-bg);color:var(--accent-dark)}
.hs-empty .ei svg{width:30px;height:30px}
.hs-empty b{font-size:16.5px;letter-spacing:.03em}
.hs-empty p{margin:0;max-width:270px;font-size:14px;line-height:1.75;color:var(--muted)}
/* lane LB5: the 履歴's tabs ［依頼］［🖼 画像］［📝 議事録］ (the chosen one filled), the PC's chips, the pictures in 3 columns, the meetings as cards */
.hs-tabs{flex:none;display:flex;gap:6px;margin:2px 15px 6px}
.hs-tab{flex:1 1 0;min-width:0;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 6px;border:var(--line) solid var(--panel-border);border-radius:var(--r-btn);background:var(--surface);color:var(--muted);font-size:13.5px;font-weight:700;white-space:nowrap;text-align:center}
.hs-tab[hidden]{display:none}
.hs-tab svg{width:16px;height:16px;flex:none}
.hs-tab .w{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hs-tab .n{font-weight:500;font-size:12.5px;font-variant-numeric:tabular-nums;opacity:.75}
.hs-tab .n:empty{display:none}
.hs-tab.on{background:var(--primary-bg);border-color:var(--primary-bg);color:var(--primary-fg)}
.hs-chips{flex:none;display:flex;flex-wrap:wrap;gap:6px;margin:4px 15px 6px}
.hs-chips[hidden]{display:none}
.hs-chip{min-height:32px;padding:0 12px;border-radius:var(--r-chip);border:1px solid var(--chip-border);background:var(--chip-bg);font-size:13px;color:var(--muted);white-space:nowrap}
.hs-chip.on{border-color:var(--accent);background:var(--accent-bg);color:var(--accent-dark);font-weight:700}
.hs-note{margin:6px 0 10px;padding:9px 12px;border-radius:var(--r-card);background:var(--accent-bg);color:var(--accent-dark);font-size:13px;line-height:1.6}
.hs-list.sgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:8px 6px;align-content:start;padding-top:4px}
.hs-list.sgrid>:not(.st){grid-column:1/-1}
.st{display:flex;flex-direction:column;min-width:0;border:var(--line) solid var(--panel-border);border-radius:10px;overflow:hidden;background:var(--surface)}
.st-f{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:var(--code-bg);color:var(--faint)}
.st-f img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none}
.st-f svg{width:26px;height:26px;opacity:.55}
.st-c{display:flex;flex-direction:column;padding:3px 6px 5px;font-size:11px;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums}
.st-c span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-c .m{color:var(--faint)}
.st:focus-visible,.sm:focus-visible,.hs-tab:focus-visible,.hs-chip:focus-visible,.hs-more:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.sm{display:flex;flex-direction:column;gap:2px;width:100%;margin-bottom:10px;padding:11px 14px;border:var(--line) solid var(--panel-border);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--card-shadow)}
.sm-t{font-size:15px;line-height:1.5}
.sm-m{font-size:12.5px;color:var(--faint);font-variant-numeric:tabular-nums}
.sm-s{font-size:13.5px;line-height:1.55;color:var(--muted)}
.sm-g{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.sm-g span{font-size:11.5px;line-height:1.8;padding:0 7px;border-radius:6px;background:var(--accent-bg);color:var(--accent-dark)}
.sm-g .free{background:var(--ok-bg);color:var(--ok-fg)}
.sm-g .paid{background:var(--amber-bg);color:var(--amber-dark)}
.hs-more{display:block;width:100%;min-height:42px;margin:8px 0 0;border:1px dashed var(--rule);border-radius:var(--r-btn);color:var(--link);font-size:13.5px;font-weight:700;text-align:center}
.hs-more.fold{color:var(--muted)}
.rs-tx{margin:16px 0 0;padding-top:8px;border-top:1px solid var(--rule)}
.rs-tx summary{min-height:44px;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--muted);cursor:pointer;list-style:none}
.rs-tx summary::-webkit-details-marker{display:none}
.rs-tx summary::before{content:"▸";font-size:14px;color:var(--muted)}
.rs-tx[open] summary::before{content:"▾"}
.rs-tx .rs-plain{font-size:13.5px;line-height:1.7;color:var(--muted)}
.rs-foot{flex:none;display:flex;gap:8px;padding:10px 15px 12px;border-top:1px solid var(--rule)}
.rs-foot[hidden]{display:none}
.rs-foot .pill{flex:1 1 0}
.shv-acts{flex:none;display:flex;gap:8px;padding:4px 16px 16px}
.shv-acts .pill{flex:1 1 0;min-width:0;padding:0 8px;text-align:center;background:rgba(255,255,255,.14);color:#fff}
.shv-acts .pill.pri{background:var(--primary-bg);color:var(--primary-fg)}
.shv.shelf .shv-nav{padding-bottom:6px}
/* D59: the swipe viewer (the mock's ShotViewer; dark like a photo viewer in every look) */
.shv{position:absolute;inset:0;z-index:60;display:flex;flex-direction:column;background:rgba(11,13,16,var(--bga,1));color:#fff;padding-top:max(env(safe-area-inset-top),var(--sat,0px));padding-bottom:max(env(safe-area-inset-bottom),var(--sab,0px));animation:fd .2s ease-out}
.shv.closing{opacity:0;transition:opacity .22s ease-in}
.shv-top,.shv-hint,.shv-nav{transition:opacity .15s}
.shv.dragy .shv-top,.shv.dragy .shv-hint,.shv.dragy .shv-nav{opacity:0}
.shv-stage{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:zoom-in;outline:none}
.shv-stage:focus-visible{box-shadow:inset 0 0 0 2px #9fe3ff}
.shv.zoomed .shv-stage{cursor:grab}
.shv-stage.drag{cursor:grabbing}
.shv-track{display:flex;height:100%;will-change:transform}
.shv-slide{flex:0 0 100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0 8px;overflow:hidden}
.shv-pic{width:100%;display:flex;align-items:center;justify-content:center;transform-origin:50% 50%;will-change:transform}
.shv-i{display:block;width:100%;height:auto;max-height:calc(100dvh - 210px);object-fit:contain;border-radius:4px;pointer-events:none;-webkit-user-drag:none}
.shv-wait{font-size:14px;color:rgba(255,255,255,.72)}
.shv-hint{flex:none;margin:0;padding:8px 16px 0;text-align:center;font-size:12.5px;line-height:1.6;color:rgba(255,255,255,.66)}
.shv-hint:empty{display:none}
.shv-nav{flex:none;display:flex;align-items:center;justify-content:center;gap:24px;padding:8px 16px 18px}
.shv-m{display:flex;flex-direction:column;align-items:center}
.shv-c{min-width:64px;text-align:center;font-size:14px;font-weight:700;letter-spacing:.06em;color:rgba(255,255,255,.88);font-variant-numeric:tabular-nums}
.shv-dots{display:flex;justify-content:center;gap:5px;padding-top:4px}
.shv-dots i{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.28);transition:background .2s,transform .2s}
.shv-dots i.on{background:#fff;transform:scale(1.25)}
@media (prefers-reduced-motion:reduce){.attn,.hsheet.in,.shv{animation:none}.shv-track,.shv-pic,.hsheet{transition:none!important}}
/* PH6 review F12: the amber line's live region (empty while nothing waits); F5: 「前の依頼から写しました ×」 beside the label */
.attn-w{flex:none}
.comp-lr{display:flex;align-items:center;gap:8px;min-height:22px}
.copied{display:inline-flex;align-items:center;gap:4px;margin-left:auto;padding:0 4px 0 10px;min-height:26px;border-radius:var(--r-chip);background:var(--accent-bg);color:var(--accent-dark);font-size:12px;white-space:nowrap}
.copied button{position:relative;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;color:var(--accent-dark)}
.copied button::after{content:"";position:absolute;inset:-9px}
.copied svg{width:12px;height:12px}
.skc mark{background:var(--mark-hit);color:inherit;border-radius:2px}
/* UX3b (D53, the owner's approved phone mock; D57–D60 win where they differ): the agent's conversation as the PC's surface —
   one column, 16 px words, the who row, 受け取りました / 考え中, the live work card, the folded 作業の行, the answer's tables
   (their own box), code (wrapped, コピー), the note, the file card, the end line, the state above the composer with a large
   ［止める］, and 44 px buttons under the box. Colours and shapes are the look's (theme.css); data-look adds B's own, which A and C share (lanes PK1, PK2: the three looks differ only in colour; the brand gradient
   comes from theme.css as --brand-1..3; C's two own rules only darken B's shadows on its dark ground). */
.chat{padding:16px 15px 12px;gap:14px}
.chat>*{flex-shrink:0} /* a card that clips its own corners (overflow:hidden) is never squeezed by the column */
.day{display:flex;align-items:center;gap:12px;font-size:11.5px;color:var(--faint);letter-spacing:.08em}
.day::before,.day::after{content:"";flex:1;height:1px;background:var(--rule)}
/* the person's bubble: at most 86 %, 16 px */
.u{max-width:86%}
.u-b{font-size:16px;line-height:1.75;letter-spacing:.01em;padding:9px 14px}
.u-meta{font-size:12px;color:var(--faint);gap:3px;flex-wrap:wrap;justify-content:flex-end}
.u-meta .sep{opacity:.7}
.u-meta .okm{color:var(--ok);font-weight:700}
.u-meta time{font-variant-numeric:tabular-nums}
.u-att .chip{height:auto;min-height:28px;padding:3px 10px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}
/* file names: never cut with 「…」, 「_」 always seen (room under the line, nothing clips it) */
.fn{overflow-wrap:anywhere;word-break:normal;padding-bottom:.08em}
/* the who row (its avatar breathes while the turn works; the PCコンシェルジュ's emblem, D52) */
.who{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--muted);margin-bottom:-6px}
.who b{color:var(--ink);font-weight:700;font-size:14px;letter-spacing:.03em}
.who time{color:var(--faint);font-size:12px;font-variant-numeric:tabular-nums}
.wav{position:relative;width:26px;height:26px;flex:none;display:inline-grid;place-items:center;border-radius:8px;font-size:12.5px;font-weight:700;background:var(--accent-bg);color:var(--accent-dark)}
.wav.desk{background:linear-gradient(135deg,var(--logo-1,#30dad6) 0%,var(--logo-2,#18b4e8) 50%,var(--logo-3,#0a79e8) 100%);color:#fff;border:0}
.wav.sm{width:15px;height:15px;font-size:9px;border-radius:4px}
/* LM1: the morphing mark (app.js lmCanvas): the live agent's avatar on the who row (26 px) and the assistant's in ≡ (36 px) */
canvas.lm{flex:none;display:block}
/* review F9: the ring is a pseudo-element whose opacity breathes (nothing is painted again but its own layer) */
.wav.breath::after{content:"";position:absolute;inset:-4px;border-radius:inherit;box-shadow:0 0 0 1.5px var(--brand-ring,rgba(24,180,232,.85));opacity:.25;animation:breathe 2.4s ease-in-out infinite;pointer-events:none}
[data-look=a] .wav.breath::after,[data-look=b] .wav.breath::after,[data-look=c] .wav.breath::after{border-radius:10px}
/* PH15: the PCコンシェルジュ's emblem (the PC's DeskEmblem): one treatment in every look — the mark at 64 %, the PC's corners */
.av.desk svg,.wav.desk svg{display:block;width:64%;height:64%;color:#fff}
[data-look] .av.desk,[data-look] .wav.desk{border-radius:6px}
[data-look] .wav.desk.sm{border-radius:4px}
[data-look] .wav.desk.breath::after{border-radius:9px}
@keyframes breathe{0%,100%{opacity:.25}50%{opacity:1}}
/* the agent's words: 16 px (C 15.5), the look's line height */
.txt{font-size:16px;line-height:1.75;letter-spacing:.01em}
.txt p{margin:0 0 .8em}
.txt h3{font-size:1.08em;line-height:1.5;margin:1.2em 0 .6em;letter-spacing:.03em}
.txt h3:first-child{margin-top:.1em}
[data-look=a] .txt h3,[data-look=b] .txt h3,[data-look=c] .txt h3{padding-left:10px;border-left:3px solid var(--brand-2,#18b4e8);border-image:linear-gradient(180deg,var(--brand-1,#30dad6) 0%,var(--brand-2,#18b4e8) 50%,var(--brand-3,#0a79e8) 100%) 1}
.txt ul,.txt ol{margin:0 0 .9em;padding-left:1.5em}
.txt li{margin:.2em 0;padding-left:.2em}
.txt li::marker{color:var(--accent-dark);font-weight:700}
.txt blockquote{margin:0 0 .8em;padding:2px 0 2px 12px;border-left:3px solid var(--rule);color:var(--ink-2)}
.txt hr{border:0;border-top:1px solid var(--rule);margin:1em 0}
.txt .lnk{color:var(--accent-dark);border-bottom:1px solid var(--accent-line)}
.txt.flow::after{content:"";display:block;width:48px;height:3px;border-radius:3px;margin-top:4px;background:linear-gradient(90deg,transparent,var(--accent),transparent);background-size:200% 100%;animation:shim 1.5s linear infinite}
/* the answer's table: it moves sideways inside its own box, the first column stays, a soft edge says there is more */
.twrap{position:relative;margin:.2em 0 1em}
.twrap::after{content:"";position:absolute;top:1px;right:1px;bottom:1px;width:34px;border-radius:0 var(--r-card) var(--r-card) 0;background:linear-gradient(90deg,transparent,var(--surface) 85%);pointer-events:none;opacity:0;transition:opacity .2s}
.twrap.ovf::after{opacity:1}
.twrap.ovf.end::after{opacity:0}
.tw{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:var(--line) solid var(--panel-border);border-radius:var(--r-card);box-shadow:var(--card-shadow);background:var(--surface)}
.tw table{border-collapse:collapse;width:100%;min-width:330px;font-size:.9em;line-height:1.5;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.tw caption{caption-side:bottom;text-align:right;font-size:11.5px;color:var(--faint);padding:6px 12px 7px}
.tw caption .swipe{display:none}
.twrap.ovf caption{text-align:left}
.twrap.ovf caption .swipe{display:inline}
.tw th,.tw td{padding:8px 12px;text-align:left;border-top:1px solid var(--rule);white-space:nowrap}
.tw .r{text-align:right}.tw .c{text-align:center}
.tw tbody th{font-weight:400}
.tw th:first-child{position:sticky;left:0;background:var(--surface);z-index:1}
.tw thead th,.tw thead th:first-child{border-top:0;background:var(--code-bg);font-size:.9em;color:var(--muted);font-weight:700;padding-top:7px;padding-bottom:7px}
.tw td.up{color:var(--ok)}.tw td.dn{color:var(--muted)}
.tw tr.tot th,.tw tr.tot td{font-weight:700;border-top:1.5px solid var(--input-border)}
.twrap.ovf th:first-child{box-shadow:6px 0 8px -6px rgba(var(--shade-3,20,40,70),.25)}
[data-look=c] .twrap.ovf th:first-child{box-shadow:6px 0 8px -6px rgba(0,0,0,.6)} /* lane PK2: B's shadow, black on the dark ground */
/* the note (お知らせ) */
.note{display:flex;gap:10px;align-items:flex-start;background:var(--amber-bg);border:1px solid var(--amber-border);border-radius:var(--r-card);padding:10px 13px;font-size:.94em;line-height:1.7;margin:0 0 1em}
.note .ni{flex:none;width:19px;height:19px;border-radius:50%;background:var(--amber);color:var(--badge-fg,#fff);display:grid;place-items:center;font-size:12px;font-weight:700;margin-top:3px}
.note b{color:var(--amber-dark);margin-right:.5em}
/* code: its language and コピー, wrapped */
.code{margin:.2em 0 1em;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--code-bg);overflow:hidden;letter-spacing:0}
.code .ch{display:flex;align-items:center;min-height:40px;padding:0 4px 0 12px;font-size:12px;color:var(--faint);border-bottom:1px solid var(--rule)}
.cp{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;border-radius:var(--r-btn);padding:0 10px;font-size:13px;color:var(--muted)}
.cp.ok,.mini.ok{color:var(--ok)}
.cp svg,.mini svg{width:15px;height:15px;flex:none}
.txt .code pre{margin:0;padding:10px 13px 12px;border-radius:0;background:none;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,"BIZ UDGothic",monospace;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:visible}
/* the made file's card: 開く and PC で開く */
.file{display:grid;grid-template-columns:auto 1fr;gap:10px 13px;align-items:center;padding:13px 14px 14px;border:var(--line) solid var(--panel-border);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--card-shadow)}
.file.ext .thumb{background:var(--code-bg);border-color:var(--rule);color:var(--muted)}
.fm{min-width:0;display:grid;line-height:1.5}
.fm .eb{font-size:11.5px;color:var(--ok);font-weight:700;letter-spacing:.08em}
.fm .eb:empty{display:none}
.fm b{font-size:15px;line-height:1.7}
.fm .fx,.fm .pl{font-size:12.5px;color:var(--muted)}
.fm .pl{color:var(--faint)}
.fb{grid-column:1/-1;display:flex;gap:8px}
.b{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;border-radius:var(--r-btn);padding:0 16px;font-size:14.5px;border:1.5px solid transparent;line-height:1.4}
.b.pri{background:var(--primary-bg);border-color:var(--primary-bg);color:var(--primary-fg);font-weight:700}
.b.outl{background:transparent;border-color:var(--primary-bg);color:var(--accent-dark);font-weight:700}
.b:disabled{opacity:.45}
/* the end of a turn: time · how long · model · 答えをコピー */
.meta{display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;font-size:12px;color:var(--faint);letter-spacing:.02em;font-variant-numeric:tabular-nums;margin-top:-4px}
.mini{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:var(--line) solid var(--panel-border);border-radius:var(--r-btn);background:var(--code-bg);color:var(--muted);font-size:13px}
/* marks: ✓ done, – stopped, ⚠ did not work, the spinner, the amber dot of a wait */
.mk{width:16px;height:16px;flex:none;display:inline-grid;place-items:center;font-size:13px;font-weight:700;line-height:1}
.mk.m-done{color:var(--ok)}.mk.m-stop{color:var(--faint)}.mk.m-warn{color:var(--amber-dark)}
.mk .spin{width:14px;height:14px;color:var(--accent)}
.mk.m-wait::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--amber);box-shadow:0 0 0 3px var(--amber-bg)}
/* the live work card */
.wk{position:relative;border:var(--line) solid var(--panel-border);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--card-shadow);overflow:hidden;font-size:14px;line-height:1.6;letter-spacing:.01em}
.wk.run::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--brand-2,#18b4e8) 30%,var(--brand-1,#30dad6) 50%,transparent 70%);background-size:220% 100%;animation:sweep 2.2s linear infinite;opacity:.9;z-index:1}
@keyframes sweep{from{background-position:100% 0}to{background-position:-120% 0}}
.wsum{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 14px;color:var(--muted);font-size:13.5px;border-bottom:1px solid var(--rule)}
.wsum .t{flex:1}
.wsum:active{background:var(--code-bg)}
.wsum+.steps{border-bottom:1px solid var(--rule)}
.lvw+.lvw{border-top:1px solid var(--rule)}
.lv{display:grid;grid-template-columns:16px 1fr auto;gap:10px;align-items:start;padding:13px 14px 12px}
.lv>.mk{margin-top:4px}
.lv .lt{min-width:0;display:grid;gap:5px}
.lx{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:15px;line-height:1.55;color:var(--ink);letter-spacing:.02em}
.lx svg{width:16px;height:16px;flex:none;margin-top:3px;color:var(--accent-dark)}
.lv.wait .lx{color:var(--amber-dark)}.lv.wait .lx svg{color:var(--amber)}
.lv.err .lx{color:var(--amber-dark)}
.lc{font-size:13px;color:var(--faint);padding-top:2px;white-space:nowrap;font-variant-numeric:tabular-nums}
.sname,.typed{justify-self:start;margin-left:24px;max-width:calc(100% - 24px);font:12.5px/1.75 ui-monospace,SFMono-Regular,Consolas,"BIZ UDGothic",monospace;padding:0 8px;border-radius:var(--r-chip);background:var(--code-bg);color:var(--ink);border:1px solid var(--rule);white-space:normal}
.typed{background:none;border:0;padding:0;color:var(--muted);word-break:keep-all;overflow-wrap:break-word}
.lbody{padding:0 14px 14px;display:grid;gap:10px}
.ind{display:block;position:relative;height:4px;border-radius:4px;background:var(--rule);overflow:hidden;margin-left:24px}
.ind i{position:absolute;inset:0 auto 0 0;width:35%;border-radius:inherit;background:linear-gradient(90deg,var(--brand-1,#30dad6) 0%,var(--brand-2,#18b4e8) 50%,var(--brand-3,#0a79e8) 100%);transform:translateX(86%);animation:glide 1.7s cubic-bezier(.45,0,.25,1) infinite}
@keyframes glide{from{transform:translateX(-100%)}to{transform:translateX(286%)}} /* still (a picture, less motion): it stands at 30 % */
@keyframes glidebar{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
.lbody .shot-b{max-width:none;width:100%}
.lbody .shot-i{max-height:none}
.lbody .shot-row{margin:-4px 0 -8px}
/* 「出力を見る　N 行」: opened, the last lines in a box of four, scrolled to the end */
.ofold{border:1px solid var(--rule);border-radius:min(var(--r-card),10px);background:var(--code-bg);overflow:hidden}
.otog{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 12px;font-size:13.5px;color:var(--muted)}
.otog svg{width:16px;height:16px;flex:none;color:var(--faint)}
.otog .oc{color:var(--accent-dark);font-weight:700;white-space:nowrap}
.otog .ol{margin-left:auto;font-size:12px;color:var(--faint);white-space:nowrap}
.otog .chev svg{width:14px;height:14px}
/* review F11: the typed line stays seen above; the lines scroll in a box exactly four lines high, snapped to whole lines */
.ofold .obox{padding:8px 12px 10px;border-top:1px solid var(--rule)}
.ofold .pr{font:12.5px/20px ui-monospace,SFMono-Regular,Consolas,"BIZ UDGothic",monospace;color:var(--accent-dark);white-space:pre-wrap;word-break:keep-all;overflow-wrap:break-word} /* lane BL1 (UX3b leftover): the typed line breaks as the output does */
.ofold pre{margin:0;padding:0;font:12.5px/20px ui-monospace,SFMono-Regular,Consolas,"BIZ UDGothic",monospace;color:var(--ink);max-height:80px;overflow-y:auto;scroll-snap-type:y mandatory;white-space:pre-wrap;word-break:keep-all;overflow-wrap:break-word;letter-spacing:0} /* review R2-5: a file name breaks only when it cannot fit a line */
.ofold pre>span{display:block;scroll-snap-align:end}
/* the steps inside an opened 作業の行 (each with its own fold) */
.steps{list-style:none;margin:0;padding:4px 0}
.stp{display:grid;grid-template-columns:28px 1fr;gap:11px;padding:10px 14px}
.stp+.stp{border-top:1px solid var(--rule)}
.ti{width:28px;height:28px;border-radius:min(var(--r-chip),8px);display:grid;place-items:center;background:var(--accent-bg);color:var(--accent-dark)}
.ti svg{width:16px;height:16px}
.stp.err .ti{background:var(--amber-bg);color:var(--amber-dark)}
.sb{min-width:0;display:grid;gap:7px}
.stp .sn{margin:0;font-size:14.5px;line-height:1.55;padding-top:3px;overflow-wrap:anywhere}
.stp .sn .sd{margin-left:6px;font-size:12px;color:var(--muted);white-space:nowrap}
.stp.err .sn{color:var(--amber-dark)}
.stp .sw{margin:2px 0 0;font-size:12.5px;line-height:1.5;color:var(--amber-dark)}
.sk{margin:-5px 0 0;font-size:12px;color:var(--faint);display:flex;gap:8px;font-variant-numeric:tabular-nums}
/* the folded 作業の行: ✓ / – / ⚠, 「作業 6 手順・42 秒」, the kinds' icons */
.wline{display:flex;align-items:center;gap:9px;width:100%;min-height:46px;border:var(--line) solid var(--panel-border);background:var(--code-bg);border-radius:var(--r-card);padding:6px 12px;font-size:14px;color:var(--muted);box-shadow:var(--card-shadow);letter-spacing:.01em}
.wline .t{flex:1;min-width:0}
.wline b{color:var(--ink);font-weight:700}
.wline .icons{display:inline-flex;align-items:center;gap:4px;color:var(--faint)}
.wline .icons svg{width:14px;height:14px}
.wline .icons .more{font-size:11.5px}
@container (max-width:330px){.wline .icons{display:none}}
.wline .chev svg,.wsum .chev svg{width:14px;height:14px;display:block;color:var(--faint)}
.wk-f{display:flex;flex-direction:column;gap:6px}
/* the bottom line: 受け取りました (a calm light gliding, never blinking) and 考え中 (a slow shimmer) */
.live .gbar{display:none}
.live.rcv{position:relative;height:30px;align-items:flex-end;color:var(--faint);font-weight:400}
.live.rcv .spin,.live.think .spin{display:none}
.live.rcv .gbar{display:block;position:absolute;left:2px;top:0;width:200px;max-width:60%;height:2px;border-radius:2px;background:var(--rule);overflow:hidden}
.live.rcv .gbar::before{content:"";position:absolute;inset:0 auto 0 0;width:40%;border-radius:inherit;background:linear-gradient(90deg,var(--brand-1,#30dad6) 0%,var(--brand-2,#18b4e8) 50%,var(--brand-3,#0a79e8) 100%);transform:translateX(75%);animation:glidebar 1.7s cubic-bezier(.45,0,.25,1) infinite}
.live.think{font-size:15px;font-weight:400;letter-spacing:.03em}
.live.think .lt{background:linear-gradient(100deg,var(--muted) 0 38%,var(--accent) 50%,var(--muted) 62% 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shim 2.6s cubic-bezier(.4,0,.2,1) infinite}
@keyframes shim{from{background-position:100% 0}to{background-position:0 0}}
/* the confirm card: the amber band, the buttons stacked full width at 48 px (承認 filled, この依頼では確認しない outlined, やめる grey) */
.q.perm{padding:0;gap:0;overflow:hidden;background:var(--surface);border-color:var(--amber-border)}
.q.perm .q-band{display:flex;align-items:center;gap:8px;padding:9px 14px;background:var(--amber-bg);font-size:13.5px;color:var(--amber-dark);font-weight:700}
.q.perm .q-in{display:flex;flex-direction:column;gap:9px;padding:12px 14px 14px}
.q.perm .q-t{font-size:15.5px}
.q.perm .opt{min-height:48px;align-items:center;text-align:center;font-size:15px;border-radius:var(--r-btn)}
.q.perm .opt.r-decline{background:var(--code-bg);border:1.5px solid var(--code-bg);color:var(--ink-2)}
.q-fold{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);padding:9px 13px;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--code-bg)}
/* the state above the composer: 「● 作業中 m:ss」 and a large ［止める］ (44 px, at least 104 px); amber while an answer waits */
.cst,.cst-w{display:flex;align-items:center;gap:10px;min-height:22px}
.cst.busy,.cst-w{min-height:44px}
.cst-w .comp-l{flex:1;min-width:0}
/* LM2b (owner 10-24): the PC's row: the label and its model on the left take what is left and cut first (…); the state and ［止める］ never wrap */
.cst .cst-l{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* review S1 (the PC's ML1): cut → the model alone, wrapping only before 「（次から …）」 */
.cst .cst-l.alone{white-space:normal;text-overflow:clip;line-height:16px}.cst-l.alone .cst-a,.cst-l.alone .cst-sep{display:none}
.cst-l.alone .cst-n{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
.sts .stx{min-width:0;overflow:hidden;text-overflow:ellipsis}.sts time,.sts .okm{flex:none}
.sts{display:inline-flex;align-items:center;gap:8px;min-width:0;color:var(--accent-dark);font-size:14px;font-weight:700;white-space:nowrap;letter-spacing:.03em}
.sts time{font-weight:400;font-variant-numeric:tabular-nums}
/* lane BG1 (owner 10-30): with 裏の作業 the state is a button (44 px tall, the whole words), 「・裏で 2 つ」 quiet after the clock, ▾ / ▴ */
.sts.bgb{min-height:44px;margin:0;padding:0 2px;border:0;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--accent-dark);cursor:pointer;-webkit-tap-highlight-color:transparent}
.sts.bgb.wait{color:var(--amber-dark)}
/* the row with 裏の作業: the state takes the label's room (the label gives way first), never cut on a 390 px phone */
.cst.bgrow .cst-l{display:none}.cst.bgrow .sts.bgb{flex:1 1 auto;gap:6px;font-size:13.5px;letter-spacing:.01em}
.sts .bgs{flex:none;font-weight:400;font-size:13px;letter-spacing:0}
.sts.bgb .chev{flex:none;display:inline-flex}.sts.bgb .chev svg{width:15px;height:15px;display:block}
/* the open list under the row: at most 3 rows (spinner, name, a subagent step faint, its clock), then 「ほか N 件」 */
.bgl{margin:2px 0 8px;padding:6px 12px;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface)}
.bgr{display:flex;align-items:center;gap:9px;min-height:30px;padding:3px 0;font-size:13.5px}
.bgr .spin{width:13px;height:13px}
.bgn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.bgn .bgt,.bgn .bgd{display:block;overflow:hidden;text-overflow:ellipsis}.bgn .bgd{color:var(--faint);font-size:12px;line-height:16px}
.bgr time{flex:none;color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums}
.bgm{padding:2px 0 2px 22px;color:var(--faint);font-size:12.5px}
.sts .sd{width:8px;height:8px;flex:none;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.sts.wait{color:var(--amber-dark)}.sts.wait .sd{background:var(--amber);box-shadow:0 0 0 3px var(--amber-bg)}
.sts.idle{color:var(--muted);font-weight:400;font-size:13px}.sts.idle .sd{background:var(--ok);box-shadow:none}
/* LM3 (owner 10-25): what the header's line said while nothing runs — a fall in red (止まりました), the usage limit in amber (.wait) */
.cst-past{margin-bottom:10px} /* LM3 review 1 S2: the conversation now, above 「今の会話へ」 */
.sts.fall{color:var(--red)}.sts.fall .sd{background:var(--red);box-shadow:0 0 0 3px var(--red-bg)}
.sts .okm{color:var(--ok);font-weight:700}
.stopb{margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:104px;padding:0 18px;border:1.5px solid var(--red);border-radius:var(--r-btn);background:var(--surface);color:var(--red);font-size:15px;font-weight:700}
.stopb i{width:10px;height:10px;border-radius:2px;background:currentColor}
.stopb.busy,.stopb:disabled{opacity:.5}
/* ＋, 録音, 🎤 and 送る: 44 px */
.cb-plus{width:44px;margin-left:-10px}
.cb-send{height:44px;padding:0 22px}
@media (prefers-reduced-motion:reduce){
  .wav.breath::after,.wk.run::before,.ind i,.live.rcv .gbar::before,.live.think .lt,.txt.flow::after{animation:none!important}
  .live.think .lt{color:var(--muted);background:none}
}
/* D65 (PH7): 「＋ 新しいエージェント」 — the panel's last row and its small sheet (名前, 役目, 確認のしかた, 作る) */
.dr-r{display:flex;align-items:center}
.dr-r .dr-i{flex:1;min-width:0}
.dr-r:has(.dr-i.on){background:var(--accent-bg)}
.dr-ed{flex:none;width:44px;height:44px;margin-right:6px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:22px}
.dr-ed svg{width:17px;height:17px}
.dr-ed:active{background:var(--code-bg)}
.dr-new{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:8px 16px;text-align:left}
.dr-new:active{background:var(--code-bg)}
.dr-new .dr-n{font-size:15px;font-weight:600;color:var(--accent-dark)}
.av.av-new{background:transparent;border:1.5px dashed var(--accent-line);color:var(--accent-dark)}
.av-new svg{width:18px;height:18px}
.na-hd{align-items:center;padding-right:8px}
.na-x{margin-left:auto;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:22px;flex:none}
.na-x svg{width:18px;height:18px}
.na-body{display:flex;flex-direction:column;gap:14px;padding:2px 18px 18px}
.na-f{display:flex;flex-direction:column;gap:6px}
.na-l{font-size:13px;font-weight:700;color:var(--ink-2)}
.na-in{width:100%;height:44px;border:1px solid var(--input-border);border-radius:var(--r-in);padding:0 14px;font:inherit;font-size:16px;background:var(--input-bg);caret-color:var(--caret);color:var(--ink);-webkit-appearance:none;appearance:none}
.na-in::placeholder{color:var(--faint)}
.na-in:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.na-in:disabled{opacity:.6}
.na-seg{display:flex;border:1px solid var(--input-border);border-radius:var(--r-in);padding:3px;background:var(--input-bg)}
.na-sg{flex:1;display:inline-flex;align-items:center;justify-content:center;text-align:center;height:42px;border-radius:max(0px,calc(var(--r-in) - 3px));font-size:14px;font-weight:600;color:var(--muted)}
.na-sg.on{background:var(--accent-bg);color:var(--accent-dark);box-shadow:inset 0 0 0 1.5px var(--accent);font-weight:700}
.na-sg:disabled{opacity:.6}
.na-hint{font-size:12px;color:var(--muted);line-height:1.55}
.na-full{display:flex;align-items:center;justify-content:center;width:100%;height:42px;margin-top:10px;border:1px solid var(--input-border);border-radius:var(--r-in);background:var(--input-bg);font-size:14px;font-weight:600;color:var(--muted)}
.na-full.on{background:var(--accent-bg);color:var(--accent-dark);box-shadow:inset 0 0 0 1.5px var(--accent);font-weight:700}
.na-full:disabled{opacity:.6}
.na-caution{font-size:12px;color:var(--amber-dark);line-height:1.55;margin-top:4px}
.na-ask{margin:8px 0 0}
.na-ask-b{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;margin:8px 8px 0 0;border:1px solid var(--amber-border);border-radius:10px;background:var(--input-bg);font-size:13.5px;font-weight:700;color:var(--amber-dark)}
.na-err{font-size:13px;line-height:1.6;padding:9px 12px;border-radius:10px;background:var(--red-bg);border:1px solid var(--red-card-border);color:var(--red)}
.na-go{height:46px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);font-weight:700;font-size:15px;text-align:center}
.na-go:disabled{opacity:.45}
/* MA1b: the PCコンシェルジュ's flow card (MA1_PLAN §6.1; the PC's card, its words); lane OC1c: a card in the stream, never pinned above the chat */
.flow{flex:none;border:var(--line) solid var(--panel-border);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--card-shadow);font-size:14px;line-height:1.55}
.fl-hd{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 4px;border-bottom:var(--line) solid var(--rule)}
.flow .fl-hd:last-child{border-bottom:0}
.fl-tg{flex:1;min-width:0;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 8px;text-align:left;color:var(--ink)}
.fl-t{flex:1;min-width:0;font-weight:700}
.fl-p{flex:none;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.fl-fold{margin-top:-6px;padding:0 14px 12px 12px;color:var(--muted);font-size:13px}
.fl-rows{display:flex;flex-direction:column}
.fl-r{border-top:var(--line) solid var(--rule)}
.fl-r:first-child{border-top:0}
.fl-rh{display:grid;grid-template-columns:16px minmax(0,1fr) auto auto;gap:4px 10px;align-items:start;width:100%;padding:10px 12px 10px 14px;text-align:left;color:var(--ink)}
.fl-rh>.mk{margin-top:3px}
.fl-rh .chev{margin-top:3px}
.fl-tg .chev svg,.fl-rh .chev svg{width:14px;height:14px;display:block;color:var(--faint)}
.fl-w{min-width:0;display:grid;gap:2px}
.fl-n{font-weight:700;text-wrap:balance}
.fl-l{color:var(--muted);font-size:13.5px;text-wrap:pretty}
.fl-r.s-wait .fl-l{color:var(--amber-dark)}
.fl-r.s-warn .fl-l{color:var(--amber-dark)}
.fl-r.s-stop .fl-n,.fl-r.s-stop .fl-l{color:var(--faint)}
.fl-e{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums;margin-top:2px}
.fl-h{padding:0 14px 8px 40px;color:var(--muted);font-size:13px;text-wrap:pretty}
.fl-d{display:flex;flex-direction:column;gap:6px;padding:0 14px 12px 40px}
.fl-s{white-space:pre-wrap;font-size:13.5px;color:var(--ink)}
.fl-f{font-size:13px;color:var(--accent-dark);overflow-wrap:anywhere}
.fl-go{align-self:flex-start;min-height:40px;padding:0 12px;border:var(--line) solid var(--panel-border);border-radius:var(--r-btn);background:var(--code-bg);color:var(--ink);font-size:13.5px}
.fl-c{padding:8px 14px 10px;border-top:var(--line) solid var(--rule);color:var(--muted);font-size:13px}
.mk.m-todo::before{content:"";width:8px;height:8px;border-radius:50%;border:1.5px solid var(--faint)}
/* review MA1b round 1: H1 the card folded while a card of the flow waits; M2 a soft edge when rows scroll inside; L3 look A's lock row; L4 the chat fades under the card; L6 whole words */
.q.from .q-d{word-break:keep-all;overflow-wrap:anywhere}
.opt-d{text-wrap:pretty}
/* PH13: opened, the card takes at most a third of the screen (its rows scroll inside); it is a part of the column above the
   chat, never over it — the chat starts under it */
/* review MA1b round 2: M5 a row waiting for the person stays in sight at the card's bottom (opaque) */

/* AIC1: the drawer's 「この PC」: 「画面を消さない」 */
/* D80 (PH12): ⚙ 設定 — small headed groups on the screen's ground, each a card (the look's corners, line and shadow) */
/* review PH12 B2: an edge in every look (C's ground is as dark as the screen behind): a hairline above and a deeper shadow */
.ssheet{background:var(--drawer-bg);box-shadow:0 -1px 0 var(--panel-border),0 -10px 30px rgba(var(--shade-1,15,22,32),.2)}
[data-look=c] .ssheet{box-shadow:0 -1px 0 var(--panel-border),0 -10px 30px rgba(0,0,0,.35)}
/* review PH12: one left edge — the title on the cards' edge (16 px), the headings on the rows' text (the card's inset) */
.ssheet .sh-hd{padding-left:16px}
.sheet.still{animation:none}
.set-body{overflow-y:auto;padding:2px 16px 22px}
.set-g+.set-g{margin-top:20px}
.set-h{margin:0 0 7px calc(14px + var(--line));font-size:12px;font-weight:700;color:var(--muted)} /* no tracking: 「この PC」 not 「こ の  P C」 */
.set-card{background:var(--surface);border:var(--line) solid var(--panel-border);border-radius:var(--r-card);box-shadow:var(--card-shadow)}
.set-card .rm-row{padding:13px 14px;min-height:60px;gap:14px}
.set-card.pt{border-color:var(--accent);background:var(--accent-bg);transition:background .4s} /* lane HELP1: the row a guide's line opened */
.notice.guide .notice-link{display:inline-block;margin-top:6px;padding:0;border:0;background:none;color:var(--link-dark);font-weight:700;text-decoration:underline;font-size:inherit}
.set-card .rm-n,.set-card .rm-x{text-wrap:pretty} /* no lone word on a last line */
.rm-row{display:flex;align-items:center;gap:12px;padding:10px 16px;min-height:44px}
.rm-l{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rm-n{font-size:14px;font-weight:600;color:var(--ink)}
.rm-x{display:block;font-size:12px;line-height:1.5;color:var(--muted)}
.rm-sw{flex:none;position:relative;width:48px;height:28px;border-radius:14px;border:1px solid var(--input-border);background:var(--rule)}
.rm-sw .rm-knob{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.rm-sw.on{background:var(--accent);border-color:var(--accent)}.rm-sw.on .rm-knob{left:23px}
.rm-sw:disabled,.rm-sw[aria-disabled=true]{opacity:.45} /* D75: 「スマホに通知を出す」 that cannot be turned on here (or a tap on its way) */
/* D81 (P14): one phone, several PCs — the pill with the PC's name, 「PC を切り替える」 / 「PC を足す」, the home's frame of another PC.
   --sat / --sab: the home's safe area given to its frame through #pcs (a frame may read env() as 0); unset elsewhere. */
.pcpill.sw{font:inherit;font-size:12px;font-weight:600;cursor:pointer;max-width:100%}
.pcpill .pc-nm{overflow:hidden;text-overflow:ellipsis;min-width:0}
.pcpill .pc-other{flex:none;font-size:11px;font-weight:600;color:var(--accent-dark);background:var(--surface);border-radius:9px;padding:0 7px;line-height:18px}
.pcpill .pc-chev{flex:none;display:inline-flex;margin-right:-4px}.pcpill .pc-chev svg{width:14px;height:14px}
/* P14c: the pill opens the PCs right under it, inside ≡ (grid rows 0fr → 1fr: the agents are pushed down) */
.pcpill .pc-chev.up svg,.pcpill .pc-chev.in svg{transform:rotate(180deg)}
.pcpill .pc-chev.in svg{animation:pcch .26s cubic-bezier(.2,.8,.2,1)}
.pcpill .pc-chev.out svg{animation:pcch .2s ease-in reverse}
@keyframes pcch{from{transform:none}to{transform:rotate(180deg)}}
.dr-pcs{flex:none;display:grid;grid-template-rows:1fr;max-height:68%;background:var(--drawer-bg);border-bottom:1px solid var(--rule)}
.dr-pcs.in{animation:pcsin .26s cubic-bezier(.2,.8,.2,1)}
.dr-pcs.out{grid-template-rows:0fr;animation:pcsout .2s ease-in}
@keyframes pcsin{from{grid-template-rows:0fr}to{grid-template-rows:1fr}}
@keyframes pcsout{from{grid-template-rows:1fr}to{grid-template-rows:0fr}}
.dr-pcs-c{min-height:0;overflow:hidden auto}
.dr-pcs.in .dr-pcs-c,.dr-pcs.out .dr-pcs-c{overflow:hidden}
.dr-pcs-b{padding:10px 12px 12px}
.dr-pcs .pcs-list{gap:6px}
.dr-pcs .pcrow{min-height:54px;padding:8px 10px;gap:10px}
.dr-pcs .pc-ic{width:32px;height:32px;border-radius:9px}.dr-pcs .pc-ic svg{width:18px;height:18px}
.dr-pcs .pc-tx b{font-size:14px}
.dr-pcs .pc-tx span{white-space:normal;line-height:1.45} /* the drawer is narrow: 「… ・ 返事あり n」 and the hours wrap, never cut */
.dr-pcs .pcs-add{margin-top:8px;padding:9px;font-size:13.5px}
.dr-pcs .pcs-small{margin-top:8px;font-size:11.5px;line-height:1.55}
.dr-pcs .pcs-note{margin-bottom:8px;padding:8px 10px;font-size:12.5px;line-height:1.55}
.pcwait-dr{position:absolute;inset:0;background:var(--drawer-bg)} /* P14c: ≡ drawn while the home reaches the PC tapped in ≡ */
.pcwait-dr .pcpill.sw:disabled{cursor:default;opacity:1}
.dr-wait{display:flex;align-items:center;gap:10px;padding:18px 16px;font-size:14px;color:var(--muted)}.dr-wait svg{width:16px;height:16px}
.pc-go{flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:4px}.pc-go svg{width:16px;height:16px}
@media (prefers-reduced-motion:reduce){.dr-pcs,.pcpill .pc-chev svg{animation:none!important}}
.pcs-list{display:flex;flex-direction:column;gap:8px}
.pcrow{display:flex;align-items:center;gap:11px;width:100%;min-height:60px;padding:10px 12px;border-radius:var(--r-card);border:var(--line) solid var(--panel-border);background:var(--surface);color:var(--ink);text-decoration:none;box-shadow:var(--card-shadow)}
.pcrow.cur{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.pc-ic{flex:none;width:36px;height:36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-bg);color:var(--accent-dark)}
.pc-ic svg{width:20px;height:20px}
.pc-tx{flex:1;min-width:0;display:flex;flex-direction:column}
.pc-tx b{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-tx span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-st{flex:none;font-size:12px;font-weight:700;border-radius:999px;padding:2px 9px;white-space:nowrap}
.pc-st.cur{color:var(--accent-dark);background:var(--accent-bg)}
.pc-st.on{color:var(--ok-fg);background:var(--ok-bg)}
.pc-st.sleep,.pc-st.wait{color:var(--amber-dark);background:var(--amber-bg)}
.pcs-add{display:block;width:100%;margin-top:10px;padding:11px;border-radius:var(--r-card);border:1.5px dashed var(--accent-line);color:var(--accent-dark);font-size:14px;font-weight:700;text-align:center;text-decoration:none}
.pcs-small{margin:10px 4px 0;font-size:12px;line-height:1.6;color:var(--muted)}
.pcs-note{margin:0 0 10px;padding:9px 12px;border-radius:10px;background:var(--ok-bg);color:var(--ok-fg);font-size:13px;line-height:1.6}
.pcsteps{margin:2px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;counter-reset:pcs}
.pcsteps li{display:flex;gap:10px;padding:11px 12px;border-radius:var(--r-card);border:var(--line) solid var(--panel-border);background:var(--surface);font-size:13.5px;line-height:1.6}
.pcsteps li::before{counter-increment:pcs;content:counter(pcs);flex:none;width:22px;height:22px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-bg);color:var(--accent-dark);font-size:12px;font-weight:700}
.pcs-msg{display:flex;align-items:center;gap:8px;margin:12px 4px 0;font-size:13px;line-height:1.6;color:var(--ink-2)}
.pcs-msg svg{flex:none;width:16px;height:16px}
.set-btn{flex:none;padding:7px 13px;border-radius:var(--r-btn);border:var(--line) solid var(--input-border);background:var(--surface);color:var(--accent-dark);font-size:13px;font-weight:700;white-space:nowrap}
.pcframe{position:fixed;top:0;left:0;width:100%;height:100%;border:0;z-index:100;background:var(--drawer-bg)}
.pcframe.wait{visibility:hidden}
.sa-probe{position:fixed;top:0;left:0;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.pcwait{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:14px;padding:max(24px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));text-align:center;color:var(--muted);background:var(--drawer-bg);overflow-y:auto}
.pcwait .pcw-ic{width:56px;height:56px}
.pcwait>:first-child{margin-top:auto}.pcwait>:last-child{margin-bottom:auto} /* P14d: centred, yet the top stays reachable when it scrolls */
.pcw-t{display:flex;align-items:center;gap:8px;font-size:14px}
.pcw-t svg{width:18px;height:18px}
.pcw-h{font-size:18px;font-weight:700;color:var(--ink)}
.pcw-s{font-size:13px;line-height:1.6;max-width:30em}
.pcw-home{min-width:200px;padding:11px 22px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);font-weight:700;text-align:center;text-decoration:none}
.pcw-retry{min-width:200px;padding:9px 22px;border-radius:var(--r-btn);border:var(--line) solid var(--input-border);background:var(--surface);color:var(--accent-dark);font-weight:700;text-align:center;text-decoration:none}
/* D97: the home's band at the very top over the frame while something is off (the frame and the home's wait move down by
   its height: --pcband-h, measured; until then one line), and the sheet of ［PC を切り替える］ */
.pcband{position:fixed;top:0;left:0;right:0;z-index:101;box-sizing:border-box;display:flex;align-items:center;gap:8px;min-height:calc(48px + max(env(safe-area-inset-top),var(--sat,0px)));padding:max(env(safe-area-inset-top),var(--sat,0px)) calc(6px + env(safe-area-inset-right)) 0 calc(14px + env(safe-area-inset-left));background:var(--amber-bg);color:var(--amber-dark);border-bottom:1px solid var(--amber-border)}
.pcband>svg{width:18px;height:18px;flex:none}
.pcband-t{flex:1;min-width:0;font-size:13.5px;line-height:1.45;padding:6px 0;overflow-wrap:anywhere}
.pcband-t>span{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top} /* a line breaks only after 「（PC の名前）の」, never inside a word */
.pcband-go{position:relative;flex:none;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--amber-border);background:var(--surface);color:var(--amber-dark);font-size:13px;font-weight:700;white-space:nowrap}
.pcband-go::after{content:"";position:absolute;top:-5px;bottom:-5px;left:-4px;right:-4px} /* the tap area 46 px high */
/* the frame (and the home's wait) pad the top safe area themselves: that padding sits behind the band's lower part, so they
   move down by the band's height less the inset, and their header starts at the band's bottom */
.pcs-band{--pcband-top:calc(var(--pcband-h,calc(48px + max(env(safe-area-inset-top),var(--sat,0px)))) - max(env(safe-area-inset-top),var(--sat,0px)))}
.pcs-band .pcframe,.pcs-band #app{top:var(--pcband-top)}
.pcs-band .pcframe{height:calc(100% - var(--pcband-top))}
.pcesc-p{position:fixed;inset:0;z-index:102}
.pcw-off .pcs-list{width:100%;max-width:420px;margin-top:8px;text-align:left}
/* D89 (UP4): the PC's new version — one quiet line under the header (accent, never amber: nothing waits for the person),
   the booking, 「（版）になりました」 (green), 「更新できませんでした」 (amber); the PC section's line in ≡; 更新する's sheet;
   the waiting screen over everything while the PC is away for its update */
.upd{flex:none;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 4px 0 14px;background:var(--accent-bg);color:var(--accent-dark);border-bottom:1px solid var(--accent-line);font-size:13.5px;animation:fd .25s ease-out}
.upd>svg{width:16px;height:16px;flex:none}
.upd-t{flex:1;min-width:0;line-height:1.45;padding:6px 0}
.upd-go{flex:none;height:32px;padding:0 14px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);font-size:13px;font-weight:700;white-space:nowrap}
.upd-x{flex:none;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:inherit;opacity:.75}
.upd-x svg{width:15px;height:15px}
.upd.booked{background:var(--surface);color:var(--ink-2);border-bottom-color:var(--rule);padding-right:10px}
.upd.booked .upd-go,.dr-upd.booked .upd-go{background:transparent;color:var(--accent-dark);border:1px solid var(--accent-line)}
.upd.done{background:var(--ok-bg);color:var(--ok-fg);border-bottom-color:var(--ok-bg)}
.upd.bad{background:var(--amber-bg);color:var(--amber-dark);border-bottom-color:var(--amber-border)}
.dr-upd{flex:none;display:flex;align-items:center;gap:10px;margin:2px 12px 6px;padding:8px 8px 8px 12px;border-radius:10px;background:var(--accent-bg);border:1px solid var(--accent-line);color:var(--accent-dark);font-size:13px}
.dr-upd.booked{background:var(--surface);border-color:var(--rule);color:var(--ink-2)}
.upd-acts{display:flex;flex-direction:column;gap:10px}
.upd-now{height:46px;border-radius:var(--r-btn);border:1.5px solid var(--primary-bg);background:var(--surface);color:var(--primary-bg);font-weight:700;font-size:15px;text-align:center}
.upd-now:disabled{opacity:.45}
.upd-no{height:44px;border-radius:var(--r-btn);color:var(--muted);font-size:15px;text-align:center}
.upw{position:absolute;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;background:var(--drawer-bg);padding:24px;animation:fd .25s ease-out}
.upw-c{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:320px;gap:14px}
.upw-ic{width:56px;height:56px;display:block}
.upw .upw-sp{width:26px;height:26px}
.upw-t{font-size:16px;font-weight:700;line-height:1.6;color:var(--ink)}
.upw-l{font-size:13.5px;line-height:1.6;color:var(--amber-dark);background:var(--amber-bg);border:1px solid var(--amber-border);border-radius:10px;padding:9px 12px}
/* D88 (PG1): the band above the composer 「‹ ● 前の係   ● ● ●  1 / 3   次の係 ● ›」 (44 px targets) and the sideways swipe */
.pgr{flex:none;height:44px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 4px;background:var(--surface);border-top:1px solid var(--panel-border)}
.pgr+.comp{border-top-color:var(--rule)}
.pgb{height:44px;min-width:44px;max-width:100%;display:inline-flex;align-items:center;gap:3px;justify-self:start;padding:0 10px 0 6px;overflow:hidden;font-size:12.5px;font-weight:600;color:var(--ink-2);border-radius:12px}
.pgb.nx{justify-self:end;padding:0 6px 0 10px}
.pgb svg{width:18px;height:18px;flex:none;color:var(--muted)}
.pgb .n{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgb .d{width:6px;height:6px;border-radius:50%;flex:none;margin:0 2px}
.pgb:active:not(:disabled){background:var(--code-bg)}
.pgb:disabled{opacity:.32}
.pgb:disabled .n,.pgb:disabled .d{visibility:hidden}
.pg-pos{justify-self:center;display:inline-flex;align-items:center;gap:7px;padding:0 6px}
.pg-dots{display:inline-flex;align-items:center;gap:9px;padding:0 3px}
.pg-d{position:relative;width:6px;height:6px;border-radius:50%;flex:none;display:inline-block}
.pg-d.on{transform:scale(1.18);box-shadow:0 0 0 1.5px var(--surface),0 0 0 2.75px currentColor}
.pg-d.m-w,.pgb .d.m-w{background:var(--accent);color:var(--accent)}
.pg-d.m-a,.pgb .d.m-a{background:var(--amber);color:var(--amber)}
.pg-d.m-c,.pgb .d.m-c{background:var(--ok);color:var(--ok)}
.pg-d.m-i,.pgb .d.m-i{background:transparent;color:var(--faint)}
.pg-d.m-i{box-shadow:inset 0 0 0 1.25px var(--faint)}
.pg-d.m-i.on{box-shadow:inset 0 0 0 1.25px var(--faint),0 0 0 1.5px var(--surface),0 0 0 2.75px var(--faint)}
.pgb .d.m-i{box-shadow:inset 0 0 0 1.25px var(--faint)}
.pg-d.m-c{width:10px;height:10px;display:inline-flex;align-items:center;justify-content:center}
.pg-d.m-c.on{transform:none}
.pg-d.m-c svg{width:8px;height:8px;color:#fff;stroke-width:3.2}
.pg-cnt{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums;letter-spacing:.02em;white-space:nowrap}
.pg-cnt b{color:var(--ink);font-weight:700}
.chat.pg-on{touch-action:pan-y}
.scr.pg-drag,.scr.pg-anim{overflow:hidden}
.scr.pg-drag .chat{-webkit-user-select:none;user-select:none}
.scr.pg-anim .chat,.scr.pg-anim .pg-peek{transition:transform .3s cubic-bezier(.22,.75,.2,1)}
.pg-peek{position:absolute;left:0;z-index:2;pointer-events:none;overflow:hidden;padding:16px;display:flex;flex-direction:column;gap:8px;background:var(--drawer-bg);box-shadow:-1px 0 0 var(--rule),1px 0 0 var(--rule)}
.pg-pk-h{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700;color:var(--ink)}
.pg-pk-h .pg-d{width:8px;height:8px}
.pg-pk-s{align-self:flex-start;font-size:12px;font-weight:600}
.pg-pk-s.m-w{color:var(--accent)}.pg-pk-s.m-a{color:var(--amber)}.pg-pk-s.m-c{color:var(--ok-fg)}.pg-pk-s.m-i{color:var(--muted)}
.pg-pk-p{font-size:14px;line-height:1.7;color:var(--muted);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
@media (prefers-reduced-motion:reduce){.scr.pg-anim .chat,.scr.pg-anim .pg-peek{transition:none}.pg-d.on{transform:none}}
/* lane V1 (D92 の 2): the PCコンシェルジュ's goal conversations under its row in ≡, read only */
.dr-goals{padding:0 16px 8px 60px;display:flex;flex-direction:column;gap:2px}
.dr-goal-h{font-size:11px;font-weight:700;color:var(--muted);margin-top:-2px}
.dr-glist{display:flex;flex-direction:column;gap:2px}
.dr-goal{display:flex;flex-direction:column;min-width:0;padding:2px 0 2px 8px;border-left:2px solid var(--panel-border)}
.dr-goal.cur{border-left-color:var(--accent)}
.dr-goal-r{display:flex;align-items:baseline;gap:8px;min-width:0}
.dr-goal-t{flex:1;min-width:0;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr-goal-s{flex:none;font-size:12px;color:var(--muted)}
.dr-goal-s.yours{color:var(--amber-dark,var(--muted));font-weight:600}
.dr-gmore{display:flex;align-items:center;gap:6px;min-height:44px;margin:-6px 0 -8px -8px;padding:0 8px;font-size:12px;font-weight:600;color:var(--muted);text-align:left;align-self:flex-start}
.dr-gmore.yours{color:var(--amber-dark,var(--muted))}
.dr-gbeyond{font-size:12px;color:var(--muted);padding:2px 0 0 10px}
.dr-gmore .chev svg{width:14px;height:14px;display:block;color:var(--faint)}
.dr-gmore+.dr-glist{margin-top:4px}
.dr-goal-n{font-size:12px;color:var(--amber-dark,var(--muted));overflow-wrap:anywhere}
/* LB2, OC1c: the PCコンシェルジュ's one conversation on the phone — its head (the date, the greeting) and its 「あなたの番」 cards,
   in the chat's own scroller. Every button 44px or more; only the greeting is Mincho (as the PC's head) */
.hm-greet{display:flex;flex-direction:column;gap:3px;padding:2px 2px 0}
.hm-date{font-size:12px;color:var(--muted);letter-spacing:.04em;font-variant-numeric:tabular-nums}
.hm-line{font-family:"Hiragino Mincho ProN","Yu Mincho","YuMincho",serif;font-size:19px;font-weight:600;line-height:1.5;letter-spacing:.02em;white-space:pre-line;color:var(--ink)}
.hm-sub{margin-top:4px;font-size:14px;line-height:1.7;color:var(--ink-2);white-space:pre-line}
.hm-turn{display:flex;flex-direction:column;gap:8px;padding:12px 14px 14px;border-radius:var(--r-card);background:var(--surface);border:var(--line) solid var(--amber-border);border-left:3px solid var(--amber);box-shadow:var(--card-shadow)}
.hm-head{font-size:12px;font-weight:700;color:var(--amber-dark);overflow-wrap:anywhere}
.hm-q,.hm-tl{font-size:15px;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}
.hm-qn{margin-top:-4px;font-size:12.5px;line-height:1.55;color:var(--muted)}
.hm-send-what{padding:9px 11px;border-radius:var(--r-in);background:var(--surface);border:var(--line) solid var(--panel-border)}
.hm-swh{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:3px}
.hm-swl{font-size:13.5px;line-height:1.55;color:var(--ink);overflow-wrap:anywhere}
.hm-btns{display:flex;flex-wrap:wrap;gap:8px}
.hm-btn{min-height:44px;padding:0 16px;border-radius:var(--r-btn);border:1px solid var(--input-border);background:var(--surface);color:var(--ink);font-size:14.5px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.hm-btn.pri{background:var(--primary-bg);border-color:var(--primary-bg);color:var(--primary-fg)}
.hm-btn:disabled{opacity:.5}
.hm-turn.acc .hm-btns .pri{flex:1 1 100%;min-height:48px}
.hm-turn.acc .hm-btns .hm-btn:not(.pri){flex:1 1 0}
.hm-fl{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.hm-fix{width:100%;min-height:64px;padding:10px 12px;border:1px solid var(--input-border);border-radius:var(--r-in);background:var(--input-bg);color:var(--ink);caret-color:var(--caret);font:inherit;font-size:16px;line-height:1.5;resize:vertical} /* 16px: iOS does not zoom in */
.hm-send{align-self:flex-end}
/* STOP1 (D107 ②): 「ここで止める」's one-line confirm on the card (never a modal) */
.hm-closeq{display:flex;flex-direction:column;gap:8px;padding:4px 14px 12px}
.hm-closet{font-size:13.5px;line-height:1.55;color:var(--ink-2)}
/* lane OC1c (D105, the approved mock): the PCコンシェルジュ's one conversation — its head, goal cards (one line + くわしく),
   「あなたの番」 cards (48px buttons), one-step ask cards and reports in the stream; the bottom line while reading above; the
   footer's 「● 答えを待っています ［全部止める］」 (outlined, away from the titles and the cards) */
.dk-head .hm-line{font-size:18px}
.dk-goal{display:flex;flex-direction:column;padding:10px 12px 0;border-radius:var(--r-card);background:var(--surface);border:var(--line) solid var(--panel-border)}
.dk-gr{display:flex;align-items:center;gap:8px;min-height:24px}
.dk-gr>.mk{flex:none}
.dk-gt{flex:1;min-width:0;font-size:14.5px;font-weight:700;line-height:1.5}
.dk-gs{flex:none;max-width:46%;font-size:13px;line-height:1.45;color:var(--ink-2);text-align:right}
.dk-gs.yours{color:var(--amber-dark);font-weight:700}
.dk-more{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 4px;color:var(--accent-dark);font-size:14px}
.dk-more .chev svg{width:14px;height:14px;display:block}
.dk-goal>.dk-gr+.dk-cont,.dk-goal>.dk-gr:last-child{margin-bottom:10px}
.dk-cont{font-size:12.5px;color:var(--muted);padding-top:2px}
.dk-steps{display:flex;flex-direction:column;gap:8px;padding:0 0 10px}
.dk-step{display:flex;align-items:flex-start;gap:8px}
.dk-step>.mk{margin-top:3px;flex:none}
.dk-sb{display:flex;flex-direction:column;min-width:0}
.dk-st{font-size:14px;line-height:1.5}
.dk-ss{font-size:12.5px;line-height:1.5;color:var(--muted)}
.dk-chk{font-size:12.5px;line-height:1.55;color:var(--ink-2)}
.dk-stop{display:flex;flex-direction:column;gap:8px;padding:0 0 12px}
.dk-turn .dk-stop{padding:0}
.dk-stopb{align-self:flex-start;min-height:44px;padding:0 14px;border-radius:var(--r-btn);border:1px solid var(--input-border);background:var(--surface);color:var(--ink-2);font-size:14px;font-weight:600}
.dk-stopb[aria-expanded="true"]{color:var(--ink);border-color:var(--ink-2)}
.dk-stopb:disabled{opacity:.5}
.dk-stop .hm-closeq{padding:0}
.dk-turn.acc .hm-btns .hm-btn{min-height:48px}
.dk-turn.done{border-color:var(--panel-border);border-left-color:var(--ok)}
.dk-res{font-size:14px;font-weight:600;color:var(--ok-fg)}
.dk-ask .fl-tg{align-items:flex-start;padding-top:8px;padding-bottom:8px}
.dk-aw{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dk-ask .fl-fold{margin:0;padding:0}
.dk-mw{flex:none;color:var(--accent-dark);font-size:13.5px;line-height:28px}
.dk-ask .fl-tg>.chev{margin-top:7px}
.dk-rep{display:flex;flex-direction:column;gap:4px}
.dk-rh{font-size:12px;font-weight:700;color:var(--muted)}
.dk-files{display:flex;flex-wrap:wrap;gap:6px}
.dk-news{flex:none;display:flex;align-items:center;gap:4px;width:100%;min-height:40px;padding:0 14px;background:var(--accent-bg);border-top:1px solid var(--accent-line);color:var(--accent-dark);font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden}
.dk-nh{flex:none}
.dk-nt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.dk-foot .sts{min-width:0;white-space:normal}
.stopb.dk-stopall{background:var(--surface);border:1.5px solid var(--red);color:var(--red)}
button.dr-goal-r{width:100%;min-height:44px;align-items:center;color:inherit}
/* ── lane SCHED1c (D109, the owner-approved mock): the calendar mark, ≡'s 予定帳, the book over the page, the clock's cards ── */
/* the mock's header: ≡, the name, the calendar mark — on a narrow phone the desk's ファイル gives its room to the mark (its folder stays on the PC) */
@container hdbar (max-width:429px){.hd-desk .filesb{display:none}}
.bookb{width:40px;height:40px;border-radius:12px;border:1px solid var(--panel-border);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;flex:none;margin-left:4px;color:var(--bk-chrome);padding:0}
.bookb svg{width:22px;height:22px}
.bookb:active{background:var(--code-bg)}
.bk-gold{fill:var(--bk-gold)}
.bk-host{position:fixed;inset:0;z-index:60;background:var(--bk-paper);padding-top:max(env(safe-area-inset-top),var(--sat,0px));display:flex;flex-direction:column}
.bk-host .bk{flex:1}
/* the morning card (the mock's phone card) */
.mc{align-self:stretch;background:var(--bk-cell);border:1px solid var(--bk-cell-line);border-radius:calc(var(--bk-r-lg) - 2px);overflow:hidden;color:var(--bk-ink)}
.mc-hd{padding:14px 16px 10px;display:flex;align-items:baseline;gap:10px;border-bottom:1px solid var(--bk-line)}
.mc-num{font-family:var(--bk-display);font-size:30px;font-weight:600;line-height:1}
.mc-ht{display:flex;flex-direction:column;min-width:0}
.mc-h{font-size:13px;font-weight:700}
.mc-g{font-size:12px;color:var(--bk-muted)}
.mc-rows{padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.mc-r{display:flex;align-items:center;gap:10px;min-height:44px;width:100%;text-align:left;padding:0;background:none;border:0;color:inherit;font:inherit}
.mc-r:active{opacity:.7}
.mc-ic{width:34px;height:34px;border-radius:calc(var(--bk-r-sm) + 1px);display:flex;align-items:center;justify-content:center;flex:none}
.mc-ic svg{width:17px;height:17px}
.mc-t{display:flex;flex-direction:column;min-width:0;flex:1}
.mc-w{font-size:12.5px;font-weight:700}
.mc-n{font-size:14.5px;line-height:1.4;overflow-wrap:anywhere}
.mc-wait{font-size:12.5px;color:var(--amber-dark);padding-left:44px}
.mc-job{font-size:12.5px;color:var(--ink,inherit);padding-left:44px;margin-top:2px;overflow-wrap:anywhere}
.mc-q{padding:12px 16px 14px;background:var(--bk-ask-bg);border-top:1px solid var(--bk-ask-line);display:flex;flex-direction:column;gap:10px}
.mc-qt{font-size:15px;line-height:1.6}
.mc-qt b{display:block}
.mc-bs{display:flex;gap:8px}
.mc-no,.mc-yes{flex:1;height:48px;border-radius:calc(var(--bk-r-md));font-size:15px;font-family:inherit;text-align:center;justify-content:center;display:inline-flex;align-items:center}
.mc-no{border:1px solid var(--bk-chip-line);background:var(--bk-cell);color:var(--bk-ink)}
.mc-yes{border:none;background:var(--bk-primary);color:var(--bk-primary-fg);font-weight:700}
.mc-no:disabled,.mc-yes:disabled{opacity:.55}
.mc-hint{font-size:12px;color:var(--bk-muted)}
.mc-done{font-size:14px;color:var(--bk-ok-ink)}
.mc-gone{display:none}
.mc-fold{align-self:stretch;display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 12px;border-radius:calc(var(--bk-r-md));border:1px solid var(--bk-cell-line);background:var(--bk-cell);color:var(--bk-chrome);font:inherit;text-align:left}
.mc-fold svg{width:18px;height:18px;flex:none}
.mc-ft{flex:1;min-width:0;font-size:13px;color:var(--bk-ink2)}
.mc-fo{font-size:12.5px;font-weight:700;color:var(--link);white-space:nowrap}
/* the card before a meeting */
.mt{align-self:stretch;display:flex;gap:10px;padding:12px 14px;background:var(--bk-cell);border:1px solid var(--bk-cell-line);border-radius:calc(var(--bk-r-md) + 2px);color:var(--bk-ink)}
.mt-n{font-size:14.5px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.mt-p{font-size:12.5px;color:var(--bk-ink2)}
.mt-bs{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.mt-b{min-height:36px;padding:0 12px;border-radius:calc(var(--bk-r-sm) + 1px);border:1px solid var(--bk-chip-line);background:var(--bk-cell);color:var(--link-dark);font:inherit;font-size:13px;font-weight:600}
.notice.mt-done{align-self:stretch;text-align:left}
/* 「予定に入れました：…」 with its buttons */
.notice.sched{align-self:stretch;text-align:left;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12.5px;color:var(--ink-2)}
.notice.sched .sl-t{flex:1 1 220px;min-width:0}
.sl-bs{display:inline-flex;gap:6px}
.sl-b{min-height:36px;padding:0 12px;border-radius:var(--r-btn);border:1px solid var(--chip-border);background:var(--chip-bg);color:var(--link-dark);font:inherit;font-size:13px;font-weight:600}
.sl-b:disabled{opacity:.55}
/* lane AF1: 「録音を取り込みます」 — an audio file picked with ＋ on the assistant tab (name, length, 議事録 / 文字起こし / やめる) */
.afc{margin:0 0 10px;padding:11px 12px 12px;border-radius:var(--r-card);background:var(--code-bg);border:var(--line) solid var(--panel-border)}
.afc-h{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink)}
.afc-h svg{width:16px;height:16px;flex:none}
.afc-n{display:flex;align-items:baseline;gap:8px;margin:6px 0 8px;font-size:13px}
.afc-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.afc-meta{flex:none;font-size:12px;color:var(--muted)}
.afc-l{margin:6px 0 2px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.afc-l.warn{color:var(--amber-dark)}
.afc-b{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:8px}
.afc-b .pill{height:38px;padding:0 13px;background:var(--surface)}
.afc-b .pill.pri{background:var(--primary-bg);color:var(--primary-fg)}
/* lane SI2: 「AI のアカウント」 (the ⚙ sheet's cards; the switch under way inside its maker's card) */
.ac-mail{overflow-wrap:anywhere}
.ac-sw{flex:none;height:38px;padding:0 15px;font-size:13px}
.ac-sw:disabled{opacity:.45}
.ac-run{display:flex;flex-direction:column;gap:10px;padding:12px 14px 14px;border-top:var(--line) solid var(--rule)}
.ac-line{font-size:13px;line-height:1.6;color:var(--ink)}
.ac-run.ok .ac-line{color:var(--accent-dark);font-weight:600}
.ac-run.err .ac-line{color:var(--red)}
.ac-code{font-size:26px;font-weight:800;letter-spacing:.08em;text-align:center;padding:8px 0;border-radius:var(--r-card);background:var(--code-bg);color:var(--ink);font-variant-numeric:tabular-nums;user-select:all;-webkit-user-select:all}
.ac-open{display:flex;align-items:center;justify-content:center;height:46px;border-radius:var(--r-btn);background:var(--primary-bg);color:var(--primary-fg);text-decoration:none}
.ac-pr{display:flex;gap:8px}
.ac-in{flex:1;min-width:0;height:44px;border:1px solid var(--input-border);border-radius:var(--r-in);padding:0 12px;font:inherit;font-size:16px;background:var(--input-bg);color:var(--ink);caret-color:var(--caret)}
.ac-in:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.ac-send{flex:none;height:44px}
.ac-send:disabled{opacity:.45}
.ac-err{margin-top:14px;font-size:13px;line-height:1.6;color:var(--red)}
.ac-lead{margin:16px 2px 0;font-size:12px;line-height:1.6;color:var(--muted)}
/* lane JB6 (D244 ⑪): 「頼んである仕事」 — ≡'s row, the list and a job's short note in the read-only sheet, a job card's 「あとで ▾」 */
.dr-jobs .dr-jt{flex:1;min-width:0}
.jb-usage{margin:2px 0 8px}
.jb-said{margin:6px 2px 8px;font-size:13px;line-height:1.6;color:var(--ok)}
.jb-said.bad{color:var(--amber-dark)}
.jb-back{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 4px;margin-bottom:4px;font-size:13.5px;color:var(--accent);font-weight:600}
.jb-back svg{width:18px;height:18px}
.jb-yours{display:flex;align-items:center;gap:9px;margin:4px 0 10px;padding:8px 10px 8px 12px;border-radius:10px;background:var(--amber-bg);border:1px solid var(--amber-border);color:var(--amber-dark);font-size:13.5px;line-height:1.5}
.jb-yours .wd{width:8px;height:8px;border-radius:50%;flex:none;background:var(--amber)}
.jb-yt{flex:1;min-width:0;overflow-wrap:anywhere}
.jb-go{height:36px;padding:0 14px;font-size:13px}
.jb-list{list-style:none;margin:0;padding:0}
.jb-row{padding:10px 2px 12px;border-bottom:1px solid var(--rule)}
.jb-row.yours{border-left:3px solid var(--amber);padding-left:9px}
.jb-open{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;padding:2px 0}
.jb-t1{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.jb-kind{flex:none;font-size:11px;font-weight:700;padding:1px 7px;border-radius:9px;background:var(--code-bg);color:var(--muted)}
.jb-name{min-width:0;font-size:15px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.jb-meta{font-size:12.5px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.jb-chip{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:11px;font-size:11.5px;font-weight:700;background:var(--code-bg);color:var(--muted)}
.jb-chip.amb{background:var(--amber-bg);color:var(--amber-dark)}
.jb-chip.red{background:var(--amber-bg);color:var(--red)}
.jb-chip.acc{background:var(--accent-bg);color:var(--accent)}
.jb-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.jb-acts .pill{height:38px;padding:0 16px;font-size:13.5px}
.jb-acts .pill:disabled{opacity:.45}
.jb-runs .t-red .l{color:var(--amber-dark)}
.jb-runs .t-mut .l{color:var(--muted)}
.q-later .q-lt{display:inline-flex;align-items:center;gap:6px}
.q-later svg{width:16px;height:16px;transition:transform .15s}
.q-later.on svg{transform:rotate(180deg)}
.q-sub{display:flex;flex-direction:column;gap:inherit;padding-left:14px;border-left:2px solid var(--rule)}
.mc-jobb{display:flex;align-items:flex-start;gap:6px;width:100%;text-align:left;min-height:32px}
.mc-jobb .mc-jo{flex:none;color:var(--faint);margin-left:auto}

/* Lane SCHED1c (D109, the owner-approved mock): the PCコンシェルジュ's schedule book — one stylesheet for the PC window's page
   and the phone's sheet. The colours are the look's (--bk-*, DeskBookPalette: A soft teal, B thin blue lines, C black);
   the form is the mock's. The mock's display face (Shippori Mincho) is a web font the app cannot fetch offline: the closest
   installed mincho stands in (--bk-display). */
.bk{position:relative;box-sizing:border-box;display:flex;flex-direction:column;min-height:0;height:100%;color:var(--bk-ink);background:var(--bk-paper);
  font-family:var(--font,"Yu Gothic UI","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif);font-size:13px;line-height:1.5;-webkit-text-size-adjust:100%}
.bk *,.bk *::before,.bk *::after{box-sizing:border-box}
.bk button{font-family:inherit;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}
.bk button:disabled{cursor:default}
/* Lane BK4: a hover ring only where a mouse really moved. A window shown (or shown again) under a still pointer drew the
   ring of the day under it like a chosen day's (10/4 on 10-20); .bk-still holds the hover look back until the pointer moves,
   (hover:hover) keeps a phone's tap from leaving one, and :where keeps each rule's weight as it was. */
.bk button:focus-visible,.bk input:focus-visible,.bk select:focus-visible,.bk textarea:focus-visible{outline:2px solid var(--bk-sel);outline-offset:2px}
.bk svg{display:block;flex-shrink:0}
.bk-disp{font-family:var(--bk-display);font-weight:600;letter-spacing:.01em}
/* ── the head ── */
.bk-hd{display:flex;align-items:center;gap:16px;padding:18px 26px;border-bottom:1px solid var(--bk-line);flex-shrink:0}
.bk-tile{width:40px;height:40px;border-radius:calc(var(--bk-r-md) - 2px);background:var(--bk-chrome);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bk-ttl{display:flex;flex-direction:column;min-width:0}
.bk-eye{font-size:12px;color:var(--bk-muted);letter-spacing:.08em;white-space:nowrap}
.bk-name{font-size:24px;line-height:1.25;white-space:nowrap;outline:none}
.bk-nav{display:flex;align-items:center;gap:6px;margin-left:28px}
.bk-sq{width:36px;height:36px;border-radius:calc(var(--bk-r-md) - 3px);border:1px solid var(--bk-chip-line);background:var(--bk-cell);display:flex;align-items:center;justify-content:center;padding:0}
@media (hover:hover){:where(.bk:not(.bk-still)) .bk-sq:hover,:where(.bk:not(.bk-still)) .bk-today:hover{border-color:var(--bk-sel)}}
.bk-period{font-size:22px;min-width:132px;text-align:center;white-space:nowrap;padding:0 4px}
.bk-today{height:36px;padding:0 14px;margin-left:4px;border-radius:calc(var(--bk-r-md) - 3px);border:1px solid var(--bk-chip-line);background:var(--bk-cell);font-size:13px;white-space:nowrap}
.bk-grow{flex-grow:1}
.bk-seg{display:flex;padding:3px;background:var(--bk-seg);border-radius:calc(var(--bk-r-md) - 2px);flex-shrink:0}
.bk-seg button{height:32px;padding:0 16px;border:none;border-radius:calc(var(--bk-r-md) - 4px);background:transparent;color:var(--bk-seg-fg);font-size:13px;white-space:nowrap}
.bk-seg button[aria-pressed="true"]{background:var(--bk-chrome);color:var(--bk-chrome-fg);font-weight:700}
.bk-add{height:38px;padding:0 16px;border:none;border-radius:calc(var(--bk-r-md) - 2px);background:var(--bk-primary);color:var(--bk-primary-fg)!important;font-size:14px;font-weight:700;
  display:flex;align-items:center;gap:6px;white-space:nowrap;flex-shrink:0}
@media (hover:hover){:where(.bk:not(.bk-still)) .bk-add:hover{filter:brightness(1.06)}}
.bk-x{width:36px;height:36px;border-radius:calc(var(--bk-r-md) - 3px);border:1px solid transparent;background:transparent;display:flex;align-items:center;justify-content:center;padding:0}
/* ── the legend ── */
.bk-lg{display:flex;align-items:center;gap:18px;padding:10px 26px;border-bottom:1px solid var(--bk-line);font-size:12px;color:var(--bk-ink2);flex-shrink:0;white-space:nowrap}
.bk-lg-i{display:flex;align-items:center;gap:6px}
.bk-ic{border-radius:calc(var(--bk-r-sm) - 2px);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bk-lg .bk-ic{width:22px;height:22px}
.bk-mk{font-size:11px;padding:1px 7px;border-radius:999px;border:1px solid var(--bk-chip-line);color:var(--bk-ink2);white-space:nowrap;line-height:1.5}
/* ── the body: the month (or week, or day) and the pane ── */
.bk-body{flex-grow:1;display:flex;min-height:0}
.bk-main{flex-grow:1;display:flex;flex-direction:column;padding:12px 18px 18px 26px;min-width:0;min-height:0}
.bk-dows{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding-bottom:6px}
.bk-dow{font-size:12px;font-weight:700;color:var(--bk-muted);padding:0 8px}
.bk-dow.sun{color:var(--bk-sun)}.bk-dow.sat{color:var(--bk-sat)}
.bk-grid{flex-grow:1;display:grid;gap:6px;min-height:0}
.bk-wk{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;min-height:0}
.bk-cell{display:flex;flex-direction:column;gap:2px;text-align:left;padding:5px 7px;min-height:0;overflow:hidden;border-radius:calc(var(--bk-r-md) - 2px);
  border:1px solid var(--bk-cell-line);background:var(--bk-cell);font-size:inherit}
.bk-cell.end{background:var(--bk-cell-end)}
.bk-cell.out{background:var(--bk-cell-out);opacity:.55}
.bk-cell.sel{border:2px solid var(--bk-sel);padding:4px 6px}
@media (hover:hover){:where(.bk:not(.bk-still)) .bk-cell:hover{border-color:var(--bk-sel)}}
.bk-ch{display:flex;align-items:center;justify-content:space-between;min-height:24px}
.bk-num{font-size:13px;font-weight:700;color:var(--bk-ink)}
.bk-num.sun{color:var(--bk-sun)}.bk-num.sat{color:var(--bk-sat)}
.bk-num.today{width:24px;height:24px;border-radius:999px;background:var(--bk-chrome);color:var(--bk-chrome-fg);font-size:12px;display:inline-flex;align-items:center;justify-content:center}
.bk-more{font-size:11px;color:var(--bk-muted)}
.bk-pill{display:flex;align-items:center;gap:5px;height:22px;padding:0 6px;border-radius:calc(var(--bk-r-sm) - 2px);font-size:11.5px;overflow:hidden;white-space:nowrap;flex-shrink:0}
.bk-pill b{flex-shrink:0;font-weight:700}
.bk-pill span{overflow:hidden;text-overflow:ellipsis}
.bk-pill.x{opacity:.5;text-decoration:line-through}
/* lane BK6 (owner 11-19): the month's three pills — no icon, a little lower and tighter, so the title has its room */
.bk-pill.m{height:18px;gap:3px;padding:0 4px}
/* the PC (wide) month's days a little tighter (the owner's first size, 80 % of the work area: about 1229×781); the phone keeps its own */
.bk:not(.narrow) .bk-cell{padding:3px 6px}
.bk:not(.narrow) .bk-cell.sel{padding:2px 5px}
.bk:not(.narrow) .bk-cell .bk-ch{min-height:20px}
.bk:not(.narrow) .bk-cell .bk-num.today{width:20px;height:20px;font-size:11.5px}
/* and the PC's frame around the days a little closer, so six weeks of three pills fit at that size */
.bk:not(.narrow) .bk-hd{padding:12px 22px}
.bk:not(.narrow) .bk-lg{padding:6px 22px}
.bk:not(.narrow) .bk-main{padding:8px 12px 12px 18px}
.bk:not(.narrow) .bk-dows,.bk:not(.narrow) .bk-grid,.bk:not(.narrow) .bk-wk{gap:4px}
.bk:not(.narrow) .bk-dows{padding-bottom:4px}
.bk-dots{display:none}
/* the week: seven tall columns */
.bk-week{flex-grow:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;min-height:0}
.bk-wcol{display:flex;flex-direction:column;gap:5px;padding:8px;border-radius:calc(var(--bk-r-md) - 2px);border:1px solid var(--bk-cell-line);background:var(--bk-cell);overflow:auto;text-align:left;min-height:0}
.bk-wcol.end{background:var(--bk-cell-end)}
.bk-wcol.sel{border:2px solid var(--bk-sel);padding:7px}
.bk-wh{display:flex;align-items:baseline;gap:6px;padding-bottom:4px}
.bk-wh .bk-num{font-size:18px}
.bk-wcol .bk-pill{height:auto;min-height:22px;padding:3px 6px;white-space:normal;align-items:flex-start}
.bk-wcol .bk-pill{flex-wrap:wrap;row-gap:1px}
.bk-wcol .bk-pill span{white-space:normal;flex-basis:100%;overflow-wrap:anywhere}
.bk-wh .bk-num.today{font-size:12px}
/* the day: the entries large */
.bk-dayl{flex-grow:1;overflow:auto;display:flex;flex-direction:column;gap:10px;min-height:0;padding-right:4px}
/* the pane */
.bk-pane{width:300px;flex-shrink:0;border-left:1px solid var(--bk-line);background:var(--bk-pane);display:flex;flex-direction:column;padding:20px 22px;gap:14px;overflow:hidden;min-height:0}
.bk-ph{display:flex;align-items:baseline;gap:10px}
.bk-pn{font-size:40px;line-height:1}
.bk-pd{font-size:14px;font-weight:700}
.bk-ps{font-size:12px;color:var(--bk-muted)}
.bk-none{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px 20px}
.bk-empty{font-size:14px;color:var(--bk-muted);line-height:1.7;padding:16px 0}
.bk-list{display:flex;flex-direction:column;gap:10px;overflow:auto;min-height:0;padding:2px}
.bk-hint{font-size:12px;color:var(--bk-muted);line-height:1.7;border-top:1px solid var(--bk-line);padding-top:12px;flex-shrink:0}
/* an entry (the mock's card) */
.bk-it{display:flex;gap:12px;padding:12px;background:var(--bk-cell);border:1px solid var(--bk-cell-line);border-radius:var(--bk-r-md);text-align:left;width:100%;font-size:inherit}
@media (hover:hover){:where(.bk:not(.bk-still)) button.bk-it:hover{border-color:var(--bk-sel)}}
.bk-it.x{opacity:.62}
.bk-bar{width:4px;border-radius:4px;flex-shrink:0}
.bk-ib{display:flex;flex-direction:column;gap:5px;min-width:0;flex-grow:1}
.bk-iw{display:flex;align-items:center;gap:8px}
.bk-it .bk-ic{width:26px;height:26px}
.bk-when{font-size:13px;font-weight:700}
.bk-ti{font-size:15px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.bk-it.x .bk-ti{text-decoration:line-through}
.bk-pl{font-size:12.5px;color:var(--bk-ink2);overflow-wrap:anywhere}
.bk-chips{display:flex;gap:6px;flex-wrap:wrap}
.bk-chip{font-size:11px;padding:2px 8px;border-radius:999px;border:1px solid var(--bk-chip-line);color:var(--bk-ink2);white-space:nowrap;line-height:1.5}
.bk-chip.goal{border-color:transparent;background:var(--bk-goal-bg);color:var(--bk-goal-ink)}
.bk-chip.x{border-color:transparent;background:var(--bk-seg);color:var(--bk-muted)}
.bk-note{font-size:12.5px;color:var(--bk-ink2);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.bk-sub{font-size:12px;color:var(--bk-muted);line-height:1.6}
/* the opened entry and the form */
.bk-det{display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0;padding:2px}
.bk-btns{display:flex;gap:8px;flex-wrap:wrap}
.bk-b{min-height:36px;padding:0 14px;border-radius:calc(var(--bk-r-md) - 3px);border:1px solid var(--bk-chip-line);background:var(--bk-cell);font-size:13px;white-space:nowrap}
@media (hover:hover){:where(.bk:not(.bk-still)) .bk-b:hover{border-color:var(--bk-sel)}}
.bk-b.pri{border-color:transparent;background:var(--bk-primary);color:var(--bk-primary-fg)!important;font-weight:700}
.bk-b.warn{color:var(--bk-sun)}
.bk-back{display:flex;align-items:center;gap:4px;align-self:flex-start;min-height:32px;padding:0 8px 0 4px;border:none;background:transparent;color:var(--bk-sel)!important;font-size:13px;font-weight:700}
.bk-form{display:flex;flex-direction:column;gap:10px}
.bk-f{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--bk-ink2);font-weight:700}
.bk-f input,.bk-f select,.bk-f textarea{font-family:inherit;font-size:16px;font-weight:400;color:var(--bk-ink);background:var(--bk-field);border:1px solid var(--bk-field-line);
  border-radius:calc(var(--bk-r-sm) - 1px);padding:7px 9px;min-height:36px;width:100%;color-scheme:inherit}
.bk-f textarea{min-height:60px;resize:vertical}
.bk-row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bk-ck{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--bk-ink);min-height:32px}
.bk-ck input{width:18px;height:18px;margin:0;accent-color:var(--bk-primary)}
.bk-err{font-size:12.5px;color:var(--bk-sun)}
/* the one line after a change, with ［元に戻す］ */
.bk-toast{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);max-width:calc(100% - 32px);display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;
  border-radius:var(--bk-r-md);background:var(--bk-chrome);color:var(--bk-chrome-fg);font-size:13px;box-shadow:0 8px 24px rgba(var(--shade-2,10,20,30),.22);z-index:5}
.bk-toast span{overflow-wrap:anywhere}
.bk-toast.warn{background:var(--bk-goal-bg);color:var(--bk-goal-ink)}
.bk-toast button{flex-shrink:0;min-height:32px;padding:0 12px;border-radius:calc(var(--bk-r-sm) - 1px);border:1px solid currentColor;background:transparent;color:inherit;font-size:13px;font-weight:700}
.bk-busy{opacity:.7}
/* ── the phone (narrow): the head in two rows, the month as dots, the day's list under it, the form over the book ── */
.bk.narrow .bk-hd{flex-wrap:wrap;gap:8px 10px;padding:10px 12px 10px 8px}
.bk.narrow .bk-tile{display:none}
.bk.narrow .bk-ttl{flex-grow:1;order:1}
.bk.narrow .bk-eye{font-size:11px}
.bk.narrow .bk-name{font-size:20px}
.bk.narrow .bk-x{order:0;width:44px;height:44px}
.bk.narrow .bk-add{order:2;height:44px;padding:0 14px;font-size:14px}
.bk.narrow .bk-nav{order:3;margin-left:4px;flex-grow:1;gap:4px}
.bk.narrow .bk-period{font-size:18px;min-width:0;flex-grow:1}
.bk.narrow .bk-sq{width:40px;height:40px}
.bk.narrow .bk-today{height:40px;padding:0 10px}
.bk.narrow .bk-seg{order:4}
.bk.narrow .bk-seg button{height:34px;padding:0 12px}
.bk.narrow .bk-grow{display:none}
.bk.narrow .bk-lg{gap:12px;padding:8px 12px;overflow-x:auto;scrollbar-width:none;font-size:11.5px}
.bk.narrow .bk-lg::-webkit-scrollbar{display:none}
.bk.narrow .bk-body{flex-direction:column;overflow:auto}
.bk.narrow .bk-main{padding:8px 8px 6px;flex-grow:0}
.bk.narrow .bk-dows,.bk.narrow .bk-wk,.bk.narrow .bk-grid{gap:3px}
.bk.narrow .bk-grid{grid-template-rows:none!important;grid-auto-rows:auto}
.bk.narrow .bk-dow{padding:0;text-align:center}
.bk.narrow .bk-cell{min-height:52px;padding:4px 2px;align-items:center;gap:3px;border-radius:calc(var(--bk-r-sm) + 1px)}
.bk.narrow .bk-cell.sel{padding:3px 1px}
.bk.narrow .bk-ch{justify-content:center;min-height:24px}
.bk.narrow .bk-pill,.bk.narrow .bk-more{display:none}
.bk.narrow .bk-dots{display:flex;gap:3px;justify-content:center;flex-wrap:wrap;max-width:100%}
.bk-dot{width:6px;height:6px;border-radius:999px}
.bk.narrow .bk-week{display:flex;flex-direction:column;gap:8px}
.bk.narrow .bk-wcol{overflow:visible;padding:8px 10px}
.bk.narrow .bk-pane{width:auto;border-left:none;border-top:1px solid var(--bk-line);padding:14px 12px 24px;overflow:visible;flex-shrink:0}
.bk.narrow .bk-list{overflow:visible}
.bk.narrow .bk-pn{font-size:34px}
.bk.narrow .bk-it{min-height:44px}
.bk.narrow .bk-sheet{position:absolute;inset:0;z-index:4;background:var(--bk-paper);display:flex;flex-direction:column;padding:12px 14px 24px;overflow:auto}
.bk.narrow .bk-b{min-height:44px}
.bk.narrow .bk-f input,.bk.narrow .bk-f select,.bk.narrow .bk-f textarea{font-size:16px;min-height:44px}
.bk.narrow .bk-toast{bottom:14px}
/* review of the first pictures (D75): the narrow month keeps its rows' height; buttons the same height; the form scrolls in the pane */
.bk-b{display:inline-flex;align-items:center;justify-content:center}
.bk-pane>.bk-form{overflow:auto;min-height:0;padding:2px 2px 8px}
.bk.narrow .bk-main,.bk.narrow .bk-grid,.bk.narrow .bk-wk,.bk.narrow .bk-pane{flex-shrink:0;min-height:auto}
.bk.narrow .bk-back{min-height:44px}
.bk.narrow .bk-wcol .bk-pill{display:flex}

/* Lane PW1 (D306): the relay's note on the app's page (the phone's clock; pair again), appended to app.css on the site only */
.rl-note{position:fixed;left:12px;right:12px;top:calc(8px + env(safe-area-inset-top));z-index:9999;padding:10px 14px;border-radius:12px;background:var(--surface);color:var(--amber-dark);border:var(--line) solid var(--panel-border);box-shadow:0 4px 16px rgba(0,0,0,.14);font-size:14px;line-height:1.6}
.rl-note-a{color:var(--accent);font-weight:700}
