Files
Senbei/web/style.css
T
Momoko-Ayase 21236e8b98 feat(web): bring the Senbei workbench to the browser
Add folder scanning, Android library and package recovery, and the localized desktop-style workbench. Keep browser-refused outputs in a fallback ZIP and include logs with folder and ZIP exports.

Align the desktop and web modal transitions and polish the desktop About and legal dialogs.
2026-11-18 17:10:12 +08:00

543 lines
28 KiB
CSS

/* Senbei in the browser. The look is the desktop workbench, measure for
measure: flat fills, 1px strokes, small radii, panels and tables. No
gradients, blur, or transitions. */
@font-face {
font-family: "Asul";
src: url("assets/Asul-Bold.woff2") format("woff2");
font-weight: 700;
font-display: swap;
}
:root {
color-scheme: dark;
--bg: #14161a;
--panel: #1d2026;
--panel-2: #23272e;
--well: #0c0e11;
--border: #2e323b;
--border-strong: #3c414c;
--text: #e4e7ec;
--dim: #9aa3b0;
--faint: #808896;
--accent: #e8b64c;
--accent-hover: #f0c463;
--accent-ink: #1a1408;
--blue: #3b82f6;
--sel: rgba(59, 130, 246, 0.20);
--hover: rgba(255, 255, 255, 0.035);
--hover-fill: #2a2f37;
--hover-stroke: #566070;
--ok: #6fcf7c;
--ok-soft: rgba(111, 207, 124, 0.13);
--err: #e06c6c;
--err-soft: rgba(224, 108, 108, 0.13);
--warn: #e8b64c;
--warn-soft: rgba(232, 182, 76, 0.13);
--skip: #8b93a1;
--info: #7aa7f7;
--info-soft: rgba(59, 130, 246, 0.14);
--r: 4px;
--ui: "Segoe UI", system-ui, sans-serif;
--mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", Menlo, monospace;
--title: "Asul", var(--ui);
}
/* The locale's own system font comes first, so Han characters and CJK
punctuation take that locale's glyphs. No CJK font is downloaded. */
html[lang="zh-CN"] { --ui: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif; }
html[lang="zh-TW"] { --ui: "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans CJK TC", "Segoe UI", system-ui, sans-serif; }
html[lang="ja"] { --ui: "Yu Gothic UI", "Meiryo UI", "Hiragino Sans", "Noto Sans CJK JP", "Segoe UI", system-ui, sans-serif; }
html[lang="ko"] { --ui: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 13.5px/18px var(--ui);
overflow: hidden;
}
.mono, code { font-family: var(--mono), var(--ui); font-size: 12.5px; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.spacer { flex: 1; }
a { color: var(--info); }
/* ---------- controls ---------- */
button, select, input { font: inherit; color: inherit; }
button {
min-height: 26px;
padding: 3px 9px;
background: var(--panel-2);
border: 1px solid var(--border-strong);
border-radius: var(--r);
cursor: pointer;
white-space: nowrap;
}
button:hover:not(:disabled) { background: var(--hover-fill); border-color: var(--hover-stroke); }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.primary:disabled { opacity: 1; background: rgba(232, 182, 76, 0.45); border-color: transparent; color: rgba(26, 20, 8, 0.7); }
/* A symbol takes one em whatever font it falls back to. */
.ico { display: inline-block; width: 1em; text-align: center; }
/* A frameless button that shows its frame under the pointer. */
button.ghost { min-height: 24px; background: transparent; border-color: transparent; color: var(--dim); font-size: 12px; line-height: 16px; }
button.ghost:hover:not(:disabled) { background: var(--hover-fill); border-color: var(--hover-stroke); }
select, input[type="search"], input[type="number"] {
height: 26px;
padding: 0 5px;
border: 1px solid var(--border-strong);
border-radius: var(--r);
}
select { min-width: 120px; background: var(--panel-2); cursor: pointer; }
select:hover { background: var(--hover-fill); border-color: var(--hover-stroke); }
input[type="search"], input[type="number"] { background: var(--well); }
input[type="search"]::placeholder { color: var(--faint); }
/* A check box is a small filled square with a thin tick. */
input[type="checkbox"] {
appearance: none; flex: none; width: 14px; height: 14px; margin: 0;
background: var(--panel-2) center / 14px 14px no-repeat border-box;
border: 1px solid var(--border-strong); border-radius: var(--r); cursor: pointer;
}
input[type="checkbox"]:hover { background-color: var(--hover-fill); border-color: var(--hover-stroke); }
input[type="checkbox"]:checked { background-image: url("assets/check.svg"); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
/* ---------- frame ---------- */
#app { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
/* The bar's row is 26 tall where its buttons are; the settings button is 28. */
.topbar {
display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 8px;
min-height: 41px; padding: 6px 10px;
background: var(--panel);
border-bottom: 1px solid var(--border);
user-select: none;
}
.brand { display: flex; align-items: center; gap: 8px; height: 26px; margin-right: 6px; }
.brand img { width: 26px; height: 26px; }
.brand .word { font: 700 19px/22px var(--title); }
.brand .ver { color: var(--faint); font-size: 11.5px; line-height: 14px; }
.sep { width: 1px; height: 22px; margin-top: 2px; background: var(--border); }
.topbar > .spacer { height: 26px; }
.out-chip {
display: flex; align-items: center; gap: 6px;
min-width: 0; max-width: 340px; min-height: 24px; margin-top: 2px; padding: 0 7px;
background: transparent; border-color: var(--border); color: var(--dim);
}
.out-chip:hover:not(:disabled) { background: transparent; border-color: var(--hover-stroke); }
.out-chip b { color: var(--text); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.gear { min-height: 28px; font-size: 15px; line-height: 20px; }
.main { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 0; }
.main.blank { grid-template-columns: minmax(0, 1fr); }
.main.blank .inputs { display: none; }
@media (max-width: 1359px) { .main { grid-template-columns: 300px minmax(0, 1fr); } }
/* ---------- inputs ---------- */
.inputs {
display: flex; flex-direction: column; min-height: 0;
background: var(--panel);
border-right: 1px solid var(--border);
user-select: none;
}
.inputs-head { display: grid; gap: 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); }
.inputs-head .title { display: flex; align-items: center; justify-content: space-between; min-height: 24px; font: 700 15px/18px var(--title); }
.inputs-head .title button { font-family: var(--ui); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 4px; padding: 3px 0; }
.chip {
min-height: 18px; padding: 0.5px 7px;
background: transparent; border-color: var(--border); border-radius: 999px;
color: var(--dim); font-size: 12px; line-height: 15px;
}
.chip:hover:not(:disabled) { background: transparent; border-color: var(--border); }
.chip.on, .chip.on:hover:not(:disabled) { background: var(--sel); border-color: var(--blue); color: var(--text); }
.chip .n { margin-left: 4px; color: var(--faint); }
.chip.on .n { color: var(--dim); }
.search { width: 100%; }
.list { flex: 1; overflow: auto; padding: 8px 0; }
.list > p { margin: 0; padding: 6px 10px; }
.caret { width: 14px; height: 14px; color: var(--faint); font-size: 9px; line-height: 14px; text-align: center; cursor: pointer; }
.group-h {
position: relative;
display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px;
margin-top: 4px; padding: 5px 10px 4px 30px;
cursor: pointer;
}
.group-h:hover { background: var(--hover); }
.group-h.selected { background: var(--sel); }
.group-h .caret { position: absolute; left: 10px; top: 6px; }
.group-h .gname { font-size: 12.5px; font-weight: 600; line-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-h .gcount { color: var(--faint); font-size: 12px; line-height: 17px; }
.group-h .gsub { grid-column: 1 / -1; color: var(--faint); font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-h.selected .gsub { color: var(--dim); }
.group-h .gsub.c-info { color: var(--info); }
.row {
position: relative;
display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px;
height: 44px; padding: 5px 10px 4px 42px;
cursor: pointer;
}
.row:hover { background: var(--hover); }
.row.selected { background: var(--sel); box-shadow: inset 2px 0 0 var(--blue); }
.row .caret { position: absolute; left: 9px; top: 7px; }
.row .dot { position: absolute; left: 26px; top: 10px; }
.row .name { line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .tag { align-self: center; }
.row .meta {
grid-column: 1 / -1; display: flex; gap: 6px; min-width: 0;
color: var(--faint); font-size: 11.5px; line-height: 15px; white-space: nowrap;
}
.row.selected .meta { color: var(--dim); }
.row .meta .st, .row .meta .ex { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row .meta .time { flex: none; }
.row.nested { height: 42px; padding: 5px 10px 2px 60px; }
.row.nested .dot { left: 44px; }
.row.nested .meta { font-size: 11px; }
.row.others {
display: block; height: 24px; padding: 2px 10px 0 56px;
color: var(--faint); font-size: 11.5px; line-height: 16px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot.hollow { border: 1px solid var(--faint); }
.c-ok { color: var(--ok); } .bg-ok { background: var(--ok); }
.c-err { color: var(--err); } .bg-err { background: var(--err); }
.c-warn { color: var(--warn); } .bg-warn { background: var(--warn); }
.c-skip { color: var(--skip); } .bg-skip { background: var(--skip); }
.c-info { color: var(--info); } .bg-info { background: var(--info); }
.tag {
flex: none; padding: 0 4px;
border: 1px solid var(--border); border-radius: 3px;
color: var(--dim); font-size: 11px; line-height: 13px; white-space: nowrap;
}
.tag.mono { font-size: 11px; }
.pill {
display: inline-block; flex: none; padding: 0.5px 7px;
border: 1px solid; border-radius: 999px;
font-size: 12px; line-height: 15px; white-space: nowrap;
}
.pill.ok { color: var(--ok); border-color: rgba(111, 207, 124, 0.45); background: var(--ok-soft); }
.pill.err { color: var(--err); border-color: rgba(224, 108, 108, 0.45); background: var(--err-soft); }
.pill.warn { color: var(--warn); border-color: rgba(232, 182, 76, 0.45); background: var(--warn-soft); }
.pill.info { color: var(--info); border-color: rgba(59, 130, 246, 0.45); background: var(--info-soft); }
.pill.skip { color: var(--skip); border-color: var(--border-strong); background: transparent; }
/* ---------- detail ---------- */
.detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dhead { padding: 10px 16px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.dhead.notabs { padding-bottom: 6px; }
.dtitle { display: flex; align-items: center; gap: 10px; min-height: 24px; user-select: none; }
.dtitle h2 { flex: 0 1 auto; min-width: 80px; margin: 0; font-size: 17px; font-weight: 600; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtitle .back { display: none; }
.dacts { display: flex; flex: none; gap: 4px; }
.dpath { margin-top: 4px; color: var(--faint); font-size: 12px; line-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 2px; margin: 8px 0 -1px; user-select: none; }
.tab {
height: 30px; min-height: 0; padding: 2px 11px 0;
background: transparent; border-color: transparent; border-bottom: none; border-radius: var(--r) var(--r) 0 0;
color: var(--dim);
}
.tab:hover:not(:disabled) { background: transparent; border-color: transparent; color: var(--text); }
.tab.on, .tab.on:hover:not(:disabled) { background: var(--panel); border-color: var(--border); color: var(--text); }
.tab .badge { margin-left: 4px; color: var(--faint); font-size: 11.5px; }
.dbody { flex: 1; min-height: 0; overflow: auto; background: var(--panel); container-type: inline-size; }
.dbody.flush { display: flex; flex-direction: column; overflow: hidden; }
.pad { padding: 18px 16px 24px; }
.pad > .note:first-child { margin-top: 0; }
.pick { flex: 1; display: grid; place-items: center; background: var(--panel); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@container (max-width: 791px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { min-width: 0; padding: 10px 12px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.card.wide { grid-column: 1 / -1; }
.card h3 { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0 0 8px; font: 700 14.5px/18px var(--title); }
.card h3 .aside { margin-left: auto; color: var(--faint); font: 400 12px/16px var(--ui); }
/* The key column is as wide as its widest key, between 130 and 260. A key
sits at the top of its row; a plain value is centred in a row 24 tall. */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; }
.kv > .k { min-width: 130px; max-width: 260px; padding-top: 1px; color: var(--dim); }
.kv > .k > .room { display: block; height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; user-select: none; }
.kv > .v { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; min-height: 24px; overflow-wrap: anywhere; }
.kv > .v > * { min-width: 0; max-width: 100%; }
.stack { display: grid; gap: 2px; justify-items: start; }
/* A line of monospace is as tall as its own text. */
.stack > div:has(> .mono:only-child) { line-height: 15px; }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.hash { display: flex; align-items: center; gap: 6px; }
.orow { display: flex; align-items: center; gap: 6px; }
.note { margin: 12px 0 0; color: var(--dim); font-size: 12px; line-height: 16px; }
.note:first-child, h3 + .note { margin-top: 0; }
.note + .msgs { margin-top: 12px; }
.msgs { display: grid; gap: 6px; }
.msg {
display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px;
padding: 6px 8px;
background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
overflow-wrap: anywhere;
}
.msg.err { border-color: rgba(224, 108, 108, 0.4); }
.msg.warn { border-color: rgba(232, 182, 76, 0.4); }
.msg > span { padding-top: 1px; font-size: 13px; font-weight: 600; text-align: center; }
/* A folded part: a header with a small triangle, and under it, indented
beside a line, what it holds. `--head` is the header's height and `--gap`
the space under it. */
details.fold { --head: 26px; --gap: 4px; position: relative; }
details.fold > summary {
position: relative; display: flex; align-items: center; width: fit-content; height: var(--head);
padding: 0 10px 0 18px; list-style: none; cursor: pointer;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before {
content: ""; position: absolute; left: 6px; top: calc(50% - 3px); width: 6px; height: 6px;
background: var(--text); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
details.fold[open] > summary::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
details.fold[open]::after {
content: ""; position: absolute; left: 9px; top: calc(var(--head) + var(--gap)); bottom: 2px;
width: 1px; background: var(--border);
}
details.fold > pre { margin: var(--gap) 0 0 18px; line-height: 15px; }
details.tech { --head: 24px; --gap: 6px; margin-top: 6px; }
details.tech > summary { color: var(--faint); font-size: 12px; }
details.tech > pre { color: var(--dim); white-space: pre-wrap; }
.route { padding: 10px 0; }
.route + .route { border-top: 1px solid var(--border); }
.route:first-of-type { padding-top: 6px; }
.route:last-of-type { padding-bottom: 2px; }
.rhead { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.route .msgs { margin-top: 8px; }
.star { color: var(--warn); font-size: 12px; }
.stages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stage { min-width: 142px; padding: 5px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); }
.stage.dimmed { opacity: 0.5; }
.sname { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 12.5px; font-weight: 600; }
.sicon { min-width: 12px; }
.sdur { color: var(--faint); font-size: 12px; font-weight: 400; }
.sstat { margin-top: 1px; font-size: 12px; line-height: 16px; }
.sdet { max-width: 360px; margin-top: 1px; color: var(--dim); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.arrow { color: var(--faint); }
.action { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; }
/* Tables: dim headers, no rules between rows, a capped height with its own
scroll. Columns have set widths and cut what does not fit; they are 8
apart, with a line in the gap except beside the column that grows. The
scrollbar's room is kept whether it shows or not, so columns do not move
when rows are added. */
.tbl-wrap { max-height: 550px; overflow: auto; scrollbar-gutter: stable; border: 1px solid var(--border); border-radius: var(--r); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
table.t th, table.t td { padding: 4px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.t th {
position: sticky; top: 0; z-index: 1; height: 26px; padding-bottom: 0; vertical-align: top;
background: var(--bg); color: var(--dim); font-size: 12px; font-weight: 400; text-align: left;
}
table.t td { height: 24px; vertical-align: middle; }
/* Rows are 4 apart, which each row shares with its neighbours; the last row
has no neighbour below. */
table.t tbody tr:last-child > td { height: 22px; padding-bottom: 2px; }
table.t tr > :first-child { padding-left: 0; }
table.t tr > :last-child { padding-right: 0; }
table.t tr > :not(:last-child) { border-right: 1px solid var(--border); }
table.t.grow-2 tr > :nth-child(2) { border-right: none; }
table.t tr[data-act] { cursor: pointer; }
table.t tr[data-act]:hover td { background: var(--hover-fill); }
table.t th.num, table.t td.num { text-align: right; }
table.t td.num, table.t td.mono, table.t td .mono { font-family: var(--mono), var(--ui); font-size: 12px; }
table.t td.c-dot { line-height: 0; }
table.t td > div { overflow: hidden; text-overflow: ellipsis; }
/* Rows of two lines. A cell that holds two starts them at the row's top. */
table.t.tall td { height: 40px; }
table.t.tall tbody tr:last-child > td { height: 38px; }
table.t td.two, table.t.tall tbody tr:last-child > td.two { padding-top: 2px; padding-bottom: 0; vertical-align: top; }
table.t td.two > div { line-height: 18px; }
table.t td.two > .mono { line-height: 14px; }
table.t td.two > .place { line-height: 16px; }
.place { color: var(--faint); font-size: 12px; }
.check { display: flex; align-items: center; gap: 4px; width: fit-content; min-height: 24px; margin-bottom: 12px; cursor: pointer; }
details.inv { margin-top: 16px; }
details.inv > summary { color: var(--dim); }
pre.well { max-height: 296px; padding: 8px 10px; overflow: auto; background: var(--well); border-radius: var(--r); }
/* ---------- log ---------- */
.logbar { display: flex; align-items: center; gap: 8px; padding: 13px 12px 12px; border-bottom: 1px solid var(--border); user-select: none; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; }
.seg button { height: 22px; min-height: 0; padding: 0 10px; background: transparent; border: none; border-radius: 0; }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button:hover:not(:disabled) { background: var(--hover); }
.seg button.on, .seg button.on:hover:not(:disabled) { background: var(--sel); }
.log { font-family: var(--mono), var(--ui); font-size: 12.5px; line-height: 16px; }
.dbody.flush > .log { flex: 1; min-height: 0; overflow: auto; padding: 11px 12px 6px; }
.logline { display: grid; grid-template-columns: 96px 56px minmax(0, 1fr); column-gap: 10px; }
.logline .ts { color: var(--faint); }
.logline .lv { font-family: var(--ui); font-size: 11.5px; }
.logline .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
.logline.detail { font-size: 12px; }
.logline.detail .tx { padding-left: 14px; color: var(--dim); }
/* ---------- empty state and drop ---------- */
.empty { flex: 1; display: grid; place-items: center; padding: 30px; overflow: auto; background: var(--bg); }
/* Dashes 6 long and 4 apart, with square corners. */
.drop, .dragover .box {
--dash: var(--border-strong);
--dash-w: 1.5px;
background:
repeating-linear-gradient(90deg, var(--dash) 0 6px, transparent 6px 10px) top / 100% var(--dash-w) no-repeat,
repeating-linear-gradient(90deg, var(--dash) 0 6px, transparent 6px 10px) bottom / 100% var(--dash-w) no-repeat,
repeating-linear-gradient(0deg, var(--dash) 0 6px, transparent 6px 10px) left / var(--dash-w) 100% no-repeat,
repeating-linear-gradient(0deg, var(--dash) 0 6px, transparent 6px 10px) right / var(--dash-w) 100% no-repeat,
var(--bg);
}
.drop { width: min(640px, 100%); min-height: 330px; padding: 30px; text-align: center; }
.drop img { display: block; width: 84px; height: 84px; margin: 0 auto; }
.drop h2 { margin: 12px 0 0; font: 700 21px/25px var(--title); }
.drop .kinds { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; min-height: 24px; margin-top: 14px; }
.drop .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.drop p { margin: 20px 0 0; }
.dragover { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(12, 14, 17, 0.78); pointer-events: none; }
.dragover .box { --dash: var(--accent); --dash-w: 2px; padding: 40px 70px; }
.dragover .box h2 { margin: 0; color: var(--accent); font: 700 22px/27px var(--title); }
/* ---------- status bar ---------- */
.statusbar {
display: flex; align-items: center; gap: 14px;
min-height: 33px; padding: 4px 12px;
background: var(--panel); border-top: 1px solid var(--border);
color: var(--dim); font-size: 12px; white-space: nowrap;
user-select: none;
}
.status-line { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; overflow: hidden; }
.status-line > :first-child { font-size: 13.5px; }
.status-line b { color: var(--text); font-size: 12.5px; font-weight: 600; }
.progress { flex: none; width: 220px; height: 8px; overflow: hidden; background: var(--well); border: 1px solid var(--border); border-radius: 4px; }
.progress > div { height: 100%; background: var(--accent); border-radius: 4px; }
.status-line .cur { flex: 0 1 auto; min-width: 0; max-width: 420px; color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.status-line .step, .status-line .notice { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cancel { flex: none; color: var(--err); font-size: 13.5px; }
/* ---------- menus ---------- */
.ctx {
position: fixed; z-index: 35;
display: grid; gap: 4px;
min-width: 200px; max-width: min(340px, calc(100vw - 16px)); padding: 4px;
background: var(--panel); border: 1px solid var(--border-strong); border-radius: 6px;
box-shadow: 6px 10px 8px rgba(0, 0, 0, 0.38);
user-select: none;
}
.ctx-item {
display: flex; align-items: flex-start; gap: 6px;
width: 100%; min-height: 24px; padding: 2px 1px;
background: transparent; border-color: transparent;
text-align: left; white-space: normal;
}
.ctx-item:hover:not(:disabled) { background: var(--hover-fill); border-color: transparent; }
.ctx-item .radio { flex: none; width: 12px; color: var(--accent); text-align: center; }
.ctx-item .sub { display: block; color: var(--faint); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.ctx-item .kbd { margin-left: auto; padding-left: 16px; color: var(--faint); }
.ctx-sep { height: 1px; margin: 1px 0; background: var(--border); }
.ctx-note { margin: 0; padding: 0 2px 2px; color: var(--faint); font-size: 12px; line-height: 16px; }
/* ---------- dialogs ---------- */
dialog.modal {
width: min(620px, calc(100vw - 40px)); max-height: calc(100dvh - 40px);
padding: 0; color: var(--text);
background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px;
}
dialog#settings { width: min(760px, calc(100vw - 40px)); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop { background: rgba(8, 9, 11, 0.72); }
dialog.modal, dialog.modal::backdrop { transition: opacity 200ms ease; }
@media (prefers-reduced-motion: reduce) {
/* Keep the opacity-only fade, but make the transition shorter. */
dialog.modal, dialog.modal::backdrop { transition-duration: 100ms; }
}
dialog.modal:is(.opening, [inert]), dialog.modal:is(.opening, [inert])::backdrop { opacity: 0; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.modal-h img { width: 24px; height: 24px; }
.modal-h h2 { margin: 0; font: 700 17px/22px var(--title); }
.modal-b { padding: 14px 16px; overflow: auto; }
.modal-b p { margin: 0 0 10px; color: var(--dim); }
.modal-b p:last-child { margin-bottom: 0; }
.modal-b p strong { color: var(--text); font-weight: 600; }
.modal-f { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); }
.set-body { display: flex; flex: 1; min-height: 380px; overflow: hidden; }
.set-nav { display: flex; flex: none; flex-direction: column; gap: 2px; width: 160px; padding: 8px 6px; border-right: 1px solid var(--border); }
.nav { height: 26px; min-height: 0; padding: 0 9px; background: transparent; border-color: transparent; color: var(--dim); text-align: left; }
.nav:hover:not(:disabled) { background: var(--hover); border-color: transparent; }
.nav.on, .nav.on:hover:not(:disabled) { background: var(--sel); color: var(--text); }
.set-pane { display: grid; flex: 1; align-content: start; gap: 12px; min-width: 0; padding: 12px 16px; overflow: auto; }
.set-pane > p { margin: 0; }
.field { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.field > label, .field > .flabel { display: flex; align-items: center; min-height: 24px; }
.field .control { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.field .help { margin: 4px 0 0; color: var(--faint); font-size: 12px; line-height: 16px; }
.field input[type="number"] { width: 90px; }
#set-output { width: 260px; max-width: 100%; }
.about { display: flex; align-items: center; gap: 14px; }
.about img { width: 72px; height: 72px; }
.about .word { font: 700 22px/27px var(--title); }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-thumb { background: #353a44; border: 2px solid transparent; border-radius: 7px; background-clip: padding-box; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
/* ---------- narrow windows: one pane at a time ---------- */
@media (max-width: 760px) {
.main, .main.blank { grid-template-columns: minmax(0, 1fr); }
.main .detail { display: none; }
.main.blank .detail { display: flex; }
.main.show-detail .inputs { display: none; }
.main.show-detail .detail { display: flex; }
.inputs { border-right: none; }
.dtitle { flex-wrap: wrap; }
.dtitle .back { display: inline-block; min-width: 32px; }
.brand .ver, .topbar .sep, .out-chip > span:first-child { display: none; }
.out-chip { max-width: 190px; }
.topbar button, .dtitle button { min-height: 32px; }
.pad { padding: 12px 10px 20px; }
.dhead { padding: 8px 10px 0; }
.kv > .k { min-width: 96px; max-width: 40vw; }
.action { grid-template-columns: minmax(0, 1fr); }
.progress { width: 90px; }
.status-line .step { display: none; }
.logline { grid-template-columns: 84px 40px minmax(0, 1fr); column-gap: 6px; }
.dbody.flush > .log { padding: 8px; }
.drop { padding: 22px 14px; }
.row { height: 48px; padding-top: 7px; }
.row .dot { top: 12px; }
.row .caret { top: 9px; }
.row.nested { height: 46px; }
.set-body { flex-direction: column; min-height: 0; overflow: auto; }
.set-nav { flex-direction: row; width: auto; border-right: none; border-bottom: 1px solid var(--border); overflow: auto; }
.set-pane { overflow: visible; }
.field { grid-template-columns: minmax(0, 1fr); }
}