/* Rally base components — the site-wide standard, drawn from /remake (D-632).
   Load after rally-tokens.css. Every value comes from a token; a page adds only
   what is its own (a timeline, a stepper), never a new colour or font size.
   See each component in both themes at /design. */

/* Components live in a cascade layer (D-651): any rule a page writes itself — even a plain
   `.btn` or `*{padding:0}` — wins over this layer without fighting specificity or load order,
   so a page's own class names never need resetting. Two blocks further down stay outside the
   layer on purpose: the shared confirm dialog (it must look the same on every page, whatever
   resets the page writes) and the overrides that must beat styles shared scripts inject at run
   time. */
@layer rally-ui{


/* ── Base ─────────────────────────────────────────────────────────────── */
*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--field-line) transparent}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--field-line);border-radius:var(--radius-md)}::-webkit-scrollbar-track{background:transparent}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font:var(--text-base)/var(--leading-normal) var(--font-sans);-webkit-font-smoothing:antialiased}
/* Light text on dark keeps the thin antialiased rendering; dark text on light uses the browser's own,
   one notch heavier, so body text holds up on near-white (D-1278 legibility pass). */
:root[data-theme=light] body,.light-zone{-webkit-font-smoothing:auto}
:root[data-theme=light] .dark-zone{-webkit-font-smoothing:antialiased}
/* Running text stops at about 42 characters a line: past that the eye loses its place going back
   to the start of the next line. A page that needs a wider paragraph sets its own max-width:none
   (a paragraph filling a toolbar row, a centred note — ops-tools.css .ops-intro, lens.css .boundary-note,
   identity-review .face-help, found by measuring every shared-style page on 2026-10-06). The component
   layer names no page class (D-1478): page rules sit outside the layer and win on their own. */
p{max-width:42em;line-height:var(--leading-relaxed)}
/* Interface text sits at 14/20 (body); running text, a paragraph, at --leading-relaxed (D-1484). */
::selection{background:var(--selection)}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
:focus{outline:none}
:focus-visible{outline:var(--focus-ring);outline-offset:2px;border-radius:var(--radius)}
/* 输入类控件（打字 / 选内容）聚焦（D-1803）：2px 黄框压在自己的边框上（offset -1px：正好盖住 1px 灰边、往外多 1px），
   不在外面隔一道缝再套一圈——那样一个框看着像描了两遍。按钮、勾选框这类没有自己边框的照旧外圈。
   外面包了一层框的（.field / .search）亮外层、里面的输入框不亮（D-1502 聚焦只亮一圈）。页面别再写 :focus{outline:none} 或只换边框色。 */
:is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset],[type=image]),select,textarea):focus-visible{outline:var(--focus-ring);outline-offset:-1px}
/* 手机上点输入框整页被放大（D-1807）：iPhone 的浏览器遇到字号小于 16px 的输入框，一聚焦就把整页放大、还不缩回去；
   全站输入框跟正文 14px，于是每个搜索框、文字框、下拉框都中招。触屏设备上打字类控件一律 16px（--text-md）。
   用 !important 是因为不少页面给自己的输入框单写了 13 / 14px 字号，只有这样一处才能全站压住；电脑上不受影响。
   不改 viewport 的 maximum-scale / user-scalable：那会让同事没法双指放大看小字（无障碍）。 */
@media (hover:none) and (pointer:coarse){:is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset],[type=image]),select,textarea,[contenteditable]:not([contenteditable=false])){font-size:var(--text-md)!important}}
/* Numbers keep the text face with tabular figures (D-1484: Chrome showed Menlo for the old mono stack, so a
   column of numbers read like code); IDs, raw errors and keys stay .mono. */
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}.faint{color:var(--faint)}.soft{color:var(--soft)} /* faint-allow: 工具类本身，用在哪里由用的地方负责 */
[hidden]{display:none!important}
.sr{position:absolute;left:-9999px}

/* ── App shell: sidebar (248) · top bar (52) · content ─────────────────── */
.app{display:flex;height:100vh}
.app.side-collapsed .side{display:none}
.icon-btn{width:var(--h-sm);height:var(--h-sm);border-radius:var(--radius);border:0;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background var(--ease),color var(--ease)}
.icon-btn:hover{background:var(--state-hover);color:var(--text)}
.icon-btn:active{background:var(--state-press)}

/* Skeleton: loading placeholders keep the layout's shape. */
@keyframes shimmer{0%{background-position:-240px 0}100%{background-position:240px 0}}
.skel{border-radius:var(--radius);background:linear-gradient(90deg,var(--skel-a) 0,var(--skel-b) 50%,var(--skel-a) 100%);background-size:480px 100%;animation:shimmer 1.4s linear infinite}
@media (prefers-reduced-motion:reduce){.skel{animation:none}}
/* Loading (D-679, from the D-678 pilot): draw the layout at once, put placeholders where data will land.
   Placeholders reserve space but stay invisible until .is-slow lands on them or an ancestor
   (rally-loading.js revealWhenSlow, 400 ms), so a fast response never flashes. Repeated rows are
   static (no shimmer); .skel alone keeps the shimmer for a single large block. */
.alert>.btn{justify-self:start;align-self:start;width:auto}
.skel-wait{visibility:hidden}.is-slow .skel-wait,.skel-wait.is-slow{visibility:visible}
.skel-line,.skel-rows .skel,.skel.still{animation:none;background:var(--line)}
.skel-line{display:block;height:var(--space-3);border-radius:var(--radius-sm);width:100%}
.skel-line.title{height:var(--space-4)}.skel-line.w-3{width:30%}.skel-line.w-5{width:50%}.skel-line.w-7{width:70%}
.skel-rows{display:block}
.skel-row{display:flex;align-items:center;gap:var(--space-6);min-height:var(--skel-row-h,72px);pointer-events:none}
.skel-main{flex:0 0 30%;display:grid;gap:var(--space-2)}
.skel-cells{flex:1;display:grid;grid-template-columns:repeat(var(--skel-cells,4),1fr);gap:var(--space-6)}
.skel-stat{display:grid;gap:var(--space-2);justify-items:var(--skel-align,start)}.skel-stat .skel-line{width:140px}.skel-stat .skel-line.title{width:56px;height:var(--space-8)}
.loading-note{color:var(--muted);animation:loading-note-reveal 0s .4s both}
@keyframes loading-note-reveal{from{visibility:hidden}to{visibility:visible}}
@media (max-width:640px){.skel-main{flex-basis:60%}.skel-cells{grid-template-columns:1fr}.skel-cells .skel-line:nth-child(n+2){display:none}}

