:root {
    --bg: #f5f7f8;
    --surface: #ffffff;
    --text: #172026;
    --muted: #64727d;
    --line: #dce4e8;
    --accent: #126b5f;
    --accent-strong: #0d4f47;
    --warning: #b15c00;
    --radius-card: 8px;
    --space-card: 20px;
    --space-section: 26px;
    --shadow-soft: 0 14px 34px rgba(18, 107, 95, .08);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

img,
svg,
canvas,
video {
    max-width: 100%;
}

main,
section,
article,
aside,
form,
.content-band,
.metric-card,
.table-wrap,
.admin-main {
    min-width: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    font-weight: 800;
    font-size: 22px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 1;
}

.brand-logo img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 190px;
    object-fit: contain;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-weight: 650;
    justify-content: flex-end;
}

.nav a.active,
.nav a[aria-current="page"] {
    color: var(--primary);
}

.public-menu-note {
    display: none;
}

.public-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 0;
}

.public-menu-toggle span:not(.sr-only) {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-strong);
    transition: transform .2s ease, opacity .2s ease;
}

.public-menu-toggle span:not(.sr-only):nth-child(2) {
    transform: translateY(-6px);
}

.public-menu-toggle span:not(.sr-only):nth-child(4) {
    transform: translateY(6px);
}

.public-menu-toggle.is-open span:not(.sr-only):nth-child(2) {
    transform: rotate(45deg);
}

.public-menu-toggle.is-open span:not(.sr-only):nth-child(3) {
    opacity: 0;
}

.public-menu-toggle.is-open span:not(.sr-only):nth-child(4) {
    transform: rotate(-45deg);
}

.hero {
    padding: 68px 0 42px;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2 {
    line-height: 1.22;
    margin: 0 0 14px;
}

h1 {
    max-width: 760px;
    font-size: clamp(34px, 6vw, 58px);
}

h2 {
    font-size: 24px;
}

.hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-hero {
    background:
        linear-gradient(135deg, rgba(14, 105, 88, .14), rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, #f4f8f8 0%, #ffffff 100%),
        #f4f8f8;
    padding: 52px 0 34px;
}

.home-hero-shell {
    display: grid;
    gap: 22px;
}

.home-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr);
    gap: 42px;
    align-items: center;
}

.home-hero-start {
    margin-top: 12px;
}

.home-hero-copy h1 {
    max-width: 720px;
    font-size: clamp(38px, 6vw, 64px);
    word-break: keep-all;
}

.home-hero-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.75;
}

.home-search-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(21, 39, 48, .12);
    padding: 24px;
}

.home-search-card h2 {
    margin-bottom: 2px;
}

.home-search-intro {
    margin: -4px 0 2px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.home-search-card button {
    width: 100%;
}

.home-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-advanced-search {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 12px;
}

.home-advanced-search summary {
    color: var(--accent-strong);
    cursor: pointer;
    font-weight: 850;
}

.home-advanced-search .home-search-grid {
    margin-top: 12px;
}

.home-quick-actions,
.home-start-actions,
.home-brand-grid,
.home-content-grid {
    display: grid;
    gap: 14px;
}

.home-quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0;
}

.home-start-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 12px;
}

.home-action-card,
.home-brand-card,
.home-content-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 18px;
}

.home-action-card {
    min-height: 196px;
    grid-template-rows: auto minmax(54px, auto) minmax(46px, auto) 1fr;
    align-content: stretch;
    border-color: #d7e3e2;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 252, 251, .96)),
        #ffffff;
    box-shadow: 0 10px 26px rgba(23, 32, 38, .04);
}

.home-action-card:nth-child(1) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(241, 249, 247, .98)),
        #f3faf8;
}

.home-action-card:nth-child(2) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(244, 249, 252, .98)),
        #f5fafc;
}

.home-action-card:nth-child(3) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(248, 247, 252, .98)),
        #f8f7fc;
}

.home-action-card:nth-child(4) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(252, 249, 244, .98)),
        #fcfaf5;
}

.home-action-card span {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.home-action-card span::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(18, 107, 95, .28), rgba(18, 107, 95, 0));
}

.home-action-card span b {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(18, 107, 95, .2);
    border-radius: 999px;
    background: #e9f7f4;
    color: #0b5c52;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .86),
        0 5px 12px rgba(18, 107, 95, .08);
}

.home-action-card:nth-child(2) span b {
    border-color: rgba(58, 101, 134, .2);
    background: #eaf4fb;
    color: #255b7a;
}

.home-action-card:nth-child(3) span b {
    border-color: rgba(91, 82, 142, .18);
    background: #f0eefb;
    color: #514984;
}

.home-action-card:nth-child(4) span b {
    border-color: rgba(154, 101, 25, .18);
    background: #fff3de;
    color: #8a5a16;
}

.home-action-card strong,
.home-brand-card strong,
.home-content-card strong {
    font-size: 20px;
    line-height: 1.3;
    word-break: keep-all;
}

.home-action-card small,
.home-brand-card span,
.home-brand-card small,
.home-content-card span {
    color: var(--muted);
    line-height: 1.55;
}

.home-action-card small {
    min-height: 44px;
}

.home-action-card em {
    align-self: end;
    color: var(--accent-strong);
    font-style: normal;
    font-weight: 900;
    padding-top: 4px;
}

.home-section {
    margin: 56px 0;
}

.home-process-flow {
    display: grid;
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 34px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(18, 107, 95, .07), rgba(255, 255, 255, .55)),
        rgba(248, 252, 251, .72);
    padding: 34px 36px;
}

.home-process-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .82fr);
    gap: 24px;
    align-items: end;
}

.home-process-copy h2 {
    margin: 0;
    max-width: 620px;
    font-size: 25px;
}

.home-process-copy p {
    justify-self: end;
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.home-process-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-process-steps::before {
    display: none;
}

.home-process-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    border: 1px solid rgba(18, 107, 95, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .64);
    padding: 12px;
}

.home-process-steps span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(18, 107, 95, .18);
    border-radius: 999px;
    background: #f4fbf9;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.home-process-steps strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
    word-break: keep-all;
}

.home-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-brand-section {
    padding-top: 8px;
}

.home-brand-title {
    align-items: start;
    margin-bottom: 30px;
}

.home-brand-title > div {
    display: grid;
    gap: 5px;
}

.home-brand-title h2 {
    margin: 0;
}

.home-brand-title > p {
    max-width: 520px;
    padding-top: 8px;
    line-height: 1.7;
}

.home-brand-tabs {
    display: grid;
    gap: 26px;
    width: 100%;
    justify-content: stretch;
    justify-items: stretch;
}

.home-brand-tablist {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    justify-self: center;
    width: min(100%, 820px);
    padding: 7px;
    border: 1px solid #d9e6e4;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 251, 250, .92)),
        #fff;
    box-shadow: 0 10px 26px rgba(23, 32, 38, .04);
}

.home-brand-tablist button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4f626c;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    min-height: 42px;
    padding: 9px 10px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-brand-tablist button:hover,
.home-brand-tablist button.is-active {
    background: #0f766a;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 106, .16);
    transform: translateY(-1px);
}

.home-brand-panel {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    animation: homeBrandPanelIn .32s ease both;
}

.home-brand-panel[hidden] {
    display: none;
}

.home-brand-panel-note {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 2px;
    text-align: center;
}

@keyframes homeBrandPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-brand-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 232px;
    grid-template-rows: auto minmax(54px, auto) minmax(34px, auto) 1fr;
    align-content: stretch;
    background:
        linear-gradient(135deg, rgba(18, 107, 95, .06), rgba(255, 255, 255, 0) 48%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(249, 252, 251, .96)),
        #fff;
    padding: 0;
}

.home-brand-card::after {
    display: none;
}

.home-brand-bridge {
    display: flex;
    align-items: center;
    margin: 0 0 14px;
    min-height: 40px;
    padding: 10px 18px;
    background:
        linear-gradient(90deg, rgba(18, 107, 95, .12), rgba(255, 255, 255, .42)),
        #eef8f6;
    color: #0d675d;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: normal;
    word-break: keep-all;
}

.home-brand-card.is-cafe .home-brand-bridge {
    background:
        linear-gradient(90deg, rgba(185, 125, 33, .13), rgba(255, 255, 255, .42)),
        #fff7e8;
    color: #8a5a16;
}

.home-brand-card.is-food .home-brand-bridge {
    background:
        linear-gradient(90deg, rgba(190, 96, 54, .13), rgba(255, 255, 255, .42)),
        #fff0ec;
    color: #9b4a2c;
}

.home-brand-card.is-service .home-brand-bridge {
    background:
        linear-gradient(90deg, rgba(58, 101, 134, .13), rgba(255, 255, 255, .42)),
        #eef6fb;
    color: #255b7a;
}

.home-brand-card.is-education .home-brand-bridge {
    background:
        linear-gradient(90deg, rgba(91, 82, 142, .13), rgba(255, 255, 255, .42)),
        #f2f0fb;
    color: #514984;
}

.home-brand-card strong {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    min-height: 54px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0 18px;
}

.home-brand-card > span:not(.home-brand-bridge) {
    position: relative;
    z-index: 1;
    min-height: 34px;
    margin: 0 18px;
}

.home-brand-stats {
    position: relative;
    z-index: 1;
    align-self: end;
    display: grid;
    gap: 8px;
    margin: 4px 18px 18px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(207, 224, 221, .7);
}

.home-brand-stats div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.home-brand-stats dt,
.home-brand-stats dd {
    margin: 0;
}

.home-brand-stats dt {
    color: #6a7b84;
    font-size: 12px;
    font-weight: 800;
}

.home-brand-stats dd {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.home-insight-showcase,
.home-final-cta {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 24px;
}

.home-insight-showcase {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(380px, 1fr);
    gap: 30px;
    align-items: center;
    overflow: hidden;
    border-color: #d6e5e2;
    background:
        radial-gradient(circle at 100% 0%, rgba(18, 107, 95, .12), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(244, 250, 249, .95)),
        #fff;
    padding: 30px;
}

.home-insight-copy {
    display: grid;
    gap: 12px;
}

.home-insight-showcase p {
    color: var(--muted);
    line-height: 1.7;
}

.home-insight-lenses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 520px);
    margin-top: 8px;
    padding: 5px;
    border: 1px solid rgba(18, 107, 95, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.home-insight-lenses button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #51636d;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    padding: 7px 10px;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.home-insight-lenses button.is-active {
    background: #0f766a;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 106, .15);
}

.home-insight-visual {
    min-width: 0;
    border: 1px solid rgba(18, 107, 95, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 18px 38px rgba(23, 32, 38, .06);
    padding: 18px;
}

.home-insight-stage {
    position: relative;
    min-height: 336px;
    overflow: hidden;
}

.home-insight-panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 16px;
    padding: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(.985);
    transition: opacity .55s ease, transform .55s ease;
}

.home-insight-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .home-insight-panel {
        transition: none;
    }
}

.home-donut-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.home-donut {
    display: grid;
    place-items: center;
    width: 132px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 56%, transparent 57%),
        conic-gradient(#0f766a 0 var(--chart-fill), #e3eeec var(--chart-fill) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(18, 107, 95, .08),
        0 14px 26px rgba(18, 107, 95, .1);
}

