/* DSE customer portal - signed-in pages and the library (2026-10-26, round 2). The staff side's look: same tokens,
   font, cards and lists. Dark mode is the shared page-wide flip (css/dse-dark-2026.css, localStorage "dse-theme").
   Note: that file keeps any class containing "-hero" or "-masthead" dark - portal classes avoid those words. */
@font-face { font-family: "DSE Inter"; src: url("../../css/fonts/inter-latin-variable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

:root {
    --ux-ink: #17181b; --ux-ink-2: #3a3d43; --ux-muted: #62666e; --ux-soft: #8a8d94; --ux-line: #dedfe3; --ux-line-2: #ececef; --ux-line-strong: #c9cbd0;
    --ux-canvas: #f5f5f7; --ux-tint: #fafafb; --ux-navy: #101d2e; --ux-navy-hover: #284566; --ux-link: #235f99; --ux-focus: #387ac0; --ux-active: #eef3ff;
    --ux-ok-ink: #11704a; --ux-ok-bg: #f1fbf6; --ux-ok-line: #bfe5d2; --ux-warn-ink: #8a5a00; --ux-warn-bg: #fffaf0; --ux-warn-line: #f0d9a8;
    --ux-risk-ink: #b42318; --ux-risk-bg: #fff6f5; --ux-risk-line: #f5c6c0; --ux-gold: #c8a24a;
    --ux-font: "DSE Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --ux-ring: 0 0 0 3px rgba(56, 122, 192, .18);
    --ux-depth: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --ux-depth-2: 0 2px 4px rgba(16, 24, 40, .04), 0 8px 20px rgba(16, 24, 40, .06);
    --pt-side: 264px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.pt-body { min-height: 100vh; background: var(--ux-canvas); color: var(--ux-ink); font: 400 14.5px/1.55 var(--ux-font); -webkit-font-smoothing: antialiased; }
a { color: var(--ux-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--ux-focus); outline-offset: 2px; }
.pt-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--ux-navy); color: #fff; }
.pt-skip:focus { left: 8px; }

/* ---------- frame */
.pt-app { display: grid; grid-template-columns: var(--pt-side) minmax(0, 1fr); min-height: 100vh; }
.pt-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; height: 100vh; overflow-y: auto; padding: 18px 14px 14px; border-right: 1px solid var(--ux-line); background: #fff; }
.pt-brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 4px; color: var(--ux-ink); }
.pt-brand:hover { text-decoration: none; }
.pt-brand img { border-radius: 8px; }
.pt-brand strong { display: block; font-size: 15.5px; font-weight: 680; letter-spacing: -.01em; }
.pt-brand small { display: block; color: var(--ux-muted); font-size: 12px; }
.pt-side-cta { width: 100%; height: 40px; gap: 6px; }
.pt-nav { display: grid; gap: 2px; }
.pt-nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ux-ink-2); font-weight: 560; }
.pt-nav a:hover { background: var(--ux-canvas); color: var(--ux-ink); text-decoration: none; }
.pt-nav a.is-active { background: var(--ux-navy); color: #fff; }
.pt-nav-count { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--ux-canvas); color: var(--ux-ink-2); font: 650 11.5px/1.3 var(--ux-font); text-align: center; font-style: normal; }
.pt-nav a.is-active .pt-nav-count { background: rgba(255, 255, 255, .16); color: #fff; }
.pt-side-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--ux-line); border-radius: 14px; background: var(--ux-tint); }
.pt-side-card strong { font-size: 14px; }
.pt-side-card p { margin: 0 0 4px; color: var(--ux-muted); font-size: 13px; }
.pt-side-help { display: grid; gap: 2px; margin-top: auto; padding: 12px 6px 4px; border-top: 1px solid var(--ux-line-2); }
.pt-side-help-title { padding: 0 6px 4px; color: var(--ux-soft); font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.pt-side-help a { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 8px; color: var(--ux-ink-2); font-size: 13px; font-weight: 550; }
.pt-side-help a:hover { background: var(--ux-canvas); text-decoration: none; }
.pt-side-help svg { width: 16px; height: 16px; color: var(--ux-muted); }
.pt-me { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; border-top: 1px solid var(--ux-line-2); }
.pt-me-text { min-width: 0; flex: 1; }
.pt-me-text strong, .pt-me-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-me-text strong { font-size: 13px; font-weight: 620; }
.pt-me-text small { color: var(--ux-muted); font-size: 12px; }
.pt-signout { margin: 0; }
.pt-signout button, .pt-icon-button, .pt-menu { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--ux-line); border-radius: 10px; background: #fff; color: var(--ux-ink-2); cursor: pointer; }
.pt-signout button:hover, .pt-icon-button:hover, .pt-menu:hover { background: var(--ux-canvas); color: var(--ux-ink); }
.pt-avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px; background: color-mix(in srgb, var(--c, #62666e) 14%, #fff); color: var(--c, #62666e); font-size: 12px; font-weight: 680; letter-spacing: .02em; user-select: none; }

.pt-main { display: flex; flex-direction: column; min-width: 0; }
.pt-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 32px; border-bottom: 1px solid var(--ux-line); background: rgba(245, 245, 247, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pt-top-title { flex: 1; min-width: 0; }
.pt-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1px; color: var(--ux-soft); font-size: 12.5px; }
.pt-crumbs a { color: var(--ux-muted); font-weight: 550; }
.pt-title { margin: 0; overflow: hidden; font-size: 20px; font-weight: 680; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.pt-top-search { position: relative; display: flex; align-items: center; width: min(340px, 34vw); }
.pt-top-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ux-soft); pointer-events: none; }
.pt-top-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--ux-line); border-radius: 10px; background: #fff; color: var(--ux-ink); font: 400 13.5px/1 var(--ux-font); }
.pt-top-search input:focus { border-color: var(--ux-focus); box-shadow: var(--ux-ring); outline: none; }
.pt-top-actions { display: flex; align-items: center; gap: 8px; }
.pt-menu { display: none; }
.pt-content { flex: 1; width: 100%; max-width: 1360px; padding: 28px 32px 8px; outline: none; }
.pt-foot { padding: 22px 32px 28px; color: var(--ux-muted); font-size: 12.5px; }

/* ---------- text and small pieces */
.pt-eyebrow { margin: 0 0 6px; color: var(--ux-muted); font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.pt-eyebrow a { color: inherit; }
.pt-lead { margin: 0; color: var(--ux-ink-2); font-size: 15.5px; }
.pt-muted { margin: 0 0 12px; color: var(--ux-muted); }
.pt-link { color: var(--ux-link); font-size: 13.5px; font-weight: 600; }
.pt-number { color: var(--ux-ink); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pt-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--ux-navy); color: #fff; font-size: 11px; font-weight: 650; }
.pt-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--ux-line); border-radius: 999px; background: #fff; color: var(--ux-ink-2); font-size: 12px; font-weight: 620; white-space: nowrap; }
.pt-pill.is-ok { border-color: var(--ux-ok-line); background: var(--ux-ok-bg); color: var(--ux-ok-ink); }
.pt-pill.is-warn { border-color: var(--ux-warn-line); background: var(--ux-warn-bg); color: var(--ux-warn-ink); }
.pt-pill.is-off { background: var(--ux-canvas); color: var(--ux-muted); }
.pt-section-title { margin: 6px 0 12px; font-size: 16px; font-weight: 680; }

/* banners */
.pt-notice, .pt-error { margin: 0 0 18px; padding: 12px 16px; border: 1px solid; border-radius: 12px; font-weight: 520; font-size: 14px; }
.pt-notice { border-color: var(--ux-ok-line); background: var(--ux-ok-bg); color: var(--ux-ok-ink); }
.pt-error { border-color: var(--ux-risk-line); background: var(--ux-risk-bg); color: var(--ux-risk-ink); }
.pt-callout { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--ux-line); border-radius: 14px; background: #fff; color: var(--ux-ink-2); }
.pt-callout.is-attention { border-color: var(--ux-warn-line); background: var(--ux-warn-bg); color: var(--ux-warn-ink); }

/* buttons */
.pt-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border: 1px solid var(--ux-line-strong); border-radius: 9px; background: #fff; color: var(--ux-ink); font: 620 13.5px/1 var(--ux-font); cursor: pointer; white-space: nowrap; }
.pt-button:hover { background: var(--ux-canvas); text-decoration: none; }
.pt-button.is-primary { border-color: var(--ux-navy); background: var(--ux-navy); color: #fff; }
.pt-button.is-primary:hover { border-color: var(--ux-navy-hover); background: var(--ux-navy-hover); }
.pt-button.is-large { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 10px; }
.pt-button[disabled] { opacity: .6; cursor: progress; }
.pt-button svg { width: 16px; height: 16px; }

/* ---------- cards and layout */
.pt-card { margin: 0 0 20px; padding: 22px; border: 1px solid var(--ux-line); border-radius: 16px; background: #fff; box-shadow: var(--ux-depth); }
.pt-card.is-flush { padding: 0; overflow: hidden; }
.pt-card.is-flush > .pt-card-head { padding: 18px 22px 14px; margin: 0; border-bottom: 1px solid var(--ux-line-2); }
.pt-card.is-tint { background: var(--ux-tint); box-shadow: none; }
.pt-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.pt-card-head h3, .pt-card-title { margin: 0; font-size: 15.5px; font-weight: 680; }
.pt-card-title { margin-bottom: 10px; }
.pt-count { color: var(--ux-muted); font-size: 13px; }
.pt-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.pt-columns.is-wide-main { grid-template-columns: minmax(0, 1fr) 340px; }
.pt-stack { display: grid; gap: 20px; }
.pt-stack > .pt-card { margin: 0; }
.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pt-grid > .pt-card { margin: 0; }
.pt-empty { padding: 34px 20px; color: var(--ux-muted); text-align: center; }
.pt-empty strong { display: block; margin-bottom: 4px; color: var(--ux-ink); font-size: 15.5px; font-weight: 650; }
.pt-empty p { margin: 0 auto 6px; max-width: 460px; }

/* ---------- home */
.pt-welcome { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin: 0 0 22px; padding: 28px 30px;
    border: 1px solid var(--ux-line); border-radius: 18px; background: linear-gradient(135deg, #ffffff 0%, #f3f6fb 100%); box-shadow: var(--ux-depth); }
.pt-welcome h2 { margin: 0 0 6px; font-size: 30px; font-weight: 720; letter-spacing: -.025em; }
.pt-welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; }
.pt-stat { display: grid; align-content: start; gap: 2px; padding: 18px 20px; border: 1px solid var(--ux-line); border-radius: 16px; background: #fff; color: var(--ux-ink); box-shadow: var(--ux-depth); transition: border-color .15s, box-shadow .15s; }
.pt-stat:hover { border-color: #c4c7ce; box-shadow: var(--ux-depth-2); text-decoration: none; }
.pt-stat-label { color: var(--ux-muted); font-size: 12.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.pt-stat strong { font-size: 34px; font-weight: 720; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pt-stat small { color: var(--ux-muted); font-size: 13px; }
.pt-stat.is-attention { border-color: var(--ux-warn-line); background: var(--ux-warn-bg); }
.pt-stat.is-attention strong { color: var(--ux-warn-ink); }

/* search boxes */
.pt-search { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.pt-search svg { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--ux-soft); pointer-events: none; }
.pt-search input { flex: 1; min-width: 0; height: 42px; padding: 0 14px 0 40px; border: 1px solid var(--ux-line-strong); border-radius: 10px; background: #fff; color: var(--ux-ink); font: 400 14px/1 var(--ux-font); }
.pt-search input:focus { border-color: var(--ux-focus); box-shadow: var(--ux-ring); outline: none; }
.pt-search.is-compact { margin: 0; flex: 1; max-width: 360px; }
.pt-search.is-compact input { height: 38px; }
.pt-search.is-large input { height: 50px; font-size: 15px; border-radius: 12px; }
.pt-search.is-large .pt-button { height: 50px; padding: 0 22px; border-radius: 12px; }

/* guides list (small) */
.pt-guides { margin: 0 0 12px; padding: 0; list-style: none; }
.pt-guides li + li { border-top: 1px solid var(--ux-line-2); }
.pt-guides a { display: grid; gap: 1px; padding: 10px 2px; color: var(--ux-ink); }
.pt-guides a:hover { text-decoration: none; }
.pt-guides a:hover strong { color: var(--ux-link); }
.pt-guides strong { font-size: 14px; font-weight: 600; }
.pt-guides span { color: var(--ux-muted); font-size: 12.5px; }

/* ---------- request list */
.pt-requests { margin: 0; padding: 0; list-style: none; }
.pt-requests li + li { border-top: 1px solid var(--ux-line-2); }
.pt-request { display: flex; align-items: center; gap: 16px; padding: 15px 22px; color: var(--ux-ink); }
.pt-request:hover { background: #fafbfc; text-decoration: none; }
.pt-request:hover .pt-request-subject { color: var(--ux-link); }
.pt-request-main { display: grid; gap: 3px; flex: 1; min-width: 0; }
.pt-request-subject { overflow: hidden; font-size: 15px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.pt-request-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ux-muted); font-size: 13px; }
.pt-request-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.pt-request-when { color: var(--ux-muted); font-size: 12.5px; white-space: nowrap; }
.pt-request-go { width: 16px; height: 16px; color: var(--ux-soft); }

.pt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 18px; }
.pt-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--ux-line); border-radius: 12px; background: #fff; }
.pt-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px; color: var(--ux-ink-2); font-size: 13.5px; font-weight: 600; }
.pt-tabs a:hover { background: var(--ux-canvas); text-decoration: none; }
.pt-tabs a.is-active { background: var(--ux-navy); color: #fff; }
.pt-tabs em { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--ux-canvas); color: var(--ux-ink-2); font: 650 11.5px/1.4 var(--ux-font); text-align: center; font-style: normal; }
.pt-tabs a.is-active em { background: rgba(255, 255, 255, .16); color: #fff; }
.pt-toolbar > .pt-button { margin-left: auto; }
.pt-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--ux-line-2); color: var(--ux-muted); font-size: 13px; }
.pt-pager span { margin-right: auto; }

/* ---------- one request */
.pt-ticket-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; margin: 0 0 20px; padding: 24px 26px; border: 1px solid var(--ux-line); border-radius: 18px; background: #fff; box-shadow: var(--ux-depth); }
.pt-ticket-title h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.pt-ticket-status { align-self: start; }
.pt-ticket-status .pt-pill { height: 28px; padding: 0 12px; font-size: 13px; }
.pt-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--ux-line-2); }
.pt-facts div { display: grid; gap: 1px; }
.pt-facts dt { color: var(--ux-soft); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.pt-facts dd { margin: 0; color: var(--ux-ink); font-size: 14px; font-weight: 550; }

.pt-thread { display: grid; gap: 16px; margin: 0 0 22px; }
.pt-entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.pt-entry .pt-avatar { width: 40px; height: 40px; font-size: 12.5px; }
.pt-entry.is-staff .pt-avatar { font-size: 10.5px; letter-spacing: .04em; }
.pt-entry-card { min-width: 0; border: 1px solid var(--ux-line); border-radius: 16px; background: #fff; box-shadow: var(--ux-depth); }
.pt-entry.is-staff .pt-entry-card { border-left: 3px solid var(--ux-navy); }
.pt-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 20px 0; }
.pt-entry-head strong { font-size: 14.5px; font-weight: 650; }
.pt-entry-head time { margin-left: auto; color: var(--ux-muted); font-size: 12.5px; }
.pt-entry-body { padding: 10px 20px 18px; color: var(--ux-ink-2); font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.pt-entry-body > :first-child { margin-top: 0; }
.pt-entry-body > :last-child { margin-bottom: 0; }
.pt-entry-body img { max-width: 100%; height: auto; border-radius: 8px; }
.pt-entry-body blockquote { margin: 10px 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--ux-line); color: var(--ux-muted); }
.pt-entry-body table { max-width: 100%; border-collapse: collapse; }
.pt-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 20px 18px; list-style: none; }
.pt-files a { display: inline-flex; align-items: center; gap: 8px; max-width: 320px; height: 36px; padding: 0 12px; border: 1px solid var(--ux-line); border-radius: 10px; background: var(--ux-tint); color: var(--ux-ink); font-size: 13px; font-weight: 560; }
.pt-files a:hover { border-color: var(--ux-line-strong); text-decoration: none; }
.pt-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-files small { color: var(--ux-muted); font-size: 12px; white-space: nowrap; }
.pt-files svg { width: 16px; height: 16px; color: var(--ux-muted); }

/* ---------- forms */
.pt-form { display: grid; gap: 16px; }
.pt-field { display: grid; gap: 6px; margin: 0; }
.pt-field > span { color: var(--ux-ink-2); font-size: 13px; font-weight: 620; }
.pt-field > span em { color: var(--ux-muted); font-style: normal; font-weight: 400; }
.pt-field input, .pt-field select, .pt-field textarea { width: 100%; padding: 0 12px; border: 1px solid var(--ux-line-strong); border-radius: 9px; background: #fff; color: var(--ux-ink); font: 400 14.5px/1.5 var(--ux-font); }
.pt-field input, .pt-field select { height: 42px; }
.pt-field textarea { min-height: 140px; padding: 11px 12px; resize: vertical; }
.pt-field input:focus, .pt-field select:focus, .pt-field textarea:focus { border-color: var(--ux-focus); box-shadow: var(--ux-ring); outline: none; }
.pt-field small { color: var(--ux-muted); font-size: 12.5px; }
.pt-static { margin: 0; padding: 10px 12px; border: 1px solid var(--ux-line-2); border-radius: 9px; background: var(--ux-tint); color: var(--ux-ink-2); }
.pt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 4px 0 0; }
.pt-file-pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; border: 1.5px dashed var(--ux-line-strong); border-radius: 12px; background: var(--ux-tint); cursor: pointer; }
.pt-file-pick:hover { border-color: var(--ux-focus); }
.pt-file-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pt-file-pick span { color: var(--ux-ink); font-weight: 620; }
.pt-file-pick small { color: var(--ux-muted); font-size: 12.5px; }
.pt-file-list { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 0; padding: 0; list-style: none; }
.pt-file-list:empty { display: none; }
.pt-file-list li { padding: 5px 10px; border: 1px solid var(--ux-line); border-radius: 999px; background: #fff; color: var(--ux-ink-2); font-size: 12.5px; }
.pt-ticks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-ticks li { position: relative; padding-left: 24px; color: var(--ux-ink-2); font-size: 13.5px; }
.pt-ticks li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--ux-ok-ink); border-bottom: 2px solid var(--ux-ok-ink); transform: rotate(-45deg); }

/* ---------- library */
.pt-library-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr); gap: 20px 32px; align-items: end; margin: 0 0 24px; padding: 30px;
    border: 1px solid var(--ux-line); border-radius: 18px; background: linear-gradient(135deg, #ffffff 0%, #f3f6fb 100%); box-shadow: var(--ux-depth); }
.pt-library-top h2 { margin: 0 0 6px; font-size: 30px; font-weight: 720; letter-spacing: -.025em; }
.pt-library-top .pt-search { margin: 0; }
.pt-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0 0 24px; }
.pt-topic { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--ux-line); border-radius: 16px; background: #fff; color: var(--ux-ink); box-shadow: var(--ux-depth); transition: border-color .15s, box-shadow .15s; }
.pt-topic:hover { border-color: #c4c7ce; box-shadow: var(--ux-depth-2); text-decoration: none; }
.pt-topic strong { font-size: 15.5px; font-weight: 680; }
.pt-topic p { flex: 1; margin: 0; color: var(--ux-muted); font-size: 13.5px; }
.pt-topic-count { color: var(--ux-link); font-size: 13px; font-weight: 620; }
.pt-articles { margin: 0; padding: 0; list-style: none; }
.pt-articles li + li { border-top: 1px solid var(--ux-line-2); }
.pt-article-link { display: grid; gap: 3px; padding: 16px 22px; color: var(--ux-ink); }
.pt-article-link:hover { background: #fafbfc; text-decoration: none; }
.pt-article-link:hover strong { color: var(--ux-link); }
.pt-article-link strong { font-size: 15px; font-weight: 640; }
.pt-article-link p { margin: 0; color: var(--ux-muted); font-size: 13.5px; }
.pt-article-cat { color: var(--ux-soft); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.pt-article-cat em { color: #a16207; font-style: normal; }
.pt-topic-list { margin: 0; padding: 0; list-style: none; }
.pt-topic-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ux-ink-2); font-size: 13.5px; font-weight: 560; }
.pt-topic-list a:hover { background: var(--ux-canvas); text-decoration: none; }
.pt-topic-list a[aria-current] { background: var(--ux-active); color: var(--ux-ink); }
.pt-topic-list em { margin-left: auto; color: var(--ux-muted); font-style: normal; font-size: 12.5px; }

/* a guide (the stored article markup: summary, at-a-glance, on-this-page, sections, pictures, related) */
.pt-article { padding: 30px 34px; }
.pt-article-head { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ux-line-2); }
.pt-article-head h2 { margin: 0 0 6px; font-size: 28px; font-weight: 720; letter-spacing: -.02em; line-height: 1.25; }
.pt-article-head .pt-muted { margin: 0; }
.pt-article-body { color: var(--ux-ink-2); font-size: 15px; line-height: 1.7; }
.pt-article-body h2, .pt-article-body h3 { color: var(--ux-ink); letter-spacing: -.01em; }
.pt-article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.pt-article-body .dse-kb-summary { margin: 0 0 18px; color: var(--ux-ink); font-size: 16.5px; line-height: 1.6; }
.pt-article-body .dse-kb-summary-label { display: none; }
.pt-article-body .dse-kb-at-a-glance { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--ux-line-2); border-radius: 12px; background: var(--ux-tint); }
.pt-article-body .dse-kb-at-a-glance div { display: grid; gap: 1px; }
.pt-article-body .dse-kb-glance-label { color: var(--ux-soft); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.pt-article-body .dse-kb-at-a-glance strong { color: var(--ux-ink); font-size: 14px; font-weight: 600; }
.pt-article-body .dse-kb-on-this-page { margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--ux-line); border-radius: 12px; }
.pt-article-body .dse-kb-on-this-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.pt-article-body .dse-kb-on-this-page-head strong { color: var(--ux-ink); font-size: 14px; }
.pt-article-body .dse-kb-article-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-article-body .dse-kb-article-tools button { height: 30px; padding: 0 11px; border: 1px solid var(--ux-line-strong); border-radius: 8px; background: #fff; color: var(--ux-ink-2); font: 600 12.5px/1 var(--ux-font); cursor: pointer; }
.pt-article-body .dse-kb-article-tools button:hover { background: var(--ux-canvas); }
.pt-article-body .dse-kb-on-this-page ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.pt-article-body .dse-kb-on-this-page li { margin: 0 0 4px; break-inside: avoid; font-size: 14px; }
/* the stored links carry their own number ("<span>01</span>Title"): no second list number, a gap after it */
.pt-article-body .dse-kb-on-this-page ol:has(a > span:first-child) { padding-left: 0; list-style: none; }
.pt-article-body .dse-kb-on-this-page a > span:first-child { display: inline-block; min-width: 26px; margin-right: 6px; color: var(--ux-soft); font-weight: 650; font-variant-numeric: tabular-nums; }
.pt-article-body .dse-kb-visual-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 22px; }
.pt-article-body .dse-kb-visual-gallery-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.pt-article-body .dse-kb-visual-gallery-head span { color: var(--ux-soft); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.pt-article-body .dse-kb-visual { position: relative; margin: 0; padding: 10px; border: 1px solid var(--ux-line); border-radius: 12px; background: #fff; }
.pt-article-body .dse-kb-visual-number { position: absolute; top: 16px; left: 16px; padding: 2px 8px; border-radius: 999px; background: var(--ux-navy); color: #fff; font-size: 11px; font-weight: 650; }
.pt-article-body .dse-kb-visual img { display: block; width: 100%; border-radius: 8px; }
.pt-article-body .dse-kb-visual figcaption { margin-top: 8px; color: var(--ux-muted); font-size: 12.5px; line-height: 1.45; }
.pt-article-body details.dse-kb-section { margin: 0 0 12px; border: 1px solid var(--ux-line); border-radius: 12px; background: #fff; }
.pt-article-body details.dse-kb-section > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.pt-article-body details.dse-kb-section > summary::-webkit-details-marker { display: none; }
.pt-article-body .dse-kb-section-number { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ux-canvas); color: var(--ux-ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-article-body .dse-kb-section-heading { flex: 1; color: var(--ux-ink); font-size: 15.5px; font-weight: 650; }
.pt-article-body .dse-kb-section-toggle { width: 10px; height: 10px; border-right: 2px solid var(--ux-muted); border-bottom: 2px solid var(--ux-muted); transform: rotate(45deg); transition: transform .15s; }
.pt-article-body details[open] > summary .dse-kb-section-toggle { transform: rotate(-135deg); }
.pt-article-body details[open] > summary { border-bottom: 1px solid var(--ux-line-2); }
.pt-article-body .dse-kb-section-body { padding: 14px 20px 6px; }
.pt-article-body .dse-kb-section-list { margin: 0 0 12px; padding-left: 22px; }
.pt-article-body .dse-kb-section-list li { margin: 0 0 8px; }
.pt-article-body .dse-kb-check-list { padding-left: 0; list-style: none; }
.pt-article-body .dse-kb-check-list li { position: relative; padding-left: 26px; }
.pt-article-body .dse-kb-check-list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 5px; border-left: 2px solid var(--ux-ok-ink); border-bottom: 2px solid var(--ux-ok-ink); transform: rotate(-45deg); }
.pt-article-body .dse-kb-related { margin: 24px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--ux-tint); }
.pt-article-body .dse-kb-related-heading { margin: 0 0 8px; font-size: 15px; }
.pt-article-body .dse-kb-related-list { margin: 0; padding-left: 18px; }
.pt-article-body .dse-kb-review-footer { margin-top: 20px; color: var(--ux-muted); }
.pt-article-body .dse-kb-review-footer hr { border: 0; border-top: 1px solid var(--ux-line-2); }

/* ---------- profile (round 1 pieces) */
.pt-list { margin: 0; padding: 0; list-style: none; }
.pt-list li { padding: 12px 0; border-bottom: 1px solid var(--ux-line-2); }
.pt-list li:last-child { border-bottom: 0; }
.pt-list strong { font-weight: 620; }
.pt-list small { display: block; margin-top: 2px; color: var(--ux-muted); font-size: 12.5px; }
.pt-theme-slot .dse-theme-choice { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.pt-theme-slot .dse-theme-choice-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pt-theme-slot .dse-theme-choice-options { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--ux-line); border-radius: 12px; background: var(--ux-canvas); }
.pt-theme-slot .dse-theme-choice-options button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--ux-ink-2); font: 600 13px/1 var(--ux-font); cursor: pointer; }
.pt-theme-slot .dse-theme-choice-options button svg { width: 16px; height: 16px; }
.pt-theme-slot .dse-theme-choice-options button[aria-checked="true"] { background: #fff; color: var(--ux-ink); box-shadow: var(--ux-depth); }

/* ---------- round 3: quotes */
.pt-nav-count.is-attention { background: var(--ux-warn-bg); color: var(--ux-warn-ink); box-shadow: inset 0 0 0 1px var(--ux-warn-line); }
.pt-nav a.is-active .pt-nav-count.is-attention { background: #f6d58a; color: #3d2a00; box-shadow: none; }
.pt-fineprint { margin: -6px 2px 20px; font-size: 13px; }
.pt-doc-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--ux-canvas); color: var(--ux-ink-2); }
.pt-doc-icon svg { width: 20px; height: 20px; }
.pt-quote-total { flex: none; min-width: 96px; color: var(--ux-ink); font-size: 15px; font-weight: 680; font-variant-numeric: tabular-nums; text-align: right; }
.pt-quote-head .pt-quote-actions { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.pt-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: none; }
.pt-steps li { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 8px; border: 1px solid var(--ux-line); border-radius: 999px; background: #fff; color: var(--ux-muted); font-size: 13.5px; font-weight: 600; }
.pt-steps li span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--ux-canvas); color: var(--ux-ink-2); font-size: 12.5px; font-weight: 700; }
.pt-steps li.is-current { border-color: var(--ux-navy); color: var(--ux-ink); }
.pt-steps li.is-current span { background: var(--ux-navy); color: #fff; }
.pt-done { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 20px; padding: 20px 22px; border: 1px solid var(--ux-ok-line); border-radius: 16px; background: var(--ux-ok-bg); }
.pt-done-mark { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--ux-ok-ink); color: #fff; }
.pt-done-mark svg { width: 22px; height: 22px; stroke-width: 2.4; }
.pt-done h3 { margin: 2px 0 4px; color: var(--ux-ok-ink); font-size: 17px; font-weight: 700; }
.pt-done p { margin: 0 0 6px; color: var(--ux-ink-2); }
.pt-fingerprint { color: var(--ux-muted) !important; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; }
.pt-quote-reason { display: block; margin: 6px 0; font-style: italic; }

/* the issued document (DSE's own document markup, shown as a sheet of paper) */
.pt-doc { padding: 0; overflow: hidden; }
.pt-doc .dse-document { color: var(--ux-ink); }
.pt-doc .dse-document-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 26px; background: var(--ux-navy); color: #fff; }
.pt-doc .dse-document-brand { display: flex; align-items: center; gap: 14px; }
.pt-doc .dse-document-brand img { width: 48px; height: 48px; border-radius: 10px; background: #fff; padding: 4px; }
.pt-doc .dse-document-brand strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pt-doc .dse-document-brand span { display: block; color: #b9cbd8; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.pt-doc .dse-document-identity { text-align: right; }
.pt-doc .dse-document-identity span, .pt-doc .dse-document-identity small { display: block; color: #9fc6e6; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.pt-doc .dse-document-identity h1 { margin: 2px 0; font-size: 26px; font-weight: 720; letter-spacing: -.01em; line-height: 1.15; }
.pt-doc .dse-document-status, .pt-doc .dse-document-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-bottom: 1px solid var(--ux-line-2); }
.pt-doc .dse-document-status > div, .pt-doc .dse-document-parties > div { padding: 14px 26px; border-right: 1px solid var(--ux-line-2); }
.pt-doc .dse-document-status > div:last-child, .pt-doc .dse-document-parties > div:last-child { border-right: 0; }
.pt-doc .dse-document-status { background: var(--ux-tint); }
.pt-doc .dse-document-status span, .pt-doc .dse-document-parties span, .pt-doc .dse-document-summary dt { display: block; color: var(--ux-soft); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.pt-doc .dse-document-status strong, .pt-doc .dse-document-parties strong { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 620; }
.pt-doc .dse-document-parties p { margin: 4px 0 0; color: var(--ux-muted); font-size: 13.5px; }
.pt-doc .dse-document-summary { padding: 20px 26px 4px; }
.pt-doc .dse-document-summary h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pt-doc .dse-document-summary p { margin: 0 0 12px; color: var(--ux-ink-2); }
.pt-doc .dse-document-summary dl { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; }
.pt-doc .dse-document-summary dd { margin: 1px 0 0; font-weight: 560; }
.pt-doc .dse-document-lines { padding: 6px 26px 18px; overflow-x: auto; }
.pt-doc .dse-document-lines table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pt-doc .dse-document-lines th, .pt-doc .dse-document-lines td { padding: 11px 10px; border-bottom: 1px solid var(--ux-line-2); text-align: right; vertical-align: top; }
.pt-doc .dse-document-lines th:first-child, .pt-doc .dse-document-lines td:first-child { width: 58%; padding-left: 0; text-align: left; }
.pt-doc .dse-document-lines th:last-child, .pt-doc .dse-document-lines td:last-child { padding-right: 0; }
.pt-doc .dse-document-lines thead th { color: var(--ux-soft); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.pt-doc .dse-document-lines td small { color: var(--ux-muted); }
.pt-doc .dse-document-lines tfoot th { border-bottom: 0; padding-top: 14px; font-size: 16px; font-weight: 720; }
.pt-doc .dse-document-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 26px 20px; padding: 16px 18px; border-radius: 12px; background: var(--ux-tint); }
.pt-doc .dse-document-terms h2 { margin: 0 0 4px; font-size: 14px; font-weight: 680; }
.pt-doc .dse-document-terms p { margin: 0; color: var(--ux-ink-2); font-size: 13.5px; }
.pt-doc .dse-document-signature { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; margin: 0 26px 20px; padding: 16px 18px; border: 1px solid var(--ux-ok-line); border-radius: 12px; background: var(--ux-ok-bg); }
.pt-doc .dse-document-signature.is-declined { display: block; border-color: var(--ux-risk-line); background: var(--ux-risk-bg); }
.pt-doc .dse-document-signature h2 { margin: 0 0 6px; font-size: 14px; font-weight: 680; }
.pt-doc .dse-document-signature.is-declined h2 { color: var(--ux-risk-ink); }
.pt-doc .dse-document-signature > div { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.pt-doc .dse-document-signature img { max-width: 260px; max-height: 80px; background: #fff; border-radius: 6px; }
.pt-doc .dse-document-signature span, .pt-doc .dse-document-signature small { color: var(--ux-muted); font-size: 13px; }
.pt-doc .dse-document-seal { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ux-ok-ink); color: #fff !important; font-size: 11.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pt-doc .dse-typed-signature, .pt-sign-script { color: #17305a; font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: 30px; line-height: 1.2; }
.pt-doc .dse-document-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 26px; border-top: 1px solid var(--ux-line-2); background: var(--ux-tint); color: var(--ux-muted); font-size: 12px; }
.pt-doc .dse-document-footer img { width: 22px; height: 22px; }
.pt-doc .dse-document-footer span:last-child { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* answering: sign, decline, confirm receipt */
.pt-answer { scroll-margin-top: 84px; }
.pt-answer [hidden] { display: none !important; }
.pt-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pt-sign-method { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pt-sign-method legend { margin: 0 0 8px; padding: 0; color: var(--ux-ink-2); font-size: 13px; font-weight: 620; }
.pt-segment { display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border: 1px solid var(--ux-line); border-radius: 12px; background: var(--ux-canvas); }
.pt-segment label { position: relative; cursor: pointer; }
.pt-segment input { position: absolute; opacity: 0; pointer-events: none; }
.pt-segment span { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 9px; color: var(--ux-ink-2); font-size: 13.5px; font-weight: 600; }
.pt-segment input:checked + span { background: #fff; color: var(--ux-ink); box-shadow: var(--ux-depth); }
.pt-segment input:focus-visible + span { outline: 2px solid var(--ux-focus); outline-offset: 1px; }
.pt-sign-typed { display: grid; gap: 4px; padding: 18px 20px 14px; border: 1px solid var(--ux-line); border-radius: 12px; background: #fff; }
.pt-sign-typed .pt-sign-script { padding-bottom: 6px; border-bottom: 1.5px solid var(--ux-line-strong); overflow-wrap: anywhere; }
.pt-sign-typed small, .pt-sign-pad-foot small { color: var(--ux-muted); font-size: 12.5px; }
.pt-sign-drawn { display: grid; gap: 6px; }
.pt-sign-pad { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 900 / 240; border: 1.5px dashed var(--ux-line-strong); border-radius: 12px; background: #fff; cursor: crosshair; touch-action: none; }
.pt-sign-pad.has-ink { border-style: solid; }
.pt-sign-pad-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 640px; }
.pt-link-button { padding: 4px 6px; border: 0; background: none; color: var(--ux-link); font: 600 13px/1 var(--ux-font); cursor: pointer; }
.pt-check { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--ux-line); border-radius: 12px; background: var(--ux-tint); color: var(--ux-ink-2); font-size: 14px; cursor: pointer; }
.pt-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ux-navy); }
.pt-answer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.pt-answer-foot p { flex: 1; min-width: 240px; margin: 0; color: var(--ux-muted); font-size: 13px; }
.pt-button.is-danger { border-color: var(--ux-risk-line); background: var(--ux-risk-bg); color: var(--ux-risk-ink); }
.pt-button.is-danger:hover { border-color: var(--ux-risk-ink); background: #ffeceb; }
.pt-decline { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--ux-line-2); }
.pt-decline > summary { color: var(--ux-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pt-decline > summary:hover { color: var(--ux-ink); }
.pt-decline[open] > summary { margin-bottom: 14px; }
.pt-dialog { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--ux-line); border-radius: 18px; background: #fff; color: var(--ux-ink); box-shadow: 0 24px 60px rgba(16, 24, 40, .25); }
.pt-dialog::backdrop { background: rgba(16, 29, 46, .45); }
.pt-dialog h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.pt-dialog .pt-facts { padding: 12px 0; margin: 0 0 12px; border-bottom: 1px solid var(--ux-line-2); }
.pt-dialog p { margin: 0 0 16px; color: var(--ux-ink-2); font-size: 14px; }

/* home: something to sign */
.pt-sign-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 0 0 22px; padding: 18px 22px; border: 1px solid var(--ux-warn-line); border-radius: 16px; background: var(--ux-warn-bg); }
.pt-sign-banner .pt-doc-icon { background: #fff; color: var(--ux-warn-ink); }
.pt-sign-banner > div { flex: 1; min-width: 220px; }
.pt-sign-banner h3 { margin: 0 0 2px; color: var(--ux-ink); font-size: 16px; font-weight: 680; }
.pt-sign-banner p { margin: 0; color: var(--ux-ink-2); font-size: 13.5px; }

/* ---------- round 3: projects */
.pt-progress { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: var(--ux-line-2); }
.pt-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #235f99, #387ac0); }
.pt-project-bar { display: flex; align-items: center; gap: 8px; flex: none; width: 150px; }
.pt-project-bar .pt-progress { flex: 1; }
.pt-project-bar small { min-width: 34px; color: var(--ux-muted); font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pt-phases { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.pt-phases li { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--ux-muted); font-size: 12.5px; font-weight: 600; text-align: center; }
.pt-phases li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--ux-line); }
.pt-phases li:first-child::before { display: none; }
.pt-phases li.is-done::before, .pt-phases li.is-current::before { background: var(--ux-ok-ink); }
.pt-phase-dot { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--ux-line); border-radius: 999px; background: #fff; color: var(--ux-muted); font-size: 12.5px; font-weight: 700; }
.pt-phase-dot svg { width: 16px; height: 16px; stroke-width: 2.6; }
.pt-phases li.is-done .pt-phase-dot { border-color: var(--ux-ok-ink); background: var(--ux-ok-ink); color: #fff; }
.pt-phases li.is-current .pt-phase-dot { border-color: var(--ux-navy); background: var(--ux-navy); color: #fff; box-shadow: 0 0 0 4px rgba(16, 29, 46, .12); }
.pt-phases li.is-current { color: var(--ux-ink); }
.pt-list-label { margin: 0; padding: 14px 22px 4px; color: var(--ux-soft); font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.pt-visits { margin: 0; padding: 0 0 6px; list-style: none; }
.pt-visit { display: flex; align-items: center; gap: 14px; padding: 12px 22px; }
.pt-visit + .pt-visit { border-top: 1px solid var(--ux-line-2); }
.pt-visit-date { flex: none; min-width: 120px; font-size: 13.5px; }
.pt-visit-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
.pt-visit-main strong { font-size: 14px; font-weight: 620; }
.pt-visit-main small { color: var(--ux-muted); font-size: 12.5px; }
.pt-visit.is-past .pt-visit-main strong, .pt-visit.is-done .pt-visit-main strong { color: var(--ux-ink-2); }
.pt-mini-projects { margin: 0; padding: 0; list-style: none; }
.pt-mini-projects li + li { border-top: 1px solid var(--ux-line-2); }
.pt-mini-projects a { display: grid; gap: 4px; padding: 10px 2px 12px; color: var(--ux-ink); }
.pt-mini-projects a:hover { text-decoration: none; }
.pt-mini-projects a:hover strong { color: var(--ux-link); }
.pt-mini-projects strong { font-size: 14px; font-weight: 620; }
.pt-mini-projects span:not(.pt-progress) { color: var(--ux-muted); font-size: 12.5px; }
.pt-mini-projects .pt-progress { height: 6px; margin-top: 2px; }

/* ---------- printing a guide */
@media print {
    .pt-side, .pt-top, .pt-foot, .pt-stack, .dse-kb-article-tools { display: none !important; }
    .pt-app, .pt-columns { display: block; }
    .pt-card { border: 0; box-shadow: none; }
    details.dse-kb-section > .dse-kb-section-body { display: block !important; }
}

/* ---------- narrower screens */
@media (max-width: 1180px) {
    .pt-columns, .pt-columns.is-wide-main { grid-template-columns: minmax(0, 1fr); }
    .pt-library-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .pt-app { grid-template-columns: minmax(0, 1fr); }
    .pt-side { position: fixed; left: 0; top: 0; z-index: 20; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 12px 40px rgba(16, 24, 40, .18); }
    body.pt-menu-open .pt-side { transform: none; }
    .pt-menu { display: inline-grid; }
    .pt-top { padding: 8px 16px; gap: 10px; }
    .pt-top-search { display: none; }
    .pt-content { padding: 20px 16px 4px; }
    .pt-foot { padding: 16px; }
    .pt-grid, .pt-stats { grid-template-columns: minmax(0, 1fr); }
    .pt-welcome, .pt-library-top { padding: 22px 20px; }
    .pt-welcome h2, .pt-library-top h2 { font-size: 25px; }
    .pt-ticket-head { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .pt-entry { grid-template-columns: minmax(0, 1fr); }
    .pt-entry .pt-avatar { display: none; }
    .pt-article { padding: 22px 20px; }
    .pt-article-body .dse-kb-on-this-page ol { columns: 1; }
    .pt-toolbar > .pt-button { margin-left: 0; }
    .pt-search.is-compact { max-width: none; }
    .pt-form-row { grid-template-columns: minmax(0, 1fr); }
    .pt-phases { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pt-phases li { grid-template-columns: 32px minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; padding: 4px 0; text-align: left; }
    .pt-phases li::before { top: auto; bottom: 50%; right: auto; left: 15px; width: 2px; height: 100%; }
    .pt-doc .dse-document-head, .pt-doc .dse-document-summary, .pt-doc .dse-document-lines { padding-left: 18px; padding-right: 18px; }
    .pt-doc .dse-document-status > div, .pt-doc .dse-document-parties > div { padding: 12px 18px; }
    .pt-doc .dse-document-terms, .pt-doc .dse-document-signature { margin-left: 18px; margin-right: 18px; }
}
@media (max-width: 640px) {
    .pt-request { flex-wrap: wrap; padding: 14px 18px; }
    .pt-request-subject { white-space: normal; }
    .pt-request-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
    .pt-request-go { display: none; }
    .pt-quotes .pt-doc-icon { display: none; }
    .pt-quote-total { min-width: 0; order: 2; }
    .pt-project-bar { width: 100%; }
    .pt-visit { flex-wrap: wrap; padding: 12px 18px; }
    .pt-visit-date { min-width: 0; width: 100%; }
    .pt-doc .dse-document-identity { text-align: left; }
    .pt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .pt-stat { padding: 12px; }
    .pt-stat strong { font-size: 26px; }
    .pt-stat small { display: none; }
    .pt-stat-label { font-size: 10.5px; }
    .pt-search.is-large { flex-wrap: wrap; }
    .pt-search.is-large .pt-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pt-side, .pt-stat, .pt-topic { transition: none; } }
