/* Keep these presentation tokens in sync with frontend/src/theme.css. */
:root,
:root[data-theme="a"] {
  color-scheme: light;
  --color-bg: #f3f5f9;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-text: #1e293b;
  --color-muted: #617188;
  --color-border: #e3e8f0;
  --color-border-strong: #c9d3e0;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-soft: #ebf1fe;
  --color-on-primary: #ffffff;
  --color-success: #15803d;
  --color-success-soft: #ecfdf3;
  --color-warning: #b45309;
  --color-warning-soft: #fdf3e2;
  --color-danger: #c82626;
  --color-danger-soft: #fdecec;
  --color-focus: #2563eb;
  --color-overlay: #0f172a66;
  --shadow-panel: 0 2px 8px #1e293b06;
  --shadow-floating: 0 12px 42px #1e293b24, 0 2px 6px #1e293b0a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
:root[data-theme="d"] {
  color-scheme: light;
  --color-bg: #f6f5f2;
  --color-surface: #ffffff;
  --color-surface-subtle: #faf9f6;
  --color-text: #2b2926;
  --color-muted: #766f63;
  --color-border: #e6e2da;
  --color-border-strong: #cfc9bd;
  --color-primary: #c2410c;
  --color-primary-hover: #9a3412;
  --color-primary-soft: #faece3;
  --color-on-primary: #ffffff;
  --color-success: #15803d;
  --color-success-soft: #ecfdf3;
  --color-warning: #996007;
  --color-warning-soft: #fdf3e2;
  --color-danger: #9f1239;
  --color-danger-soft: #f9e8ec;
  --color-focus: #c2410c;
  --color-overlay: #29251e66;
  --shadow-panel: 0 2px 8px #2b292606;
  --shadow-floating: 0 12px 42px #2b292624, 0 2px 6px #2b29260a;
}
:root[data-theme="e"] {
  color-scheme: dark;
  --color-bg: #12161d;
  --color-surface: #1b212b;
  --color-surface-subtle: #161c24;
  --color-text: #e7ecf3;
  --color-muted: #9aa6b6;
  --color-border: #2a323e;
  --color-border-strong: #485564;
  --color-primary: #d9a441;
  --color-primary-hover: #e6b45f;
  --color-primary-soft: #2c2517;
  --color-on-primary: #221704;
  --color-success: #7bc98f;
  --color-success-soft: #1c2a20;
  --color-warning: #e6b45f;
  --color-warning-soft: #2e2413;
  --color-danger: #ef7a72;
  --color-danger-soft: #2e1d1d;
  --color-focus: #e6b45f;
  --color-overlay: #06090ec7;
  --shadow-panel: 0 2px 8px #00000020;
  --shadow-floating: 0 12px 42px #00000066, 0 2px 6px #00000033;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--color-text); background: var(--color-bg); }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 7px;
  color: var(--color-text);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  transition: background-color .12s ease, border-color .12s ease;
}
button:hover:not(:disabled) { background: var(--color-surface-subtle); border-color: var(--color-muted); }
button.primary { color: var(--color-on-primary); background: var(--color-primary); border-color: var(--color-primary); }
button.primary:hover:not(:disabled) { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
button:disabled { opacity: .46; cursor: not-allowed; }
a { color: var(--color-primary); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--color-primary-hover); }
:where(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
input, select, textarea {
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: 7px;
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: .85; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--color-primary); vertical-align: middle; }
input[type="file"] { padding: 7px; }
input[type="file"]::file-selector-button { font: inherit; border: 0; border-radius: 5px; padding: 6px 10px; margin-right: 12px; color: var(--color-primary); background: var(--color-primary-soft); cursor: pointer; }
textarea { width: 100%; resize: vertical; }
label { display: grid; gap: 6px; min-width: 0; margin: 16px 0; font-size: 13px; font-weight: 500; }
label:has(input:disabled), label:has(select:disabled) { color: var(--color-muted); }
h1, h2, h3 { color: var(--color-text); overflow-wrap: anywhere; }
h1 { margin: 4px 0 7px; font-size: 25px; line-height: 1.35; font-weight: 650; letter-spacing: -.025em; }
h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
p { margin: 10px 0; }
small { font-size: 12px; }
.muted, small { color: var(--color-muted); }
.eyebrow { margin: 0 0 7px; color: var(--color-muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.row, .identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.check { display: flex; align-items: center; gap: 7px; font-weight: 400; }
.danger { color: var(--color-danger); }
[hidden] { display: none !important; }

/* Platform chrome uses the same compact hierarchy as the Reviewer header. */
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 68px; padding: 12px 28px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: var(--color-on-primary); background: var(--color-primary); font-size: 18px; font-weight: 600; }
.brand-copy { display: grid; gap: 1px; }
.brand-subtitle { color: var(--color-muted); font-size: 10px; font-weight: 400; letter-spacing: .065em; }
.identity { gap: 12px; font-size: 12px; }
#mode { padding: 3px 8px; border: 1px solid var(--color-border); border-radius: 5px; color: var(--color-muted); background: var(--color-surface-subtle); font-size: 11px; }
#identity { font-weight: 500; }
#logout { color: var(--color-muted); border-color: transparent; background: transparent; }
.appearance-settings { position: relative; display: flex; align-items: center; gap: 5px; }
.appearance-settings > summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 5px 9px; border: 1px solid var(--color-border); border-radius: 7px; color: var(--color-muted); font-size: 12px; list-style: none; }
.appearance-settings > summary::-webkit-details-marker { display: none; }
.appearance-settings > summary:hover, .appearance-settings[open] > summary { color: var(--color-primary); background: var(--color-primary-soft); }
.appearance-icon { width: 32px; min-height: 32px; padding: 5px; color: var(--color-muted); border-color: var(--color-border); display: inline-grid; place-items: center; }
.appearance-icon svg { width: 16px; height: 16px; }
.appearance-icon[aria-pressed="true"] { color: var(--color-primary); background: var(--color-primary-soft); border-color: var(--color-primary); }
.appearance-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 15; width: 235px; max-width: calc(100vw - 28px); padding: 15px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); box-shadow: var(--shadow-floating); }
.appearance-popover fieldset { margin: 0; padding: 0; border: 0; }
.appearance-popover legend { margin-bottom: 7px; color: var(--color-muted); font-size: 11px; }
.appearance-popover label { display: flex; align-items: center; gap: 8px; margin: 3px 0; padding: 8px; border-radius: 6px; font-weight: 400; }
.appearance-popover label:has(input:checked) { color: var(--color-primary); background: var(--color-primary-soft); }
.appearance-popover p { margin: 10px 0 0; font-size: 11px; }
.appearance-popover .appearance-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.appearance-choice > span:last-child { flex: 1; }
.appearance-choice small { display: block; margin-top: 1px; font-size: 10px; }
.appearance-swatch { width: 23px; height: 23px; flex: 0 0 auto; border: 1px solid var(--color-border); border-radius: 6px; }
.swatch-a { background: linear-gradient(135deg, #f3f5f9 50%, #2563eb 50%); }
.swatch-d { background: linear-gradient(135deg, #f6f5f2 50%, #c2410c 50%); }
main { width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px 32px 48px; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title > div:first-child { min-width: 0; flex: 1 1 280px; }
.page-title h1 { max-width: 850px; }
.page-description { color: var(--color-muted); font-size: 13px; margin: 7px 0 0; }
.assignment-controls { align-items: flex-end; gap: 10px; }
.assignment-controls label { min-width: 190px; max-width: 350px; margin: 0; color: var(--color-muted); font-size: 11px; }
.assignment-controls select { min-height: 35px; font-size: 13px; }

/* Start at the assignment overview; entering a work area is an explicit choice. */
#assignment-home { max-width: 1120px; margin: 4px auto 0; }
.assignment-home-heading { align-items: center; margin-bottom: 26px; }
.assignment-home-heading > button { flex: 0 0 auto; min-height: 38px; padding: 8px 15px; }
.assignment-home-heading > button > span { margin-right: 3px; font-size: 16px; line-height: 1; }
.assignment-resume { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 17px 20px; border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary); border-radius: 9px; background: var(--color-surface); }
.assignment-resume > div { min-width: 0; }
.assignment-resume .eyebrow { margin: 0 0 4px; letter-spacing: .04em; }
#assignment-resume-label { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.assignment-resume > button { flex: 0 0 auto; color: var(--color-primary); border-color: var(--color-border); background: var(--color-primary-soft); }
.assignment-resume > button > span { margin-left: 7px; }
.assignment-home-toolbar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin: 0 0 16px; }
.assignment-home-toolbar label { margin: 0; color: var(--color-muted); font-size: 12px; font-weight: 400; }
.assignment-home-search { width: min(340px, 100%); }
.assignment-home-search input { width: 100%; min-height: 38px; }
.assignment-home-toolbar .check { min-height: 38px; }
.assignment-home-list { display: grid; gap: 0; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); box-shadow: var(--shadow-panel); }
.assignment-home-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; padding: 20px 22px; border-bottom: 1px solid var(--color-border); }
.assignment-home-row:last-child { border-bottom: 0; }
.assignment-home-row:first-child { border-radius: 10px 10px 0 0; }
.assignment-home-row:last-child { border-radius: 0 0 10px 10px; }
.assignment-home-row:only-child { border-radius: 10px; }
.assignment-home-row:focus-within { background: var(--color-surface-subtle); }
.assignment-home-copy { min-width: 0; flex: 1; }
.assignment-home-copy h3 { margin: 0; color: var(--color-text); font-size: 15px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.assignment-home-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 7px 0 0; color: var(--color-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.assignment-home-meta .status { font-size: 11px; }
.assignment-home-meta strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.assignment-home-meta .is-pending { color: var(--color-primary); }
.assignment-home-meta .is-warning { color: var(--color-warning); }
.assignment-home-meta .is-error { color: var(--color-danger); }
.assignment-home-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; }
.assignment-home-actions > button[data-assignment-action="open"] { min-width: 65px; color: var(--color-primary); border-color: var(--color-border); background: var(--color-surface); }
.assignment-home-actions > button[data-assignment-action="open"]:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.assignment-home-more { position: relative; }
.assignment-home-more > summary { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; color: var(--color-muted); font-size: 12px; list-style: none; }
.assignment-home-more > summary::-webkit-details-marker { display: none; }
.assignment-home-more > summary::after { content: "⌄"; font-size: 12px; }
.assignment-home-more > summary:hover, .assignment-home-more[open] > summary { color: var(--color-primary); background: var(--color-primary-soft); }
.assignment-home-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 8; display: grid; gap: 3px; width: 166px; padding: 6px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); box-shadow: var(--shadow-floating); }
.assignment-home-menu button { display: block; width: 100%; padding: 8px 10px; border-color: transparent; text-align: left; font-size: 12px; }
.assignment-home-menu button:hover:not(:disabled) { border-color: transparent; }
.assignment-home-more > button { display: block; width: 100%; margin-top: 5px; }
.assignment-home-more button[data-assignment-action="delete"] { color: var(--color-danger); }
.assignment-home-list > .empty { border: 0; padding: 64px 24px; }
.assignment-home-list > .empty h2 { margin: 0 0 8px; font-size: 16px; }
.assignment-home-list > .empty p { max-width: 40ch; margin: 8px auto 0; font-size: 13px; line-height: 1.8; }
.assignment-home-list > .empty button { margin-top: 17px; }
.assignment-breadcrumb { display: flex; align-items: center; gap: 10px; margin: -3px 0 20px; color: var(--color-muted); font-size: 12px; }
.assignment-breadcrumb button { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 5px; margin-left: -5px; border-color: transparent; background: transparent; color: var(--color-muted); font-size: 12px; }
.assignment-breadcrumb button:hover { border-color: transparent; color: var(--color-primary); background: var(--color-primary-soft); }

