:root {
  --navy: #081d39;
  --navy-2: #0c294e;
  --blue: #2878ff;
  --blue-dark: #155dcc;
  --ink: #17243a;
  --muted: #69768a;
  --line: #e1e7ef;
  --surface: #fff;
  --canvas: #f4f7fb;
  --success: #18a46f;
  --warning: #f3a322;
  --danger: #dc4c5b;
  --shadow: 0 8px 28px rgba(20, 42, 77, .08);
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.mobile-only { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.auth-pending #appShell, .auth-pending #mobileNav, .auth-pending #diagnosticFooter { visibility: hidden; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(300px,440px) minmax(340px,480px); align-items: center; justify-content: center; gap: clamp(42px,8vw,110px); padding: 36px; background: var(--navy); }
.auth-brand { color: #fff; }
.auth-brand img { display: block; width: min(390px,100%); height: auto; }
.auth-brand div { margin-top: 32px; }
.auth-brand b, .auth-brand small { display: block; }
.auth-brand b { font-size: 31px; letter-spacing: 1px; }
.auth-brand small { margin-top: 9px; color: #a9bdd5; font-size: 16px; }
.auth-card { width: 100%; padding: clamp(24px,4vw,38px); border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.auth-eyebrow { color: var(--blue-dark); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.auth-card h1 { margin: 9px 0 8px; font-size: 28px; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-card label { display: block; margin-top: 15px; }
.auth-card input { height: 50px; font-size: 15px; }
.auth-card .primary-button { width: 100%; min-height: 50px; margin-top: 20px; font-size: 15px; }
.text-button { border: 0; background: transparent; color: var(--blue-dark); font-size: 11px; font-weight: 700; }
.auth-card .text-button { width: 100%; min-height: 42px; margin-top: 7px; }
.auth-help { margin-top: 10px; padding: 11px 12px; border-radius: 9px; background: #f3f7fc; color: #4d6079; font-size: 11px; line-height: 1.65; }
.admin-desktop-blocker { min-height: 100vh; display: grid; grid-template-columns: minmax(320px,500px) minmax(360px,560px); align-items: center; justify-content: center; gap: clamp(38px,7vw,100px); padding: 42px; background: var(--canvas); }
.admin-desktop-brand { align-self: stretch; display: flex; align-items: center; padding: 40px; border-radius: 20px; background: var(--navy); }
.admin-desktop-brand img { display: block; width: 100%; height: auto; }
.admin-desktop-blocker article { padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.admin-desktop-blocker h1 { margin: 13px 0 12px; font-size: 28px; }
.admin-desktop-blocker p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.admin-desktop-blocker .action-button { min-width: 150px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; display: flex; flex-direction: column; background: var(--navy); color: #fff; z-index: 10; }
.brand-area { height: 90px; display: flex; align-items: center; padding: 18px 22px 12px; background: var(--navy); }
.brand-area img { display: block; width: 100%; height: auto; object-fit: contain; }
.product-name { margin: 2px 20px 18px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; font-size: 15px; font-weight: 700; }
.product-name small { display: block; margin: 5px 0 0 18px; color: #9db3cf; font-weight: 400; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #35d99c; box-shadow: 0 0 0 3px rgba(53,217,156,.13); }
.side-nav { display: grid; gap: 6px; padding: 0 14px; }
.nav-divider { margin: 8px 12px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.nav-divider span { display: inline-block; margin-top: 9px; color: #7891ae; font-size: 9px; letter-spacing: 1px; }
.nav-item { border: 0; border-radius: 10px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; min-height: 50px; padding: 0 14px; background: transparent; color: #b9c8db; text-align: left; }
.nav-item span { font-size: 21px; }
.nav-item b { font-size: 14px; }
.nav-item em { min-width: 24px; padding: 2px 7px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 11px; font-style: normal; text-align: center; }
.nav-item:hover, .nav-item.active { background: #143963; color: #fff; }
.nav-item:focus-visible, .action-button:focus-visible, .primary-button:focus-visible, .quiet-button:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(75,151,255,.55); outline-offset: 2px; }
.sidebar-footer { margin-top: auto; padding: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.node-health { display: flex; align-items: flex-start; color: #e6eef8; font-size: 12px; }
.node-health b, .node-health small { display: block; }
.node-health small { margin-top: 4px; color: #8ea5c1; }
.quiet-button { width: 100%; margin-top: 14px; padding: 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: transparent; color: #dce8f6; font-size: 12px; }
.workspace { grid-column: 2; min-width: 0; padding-bottom: 58px; }
.topbar { height: 82px; display: flex; align-items: center; gap: 20px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 8; }
.topbar h1 { margin: 0; font-size: 22px; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.mobile-brand { display: none; }
.account { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #e9f1ff; color: var(--blue-dark); font-weight: 700; }
.account b, .account small { display: block; font-size: 12px; }
.account small { color: var(--muted); margin-top: 3px; }
.connection-banner { min-height: 58px; position: sticky; top: 82px; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 32px; border-bottom: 1px solid #efc36a; background: #fff8e7; color: #79520f; box-shadow: 0 5px 18px rgba(88,67,28,.08); }
.connection-banner > div { min-width: 0; }
.connection-banner b, .connection-banner span { display: block; }
.connection-banner b { font-size: 13px; }
.connection-banner span { margin-top: 3px; font-size: 11px; line-height: 1.5; }
.connection-banner.offline { border-color: #efb8c0; background: #fff2f3; color: #932f3f; }
.connection-banner .action-button { min-width: 96px; min-height: 36px; flex: 0 0 auto; border-color: currentColor; background: rgba(255,255,255,.72); color: inherit; font-size: 11px; font-weight: 700; }
main { width: min(1460px, 100%); margin: 0 auto; padding: 24px 32px 36px; }
.view { display: none; }
.view.active { display: block; }
.admin-home-heading { margin-bottom: 18px; }
.admin-eyebrow { display: block; margin-bottom: 6px; color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.admin-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.admin-overview-card { min-height: 130px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.admin-overview-card small, .admin-overview-card strong, .admin-overview-card span { display: block; }
.admin-overview-card small { color: #566881; font-size: 11px; font-weight: 700; }
.admin-overview-card strong { margin: 7px 0 5px; color: var(--navy-2); font-size: 31px; line-height: 1; }
.admin-overview-card span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.admin-primary-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.admin-primary-card { min-height: 300px; display: flex; flex-direction: column; padding: 22px; }
.admin-primary-card > div { flex: 1; }
.admin-step-number { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 10px; background: #e6f0ff; color: var(--blue-dark); font-size: 15px; font-weight: 800; }
.admin-primary-card small { color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.admin-primary-card h3 { margin: 7px 0 9px; font-size: 17px; }
.admin-primary-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.admin-primary-card .primary-button { width: 100%; margin-top: 20px; }
.admin-publish-flow { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 18px; padding: 18px 20px; }
.admin-publish-flow > div { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.admin-publish-flow b { margin-right: 5px; font-size: 12px; }
.admin-publish-flow span { padding: 6px 9px; border-radius: 7px; background: #edf4ff; color: #31577f; font-size: 10px; font-weight: 700; }
.admin-publish-flow i { color: #7a8ba2; font-size: 11px; font-style: normal; }
.admin-publish-flow p { max-width: 360px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: right; }
.scope-notice { margin-bottom: 18px; padding: 12px 16px; border: 1px solid #cbdcff; border-radius: 10px; background: #edf4ff; color: #345375; font-size: 13px; }
.scope-notice span { margin-right: 9px; padding: 3px 8px; border-radius: 6px; background: #d7e7ff; color: var(--blue-dark); font-weight: 700; }
.task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.form-column { display: grid; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.form-column .panel { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 17px; }
.panel-heading > div { display: flex; align-items: center; gap: 10px; }
.panel-heading h2 { margin: 0; font-size: 17px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.step { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #e7f0ff; color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.task-type-selector { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.type-card { position: relative; min-height: 86px; display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.type-card:hover { border-color: #adc7f2; }
.type-card:has(input:checked) { border-color: var(--blue); background: #f2f7ff; box-shadow: 0 0 0 2px rgba(40,120,255,.08); }
.type-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.type-card:has(input:focus-visible) { outline: 3px solid rgba(40,120,255,.2); outline-offset: 2px; }
.type-card > span { margin: 0; }
.type-card b, .type-card small { display: block; }
.type-card b { font-size: 13px; }
.type-card small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.type-mark { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #e8f1ff; color: var(--blue-dark); font-size: 10px; font-weight: 800; }
.drop-zone { min-height: 186px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #9fb7d7; border-radius: 12px; background: #f8fbff; transition: .18s ease; }
.drop-zone.dragover { border-color: var(--blue); background: #edf4ff; transform: translateY(-1px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 12px; background: #e8f1ff; color: var(--blue); font-size: 26px; }
.drop-zone strong { font-size: 15px; }
.drop-zone small { margin: 7px 0 12px; color: var(--muted); font-size: 12px; }
.drop-zone button { padding: 8px 15px; border: 1px solid #b9c8db; border-radius: 8px; background: #fff; color: #315072; pointer-events: none; font-size: 12px; }
.wechat-file-tip { display: none; margin-top: 11px; padding: 11px 12px; border-radius: 9px; background: #fff8e8; color: #76531a; font-size: 11px; line-height: 1.6; }
.wechat-file-tip summary, .archive-support summary { font-weight: 700; cursor: pointer; }
.wechat-file-tip span, .archive-support span { display: block; margin-top: 6px; }
.wechat-file-tip.shp-zip-priority { background: #eef5ff; color: #28537f; }
.archive-support { margin-top: 11px; padding: 11px 12px; border-radius: 9px; background: #f2f7ff; color: #31577f; font-size: 11px; line-height: 1.6; }
.archive-password-field { display: block; margin-top: 12px; }
.archive-password-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.file-list { margin-top: 12px; display: grid; gap: 7px; }
.file-list.empty { padding: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.file-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 9px 11px; border-radius: 8px; background: #f5f8fc; font-size: 12px; }
.file-row small { color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
label > span { display: block; margin-bottom: 7px; color: #46556b; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfd8e5; border-radius: 9px; background: #fff; color: var(--ink); outline: none; }
input, select { height: 42px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,120,255,.1); }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.field-hint.error { color: #a92839; font-weight: 700; }
.single-scheme select { border-color: #dbe3ed; background: #f4f7fa; color: #50627a; opacity: .82; }
.auto-selected-field > span,
.auto-selected-field > select { display: none; }
.auto-selected-field .field-hint { min-height: 42px; display: flex; align-items: center; margin: 0; padding: 9px 12px 9px 34px; border: 1px solid #c9e7da; border-radius: 9px; background: #effaf5; color: #167553; font-size: 11px; font-weight: 700; position: relative; }
.auto-selected-field .field-hint::before { content: "✓"; position: absolute; left: 12px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #1aa572; color: #fff; font-size: 10px; }
.cad-direction-notice { margin-top: 14px; padding: 12px 14px; border: 1px solid #cbdcff; border-radius: 10px; background: #f2f7ff; color: #31577f; font-size: 11px; line-height: 1.6; }
.cad-direction-notice b,
.cad-direction-notice span { display: block; }
.cad-direction-notice b { margin-bottom: 2px; color: #164f98; font-size: 12px; }
.direction-box { margin: 15px 0 0; padding: 0; border: 0; }
.direction-box legend { margin-bottom: 8px; color: #46556b; font-size: 12px; font-weight: 700; }
.direction-box > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.radio-card { min-height: 67px; display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--blue); background: #f3f7ff; }
.radio-card input { width: 17px; height: 17px; padding: 0; accent-color: var(--blue); }
.radio-card span { margin: 0; }
.radio-card b, .radio-card small { display: block; }
.radio-card b { font-size: 12px; }
.radio-card small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.parameter-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 15px; padding: 13px; border-radius: 10px; background: #f4f7fb; }
.parameter-summary small, .parameter-summary b { display: block; }
.parameter-summary small { color: var(--muted); font-size: 10px; }
.parameter-summary b { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.parameter-details { margin-top: 14px; }
.parameter-details summary { width: fit-content; color: #526780; font-size: 10px; cursor: pointer; }
.parameter-details:not([open]) .parameter-summary { display: none; }
.task-more-options { margin-top: 14px; padding: 0; border-top: 1px solid var(--line); }
.task-more-options summary { width: fit-content; margin-top: 13px; color: #31577f; font-size: 11px; font-weight: 700; cursor: pointer; }
.task-more-summary { display: inline-block; margin: 0 0 0 7px; color: var(--muted); font-size: 9px; }
.task-more-options[open] .task-more-summary { display: none; }
.task-more-options .field-grid { margin-top: 13px; }
.task-more-options .field-grid > label:nth-child(3) { grid-column: 1 / -1; }
.task-more-options .option-checkbox { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid #d7e2ef; border-radius: 9px; background: #f7faff; }
.task-more-options .option-checkbox input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; }
.task-more-options .option-checkbox > span { margin: 0; }
.task-more-options .option-checkbox b,
.task-more-options .option-checkbox small { display: block; }
.task-more-options .option-checkbox b { color: #213650; font-size: 11px; }
.task-more-options .option-checkbox small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.gate-strip { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.gate-strip span { padding: 6px 8px; border-radius: 7px; background: #eef9f5; color: #187854; font-size: 10px; }
.primary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(40,120,255,.2); }
.form-column > .panel .primary-button { width: 100%; }
.primary-button:hover { background: var(--blue-dark); }
.primary-button small { color: #eaf2ff; font-size: 10px; font-weight: 400; }
.primary-button.small { min-height: 39px; padding: 0 15px; font-size: 12px; }
.primary-button:disabled { background: #9baac0; cursor: wait; box-shadow: none; }
.inline-message { margin-top: 12px; padding: 11px; border-radius: 8px; font-size: 12px; }
.inline-message.error { background: #fff0f1; color: #a92839; }
.inline-message.success { background: #ecf9f4; color: #187854; }
.sticky-panel { position: sticky; top: 106px; overflow: hidden; }
.panel-heading.compact { margin: 0; padding: 18px 18px 13px; border-bottom: 1px solid var(--line); }
.link-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; }
.task-list { min-height: 250px; }
.task-list.loading, .empty-state { display: grid; place-items: center; padding: 44px 20px; color: var(--muted); font-size: 12px; text-align: center; }
.task-card { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.task-card:last-child { border-bottom: 0; }
.task-card-head { display: flex; justify-content: space-between; gap: 12px; }
.task-card b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.task-card small { color: var(--muted); font-size: 10px; }
.task-card .task-submitter { display: block; margin-top: 2px; color: #52647d; }
.task-type-label { display: inline-flex; margin: 0 0 6px; padding: 3px 7px; border-radius: 6px; background: #eef4ff; color: #245fae; font-size: 9px; font-weight: 700; line-height: 1.3; }
.queue-position { display: inline-block; margin-top: 6px; color: #155dcc; font-size: 10px; font-weight: 700; }
.status-pill { padding: 4px 8px; border-radius: 8px; background: #edf2fa; color: #5f6d81; font-size: 10px; white-space: nowrap; }
.status-pill.processing, .status-pill.checking, .status-pill.validating, .status-pill.queued { background: #edf4ff; color: #225fb6; }
.status-pill.awaitingprediction { background: #eef4ff; color: #225fb6; }
.status-pill.awaitingconfirmation { background: #fff6df; color: #8a5a08; }
.status-pill.succeeded { background: #eaf8f2; color: #16815a; }
.status-pill.failed, .status-pill.cancelled { background: #fff0f1; color: #b43446; }
.progress-track { height: 5px; margin: 11px 0 7px; overflow: hidden; border-radius: 5px; background: #e7ebf2; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .4s ease; }
.task-meta { display: flex; justify-content: space-between; gap: 7px; }
.task-telemetry { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; color: #53657d; font-size: 10px; line-height: 1.45; }
.task-telemetry span { white-space: nowrap; }
.view-heading { min-height: 58px; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.view-heading h2 { margin: 0; font-size: 22px; }
.view-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.task-table-wrap { overflow-x: auto; }
.task-cards-mobile { display: none; }
.task-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.task-table th, .task-table td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.task-table th { color: var(--muted); background: #f7f9fc; font-size: 10px; }
.task-table tr:last-child td { border-bottom: 0; }
.task-table .table-progress { width: 170px; }
.action-button { padding: 6px 9px; border: 1px solid #cbd6e4; border-radius: 7px; background: #fff; color: #35506e; font-size: 10px; }
.action-button.primary { border-color: #b7d0ff; background: #eef4ff; color: #155dcc; }
.action-button.danger { border-color: #f0c8ce; color: #aa3142; }
.queue-card { padding: 15px; border-bottom: 1px solid var(--line); background: #fff; }
.queue-card:last-child { border-bottom: 0; }
.queue-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.queue-card h3 { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.queue-card dl { display: grid; gap: 7px; margin: 13px 0 0; }
.queue-card dl div { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 8px; }
.queue-card dt { color: var(--muted); font-size: 10px; }
.queue-card dd { margin: 0; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.queue-card .queue-position { margin: 0; }
.queue-message { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.queue-card-action { display: flex; justify-content: flex-end; margin-top: 12px; }
.queue-card-action .action-button { min-height: 44px; min-width: 96px; }
.prediction-workspace { margin-top: 22px; overflow: hidden; scroll-margin-top: 100px; }
.prediction-workspace-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#f7faff 0%,#fff 72%); }
.prediction-eyebrow { display: block; margin-bottom: 7px; color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.prediction-workspace-header h2 { margin: 0; font-size: 22px; }
.prediction-workspace-header p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.prediction-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.prediction-header-actions .action-button { min-height: 34px; }
.prediction-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #fafbfd; list-style: none; }
.prediction-flow li { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 9px; min-width: 0; color: #8794a6; }
.prediction-flow li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 36px; right: 8px; height: 2px; background: #dde4ed; }
.prediction-flow li > span { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #ced7e3; border-radius: 50%; background: #fff; color: #7b899d; font-size: 10px; font-weight: 800; z-index: 1; }
.prediction-flow b { align-self: end; font-size: 13px; }
.prediction-flow small { align-self: start; margin-top: 3px; font-size: 11px; line-height: 1.4; }
.prediction-flow li.done, .prediction-flow li.active { color: #245d9e; }
.prediction-flow li.done > span { border-color: #8fc9b3; background: #eaf8f2; color: #187854; }
.prediction-flow li.done:not(:last-child)::after { background: #9bcdbb; }
.prediction-flow li.active > span { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(40,120,255,.1); }
.prediction-loading { min-height: 130px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px; color: #40546f; }
.prediction-loading b, .prediction-loading small { display: block; }
.prediction-loading b { font-size: 14px; }
.prediction-loading small { max-width: 650px; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.prediction-spinner { width: 28px; height: 28px; flex: 0 0 auto; border: 3px solid #dbe8fb; border-top-color: var(--blue); border-radius: 50%; animation: prediction-spin .9s linear infinite; }
@keyframes prediction-spin { to { transform: rotate(360deg); } }
.prediction-content { padding: 22px 24px 25px; }
.prediction-summary { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 16px; padding: 16px; border: 1px solid #cbdcff; border-radius: 11px; background: #f4f8ff; }
.prediction-summary-main { display: flex; align-items: flex-start; gap: 12px; }
.prediction-summary-main > div { min-width: 0; }
.prediction-summary-main small, .prediction-summary-main strong { display: block; }
.prediction-summary-main small { color: #5d7190; font-size: 12px; font-weight: 700; }
.prediction-summary-main strong { margin-top: 5px; color: #173e6b; font-size: 15px; line-height: 1.5; }
.prediction-summary-main p { margin: 6px 0 0; color: #5d6d83; font-size: 12px; line-height: 1.55; }
.prediction-summary-evidence { padding-left: 16px; border-left: 1px solid #cbdcff; }
.prediction-summary-evidence b { color: #35577d; font-size: 12px; }
.prediction-summary-evidence ul { margin: 7px 0 0; padding-left: 18px; color: #5d6d83; font-size: 12px; line-height: 1.65; }
.confidence-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px; border-radius: 7px; background: #edf2fa; color: #5e6d81; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.confidence-badge.high { background: #e8f8f1; color: #137653; }
.confidence-badge.medium { background: #fff4db; color: #8b5b08; }
.confidence-badge.low, .confidence-badge.insufficient { background: #fff0f1; color: #a52f40; }
.confidence-badge.notapplicable { background: #eef1f5; color: #667487; }
.prediction-warning { display: flex; align-items: flex-start; gap: 12px; margin-top: 13px; padding: 12px 14px; border: 1px solid #efc36a; border-radius: 10px; background: #fff8e7; color: #80540d; }
.prediction-warning b { flex: 0 0 auto; font-size: 13px; }
.prediction-warning span { font-size: 12px; line-height: 1.6; }
.prediction-files { display: grid; gap: 16px; margin-top: 17px; }
.prediction-file-card { padding: 18px; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; }
.prediction-file-card.needs-confirmation { border-color: #e9c77e; box-shadow: inset 4px 0 0 #f0b743; }
.prediction-file-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.prediction-file-number { display: block; color: var(--blue-dark); font-size: 11px; font-weight: 800; }
.prediction-file-header h3 { max-width: 760px; margin: 5px 0 3px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.prediction-file-header small { color: var(--muted); font-size: 12px; }
.prediction-file-recommendation { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; padding: 11px 12px; border-radius: 9px; background: #f4f7fb; }
.prediction-file-recommendation small, .prediction-file-recommendation b { display: block; }
.prediction-file-recommendation small { color: var(--muted); font-size: 11px; }
.prediction-file-recommendation b { margin-top: 4px; font-size: 13px; }
.prediction-choice-state { padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.prediction-choice-state.recommended { background: #eaf8f2; color: #187854; }
.prediction-choice-state.overridden { background: #fff1df; color: #9a5c08; }
.prediction-choice-state.manual { background: #eef4ff; color: #245fae; }
.prediction-file-message { margin: 10px 0 0; color: #5f6f84; font-size: 12px; line-height: 1.6; }
.prediction-candidates { display: grid; gap: 9px; margin: 15px 0 0; padding: 0; border: 0; }
.prediction-candidates > legend { margin-bottom: 8px; color: #46556b; font-size: 12px; font-weight: 800; }
.prediction-candidate { display: grid; grid-template-columns: 18px 28px minmax(0,1fr); align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.prediction-candidate:hover { border-color: #a9c4ed; }
.prediction-candidate.selected { border-color: var(--blue); background: #f3f7ff; box-shadow: 0 0 0 2px rgba(40,120,255,.07); }
.prediction-candidate.disabled { opacity: .64; cursor: not-allowed; }
.prediction-candidate > input { width: 17px; height: 17px; margin: 2px 0 0; padding: 0; accent-color: var(--blue); }
.prediction-candidate-rank { width: 26px; height: 26px; display: grid; place-items: center; margin: -2px 0 0; border-radius: 7px; background: #edf3fc; color: #3b6599; font-size: 11px; font-weight: 800; }
.prediction-candidate-body { min-width: 0; margin: 0; }
.prediction-candidate-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.prediction-candidate-title b { font-size: 13px; }
.prediction-candidate-body > strong { display: block; margin-top: 5px; color: #214c7c; font-size: 13px; }
.prediction-candidate-body > small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.prediction-candidate-body > p { margin: 6px 0 0; color: #5d6c80; font-size: 12px; line-height: 1.55; }
.prediction-candidate details, .prediction-evidence { margin-top: 8px; }
.prediction-candidate summary, .prediction-evidence summary { width: fit-content; color: #45698f; font-size: 12px; font-weight: 700; cursor: pointer; }
.prediction-candidate ul, .prediction-evidence ul { margin: 7px 0 0; padding-left: 18px; color: #5c6c80; font-size: 12px; line-height: 1.65; }
.prediction-no-candidate { padding: 14px; border: 1px solid #efc3ca; border-radius: 9px; background: #fff3f4; color: #923142; }
.prediction-no-candidate b, .prediction-no-candidate span { display: block; }
.prediction-no-candidate b { font-size: 11px; }
.prediction-no-candidate span { margin-top: 5px; font-size: 9px; line-height: 1.6; }
.prediction-direction-field { display: block; margin-top: 14px; padding: 13px; border: 1px solid #cbdcff; border-radius: 10px; background: #f7faff; }
.prediction-direction-field > span { color: #31577f; font-size: 10px; }
.prediction-direction-field select { max-width: 620px; }
.prediction-direction-field small { display: block; margin-top: 6px; color: #6b778a; font-size: 12px; line-height: 1.55; }
.prediction-evidence { padding-top: 2px; }
.prediction-security-note { display: grid; gap: 5px; margin-top: 16px; padding: 12px 14px; border-radius: 9px; background: #eef7f3; color: #315f50; }
.prediction-security-note b { font-size: 12px; }
.prediction-security-note span { font-size: 12px; line-height: 1.55; }
.prediction-confirm-actions { display: grid; grid-template-columns: minmax(260px,1fr) auto; gap: 10px; margin-top: 15px; }
.prediction-confirm-actions .primary-button { min-height: 48px; }
.prediction-confirm-actions .action-button { min-width: 126px; }
.results-grid, .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.result-card, .project-card { padding: 19px; }
.result-card h3, .project-card h3 { margin: 0 0 8px; font-size: 15px; }
.result-card p, .project-card p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.result-card .primary-button { width: 100%; }
.result-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.result-actions .primary-button { grid-column: 1 / -1; min-height: 42px; }
.result-actions .action-button { min-height: 40px; }
.account-layout { display: grid; grid-template-columns: minmax(270px,.8fr) minmax(420px,1.4fr); gap: 16px; }
.profile-card, .account-detail-card, .help-card, .admin-shortcut { padding: 20px; }
.profile-card { display: flex; align-items: center; gap: 15px; }
.profile-avatar { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e8f1ff; color: var(--blue-dark); font-size: 22px; font-weight: 800; }
.profile-card h3 { margin: 8px 0 4px; font-size: 19px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 11px; }
.account-detail-card { grid-row: span 2; }
.account-detail-card h3, .help-card h3, .admin-shortcut h3 { margin: 0 0 12px; font-size: 16px; }
.account-detail-card dl { display: grid; gap: 10px; margin: 0; }
.account-detail-card dl div { padding: 11px 12px; border-radius: 9px; background: #f6f8fb; }
.account-detail-card dt { color: var(--muted); font-size: 10px; }
.account-detail-card dd { margin: 5px 0 0; font-size: 12px; line-height: 1.55; }
.account-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.account-actions .action-button { min-height: 40px; padding: 0 13px; }
.help-card p, .admin-shortcut p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.help-card .text-button { min-height: 38px; padding: 0; }
.help-card .primary-button { width: 100%; margin-top: 9px; }
.admin-shortcut .primary-button { margin-top: 9px; }
.admin-layout { display: grid; grid-template-columns: minmax(330px,.75fr) minmax(0,1.25fr); gap: 18px; align-items: start; }
.create-account-card { padding: 21px; }
.create-account-card > .primary-button { width: 100%; margin-top: 15px; }
.fixed-assignment { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.fixed-assignment div { padding: 11px 12px; border-radius: 9px; background: #eef5ff; }
.fixed-assignment small, .fixed-assignment b { display: block; }
.fixed-assignment small { color: var(--muted); font-size: 9px; }
.fixed-assignment b { margin-top: 4px; color: #255d9f; font-size: 12px; }
.project-assignment { margin: 14px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.project-assignment legend { padding: 0 5px; color: #46556b; font-size: 11px; font-weight: 700; }
.project-check-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.project-check { min-height: 52px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.project-check:has(input:checked) { border-color: #9fc0f4; background: #f1f6ff; }
.project-check input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--blue); }
.project-check > span { margin: 0; }
.project-check b, .project-check small { display: block; }
.project-check b { font-size: 11px; }
.project-check small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.policy-note { margin: 12px 0 0; color: #6e7b8d; font-size: 10px; line-height: 1.6; }
.field-label-with-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-label-with-action button { border: 0; padding: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.accounts-panel { overflow: hidden; }
.accounts-panel > .panel-heading { padding: 17px 18px 0; }
.account-list-tools { display: grid; grid-template-columns: minmax(220px,1fr) 150px; gap: 10px; padding: 0 18px 15px; }
.account-list-tools label > span { margin-bottom: 5px; font-size: 10px; }
.account-list-tools input, .account-list-tools select { height: 38px; font-size: 11px; }
.accounts-list.loading { min-height: 220px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.accounts-table { width: 100%; border-collapse: collapse; }
.accounts-table th, .accounts-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; vertical-align: top; }
.accounts-table th { background: #f7f9fc; color: var(--muted); font-size: 9px; }
.accounts-table tr:last-child td { border-bottom: 0; }
.accounts-table small { color: var(--muted); font-size: 9px; }
.accounts-cards-mobile { display: none; }
.audit-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px 15px; padding: 18px; }
.audit-filters label { min-width: 0; }
.audit-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; }
.audit-filter-actions button { min-height: 40px; padding: 0 16px; }
.audit-integrity-note { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; padding: 11px 14px; border: 1px solid #c9e7da; border-radius: 9px; background: #effaf5; color: #315f50; font-size: 10px; line-height: 1.55; }
.audit-integrity-note b { flex: 0 0 auto; color: #167553; font-size: 11px; }
.audit-panel { overflow: hidden; }
.audit-panel > .panel-heading { padding: 17px 18px 0; }
.audit-summary { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.audit-list.loading { min-height: 260px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.audit-table-wrap { overflow-x: auto; }
.audit-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.audit-table th, .audit-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 11px; line-height: 1.55; }
.audit-table th { background: #f7f9fc; color: var(--muted); font-size: 10px; white-space: nowrap; }
.audit-table tr:last-child td { border-bottom: 0; }
.audit-table td small, .audit-table td b { display: block; }
.audit-table td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.audit-table .audit-detail-cell { min-width: 240px; max-width: 430px; overflow-wrap: anywhere; }
.audit-seal { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #eaf8f2; color: #167553; font-size: 9px; font-weight: 700; white-space: nowrap; }
.audit-live { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #eef3f8; color: #50627a; font-size: 9px; white-space: nowrap; }
.audit-pagination { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 15px 18px; border-top: 1px solid var(--line); }
.audit-pagination span { min-width: 90px; color: var(--muted); font-size: 11px; text-align: center; }
.audit-pagination button { min-height: 38px; }
.employee-card { padding: 15px; border-bottom: 1px solid var(--line); }
.employee-card h3 { margin: 8px 0 2px; font-size: 14px; }
.employee-card > div > small { color: var(--muted); font-size: 10px; }
.employee-card dl { display: grid; gap: 7px; margin: 12px 0 0; }
.employee-card dl div { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 8px; }
.employee-card dt { color: var(--muted); font-size: 9px; }
.employee-card dd { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.employee-card p { margin: 10px 0 0; color: #8a6018; font-size: 10px; }
.employee-edit-button { width: 100%; min-height: 42px; margin-top: 12px; }
.empty-state.compact { min-height: 54px; padding: 10px; }
.parameter-admin-notice { display: grid; gap: 5px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #bcd1f7; border-radius: 11px; background: #eef5ff; color: #31577f; font-size: 11px; line-height: 1.6; }
.parameter-admin-notice b { color: #164f98; font-size: 12px; }
.parameter-admin-notice code { padding: 1px 5px; border-radius: 5px; background: #dceaff; color: #164f98; font-family: Consolas, monospace; font-size: 10px; }
.parameter-admin-notice small { color: #6a7890; font-size: 10px; }
.parameter-admin-layout { display: grid; grid-template-columns: minmax(320px,.7fr) minmax(0,1.3fr); gap: 18px; align-items: start; }
.parameter-upload-card { padding: 21px; }
.parameter-upload-card label { display: block; margin-top: 14px; }
.parameter-file-field input[type="file"] { height: auto; min-height: 46px; padding: 7px; color: #52627a; font-size: 11px; }
.parameter-file-field input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; padding: 0 11px; border: 1px solid #b7cae2; border-radius: 7px; background: #eef5ff; color: #245c9f; font: inherit; font-weight: 700; cursor: pointer; }
.parameter-note-field textarea { min-height: 112px; line-height: 1.55; }
.parameter-upload-card > .primary-button { width: 100%; margin-top: 16px; }
.quick-parameter-card { min-width: 0; }
.quick-parameter-groups { display: grid; gap: 14px; }
.quick-parameter-group { min-width: 0; margin: 0; padding: 15px; border: 1px solid #dbe3ee; border-radius: 11px; background: #fbfcfe; }
.quick-parameter-group legend { padding: 0 7px; color: #244f82; font-size: 12px; font-weight: 800; }
.quick-parameter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.quick-parameter-grid label { min-width: 0; margin-top: 0; }
.quick-parameter-grid label.wide { grid-column: 1 / -1; }
.quick-parameter-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.advanced-parameter-import { margin-top: 18px; overflow: hidden; }
.advanced-parameter-import > summary { padding: 16px 20px; color: #31577f; font-size: 12px; font-weight: 700; cursor: pointer; }
.advanced-parameter-import[open] > summary { border-bottom: 1px solid var(--line); background: #f7f9fc; }
.advanced-parameter-import .parameter-upload-card { max-width: 760px; }
.parameter-drafts-panel { overflow: hidden; container-type: inline-size; }
.parameter-drafts-list.loading { min-height: 260px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.parameter-drafts-table-desktop { overflow-x: auto; }
.parameter-drafts-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.parameter-drafts-table th, .parameter-drafts-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 11px; }
.parameter-drafts-table th { background: #f7f9fc; color: var(--muted); font-size: 10px; }
.parameter-drafts-table tr:last-child td { border-bottom: 0; }
.parameter-drafts-table td > b, .parameter-drafts-table td > small { display: block; }
.parameter-drafts-table td > b { max-width: 170px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.parameter-drafts-table td > small { margin-top: 4px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.draft-note-cell { min-width: 150px; max-width: 250px; color: #46556b; line-height: 1.55; overflow-wrap: anywhere; }
.draft-review-note { display: block; margin-top: 6px; color: #8a6018; font-size: 9px; line-height: 1.5; }
.draft-action-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.draft-action-complete { color: #9aa5b4; }
.parameter-drafts-cards-mobile { display: none; }
.parameter-draft-card { padding: 15px; border-bottom: 1px solid var(--line); }
.parameter-draft-card:last-child { border-bottom: 0; }
.parameter-draft-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.parameter-draft-card h3 { margin: 0 0 3px; font-size: 14px; }
.parameter-draft-card-head small { color: var(--muted); font-size: 10px; }
.parameter-draft-card dl { display: grid; gap: 7px; margin: 13px 0 0; }
.parameter-draft-card dl div { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 8px; }
.parameter-draft-card dt { color: var(--muted); font-size: 10px; }
.parameter-draft-card dd { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.parameter-draft-card > p { margin: 11px 0 0; color: #46556b; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.parameter-draft-actions { margin-top: 12px; }

@container (max-width: 850px) {
  .parameter-drafts-table-desktop { display: none; }
  .parameter-drafts-cards-mobile { display: block; }
  .parameter-draft-card {
    display: grid;
    grid-template-columns: minmax(150px,.8fr) minmax(230px,1.2fr);
    gap: 10px 16px;
  }
  .parameter-draft-card dl { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
  .parameter-draft-card > p,
  .parameter-draft-card > .draft-review-note,
  .parameter-draft-actions { grid-column: 1 / -1; }
  .parameter-draft-actions .draft-action-buttons { justify-content: flex-end; }
}

@container (max-width: 560px) {
  .parameter-draft-card { grid-template-columns: 1fr; }
  .parameter-draft-card dl { grid-template-columns: 1fr; margin-top: 3px; }
  .parameter-draft-actions .draft-action-buttons { justify-content: stretch; }
}
.parameter-project-heading { min-height: 0; margin: 26px 0 12px; }
.parameter-project-heading h2 { font-size: 17px; }
.project-grid > .empty-state { grid-column: 1 / -1; }
.project-card .project-update-button { width: 100%; min-height: 39px; margin-top: 12px; }
.permission-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 18px; padding: 20px; }
.permission-flow div { min-height: 95px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.permission-flow .published { border-color: #bdd1fa; background: #f1f6ff; }
.permission-flow span, .permission-flow b, .permission-flow small { display: block; }
.permission-flow span { color: var(--blue-dark); font-size: 10px; font-weight: 700; }
.permission-flow b { margin-top: 8px; font-size: 13px; }
.permission-flow small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.permission-flow i { color: #9aabc1; font-style: normal; }
.diagnostic-footer { position: fixed; left: 258px; right: 0; bottom: 0; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 25px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); z-index: 9; }
.diagnostic-footer button { border: 0; background: transparent; color: #345679; font-size: 11px; font-weight: 700; }
.diagnostic-footer span { color: #8a96a7; font-size: 9px; }
.diagnostic-footer .product-version { margin-left: auto; color: #607089; font-weight: 700; }
.mobile-nav { display: none; }
.modal { width: min(510px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 15px; box-shadow: 0 24px 80px rgba(10,28,54,.28); }
.modal::backdrop { background: rgba(8,29,57,.55); backdrop-filter: blur(3px); }
.modal form { position: relative; padding: 27px; }
.modal h2 { margin: 10px 0 7px; font-size: 20px; }
.modal p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal .close { position: absolute; top: 13px; right: 13px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f0f3f7; color: #68768a; font-size: 20px; }
.modal-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #e8f1ff; color: var(--blue); font-size: 26px; }
.account-delivery-modal { width: min(620px, calc(100% - 30px)); }
.delivery-credentials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 17px 0; }
.delivery-credentials div { min-width: 0; padding: 13px 14px; border: 1px solid #c9dcfb; border-radius: 10px; background: #f1f6ff; }
.delivery-credentials small, .delivery-credentials b, .delivery-credentials code { display: block; }
.delivery-credentials small { color: var(--muted); font-size: 10px; }
.delivery-credentials b, .delivery-credentials code { margin-top: 6px; color: #174f98; font-size: 15px; overflow-wrap: anywhere; }
.delivery-text-field { display: block; margin-top: 14px; }
.delivery-text-field textarea { min-height: 205px; resize: vertical; line-height: 1.65; font-size: 12px; }
.delivery-warning { margin-top: 11px; padding: 10px 12px; border: 1px solid #f0c674; border-radius: 8px; background: #fff8e7; color: #80540d; font-size: 11px; line-height: 1.6; }
.desktop-shortcut-note { margin: 12px 0 15px; padding: 12px 13px; border-radius: 9px; background: #f4f7fb; }
.desktop-shortcut-note b { font-size: 12px; }
.desktop-shortcut-note p { margin: 5px 0 0; font-size: 11px; }
.account-delivery-modal .primary-button { width: 100%; min-height: 44px; }
.delivery-close-button { width: 100%; min-height: 40px; margin-top: 8px; }
.install-guide { margin: 15px 0; padding: 13px; border-radius: 9px; background: #f4f7fb; font-size: 12px; }
.install-guide p { margin: 5px 0 0; }
.install-guide ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.install-fallback-actions { display: flex; gap: 10px; margin-top: 12px; }
.install-fallback-actions > button { flex: 1; }
.install-fallback-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.mobile-access-content { display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: center; gap: 20px; margin: 18px 0; }
.mobile-access-content img { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mobile-access-content small, .mobile-access-content b, .mobile-access-content strong { display: block; overflow-wrap: anywhere; }
.mobile-access-content small { margin: 8px 0 4px; color: var(--muted); font-size: 10px; }
.mobile-access-content b { font-size: 12px; }
.mobile-access-content strong { color: var(--blue-dark); font-size: 26px; letter-spacing: 5px; }
body.desktop-web-only .mobile-only,
body.desktop-web-only #mobileNav,
body.desktop-web-only .wechat-file-tip { display: none !important; }
body.desktop-web-only .desktop-only { display: inline !important; }
.copy-button { width: 100%; margin-top: 14px; padding: 9px; border: 1px solid #b7d0ff; border-radius: 8px; background: #eef4ff; color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.modal .primary-button { width: 100%; }
.modal-actions { display: flex; justify-content: center; gap: 20px; margin-top: 14px; }
.modal-actions button { border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.diagnostic-modal label { display: block; margin-top: 12px; }
.diagnostic-modal .checkbox { display: flex; align-items: center; gap: 8px; margin: 15px 0; font-size: 12px; }
.diagnostic-modal .checkbox input { width: 16px; height: 16px; }
.password-modal label { display: block; margin-top: 13px; }
.password-modal .primary-button { margin-top: 18px; }
.account-edit-modal label { display: block; margin-top: 12px; }
.account-edit-modal .checkbox { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 12px; }
.account-edit-modal .checkbox input { width: 17px; height: 17px; }
.account-edit-modal .primary-button { margin-top: 15px; }
.reject-draft-modal label { display: block; margin-top: 13px; }
.reject-draft-modal .primary-button { margin-top: 17px; }
.parameter-review-modal { width: min(920px, calc(100% - 30px)); }
.parameter-review-modal form { max-height: min(88vh, 900px); overflow-y: auto; }
.parameter-review-content { display: grid; gap: 14px; min-height: 180px; margin-top: 16px; }
.parameter-review-content.loading { place-items: center; color: var(--muted); }
.parameter-review-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; }
.parameter-review-meta div { min-width: 0; }
.parameter-review-meta dt { color: var(--muted); font-size: 9px; }
.parameter-review-meta dd { margin: 4px 0 0; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.parameter-review-meta .parameter-review-hash { font-family: Consolas, monospace; font-size: 9px; font-weight: 400; }
.parameter-review-relations, .parameter-review-set { display: grid; gap: 10px; }
.parameter-review-set { padding-top: 3px; }
.parameter-review-set > h3 { margin: 0; color: #244f82; font-size: 13px; }
.parameter-review-relation { padding: 13px; border: 1px solid #d9e2ef; border-radius: 10px; background: #fff; }
.parameter-review-relation h3, .parameter-review-relation h4 { margin: 0; font-size: 12px; }
.parameter-review-relation > p { margin: 4px 0 10px; font-size: 9px; }
.parameter-value-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.parameter-value { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 10px; margin: 0; padding: 10px; border-radius: 8px; background: #f5f8fc; }
.parameter-value .parameter-value-title { grid-column: 1 / -1; color: #155eb5; font-size: 10px; font-weight: 800; }
.parameter-value dt { color: var(--muted); font-size: 8px; }
.parameter-value dd { margin: 2px 0 0; font-family: Consolas, monospace; font-size: 9px; overflow-wrap: anywhere; }
.parameter-review-confirm { display: flex !important; align-items: flex-start; gap: 9px; margin: 16px 0 0 !important; padding: 12px; border-radius: 9px; background: #eef5ff; color: #274f7d; font-size: 11px; line-height: 1.5; }
.parameter-review-confirm input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.parameter-review-modal .primary-button { margin-top: 13px; }
.toast { position: fixed; right: 24px; bottom: 64px; max-width: 360px; padding: 12px 16px; border-radius: 9px; background: #172a44; color: #fff; box-shadow: var(--shadow); z-index: 50; font-size: 12px; }
.update-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 9px 12px 9px 16px; border-radius: 9px; background: #173d6b; color: #fff; box-shadow: var(--shadow); font-size: 12px; }
.update-banner button { margin-left: 10px; border: 0; border-radius: 6px; padding: 5px 9px; background: #fff; color: #173d6b; }

@media (max-width: 1220px) {
  .admin-primary-actions { grid-template-columns: 1fr; }
  .admin-primary-card { min-height: 0; display: grid; grid-template-columns: 44px 1fr 190px; align-items: center; gap: 14px; }
  .admin-step-number, .admin-primary-card .primary-button { margin: 0; }
  .admin-overview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-publish-flow { align-items: flex-start; flex-direction: column; }
  .admin-publish-flow p { max-width: none; text-align: left; }
  .admin-layout { grid-template-columns: 1fr; }
  .parameter-admin-layout { grid-template-columns: 1fr; }
  .audit-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1100px) {
  .task-layout { grid-template-columns: 1fr; }
  .recent-column { order: -1; }
  .sticky-panel { position: static; }
  .task-list { min-height: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .task-card { border-bottom: 0; border-right: 1px solid var(--line); }
  .results-grid, .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .task-type-selector { grid-template-columns: 1fr; }
  .prediction-summary { grid-template-columns: 1fr; }
  .prediction-summary-evidence { padding: 12px 0 0; border-top: 1px solid #cbdcff; border-left: 0; }
  .prediction-header-actions { max-width: 310px; }
}

@media (max-width: 760px) {
  .admin-desktop-blocker { min-height: 100dvh; display: block; padding: 0; background: #fff; }
  .admin-desktop-brand { min-height: 190px; padding: max(28px,env(safe-area-inset-top)) 22px 28px; border-radius: 0; }
  .admin-desktop-brand img { width: min(280px,82vw); }
  .admin-desktop-blocker article { padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; box-shadow: none; }
  .admin-desktop-blocker h1 { font-size: 24px; }
  .auth-screen { min-height: 100dvh; display: block; padding: 0; background: #f4f7fb; }
  .auth-brand { padding: max(24px,env(safe-area-inset-top)) 22px 25px; background: var(--navy); }
  .auth-brand img { width: min(250px,76vw); }
  .auth-brand div { margin-top: 18px; }
  .auth-brand b { font-size: 23px; }
  .auth-brand small { margin-top: 6px; font-size: 13px; }
  .auth-card { margin: -1px 0 0; padding: 25px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: none; }
  .auth-card h1 { font-size: 24px; }
  .auth-card input { height: 52px; font-size: 16px; }
  .auth-card .primary-button { min-height: 52px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .workspace { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
  .topbar { height: auto; min-height: 78px; padding: 10px 15px; background: var(--navy); color: #fff; position: sticky; }
  .connection-banner { top: 78px; align-items: stretch; flex-direction: column; gap: 8px; padding: 11px 12px; }
  .connection-banner .action-button { width: 100%; min-height: 44px; }
  .mobile-brand { display: block; width: 138px; }
  .mobile-brand img { display: block; width: 100%; height: auto; }
  .topbar-copy { display: none; }
  .account { margin-left: auto; }
  .avatar { width: 34px; height: 34px; background: #173e6a; color: #fff; }
  .account b { display: none; }
  .account small { color: #b3c6de; }
  main { padding: 14px 12px 22px; }
  body.employee-session .scope-notice { display: none; }
  body.employee-session .task-type-selector { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body.employee-session .type-card { min-height: 68px; gap: 8px; padding: 9px; }
  body.employee-session .type-mark { min-width: 34px; width: 34px; height: 34px; border-radius: 8px; font-size: 8px; }
  body.employee-session .type-card b { font-size: 11px; }
  body.employee-session .type-card small { display: none; }
  body.employee-session #view-new .recent-column { display: none; }
  body.employee-session .form-column { gap: 12px; }
  body.employee-session .form-column .panel { padding: 15px; }
  body.employee-session .panel-heading { margin-bottom: 13px; }
  body.employee-session .panel-heading h2 { font-size: 15px; }
  body.employee-session .archive-support { margin-top: 9px; padding: 9px 10px; }
  body.employee-session .task-more-options { margin-top: 11px; }
  .prediction-workspace-header { flex-direction: column; gap: 14px; padding: 18px 16px; }
  .prediction-workspace-header h2 { font-size: 19px; }
  .prediction-header-actions { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prediction-header-actions .status-pill { grid-column: 1 / -1; justify-self: start; }
  .prediction-header-actions .action-button { width: 100%; min-height: 44px; }
  .prediction-header-actions #closePrediction { grid-column: 1 / -1; }
  .prediction-flow { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; padding: 16px; }
  .prediction-flow li:not(:last-child)::after { display: none; }
  .prediction-content { padding: 16px; }
  .prediction-file-card { padding: 14px; }
  .prediction-file-header, .prediction-file-recommendation { flex-direction: column; }
  .prediction-file-header h3 { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .prediction-confirm-actions { grid-template-columns: 1fr; }
  .prediction-confirm-actions .primary-button,
  .prediction-confirm-actions .action-button { width: 100%; min-height: 48px; }
  .scope-notice { line-height: 1.6; }
  .form-column .panel { padding: 16px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading p { display: none; }
  .drop-zone { min-height: 164px; }
  .drop-zone strong { max-width: 100%; padding: 0 10px; text-align: center; }
  .drop-zone small { max-width: 100%; padding: 0 10px; text-align: center; line-height: 1.55; }
  .wechat-file-tip { display: block; }
  .desktop-only { display: none; }
  .mobile-only { display: inline; }
  .field-grid, .direction-box > div { grid-template-columns: 1fr; }
  .parameter-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .task-list { grid-template-columns: 1fr; }
  .task-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .task-telemetry { font-size: 11px; }
  .task-table-wrap { overflow: hidden; }
  .task-table-desktop { display: none; }
  .task-cards-mobile { display: block; }
  .recent-column { order: 0; }
  .results-grid, .project-grid { grid-template-columns: 1fr; }
  .result-actions { grid-template-columns: 1fr; }
  .result-actions .primary-button { grid-column: auto; }
  .result-actions .primary-button, .result-actions .action-button { min-height: 46px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-detail-card { grid-row: auto; }
  .account-actions { display: grid; grid-template-columns: 1fr; }
  .account-actions .action-button { min-height: 46px; }
  .admin-layout { grid-template-columns: 1fr; }
  .create-account-card { padding: 16px; }
  .fixed-assignment { grid-template-columns: 1fr; }
  .project-check-list { grid-template-columns: 1fr; }
  .accounts-table-desktop { display: none; }
  .accounts-cards-mobile { display: block; }
  .parameter-upload-card { padding: 16px; }
  .quick-parameter-grid { grid-template-columns: 1fr; }
  .quick-parameter-grid label.wide { grid-column: auto; }
  .parameter-admin-notice { padding: 13px; }
  .parameter-drafts-table-desktop { display: none; }
  .parameter-drafts-cards-mobile { display: block; }
  .parameter-draft-actions .draft-action-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .parameter-draft-actions .action-button { min-height: 44px; }
  .parameter-review-meta, .parameter-value-pair { grid-template-columns: 1fr; }
  .parameter-value { grid-template-columns: 1fr; }
  .parameter-value .parameter-value-title { grid-column: auto; }
  .permission-flow { grid-template-columns: 1fr; }
  .permission-flow i { transform: rotate(90deg); text-align: center; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: calc(42px + env(safe-area-inset-bottom)); min-height: 61px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); z-index: 12; }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #728096; font-size: 10px; }
  .mobile-nav button span { font-size: 19px; line-height: 1; }
  .mobile-nav button.active { color: var(--blue); font-weight: 700; }
  .diagnostic-footer { left: 0; min-height: calc(42px + env(safe-area-inset-bottom)); padding: 0 10px env(safe-area-inset-bottom); z-index: 13; }
  .diagnostic-footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .diagnostic-footer .product-version { flex: 0 0 auto; }
  .view-heading { align-items: center; }
  .view-heading h2 { font-size: 19px; }
  .modal form { padding: 23px 18px; }
  .mobile-access-content { grid-template-columns: 1fr; text-align: center; }
  .mobile-access-content img { margin: 0 auto; }
  .toast { left: 16px; right: 16px; bottom: calc(116px + env(safe-area-inset-bottom)); }
}