.side{width:var(--side-w);flex-shrink:0;background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:14px;padding:14px 10px;overflow:auto}
/* Brand: wordmark · separator · page name · ⌘K hint. */
.brand{display:flex;align-items:center;gap:var(--space-2);padding:2px 6px}
.brand .wordmark{display:block;flex-shrink:0}
.brand .sep{width:1px;height:14px;background:var(--line)}
.brand strong{font-size:var(--text-base);font-weight:var(--weight-semibold)}
.brand .key{margin-left:auto;font-family:var(--mono);font-size:var(--text-xs);color:var(--faint)}
/* Way home (D-680): the wordmark and the 运营中心 crumb both link to the home page, then the page
   name — the one route back on every page on the standard (no floating pill). D-682: the wordmark's
   tooltip only repeated the crumb beside it and, whichever side it opened, covered the crumb, the page
   name or the subtitle (/board header), so it is not drawn; aria-label still names the link. */
.brand-home{display:inline-flex;align-items:center;padding:4px 6px;margin:-4px -6px;border-radius:var(--radius);color:inherit;text-decoration:none;transition:background var(--ease)}
.brand-home:hover{background:var(--state-hover)}
.brand-home[data-tip]:hover::after,.brand-home[data-tip]:focus-visible::after{content:none}
.brand-crumb{color:var(--muted);font-size:var(--text-base);font-weight:var(--weight-regular);text-decoration:none;white-space:nowrap;border-radius:var(--radius-sm);transition:color var(--ease)}
.brand-crumb:hover{color:var(--text)}
.brand-chev{color:var(--faint);margin:0 -2px}
@media (max-width:640px){.brand-crumb,.brand-chev{display:none}}
/* Key caps: only inside the shortcuts popover. */
kbd{font-family:var(--mono);font-size:var(--text-xs);color:var(--soft);background:var(--raised);border:1px solid var(--field-line);border-bottom-width:2px;border-radius:var(--radius-sm);padding:0 5px;line-height:17px;display:inline-block} /* token-allow: 固定高度的小徽标 / 键帽，行高等于高度让字上下居中 */

/* ── Icons (D-636): the sprite in assets/shared/icons.svg, 24 grid, 2px round
   strokes. 16 by default, 14 inside buttons, 12 for small marks (heavier stroke
   keeps the same visual weight). Decorative icons get aria-hidden. */
.icon{width:16px;height:16px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}
.icon.sm{width:14px;height:14px}
.icon.xs{width:12px;height:12px;stroke-width:3}

/* ── Buttons ──────────────────────────────────────────────────────────
   Three weights (D-667): .btn.primary yellow, the one main action of this step · .btn outline,
   an action that must stand out from its neighbours (a toggle, a menu's opener) · .btn.quiet,
   no edge until hovered — most toolbar tools. Plus .danger (red text) for delete / clear,
   .strong (solid text colour) for the one neutral key a workbench presses most, and .tone-*
   for keyed actions found by colour. .small 30px; a screen's main action may be 38px (--h-lg).
   D-1484: the plain button is a quiet fill with no outline (a row of outlined buttons read like a table row);
   the border stays, transparent, so sizes did not move. */
.btn{height:var(--h);padding:0 14px;border-radius:var(--radius);border:1px solid var(--control-line);background:var(--control);box-shadow:var(--control-shadow);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background var(--ease),border-color var(--ease),filter var(--ease),transform var(--dur-instant) ease}
.btn:hover{background:var(--control-hover)}
.btn:active{transform:translateY(1px);background:var(--control-hover)}
/* 只有次按钮带细边和浅阴影（D-2301）；主按钮、实心键、功能色键、安静按钮和禁用态都不带 */
.btn.primary,.btn.strong,.btn[class*="tone-"],.btn.quiet,.btn:disabled{box-shadow:none}
.btn.primary{border:0;background:var(--brand);color:var(--brand-ink);font-weight:var(--weight-medium)}
.btn.primary:hover{filter:brightness(1.06);background:var(--brand)}
.btn.primary:active{filter:brightness(.94)}
.btn:disabled,.btn.primary:disabled{background:var(--disabled-bg);color:var(--disabled-text);border:0;cursor:not-allowed;filter:none;transform:none}
.btn.small{height:var(--h-sm);padding:0 var(--space-3)}
.btn.large{height:var(--h-lg);padding:0 var(--space-5)}   /* 一屏主操作 38 高（D-2263；原来各页在元素上写死 height:var(--h-lg)） */
.btn.quiet{border-color:transparent;background:transparent;color:var(--soft);padding:0 10px}
.btn.quiet:hover{border-color:transparent;background:var(--state-hover);color:var(--text)}
.btn.danger{color:var(--bad-text)}
.btn.danger:hover{color:var(--bad-text);background:var(--bad-bg)}
.btn.strong{border:0;background:var(--text);color:var(--bg);font-weight:var(--weight-medium)}
.btn.strong:hover{background:var(--text);filter:brightness(1.15)}
/* A key hint inside a button: 起球 S. On a filled button it takes the fill's own text colour. */
.btn .key{font-family:var(--mono);font-size:var(--text-xs);line-height:16px;padding:0 4px;border-radius:var(--radius-sm);background:var(--chip);color:var(--muted)} /* token-allow: 固定高度的小徽标 / 键帽，行高等于高度让字上下居中 */
.btn.strong .key,.btn.primary .key,.btn[class*="tone-"] .key{background:var(--state-press);color:inherit;opacity:.8}
/* Keyed work actions (D-651): a solid fill in a status or role colour, for the repeated,
   keyboard-bound operations of a workbench (起球 / 得分 / 撤销 / 删除…) that colleagues find by
   colour. Never for navigation or a screen's main action (that is .primary). */