.tabs { display: flex; align-items: center; gap: 22px; min-height: 42px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.tabs button { position: relative; min-height: 42px; padding: 9px 2px; border: 0; border-radius: 0; color: var(--color-muted); background: transparent; font-size: 13px; }
.tabs button:hover:not(:disabled) { color: var(--color-primary); background: transparent; }
.tabs .selected { color: var(--color-primary); font-weight: 600; }
.tabs .selected::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--color-primary); content: ""; }

/* A readable overview leads to a filtered, focused set of submissions. */
.workflow-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.workflow-step { position: relative; min-width: 0; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: 9px; text-align: left; background: var(--color-surface); box-shadow: var(--shadow-panel); }
.workflow-step:hover:not(:disabled) { border-color: var(--color-border-strong); background: var(--color-surface-subtle); }
.workflow-step[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary-soft); }
.step-label { display: block; color: var(--color-muted); font-size: 12px; font-weight: 400; }
.step-count { display: block; margin: 5px 0 2px; color: var(--color-text); font-size: 25px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.step-note { display: block; margin-top: 5px; color: var(--color-muted); font-size: 11px; line-height: 1.5; font-weight: 400; }
.workflow-step[aria-pressed="true"] :is(.step-label, .step-count) { color: var(--color-primary); }
.assignment-guide { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 14px 17px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); color: var(--color-muted); font-size: 13px; }
.assignment-guide > :first-child { flex: 1 1 280px; }
.assignment-guide p { margin: 0; }
.assignment-guide strong { color: var(--color-text); }
.submission-surface { border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); box-shadow: var(--shadow-panel); }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 17px 18px 8px; }
.toolbar .row { gap: 10px; }
.toolbar label { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--color-muted); font-size: 12px; font-weight: 400; }
.toolbar select { max-width: 180px; padding: 6px 8px; font-size: 12px; }
.toolbar .search-field { position: relative; white-space: nowrap; }
.search-field input { width: 205px; max-width: 100%; min-height: 34px; padding: 6px 10px; font-size: 12px; }
.list-summary { padding: 0 18px; margin: 8px 0 14px; color: var(--color-muted); font-size: 12px; }
.batch { position: sticky; top: 10px; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 4px 12px 12px; padding: 10px 12px; border: 1px solid var(--color-border-strong); border-radius: 8px; background: var(--color-surface-subtle); box-shadow: var(--shadow-panel); }
.batch > span { margin-right: 3px; color: var(--color-primary); font-size: 12px; font-weight: 600; }
.batch button { font-size: 12px; }
#clear-selection { margin-right: auto; padding: 4px 6px; color: var(--color-muted); border-color: transparent; background: transparent; }
.batch details { position: relative; }
.batch details > summary { padding: 7px 5px; font-size: 12px; }
.batch-more-actions { position: absolute; top: calc(100% + 6px); right: 0; z-index: 7; display: grid; gap: 5px; width: 190px; padding: 7px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); box-shadow: var(--shadow-floating); }
.batch-more-actions > button { width: 100%; padding: 9px 12px; text-align: left; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); }
.submission-surface .table-wrap { border: 0; border-top: 1px solid var(--color-border); border-radius: 0 0 9px 9px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { background: var(--color-surface-subtle); color: var(--color-muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
th, td { padding: 14px 13px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th:first-child, td:first-child { width: 42px; padding-left: 18px; padding-right: 8px; }
th:last-child, td:last-child { padding-right: 18px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:has(.select-sub:checked) { background: var(--color-primary-soft); }
td strong { font-size: 13px; font-weight: 600; }
td small { display: block; max-width: 210px; margin-top: 5px; font-size: 11px; overflow-wrap: anywhere; }
td small:empty { display: none; }
td > a { display: inline-block; margin-top: 6px; font-size: 11px; }
.row-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; min-width: 158px; }
.row-actions button { min-height: 30px; padding: 4px 8px; font-size: 12px; }
.row-actions > button:first-child { color: var(--color-primary); border-color: var(--color-border); background: var(--color-primary-soft); }
.row-actions > a { align-self: center; font-size: 12px; }
.row-more { min-width: 0; }
.row-more > summary { min-height: 30px; padding: 5px 7px; color: var(--color-muted); font-size: 12px; border: 1px solid transparent; border-radius: 6px; list-style: none; }
.row-more > summary::-webkit-details-marker { display: none; }
.row-more > summary::after { content: "⌄"; margin-left: 5px; }
.row-more[open] { flex-basis: 100%; }
.row-more[open] > summary { width: fit-content; color: var(--color-primary); background: var(--color-primary-soft); }
.more-actions { display: grid; gap: 5px; padding: 7px 0 0; }
.more-actions > :is(button, a) { display: block; width: 100%; margin: 0; padding: 6px 8px; text-align: left; font-size: 12px; }
.more-actions > button { border-color: var(--color-border); }
.execution-details { margin-top: 8px; font-size: 11px; }
.execution-details > summary { color: var(--color-muted); }
.execution-details[open] { min-width: 145px; }
.status { display: inline-block; max-width: 100%; padding: 3px 7px; border-radius: 5px; color: var(--color-muted); background: var(--color-surface-subtle); font-size: 11px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.status.good { color: var(--color-success); background: var(--color-success-soft); }
.status.warn { color: var(--color-warning); background: var(--color-warning-soft); }
.status.bad { color: var(--color-danger); background: var(--color-danger-soft); }
.empty { margin: 0; padding: 48px 20px; border: 1px dashed var(--color-border-strong); border-radius: 9px; text-align: center; color: var(--color-muted); background: var(--color-surface); }
.submission-surface .empty { border: 0; border-top: 1px solid var(--color-border); border-radius: 0 0 9px 9px; }
#host-health { margin: 12px 0; padding: 12px 15px; border: 1px solid var(--color-danger); border-radius: 8px; color: var(--color-danger); background: var(--color-danger-soft); overflow-wrap: anywhere; }
#transcription-summary { margin: 12px 0; color: var(--color-muted); font-size: 12px; line-height: 1.7; }
.submission-surface #transcription-summary { margin-left: 18px; margin-right: 18px; }
.archive-notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 8px; color: var(--color-warning); background: var(--color-warning-soft); font-size: 13px; }
.archive-notice button { margin-left: 12px; }
.operations { margin-top: 16px; padding: 14px 18px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); }
.operations > summary { color: var(--color-muted); font-size: 12px; font-weight: 500; }
.operations[open] > summary { margin-bottom: 12px; color: var(--color-text); }
.operation { padding: 13px 0; border-top: 1px solid var(--color-border); overflow-wrap: anywhere; font-size: 12px; }
.operation:last-child { padding-bottom: 2px; }
.operation p { margin: 5px 0; }
.operation small { display: block; margin-top: 5px; }

/* Settings keep saved configuration and confirmation as distinct actions. */
.setting-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.setting-layout > form, .setting-layout > section { min-width: 0; }
.material-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 10px}
.material-entry-actions button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;white-space:normal;padding:14px;min-height:84px}
.material-entry-actions strong{font-weight:600}.material-entry-actions small{font-size:11px;line-height:1.6;opacity:.8}
.material-entry-actions button.primary small{color:var(--color-on-primary);opacity:.9}
.material-selection-note{padding:12px 14px;margin:14px 0;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-subtle);font-size:12px;line-height:1.7}
.material-selection-note p{margin:5px 0}.material-selection-note.is-error{border-color:var(--color-warning);border-left-width:3px}
.material-mismatch{padding:10px 12px;border-left:3px solid var(--color-warning);background:var(--color-surface-subtle);font-size:12px;line-height:1.7}
.material-compatibility{margin:16px 0;padding:12px 14px;border:1px solid var(--color-border);border-radius:8px}
.material-compatibility summary{font-size:12px;color:var(--color-muted)}.material-compatibility>p{font-size:12px}
.material-reference{padding:8px 0;border-bottom:1px solid var(--color-border)}.material-reference:last-child{border:0}.material-reference .check{flex-wrap:wrap;gap:6px}.material-reference small{color:var(--color-muted);font-size:11px;overflow-wrap:anywhere}.material-reference details>summary{font-size:11px;color:var(--color-muted)}
@media(max-width:480px){.material-entry-actions{grid-template-columns:1fr}.material-entry-actions button{min-height:70px}}
.settings-card, .setting-layout > form, .setting-layout > section { padding: 22px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); box-shadow: var(--shadow-panel); }
.settings-card > p.muted { font-size: 12px; }
.section-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.section-heading h2 { margin: 1px 0 3px; }
.section-heading p { margin: 0; color: var(--color-muted); font-size: 12px; }
.section-number { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; margin-top: 1px; border-radius: 7px; color: var(--color-primary); background: var(--color-primary-soft); font-size: 12px; font-weight: 600; }
.setting-layout label { margin: 16px 0; }
.setting-layout select, .assignment-create select { min-width: 0; width: 100%; }
#settings-status, #material-status, #settings-draft-status, #basis-draft-status { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#settings-draft-status:not(:empty), #basis-draft-status:not(:empty) { padding: 9px 12px; border-radius: 7px; color: var(--color-warning); background: var(--color-warning-soft); }
#settings-status { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 7px; background: var(--color-surface-subtle); }
#direct-hint { padding: 10px 12px; border-left: 2px solid var(--color-primary); background: var(--color-primary-soft); font-size: 12px; }
#basis-note { margin-top: 17px; font-size: 12px; }
#basis-actions { padding-top: 15px; border-top: 1px solid var(--color-border); }
.question-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.question-row label { margin: 0; }
#add-question { margin: 5px 0; }
#material-references:not(:empty), #material-partition:not(:empty) { padding: 1px 14px 12px; margin-top: 12px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface-subtle); }
#material-references p, #material-partition p { font-size: 12px; }
#material-references select[multiple] { min-height: 90px; }
.basis-question { padding: 17px 0; border-bottom: 1px solid var(--color-border); }
.basis-question h3 { margin: 0; }
.basis-rule { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 10px; }

