@font-face {
  font-family: "Desk Display";
  src: url("assets/desk-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* Screen styles shared by the print, advertising and partner workspaces. */
:root {
  --font-ui: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Desk Display", var(--font-ui);
  --canvas: #f1f6fb;
  --surface: #ffffff;
  --surface-tint: #f4f8fc;
  --line: #dce6f1;
  --control-line: #71879c;
  --ink: #182e47;
  --muted: #4b6279;
  --blue: #2466a1;
  --blue-hover: #194f82;
  --blue-soft: #e5effb;
  --focus: #1f629e;
  --nav-bg: var(--surface);
  --nav-ink: var(--ink);
  --nav-muted: var(--muted);
  --nav-edge: var(--line);
  --proof-blue: #dfedf9;
  --proof-bright: var(--blue);
  --proof-fg: var(--ink);
  --proof-muted: #46627e;
  --proof-mark: #a6d3ee;
  --chart-blue: #2466a1;
  --chart-teal: #157168;
  --success-bg: #def5ec;
  --success-ink: #116146;
  --warning-bg: #fff0ce;
  --warning-ink: #704a12;
  --danger-bg: #ffe7ec;
  --danger-ink: #a12547;
  --dash-bg: var(--canvas);
  --dash-surface: var(--surface);
  --dash-line: var(--line);
  --dash-ink: var(--ink);
  --dash-muted: var(--muted);
  --dash-mint: var(--success-ink);
  --dash-amber: var(--warning-ink);
  --dash-rose: var(--danger-ink);
  --radius-panel: 14px;
  --radius-control: 8px;
  --max-work: 1680px;
  --el-bg-color: var(--surface);
  --el-bg-color-overlay: var(--surface);
  --el-fill-color-light: var(--surface-tint);
  --el-border-color-light: var(--line);
  --el-text-color-placeholder: var(--muted);
  --el-color-primary-light-3: #3877ad;
  --el-color-primary-light-5: #739dc6;
  --el-color-primary-light-7: #a9c6e2;
  --el-color-primary-light-8: #c9dcf0;
  --el-color-primary-light-9: var(--blue-soft);
}
html { color-scheme: light; scrollbar-color: var(--control-line) var(--canvas); }
::selection { background: var(--blue-soft); color: var(--ink); }
button, select, input, textarea { accent-color: var(--blue); }
button:disabled, select:disabled { cursor: not-allowed; }
.el-button:focus-visible, .pf-root button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pf-root .pf-sr { padding: 0; white-space: nowrap; clip-path: inset(50%); }
.pf-root .pf-feedback { border-radius: var(--radius-control); }
.desk-text-button {
  border: 0;
  padding: 8px 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.demo-controls { display: grid; gap: 6px; }
.demo-controls .el-button + .el-button { margin-left: 0; }

@media screen {
  .print-desk {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    height: 100%;
  }
  .print-desk > .body { display: contents; }
  .print-desk > .topbar {
    grid-area: 1 / 2;
    min-height: 62px;
    padding: 10px clamp(20px, 3.1vw, 46px);
    color: var(--ink);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .print-desk .side {
    grid-area: 1 / 1 / 3 / 2;
    display: flex;
    width: auto;
    flex-direction: column;
    min-height: 0;
    padding: 16px 13px 14px;
    border-inline-end: 1px solid var(--nav-edge);
    color: var(--nav-ink);
    background: var(--nav-bg);
    scrollbar-color: var(--control-line) var(--nav-bg);
  }
  .print-desk .main {
    grid-area: 2 / 2;
    --main-gutter-y: 26px;
    padding: var(--main-gutter-y) clamp(20px, 3.1vw, 46px) 48px;
  }
  .print-desk .main:focus { outline-offset: -3px; }
  .print-desk .topbar :focus-visible { outline-color: var(--focus); }
  .print-desk .topbar .who { color: var(--ink); }
  .print-desk .topbar .demo-autoplay {
    color: var(--blue-hover);
    background: var(--blue-soft);
    border-color: transparent;
  }
  .print-desk .topbar .demo-autoplay:hover:not(:disabled) { background: var(--blue); color: var(--surface); }
  .top-context { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
  .top-context span { padding: 3px 9px; border-radius: 6px; background: var(--surface-tint); color: var(--muted); font-size: 12px; }
  .print-desk .bell { color: var(--blue); }
  .print-desk .bell:hover { color: var(--blue-hover); background: var(--blue-soft); }
  .print-desk .bell-n { background: var(--blue); color: var(--surface); }
  .print-desk .account-select select {
    min-height: 34px;
    background: var(--surface);
    border: 1px solid var(--control-line);
    color: var(--ink);
    max-width: 230px;
    width: auto;
  }
  .print-desk .account-select option { color: var(--ink); background: var(--surface); }
  .main .el-input {
    --el-input-placeholder-color: var(--muted);
    --el-input-border-color: var(--control-line);
  }
  .main .el-tag.el-tag--success {
    --el-tag-text-color: var(--success-ink);
    --el-tag-bg-color: var(--success-bg);
    --el-tag-border-color: var(--success-bg);
  }
  .main .el-tag.el-tag--info {
    --el-tag-text-color: var(--muted);
    --el-tag-bg-color: var(--surface-3, var(--surface-tint));
    --el-tag-border-color: var(--el-tag-bg-color);
  }
  .main .el-tag.el-tag--warning {
    --el-tag-text-color: var(--warning-ink);
    --el-tag-bg-color: var(--warning-bg);
    --el-tag-border-color: var(--warning-bg);
  }
  .station-brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 21px; }
  .station-brand strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
  .station-brand div > span { display: block; color: var(--nav-muted); font-size: 12px; }
  .press-mark {
    position: relative;
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--blue);
  }
  .press-mark::before, .press-mark::after {
    position: absolute;
    content: "";
    width: 13px;
    height: 17px;
    transform: skew(-10deg);
  }
  .press-mark::before { inset: 7px auto auto 9px; background: var(--proof-mark); }
  .press-mark::after { inset: 10px auto auto 13px; background: var(--surface); }
  .nav-groups { display: grid; align-content: start; gap: 17px; flex: 1; }
  .rail-group h2 {
    overflow: visible;
    margin: 0 0 4px 11px;
    color: var(--nav-muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .08em;
  }
  .rail-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 37px;
    margin: 2px 0;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    color: var(--nav-ink);
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }
  .rail-link:hover { background: var(--surface-tint); }
  .rail-link[aria-current="page"] {
    border-color: var(--blue-soft);
    color: var(--blue-hover);
    background: var(--blue-soft);
    font-weight: 700;
  }
  .rail-link:focus-visible { outline-offset: 1px; }
  .rail-footer {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 16px 9px 0;
    padding-top: 12px;
    border-top: 1px solid var(--nav-edge);
    color: var(--nav-muted);
    font-size: 11px;
  }
  .rail-footer::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }

  .page-title, .dash-title, .job-content h1 {
    font-size: clamp(27px, 2.7vw, 38px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.02em;
  }
  .page-title, .dash-title { margin: 0 0 18px; }
  :is(.page-title,.dash-title,.pf-edit-sheet .pf-sheet-top h1) { font-family: var(--font-display); font-weight: 800; }
  .screen-head, .dash-head { align-items: flex-end; gap: 14px; margin-bottom: 21px; }
  .screen-meta { margin-top: 8px; color: var(--muted); font-size: 13px; }
  .screen-actions .el-button { min-height: 39px; padding-inline: 15px; font-weight: 650; }
  .card, .job-content .pf-panel, .job-content .pf-sheet, .pf-record-head {
    padding: clamp(14px, 2vw, 24px);
    margin-bottom: 18px;
  }
  .card > h3, .job-content .pf-section > h3 { color: var(--ink); font-size: 17px; }
  .cell-meta { display: block; padding: 0; margin: 2px 0 0; color: var(--muted); font-size: 12px; }

  .workbench-head .page-title { font-size: clamp(29px, 3vw, 38px); letter-spacing: -.02em; }
  .mobile-route,.mobile-tools { display: none; }
  .workbench-head .screen-meta { margin-top: 5px; }
  .workbench-head .screen-actions .el-button { min-height: 42px; }
  .focus-station {
    container: priority / inline-size;
    margin-block-end: 22px;
    border-radius: var(--radius-panel);
    color: var(--proof-fg);
    background: var(--proof-blue);
  }
  .focus-layout { display: grid; min-width: 0; }
  .focus-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    min-width: 0;
    padding: clamp(16px, 2vw, 25px);
  }
  .focus-copy h2 {
    margin: 0;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 750;
    line-height: 1.17;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }
  .focus-action { margin: 9px 0 0; font-size: 15px; font-weight: 650; }
  .focus-order { margin: 4px 0 0; color: var(--proof-muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .focus-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 13px; }
  .focus-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    min-height: 44px;
    padding: 8px 13px;
    border: 0;
    border-radius: var(--radius-control);
    color: var(--surface);
    background: var(--proof-bright);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
  }
  .focus-button:hover { background: var(--blue-hover); }
  .focus-button:focus-visible { outline-color: var(--proof-fg); outline-offset: 4px; }
  @media (forced-colors: active) {
    .focus-button { border: 1px solid ButtonText; }
    .focus-button:focus-visible { outline-color: Highlight; }
    .rail-link[aria-current="page"] { border-color: Highlight; }
  }
  .forward-arrow {
    display: inline-block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-block-start: 1.5px solid currentColor;
    border-inline-end: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .focus-due { display: grid; gap: 1px; margin: 0; color: var(--proof-muted); font-size: 12px; }
  .focus-due time { color: var(--proof-fg); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .focus-late span { color: var(--danger-ink); }
  .focus-visual {
    position: relative;
    display: none;
    overflow: hidden;
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
    background: var(--proof-blue);
  }
  .focus-visual .proof-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
  }
  @container priority (min-width: 43rem) {
    .focus-layout { grid-template-columns: minmax(0,1fr) minmax(160px,25%); }
    .focus-visual { display: block; border-radius: 0 var(--radius-panel) var(--radius-panel) 0; }
  }
  .production-block {
    container: production / inline-size;
    margin-block-end: 18px;
    padding: 15px clamp(13px, 1.7vw, 22px) 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface);
  }
  .production-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 11px; }
  .production-title > span { color: var(--muted); font-size: 12px; }
  .late-link, .scope-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    color: var(--danger-ink);
    background: var(--danger-bg);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .late-link:hover, .scope-filter:hover { text-decoration: underline; text-underline-offset: 3px; }
  .scope-filter { color: var(--blue-hover); background: var(--blue-soft); }
  .ledger-delivery {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 8px;
    color: var(--muted);
    font-size: 13px;
  }
  .ledger-delivery select {
    max-width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--control-line);
    border-radius: var(--radius-control);
    color: var(--ink);
    background: var(--surface);
    font: inherit;
  }
  .ledger-delivery-note { word-break: keep-all; }
  @media (pointer: coarse) {
    .ledger-delivery select { min-height: 48px; font-size: 1rem; }
  }
  .filter-clear { display: inline-grid; place-items: center; width: 10px; height: 10px; }
  .filter-clear::before, .filter-clear::after { content: ""; grid-area: 1 / 1; width: 9px; height: 1px; background: currentColor; }
  .filter-clear::before { transform: rotate(45deg); }
  .filter-clear::after { transform: rotate(-45deg); }
  .process-rail {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .process-rail li { min-width: 0; grid-column: span 2; }
  .process-rail li:nth-last-child(-n+2) { grid-column: span 3; }
  .process-rail button {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 7px 9px;
    align-items: baseline;
    width: 100%;
    min-height: 46px;
    padding: 5px 8px 12px;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
  }
  .process-rail button:hover { color: var(--blue-hover); background: var(--blue-soft); }
  .process-rail button span { font-size: 13px; }
  .stage-count { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
  .stage-count .forward-arrow { width: 6px; height: 6px; flex-basis: 6px; }
  .process-rail strong {
    color: var(--blue);
    font: 800 25px/1.1 var(--font-display);
    font-variant-numeric: tabular-nums;
  }
  .process-rail .stage-empty { color: var(--muted); }
  .process-rail i {
    position: relative;
    grid-column: 1 / -1;
    width: calc(100% + 16px);
    height: 1px;
    margin-inline: -8px;
    background: var(--line);
  }
  .process-rail i::before { content: ""; position: absolute; inset: -3px auto auto 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
  .process-rail button:has(.stage-empty) i::before { background: var(--control-line); }
  @container production (max-width: 18rem) {
    .process-rail button { gap: 7px 4px; padding-inline: 4px; }
    .process-rail button > span { font-size: 12px; }
    .process-rail i { width: calc(100% + 8px); margin-inline: -4px; }
    .process-rail i::before { inset-inline-start: 4px; }
  }
  @container production (min-width: 43rem) {
    .process-rail { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .process-rail li, .process-rail li:nth-last-child(-n+2) { grid-column: auto; }
    .process-rail button { padding-inline: 10px; }
    .process-rail i { width: calc(100% + 20px); margin-inline: -10px; }
    .process-rail i::before { inset-inline-start: 10px; }
  }
  .production-summary { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: baseline; margin: 0; padding: 8px 0 12px; color: var(--muted); font-size: 12px; }
  .production-summary b { color: var(--ink); font-variant-numeric: tabular-nums; }
  .is-late { color: var(--danger-ink); font-weight: 650; }
  .needs-attention { color: var(--warning-ink); }
  .workbench-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .workbench-grid.has-side-column { grid-template-columns: minmax(0, 1fr) minmax(272px, .48fr); }
  .workbench-ledger, .workbench-side { min-width: 0; }
  .board-heading {
    display: flex;
    min-height: 34px;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
  }
  .board-heading h2 { margin: 0; font-size: 18px; font-weight: 700; }
  .board-heading > span { color: var(--muted); font-size: 12px; }
  .action-list { padding: 0; margin: 0; list-style: none; }
  .action-list > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 10px 16px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }
  .action-desc { display: grid; }
  .action-desc strong { font-size: 15px; }
  .action-desc span { color: var(--blue-hover); }
  .action-desc small, .action-due { font-size: 12px; font-variant-numeric: tabular-nums; }
  .action-desc small, .action-due:not(.is-late) { color: var(--muted); }
  .recent-jobs { margin-top: 0; }
  .recent-job { grid-template-columns: auto minmax(0, 1fr) 15px; gap: 11px; padding-block: 11px; }
  .recent-job :where(strong,small) { overflow-wrap: anywhere; }
  .recent-job .forward-arrow { justify-self: center; color: var(--blue); }
  .work-kind { padding: 3px 7px; border-radius: 5px; color: var(--blue-hover); background: var(--blue-soft); white-space: nowrap; font-size: 12px; }
  .kind-ad { color: var(--success-ink); background: var(--success-bg); }
  .desk-projects { padding: clamp(14px, 2vw, 24px); margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--blue-soft); }
  .project-peek { display: grid; gap: 9px; width: 100%; min-width: 0; padding: 9px 0; border: 0; color: var(--ink); background: transparent; font: inherit; text-align: start; cursor: pointer; }
  .project-peek + .project-peek { margin-top: 7px; border-top: 1px solid var(--line); }
  .project-peek:hover .project-peek-title { text-decoration: underline; text-underline-offset: 3px; }
  .project-peek-title { overflow-wrap: anywhere; font-weight: 750; }
  :is(.project-peek,.project-health,.pf-project-node) progress {
    display: block;
    width: 100%;
    height: 7px;
    appearance: none;
    border: 0;
    border-radius: 4px;
    background: var(--line);
  }
  :is(.project-peek,.project-health,.pf-project-node) progress::-webkit-progress-bar { border-radius: 4px; background: var(--line); }
  :is(.project-peek,.project-health,.pf-project-node) progress::-webkit-progress-value { border-radius: 4px; background: var(--blue); }
  :is(.project-peek,.project-health,.pf-project-node) progress::-moz-progress-bar { border-radius: 4px; background: var(--blue); }
  .project-peek-info { display: flex; justify-content: space-between; gap: 9px; color: var(--muted); }
  .project-peek-info strong { color: var(--blue); font: 800 18px/1.2 var(--font-display); }
  .notice { color: var(--warning-ink); background: var(--warning-bg); border-color: #ead5b4; border-radius: var(--radius-control); }

  .job-content .pf-crumb { margin: -5px 0 9px; }
  .job-content .pf-crumb .pf-link { padding-left: 0; }
  .job-content .pf-record-facts { margin: 15px 0 0; gap: 10px 29px; }
  .job-content .pf-record-facts div { min-width: 0; }
  .job-content .pf-record-head { position: relative; border-block-start: 3px solid var(--blue); }
  .job-next { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; margin-block:15px 8px; padding:13px 16px; border-radius:var(--radius-control); background:var(--surface-tint); }
  .job-next > div { display:grid; gap:3px; min-width:0; }
  .job-next small, .job-next span { color:var(--muted); font-size:13px; }
  .job-next strong { font-size:18px; overflow-wrap:anywhere; }
  .job-task-list { display:grid; gap:0; margin:0; padding:0; list-style:none; }
  .job-task-list li { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 0; border-bottom:1px solid var(--line); }
  .job-task-list small { display:block; color:var(--muted); }
  .record-options > summary { color:var(--blue-hover); font-weight:600; cursor:pointer; padding-block:9px; }
  .ad-line-tools { flex-wrap:wrap; }
  .job-content .pf-edit-sheet .pf-section { margin-block:15px; }
  .job-content .pf-edit-sheet .pf-advanced { margin-block:7px; padding:7px 11px; }
  .job-content .pf-edit-sheet .pf-advanced summary { padding:3px 0; }
  .record-path {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,205px),1fr));
    gap: 0 12px;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface-tint);
  }
  .record-path-stop { min-width: 0; display: grid; align-content: start; justify-items: start; gap: 6px; padding: 12px 16px; }
  .record-path-stop > span { font-size: 13px; color: var(--blue-hover); font-weight: 700; }
  .record-path-stop .pf-link { padding-inline: 0; }
  .record-link { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
  .record-path-stop button { justify-self: start; }
  .pf-root .pf-state { border-radius: 6px; font-size: 12px; padding: 3px 8px; }
  .pf-root .pf-state-sent { color: var(--blue-hover); background: var(--blue-soft); }
  .pf-root .pf-state-working { color: var(--warning-ink); background: var(--warning-bg); }

  .job-content .pf-sheet-top { margin-bottom: 22px; padding-bottom: 17px; }
  .job-content .pf-edit-sheet .pf-sheet-top { padding-block: 7px 17px; border-bottom: 2px solid var(--blue); }
  .job-content .pf-section { margin: 22px 0; }
  .job-content .pf-section h3 { margin: 0 0 10px; }
  .job-content .pf-fields { gap: 13px 16px; }
  .job-content .pf-sheet .pf-fields:has(.pf-value) {
    padding: 13px 14px;
    border-radius: var(--radius-control);
  }
  .job-content .pf-field { gap: 5px; }
  .job-content .pf-field > span:first-child { font-weight: 550; }
  .job-content .pf-checks {
    padding: 8px 11px;
    margin: 0;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-tint);
  }
  .job-content .pf-checks label { min-height: 32px; padding: 0 4px; }
  .job-content .pf-advanced {
    margin-block: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    padding: 10px 12px;
  }
  .job-content .pf-advanced summary { color: var(--blue-hover); font-weight: 650; cursor: pointer; }
  .job-content .pf-advanced[open] summary { margin-bottom: 12px; }
  .job-content .pf-table-scroll { border-radius: var(--radius-control); }
  .job-content .pf-table-scroll :is(.pf-grid,.pf-simple) :is(th,td) { padding-block: 8px; }
  .job-content .pf-table-scroll .pf-grid:has(input) { table-layout: fixed; min-width: var(--sheet-table-width, 500px); }
  .job-content .pf-table-scroll .pf-grid th:first-child { width: 33px; }
  .job-content .pf-table-scroll .pf-grid th:last-child:not(.wide) { width: 52px; }
  .job-content .pf-table-scroll .pf-grid .tiny { width: 64px; }
  .job-content .pf-table-scroll .pf-grid .small { width: 86px; }
  .job-content .pf-table-scroll .pf-grid .wide { width: 145px; }
  .job-content .pf-table-scroll .pf-grid :is(input,select) { min-width: 68px; }
  .job-content .pf-table-scroll .pf-grid .tiny :is(input,select) { min-width: 54px; }
  .job-content .pf-table-scroll .pf-grid .wide :is(input,select) { min-width: 125px; }
  .job-content .pf-basic-items .pf-grid th.wide { width:23%; }
  .job-content .pf-basic-items .pf-grid th.wide:nth-child(3) { width:29%; }
  .job-content .pf-fill-line { padding: 13px; border-radius: var(--radius-control); }
  .job-content .out-source-tools { align-items: end; }
  .out-source-tools .pf-field { flex: 1 1 16rem; min-width: 0; }
  .out-source-tools :is(select, button) { min-height: 38px; }
  .out-source-tools .pf-sub { flex: 1 0 100%; color: var(--muted); }
  .pf-source-reference { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
  .pf-milestones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 146px), 1fr));
    gap: 12px 16px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-tint);
  }
  .pf-milestones dt { color: var(--ink); font-weight: 650; }
  .pf-milestones dd { display: grid; gap: 2px; margin: 2px 0 0; color: var(--muted); }
  .pf-milestones dd strong { font-size: 13px; }
  .pf-milestones .is-recorded { color: var(--success-ink); }
  .pf-work-check { display: grid; gap: 4px; margin: 12px 0; }
  .pf-delivery .pf-node-head { align-items: start; flex-wrap: wrap; }
  .pf-delivery-list .pf-state { margin-inline-start: 0; }
  .pf-delivery-list p, .pf-delivery-records dd { overflow-wrap: anywhere; }
  .pf-delivery-list details { margin-block: 6px 0; }
  .pf-delivery-records { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 8px 0; }
  .pf-delivery-records dt { color: var(--muted); }
  .pf-delivery-records dd { margin: 0; }
  .pf-delivery .pf-report-form { background: var(--surface-tint); border-radius: var(--radius-control); padding: 14px; }
  .pf-delivery .pf-field label, .pf-delivery-scope legend { color: var(--ink); font-weight: 600; }
  .pf-delivery textarea { font: inherit; font-size: max(1rem, 1em); resize: vertical; }
  .pf-delivery-scope { border: 1px solid var(--line); border-radius: var(--radius-control); margin: 0; padding: 6px 12px; min-inline-size: 0; }
  .pf-delivery-scope div { display: flex; align-items: center; gap: 8px; }
  .pf-delivery-scope label { display: flex; align-items: center; min-height: 40px; }
  .pf-delivery-scope input[type='radio'] { min-height: auto; inline-size: 1rem; block-size: 1rem; accent-color: var(--brand); }
  @media (pointer: coarse) {
    .pf-delivery-scope label, .pf-delivery button { min-height: 48px; }
  }
  .job-content .pf-form-actions { margin-bottom: 0; }
  .job-content .pf-center-group { border-radius: var(--radius-panel); }
  .job-content .pf-center-summary h3 { padding-block: 10px; }
  .job-content .pf-center-role .pf-fields { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .job-content .pf-center-summary .pf-trail > li:first-child { border-top: 0; }
  .pf-root .project-setup-fields, .pf-root .team-task-fields { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, .9fr)); }
  .project-setup .pf-sub { margin-top: 12px; }
  .team-editor {
    display: grid;
    gap: 12px;
    padding: clamp(12px, 1.6vw, 20px);
    margin-bottom: 18px;
    border-radius: var(--radius-control);
    background: var(--surface-tint);
  }
  .member-picker {
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
  }
  .member-picker legend { padding-inline: 5px; color: var(--ink); font-weight: 650; }
  .member-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,152px),1fr)); gap: 6px 8px; }
  .member-option {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    cursor: pointer;
  }
  .member-option:has(input:checked) { background: var(--blue-soft); border-color: var(--focus); }
  .member-option input { flex: 0 0 auto; }
  .member-option small { display: block; color: var(--muted); font-size: 11px; }
  .pf-root .team-editor .pf-actions { margin: 0; }
  .team-editor > .pf-field:has(select) { max-width: 300px; }
  .project-board { container: project / inline-size; }
  .project-record { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px 26px; }
  .project-record-actions { margin-top: 18px; }
  .project-health {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 12px 16px;
    border-radius: var(--radius-control);
    color: var(--muted);
    background: var(--blue-soft);
    font-size: 13px;
  }
  .project-health strong { color: var(--blue); font: 800 36px/1.15 var(--font-display); }
  .project-health progress { margin: 2px 0 4px; }
  @container project (min-width: 43rem) {
    .project-record { grid-template-columns: minmax(0,1fr) minmax(182px,.34fr); }
  }
  .pf-project-node .pf-node-head { align-items: start; }
  .team-percent { font-size: 21px; color: var(--blue-hover); }
  .pf-root .team-plan { margin: 4px 0 10px; }
  .team-people { display: flex; margin: 0 0 8px; gap: 8px 24px; flex-wrap: wrap; }
  .team-people div { display: flex; gap: 7px; align-items: baseline; }
  .team-people dt, .project-trail time, .project-trail small { color: var(--muted); font-size: 12px; }
  .team-people dd { margin: 0; }
  .project-trail li > div { display: flex; gap: 12px; justify-content: space-between; }
  .project-trail li > :is(p,small) { overflow-wrap: anywhere; }
  .directory-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
  .directory-table caption { text-align: left; font-size: 18px; font-weight: 700; padding: 0 0 12px; }
  .directory-table :is(td,th) { padding: 9px 10px; border-bottom: 1px solid var(--line); }
  .directory-table thead { background: var(--surface-tint); color: var(--muted); }
  .directory-table th[scope="row"] { font-weight: 650; }
  .directory-table tbody + tbody { border-top: 2px solid var(--control-line); }
  .directory-table td:last-child { white-space: nowrap; }

  .dash-head { padding-top: 0; }
  .dash-title { margin-bottom: 5px; }
  .dash-title-wrap { flex: 1; }
  .dash-time { margin: 0; }
  .dash-kpis { gap: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
  .dash-kpis .dk { padding: 15px 14px; border: 0; border-radius: 0; background: transparent; }
  .dash-kpis .dk + .dk { border-inline-start: 1px solid var(--line); }
  .dash-kpis .dv { font: 800 clamp(19px, 2vw, 29px)/1.24 var(--font-display); }
  .dash-kpis .dk-lead { border-radius: var(--radius-panel) 0 0 var(--radius-panel); background: var(--proof-blue); }
  .dash-kpis .dk-lead .dv { color: var(--proof-fg); }
  .dash-kpis .dk-lead .dl { color: var(--proof-muted); }
  .dash-card { padding: clamp(12px, 1.6vw, 20px); }
  .dash-card .el-table {
    --el-table-bg-color: var(--surface);
    --el-table-tr-bg-color: var(--surface);
    --el-table-header-bg-color: var(--surface-tint);
    --el-table-text-color: var(--ink);
    --el-table-header-text-color: var(--muted);
  }
  .buttons-mobile, .m-btn { font-family: inherit; }
  .shop-page .action-list > li:first-child { border-top: 0; }
  .gantt { overflow-x: auto; }
  .hbar .track div, .bar .fill { background: var(--blue); }
  .bar .fill.cur { background: var(--success-ink); }
  .fnode .ft, .action-box .title, .kd-t { color: var(--blue-hover); }
  .fnode .fs, .fnode .fw, .kd .k { color: var(--muted); }
  .flow-stage.s1, .flow-stage.s2, .flow-stage.s5 { color: var(--blue-hover); background: var(--proof-blue); }
  .flow-stage.s3, .flow-stage.s4 { color: var(--success-ink); background: var(--success-bg); }
  .flow-down { color: var(--blue); }
  .action-box { color: var(--ink); background: var(--surface-tint); border-color: var(--line); }
  .job-content .pf-report-form { padding: 12px; background: var(--surface-tint); border-radius: var(--radius-control); }

}