.btn[class*="tone-"]{border:0;color:var(--on-color);font-weight:var(--weight-medium)}
.btn[class*="tone-"]:hover{filter:brightness(1.08);border:0}
.btn.tone-ok{background:var(--ok)}.btn.tone-bad{background:var(--bad)}.btn.tone-review{background:var(--review)}.btn.tone-run{background:var(--run)}
.btn.tone-material{background:var(--role-material)}.btn.tone-mark{background:var(--role-mark)}.btn.tone-proof{background:var(--role-proof)}
.btn.tone-side-a{background:var(--side-a)}.btn.tone-side-b{background:var(--side-b)}
.btn.tone-side-a:hover{background:var(--side-a)}.btn.tone-side-b:hover{background:var(--side-b)}
.btn.tone-compose{background:var(--role-compose)}.btn.tone-publish{background:var(--role-publish)}.btn.tone-trim{background:var(--role-trim)}
.btn.tone-ok:hover{background:var(--ok)}.btn.tone-bad:hover{background:var(--bad)}.btn.tone-review:hover{background:var(--review)}.btn.tone-run:hover{background:var(--run)}
.btn.tone-material:hover{background:var(--role-material)}.btn.tone-mark:hover{background:var(--role-mark)}.btn.tone-proof:hover{background:var(--role-proof)}
.btn.tone-compose:hover{background:var(--role-compose)}.btn.tone-publish:hover{background:var(--role-publish)}.btn.tone-trim:hover{background:var(--role-trim)}
/* 禁用压过所有档位（2026-10-24 边角复查 A2）：.strong / .tone-* 写在上面那条禁用规则之后、同特异度，原先会把禁用灰盖回实心色 */
.btn.strong:disabled,.btn[class*="tone-"]:disabled{background:var(--disabled-bg);color:var(--disabled-text);border:0;cursor:not-allowed;filter:none;transform:none}
.btn[class*="tone-"]:disabled{background:var(--disabled-bg);color:var(--disabled-text);filter:none;cursor:not-allowed}
/* 红字危险键、安静键也要灰掉（D-1514）：.danger / .quiet 写在禁用规则之后，原先禁用的「中止」仍是红字、悬停还亮红底，看着像能点 */
.btn.danger:disabled,.btn.quiet:disabled{color:var(--disabled-text);cursor:not-allowed;transform:none}
.btn.danger:disabled:hover{background:var(--disabled-bg)}
.btn.quiet:disabled,.btn.quiet:disabled:hover{background:transparent}
/* Busy (D-1484): a request is on its way — the button keeps its size, its label gives way to a small spinner
   and it takes no clicks. Mark it .is-busy or aria-busy="true" while the request runs. */
.btn:is(.is-busy,[aria-busy=true]){position:relative;color:transparent;pointer-events:none}
.btn:is(.is-busy,[aria-busy=true])::after{content:"";position:absolute;inset:0;margin:auto;width:var(--space-4);height:var(--space-4);border-radius:var(--radius-full);border:2px solid var(--muted);border-right-color:transparent;animation:spin .8s linear infinite}
.btn.primary:is(.is-busy,[aria-busy=true])::after{border-color:var(--brand-ink);border-right-color:transparent}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── Toolbar (D-667): tools grouped by what they do, a thin rule between groups, the rarely
   used ones in a 更多 menu. Keep a row to about five visible tools. ─────────── */
.btn-group{display:inline-flex;align-items:center;gap:2px}
.toolbar-sep{width:1px;height:20px;background:var(--line);margin:0 var(--space-2);flex-shrink:0}
/* Tooltip: data-tip="撤销  Z" on any control shows name + key on hover / focus. Placement (D-682):
   below and centred by default; data-tip-pos="top|right|left" picks another side. Choose the side
   with no readable text next to it — a tooltip must never cover a label, a subtitle or a crumb. */
[data-tip]{position:relative}
[data-tip]:hover::after,[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);z-index:var(--z-tooltip);pointer-events:none;white-space:pre;background:var(--text);color:var(--bg);font-size:var(--text-sm);font-weight:var(--weight-regular);line-height:var(--leading-snug);padding:3px 8px;border-radius:var(--radius-sm)}
/* Hover waits --delay-hover before the tip shows, so a pointer sweeping a toolbar does not flash every tip on
   the way; keyboard focus shows it at once (规范「悬停提示位置」). Not motion: kept under reduced motion. */
[data-tip]:hover::after{animation:tip-wait 0s var(--delay-hover) both}
[data-tip]:focus-visible::after{animation:none}
@keyframes tip-wait{from{visibility:hidden}to{visibility:visible}}
[data-tip][data-tip-pos=top]:hover::after,[data-tip][data-tip-pos=top]:focus-visible::after{top:auto;bottom:calc(100% + 6px)}
[data-tip][data-tip-pos=right]:hover::after,[data-tip][data-tip-pos=right]:focus-visible::after{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}
[data-tip][data-tip-pos=left]:hover::after,[data-tip][data-tip-pos=left]:focus-visible::after{left:auto;right:calc(100% + 8px);top:50%;transform:translateY(-50%)}
/* Menu: the panel a 更多 button opens. .menu-item shows an action with a quiet hint on the right. */
/* Floating layers (menus, toasts, dialogs) float on shadow and a hairline at the very edge (a 0.5px ring outside the transparent 1px border: drawn inset it
   sat 1px in, a grey line with a white strip outside it, D-1929), not a hard border, and
   come in with a short fade and a 2% grow (D-1484). A menu grows out of the button that opened it: from its top
   right corner, sliding down 4px (D-1928). A menu that opens upward sets transform-origin:bottom right and
   --menu-rise:4px. */