/* Student and embedded workbench navigation. The scan is never restyled. */
.student-heading { margin: 4px 0 25px; }
.student-heading p { color: var(--color-muted); font-size: 13px; }
.student-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: start; gap: 18px; }
.student-card { padding: 22px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); box-shadow: var(--shadow-panel); }
.student-card + .student-card { margin-top: 16px; }
.student-grid .student-card + .student-card { margin-top: 0; }
.student-card h2 { margin: 0 0 14px; font-size: 17px; }
.student-card p { font-size: 13px; }
.student-card > .row { gap: 10px 16px; margin-top: 18px; }
.student-card a { font-size: 12px; }
.student-card a:first-child { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 11px; border-radius: 7px; color: var(--color-primary); background: var(--color-primary-soft); text-decoration: none; }
.workbench-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 55px; padding: 9px 20px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.workbench-bar strong { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.workbench-bar a { padding: 5px; font-size: 12px; }
#reviewer-frame { display: block; width: 100%; height: calc(100vh - 123px); height: calc(100dvh - 123px); min-height: 540px; border: 0; background: var(--color-bg); }

/* Dialogs share consistent form spacing and visible confirmation controls. */
dialog { width: min(780px, calc(100vw - 36px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--color-border); border-radius: 12px; color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-floating); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: var(--color-overlay); }
dialog > p { font-size: 13px; }
dialog > p.muted { font-size: 12px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--color-border); }
.dialog-head h2 { margin: 0; font-size: 17px; }
.dialog-head button { flex: 0 0 auto; color: var(--color-muted); border-color: transparent; }
#identity-dialog { width: min(510px, calc(100vw - 36px)); }
#identity-dialog select, .upload-file input:not([type="checkbox"]), .upload-file select, #pdf-files { min-width: 0; width: 100%; }
#upload-dialog label { min-width: 0; }
.upload-dropzone { display: grid; gap: 8px; padding: 22px; border: 1px dashed var(--color-border-strong); border-radius: 9px; background: var(--color-surface-subtle); }
.upload-dropzone:hover, .upload-dropzone.dragover, .upload-dropzone[data-dragover="true"] { border-color: var(--color-primary); background: var(--color-primary-soft); }
.upload-dropzone small { font-weight: 400; }
.upload-file { padding: 17px 0; border-bottom: 1px solid var(--color-border); overflow-wrap: anywhere; }
.upload-file:last-child { border-bottom: 0; }
.upload-file > strong { font-size: 13px; }
.upload-file > small { margin-left: 6px; }
.upload-file label { margin: 12px 0; }
#upload-submit, #preview-confirm { position: sticky; bottom: 0; display: block; margin-top: 20px; margin-left: auto; box-shadow: 0 0 0 8px var(--color-surface); }
.preview-summary { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface-subtle); font-size: 13px; }
.preview-item { padding: 15px 0; border-bottom: 1px solid var(--color-border); overflow-wrap: anywhere; font-size: 13px; }
.preview-item > p { margin: 6px 0; }
.preview-item > small { display: block; margin-top: 5px; }
.preview-item.blocked { color: var(--color-warning); }
.preview-risk { margin-top: 10px; padding: 10px 13px; border-radius: 7px; color: var(--color-warning); background: var(--color-warning-soft); }
.preview-risk .check { align-items: flex-start; }
.preview-risk input { margin-top: 3px; }
.replacement-notice p { margin: 6px 0; line-height: 1.6; }
#preview-status { padding: 10px 13px; border-left: 3px solid var(--color-warning); background: var(--color-warning-soft); overflow-wrap: anywhere; }
#assignments-dialog { width: min(510px, calc(100vw - 36px)); }
.assignment-create { padding: 0; }
.assignment-create h3 { margin-top: 0; }
.assignment-create p { font-size: 12px; }
.assignment-create > button { display: block; margin: 22px 0 0 auto; }
.assignment-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--color-border); }
.assignment-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.assignment-row small { display: block; margin-top: 4px; }
.assignment-row .row { flex-shrink: 0; }
.assignment-row:last-child { border-bottom: 0; }
.usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.usage-grid > div { padding: 13px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface-subtle); }
.usage-grid strong, .usage-grid small { display: block; overflow-wrap: anywhere; }
.usage-grid strong { margin-top: 6px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-grid small { font-size: 11px; }
.usage-times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; color: var(--color-muted); font-size: 12px; }
.usage-times dd { margin: 0; color: var(--color-text); }
#usage-detail > section { padding: 15px 0; border-top: 1px solid var(--color-border); font-size: 12px; overflow-wrap: anywhere; }
#usage-detail details, #usage-summary details { margin: 12px 0; font-size: 12px; }
#toast { position: fixed; top: 14px; left: 50%; z-index: 30; display: none; max-width: min(680px, calc(100vw - 32px)); transform: translateX(-50%); padding: 11px 17px; border: 1px solid var(--color-border-strong); border-radius: 9px; color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-floating); font-size: 13px; overflow-wrap: anywhere; }

