/* ==================================================================
   Settings > Documents & intake (dp-* vocabulary).

   Ported from docs/design-canon/threshold-tenant-profile-page/
   design_handoff_document_policies/document-policies.css. Token discipline
   (ADR-0035), same as tenant-profile.css: canon's unprefixed names map to
   the live --th-* names, same value, no re-declaration:

     --paper*    -> --th-paper*      --r-N    -> --th-radius-N
     --ink*      -> --th-ink*        --r-pill -> --th-radius-pill
     --line*     -> --th-line*       --f-X    -> --th-f-X
     --advant*   -> --th-advant*     --t-N    -> --th-size-N
     --marigold* -> --th-marigold*   --ok* / --warn* / --risk* -> --th-*

   Canon's info ink has no live token; it stays local as --dp-info-ink with
   canon's literal values. Canon's global link colour, focus rings and
   .cc-btn/.bf-* state rules are scoped to the page (.dp-page) and the review
   sheet body (.dp-sheet) so they never reach other destinations.

   Not ported: the review frame and scaffolding (.dp-outer, .dp-stage,
   .dp-frame, .dp-root, .dp-strip, .dp-sbtn, .dp-fixture, .dp-und, the
   decision drawer), the 1a aside, the safe-preview counts and rows (the
   preview is unavailable until Incoming items carry match facts), the
   review sheet frame (ThresholdDialog, threshold-dialog.css), the toast
   (ThresholdToastHost) and the shell fixes canon scopes to .dp-frame (the
   shell is threshold-chrome.css). Canon's container queries on .dp-frame
   become media queries at the same breakpoints, as its README directs.

   From canon tenant-profile.css: the Notify state row (.mfc-statebar) and
   the review sheet's change rows, caption and reason box (.mfc-change,
   .mfc-modal-cap, .mfc-md-input).
   ================================================================== */

.dp-page, .dp-sheet { --dp-info-ink: oklch(38% 0.12 230); }
[data-theme="dark"] .dp-page, [data-theme="dark"] .dp-sheet { --dp-info-ink: oklch(82% 0.10 245); }
.dp-page a, .dp-sheet a { color: var(--th-advant-deep); }
.dp-page a:hover, .dp-sheet a:hover { color: var(--th-ink); }
:is(.dp-page, .dp-sheet) :is(button, a, [role="tab"], [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--th-advant); outline-offset: 2px; }
:is(.dp-page, .dp-sheet) :is(input, textarea, select):focus-visible { outline: 2px solid var(--th-advant); outline-offset: 1px; border-color: var(--th-advant); }

/* Unset value slot */
.dp-slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 8px 6px 11px; border: 1px dashed var(--th-line-2); border-radius: var(--th-radius-3); font-family: var(--th-f-mono); font-size: 11px; color: var(--th-ink-2);
  background: repeating-linear-gradient(45deg, var(--th-paper-2), var(--th-paper-2) 6px, var(--th-paper) 6px, var(--th-paper) 12px); }

/* Policy bar - one per versioned policy */
.dp-group { scroll-margin-top: 60px; }
.dp-group + .dp-group { margin-top: 30px; }
.dp-pol { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; padding: 15px 16px; border: 1px solid var(--th-line); border-radius: var(--th-radius-8); background: var(--th-paper-sunk); }
.dp-pol-main { flex: 1; min-width: 220px; }
.dp-pol-eyebrow { font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--th-ink-3); }
.dp-pol-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 5px; }
.dp-pol-name { font-family: var(--th-f-serif); font-weight: 500; font-size: var(--th-size-17); letter-spacing: -0.01em; color: var(--th-ink); }
.dp-pol-meta { font-size: 12px; color: var(--th-ink-2); margin-top: 4px; line-height: 1.45; }
.dp-pol-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dp-pol-actions .cc-btn { font-size: 12px; }
.dp-pol-note { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 11px; border-top: 1px solid var(--th-line-soft); font-size: 12px; color: var(--th-ink-2); }
.dp-pol-note .ico { color: var(--th-ink-3); display: inline-flex; }
.dp-pol-note.is-draft { color: var(--th-marigold-deep); flex-wrap: nowrap; align-items: flex-start; line-height: 1.5; }
.dp-pol-note.is-draft .dot { flex: none; margin-top: 5px; }
.dp-fieldrow.is-wide { grid-template-columns: 1fr; }
.dp-pol-note.is-draft .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--th-marigold-deep); box-shadow: 0 0 0 3px var(--th-marigold-soft); }
.dp-ver { display: inline-flex; align-items: center; gap: 5px; font-family: var(--th-f-mono); font-size: 10.5px; padding: 1px 9px; border-radius: var(--th-radius-pill); border: 1px solid var(--th-line-2); color: var(--th-ink-2); background: var(--th-paper-2); white-space: nowrap; line-height: 1.7; }
.dp-ver.is-active { background: var(--th-ok-soft); color: var(--th-ok-ink); border-color: transparent; }
.dp-ver.is-draft { background: var(--th-marigold-soft); color: var(--th-marigold-deep); border-color: color-mix(in oklab, var(--th-marigold-deep) 40%, var(--th-line-2)); }
.dp-ver.is-unset { border-style: dashed; background: transparent; }

