:root {
    --teal: #078f9a;
    --green: #58b883;
    --accent: #2bbf9f;
    --navy: #17294a;
    --ink: #182235;
    --muted: #64748b;
    --line: #dbe5ea;
    --soft: #f5f7fa;
    --panel: #ffffff;
    --danger: #b42318;
    --warning: #b7791f;
    --success: #15803d;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 80px rgba(15, 23, 42, .10);
    --text-xs: 13px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--soft);
    font-size: var(--text-md);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

textarea {
    max-width: 100%;
    resize: vertical;
}

.public-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(0, 168, 181, .08), rgba(124, 201, 160, .12) 42%, rgba(255, 255, 255, .9)),
        var(--soft);
}

.marketing-shell {
    background:
        radial-gradient(circle at 82% 14%, rgba(126, 211, 167, .22), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfa 48%, #eef9f5 100%);
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .12);
    margin: 38px auto;
    max-width: 1220px;
    overflow: hidden;
}

.marketing-header {
    align-items: center;
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid #e7eef2;
    display: grid;
    gap: 24px;
    grid-template-columns: 180px 1fr auto;
    padding: 24px 84px;
}

.marketing-nav,
.marketing-account {
    align-items: center;
    display: flex;
    gap: 34px;
}

.marketing-nav a,
.marketing-account > a {
    color: #30384a;
    font-size: var(--text-md);
    font-weight: 750;
}

.marketing-account {
    border-left: 1px solid #e2e8f0;
    gap: 14px;
    padding-left: 28px;
}

.marketing-language-selector {
    margin: 0;
}

.marketing-language-selector select {
    appearance: none;
    background: #ffffff;
    border: 1px solid #d7e2e7;
    border-radius: 8px;
    color: #102231;
    cursor: pointer;
    font-weight: 850;
    min-height: 42px;
    padding: 9px 32px 9px 12px;
}

.marketing-language-menu {
    position: relative;
}

.marketing-language-menu summary {
    align-items: center;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    font-size: var(--text-md);
    font-weight: 850;
    gap: 8px;
    list-style: none;
    min-height: 42px;
    padding: 9px 12px;
}

.marketing-language-menu summary::-webkit-details-marker {
    display: none;
}

.marketing-language-menu summary:hover {
    background: #f8fafc;
    color: #102231;
}

.marketing-language-menu svg {
    height: 16px;
    stroke-width: 2.4;
    width: 16px;
}

.marketing-language-menu[open] summary svg {
    transform: rotate(180deg);
}

.marketing-language-menu > div {
    background: #ffffff;
    border: 1px solid #d7e2e7;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
    display: grid;
    min-width: 150px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
}

.marketing-language-menu a,
.marketing-language-menu button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #334155;
    cursor: pointer;
    display: block;
    font-size: var(--text-sm);
    font-weight: 800;
    padding: 9px 10px;
    position: relative;
    text-align: left;
    width: 100%;
}

.marketing-language-menu form {
    margin: 0;
}

.marketing-language-menu a:hover:not(.active),
.marketing-language-menu button:hover:not(.active) {
    background: #f7fafc;
    color: #102231;
}

.marketing-language-menu a.active,
.marketing-language-menu button.active {
    color: #102231;
    padding-right: 28px;
}

.marketing-language-menu a.active::after,
.marketing-language-menu button.active::after {
    color: #0f8f83;
    content: "✓";
    font-size: 13px;
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.marketing-language-menu a.active::after,
.marketing-language-menu button.active::after {
    content: "\2713";
}

.public-panel-topbar {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.marketing-profile {
    align-items: center;
    background: #ffffff;
    border: 1px solid #edf2f6;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    display: inline-flex;
    gap: 10px;
    min-height: 42px;
    padding: 6px 10px;
}

.marketing-sign-in {
    background: #102a43;
    border: 1px solid #102a43;
    border-radius: 8px;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
    min-height: 42px;
    padding: 10px 18px;
}

.marketing-profile svg {
    color: #64748b;
    height: 16px;
    width: 16px;
}

.marketing-hero {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 36%, rgba(255, 255, 255, .28) 62%, rgba(255, 255, 255, .08) 100%),
        var(--hero-image) center right / cover no-repeat;
    display: flex;
    min-height: 620px;
    padding: 88px 84px;
    position: relative;
}

.marketing-copy {
    align-self: center;
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.marketing-copy h1 {
    color: #202435;
    font-size: 50px;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0 0 22px;
    max-width: 520px;
}

.marketing-copy p {
    color: #5d6678;
    font-size: 19px;
    line-height: 1.55;
    margin: 0 0 28px;
    max-width: 520px;
}

.marketing-cta {
    background: linear-gradient(135deg, #0f8f83, #83c95f);
    border-radius: 9px;
    box-shadow: 0 14px 28px rgba(15, 143, 131, .22);
    color: #ffffff;
    display: inline-flex;
    font-size: var(--text-lg);
    font-weight: 850;
    min-height: 58px;
    padding: 16px 28px;
}

.marketing-feature-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 28px 84px 62px;
}

.marketing-feature-grid article {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
    padding: 34px 30px;
    text-align: center;
}

.marketing-feature-grid article > span {
    align-items: center;
    background: #eefaf5;
    border-radius: 14px;
    color: #20a99b;
    display: inline-flex;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.marketing-feature-grid svg {
    height: 34px;
    stroke-width: 2.25;
    width: 34px;
}

.marketing-feature-grid h2 {
    color: #202435;
    font-size: 24px;
    margin: 20px 0 10px;
}

.marketing-feature-grid p {
    color: #5d6678;
    line-height: 1.55;
    margin: 0;
}

.marketing-overview {
    padding: 36px 84px 78px;
}

.marketing-overview > div:first-child h2 {
    color: #202435;
    font-size: 30px;
    margin: 0 0 8px;
}

.marketing-overview > div:first-child p {
    color: #5d6678;
    font-size: var(--text-lg);
    margin: 0 0 34px;
}

.product-window {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: 15px;
    box-shadow: 0 22px 62px rgba(15, 23, 42, .1);
    overflow: hidden;
}

.product-topbar {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    padding: 20px 34px;
}

.product-topbar img {
    width: 120px;
}

.product-topbar nav {
    display: flex;
    gap: 12px;
}

.product-topbar a {
    background: #ffffff;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    color: #596477;
    font-size: var(--text-sm);
    font-weight: 750;
    padding: 8px 12px;
}

.product-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 360px;
}

.product-body aside {
    background: rgba(235, 248, 244, .72);
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 34px;
}

.product-body aside span {
    align-items: center;
    color: #536174;
    display: flex;
    font-weight: 800;
    gap: 10px;
}

.product-body section {
    padding: 34px;
}

.product-body h3 {
    color: #202435;
    font-size: 28px;
    margin: 0 0 22px;
}

.product-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
}

.product-metrics article {
    border-radius: 10px;
    padding: 18px;
}

.product-metrics article:nth-child(1) {
    background: #fbf3d8;
}

.product-metrics article:nth-child(2) {
    background: #dff6f3;
}

.product-metrics article:nth-child(3) {
    background: #e4f7df;
}

.product-metrics strong {
    color: #3e8f76;
    display: block;
    font-size: 32px;
}

.product-metrics span,
.product-lower span,
.product-lower p {
    color: #667084;
    font-weight: 700;
}

.product-lower {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr .75fr;
    margin-top: 24px;
}

.product-lower > div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
}

.product-lower h4 {
    color: #202435;
    font-size: 20px;
    margin: 0 0 16px;
}

.product-lower > div:first-child span {
    background: #edf2f6;
    border-radius: 999px;
    display: block;
    height: 12px;
    margin: 12px 0;
}

.product-lower strong {
    color: #0f8f83;
    display: block;
    font-size: 44px;
    line-height: 1;
}

.marketing-footer {
    background: rgba(255, 255, 255, .74);
    border-top: 1px solid #e2e8f0;
    padding: 24px 84px 28px;
    text-align: center;
}

.public-security-strip {
    align-items: center;
    background: rgba(255, 255, 255, .78);
    border-top: 1px solid #e2e8f0;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    padding: 58px 84px;
}

.public-security-copy,
.public-certificate-copy {
    align-items: center;
    display: grid;
    gap: 24px;
}

.public-security-copy {
    grid-template-columns: 88px minmax(0, 1fr);
}

.public-certificate-copy {
    grid-template-columns: 170px minmax(0, 1fr);
}

.public-security-icon {
    align-items: center;
    background: #eef7fb;
    border-radius: 18px;
    color: #7eb5d2;
    display: inline-flex;
    height: 88px;
    justify-content: center;
    width: 88px;
}

.public-security-icon svg {
    height: 54px;
    stroke-width: 1.9;
    width: 54px;
}

.public-security-strip h2 {
    color: #102231;
    font-size: 27px;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0 0 10px;
}

.public-security-strip p {
    color: #64748b;
    font-size: var(--text-lg);
    line-height: 1.55;
    margin: 0;
}

.public-security-divider {
    background: #dbe5ea;
    height: 150px;
}

