:root {
  --canvas: #f5f5f7; --surface: #fff; --ink: #1d1d1f; --muted: #69696e;
  --line: #e2e2e6; --accent: #0071e3; --green: #237746; --danger: #be352e;
  color: var(--ink); background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px; font-synthesis: none;
}
* { box-sizing: border-box; letter-spacing: 0; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
button, input, textarea { font: inherit; border-radius: 6px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.button { min-height: 30px; padding: 5px 11px; border: 1px solid transparent; font-size: 12px; line-height: 18px; white-space: nowrap; }
.button.primary { color: #fff; background: var(--accent); font-weight: 600; }
.button.primary:hover:not(:disabled) { background: #0062c4; }
.button.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button.secondary:hover:not(:disabled) { background: #ededf0; }
.button.quiet { color: var(--muted); background: transparent; }
.button.quiet:hover { color: var(--ink); background: #f0f0f2; }
.button.danger { color: #fff; background: var(--danger); }
.button[aria-busy=true] { opacity: .8; }
.busy-spinner { display: inline-flex; width: 14px; height: 14px; flex: 0 0 14px; animation: busy-spin 900ms linear infinite; }
.busy-spinner svg { display: block; width: 100%; height: 100%; }
[data-action=claim], .session-actions [data-action=start] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 124px; min-height: 32px; max-width: 100%; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-spinner { animation: none; } }
.wide { width: 100%; }
.button-icon { margin-right: 4px; font-size: 15px; }
.eyebrow, .task-label { color: var(--muted); font-size: 11px; line-height: 1.5; }
.brand-glyph { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 6px; font-size: 14px; font-weight: 600; }
.muted-copy { color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-error { min-height: 20px; margin: 0 0 4px; color: var(--danger); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field > span { color: var(--muted); font-size: 12px; }
.field input, .field textarea { min-width: 0; width: 100%; padding: 8px 10px; color: var(--ink); background: var(--surface); border: 1px solid #d2d2d7; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #0071e320; }

/* Shared navigation and task lists. */
.app-shell { display: flex; min-height: 100vh; }
.rail { position: sticky; top: 0; width: 168px; height: 100vh; flex: 0 0 168px; display: flex; flex-direction: column; padding: 14px 8px 12px; background: #ededf0; border-right: 1px solid var(--line); }
.rail-nav { display: grid; gap: 3px; }
.rail-link { min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: var(--muted); text-align: left; border: 0; background: transparent; font-size: 12px; }
.rail-link:hover { background: #e3e3e7; }
.rail-link.active { color: var(--ink); background: #dcdce1; }
.rail-icon { flex: 0 0 16px; width: 16px; height: 16px; text-align: center; color: var(--muted); }
.rail-icon-tasks::before { content: "▦"; font-size: 16px; }
.rail-icon-history::before { content: "✓"; font-size: 14px; }
.rail-link.active .rail-icon { color: var(--accent); }
.rail-bottom { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 8px; margin-top: auto; padding: 8px 2px 0; border-top: 1px solid #d7d7dc; }
.connection { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.connection i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.connection-offline i { background: #b45309; }
.rail-user { display: flex; align-items: center; gap: 7px; padding: 0; color: var(--ink); background: transparent; border: 0; font-size: 12px; }
.update-entry { display: flex; align-items: center; gap: 6px; }
.update-entry svg { width: 14px; height: 14px; }
.client-update-dialog { position: fixed; inset: 0; width: 384px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); margin: auto; padding: 28px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 56px #0003; text-align: center; }
.client-update-dialog::backdrop { background: #16161d66; }
.client-update-dialog .update-close { position: absolute; top: 8px; right: 8px; }
.client-update-dialog .update-symbol { display: inline-flex; width: 28px; height: 28px; margin: 0 0 14px; color: var(--accent); }
.client-update-dialog .update-symbol svg { width: 100%; height: 100%; }
.client-update-dialog[data-tone=error] .update-symbol { color: var(--danger); }
.client-update-dialog[data-tone=success] .update-symbol { color: var(--green); }
.client-update-dialog h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.client-update-dialog p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.client-update-dialog .update-version { margin-top: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.client-update-dialog .update-install-notice { font-size: 11px; }
.client-update-dialog .update-action-error { color: var(--danger); }
.update-modal-actions { display: grid; gap: 8px; margin-top: 22px; }
.update-modal-actions .button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 36px; white-space: normal; }
.update-modal-actions svg { width: 14px; height: 14px; }
.update-progress { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.update-progress progress { flex: 1; min-width: 0; height: 6px; border: 0; border-radius: 3px; overflow: hidden; appearance: none; }
.update-progress progress::-webkit-progress-bar { background: var(--line); }
.update-progress progress::-webkit-progress-value { background: var(--accent); }
.update-progress span { width: 38px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.rail-user > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; color: #fff; background: #73737a; border-radius: 50%; font-size: 11px; }
.rail-account { display: flex; align-items: center; gap: 6px; padding: 6px 2px 0; border-top: 1px solid #d7d7dc; }
.rail-user { min-width: 0; flex: 1; }
.utility-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.utility-icon:hover, .utility-icon[aria-expanded=true] { background: #dedee3; color: var(--ink); }
.utility-icon svg { width: 17px; height: 17px; }
.plugin-status { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 5px 6px; border: 0; background: transparent; color: var(--danger); text-align: left; }
.plugin-status:hover { background: #e3e3e7; }
.plugin-status > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.plugin-status > span:nth-child(2) > span { color: var(--muted); font-size: 11px; }
.plugin-status strong { font-size: 12px; font-weight: 600; }
.plugin-status svg { display: block; width: 16px; height: 16px; }
.plugin-status-mark { flex: 0 0 16px; width: 16px; height: 16px; }
.plugin-status > svg { margin-left: auto; color: var(--muted); flex: 0 0 14px; width: 14px; }
.plugin-status[data-tone=ready] { color: var(--green); }
.plugin-status[data-tone=pending] { color: var(--accent); }
.rail-bottom .connection { padding: 0 6px; line-height: 1.5; }
.rail-bottom .connection i { flex: 0 0 6px; }
.account-menu { position: fixed; inset: auto; margin: 0; width: 200px; max-width: calc(100% - 16px); max-height: calc(100% - 16px); overflow: auto; padding: 5px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: 0 6px 24px #0002; }
.account-menu:popover-open { display: grid; gap: 2px; }
.account-menu button { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 9px; border: 0; background: transparent; color: var(--ink); font-size: 12px; text-align: left; }
.account-menu button:hover { background: var(--canvas); }
.account-menu svg { width: 15px; height: 15px; color: var(--muted); }
.workspace { flex: 1; min-width: 0; max-width: 1120px; padding: 0 18px 24px; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.workspace-head h1 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.workspace-head .eyebrow, .workspace-head p { display: none; }
.head-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.back-link { display: block; padding: 0; margin: 0 0 3px; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.project-grid, .subproject-grid, .task-grid, .history-list { display: grid; gap: 0; }
.project-card { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 10px 0; color: var(--ink); text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.project-card:hover, .subproject-card:hover { background: #ededf0; }
.project-mark { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: var(--accent); background: #e0ebf8; border-radius: 6px; font-size: 14px; font-weight: 600; }
.project-card-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.project-card-copy strong { font-size: 14px; }
.project-card-copy small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.project-count { width: 100%; color: var(--muted); font-size: 11px; }
.project-arrow { margin-left: auto; padding: 0 8px; color: var(--muted); font-size: 20px; }
.subproject-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.subproject-card h2 { min-width: 0; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.pool-resume { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pool-resume > div { display: grid; gap: 4px; }
.pool-resume strong { font-size: 12px; }
.pool-resume span { color: var(--muted); font-size: 11px; }
.task-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task-card h3 { margin: 4px 0; font-size: 14px; font-weight: 600; }
.task-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.task-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.task-foot strong { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 30px 12px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state strong { color: var(--ink); font-size: 14px; }
.empty-action { margin-top: 8px; }
.history-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history-card h2 { margin: 4px 0 0; font-size: 13px; font-weight: 600; }
.history-review { margin: 6px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.history-value { display: grid; gap: 4px; min-width: 55px; }
.history-value b { font-size: 16px; font-variant-numeric: tabular-nums; }
.history-value span { color: var(--muted); font-size: 11px; }
.status-chip { display: none; }

/* Readiness is a resident status strip, separate from task ownership and timing. */
.readiness-strip { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.readiness-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.readiness-copy { display: grid; gap: 3px; min-width: 0; line-height: 1.5; }
.readiness-copy strong { font-size: 12px; font-weight: 600; }
.readiness-copy > span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.readiness-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.readiness-strip svg { width: 14px; height: 14px; flex: 0 0 14px; stroke-width: 1.7; }
.readiness-actions .button { display: inline-flex; align-items: center; gap: 5px; }
.readiness-feedback { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; color: var(--muted); background: transparent; }
.readiness-feedback:hover { background: #e8e8ec; }
.readiness-bottom { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px 12px; margin-top: 9px; }
.readiness-steps { display: flex; flex-wrap: wrap; gap: 6px 15px; margin: 0; padding: 0; list-style: none; }
.readiness-step { display: flex; align-items: center; gap: 4px; min-height: 18px; color: var(--muted); font-size: 11px; }
.readiness-step.done { color: var(--green); }
.readiness-strip.is-ready .readiness-copy strong { color: var(--green); }
.readiness-details { min-width: 0; max-width: 100%; color: var(--muted); font-size: 11px; line-height: 18px; }
.readiness-details summary, .start-issue summary { cursor: pointer; }
.readiness-details > div { display: grid; gap: 3px; padding-top: 6px; overflow-wrap: anywhere; }
.readiness-details code, .start-issue code { white-space: normal; overflow-wrap: anywhere; }
.readiness-strip.is-ready .readiness-copy > span { display: none; }

/* A quiet resident status; details stay in one keyboard-accessible panel. */
.rail { overflow-y: auto; }
.rail-brand, .rail-nav, .rail-bottom { flex-shrink: 0; }
.capture-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 60px #0003; font-size: 13px; }
.capture-dialog[open] { display: flex; flex-direction: column; animation: capture-enter 140ms ease-out; }
.capture-dialog::backdrop { background: #0005; }
.capture-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 10px; flex: 0 0 auto; }
.capture-dialog h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.capture-dialog svg { width: 14px; height: 14px; display: block; }
.capture-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted); flex: 0 0 30px; }
.capture-close:hover { background: var(--canvas); }
.capture-dialog-body { padding: 0 20px 16px; overflow: auto; min-height: 0; overflow-wrap: anywhere; }
.capture-completed-step { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.capture-completed-step[hidden] { display: none; }
.capture-completed-step svg { color: var(--green); flex: 0 0 14px; }
.capture-current { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; line-height: 1.6; }
.capture-current > div { min-width: 0; }
.capture-status-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 28px; margin-top: 2px; color: var(--accent); }
.capture-status-icon svg { width: 22px; height: 22px; }
.capture-current strong { display: block; font-size: 16px; font-weight: 600; }
.capture-prompt { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.capture-prompt:empty { display: none; }
.capture-current p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.capture-current p:empty { display: none; }
.capture-dialog[data-tone=error] .capture-status-icon { color: var(--danger); }
.capture-dialog[data-tone=ready] .capture-status-icon { color: var(--green); }
.capture-retry { margin-left: 36px; }
.capture-retry button { display: inline-flex; align-items: center; gap: 5px; }
.capture-notice { color: #875315; font-size: 12px; margin: 12px 0 0; }
.capture-dialog footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.capture-dialog footer > div { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.capture-dialog .button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; white-space: normal; }
.capture-primary { min-width: 96px; min-height: 32px; }
@media (max-height: 600px) {
  .capture-dialog header { padding: 6px 12px; }
  .capture-close { width: 24px; height: 24px; flex-basis: 24px; }
  .capture-dialog-body { padding: 0 16px 8px; }
  .capture-completed-step { padding: 2px 0 6px; }
  .capture-current { padding: 8px 0; }
  .capture-dialog footer { padding: 8px 12px; }
}
.capture-dialog summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes capture-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .capture-dialog[open] { animation: none; } }
.claim-progress { width: min(380px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 28px 24px 22px; overflow: auto; text-align: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 60px #0003; }
.claim-progress::backdrop { background: #0005; }
.claim-progress-icon { display: block; width: 32px; height: 32px; margin: 0 auto 18px; color: var(--accent); }
.claim-progress-icon svg { width: 32px; height: 32px; }
.claim-progress h2 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 600; }
.claim-progress p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.claim-progress button { margin-top: 18px; }
.start-issue, .claim-issue { padding: 10px 0; margin-bottom: 12px; border-bottom: 1px solid #eadbc0; color: #875315; font-size: 12px; line-height: 1.5; }
.start-issue p, .claim-issue p { margin: 5px 0; }
.claim-issue > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.claim-issue code { overflow-wrap: anywhere; }
.start-issue .button { margin-top: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .readiness-main { align-items: start; flex-wrap: wrap; }
  .readiness-steps { gap: 6px 10px; }
}

/* Task preview and shared operating instructions. */
.task-target { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.task-target span { color: var(--muted); font-size: 12px; }
.task-target strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sop-list { margin: 0; padding: 0; list-style: none; }
.sop-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #ededf0; }
.sop-list li:last-child { border-bottom: 0; }
.sop-list li > span { color: var(--muted); font-size: 12px; line-height: 1.75; font-variant-numeric: tabular-nums; }
.sop-list p { margin: 0; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.sop-markdown { font-size: 13px; line-height: 1.75; }
.sop-markdown p { margin: 6px 0; }
.sop-markdown h2, .sop-markdown h3, .sop-markdown h4 { margin: 12px 0 6px; font-size: 14px; }
.sop-markdown .sop-bullet { padding-left: 8px; }
.sop-markdown .sop-gap { height: 4px; }

/* Execution is an unframed workspace; task changes do not move its window. */
.session-page { --line: #e6e8ed; --ink: #24262a; --muted: #686c74; --accent: #0867d8; --green: #238052; width: 100%; height: 100dvh; min-height: 400px; display: flex; flex-direction: column; background: var(--surface); }
.session-page svg { width: 16px; height: 16px; flex: 0 0 16px; stroke-width: 1.65; vertical-align: middle; }
.session-page:is([data-phase="completed"], [data-phase="interrupted"])[data-review-collapsed="true"] :is(.session-instructions, .session-business) { display: none; }
.session-result { display: flex; flex-shrink: 0; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #d9e9df; background: #f0f8f3; color: var(--green); }
.session-result > svg { width: 24px; height: 24px; flex-basis: 24px; }
.session-result strong { font-size: 15px; font-weight: 600; }
.session-result[data-review-state] { flex-wrap: wrap; }
.session-result[data-review-state=PENDING] { background: #f4f7fc; border-color: #dfe6f0; color: #365c8d; }
.session-result[data-review-state=REJECTED] { background: #fff5f4; border-color: #efdddd; color: #97413a; }
.session-result .result-review { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.session-page[data-phase=interrupted] .result-count { white-space: normal; overflow-wrap: anywhere; }
.session-completion:empty { display: none; }
.session-review { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.review-toggle { display: none; flex-shrink: 0; align-items: center; justify-content: space-between; min-height: 36px; padding: 8px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font-size: 12px; }
.review-toggle > svg { transform: rotate(90deg); }
.review-toggle[aria-expanded="true"] > svg { transform: rotate(-90deg); }
.session-page:is([data-phase="completed"], [data-phase="interrupted"]) .review-toggle { display: flex; }
.session-page:is([data-phase="completed"], [data-phase="interrupted"])[data-review-collapsed="true"] .sop-toggle { visibility: hidden; }
.result-count { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.session-page[data-phase="completed"] .session-actions { flex-wrap: wrap; }
.session-page[data-phase="completed"] .finish-area { flex-wrap: wrap; gap: 8px; }
.session-head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 8px 18px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.session-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.session-title > svg { color: var(--accent); width: 20px; height: 20px; flex-basis: 20px; }
.session-title h1 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.session-head .session-title { flex: 1; }
.session-page .session-back { padding: 0; width: 28px; flex: 0 0 28px; }
.session-back svg { transform: rotate(180deg); }
.session-page .start-issue { margin: 0; padding: 6px 0; border: 0; background: transparent; font-size: 12px; line-height: 1.6; }
.session-page .start-issue p { margin: 4px 0; }
.session-page .start-issue code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.start-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.session-page[data-phase="assigned"] .session-status:not(.warn), .pending-notice { color: var(--muted); font-size: 12px; }
.session-title > span { color: var(--muted); font-size: 12px; }
.session-title > .ready { color: var(--green); }
.session-title > .paused { color: #925514; }
.session-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; flex-shrink: 0; align-items: center; gap: 12px 4px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.session-actions > .session-time { grid-column: 1; grid-row: 1; }
.session-actions > [data-action="return"] { grid-column: 3; grid-row: 1; font-size: 12px; padding-inline: 6px; }
.session-page .button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 32px; border-radius: 5px; }
.session-page .button.primary:disabled { background: #e6eaf0; color: #737b88; opacity: 1; }
.finish-area { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; min-width: 0; }
.session-time { display: flex; align-items: center; min-width: 0; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.session-cutoff { display: none; }
.deadline-notice, .clock-notice { flex-shrink: 0; padding: 12px 18px; border-bottom: 1px solid #eadbc0; color: #875315; background: #fff9ed; font-size: 12px; line-height: 1.5; }
.deadline-notice p, .clock-notice p { margin: 4px 0 8px; }
.session-clock { display: inline-block; min-width: 54px; color: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.session-progress { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 3px 10px; color: var(--muted); font-size: 12px; }
.progress-number { color: var(--accent); font-size: 22px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.accounting-status { grid-column: 1 / -1; font-size: 11px; }
.session-status { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--green); font-size: 12px; line-height: 1.5; }
.session-status.warn { color: #875315; }
.session-status i { font-style: normal; }
.session-status > span { overflow-wrap: anywhere; }
.message-dock { flex-shrink: 0; border-top: 1px solid var(--line); background: #fbfcfd; min-width: 0; }
.message-summary { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 18px; cursor: pointer; list-style: none; }
.message-summary::-webkit-details-marker { display: none; }
.message-summary > strong { flex-shrink: 0; font-size: 12px; font-weight: 500; }
.message-summary > svg { margin-left: auto; transform: rotate(90deg); }
.message-dock[open] .message-summary > svg { transform: rotate(-90deg); }
.message-dock.has-error { background: #fff9ef; border-color: #eadbc0; }
.message-summary > .session-status { display: none; }
.message-dock.has-error > .message-summary { color: #875315; cursor: default; }
.message-dock.has-error > .message-summary > svg { display: none; }
.message-content { max-height: min(240px, 40dvh); overflow-y: auto; padding: 0 18px 10px; scrollbar-gutter: stable; }
.issue-panel { margin: 0 0 10px; padding: 8px 0; border-bottom: 1px solid #eadbc0; font-size: 12px; line-height: 1.6; }
.issue-heading > strong { color: #952b25; font-size: 13px; }
.issue-heading p { margin: 4px 0; }
.issue-advice { color: #5e3936; }
.diagnostic-meta { margin: 8px 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 11px; color: #663f3c; }
.issue-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.diagnostic-checks summary { cursor: pointer; color: #663f3c; }
.diagnostic-checks ul { padding-left: 18px; margin: 6px 0; }
.diagnostic-checks li { margin: 6px 0; overflow-wrap: anywhere; }
.diagnostic-checks li > * { display: block; }
.diagnostic-checks code, .runtime-issue code, .completion-issue code { font-size: 11px; overflow-wrap: anywhere; white-space: pre-wrap; }
.runtime-issue, .completion-issue { padding: 8px 0; margin-bottom: 8px; font-size: 12px; line-height: 1.6; }
.runtime-issue p, .completion-issue p { margin: 4px 0; }
.session-page .runtime-issue > button, .session-page .completion-issue > button { display: flex; margin-top: 8px; }
.session-main { display: grid; flex: 1; grid-template-columns: minmax(340px, 54%) minmax(0, 1fr); min-width: 0; min-height: 0; }
.session-guidance, .session-work { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.session-guidance { border-right: 1px solid var(--line); }
.session-page[data-sop-collapsed="true"] .session-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.session-page[data-sop-collapsed="true"] .session-work { grid-column: 1; grid-row: 1; }
.session-page[data-sop-collapsed="true"] .session-guidance { grid-column: 1; grid-row: 2; border-right: 0; }
.sop-toggle { width: 32px; height: 32px; padding: 0; flex: 0 0 32px; }
.sop-toggle[aria-expanded="true"] { color: var(--accent); background: #edf3fc; }
.session-instructions { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); }
.session-instructions .pane-heading > svg { color: var(--accent); }
.session-instructions .pane-heading > h2 { font-size: 14px; }
.pane-heading { display: flex; flex-shrink: 0; align-items: center; gap: 7px; min-height: 46px; padding: 10px 18px; }
.pane-heading > svg { color: #777e8a; }
.pane-heading > h2 { margin: 0; min-width: 0; max-height: 62px; overflow-y: auto; font-size: 13px; font-weight: 600; line-height: 1.6; }
.pane-heading > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.sop-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 12px; scrollbar-gutter: stable; }
.sop-fields { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sop-fields > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
.sop-fields > div + div { margin-top: 8px; }
.sop-fields dt { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.9; }
.sop-fields dd { display: flex; align-items: flex-start; gap: 4px; margin: 0; font-size: 13px; line-height: 1.65; }
.sop-fields dd > span { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; }
.sop-step-content { min-width: 0; }
.sop-step-content > p { margin: 0; }
.sop-step-fields { margin: 5px 0 0; padding-bottom: 0; border-bottom: 0; }
.session-page .sop-copy { flex: 0 0 28px; width: 28px; min-height: 28px; padding: 4px; color: var(--muted); }
.session-preparation { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); background: #f3f7fc; }
.preparation-copy { flex: 1; min-width: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.preparation-copy strong { font-size: 13px; font-weight: 500; }
.preparation-copy p { margin: 2px 0 0; color: var(--muted); }
.preparation-actions { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.session-page details > .button { margin-top: 8px; }
.session-instructions .sop-list { margin: 0; }
.session-instructions .sop-list li { gap: 8px; margin-bottom: 0; padding: 6px 0; }
.session-instructions .sop-list li > span { color: var(--muted); font-size: 12px; line-height: 1.8; }
.session-instructions .sop-list p, .session-instructions .sop-markdown { font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.session-instructions .sop-markdown { white-space: normal; }
.next-action { flex-shrink: 0; position: relative; padding: 12px 36px 14px 18px; border-top: 1px solid #e0e6ef; background: #edf3fc; }
.next-action > span { font-size: 12px; color: #596c85; }
.next-action > svg { position: absolute; right: 14px; bottom: 16px; color: #4877b3; }
.task-next { margin: 4px 0 0; color: #255797; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; max-height: 100px; overflow-y: auto; }
.session-business { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; background: #f8f9fb; }
.task-display { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.task-evidence { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.task-evidence > summary { cursor: pointer; }
.task-item-detail { margin: 0; padding: 6px 22px; font-size: 12px; color: var(--muted); line-height: 1.6; white-space: pre-wrap; }
.task-overview { flex-shrink: 1; min-height: 0; max-height: 45%; overflow-y: auto; padding: 0 18px; }
.task-display-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.task-display-description { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.task-metrics { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; }
.task-metrics > div { display: flex; align-items: baseline; gap: 8px; max-width: 100%; }
.task-metrics dt { color: var(--muted); font-size: 12px; }
.task-metrics dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.task-metrics dd small { margin-left: 4px; font-size: 12px; color: var(--muted); font-weight: 400; }
.task-progress { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; color: var(--muted); font-size: 12px; }
.task-progress progress { flex: 1; min-width: 40px; height: 6px; border: 0; border-radius: 3px; background: #e2e4e9; accent-color: var(--green); }
.task-progress progress::-webkit-progress-bar { background: #e2e4e9; border-radius: 3px; }
.task-progress progress::-webkit-progress-value { background: var(--green); border-radius: 3px; }
.task-items { display: flex; flex: 1; flex-direction: column; min-height: 80px; }
.task-list-heading { display: flex; justify-content: space-between; gap: 12px; padding: 5px 22px 7px 34px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.task-item-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; overflow-anchor: none; padding: 0 10px 8px; }
.task-item, :is(.task-group, .task-item-details) > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 5px 8px 5px 22px; border-bottom: 1px solid #eff0f3; font-size: 13px; }
:is(.task-group, .task-item-details) > summary { padding-left: 6px; list-style: none; cursor: pointer; }
:is(.task-group, .task-item-details) > summary::-webkit-details-marker { display: none; }
:is(.task-group, .task-item-details) > summary > svg { width: 10px; height: 10px; flex-basis: 10px; color: #737b86; }
:is(.task-group, .task-item-details)[open] > summary > svg { transform: rotate(90deg); }
:is(.task-group, .task-item-details) > summary:hover { background: #f5f7fa; }
[data-task-status="active"] > summary, .task-item[data-task-status="active"] { background: #edf4fd; box-shadow: inset 2px 0 var(--accent); }
.task-item-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
:is(.task-group, .task-item-details) > summary .task-item-name { flex: 1; }
.task-item-name small { display: inline; margin-left: 10px; color: var(--muted); font-size: 12px; }
.task-item-state { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.task-item-state svg { width: 12px; height: 12px; flex-basis: 12px; }
.task-item-state.done { color: var(--green); }
.task-item-state.active { color: #245eae; }
.task-group ul { margin: 0; padding-left: 18px; list-style: none; background: #f0f2f580; }
.task-group ul .task-item { padding-right: 8px; }
.task-filter { display: flex; gap: 2px; margin-left: auto; padding: 2px; background: #edeff3; border-radius: 5px; flex-shrink: 0; }
.task-filter button { min-height: 25px; padding: 3px 8px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 12px; }
.task-filter button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 3px #14213b16; }
.task-filter-empty, .task-empty { margin: 0; padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.task-feedback { margin: 10px 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.task-feedback.warning { margin-top: 0; color: #875315; }
.session-diagnostics { padding: 9px 0; border-top: 1px solid var(--line); }
.session-diagnostics > summary { cursor: pointer; font-size: 12px; font-weight: 500; line-height: 1.6; }
.session-diagnostics > summary > span { float: right; color: var(--muted); font-size: 11px; }
.session-diagnostics[open] > summary { margin-bottom: 8px; }
.capture-detail { color: var(--muted); font-size: 11px; line-height: 1.6; }
.session-page summary:focus-visible { outline: 2px solid #4285c5; outline-offset: 2px; }
.section-title { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.6; }
.receipt-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 5px; }
.receipt-heading > span { color: var(--muted); font-size: 11px; }
.receipt-total { font-weight: 400; font-variant-numeric: tabular-nums; }
.receipt-list { max-height: 260px; min-height: 60px; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; overflow-anchor: none; }
.receipt { padding: 9px 6px 9px 0; border-bottom: 1px solid var(--line); }
.receipt-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 11px; }
.receipt-meta strong { color: var(--muted); font-weight: 600; }
.receipt.valid .receipt-meta strong { color: var(--green); }
.receipt.progress .receipt-meta strong { color: #245eae; }
.receipt.invalid .receipt-meta strong { color: #9b5d15; }
.receipt time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt p { margin: 0; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.receipt-list .muted-copy { margin: 10px 0; }
.session-page button, .session-page summary > svg { transition: opacity 120ms, transform 120ms; }
.session-page button:active:not(:disabled) { opacity: .8; }
.session-page :is(.sop-scroll, .task-item-list, .task-overview, .message-content) { scrollbar-width: thin; scrollbar-color: #cbd0d8 transparent; }
@media (prefers-reduced-motion: reduce) { .session-page *, .session-page *::before, .session-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.return-dialog { width: min(390px, calc(100% - 28px)); max-height: calc(100vh - 28px); overflow: auto; padding: 20px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 60px #0003; }
.return-dialog::backdrop { background: #0005; }
.return-dialog h2 { margin: 0 0 8px; font-size: 17px; }
.return-dialog > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.return-dialog textarea { min-height: 84px; max-height: 220px; resize: vertical; line-height: 1.6; }
.return-reasons { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; font-size: 13px; }
.return-reasons legend { margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.return-reasons > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.return-reasons label { display: flex; align-items: center; gap: 7px; min-height: 30px; cursor: pointer; }
.return-reasons input { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; accent-color: var(--accent); }
.return-reasons label:has(input:checked) { color: var(--accent); }
.return-reasons label:has(input:disabled) { opacity: .6; cursor: default; }
.return-dialog form > div:last-child { display: flex; justify-content: flex-end; gap: 7px; }
.interrupt-dialog .interrupt-count { color: var(--ink); font-weight: 600; }
.interrupt-dialog .field small { color: var(--muted); font-size: 11px; }
.interrupt-dialog .interrupt-zero { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.interrupt-dialog .interrupt-zero p { margin: 0 0 6px; }
.interrupt-dialog textarea[readonly] { background: var(--canvas); color: var(--muted); }
.session-actions > .interrupt-entry { grid-column: 1 / -1; grid-row: 3; justify-self: end; padding: 0 6px; font-size: 12px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 25px #00000008; }
.login-compact-head { display: flex; align-items: center; gap: 9px; padding: 20px 22px 0; }
.login-compact-head > div { display: grid; gap: 3px; }
.login-compact-head strong { font-size: 14px; }
.login-compact-head small { color: var(--muted); font-size: 11px; }
.login-panel { padding: 20px 22px; }
.login-panel h2 { margin: 0 0 8px; font-size: 18px; }
.login-lead { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.client-download { width: min(340px, 100%); text-align: center; }
.client-download > .brand-glyph { margin-inline: auto; width: 48px; height: 48px; font-size: 24px; }
.client-download h1 { margin: 16px 0 10px; font-size: 24px; }
.client-download p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.client-download .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 6px; text-decoration: none; }
.client-download .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.client-download .button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.client-download small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; }
.client-download .download-note { margin: 8px 0 0; font-size: 12px; }
.login-panel .button + .button { margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 18px; z-index: 20; max-width: min(430px, calc(100% - 28px)); padding: 9px 13px; color: #fff; background: #28282eee; border-radius: 6px; box-shadow: 0 5px 20px #0002; transform: translateX(-50%); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.toast > span, .form-error { white-space: pre-line; }
.toast-error { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 10px; width: min(430px, calc(100% - 28px)); max-height: calc(100dvh - 36px); overflow-y: auto; user-select: text; }
.toast-close { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; font-size: 20px; }
.toast-close:hover { background: #ffffff20; }
.toast-close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

@media (max-width: 680px) {
  .workspace { padding: 0 12px 20px; }
  .workspace-head { flex-wrap: wrap; gap: 8px; }
  .workspace-head h1 { font-size: 17px; }
  .task-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .task-card > .button { justify-self: start; }
  .pool-resume { flex-wrap: wrap; }
  .history-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .history-card > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .session-page .pane-heading, .sop-scroll, .task-overview { padding-inline: 12px; }
  .session-page .task-item-name small { display: block; margin-left: 0; }
}
@media (max-width: 600px) {
  .session-page { height: 100dvh; }
  .session-preparation { flex-wrap: wrap; gap: 6px; padding: 8px 14px; }
  .preparation-copy { flex-basis: 100%; }
  .session-head { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .session-title { flex-wrap: wrap; gap: 7px; }
  .session-main { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(240px, 1fr); overflow-y: auto; }
  .session-work { display: contents; }
  .session-actions { grid-column: 1; grid-row: 1; position: sticky; top: 0; z-index: 2; }
  .session-guidance { grid-column: 1; grid-row: 2; border-right: 0; max-height: 50dvh; overflow-y: auto; }
  .session-business { grid-column: 1; grid-row: 3; }
  .session-page[data-sop-collapsed="true"] .session-main { grid-template-rows: auto auto minmax(240px, 1fr); }
  .session-instructions { flex-shrink: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .session-page .pane-heading { padding-inline: 16px; flex-wrap: wrap; }
  .sop-scroll { flex: initial; max-height: 180px; padding-inline: 16px; }
  .session-business { flex-shrink: 0; min-height: 240px; }
  .task-display { height: auto; }
  .task-overview { max-height: 260px; padding-inline: 16px; }
  .task-item-list { flex: initial; max-height: 360px; }
  .session-actions { padding: 8px 10px; gap: 8px; }
  .finish-area { gap: 8px; }
  .session-progress { font-size: 12px; gap: 4px; }
  .message-summary { padding-inline: 14px; }
  .message-content { padding-inline: 14px; }
}
:root .support-entry { font-size: 12px; flex-shrink: 0; }
.support-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; max-width: 100%; }
.session-actions > .support-tools { grid-column: 2; grid-row: 1; }
.session-actions .support-entry { padding-inline: 6px; }
.support-progress { display: flex; align-items: center; gap: 6px; max-width: 210px; min-height: 32px; padding: 3px 7px; border: 0; color: var(--accent); background: transparent; text-align: left; }
.support-progress:hover { background: #e7eef7; }
.support-progress > svg { width: 14px; height: 14px; flex: 0 0 14px; }
.support-progress > span { display: grid; gap: 1px; min-width: 0; }
.support-progress strong { font-size: 11px; line-height: 16px; font-weight: 500; overflow-wrap: anywhere; }
.support-progress small { color: var(--muted); font-size: 10px; line-height: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.support-progress[data-tone=success] { color: var(--green); }
.support-progress[data-tone=info] { color: var(--muted); }
.support-progress[data-tone=error] { color: var(--danger); }
.support-progress[data-compact=true] { width: 32px; height: 32px; padding: 0; justify-content: center; }
.support-progress[data-compact=true] > span { display: none; }
.support-status-menu { position: fixed; inset: auto; width: 280px; max-width: calc(100% - 16px); max-height: min(260px, calc(100% - 16px)); overflow: auto; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 6px 24px #0002; }
.support-status-menu button { display: grid; gap: 3px; width: 100%; padding: 8px; color: var(--ink); text-align: left; border: 0; background: transparent; overflow-wrap: anywhere; }
.support-status-menu button:hover { background: var(--canvas); }
.support-status-menu strong { font-size: 12px; font-weight: 500; }
.support-status-menu small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.login-panel .support-tools { justify-content: center; }
.session-actions > .support-tools:has(.support-progress) { grid-column: 1 / -1; grid-row: 4; justify-self: stretch; }
.session-actions > .finish-area { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 480px) {
  .session-actions > .finish-area { justify-content: space-between; }
  .session-progress { white-space: nowrap; }
}
.login-panel .support-entry { width: 100%; }
