@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-400-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-500-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-600-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-700-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-800-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Be Vietnam Pro";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/be-vietnam-pro/be-vietnam-pro-800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #1f2a1f;
    --muted: #687467;
    --brand: #6dc067;
    --brand-dark: #397a3c;
    --accent: #f2c94c;
    --mint: #edf7eb;
    --line: #dce8da;
    --paper: #fff;
    --bg: #f7faf6;
    --warn: #aa6500;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(48, 91, 49, .1);
}

* { box-sizing: border-box; }
html { font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); }
body { margin: 0; line-height: 1.6; }
a { color: var(--brand-dark); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: min(1300px, calc(100% - 40px)); margin: auto; }
.narrow { max-width: 560px; }
.narrow-wide { max-width: 780px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand-logo { display: block; max-width: 210px; height: 54px; object-fit: contain; object-position: left center; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--brand); color: #173819; font-size: 22px; font-weight: 800; }
.brand-copy { min-width: 0; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 18px; font-weight: 700; }
.brand small { max-width: 270px; margin-top: 3px; font-size: 10px; color: var(--muted); letter-spacing: .055em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav form { margin: 0; }
.main-nav a, .nav-button, .nav-menu summary { font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-button { padding: 8px 0; border: 0; background: transparent; color: var(--brand-dark); cursor: pointer; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; color: var(--brand-dark); cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: "⌄"; margin-left: 6px; }
.nav-menu-panel { position: absolute; top: calc(100% + 14px); right: 0; width: 245px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.nav-menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; }
.nav-menu-panel a:hover { background: var(--mint); }

.hero { padding: 92px 0; background: linear-gradient(135deg, var(--mint) 0%, #fff 52%, #f7f4e8 100%); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 70px; align-items: center; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.hero h1, .page-head h1 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 68px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.lead { max-width: 720px; color: var(--muted); font-size: 19px; }
.hero-card, .panel { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.hero-card { border-top: 4px solid var(--brand); }
.hero-card ul { margin: 20px 0 0; padding-left: 20px; }
.status-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--brand); }

.button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--brand-dark); border-radius: 11px; background: var(--brand-dark); color: white; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.button:hover { filter: brightness(.94); }
.button-secondary { background: white; color: var(--brand-dark); }
.button-secondary:hover { background: var(--mint); }
.button-small { min-height: 38px; padding: 7px 13px; font-size: 13px; }
.button-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-auth-actions { justify-content: center; }

.password-input-wrap { position: relative; width: 100%; }
.password-input-wrap input { padding-right: 50px !important; }
.password-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    z-index: 2;
}
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle:hover { background: var(--mint); color: var(--brand-dark); }

.section { padding: 60px 0; }
.feature-grid, .stat-grid, .admin-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature, .stat { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.feature { border-top: 3px solid var(--brand); }
.feature span { color: var(--brand-dark); font-weight: 800; }
.feature h2 { margin: 10px 0 4px; }
.feature p { margin: 0; color: var(--muted); }
.page-head { padding: 58px 0 42px; background: var(--mint); }
.page-head.compact { padding: 38px 0 32px; }
.page-head h1 { margin-bottom: 10px; font-size: clamp(34px, 4vw, 54px); }
.page-head p { margin: 0; color: var(--muted); }
.section-heading h2 { margin: 0; font-size: 28px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }

.auth-section { min-height: calc(100vh - 150px); }
.form-panel h1 { margin: 0; font-size: 34px; }
.muted { color: var(--muted); }
label { display: block; margin: 18px 0 6px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #bccbb9; border-radius: 10px; background: white; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent); border-color: var(--brand-dark); }
input[type="color"] { height: 48px; padding: 5px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 400; }
.check input { width: auto; min-height: 0; }
.validation { color: var(--danger); font-size: 13px; }
.validation:empty { display: none; }
.field-validation-error, .validation-summary-errors, .auth-validation { color: #b42318 !important; }
.input-validation-error { border-color: #b42318 !important; box-shadow: 0 0 0 2px rgba(180, 35, 24, .08); }
.form-foot { text-align: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.switch-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 15px; border-radius: 12px; background: var(--mint); cursor: pointer; }
.switch-row input { width: 20px; min-height: 20px; margin: 0; accent-color: var(--brand-dark); }
.switch-row span, .switch-row strong, .switch-row small { display: block; }
.switch-row small { color: var(--muted); font-weight: 400; }

.stat span, .stat strong { display: block; }
.stat span { color: var(--muted); }
.stat strong { font-size: 38px; font-weight: 700; }
.stat.warning strong { color: var(--warn); }
.top-gap { margin-top: 24px; }
.admin-center { margin-top: 52px; padding-top: 42px; border-top: 1px solid var(--line); }
.admin-card-grid { margin-top: 20px; }
.admin-card { display: block; min-height: 180px; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 16px; background: white; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.admin-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.admin-card span, .admin-card strong, .admin-card small { display: block; }
.admin-card span { color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.admin-card strong { margin: 13px 0 8px; font-size: 20px; }
.admin-card small { color: var(--muted); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.toolbar-filter { align-items: flex-start; }
.search-form { display: grid; grid-template-columns: minmax(240px, 460px) auto; gap: 9px; width: min(100%, 580px); }
.filter-form { display: grid; grid-template-columns: minmax(230px, 1.6fr) minmax(160px, 1fr) minmax(160px, 1fr) auto; gap: 9px; width: min(100%, 850px); }
.audit-filter { grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr) 155px 155px auto; width: 100%; margin-bottom: 14px; }
.result-summary { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
td small { display: block; color: var(--muted); }
.detail-cell { min-width: 260px; max-width: 420px; white-space: normal; }
.table-actions { text-align: right; }
.table-empty { padding: 40px 16px; color: var(--muted); text-align: center; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--mint); color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.badge + .badge { margin-left: 4px; }
.badge-success { background: #e5f6e3; color: #246326; }
.badge-muted { background: #edf0ed; color: #697468; }
.alert { margin-bottom: 18px; padding: 13px 16px; border-radius: 10px; }
.alert.success { background: #e9f8e8; color: #246326; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pagination a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.pagination a.active { background: var(--brand-dark); color: white; }

.timeline { display: grid; gap: 14px; }
.report-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.report-card h2 { margin: 8px 0 0; }
.report-card p { margin: 0; color: var(--muted); }
.empty { padding: 60px; border: 1px dashed #bccbb9; border-radius: 18px; background: white; text-align: center; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.side-panel { position: sticky; top: 98px; }
.notice { padding: 12px; border-radius: 10px; background: var(--mint); color: var(--muted); font-size: 13px; }
.markdown-source { white-space: pre-wrap; font: inherit; }
.settings-section + .settings-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.settings-section h2 { margin: 0 0 6px; }
.settings-section > p { margin: 0; color: var(--muted); }
.logo-preview { display: flex; align-items: center; justify-content: center; min-height: 120px; margin: 16px 0; padding: 16px; border: 1px dashed #aebdab; border-radius: 14px; background: var(--bg); }
.logo-preview img { display: block; max-width: 300px; max-height: 90px; }
.color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.site-footer { padding: 26px 0; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 13px; }
.site-alert { margin-top: 16px; padding: 12px 15px; border: 1px solid #cfe2cc; border-radius: 11px; background: var(--mint); color: #285d30; font-size: 12px; font-weight: 600; }

@media (max-width: 1080px) {
    .main-nav { gap: 14px; }
    .main-nav a, .nav-button, .nav-menu summary { font-size: 13px; }
    .brand-copy small { max-width: 180px; }
    .filter-form { grid-template-columns: 1fr 1fr; }
    .filter-form .button { justify-self: start; }
    .audit-filter { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .shell { width: min(100% - 28px, 1300px); }
    .main-nav > a:not(.button) { display: none; }
    .hero { padding: 62px 0; }
    .hero-grid, .feature-grid, .stat-grid, .admin-card-grid, .content-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 30px; }
    .page-head { padding: 42px 0 32px; }
    .toolbar, .report-card { align-items: stretch; flex-direction: column; }
    .toolbar > .button { align-self: flex-start; }
    .search-form { grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
    .filter-form, .audit-filter { grid-template-columns: 1fr; width: 100%; }
    .filter-form .button { width: 100%; }
    .side-panel { position: static; }
    .form-grid, .color-grid { grid-template-columns: 1fr; }
    .brand-logo { max-width: 150px; height: 44px; }
    .brand-copy small { display: none; }
    .nav-menu-panel { position: fixed; top: 68px; right: 14px; }
}

@media (max-width: 480px) {
    .brand-copy { display: none; }
    .main-nav { gap: 12px; }
    .search-form { grid-template-columns: minmax(0, 1fr) auto; }
    .search-form .button { padding-inline: 13px; }
    .panel { padding: 22px 18px; }
    .section { padding: 42px 0; }
}

.nav-auth-login,
.nav-auth-register {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 11px;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.nav-auth-login {
    border: 1px solid #d2dfd0;
    background: white;
}

.nav-auth-register {
    border: 1px solid var(--brand-dark);
    background: linear-gradient(135deg, var(--brand-dark), #4e984f);
    color: white;
    box-shadow: 0 8px 20px rgba(57, 122, 60, .15);
}

.nav-auth-login:hover,
.nav-auth-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(57, 122, 60, .14);
}

.button-prominent {
    min-width: 205px;
    min-height: 62px;
    align-items: center;
    flex-direction: column;
    padding: 11px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 12px 26px rgba(57, 122, 60, .14);
}

.button-prominent span,
.button-prominent small {
    display: block;
}

.button-prominent span {
    font-size: 14px;
}

.button-prominent small {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 500;
    opacity: .78;
}

.auth-page {
    min-height: calc(100vh - 127px);
    padding: 56px 0;
    background:
        radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--brand) 18%, transparent) 0, transparent 28%),
        linear-gradient(135deg, #eef7ec 0%, #f9fbf8 52%, #f8f5e9 100%);
}

.auth-layout {
    display: grid;
    max-width: 1080px;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1fr);
    gap: 64px;
    align-items: center;
}

.auth-welcome {
    padding: 30px 0;
}

.auth-kicker {
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.auth-welcome h1 {
    margin: 15px 0 18px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.13;
    letter-spacing: -.045em;
}

.auth-welcome > p {
    max-width: 520px;
    margin: 0;
    color: #647164;
    font-size: 15px;
}

.auth-benefits {
    display: grid;
    gap: 11px;
    margin-top: 28px;
}

.auth-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334536;
    font-size: 12px;
    font-weight: 600;
}

.auth-benefits i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #14371f;
    font-style: normal;
    font-size: 11px;
}

.auth-card {
    padding: 34px;
    border: 1px solid #d9e6d7;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(34, 72, 43, .12);
}

.auth-card-head h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.2;
}

.auth-card-head p {
    margin: 6px 0 18px;
    color: #748074;
    font-size: 12px;
}

.auth-card label {
    margin-top: 14px;
    font-size: 12px;
}

.auth-card input {
    min-height: 48px;
    font-size: 13px;
}

.auth-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-check {
    margin: 16px 0 !important;
    font-size: 11px !important;
}

.auth-submit {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    margin-top: 19px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-dark), #4d9b50);
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(57, 122, 60, .2);
    transition: transform .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(57, 122, 60, .25);
}

.auth-submit b {
    font-size: 20px;
    font-weight: 400;
}

.auth-switch {
    margin: 20px 0 0;
    color: #738073;
    font-size: 11px;
    text-align: center;
}

.auth-switch a {
    font-weight: 700;
}

.auth-validation:not(:empty) {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff0ef;
}

.auth-password-note {
    display: block;
    margin-top: 8px;
    color: #7c887c;
    font-size: 10px;
}

@media (max-width: 900px) {
    .auth-layout {
        max-width: 620px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auth-welcome {
        padding: 10px 0;
        text-align: center;
    }

    .auth-welcome h1 {
        margin: 10px 0;
        font-size: 34px;
    }

    .auth-welcome > p {
        margin: auto;
    }

    .auth-benefits {
        display: none;
    }
}

@media (max-width: 800px) {
    .main-nav > a.nav-auth-login,
    .main-nav > a.nav-auth-register {
        display: inline-flex;
    }

    .nav-auth-login,
    .nav-auth-register {
        min-height: 38px;
        padding: 7px 11px;
        font-size: 11px !important;
    }

    .hero-auth-actions {
        flex-wrap: nowrap;
    }

    .button-prominent {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 28px 0 40px;
    }

    .auth-layout {
        width: min(100% - 24px, 620px);
    }

    .auth-welcome h1 {
        font-size: 28px;
    }

    .auth-welcome > p {
        font-size: 12px;
    }

    .auth-card {
        padding: 25px 18px;
        border-radius: 17px;
    }

    .auth-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-auth-actions {
        flex-direction: column;
    }

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

@media (max-width: 410px) {
    .header-inner {
        gap: 8px;
    }

    .main-nav {
        gap: 5px;
    }

    .nav-auth-login,
    .nav-auth-register {
        min-height: 35px;
        padding: 6px 8px;
        font-size: 10px !important;
    }
}

.birth-date-fields {
    display: grid;
    grid-template-columns: .7fr .9fr 1.2fr;
    gap: 8px;
}

.birth-date-fields select {
    width: 100%;
    min-width: 0;
}

@media (max-width: 390px) {
    .birth-date-fields {
        grid-template-columns: 1fr 1fr;
    }

    .birth-date-fields select:last-child {
        grid-column: 1 / -1;
    }
}

.customer-chat-search {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #d2e2d0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mint), white);
}

.latest-result-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid #bdddba;
    border-left: 5px solid var(--brand-dark);
    border-radius: 14px;
    background: white;
    box-shadow: 0 9px 28px rgba(48, 91, 49, .08);
}

.latest-result-notice > span {
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.latest-result-notice div strong,
.latest-result-notice div small {
    display: block;
}

.latest-result-notice div strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-result-notice div small {
    color: var(--muted);
}

@media (max-width: 620px) {
    .latest-result-notice {
        grid-template-columns: 1fr auto;
    }

    .latest-result-notice > span {
        grid-column: 1 / -1;
    }
}

@media (max-width: 430px) {
    .latest-result-notice {
        grid-template-columns: 1fr;
    }

    .latest-result-notice .button {
        width: 100%;
    }
}

.customer-chat-search > span {
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.customer-chat-search h2 {
    margin: 5px 0 13px;
}

.customer-chat-search form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.customer-chat-search input {
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #bfd0bd;
    border-radius: 11px;
    background: white;
}

.customer-chat-search small {
    display: block;
    margin-top: 10px;
    color: #718072;
}

.customer-chat-answer {
    margin: -10px 0 22px 36px;
    padding: 14px 16px;
    border: 1px solid #d4e4d2;
    border-radius: 4px 14px 14px 14px;
    background: white;
}

.customer-chat-answer span {
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
}

.customer-chat-answer p {
    margin: 3px 0 0;
    color: #455548;
    font-size: 13px;
}

.customer-report-ai {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #cfe1cd;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--mint), #fff);
}

.customer-report-ai .report-ai-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 86px;
    resize: vertical;
    padding: 13px 15px;
    border: 1px solid #bfd1bd;
    border-radius: 12px;
    background: #fff;
    color: #18241b;
    font: inherit;
    line-height: 1.55;
}

.customer-report-ai > span,
.customer-report-ai .report-ai-answer > span {
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.customer-report-ai h2 {
    margin: 6px 0 12px;
}

.customer-report-ai .report-ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.customer-report-ai .report-ai-suggestions > button:not(.button) {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #cfe0cd;
    border-radius: 999px;
    background: white;
    color: var(--brand-dark);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.customer-report-ai .report-ai-suggestions .button {
    margin-left: auto;
}

.customer-report-ai .report-ai-error {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #fff3f2;
    color: #a22d27;
    font-weight: 700;
}

.customer-report-ai .report-ai-answer {
    margin-top: 16px;
    padding: 17px;
    border: 1px solid #d7e5d5;
    border-radius: 12px;
    background: white;
}

.customer-report-ai .report-ai-answer pre {
    margin: 10px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #243126;
    font: inherit;
    line-height: 1.7;
}

@media (max-width: 520px) {
    .customer-report-ai {
        padding: 17px;
    }

    .customer-report-ai .report-ai-suggestions .button {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .customer-chat-search {
        padding: 18px;
    }

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

    .customer-chat-search .button {
        width: 100%;
    }

    .customer-chat-answer {
        margin-left: 0;
    }
}

/* TSV preview v0.19.2 */.tsv-preview-dialog{width:min(1100px,92vw);height:min(760px,86vh);padding:0;border:1px solid #cdddc9;border-radius:18px;box-shadow:0 28px 80px rgba(16,55,29,.28)}.tsv-preview-dialog::backdrop{background:rgba(10,25,15,.45)}.tsv-preview-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #dce7da;background:#fff}.tsv-preview-dialog-head div{display:grid;gap:2px}.tsv-preview-dialog-head small,.customer-tsv-security{color:#68766b}.tsv-preview-dialog-head button{border:0;background:transparent;font-size:28px;cursor:pointer}.tsv-preview-dialog iframe{width:100%;height:calc(100% - 62px);border:0;background:#fff}.customer-tsv-security{display:block;margin-top:8px;font-size:11px;text-align:center}


/* v0.24 - customer comparison / external ChatGPT */
.customer-compare-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;padding:14px 16px;border:1px solid #d7e6d6;border-radius:16px;background:#f7fbf6}
.customer-compare-toolbar span{color:#6b776c;flex:1}
.report-card-selectable{position:relative;padding-left:58px}
.report-compare-check{position:absolute;left:18px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:6px;font-size:13px}
.report-compare-check input{width:20px;height:20px}
.customer-comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}
.customer-compare-ai textarea{width:100%;border:1px solid #cfddce;border-radius:14px;padding:14px;margin:12px 0;min-height:100px}
.external-ai-note{display:block;margin-top:8px;color:#6a756b;line-height:1.45}
@media(max-width:760px){.customer-comparison-grid{grid-template-columns:1fr}.report-card-selectable{padding-left:48px}.customer-compare-toolbar .button{width:100%}}

/* v0.25 - customer comparison/search */
.customer-compare-picker{margin-bottom:22px;padding:20px;border:1px solid #d7e6d6;border-radius:18px;background:#f8fcf7}
.customer-compare-picker-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:14px;flex-wrap:wrap}
.customer-compare-picker-head h2{margin:4px 0 0}
.customer-compare-picker-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.customer-compare-picker label{display:grid;gap:6px;font-weight:600}
.customer-compare-picker select,.customer-compare-picker input[type="search"]{width:100%;min-height:48px;border:1px solid #cad9cb;border-radius:12px;background:#fff;padding:0 12px;font:inherit}
.customer-comparison-status{margin-top:18px;padding:16px;border:1px solid #d7e6d6;border-radius:16px;background:#f7fbf6}
.customer-comparison-status-head{display:flex;gap:12px;align-items:center}
.customer-comparison-status small{display:block;margin-top:8px;color:#68756a}
.customer-comparison-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.customer-comparison-answer{margin-top:16px}
@media(max-width:760px){.customer-compare-picker-grid{grid-template-columns:1fr}.customer-compare-picker-grid .button{width:100%}.customer-comparison-grid{grid-template-columns:1fr}}
.customer-compare-picker-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.report-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.report-card-actions{width:100%}.report-card-actions .button{flex:1;min-width:160px;text-align:center}}
.customer-chatgpt-reference{margin-top:16px;padding-top:16px;border-top:1px solid #dce8da;display:grid;gap:10px}
.customer-chatgpt-reference .external-ai-note{line-height:1.55;color:#68756a}