.public-certificate-copy img {
    display: block;
    max-width: 170px;
    width: 100%;
}

.marketing-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.marketing-footer a,
.marketing-footer p {
    color: #4b5567;
    font-weight: 700;
}

.marketing-footer p {
    margin: 18px 0 0;
}

.cookie-banner {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    bottom: 22px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    left: 50%;
    max-width: 840px;
    padding: 16px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 20;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner strong {
    color: #0f172a;
    display: block;
}

.cookie-banner p {
    color: #64748b;
    margin: 3px 0 0;
}

.cookie-banner > div:last-child {
    align-items: center;
    display: flex;
    gap: 10px;
}

.cookie-banner a,
.cookie-banner button {
    border-radius: 8px;
    font-weight: 850;
    min-height: 38px;
    padding: 8px 12px;
}

.cookie-banner a,
.cookie-banner button[data-cookie-decline] {
    background: #ffffff;
    border: 1px solid #dbe4ec;
    color: #334155;
}

.cookie-banner button[data-cookie-accept] {
    background: #102a43;
    border: 1px solid #102a43;
    color: #ffffff;
}

.legal-page {
    padding: 44px 84px 70px;
}

.legal-card {
    margin-top: 22px;
}

.legal-card h3 {
    color: #0f172a;
    font-size: var(--text-xl);
    margin: 24px 0 8px;
}

.legal-card h3:first-child {
    margin-top: 0;
}

.legal-card p {
    color: #526071;
    line-height: 1.7;
    margin: 0;
}

.site-header,
.site-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1160px;
    padding: 24px;
}

.site-header nav,
.site-footer nav {
    align-items: center;
    display: flex;
    gap: 24px;
}

.brand-lockup {
    align-items: center;
    color: var(--navy);
    display: inline-flex;
    line-height: 1;
}

.brand-logo {
    display: block;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    width: 142px;
}

.admin-sidebar .brand-logo {
    width: 150px;
}

.login-panel .brand-logo,
.contact-survey-shell .brand-logo {
    width: 136px;
}

.footer-brand-logo {
    width: 112px;
}

.hero-section {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    margin: 24px auto 0;
    max-width: 1160px;
    min-height: 560px;
    padding: 48px 24px;
}

.hero-copy h1 {
    color: #202a3d;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.04;
    margin: 10px 0 22px;
    max-width: 680px;
}

.hero-copy p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
    margin: 0 0 30px;
    max-width: 620px;
}

