@font-face { font-family: "Alata"; src: url("/assets/fonts/Alata-Regular.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk-Regular.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; }

:root {
    --pink: #e23d64;
    --plum: #9c1b61;
    --blue: #0096cf;
    --navy: #00344a;
    --heading: "Alata", Arial, sans-serif;
    --body: "Hanken Grotesk", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-size: 15px; }
button, input, select { font: inherit; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--heading); font-weight: 400; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--dp-menu-bg);
    border-right: 1px solid var(--dp-border-soft);
}
.admin-sidebar nav { min-height: 0; margin-top: 18px; overflow-y: auto; }
.admin-sidebar .nav-label { margin: 0 0 8px; padding: 0 17px; color: var(--dp-text-muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.admin-nav-item { display: flex; flex-direction: column; gap: 2px; margin: 2px 8px; padding: 10px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--dp-text-strong); text-decoration: none; }
.admin-nav-item span, .admin-nav-item:not(:has(small)) { font-weight: 600; }
.admin-nav-item small { color: var(--dp-text-muted); font-size: 11px; }
.admin-nav-item:hover, .admin-nav-item.active { background: var(--dp-menu-hover); border-color: var(--dp-border-soft); }
.admin-sidebar .dp-theme-toggle { margin-top: auto; }
.admin-account { margin: 0 12px; padding: 14px 0 0; border-top: 1px solid var(--dp-border-soft); color: var(--dp-text-strong); }
.admin-account > span, .admin-account > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account > span { font-weight: 600; }
.admin-account > small { margin-top: 2px; color: var(--dp-text-muted); font-size: 11px; }
.admin-account em { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 999px; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); font-size: 10px; font-style: normal; font-weight: 600; text-transform: uppercase; }
.admin-account form { margin-top: 10px; }
.admin-account button { padding: 0; border: 0; color: var(--dp-text-muted); background: transparent; cursor: pointer; font-size: 12px; }
.admin-account button:hover { color: var(--pink); }