/* Sub-heads inside sections */
.dp-subtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.dp-chg { font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--th-marigold-deep); margin-left: 8px; font-weight: 500; }

/* Signals */
.dp-sig { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-sunk); }
.dp-sig-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--th-line-soft); }
.dp-sig-row:first-child { border-top: none; }
.dp-sig-name { font-size: 13px; font-weight: 600; color: var(--th-ink); }
.dp-sig-desc { font-size: 11.5px; color: var(--th-ink-2); margin-top: 2px; line-height: 1.45; }
.dp-page .bf-switch:disabled { opacity: 0.55; cursor: not-allowed; }

/* Field row */
.dp-fieldrow { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 10px 22px; align-items: start; padding: 15px 0; border-top: 1px solid var(--th-line-soft); }
.dp-fieldrow:first-of-type { margin-top: 12px; }
.dp-fieldrow .bf-hint { color: var(--th-ink-2); margin-top: 3px; display: block; }

/* Invariants */
.dp-rules { display: grid; gap: 7px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--th-line-2); border-radius: var(--th-radius-5); background: var(--th-paper); }
.dp-rules-cap { font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--th-ink-3); }
.dp-rule { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--th-ink-2); line-height: 1.5; }
.dp-rule .ico { color: var(--th-ink-3); flex: none; margin-top: 2px; display: inline-flex; }

/* Source x type matrix */
.dp-mx { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-sunk); overflow: hidden; }
.dp-mx-head, .dp-mx-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) repeat(5, minmax(0, 1fr)); }
.dp-mx-head { background: var(--th-paper-2); border-bottom: 1px solid var(--th-line); }
.dp-mx-hc { padding: 9px 12px; font-size: 11.5px; font-weight: 600; color: var(--th-ink); border-left: 1px solid var(--th-line-soft); }
.dp-mx-hc:first-child { border-left: none; font-family: var(--th-f-mono); font-size: 9.5px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--th-ink-3); }
.dp-mx-hc .s { display: block; font-weight: 400; font-size: 10.5px; color: var(--th-ink-2); margin-top: 2px; }
.dp-mx-row { border-top: 1px solid var(--th-line-soft); }
.dp-mx-row:first-of-type { border-top: none; }
.dp-mx-type { padding: 11px 12px; font-size: 12.5px; font-weight: 600; color: var(--th-ink); }
.dp-mx-cell { padding: 7px 8px; border-left: 1px solid var(--th-line-soft); display: flex; align-items: center; gap: 8px; }
.dp-mx-cell .src { display: none; font-size: 12px; color: var(--th-ink-2); }
/* Core combinations are fixed: every cell is Suggest - staff confirm. */
.dp-mx-fixed { width: 100%; font: 500 12px var(--th-f-sans); padding: 6px 7px; border-radius: var(--th-radius-3); border: 1px solid var(--th-line-2); background: var(--th-paper-sunk); color: var(--th-ink-2); }
.dp-mx-excl .dp-mx-type { color: var(--th-ink-2); font-weight: 500; }
.dp-mx-excl-note { grid-column: 2 / -1; padding: 11px 12px; font-size: 11.5px; color: var(--th-ink-2); border-left: 1px solid var(--th-line-soft); background: var(--th-paper); line-height: 1.45; }

/* Retention resolution steps */
.dp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-sunk); overflow: hidden; margin-bottom: 4px; }
.dp-step { padding: 13px 14px; border-left: 1px solid var(--th-line-soft); }
.dp-step:first-child { border-left: none; }
.dp-step .n { font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--th-marigold-deep); }
.dp-step .t { font-size: 12.5px; font-weight: 600; color: var(--th-ink); margin-top: 5px; }
.dp-step .d { font-size: 11.5px; color: var(--th-ink-2); margin-top: 4px; line-height: 1.5; }