.menu{position:absolute;right:0;top:calc(100% + 4px);min-width:var(--w-menu);background:var(--popover);border:1px solid transparent;border-radius:var(--radius-md);box-shadow:0 0 0 .5px var(--edge-highlight),var(--elevation-popover);padding:var(--space-1);z-index:var(--z-dropdown);transform-origin:top right;animation:menu-in var(--dur-moderate) var(--ease-standard)}
@keyframes menu-in{from{opacity:0;transform:translateY(var(--menu-rise,-4px)) scale(.96)}to{opacity:1;transform:none}}
@keyframes pop{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
.menu-item{display:flex;justify-content:space-between;align-items:center;gap:var(--space-3);width:100%;height:32px;padding:0 10px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text);text-align:left;cursor:pointer}
.menu-item:hover{background:var(--state-hover)}
.menu-item .hint{color:var(--muted);font-size:var(--text-xs);white-space:nowrap}
.menu-item.danger{color:var(--bad-text)}.menu-item.danger:hover{background:var(--bad-bg)}
.menu-sep{height:1px;background:var(--line);margin:var(--space-1) 0}

/* ── Search, sidebar list ─────────────────────────────────────────────── */
.search{height:32px;border-radius:var(--radius);border:1px solid var(--line);display:flex;align-items:center;gap:var(--space-2);padding:0 10px;color:var(--faint);transition:border-color var(--ease)} /* faint-allow: 侧栏搜索框的图标与 ⌘K 提示 */
.search:has(:is(input,select,textarea):focus-visible){outline:var(--focus-ring);outline-offset:-1px}
.search :is(input,select,textarea):focus-visible{outline:none}
.search input{flex:1;min-width:0;background:transparent;border:0;outline:none;color:var(--text)}
/* A group heading reads as a heading, not a footnote: weight and the space above set it apart from the rows,
   not a smaller grey (2026-10-23). A second span on the right (count, 展开 / 收起) stays metadata. */
.group-title{font-size:var(--text-sm);font-weight:var(--weight-semibold);color:var(--soft);padding:var(--space-4) 8px var(--space-1);display:flex;justify-content:space-between;align-items:baseline;background:none;border:0;width:100%;text-align:left}
.group-title:first-child{padding-top:var(--space-2)}
.group-title>span+span{font-size:var(--text-xs);font-weight:var(--weight-regular);color:var(--muted)}
button.group-title{cursor:pointer}button.group-title:hover{color:var(--text)}
/* An empty group says so in one quiet line, smaller than its heading. */
.group-empty{font-size:var(--text-xs);color:var(--muted);padding:var(--space-1) 8px}
/* The small grey line above a page or panel title that says what kind of page this is (球员档案, 素材证据工作台…). */
.eyebrow{margin:0;font-size:var(--text-xs);font-weight:var(--weight-medium);letter-spacing:var(--tracking-wide);color:var(--muted)}
/* A sidebar row: status dot · name + one short line · a count on the right. */
.item{display:flex;align-items:flex-start;gap:var(--space-2);padding:7px 8px;border-radius:var(--radius);color:var(--soft);cursor:pointer;border:0;background:none;width:100%;text-align:left;transition:background var(--ease),color var(--ease)}
.item:hover{background:var(--state-hover);color:var(--text)}
.item[aria-current=true]{background:var(--selected);color:var(--text);box-shadow:var(--selected-lift)}
.item .dot{margin-top:6px}
.item .lines{flex:1;min-width:0;display:flex;flex-direction:column}
.item .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:var(--weight-semibold);color:var(--text)}
.item .sub{font-size:var(--text-xs);color: var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .meta{font-size:var(--text-xs);font-variant-numeric:tabular-nums;color:var(--muted);margin-top:1px}   /* 计数用正文字体 + 对齐数位，不用等宽（规范「字体排印」，D-2120） */

/* ── Status: dot · pill · state text ───────────────────────────────────
   Blue running · orange needs you · green done · red failed. Only for status. */
.dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;background:var(--faint)}
.dot.run{background:var(--run);box-shadow:0 0 0 3px var(--run-glow)}.dot.review{background:var(--review)}.dot.ok{background:var(--ok)}.dot.bad{background:var(--bad)}.dot.warn{background:var(--review)}
.side-foot{margin-top:auto;border-top:1px solid var(--line);padding:10px 8px 50px;color: var(--muted);font-size:var(--text-sm);display:flex;flex-direction:column;gap:2px}

.main{flex:1;display:flex;flex-direction:column;min-width:0}
.top{height:var(--top-h);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 16px 0 12px;flex-shrink:0}
.crumb{color:var(--muted)}.crumb-sep{color:var(--line-strong)}
.top .title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:var(--weight-medium)}
.pill{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:var(--radius-full);font-size:var(--text-sm);white-space:nowrap}
.pill.run{background:var(--run-bg);color:var(--run-text)}.pill.review{background:var(--review-bg);color:var(--review-text)}
.pill.ok{background:var(--ok-bg);color:var(--ok-text)}.pill.bad{background:var(--bad-bg);color:var(--bad-text)}
/* Neutral (D-1222): not started / not applicable / closed — and 「未核实」, what rally-status.js shows for a state it does not know. */
.pill.neutral{background:var(--chip);color:var(--soft)}
/* 行内标签「结论」档（D-2048）：正文色实心 + 面板色字，一格最多一个（如跟赛签表的「胜」）。仍是中性灰阶，不表示状态。 */
.pill.solid{background:var(--text);color:var(--panel)}
/* Role tags (D-651): which stage, on the role's quiet tint. */
/* 岗位标签（D-2290）：行内的岗位标签是灰底，靠字认；岗位色只留给一屏出现一次的分区（看板列头、流程条、任务栏色条）。 */
.pill[class*="role-"]{background:var(--chip);color:var(--soft)}
.view{flex:1;display:flex;flex-direction:column;min-height:0;animation:fadein var(--dur-moderate) ease}
@keyframes fadein{from{opacity:0}to{opacity:1}}
/* Content: 36/48 padding, a column up to 720 and an optional 300 aside. */
.body{flex:1;display:flex;gap:var(--space-8);padding:36px var(--space-12);min-height:0;overflow:auto}
.col{flex:1;max-width:var(--w-read);display:flex;flex-direction:column;gap:var(--space-5);min-width:0}
.aside{width:var(--w-aside);flex-shrink:0;display:flex;flex-direction:column;gap:var(--space-3)}
h1{margin:0;font-size:var(--text-xl);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-tight)}
/* Bold tags the browser draws at 700 (b, strong, th, h2–h6) stop at semibold: PingFang SC has no heavier Chinese,
   so at 700 the Chinese stayed at 600 while Latin and digits in the same line got heavier (D-1484 weights; D-1931). */