.eyebrow {
    color: var(--teal);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.primary-button {
    align-items: center;
    background: #102a43;
    border: 0;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 12px 18px;
    text-align: center;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.primary-button:hover {
    background: #0b1f33;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.danger-button {
    background: #9f1239;
}

.danger-button:hover {
    background: #881337;
}

.secondary-button {
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #253247;
    cursor: pointer;
    display: inline-flex;
    font-weight: 750;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 12px 18px;
    text-align: center;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.secondary-button:hover {
    border-color: #b8c6cf;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.full-width-button {
    width: 100%;
}

.hero-product {
    background:
        linear-gradient(160deg, rgba(255,255,255,.94), rgba(240, 253, 250, .9)),
        var(--panel);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(30, 58, 95, .14);
    min-height: 390px;
    padding: 28px;
    position: relative;
}

.chart-card,
.report-card,
.metric-card,
.panel,
.prompt-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.chart-card {
    padding: 24px;
    width: 220px;
}

.chart-card strong {
    color: var(--teal);
    display: block;
    font-size: 54px;
    margin-top: 18px;
}

.progress-ring {
    background: conic-gradient(var(--green) 0 67%, #e8f4ef 67% 100%);
    border-radius: 50%;
    height: 116px;
    margin-top: 18px;
    width: 116px;
}

.report-card {
    bottom: 38px;
    left: 86px;
    padding: 18px;
    position: absolute;
    right: 28px;
}

.report-card div {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: 26px 1fr 22px;
    padding: 12px 0;
}

.report-card div:last-child {
    border-bottom: 0;
}

.report-card span,
.report-card em {
    background: #cfeee3;
    border-radius: 5px;
    height: 20px;
}

.feature-grid,
.pillar-section {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    max-width: 1160px;
    padding: 32px 24px;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.pillar-section article {
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(229, 238, 241, .9);
    border-radius: 8px;
    padding: 28px;
}

.pillar-section {
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 72px;
}

.feature-icon {
    color: var(--teal);
    font-weight: 900;
}

.feature-grid h2,
.pillar-section h2,
.panel h2,
.prompt-card h3 {
    color: var(--navy);
    margin: 12px 0 8px;
}

.feature-grid p,
.pillar-section p,
.muted {
    color: var(--muted);
    line-height: 1.6;
}

.login-page {
    align-items: center;
    background:
        radial-gradient(circle at 78% 18%, rgba(126, 211, 167, .26), transparent 30%),
        linear-gradient(135deg, #f8fbfa 0%, #eef8f5 48%, #ffffff 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-shell {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .12);
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(360px, .75fr);
    max-width: 1080px;
    min-height: 660px;
    overflow: hidden;
    width: 100%;
}

.login-brand-panel {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(232, 248, 244, .72)),
        radial-gradient(circle at 75% 72%, rgba(15, 143, 131, .18), transparent 34%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px;
}

.login-brand-panel h1 {
    color: #202435;
    font-size: 44px;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 12px 0 16px;
    max-width: 520px;
}

.login-brand-panel p:not(.eyebrow) {
    color: #5d6678;
    font-size: var(--text-lg);
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.login-preview {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-preview article {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    display: grid;
    gap: 10px;
    padding: 18px;
}

.login-preview span {
    align-items: center;
    background: #e8f7f4;
    border-radius: 10px;
    color: #0f8f83;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.login-preview svg {
    height: 22px;
    stroke-width: 2.35;
    width: 22px;
}

.login-preview strong {
    color: #202435;
    font-size: var(--text-sm);
}

.login-form-column {
    align-self: stretch;
    display: grid;
    gap: 12px;
    grid-template-rows: auto 1fr;
    padding: 46px 34px;
    width: 100%;
}

.login-language-row {
    display: flex;
    justify-content: flex-end;
    justify-self: center;
    max-width: 430px;
    width: 100%;
}

.login-language-menu summary {
    padding-right: 0;
}

.contact-survey-page {
    background:
        radial-gradient(circle at 78% 14%, rgba(126, 211, 167, .24), transparent 30%),
        linear-gradient(135deg, #f8fbfa 0%, #eef8f5 48%, #ffffff 100%);
    margin: 0 auto;
    min-height: 100vh;
    padding: 32px 24px;
}

.contact-survey-shell {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .12);
    margin: 0 auto;
    max-width: 980px;
    padding: 24px;
}

.contact-survey-shell h1 {
    color: var(--navy);
    font-size: 34px;
    margin: 18px 0 8px;
}

.privacy-notice {
    background: #f8fbfa;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin: 22px 0;
    padding: 16px;
}

.modern-contact-survey .resource-hero {
    margin-bottom: 20px;
}

.privacy-notice h2 {
    color: var(--navy);
    font-size: 18px;
    margin: 0;
}

.privacy-notice p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.login-panel {
    align-self: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 54px rgba(15, 23, 42, .08);
    display: grid;
    gap: 26px;
    justify-self: center;
    margin: 34px;
    max-width: 430px;
    padding: 34px;
    width: calc(100% - 68px);
}

.login-form-column .login-panel {
    align-self: end;
    justify-self: center;
    margin: 0;
    max-width: 430px;
    min-height: 505px;
    width: 100%;
}

.contact-panel {
    align-content: start;
}

.contact-panel .muted {
    margin-top: 12px;
}

.contact-details {
    display: grid;
    gap: 12px;
}

.contact-organisation,
.contact-details address,
.contact-link {
    align-items: flex-start;
    background: #f8fbfa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
}

.contact-details address {
    font-style: normal;
}

.contact-organisation > span,
.contact-details address > span,
.contact-link > span {
    align-items: center;
    background: #e8f7f4;
    border-radius: 8px;
    color: #0f8f83;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.contact-organisation svg,
.contact-details address svg,
.contact-link svg {
    height: 21px;
    stroke-width: 2.3;
    width: 21px;
}

.contact-details strong {
    color: #102231;
    display: block;
    font-weight: 850;
    line-height: 1.3;
}

.contact-details p {
    color: #596477;
    font-size: var(--text-sm);
    line-height: 1.55;
    margin: 3px 0 0;
}

.contact-link {
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.contact-link:hover {
    border-color: #9ddbd2;
    box-shadow: 0 10px 24px rgba(15, 143, 131, .10);
    transform: translateY(-1px);
}

.contact-link p {
    color: #0f4f63;
    font-weight: 800;
}

.wide-login-panel {
    max-width: 560px;
}

.login-panel h1 {
    color: #202435;
    font-size: 36px;
    line-height: 1.1;
    margin: 0 0 8px;
}

.form-stack,
.form-grid {
    display: grid;
    gap: 18px;
}

.form-stack label,
.form-grid label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-stack input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 48px;
    padding: 13px 14px;
    width: 100%;
}

.form-stack input:focus {
    border-color: #0f8f83;
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .12);
    outline: 0;
}

.form-grid small {
    color: #be123c;
    font-size: var(--text-sm);
    font-weight: 700;
}

.form-grid .helper-text {
    color: var(--muted);
    font-weight: 600;
}

.checkbox-line {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
}

.checkbox-line input[type="checkbox"] {
    accent-color: #0f8f83;
    flex: 0 0 auto;
    height: 16px;
    min-height: 16px;
    padding: 0;
    width: 16px;
}

.checkbox-line span {
    color: #334155;
    font-size: var(--text-sm);
    font-weight: 750;
    line-height: 1.3;
}

.inline-check {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
}

.inline-check input {
    accent-color: #0f8f83;
    flex: 0 0 auto;
    height: 18px;
    margin-top: 4px;
    min-height: 18px;
    padding: 0;
    width: 18px;
}

.inline-check-copy {
    display: grid;
    gap: 8px;
    font-weight: 600;
    line-height: 1.45;
    min-width: 0;
}

.form-error {
    background: #fff1f2;
    border-radius: 8px;
    color: #be123c;
    margin: 0;
    padding: 12px;
}

.secret-box,
.totp-uri {
    background: #f8fbfa;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.qr-code-box {
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f4fbf8);
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
    display: flex;
    justify-content: center;
    padding: 18px;
}

.qr-code-box svg {
    display: block;
    height: 220px;
    width: 220px;
}

.secret-box span,
.totp-uri summary {
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 800;
}

.secret-box code,
.totp-uri code {
    overflow-wrap: anywhere;
}

.recovery-code-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recovery-code-grid code {
    background: #f8fbfa;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    color: #0f172a;
    font-weight: 800;
    padding: 10px 12px;
    text-align: center;
}

.form-wide,
.form-actions {
    grid-column: 1 / -1;
}

.checkbox-field {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 10px;
}

.checkbox-field input {
    width: auto;
}

.inline-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1.2fr 120px auto;
    margin-bottom: 24px;
}

.audit-filter-form {
    align-items: end;
    grid-template-columns: 1fr 1fr 1fr auto;
}

.audit-filter-form select {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    width: 100%;
}

.audit-filter-actions {
    grid-column: auto;
}

.filter-actions {
    margin: 18px 0 12px;
}

.filter-form {
    grid-template-columns: minmax(220px, 1fr) auto auto;
}

.skip-form {
    align-items: center;
    display: flex;
    gap: 8px;
}

.skip-form input {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 160px;
    padding: 10px 11px;
}

.skip-form button {
    padding: 10px 12px;
}

.skip-modal-panel form {
    display: grid;
    gap: 16px;
}

.skip-reason-field {
    display: grid;
    gap: 8px;
}

.skip-reason-field span {
    color: #475569;
    font-size: var(--text-xs);
    font-weight: 850;
    text-transform: uppercase;
}

.skip-reason-field textarea {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    padding: 11px 12px;
    resize: vertical;
    width: 100%;
}

.skip-reason-field textarea:focus {
    border-color: #0f8f83;
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .12);
    outline: 0;
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

.admin-body {
    background: #f7fafc;
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    height: 100vh;
    overflow-y: auto;
    padding: 24px 16px;
    position: sticky;
    top: 0;
}

.admin-nav {
    display: grid;
    gap: 6px;
    margin-top: 30px;
}

.admin-nav a {
    border-radius: 8px;
    color: #334155;
    font-size: var(--text-md);
    line-height: 1.25;
    transition: background .16s ease, color .16s ease;
}

.admin-nav a {
    align-items: center;
    display: grid;
    font-weight: 760;
    gap: 12px;
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 13px 14px;
    position: relative;
}

.admin-nav a svg {
    color: #64748b;
    height: 21px;
    stroke-width: 2;
    width: 21px;
}

.admin-nav a.active {
    background: #edf7f4;
    color: #006b5f;
    font-weight: 850;
}

.admin-nav a.active::before {
    background: #0f766e;
    border-radius: 0 999px 999px 0;
    content: "";
    height: 28px;
    left: -16px;
    position: absolute;
    width: 4px;
}

.admin-nav a.active svg {
    color: #0f766e;
}

.admin-nav a:hover {
    background: #eef3f6;
    color: var(--navy);
}

.admin-nav-group {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.admin-nav-group summary {
    align-items: center;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    font-size: var(--text-sm);
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: .02em;
    list-style: none;
    padding: 0 14px 6px;
    text-transform: uppercase;
}

.admin-nav-group summary::-webkit-details-marker {
    display: none;
}

.admin-nav-group summary::after {
    border-bottom: 1.8px solid currentColor;
    border-right: 1.8px solid currentColor;
    content: "";
    height: 7px;
    opacity: .75;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
    width: 7px;
}

.admin-nav-group[open] summary::after {
    transform: rotate(225deg) translateY(-2px);
}

.admin-nav-group summary:hover {
    color: #64748b;
}

.admin-nav-group:first-of-type {
    margin-top: 20px;
}

.admin-shell {
    min-width: 0;
}

.admin-header {
    align-items: center;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 18px 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header h1 {
    color: var(--navy);
    font-size: var(--text-2xl);
    margin: 0;
}

.admin-header-subheading {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 750;
    margin: 4px 0 0;
}

.admin-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-left: auto;
}

.admin-header-account {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-left: auto;
}

.admin-header-actions + .admin-header-account {
    margin-left: 0;
}

.admin-mode-fab-wrap {
    bottom: 28px;
    position: fixed;
    right: 28px;
    z-index: 45;
}

.admin-mode-fab {
    align-items: center;
    background: #991b1b;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(15,23,42,.22);
    color: white;
    cursor: pointer;
    display: inline-flex;
    gap: 12px;
    min-height: 58px;
    padding: 10px 18px 10px 12px;
    text-align: left;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.admin-mode-fab:hover {
    background: #7f1d1d;
    box-shadow: 0 22px 48px rgba(15,23,42,.26);
    transform: translateY(-1px);
}

.admin-mode-fab.is-enabled {
    background: #15803d;
}

.admin-mode-fab.is-enabled:hover {
    background: #166534;
}

.admin-mode-fab-indicator {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    display: inline-flex;
    height: 38px;
    position: relative;
    width: 38px;
}

.admin-mode-fab-indicator::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 12px;
    left: 50%;
    opacity: .92;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
}

.admin-mode-fab strong,
.admin-mode-fab small {
    display: block;
}

.admin-mode-fab strong {
    font-size: var(--text-sm);
    font-weight: 850;
    line-height: 1.1;
}

.admin-mode-fab small {
    color: rgba(255,255,255,.78);
    font-size: 11px;
    font-weight: 750;
    margin-top: 3px;
}

.admin-language-menu summary {
    min-height: 42px;
}

.admin-language-menu > div {
    z-index: 35;
}

.admin-user {
    align-items: center;
    display: flex;
    gap: 16px;
}

.admin-user button {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    padding: 9px 12px;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    list-style: none;
    min-width: 220px;
    padding: 6px 8px;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.account-menu[open] summary {
    border-color: #b7ddd6;
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .08);
}

.account-avatar {
    align-items: center;
    background: linear-gradient(135deg, #dbe4ea, #f8fafc);
    border: 1px solid #d9e2e8;
    border-radius: 50%;
    color: #0f766e;
    display: inline-flex;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    overflow: hidden;
    width: 44px;
}

.account-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.account-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.account-copy strong {
    color: #0f172a;
    font-size: var(--text-md);
    line-height: 1.2;
}

.account-copy span {
    color: #64748b;
    font-size: var(--text-sm);
    line-height: 1.2;
}

.account-chevron {
    color: #334155;
    height: 18px;
    transition: transform .16s ease;
    width: 18px;
}

.account-chevron path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.account-menu[open] .account-chevron {
    transform: rotate(180deg);
}

.account-dropdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
    display: grid;
    min-width: 220px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
}

.account-dropdown a,
.account-dropdown button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #334155;
    cursor: pointer;
    display: block;
    font: inherit;
    font-weight: 750;
    font-size: var(--text-md);
    padding: 11px 12px;
    text-align: left;
    width: 100%;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.account-dropdown form {
    margin: 0;
}

.account-language-form label {
    display: grid;
    gap: 6px;
    padding: 9px 12px;
}

.account-language-form span {
    color: #64748b;
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
}

.account-language-form select {
    border: 1px solid #d7e2e7;
    border-radius: 8px;
    color: #102231;
    font-weight: 800;
    min-height: 38px;
    padding: 6px 10px;
}

.avatar-field {
    align-self: start;
}

.avatar-upload-row {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 56px minmax(0, 1fr);
}

.avatar-preview {
    height: 56px;
    width: 56px;
}

.avatar-upload-copy {
    display: grid;
    gap: 7px;
}

.file-upload-control {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 48px;
    overflow: hidden;
    padding: 11px 13px;
    position: relative;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
    width: 100%;
}

.file-upload-control:hover,
.file-upload-control:focus-within {
    background: #eefaf7;
    border-color: #8ed8cc;
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .08);
}

.file-upload-control svg {
    color: #0f766e;
    flex: 0 0 auto;
    height: 20px;
    stroke-width: 2.35;
    width: 20px;
}

.file-upload-control strong {
    color: #0f172a;
    font-size: var(--text-sm);
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-control input[type="file"] {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.document-preview {
    align-items: center;
    background: #eefaf7;
    border: 1px solid #cfe8e4;
    border-radius: 10px;
    color: #0f766e;
    cursor: pointer;
    display: inline-flex;
    height: 56px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    width: 56px;
}

.document-preview:disabled {
    cursor: default;
    opacity: .72;
}

.document-preview img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.document-preview svg {
    height: 24px;
    stroke-width: 2.25;
    width: 24px;
}

.image-preview-modal[hidden] {
    display: none;
}

.image-preview-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 90;
}

.image-preview-backdrop {
    background: rgba(15, 23, 42, .56);
    border: 0;
    cursor: pointer;
    inset: 0;
    position: absolute;
}

.image-preview-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 56px);
    max-width: min(920px, calc(100vw - 56px));
    padding: 14px;
    position: relative;
}

.image-preview-panel img {
    display: block;
    max-height: calc(100vh - 140px);
    max-width: 100%;
    object-fit: contain;
}

.image-preview-close {
    justify-self: end;
    background: #ffffff;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    font-weight: 850;
    padding: 8px 12px;
}

.rich-text-editor {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    display: grid;
    overflow: hidden;
}

.rich-text-toolbar {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 6px;
    padding: 8px;
}

.rich-text-toolbar button {
    background: #ffffff;
    border: 1px solid #dbe4ec;
    border-radius: 7px;
    color: #334155;
    cursor: pointer;
    font-weight: 850;
    min-height: 32px;
    padding: 6px 10px;
}

.rich-text-toolbar button:hover {
    background: #eefaf7;
    border-color: #b7ddd6;
    color: #0f766e;
}

.rich-text-surface {
    color: #0f172a;
    display: block;
    line-height: 1.6;
    min-height: 150px;
    padding: 13px 14px;
}

.rich-text-surface:focus {
    box-shadow: inset 0 0 0 3px rgba(15, 143, 131, .12);
    outline: 0;
}

.admin-main {
    display: grid;
    gap: 24px;
    padding: 28px 32px 40px;
}

.dashboard-welcome {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-welcome h2 {
    color: #0f172a;
    font-size: var(--text-3xl);
    line-height: 1.2;
    margin: 0 0 6px;
}

.dashboard-welcome p {
    color: #64748b;
    margin: 0;
}

.date-range-menu {
    position: relative;
}

.date-range-menu summary {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe5ea;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    color: #0f172a;
    cursor: pointer;
    display: grid;
    font-size: var(--text-sm);
    font-weight: 850;
    gap: 10px;
    grid-template-columns: 20px minmax(0, 1fr) 16px;
    list-style: none;
    min-height: 48px;
    min-width: 276px;
    padding: 0 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.date-range-menu summary:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.date-range-menu summary::-webkit-details-marker {
    display: none;
}

.date-range-menu summary svg {
    color: #64748b;
    height: 18px;
    width: 18px;
}

.date-range-menu[open] .date-range-chevron {
    transform: rotate(180deg);
}

.date-range-chevron {
    transition: transform .16s ease;
}

.date-range-popover {
    background: #ffffff;
    border: 1px solid #dbe5ea;
    border-radius: 8px;
    box-shadow: 0 22px 56px rgba(15, 23, 42, .15);
    display: grid;
    gap: 0;
    grid-template-columns: 170px 620px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
}

.date-range-presets {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: grid;
    align-content: start;
    padding: 8px;
}

.date-range-presets button,
.date-range-custom button {
    cursor: pointer;
    font: inherit;
}

.date-range-presets button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #334155;
    font-size: var(--text-sm);
    font-weight: 800;
    padding: 10px 12px;
    text-align: left;
}

.date-range-presets button.active {
    background: #0f8fcf;
    color: #ffffff;
}

.date-range-presets button:hover:not(.active) {
    background: #eef6fb;
    color: #0f172a;
}

.date-range-custom {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.date-calendar-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.date-calendar {
    display: grid;
    gap: 10px;
}

.date-calendar-heading {
    align-items: center;
    color: #0f172a;
    display: grid;
    gap: 8px;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    min-height: 28px;
}

.date-calendar-heading strong {
    text-align: center;
}

.date-calendar-heading button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.date-calendar-heading button:hover {
    background: #f1f5f9;
}

.date-calendar-heading button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.date-calendar-heading svg {
    color: #0f172a;
    height: 17px;
    width: 17px;
}

.date-calendar-weekdays,
.date-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 32px);
}

.date-calendar-weekdays span {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

.date-calendar-days {
    gap: 2px 0;
}

.date-calendar-days button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    height: 31px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.date-calendar-days button:hover:not(.selected) {
    background: #f1f5f9;
}

.date-calendar-days button.muted {
    color: #94a3b8;
}

.date-calendar-days button:disabled {
    background: transparent;
    color: #cbd5e1;
    cursor: default;
    pointer-events: none;
}

.date-calendar-days button.in-range {
    background: #e8f4fb;
}

.date-calendar-days button.selected {
    background: #0f8fcf;
    border-radius: 7px;
    color: #ffffff;
    font-weight: 900;
}

.date-picker-footer {
    align-items: center;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    font-size: var(--text-sm);
    font-weight: 800;
    gap: 12px;
    justify-content: space-between;
    padding-top: 14px;
}

.date-picker-footer button {
    background: #102a43;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 850;
    min-height: 42px;
    padding: 0 14px;
}

.dashboard-stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(241, 248, 247, .96)),
        #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 24px;
}

.resource-hero.compact {
    align-items: flex-start;
}

.resource-hero h2 {
    color: #0f172a;
    font-size: 28px;
    line-height: 1.1;
    margin: 0;
}

.resource-hero span {
    color: #64748b;
    display: block;
    font-size: var(--text-md);
    font-weight: 650;
    margin-top: 8px;
}

.primary-button svg,
.secondary-button svg {
    height: 18px;
    stroke-width: 2.4;
    width: 18px;
}

.resource-stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-resource-stat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 22px;
}

.five-resource-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 22px;
}

.resource-stat-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
    display: grid;
    gap: 15px;
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 112px;
    padding: 20px;
}

.resource-stat-static {
    border-color: #d6ebe8;
    box-shadow: 0 14px 32px rgba(15, 143, 131, .08);
}

.resource-stat-link {
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.resource-stat-link:hover,
.resource-stat-link:focus-visible,
.resource-stat-link.is-active {
    border-color: #8ed8ce;
    box-shadow: 0 14px 32px rgba(15, 143, 131, .12);
    outline: 0;
    transform: translateY(-1px);
}

.resource-stat-icon {
    align-items: center;
    border-radius: 10px;
    color: #ffffff;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.resource-stat-icon svg {
    height: 25px;
    stroke-width: 2.25;
    width: 25px;
}

.resource-stat-icon.teal {
    background: linear-gradient(135deg, #0f766e, #34d399);
}

.resource-stat-icon.green {
    background: linear-gradient(135deg, #16a34a, #86efac);
}

.resource-stat-icon.blue {
    background: linear-gradient(135deg, #0f75bc, #38bdf8);
}

.resource-stat-icon.amber {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.resource-stat-icon.slate {
    background: linear-gradient(135deg, #334155, #94a3b8);
}

.resource-stat-card strong {
    color: #0f172a;
    display: block;
    font-size: 30px;
    line-height: 1.05;
}

.resource-stat-card span:not(.resource-stat-icon) {
    color: #334155;
    display: block;
    font-size: var(--text-sm);
    font-weight: 800;
    margin-top: 4px;
}

.resource-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
    padding: 22px;
}

.resource-card-header {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.resource-card-header h3 {
    color: #0f172a;
    font-size: var(--text-xl);
    line-height: 1.2;
    margin: 0;
}

.resource-card-header span {
    color: #64748b;
    display: block;
    font-size: var(--text-sm);
    font-weight: 800;
    margin-top: 4px;
}

.resource-card-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.resource-filter-form {
    align-items: end;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    width: 100%;
}

.resource-filter-form label {
    display: grid;
    flex: 1 1 0;
    gap: 7px;
    min-width: 0;
}

.resource-filter-form label:first-child {
    flex: 1.45 1 0;
}

.resource-filter-form label > span {
    color: #475569;
    font-size: var(--text-xs);
    font-weight: 850;
    text-transform: uppercase;
}

.resource-filter-form input,
.resource-filter-form select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    min-height: 42px;
    padding: 10px 11px;
    width: 100%;
}

.resource-filter-form input:focus,
.resource-filter-form select:focus {
    border-color: #0f8f83;
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .12);
    outline: 0;
}

.resource-filter-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.resource-card .resource-stat-grid + .resource-filter-form {
    margin-top: 18px;
}

.content-page-list {
    display: grid;
    gap: 16px;
}

.content-page-card {
    padding: 0;
    overflow: hidden;
}

.content-page-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    list-style: none;
    padding: 22px 24px;
}

.content-page-summary::-webkit-details-marker {
    display: none;
}

.content-page-card[open] .content-page-summary {
    border-bottom: 1px solid #e2e8f0;
}

.content-page-title {
    min-width: 0;
}

.content-page-title h3 {
    color: #0f172a;
    font-size: var(--text-xl);
    line-height: 1.2;
    margin: 2px 0 0;
}

.content-page-title > span {
    color: #64748b;
    display: block;
    font-size: var(--text-sm);
    font-weight: 800;
    margin-top: 6px;
}

.content-page-summary-meta {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.content-page-summary-meta > span:not(.status-pill) {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 850;
}

.content-page-summary-meta > svg {
    color: #64748b;
    height: 18px;
    transition: transform .16s ease;
    width: 18px;
}

.content-page-card[open] .content-page-summary-meta > svg {
    transform: rotate(180deg);
}

.content-page-body {
    display: grid;
    gap: 16px;
    padding: 18px 24px 24px;
}

.content-page-toolbar {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 12px 14px;
}

.content-page-toolbar span {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 800;
}

.content-action-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.content-action-bar-end {
    justify-content: flex-end;
}

.surveyor-contact-filter-form {
    grid-template-columns: minmax(240px, 1fr) minmax(150px, .35fr) auto;
}

.surveyor-dashboard-filter-form {
    grid-template-columns: minmax(360px, 2fr) minmax(190px, .75fr) minmax(190px, .75fr) auto;
    width: 100%;
}

.resource-table-wrap {
    overflow-x: auto;
}

.resource-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.resource-table th {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 850;
    padding: 12px 10px;
    white-space: nowrap;
}

.resource-table td {
    color: #334155;
    font-size: var(--text-md);
    padding: 15px 10px;
    vertical-align: middle;
}

.resource-table tr:last-child td {
    border-bottom: 0;
}

.resource-table td > strong {
    color: #0f172a;
    display: block;
    font-weight: 800;
}

.resource-table td small {
    color: #64748b;
    display: block;
    font-size: var(--text-sm);
    margin-top: 4px;
}

.sortable-heading {
    align-items: center;
    color: #64748b;
    display: inline-flex;
    gap: 6px;
}

.sortable-heading svg {
    height: 14px;
    stroke-width: 2.4;
    width: 14px;
}

.sortable-heading:hover,
.sortable-heading:focus-visible,
.sortable-heading.is-active {
    color: #0f766e;
    outline: 0;
}

.organisation-name-cell {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr);
    min-width: 240px;
}

.organisation-name-cell > span {
    align-items: center;
    background: #e8f7f4;
    border-radius: 50%;
    color: #0f766e;
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.organisation-name-cell .table-avatar {
    background: #e8f7f4;
    color: #0f766e;
    height: 42px;
    width: 42px;
}

.template-name-cell > span svg {
    height: 20px;
    stroke-width: 2.35;
    width: 20px;
}

.organisation-name-cell strong {
    color: #0f172a;
    display: block;
    font-weight: 850;
}

.resource-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.resource-actions a,
.resource-actions button {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
    width: 34px;
}

.resource-actions a:hover,
.resource-actions button:hover {
    background: #edf7f4;
    border-color: #b7ddd6;
    color: #0f766e;
}

.resource-actions button:disabled,
.resource-actions button:disabled:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .72;
}

.resource-actions svg {
    height: 17px;
    stroke-width: 2.25;
    width: 17px;
}

.surveyor-contact-actions {
    align-items: center;
    flex-wrap: nowrap;
    min-width: 260px;
}

.skip-reason-note {
    background: #fff7ed;
    border-radius: 7px;
    color: #9a3412 !important;
    display: inline-block !important;
    font-weight: 750;
    margin-top: 6px !important;
    padding: 4px 7px;
}

.resource-form {
    display: grid;
    gap: 24px;
}

.form-section {
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    gap: 24px;
    grid-template-columns: 220px minmax(0, 1fr);
    padding-bottom: 24px;
}

.form-section h3 {
    color: #0f172a;
    font-size: var(--text-lg);
    line-height: 1.2;
    margin: 0;
}

.form-section p {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 650;
    line-height: 1.5;
    margin: 6px 0 0;
}

.resource-form-grid {
    display: grid;
    align-items: start;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-form-grid.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-form-wide {
    grid-column: 1 / -1;
}

.resource-form label {
    display: grid;
    gap: 8px;
}

.resource-form label span {
    color: #334155;
    font-size: var(--text-sm);
    font-weight: 850;
}

.resource-form input,
.resource-form select,
.resource-form textarea {
    background: #ffffff;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    color: #0f172a;
    font: inherit;
    min-height: 46px;
    padding: 12px 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
    width: 100%;
}

.resource-form input:focus,
.resource-form select:focus,
.resource-form textarea:focus {
    border-color: #0f8f83;
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .12);
    outline: 0;
}

.resource-form input[readonly] {
    background: #eef2f6;
    border-color: #d6dee8;
    color: #475569;
    cursor: default;
}

.resource-form .readonly-field {
    background: #eef2f6;
    border-color: #d6dee8;
    color: #475569;
    cursor: default;
}

.resource-form input[readonly]:focus {
    border-color: #cbd5e1;
    box-shadow: none;
}

.resource-form .readonly-field:focus {
    border-color: #cbd5e1;
    box-shadow: none;
}

.resource-form small {
    color: #be123c;
    font-size: var(--text-sm);
    font-weight: 750;
}

.resource-form .helper-text {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.45;
}

.resource-form .inline-check {
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
}

.resource-form .inline-check input[type="checkbox"] {
    appearance: none;
    background: #ffffff;
    border: 1.8px solid #94a3b8;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    height: 20px;
    margin: 0;
    min-height: 20px;
    padding: 0;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
    width: 20px;
}

.resource-form .inline-check input[type="checkbox"]:checked {
    background-color: #0f8f83;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    border-color: #0f8f83;
}

.resource-form .inline-check input[type="checkbox"]:focus {
    border-color: #0f8f83;
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .12);
    outline: 0;
}

.resource-form .inline-check-copy {
    gap: 9px;
    line-height: 1.5;
}

.question-status-row {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, .34fr) minmax(190px, .34fr);
}

.resource-form .checkbox-field {
    align-items: center;
    align-self: end;
    background: #f8fafc;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    cursor: pointer;
    display: flex !important;
    gap: 10px;
    min-height: 46px;
    padding: 11px 12px;
}

.resource-form .checkbox-field input[type="checkbox"] {
    appearance: none;
    background: #ffffff;
    border: 1.8px solid #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    flex: 0 0 auto;
    height: 18px;
    min-height: 18px;
    padding: 0;
    width: 18px;
}

.resource-form .checkbox-field input[type="checkbox"]:checked {
    background-color: #0f8f83;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    border-color: #0f8f83;
}

.resource-form .checkbox-field input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .14);
    outline: 0;
}