.home-donut span {
    color: var(--text);
    font-size: 22px;
    font-weight: 950;
}

.home-donut-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.25;
}

.home-donut-card p {
    margin: 8px 0 0;
}

.home-insight-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-insight-metrics div {
    min-width: 0;
    border-radius: 10px;
    background: #f5faf9;
    padding: 12px;
}

.home-insight-metrics span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.home-insight-metrics strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
}

.home-insight-panel-title {
    margin: 0;
    color: var(--text) !important;
    font-weight: 900;
    line-height: 1.35;
}

.home-insight-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.home-insight-panel-head span,
.home-insight-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.home-insight-note {
    margin: 2px 0 0;
    line-height: 1.6;
}

.home-insight-bars {
    display: grid;
    gap: 12px;
    align-self: center;
}

.home-insight-donut {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    align-self: center;
}

.home-insight-donut-chart {
    display: grid;
    place-items: center;
    width: 142px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .98) 0 54%, transparent 55%),
        conic-gradient(var(--donut-segments));
    box-shadow:
        inset 0 0 0 1px rgba(18, 107, 95, .08),
        0 16px 30px rgba(23, 32, 38, .08);
}

.home-insight-donut-chart span {
    color: var(--text);
    font-size: 24px;
    font-weight: 950;
}

.home-insight-legend {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.home-insight-legend div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.home-insight-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--legend-color);
}

.home-insight-legend strong {
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-insight-legend span {
    color: #51636d;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.home-insight-line {
    display: grid;
    gap: 12px;
    align-self: center;
}

.home-insight-line svg {
    width: 100%;
    height: 154px;
    overflow: visible;
}

.home-insight-line circle {
    fill: #fff;
    stroke: #0f766a;
    stroke-width: 3;
}

.home-line-grid {
    fill: none;
    stroke: rgba(123, 146, 154, .22);
    stroke-width: 1;
}

.home-line-path {
    fill: none;
    stroke: #0f766a;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-line-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-line-summary div {
    border-radius: 10px;
    background: #f5faf9;
    padding: 10px 12px;
}

.home-line-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.home-line-summary strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
}

.home-insight-bar {
    display: grid;
    gap: 6px;
}

.home-insight-bar div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.home-insight-bar strong {
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-insight-bar span {
    color: #51636d;
    font-size: 13px;
    font-weight: 900;
}

.home-insight-bar i {
    display: block;
    height: 10px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #0f766a, #8cc9bd) 0 0 / var(--bar-width) 100% no-repeat,
        #e6efed;
}

.home-content-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-content-card {
    background: #f8fbfa;
    min-height: 132px;
}

.home-data-basis {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(420px, 1fr);
    gap: 34px;
    align-items: center;
    border-top: 1px solid rgba(203, 220, 217, .9);
    border-bottom: 1px solid rgba(203, 220, 217, .9);
    padding: 34px 0;
}

.home-data-basis-copy {
    display: grid;
    gap: 10px;
}

.home-data-basis-copy h2 {
    max-width: 620px;
    margin: 0;
}

.home-data-basis-copy p:last-child {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    word-break: keep-all;
}

.home-data-basis-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid rgba(203, 220, 217, .85);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(246, 251, 250, .9)),
        #fff;
    overflow: hidden;
}

.home-data-basis-list div {
    min-width: 0;
    padding: 18px 20px;
}

.home-data-basis-list div:nth-child(odd) {
    border-right: 1px solid rgba(203, 220, 217, .85);
}

.home-data-basis-list div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(203, 220, 217, .85);
}

.home-data-basis-list dt,
.home-data-basis-list dd {
    margin: 0;
}

.home-data-basis-list dt {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.home-data-basis-list dd {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.home-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 30px;
    align-items: center;
    justify-items: start;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .18), transparent 34%),
        linear-gradient(135deg, #0f766a, #126b5f),
        var(--accent);
    color: #fff;
    padding: 32px;
}

.home-final-cta h2 {
    margin: 0;
    max-width: 720px;
}

.home-final-cta p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, .86);
    line-height: 1.7;
}

.home-final-cta .hero-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-content: flex-end;
    align-self: center;
    margin-top: 0;
}

.home-final-cta .button {
    background: #fff;
    color: var(--accent-strong);
    min-height: 52px;
    padding-right: 18px;
    padding-left: 18px;
}

.home-final-cta .button:hover,
.home-final-cta .button:focus-visible {
    background: #eef8f5;
    color: var(--accent-strong);
}

.home-final-cta .button.secondary {
    border-color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.home-final-cta .button.secondary:hover,
.home-final-cta .button.secondary:focus-visible {
    background: rgba(255, 255, 255, .26);
    color: #fff;
}

.search-box {
    margin-top: 28px;
    display: flex;
    max-width: 720px;
    gap: 10px;
}

.search-box.compact {
    margin-top: 0;
    margin-bottom: 14px;
    max-width: 860px;
}

.search-box input,
.search-box select {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px 16px;
    font-size: 16px;
    background: var(--surface);
}

.region-search-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
}

.region-search-box label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.region-search-box label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.region-search-box button {
    align-self: end;
    min-height: 51px;
}

.region-search-simplified {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.region-mode-panel,
.region-industry-picker,
.region-search-advanced-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.region-mode-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: min(430px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4f7f7;
    padding: 5px;
}

.region-mode-tabs button {
    min-height: 42px;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
}

.region-mode-tabs button.is-active {
    background: var(--accent);
    color: #fff;
}

.region-mode-panel {
    display: none;
}

.region-mode-panel.is-active {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.region-mode-panel[data-region-mode-panel="address"] {
    grid-template-columns: minmax(260px, 1.8fr) minmax(140px, .6fr);
}

.region-industry-picker {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(130px, .45fr);
}

.region-search-wide {
    grid-column: span 2;
}

.region-advanced-search {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.region-advanced-search summary {
    width: fit-content;
    cursor: pointer;
    color: var(--accent-strong);
    font-weight: 900;
}

.region-filter-help {
    align-self: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
}

.region-filter-help strong,
.region-filter-help p {
    display: block;
    margin: 0;
}

.region-filter-help p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    padding: 13px 18px;
    font-weight: 800;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--accent-strong);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.metric-card,
.content-band,
.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.metric-card {
    padding: var(--space-card);
}

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

.metric-card strong {
    display: block;
    margin: 8px 0;
    font-size: 28px;
    overflow-wrap: anywhere;
}

.content-band {
    padding: var(--space-section);
    margin: 20px 0;
}

.region-search-panel,
.region-conclusion-card,
.region-detail-section {
    overflow: hidden;
}

.region-search-panel {
    margin-top: 8px;
}

.brand-head {
    padding: 48px 0 24px;
}

.brand-head p {
    color: var(--muted);
}

.brand-review-hero {
    display: grid;
    gap: 16px;
    padding-bottom: 30px;
}

.brand-review-hero h1 {
    max-width: 900px;
    word-break: keep-all;
}

.brand-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0;
}

.brand-hero-meta div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.brand-hero-meta dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.brand-hero-meta dd {
    margin: 4px 0 0;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.brand-review-summary {
    background: #f8fbfa;
}

.brand-review-summary h2 {
    margin-bottom: 8px;
}

.brand-review-summary p:last-child {
    max-width: 860px;
    color: var(--text);
    font-size: 20px;
    font-weight: 850;
    line-height: 1.65;
    word-break: keep-all;
}

.brand-decision-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-card-badge {
    font-size: 18px;
}

.brand-cost-summary-grid,
.brand-checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.brand-cost-summary-grid article,
.brand-checklist-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.brand-cost-summary-grid article:first-child {
    grid-column: span 2;
    background: #f8fbfa;
}

.brand-cost-summary-grid span,
.brand-checklist-grid span,
.brand-review-lead {
    color: var(--muted);
}

.brand-cost-summary-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 26px;
}

.brand-checklist-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}

.brand-review-split article {
    min-width: 0;
}

.brand-review-lead {
    margin-top: 0;
    line-height: 1.7;
}

.brand-next-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: center;
    background: #f8fbfa;
}

.brand-next-actions p {
    color: var(--muted);
    margin: 0;
}

.brand-next-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.brand-detail-section {
    margin: 22px 0;
}

.brand-detail-section > summary {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 18px 22px;
    color: var(--accent-strong);
    font-size: 20px;
    font-weight: 900;
}

.brand-detail-section[open] > summary {
    margin-bottom: 16px;
}

.region-simple-hero h1 {
    max-width: 920px;
    word-break: keep-all;
    overflow-wrap: normal;
}

.region-simple-hero p {
    max-width: 780px;
    line-height: 1.7;
    word-break: keep-all;
}

.score-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 14px 0;
}

.score-box strong {
    font-size: 42px;
}

.score-box span {
    color: var(--muted);
    font-weight: 800;
}

.data-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.data-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
}

.data-list dt {
    color: var(--muted);
    font-weight: 700;
}

.data-list dd {
    margin: 0;
    font-weight: 800;
}

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

.cost-grid div {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 16px;
}

.brand-list {
    display: grid;
    gap: 10px;
}

.brand-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
}

.brand-row span {
    color: var(--muted);
}

.industry-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 116px));
    justify-content: center;
    gap: 8px;
    margin: 18px 0;
}