b,strong,th,h2,h3,h4,h5,h6{font-weight:var(--weight-semibold)}
/* <small> the browser shrinks to "smaller" (about 11px under 14px text): below the 13px floor (D-1932). */
small{font-size:var(--text-xs)}
/* A card is a quiet fill, not a frame (D-1484): sections are told apart by fill and space. */
.card{border:1px solid var(--card-line);background:var(--card);border-radius:var(--radius-md)}
/* Page footer carrying the screen's main action at the right. */
.foot{height:68px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;gap:var(--space-4);padding:0 var(--space-12);flex-shrink:0}

/* ── Fields ───────────────────────────────────────────────────────────── */
.field{height:var(--h-field);border:1px solid var(--field-line);border-radius:var(--radius);display:flex;align-items:center;gap:10px;padding:0 var(--space-3);background:var(--panel);transition:border-color var(--ease)}
/* 聚焦：外层 .field 亮黄框、压在自己的边框上（D-1484 起有黄框，D-1803 起不隔缝）；里面的输入框不再亮第二圈 */
.field:has(:is(input,select,textarea):focus-visible){outline:var(--focus-ring);outline-offset:-1px}
.field :is(input,select,textarea):focus-visible{outline:none}
.field select,.field input{flex:1;min-width:0;background-color: transparent;border:0;outline:none;color:var(--text)}
.field select option{background:var(--panel)}
.chip{padding:1px 6px;border-radius:var(--radius-sm);background:var(--chip);color:var(--soft);font-size:var(--text-xs)}
.state{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.state.ok{color:var(--ok-text)}.state.run{color:var(--run-text)}.state.bad{color:var(--bad-text)}.state.review{color:var(--review-text)}.state.neutral{color:var(--muted)}
/* Progress bar. */
.bar{height:4px;border-radius:var(--radius-sm);background:var(--chip);overflow:hidden}.bar>div{height:4px;border-radius:var(--radius-sm);background:var(--run);width:0;transition:width var(--dur-slow) ease}

/* ── Table (D-1523): rows told apart by a line, never a grid of boxes; a header in --muted, numbers on the right.
   <div class="data-table-scroll"><table class="data-table">…</table></div> — the wrapper scrolls sideways on a narrow
   screen and draws the one top line. Options: .compact (dense rows) · .sticky (header stays put; only works when the wrapper scrolls, so give it a max-height) ·
   th.sortable + .active (sorted column, a 2px yellow underline) · tr.is-clickable · tr.is-open (the row whose detail is
   showing: --played + a 3px yellow bar, like 「正在看这一条」) · td.num / .right / .center · td.state-cell (empty, loading,
   failure: one cell spanning the row). */
.data-table-scroll{overflow-x:auto;border-top:1px solid var(--line)}
.data-table{width:100%;border-collapse:collapse;font-size:var(--text-sm);line-height:var(--leading-normal)}
.data-table th,.data-table td{padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.data-table th{color:var(--muted);font-size:var(--text-xs);font-weight:var(--weight-medium);white-space:nowrap}
.data-table tbody tr:last-child>:is(th,td){border-bottom:0}
/* Row headers (a key–value table: 首次生成 · 最近复用 …) shrink to their label instead of taking half the width (D-1524). */
.data-table tbody th{width:1%;padding-right:var(--space-8)}
.data-table tbody tr:hover>td{background:var(--state-hover)}
.data-table :is(th,td):is(.num,.right){text-align:right}
.data-table td.num{font-variant-numeric:tabular-nums}
.data-table :is(th,td).center{text-align:center}
.data-table.compact :is(th,td){padding:var(--space-1) var(--space-3)}
.data-table.sticky thead th{position:sticky;top:0;z-index:1;background:var(--bg)}
.data-table th.sortable{cursor:pointer;user-select:none}
.data-table th.sortable:hover,.data-table th.sortable.active{color:var(--text)}
.data-table th.sortable.active{box-shadow:inset 0 -2px 0 var(--brand-line)}
.data-table tr.is-clickable{cursor:pointer}
.data-table tr.is-open>td{background:var(--played)}
.data-table tr.is-open>td:first-child{box-shadow:inset 3px 0 0 var(--brand-line)}
.data-table tr:focus-visible{outline-offset:-2px}
.data-table td.state-cell{padding:var(--space-6) var(--space-3);text-align:center;color:var(--soft)}
.data-table tbody tr:hover>td.state-cell{background:none}

/* ── Form (D-1525): a stack of fields, each = label (+ 必填) · control · one line of help · its own error.
   <div class="form-stack"><div class="form-item"><label class="form-label" for="x">中文名<span class="form-req">必填</span></label>
   <input class="form-input" id="x"><p class="form-help">…</p><p class="form-msg" id="x-msg"></p></div>…
   <div class="form-buttons">取消 · 主操作</div></div>. A bad value: aria-invalid="true" on the control + the sentence
   in .form-msg right under it (not in a box at the bottom); a failed save stays a .alert. .form-input is for a bare
   input / select / textarea (a control with an icon inside keeps using .field). .form-choice: a radio / checkbox and its words. */
.form-stack{display:flex;flex-direction:column;gap:var(--space-4)}
.form-item{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}
.form-label{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--soft)}
.form-req{margin-left:var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-regular);color:var(--muted)}
.form-input{width:100%;height:var(--h-field);padding:0 var(--space-3);border:1px solid var(--field-line);border-radius:var(--radius);background:var(--panel);color:var(--text);font:inherit;transition:border-color var(--ease)}
.form-input:hover{border-color:var(--line-hover)}
/* 选择类控件（D-1804）：浏览器自带下拉框和长得像下拉框的自制选择器（.select-trigger：button 或 details 的 summary）
   用同一个箭头——图标库的 chevron，16px、离右边 12px、--soft 色，展开时朝上；展开时和聚焦一样亮一个压在边框上的黄框（D-1803）。
   页面别再写 appearance、自己画箭头（▾ ▴ ⌄、边框折角），也别用 background 简写盖掉箭头；改底色写 background-color。 */