.login { width: calc(100% - 36px); max-width: 420px; margin: clamp(36px, 12vh, 130px) auto 40px; padding: 32px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-panel); }
.login .brand { margin-bottom: 30px; }
.login h1 { margin-bottom: 10px; font-size: 23px; }
.login > p { color: var(--color-muted); font-size: 13px; }
.login input, .login select { width: 100%; }
.login label { margin: 18px 0; }
.login button { width: 100%; min-height: 39px; margin-top: 4px; }
.login > p:last-child { margin-top: 20px; font-size: 11px; line-height: 1.8; }

@media (max-width: 1100px) {
  main { padding: 24px; }
  .top { padding: 12px 24px; }
  .workflow-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow-step { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 15px; }
  .step-count { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 24px; }
  .step-note { margin: 0; }
  .toolbar > .row { flex: 1 1 100%; }
  .toolbar > .row:last-child { justify-content: flex-start; }
  .setting-layout { gap: 16px; }
  .settings-card, .setting-layout > form, .setting-layout > section { padding: 18px; }
}
@media (max-width: 760px) {
  main { padding: 22px 14px 36px; }
  .top { min-height: 62px; padding: 12px 14px; gap: 12px; }
  .top .identity { gap: 7px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-subtitle { font-size: 9px; }
  #mode { font-size: 10px; }
  h1 { font-size: 22px; }
  .page-title { gap: 17px; margin-bottom: 20px; }
  .page-title > div:first-child { flex-basis: 100%; }
  .assignment-controls { width: 100%; }
  .assignment-controls label { max-width: none; flex: 1; min-width: 150px; }
  .assignment-controls select { width: 100%; }
  #assignment-home { margin-top: 0; }
  .assignment-home-heading { gap: 14px; margin-bottom: 20px; }
  .assignment-home-heading > div:first-child { flex: 1 1 175px; }
  .assignment-home-heading h1 { font-size: 24px; }
  .assignment-home-heading > button { padding: 7px 11px; }
  .assignment-resume { gap: 12px; margin-bottom: 20px; padding: 14px; }
  .assignment-resume > button { padding: 6px 9px; font-size: 12px; }
  .assignment-home-toolbar { gap: 12px; align-items: center; margin-bottom: 14px; }
  .assignment-home-search { flex: 1 1 190px; }
  .assignment-home-toolbar .check { align-self: flex-end; }
  .assignment-home-list { gap: 10px; border: 0; background: transparent; box-shadow: none; }
  .assignment-home-row, .assignment-home-row:first-child, .assignment-home-row:last-child { flex-wrap: wrap; gap: 15px; padding: 17px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); box-shadow: var(--shadow-panel); }
  .assignment-home-copy { flex: 1 1 100%; }
  .assignment-home-actions { width: 100%; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--color-border); }
  .assignment-home-more { order: -1; margin-right: auto; }
  .assignment-home-more > summary { min-height: 38px; }
  .assignment-home-menu { right: auto; left: 0; }
  .assignment-home-menu button { min-height: 40px; }
  .assignment-home-list > .empty { border: 1px solid var(--color-border); padding: 42px 20px; }
  .assignment-breadcrumb { margin: -4px 0 17px; }
  .tabs { margin-bottom: 17px; }
  .workflow-overview { gap: 8px; margin-bottom: 15px; }
  .workflow-step { display: block; padding: 12px; }
  .step-label { font-size: 11px; }
  .step-count { margin: 5px 0; font-size: 22px; }
  .step-note { font-size: 10px; }
  .assignment-guide { align-items: flex-start; padding: 13px; font-size: 12px; }
  .assignment-guide > :first-child { flex-basis: 100%; }
  .toolbar { padding: 14px 13px 6px; gap: 13px; }
  .toolbar .row { gap: 10px; }
  .toolbar .search-field { flex: 1 1 100%; }
  .search-field input { width: 100%; }
  .toolbar label { font-size: 12px; }
  input, select, textarea, .toolbar select, .search-field input { font-size: 16px; }
  button { min-height: 38px; }
  .appearance-icon, .appearance-settings > summary { min-height: 34px; }
  .list-summary { margin-bottom: 10px; padding: 0 13px; }
  .batch { top: 6px; margin: 8px; padding: 9px; gap: 6px; }
  .batch > span { min-height: 30px; display: inline-flex; align-items: center; }
  .batch #clear-selection { flex-grow: 1; text-align: right; }
  .batch button { padding: 5px 8px; font-size: 12px; }
  .batch details > summary { min-height: 38px; }
  .batch details[open] { flex-basis: 100%; }
  .batch-more-actions { position: static; width: 100%; margin-top: 4px; box-shadow: none; }
  .table-wrap, .submission-surface .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  table, thead, tbody, tr, td, th { display: block; width: auto; }
  thead { margin-bottom: 4px; }
  thead th { display: none; }
  thead th:first-child { display: flex; align-items: center; gap: 9px; width: auto; padding: 10px 14px; border: 0; background: transparent; }
  thead th:first-child::after { content: "选中当前列表"; font-size: 12px; }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 0 8px 10px; padding: 15px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); }
  td, td:first-child, td:last-child { min-width: 0; width: auto; padding: 0; border: 0; }
  td:first-child { grid-column: 2; grid-row: 1; justify-self: end; }
  td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; padding-right: 26px; pointer-events: none; }
  td:nth-child(2) a, td:nth-child(2) button { pointer-events: auto; }
  td:nth-child(3)::before { content: "识别复核"; }
  td:nth-child(4)::before { content: "批改 / 审核"; }
  td:nth-child(5)::before { content: "导出"; }
  td:nth-child(6)::before { content: "学生可见版"; }
  td:nth-child(n+3)::before { display: block; margin-bottom: 6px; color: var(--color-muted); font-size: 11px; }
  td:last-child { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--color-border); }
  td small { max-width: none; }
  .row-actions { min-width: 0; gap: 8px; }
  .row-actions button, .row-more > summary { min-height: 36px; padding: 7px 10px; }
  .more-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .more-actions > :is(button, a) { padding: 8px 10px; }
  .setting-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .settings-card, .setting-layout > form, .setting-layout > section { padding: 18px 15px; }
  .question-row { grid-template-columns: 65px minmax(0, 1fr); }
  .basis-rule { grid-template-columns: 82px minmax(0, 1fr); }
  .operations { padding: 13px 15px; }
  .archive-notice button { display: block; margin: 10px 0 0; }
  .student-card { padding: 20px; }
  .student-grid { grid-template-columns: minmax(0, 1fr); }
  .workbench-bar { padding: 10px 12px; gap: 8px; }
  .workbench-bar strong { order: -1; flex-basis: 100%; font-size: 12px; }
  .workbench-bar .row { margin-left: auto; gap: 6px; }
  #reviewer-frame { height: calc(100vh - 190px); height: calc(100dvh - 190px); }
  dialog { width: calc(100vw - 24px); padding: 18px; border-radius: 10px; }
  .dialog-head { gap: 10px; margin-bottom: 15px; }
  .dialog-head h2 { font-size: 16px; }
  .upload-dropzone { padding: 15px; }
  .assignment-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .assignment-row .row { gap: 7px; }
  .usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-grid > div { padding: 11px; }
  .usage-grid strong { font-size: 16px; }
  #toast { top: auto; bottom: 18px; width: calc(100% - 28px); max-height: 30dvh; overflow: auto; }
}
@media (max-width: 440px) {
  .top .brand { flex: 1 1 100%; }
  .top .identity { width: 100%; }
  .identity .appearance-settings { margin-left: auto; }
  .workflow-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-step { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
  .step-count { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .step-note { font-size: 10px; }
  .login { padding: 26px; }
  .workbench-bar > button { font-size: 12px; }
  .workbench-bar a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* In a single submission the trusted iframe owns the only primary toolbar.
   Keep the host navigation as a fallback until that toolbar acknowledges readiness. */
body.workbench-active { overflow: hidden; }
.workbench-active #app { height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
.workbench-active #app > .top { display: none; }
.workbench-active #workbench { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.workbench-active .workbench-bar { flex: none; min-height: 48px; padding: 6px 12px; gap: 10px; }
.workbench-active #reviewer-frame { flex: 1; min-height: 0; height: 0; width: 100%; }
.workbench-integrated .workbench-bar { display: none; }
@media(max-width:760px) {
  .workbench-active .workbench-bar { min-height: 48px; gap: 6px; padding: 6px 8px; }
  .workbench-active .workbench-bar strong { order: initial; flex: 1; width: auto; min-width: 0; font-size: 12px; }
}

/* Current problems carry an explicit next action; diagnostic IDs stay folded. */
.submission-problem { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--color-warning); }
.submission-problem.problem-error { border-left-color: var(--color-danger); }
.submission-problem > strong { display: block; max-width: 25em; font-size: 12px; line-height: 1.6; }
.submission-problem small { max-width: 28em; line-height: 1.65; overflow-wrap: anywhere; }
.problem-details { margin-top: 5px; font-size: 11px; }
.problem-details summary { color: var(--color-muted); }
.problem-details code { overflow-wrap: anywhere; font-size: 10px; }
.row-actions .problem-primary { color: var(--color-primary); background: var(--color-primary-soft); border-color: var(--color-primary); }
.action-error { margin: 8px 0; color: var(--color-danger); font-size: 12px; overflow-wrap: anywhere; }
.retry-feedback { color: var(--color-primary); line-height: 1.65; }
#preparation-feedback:not(:empty) { margin: 10px 0; }
#preparation-more > button { display: block; margin-top: 8px; }

#pending-commands .problem-card { margin-bottom: 12px; padding: 12px 15px; border: 1px solid var(--color-warning); border-radius: 8px; background: var(--color-warning-soft); }
#pending-commands .problem-card p { margin: 5px 0 9px; font-size: 12px; }

/* A batch stays visible while filters and individual tasks move forward. */
.batch-progress { margin: 0 0 18px; padding: 18px; border: 1px solid var(--color-border-strong); border-radius: 10px; background: var(--color-surface); }
.batch-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.batch-progress h2 { margin: 3px 0 0; font-size: 16px; }
.batch-progress .eyebrow { margin: 0; }
.batch-counts { font-size: 13px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.batch-progress progress { display: block; width: 100%; height: 7px; margin-bottom: 13px; accent-color: var(--color-primary); }
.batch-progress-actions { flex-wrap: wrap; margin-bottom: 10px; }
.batch-progress-actions button { font-size: 12px; }
.batch-progress > small { display: block; line-height: 1.6; }
.batch-progress details { margin-top: 12px; font-size: 12px; }
.batch-progress details p { padding: 7px 0; border-top: 1px solid var(--color-border); }
.batch-progress details small { display: block; margin-top: 4px; color: var(--color-muted); }
.batch-scope-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px 0; font-size: 12px; color: var(--color-primary); }
.batch-scope-notice button { margin-left: auto; font-size: 12px; }
.batch-note { flex-basis: 100%; margin: 2px 0 0; color: var(--color-muted); font-size: 11px; }
.batch .batch-requirements { flex-basis: 100%; color: var(--color-muted); font-size: 11px; }
.batch .batch-requirements > summary { padding: 2px 0; font-size: 11px; }
.batch .batch-requirements p { max-width: 75ch; line-height: 1.7; }
#visible-selection { font-size: 11px; }
@media (max-width: 640px) { .batch-progress { padding: 13px; } .batch-progress-heading { align-items: flex-start; } .batch-progress-actions button { flex: 1 1 130px; } .batch-progress h2 { font-size: 14px; } }

/* The host associates a confirmed Reviewer plan; all editing stays in Reviewer. */
.plan-overview { max-width: 980px; margin: 0 auto; }
.plan-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.plan-entry-actions button { padding: 10px 16px; min-height: 42px; white-space: normal; }
#plan-summary { border-top: 1px solid var(--color-border); margin-top: 24px; padding-top: 20px; }
.plan-summary-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.plan-summary-head h3 { margin: 0; }
.plan-status { font-size: 11px; padding: 4px 8px; border-radius: 5px; background: var(--color-surface-subtle); }
.plan-status.is-ready { color: var(--color-success); }
.plan-status.is-pending { color: var(--color-warning); }
.plan-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.plan-summary-grid dt { font-size: 12px; color: var(--color-muted); margin-bottom: 7px; }
.plan-summary-grid dd { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.plan-import-notice { padding: 12px 14px; border-left: 3px solid var(--color-warning); background: var(--color-warning-soft); font-size: 12px; line-height: 1.8; }
.plan-requirements { white-space: pre-wrap; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
@media(max-width:600px) { .plan-summary-grid { grid-template-columns: 1fr; gap: 14px; }.plan-entry-actions { flex-direction: column; }.plan-entry-actions button { width: 100%; } }
