@media screen {
  .print-desk .main:has(.notice-editor) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px clamp(14px, 2vw, 32px) 14px;
  }
  .print-desk .job-content:has(.notice-editor) {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    width: 100%;
  }
  .job-content:has(.notice-editor) > :is(.pf-crumb, .pf-feedback) { flex: none; }
  .job-content:has(.notice-editor) > .pf-crumb { margin: 0 0 5px; }
  .job-content:has(.notice-editor) > .pf-feedback { margin: 0 0 5px; padding-block: 4px; }
  .job-content .notice-editor {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    overflow: clip;
  }
  .notice-header {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-block-end: 1px solid var(--line);
  }
  .notice-heading { min-width: 0; display:flex; align-items:baseline; gap:12px; }
  .notice-heading h1 { flex:none; }
  .job-content .notice-header h1 {
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin: 0;
  }
  .notice-heading p {
    color: var(--muted);
    margin: 2px 0 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .notice-header .pf-tools { flex: none; }
  .notice-form, .notice-layout { flex: 1 1 0; min-height: 0; }
  .notice-form { display: flex; flex-direction: column; }
  .notice-layout { display: grid; grid-template-columns: 148px minmax(0, 1fr); }
  .notice-rail {
    min-height: 0;
    overflow: auto;
    padding: 16px 10px;
    background: var(--surface-tint);
    border-inline-end: 1px solid var(--line);
  }
  .notice-group + .notice-group { margin-block-start: 14px; }
  .notice-group-name { color: var(--muted); font-size: 13px; margin: 0 10px 4px; }
  .pf-root .notice-rail button {
    display: block;
    width: 100%;
    text-align: start;
    min-height: 33px;
    color: var(--ink);
    border: 1px solid transparent;
    background: transparent;
    font-weight: 500;
    padding: 4px 10px;
  }
  .pf-root .notice-rail button:hover { background: var(--blue-soft); color: var(--blue-hover); }
  .pf-root .notice-rail button[aria-selected="true"] {
    font-weight: 700;
    color: var(--blue-hover);
    background: var(--blue-soft);
    border-color: var(--control-line);
  }
  .notice-picker { display: none; }
  .notice-content {
    min-height: 0;
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: clamp(16px, 2vw, 30px);
  }
  .notice-content > section { max-width: 970px; margin: 0 auto 0 0; }
  .job-content .notice-content h2 { font-size: 22px; line-height: 1.35; margin: 0 0 17px; }
  .notice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 13px 20px; }
  .notice-grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .notice-line-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .notice-line-total { display:grid; align-content:start; gap:5px; font-size:13px; color:var(--muted); }
  .notice-line-total strong { color:var(--ink); font-size:18px; font-variant-numeric:tabular-nums; padding-block:5px; }
  .notice-span { grid-column: 1 / -1; }
  .notice-editor .pf-field { margin: 0; min-width: 0; }
  .notice-editor :is(input,select,textarea) { min-width: 0; max-width: 100%; }
  .notice-editor textarea { resize: vertical; }
  .pf-root .notice-order-note textarea {
    inline-size: 100%;
    block-size: auto;
    min-block-size: calc(4lh + 18px);
    max-block-size: calc(6lh + 18px);
  }
  @supports (field-sizing: content) {
    .pf-root .notice-order-note textarea {
      field-sizing: content;
      min-block-size: calc(2lh + 18px);
    }
  }
  .notice-editor .pf-value { min-height: 26px; overflow-wrap: anywhere; }
  .notice-spec-review, .notice-paper-spec, .notice-routes, .notice-amount { margin-block-start: 18px; }
  .notice-spec-review { border-block-start: 1px solid var(--line); padding-block-start: 12px; }
  .notice-spec-review > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .notice-spec-review h3 { font-size: 14px; margin: 0; }
  .notice-spec-review p { margin: 3px 0; font-variant-numeric: tabular-nums; }
  .notice-spec-review small { color: var(--muted); font-size: 13px; }
  .notice-routes { min-width: 0; padding: 0; margin-inline: 0; border: 0; }
  .notice-routes legend { font-weight: 700; padding: 0 0 4px; }
  .notice-routes > div { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: baseline; padding: 4px 0; border-block-start: 1px solid var(--line); }
  .notice-routes strong { font-size: 13px; color: var(--muted); }
  .notice-routes span { display: flex; flex-wrap: wrap; gap: 2px 15px; }
  .notice-routes label { min-height: 31px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
  .notice-routes input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
  .notice-switch { display: flex; gap: 3px; flex-wrap: wrap; border-block-end: 1px solid var(--line); margin: -4px 0 15px; }
  .pf-root .notice-switch button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 4px 10px; color: var(--muted); }
  .pf-root .notice-switch button[aria-pressed="true"] { color: var(--blue-hover); border-bottom-color: var(--blue); }
  .notice-line-tools { display:flex; align-items:end; flex-wrap:wrap; gap:8px 12px; padding: 0 0 13px; margin-bottom: 13px; border-block-end:1px solid var(--line); }
  .notice-line-tools label,.notice-part-picker { display:grid; gap:4px; color:var(--muted); font-size:13px; }
  .notice-line-tools label { flex:1 1 180px; max-width:340px; }
  .notice-line-tools label { display:flex; align-items:center; gap:8px; }
  .notice-line-tools label span { flex:none; }
  .notice-line-tools label select { flex:1; width:0; }
  .notice-line-tools .notice-empty { align-self:center; }
  .notice-line-tools select,.notice-part-picker select,.notice-picker select {
    border:1px solid var(--control-line); border-radius:var(--radius-control); background:var(--surface); color:var(--ink); padding:6px 8px; min-height:36px;
  }
  .notice-part-picker { max-width:260px; margin-bottom:14px; }
  .notice-empty { color: var(--muted); }
  .notice-amount { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 12px; color:var(--muted); font-size:13px; }
  .notice-amount strong { color:var(--ink); font-size:18px; font-variant-numeric: tabular-nums; }
  .notice-paper-spec { border-block-start:1px solid var(--line); padding-block-start:13px; }
  .notice-table-wrap { overflow:auto; margin-top:14px; }
  .notice-table-wrap caption { text-align:left; font-weight:700; padding:4px 0; }
  .notice-footer { display:flex; flex:none; align-items:center; justify-content:flex-end; gap:10px; padding:10px 20px; border-block-start:1px solid var(--line); }
  .notice-error { margin-right:auto; min-width:0; color:var(--danger-ink); }
  .notice-editor [aria-invalid="true"] { outline:2px solid var(--danger-ink); outline-offset:1px; }
  .notice-print-copy { display:none; }
  .notice-row-fields { margin:0; padding:0; min-width:0; border:0; }
  .notice-methods { display:flex; flex-wrap:wrap; gap:10px 16px; min-width:0; border:1px solid var(--line); padding:12px; }
  .notice-methods legend { color:var(--muted); padding:0 5px; }
  .notice-methods label { display:inline-flex; align-items:center; gap:5px; }
  .pf-root .notice-methods input { min-height:0; width:16px; height:16px; }
  .pf-root .method-summary { align-self:start; text-align:start; }
  .print-desk .main:has(.sheet-edit),.print-desk .job-content:has(.sheet-edit) { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
  .print-desk .main:has(.sheet-edit) { padding:10px clamp(12px,2vw,32px) 14px; }
  .print-desk .job-content:has(.sheet-edit) { flex:1 1 0; width:100%; }
  .job-content .sheet-edit { display:flex; flex-direction:column; flex:1 1 0; width:100%; max-width:none; min-height:0; margin:0; padding:0; overflow:hidden; }
  .job-content .sheet-edit .pf-sheet-top { flex:none; padding:12px 18px; margin:0; border-bottom:1px solid var(--line); }
  .job-content .sheet-edit .pf-sheet-top h1 { margin:0; font-size:24px; }
  .sheet-edit form { display:flex; flex-direction:column; flex:1 1 0; min-height:0; }
  .sheet-edit form.sheet-paired { display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; }
  .sheet-paired > .paper-desk { grid-column:1; grid-row:1 / 4; border-inline-end:1px solid var(--line); }
  .sheet-paired > .sheet-picker { grid-area:1 / 2; }
  .sheet-paired > .sheet-body { grid-area:2 / 2; min-width:0; }
  .sheet-paired > .sheet-validation { grid-area:3 / 2; }
  .sheet-paired > .pf-form-actions { grid-area:4 / 1 / auto / -1; }
  .sheet-edit form.sheet-paired .sheet-body .pf-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sheet-proof-only > :is(.sheet-body,.sheet-picker) { display:none; }
  .sheet-picker { display:flex; align-items:center; gap:12px; flex:none; padding:6px 18px; color:var(--muted); background:var(--surface-tint); border-bottom:1px solid var(--line); }
  .pf-root .sheet-picker select { width:min(270px,70%); }
  .sheet-edit .sheet-body { flex:1 1 0; min-height:0; overflow:auto; padding:14px 18px; overscroll-behavior:contain; }
  .sheet-edit .sheet-body section { margin:0; }
  .sheet-edit .sheet-body h3 { margin:0 0 10px; }
  .sheet-edit .sheet-body .pf-fields,.sheet-line-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; }
  .sheet-edit .sheet-body .pf-fields+.pf-field,.sheet-edit [data-sheet-area="notes"]>.pf-field+.pf-field { margin-top:12px; }
  .sheet-edit [aria-label="注意事项"] { min-height:7em; }
  .sheet-line-actions { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 0; }
  .sheet-edit .pf-actions.pf-form-actions { position:static; flex:none; padding:8px 16px; margin:0; border-block-start:1px solid var(--line); background:var(--surface); }
  .sheet-validation { margin:0; padding:4px 16px; color:var(--danger-ink); }
  .sheet-help { color:var(--muted); font-size:13px; margin:8px 0 0; }
  .pf-root .sheet-edit .sheet-lines .notice-line-tools select { max-width:32rem; }
  .sheet-edit .notice-line-tools label { min-width:0; }
  .sheet-body .pf-value { white-space:pre-line; }
  @media (min-width:761px) and (max-height:650px) {
    .job-content .sheet-edit .pf-sheet-top,.sheet-picker,.sheet-edit .sheet-body { padding-block:6px; }
    .job-content:has(.sheet-edit)>.pf-crumb,.job-content:has(.sheet-edit)>.pf-feedback { margin-block:3px; }
    .sheet-edit .sheet-body .pf-fields,.sheet-edit .sheet-line-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px 12px; }
    .sheet-edit .pf-actions.pf-form-actions { padding-block:5px; }
    .sheet-edit .sheet-body h3,.sheet-edit .notice-line-tools { margin-bottom:6px; }
  }
  @media (max-width:760px) {
    .print-desk .main:has(.sheet-edit) { padding:4px 8px 6px; }
    .job-content:has(.sheet-edit)>.pf-crumb { margin:0; }
    .job-content .sheet-edit .pf-sheet-top,.sheet-picker,.sheet-edit .sheet-body { padding:8px 12px; }
    .job-content .sheet-edit .pf-sheet-top h1 { font-size:19px; }
    .sheet-edit .sheet-body .pf-fields,.sheet-line-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; }
    .sheet-edit .pf-actions.pf-form-actions { padding:7px; gap:5px; }
  }
  @media (max-height:365px) {
    .print-desk .main:has(.sheet-edit) { overflow:auto; }
    .job-content .sheet-edit { min-height:295px; }
  }
  .notice-section-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
  .notice-section-head .pf-link { padding-block:0; min-height:26px; }
  .notice-layout.paper-paired,.sheet-edit form.sheet-paired { grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); }
  .notice-layout.paper-paired { grid-template-rows:auto minmax(0,1fr); }
  .paper-paired .notice-rail,.paper-only :is(.notice-rail,.notice-picker,.notice-content) { display:none; }
  .paper-paired .paper-desk { grid-column:1; grid-row:1 / 3; border-right:1px solid var(--line); }
  .paper-paired .notice-picker {
    display:flex; grid-column:2; grid-row:1; align-items:center; gap:12px; padding:8px 18px;
    background:var(--surface-tint); border-bottom:1px solid var(--line); color:var(--muted); font-size:13px;
  }
  .paper-paired .notice-picker select { flex:1; min-width:0; max-width:18rem; font:inherit; font-weight:650; color:var(--blue-hover); }
  .paper-paired .notice-content { grid-column:2; grid-row:2; padding:clamp(14px,1.25vw,22px); }
  .paper-paired .notice-grid { column-gap:12px; }
  .paper-only.notice-layout { display:flex; }
  .paper-desk { display:flex; flex:1; flex-direction:column; min-width:0; min-height:0; background:var(--paper-surround, var(--canvas)); }
  .paper-desk-tools { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 14px; background:var(--surface-tint); border-bottom:1px solid var(--line); }
  .paper-desk-tools strong { font-size:14px; }
  .paper-desk-tools span { color:var(--muted); font-size:13px; margin-inline-start:10px; }
  .paper-desk-tools .paper-selection-label {
    display:inline-block; max-inline-size:clamp(5rem,26cqi,13rem); padding-inline-start:8px; border-inline-start:1px solid var(--line);
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle;
  }
  .paper-desk:has(.paper-modes) { container:paper-proof / inline-size; }
  .paper-desk-tools:has(.paper-modes) { flex-wrap:wrap; padding:5px 12px; background:var(--surface); }
  .paper-modes { display:inline-flex; gap:2px; padding:2px; border:1px solid var(--line); border-radius:7px; background:var(--surface-tint); }
  .pf-root .paper-modes button { min-height:28px; padding:3px 8px; border:0; border-radius:4px; background:transparent; color:var(--muted); font-size:12px; font-weight:500; }
  .pf-root .paper-modes button[aria-pressed="true"] { background:var(--surface); color:var(--ink); box-shadow:0 1px 3px #17121c26; font-weight:650; }
  @container paper-proof (max-width:360px) {
    .paper-desk-tools:has(.paper-modes) { gap:4px; padding-inline:6px; }
    .pf-root .paper-modes button { padding-inline:5px; }
  }
  .paper-viewport { flex:1; min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; padding:8px; }
  .paper-viewport[data-mode="width"] { scrollbar-gutter:stable; }
  .paper-viewport[data-mode="width"] .paper-stage { width:100%; }
  .paper-viewport:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
  .paper-stage { position:relative; margin:0 auto; overflow:clip; width:var(--stage-width); height:var(--stage-height); }
  .paper-source { position:absolute; top:0; left:var(--sheet-left); width:max-content; transform:scale(var(--sheet-scale)); transform-origin:0 0; }
  .paper-source .pf-paper { display:block; }
  .paper-viewport[data-mode="field"] { overflow:auto; overflow-x:hidden; scrollbar-gutter:stable; padding:12px; }
  .paper-viewport[data-mode="field"] .paper-stage { inline-size:100%; block-size:auto; overflow:visible; }
  .paper-viewport[data-mode="field"] .paper-source { position:static; inline-size:100%; transform:none; }
  .paper-viewport[data-mode="field"] .pf-paper .pf-paper-page {
    inline-size:100%; min-inline-size:0; max-inline-size:none; min-block-size:0; padding:10px;
    font-size:15px; line-height:1.45; box-sizing:border-box;
  }
  .paper-viewport[data-mode="field"] .paper-focus-path > :not(.paper-focus-path,.paper-focus-block),
  .paper-viewport[data-mode="field"] .paper-focus-omit { display:none; }
  .paper-viewport[data-mode="field"] .paper-pair { display:block; }
  .paper-viewport[data-mode="field"] table.paper-focus-block { inline-size:100%; margin:0; font-size:inherit; outline:0; }
  .paper-viewport[data-mode="field"] .pf-paper :is(th,td) {
    height:30px; padding:3px 4px; font-size:inherit; line-height:1.35; letter-spacing:normal; white-space:pre-wrap;
  }
  .paper-viewport[data-mode="field"] table.paper-focus-pairs {
    display:block; border:1px solid #444; border-width:1px 0 0 1px;
  }
  .paper-focus-pairs > :is(thead,tbody,tfoot) { display:block; }
  .paper-focus-pairs tr:not(.paper-focus-omit) { display:grid; grid-template-columns:minmax(5.5rem,26%) minmax(0,1fr); }
  .paper-viewport[data-mode="field"] .paper-focus-pairs :is(th,td):not(.paper-focus-omit) {
    height:auto; min-height:32px; align-content:center; border-width:0 1px 1px 0;
  }
  .inline-paper-proof { block-size:72dvh; min-block-size:10rem; }
  @media (pointer:coarse) {
    .paper-desk-tools .pf-link,.pf-root .paper-modes button { min-block-size:44px; min-inline-size:44px; }
  }
  .paper-guide button { position:absolute; left:0; }
  .pf-root .paper-guide button { width:48px; min-height:24px; padding:2px 4px; border:1px solid var(--line); border-radius:4px; color:var(--muted); font-size:13px; background:var(--surface); }
  .paper-guide button::after { content:''; position:absolute; top:50%; left:100%; width:6px; border-top:1px solid var(--control-line); }
  .pf-root .paper-guide button[aria-current],.pf-root .paper-guide button:hover { color:var(--blue-hover); background:var(--blue-soft); border-color:var(--control-line); }
  .paper-editing [data-to] { cursor:pointer; }
  .paper-editing [data-to]:is(td,th,span):hover,.paper-editing [data-to] :is(td,th):hover { background:var(--surface-tint); }
  .pf-root .paper-editing button.paper-action {
    min-height:0; padding:0; margin:0; border:0; border-radius:0; background:transparent;
    color:inherit; font:inherit; text-decoration:underline; text-decoration-thickness:1px;
    text-decoration-color:var(--control-line); text-underline-offset:2px;
  }
  .pf-root .paper-editing button.paper-action:is(:hover,:focus-visible) { text-decoration-color:currentColor; }
  .paper-editing { --paper-focus-stroke:2.5px; --paper-mark:var(--focus-ring,var(--focus)); }
  .paper-viewport:is([data-mode="page"],[data-mode="width"]) .paper-editing {
    --paper-focus-stroke:calc(2.5px / var(--sheet-scale, 1));
  }
  .paper-viewport[data-mode="width"] .paper-editing :is(td,span,small,.pf-paper-note).paper-current-cell {
    font-size:clamp(1em,calc(13px / var(--sheet-scale, 1)),1.65em);
    overflow-wrap:anywhere;
  }
  .paper-editing .paper-current-cell {
    background:var(--accent-soft,var(--surface-tint));
    outline:var(--paper-focus-stroke) solid var(--paper-mark);
    outline-offset:calc(0px - var(--paper-focus-stroke));
  }
  .paper-editing td :is(span,small)[data-input]:empty {
    display:inline-block; min-inline-size:2ch; min-block-size:.8em; vertical-align:baseline;
  }
  /* Adjacent label and value share one outline without resizing the paper grid. */
  .paper-editing :is(th,td).paper-current-cell { position:relative; outline:0; }
  .paper-editing :is(th,td).paper-current-cell::after {
    content:""; position:absolute; inset:0; border:var(--paper-focus-stroke) solid var(--paper-mark); pointer-events:none;
  }
  .paper-editing .paper-current-cell + .paper-current-cell::after { border-inline-start-width:0; }
  .paper-editing .paper-current-cell:has(+ .paper-current-cell)::after { border-inline-end-width:0; }
  .pf-root :is(.notice-content,.sheet-body) [data-paper-current]:not(:focus-visible) {
    outline:2px solid var(--focus-ring,var(--focus)); outline-offset:-1px;
  }
  @media (forced-colors:active) {
    .paper-editing { --paper-mark:Highlight; }
  }
  .repeat-source { display:grid; gap:2px; padding:0 0 12px; margin-bottom:14px; border-bottom:1px solid var(--line); }
  .repeat-source strong { font-size:18px; }
  .repeat-source small,.repeat-spec,.repeat-rate>span { color:var(--muted); font-size:13px; }
  .repeat-rate { display:grid; justify-items:start; gap:4px; }
  .repeat-rate button { text-align:left; }
  .repeat-total { padding-block:8px; border-block:1px solid var(--line); }
  .repeat-spec { margin:10px 0 0; line-height:1.55; }
  .repeat-dialog { width:min(540px,calc(100% - 24px)); max-height:min(650px,88dvh); padding:0; border:1px solid var(--control-line); border-radius:var(--radius-panel); background:var(--surface); color:var(--ink); }
  .repeat-dialog::backdrop { background:color-mix(in srgb,var(--ink) 48%,transparent); }
  .repeat-dialog form { display:flex; flex-direction:column; min-height:0; max-height:min(640px,86dvh); padding:16px 20px; gap:12px; }
  .repeat-dialog header,.repeat-dialog footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .repeat-dialog h2 { margin:0; font-size:22px; }
  .repeat-search { display:grid; gap:4px; font-size:13px; color:var(--muted); }
  .repeat-results { min-width:0; min-height:0; max-height:46dvh; overflow:auto; padding:0; margin:0; border:1px solid var(--line); border-radius:var(--radius-control); }
  .repeat-results label { display:flex; align-items:center; gap:10px; padding:10px 12px; cursor:pointer; }
  .repeat-results label+label { border-top:1px solid var(--line); }
  .repeat-results label:has(input:checked) { background:var(--blue-soft); }
  .repeat-results input { width:16px; min-height:0; height:16px; margin:0; accent-color:var(--blue); }
  .repeat-results label>span:first-of-type { min-width:0; flex:1; }
  .repeat-results strong,.repeat-results small { display:block; overflow-wrap:anywhere; }
  .repeat-results small,.repeat-dialog footer small,.repeat-results p { color:var(--muted); font-size:13px; }
  .repeat-results p { margin:14px; }
  .repeat-dialog footer button,.repeat-previous-qty { flex:none; }

  @media (max-height:730px) and (min-width:761px) {
    .notice-rail { padding-block:10px; }
    .notice-group + .notice-group { margin-block-start:8px; }
    .notice-content { padding-block:14px; }
    .notice-grid { row-gap:9px; }
    .job-content .notice-content h2 { margin-bottom:10px; }
    .notice-header { padding-block:10px; }
    .notice-spec-review,.notice-paper-spec,.notice-routes,.notice-amount { margin-block-start:12px; }
  }
  @media (min-width:761px) and (max-height:650px) {
    .notice-header,.notice-footer { padding-block:7px; }
    .notice-rail { padding-block:6px; }
    .notice-group + .notice-group { margin-top:5px; }
    .pf-root .notice-rail button { min-height:29px; padding-block:2px; }
    .notice-content { padding-block:10px; }
    .notice-spec-review { padding-block-start:5px; }
    .notice-spec-review p,.notice-spec-review small { display:inline; }
    .notice-spec-review small { margin-inline-start:10px; }
    .notice-line-tools { margin-bottom:9px; padding-bottom:8px; }
    .repeat-source { grid-template-columns:auto minmax(0,1fr); align-items:baseline; gap:2px 12px; padding-bottom:6px; margin-bottom:9px; }
    .repeat-source small { grid-column:1 / -1; }
  }
  @media (max-width:760px), (max-height:480px) {
    .notice-layout { display:flex; flex-direction:column; }
    .notice-rail { display:none; }
    .notice-picker { display:flex; flex:none; align-items:center; gap:12px; padding:6px 14px; background:var(--surface-tint); border-bottom:1px solid var(--line); color:var(--muted); font-size:13px; }
    .notice-picker select { flex:1; color:var(--blue-hover); font-weight:650; }
    .notice-content { flex:1 1 0; }
  }
  @media (max-width:760px) {
    .print-desk .main:has(.notice-editor) { padding:4px 8px 6px; }
    .job-content:has(.notice-editor) > .pf-crumb { margin:0; }
    .notice-header { padding:9px 14px; align-items:center; gap:6px; }
    .notice-heading { display:block; }
    .job-content .notice-header h1 { font-size:22px; }
    .notice-header .pf-tools { gap:4px; }
    .notice-header .pf-tools button { padding-inline:7px; }
    .notice-heading p { font-size:13px; max-width:44vw; }
    .notice-content { padding:12px 14px; }
    .job-content .notice-content h2 { font-size:18px; margin-bottom:9px; }
    .notice-grid,.notice-grid-three { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 10px; }
    .notice-spec-review,.notice-routes,.notice-amount,.notice-paper-spec { margin-block-start:11px; }
    .notice-line-tools { gap:4px 6px; padding-bottom:8px; margin-bottom:9px; }
    .notice-line-tools label { flex-basis:125px; }
    .notice-line-tools label span { display:none; }
    .notice-switch { gap:0; margin-bottom:9px; }
    .pf-root .notice-switch button { padding-inline:7px; }
    .notice-footer { padding:7px 10px max(7px,env(safe-area-inset-bottom)); gap:6px; flex-wrap:wrap; }
    .notice-footer .notice-error { flex-basis:100%; }
    .notice-footer .notice-cancel { margin-right:auto; }
    .notice-spec-review > div { align-items:center; }
    .notice-header:has(.repeat-entry) { padding-inline:10px; }
    .notice-header:has(.repeat-entry) h1 { font-size:18px; }
    .notice-header:has(.repeat-entry) .pf-tools { gap:4px; }
    .paper-only .paper-desk { width:100%; }
    .repeat-source { margin-bottom:10px; padding-bottom:8px; }
    .repeat-dialog form { padding:12px; }
  }
  @media (min-height:301px) and (max-height:420px) {
    .print-desk .main:has(.notice-editor) { padding-block:2px; }
    .notice-content { min-height:7rem; }
    .job-content .notice-editor { min-height:16rem; overflow:visible; }
  }
  @media (max-height:300px) {
    .print-desk .main:has(.notice-editor) { display:block; overflow:auto; scroll-padding-bottom:4rem; }
    .print-desk .job-content:has(.notice-editor),.job-content .notice-editor,.notice-form,.notice-layout { display:block; }
    .notice-content { overflow:visible; }
    .notice-footer { position:sticky; bottom:0; background:var(--surface); }
  }
}
@media print {
  .paper-desk,.paper-viewport,.paper-stage,.paper-source { display:contents; }
  .paper-viewport:focus { outline:0!important; box-shadow:none!important; }
  .pf-root .notice-editor { border:0; border-radius:0; }
  .notice-editor > .notice-header,.notice-editor > .notice-form { display:none!important; }
}