@media screen and (max-width: 1100px) {
  .print-desk { grid-template-columns: 186px minmax(0,1fr); }
  .workbench-grid.has-side-column { grid-template-columns: minmax(0,1fr) minmax(236px,.42fr); }
  .dash-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); overflow: hidden; }
  .dash-kpis .dk:nth-child(n+4) { border-top: 1px solid var(--line); }
  .dash-kpis .dk-lead { border-radius: 0; }
}

@media screen and (max-width: 850px) {
  .print-desk {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
  }
  .print-desk > .topbar { grid-area: 1 / 1; flex-wrap: wrap; min-height: 49px; padding: 8px 12px; gap: 7px; }
  .print-desk .side, .print-desk .topbar .top-context { display:none; }
  .print-desk .mobile-route { display:block; min-width:0; max-width:37vw; min-height:36px; padding:3px 5px; color:var(--blue-hover); background:var(--surface); border:1px solid var(--control-line); border-radius:var(--radius-control); font:inherit; font-weight:650; }
  .print-desk .main { grid-area: 2 / 1; --main-gutter-y: 17px; padding: 17px 13px 30px; }
  .station-brand, .rail-group h2, .rail-footer { display: none; }
  .nav-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
  .rail-group { display: contents; }
  .rail-link { width: auto; min-height: 40px; padding-inline: 9px; white-space: nowrap; font-size: 13px; }
  .print-desk .account-select select { max-width: min(41vw,220px); }
}
@media screen and (max-width: 620px) {
  .print-desk .topbar { column-gap:5px; padding-inline:8px; }
  .print-desk .topbar :is(.demo-autoplay,.desktop-signout) { display:none; }
  .print-desk .topbar .account-select { flex:1 1 0; min-width:0; }
  .print-desk .topbar .account-select select { width:100%; max-width:none; }
  .print-desk .topbar .mobile-route { width:26vw; }
  .mobile-tools { display:block; position:relative; }
  .mobile-tools summary { padding:8px; border:1px solid var(--line); border-radius:var(--radius-control); color:var(--blue-hover); cursor:pointer; }
  .mobile-tools > div { position:absolute; z-index:10; inset:calc(100% + 4px) 0 auto auto; display:grid; min-width:125px; padding:5px; background:var(--surface); border:1px solid var(--control-line); border-radius:var(--radius-control); }
  .mobile-tools button { min-height:40px; text-align:start; background:var(--surface); color:var(--ink); border:0; font:inherit; cursor:pointer; }
  .mobile-tools button:hover { background:var(--surface-tint); }
  .print-desk .topbar .spacer { display: none; }
  .top-context span { font-size: 11px; }
  .workbench-grid.has-side-column { grid-template-columns: minmax(0,1fr); gap: 0; }
  .workbench-head .screen-actions .el-button { min-height: 40px; padding-inline: 12px; }
  .workbench-head .page-title { font-size: 34px; }
  .production-block .board-heading { flex-wrap: wrap; gap: 5px 8px; }
  .screen-head, .dash-head { align-items: start; }
  .action-list > li { grid-template-columns: minmax(0,1fr) max-content; }
  .action-desc { grid-row: span 2; }
  .action-due { grid-column: 2; text-align: end; }
  .action-list .el-button { justify-self: end; min-height: 36px; }
  .job-content .pf-record-facts { gap: 9px 14px; }
  .job-content .pf-sheet-top :where(.pf-tools,.pf-actions) { gap: 6px; }
  .job-content .pf-table-scroll { margin-inline: 0; }
  .job-content .pf-item-table .pf-table-scroll { overflow:visible; }
  .job-content .pf-item-table .pf-table-scroll table.pf-grid { display:block; width:100%; min-width:0; }
  .pf-item-table .pf-grid thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .pf-item-table .pf-grid tbody { display:grid; gap:10px; }
  .pf-item-table .pf-grid tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 10px; padding:10px; border:1px solid var(--line); border-radius:var(--radius-control); }
  .job-content .pf-item-table .pf-table-scroll .pf-grid tbody td { display:grid; width:auto; min-width:0; padding:0; border:0; text-align:start; align-content:start; }
  .job-content .pf-item-table .pf-grid td.wide { grid-column:1 / -1; }
  .job-content .pf-item-table .pf-table-scroll .pf-grid td :is(input, select) { width:100%; min-width:0; }
  .pf-item-table td[data-label]::before { content:attr(data-label); display:block; color:var(--muted); font-size:13px; }
  .job-content .pf-item-table .pf-table-scroll .pf-grid .item-index { display:block; grid-area:1 / 1; color:var(--muted); }
  .pf-item-table .item-index::before { content:'明细 '; }
  .pf-item-table .item-remove { grid-area:1 / 2; justify-self:end; }
  .job-content .pf-fields, .pf-root .project-setup-fields, .pf-root .team-task-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pf-root :where(.project-setup-fields,.team-task-fields) > :first-child { grid-column: 1 / -1; }
  .record-path { grid-template-columns: minmax(0,1fr); }
  .record-path-stop + .record-path-stop { border-top: 1px solid var(--line); }
  .member-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dash-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dash-kpis .dk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .directory-table { min-width: 540px; }
  .shop-page .el-form-item__label { color: var(--muted); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .focus-visual .proof-photo { animation: proof-feed 620ms cubic-bezier(.17,.85,.23,1) both; }
}
@keyframes proof-feed {
  from { transform: translateX(1%) scale(1.06); }
  to { transform: translateX(0) scale(1); }
}