.admin-main { min-width: 0; padding: 42px clamp(28px, 5vw, 72px) 70px; background: var(--dp-page-bg); }
.admin-page-header { max-width: 1180px; margin: 0 auto 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-page-header > div { max-width: 760px; }
.admin-page-header h1 { margin: 5px 0 7px; color: var(--dp-text-strong); font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
.admin-page-header p:last-child { margin-bottom: 0; color: var(--dp-text-muted); font-size: 16px; line-height: 1.45; }
.page-eyebrow { margin: 0; color: var(--pink); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-weight: 600; text-decoration: none; }
.button-primary { color: #fff; background: var(--pink); }
.button-primary:hover { background: var(--plum); }
.button-secondary { color: var(--dp-text-strong); background: var(--dp-surface); border-color: var(--dp-border); }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }

.success-alert, .form-alert { max-width: 1180px; margin: 0 auto 20px; padding: 12px 15px; border: 1px solid; border-radius: 6px; }
.success-alert { color: #205f43; background: #eef8f2; border-color: #b8dfc9; }
.form-alert { color: #8e253e; background: #fff1f4; border-color: #efbdc9; }
html[data-dp-theme="dark"] .success-alert { color: #a6e2c2; background: #102b20; border-color: #28563e; }
html[data-dp-theme="dark"] .form-alert { color: #ffb1c3; background: #321722; border-color: #653043; }

.practice-overview { max-width: 1180px; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--dp-border-soft); background: var(--dp-surface); }
.practice-overview > div { min-height: 94px; padding: 19px 22px; border-left: 1px solid var(--dp-border-soft); }
.practice-overview > div:first-child { border-left: 0; }
.practice-overview strong, .practice-overview span { display: block; }
.practice-overview strong { color: var(--dp-text-strong); font-family: var(--heading); font-size: 29px; font-weight: 400; line-height: 1; }
.practice-overview span { margin-top: 7px; color: var(--dp-text-muted); font-size: 12px; }

.practice-panel { max-width: 1180px; margin: 0 auto; border: 1px solid var(--dp-border-soft); background: var(--dp-surface); }
.practice-table-wrap { overflow-x: auto; }
.practice-table { width: 100%; border-collapse: collapse; }
.practice-table th, .practice-table td { padding: 17px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--dp-border-soft); }
.practice-table tr:last-child td { border-bottom: 0; }
.practice-table th { color: var(--dp-text-muted); background: var(--dp-surface-2); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.practice-table td { color: var(--dp-text); }
.practice-table td:first-child { min-width: 220px; }
.practice-table strong, .practice-table small { display: block; }
.practice-table td:first-child strong { color: var(--dp-text-strong); font-family: var(--heading); font-size: 16px; font-weight: 400; }
.practice-table td:first-child strong a { color: inherit; text-decoration: none; }
.practice-table td:first-child strong a:hover { color: var(--blue); }
.practice-table small { margin-top: 4px; color: var(--dp-text-muted); font-size: 11px; }
.compact-value { display: block; color: var(--dp-text-strong); font-size: 18px; font-weight: 600; }
.status-pill { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-good { color: #236347; background: #eaf7f0; }
.status-pending { color: #825b13; background: #fff5d9; }
.status-error { color: #922640; background: #ffedf1; }
.status-neutral { color: var(--dp-text-muted); background: var(--dp-surface-2); }
html[data-dp-theme="dark"] .status-good { color: #9cdbbb; background: #153326; }
html[data-dp-theme="dark"] .status-pending { color: #f0cc7a; background: #362b12; }
html[data-dp-theme="dark"] .status-error { color: #ffb1c3; background: #321722; }
.empty-state { padding: 60px 28px; text-align: center; }
.empty-state h2 { margin-bottom: 7px; color: var(--dp-text-strong); }
.empty-state p { margin-bottom: 0; color: var(--dp-text-muted); }

.form-page-header { align-items: flex-start; }
.setup-form { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 24px; align-items: start; }
.setup-index { position: sticky; top: 25px; display: flex; flex-direction: column; border: 1px solid var(--dp-border-soft); background: var(--dp-surface); }
.setup-index span { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 8px; padding: 13px 14px; border-bottom: 1px solid var(--dp-border-soft); color: var(--dp-text-muted); font-size: 11px; }
.setup-index span:last-child { border-bottom: 0; }
.setup-index strong { color: var(--dp-text-strong); font-size: 12px; }
.setup-sections { min-width: 0; }
.form-section { margin-bottom: 16px; padding: 25px 27px 29px; border: 1px solid var(--dp-border-soft); background: var(--dp-surface); }
.section-copy { margin-bottom: 24px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.section-copy > span { color: var(--pink); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.section-copy h2 { margin: -4px 0 4px; color: var(--dp-text-strong); font-size: 20px; }
.section-copy p { margin: 0; color: var(--dp-text-muted); font-size: 13px; }
.field-grid { display: grid; gap: 19px 22px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field label { display: block; margin-bottom: 7px; color: var(--dp-text-strong); font-size: 13px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--dp-border); border-radius: 5px; outline: none; color: var(--dp-text); background: var(--dp-surface); }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 17%, transparent); }
.field > small { display: block; margin-top: 5px; color: var(--dp-text-muted); font-size: 11px; }
.field .field-error, .section-error { color: #b52f50; font-weight: 600; }
html[data-dp-theme="dark"] .field .field-error,
html[data-dp-theme="dark"] .section-error { color: #ff9db5; }
.input-prefix { display: grid; grid-template-columns: 32px minmax(0, 1fr); }
.input-prefix span { display: flex; align-items: center; justify-content: center; border: 1px solid var(--dp-border); border-right: 0; border-radius: 5px 0 0 5px; color: var(--dp-text-muted); background: var(--dp-surface-2); }
.input-prefix input { border-radius: 0 5px 5px 0; }
.language-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 26px; align-items: start; }
.language-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.language-editor { display: grid; gap: 12px; }
.language-add { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(150px, 1fr) auto; gap: 8px; align-items: center; }
.language-add select, .language-add input { min-height: 42px; }
.language-selected { display: flex; flex-wrap: wrap; gap: 7px; }
.language-selected > span { min-height: 34px; padding: 6px 7px 6px 11px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--dp-border); border-radius: 18px; color: var(--dp-text-strong); background: var(--dp-surface-2); font-size: 11px; }
.language-selected button { padding: 3px 6px; border: 0; border-radius: 10px; color: var(--dp-text-muted); background: transparent; cursor: pointer; font-size: 9px; }
.language-selected button:hover { color: #fff; background: #a12b48; }
.footer-options-grid { margin-bottom: 20px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) minmax(220px, 1fr); gap: 16px; align-items: end; }
.setup-form .switch-field { min-height: 42px; display: flex; align-items: center; gap: 9px; color: var(--dp-text-strong); font-size: 12px; font-weight: 600; }
.setup-form .switch-field input { accent-color: var(--pink); }
.setup-form textarea { width: 100%; min-height: 92px; padding: 10px 11px; resize: vertical; border: 1px solid var(--dp-border); border-radius: 5px; color: var(--dp-text); background: var(--dp-surface); font: inherit; font-size: 13px; line-height: 1.45; }
.setup-form textarea.code-field { min-height: 180px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; tab-size: 2; }
.footer-subsection { margin: 24px 0 12px; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; border-top: 1px solid var(--dp-border-soft); }
.footer-subsection h3 { margin: 0 0 3px; color: var(--dp-text-strong); font-family: var(--heading); font-size: 16px; font-weight: 400; }
.footer-subsection p { margin: 0; color: var(--dp-text-muted); font-size: 11px; }
.footer-branches { display: grid; gap: 12px; }
.footer-branch { padding: 15px; border: 1px solid var(--dp-border); border-radius: 6px; background: var(--dp-surface-2); }
.footer-branch > header { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; }
.footer-branch > header strong { color: var(--dp-text-strong); font-size: 12px; }
.footer-branch > header button { border: 0; color: #a12b48; background: transparent; cursor: pointer; font-size: 10px; }
.footer-branch .branch-address { grid-column: 1 / -1; }
.check-card { min-height: 68px; padding: 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--dp-border); border-radius: 6px; cursor: pointer; }
.check-card:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--dp-surface)); }
.check-card input { margin-top: 3px; accent-color: var(--pink); }
.check-card span, .check-card strong, .check-card small { display: block; }
.check-card strong { color: var(--dp-text-strong); }
.check-card small { margin-top: 3px; color: var(--dp-text-muted); font-size: 11px; }
.colour-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.colour-field > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.colour-field input[type="color"] { height: 42px; min-height: 42px; padding: 3px; border-radius: 5px 0 0 5px; }
.colour-field input[type="text"], .colour-field input:not([type]) { border-left: 0; border-radius: 0 5px 5px 0; }
.form-actions { padding: 9px 0 0; display: flex; justify-content: flex-end; gap: 10px; }
.campaign-create-form { max-width: 900px; margin: 0 auto; }
.campaign-create-form .form-alert { max-width: none; }
.campaign-practice-options[hidden] { display: none; }
.campaign-option-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.option-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.option-fieldset legend { margin-bottom: 10px; color: var(--dp-text-strong); font-size: 13px; font-weight: 600; }
.stacked-options { display: grid; gap: 8px; }
.compact-check { min-height: 61px; }
.no-options { margin: 0; padding: 15px; border: 1px solid var(--dp-border-soft); color: var(--dp-text-muted); background: var(--dp-surface-2); font-size: 12px; line-height: 1.4; }
.no-options a { color: var(--blue); }
.campaign-form-actions { padding-top: 4px; }
.edition-default-language { max-width: 320px; margin-top: 18px; }
.delayed-label { color: var(--pink) !important; font-weight: 600; }
.check-card.option-unavailable { opacity: .48; }
.check-card.option-unavailable small::after { content: " · not in this edition"; }
.table-action { color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.table-action:hover { text-decoration: underline; }
.muted-action { color: var(--dp-text-muted); font-size: 11px; white-space: nowrap; }
.factory-header { align-items: flex-end; }
.factory-alert ul { margin: 8px 0 0; padding-left: 20px; }
.factory-toolbar { min-height: 70px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--dp-border-soft); background: var(--dp-surface-2); }
.factory-toolbar > div { text-align: right; }
.factory-toolbar > div strong, .factory-toolbar > div span { display: block; }
.factory-toolbar > div strong { color: var(--dp-text-strong); }
.factory-toolbar > div span { margin-top: 3px; color: var(--dp-text-muted); font-size: 11px; }
.factory-select-all { display: flex; align-items: center; gap: 8px; color: var(--dp-text-strong); font-weight: 600; }
.factory-select-all input, .factory-table input[type="checkbox"] { accent-color: var(--pink); }
.factory-table th:first-child, .factory-table td:first-child { width: 44px; min-width: 44px; padding-right: 0; }
.factory-table td:nth-child(2) { min-width: 190px; }
.factory-table .factory-month { width: 150px; min-height: 36px; padding: 7px 9px; border: 1px solid var(--dp-border); border-radius: 5px; color: var(--dp-text); background: var(--dp-surface); font: inherit; }
.factory-table .factory-month-delayed { border-color: var(--pink); color: var(--pink); font-weight: 600; }
.factory-row-blocked { opacity: .64; }
.factory-actions { max-width: 1180px; margin: 16px auto 0; }

.detail-page-header { align-items: flex-end; }
.detail-actions { display: flex; align-items: center; gap: 10px; }
.practice-workspace { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.workspace-main { min-width: 0; }
.workspace-card, .readiness-card, .contact-card { margin-bottom: 16px; padding: 25px 27px; border: 1px solid var(--dp-border-soft); background: var(--dp-surface); }
.workspace-card-heading { margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.workspace-card-heading h2, .contact-card h2 { margin: 5px 0 0; color: var(--dp-text-strong); font-size: 20px; }
.logo-workspace { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 25px; align-items: center; }
.logo-preview { height: 138px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--dp-border); background: #fff; }
.logo-preview img { display: block; max-width: 88%; max-height: 108px; }
.logo-preview > span { color: #7b8b93; font-size: 12px; }
.logo-preview-asl { background-image: url('/assets/practices/asl-vets.png'); background-repeat: no-repeat; background-position: -389px 10px; background-size: 600px 300px; }
.footer-logo-preview { background-color: #173844; }
.logo-workspace p { margin-bottom: 17px; color: var(--dp-text-muted); line-height: 1.45; }
.logo-upload-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.logo-upload-form input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.file-button { min-height: 39px; display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--dp-border); border-radius: 5px; color: var(--dp-text-strong); background: var(--dp-surface); cursor: pointer; font-weight: 600; }
.file-button:hover { border-color: var(--blue); color: var(--blue); }
.logo-upload-form > span { overflow: hidden; color: var(--dp-text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.settings-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--dp-border-soft); }
.settings-list > div { min-height: 76px; padding: 15px 17px; border-bottom: 1px solid var(--dp-border-soft); }
.settings-list > div:nth-child(odd) { border-right: 1px solid var(--dp-border-soft); }
.settings-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.settings-list dt { color: var(--dp-text-muted); font-size: 11px; }
.settings-list dd { margin: 6px 0 0; color: var(--dp-text-strong); font-weight: 600; }
.colour-summary { display: flex; align-items: center; gap: 7px; }
.colour-summary i { width: 17px; height: 17px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 50%; }
.colour-summary span { margin-left: 4px; color: var(--dp-text-muted); font-size: 11px; font-weight: 400; }
.domain-summary strong, .domain-summary span { display: block; }
.domain-summary strong { color: var(--dp-text-strong); font-size: 17px; }
.domain-summary span { margin-top: 5px; color: var(--dp-text); }
.domain-summary p, .empty-inline p { margin: 13px 0 0; color: var(--dp-text-muted); font-size: 13px; }
.empty-inline strong { color: var(--dp-text-strong); }
.readiness-card { position: sticky; top: 24px; }
.readiness-score { margin: 11px 0 19px; padding-bottom: 18px; border-bottom: 1px solid var(--dp-border-soft); }
.readiness-score strong, .readiness-score span { display: block; }
.readiness-score strong { color: var(--dp-text-strong); font-family: var(--heading); font-size: 31px; font-weight: 400; }
.readiness-score span { margin-top: 3px; color: var(--dp-text-muted); font-size: 12px; }
.readiness-card ul { margin: 0; padding: 0; list-style: none; }
.readiness-card li { min-height: 35px; display: flex; align-items: center; gap: 10px; color: var(--dp-text); font-size: 13px; }
.readiness-card li > span { width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dp-border); border-radius: 50%; color: var(--dp-text-muted); font-size: 10px; }
.readiness-card li.done > span { border-color: #55a77d; color: #236347; background: #eaf7f0; }
html[data-dp-theme="dark"] .readiness-card li.done > span { color: #9cdbbb; background: #153326; }
.contact-card h2 { margin-bottom: 13px; }
.contact-card span { display: block; margin-top: 5px; color: var(--dp-text-muted); font-size: 12px; }

.audience-workspace { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.list-card { min-height: 96px; padding: 17px 18px; border: 1px solid var(--dp-border-soft); background: var(--dp-surface-2); }
.list-card strong, .list-card span, .list-card small { display: block; }
.list-card strong { color: var(--dp-text-strong); font-family: var(--heading); font-size: 16px; font-weight: 400; }
.list-card span { margin-top: 9px; color: var(--dp-text); font-weight: 600; }
.list-card small { margin-top: 3px; color: var(--dp-text-muted); font-size: 11px; }
.import-history { border-top: 1px solid var(--dp-border-soft); }
.import-row { position: relative; min-height: 76px; padding: 15px 105px 15px 0; border-bottom: 1px solid var(--dp-border-soft); }
.import-row:last-child { padding-bottom: 0; border-bottom: 0; }
.import-row > div strong, .import-row > div span { display: block; }
.import-row > div strong { color: var(--dp-text-strong); }
.import-row > div span { margin-top: 5px; color: var(--dp-text-muted); font-size: 12px; }
.import-row > .status-pill { position: absolute; top: 15px; right: 0; }
.import-row > p { margin: 8px 0 0; color: #b52f50; font-size: 12px; }
.import-card { position: sticky; top: 24px; padding: 25px 27px; border: 1px solid var(--dp-border-soft); background: var(--dp-surface); }
.import-card h2 { margin: 5px 0 9px; color: var(--dp-text-strong); font-size: 20px; }
.import-card > p:not(.page-eyebrow) { color: var(--dp-text-muted); font-size: 13px; line-height: 1.45; }
.audience-import-form { margin-top: 22px; }
.audience-import-form .field { margin-top: 17px; }
.audience-import-form input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.audience-import-form .button { width: 100%; margin-top: 20px; }
.full-file-button { width: 100%; justify-content: center; }
.privacy-note { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--dp-border-soft); }
.privacy-note strong, .privacy-note span { display: block; }
.privacy-note strong { color: var(--dp-text-strong); font-size: 12px; }
.privacy-note span { margin-top: 4px; color: var(--dp-text-muted); font-size: 11px; line-height: 1.4; }
.suppression-card .workspace-card-heading p { margin: 5px 0 0; color: var(--dp-text-muted); font-size: 12px; }
.suppression-search { margin-bottom: 18px; }
.suppression-search > label { display: block; margin-bottom: 7px; color: var(--dp-text-strong); font-size: 12px; font-weight: 600; }
.suppression-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.suppression-search input { min-height: 42px; padding: 9px 11px; border: 1px solid var(--dp-border); border-radius: 5px; color: var(--dp-text); background: var(--dp-surface); }
.suppression-list { border-top: 1px solid var(--dp-border-soft); }
.suppression-row { min-height: 78px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--dp-border-soft); }
.suppression-row strong, .suppression-row span, .suppression-row small { display: block; }
.suppression-row strong { color: var(--dp-text-strong); }
.suppression-row span { margin-top: 4px; color: var(--dp-text); font-size: 12px; }
.suppression-row small { margin-top: 3px; color: var(--dp-text-muted); font-size: 10px; }
.restore-contact-form { display: flex; align-items: center; gap: 8px; }
.restore-contact-form label { color: var(--dp-text-muted); font-size: 10px; }
.restore-contact-form input { accent-color: var(--pink); }
.restore-contact-form button { padding: 7px 9px; border: 1px solid var(--dp-border); border-radius: 4px; color: var(--dp-text-strong); background: var(--dp-surface); cursor: pointer; font-size: 10px; font-weight: 600; }
.restore-contact-form button:hover { border-color: var(--pink); color: var(--pink); }

.nav-label-secondary { margin-top: 24px; }
.user-workspace { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.user-workspace .practice-panel { width: 100%; min-width: 0; }
.user-create-card { position: sticky; top: 24px; }
.user-create-card h2, .gdpr-card h2 { margin: 5px 0 8px; color: var(--dp-text-strong); font-size: 20px; }
.user-create-card > p:not(.page-eyebrow), .gdpr-card > p:not(.page-eyebrow) { color: var(--dp-text-muted); font-size: 12px; line-height: 1.45; }
.stacked-form { margin-top: 20px; display: grid; gap: 15px; }
.stacked-form .button { width: 100%; }
.user-actions { min-width: 145px; text-align: right !important; }
.user-actions > form, .user-actions > details { display: block; margin: 0 0 6px auto; }
.user-actions > form:last-child, .user-actions > details:last-child { margin-bottom: 0; }
.user-actions > form button, .user-actions > details summary { width: 100%; text-align: center; }
.user-last-login { min-width: 92px; white-space: nowrap; }
.user-actions button, .user-actions summary, .list-admin-action summary, .list-admin-action button, .table-action-button { padding: 6px 8px; border: 1px solid var(--dp-border); border-radius: 4px; color: var(--dp-text-strong); background: var(--dp-surface); cursor: pointer; font: inherit; font-size: 10px; font-weight: 600; }
.user-actions details { position: relative; }
.user-actions details form { position: absolute; z-index: 4; top: 30px; right: 0; width: 245px; padding: 14px; text-align: left; border: 1px solid var(--dp-border); background: var(--dp-surface); box-shadow: 0 14px 30px rgba(0, 35, 49, .16); }
.user-actions details label { display: grid; gap: 6px; color: var(--dp-text-muted); font-size: 10px; }
.user-actions details input { min-height: 37px; padding: 7px 9px; border: 1px solid var(--dp-border); color: var(--dp-text); background: var(--dp-surface); }
.user-actions details form button { margin-top: 9px; }
.list-card { position: relative; }
.list-admin-action { margin-top: 12px; }
.list-admin-action form { margin-top: 9px; display: grid; gap: 7px; }
.list-admin-action label { color: var(--dp-text-muted); font-size: 10px; }
.list-admin-action button { justify-self: start; color: #b52f50; }
.gdpr-card { margin-top: 16px; }
.danger-button { color: #fff; background: #a12b48; border-color: #a12b48; }
.danger-button:hover { background: #7d1f37; border-color: #7d1f37; }
.send-plan-note { padding: 14px 18px; display: flex; gap: 8px; border-bottom: 1px solid var(--dp-border-soft); color: var(--dp-text-muted); background: var(--dp-surface-2); font-size: 12px; }
.send-plan-note strong { color: var(--dp-text-strong); }
.send-plan-table th, .send-plan-table td { padding-right: 12px; padding-left: 12px; }
.send-plan-table td:first-child { width: 24%; min-width: 145px; }
.send-plan-table td:nth-child(2) { width: 28%; min-width: 165px; }
.send-plan-table td:nth-child(3) { width: 19%; min-width: 125px; }
.send-plan-table td:nth-child(4) { width: 29%; min-width: 215px; }
.schedule-cell { display: grid; gap: 8px; justify-items: start; }
.send-schedule-form { display: grid; grid-template-columns: minmax(155px, 1fr) auto; gap: 6px; }
.send-schedule-form input { width: 100%; min-height: 38px; padding: 7px 8px; border: 1px solid var(--dp-border); border-radius: 5px; color: var(--dp-text); background: var(--dp-surface); font: inherit; }
.send-row-locked { background: color-mix(in srgb, var(--dp-surface-2) 56%, transparent); }
.send-row-locked td { color: var(--dp-text-muted); }
.table-action-button:hover { border-color: var(--pink); color: var(--pink); }
.secondary-table-action { display: block; margin-top: 6px; color: var(--dp-text-muted); }
.propagation-note { padding: 14px 18px; display: flex; gap: 8px; border-bottom: 1px solid var(--dp-border-soft); color: var(--dp-text-muted); background: var(--dp-surface-2); font-size: 12px; }
.propagation-note strong { color: var(--dp-text-strong); }
.propagation-panel .form-actions { padding: 18px; border-top: 1px solid var(--dp-border-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.inline-action-form { margin: 0; }
.action-muted { color: var(--dp-text-muted); }
.lifecycle-card { margin-top: 16px; }
.lifecycle-card > form { margin: 14px 0 0; }
.offboarding-control { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dp-border-soft); }
.offboarding-control summary { color: #a12b48; cursor: pointer; font-weight: 600; }
.offboarding-control p { margin: 10px 0; color: var(--dp-text-muted); font-size: 12px; line-height: 1.45; }
.offboarding-control label { display: grid; gap: 6px; color: var(--dp-text-strong); font-size: 12px; font-weight: 600; }
.offboarding-control input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--dp-border); color: var(--dp-text); background: var(--dp-surface); }
.offboarding-control .danger-button { width: 100%; min-height: 40px; margin-top: 10px; border: 1px solid; border-radius: 5px; cursor: pointer; font-weight: 600; }

.login-body { background: var(--dp-page-bg); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(100%, 420px); padding: 39px 41px 42px; border: 1px solid var(--dp-border-soft); background: var(--dp-surface); box-shadow: 0 20px 50px rgba(0, 52, 74, .09); }
.login-logo { width: 180px; margin-bottom: 34px; }
.login-card h1 { margin: 6px 0 8px; color: var(--dp-text-strong); font-size: 35px; }
.login-intro { color: var(--dp-text-muted); }
.login-form { margin-top: 26px; }
.login-form label { display: block; margin: 15px 0 6px; color: var(--dp-text-strong); font-size: 13px; font-weight: 600; }
.login-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--dp-border); border-radius: 5px; color: var(--dp-text); background: var(--dp-surface); }
.login-form .button { width: 100%; margin-top: 24px; }
.message-card { max-width: 620px; margin: 80px auto; padding: 36px; border: 1px solid var(--dp-border-soft); background: var(--dp-surface); }
.message-card h1 { margin: 6px 0 10px; color: var(--dp-text-strong); }
.message-card p { color: var(--dp-text-muted); }
.sharing-workspace { max-width: 900px; }
.sharing-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.sharing-users { margin: 22px 0 0; padding: 20px; border: 1px solid var(--dp-border); }
.sharing-users legend { padding: 0 8px; color: var(--dp-text-strong); font-weight: 600; }
.custom-html-workspace { display: grid; grid-template-columns: minmax(390px, .72fr) minmax(676px, 1.28fr); gap: 20px; align-items: start; }
.custom-html-workspace .form-section { min-width: 0; margin: 0; padding-right: 20px; padding-left: 20px; }
.custom-html-editor textarea { width: 100%; min-height: 430px; padding: 14px; resize: vertical; border: 1px solid var(--dp-border); border-radius: 5px; color: var(--dp-text); background: var(--dp-surface-2); font: 12px/1.55 Consolas, Monaco, monospace; tab-size: 2; }
.custom-html-preview-panel { position: sticky; top: 20px; }
.custom-html-preview-toolbar { min-height: 42px; padding: 6px 8px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--dp-border); border-bottom: 0; background: var(--dp-surface-2); }
.custom-html-preview-toolbar button { min-height: 29px; padding: 5px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--dp-text-muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; }
.custom-html-preview-toolbar button:hover { color: var(--dp-text-strong); background: var(--dp-surface); }
.custom-html-preview-toolbar button.is-active { color: var(--dp-text-strong); background: var(--dp-surface); border-color: var(--dp-border); }
.custom-html-preview-toolbar span { margin-left: auto; color: var(--dp-text-muted); font-size: 11px; }
.custom-html-preview-frame { min-height: 760px; padding: 18px; overflow: auto; background: #dfe6e9; border: 1px solid var(--dp-border); }
.custom-html-iframe-shell { width: 615px; min-height: 720px; margin: 0 auto; overflow: hidden; background: #fff; box-shadow: 0 5px 20px rgba(0, 35, 49, .13); }
.custom-html-preview-frame iframe { display: block; width: 615px; max-width: none; min-height: 720px; border: 0; background: #fff; transform-origin: top left; }
.custom-html-preview-frame.is-mobile .custom-html-iframe-shell { width: 405px; }
.custom-html-preview-frame.is-mobile iframe { width: 405px; }
.custom-html-preview-frame.is-fit .custom-html-iframe-shell { width: 390px; height: 760px; min-height: 760px; }
.custom-html-preview-frame.is-fit iframe { width: 615px; min-height: 1199px; transform: scale(.63415); }
.custom-html-preview-note { margin: 8px 0 0; color: var(--dp-text-muted); font-size: 11px; line-height: 1.45; }
.compatibility-notes { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--dp-border); background: var(--dp-surface-2); color: var(--dp-text); }
.compatibility-notes ul { margin: 8px 0 0 18px; padding: 0; }

@media (max-width: 1400px) {
    .user-workspace { grid-template-columns: 1fr; }
    .user-create-card { position: static; max-width: 720px; }
    .custom-html-workspace { grid-template-columns: 1fr; }
    .custom-html-preview-panel { position: static; }
}

@media (max-width: 900px) {
    .admin-shell { display: block; }
    .admin-sidebar { position: static; width: 100%; height: auto; }
    .admin-sidebar nav { display: flex; flex-wrap: nowrap; gap: 2px; margin: 7px 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
    .admin-sidebar .nav-label { display: none; }
    .admin-nav-item { min-width: 142px; margin: 0; }
    .admin-account { margin: 0; padding: 9px 14px; display: flex; align-items: center; gap: 9px; }
    .admin-account > span { max-width: 180px; }
    .admin-account > small { min-width: 0; max-width: 260px; margin: 0; }
    .admin-account em { flex: 0 0 auto; margin: 0; }
    .admin-account form { margin: 0 0 0 auto; }
    .admin-sidebar .dp-theme-toggle { position: absolute; top: 6px; right: 4px; width: auto; }
    .setup-form { grid-template-columns: 1fr; }
    .setup-index { position: static; display: none; }
    .practice-table { min-width: 780px; }
    .practice-workspace { grid-template-columns: 1fr; }
    .audience-workspace { grid-template-columns: 1fr; }
    .user-workspace { grid-template-columns: 1fr; }
    .custom-html-workspace { grid-template-columns: minmax(0, 1fr); }
    .custom-html-preview-panel { position: static; }
    .custom-html-workspace { grid-template-columns: minmax(0, 1fr); }
    .custom-html-preview-panel { position: static; }
    .readiness-card { position: static; }
    .import-card { position: static; }
    .user-create-card { position: static; }
}

@media (max-width: 650px) {
    .admin-main { padding: 28px 16px 50px; }
    .admin-page-header { align-items: stretch; flex-direction: column; }
    .admin-page-header .button { align-self: flex-start; }
    .practice-overview { grid-template-columns: 1fr; }
    .practice-overview > div { border-left: 0; border-top: 1px solid var(--dp-border-soft); }
    .practice-overview > div:first-child { border-top: 0; }
    .form-section { padding: 22px 18px 25px; }
    .two-columns, .language-layout, .language-options, .colour-fields, .campaign-option-columns, .footer-options-grid { grid-template-columns: 1fr; }
    .sharing-choice-grid { grid-template-columns: 1fr; }
    .logo-workspace, .settings-list { grid-template-columns: 1fr; }
    .list-grid { grid-template-columns: 1fr; }
    .logo-upload-form { grid-template-columns: 1fr; align-items: stretch; }
    .logo-upload-form .button, .file-button { justify-content: center; }
    .settings-list > div, .settings-list > div:nth-child(odd), .settings-list > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--dp-border-soft); }
    .settings-list > div:last-child { border-bottom: 0; }
    .admin-account > small { display: none; }
    .admin-account > span { max-width: 145px; }
    .admin-account em + em { display: none; }
    .send-schedule-form { grid-template-columns: 1fr; }
    .user-workspace .practice-table-wrap { overflow: visible; }
    .practice-table.user-table { min-width: 0 !important; }
    .user-table thead { display: none; }
    .user-table tbody, .user-table tr, .user-table td { display: block; }
    .user-table tr { padding: 17px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; border-bottom: 1px solid var(--dp-border-soft); }
    .user-table tr:last-child { border-bottom: 0; }
    .user-table td { min-width: 0 !important; padding: 0; border: 0; }
    .user-table td:nth-child(2), .user-table td:nth-child(4) { text-align: right; }
    .user-table .user-last-login { white-space: normal; color: var(--dp-text-muted); font-size: 11px; }
    .user-table .user-actions { grid-column: 1 / -1; min-width: 0; display: flex; align-items: flex-start; gap: 7px; text-align: left !important; }
    .user-table .user-actions > form, .user-table .user-actions > details { width: auto; margin: 0; }
    .user-table .user-actions > form button, .user-table .user-actions > details summary { width: auto; }
    .user-table .user-actions details form { right: auto; left: 0; width: min(245px, calc(100vw - 64px)); }
}