/* Simple table (Application Definition overrides) */
.dp-tbl { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-sunk); overflow: hidden; }
.dp-tr { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--th-line-soft); font-size: 12.5px; color: var(--th-ink); }
.dp-tr.is-head { border-top: none; background: var(--th-paper-2); font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--th-ink-3); }
.dp-tr .sub { display: block; font-size: 11px; color: var(--th-ink-2); margin-top: 2px; }
.dp-tr .nm { font-weight: 600; }
.dp-link { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }

/* Locked action row */
.dp-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-2); }
.dp-locked .t { flex: 1; min-width: 220px; font-size: 12px; color: var(--th-ink-2); line-height: 1.5; }
.dp-locked .t b { color: var(--th-ink); font-weight: 600; }

/* Panels: preview / impact / history */
.dp-panel { border: 1px solid var(--th-line); border-radius: var(--th-radius-8); background: var(--th-paper-sunk); margin-top: 14px; overflow: hidden; }
.dp-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 13px 16px; border-bottom: 1px solid var(--th-line); }
.dp-panel-titles { flex: 1; min-width: 200px; }
.dp-panel-title { font-size: 13px; font-weight: 600; color: var(--th-ink); }
.dp-panel-sub { font-size: 11.5px; color: var(--th-ink-2); margin-top: 2px; line-height: 1.45; }
.dp-panel-foot { padding: 11px 16px; border-top: 1px solid var(--th-line); background: var(--th-paper-2); font-size: 11.5px; color: var(--th-ink-2); line-height: 1.5; }
.dp-safe { display: inline-flex; align-items: center; gap: 6px; font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--th-ok-ink); background: var(--th-ok-soft); border-radius: var(--th-radius-pill); padding: 2px 9px; white-space: nowrap; }
.dp-safe .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dp-running { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 20px 16px; font-size: 12px; color: var(--th-ink-2); }
.dp-impact { display: grid; gap: 9px; padding: 14px 16px; }
.dp-impact.is-tight { padding: 4px 0 2px; }
.dp-imp-line { display: flex; gap: 10px; font-size: 12.5px; color: var(--th-ink-2); line-height: 1.5; }
.dp-imp-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--th-ink-3); margin-top: 7px; flex: none; }
.dp-imp-line.is-warn .dot { background: var(--th-warn); }
.dp-imp-line.is-ok .dot { background: var(--th-ok); }
.dp-hev { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-top: 1px solid var(--th-line-soft); }
.dp-hev:first-of-type { border-top: none; }
.dp-hev .kind { font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--th-ink-3); }
.dp-hev .kind.is-pub { color: var(--th-ok-ink); }
.dp-hev .ver { font-family: var(--th-f-mono); font-size: 12px; color: var(--th-ink); margin-top: 3px; }
.dp-hev .when { font-family: var(--th-f-mono); font-size: 10.5px; color: var(--th-ink-2); margin-top: 2px; }
.dp-hev .who { font-size: 12.5px; color: var(--th-ink); }
.dp-hev .why { font-size: 12px; color: var(--th-ink-2); margin-top: 3px; line-height: 1.5; }
.dp-hchg { margin: 7px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.dp-hchg li { font-family: var(--th-f-mono); font-size: 11px; color: var(--th-ink-2); }
.dp-hchg li::before { content: "± "; color: var(--th-marigold-deep); }

/* Workbench tabs (1b) */
.dp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--th-line); margin-top: 14px; overflow-x: auto; }
.dp-tab { padding: 9px 12px; font: 500 12.5px var(--th-f-sans); color: var(--th-ink-2); border: none; background: transparent; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.dp-tab:hover { color: var(--th-ink); }
.dp-tab.is-active { color: var(--th-ink); border-bottom-color: var(--th-marigold-deep); }

/* 1b layout: register + workbench */
.dp-wb { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: "side main"; gap: 26px; padding: 4px 24px 16px; align-items: start; }
.dp-wb > * { min-width: 0; }
.dp-side { grid-area: side; position: sticky; top: 12px; display: grid; gap: 14px; }
.dp-main { grid-area: main; min-width: 0; max-width: 860px; }
.dp-reg { border: 1px solid var(--th-line); border-radius: var(--th-radius-8); background: var(--th-paper-sunk); overflow: hidden; }
.dp-reg-cap { font-family: var(--th-f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--th-ink-3); padding: 13px 14px 10px; }
.dp-reg-item { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 11px 14px; border-top: 1px solid var(--th-line-soft); cursor: pointer; font: inherit; color: inherit; }
.dp-reg-item:hover { background: var(--th-paper-2); }
.dp-reg-item.is-active { background: var(--th-advant-soft); box-shadow: inset 3px 0 0 var(--th-advant); }
.dp-reg-grp { font-family: var(--th-f-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--th-ink-3); }
.dp-reg-name { font-size: 13px; font-weight: 600; color: var(--th-ink); margin-top: 3px; }
.dp-reg-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; font-size: 11px; color: var(--th-ink-2); }
.dp-reg-foot { padding: 12px 14px; border-top: 1px solid var(--th-line); background: var(--th-paper-2); font-size: 11.5px; color: var(--th-ink-2); line-height: 1.5; }