select:not([multiple]):not([size]),.select-trigger{appearance:none;-webkit-appearance:none;background-image:var(--icon-chevron-down);background-repeat:no-repeat;background-position:right var(--space-3) center;background-size:16px;padding-right:calc(var(--space-3) + 16px + var(--space-3))}
.select-trigger{list-style:none;cursor:pointer}
.select-trigger::-webkit-details-marker{display:none}
.select-trigger[aria-expanded=true],details[open]>.select-trigger{background-image:var(--icon-chevron-up);outline:var(--focus-ring);outline-offset:-1px}
.select-trigger:focus-visible{outline:var(--focus-ring);outline-offset:-1px}
/* 折叠 / 菜单按钮的箭头（D-1805）：和下拉框同一个 chevron（--soft 色），14px 跟在文字后面，展开时（details[open] 的 summary、
   aria-expanded=true）朝上。页面不要再写 ▾ ▴ ▼ ▲ ⌄ 这类文字三角；已经用 <svg class="icon sm"> chevron-down 的（「更多」）照旧。 */
.caret::after{content:"";display:inline-block;width:14px;height:14px;margin-left:var(--space-1);vertical-align:-2px;background:var(--icon-chevron-down) center/14px no-repeat}
details[open]>summary.caret::after,.caret[aria-expanded=true]::after,.caret.is-open::after{background-image:var(--icon-chevron-up)}
textarea.form-input{height:auto;min-height:72px;padding:var(--space-2) var(--space-3);line-height:var(--leading-normal);resize:vertical}
.form-input[readonly]{background:transparent;color:var(--soft)}
.form-input:disabled{background:var(--disabled-bg);color:var(--disabled-text);cursor:not-allowed}
.form-input[aria-invalid=true]{border-color:var(--bad)}
.form-help{margin:0;font-size:var(--text-xs);line-height:var(--leading-snug);color:var(--muted)}
.form-msg{margin:0;font-size:var(--text-xs);line-height:var(--leading-snug);color:var(--bad-text)}
.form-msg:empty{display:none}
.form-choice{display:flex;align-items:flex-start;gap:var(--space-2);font-size:var(--text-sm);color:var(--text);cursor:pointer}
.form-choice>input{margin:var(--space-1) 0 0;accent-color:var(--brand)}
.form-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-1)}

/* ── Alert, disclosure ────────────────────────────────────────────────── */
.alert{border:1px solid transparent;background:var(--bad-card);border-radius:var(--radius-md);padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-2)}
.alert strong{color:var(--bad-text)}
/* A section whose data did not load (rally-loading.js loadFailBox): 「X没取到」· reason · 重试, in place. */
.alert.compact{padding:var(--space-3);gap:var(--space-1)}
/* Neutral explanation (read-only, permission, background): nothing for you to do. Orange .review is only for
   something that waits on you. Both keep the .alert shape; the red default stays for 「没取到 / 失败」. */
.alert.info{border-color:transparent;border-left:3px solid var(--line-strong);background:var(--well);color:var(--soft)}
.alert.info strong{color:var(--text)}
.alert.review{background:var(--raised);box-shadow:inset 3px 0 0 var(--review);}
.alert.review strong{color:var(--review-text)}
/* 当前一步卡（D-2252，Sam 2026-11-19 定）：多步骤页面里说清「现在在做什么、下一步做什么」的那一张卡（/aiproofer「当前一步」）。
   浮起（浮层底 + 外沿细线 + 菜单级阴影）让它从页面里跳出来；左侧 3px 竖条取这一步的状态色、和状态点同色——
   蓝 AI 在做 · 橙 等你处理 · 绿 完成 · 红 失败，还没开始或说不清的灰。竖条不用黄：黄竖条全站是「选中的那一条」，
   黄色只留给卡里的主按钮。竖条用 inset 阴影画，跟着圆角走，不画边框（不会戳出圆角，也不会被去框规则归零）。 */
.now-card{--now-card-bar:var(--line-strong);border:0;border-radius:var(--radius-md);background:var(--popover);box-shadow:inset 3px 0 0 var(--now-card-bar),0 0 0 .5px var(--edge-highlight),var(--elevation-popover)}
.now-card[data-tone="run"]{--now-card-bar:var(--run)}
.now-card[data-tone="review"]{--now-card-bar:var(--review)}
.now-card[data-tone="ok"]{--now-card-bar:var(--ok)}
.now-card[data-tone="bad"]{--now-card-bar:var(--bad)}
/* A fold's summary is the row's own heading (/models scenes, /admin editors), so it keeps the text
   colour of where it sits; a page that wants a quiet "展开" link greys its own summary (D-1278). */
details summary{cursor:pointer}
/* 技术详情 (D-1222, showFailure): the raw error folded shut under the plain sentence — for copying to
   whoever fixes it, never the message itself. */
.tech-detail{font-size:var(--text-xs);color:var(--muted)}
.tech-detail>summary{width:fit-content}   /* 只占文字宽：占满整行时焦点框伸出滚动容器被裁（D-1508） */
.tech-detail pre{margin:var(--space-1) 0 0;padding:var(--space-2);max-height:160px;overflow:auto;border-radius:var(--radius-sm);background:var(--well);font-family:var(--mono);white-space:pre-wrap;overflow-wrap:anywhere}

/* ── Segmented control: one choice of two or three ─────────────────────── */
/* A grey track with the chosen one raised out of it (2026-10-23): as clear as the old inverted block, but quiet
   enough that a row of them doesn't compete with the screen's one yellow action. The chosen one may be marked
   aria-pressed, aria-selected, .active, or (radio labels) a checked input inside. */