.industry-tab {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fbfa;
    color: var(--text);
    width: 116px;
    min-height: 40px;
    padding: 9px 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.industry-tab-teal {
    --tab-color: #126b5f;
    --tab-bg: #e9f4f2;
}

.industry-tab-navy {
    --tab-color: #234b73;
    --tab-bg: #eaf0f7;
}

.industry-tab-coral {
    --tab-color: #b84e38;
    --tab-bg: #fff0ec;
}

.industry-tab-slate {
    --tab-color: #596875;
    --tab-bg: #edf1f4;
}

.industry-tab-green {
    --tab-color: #3f6f36;
    --tab-bg: #edf6ea;
}

.industry-tab-gold {
    --tab-color: #9b650c;
    --tab-bg: #fff5df;
}

.industry-tab-blue {
    --tab-color: #1d5d92;
    --tab-bg: #e8f2fb;
}

.industry-tab {
    border-color: color-mix(in srgb, var(--tab-color, var(--accent)) 22%, var(--line));
    background: var(--tab-bg, #f8fbfa);
    color: var(--tab-color, var(--text));
}

.industry-tab:hover {
    border-color: var(--tab-color, var(--accent));
}

.industry-tab.active {
    border-color: var(--tab-color, var(--accent));
    background: var(--tab-color, var(--accent));
    color: white;
}

.industry-panel {
    display: none;
}

.industry-panel.active {
    display: block;
}

.industry-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

.industry-panel-head strong {
    color: var(--text);
}

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

.industry-brand-card {
    display: grid;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    min-width: 0;
}

.industry-brand-card:hover {
    border-color: #b8c8c5;
    background: #fbfdfc;
}

.industry-brand-card strong,
.industry-brand-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.industry-brand-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.industry-brand-metrics small {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 3px 8px;
    font-size: 12px;
}

.industry-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.industry-recommendation-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    color: inherit;
}

.industry-recommendation-card:hover {
    border-color: rgba(20, 120, 114, .45);
    background: #f5fbfa;
}

.industry-recommendation-card strong,
.industry-recommendation-card span:not(.industry-recommendation-grade),
.industry-recommendation-card small:not(.industry-recommendation-reason) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.industry-recommendation-card strong {
    color: var(--accent-strong);
    font-size: 17px;
}

.industry-recommendation-card span {
    font-weight: 800;
}

.industry-recommendation-card small {
    color: var(--muted);
}

.industry-recommendation-grade {
    justify-self: start;
    border: 1px solid rgba(20, 120, 114, .22);
    border-radius: 999px;
    background: #eef8f6;
    color: var(--accent-strong);
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 800;
}

.industry-recommendation-reason {
    line-height: 1.45;
}

.candidate-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.candidate-metrics small {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 4px 8px;
}

.compare-search-list {
    margin-top: 16px;
}

.compare-candidate-title {
    margin-top: 24px;
}

.compare-candidate-controls {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.compare-selection-count {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 0.92rem;
    padding: 7px 10px;
    white-space: nowrap;
}

.compare-candidate-toggle {
    background: #fff;
    border: 1px solid rgba(18, 107, 95, 0.45);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 7px 10px;
}

.compare-candidate-toggle:hover {
    background: rgba(18, 107, 95, 0.06);
}

.compare-select-form {
    margin-top: 16px;
}

.compare-candidate-collapsed-note {
    color: var(--muted);
    display: none;
    font-size: 0.92rem;
    margin: 10px 0 0;
}

.compare-candidate-section.is-collapsed .compare-candidate-body {
    display: none;
}

.compare-candidate-section.is-collapsed .compare-candidate-collapsed-note {
    display: block;
}

.compare-selected-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 16px;
    padding: 14px;
}

.compare-selected-summary strong {
    display: block;
    margin-bottom: 10px;
}

.compare-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compare-selected-chip {
    background: #fff;
    border: 1px solid rgba(18, 107, 95, 0.45);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    padding: 7px 10px;
}

.compare-selected-chip:hover {
    background: rgba(18, 107, 95, 0.06);
}

.compare-form-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 8px 0 0;
}

.compare-select-row {
    cursor: pointer;
}

.compare-select-row.selected {
    border-color: rgba(18, 107, 95, 0.55);
    background: rgba(18, 107, 95, 0.06);
}

.compare-check {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    gap: 8px;
    white-space: nowrap;
}

.compare-check input {
    accent-color: var(--primary);
    height: 18px;
    width: 18px;
}

.compare-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.compare-action-hint {
    color: var(--muted);
    font-size: 0.92rem;
    margin-right: auto;
}

.compare-decision-summary {
    border-left: 5px solid var(--accent);
}

.compare-decision-summary > p:last-child {
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.75;
}

.compare-decision-cards,
.compare-brand-summary-grid,
.compare-cost-grid {
    display: grid;
    gap: 14px;
}

.compare-decision-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0;
}

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

.compare-brand-summary-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 20px;
}

.compare-brand-summary-card h3 {
    margin: 4px 0 6px;
    font-size: 24px;
}

.compare-brand-summary-card p {
    color: var(--muted);
    line-height: 1.7;
}

.compare-brand-summary-card dl,
.compare-trust-list {
    display: grid;
    gap: 10px;
}

.compare-brand-summary-card dl div,
.compare-trust-list div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfa;
    padding: 12px;
}

.compare-brand-summary-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.compare-brand-summary-card dd {
    margin: 0;
    font-weight: 850;
}

.compare-cost-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compare-cost-grid article {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbfa;
    padding: 18px;
}

.compare-cost-grid span,
.compare-trust-list small {
    color: var(--muted);
    line-height: 1.55;
}

.compare-cost-grid strong {
    font-size: 26px;
}

.compare-next-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: #f8fbfa;
}

.compare-detail-section summary {
    cursor: pointer;
    color: var(--accent-strong);
    font-size: 20px;
    font-weight: 900;
}

.compare-detail-section > section,
.compare-detail-section > div:not(.section-title) {
    margin-top: 18px;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-title h2 {
    margin-bottom: 6px;
}

.section-title p,
.chart-note,
.notice p {
    color: var(--muted);
    margin: 0;
}

.chart-wrap {
    min-height: 280px;
    position: relative;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.chart-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    min-width: 0;
}

.chart-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.chart-card h3 {
    margin: 0;
    font-size: 18px;
}

.chart-status {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.chart-canvas-wrap {
    min-height: 260px;
    position: relative;
}

.chart-canvas-wrap canvas {
    width: 100%;
    height: 260px;
}

.chart-interpretation {
    color: var(--muted);
    margin: 12px 0 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.plain-list {
    padding-left: 20px;
}

.site-footer {
    color: var(--muted);
    padding: 44px 0 48px;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 400px);
    gap: 26px 44px;
    align-items: start;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.site-footer-brand {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 210px;
}

.site-footer-logo img {
    display: block;
    width: min(210px, 100%);
    height: auto;
}

.site-footer-brand p,
.site-footer-notice {
    max-width: 720px;
    line-height: 1.7;
    word-break: keep-all;
}

.site-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-self: end;
    width: min(100%, 390px);
    font-weight: 800;
}

.site-footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    background: #fff;
    color: var(--accent-strong);
    line-height: 1.25;
    text-align: center;
    word-break: keep-all;
}

.site-footer-links a:hover {
    border-color: var(--accent);
    background: #f3faf7;
}

.site-footer-notice,
.site-footer small {
    grid-column: 1 / -1;
}

.site-footer-notice {
    justify-self: center;
    width: min(100%, 920px);
    margin: 2px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    text-align: center;
}

.site-footer small {
    justify-self: center;
    color: #6f7b84;
    text-align: center;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: #172026;
    color: #e8eff2;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    scrollbar-gutter: stable;
}

.sidebar .brand {
    color: white;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-logo img {
    height: 42px;
    max-width: 168px;
}

.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    padding: 0;
}

.sidebar-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e8eff2;
    transition: transform .18s ease, opacity .18s ease;
}

.sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #c8d4da;
}

.sidebar-advanced {
    margin-top: 8px;
}

.sidebar-advanced summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 12px;
    border-radius: 8px;
    color: #9fb0b8;
    font-weight: 700;
}

.sidebar-advanced summary::-webkit-details-marker {
    display: none;
}

.sidebar-advanced summary::after {
    content: "▾";
    float: right;
    font-size: .78rem;
}

.sidebar-advanced:not([open]) summary::after {
    content: "▸";
}

.sidebar-advanced summary:hover {
    background: rgba(255, 255, 255, .08);
    color: white;
}

.sidebar-advanced a {
    margin-top: 6px;
    padding-left: 20px;
    font-size: .94rem;
}

.sidebar-logout {
    margin: 0;
}

.sidebar-logout button {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c8d4da;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    padding: 10px 12px;
    text-align: left;
}

.sidebar a:hover,
.sidebar-logout button:hover {
    background: rgba(255, 255, 255, .08);
    color: white;
}

.sidebar a.active {
    background: rgba(255, 255, 255, .14);
    color: white;
}

.admin-main {
    padding: 28px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(420px, 100%);
    padding: 28px;
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row input {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font-size: 16px;
}

.form-row select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font-size: 16px;
    background: var(--surface);
}

.form-row textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    font-size: 16px;
    resize: vertical;
}

.alert {
    border: 1px solid #f0c27a;
    background: #fff7e8;
    color: var(--warning);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.alert.success {
    border-color: #93c8a1;
    background: #eefaf1;
    color: #1f6a35;
}

.admin-form {
    display: grid;
    gap: 12px;
    max-width: 760px;
}

.admin-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.admin-form input,
.admin-form select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
}

.checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
}

.details-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfd;
}

.details-panel summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.details-panel .quality-grid {
    margin-top: 12px;
}

.code-block {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #f7f9fb;
    color: var(--text);
    white-space: pre;
}

.api-key-layout {
    display: grid;
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: 20px 0;
}

.api-key-layout .content-band {
    margin: 0;
}

.api-key-form-panel .admin-form {
    max-width: none;
}

.api-key-list-panel {
    min-width: 0;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.button.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #69757d;
}

.calculator-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.calculator-hero h1 {
    max-width: 860px;
}

.calculator-decision-shell {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.calculator-form-head {
    display: grid;
    gap: 4px;
    margin-bottom: 4px;
}

.calculator-form-head h2 {
    margin: 0;
    font-size: 22px;
}

.calculator-form-head p,
.calculator-result-title p,
.calculator-next-actions p {
    color: var(--muted);
    margin: 0;
}

.calculator-result-title {
    margin-bottom: 12px;
}

.calculator-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calculator-chart-details {
    margin-top: 16px;
}

.calculator-next-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: center;
    background: #f8fbfa;
}

.calculator-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.calculator-context,
.compare-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 20px;
    align-items: center;
    background: #f8fbfa;
}

.calculator-context p,
.compare-context p {
    color: var(--muted);
    margin: 0;
}

.calculator-context-grid,
.compare-context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.calculator-context-grid div,
.compare-context-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.calculator-context-grid dt,
.compare-context-grid dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.calculator-context-grid dd,
.compare-context-grid dd {
    margin: 4px 0 0;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.calculator-form {
    display: grid;
    gap: 10px;
}

.calculator-results {
    min-width: 0;
}

.compact-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.embedded-calculator {
    margin-top: 18px;
}

.nested-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 16px;
}