.resource-form .checkbox-field span {
    color: #334155;
    font-size: var(--text-sm);
    font-weight: 850;
    line-height: 1.25;
}

.resource-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.confirm-modal[hidden] {
    display: none;
}

.confirm-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 80;
}

.confirm-modal-backdrop {
    background: rgba(15, 23, 42, .48);
    inset: 0;
    position: absolute;
}

.confirm-modal-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .24);
    display: grid;
    gap: 18px;
    max-width: 460px;
    padding: 24px;
    position: relative;
    width: min(100%, 460px);
}

.confirm-modal-kicker {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.confirm-modal-kicker .eyebrow {
    margin: 0;
}

.confirm-modal-icon {
    align-items: center;
    background: #fff1f2;
    border-radius: 8px;
    color: #be123c;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.confirm-modal-icon svg {
    height: 22px;
    stroke-width: 2.35;
    width: 22px;
}

.confirm-modal-panel h3 {
    color: #0f172a;
    font-size: var(--text-xl);
    margin: 0 0 8px;
}

.confirm-modal-panel p:not(.eyebrow) {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.resource-inline-form {
    margin-bottom: 22px;
}

.resource-structure-list {
    display: grid;
    gap: 16px;
}

.resource-structure-section {
    background: #fbfdff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
}

.resource-structure-section.is-archived {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: inset 4px 0 0 #94a3b8;
}

.resource-structure-section.is-archived .resource-card-header h3,
.resource-table tr.is-archived-row td {
    color: #64748b;
}

.resource-table tr.is-archived-row td {
    background: #f8fafc;
}

.resource-structure-section .resource-card-header {
    margin-bottom: 12px;
}

.resource-structure-section .resource-card-header h3 {
    font-size: var(--text-lg);
}

.resource-structure-section .muted {
    color: #64748b;
    font-size: var(--text-sm);
    line-height: 1.5;
    margin: 6px 0 0;
}

.dashboard-stat-card,
.dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.dashboard-stat-card {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 132px;
    padding: 22px;
}

.dashboard-stat-link {
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dashboard-stat-link:hover,
.dashboard-stat-link:focus-visible {
    border-color: #8ed8ce;
    box-shadow: 0 14px 32px rgba(15, 143, 131, .12);
    outline: 0;
    transform: translateY(-1px);
}

.dashboard-stat-icon {
    align-items: center;
    border-radius: 10px;
    color: #ffffff;
    display: inline-flex;
    font-size: var(--text-sm);
    font-weight: 900;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.dashboard-stat-icon svg {
    height: 28px;
    stroke-width: 2.2;
    width: 28px;
}

.dashboard-stat-icon.teal {
    background: linear-gradient(135deg, #0f766e, #34d399);
}

.dashboard-stat-icon.blue {
    background: linear-gradient(135deg, #0f75bc, #38bdf8);
}

.dashboard-stat-icon.purple {
    background: linear-gradient(135deg, #6d5bd0, #9b8cf0);
}

.dashboard-stat-icon.amber {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.dashboard-stat-icon.lime {
    background: linear-gradient(135deg, #65a30d, #a3e635);
}

.dashboard-stat-icon.rose {
    background: linear-gradient(135deg, #be123c, #fb7185);
}

.dashboard-stat-icon.slate {
    background: linear-gradient(135deg, #334155, #94a3b8);
}

.dashboard-stat-icon.fuchsia {
    background: linear-gradient(135deg, #a21caf, #e879f9);
}

.dashboard-stat-card strong {
    color: #0f172a;
    display: block;
    font-size: 34px;
    line-height: 1.05;
}

.dashboard-stat-card span:not(.dashboard-stat-icon) {
    color: #0f172a;
    display: block;
    font-weight: 750;
    margin-top: 4px;
}

.dashboard-stat-card small {
    color: #007a67;
    display: block;
    font-weight: 700;
    margin-top: 9px;
}

.dashboard-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1.05fr;
}

.dashboard-wide-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.dashboard-lower-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1.25fr .9fr;
}

.dashboard-card {
    min-width: 0;
    padding: 22px;
}

.dashboard-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-card-header h3 {
    color: #0f172a;
    font-size: var(--text-xl);
    line-height: 1.2;
    margin: 0;
}

.dashboard-card-header a {
    color: #006bba;
    font-size: var(--text-sm);
    font-weight: 800;
}

.progress-visual-grid {
    align-items: center;
    display: grid;
    gap: 26px;
    grid-template-columns: 210px minmax(0, 1fr);
}

.dashboard-donut {
    align-items: center;
    background: conic-gradient(#38a76f calc(var(--progress) * 1%), #dbe4ec 0);
    border-radius: 50%;
    display: flex;
    height: 184px;
    justify-content: center;
    position: relative;
    width: 184px;
}

.dashboard-donut::after {
    background: #ffffff;
    border-radius: 50%;
    content: "";
    height: 108px;
    position: absolute;
    width: 108px;
}

.dashboard-donut div {
    display: grid;
    gap: 3px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.dashboard-donut strong {
    color: #0f172a;
    font-size: 34px;
    line-height: 1;
}

.dashboard-donut span {
    color: #64748b;
    font-size: var(--text-xs);
}

.progress-legend {
    display: grid;
    gap: 0;
}

.progress-legend-row {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    display: grid;
    gap: 10px;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    padding: 13px 0;
}

.progress-legend-row:last-child {
    border-bottom: 0;
}

.progress-legend-row strong {
    color: #0f172a;
    font-weight: 750;
}

.legend-dot {
    border-radius: 50%;
    height: 11px;
    width: 11px;
}

.legend-dot.completed {
    background: #38a76f;
}

.legend-dot.in-progress {
    background: #0f8fd4;
}

.legend-dot.skipped {
    background: #f97316;
}

.legend-dot.draft {
    background: #fbbf24;
}

.legend-dot.not-started {
    background: #cbd5e1;
}

.lifecycle-list,
.attention-list {
    display: grid;
    gap: 13px;
}

.lifecycle-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 104px minmax(0, 1fr) 28px;
}

.lifecycle-row span {
    color: #334155;
    font-size: var(--text-sm);
    font-weight: 800;
}

.lifecycle-row strong {
    color: #0f172a;
    font-size: var(--text-sm);
    text-align: right;
}

.lifecycle-meter {
    background: #eef2f6;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.lifecycle-meter i {
    background: #0f8fcf;
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 4px;
}

.lifecycle-meter i.draft {
    background: #f59e0b;
}

.lifecycle-meter i.assigned {
    background: #8b5cf6;
}

.lifecycle-meter i.published {
    background: #0ea5e9;
}

.lifecycle-meter i.in-progress {
    background: #14b8a6;
}

.lifecycle-meter i.reports-ready {
    background: #64748b;
}

.lifecycle-meter i.finalized {
    background: #22c55e;
}

.fieldwork-trend-card {
    min-height: 330px;
}

.dashboard-card-header span {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 800;
}

.line-chart-shell {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: 220px 32px;
    position: relative;
}

.line-chart {
    grid-column: 2;
    grid-row: 1;
    height: 220px;
    overflow: visible;
    width: 100%;
}

.line-chart line {
    stroke: #e2e8f0;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.line-chart polygon {
    fill: rgba(15, 143, 131, .11);
}

.line-chart polyline {
    fill: none;
    stroke: #0f8f83;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.25;
    vector-effect: non-scaling-stroke;
}

.line-chart-points {
    grid-column: 2;
    grid-row: 1;
    height: 220px;
    position: relative;
    width: 100%;
}

.line-chart-points span {
    background: #0f8f83;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(15, 143, 131, .2);
    cursor: default;
    height: 10px;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 10px;
}

.line-chart-points span::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #102a43;
    bottom: calc(100% + 4px);
    content: "";
    left: 50%;
    opacity: 0;
    position: absolute;
    transform: translateX(-50%) translateY(4px);
    transition: opacity .14s ease, transform .14s ease;
}

.line-chart-points span::before {
    background: #102a43;
    border-radius: 7px;
    bottom: calc(100% + 10px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
    color: #ffffff;
    content: attr(data-chart-label) " · " attr(data-chart-value);
    font-size: var(--text-xs);
    font-weight: 850;
    left: 50%;
    line-height: 1.2;
    min-width: max-content;
    opacity: 0;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%) translateY(4px);
    transition: opacity .14s ease, transform .14s ease;
    white-space: nowrap;
    z-index: 3;
}

.line-chart-points span:hover,
.line-chart-points span:focus-visible {
    outline: 0;
}

.line-chart-points span:hover::before,
.line-chart-points span:hover::after,
.line-chart-points span:focus-visible::before,
.line-chart-points span:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.line-chart-points em {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.line-chart-y-axis {
    color: #64748b;
    display: flex;
    flex-direction: column;
    font-size: var(--text-sm);
    font-weight: 750;
    grid-column: 1;
    grid-row: 1;
    justify-content: space-between;
    min-height: 220px;
    padding-right: 12px;
    text-align: right;
}

.line-chart-x-axis {
    border-top: 1px solid #cbd5e1;
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 750;
    grid-column: 2;
    grid-row: 2;
    position: relative;
}

.line-chart-x-axis span {
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.line-chart-x-axis span:first-child {
    transform: none;
}

.line-chart-x-axis span:last-child {
    transform: translateX(-100%);
}

.attention-item {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    gap: 11px;
    grid-template-columns: 10px minmax(0, 1fr) 42px;
    padding: 10px 0;
}

.attention-item:first-child {
    padding-top: 0;
}

.attention-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.attention-marker {
    background: #f97316;
    border-radius: 999px;
    height: 34px;
    width: 4px;
}

.attention-item strong {
    color: #0f172a;
    display: block;
    font-size: var(--text-md);
    font-weight: 800;
}

.attention-item small {
    color: #64748b;
    display: block;
    font-size: var(--text-sm);
    line-height: 1.4;
}

.attention-item em {
    color: #0f172a;
    font-style: normal;
    font-weight: 850;
    text-align: right;
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table th,
.dashboard-table td {
    padding: 13px 6px;
}

.dashboard-table th {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 800;
    text-transform: none;
}

.dashboard-table td {
    color: #334155;
    font-size: var(--text-md);
}

.dashboard-table a {
    color: #0f172a;
    font-weight: 800;
}

.mini-status {
    border-radius: 7px;
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 800;
    padding: 4px 8px;
    text-transform: capitalize;
}

.mini-status.active,
.mini-status.completed {
    background: #dcfce7;
    color: #166534;
}

.mini-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.mini-status.in-progress,
.mini-status.published {
    background: #dbeafe;
    color: #075985;
}

.activity-list {
    display: grid;
}

.activity-item {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    padding: 12px 0;
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.activity-icon {
    align-items: center;
    background: #e8f7f4;
    border-radius: 50%;
    color: #0f766e;
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.activity-item strong {
    color: #0f172a;
    display: block;
    font-size: var(--text-md);
    font-weight: 750;
}

.activity-item small {
    color: #64748b;
    display: block;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.activity-item em {
    align-items: center;
    background: #dcfce7;
    border-radius: 50%;
    color: #15803d;
    display: inline-flex;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.metric-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    padding: 20px;
}

.metric-card span {
    color: var(--muted);
}

.metric-card strong {
    color: #102a43;
    display: block;
    font-size: 40px;
    margin-top: 8px;
}

.compact-metrics {
    margin-bottom: 24px;
}

.compact-metrics .metric-card {
    box-shadow: none;
}

.compact-metrics .metric-card strong {
    font-size: 34px;
}

.panel-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.35fr .85fr;
}

.panel,
.prompt-card {
    padding: 22px;
}

.panel-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.status-pill {
    background: #eef3f6;
    border-radius: 999px;
    color: #334155;
    font-size: var(--text-xs);
    font-weight: 800;
    padding: 7px 10px;
    text-transform: uppercase;
}

.status-pill.active {
    background: #dcfce7;
    color: #166534;
}

.status-pill.inactive {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.final,
.status-pill.completed {
    background: #dcfce7;
    color: #166534;
}

.status-pill.not_started,
.status-pill.draft {
    background: #eef3f6;
    color: #475569;
}

.status-pill.skipped {
    background: #ffedd5;
    color: #c2410c;
}

.status-pill.archived {
    background: #fff1f2;
    color: #be123c;
}

.status-published,
.status-in-progress,
.status-ready,
.status-draft-reports-ready,
.status-reports-ready {
    background: #e8f7ee;
    color: var(--success);
}

.status-draft,
.status-assigned,
.status-snapshot-ready,
.status-draft-generation-queued {
    background: #eef3f6;
    color: #475569;
}

.status-finalized,
.status-reviewed,
.status-approved {
    background: #eef2ff;
    color: #3730a3;
}

.status-archived,
.status-failed,
.status-draft-generation-failed {
    background: #fff1f2;
    color: var(--danger);
}

.timeline-list {
    color: var(--muted);
    line-height: 1.9;
    padding-left: 22px;
}

.text-link {
    color: var(--teal);
    display: inline-flex;
    font-weight: 800;
    margin-top: 14px;
}

.link-button {
    background: transparent;
    border: 0;
    color: #be123c;
    cursor: pointer;
    font-weight: 800;
    padding: 0;
}

.flash-message {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-weight: 800;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 15px 14px;
    text-align: left;
    vertical-align: top;
}

td strong {
    color: var(--navy);
}

.table-subtext {
    color: var(--muted);
    display: block;
    font-size: var(--text-sm);
    margin-top: 4px;
}

.table-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

th {
    color: var(--navy);
    font-size: var(--text-xs);
    letter-spacing: 0;
    text-transform: uppercase;
}

code {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 3px 6px;
}

.campaign-hero,
.workflow-card,
.next-action-card,
.quiet-action-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.campaign-hero {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 26px;
}

.campaign-hero-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.campaign-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.campaign-title-row h2 {
    color: var(--navy);
    font-size: 32px;
    line-height: 1.15;
    margin: 0;
}

.campaign-meta-line {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.campaign-meta-line span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.campaign-meta-line span:not(:last-child)::after {
    background: #cbd5e1;
    border-radius: 50%;
    content: "";
    height: 4px;
    margin-left: 2px;
    width: 4px;
}

.campaign-hero-actions {
    flex: 0 0 auto;
}

.workflow-card {
    padding: 16px;
}

.workflow-steps {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-step {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 12px;
}

.workflow-step span {
    align-items: center;
    background: #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: var(--text-xs);
    font-weight: 900;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.workflow-step strong {
    font-size: var(--text-sm);
    line-height: 1.2;
    min-width: 0;
}

.workflow-step.is-complete {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.workflow-step.is-complete span {
    background: #16a34a;
    color: white;
}

.workflow-step.is-current {
    background: #edf8f7;
    border-color: #9ddbd2;
    color: var(--navy);
}

.workflow-step.is-current span {
    background: var(--teal);
    color: white;
}

.action-focus-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr);
}

.next-action-card,
.quiet-action-card {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.next-action-card {
    background: linear-gradient(135deg, #ffffff, #f2fbfa);
    border-color: #cfe8e4;
}

.section-label {
    color: var(--teal);
    font-size: var(--text-xs);
    font-weight: 900;
    text-transform: uppercase;
}

.next-action-card h3 {
    color: var(--navy);
    font-size: 26px;
    line-height: 1.2;
    margin: 0;
}

.next-action-card p,
.quiet-action-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.action-row,
.stacked-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stacked-actions {
    align-items: stretch;
    flex-direction: column;
}

.stacked-actions form {
    margin: 0;
}

.report-file-card {
    box-shadow: none;
}

.token-url {
    display: block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.json-block {
    background: #0f172a;
    border-radius: 8px;
    color: #dbeafe;
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 16px 0 0;
    max-height: 460px;
    overflow: auto;
    padding: 16px;
    white-space: pre-wrap;
}

.audit-json-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prompt-list {
    display: grid;
    gap: 16px;
}

.prompt-card p {
    color: var(--muted);
    line-height: 1.7;
    white-space: pre-wrap;
}

.prompt-version-list {
    display: grid;
    gap: 14px;
}

.prompt-version-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    padding: 18px;
}

.prompt-version-card:first-child {
    border-color: #b9e4df;
    box-shadow: 0 14px 34px rgba(15, 143, 131, .08);
}

.prompt-version-header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.prompt-version-title {
    min-width: 0;
}

.prompt-version-title h3 {
    color: #0f172a;
    font-size: var(--text-xl);
    line-height: 1.25;
    margin: 4px 0 0;
}

.prompt-version-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.prompt-version-meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
}

.prompt-version-meta div {
    background: #ffffff;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
}

.prompt-version-meta dt {
    color: #64748b;
    font-size: var(--text-xs);
    font-weight: 850;
    text-transform: uppercase;
}

.prompt-version-meta dd {
    color: #0f172a;
    font-size: var(--text-sm);
    font-weight: 800;
    margin: 0;
}

.prompt-preview {
    background: #f8fbfa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: var(--text-sm);
    font-weight: 650;
    line-height: 1.65;
    max-height: 500px;
    overflow: auto;
    padding: 14px;
    white-space: pre-line;
}

.empty-state {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 34px;
    text-align: center;
}

.empty-state strong {
    color: #0f172a;
    font-size: var(--text-lg);
}

.report-draft {
    color: var(--ink);
    display: grid;
    gap: 16px;
}

.report-draft h1 {
    color: var(--navy);
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.report-draft h3 {
    color: var(--navy);
    font-size: var(--text-xl);
    margin: 6px 0 0;
}

.report-draft p,
.report-draft li {
    color: var(--muted);
    line-height: 1.65;
}

.report-draft ol {
    margin: 0;
    padding-left: 22px;
}

.report-draft .table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.report-draft table {
    background: white;
}

.report-download-list {
    display: grid;
    gap: 10px;
    padding: 8px 0;
}

.report-download-row {
    align-items: center;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 12px;
}

.report-download-row > div:first-child {
    display: grid;
    gap: 3px;
}

.report-download-row strong {
    color: var(--navy);
}

.report-download-row span {
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
}

.sandbox-prompt-modal-panel {
    max-height: min(86vh, 760px);
    max-width: 920px;
    overflow: auto;
    width: min(920px, calc(100vw - 32px));
}

.sandbox-prompt-form {
    gap: 18px;
}

.sandbox-prompt-form textarea {
    min-height: 360px;
}

.structure-list {
    display: grid;
    gap: 18px;
}

.structure-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.structure-section h3 {
    color: var(--navy);
    font-size: var(--text-2xl);
    margin: 0;
}

.survey-form {
    display: grid;
    gap: 20px;
}

.modern-survey-form {
    gap: 18px;
}

.survey-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.survey-section-accordion {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
    overflow: hidden;
}

.survey-section-accordion + .survey-section-accordion {
    margin-top: 4px;
}

.survey-section-accordion summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    list-style: none;
    padding: 18px;
}

.survey-section-accordion summary::-webkit-details-marker {
    display: none;
}

.survey-section-accordion[open] summary {
    background: linear-gradient(180deg, #fbfdff, #f8fafc);
    border-bottom: 1px solid #e2e8f0;
}

.survey-section-summary-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.survey-section-summary-main strong {
    color: #0f172a;
    font-size: var(--text-lg);
    line-height: 1.25;
}

.survey-section-summary-main small {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 750;
    line-height: 1.35;
}

.survey-section-summary-meta {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.survey-section-summary-meta > span,
.survey-section-summary-meta em {
    border-radius: 999px;
    font-size: var(--text-xs);
    font-style: normal;
    font-weight: 850;
    padding: 6px 9px;
}

.survey-section-summary-meta > span {
    background: #eef3f6;
    color: #475569;
}

.survey-section-summary-meta em {
    background: #e8f7f4;
    color: #0f766e;
}

.survey-section-summary-meta svg {
    color: #64748b;
    height: 18px;
    transition: transform .16s ease;
    width: 18px;
}

.survey-section-accordion[open] .survey-section-summary-meta svg {
    transform: rotate(180deg);
}

.survey-section-body {
    background: #f8fafc;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.question-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
    overflow: hidden;
}

.question-block summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    list-style: none;
    padding: 15px 16px;
}

.question-block summary::-webkit-details-marker {
    display: none;
}

.question-block[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.question-body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.question-block label {
    display: grid;
    gap: 8px;
    font-weight: 650;
}

.question-title {
    align-items: center;
    color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    font-size: var(--text-lg);
    font-weight: 850;
    gap: 8px;
    line-height: 1.35;
}

.question-block label > span:not(.question-title) {
    color: #334155;
    font-size: var(--text-sm);
    font-weight: 750;
}

.question-title em {
    background: #fff7ed;
    border-radius: 999px;
    color: #c2410c;
    font-size: var(--text-xs);
    font-style: normal;
    font-weight: 850;
    padding: 3px 7px;
}

.question-summary-meta {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.question-summary-meta em {
    background: #eef3f6;
    border-radius: 999px;
    color: #475569;
    font-size: var(--text-xs);
    font-style: normal;
    font-weight: 850;
    padding: 5px 8px;
}

.question-summary-meta svg {
    color: #64748b;
    height: 17px;
    transition: transform .16s ease;
    width: 17px;
}

.question-block[open] .question-summary-meta svg {
    transform: rotate(180deg);
}

.question-block select,
.question-block input[type="date"],
.question-block textarea {
    background: white;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    color: #0f172a;
    font-weight: 650;
    min-height: 46px;
    padding: 12px 13px;
    width: 100%;
}

.question-block select:focus,
.question-block input[type="date"]:focus,
.question-block textarea:focus {
    border-color: #0f8f83;
    box-shadow: 0 0 0 3px rgba(15, 143, 131, .12);
    outline: 0;
}

select,
.form-grid select,
.resource-form select,
.resource-filter-form select,
.audit-filter-form select,
.question-block select {
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    padding-right: 44px;
}

.choice-list {
    display: grid;
    gap: 8px;
}

.question-block .choice-list .checkbox-field {
    background: #f8fbfa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 12px;
}

.question-error {
    background: #fff1f2;
    border-radius: 8px;
    color: #be123c;
    font-size: var(--text-sm);
    font-weight: 800;
    padding: 9px 10px;
}

.survey-form-actions {
    border-top: 1px solid #e2e8f0;
    margin-top: 2px;
    padding-top: 18px;
}

.detail-grid {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
    padding-top: 20px;
}

.detail-grid strong {
    color: var(--navy);
    display: block;
    margin-top: 4px;
}

.pagination-nav {
    align-items: center;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 18px;
}

.pagination-summary {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 750;
    margin: 0;
}

.pagination-summary span {
    color: #0f172a;
    font-weight: 900;
}

.pagination-list {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe5ea;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 4px;
    padding: 6px;
}

.pagination-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #334155;
    display: inline-flex;
    font-size: var(--text-sm);
    font-weight: 850;
    height: 36px;
    justify-content: center;
    min-width: 36px;
    padding: 0 10px;
}

.pagination-item svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    width: 18px;
}

.pagination-item:hover:not(.is-current):not(.is-disabled):not(.is-gap) {
    background: #f8fafc;
    border-color: #dbe5ea;
    color: #0f172a;
}

.pagination-item.is-current {
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 8px 18px rgba(7, 143, 154, .18);
    color: #ffffff;
}

.pagination-item.is-disabled,
.pagination-item.is-gap {
    color: #94a3b8;
}

.pagination-item.is-disabled {
    background: #f8fafc;
    border-color: #edf2f7;
}

/* Survey structure drag ordering */
.structure-heading-with-handle,
.question-order-cell {
    align-items: center;
    display: flex;
    gap: 10px;
}

.structure-heading-with-handle {
    align-items: flex-start;
}

.drag-handle {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe5ee;
    border-radius: 6px;
    color: #64748b;
    cursor: grab;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle:focus-visible {
    border-color: #009ca6;
    box-shadow: 0 0 0 3px rgba(0, 156, 166, 0.16);
    outline: 0;
}

.drag-handle svg {
    height: 17px;
    width: 17px;
}

.resource-structure-section.is-dragging,
.resource-table tr.is-dragging {
    opacity: 0.52;
}

.structure-save-status {
    min-height: 20px;
}

.structure-save-status[data-state="saved"] {
    color: #047857;
}

.structure-save-status[data-state="error"] {
    color: #b91c1c;
}

@media (max-width: 1280px) {
    .compact-resource-stat-grid,
    .five-resource-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .marketing-shell {
        border-radius: 0;
        margin: 0;
    }

    .marketing-header,
    .marketing-hero,
    .marketing-feature-grid,
    .marketing-overview,
    .public-security-strip,
    .marketing-footer,
    .legal-page {
        padding-left: 22px;
        padding-right: 22px;
    }

    .marketing-header,
    .marketing-hero,
    .product-body,
    .product-lower {
        grid-template-columns: 1fr;
    }

    .marketing-header {
        align-items: flex-start;
    }

    .marketing-nav,
    .marketing-account {
        flex-wrap: wrap;
        gap: 14px;
    }

    .marketing-account {
        border-left: 0;
        padding-left: 0;
    }

    .marketing-copy h1 {
        font-size: 40px;
    }

    .marketing-hero {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 46%, rgba(255, 255, 255, .28) 100%),
            var(--hero-image) center bottom / cover no-repeat;
        min-height: 560px;
        padding-bottom: 260px;
    }

    .marketing-feature-grid,
    .product-metrics,
    .public-security-strip,
    .public-security-copy,
    .public-certificate-copy {
        grid-template-columns: 1fr;
    }

    .public-security-strip {
        gap: 26px;
        padding-bottom: 38px;
        padding-top: 38px;
    }

    .public-security-divider {
        height: 1px;
        width: 100%;
    }

    .public-security-icon {
        height: 72px;
        width: 72px;
    }

    .public-certificate-copy img {
        max-width: 150px;
    }

    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner > div:last-child {
        flex-wrap: wrap;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand-panel {
        gap: 28px;
        padding: 30px;
    }

    .login-brand-panel h1 {
        font-size: 34px;
    }

    .login-preview {
        grid-template-columns: 1fr;
    }

    .login-panel {
        margin: 18px;
        width: calc(100% - 36px);
    }

    .login-form-column {
        padding: 18px;
    }

    .login-form-column .login-panel {
        margin: 0;
        width: 100%;
    }

    .hero-section,
    .feature-grid,
    .pillar-section,
    .admin-body,
    .metric-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-grid,
    .resource-stat-grid,
    .dashboard-grid,
    .dashboard-wide-grid,
    .dashboard-lower-grid,
    .progress-visual-grid {
        grid-template-columns: 1fr;
    }

    .line-chart-shell {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .lifecycle-row {
        grid-template-columns: 92px minmax(0, 1fr) 28px;
    }

    .resource-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .form-section,
    .resource-form-grid,
    .resource-form-grid.three-column,
    .resource-filter-form {
        grid-template-columns: 1fr;
    }

    .resource-filter-form {
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .resource-filter-form label,
    .resource-filter-form label:first-child {
        flex: 1 1 auto;
    }

    .resource-hero-actions {
        justify-content: flex-start;
    }

    .content-page-summary,
    .content-page-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .content-page-summary-meta {
        justify-content: space-between;
    }

    .date-range-menu {
        width: 100%;
    }

    .date-range-menu summary {
        min-width: 0;
        width: 100%;
    }

    .date-range-popover {
        grid-template-columns: 1fr;
        left: 0;
        right: auto;
        width: 100%;
    }

    .date-calendar-grid,
    .date-input-row {
        grid-template-columns: 1fr;
    }

    .date-calendar-weekdays,
    .date-calendar-days {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .date-calendar-days button {
        width: 100%;
    }

    .date-range-presets {
        border-bottom: 1px solid #e2e8f0;
        border-right: 0;
    }

    .action-focus-grid,
    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-product {
        min-height: 340px;
    }

    .site-header,
    .site-footer,
    .admin-header,
    .campaign-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .admin-sidebar {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        height: auto;
        position: static;
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 22px;
    }

    .admin-nav a,
    .admin-nav span {
        padding: 9px 10px;
    }

    .admin-main {
        padding: 20px;
    }

    .panel,
    .prompt-card {
        padding: 18px;
    }

    .panel-heading,
    .table-actions,
    .form-actions,
    .admin-user {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button,
    .admin-user button,
    .resource-filter-actions {
        width: 100%;
    }

    .admin-mode-fab-wrap {
        bottom: 18px;
        right: 18px;
    }

    .admin-mode-fab {
        min-height: 52px;
        padding: 9px 14px 9px 10px;
        width: auto;
    }

    .admin-mode-fab-indicator {
        height: 34px;
        width: 34px;
    }

    .resource-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .campaign-hero-actions,
    .campaign-hero-actions .secondary-button {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

    .audit-filter-form,
    .audit-json-grid {
        grid-template-columns: 1fr;
    }

    .audit-filter-actions {
        grid-column: 1 / -1;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .pagination-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}