.seg{display:flex;gap:2px;padding:2px;background:var(--state-hover);border-radius:var(--radius);flex-shrink:0}
.seg button,.seg>label{height:26px;padding:0 var(--space-3);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--soft);cursor:pointer;transition:background var(--ease),color var(--ease),box-shadow var(--ease)}
.seg>label{display:inline-flex;align-items:center}
.seg button:hover,.seg>label:hover{color:var(--text);background:var(--state-hover)}
.seg :is(button[aria-pressed=true],button[aria-selected=true],button.active),.seg>label:has(input:checked){background:var(--selected);color:var(--text);box-shadow:var(--selected-lift)}
/* 分段控件窄屏会横向滚动（超出隐藏）：按钮的焦点框往里收，不然被底槽裁掉（D-1508） */
.seg button:focus-visible{outline-offset:-2px}

/* ── Tabs: switch the whole page or a whole block (D-2120, 规范「标签页」) ──── */
/* Current one = body text + a 2px yellow underline (an "you are here" marker, not a second main action). Put
   .rally-tabs on the row; its direct button / link children are the tabs. The current one may be marked
   aria-selected, aria-pressed, aria-current or .active. A choice inside one block stays a .seg. */
.rally-tabs{display:flex;align-items:stretch;gap:0;border-bottom:1px solid var(--line);overflow-x:auto;min-width:0}
.rally-tabs>:is(button,a){display:inline-flex;align-items:center;gap:var(--space-2);height:var(--h-lg);padding:0 var(--space-3);margin-bottom:-1px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--soft);font:inherit;font-weight:var(--weight-medium);white-space:nowrap;text-decoration:none;cursor:pointer;transition:color var(--ease)}
.rally-tabs>:is(button,a):hover{color:var(--text)}
.rally-tabs>:is(button,a):focus-visible{outline-offset:-2px}   /* 标签条会横向滚动，外扩的焦点框会被裁（D-1508） */
.rally-tabs>:is([aria-selected=true],[aria-pressed=true],[aria-current=page],.active){color:var(--text);font-weight:var(--weight-semibold);border-bottom:2px solid var(--brand-line)}

/* ── Button row, checkbox ─────────────────────────────────────────────── */
.row2{display:flex;gap:var(--space-2)}.row2 .btn{flex:1}
.check{display:flex;align-items:center;gap:var(--space-2);color:var(--soft);cursor:pointer}
.check input{width:16px;height:16px;accent-color:var(--brand)}

/* ── Toasts: top centre under the top bar, never over the main action ───── */
.toasts{position:fixed;left:50%;top:64px;transform:translateX(-50%);z-index:var(--z-toast);display:flex;flex-direction:column;gap:var(--space-2);align-items:center;pointer-events:none}
.toasts .toast{pointer-events:auto}
.toast{max-width:var(--w-toast);padding:10px 14px;border-radius:var(--radius-md);background:var(--popover);border:1px solid transparent;box-shadow:0 0 0 .5px var(--edge-highlight),var(--elevation-popover);display:flex;gap:10px;align-items:flex-start;animation:toast var(--dur-moderate) ease}
@keyframes toast{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ── Dialog: a title, one sentence, cancel + the action ────────────────── */
/* A page's own <dialog>. margin:auto is the browser default, restated so a page's `*{margin:0}`
   inside this layer (lower specificity than `dialog`) no longer pins the dialog to the top left. */
dialog{margin:auto;border:1px solid transparent;border-radius:var(--radius-lg);background:var(--panel);color:var(--text);padding:var(--space-5);width:var(--w-dialog);box-shadow:0 0 0 .5px var(--edge-highlight),var(--elevation-dialog)}
dialog[open]{animation:pop var(--dur-moderate) var(--ease-standard)}
dialog::backdrop{background:var(--backdrop)}
dialog h2{margin:0 0 6px;font-size:var(--text-lg)}
dialog p{margin:0 0 18px;color:var(--soft)}
dialog .row2{justify-content:flex-end}dialog .row2 .btn{flex:0 0 auto}

/* ── Toasts drawn by rally-toast.js: a status dot, then the text ───────── */
.toast>.dot{margin-top:6px}
/* An error toast stays until closed (rally-toast.js): the × sits at the end of the line, its 30px hit area
   pulled into the padding so the toast is no taller than a one-line one. */
.toast-close{margin:calc(-1 * var(--space-1)) calc(-1 * var(--space-2)) calc(-1 * var(--space-1)) auto}

/* Reduced motion, everywhere (D-1484): with the system setting on, nothing slides, grows or fades.
   A spinner or a moving stripe that says "still working" keeps turning, slowly (D-1928): a still ring reads as a
   page that froze. Mark such an element .busy-loop; a busy button's spinner already counts. Everything else,
   pulsing dots included, still stops: a dot keeps its colour without the pulse. */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .busy-loop,.busy-loop::before,.busy-loop::after,.btn:is(.is-busy,[aria-busy=true])::after{animation-duration:var(--dur-busy-loop)!important;animation-iteration-count:infinite!important}}
}

/* ── The shared confirm / prompt (rally-confirm.js, D-697) — OUTSIDE the layer on purpose ──
   Page rules outside any layer beat every layered rule, whatever their specificity: a page's
   `*{margin:0;padding:0}` or `dialog{padding:0}` used to strip this dialog's centring and padding,
   and a page's own .btn / .field family restyled its buttons and inputs (/scout, /material,
   /trimmer each carried a patch). Unlayered, these rules compete on specificity instead, and every
   selector starts with `dialog.rally-dialog` (0,1,1), above any bare-element or single-class page
   rule. The dialog uses only its own rally-dialog-* class names, so a page's .btn / .field / .row2
   never match it, and each rule states its whole box (margin, padding, border, font) rather than
   relying on defaults a page could have reset. Values mirror the layered dialog / .btn / .field. */
