:root {
    --brand-blue: #006ebd;
    --brand-blue-dark: #005aa3;
    --brand-navy: #003366;
    --brand-orange: #ff6600;
    --surface: #fff;
    --page: #f0f5fa;
    --text: #20313f;
    --muted: #53677a;
    --border: #d5e0ea;
    --shadow: 0 12px 32px rgba(0, 51, 102, .08);
}
.editor-summary-settings { margin: 1rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #f8fbfe; }
.editor-summary-settings > summary { color: var(--brand-navy); font-weight: 700; cursor: pointer; }
.editor-summary-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 1.5rem; margin-top: .75rem; }
.editor-summary-grid input, .editor-summary-grid select, .editor-summary-grid textarea { max-width: none; }
.editor-summary-settings a[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.summary-page { width: 100%; }
.delivery-capture-list { display:grid; gap:.75rem; }
.delivery-capture-card { display:flex; align-items:center; gap:1rem; justify-content:space-between; padding:1rem; border:1px solid var(--border); border-radius:8px; background:#f8fbfe; }
.delivery-capture-card h2 { margin:0 0 .4rem; font-size:1rem; }
.delivery-capture-card p { margin:.25rem 0; overflow-wrap:anywhere; }
.delivery-capture-meta { display:grid; gap:.35rem; color:var(--muted); font-size:.85rem; }
.delivery-pager { display:flex; align-items:center; gap:1rem; margin-top:1rem; }
.delivery-message-details { display:grid; grid-template-columns:5rem minmax(0,1fr); gap:1rem; }
.delivery-message-details dt { color:var(--muted); }
.delivery-message-details dd { margin:0; overflow-wrap:anywhere; }
.delivery-empty { padding:1.25rem; border:1px dashed var(--border); border-radius:8px; color:var(--muted); }
@media(max-width:650px) { .delivery-capture-card { align-items:flex-start; flex-direction:column; } .delivery-message-details { grid-template-columns:minmax(0,1fr); gap:.5rem; } }
.summary-selection-status { margin-left: .5rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.summary-selection-status[data-empty="true"] { color: #a1430a; }
.summary-setup-notice { margin: 1.5rem 0; padding: clamp(1rem,2vw,1.5rem); border: 1px solid #e6ceb0; border-left: 4px solid #b26913; border-radius: 8px; background: #fffaf2; }
.summary-setup-notice h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.summary-setup-notice p { margin: .5rem 0; }
.summary-setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1rem; }
.summary-recipient-notice { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .75rem; margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid #b26913; border-radius: 6px; background: #fffaf2; font-size: .9rem; }
.summary-page-toolbar, .summary-page-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.summary-page-actions { justify-content: flex-end; }
.summary-page-actions a.admin-page-icon, .summary-page-actions button.admin-page-icon:not(.k-button) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; min-height: 40px; margin: 0; padding: .5rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--brand-blue-dark); text-decoration: none; }
.summary-page-actions a.admin-page-icon:hover, .summary-page-actions button.admin-page-icon:not(.k-button):hover { background: #e9f4fc; color: var(--brand-navy); }
.summary-page-actions .admin-page-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.summary-email-preview { margin: 1rem 0 1.5rem; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #f4f9fd; }
.summary-email-preview summary { cursor: pointer; font-weight: 700; color: var(--brand-navy); }
.summary-email-preview dl { display: grid; grid-template-columns: 6rem minmax(0,1fr); gap: .5rem 1rem; }
.summary-email-preview dt { font-size: .85rem; color: var(--muted); }
.summary-email-preview dd { margin: 0; overflow-wrap: anywhere; }
.summary-email-body, .summary-introduction, .summary-contact { white-space: pre-wrap; overflow-wrap: anywhere; }
.summary-document { container: response-panel / inline-size; }
.summary-photos { display: flex; flex-wrap: wrap; gap: .75rem; }
.summary-photos img { max-width: min(100%,320px); max-height: 220px; object-fit: contain; border-radius: 6px; }
@media (max-width:600px) { .editor-summary-grid { grid-template-columns: minmax(0,1fr); } .summary-email-preview dl { grid-template-columns: minmax(0,1fr); } .summary-email-preview dd { margin-bottom: .5rem; } }
@media print { .summary-page-toolbar, .summary-email-preview, .summary-recipient-notice { display: none !important; } }
.signature-recovery-page { padding: clamp(1rem, 4vw, 3rem); }
.offline-signer-page { min-height: 100dvh; background: #edf4fa; }
.offline-signer-shell { display: grid; place-items: center; min-height: 100dvh; padding: clamp(1rem, 3vw, 2rem); }
.offline-signer-card { width: min(100%, 850px); padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.offline-signer-card.is-return { max-width: 500px; }
.offline-signer-card .signer-brand { color: var(--brand-blue-dark); font-size: .85rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.offline-signer-ack { padding: 1rem; border: 1px solid var(--border); border-radius: 9px; background: #f7fbff; white-space: pre-wrap; }
.offline-signer-card dd { margin: .25rem 0 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.offline-signer-card dt { font-weight: 650; }
.offline-signer-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.offline-signer-card button.button-secondary, .offline-signer-card .signature-actions button { background: #fff; color: var(--brand-blue-dark); border-color: var(--border); }
.offline-signer-card button.button-secondary:hover, .offline-signer-card .signature-actions button:hover { background: #edf4fa; }
.offline-signer-card #signing-pad canvas { width: 100%; height: auto; }
.offline-signer-card summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.offline-signer-card input.signer-pin-input { max-width: none; text-align: center; letter-spacing: .3em; font-size: 1.25rem; }
.offline-signer-card button.offline-signer-recovery { margin: .5rem 0; padding: .3rem 0; border: 0; background: transparent; color: var(--brand-blue-dark); text-decoration: underline; font-size: .85rem; }
.signature-summary-local-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.signature-summary-local-actions button:not(.k-button) { margin: 0; padding: .35rem .6rem; min-height: 38px; border-color: var(--border); background: #fff; color: var(--brand-blue-dark); font-size: .8rem; }
.signature-summary-local-actions button:not(.k-button):hover { background: #edf4fa; }
.signature-sync-comparison { margin: 1rem 0; }
.draft-recovery-dialog.is-signature-review[open] { display: flex; flex-direction: column; overflow: hidden; }
.draft-recovery-dialog.is-signature-review > :not(#draft-recovery-signatures) { flex: 0 0 auto; }
.draft-recovery-dialog.is-signature-review #draft-recovery-signatures { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: .25rem; }
.draft-recovery-dialog.is-signature-review > .form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.draft-recovery-dialog.is-signature-review > .form-actions button { margin: 0; }
.signature-sync-comparison h3 { margin: 0 0 .75rem; font-size: 1rem; }
.signature-sync-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.signature-sync-card { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 9px; background: #f8fafc; }
.signature-sync-card.is-new { border-color: #8cbce0; background: #f1f8ff; }
.signature-sync-card > strong { display: block; color: var(--brand-navy); font-size: .9rem; }
.signature-sync-meta { min-height: 2.6rem; margin: .4rem 0 .75rem; color: var(--muted); font-size: .78rem; white-space: pre-line; }
.signature-sync-card .signature-display { max-width: none; width: 100%; height: auto; aspect-ratio: 25 / 8; }
.signature-sync-blank { display: grid; place-items: center; min-height: 100px; margin: 0; color: var(--muted); font-size: .85rem; }
.signature-sync-comparison details { margin-top: .75rem; font-size: .8rem; color: var(--muted); }
.signature-sync-comparison summary { cursor: pointer; color: var(--brand-blue-dark); }
.signature-sync-comparison details p { white-space: pre-wrap; }
.signature-sync-notice { margin: 1rem 0; padding: .75rem; border-radius: 7px; background: #f0f6fb; color: var(--muted); font-size: .85rem; }
@media (max-width:600px) { .signature-sync-grid { grid-template-columns:minmax(0,1fr); } }
.signature-recovery-card { width: min(100%, 680px); margin: 0 auto; padding: clamp(1.25rem, 4vw, 2rem); background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.signature-recovery-ack { padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #f3f8fc; white-space: pre-wrap; }
.lifecycle-page, .storage-page { width: 100%; margin: 0; }
.admin-main:has(.lifecycle-page), .admin-main:has(.storage-page) { display: flex; flex-direction: column; }
.admin-panel:has(.lifecycle-page), .admin-panel:has(.storage-page) { display: flex; flex: 1; min-height: 0; }
.lifecycle-page { display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%; }
.lifecycle-grid { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(0,1.3fr); gap: 1.25rem; min-height: 0; flex: 1; }
.lifecycle-grid h2 { font-size: 1.15rem; margin-top: 0; }
.lifecycle-grid .lifecycle-settings { margin: 0; max-width: none; overflow: auto; }
.lifecycle-requests { min-width: 0; min-height: 0; overflow: auto; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; }
.lifecycle-page button, .storage-page button { min-height: 40px; padding: .4rem .75rem; font-size: .9rem; }
.storage-page { flex: 1; min-height: 0; width: 100%; overflow: auto; }
.storage-settings-grid h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.storage-retention-planning, .lifecycle-change-details { margin: .8rem 0; font-size: .85rem; }
.storage-retention-planning summary, .lifecycle-change-details summary { cursor: pointer; color: var(--muted); }
.storage-page .badge, .lifecycle-page .badge { background: #e9f2fa; border-radius: 999px; font-size: .75rem; padding: .1rem .45rem; vertical-align: middle; }
.lifecycle-settings, .lifecycle-request { max-width: 760px; margin: 1rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #f8fbfe; }
.lifecycle-page label, .storage-page label { display: block; margin: .75rem 0 .3rem; }
.lifecycle-settings select, .lifecycle-settings input, .lifecycle-request input { width: 100%; max-width: none; }
.lifecycle-state-guide { margin: .85rem 0; padding: .8rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: .85rem; }
.lifecycle-state-guide div + div { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--border); }
.lifecycle-state-guide dt { font-weight: 700; color: var(--brand-navy); }
.lifecycle-state-guide dd { margin: .15rem 0 0; color: var(--muted); line-height: 1.4; }
.storage-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.storage-settings-grid > section { padding: 1.25rem; border: 1px solid var(--border); border-radius: 10px; }
.storage-page input[type=number] { max-width: 12rem; }
.storage-candidates { max-height: 18rem; overflow: auto; padding-left: 1.2rem; }
.storage-candidates li { margin: .5rem 0; }
.storage-candidates .hint { display: block; }
.storage-run { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.storage-run > span { display: block; color: var(--muted); }
.storage-run p { margin: .25rem 0; }
@media(max-width:1000px) {
    .storage-settings-grid, .lifecycle-grid { grid-template-columns: 1fr; }
    .lifecycle-page { overflow: auto; }
    .lifecycle-grid { flex: none; }
    .lifecycle-requests, .lifecycle-grid .lifecycle-settings { overflow: visible; }
}
@keyframes signer-pin-autofill { from { opacity: 1; } to { opacity: 1; } }
.signer-pin-input:is(:autofill, :-webkit-autofill) { animation: signer-pin-autofill .01s; }
.signature-history { margin-top: .65rem; font-size: .85rem; color: var(--muted); }
.signature-history section { border-top: 1px solid var(--border); padding: .65rem 0; }

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}
a { color: var(--brand-blue-dark); }
a:hover { color: var(--brand-navy); }
h1, h2, h3 { color: var(--brand-navy); line-height: 1.25; }
h1 { margin: 0 0 .65rem; font-size: clamp(1.7rem, 3vw, 2.25rem); }
h2 { margin: 2rem 0 .75rem; font-size: 1.35rem; }
p { margin: .5rem 0 1rem; }
:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 1000; }
.skip-link:focus { left: .75rem; padding: .5rem 1rem; background: #fff; }

.experience-header, .admin-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 51, 102, .04);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    padding: .75rem clamp(1rem, 3vw, 2rem);
}
.brand { display: inline-flex; align-items: center; gap: 1rem; min-width: 0; color: var(--brand-navy); text-decoration: none; }
.brand img { display: block; width: auto; height: 43px; max-width: min(240px, 45vw); object-fit: contain; }
.brand-divider { align-self: stretch; width: 1px; min-height: 32px; background: var(--border); }
.brand-name { margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.header-action { margin: 0 !important; white-space: nowrap; }
.admin-header-actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.forms-admin button.editor-header-help:not(.k-button) { width: 42px; min-height: 42px; margin: 0; padding: .55rem; border-color: var(--border); background: #f5f9fc; color: var(--brand-navy); }
.forms-admin button.editor-header-help:not(.k-button):hover { background: #e9f4fc; }
.editor-header-help svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { padding: 1rem clamp(1rem, 3vw, 2rem); color: var(--muted); font-size: .85rem; text-align: left; }

.experience-main { width: min(100%, 920px); min-height: calc(100vh - 145px); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); }
.experience-panel, .admin-panel {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.experience-panel > :first-child, .admin-panel > :first-child { margin-top: 0; }
.experience-panel > form, .admin-panel > form { max-width: 100%; }

.forms-admin { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; min-height: 0; overflow: hidden; }
.forms-admin-editor { grid-template-rows: auto minmax(0, 1fr); }
.admin-header { position: relative; z-index: 50; }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); width: 100%; min-height: 0; overflow: hidden; }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; min-height: 0; padding: 1.75rem 1rem; overflow-y: auto; border-right: 1px solid var(--border); background: #eaf2f9; }
.admin-nav-label { margin: 0 .75rem .5rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-nav-divider { flex: 0 0 auto; height: 1px; margin: .75rem; border: 0; background: var(--border); }
.admin-nav a { padding: .7rem .8rem; border-radius: 8px; color: var(--brand-navy); font-weight: 600; text-decoration: none; }
.admin-nav a:hover, .admin-nav a:focus-visible { background: #e4f1fb; }
.admin-nav a[aria-current] { background: #fff; color: var(--brand-navy); box-shadow: inset 3px 0 var(--brand-blue), 0 1px 3px rgba(0, 51, 102, .08); }
.admin-main { min-width: 0; min-height: 0; padding: clamp(1rem, 3vw, 2rem); overflow-y: auto; overscroll-behavior: contain; }
.admin-panel { width: 100%; }
.admin-page-header { flex: 0 0 auto; min-width: 0; margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.admin-page-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .75rem; min-height: 40px; margin-bottom: .75rem; }
.admin-page-links { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; min-width: 0; }
.admin-page-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; color: var(--brand-blue-dark); font-size: .85rem; font-weight: 650; text-decoration: none; }
.admin-page-link:hover { color: var(--brand-navy); text-decoration: underline; text-underline-offset: .2rem; }
.admin-page-links > .admin-page-link + .admin-page-link { padding-left: 1rem; border-left: 1px solid var(--border); }
.admin-page-link svg { flex: 0 0 auto; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-page-section { margin: 0 0 .25rem; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.admin-page-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; min-width: 0; }
.admin-page-title-row h1 { min-width: 0; margin: 0; font-size: clamp(1.5rem, 2.3vw, 1.9rem); overflow-wrap: anywhere; }
.admin-page-title-row .admin-form-count { vertical-align: middle; }
.admin-page-status { padding: .2rem .55rem; border-radius: 6px; background: #e9f2fa; color: var(--brand-navy); font-size: .8rem; font-weight: 650; }
.admin-page-subtitle { margin: .4rem 0 0; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.forms-admin button.admin-page-icon:not(.k-button) { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 40px; margin: 0; padding: .5rem; border-color: transparent; background: transparent; color: var(--brand-blue-dark); }
.forms-admin button.admin-page-icon:not(.k-button):hover { border-color: var(--border); background: #e9f4fc; color: var(--brand-navy); }
.admin-page-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .4rem clamp(1rem, 3vw, 2rem) calc(.4rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -5px 20px rgba(0, 51, 102, .08); }
.forms-admin-editor .admin-footer { display: none; }
.admin-footer-label { color: var(--muted); font-size: .82rem; }
.admin-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; }
.admin-footer-action { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .55rem; border-radius: 7px; color: var(--brand-blue-dark); font-size: .84rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.admin-footer-action:hover { background: #e9f4fc; color: var(--brand-navy); }
.admin-footer-action svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-panel .k-grid { margin-top: 1rem; overflow-x: auto; }
.admin-panel .k-dropdownlist { max-width: 40rem; }
.admin-main:has(.admin-forms-page) { display: flex; flex-direction: column; }
.admin-panel:has(.admin-forms-page) { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.admin-forms-page { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.admin-main:has(.admin-versions-page), .admin-panel:has(.admin-versions-page) { display: flex; flex-direction: column; min-height: 0; }
.admin-panel:has(.admin-versions-page) { flex: 1 1 auto; }
.admin-versions-page { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1rem; min-height: 0; }
.admin-versions-page > .admin-page-header { margin-bottom: 0; }
.admin-version-guide { flex: 0 0 auto; color: var(--muted); font-size: .88rem; }
.admin-version-guide > p { margin: 0 0 .25rem; }
.admin-version-guide summary, .admin-version-retirement summary { width: fit-content; cursor: pointer; color: var(--brand-blue-dark); font-weight: 600; }
.admin-version-guide details[open] { max-height: 12rem; overflow: auto; }
.admin-version-guide details p { max-width: 75rem; margin: .5rem 0 0; }
.admin-version-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; }
#version-results { color: var(--brand-navy); font-size: .9rem; }
.admin-version-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
#version-search, #version-filter { width: auto; min-height: 40px; margin: 0; font-size: .85rem; }
#version-search { width: 17rem; }
.admin-version-viewport { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; border: 1px solid var(--border); border-radius: 10px; }
.admin-version-columns, .admin-version-row { display: grid; grid-template-columns: minmax(8rem, .85fr) minmax(10rem, 1fr) minmax(7rem, .7fr) minmax(10rem, 1.3fr) 40px; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.admin-version-columns { position: sticky; top: 0; z-index: 1; padding-top: .65rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border); background: #f0f6fb; color: var(--muted); font-size: .75rem; font-weight: 650; }
.admin-version-list { list-style: none; margin: 0; padding: 0; }
.admin-version-row { min-height: 84px; }
.admin-version-row + .admin-version-row { border-top: 1px solid var(--border); }
.admin-version-row > * { min-width: 0; }
.admin-version-name { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.admin-version-name h2 { margin: 0; font-size: 1rem; }
.admin-version-tag { display: inline-flex; padding: .18rem .55rem; border-radius: 999px; background: #edf1f5; color: #4d5e70; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.admin-version-tag--current { background: #e7f2ff; color: var(--brand-blue-dark); }
.admin-version-tag--open { background: #e8f6ef; color: #17633e; }
.admin-version-drafts { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; font-size: .85rem; }
.admin-version-drafts strong { color: var(--brand-navy); }
.admin-version-drafts span { color: var(--muted); }
.admin-version-retirement { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.admin-version-retirement time { display: block; }
.admin-version-retirement p { margin: .4rem 0 0; white-space: pre-wrap; }
.admin-version-action > summary { display: grid; place-items: center; width: 40px; height: 40px; padding: .5rem; border: 1px solid transparent; border-radius: 7px; color: #a83838; cursor: pointer; list-style: none; }
.admin-version-action > summary::-webkit-details-marker { display: none; }
.admin-version-action > summary:hover { background: #fff0f0; border-color: #eed0d0; }
.admin-version-action[data-retired="true"] > summary { color: var(--brand-blue-dark); }
.admin-version-action[data-retired="true"] > summary:hover { background: #e9f4fc; border-color: var(--border); }
.admin-version-action svg, .admin-version-close svg { width: 20px; height: 20px; }
.admin-version-action[open] { grid-column: 1 / -1; }
.admin-version-fallback { margin-top: .5rem; }
.admin-version-empty { margin: 0; padding: 2rem 1rem; color: var(--muted); text-align: center; }
.admin-version-dialog { width: min(540px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--border); border-radius: 12px; color: var(--text); box-shadow: 0 24px 70px #001c3a47; }
.admin-version-dialog::backdrop { background: #082d4e99; }
.admin-version-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); }
.admin-version-dialog-heading h2 { margin: 0; font-size: 1.15rem; }
.admin-version-dialog form { padding: 1.25rem; font-size: .9rem; }
.admin-version-dialog form > p:first-child { margin-top: 0; }
.admin-version-impact { padding: .75rem; border-radius: 7px; background: #f0f6fb; color: var(--muted); font-size: .85rem; }
.admin-version-impact.is-warning { background: #fff3e8; color: #814000; }
.admin-version-current-warning { font-size: .85rem; color: #9d3333; }
.admin-version-dialog label { display: block; margin-bottom: .35rem; font-weight: 650; }
.admin-version-required { color: var(--muted); font-size: .8rem; font-weight: 400; }
.admin-version-dialog textarea { width: 100%; max-width: none; min-height: 90px; resize: vertical; }
.admin-version-reason-count { display: block; color: var(--muted); font-size: .75rem; text-align: right; }
.admin-version-dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.admin-version-dialog button:not(.k-button) { min-height: 40px; margin: 0; padding: .5rem .85rem; font-size: .85rem; }
.admin-version-dialog button.admin-version-cancel:not(.k-button), .admin-version-dialog button.admin-version-close:not(.k-button) { border-color: var(--border); background: #fff; color: var(--brand-navy); }
.admin-version-dialog button.admin-version-cancel:not(.k-button):hover, .admin-version-dialog button.admin-version-close:not(.k-button):hover { background: #e9f4fc; }
.admin-version-dialog button.admin-version-close:not(.k-button) { width: 40px; padding: .5rem; border-color: transparent; }
.admin-version-dialog button.is-retiring:not(.k-button) { border-color: #aa3434; background: #aa3434; }
.admin-version-dialog button.is-retiring:not(.k-button):hover { background: #852828; }
@media (max-width: 1200px) {
    .admin-version-columns { display: none; }
    .admin-version-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: .6rem 1rem; }
    .admin-version-name { grid-column: 1; grid-row: 1; }
    .admin-version-drafts { grid-column: 1; grid-row: 2; }
    .admin-version-retirement { grid-column: 2; grid-row: 2; }
    .admin-version-action { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 600px) {
    .admin-version-filters { width: 100%; }
    #version-search, #version-filter { flex: 1 1 100%; width: 100%; max-width: none; }
    .admin-version-row { grid-template-columns: minmax(0, 1fr) 40px; padding: .85rem; }
    .admin-version-row > :nth-child(2) { grid-column: 1; grid-row: 2; }
    .admin-version-drafts { grid-column: 1; grid-row: 3; }
    .admin-version-retirement { grid-column: 1; grid-row: 4; }
    .admin-version-retirement:has(.admin-version-no-detail) { display: none; }
    .admin-version-action { grid-column: 2; grid-row: 1 / 3; }
    .admin-version-dialog form { padding: 1rem; }
}
.admin-form-list-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; margin: 0 0 1rem; }
.admin-form-list-heading > .admin-page-header { margin: 0; padding: 0; border: 0; }
.admin-form-list-heading h1 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: clamp(1.5rem, 2.3vw, 1.9rem); }
.admin-form-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; padding: .15rem .45rem; border-radius: 999px; background: #e8f3fc; color: var(--brand-navy); font-size: .75rem; }
.admin-form-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
#admin-form-controls[hidden], #admin-form-list[hidden], #admin-form-empty[hidden], #admin-form-fallback[hidden] { display: none; }
.admin-form-controls input:not([type="checkbox"]):not([type="hidden"]):not(.k-input-inner), .admin-form-controls select { width: auto; max-width: none; min-height: 40px; margin: 0; }
.admin-form-controls input[type="search"] { min-width: min(21rem, 70vw); }
.admin-main:has(.admin-responses-page), .admin-panel:has(.admin-responses-page) { display: flex; flex-direction: column; min-height: 0; }
.admin-panel:has(.admin-responses-page) { flex: 1 1 auto; }
.admin-responses-page { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.admin-response-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.admin-response-filters label { flex: 1 1 140px; max-width: 22rem; margin: 0; font-size: .85rem; }
.admin-response-filters .admin-response-search { flex: 2 1 240px; }
.admin-response-filters input, .admin-response-filters select { width: 100%; min-height: 40px; margin: .25rem 0 0; }
.admin-response-filters button, .admin-response-filters > a { margin: 0; min-height: 40px; }
.admin-response-filters > a { display: inline-flex; align-items: center; padding: .4rem; }
.admin-response-advanced { flex: 1 1 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; }
.admin-response-advanced summary { cursor: pointer; color: var(--brand-navy); font-weight: 650; }
.admin-response-advanced > div { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.admin-response-advanced label { flex: 1 1 145px; }
.admin-response-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: .5rem 0 1rem; }
.admin-response-tools { color: var(--muted); font-size: .85rem; }
.admin-response-view-tools { margin: -.3rem 0 .75rem; font-size: .85rem; }
.admin-response-view-tools summary { cursor: pointer; color: var(--brand-blue); }
.admin-response-view-tools-inner { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 1rem; padding: .75rem 0; }
.admin-response-view-tools fieldset { display: flex; flex-wrap: wrap; gap: .5rem .8rem; max-width: 22rem; border: 0; padding: 0; }
.admin-response-view-tools fieldset label { white-space: nowrap; }
.admin-response-save-view { display: flex; align-items: end; gap: .5rem; }
.admin-response-save-view label { margin: 0; }
.admin-response-save-view input { display: block; min-height: 38px; margin-top: .25rem; }
.admin-response-saved-views { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.admin-response-saved-views li { display: flex; align-items: center; gap: .35rem; padding: .3rem .5rem; border: 1px solid var(--border); border-radius: 7px; }
.admin-response-saved-views button { min-width: 30px; min-height: 30px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.admin-response-table [hidden] { display: none; }
.employee-load-older { display: block; margin: .5rem auto; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--brand-blue); cursor: pointer; }
.employee-load-older[hidden] { display: none; }
.admin-response-tools a { display: inline-flex; align-items: center; min-height: 38px; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.admin-response-viewport { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.admin-response-viewport > .hint { padding: 1rem; }
.admin-response-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.admin-response-table th { position: sticky; top: 0; z-index: 1; background: #edf4fa; color: var(--brand-navy); }
.admin-response-table th, .admin-response-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-response-table tbody tr:hover { background: #f7fbff; }
.admin-response-identifiers, .admin-response-email { display: block; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.admin-response-identifiers { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .2rem 0; }
.admin-response-view { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; }
.admin-response-view:hover { background: #e8f3fc; }
.admin-response-view svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.admin-response-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; color: var(--muted); font-size: .85rem; }
.admin-response-pager > div { display: flex; gap: 1rem; }
.admin-response-pager a { display: inline-flex; align-items: center; min-height: 40px; }
.admin-response-detail-heading { margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.admin-response-detail-heading .admin-page-header { margin-bottom: .6rem; padding-bottom: 0; border-bottom: 0; }
.admin-response-detail-heading > p { margin: 0; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.admin-form-fallback, #admin-form-list .k-listview-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 1rem; min-height: 0; overflow-y: auto; }
.admin-form-fallback { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
#admin-form-list { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; border: 0; background: transparent; }
#admin-form-list .k-listview-content { flex: 1 1 auto; padding: 0; }
.admin-form-list-item { min-width: 0; }
.admin-form-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); grid-template-areas: "title title" "owner status" "actions actions"; gap: 1.1rem 1.4rem; min-width: 0; height: 100%; padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: 11px; background: #fbfdff; }
.admin-form-card-title { grid-area: title; min-width: 0; }
.admin-form-card-title h3 { margin: 0 0 .3rem; color: var(--brand-navy); font-size: 1.2rem; overflow-wrap: anywhere; }
.admin-form-card-slug { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.admin-form-card-owner, .admin-form-card-status { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; font-size: .87rem; overflow-wrap: anywhere; }
.admin-form-card-owner { grid-area: owner; }
.admin-form-card-status { grid-area: status; }
.admin-form-card-owner strong, .admin-form-card-status strong { color: var(--brand-navy); font-size: .96rem; }
.admin-form-card-label { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-form-card-actions { display: flex; grid-area: actions; align-items: center; flex-wrap: wrap; gap: .5rem; min-height: 2.4rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.admin-form-card-actions a { display: inline-flex; align-items: center; min-height: 38px; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--brand-blue-dark); font-size: .84rem; font-weight: 700; text-decoration: none; }
.admin-form-card-actions a:hover, .admin-form-card-actions a:focus-visible { border-color: var(--brand-blue); background: #e9f4fc; }
#admin-form-list .k-pager { flex: 0 0 auto; margin-top: 1rem; border: 0; background: transparent; }
@media (max-width: 1500px) {
    .admin-form-fallback, #admin-form-list .k-listview-content { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .admin-form-controls { width: 100%; }
    .admin-form-controls input[type="search"] { min-width: 0; flex: 1 1 100%; }
    .admin-form-controls select { flex: 1 1 100%; }
    .admin-form-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "owner" "status" "actions"; gap: .9rem; padding: 1rem; }
}

label:not(.inline) { display: block; margin-top: 1rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="hidden"]):not(.k-input-inner), select, textarea {
    display: block;
    width: 100%;
    max-width: 40rem;
    min-height: 44px;
    padding: .6rem .7rem;
    border: 1px solid #aebfcd;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
textarea { min-height: 6rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; accent-color: var(--brand-blue); }
button:not(.k-button), .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: .8rem .5rem .2rem 0;
    padding: .6rem 1rem;
    border: 1px solid var(--brand-blue-dark);
    border-radius: 6px;
    background: var(--brand-blue);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
}
button:not(.k-button):hover, .button:hover { background: var(--brand-blue-dark); color: #fff; }
button:not(.k-button):disabled { opacity: .55; cursor: not-allowed; }
.header-action { border-color: var(--border) !important; background: #f5f9fc !important; color: var(--brand-navy) !important; }
fieldset, .publish, .question { min-width: 0; margin: 1rem 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: 9px; }
legend { padding: 0 .35rem; color: var(--brand-navy); font-weight: 700; }
.question { background: #fbfdff; }
.question label { margin-top: 0; }
.publish { margin-top: 2rem; background: #f7fbff; }
.hint { color: var(--muted); font-size: .94rem; }
.validation { color: #a01d2a; }
.question--invalid { border-color: #bc3944; background: #fff9f9; }
.question > .validation { margin: .65rem 0 0; font-size: .85rem; }
.employee-identity { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 6px; background: #f3f8fc; overflow-wrap: anywhere; }
.employee-identity strong { color: var(--brand-navy); }
.employee-identity span { color: var(--muted); font-size: .85rem; }
.success { color: #176335; }
.inline { display: flex; align-items: center; gap: .6rem; }
.inline input { width: auto; }
.field-setting[hidden] { display: none; }
.select-comment-settings { margin: .5rem 0 .25rem 1.25rem; padding: .55rem .8rem; border-left: 3px solid var(--brand-blue); background: #f5faff; }
.select-comment-settings .hint { margin: .6rem 0 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #f4f8fc; color: var(--brand-navy); }
.table-wrap { max-width: 100%; overflow-x: auto; }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; text-align: left; }
.audience-card { display: flex; flex-direction: column; min-width: 0; padding: 1.4rem; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, .86); box-shadow: 0 8px 22px rgba(0, 51, 102, .06); }
.audience-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 12px; background: #e9f4fc; color: var(--brand-blue-dark); }
.audience-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.audience-card h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.audience-card p { flex: 1 1 auto; margin: 0 0 1.4rem; color: var(--muted); font-size: .95rem; }
.audience-card__link { display: inline-flex; align-items: center; justify-content: space-between; gap: .55rem; min-height: 44px; padding: .55rem .9rem; border-radius: 999px; background: var(--brand-blue); color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.audience-card__link:hover { background: var(--brand-blue-dark); color: #fff; }
.audience-card__link span { font-size: 1.2rem; line-height: 1; }
.forms-auth-page .experience-main { display: grid; width: min(100%, 1040px); min-height: calc(100dvh - 145px); place-items: center; }
.forms-auth-page .experience-panel { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
.auth-hero { width: min(100%, 680px); margin: 0 auto; }
.device-sign-out-page { min-height: 100dvh; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.auth-hero--home { width: min(100%, 960px); }
.auth-card { width: 100%; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid rgba(0, 51, 102, .12); border-radius: 24px; background: linear-gradient(135deg, #f4faff 0%, #fff 52%, #fff7f0 100%); box-shadow: 0 22px 55px rgba(0, 51, 102, .13); text-align: center; }
.auth-card--home { padding: clamp(1.75rem, 4vw, 3rem); }
.auth-card__icon { display: block; width: clamp(88px, 11vw, 112px); height: auto; margin: 0 auto 1.15rem; border-radius: 20px; box-shadow: 0 12px 24px rgba(0, 51, 102, .16); }
.auth-card__eyebrow { margin: 0 0 .35rem; color: var(--brand-blue-dark); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-card__title { margin: 0; font-size: clamp(2.15rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; }
.auth-card__subtitle { max-width: 31rem; margin: 1rem auto 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.auth-card__actions { display: flex; justify-content: center; margin: 1.75rem 0 0; }
.forms-auth-page .auth-primary-button:not(.k-button) { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; min-height: 50px; margin: 0; padding: .75rem 1.4rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)); color: #fff; box-shadow: 0 12px 24px rgba(0, 110, 189, .22); font-size: 1rem; font-weight: 700; text-decoration: none; }
.forms-auth-page .auth-primary-button:not(.k-button):hover { background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-navy)); box-shadow: 0 15px 27px rgba(0, 110, 189, .27); }
.auth-card__account { margin: 1rem auto 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.auth-card__notice { margin: 1.5rem auto 0; }
.auth-card__back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: .85rem; padding: .4rem .65rem; color: var(--muted); font-size: .9rem; text-underline-offset: .2em; }
.auth-card__back:hover { color: var(--brand-blue-dark); }
.forms-response-page .experience-main { width: min(100%, 1480px); }
.forms-response-page .experience-panel { container: response-panel / inline-size; }
.forms-admin .admin-panel:has(.admin-response-detail-heading) { container: response-panel / inline-size; }
.response-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin: 1.5rem 0; }
.response-item { min-width: 0; padding: .8rem .95rem; border: 1px solid var(--border); border-radius: 8px; background: #fbfdff; }
.response-item dt { margin: 0; color: var(--brand-navy); font-size: .88rem; font-weight: 700; line-height: 1.35; }
.response-item dd { min-width: 0; margin: .35rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.response-item dd > :first-child { margin-top: 0; }
.response-item dd > :last-child { margin-bottom: 0; }
.response-item table { min-width: 600px; }
.response-item:has(table) dd { overflow-x: auto; }
.response-section { grid-column: 1 / -1; margin-top: .45rem; padding: .7rem 1rem; border-left: 4px solid var(--brand-orange); border-radius: 0 8px 8px 0; background: #f4f9fd; }
.response-section-heading { margin: 0; color: var(--brand-navy); font-size: 1.1rem; font-weight: 700; }
.response-section-description { margin: .25rem 0 0; color: var(--muted); }
.response-collapsible-section { margin: 1rem 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.response-collapsible-section > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; background: #edf4fa; color: var(--brand-navy); cursor: pointer; }
.response-collapsible-section > summary span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.response-collapsible-section > .hint { margin: .8rem 1rem 0; }
.response-collapsible-section > .response-list { margin: 0; padding: 1rem; }
@media print {
    .admin-header, .admin-nav, .admin-footer, .admin-page-toolbar { display: none !important; }
    .forms-admin, .admin-shell, .admin-main, .admin-panel { display: block !important; overflow: visible !important; height: auto !important; max-height: none !important; background: #fff !important; box-shadow: none !important; border: 0 !important; }
    .response-collapsible-section { break-inside: avoid; }
    .response-collapsible-section > .response-list { display: grid !important; }
    .response-collapsible-section:not([open]) > .response-list { display: grid !important; }
    .response-item { break-inside: avoid; }
}
@container response-panel (min-width: 620px) {
    .response-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .response-item--wide, .response-item--full { grid-column: span 2; }
}
@container response-panel (min-width: 920px) {
    .response-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .response-item--full { grid-column: 1 / -1; }
}
@container response-panel (min-width: 1250px) {
    .response-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .forms-admin .response-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.offline-form-card, .offline-draft-card { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: .65rem 0; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fbfdff; }
.offline-draft-card[data-state="review"] { border-left: 4px solid var(--brand-orange); }
.offline-draft-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.offline-draft-trash, .offline-trash-restore { min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--brand-navy); font-weight: 700; cursor: pointer; }
.offline-draft-trash:hover, .offline-trash-restore:hover { background: #e8f0f7; }
.offline-draft-trash:disabled, .offline-trash-restore:disabled { opacity: .55; cursor: not-allowed; }
.offline-trash-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.offline-trash-card h3 { margin: .15rem 0; color: var(--brand-navy); font-size: 1.05rem; }
.offline-trash-card p { margin: .2rem 0; }
.offline-card-details { flex: 1 1 9rem; min-width: 0; }
.offline-card-details h3 { margin: 0; font-size: 1.05rem; }
.offline-card-details p { margin: .2rem 0 0; }
.offline-card-details .offline-draft-identity { color: var(--brand-navy); font-weight: 650; overflow-wrap: anywhere; }
button.offline-card-action:not(.k-button) { flex: 0 0 auto; min-height: 44px; margin: 0; padding: .4rem .55rem; border-color: transparent; background: transparent; color: var(--brand-blue-dark); text-decoration: underline; text-underline-offset: .2rem; }
button.offline-card-action:not(.k-button):hover { border-color: transparent; background: #e9f4fc; color: var(--brand-navy); }

/* Admin-only workflow prototype; these styles do not affect published forms. */
.preview-notice {
    background: #eaf4fa;
    border-left: .25rem solid #17619a;
    padding: .8rem 1rem;
}
#workflow-preview [hidden] { display: none !important; }
#workflow-preview .preview-switcher {
    border-bottom: 1px solid #ccd4da;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.5rem 0;
}
#workflow-preview .preview-switcher button {
    background: transparent;
    border-bottom: .2rem solid transparent;
    border-radius: 0;
    color: #153c5b;
    margin: 0;
}
#workflow-preview .preview-switcher button[aria-pressed="true"] {
    border-bottom-color: #17619a;
    font-weight: 700;
}
#workflow-preview .preview-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}
#workflow-preview .preview-heading h2 { margin: .1rem 0; }
#workflow-preview .preview-eyebrow {
    color: #53636e;
    font-size: .85rem;
    letter-spacing: .04em;
    margin: 0;
    text-transform: uppercase;
}
#workflow-preview .preview-pill {
    background: #eaf4fa;
    border-radius: 1rem;
    color: #153c5b;
    display: inline-block;
    font-size: .85rem;
    padding: .2rem .65rem;
    white-space: nowrap;
}
#workflow-preview .preview-pill-done { background: #e7f5ea; color: #176335; }
#workflow-preview .preview-date-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
#workflow-preview .preview-invitations,
#workflow-preview .preview-start-panel {
    border: 1px solid #ccd4da;
    margin: 1.5rem 0;
    padding: 1rem;
}
#workflow-preview .preview-actions {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
#workflow-preview .preview-actions button { margin: 0 0 .2rem; }
#workflow-preview .preview-table-wrap { overflow-x: auto; }
#workflow-preview .preview-table { width: 100%; }
#workflow-preview .preview-table th,
#workflow-preview .preview-table td { vertical-align: top; }
#workflow-preview .preview-table input { min-width: 12rem; }
#workflow-preview .preview-row-action { margin: 0; padding: .35rem .65rem; }
#workflow-preview .preview-detail {
    background: #f3f6f8;
    margin-top: 1rem;
    padding: .75rem 1rem;
}
#workflow-preview button:disabled { cursor: not-allowed; opacity: .55; }
.calculation-control {
    margin: 0.75rem 0 1.5rem;
}

.usage-row {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #b7c4cd;
}

.usage-row label {
    display: inline-flex;
    flex-direction: column;
    margin: 0.4rem 0.8rem 0.4rem 0;
    min-width: 8rem;
}

.usage-row input {
    max-width: 12rem;
}

.usage-result {
    margin: 0.5rem 0;
}

/* Keep the form-filling workspace comfortable on phones and shared devices. */
.workspace-form-list { display: grid; gap: .75rem; margin: 1rem 0; padding: 0; list-style: none; }
.workspace-form-list li { padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fbfdff; }
.workspace-form-list a { display: block; font-weight: 700; }
.workspace-form-list .hint { display: block; margin-top: .3rem; }
.forms-experience:has(.workspace-dashboard) .experience-header { position: sticky; top: 0; z-index: 30; }
.forms-experience:has(.workspace-dashboard) .experience-main { width: min(100%, 1320px); padding-bottom: 7rem; }
.forms-experience:has(.workspace-dashboard) .experience-panel { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.forms-experience:has(.workspace-dashboard) .site-footer { display: none; }
.workspace-dashboard-intro { margin-bottom: 1.25rem; }
.workspace-dashboard-intro h1 { margin-bottom: .25rem; }
.workspace-dashboard-intro p { margin: 0; color: var(--muted); }
.workspace-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; gap: 1.25rem; }
.workspace-dashboard-section { min-width: 0; padding: 1.35rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.workspace-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; margin-bottom: 1rem; }
.workspace-section-heading h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.2rem; }
.workspace-section-heading #submission-search { flex: 0 1 17rem; width: 100%; max-width: 17rem; min-height: 42px; }
.workspace-submission-list { display: grid; gap: .7rem; }
.workspace-submission-card, .workspace-online-entry .workspace-form-list li { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; min-width: 0; min-height: 7.5rem; margin: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.workspace-submission-details, .workspace-form-details { flex: 1 1 10rem; min-width: 0; }
.workspace-submission-type { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.workspace-submission-card h3, .workspace-form-details h3 { margin: .15rem 0 .4rem; color: var(--brand-navy); font-size: 1.05rem; overflow-wrap: anywhere; }
.workspace-submission-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; color: var(--muted); font-size: .82rem; }
.record-identity { display: flex; align-items: baseline; flex-wrap: wrap; min-width: 0; gap: .2rem .65rem; margin: .2rem 0 .35rem; }
.record-identity-primary { display: inline-flex; align-items: baseline; flex-wrap: wrap; min-width: 0; gap: .2rem .4rem; }
.record-identity-primary > span { color: var(--muted); font-size: .76rem; font-weight: 600; }
.record-identity-primary h3 { min-width: 0; margin: 0; color: var(--brand-navy); font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.record-identity-secondary { display: flex; flex-wrap: wrap; min-width: 0; gap: .3rem; }
.record-identity-chip { display: inline-flex; align-items: baseline; flex-wrap: wrap; max-width: 100%; gap: .15rem .35rem; padding: .15rem .45rem; border-radius: 5px; background: #eef5fb; }
.record-identity-chip > span { color: var(--muted); font-size: .72rem; }
.record-identity-chip strong { min-width: 0; color: var(--brand-navy); font-size: .78rem; overflow-wrap: anywhere; }
.record-identity-fallback { margin: .15rem 0 .35rem; color: var(--brand-navy); font-size: 1rem; }
.workspace-online-entry > .hint { margin: -.35rem 0 1rem; }
.workspace-online-entry .workspace-form-list { margin: 0; }
.workspace-online-entry .workspace-form-list li { min-height: 6.2rem; border-left: 3px solid var(--brand-blue); }
.workspace-response-action { display: inline-flex !important; align-items: center; justify-content: center; gap: .35rem; min-height: 42px; padding: .45rem .65rem; border: 1px solid var(--border); border-radius: 7px; background: #f5f9fc; color: var(--brand-navy); font-weight: 650; text-decoration: none; white-space: nowrap; }
.workspace-response-action:hover { background: #e9f4fc; color: var(--brand-navy); }
.workspace-online-entry .workspace-response-action { border-color: var(--brand-blue-dark); background: var(--brand-blue); color: #fff; }
.workspace-online-entry .workspace-response-action:hover { background: var(--brand-blue-dark); color: #fff; }
.workspace-response-action svg, .workspace-footer-action svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.workspace-submissions .workspace-response-action { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; }
.workspace-submissions .workspace-response-action svg { width: 1.15rem; height: 1.15rem; }
.workspace-submissions .workspace-response-action:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.workspace-dashboard-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 25; padding: .55rem clamp(1rem, 3vw, 2rem) calc(.55rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -5px 20px rgba(0, 51, 102, .1); }
.workspace-dashboard-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: 44px; }
.workspace-online-status { display: inline-flex; align-items: center; gap: .45rem; color: var(--brand-navy); font-size: .85rem; font-weight: 700; }
.workspace-online-status span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand-blue); }
#my-submissions { scroll-margin-top: 6rem; }
.workspace-footer-action { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .55rem; border-radius: 7px; color: var(--brand-blue-dark); font-size: .84rem; font-weight: 650; text-decoration: none; }
.workspace-footer-action:hover { background: #e9f4fc; color: var(--brand-navy); }
@media (min-width: 1250px) {
    .workspace-submission-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
    .workspace-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
.form-intro { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.form-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.form-title-row > h1, .form-title-row > h2, .form-title-row > h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.form-version-badge { display: inline-flex; flex: 0 0 auto; align-items: center; padding: .2rem .5rem; border: 1px solid var(--border); border-radius: 999px; background: #f0f5fa; color: var(--brand-navy); font-size: .75rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.form-intro .form-title-row { margin-bottom: .65rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.form-actions button { min-width: 10rem; }
.response-entry { container: response-entry / inline-size; }
.form-fields, #editor-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem 1rem; }
.form-fields > .question, #editor-fields > .question { margin: 0; }
.form-fields > .form-section, #editor-fields > .form-section,
.form-fields > .form-section-group, #editor-fields > .form-section-group { grid-column: 1 / -1; margin: .8rem 0 0; }
.form-fields > .question--wide, #editor-fields > .question--wide { grid-column: 1 / -1; }
.form-section-group { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.form-section-group[open] { border-color: #b8d8ef; }
.form-section-group > summary { display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; align-items: center; gap: .2rem .7rem; padding: .8rem 1rem; background: #f4f9fd; color: var(--brand-navy); cursor: pointer; list-style: none; }
.form-section-group > summary::-webkit-details-marker { display: none; }
.form-section-group > summary::before { width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); content: ""; }
.form-section-group[open] > summary::before { transform: rotate(45deg); }
.form-section-group > summary:hover { background: #e9f4fc; }
.form-section-group__heading { min-width: 0; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.form-section-group__count { color: var(--muted); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.form-section-group__required { color: #a01d2a; font-weight: 750; white-space: nowrap; }
.form-section-group__required:not([hidden])::before { content: "·"; margin: 0 .35rem; color: var(--muted); }
.form-section-group__description { grid-column: 2 / -1; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.form-section-group__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem 1rem; padding: 1rem; border-top: 1px solid var(--border); }
.form-section-group__body > .question { min-width: 0; margin: 0; }
.form-section-group__body > .question--wide { grid-column: 1 / -1; }
.select-comment-fields { display: grid; gap: .85rem 1rem; }
.select-comment-fields select, .select-comment-fields textarea { max-width: none; }
.select-comment-fields textarea { min-height: 7rem; }
.employee-form-actions { justify-content: flex-end; }
.employee-form-actions :is(#save-button, #save-exit-button):not(.k-button) { border-color: var(--border); background: #f5f9fc; color: var(--brand-navy); }
.employee-form-actions :is(#save-button, #save-exit-button):not(.k-button):hover { background: #e9f4fc; }
@container response-entry (min-width: 690px) {
    .form-fields, #editor-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-section-group__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .select-comment-fields { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@container response-entry (max-width: 520px) {
    .form-section-group > summary { grid-template-columns: 1rem minmax(0, 1fr); gap: .15rem .65rem; padding: .75rem .85rem; }
    .form-section-group > summary::before { grid-row: 1 / span 2; align-self: center; }
    .form-section-group__heading { grid-column: 2; font-size: 1rem; }
    .form-section-group__count { grid-column: 2; white-space: normal; }
    .form-section-group__description { grid-column: 2; }
}
.forms-admin .field-row { background: #fbfdff; }
.forms-admin .field-row > button { margin-top: 1rem; }
.forms-admin .field-row .inline { font-weight: 500; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.admin-main:has(.editor-page) { padding-bottom: 7rem; }
.admin-main:has(.editor-page) { scroll-padding-bottom: 7rem; }
.editor-page { container: form-editor / inline-size; }
.editor-settings { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.25rem; padding: .25rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.editor-settings section { min-width: 0; }
.editor-settings h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: 1rem; }
.editor-form-details { display: grid; gap: .85rem; }
.editor-form-details h2 { margin-bottom: 0; }
.editor-settings label { margin: 0 0 .35rem; font-size: .88rem; }
.editor-setting-required { color: #a01d2a; }
.editor-setting-optional { color: var(--muted); font-size: .8rem; font-weight: 400; }
.editor-settings #Title, .editor-settings #Description { max-width: none; width: 100%; font-size: .92rem; }
.editor-settings #Description { min-height: 86px; }
.editor-form-audience { padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: 10px; background: #f5f9fd; }
.editor-form-audience h2 svg { width: 20px; height: 20px; fill: none; stroke: var(--brand-blue-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.editor-form-audience #AccessMode, .editor-form-audience .k-dropdownlist { width: 100%; max-width: none; }
.editor-audience-guidance { margin-top: .75rem; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.editor-audience-guidance p { margin: 0; }
.editor-audience-guidance .editor-audience-note { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--border); }
@container form-editor (min-width: 800px) {
    .editor-settings { grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); gap: clamp(1.25rem, 3cqi, 3rem); }
}
.editor-fields-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.5rem; }
.editor-fields-heading h2 { margin: 0; }
.editor-count { display: inline-block; min-width: 1.7rem; padding: .1rem .4rem; border-radius: 1rem; background: #e9f4fc; color: var(--brand-navy); font-size: .78rem; text-align: center; vertical-align: middle; }
.editor-list-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.forms-admin button.editor-text-action:not(.k-button) { min-height: 36px; margin: 0; padding: .25rem .5rem; border-color: transparent; background: transparent; color: var(--brand-blue-dark); font-size: .88rem; }
.forms-admin button.editor-text-action:not(.k-button):hover { background: #e9f4fc; color: var(--brand-navy); }
.forms-admin .field-row { margin: .65rem 0; padding: 0; }
.editor-field-toolbar { display: flex; align-items: center; gap: .4rem; min-height: 3.5rem; padding: .3rem .5rem; }
.forms-admin button.editor-disclosure:not(.k-button) { display: flex; flex: 1 1 auto; justify-content: flex-start; gap: .6rem; min-width: 0; min-height: 44px; margin: 0; padding: .35rem .55rem; border-color: transparent; background: transparent; color: var(--brand-navy); text-align: left; }
.forms-admin button.editor-disclosure:not(.k-button):hover { background: #e9f4fc; }
.editor-disclosure svg, .editor-icon-button svg, .editor-action-bar svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.editor-disclosure svg { transition: transform .15s ease; }
.is-collapsed .editor-disclosure svg { transform: rotate(-90deg); }
.editor-field-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-field-type { flex: 0 0 auto; padding: .15rem .45rem; border-radius: 1rem; background: #e9f4fc; color: var(--brand-navy); font-size: .75rem; font-weight: 600; }
.editor-field-actions { display: flex; flex: 0 0 auto; gap: .1rem; }
.forms-admin button.editor-icon-button:not(.k-button) { width: 38px; min-height: 38px; margin: 0; padding: .3rem; border-color: transparent; background: transparent; color: var(--brand-blue-dark); }
.forms-admin button.editor-icon-button:not(.k-button):hover { background: #e9f4fc; color: var(--brand-navy); }
.forms-admin button.editor-drag-handle:not(.k-button) { cursor: grab; touch-action: none; }
.forms-admin button.editor-drag-handle:not(.k-button):active { cursor: grabbing; }
.editor-drag-handle svg { fill: currentColor; stroke: none; }
.forms-admin .field-row.editor-is-dragging { opacity: .55; }
.forms-admin .field-row.editor-drop-before { box-shadow: 0 -4px 0 var(--brand-orange); }
.forms-admin .field-row.editor-drop-after { box-shadow: 0 4px 0 var(--brand-orange); }
.forms-admin button.remove-field:not(.k-button):hover { background: #fff0f0; color: #a01d2a; }
.field-row-body { padding: .1rem 1.1rem 1.1rem; border-top: 1px solid var(--border); }
.field-row-body > label:first-of-type { margin-top: .8rem; }
.editor-publish-help { margin-top: 2rem; }
.editor-publish-help h2 { margin-top: 0; }
.editor-action-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: #fff; box-shadow: 0 -6px 22px rgba(0, 51, 102, .1); }
.editor-action-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 76px; padding: .65rem clamp(1rem, 3vw, 2rem); }
.editor-footer-start { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; }
.editor-all-forms-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; color: var(--brand-blue-dark); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.editor-all-forms-link:hover { color: var(--brand-navy); text-decoration: underline; }
.editor-save-state { color: var(--muted); font-size: .88rem; }
.editor-save-state.is-dirty { color: #95510d; }
.editor-primary-actions, .editor-publish-form { display: flex; align-items: center; gap: .5rem; }
.editor-publish-form { margin: 0; }
.editor-action-bar button:not(.k-button) { gap: .45rem; min-height: 42px; margin: 0; white-space: nowrap; }
.editor-action-bar button.editor-preview-button:not(.k-button) { border-color: var(--border); background: #f5f9fc; color: var(--brand-navy); }
.editor-action-bar button.editor-preview-button:not(.k-button):hover { background: #e9f4fc; }
.editor-action-bar select { width: auto; max-width: 12rem; min-height: 42px; margin: 0; padding: .4rem .5rem; font-size: .9rem; }
.editor-action-bar .editor-save-button:not(.k-button) { border-color: var(--border); background: #f5f9fc; color: var(--brand-navy); }
.editor-action-bar .editor-save-button:not(.k-button):hover { background: #e9f4fc; }
html:has(.editor-page) { scroll-padding-top: 76px; scroll-padding-bottom: 7rem; }
.forms-preview { min-height: 100dvh; background: #fff; }
.forms-preview-main { width: 100%; min-height: 100dvh; padding: clamp(1rem, 2.5vw, 1.75rem); }
.draft-preview-photo { padding: 1rem; border: 1px dashed #9ab9d3; border-radius: 6px; background: #f7fbff; color: var(--muted); }
.editor-preview-dialog { width: min(1120px, calc(100vw - 2rem)); height: calc(100dvh - 2rem); max-width: none; max-height: none; padding: 0; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 28, 58, .28); }
.editor-preview-dialog[open] { display: flex; flex-direction: column; }
.editor-preview-dialog::backdrop { background: rgba(0, 25, 50, .65); }
.editor-preview-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .75rem .55rem 1.25rem; border-bottom: 1px solid #b8d8ef; background: #e9f4fc; }
.editor-preview-dialog-title { min-width: 0; }
.editor-preview-dialog-header h2 { margin: 0; font-size: 1.1rem; }
.editor-preview-dialog-title span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.forms-admin button.editor-preview-close:not(.k-button) { width: 40px; min-height: 40px; margin: 0; padding: .4rem; border-color: transparent; background: transparent; color: var(--brand-navy); }
.forms-admin button.editor-preview-close:not(.k-button):hover { background: #e9f4fc; }
.editor-preview-close svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.editor-preview-dialog iframe { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #fff; }
.editor-help-dialog { width: min(860px, calc(100vw - 2rem)); max-width: none; max-height: min(90dvh, 880px); padding: 0; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 28, 58, .28); }
.editor-help-dialog[open] { display: flex; flex-direction: column; }
.editor-help-dialog::backdrop { background: rgba(0, 25, 50, .65); }
.editor-help-content { overflow-y: auto; min-height: 0; padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.75rem; }
.editor-help-content section + section { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.editor-help-content h3 { margin: 0 0 .65rem; font-size: 1.12rem; }
.editor-help-content h4 { margin: 0 0 .45rem; font-size: .96rem; }
.editor-help-content ol, .editor-help-content ul { margin: .4rem 0 0; padding-left: 1.35rem; }
.editor-help-content li + li { margin-top: .45rem; }
.editor-help-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.editor-help-type-grid > div { min-width: 0; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fbfdff; }
.editor-help-type-grid dl { margin: 0; }
.editor-help-type-grid dt { margin-top: .6rem; color: var(--brand-navy); font-weight: 700; }
.editor-help-type-grid dd { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }
.offline-experience { --forms-footer-height: 110px; }
.offline-experience:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: var(--forms-footer-height); overflow: hidden; }
.offline-experience:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) .experience-header { flex: 0 0 auto; }
.offline-experience:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) .experience-main { flex: 1 1 auto; min-height: 0; padding: 1rem; overflow: hidden; }
.offline-experience:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) .experience-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.offline-experience .experience-main { padding-bottom: calc(var(--forms-footer-height) + 1.25rem); }
.offline-experience .experience-panel { max-width: 860px; }
.offline-experience .experience-main:has(#offline-editor:not([hidden])) { width: min(100%, 1160px); }
.offline-experience .experience-panel:has(#offline-editor:not([hidden])) { max-width: none; }
.offline-experience .header-action { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.offline-experience .header-action svg,
.employee-footer .footer-action svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.employee-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 25; padding: .55rem clamp(1rem, 3vw, 2rem) calc(.55rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -5px 20px rgba(0, 51, 102, .1); }
.employee-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; width: 100%; }
.employee-footer-state { display: flex; flex: 1 1 9rem; min-width: 0; align-items: flex-start; }
#connection-status { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; color: var(--brand-navy); font-size: .85rem; font-weight: 700; line-height: 1.25; }
#connection-status::before { width: .55rem; height: .55rem; flex: 0 0 auto; border-radius: 50%; background: var(--brand-blue); content: ""; }
#connection-status[data-connected="true"]::before { background: #21875a; }
#connection-status[data-connected="false"]::before { background: var(--brand-orange); }
.employee-footer-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: .2rem; margin-left: auto; }
.employee-footer .footer-action:not(.k-button) { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin: 0; padding: .4rem .55rem; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--brand-blue-dark); font-size: .84rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.employee-footer .footer-action:not(.k-button):hover { border-color: transparent; background: #e9f4fc; color: var(--brand-navy); }
.employee-footer .footer-action:not(.k-button):focus-visible { outline: 3px solid var(--brand-orange); outline-offset: -2px; }
.offline-experience #offline-home > h2:first-child,
.offline-experience #offline-editor .form-title-row:first-child { margin-top: 0; }
.sync-center { display: flex; flex: 0 0 auto; align-items: center; flex-wrap: wrap; gap: .3rem .75rem; margin: 0 0 .65rem; padding: .45rem .75rem; border: 1px solid var(--border); border-left: 3px solid var(--brand-blue); border-radius: 7px; background: #f5faff; font-size: .83rem; line-height: 1.3; }
.sync-center::before { flex: 0 0 auto; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand-blue); content: ""; }
.sync-center[data-state="review"] { border-left-color: var(--brand-orange); background: #fff8f2; }
.sync-center[data-state="review"]::before { background: var(--brand-orange); }
.sync-center p { flex: 1 1 18rem; min-width: 0; margin: 0; color: var(--muted); }
.sync-center-counts { color: var(--brand-navy); font-size: .86rem; font-weight: 700; }
.draft-save-status { margin: 1rem 0; padding: .5rem .7rem; border-left: 3px solid var(--brand-blue); border-radius: 4px; background: #e9f4fc; font-size: .92rem; font-weight: 650; }
.draft-save-status[data-state="saved"] { border-left-color: #21875a; background: #e8f6ef; }
.draft-save-status[data-state="error"] { border-left-color: #a01d2a; background: #fff0f0; }
.offline-experience #offline-access,
.offline-experience #offline-setup,
.offline-experience #offline-home,
.offline-experience #offline-editor { margin-top: 1.5rem; }
.offline-experience #offline-editor.is-draft-preview { container: response-panel / inline-size; }
.device-access-overlay:not([hidden]) { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow-y: auto; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); background: rgba(0, 35, 70, .58); }
.offline-experience .device-access-overlay > section:not([hidden]) { width: min(100%, 31rem); max-height: calc(100dvh - 2rem); overflow-y: auto; margin: auto; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 48px rgba(0, 35, 70, .24); }
.device-access-overlay > section h2:first-child { margin-top: 0; }
.offline-experience .experience-main:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) { width: min(100%, 1320px); }
.offline-experience .experience-panel:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.employee-workspace-tabs { display: flex; gap: .25rem; margin: 0 0 .65rem; padding: .15rem; border: 1px solid var(--border); border-radius: 9px; background: #e8f0f7; }
.offline-experience .employee-workspace-tabs button:not(.k-button) { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; flex: 1 1 0; min-height: 44px; margin: 0; padding: .55rem 1rem; border: 0; border-radius: 7px; background: transparent; color: var(--brand-navy); font-weight: 700; }
.offline-experience .employee-workspace-tabs button[aria-selected="true"]:not(.k-button) { background: #fff; box-shadow: 0 1px 5px rgba(0, 51, 102, .14); }
.offline-experience .employee-workspace-tabs button:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: -2px; }
.offline-experience #offline-home { display: grid; flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 1rem; margin-top: 0; }
.offline-experience #offline-home:has(#online-mode-note:not([hidden])) { grid-template-rows: auto minmax(0, 1fr); }
.employee-online-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; grid-column: 1 / -1; margin: 0; padding: .7rem 1rem; border-left: 3px solid var(--brand-blue); border-radius: 6px; background: #e9f4fc; color: var(--brand-navy); font-size: .87rem; }
.offline-experience .employee-online-note button:not(.k-button) { min-height: 40px; margin: 0; padding: .4rem .7rem; font-size: .85rem; }
.offline-experience .employee-submitted-home { display: flex; flex: 1 1 auto; min-height: 0; }
.offline-experience .employee-submitted-home .employee-home-section { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.employee-submitted-home .workspace-submission-list { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .45rem; }
.employee-submitted-home .workspace-submission-card,
.employee-submitted-home .offline-trash-card { min-height: 5.2rem; padding: .7rem .85rem; }
.employee-home-section { min-width: 0; padding: 1.35rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.offline-experience #offline-home .employee-home-section { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.employee-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; margin-bottom: 1rem; }
.employee-section-heading h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.2rem; }
.employee-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8rem; padding: .12rem .4rem; border-radius: 1rem; background: #e9f4fc; color: var(--brand-navy); font-size: .75rem; }
.employee-drafts-heading #draft-search { flex: 0 1 17rem; width: 100%; max-width: 17rem; min-height: 42px; }
.employee-submitted-home .employee-drafts-heading input[type="search"] { flex: 0 1 17rem; width: 100%; max-width: 17rem; min-height: 42px; }
.employee-trash-tools { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; min-width: 0; gap: .5rem; }
.offline-experience .employee-trash-tools input[type="search"] { flex: 1 1 17rem; min-width: 0; width: 17rem; max-width: 17rem; }
.offline-experience .employee-trash-empty:not(.k-button) { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; margin: 0; padding: .45rem .65rem; border: 1px solid #b98f8f; border-radius: 7px; background: #fff; color: #8a2c2c; font-weight: 650; white-space: nowrap; }
.offline-experience .employee-trash-empty:not(.k-button):hover { background: #fff1f1; }
.offline-experience .employee-trash-empty:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.employee-trash-empty svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.employee-list-search { flex: 0 0 auto; width: 100%; min-height: 42px; margin: 0 0 .75rem; }
#offline-forms, #offline-drafts, #offline-attention-drafts { display: grid; align-content: start; gap: .45rem; }
/* Paging measures all cards before hiding other pages; preserve their content height. */
#offline-forms { grid-auto-rows: max-content; }
.offline-experience #offline-home #offline-forms,
.offline-experience #offline-home .employee-list-viewport,
.offline-experience .employee-submitted-home .employee-list-viewport { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.employee-list-pager { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; font-weight: 650; }
.offline-experience .employee-list-pager button:not(.k-button) { display: inline-grid; place-items: center; width: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: #f5f9fc; color: var(--brand-navy); }
.offline-experience .employee-list-pager button:not(.k-button):hover { background: #e9f4fc; }
.offline-experience .employee-list-pager button:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.employee-list-pager svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offline-experience #offline-home .offline-form-card,
.offline-experience #offline-home .offline-draft-card { min-width: 0; margin: 0; padding: .7rem .85rem; background: #fff; }
.offline-experience #offline-home .offline-form-card { min-height: 4rem; border-left: 3px solid var(--brand-blue); }
.offline-experience #offline-home .offline-draft-card { align-items: center; min-height: 5.2rem; }
.offline-experience #offline-home .offline-draft-card[data-state="review"] { border-left: 4px solid var(--brand-orange); background: #fffaf6; }
.offline-experience #offline-home .offline-card-details h3 { margin: .1rem 0 .25rem; font-size: 1rem; line-height: 1.3; }
.offline-experience #offline-home .offline-draft-template { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.offline-experience #offline-home .offline-draft-identity { color: var(--brand-navy); font-weight: 700; overflow-wrap: anywhere; }
.offline-draft-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .6rem; color: var(--muted); font-size: .8rem; }
.offline-draft-state { padding: .12rem .45rem; border-radius: 999px; background: #fff0dc; color: #8b4a09; font-weight: 700; }
.offline-experience #offline-home button.offline-card-action:not(.k-button),
.offline-experience #offline-home button.offline-draft-trash:not(.k-button) { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #f5f9fc; color: var(--brand-navy); text-decoration: none; }
.offline-experience #offline-home button.offline-card-action:not(.k-button):hover { background: #e9f4fc; }
.offline-experience #offline-home .offline-form-card button.offline-card-action:not(.k-button) { border-color: var(--brand-blue-dark); background: var(--brand-blue); color: #fff; }
.offline-experience #offline-home .offline-form-card button.offline-card-action:not(.k-button):hover { background: var(--brand-blue-dark); }
.offline-experience #offline-home button.offline-draft-trash:not(.k-button) { border-color: transparent; background: transparent; color: #72535a; }
.offline-experience #offline-home button.offline-draft-trash:not(.k-button):hover { background: #fff0ee; color: #9b2c22; }
.offline-experience #offline-home button.offline-card-action:focus-visible,
.offline-experience #offline-home button.offline-draft-trash:focus-visible,
.offline-experience #offline-home .employee-list-pager button:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.offline-experience #offline-home .offline-card-action svg,
.offline-experience #offline-home .offline-draft-trash svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offline-experience #offline-home .offline-draft-actions { gap: .15rem; }
.offline-experience #offline-home .form-title-row { align-items: center; gap: .35rem; }
.offline-experience #offline-home .form-version-badge { flex: 0 0 auto; }
.employee-list-note { margin: .85rem 0 0; color: var(--muted); font-size: .82rem; }
.employee-trash-help { flex: 0 0 auto; margin: -.2rem 0 .8rem; }
.employee-trash-queued { flex: 0 0 auto; margin: -.4rem 0 .8rem; color: #8b4a09; font-weight: 650; }
.offline-trash-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.offline-experience .employee-submitted-home .workspace-submission-details,
.offline-experience .employee-submitted-home .offline-trash-card > div:first-child { flex: 1 1 auto; min-width: 0; }
.offline-experience .employee-submitted-home .workspace-submission-card h3,
.offline-experience .employee-submitted-home .offline-trash-card h3 { margin: .1rem 0 .25rem; font-size: 1rem; }
.offline-experience .employee-submitted-home .workspace-submission-type,
.offline-experience .employee-submitted-home .offline-draft-template { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.offline-experience .employee-submitted-home .workspace-response-action,
.offline-experience .employee-submitted-home button.offline-trash-restore:not(.k-button),
.offline-experience .employee-submitted-home button.offline-trash-delete:not(.k-button) { display: inline-grid !important; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #f5f9fc; color: var(--brand-navy); text-decoration: none; }
.offline-experience .employee-submitted-home .workspace-response-action:hover,
.offline-experience .employee-submitted-home button.offline-trash-restore:not(.k-button):hover { background: #e9f4fc; }
.offline-experience .employee-submitted-home button.offline-trash-delete:not(.k-button) { border-color: transparent; background: transparent; color: #8a2c2c; }
.offline-experience .employee-submitted-home button.offline-trash-delete:not(.k-button):hover { background: #fff1f1; }
.offline-experience .employee-submitted-home button.offline-trash-delete:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.offline-experience .employee-submitted-home .workspace-response-action svg,
.offline-experience .employee-submitted-home .offline-trash-restore svg,
.offline-experience .employee-submitted-home .offline-trash-delete svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#offline-attention { margin: 0 0 .7rem; }
#offline-attention h3 { margin: 0 0 .7rem; color: #8b4a09; font-size: 1rem; }
.employee-empty-state { margin: .5rem 0; padding: 1rem; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); }

@media (max-width: 880px) {
    .sync-center p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .offline-experience #offline-home { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(205px, 40%) minmax(360px, 1fr); gap: .65rem; overflow-y: auto; overscroll-behavior: contain; }
    .offline-experience #offline-home:has(#online-mode-note:not([hidden])) { grid-template-rows: auto minmax(205px, 40%) minmax(360px, 1fr); }
    .offline-experience #offline-home:has(#form-search:not([hidden])) { grid-template-rows: minmax(320px, 44%) minmax(360px, 1fr); }
    .offline-experience #offline-home:has(#online-mode-note:not([hidden])):has(#form-search:not([hidden])) { grid-template-rows: auto minmax(320px, 44%) minmax(360px, 1fr); }
    .offline-experience #offline-home .employee-home-section { padding: .85rem; }
    .offline-experience #offline-home .employee-section-heading { margin-bottom: .5rem; }
    .offline-experience #offline-home .offline-draft-card { padding: .55rem .65rem; }
    .offline-experience #offline-home .offline-draft-template { font-size: .71rem; }
    .offline-experience #offline-home .offline-card-details h3 { font-size: .95rem; }
    .offline-experience #offline-home .offline-draft-meta { font-size: .76rem; }
    .employee-submitted-home .workspace-submission-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 620px) and (max-width: 880px), (max-height: 440px) {
    .offline-experience:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) { height: auto; min-height: 100dvh; padding-bottom: 0; overflow: auto; }
    .offline-experience:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) .experience-main { flex: 1 0 auto; overflow: visible; padding-bottom: calc(var(--forms-footer-height) + 1rem); }
    .offline-experience:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) .experience-panel { height: auto; }
    .offline-experience #offline-home,
    .offline-experience #offline-home:has(#online-mode-note:not([hidden])) { display: flex; flex-direction: column; }
    .offline-experience #offline-home .employee-home-section { flex: 0 0 auto; height: 320px; }
    .offline-experience #offline-home .employee-home-drafts { height: 360px; }
    .offline-experience .employee-submitted-home .employee-home-section { flex: 0 0 auto; height: 360px; }
}

@media (max-width: 760px) {
    .audience-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-top: 1.5rem; }
    .audience-card { padding: 1.15rem; }
    .audience-card__icon { margin-bottom: .65rem; }
    .audience-card p { margin-bottom: 1rem; }
    html:has(.editor-page) { scroll-padding-top: 68px; }
    .header-inner { min-height: 68px; }
    .brand img { height: 36px; max-width: min(180px, 43vw); }
    .brand { gap: .65rem; }
    .brand-name { font-size: .95rem; }
    .admin-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .admin-nav { flex-direction: row; flex-wrap: nowrap; gap: .25rem; padding: .55rem 1rem; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
    .admin-nav-label { display: none; }
    .admin-nav-divider { align-self: stretch; width: 1px; height: auto; margin: .25rem .5rem; }
    .admin-nav a { padding: .45rem .65rem; font-size: .9rem; }
    .admin-nav a[aria-current] { box-shadow: inset 0 -3px var(--brand-blue), 0 1px 3px rgba(0, 51, 102, .08); }
    .experience-main, .admin-main { padding: 1rem; }
    .experience-panel, .admin-panel { padding: 1.25rem; }
    .offline-experience .experience-header { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
    .offline-experience .experience-main { width: 100%; min-height: 100dvh; margin: 0; padding: 0 0 calc(var(--forms-footer-height) + 1rem); }
    .offline-experience .experience-panel { max-width: none; min-height: calc(100dvh - 68px); padding: 1rem; border: 0; border-radius: 0; box-shadow: none; }
    .offline-experience .experience-panel:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) { padding: 1rem; }
    .employee-footer-inner { gap: .35rem .75rem; }
    .employee-footer-state { flex-basis: 7rem; }
    .employee-footer .footer-action:not(.k-button) { min-height: 44px; padding: .35rem .4rem; font-size: .75rem; }
    .offline-experience:has(#editor-fields :focus) .employee-footer { transform: translateY(100%); opacity: 0; pointer-events: none; }
    .offline-experience #offline-access,
    .offline-experience #offline-setup,
    .offline-experience #offline-home,
    .offline-experience #offline-editor { margin-top: 0; }
    .table-wrap table:not(.workspace-response-table) { min-width: 35rem; }
    .workspace-response-table thead { display: none; }
    .workspace-response-table, .workspace-response-table tbody, .workspace-response-table tr, .workspace-response-table td { display: block; width: 100%; }
    .workspace-response-table tr { margin: 0 0 .8rem; padding: .55rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: #fbfdff; }
    .workspace-response-table td { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border: 0; text-align: right; }
    .workspace-response-table td::before { content: attr(data-label); color: var(--muted); font-weight: 700; text-align: left; }
}

@media (max-width: 520px) {
    .auth-card { padding: 1.8rem 1.25rem; border-radius: 18px; }
    .auth-card__title { font-size: clamp(1.9rem, 9vw, 2.35rem); }
    .forms-auth-page .auth-primary-button:not(.k-button) { width: 100%; min-width: 0; }
    .workspace-dashboard-section { padding: 1rem; }
    .workspace-section-heading #submission-search { flex-basis: 100%; max-width: none; }
    .admin-main:has(.editor-page) { padding-bottom: 11rem; }
    .editor-action-inner { align-items: stretch; flex-direction: column; gap: .25rem; padding: .5rem .85rem; }
    .editor-save-state { font-size: .76rem; }
    .editor-all-forms-link { min-height: 36px; font-size: .84rem; }
    .editor-primary-actions { justify-content: flex-end; flex-wrap: wrap; }
    .editor-action-bar button:not(.k-button) { min-height: 40px; padding: .4rem .6rem; font-size: .86rem; }
    .editor-save-label, .editor-preview-label { display: none; }
    .editor-preview-dialog { width: calc(100vw - 1rem); height: calc(100dvh - 1rem); }
    .editor-help-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
    .editor-help-type-grid { grid-template-columns: minmax(0, 1fr); }
    .admin-header-actions { gap: .25rem; }
    .admin-footer { gap: .5rem; padding: .35rem .85rem calc(.35rem + env(safe-area-inset-bottom)); }
    .admin-footer-label { font-size: .72rem; }
    .admin-footer-action { min-height: 40px; padding: .3rem .4rem; font-size: .78rem; }
    .editor-action-bar select { min-width: 0; max-width: 9rem; min-height: 40px; font-size: .78rem; }
    .editor-field-toolbar { padding: .2rem; }
    .editor-field-type { display: none; }
    .forms-admin button.editor-icon-button:not(.k-button) { width: 34px; min-height: 36px; }
    .header-inner { gap: .4rem; padding: .6rem .85rem; }
    .brand img { max-width: 42vw; height: 31px; }
    .brand-divider { min-height: 26px; }
    .brand-name { font-size: .86rem; }
    .header-action { min-height: 44px !important; margin: 0 !important; padding: .45rem .6rem !important; font-size: .85rem !important; }
    .experience-main, .admin-main { padding: .75rem; }
    .experience-panel, .admin-panel { padding: 1rem; border-radius: 10px; }
    .offline-experience .experience-main { padding: 0 0 calc(var(--forms-footer-height) + 1rem); }
    .offline-experience .experience-panel { border-radius: 0; }
    .offline-experience .experience-panel:has(#offline-home:not([hidden]), #submitted-home:not([hidden]), #trash-home:not([hidden])) { padding: .75rem; }
    .employee-home-section { padding: 1rem; }
    .employee-drafts-heading #draft-search { flex-basis: 100%; max-width: none; }
    .employee-trash-tools { flex: 1 1 100%; width: 100%; justify-content: space-between; }
    .employee-submitted-home #submitted-search { flex-basis: 100%; max-width: none; }
    .offline-experience .employee-trash-tools #trash-search { flex: 1 1 auto; width: auto; max-width: none; }
    .offline-experience #offline-home .offline-draft-card .offline-card-details,
    .offline-experience .employee-submitted-home .workspace-submission-details,
    .offline-experience .employee-submitted-home .offline-trash-card > div:first-child { flex: 1 1 100%; }
    .offline-experience #offline-home .offline-draft-actions { margin-left: auto; }
    .record-identity { align-items: flex-start; }
    .question, fieldset, .publish { padding: 1rem; }
    .form-actions button { flex: 1 1 100%; margin-right: 0; }
    .usage-row label { display: flex; margin-right: 0; }
    .usage-row input { max-width: 100%; }
}

@media (max-width: 380px) {
    .offline-experience .header-action span { display: none; }
    .offline-experience .header-action { min-width: 44px; padding: .45rem !important; }
}

.calculation-builder { margin: .8rem 0; }
.calculation-config-section { margin: .9rem 0; padding: .8rem; border: 1px solid var(--border); border-radius: 8px; background: #f8fbfd; }
.calculation-config-section h3 { margin: 0 0 .35rem; font-size: 1rem; }
.calculation-config-section p { margin: 0 0 .65rem; color: var(--muted); font-size: .88rem; }
.calculation-config-options { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem 1rem; }
.calculation-config-options label { margin: 0; }
.calculation-config-options input[type="number"] { max-width: 8rem; }
.calculation-config-row { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin: .5rem 0; padding: .65rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.calculation-config-row label { flex: 1 1 9rem; min-width: 7rem; margin: 0; font-size: .85rem; }
.calculation-config-row input, .calculation-config-row select { margin-top: .2rem; }
.calculation-config-row button { flex: 0 0 auto; }

.form-section { margin: 1.5rem 0 .8rem; padding: .8rem 1rem; border-left: 4px solid var(--brand-orange); border-radius: 0 8px 8px 0; background: #f4f9fd; }
.form-section h2, .form-section h3 { margin: 0; color: var(--brand-navy); font-size: 1.25rem; }
.form-section p { margin: .35rem 0 0; color: var(--muted); }
.checklist { display: grid; gap: .7rem; margin-top: .5rem; }
.checklist-count { margin: 0; }
.checklist-option { padding: .75rem; border: 1px solid var(--border); border-radius: 8px; background: #fbfdff; }
.checklist-option > label.inline { display: flex; align-items: flex-start; gap: .55rem; margin: 0; font-weight: 650; }
.checklist-option > label:not(.inline) { margin: .6rem 0 0; font-size: .84rem; }
.checklist-option textarea { min-height: 3.5rem; margin-top: .25rem; }
.signature-field { margin-top: .55rem; }
.signature-field canvas, .signature-display { display: block; width: 100%; max-width: 680px; height: clamp(160px, 30vw, 220px); border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.signature-field canvas { touch-action: none; cursor: crosshair; }
.signature-field canvas:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.signature-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.signature-actions[hidden] { display: none; }
.signature-actions button { min-height: 44px; margin: 0; }
.signature-field .hint { margin: .5rem 0; }
.signature-summary { margin-top: .55rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.signature-summary-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.signature-summary-state { display: flex; flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.signature-summary-badge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 6px; padding: .2rem .45rem; background: #eef3f7; color: #53677a; font-size: .82rem; font-weight: 650; }
.signature-summary-badge.is-collected { color: #176335; background: #e8f5ee; }
svg.signature-summary-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.signature-summary .signature-collect-button { gap: .4rem; flex: 0 0 auto; min-height: 40px; margin: 0; padding: .4rem .7rem; background: #f4f9fd; color: var(--brand-blue-dark); border-color: #c6d9e9; font-size: .86rem; font-weight: 650; }
.signature-summary .signature-collect-button:hover { background: #e9f3fb; }
.signature-summary-caption { font-size: .79rem; color: var(--muted); overflow-wrap: anywhere; }
.signature-summary .signature-summary-preview { margin-top: .35rem; }
.signature-summary .signature-summary-preview > .hint { display: none; }
.signature-summary .signature-summary-preview canvas { width: min(100%, 420px); max-width: 100%; height: auto; aspect-ratio: 25 / 8; border: 0; border-radius: 0; background: transparent; cursor: default; }
.signature-summary-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; margin-top: .6rem; padding-top: .3rem; border-top: 1px solid #edf2f6; }
.signature-summary-history { display: contents; }
.signature-summary-toolbar summary, .signature-history-disclosure > summary { display: inline-flex; align-items: center; justify-self: start; gap: .35rem; min-height: 40px; padding: .2rem 0; font-size: .82rem; color: var(--brand-blue-dark); cursor: pointer; list-style: none; white-space: normal; }
.signature-summary-toolbar summary::-webkit-details-marker, .signature-history-disclosure > summary::-webkit-details-marker { display: none; }
.signature-summary-toolbar summary::after, .signature-history-disclosure > summary::after { content: ''; width: 6px; height: 6px; margin-left: .2rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.signature-summary-toolbar details[open] > summary::after, .signature-history-disclosure[open] > summary::after { transform: rotate(225deg); }
.signature-summary .signature-history-disclosure { grid-column: 1; grid-row: 1; margin: 0; }
.signature-summary-info { grid-column: 2; grid-row: 1; }
.signature-summary-toolbar:has(.signature-summary-history[hidden]) .signature-summary-info { grid-column: 1; }
.signature-summary .signature-history-content { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.signature-history-content { white-space: normal; }
.signature-summary-explanation { grid-column: 1 / -1; grid-row: 3; color: var(--muted); font-size: .85rem; }
.signature-summary-explanation p, .signature-history-content p { margin: .4rem 0; }
.signature-history-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
.signature-history-heading strong { color: var(--brand-navy); }
.signature-history-content .signature-display { width: min(100%, 420px); height: auto; aspect-ratio: 25 / 8; margin-top: .5rem; }
.signature-summary-offline { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }
@media (max-width: 480px) { .signature-summary { padding: .7rem; } .signature-summary-header { gap: .5rem; } .signature-summary-toolbar { gap: .25rem .65rem; } }
.signature-handoff-empty canvas { display: none; }
.signature-handoff-dialog { width: min(92vw, 520px); max-height: min(90dvh, 700px); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; box-shadow: 0 18px 44px #0b325044; }
.signature-handoff-dialog::backdrop { background: #061b33a6; }
.signature-handoff-dialog label { display: block; margin: 1rem 0 .3rem; font-weight: 700; }
.signature-handoff-dialog input { width: 100%; box-sizing: border-box; min-height: 44px; }
.signature-display { fill: none; stroke: var(--brand-navy); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.photo-field { display: grid; gap: .55rem; margin-top: .5rem; }
.photo-field input[type="file"] { max-width: 100%; }
.photo-field .hint { margin: 0; }
.photo-list, .response-photos { display: flex; flex-wrap: wrap; gap: .75rem; }
.photo-card { display: grid; align-content: start; gap: .35rem; max-width: 170px; }
.photo-card img, .response-photos img { display: block; width: 160px; height: 120px; max-width: 100%; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; }
.photo-card button { min-height: 44px; margin: 0; }
.entra-person-picker { position: relative; width: 100%; max-width: 40rem; }
.entra-person-picker input[type="search"] { width: 100%; max-width: none; }
.entra-person-results:not(:empty) { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + .25rem); max-height: 17rem; overflow-y: auto; background: #fff; border: 1px solid #bdcddd; border-radius: .5rem; box-shadow: 0 .6rem 1.4rem rgba(0, 35, 70, .18); padding: .25rem; }
button.entra-person-option:not(.k-button) { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; width: 100%; min-height: 0; margin: 0; padding: .6rem .7rem; border: 0; border-radius: .3rem; background: transparent; color: var(--brand-navy); text-align: left; cursor: pointer; }
button.entra-person-option:not(.k-button):hover, button.entra-person-option.is-active:not(.k-button) { background: #e9f3fc; color: var(--brand-navy); }
button.entra-person-option:not(.k-button):focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -2px; }
.entra-person-option__name { width: 100%; overflow-wrap: anywhere; font-size: .9rem; font-weight: 700; }
.entra-person-option__email { width: 100%; overflow-wrap: anywhere; color: var(--muted); font-size: .8rem; font-weight: 400; }
.entra-person-empty { padding: .65rem .7rem; color: var(--muted); font-size: .85rem; }
.entra-person-status { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.entra-person-status.is-error { color: #a01d2a; }
.entra-person-status a { font-weight: 700; text-decoration: underline; }
.admin-main:has(.admin-directory-page) { display: flex; flex-direction: column; }
.admin-panel:has(.admin-directory-page) { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.admin-directory-page { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.admin-directory-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.admin-directory-heading > .admin-page-header { flex: 1 1 auto; margin: 0; padding: 0; border: 0; }
.admin-directory-help { position: relative; z-index: 10; flex: 0 0 auto; }
.admin-directory-help summary { padding: .45rem .65rem; border-radius: 7px; color: var(--brand-blue-dark); cursor: pointer; font-size: .85rem; font-weight: 650; }
.admin-directory-help summary:hover { background: #e9f4fc; }
.admin-directory-help p { position: absolute; right: 0; top: 100%; width: min(23rem, 80vw); margin: .25rem 0 0; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow); line-height: 1.45; }
.admin-directory-workspace { display: grid; grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); gap: 1rem; flex: 1 1 auto; min-height: 0; }
.admin-directory-sidebar, .admin-directory-details { min-width: 0; min-height: 0; border: 1px solid var(--border); border-radius: 10px; }
.admin-directory-sidebar { display: flex; flex-direction: column; gap: .8rem; padding: 1rem; background: #f7fbff; }
.admin-directory-sidebar h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.05rem; }
.admin-directory-sidebar .admin-department-create { margin: 0; }
.admin-directory-create-controls, .admin-department-rename-controls, .admin-department-add-controls { display: flex; align-items: flex-start; gap: .5rem; }
.admin-directory-create-controls input, .admin-directory-search, .admin-department-add-controls input, .admin-department-rename-controls input { min-width: 0; margin: 0; }
.admin-directory-create-controls input { flex: 1 1 auto; width: 100%; }
.admin-directory-sidebar button:not(.k-button) { flex: 0 0 auto; width: 44px; min-height: 44px; margin: 0; padding: .5rem; }
.admin-directory-sidebar button svg, .admin-department-rename svg, .admin-department-remove svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-directory-search { width: 100%; max-width: none; }
.admin-department-list { display: flex; flex-direction: column; gap: .3rem; min-height: 0; overflow-y: auto; }
.admin-department-list a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .7rem; border: 1px solid transparent; border-radius: 8px; color: var(--brand-navy); text-decoration: none; }
.admin-department-list a:hover { border-color: var(--border); background: #e9f4fc; }
.admin-department-list a[aria-current="true"] { border-color: #b6d5eb; background: #fff; box-shadow: inset 3px 0 var(--brand-blue); font-weight: 700; }
.admin-department-list a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.admin-directory-details { overflow-y: auto; background: #fff; }
.admin-directory-details .admin-department-card { margin: 0; padding: 0; border: 0; background: transparent; }
.admin-department-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); }
.admin-department-header h2 { margin: 0; font-size: 1.35rem; }
.admin-department-header p { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.admin-department-rename { position: relative; flex: 0 0 auto; }
.admin-department-rename summary { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .55rem; border-radius: 7px; color: var(--brand-blue-dark); cursor: pointer; font-size: .85rem; font-weight: 650; list-style: none; }
.admin-department-rename summary::-webkit-details-marker { display: none; }
.admin-department-rename summary:hover { background: #e9f4fc; }
.admin-department-rename form { position: absolute; top: 100%; right: 0; z-index: 10; width: min(25rem, 70vw); padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.admin-department-rename label { margin-top: 0; }
.admin-department-rename-controls { margin-top: .4rem; }
.admin-department-rename-controls input { flex: 1 1 auto; }
.admin-department-rename-controls button:not(.k-button) { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.admin-department-add-person { margin: 1rem 1.3rem; padding: 1rem; border: 1px solid #c9dfef; border-radius: 9px; background: #f6fbff; }
.admin-department-add-person > label { margin: 0; color: var(--brand-navy); font-size: 1rem; }
.admin-department-add-person .hint { margin: .2rem 0 .75rem; font-size: .82rem; }
.admin-department-add-controls { align-items: flex-end; }
.admin-department-add-controls .entra-person-picker { flex: 0 1 40rem; max-width: 40rem; }
.admin-department-role-select { flex: 0 0 9rem; margin: 0 !important; color: var(--brand-navy); font-size: .78rem; }
.admin-department-role-select select { margin-top: .2rem; }
.admin-department-add-controls > button:not(.k-button) { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.admin-department-people-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 1.3rem .6rem; }
.admin-department-people-heading h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.05rem; }
.admin-department-people-heading input { width: min(19rem, 100%); max-width: none; margin: 0; }
.admin-department-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .65rem; margin: 0 1.3rem 1.3rem; padding: 0; list-style: none; }
.admin-department-members li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: #fbfdff; }
.admin-department-person { min-width: 0; overflow-wrap: anywhere; }
.admin-department-members small { display: block; color: var(--muted); }
.admin-department-members form { flex: 0 0 auto; margin: 0; }
.admin-department-member-actions, .admin-department-role-form { display: flex; align-items: center; gap: .35rem; }
.admin-department-member-actions { flex: 0 0 auto; }
.admin-department-role-form select { width: 7.5rem; min-height: 38px; margin: 0; padding: .3rem .45rem; font-size: .82rem; }
.admin-department-role-form button:not(.k-button) { min-height: 38px; margin: 0; padding: .3rem .55rem; font-size: .8rem; white-space: nowrap; }
.admin-department-members button.admin-department-remove:not(.k-button) { width: 38px; min-height: 38px; margin: 0; padding: .4rem; border-color: transparent; background: transparent; color: #a01d2a; }
.admin-department-members button.admin-department-remove:not(.k-button):hover { background: #fff0f0; }
.admin-directory-empty, .admin-directory-empty-members { margin: 1.3rem; color: var(--muted); }
.admin-directory-empty h2 { margin: 0 0 .3rem; }
@media (max-width: 900px) {
    .admin-panel:has(.admin-directory-page), .admin-directory-page { min-height: auto; }
    .admin-directory-workspace { display: block; min-height: auto; }
    .admin-directory-sidebar { margin-bottom: 1rem; }
    .admin-department-list { max-height: 12rem; }
    .admin-directory-details { overflow: visible; }
}
@media (max-width: 600px) {
    .admin-directory-heading { flex-wrap: wrap; }
    .admin-directory-help p { right: auto; left: 0; }
    .admin-department-header { padding: 1rem; }
    .admin-department-add-person { margin: .75rem; }
    .admin-department-add-controls { flex-wrap: wrap; }
    .admin-department-add-controls .entra-person-picker { flex-basis: 100%; max-width: none; }
    .admin-department-role-select { flex: 1 1 100%; }
    .admin-department-add-controls > button:not(.k-button) { width: 100%; }
    .admin-department-people-heading, .admin-department-members { margin-right: .75rem; margin-left: .75rem; }
    .admin-department-people-heading input { width: 100%; }
    .admin-department-members li { align-items: flex-start; flex-direction: column; }
    .admin-department-member-actions { flex-wrap: wrap; width: 100%; }
}

.admin-access-page { display: grid; gap: 1rem; width: 100%; margin: 0; }
.admin-access-page > .admin-page-header { margin-bottom: 0; }
.admin-access-message { margin: 0; padding: .7rem .85rem; border-radius: 7px; background: #edf8f1; }
.admin-access-message.validation { background: #fff0f0; }
.admin-access-note { margin: 0; padding: .7rem .9rem; border-left: 3px solid var(--brand-blue); border-radius: 6px; background: #f2f8fd; color: var(--muted); font-size: .86rem; }
.admin-access-overview, .admin-access-sharing { display: grid; gap: 1rem; align-items: start; }
.admin-access-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-access-sharing { grid-template-columns: minmax(0, 1.5fr) minmax(320px, .9fr); }
.admin-access-card { min-width: 0; padding: 1.15rem 1.25rem; border: 1px solid var(--border); border-radius: 10px; background: #fbfdff; }
.admin-access-card-heading { margin-bottom: .85rem; }
.admin-access-card-heading h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.08rem; }
.admin-access-card-heading p { margin: .3rem 0 0; color: var(--muted); font-size: .84rem; }
.admin-access-person { display: flex; flex-direction: column; gap: .1rem; min-width: 0; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; overflow-wrap: anywhere; }
.admin-access-person strong { color: var(--brand-navy); }
.admin-access-person > span:last-child, .admin-access-created-by, .admin-access-footnote { color: var(--muted); font-size: .8rem; }
.admin-access-person-label { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.admin-access-created-by { margin: .6rem 0 0; }
.admin-access-created-by strong { color: var(--text); }
.admin-access-disclosure { margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.admin-access-disclosure summary, .admin-access-grant-edit summary { width: max-content; max-width: 100%; color: var(--brand-blue-dark); font-size: .84rem; font-weight: 700; cursor: pointer; }
.admin-access-disclosure form { padding-top: .25rem; }
.admin-access-disclosure label, .admin-access-add form > label, .admin-access-department-form label { margin: .7rem 0 .3rem; font-size: .84rem; }
.admin-access-disclosure .entra-person-picker, .admin-access-add .entra-person-picker { max-width: none; }
.admin-access-disclosure button:not(.k-button) { margin: .75rem 0 0; }
.admin-access-department-name { padding: .75rem .85rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--brand-navy); font-weight: 700; }
.admin-access-department-form { margin-top: .75rem; }
.admin-access-department-controls { display: flex; align-items: center; gap: .5rem; }
.admin-access-department-controls select { flex: 1 1 auto; min-width: 0; max-width: none; }
.admin-access-department-controls button:not(.k-button) { flex: 0 0 auto; margin: 0; }
.admin-access-secondary-link { display: inline-block; margin-top: .75rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.admin-access-secondary-link:hover { text-decoration: underline; }
.admin-access-footnote { margin: .8rem 0 0; line-height: 1.45; }
.admin-access-grant-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.admin-access-grant { min-width: 0; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.admin-access-grant-main { display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; align-items: center; gap: .75rem; }
.admin-access-grant-identity { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.admin-access-grant-identity strong { color: var(--brand-navy); font-size: .9rem; }
.admin-access-grant-identity span { color: var(--muted); font-size: .78rem; }
.admin-access-permission-list { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .3rem; }
.admin-access-permission { padding: .2rem .45rem; border-radius: 999px; background: #e9f4fc; color: var(--brand-navy); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.admin-access-grant-main form { margin: 0; }
.admin-access-grant-main button.admin-access-remove:not(.k-button) { width: 38px; min-height: 38px; margin: 0; padding: .45rem; border-color: transparent; background: transparent; color: #a01d2a; }
.admin-access-grant-main button.admin-access-remove:not(.k-button):hover { background: #fff0f0; }
.admin-access-remove svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-access-grant-edit { margin-top: .55rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.admin-access-grant-edit form { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: .65rem; }
.admin-access-grant-edit button:not(.k-button) { min-height: 38px; margin: 0; padding: .35rem .7rem; font-size: .82rem; }
.admin-access-choice-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.admin-access-choice { display: flex !important; align-items: flex-start; gap: .55rem; min-width: 0; margin: 0 !important; padding: .65rem .7rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; cursor: pointer; }
.admin-access-choice:has(input:checked) { border-color: #91bbdc; background: #edf7ff; }
.admin-access-choice input { flex: 0 0 auto; margin: .2rem 0 0; }
.admin-access-choice span { display: flex; flex-direction: column; gap: .1rem; font-size: .84rem; font-weight: 650; }
.admin-access-choice small { color: var(--muted); font-size: .75rem; font-weight: 400; }
.admin-access-permission-error { margin: .5rem 0 0; font-size: .82rem; }
.admin-access-empty { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: .84rem; }
.admin-access-empty strong { color: var(--brand-navy); font-size: .93rem; }
.admin-access-add form > label { margin-top: 0; }
.admin-access-add input[type="search"] { max-width: none; }
.admin-access-permissions { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; border: 0; }
.admin-access-permissions legend { margin-bottom: .4rem; padding: 0; color: var(--brand-navy); font-size: .84rem; font-weight: 700; }
.admin-access-add-button:not(.k-button) { width: 100%; margin: 1rem 0 0; }
.draft-recovery-dialog { width: min(60rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.5rem; border: 1px solid var(--border); border-radius: 12px; overflow: auto; color: var(--brand-navy); }
.draft-recovery-dialog::backdrop { background: #082d4e99; }
.draft-recovery-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.draft-recovery-heading h2 { margin: 0; }
.draft-recovery-fields { display: grid; gap: 1rem; margin: 1rem 0; }
.draft-recovery-fields fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; min-width: 0; margin: 0; padding: 1rem; border: 1px solid #c6d9e9; border-radius: 8px; }
.draft-recovery-fields legend { font-weight: 700; padding: 0 .3rem; }
.draft-recovery-fields label { display: flex; align-items: flex-start; gap: .5rem; margin: 0; padding: .75rem; background: #f3f8fc; border-radius: 6px; min-width: 0; }
#draft-recovery-dialog input[type="radio"] { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: .25rem 0 0; }
.draft-recovery-fields label span { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 400; }
.draft-recovery-fields p { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.draft-recovery-photos { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 12rem; overflow: auto; margin-top: .5rem; }
.draft-recovery-photos img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border); border-radius: 4px; }
#draft-review-button { margin: 0 0 1rem; padding: .3rem .7rem; font-size: .85rem; background: #f3f8fc; color: var(--brand-navy); border-color: var(--border); }
.draft-recovery-dialog button.button-secondary { background: #f3f8fc; color: var(--brand-navy); border-color: var(--border); }
@media (max-width: 600px) { .draft-recovery-fields fieldset { grid-template-columns: minmax(0, 1fr); } .draft-recovery-dialog { padding: 1rem; } }
@media (max-width: 1200px) {
    .admin-access-sharing { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
    .admin-access-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
    .admin-access-card { padding: 1rem; }
    .admin-access-grant-main { grid-template-columns: minmax(0, 1fr) 38px; }
    .admin-access-permission-list { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    .admin-access-grant-main form { grid-column: 2; grid-row: 1; }
    .admin-access-choice-row { flex-direction: column; }
}

/* Summary delivery: submission remains distinct from email, with progressive actions. */
.delivery-page { width:100%; min-width:0; }
.delivery-receipt { display:flex; flex-wrap:wrap; gap:.5rem 1rem; padding:.85rem 1rem; background:#edf8f2; border-left:3px solid #238a60; border-radius:6px; margin-bottom:1rem; }
.delivery-receipt span { font-size:.9rem; }
.workspace-submission-receipt { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem 1rem; padding:.65rem .85rem; margin-bottom:.65rem; border-left:3px solid #238a60; border-radius:6px; background:#edf8f2; font-size:.9rem; }
.workspace-submission-receipt > button { margin-left:auto; }
.delivery-operation { border:1px solid #ccdcea; border-radius:10px; background:#fbfdff; padding:1.15rem; margin:1rem 0; }
.delivery-operation-heading { display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.delivery-operation-heading h2 { font-size:1.1rem; margin:0; }
.delivery-badge { padding:.25rem .65rem; border-radius:99px; background:#e8f3fc; font-size:.85rem; font-weight:600; }
.delivery-badge[data-state="NeedsAttention"],.delivery-badge[data-state="Unknown"],.delivery-badge[data-state="NeedsAddress"] { background:#fff1de; color:#835000; }
.delivery-metadata { display:grid; grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)); gap:1rem; margin:1.2rem 0; }
.delivery-metadata dt { font-size:.8rem; color:#51677c; }
.delivery-metadata dd { margin:.2rem 0 0; overflow-wrap:anywhere; }
.delivery-timestamp { display:grid; gap:.1rem; line-height:1.4; font-variant-numeric:tabular-nums; }
.delivery-timestamp-clock { white-space:nowrap; }
.delivery-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; align-items:flex-start; }
.delivery-action { min-width:0; }
.delivery-action > summary { padding:.5rem .75rem; border:1px solid #ccdcea; border-radius:6px; cursor:pointer; font-weight:600; }
.delivery-action[open] { flex:1 1 100%; border:1px solid #b8cfe2; border-radius:6px; }
.delivery-action[open] > summary { border:0; background:#edf4fa; }
.delivery-action form { padding:1rem; max-width:760px; }
.delivery-action label { display:block; margin:.6rem 0; }
.delivery-action input { width:100%; max-width:none; }
.delivery-action button { margin:.5rem .4rem 0 0; }
.delivery-history { margin-top:1rem; border-top:1px solid #dce6ef; padding-top:.75rem; }
.delivery-history summary { cursor:pointer; }
.delivery-history ul { padding-left:1.25rem; }
.delivery-history li { padding:.3rem 0; overflow-wrap:anywhere; }
.delivery-history time { font-size:.85rem; color:#51677c; margin-right:.5rem; }
.delivery-error { background:#fff1f0; border-left:3px solid #ae3030; padding:.75rem; }
.delivery-notice { background:#eef7fc; padding:.75rem; }
.workspace-response-actions { display:flex; gap:.35rem; }
.workspace-delivery-status { font-size:.8rem; }
@media(max-width:600px) {
 .delivery-metadata { grid-template-columns:1fr; gap:.6rem; }
 .delivery-operation { padding:.85rem; }
 .delivery-actions { flex-direction:column; }
 .delivery-action { width:100%; }
}
@media print { .delivery-actions,.delivery-history { display:none; } }