/* Alerts inside the review sheet */
.dp-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--th-radius-3); font-size: 12px; line-height: 1.5; border: 1px solid transparent; }
.dp-alert b { font-weight: 600; }
.dp-alert.is-warn { background: var(--th-warn-soft); color: var(--th-warn-ink); border-color: color-mix(in oklab, var(--th-warn) 30%, transparent); }
.dp-alert.is-risk { background: var(--th-risk-soft); color: var(--th-risk-ink); border-color: color-mix(in oklab, var(--th-risk) 30%, transparent); }
.dp-alert.is-info { background: var(--th-advant-soft); color: var(--dp-info-ink); border-color: color-mix(in oklab, var(--th-advant) 25%, transparent); }
/* Programmatic focus targets (#dp-revoked, #dp-block) use the documented ring. */
.dp-alert[tabindex="-1"]:focus { outline: 2px solid var(--th-advant); outline-offset: 2px; }
/* Canon's .dp-reason overrides .mfc-md-input by load order; here they share a file, so the pair selector wins. */
.mfc-md-input.dp-reason { min-height: 76px; margin-top: 6px; }
.dp-field-lbl { display: block; margin-top: 16px; }
.dp-approver { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.dp-empty { font-size: 12px; color: var(--th-ink-2); font-style: italic; padding: 6px 0; }

/* Denied */
.dp-denied { max-width: 500px; margin: 72px auto 90px; padding: 26px 26px 22px; border: 1px solid var(--th-line); border-radius: var(--th-radius-8); background: var(--th-paper-sunk); }
.dp-denied-ico { width: 38px; height: 38px; border-radius: var(--th-radius-5); background: var(--th-paper-2); border: 1px solid var(--th-line-2); color: var(--th-ink-2); display: grid; place-items: center; }
.dp-denied h1 { font-family: var(--th-f-serif); font-weight: 500; font-size: var(--th-size-24); color: var(--th-ink); margin: 14px 0 0; letter-spacing: -0.012em; }
.dp-denied p { font-size: 13px; color: var(--th-ink-2); line-height: 1.55; margin: 8px 0 0; }
.dp-denied .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }

/* Publishing rule card (D1) */
.dp-pub { border: 1px solid var(--th-line); border-radius: var(--th-radius-8); background: var(--th-paper-sunk); padding: 13px 14px 14px; display: grid; gap: 9px; }
.dp-pub-rule { font-size: 12.5px; color: var(--th-ink); line-height: 1.5; }
.dp-pub-hint { font-size: 11.5px; color: var(--th-ink-2); line-height: 1.5; }