.nested-panel h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

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

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.truncate {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-table {
    table-layout: fixed;
    width: 1260px;
    min-width: 1260px;
}

.log-table th,
.log-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-table th:nth-child(1),
.log-table td:nth-child(1) {
    width: 72px;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2),
.log-table th:nth-child(3),
.log-table td:nth-child(3) {
    width: 120px;
}

.log-table th:nth-child(4),
.log-table td:nth-child(4),
.log-table th:nth-child(6),
.log-table td:nth-child(6) {
    width: 90px;
}

.log-table th:nth-child(5),
.log-table td:nth-child(5) {
    width: 300px;
}

.log-table th:nth-child(7),
.log-table td:nth-child(7) {
    width: 240px;
}

.log-table th:nth-child(8),
.log-table td:nth-child(8),
.log-table th:nth-child(9),
.log-table td:nth-child(9) {
    width: 150px;
}

.brand-admin-table,
.shop-admin-table,
.summary-admin-table {
    table-layout: fixed;
}

.brand-admin-table {
    width: 1120px;
    min-width: 1120px;
}

.shop-admin-table {
    width: 1180px;
    min-width: 1180px;
}

.summary-admin-table {
    width: 820px;
    min-width: 820px;
}

.brand-admin-table th,
.brand-admin-table td,
.shop-admin-table th,
.shop-admin-table td,
.summary-admin-table th,
.summary-admin-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-admin-table th,
.brand-admin-table td,
.summary-admin-table th,
.summary-admin-table td {
    white-space: nowrap;
}

.brand-admin-table th:nth-child(1),
.brand-admin-table td:nth-child(1) {
    width: 70px;
}

.brand-admin-table th:nth-child(2),
.brand-admin-table td:nth-child(2),
.brand-admin-table th:nth-child(3),
.brand-admin-table td:nth-child(3) {
    width: 180px;
}

.brand-admin-table th:nth-child(4),
.brand-admin-table td:nth-child(4),
.brand-admin-table th:nth-child(8),
.brand-admin-table td:nth-child(8) {
    width: 120px;
}

.brand-admin-table th:nth-child(5),
.brand-admin-table td:nth-child(5),
.brand-admin-table th:nth-child(6),
.brand-admin-table td:nth-child(6),
.brand-admin-table th:nth-child(7),
.brand-admin-table td:nth-child(7) {
    width: 110px;
}

.brand-admin-table th:nth-child(9),
.brand-admin-table td:nth-child(9) {
    width: 80px;
}

.shop-admin-table th:nth-child(1),
.shop-admin-table td:nth-child(1) {
    width: 72px;
}

.shop-admin-table th:nth-child(2),
.shop-admin-table td:nth-child(2) {
    width: 190px;
}

.shop-admin-table th:nth-child(3),
.shop-admin-table td:nth-child(3) {
    width: 190px;
}

.shop-admin-table th:nth-child(4),
.shop-admin-table td:nth-child(4) {
    width: 160px;
}

.shop-admin-table th:nth-child(5),
.shop-admin-table td:nth-child(5) {
    width: 300px;
}

.shop-admin-table th:nth-child(6),
.shop-admin-table td:nth-child(6) {
    width: 150px;
    white-space: nowrap;
}

.shop-admin-table th:nth-child(7),
.shop-admin-table td:nth-child(7) {
    width: 120px;
    white-space: nowrap;
}

.summary-admin-table th:nth-child(1),
.summary-admin-table td:nth-child(1),
.summary-admin-table th:nth-child(2),
.summary-admin-table td:nth-child(2) {
    width: 150px;
}

.summary-admin-table th:nth-child(3),
.summary-admin-table td:nth-child(3) {
    width: 380px;
}

.summary-admin-table th:nth-child(4),
.summary-admin-table td:nth-child(4) {
    width: 100px;
}

.brand-history-table {
    table-layout: fixed;
    width: 820px;
    min-width: 820px;
}

.brand-history-table th,
.brand-history-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-history-table th:nth-child(1),
.brand-history-table td:nth-child(1) {
    width: 100px;
}

.brand-history-table th:nth-child(2),
.brand-history-table td:nth-child(2),
.brand-history-table th:nth-child(3),
.brand-history-table td:nth-child(3) {
    width: 160px;
}

.brand-history-table th:nth-child(4),
.brand-history-table td:nth-child(4),
.brand-history-table th:nth-child(5),
.brand-history-table td:nth-child(5),
.brand-history-table th:nth-child(6),
.brand-history-table td:nth-child(6) {
    width: 120px;
}

.region-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 18px;
}

.region-table-grid article {
    min-width: 0;
}

.region-table-grid h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.region-reset-link,
.region-filter-link {
    color: var(--accent);
    font-weight: 800;
}

.region-reset-link {
    align-self: center;
}

.region-filter-link {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 8px;
}

.region-filter-link span {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    color: var(--muted);
    font-size: 12px;
}

.region-filter-link.active {
    color: var(--accent-strong);
}

.region-brand-link {
    display: inline-grid;
    max-width: 100%;
    gap: 2px;
    color: var(--accent);
    font-weight: 800;
}

.region-brand-link span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-subtext {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.region-summary-table {
    table-layout: fixed;
    width: 760px;
    min-width: 760px;
}

.region-summary-table th,
.region-summary-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.region-summary-table th:nth-child(1),
.region-summary-table td:nth-child(1) {
    width: 280px;
}

.region-summary-table th:nth-child(2),
.region-summary-table td:nth-child(2) {
    width: 110px;
}

.region-summary-table th:nth-child(3),
.region-summary-table td:nth-child(3) {
    width: 140px;
}

.region-summary-table th:nth-child(4),
.region-summary-table td:nth-child(4) {
    width: 120px;
}

.region-summary-table th:nth-child(5),
.region-summary-table td:nth-child(5) {
    width: 110px;
}

.region-brand-trust-table,
.region-competitor-trust-table {
    table-layout: fixed;
}

.region-brand-trust-table {
    width: 760px;
    min-width: 760px;
}

.region-brand-trust-table th:nth-child(1),
.region-brand-trust-table td:nth-child(1) {
    width: 280px;
}

.region-brand-trust-table th:nth-child(2),
.region-brand-trust-table td:nth-child(2) {
    width: 90px;
}

.region-brand-trust-table th:nth-child(3),
.region-brand-trust-table td:nth-child(3) {
    width: 190px;
}

.region-brand-trust-table th:nth-child(4),
.region-brand-trust-table td:nth-child(4) {
    width: 200px;
}

.region-competitor-trust-table {
    width: 920px;
    min-width: 920px;
}

.region-competitor-trust-table th:nth-child(1),
.region-competitor-trust-table td:nth-child(1) {
    width: 260px;
}

.region-competitor-trust-table th:nth-child(2),
.region-competitor-trust-table td:nth-child(2),
.region-competitor-trust-table th:nth-child(3),
.region-competitor-trust-table td:nth-child(3) {
    width: 180px;
}

.region-competitor-trust-table th:nth-child(4),
.region-competitor-trust-table td:nth-child(4) {
    width: 110px;
}

.region-competitor-trust-table th:nth-child(5),
.region-competitor-trust-table td:nth-child(5) {
    width: 190px;
}

.region-notice-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.region-notice-list p {
    margin: 0;
    border: 1px solid #f1d48c;
    border-radius: 8px;
    background: #fff8e6;
    padding: 10px 12px;
    color: #7a5615;
    font-size: 0.92rem;
    font-weight: 800;
}

.region-score-basis-grid span {
    overflow-wrap: anywhere;
}

.region-decision-grid .metric-card strong {
    font-size: 25px;
}

.region-conclusion-card {
    display: grid;
    gap: 8px;
    border-color: #b9d8d4;
    background: #f4faf8;
    padding: 28px 30px;
}

.region-conclusion-card span {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
}

.region-conclusion-card h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.35;
}

.region-conclusion-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.region-basis-summary {
    display: grid;
    gap: 6px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.region-basis-summary span {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
}

.region-basis-summary strong {
    font-size: 20px;
    line-height: 1.35;
    word-break: keep-all;
}

.region-basis-summary small {
    color: var(--muted);
    font-weight: 750;
}

.region-core-grid .metric-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.region-core-grid .metric-card strong {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.region-start-guide article,
.region-core-grid .metric-card {
    min-height: 152px;
}

.region-core-grid {
    align-items: stretch;
}

.region-core-grid .metric-card {
    display: grid;
    align-content: start;
}

.region-environment-metrics {
    display: grid;
    gap: 14px;
    border-color: #d8e7e4;
    background: #fbfefd;
}

.region-environment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.region-environment-grid article {
    display: grid;
    gap: 5px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.region-environment-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.region-environment-grid strong {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
}

.region-environment-grid small,
.region-environment-summary {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.region-environment-summary {
    margin: 0;
}

.region-start-guide h3,
.region-start-guide p {
    word-break: keep-all;
}

.region-competitor-list {
    display: grid;
    gap: 10px;
}

.region-industry-card-list {
    display: grid;
    gap: 10px;
}

.region-priority-section .industry-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.region-priority-section .industry-recommendation-grid > article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.region-priority-section h3 {
    margin: 0 0 12px;
    font-size: 19px;
}

.region-industry-card-list div {
    display: grid;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfd;
    padding: 14px;
}

.region-industry-card-list strong {
    color: var(--accent-strong);
    font-size: 17px;
}

.region-industry-card-list span,
.region-industry-card-list small {
    color: var(--muted);
    font-weight: 750;
    line-height: 1.5;
}

.region-store-structure,
.region-next-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
    gap: 18px;
    align-items: center;
    background: #f8fbfa;
}

.region-store-structure p,
.region-next-actions p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.region-store-structure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.region-store-structure-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.region-store-structure-grid span,
.region-store-structure-grid strong {
    display: block;
}

.region-store-structure-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.region-store-structure-grid strong {
    margin-top: 5px;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.region-competitor-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, .9fr);
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfd;
    padding: 14px 16px;
}

.region-competitor-card strong,
.region-competitor-card span {
    display: block;
    min-width: 0;
}

.region-competitor-card strong {
    font-size: 17px;
    overflow-wrap: anywhere;
}

.region-competitor-card span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.region-competitor-card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(84px, auto);
    gap: 10px;
    margin: 0;
}

.region-competitor-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.region-competitor-card dd {
    margin: 2px 0 0;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f8fafb;
    padding: 18px;
    color: var(--muted);
    font-weight: 800;
}

.analysis-warning {
    margin: 16px 0 0;
    border: 1px solid #f1d48c;
    border-radius: 8px;
    background: #fff8e6;
    padding: 12px 14px;
    color: #7a5615;
    font-weight: 800;
}

.search-insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.search-insight-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.search-insight-grid strong,
.search-insight-grid span,
.search-insight-grid small {
    display: block;
}

.search-insight-grid span {
    margin: 6px 0;
    font-size: 20px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.search-insight-text {
    margin: 14px 0 0;
    color: var(--text);
    font-weight: 800;
}

.map-placeholder {
    display: grid;
    align-content: start;
    gap: 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f8fafb;
    padding: 18px;
}

.region-map-layout > .map-placeholder {
    align-self: start;
    min-height: 220px;
}

.region-map-empty {
    min-height: 0;
}

.map-placeholder strong {
    font-size: 18px;
}

.map-placeholder p {
    margin: 0;
    color: var(--muted);
}

.map-placeholder dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.map-placeholder dl div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.map-placeholder dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.map-placeholder dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.region-map-panel {
    display: grid;
    gap: 12px;
}

.region-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr);
    gap: 18px;
    align-items: stretch;
}

.region-map-summary {
    display: grid;
    align-content: start;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfd;
    padding: 16px;
}

.region-map-summary h3 {
    margin: 0;
    font-size: 19px;
}

.region-map-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

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

.region-map-summary-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.region-map-summary-grid strong,
.region-map-summary-grid span {
    display: block;
}