dialog.rally-dialog{position:fixed;inset:0;z-index:auto;box-sizing:border-box;margin:auto;width:min(var(--w-confirm),calc(100vw - 32px));max-width:none;height:fit-content;min-height:0;max-height:calc(100vh - 48px);overflow:auto;padding:var(--space-5);border:1px solid transparent;border-radius:var(--radius-lg);background:var(--panel);color:var(--text);box-shadow:0 0 0 .5px var(--edge-highlight),var(--elevation-dialog);font:var(--text-base)/var(--leading-normal) var(--font-sans);text-align:left;letter-spacing:normal;text-transform:none;opacity:1;visibility:visible;transform:none}
dialog.rally-dialog:not([open]){display:none}
dialog.rally-dialog[open]{display:block;animation:pop var(--dur-moderate) var(--ease-standard)}
dialog.rally-dialog::backdrop{background:var(--backdrop)}
dialog.rally-dialog *,dialog.rally-dialog *::before,dialog.rally-dialog *::after{box-sizing:border-box}
dialog.rally-dialog .rally-dialog-title{margin:0 0 6px;padding:0;border:0;background:none;color:var(--text);font:var(--weight-semibold) var(--text-lg)/var(--leading-snug) var(--font-sans);letter-spacing:normal;text-transform:none}
/* Line breaks in the body are kept: the old confirm() strings put one fact per line. */
dialog.rally-dialog .rally-dialog-body{margin:0 0 18px;padding:0;color:var(--soft);font-size:var(--text-base);white-space:pre-line;overflow-wrap:anywhere}
dialog.rally-dialog .rally-dialog-body:has(+ .rally-dialog-details){margin-bottom:var(--space-2)}
dialog.rally-dialog .rally-dialog-details{margin:0 0 18px;padding:0 0 0 18px;list-style:disc outside;display:grid;gap:4px;color:var(--soft);font-size:var(--text-sm);overflow-wrap:anywhere}
dialog.rally-dialog .rally-dialog-details li{margin:0;padding:0;display:list-item}
dialog.rally-dialog .rally-dialog-field{display:grid;gap:6px;margin:0 0 var(--space-4);padding:0;color:var(--soft);font-size:var(--text-sm)}
dialog.rally-dialog .rally-dialog-field small{margin:0;padding:0;color:var(--muted);font-size:var(--text-xs)}
dialog.rally-dialog .rally-dialog-input{display:block;width:100%;height:var(--h-field);margin:0;padding:0 var(--space-3);border:1px solid var(--field-line);border-radius:var(--radius);background:var(--panel);color:var(--text);font:var(--text-base)/var(--leading-normal) var(--font-sans);box-shadow:none;transition:border-color var(--ease)}
dialog.rally-dialog .rally-dialog-input.is-multiline{height:auto;padding:var(--space-2) var(--space-3);resize:vertical}
dialog.rally-dialog .rally-dialog-actions{display:flex;justify-content:flex-end;gap:var(--space-2);margin:0;padding:0}
dialog.rally-dialog .rally-dialog-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:0;height:var(--h);margin:0;padding:0 14px;border: 1px solid var(--control-line);border-radius:var(--radius);background:var(--control); box-shadow: var(--control-shadow);color:var(--text);font:var(--weight-regular) var(--text-base)/var(--leading-none) var(--font-sans);letter-spacing:normal;text-transform:none;white-space:nowrap;box-shadow:none;cursor:pointer;filter:none;transition:background var(--ease),border-color var(--ease),filter var(--ease)}
dialog.rally-dialog .rally-dialog-btn:hover:not(:disabled){background:var(--control-hover)}
dialog.rally-dialog .rally-dialog-btn:active{background:var(--state-press)}
dialog.rally-dialog .rally-dialog-btn:focus{outline:none}
dialog.rally-dialog .rally-dialog-btn:focus-visible{outline:var(--focus-ring);outline-offset:2px}
dialog.rally-dialog .rally-dialog-btn.is-primary{box-shadow:none;border-color:var(--brand);background:var(--brand);color:var(--brand-ink);font-weight:var(--weight-medium)}
dialog.rally-dialog .rally-dialog-btn.is-primary:hover:not(:disabled){background:var(--brand);filter:brightness(1.06)}
dialog.rally-dialog .rally-dialog-btn.is-primary:active{filter:brightness(.94)}
dialog.rally-dialog .rally-dialog-btn.is-danger{color:var(--bad-text)}
dialog.rally-dialog .rally-dialog-btn.is-danger:hover{background:var(--bad-bg)}
dialog.rally-dialog .rally-dialog-btn:disabled{box-shadow:none;border-color:transparent;background:var(--disabled-bg);color:var(--disabled-text);cursor:not-allowed;filter:none}

/* ── Site-wide overlays drawn by shared scripts (D-641): the ⌘K hint and
   palette (cmdk.js) and the to-do bubble and drawer (widget-todo.js) inject
   their own styles at run time. Those styles already read the same tokens
   (var(--x, old dark fallback)), so only what differs from them is re-set
   here; "html" lifts these rules above the injected ones. ── */
html #cmdk-hint{box-shadow:var(--elevation-raised)}
html #cmdk-mask{color-scheme:inherit}
html .cmdk-item.sel .cmdk-ic{color:var(--text)}
/* Floating zone (D-696): both floating buttons sit in one band in the bottom-right corner —
   the bubble --float-size square at --float-inset from the edges, the ⌘K hint on the same centre
   line just left of it — so together they never reach higher than --float-safe-bottom. */
html #mt-bubble{right:var(--float-inset);bottom:var(--float-inset);width:var(--float-size);height:var(--float-size)}
html #mt-bubble svg{width:18px!important;height:18px!important}
html #cmdk-hint{right:var(--float-inset);bottom:calc(var(--float-inset) + (var(--float-size) - var(--h-sm)) / 2);height:var(--h-sm);padding:0 var(--space-3)}
html #cmdk-hint.beside-todo{right:calc(var(--float-inset) + var(--float-size) + var(--space-2))}
/* A page's scrolling column that runs to the bottom of the screen ends with this much space. */
.float-safe{padding-bottom:var(--float-safe-bottom)}