/* Settled values and fixtures */
.dp-val { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 8px 6px 11px; border: 1px solid var(--th-line-2); border-radius: var(--th-radius-3); background: var(--th-paper-2); font-size: 12.5px; color: var(--th-ink); }
.dp-tag { font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--th-ink-2); border: 1px solid var(--th-line-2); border-radius: var(--th-radius-pill); padding: 1px 7px; white-space: nowrap; flex: none; }
/* Authorization keys are case-sensitive: never uppercase them. */
.dp-key { font-family: var(--th-f-mono); font-size: 0.92em; color: var(--th-ink); background: var(--th-paper-2); border: 1px solid var(--th-line); border-radius: var(--th-radius-2); padding: 0 4px; white-space: nowrap; }
.dp-fx { font-family: var(--th-f-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--th-ink-2); background: var(--th-paper-2); border: 1px solid var(--th-line); border-radius: var(--th-radius-2); padding: 0 5px; margin-left: 6px; font-weight: 400; vertical-align: 1px; white-space: nowrap; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-chip { font-size: 11.5px; padding: 2px 9px; border-radius: var(--th-radius-pill); border: 1px solid var(--th-line-2); background: var(--th-paper-sunk); color: var(--th-ink); }
.dp-rulebox { padding: 11px 13px; border: 1px solid var(--th-line-2); border-radius: var(--th-radius-3); background: var(--th-paper-2); font-size: 12.5px; color: var(--th-ink); line-height: 1.5; }
.dp-rulebox .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 11.5px; color: var(--th-ink-2); }
/* Fixed retention anchors (04) */
.dp-anchors { margin: 0; border: 1px solid var(--th-line-2); border-radius: var(--th-radius-3); background: var(--th-paper-2); }
.dp-anchors > div { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2fr); gap: 4px 14px; padding: 9px 13px; border-top: 1px solid var(--th-line-soft); }
.dp-anchors > div:first-child { border-top: none; }
.dp-anchors dt { font-size: 12.5px; font-weight: 600; color: var(--th-ink); }
.dp-anchors dd { margin: 0; font-size: 12.5px; color: var(--th-ink); line-height: 1.5; }
.dp-mail { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper); overflow: hidden; }
.dp-mail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 9px 12px; border-bottom: 1px solid var(--th-line); background: var(--th-paper-2); font-size: 11.5px; color: var(--th-ink-2); }
.dp-mail-head b { color: var(--th-ink); font-weight: 600; }
.dp-mail-body { padding: 12px 14px 14px; font-size: 13px; color: var(--th-ink); line-height: 1.55; display: grid; gap: 10px; justify-items: start; }
.dp-mail-btn { display: inline-flex; padding: 6px 12px; border-radius: var(--th-radius-3); background: var(--th-advant-deep); color: var(--th-advant-fg); font-size: 12.5px; font-weight: 500; }
[data-theme="dark"] .dp-mail-btn { background: var(--th-advant); }
.dp-mail-foot { padding: 9px 12px; border-top: 1px solid var(--th-line); font-size: 11.5px; color: var(--th-ink-2); }
.dp-reg-item:focus-visible, .dp-tab:focus-visible { outline-offset: -2px; }
.dp-period { display: flex; align-items: center; gap: 8px; }
.dp-period .dp-num { width: 96px; font-family: var(--th-f-mono); }
.dp-period .dp-unit { width: auto; flex: none; padding-right: 6px; }
.dp-tr .cc-pill { white-space: nowrap; }
.dp-page .bf-input.is-invalid { border-color: var(--th-risk); box-shadow: 0 0 0 3px var(--th-risk-soft); }
.dp-ferr { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--th-risk-ink); line-height: 1.45; }
.dp-ferr svg { flex: none; margin-top: 2px; }
.dp-pol-note.is-incomplete { color: var(--th-warn-ink); flex-wrap: nowrap; align-items: flex-start; line-height: 1.5; }
.dp-pol-note.is-incomplete .ico { color: var(--th-warn-ink); margin-top: 2px; }
.dp-pol-note.is-draft + .dp-pol-note.is-incomplete { border-top: none; padding-top: 0; }
.dp-blocklist { display: grid; gap: 6px; align-items: start; }
.dp-blocklist:focus { outline: 2px solid var(--th-advant); outline-offset: 2px; }
.dp-blocklist ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dp-blocklist li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 6px; border-top: 1px solid color-mix(in oklab, var(--th-warn) 25%, transparent); }
.dp-linkbtn { font: 500 12px var(--th-f-sans); color: var(--th-advant-deep); background: transparent; border: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.dp-linkbtn:hover { color: var(--th-ink); }
.dp-tabs, .dp-reg { scrollbar-width: none; overflow-y: hidden; }
.dp-tabs::-webkit-scrollbar, .dp-reg::-webkit-scrollbar { display: none; }

/* From canon tenant-profile.css: the Notify state row and the review sheet's
   change rows, caption and reason box. */
/* The sheet's effective-boundary sentence (canon .mfc-modal-aud), first in the dialog body: the
   dialog's own sub-line is mono, for keys and codes. */
.dp-sheet-aud { margin: 0 0 14px; font-size: 12.5px; color: var(--th-ink-3); line-height: 1.5; }
.mfc-statebar { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.mfc-statebar-lbl { font-family: var(--th-f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--th-ink-4); flex: none; }
.mfc-statebar .bf-seg { flex: 1; max-width: 460px; }
.mfc-modal-cap { font-family: var(--th-f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--th-ink-4); margin-bottom: 4px; }
.mfc-change { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--th-line-soft); }
.mfc-change:last-child { border-bottom: none; }
.mfc-change .name { font-size: 13px; font-weight: 600; color: var(--th-ink); }
.mfc-change .arrow { color: var(--th-ink-4); margin: 0 2px; }
.mfc-change .state { font-size: 12px; color: var(--th-ink-2); text-align: right; }
.mfc-md-input { width: 100%; min-height: 160px; resize: vertical; font-family: var(--th-f-sans); font-size: 13.5px; color: var(--th-ink); line-height: 1.65; background: var(--th-paper-sunk); border: 1px solid var(--th-line-2); border-radius: var(--th-radius-3); padding: 11px 13px; outline: none; }
.mfc-md-input:focus { border-color: var(--th-advant); box-shadow: 0 0 0 3px var(--th-advant-soft); }
.mfc-md-input::placeholder { color: var(--th-ink-4); }
.mfc-md-input:disabled { opacity: 0.7; }

/* ---------- Responsive: canon's container queries as viewport media queries ---------- */
@media (max-width: 1120px) {
  .dp-wb { grid-template-columns: minmax(0, 1fr); grid-template-areas: "reg" "main" "pub"; }
  .dp-side { display: contents; }
  .dp-reg { grid-area: reg; }
  .dp-pub { grid-area: pub; }
}
@media (max-width: 960px) {
  .dp-fieldrow { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }
}
@media (max-width: 720px) {
  /* Threshold's shell keeps its sidenav at every width (it is designed down to tablet), so the page
     column is narrower than canon's frame: the canon's minimum widths give way and the content reflows. */
  .dp-pol-main, .dp-locked .t, .dp-panel-titles { min-width: 0; }
  .dp-rules { grid-template-columns: minmax(0, 1fr); }
  .mfc-statebar { flex-wrap: wrap; }
  .mfc-statebar .bf-seg { flex: 1 1 100%; min-width: 0; max-width: none; }
  .mfc-statebar .bf-seg-opt { min-width: 0; white-space: normal; }
  .dp-page .dp-key { white-space: normal; overflow-wrap: anywhere; }
  .dp-period { flex-wrap: wrap; }
  .dp-page .cc-page-head { padding: 18px 16px 12px; }
  .dp-wb { padding: 4px 16px 16px; gap: 16px; }
  .dp-viewbar.tp-viewbar { padding: 8px 16px; flex-wrap: wrap; }
  .dp-reg { display: flex; overflow-x: auto; border-radius: var(--th-radius-5); }
  .dp-reg-cap, .dp-reg-foot { display: none; }
  .dp-reg-item { flex: none; width: 172px; max-width: 85%; border-top: none; border-left: 1px solid var(--th-line-soft); padding: 9px 12px; }
  .dp-reg-item:first-of-type { border-left: none; }
  .dp-reg-item.is-active { box-shadow: inset 0 -3px 0 var(--th-advant); }
  .dp-reg-meta > span:last-child { display: none; }
  .dp-pol-actions { width: 100%; }
  .dp-fieldrow { grid-template-columns: minmax(0, 1fr); }
  .dp-steps { grid-template-columns: minmax(0, 1fr); }
  .dp-anchors > div { grid-template-columns: minmax(0, 1fr); }
  .dp-step { border-left: none; border-top: 1px solid var(--th-line-soft); }
  .dp-step:first-child { border-top: none; }
  .dp-mx-head { display: none; }
  .dp-mx-row { grid-template-columns: minmax(0, 1fr); }
  .dp-mx-type { padding-bottom: 4px; }
  .dp-mx-cell { border-left: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 160px); padding: 5px 12px; }
  .dp-mx-cell .src { display: block; }
  .dp-mx-cell:last-child { padding-bottom: 11px; }
  .dp-mx-excl-note { grid-column: 1; border-left: none; padding-top: 0; background: transparent; }
  .dp-tr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dp-tr.is-head { display: none; }
  .dp-hev { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