.region-map-summary-grid strong {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.region-map-summary-grid span {
    margin-top: 4px;
    font-size: 19px;
    font-weight: 900;
}

.region-map-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.region-map-toolbar strong {
    display: block;
    font-size: 18px;
}

.region-map-toolbar p {
    margin: 4px 0 0;
    color: var(--muted);
}

.region-map-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.region-map-canvas {
    position: relative;
    width: 100%;
    height: min(56vw, 440px);
    min-height: 320px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef3f7;
}

.region-map-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.region-map-info {
    display: grid;
    gap: 8px;
    width: min(260px, calc(100vw - 48px));
    padding: 12px 14px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.region-map-info strong {
    font-size: 15px;
    line-height: 1.35;
}

.region-map-info-rows {
    display: grid;
    gap: 5px;
}

.region-map-info-rows span {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 8px;
}

.region-map-info-rows b {
    color: var(--muted);
}

.region-map-info-note {
    width: fit-content;
    border-radius: 999px;
    background: #eef3f7;
    padding: 4px 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.region-map-center-marker {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 36px;
    border: 2px solid #0f766e;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 118, 110, .28);
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.region-map-center-marker::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    border-right: 2px solid #0f766e;
    border-bottom: 2px solid #0f766e;
    background: #ffffff;
    content: "";
}

.region-map-marker {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(20, 28, 35, .22);
    cursor: pointer;
}

.region-map-marker.is-trusted {
    background: #2563eb;
}

.region-map-marker.is-caution {
    background: #d97706;
}

.region-map-marker.is-unmatched {
    background: #7b8794;
}

.region-map-radius-label {
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .16);
    padding: 5px 10px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.radius-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.radius-profile-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.radius-profile-grid article.active {
    border-color: var(--accent);
    background: #f0f7f6;
}

.radius-profile-grid strong,
.radius-profile-grid span,
.radius-profile-grid small {
    display: block;
}

.radius-profile-grid span {
    margin: 6px 0;
    font-size: 24px;
    font-weight: 900;
}

.radius-profile-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.radius-profile-table {
    width: 1040px;
    min-width: 1040px;
}

.decision-checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.decision-checklist-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.decision-checklist-grid article.high {
    border-color: #f1d48c;
    background: #fff8e6;
}

.decision-checklist-grid span {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.decision-checklist-grid strong {
    display: block;
    margin: 9px 0 6px;
    font-size: 16px;
}

.decision-checklist-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.region-table-details {
    margin-top: 18px;
}

.region-row-details {
    margin-top: 8px;
}

.region-row-details summary {
    width: fit-content;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.region-row-details p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.region-more-details {
    margin-top: 14px;
}

.region-detail-section {
    display: grid;
    gap: 22px;
}

details.region-detail-section summary {
    cursor: pointer;
    color: var(--accent-strong);
    font-size: 20px;
    font-weight: 900;
}

.region-detail-block {
    margin-top: 0;
}

.region-detail-block h2 {
    margin-bottom: 14px;
}

.region-detail-section .table-wrap {
    margin-top: 10px;
}

.region-detail-section .region-summary-table {
    width: 100%;
    min-width: 680px;
}

.region-detail-section .region-wide-table {
    min-width: 820px;
}

.region-detail-section .region-summary-table th,
.region-detail-section .region-summary-table td {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.region-score-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.region-score-detail-grid div {
    align-content: start;
}

.region-score-detail-grid strong,
.region-score-detail-grid span,
.region-score-detail-grid small {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.region-score-detail-grid span {
    color: var(--text);
    font-size: 19px;
    font-weight: 900;
}

.region-legacy-details > .stats-grid,
.region-legacy-details > .content-band {
    margin-top: 18px;
}

.region-compare-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.region-compare-form fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.region-compare-form legend {
    padding: 0 6px;
    font-weight: 900;
}

.region-compare-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.region-compare-form span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.region-compare-form input,
.region-compare-form select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
}

.region-compare-form button {
    grid-column: 1 / -1;
}

.region-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.region-compare-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.region-compare-card h3 {
    margin: 0 0 8px;
}

.region-compare-card > strong {
    display: block;
    overflow-wrap: anywhere;
}

.region-compare-score {
    margin: 10px 0 4px;
    font-size: 34px;
    font-weight: 900;
}

.region-compare-report {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.region-compare-report > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 20px;
}

.region-compare-decision-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.region-compare-decision-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.region-compare-decision-grid span {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.region-compare-decision-grid strong {
    display: block;
    margin: 9px 0 6px;
}

.region-compare-decision-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.region-compare-risk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.region-compare-risk-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.region-compare-risk-grid span {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.region-compare-risk-grid strong {
    display: block;
    margin: 9px 0 6px;
}

.region-compare-risk-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.region-compare-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.region-compare-field-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.region-compare-field-grid span {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.region-compare-field-grid strong {
    display: block;
    margin: 9px 0 6px;
}

.region-compare-field-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.region-compare-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.region-compare-factor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.region-compare-factor-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.region-compare-factor-grid span {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.region-compare-factor-grid strong {
    display: block;
    margin: 9px 0 6px;
}

.region-compare-factor-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.region-compare-industry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.region-compare-industry-grid article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.region-compare-industry-grid h3 {
    margin: 0 0 12px;
}

.region-compare-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.region-compare-brand-grid article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.region-compare-brand-grid h3 {
    margin: 0 0 12px;
}

.region-compare-brand-grid p {
    margin: 12px 0 0;
}

.region-compare-competitor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.region-compare-competitor-grid article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.region-compare-competitor-grid h3 {
    margin: 0 0 12px;
}

.region-compare-competitor-grid p {
    margin: 12px 0 0;
}

.region-compare-calculator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.region-compare-calculator-grid article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.region-compare-calculator-grid h3 {
    margin: 0 0 12px;
}

.region-compare-calculator-grid dl {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

.region-compare-calculator-grid div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
}

.region-compare-calculator-grid dt {
    color: var(--muted);
    font-weight: 900;
}

.region-compare-calculator-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.region-compare-table {
    width: 980px;
    min-width: 980px;
}

.region-compare-basis-table {
    width: 900px;
    min-width: 900px;
}

.region-compare-radius-table {
    width: 1120px;
    min-width: 1120px;
}

.region-compare-industry-table {
    width: 820px;
    min-width: 820px;
}

.region-compare-brand-table {
    width: 760px;
    min-width: 760px;
}

.region-compare-competitor-table {
    width: 980px;
    min-width: 980px;
}

.region-compare-quality-table {
    width: 980px;
    min-width: 980px;
}

.analysis-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 12px 0 18px;
}

.analysis-card-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.analysis-card-grid h3 {
    margin: 0 0 10px;
}

.region-wide-table {
    width: 980px;
    min-width: 980px;
}

.competitor-table {
    width: 100%;
    min-width: 720px;
}

.competitor-table th:nth-child(1),
.competitor-table td:nth-child(1) {
    width: 34%;
}

.competitor-table th:nth-child(2),
.competitor-table td:nth-child(2) {
    width: 30%;
}

.competitor-table th:nth-child(3),
.competitor-table td:nth-child(3) {
    width: 24%;
}

.competitor-table th:nth-child(4),
.competitor-table td:nth-child(4) {
    width: 12%;
}

.region-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.compare-table {
    table-layout: fixed;
    width: 1220px;
    min-width: 1220px;
}

.compare-table th,
.compare-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-table th:nth-child(1),
.compare-table td:nth-child(1),
.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
    width: 180px;
}

.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
    width: 160px;
}

.compare-table th:nth-child(4),
.compare-table td:nth-child(4),
.compare-table th:nth-child(5),
.compare-table td:nth-child(5),
.compare-table th:nth-child(6),
.compare-table td:nth-child(6),
.compare-table th:nth-child(7),
.compare-table td:nth-child(7),
.compare-table th:nth-child(8),
.compare-table td:nth-child(8) {
    width: 130px;
}

.compare-table th:nth-child(9),
.compare-table td:nth-child(9) {
    width: 80px;
}

.compare-metric-cell {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    max-width: 100%;
}

.compare-metric-badge {
    background: #e9f2f1;
    border-radius: 999px;
    color: var(--accent-strong);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
}

.compare-metric-badge.warning {
    background: #fff3df;
    color: #9a4f00;
}

.compare-metric-legend {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 10px 16px;
    margin-top: 12px;
}

.compare-metric-legend span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.quality-detail-table,
.quality-sample-table,
.quality-year-table,
.quality-small-table,
.quality-anomaly-table,
.quality-shop-match-table,
.quality-shop-unmatched-table,
.quality-stale-table,
.quality-canonical-table,
.quality-variant-table,
.quality-duplicate-table {
    table-layout: fixed;
}

.quality-detail-table {
    width: 1240px;
    min-width: 1240px;
}

.shop-brand-results-table {
    width: 2040px;
    min-width: 2040px;
}

.quality-sample-table {
    width: 620px;
    min-width: 620px;
}

.quality-year-table,
.quality-stale-table,
.quality-anomaly-table {
    width: 860px;
    min-width: 860px;
}

.quality-shop-match-table {
    width: 1120px;
    min-width: 1120px;
}

.quality-shop-unmatched-table {
    width: 980px;
    min-width: 980px;
}

.quality-small-table {
    width: 420px;
    min-width: 420px;
}

.quality-canonical-table {
    width: 1580px;
    min-width: 1580px;
}

.quality-variant-table,
.quality-duplicate-table {
    width: 1220px;
    min-width: 1220px;
}

.quality-detail-table th,
.quality-detail-table td,
.quality-sample-table th,
.quality-sample-table td,
.quality-year-table th,
.quality-year-table td,
.quality-small-table th,
.quality-small-table td,
.quality-anomaly-table th,
.quality-anomaly-table td,
.quality-shop-match-table th,
.quality-shop-match-table td,
.quality-shop-unmatched-table th,
.quality-shop-unmatched-table td,
.quality-stale-table th,
.quality-stale-table td,
.quality-canonical-table th,
.quality-canonical-table td,
.quality-variant-table th,
.quality-variant-table td,
.quality-duplicate-table th,
.quality-duplicate-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quality-detail-table th:nth-child(1),
.quality-detail-table td:nth-child(1) {
    width: 100px;
}

.quality-detail-table th:nth-child(2),
.quality-detail-table td:nth-child(2),
.quality-detail-table th:nth-child(3),
.quality-detail-table td:nth-child(3) {
    width: 90px;
}

.quality-detail-table th:nth-child(4),
.quality-detail-table td:nth-child(4) {
    width: 140px;
}

.quality-detail-table th:nth-child(5),
.quality-detail-table td:nth-child(5),
.quality-detail-table th:nth-child(6),
.quality-detail-table td:nth-child(6) {
    width: 90px;
}

.quality-detail-table th:nth-child(7),
.quality-detail-table td:nth-child(7) {
    width: 190px;
}

.quality-detail-table th:nth-child(8),
.quality-detail-table td:nth-child(8),
.quality-detail-table th:nth-child(9),
.quality-detail-table td:nth-child(9) {
    width: 120px;
}

.quality-detail-table th:nth-child(10),
.quality-detail-table td:nth-child(10),
.quality-detail-table th:nth-child(11),
.quality-detail-table td:nth-child(11) {
    width: 80px;
}

.shop-brand-results-table th:nth-child(1),
.shop-brand-results-table td:nth-child(1) {
    width: 90px;
}

.shop-brand-results-table th:nth-child(2),
.shop-brand-results-table td:nth-child(2) {
    width: 190px;
}

.shop-brand-results-table th:nth-child(3),
.shop-brand-results-table td:nth-child(3) {
    width: 170px;
}

.shop-brand-results-table th:nth-child(4),
.shop-brand-results-table td:nth-child(4) {
    width: 170px;
}

.shop-brand-results-table th:nth-child(5),
.shop-brand-results-table td:nth-child(5) {
    width: 220px;
}

.shop-brand-results-table th:nth-child(6),
.shop-brand-results-table td:nth-child(6),
.shop-brand-results-table th:nth-child(7),
.shop-brand-results-table td:nth-child(7) {
    width: 140px;
}

.shop-brand-results-table th:nth-child(8),
.shop-brand-results-table td:nth-child(8),
.shop-brand-results-table th:nth-child(9),
.shop-brand-results-table td:nth-child(9) {
    width: 210px;
}

.shop-brand-results-table th:nth-child(10),
.shop-brand-results-table td:nth-child(10) {
    width: 140px;
}

.shop-brand-results-table th:nth-child(11),
.shop-brand-results-table td:nth-child(11) {
    width: 150px;
}

.shop-brand-results-table th:nth-child(12),
.shop-brand-results-table td:nth-child(12) {
    width: 150px;
}

.shop-brand-results-table th:nth-child(13),
.shop-brand-results-table td:nth-child(13) {
    width: 150px;
}

.shop-brand-results-table th:nth-child(14),
.shop-brand-results-table td:nth-child(14) {
    width: 220px;
}

.shop-brand-results-table tr.is-risk td {
    background: #fff8ed;
}

.shop-brand-results-table tr.is-confirmed td {
    background: #f0fdf4;
}

.shop-brand-results-table tr.is-local-chain td {
    background: #f8fafc;
}

.inline-review-form {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.inline-review-form input {
    min-width: 0;
    width: 100%;
}

.review-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.review-action-buttons button {
    border-radius: 6px;
    font-size: 12px;
    min-height: 28px;
    padding: 4px 7px;
}

.shop-match-tabs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.shop-match-tabs a {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    color: #25313f;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    text-decoration: none;
}

.shop-match-tabs a.is-active {
    background: #eef6ff;
    border-color: #2563eb;
    color: #123a77;
}

.shop-match-tabs span {
    color: #64748b;
    font-size: 13px;
}

.shop-match-evidence-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 16px;
}

.shop-match-evidence-grid article {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 14px;
}

.shop-match-evidence-grid h3 {
    font-size: 15px;
    margin: 0 0 10px;
}

.shop-match-evidence-grid ul {
    margin: 0;
    padding-left: 18px;
}

.risk-text {
    color: #b45309;
    display: block;
    font-weight: 700;
}

.quality-sample-table th:nth-child(1),
.quality-sample-table td:nth-child(1),
.quality-sample-table th:nth-child(2),
.quality-sample-table td:nth-child(2) {
    width: 165px;
}

.quality-sample-table th:nth-child(3),
.quality-sample-table td:nth-child(3) {
    width: 120px;
}

.quality-sample-table th:nth-child(4),
.quality-sample-table td:nth-child(4) {
    width: 105px;
}

.quality-sample-table th:nth-child(5),
.quality-sample-table td:nth-child(5) {
    width: 65px;
}

.quality-year-table th:nth-child(1),
.quality-year-table td:nth-child(1),
.quality-year-table th:nth-child(2),
.quality-year-table td:nth-child(2),
.quality-stale-table th:nth-child(1),
.quality-stale-table td:nth-child(1),
.quality-stale-table th:nth-child(2),
.quality-stale-table td:nth-child(2),
.quality-anomaly-table th:nth-child(1),
.quality-anomaly-table td:nth-child(1),
.quality-anomaly-table th:nth-child(2),
.quality-anomaly-table td:nth-child(2) {
    width: 220px;
}

.quality-year-table th:nth-child(3),
.quality-year-table td:nth-child(3),
.quality-stale-table th:nth-child(3),
.quality-stale-table td:nth-child(3),
.quality-anomaly-table th:nth-child(3),
.quality-anomaly-table td:nth-child(3) {
    width: 150px;
}

.quality-year-table th:nth-child(4),
.quality-year-table td:nth-child(4),
.quality-year-table th:nth-child(5),
.quality-year-table td:nth-child(5),
.quality-stale-table th:nth-child(4),
.quality-stale-table td:nth-child(4),
.quality-stale-table th:nth-child(5),
.quality-stale-table td:nth-child(5),
.quality-anomaly-table th:nth-child(4),
.quality-anomaly-table td:nth-child(4),
.quality-anomaly-table th:nth-child(5),
.quality-anomaly-table td:nth-child(5) {
    width: 110px;
}

.quality-year-table th:nth-child(6),
.quality-year-table td:nth-child(6),
.quality-stale-table th:nth-child(6),
.quality-stale-table td:nth-child(6),
.quality-anomaly-table th:nth-child(6),
.quality-anomaly-table td:nth-child(6) {
    width: 70px;
}

.quality-duplicate-table th:nth-child(1),
.quality-duplicate-table td:nth-child(1),
.quality-duplicate-table th:nth-child(2),
.quality-duplicate-table td:nth-child(2) {
    width: 210px;
}

.quality-duplicate-table th:nth-child(3),
.quality-duplicate-table td:nth-child(3) {
    width: 130px;
}

.quality-duplicate-table th:nth-child(4),
.quality-duplicate-table td:nth-child(4) {
    width: 70px;
}

.quality-duplicate-table th:nth-child(5),
.quality-duplicate-table td:nth-child(5) {
    width: 160px;
}

.quality-duplicate-table th:nth-child(6),
.quality-duplicate-table td:nth-child(6) {
    width: 170px;
}

.quality-duplicate-table th:nth-child(7),
.quality-duplicate-table td:nth-child(7) {
    width: 160px;
}

.quality-duplicate-table th:nth-child(8),
.quality-duplicate-table td:nth-child(8) {
    width: 110px;
}

.quality-variant-table th:nth-child(1),
.quality-variant-table td:nth-child(1) {
    width: 120px;
}

.quality-variant-table th:nth-child(2),
.quality-variant-table td:nth-child(2) {
    width: 280px;
}

.quality-variant-table th:nth-child(3),
.quality-variant-table td:nth-child(3) {
    width: 210px;
}

.quality-variant-table th:nth-child(4),
.quality-variant-table td:nth-child(4) {
    width: 130px;
}

.quality-variant-table th:nth-child(5),
.quality-variant-table td:nth-child(5) {
    width: 70px;
}

.quality-variant-table th:nth-child(6),
.quality-variant-table td:nth-child(6) {
    width: 160px;
}

.quality-variant-table th:nth-child(7),
.quality-variant-table td:nth-child(7) {
    width: 160px;
}

.quality-variant-table th:nth-child(8),
.quality-variant-table td:nth-child(8) {
    width: 90px;
}

.quality-canonical-table th:nth-child(1),
.quality-canonical-table td:nth-child(1) {
    width: 90px;
}

.quality-canonical-table th:nth-child(2),
.quality-canonical-table td:nth-child(2),
.quality-canonical-table th:nth-child(3),
.quality-canonical-table td:nth-child(3) {
    width: 110px;
}

.quality-canonical-table th:nth-child(4),
.quality-canonical-table td:nth-child(4) {
    width: 170px;
}

.quality-canonical-table th:nth-child(5),
.quality-canonical-table td:nth-child(5) {
    width: 130px;
}

.quality-canonical-table th:nth-child(6),
.quality-canonical-table td:nth-child(6) {
    width: 260px;
}

.quality-canonical-table th:nth-child(7),
.quality-canonical-table td:nth-child(7) {
    width: 280px;
}

.quality-canonical-table th:nth-child(8),
.quality-canonical-table td:nth-child(8) {
    width: 240px;
    white-space: normal;
}

.quality-canonical-table td:nth-child(8) .muted-text {
    display: block;
    margin-top: 4px;
}

.quality-canonical-table th:nth-child(9),
.quality-canonical-table td:nth-child(9) {
    width: 130px;
}

.quality-canonical-table th:nth-child(10),
.quality-canonical-table td:nth-child(10) {
    width: 90px;
}

.api-key-table,
.rule-admin-table,
.alias-rule-table,
.ad-admin-table,
.ad-slot-table,
.collector-log-table {
    table-layout: fixed;
}

.api-key-table {
    width: 1010px;
    min-width: 1010px;
}

.rule-admin-table {
    width: 1210px;
    min-width: 1210px;
}

.alias-rule-table {
    width: 1220px;
    min-width: 1220px;
}

.ad-admin-table {
    width: 1090px;
    min-width: 1090px;
}

.ad-slot-table {
    width: 820px;
    min-width: 820px;
}

.collector-log-table {
    width: 1130px;
    min-width: 1130px;
}

.api-key-table th,
.api-key-table td,
.rule-admin-table th,
.rule-admin-table td,
.alias-rule-table th,
.alias-rule-table td,
.ad-admin-table th,
.ad-admin-table td,
.ad-slot-table th,
.ad-slot-table td,
.collector-log-table th,
.collector-log-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-key-table th:nth-child(1),
.api-key-table td:nth-child(1) {
    width: 70px;
}

.api-key-table th:nth-child(2),
.api-key-table td:nth-child(2),
.api-key-table th:nth-child(3),
.api-key-table td:nth-child(3) {
    width: 150px;
}

.api-key-table th:nth-child(4),
.api-key-table td:nth-child(4) {
    width: 420px;
}

.api-key-table th:nth-child(5),
.api-key-table td:nth-child(5),
.api-key-table th:nth-child(6),
.api-key-table td:nth-child(6) {
    width: 110px;
}

.rule-admin-table th:nth-child(1),
.rule-admin-table td:nth-child(1) {
    width: 70px;
}

.rule-admin-table th:nth-child(2),
.rule-admin-table td:nth-child(2) {
    width: 110px;
}

.rule-admin-table th:nth-child(3),
.rule-admin-table td:nth-child(3) {
    width: 300px;
}

.rule-admin-table th:nth-child(4),
.rule-admin-table td:nth-child(4) {
    width: 430px;
}

.rule-admin-table th:nth-child(5),
.rule-admin-table td:nth-child(5),
.rule-admin-table th:nth-child(6),
.rule-admin-table td:nth-child(6),
.rule-admin-table th:nth-child(7),
.rule-admin-table td:nth-child(7) {
    width: 100px;
}

.alias-rule-table th:nth-child(1),
.alias-rule-table td:nth-child(1) {
    width: 70px;
}

.alias-rule-table th:nth-child(2),
.alias-rule-table td:nth-child(2),
.alias-rule-table th:nth-child(3),
.alias-rule-table td:nth-child(3) {
    width: 170px;
}

.alias-rule-table th:nth-child(4),
.alias-rule-table td:nth-child(4) {
    width: 140px;
}

.alias-rule-table th:nth-child(5),
.alias-rule-table td:nth-child(5) {
    width: 230px;
}

.alias-rule-table th:nth-child(6),
.alias-rule-table td:nth-child(6),
.alias-rule-table th:nth-child(7),
.alias-rule-table td:nth-child(7) {
    width: 100px;
}

.alias-rule-table th:nth-child(8),
.alias-rule-table td:nth-child(8) {
    width: 140px;
}

.ad-admin-table th:nth-child(1),
.ad-admin-table td:nth-child(1) {
    width: 64px;
}

.ad-admin-table th:nth-child(2),
.ad-admin-table td:nth-child(2) {
    width: 190px;
}

.ad-admin-table th:nth-child(3),
.ad-admin-table td:nth-child(3) {
    width: 220px;
}

.ad-admin-table th:nth-child(4),
.ad-admin-table td:nth-child(4),
.ad-admin-table th:nth-child(6),
.ad-admin-table td:nth-child(6),
.ad-admin-table th:nth-child(8),
.ad-admin-table td:nth-child(8) {
    width: 95px;
}

.ad-admin-table th:nth-child(5),
.ad-admin-table td:nth-child(5) {
    width: 210px;
}

.ad-admin-table th:nth-child(7),
.ad-admin-table td:nth-child(7) {
    width: 120px;
}

.ad-slot-table th:nth-child(1),
.ad-slot-table td:nth-child(1) {
    width: 260px;
}

.ad-slot-table th:nth-child(2),
.ad-slot-table td:nth-child(2) {
    width: 260px;
}

.ad-slot-table th:nth-child(3),
.ad-slot-table td:nth-child(3),
.ad-slot-table th:nth-child(4),
.ad-slot-table td:nth-child(4),
.ad-slot-table th:nth-child(5),
.ad-slot-table td:nth-child(5) {
    width: 100px;
}

.collector-log-table th:nth-child(1),
.collector-log-table td:nth-child(1) {
    width: 70px;
}

.collector-log-table th:nth-child(2),
.collector-log-table td:nth-child(2) {
    width: 230px;
}

.collector-log-table th:nth-child(3),
.collector-log-table td:nth-child(3),
.collector-log-table th:nth-child(4),
.collector-log-table td:nth-child(4),
.collector-log-table th:nth-child(5),
.collector-log-table td:nth-child(5),
.collector-log-table th:nth-child(6),
.collector-log-table td:nth-child(6) {
    width: 90px;
}

.collector-log-table th:nth-child(7),
.collector-log-table td:nth-child(7) {
    width: 310px;
}

.collector-log-table th:nth-child(8),
.collector-log-table td:nth-child(8) {
    width: 160px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    background: #e9f2f1;
    color: var(--accent-strong);
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 800;
}

.brand-trust-badges,
.brand-trust-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.brand-trust-inline {
    margin-top: 8px;
}

.brand-trust-inline small,
.brand-trust-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.brand-trust-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-trust-badge.is-good {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.brand-trust-badge.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.brand-trust-badge.is-caution {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.brand-trust-badge.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.brand-trust-panel .section-title {
    align-items: flex-start;
    gap: 16px;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.actions form {
    margin: 0;
}

.link-button {
    border: 0;
    background: transparent;
    color: #a33b2b;
    padding: 0;
    font: inherit;
    font-weight: 700;
}

.ad-slot {
    border: 1px dashed #b8c8c5;
    border-radius: 8px;
    background: #f8fbfa;
    margin: 18px 0;
    padding: 14px;
}

.ad-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.ad-content {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-align: center;
}

.ad-slot-direct {
    border-style: solid;
    background: #fff;
}

.ad-slot-direct img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.ad-slot-empty .ad-content {
    background: #eef4f2;
    border-radius: 6px;
}

.ad-slot-adsense .ad-content {
    display: block;
    min-height: 120px;
    text-align: left;
}

.ad-slot-adsense ins.adsbygoogle {
    display: block;
    width: 100%;
    min-height: 90px;
}

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

.collector-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.quality-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 14px;
}

.quality-report-grid article {
    min-width: 0;
}

.quality-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.quality-filter-tabs a {
    min-width: 92px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    background: #fff;
}

.quality-filter-tabs a.is-active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

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

.collector-panel {
    align-self: start;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 24px;
    align-items: start;
}

.contact-form {
    min-width: 0;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-guide {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfa;
    padding: 18px;
}

.contact-guide h2 {
    margin-top: 0;
}

.dashboard-contact-list {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
}

.dashboard-contact-list h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.dashboard-contact-list li {
    display: grid;
    gap: 4px;
}

.contact-privacy {
    margin-bottom: 14px;
}

.contact-privacy a {
    margin-left: 8px;
    font-weight: 800;
}

.policy-page {
    display: grid;
    gap: 18px;
}

.policy-section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.policy-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.policy-section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.form-error {
    color: #a33b2b;
    font-weight: 800;
}

.contact-admin-filter {
    max-width: none;
}

.contact-admin-table {
    table-layout: fixed;
    width: 1320px;
    min-width: 1320px;
}

.contact-admin-table th,
.contact-admin-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.contact-admin-table th:nth-child(1),
.contact-admin-table td:nth-child(1) {
    width: 70px;
}

.contact-admin-table th:nth-child(2),
.contact-admin-table td:nth-child(2) {
    width: 170px;
}

.contact-admin-table th:nth-child(3),
.contact-admin-table td:nth-child(3),
.contact-admin-table th:nth-child(4),
.contact-admin-table td:nth-child(4) {
    width: 130px;
}

.contact-admin-table th:nth-child(5),
.contact-admin-table td:nth-child(5) {
    width: 210px;
}

.contact-admin-table th:nth-child(6),
.contact-admin-table td:nth-child(6) {
    width: 280px;
}

.contact-admin-table th:nth-child(7),
.contact-admin-table td:nth-child(7) {
    width: 180px;
}

.contact-admin-table th:nth-child(8),
.contact-admin-table td:nth-child(8) {
    width: 260px;
}

.contact-message-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    white-space: normal;
}

.contact-message-detail {
    margin-top: 10px;
    white-space: normal;
}

.contact-message-detail summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 800;
}

.contact-message-detail p {
    margin: 10px 0;
    color: var(--text);
    line-height: 1.7;
}

.contact-message-detail dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 6px 10px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.contact-message-detail dt {
    font-weight: 800;
    color: var(--text);
}

.contact-message-detail dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.contact-admin-note-form {
    display: grid;
    gap: 8px;
}

.contact-admin-note-form select,
.contact-admin-note-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    font: inherit;
}

.contact-admin-note-form button {
    justify-self: start;
    padding: 9px 12px;
}

.collector-panel .admin-form {
    gap: 12px;
}

.compact-title {
    margin-bottom: 14px;
}

.compact-title h2 {
    margin-bottom: 4px;
}

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

.compact-textarea {
    min-height: 110px;
    font-size: 13px;
    line-height: 1.55;
}

.collector-grid form {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.collector-grid span {
    color: var(--muted);
    font-size: 14px;
}

.form-inline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.job-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 18px;
    color: var(--muted);
}

.job-summary.compact {
    gap: 10px 18px;
    margin: 8px 0 12px;
}

.job-summary.compact span {
    white-space: nowrap;
}

.job-summary strong {
    color: var(--text);
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #e3eaed;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: inherit;
    transition: width .25s ease;
}

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

.compact-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-step {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 6px;
}

.job-step span {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
}

.job-step small {
    color: var(--muted);
}

.plain-details {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 12px;
}

.plain-details summary,
details.content-band summary {
    cursor: pointer;
    font-weight: 800;
}

.plain-details summary {
    margin-bottom: 12px;
}

.status-details {
    margin-top: 18px;
}

.compact-status-band {
    padding-top: 20px;
    padding-bottom: 20px;
}

.home-action-card,
.home-brand-card,
.home-content-card,
.compare-brand-summary-card,
.compare-cost-grid article,
.region-priority-section .industry-recommendation-grid > article,
.region-industry-card-list div,
.region-competitor-card,
.chart-card {
    border-radius: var(--radius-card);
}

.home-action-card,
.home-brand-card,
.home-content-card,
.compare-brand-summary-card,
.region-competitor-card {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-action-card:hover,
.home-brand-card:hover,
.home-content-card:hover,
.compare-brand-summary-card:hover,
.region-competitor-card:hover {
    border-color: #b9d8d4;
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.brand-next-actions,
.compare-next-actions,
.calculator-next-actions,
.region-next-actions {
    border-color: #cfe0dd;
    background:
        linear-gradient(135deg, rgba(18, 107, 95, .08), rgba(255, 255, 255, 0) 58%),
        #f8fbfa;
}

.brand-next-actions h2,
.compare-next-actions h2,
.calculator-next-actions h2,
.region-next-actions h2 {
    margin-bottom: 8px;
}

.brand-next-action-buttons,
.calculator-action-row,
.region-action-row,
.compare-next-actions .hero-actions {
    gap: 10px;
}

.brand-next-action-buttons .button,
.calculator-action-row .button,
.region-action-row .button,
.compare-next-actions .hero-actions .button {
    min-height: 46px;
    min-width: 152px;
}

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

.quality-grid div,
.sample-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 6px;
}

.quality-grid span,
.muted-text {
    color: var(--muted);
}

.guide-action-link {
    justify-self: start;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
}

.sample-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sample-box a {
    color: var(--accent-strong);
    font-weight: 750;
}

@media (max-width: 1024px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .stats-grid,
    .brand-decision-cards,
    .brand-cost-summary-grid,
    .brand-checklist-grid,
    .collector-overview-grid,
    .quality-report-grid,
    .collector-grid,
    .analysis-card-grid,
    .industry-brand-grid,
    .industry-recommendation-grid,
    .region-map-layout,
    .region-compare-decision-grid,
    .region-compare-risk-grid,
    .region-compare-factor-grid,
    .region-score-detail-grid,
    .compare-decision-cards,
    .compare-cost-grid,
    .sample-search-grid,
    .cost-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .api-key-layout,
    .calculator-context,
    .compare-context,
    .compare-next-actions,
    .brand-next-actions,
    .region-store-structure,
    .region-next-actions,
    .calculator-decision-shell,
    .calculator-next-actions,
    .calculator-shell {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .home-hero-main,
    .home-insight-showcase,
    .home-data-basis {
        grid-template-columns: 1fr;
    }

    .home-start-actions,
    .home-quick-actions,
    .home-brand-grid,
    .home-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-brand-title {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .home-brand-title > p {
        max-width: none;
        padding-top: 0;
    }

    .home-brand-tabs {
        gap: 22px;
    }

    .home-brand-tablist {
        width: 100%;
        border-radius: 14px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-process-flow {
        gap: 22px;
        margin-top: 42px;
        margin-bottom: 28px;
        padding: 30px;
        text-align: center;
    }

    .home-process-copy {
        grid-template-columns: 1fr;
        justify-items: center;
        max-width: 560px;
        margin: 0 auto;
    }

    .home-process-copy p {
        justify-self: center;
        max-width: 520px;
    }

    .home-insight-showcase {
        padding: 26px;
    }

    .home-insight-stage {
        min-height: 348px;
    }

    .home-data-basis {
        gap: 22px;
        padding: 30px 0;
    }

    .home-final-cta {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .home-final-cta .hero-actions {
        grid-column: auto;
        grid-row: auto;
        justify-content: center;
        margin-top: 2px;
    }

    .site-header {
        position: relative;
        z-index: 60;
    }

    .header-inner {
        min-height: 58px;
        align-items: center;
        flex-direction: row;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .brand-logo img {
        height: 34px;
        max-width: 168px;
    }

    .public-menu-toggle {
        display: inline-flex;
        position: relative;
        z-index: 65;
        flex: 0 0 auto;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 62;
        width: 100%;
        min-height: 100vh;
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
        gap: 12px;
        border: 0;
        border-radius: 0;
        background:
            radial-gradient(circle at 100% 0%, rgba(18, 107, 95, .13), transparent 32%),
            linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 250, 249, .98)),
            #f8fcfb;
        box-shadow: none;
        padding: 92px max(24px, calc((100vw - 620px) / 2)) 38px;
        overflow-y: auto;
    }

    .nav.is-open {
        display: grid;
    }

    .nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        border: 1px solid rgba(203, 220, 217, .85);
        border-radius: 14px;
        background: rgba(255, 255, 255, .82);
        color: var(--text);
        padding: 14px 18px;
        font-size: 18px;
        font-weight: 900;
        line-height: 1.2;
        text-align: left;
        box-shadow: 0 10px 24px rgba(23, 32, 38, .04);
    }

    .nav a::after {
        content: "→";
        color: var(--accent-strong);
        font-weight: 900;
    }

    .nav a.active,
    .nav a[aria-current="page"] {
        border-color: rgba(18, 107, 95, .25);
        background: #e9f7f4;
        color: var(--accent-strong);
        font-weight: 900;
    }

    .public-menu-note {
        display: block;
        margin: 8px 0 0;
        color: var(--muted);
        font-size: 14px;
        font-weight: 750;
        line-height: 1.6;
        text-align: center;
    }

    body.public-menu-open {
        overflow: hidden;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer-brand {
        justify-items: center;
        max-width: 640px;
    }

    .site-footer-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-self: center;
        width: min(100%, 760px);
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 40;
        height: auto;
        max-height: none;
        padding: 12px 18px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    }

    .sidebar-head {
        min-height: 44px;
    }

    .sidebar .brand {
        display: inline-flex;
        font-size: 18px;
    }

    .sidebar-logo img {
        height: 34px;
        max-width: 156px;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .sidebar-toggle.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .sidebar-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .sidebar-toggle.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .sidebar nav {
        display: none;
        gap: 8px;
        margin-top: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 18px;
        scrollbar-gutter: auto;
    }

    .sidebar nav.is-open {
        display: grid;
        position: fixed;
        top: 68px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 35;
        grid-template-columns: 1fr;
        align-content: start;
        background: #172026;
        border-top: 1px solid rgba(255, 255, 255, .12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    }

    .sidebar a,
    .sidebar-advanced summary,
    .sidebar-logout button {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        border-radius: 8px;
        background: rgba(255, 255, 255, .05);
        color: #e8eff2;
        white-space: normal;
    }

    .sidebar-advanced a {
        margin-top: 6px;
        padding-left: 20px;
    }

    .sidebar a.active {
        background: rgba(255, 255, 255, .16);
    }

    .sidebar-logout button {
        width: 100%;
    }

    .admin-main {
        padding: 22px 18px 28px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .nav {
        padding-right: 20px;
        padding-left: 20px;
    }

    .nav a {
        min-height: 56px;
        font-size: 17px;
    }

    .home-hero {
        padding: 34px 0;
    }

    .home-hero-main {
        gap: 22px;
    }

    .home-hero-copy h1 {
        font-size: 38px;
        line-height: 1.18;
    }

    .home-hero-copy p {
        font-size: 16px;
    }

    .home-search-card {
        padding: 18px;
    }

    .home-search-grid,
    .home-process-steps,
    .home-donut-card,
    .home-insight-metrics,
    .home-structure-grid {
        grid-template-columns: 1fr;
    }

    .home-process-steps::before {
        display: none;
    }

    .home-process-flow {
        margin-top: 34px;
        margin-bottom: 24px;
        padding: 22px;
        text-align: left;
    }

    .home-process-copy {
        justify-items: start;
        margin: 0;
    }

    .home-process-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-process-steps li {
        padding: 10px;
    }

    .home-process-steps li:last-child {
        grid-column: auto;
    }

    .home-process-steps strong {
        font-size: 14px;
    }

    .home-insight-showcase {
        padding: 22px;
    }

    .home-insight-lenses {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        border-radius: 14px;
    }

    .home-insight-lenses button {
        min-height: 38px;
    }

    .home-insight-panel-head {
        display: grid;
        gap: 4px;
    }

    .home-insight-stage {
        min-height: 460px;
    }

    .home-data-basis-list {
        grid-template-columns: 1fr;
    }

    .home-data-basis-list div:nth-child(odd) {
        border-right: 0;
    }

    .home-data-basis-list div:nth-child(-n + 3) {
        border-bottom: 1px solid rgba(203, 220, 217, .85);
    }

    .home-insight-donut {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
    }

    .home-insight-legend {
        width: 100%;
    }

    .home-line-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-line-summary div {
        padding: 9px 8px;
    }

    .home-line-summary strong {
        font-size: 14px;
    }

    .home-start-actions,
    .home-quick-actions,
    .home-brand-grid,
    .home-content-grid {
        grid-template-columns: 1fr;
    }

    .home-brand-tablist {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        justify-content: stretch;
        justify-self: center;
        width: 100%;
        overflow: visible;
        gap: 4px;
        padding: 5px;
    }

    .home-brand-panel {
        gap: 16px;
    }

    .home-brand-tablist button {
        font-size: 12px;
        min-height: 36px;
        padding: 8px 4px;
        white-space: normal;
        word-break: keep-all;
    }

    .home-final-cta {
        padding: 24px 20px;
        justify-items: stretch;
        text-align: left;
    }

    .home-final-cta .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        justify-content: stretch;
        width: 100%;
    }

    .home-final-cta .button {
        width: 100%;
        justify-content: center;
    }

    .home-action-card,
    .home-brand-card,
    .home-content-card {
        min-height: auto;
    }

    .home-brand-card {
        grid-template-rows: auto;
        min-height: auto;
    }

    .home-brand-card strong,
    .home-brand-card > span:not(.home-brand-bridge) {
        min-height: 0;
    }

    .home-brand-stats {
        gap: 6px;
    }

    .site-footer {
        padding: 32px 0 38px;
    }

    .site-footer-inner {
        gap: 18px;
        padding-top: 22px;
    }

    .site-footer-logo {
        max-width: 180px;
    }

    .site-footer-brand p,
    .site-footer-notice {
        font-size: 14px;
    }

    .site-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: min(100%, 420px);
    }

    .site-footer-links a {
        min-height: 40px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .search-box,
    .section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .content-band {
        margin: 14px 0;
        padding: 18px;
    }

    .metric-card {
        padding: 18px;
    }

    .hero {
        padding: 38px 0 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box {
        max-width: none;
    }

    .search-box button,
    .region-search-box button,
    .admin-form button,
    .calculator-form button,
    .collector-grid button,
    .form-inline-grid button {
        width: 100%;
    }

    input,
    select,
    textarea,
    button,
    .button {
        max-width: 100%;
    }

    .compare-candidate-controls {
        justify-content: flex-start;
    }

    .stats-grid,
    .brand-hero-meta,
    .brand-decision-cards,
    .brand-cost-summary-grid,
    .brand-checklist-grid,
    .api-key-layout,
    .collector-overview-grid,
    .quality-report-grid,
    .collector-action-grid,
    .contact-layout,
    .contact-form-grid,
    .two-column,
    .calculator-shell,
    .calculator-decision-shell,
    .calculator-next-actions,
    .calculator-context,
    .calculator-context-grid,
    .calculator-result-grid,
    .compare-context,
    .compare-context-grid,
    .compare-decision-cards,
    .compare-brand-summary-grid,
    .compare-cost-grid,
    .compare-next-actions,
    .brand-next-actions,
    .compact-results,
    .admin-shell,
    .chart-grid,
    .collector-grid,
    .form-inline-grid,
    .job-steps,
    .quality-grid,
    .region-table-grid,
    .region-search-box,
    .region-mode-panel,
    .region-industry-picker,
    .region-search-advanced-grid,
    .region-environment-grid,
    .region-store-structure,
    .region-store-structure-grid,
    .region-next-actions,
    .analysis-card-grid,
    .search-insight-grid,
    .region-map-layout,
    .region-map-summary-grid,
    .radius-profile-grid,
    .decision-checklist-grid,
    .region-compare-form,
    .region-compare-form fieldset,
    .region-compare-grid,
    .region-compare-decision-grid,
    .region-compare-risk-grid,
    .region-compare-field-grid,
    .region-compare-factor-grid,
    .region-compare-industry-grid,
    .region-compare-brand-grid,
    .region-compare-competitor-grid,
    .region-compare-calculator-grid,
    .map-placeholder dl,
    .sample-search-grid,
    .cost-grid {
        grid-template-columns: 1fr;
    }

    .region-search-wide {
        grid-column: auto;
    }

    .brand-row {
        display: grid;
    }

    .brand-review-summary p:last-child {
        font-size: 18px;
    }

    .brand-cost-summary-grid article:first-child {
        grid-column: auto;
    }

    .brand-next-action-buttons {
        justify-content: stretch;
    }

    .brand-next-action-buttons .button {
        width: 100%;
    }

    .calculator-action-row {
        justify-content: stretch;
    }

    .calculator-action-row .button {
        width: 100%;
    }

    .compare-next-actions .hero-actions,
    .region-action-row {
        justify-content: stretch;
    }

    .compare-next-actions .hero-actions .button {
        width: 100%;
    }

    .region-map-toolbar {
        display: grid;
    }

    .region-map-badges {
        justify-content: flex-start;
    }

    .region-map-canvas {
        height: 340px;
        min-height: 280px;
    }

    .region-simple-hero {
        padding-top: 34px;
    }

    .region-simple-hero h1 {
        font-size: 38px;
        line-height: 1.18;
    }

    .region-simple-hero p {
        font-size: 16px;
    }

    .region-start-guide article,
    .region-core-grid .metric-card {
        min-height: auto;
    }

    .region-competitor-card,
    .region-competitor-card dl {
        grid-template-columns: 1fr;
    }

    .region-map-layout > .map-placeholder {
        min-height: 0;
    }

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

    .region-conclusion-card h2 {
        font-size: 22px;
    }

    .region-mode-tabs {
        width: 100%;
    }

    .industry-panel-head {
        display: grid;
    }

    .industry-brand-grid {
        grid-template-columns: 1fr;
    }

    .industry-recommendation-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 40;
        height: auto;
        max-height: none;
        padding: 12px 16px;
    }

    .sidebar .brand {
        display: inline-flex;
        font-size: 18px;
    }

    .brand-logo img {
        height: 34px;
        max-width: 156px;
    }

    .sidebar-logo img {
        height: 32px;
        max-width: 142px;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .sidebar nav {
        padding: 14px 16px 22px;
    }

    .sidebar nav.is-open {
        top: 60px;
    }

    .sidebar a,
    .sidebar-logout button {
        width: 100%;
        white-space: normal;
    }

    .sidebar-logout button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 20px, 1120px);
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 21px;
    }

    th,
    td {
        padding: 10px 8px;
    }

    .content-band {
        padding: 16px;
    }

    .site-footer-logo {
        max-width: 164px;
    }

    .site-footer-links {
        grid-template-columns: 1fr;
        width: min(100%, 320px);
    }

    .site-footer-links a {
        justify-content: center;
        min-height: 38px;
        text-align: center;
    }

    .region-simple-hero h1 {
        font-size: 34px;
    }

    .region-map-summary-grid div {
        padding: 10px;
    }

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

    .region-action-row .button {
        width: 100%;
    }

    .sidebar nav.is-open {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .home-insight-stage {
        min-height: 520px;
    }

    .home-line-summary {
        grid-template-columns: 1fr;
    }

    .home-line-summary strong {
        font-size: 16px;
    }
}
