/* GA-style flat light interface */
:root {
    --black: #000000;
    --white: #ffffff;
    --blue: #00a9a5;
    --light-blue: #66d6d0;
    --blue-bg: #e8f8f7;
    --nio-teal: #00a9a5;
    --paper: #f7f8fa;
    --line: #d8dde3;
    --line-dark: #111111;
    --text: #050505;
    --muted: #66707a;
    --muted-2: #8b949e;
    --ink: #050505;
    --ink-muted: #66707a;
    --success: #0f8f4f;
    --warning: #b26a00;
    --error: #d22d2d;
    --radius: 6px;
    --header-height: 76px;
}

/* Article page overrides stay last so legacy shared card styles cannot win. */
body.articles-route .articles-page {
    gap: 0;
}

body.articles-route .article-list {
    border: 0;
    background: transparent;
}

body.articles-route .article-item {
    padding: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

body.articles-route .article-item:hover {
    background: transparent;
}

body.articles-route .article-title {
    color: var(--ink);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.4;
}

body.articles-route .article-summary {
    max-width: 820px;
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.72;
}

body.article-detail-route .detail-page {
    display: grid;
    gap: 54px;
}

body.article-detail-route .detail-heading {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 42px;
    padding: 18px 0 38px;
    border-bottom: 1px solid var(--line-dark);
}

body.article-detail-route .detail-title {
    max-width: 980px;
    margin-top: 13px;
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1.16;
}

body.article-detail-route .detail-meta {
    margin-top: 24px;
}

body.article-detail-route .detail-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 68px;
}

body.article-detail-route .detail-content,
body.article-detail-route .detail-panel {
    border: 0;
    background: transparent;
}

body.article-detail-route .detail-content-header {
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

body.article-detail-route .summary-reading {
    max-width: 780px;
    padding: 34px 0 8px;
    font-size: 16px;
    line-height: 1.95;
}

body.article-detail-route .detail-source-links {
    padding: 22px 0 0;
}

body.article-detail-route .detail-panel {
    padding: 0 0 28px;
}

body.article-detail-route .detail-panel + .detail-panel {
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

body.article-detail-route .detail-panel h2 {
    font-size: 17px;
    font-weight: 500;
}

body.article-detail-route .knowledge-links {
    border-right: 0;
    border-left: 0;
}

@media (max-width: 860px) {
    body.article-detail-route .detail-heading,
    body.article-detail-route .detail-layout {
        grid-template-columns: 1fr;
    }

    body.article-detail-route .detail-heading {
        align-items: start;
    }

    body.article-detail-route .detail-layout {
        gap: 48px;
    }
}

@media (max-width: 620px) {
    body.articles-route .article-title {
        font-size: 18px;
    }

    body.article-detail-route .detail-page {
        gap: 38px;
    }

    body.article-detail-route .detail-heading {
        gap: 28px;
        padding: 6px 0 28px;
    }

    body.article-detail-route .detail-title {
        font-size: 34px;
    }

    body.article-detail-route .summary-reading {
        padding-top: 28px;
        font-size: 15px;
    }
}

/* Competitor privacy compliance version monitor. */
body.competitor-route .container {
    width: min(1260px, 100%);
    padding-top: 48px;
}

.competitor-heading {
    align-items: end;
    padding: 18px 0 32px;
    border-bottom: 1px solid var(--line-dark);
}

.competitor-heading .page-title {
    margin-top: 8px;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 500;
}

.competitor-heading .page-lede {
    max-width: 720px;
    margin-top: 13px;
    color: var(--ink-muted);
    font-size: 13px;
}

.competitor-monitor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 11px;
}

.competitor-monitor-stats strong {
    color: var(--ink);
    font-weight: 600;
}

.competitor-add-panel {
    margin-top: 28px;
    border-bottom: 1px solid var(--line);
}

.competitor-add-panel > summary {
    width: max-content;
    padding-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.competitor-add-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 0 28px;
}

.competitor-add-form label {
    display: grid;
    gap: 7px;
}

.competitor-add-form label > span {
    color: var(--ink-muted);
    font-size: 10px;
}

.competitor-add-form input,
.competitor-add-form select {
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #b7c0c1;
    border-radius: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.competitor-url-field { grid-column: 1 / -2; }
.competitor-add-form .btn { align-self: end; }

.competitor-form-error {
    margin: 18px 0 0;
    padding: 10px 0;
    color: #a13c35;
    border-bottom: 1px solid #d8b5b2;
    font-size: 11px;
}

.competitor-target-section { margin-top: 42px; }

.competitor-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-dark);
}

.competitor-section-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.competitor-section-heading > span {
    color: var(--ink-muted);
    font-size: 10px;
}

.competitor-target-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.competitor-target-main {
    min-width: 0;
    min-height: 76px;
    display: grid;
    grid-template-columns: 110px minmax(250px, 1fr) 80px 145px 90px;
    gap: 16px;
    align-items: center;
    color: var(--ink);
}

.competitor-target-row:hover { background: #f5f7f7; }

.competitor-company,
.competitor-version,
.competitor-source-date,
.competitor-monitor-status {
    color: var(--ink-muted);
    font-size: 10px;
}

.competitor-document { min-width: 0; }

.competitor-document strong,
.competitor-document small { display: block; }

.competitor-document strong {
    font-size: 14px;
    font-weight: 600;
}

.competitor-document small {
    margin-top: 5px;
    color: var(--ink-muted);
    font-size: 10px;
}

.competitor-monitor-status.status-changed {
    color: #9b3e36;
    font-weight: 600;
}

.competitor-monitor-status.status-baseline,
.competitor-monitor-status.status-unchanged { color: var(--nio-teal); }

.competitor-toggle {
    padding: 8px 3px;
    border: 0;
    color: var(--ink-muted);
    background: transparent;
    font-size: 10px;
    cursor: pointer;
}

.competitor-breadcrumb {
    display: flex;
    gap: 8px;
    color: var(--ink-muted);
    font-size: 10px;
}

.competitor-detail-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 0 28px;
    border-bottom: 1px solid var(--line-dark);
}

.competitor-detail-heading p {
    margin: 0 0 8px;
    color: var(--nio-teal);
    font-size: 10px;
}

.competitor-detail-heading h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.18;
}

.competitor-detail-heading a {
    display: inline-block;
    margin-top: 15px;
    color: var(--ink-muted);
    font-size: 11px;
}

.competitor-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 56px;
    margin-top: 40px;
}

.competitor-document-text,
.competitor-diff {
    margin: 0;
    overflow: auto;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.competitor-document-text {
    padding: 28px 0;
    font-size: 13px;
    line-height: 1.85;
}

.competitor-version-item { border-bottom: 1px solid var(--line); }

.competitor-version-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    cursor: pointer;
}

.competitor-version-item summary span {
    color: var(--nio-teal);
    font-size: 11px;
    font-weight: 600;
}

.competitor-version-item summary strong {
    font-size: 11px;
    font-weight: 500;
}

.competitor-version-item > div { padding: 0 0 18px; }

.competitor-version-item p,
.competitor-version-item small {
    color: var(--ink-muted);
    font-size: 10px;
}

.competitor-diff {
    max-height: 420px;
    margin-top: 14px;
    padding: 12px;
    background: #f3f6f6;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    line-height: 1.55;
}

@media (max-width: 850px) {
    .competitor-target-main { grid-template-columns: 90px minmax(220px, 1fr) 65px 85px; }
    .competitor-source-date { display: none; }
    .competitor-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    body.competitor-route .container { padding-top: 24px; }
    .competitor-heading,
    .competitor-detail-heading { align-items: flex-start; flex-direction: column; }
    body.competitor-route .competitor-heading .page-title {
        max-width: 100%;
        font-size: 32px;
        line-height: 1.14;
        overflow-wrap: anywhere;
    }
    .competitor-heading .page-lede {
        font-size: 12px;
        line-height: 1.65;
    }
    .competitor-detail-heading h1 {
        max-width: 100%;
        font-size: 32px;
        overflow-wrap: anywhere;
    }
    .competitor-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    .competitor-add-form { grid-template-columns: 1fr; }
    .competitor-url-field { grid-column: auto; }
    .competitor-target-main {
        grid-template-columns: 1fr auto;
        gap: 6px 12px;
        padding: 14px 0;
    }
    .competitor-company { grid-column: 1; }
    .competitor-document { grid-column: 1 / -1; grid-row: 1; }
    .competitor-version { grid-column: 2; grid-row: 2; }
    .competitor-monitor-status { grid-column: 1; grid-row: 3; }
    .competitor-source-date { display: none; }
}

/* Unified editorial reading experience for article index and detail pages. */
body.articles-route .container,
body.article-detail-route .container {
    width: min(1220px, 100%);
    padding-top: 54px;
}

.articles-page {
    gap: 0;
}

.article-index-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px;
    padding: 20px 0 34px;
}

.article-index-title h1 {
    max-width: 900px;
    margin-top: 9px;
    color: var(--ink);
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.08;
}

.article-context-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 18px;
    padding-bottom: 7px;
    color: var(--ink-muted);
    font-size: 12px;
}

.article-context-line span + span::before,
.detail-meta span + span::before,
.article-meta span + span::before {
    margin-right: 10px;
    color: #b8bec3;
    content: "/";
}

.articles-page .article-search-tools {
    margin: 0 0 36px;
    padding-top: 18px;
    border-top: 1px solid var(--line-dark);
}

.articles-page .article-quick-search {
    border-bottom-color: var(--line);
}

.articles-page .advanced-search-trigger {
    border-color: var(--line);
}

.article-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line-dark);
    font-weight: 500;
}

.article-results-bar span:last-child {
    font-size: 11px;
    font-weight: 400;
}

.articles-page .article-list {
    border: 0;
    background: transparent;
}

.articles-page .article-item {
    padding: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.articles-page .article-item:hover {
    background: transparent;
}

.article-item-link {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr) 22px;
    gap: 28px;
    align-items: start;
    min-height: 148px;
    padding: 28px 2px;
    color: var(--ink);
}

.article-item-side {
    display: grid;
    gap: 7px;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.45;
}

.article-item-side time {
    color: var(--ink);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.article-item-body {
    min-width: 0;
}

.articles-page .article-meta {
    gap: 0;
    margin: 0 0 9px;
    color: var(--nio-teal);
    font-size: 11px;
    font-weight: 600;
}

.articles-page .article-title {
    max-width: 900px;
    color: var(--ink);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.4;
    transition: color .2s ease;
}

.articles-page .article-summary {
    max-width: 820px;
    margin-top: 9px;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.72;
}

.article-new-label {
    color: var(--nio-teal);
    font-size: 9px;
    font-weight: 700;
}

.article-item-arrow {
    padding-top: 30px;
    color: var(--muted-2);
    font-size: 14px;
    text-align: right;
    transition: color .2s ease, transform .2s ease;
}

.article-item-link:hover .article-title,
.article-item-link:focus-visible .article-title {
    color: var(--nio-teal);
}

.article-item-link:hover .article-item-arrow,
.article-item-link:focus-visible .article-item-arrow {
    color: var(--nio-teal);
    transform: translate(2px, -2px);
}

.articles-page .pagination {
    padding-top: 26px;
}

.detail-page {
    display: grid;
    gap: 54px;
}

.detail-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 42px;
    padding: 18px 0 38px;
    border-bottom: 1px solid var(--line-dark);
}

.detail-heading-main {
    min-width: 0;
}

.detail-back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--ink-muted);
    font-size: 12px;
}

.detail-back-link:hover {
    color: var(--nio-teal);
}

.detail-title {
    max-width: 980px;
    margin-top: 13px;
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1.16;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 24px;
    color: var(--ink-muted);
    font-size: 12px;
}

.detail-origin-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-width: 138px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.detail-origin-link:hover {
    border-color: var(--nio-teal);
    color: var(--nio-teal);
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 68px;
}

.detail-content,
.detail-panel {
    border: 0;
    background: transparent;
}

.detail-content-header {
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.detail-content-header h2 {
    margin-top: 5px;
    font-size: 24px;
    font-weight: 500;
}

.detail-archive-status {
    color: var(--success);
    font-size: 11px;
}

.summary-reading {
    max-width: 780px;
    padding: 34px 0 8px;
    font-size: 16px;
    line-height: 1.95;
}

.summary-reading h1,
.summary-reading h2,
.summary-reading h3,
.summary-reading h4 {
    margin: 30px 0 14px;
    font-weight: 500;
}

.summary-reading h1:first-child,
.summary-reading h2:first-child,
.summary-reading h3:first-child {
    margin-top: 0;
}

.summary-reading h2 {
    font-size: 24px;
}

.summary-reading h3 {
    font-size: 20px;
}

.summary-reading li {
    margin: 9px 0;
}

.detail-source-links {
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
}

.detail-keywords {
    margin-top: 24px;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.7;
}

.detail-aside {
    gap: 0;
}

.detail-panel {
    padding: 0 0 28px;
}

.detail-panel + .detail-panel {
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.detail-panel h2 {
    margin: 5px 0 18px;
    font-size: 17px;
    font-weight: 500;
}

.detail-facts {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 11px 12px;
    font-size: 11px;
}

.detail-facts dt {
    color: var(--ink-muted);
    font-weight: 500;
}

.detail-facts dd {
    color: var(--ink);
}

.attachment-link {
    color: var(--ink);
    font-weight: 500;
}

.attachment-link:hover,
.attachment-markdown-link:hover {
    color: var(--nio-teal);
}

.knowledge-links {
    margin-top: 10px;
    border: 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.knowledge-links-heading {
    padding: 28px 0 20px;
}

.knowledge-link-group h3 {
    padding: 14px 0 8px;
}

.knowledge-link-row {
    padding: 14px 0;
}

.knowledge-link-row:hover {
    background: transparent;
}

.knowledge-link-row:hover strong {
    color: var(--nio-teal);
}

@media (max-width: 860px) {
    .article-index-heading,
    .detail-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .article-context-line {
        justify-content: flex-start;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .detail-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
        padding-top: 28px;
        border-top: 1px solid var(--line-dark);
    }

    .detail-panel + .detail-panel {
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 620px) {
    body.articles-route .container,
    body.article-detail-route .container {
        padding-top: 24px;
    }

    .article-index-heading {
        gap: 18px;
        padding: 10px 0 26px;
    }

    .article-index-title h1 {
        font-size: 38px;
    }

    .articles-page .article-search-tools {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 28px;
    }

    .articles-page .advanced-search-trigger {
        min-height: 40px;
    }

    .article-results-bar span:last-child {
        display: none;
    }

    .article-item-link {
        grid-template-columns: minmax(0, 1fr) 18px;
        gap: 12px;
        min-height: 0;
        padding: 22px 0;
    }

    .article-item-side {
        grid-column: 1 / -1;
        display: flex;
        gap: 10px;
    }

    .article-item-body {
        grid-column: 1;
    }

    .article-item-arrow {
        grid-column: 2;
        padding-top: 26px;
    }

    .articles-page .article-title {
        font-size: 18px;
    }

    .articles-page .article-summary {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .detail-page {
        gap: 38px;
    }

    .detail-heading {
        gap: 28px;
        padding: 6px 0 28px;
    }

    .detail-back-link {
        margin-bottom: 28px;
    }

    .detail-title {
        font-size: 34px;
    }

    .detail-origin-link {
        width: 100%;
        justify-content: space-between;
    }

    .summary-reading {
        padding-top: 28px;
        font-size: 15px;
    }

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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--white);
}

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.55;
}

body.nola-route {
    overflow: hidden;
}

body.nola-route .main,
body.nola-route .container {
    min-height: 0;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

body.login-route {
    min-height: 100vh;
    overflow: hidden;
    background: #f5f7f7;
}

.login-page {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 72px 24px;
    background: var(--white);
}

.login-logo {
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
}

.login-logo img {
    width: 26px;
    height: 26px;
    display: block;
    filter: brightness(0);
}

.login-content {
    width: min(400px, 100%);
    padding: 42px 0 10px;
    background: var(--white);
}

.login-eyebrow {
    color: var(--nio-teal);
    font-size: 10px;
    font-weight: 800;
}

.login-content h1 {
    margin-top: 13px;
    color: var(--black);
    font-size: 36px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.15;
}

.login-lede {
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
}

.login-form {
    display: grid;
    gap: 22px;
    margin-top: 30px;
}

.login-form > label {
    display: grid;
    gap: 9px;
}

.login-form > label > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid #aeb7ba;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 14px;
    transition: border-color .18s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-bottom-color: var(--nio-teal);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted-2);
    font-size: 11px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
}

.login-remember input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--nio-teal);
}

.login-error {
    margin: -8px 0 -4px;
    color: var(--error);
    font-size: 12px;
}

.login-submit {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 0;
    color: var(--white);
    background: var(--black);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    transition: background .18s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    background: var(--nio-teal);
}

.login-submit span:last-child {
    font-size: 19px;
    font-weight: 400;
}

.login-footer {
    position: absolute;
    right: 32px;
    bottom: 26px;
    left: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted-2);
    font-size: 10px;
}

.opinion-page {
    display: grid;
    gap: 30px;
}

.opinion-heading {
    align-items: flex-end;
}

.opinion-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.opinion-stats > div {
    min-height: 104px;
    display: grid;
    align-content: space-between;
    padding: 18px 20px;
    background: var(--white);
}

.opinion-stats span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.opinion-stats strong {
    color: var(--black);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.opinion-controls {
    display: grid;
    gap: 18px;
}

.opinion-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.opinion-levels a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: var(--muted);
    background: #f2f5f5;
    font-size: 11px;
    font-weight: 700;
}

.opinion-levels a span {
    color: var(--muted-2);
}

.opinion-levels a:hover,
.opinion-levels a.is-active {
    color: var(--white);
    background: var(--black);
}

.opinion-levels a.is-active span {
    color: #c8d0d2;
}

.opinion-search-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 74px;
    gap: 10px;
}

.opinion-search-row input,
.opinion-search-row select,
.opinion-search-row button {
    min-height: 42px;
    border: 0;
    color: var(--text);
    background: #f2f5f5;
    font-size: 12px;
}

.opinion-search-row input,
.opinion-search-row select {
    padding: 0 13px;
    outline: 0;
}

.opinion-search-row input:focus,
.opinion-search-row select:focus {
    box-shadow: 0 0 0 1px var(--nio-teal);
}

.opinion-search-row button {
    color: var(--white);
    background: var(--black);
    cursor: pointer;
    font-weight: 700;
}

.opinion-stream {
    border-top: 1px solid var(--line-dark);
}

.opinion-item {
    min-height: 116px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 20px;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.opinion-level {
    width: fit-content;
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: var(--muted);
    background: #eef1f1;
    font-size: 10px;
    font-weight: 800;
}

.opinion-level-critical {
    color: #a22525;
    background: #faeaea;
}

.opinion-level-watch {
    color: #9a6400;
    background: #fbf2df;
}

.opinion-level-positive {
    color: #19734d;
    background: #e7f4ed;
}

.opinion-item-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.opinion-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
}

.opinion-item-meta b {
    color: var(--nio-teal);
    font-size: 9px;
}

.opinion-item-main strong {
    color: var(--black);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.opinion-item-main > span:last-child:not(.opinion-item-meta) {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.opinion-item-arrow {
    justify-self: end;
    color: var(--muted-2);
}

.opinion-item:hover .opinion-item-main strong {
    color: var(--nio-teal);
}

.opinion-empty {
    min-height: 220px;
    display: grid;
    align-content: center;
    gap: 8px;
    color: var(--muted);
}

.opinion-empty strong {
    color: var(--text);
    font-size: 16px;
}

.opinion-empty span {
    font-size: 12px;
}

@media (max-width: 700px) {
    .opinion-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .opinion-stats > div {
        min-height: 88px;
        padding: 14px 12px;
    }

    .opinion-stats strong {
        font-size: 28px;
    }

    .opinion-search-row {
        grid-template-columns: 1fr;
    }

    .opinion-item {
        grid-template-columns: 64px minmax(0, 1fr) 16px;
        gap: 10px;
    }

    .opinion-item-main strong {
        font-size: 15px;
    }
}

@media (max-width: 560px) {
    body.login-route {
        overflow-y: auto;
    }

    .login-page {
        place-items: start stretch;
        padding: 116px 24px 88px;
        background: var(--white);
    }

    .login-logo {
        top: 28px;
    }

    .login-content {
        width: 100%;
        padding-top: 18px;
    }

    .login-content h1 {
        font-size: 32px;
    }

    .login-form {
        margin-top: 30px;
    }

    .login-footer {
        right: 24px;
        bottom: 22px;
        left: 24px;
    }
}

body.home-route {
    overflow-x: hidden;
}

body.home-route .main,
body.home-route .container {
    min-height: calc(100vh - var(--header-height));
    height: auto;
    overflow: visible;
}

body.home-route .container {
    width: 100%;
    padding: 0;
}

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

button,
input,
select {
    font: inherit;
}

.root {
    min-height: 100vh;
    background: var(--white);
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: 100%;
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 36px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.header-left,
.header-logo-wrap,
.header-nav-list,
.header-status {
    display: flex;
    align-items: center;
}

.header-left {
    min-width: 0;
    gap: 22px;
}

.header-primary-nav,
.header-actions {
    display: flex;
    align-items: center;
}

.header-user-details {
    position: relative;
}

.header-user-trigger {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--black);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    list-style: none;
}

.header-user-trigger::-webkit-details-marker {
    display: none;
}

.header-user-menu {
    min-width: 210px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 45;
    padding: 16px;
    background: var(--white);
    box-shadow: 0 14px 36px rgba(20, 33, 36, .14), 0 0 0 1px rgba(103, 116, 121, .12);
}

.header-user-menu > div {
    display: grid;
    gap: 3px;
    padding-bottom: 14px;
}

.header-user-menu strong {
    font-size: 13px;
}

.header-user-menu span {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-menu button {
    width: 100%;
    min-height: 36px;
    border: 0;
    color: var(--text);
    background: #f2f5f5;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.header-user-menu button:hover {
    color: var(--white);
    background: var(--black);
}

.header-primary-nav {
    min-width: 0;
    gap: 24px;
}

.header-primary-link,
.header-management-trigger {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: var(--black);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.header-primary-link {
    position: relative;
}

.header-primary-link::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: var(--black);
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .2s ease, transform .2s ease;
}

.header-primary-link:hover::after,
.header-primary-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.menu-button {
    width: 38px;
    height: 38px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 0 9px;
    border: 0;
    color: var(--black);
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    border-top: 1px solid currentColor;
    transition: width .2s ease;
}

.menu-button span:nth-child(2) {
    width: 14px;
}

.menu-button:hover span:nth-child(2),
.menu-button:focus-visible span:nth-child(2) {
    width: 20px;
}

.menu-button:focus-visible,
.menu-close:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.back-button {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.back-button:hover {
    color: var(--white);
    background: var(--black);
}

.header-logo-wrap {
    min-width: 0;
    gap: 12px;
}

.header-logo-centered {
    justify-self: center;
}

.header-logo-mark {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: block;
    filter: brightness(0);
    object-fit: contain;
}

.header-logo-texts {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.header-logo-title {
    overflow: hidden;
    color: var(--black);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-logo-sub {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-assistant-link,
.menu-assistant-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--line-dark);
    color: var(--black);
    background: var(--white);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.header-assistant-link {
    min-height: 34px;
    padding: 0 15px;
}

.header-actions {
    justify-self: end;
    justify-content: flex-end;
    gap: 22px;
}

.header-management-details {
    position: relative;
}

.header-management-trigger {
    list-style: none;
    cursor: pointer;
}

.header-management-trigger::-webkit-details-marker {
    display: none;
}

.header-management-trigger::after {
    width: 5px;
    height: 5px;
    margin: -3px 0 0 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.header-management-details[open] .header-management-trigger::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.header-assistant-link:hover,
.menu-assistant-link:hover,
.header-assistant-link.is-active {
    color: var(--white);
    background: var(--black);
}

body.menu-open {
    overflow: hidden;
}

.site-navigation {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    background: var(--white);
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}

.site-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0s;
}

.site-navigation-bar {
    width: min(1440px, 100%);
    height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 0 auto;
    padding: 0 28px;
}

.menu-close {
    width: 38px;
    height: 38px;
    border: 0;
    color: var(--black);
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.menu-close:hover {
    color: var(--blue);
}

.menu-logo {
    justify-self: center;
}

.menu-logo img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0);
}

.menu-assistant-link {
    justify-self: end;
}

.site-navigation-scroll {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.site-navigation-content {
    width: min(1280px, 100%);
    min-height: 100%;
    display: grid;
    grid-template-columns: 1.05fr 1.35fr .75fr;
    align-content: start;
    gap: 6vw;
    margin: 0 auto;
    padding: 34px 42px 64px;
}

.menu-master-detail {
    grid-template-columns: .8fr 1fr 1.6fr;
    gap: 5vw;
}

.menu-command-column {
    display: grid;
    align-content: start;
    gap: 30px;
}

.menu-command-group .menu-section-title {
    margin-bottom: 7px;
}

.menu-command-links .menu-link {
    min-height: 40px;
}

.menu-command-links .menu-link strong {
    font-size: 15px;
}

.menu-admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-left: 30px;
}

.menu-admin-links a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.menu-admin-links a:hover {
    color: var(--blue);
}

.menu-business-selectors {
    display: grid;
}

.menu-business-selector {
    min-height: 58px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    color: var(--black);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.menu-business-selector > span {
    color: transparent;
    font-size: 18px;
}

.menu-business-selector strong {
    font-size: 22px;
    font-weight: 600;
}

.menu-business-selector:hover,
.menu-business-selector:focus-visible,
.menu-business-selector.is-active {
    border-color: var(--light-blue);
}

.menu-business-selector:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.menu-business-selector:hover > span,
.menu-business-selector:focus-visible > span,
.menu-business-selector.is-active > span {
    color: var(--blue);
}

.menu-business-panel[hidden] {
    display: none;
}

.menu-detail-heading {
    min-height: 74px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line-dark);
}

.menu-detail-heading p {
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
}

.menu-detail-heading h2 {
    margin-top: 2px;
    font-size: 28px;
    font-weight: 500;
}

.menu-detail-heading > a {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.menu-detail-heading > a:hover {
    color: var(--blue);
}

.menu-detail-group {
    padding-top: 20px;
}

.menu-detail-group h3 {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.menu-detail-links {
    display: grid;
}

.menu-detail-links-two {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.menu-detail-links a {
    min-height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    font-weight: 720;
}

.menu-detail-links a::after {
    margin-left: auto;
    color: transparent;
    content: "→";
}

.menu-detail-links a:hover {
    color: var(--blue);
    border-color: var(--light-blue);
}

.menu-detail-links a:hover::after {
    color: var(--blue);
}

.menu-section {
    min-width: 0;
}

.menu-section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    color: var(--black);
    font-size: 17px;
    font-weight: 900;
}

.menu-section-title span {
    width: 12px;
    border-top: 1px solid var(--black);
}

.menu-links {
    display: grid;
}

.menu-link {
    min-height: 56px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid transparent;
    color: var(--black);
}

.menu-link-arrow {
    color: transparent;
    font-size: 18px;
    transition: color .18s ease, transform .18s ease;
}

.menu-link > span:last-child {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.menu-link strong {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.menu-link small {
    color: var(--muted-2);
    font-size: 10px;
    white-space: nowrap;
}

.menu-links-primary .menu-link strong {
    font-size: 30px;
    font-weight: 400;
}

.menu-link:hover,
.menu-link:focus-visible,
.menu-link.is-active {
    border-color: var(--light-blue);
}

.menu-link:hover .menu-link-arrow,
.menu-link:focus-visible .menu-link-arrow,
.menu-link.is-active .menu-link-arrow {
    color: var(--blue);
    transform: translateX(2px);
}

.menu-link.is-active strong {
    color: var(--black);
}

.menu-link-compact {
    min-height: 48px;
}

.menu-link-compact strong {
    font-size: 16px;
    font-weight: 700;
}

.header-nav {
    min-width: 0;
}

.header-nav-list {
    justify-content: center;
    gap: 2px;
    list-style: none;
}

.header-nav-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.header-nav-link:hover {
    border-color: var(--black);
    background: var(--blue-bg);
}

.header-management {
    position: relative;
}

.header-management-details > summary {
    list-style: none;
    cursor: pointer;
}

.header-management-details > summary::-webkit-details-marker {
    display: none;
}

.header-management-trigger::after {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.header-management-details[open] .header-management-trigger {
    color: var(--muted);
}

.header-management-details[open] .header-management-trigger::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.header-management-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 132px;
    padding: 5px;
    border: 1px solid var(--line-dark);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(18, 28, 38, 0.12);
}

.header-management-menu a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.header-management-menu a:hover,
.header-management-menu a:focus-visible {
    color: var(--blue);
    background: var(--blue-bg);
}

.header-status {
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
    color: var(--black);
    background: var(--white);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
}

.main {
    min-height: calc(100vh - var(--header-height));
    background: var(--white);
}

.container {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 46px 28px 72px;
    background: var(--white);
}

.dashboard,
.articles-page,
.admin-page {
    display: grid;
    gap: 34px;
}

.topic-bar {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr);
    gap: 28px;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
}

.topic-bar h3 {
    margin-top: 5px;
    font-size: 22px;
    line-height: 1.2;
}

.topic-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-left: 1px solid var(--line-dark);
}

.topic-links a {
    min-height: 118px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 4px 16px 12px;
    border-right: 1px solid var(--line-dark);
}

.topic-links a:hover {
    background: var(--blue-bg);
}

.topic-links strong {
    font-size: 14px;
}

.topic-links span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.topic-links b {
    color: var(--blue);
    font-size: 18px;
    font-weight: 400;
}

@media (max-width: 900px) {
    .topic-bar {
        grid-template-columns: 1fr;
    }

    .topic-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-left: 0;
    }

    .topic-links a {
        border-left: 1px solid var(--line-dark);
        border-top: 1px solid var(--line-dark);
    }
}

.l-mv,
.page-heading {
    min-height: 210px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 0 26px;
    border-bottom: 1px solid var(--line-dark);
}

.page-heading {
    min-height: 0;
    align-items: flex-start;
    padding: 18px 0 20px;
}

.l-mv__title,
.page-heading > div {
    display: grid;
    gap: 8px;
}

.l-mv__title .en,
.page-title {
    display: block;
    color: var(--black);
    font-size: clamp(44px, 7vw, 92px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.96;
    text-transform: uppercase;
}

.l-mv__title .jp,
.eyebrow {
    display: block;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-note {
    max-width: 520px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.page-heading .page-title {
    font-size: clamp(40px, 6vw, 78px);
}

.anchor {
    border: 1px solid var(--line-dark);
    background: var(--white);
}

.anchor-inner {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: stretch;
}

.anchor-title {
    display: flex;
    align-items: center;
    padding: 18px;
    color: var(--blue);
    background: var(--blue-bg);
    border-right: 1px solid var(--line-dark);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.anchor-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

.anchor-list-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.anchor-list li {
    border-right: 1px solid var(--line);
}

.anchor-list li:last-child {
    border-right: 0;
}

.anchor-list a {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.anchor-list a::after,
.module-link::after,
.btn::after,
.btn-link::after {
    content: "↗";
    flex: 0 0 auto;
    color: currentColor;
    font-size: 13px;
}

.anchor-list a:hover {
    background: var(--black);
    color: var(--white);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line-dark);
}

.stat-card {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: var(--white);
    border-right: 1px solid var(--line-dark);
}

.stat-card:last-child {
    border-right: 0;
}

.stat-number {
    color: var(--black);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 0.95;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stat-error .stat-number {
    color: var(--error);
}

.content-section,
.card,
.filter-bar,
.article-list,
.data-table {
    background: var(--white);
    border: 1px solid var(--line-dark);
}

.directory-section {
    display: grid;
    gap: 18px;
}

.directory-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-dark);
}

.directory-heading h2,
.catalog-strip h2 {
    margin-top: 5px;
    color: var(--black);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.directory-intro {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.directory-grid {
    display: grid;
    gap: 12px;
}

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

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

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

.directory-item {
    min-height: 148px;
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line-dark);
    background: var(--white);
    transition: color 120ms ease, background 120ms ease;
}

.directory-item:hover {
    color: var(--white);
    background: var(--black);
}

.directory-item-blue {
    background: var(--blue-bg);
}

.directory-index {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.directory-item strong {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.directory-item > span:not(.directory-index):not(.directory-arrow) {
    max-width: 24em;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.directory-item:hover > span:not(.directory-index):not(.directory-arrow) {
    color: #d9e1e8;
}

.directory-arrow {
    position: absolute;
    right: 16px;
    bottom: 14px;
    color: var(--blue);
    font-size: 18px;
    font-weight: 900;
}

.directory-item:hover .directory-index,
.directory-item:hover .directory-arrow {
    color: var(--light-blue);
}

.catalog-strip {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line-dark);
    background: var(--blue-bg);
}

.catalog-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
    background: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.catalog-links a:hover {
    color: var(--white);
    background: var(--black);
}

.catalog-links span {
    color: var(--blue);
}

.module-overview,
.module-grid,
.dashboard-grid {
    display: grid;
    gap: 18px;
}

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

.module-card {
    min-height: 236px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line-dark);
    background: var(--white);
}

.module-card-active {
    background: var(--blue-bg);
}

.module-card-top,
.section-header,
.results-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.module-status {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: var(--white);
    background: var(--black);
    font-size: 12px;
    font-weight: 800;
}

.module-status-muted {
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
}

.module-index {
    color: var(--blue);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.module-card h2 {
    color: var(--black);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
}

.module-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.module-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
    font-size: 13px;
    font-weight: 900;
}

.module-link:hover {
    color: var(--blue);
}

.module-link-muted {
    color: var(--muted-2);
}

.module-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.65fr) 360px;
    align-items: start;
}

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

.card {
    padding: 0;
}

.section-header {
    align-items: center;
    min-height: 78px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-dark);
}

.section-header h2 {
    color: var(--black);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.compact-list,
.source-list,
.category-sections,
.category-pills {
    display: grid;
}

.compact-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
}

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

.compact-item a,
.mini-link {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.compact-item a:hover,
.mini-link:hover,
.article-title a:hover,
.category-section-title:hover {
    color: var(--blue);
}

.category-pill {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 800;
}

.category-pill:last-child {
    border-bottom: 0;
}

.category-pill:hover {
    color: var(--white);
    background: var(--black);
}

.category-pill strong {
    color: var(--blue);
    font-size: 24px;
    font-weight: 900;
}

.category-pill:hover strong {
    color: var(--white);
}

.article-list {
    overflow: hidden;
}

.card .article-list {
    border: 0;
}

.article-item {
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

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

.article-item:hover {
    background: #fbfdff;
}

.notification-item {
    display: block;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.article-date {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.article-title {
    color: var(--black);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}

.article-summary {
    max-width: 72rem;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.source-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

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

.source-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.source-name {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--text);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.status-ok {
    background: var(--success);
}

.status-error {
    background: var(--error);
}

.status-pending {
    background: var(--muted-2);
}

.category-section {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.category-section:last-child {
    border-bottom: 0;
}

.category-section-title {
    color: var(--black);
    font-size: 14px;
    font-weight: 900;
}

.mini-link {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.badge,
.context-badge,
.status-indicator {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid var(--line-dark);
    color: var(--text);
    background: var(--white);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-region,
.badge-type {
    color: var(--blue);
}

.badge-topic {
    background: var(--blue-bg);
}

.badge-muted {
    color: var(--muted);
}

.badge-status,
.badge-warning {
    color: var(--warning);
}

.badge-success {
    color: var(--success);
}

.badge-error {
    color: var(--error);
}

.context-badge {
    min-height: 38px;
    padding: 0 12px;
    color: var(--white);
    background: var(--blue);
}

.filter-bar {
    padding: 16px;
}

.article-search-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
    margin: 2px 0 22px;
}

.article-quick-search {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--line-dark);
}

.article-quick-search input[type="search"] {
    min-width: 0;
    height: 48px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
}

.article-quick-search input[type="search"]:focus { box-shadow: inset 0 -2px 0 var(--nio-teal); }
.article-quick-search button,
.advanced-search-trigger {
    min-width: 88px;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.article-quick-search button:hover,
.advanced-search-trigger:hover { color: var(--nio-teal); }
.advanced-search-trigger {
    padding: 0 18px;
    border: 1px solid var(--line-dark);
}
.advanced-search-trigger[aria-expanded="true"] { color: #fff; background: var(--ink); }

.advanced-search {
    margin: 0 0 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.advanced-search .filter-bar { padding: 18px 0; }

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-input,
.filter-select {
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
    border-radius: 0;
    outline: none;
    color: var(--text);
    background: var(--white);
    font-size: 13px;
    font-weight: 650;
}

.filter-input:focus,
.filter-select:focus {
    box-shadow: inset 0 -3px 0 var(--blue);
}

.filter-search {
    min-width: 260px;
    flex: 1;
}

.checkbox-filter {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
    color: var(--text);
    background: var(--blue-bg);
    font-size: 13px;
    font-weight: 800;
}

.checkbox-filter input {
    accent-color: var(--blue);
}

.btn,
.btn-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--line-dark);
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    color: var(--white);
    background: var(--black);
}

.btn-primary:hover {
    color: var(--white);
    background: var(--blue);
}

.btn-secondary,
.btn-link {
    color: var(--black);
    background: var(--white);
}

.btn-secondary:hover,
.btn-link:hover {
    color: var(--white);
    background: var(--black);
}

.btn-small {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.btn-danger {
    color: var(--error);
    background: var(--white);
}

.btn-success {
    color: var(--success);
    background: var(--white);
}

.results-bar {
    margin-top: -14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.data-table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: 0;
}

.data-table th {
    color: var(--black);
    background: var(--blue-bg);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

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

.data-table tbody tr:hover {
    background: #fbfdff;
}

.source-group-nav {
    display: flex;
    gap: 26px;
    margin: 24px 0 18px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line-dark);
}

.source-group-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.source-group-link::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
    content: "";
}

.source-group-link:hover,
.source-group-link.is-active {
    color: var(--ink);
}

.source-group-link.is-active::after {
    background: var(--nio-teal);
}

.source-group-count {
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.source-list-summary {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
}

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

.time-cell,
.error-cell {
    color: var(--muted);
    white-space: nowrap;
}

.error-cell {
    max-width: 260px;
    overflow: hidden;
    color: var(--error);
    text-overflow: ellipsis;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell form + form {
    margin-left: 6px;
}

.empty-state {
    padding: 38px 20px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.page-lede {
    max-width: 600px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
}

.detail-heading {
    min-height: 0;
    align-items: flex-start;
    padding-top: 20px;
}

.detail-title {
    max-width: 900px;
    margin-top: 8px;
    color: var(--black);
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.2;
}

.detail-meta {
    margin-top: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.detail-content,
.detail-panel,
.nola-form,
.nola-result,
.kb-list {
    border: 1px solid var(--line-dark);
    background: var(--white);
}

.detail-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-dark);
}

.source-reading {
    padding: 28px;
    color: #202428;
    font-family: Georgia, "Songti SC", "SimSun", serif;
    font-size: 17px;
    line-height: 2;
    white-space: pre-wrap;
}

.summary-reading {
    padding: 28px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.85;
}

.summary-reading h1,
.summary-reading h2,
.summary-reading h3,
.summary-reading h4 {
    margin: 0 0 14px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
}

.summary-reading h1 { font-size: 24px; }
.summary-reading h2 { font-size: 21px; }
.summary-reading h3 { font-size: 18px; }
.summary-reading h4 { font-size: 16px; }

.summary-reading p {
    margin: 0 0 16px;
}

.summary-reading ul,
.summary-reading ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.summary-reading li {
    margin: 5px 0;
    padding-left: 4px;
}

.summary-reading strong {
    font-weight: 700;
}

.summary-reading em {
    font-style: italic;
}

.summary-reading code {
    padding: 2px 5px;
    background: var(--blue-bg);
    border: 1px solid var(--line);
    font-size: .92em;
}

.summary-reading pre {
    overflow-x: auto;
    margin: 0 0 18px;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.summary-reading pre code {
    padding: 0;
    background: transparent;
    border: 0;
}

.summary-reading blockquote {
    margin: 0 0 18px;
    padding: 8px 16px;
    border-left: 3px solid var(--blue);
    color: var(--muted);
}

.detail-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    padding: 18px 28px 22px;
    border-top: 1px solid var(--line);
}

.detail-source-links .eyebrow {
    flex-basis: 100%;
}

/* Data-compliance taxonomy hub */
.data-compliance-heading {
    align-items: flex-end;
    margin-bottom: 36px;
}

.page-lede {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--ink-muted);
    font-size: 16px;
}

.compliance-section-grid {
    display: grid;
    gap: 42px;
}

.compliance-region-section {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.compliance-region-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 16px;
}

.compliance-region-heading h2 {
    margin: 4px 0 8px;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 500;
    letter-spacing: 0;
}

.compliance-region-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--ink-muted);
}

.compliance-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background: var(--white);
    border: 1px solid var(--line);
}

.compliance-category-grid-seven {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.compliance-category-item {
    position: relative;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 10px 12px;
    background: var(--paper);
    color: var(--ink);
    transition: background .2s ease, color .2s ease;
}

.compliance-category-item:hover {
    background: var(--nio-teal);
    color: #fff;
}

.compliance-category-item strong {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 500;
}

.compliance-category-item > span:not(.directory-index):not(.compliance-count):not(.directory-arrow) {
    color: var(--ink-muted);
    line-height: 1.55;
}

.compliance-category-item:hover > span:not(.directory-index):not(.compliance-count):not(.directory-arrow),
.compliance-category-item:hover small {
    color: rgba(255,255,255,.82);
}

.compliance-category-item small {
    color: var(--ink-muted);
    line-height: 1.45;
}

.compliance-count {
    margin-top: 2px;
    color: var(--nio-teal);
    font-size: 11px;
}

.compliance-category-item:hover .compliance-count,
.compliance-category-item:hover .directory-index,
.compliance-category-item:hover .directory-arrow {
    color: #fff;
}

.overseas-map-panel {
    margin: 22px 0 18px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
}

.overseas-map-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 18px;
}

.overseas-map-heading h3 {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 500;
}

.overseas-map-heading p:not(.eyebrow) {
    margin-top: 5px;
    color: var(--ink-muted);
    font-size: 13px;
}

.overseas-map-heading > strong {
    color: var(--nio-teal);
    font-size: 15px;
    font-weight: 600;
}

.overseas-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: stretch;
}

.overseas-map {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fafb;
}

.overseas-map object {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
}

.overseas-map-tooltip {
    position: absolute;
    z-index: 2;
    min-width: 128px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(5, 5, 5, .9);
    font-size: 11px;
    pointer-events: none;
}

.overseas-map-updates {
    border-top: 1px solid var(--line-dark);
}

.overseas-map-list-heading,
.overseas-map-updates > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
}

.overseas-map-list-heading {
    color: var(--ink-muted);
    font-size: 11px;
}

.overseas-map-updates > a { color: var(--ink); }
.overseas-map-updates > a:hover { color: var(--nio-teal); }
.overseas-map-updates > a span { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.overseas-map-updates > a i { width: 7px; height: 7px; border-radius: 50%; background: var(--nio-teal); }
.overseas-map-updates > a strong { font-size: 13px; font-weight: 600; }
.overseas-map-empty { padding: 18px 4px; color: var(--ink-muted); font-size: 12px; }
.overseas-map-credit { margin-top: 7px; color: var(--muted-2); font-size: 9px; text-align: right; }

.compliance-recent-section {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.compliance-topic-section {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.compliance-topic-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.compliance-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.compliance-focus-item {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px;
    color: var(--ink);
    border-right: 1px solid var(--line);
}

.compliance-focus-item:last-child { border-right: 0; }
.compliance-focus-item > strong,
.compliance-focus-title > strong { font-size: 19px; font-weight: 500; }
.compliance-focus-parent-link { color: var(--ink); }
.compliance-focus-parent-link:hover { color: var(--nio-teal); }
.compliance-focus-item:not(.compliance-focus-special):hover { background: var(--blue-bg); }
.compliance-focus-item.is-active {
    background: var(--blue-bg);
    box-shadow: inset 0 3px 0 var(--nio-teal);
}
.compliance-focus-special { gap: 20px; }
.compliance-focus-title { display: grid; gap: 8px; }
.compliance-focus-children { display: grid; }
.compliance-focus-children a {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    color: var(--ink);
    border-top: 1px solid var(--line);
}
.compliance-focus-children a:hover strong { color: var(--nio-teal); }
.compliance-focus-children a.is-active { color: var(--nio-teal); }
.compliance-focus-children a.is-active strong { color: var(--nio-teal); }
.compliance-focus-children strong { font-size: 13px; font-weight: 500; }
.compliance-focus-children span { flex: none; color: var(--ink-muted); font-size: 11px; }

.compliance-recent-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.compliance-recent-item {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.compliance-recent-item:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.compliance-recent-item strong {
    font-weight: 500;
    line-height: 1.5;
}

.compliance-recent-item > span:last-child {
    color: var(--ink-muted);
    font-size: 13px;
}

.app-enforcement-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
}

.app-enforcement-stats > div {
    display: grid;
    gap: 7px;
    padding: 16px 18px;
    border-right: 1px solid var(--line);
}

.app-enforcement-stats > div:last-child { border-right: 0; }
.app-enforcement-stats strong { color: var(--nio-teal); font-size: 30px; font-weight: 500; }
.app-enforcement-stats span { color: var(--ink-muted); font-size: 12px; }

.app-reason-chart-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.app-reason-chart-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.app-reason-chart-heading h2 {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 500;
}

.app-reason-chart-heading > span {
    color: var(--ink-muted);
    font-size: 12px;
}

.app-reason-chart-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
}

.app-reason-pie {
    width: 240px;
    aspect-ratio: 1;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    background: var(--pie-segments);
}

.app-reason-legend {
    border-top: 1px solid var(--line);
}

.app-reason-legend-item {
    min-height: 52px;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) 56px 54px;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.app-reason-legend-item:hover,
.app-reason-legend-item.is-active { background: var(--blue-bg); }
.app-reason-swatch { width: 10px; height: 10px; background: var(--reason-color); }
.app-reason-legend-item strong { font-size: 13px; font-weight: 500; line-height: 1.4; }
.app-reason-legend-item > span:nth-last-child(2),
.app-reason-legend-item b { color: var(--ink-muted); font-size: 12px; font-weight: 500; text-align: right; }

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

.app-enforcement-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.app-enforcement-note {
    display: flex;
    gap: 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--nio-teal);
    background: var(--blue-bg);
    color: var(--ink-muted);
    font-size: 12px;
}

.app-enforcement-note strong { flex: 0 0 auto; color: var(--ink); font-weight: 600; }
.app-enforcement-table-wrap { margin-top: 18px; overflow-x: auto; border-top: 1px solid var(--line); }
.app-enforcement-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
.app-enforcement-table th { padding: 11px 12px; border-bottom: 1px solid var(--line-dark); color: var(--ink-muted); font-size: 11px; font-weight: 600; text-align: left; }
.app-enforcement-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; line-height: 1.55; vertical-align: top; }
.app-enforcement-table th:nth-child(1) { width: 15%; }
.app-enforcement-table th:nth-child(2) { width: 18%; }
.app-enforcement-table th:nth-child(3) { width: 21%; }
.app-enforcement-table th:nth-child(4) { width: 25%; }
.app-enforcement-table th:nth-child(5) { width: 10%; }
.app-enforcement-table th:nth-child(6) { width: 11%; }
.app-enforcement-table td strong { display: block; font-size: 14px; font-weight: 600; }
.app-enforcement-table td > span,
.app-enforcement-table td small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 11px; }
.app-enforcement-table td:last-child { display: grid; gap: 5px; }
.ocr-status { color: var(--nio-teal) !important; }
.ocr-status.is-pending { color: #9a6300 !important; }

@media (max-width: 900px) {
    .overseas-map-layout { grid-template-columns: 1fr; }
    .overseas-map { min-height: 330px; }
    .overseas-map object { min-height: 330px; }

    .compliance-category-grid,
    .compliance-category-grid-seven,
    .compliance-topic-grid,
    .compliance-focus-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .article-search-tools { grid-template-columns: 1fr; }
    .advanced-search-trigger { min-height: 44px; }

    .data-compliance-heading,
    .compliance-region-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .overseas-map-heading { align-items: flex-start; flex-direction: column; }
    .overseas-map { min-height: 240px; }
    .overseas-map object { min-height: 240px; }

    .compliance-category-grid,
    .compliance-category-grid-seven,
    .compliance-topic-grid,
    .compliance-focus-grid,
    .compliance-recent-list {
        grid-template-columns: 1fr;
    }

    .compliance-focus-item { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }

    .compliance-recent-item:nth-child(odd) {
        border-right: 0;
    }

    .app-enforcement-heading,
    .app-enforcement-note,
    .app-reason-chart-heading { align-items: flex-start; flex-direction: column; }
    .app-enforcement-stats { grid-template-columns: 1fr; }
    .app-enforcement-stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .app-enforcement-stats > div:last-child { border-bottom: 0; }
    .app-reason-chart-layout { grid-template-columns: 1fr; gap: 24px; }
    .app-reason-pie { width: min(240px, 78vw); justify-self: center; }
    .app-reason-legend-item { grid-template-columns: 12px minmax(0, 1fr) 46px 46px; }
}

/* Business pages keep the home screen focused while giving each line its own work map. */
.business-heading {
    align-items: flex-end;
    margin-bottom: 52px;
}

.dashboard-business-only {
    padding-top: 18px;
}

.home-route .dashboard-business-only {
    height: 100%;
    align-content: start;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 24px;
    padding-top: 18px;
}

/* Homepage chapters follow the fixed-header, long-scroll rhythm of the reference site. */
.home-feed {
    width: 100%;
}

.home-section-inner {
    width: min(1280px, 100%);
    min-height: 620px;
    margin: 0 auto;
    padding: 88px 28px 96px;
    display: grid;
    align-items: center;
}

.home-today-section,
.home-business-section {
    border-bottom: 1px solid var(--line);
}

.home-today-section {
    color: var(--black);
    background: var(--white);
}

.home-business-section:nth-of-type(odd) {
    background: var(--blue-bg);
}

.home-business-section:nth-of-type(even) {
    background: var(--white);
}

.home-today-layout,
.home-business-layout {
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.7fr);
    gap: 72px;
}

.home-section-heading {
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + 28px);
    padding-top: 8px;
}

.home-section-heading h1,
.home-section-heading h2 {
    margin-top: 12px;
    color: inherit;
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
}

.home-business-section .home-section-heading h2 {
    font-size: clamp(32px, 3.5vw, 56px);
}

.home-section-heading > p:not(.eyebrow) {
    max-width: 23em;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.home-today-section .home-section-heading > p:not(.eyebrow) {
    color: var(--muted);
}

.home-section-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
}

.home-section-link span {
    font-size: 18px;
    line-height: 1;
}

.home-signal-list {
    min-width: 0;
    border-top: 1px solid currentColor;
}

.home-signal-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(17, 17, 17, .18);
    color: inherit;
    transition: padding .18s ease, color .18s ease;
}

.home-today-section .home-signal-item {
    border-bottom-color: rgba(17, 17, 17, .18);
}

.home-signal-item:hover {
    padding-right: 8px;
    color: var(--blue);
}

.home-today-section .home-signal-item:hover {
    color: var(--blue);
}

.home-signal-index,
.home-signal-arrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.home-today-section .home-signal-index,
.home-today-section .home-signal-arrow {
    color: var(--muted);
}

.home-signal-content {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.home-signal-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.home-today-section .home-signal-meta {
    color: var(--muted);
}

.home-signal-meta > span:first-child {
    overflow: hidden;
    max-width: 22em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-signal-content strong {
    overflow: hidden;
    color: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-signal-summary {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-today-section .home-signal-summary {
    color: var(--muted);
}

.home-signal-arrow {
    justify-self: end;
    padding-top: 2px;
    font-size: 17px;
}

.home-new-label {
    color: var(--nio-teal);
    font-size: 10px;
    font-weight: 900;
}

.home-today-section .home-new-label {
    color: var(--nio-teal);
}

.home-empty-state {
    min-height: 180px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 24px 0;
    color: var(--muted);
}

.home-empty-state strong {
    color: inherit;
    font-size: 16px;
}

.home-empty-state span {
    font-size: 12px;
}

@media (max-width: 980px) {
    .home-today-layout,
    .home-business-layout {
        grid-template-columns: minmax(190px, .6fr) minmax(0, 1.4fr);
        gap: 42px;
    }

    .home-section-inner {
        padding-inline: 24px;
    }
}

@media (max-width: 760px) {
    .home-section-inner {
        min-height: 0;
        padding: 58px 16px 64px;
    }

    .home-today-layout,
    .home-business-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-section-heading {
        position: static;
        padding-top: 0;
    }

    .home-section-heading h1,
    .home-section-heading h2,
    .home-business-section .home-section-heading h2 {
        font-size: 36px;
    }

    .home-section-heading > p:not(.eyebrow) {
        margin-top: 14px;
    }

    .home-section-link {
        margin-top: 24px;
    }

    .home-signal-item {
        grid-template-columns: 24px minmax(0, 1fr) 18px;
        gap: 10px;
        padding: 16px 0;
    }

    .home-signal-item:hover {
        padding-right: 0;
    }

    .home-signal-content strong {
        display: -webkit-box;
        overflow: hidden;
        font-size: 15px;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home-signal-summary {
        display: none;
    }

    .home-signal-meta > span:first-child {
        max-width: 14em;
    }
}

.home-route .dashboard-today-card {
    margin-bottom: 0;
}

.home-route .directory-section {
    min-height: 0;
    gap: 14px;
}

.home-route .directory-heading {
    padding-bottom: 10px;
}

.home-route .directory-grid-three {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
}

.home-route .directory-item {
    min-height: 118px;
    padding: 14px;
}

.home-route .directory-item strong {
    font-size: 17px;
}

.home-route .directory-item > span:not(.directory-index):not(.directory-arrow) {
    font-size: 12px;
}

.dashboard-today-card {
    display: flex;
    align-items: baseline;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
    margin-bottom: 52px;
    color: inherit;
    transition: border-color 160ms ease, color 160ms ease;
}

.dashboard-today-card:hover {
    border-color: var(--blue);
}

.dashboard-today-card:hover strong,
.dashboard-today-card:hover .dashboard-today-arrow {
    color: var(--blue);
}

.dashboard-today-card strong {
    color: var(--nio-teal);
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
}

.dashboard-today-label {
    color: var(--ink-muted);
    font-size: 14px;
}

.dashboard-today-arrow {
    margin-left: auto;
    color: var(--black);
    font-size: 20px;
    font-weight: 800;
}

.business-category-section,
.business-recent-section {
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.business-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.business-category-item {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px;
    background: var(--paper);
    color: var(--ink);
    transition: background .2s ease, color .2s ease;
}

.business-category-item:hover {
    background: var(--nio-teal);
    color: #fff;
}

.business-category-item strong {
    margin-top: 22px;
    font-size: 20px;
    font-weight: 500;
}

.business-category-item > span:not(.directory-index):not(.business-category-count):not(.directory-arrow) {
    color: var(--ink-muted);
    line-height: 1.55;
}

.business-category-item:hover > span:not(.directory-index):not(.business-category-count):not(.directory-arrow),
.business-category-item:hover .business-category-count,
.business-category-item:hover .directory-index,
.business-category-item:hover .directory-arrow {
    color: #fff;
}

.business-category-count {
    margin-top: auto;
    color: var(--nio-teal);
    font-size: 13px;
}

.business-recent-section {
    margin-top: 64px;
}

.business-recent-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.business-recent-item {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.business-recent-item:nth-child(odd) {
    margin-right: 28px;
}

.business-recent-item strong {
    font-weight: 500;
    line-height: 1.5;
}

.business-recent-item span {
    flex: 0 0 auto;
    color: var(--ink-muted);
    font-size: 13px;
}

.frontier-source-section {
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.frontier-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 8px;
    border: 1px solid var(--line);
    background: var(--line);
}

.frontier-subcategory-card {
    min-height: 112px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    color: var(--ink);
    background: var(--paper);
}

.frontier-subcategory-card:hover {
    color: #fff;
    background: var(--nio-teal);
}

.frontier-subcategory-card > span {
    color: var(--ink-muted);
    font-size: 11px;
}

.frontier-subcategory-card strong {
    grid-column: 1 / -1;
    font-size: 20px;
    font-weight: 500;
}

.frontier-subcategory-card b {
    grid-column: 2;
    grid-row: 1;
    color: var(--nio-teal);
    font-size: 12px;
    font-weight: 500;
}

.frontier-subcategory-card:hover > span,
.frontier-subcategory-card:hover b {
    color: #fff;
}

.frontier-source-heading {
    align-items: flex-end;
}

.frontier-source-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--ink-muted);
    font-size: 13px;
}

.frontier-article-list {
    border-top: 1px solid var(--line);
}

.frontier-article-row {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.frontier-article-row:hover strong {
    color: var(--nio-teal);
}

.frontier-article-row > div {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.frontier-article-row strong {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.frontier-source-name,
.frontier-article-row time,
.frontier-empty {
    color: var(--ink-muted);
    font-size: 12px;
}

.frontier-article-row time {
    white-space: nowrap;
}

.frontier-empty {
    margin: 0;
    padding: 28px 0;
}

@media (max-width: 900px) {
    .business-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .business-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .business-category-grid,
    .business-recent-list {
        grid-template-columns: 1fr;
    }

    .business-recent-item:nth-child(odd) {
        margin-right: 0;
    }

    .frontier-source-heading {
        align-items: flex-start;
    }

    .frontier-subcategory-grid {
        grid-template-columns: 1fr;
    }

    .frontier-article-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.detail-aside {
    display: grid;
    gap: 18px;
}

.detail-panel {
    padding: 20px;
}

.detail-panel h2 {
    margin: 6px 0 16px;
    color: var(--black);
    font-size: 20px;
    font-weight: 900;
}

.detail-facts {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 9px 12px;
    color: var(--muted);
    font-size: 12px;
}

.detail-facts dt { font-weight: 800; }
.detail-facts dd { min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.hash-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }

.text-link,
.attachment-link,
.citation-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.text-link { margin-top: 18px; }
.attachment-list,
.citation-list { display: grid; gap: 10px; }
.attachment-link,
.citation-link { padding: 10px 0; border-bottom: 1px solid var(--line); }
.attachment-link:last-child,
.citation-link:last-child { border-bottom: 0; }
.panel-note { color: var(--muted); font-size: 13px; line-height: 1.7; }

.wechat-setup-panel {
    max-width: 820px;
    padding: 24px;
}

.setup-steps {
    display: grid;
    gap: 10px;
    margin: 0 0 22px 20px;
    color: var(--text);
    line-height: 1.7;
}

.stacked-form {
    display: grid;
    gap: 12px;
}

.stacked-form textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px;
    resize: vertical;
    border: 1px solid var(--line-dark);
    background: var(--white);
    color: var(--text);
    font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stacked-form .btn {
    justify-self: start;
}

.kb-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line-dark);
}

.knowledge-links {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: var(--white);
}

.knowledge-links-heading,
.kb-clusters .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.knowledge-links-heading h2,
.kb-clusters h2 { margin-top: 4px; font-size: 22px; font-weight: 600; }
.knowledge-links-heading > span,
.kb-clusters .section-header > span { color: var(--ink-muted); font-size: 12px; }
.knowledge-link-group + .knowledge-link-group { border-top: 1px solid var(--line-dark); }
.knowledge-link-group h3 { padding: 12px 20px; color: var(--ink-muted); font-size: 12px; font-weight: 600; }

.knowledge-link-row,
.kb-cluster-row {
    min-height: 68px;
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 11px 20px;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.knowledge-link-row { grid-template-columns: 72px minmax(0, 1fr) 20px; }
.knowledge-link-row:hover,
.kb-cluster-row:hover { background: var(--blue-bg); }
.knowledge-link-row strong,
.kb-cluster-row strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.45; }
.knowledge-link-row small,
.kb-cluster-row small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 11px; }
.knowledge-link-type { color: var(--nio-teal); font-size: 11px; font-weight: 600; }
.knowledge-link-arrow { color: var(--ink-muted); text-align: right; }

.kb-clusters { margin-top: 24px; border: 1px solid var(--line-dark); background: var(--white); }
.kb-cluster-row { grid-template-columns: 40px minmax(0, 1fr) 120px; }
.kb-cluster-index { color: var(--nio-teal); font-size: 12px; font-weight: 600; }
.kb-cluster-count { color: var(--ink-muted); font-size: 12px; text-align: right; }

@media (max-width: 760px) {
    .kb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kb-stats > div:nth-child(2) { border-right: 0; }
    .kb-stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-dark); }
    .knowledge-links-heading,
    .kb-clusters .section-header { align-items: flex-start; flex-direction: column; }
    .knowledge-link-row { grid-template-columns: 58px minmax(0, 1fr) 14px; padding-inline: 14px; }
    .kb-cluster-row { grid-template-columns: 30px minmax(0, 1fr); }
    .kb-cluster-count { grid-column: 2; text-align: left; }
}

.attachment-record { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.attachment-record:last-child { border-bottom: 0; }
.attachment-markdown-link { color: var(--blue); font-size: 12px; font-weight: 800; }
.attachment-status { color: var(--muted); font-size: 11px; }
.attachment-audit { margin: 4px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.attachment-audit.is-incomplete,
.attachment-warning { color: #9a5b00; }

.kb-stats > div {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-right: 1px solid var(--line-dark);
}

.kb-stats > div:last-child { border-right: 0; }
.kb-stats strong { color: var(--black); font-size: 36px; font-weight: 900; line-height: 1; }
.kb-stats span { color: var(--muted); font-size: 12px; font-weight: 800; }

.kb-item {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.kb-item:last-child { border-bottom: 0; }
.kb-item:hover { background: var(--blue-bg); }
.kb-item-meta,
.kb-item > span:last-child { color: var(--muted); font-size: 12px; }
.kb-item strong { color: var(--text); font-size: 16px; font-weight: 900; }

.nola-shell {
    height: calc(100vh - var(--header-height) - 28px);
    min-height: 0;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    margin: -18px -28px -72px;
    background: var(--white);
    overflow: hidden;
}

.nola-sidebar {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    border-right: 1px solid var(--line-dark);
    background: #f7faf9;
    overflow: hidden;
}

.nola-sidebar-top { display: grid; gap: 18px; }
.nola-sidebar-actions { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; }
.nola-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.nola-mark,
.nola-empty-mark {
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    font-weight: 900;
}
.nola-mark { width: 30px; height: 30px; font-size: 15px; }
.nola-brand div { display: grid; gap: 1px; }
.nola-brand strong { font-size: 15px; font-weight: 900; }
.nola-brand span:last-child { color: var(--muted); font-size: 11px; }
.nola-new-chat { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line-dark); color: var(--black); background: var(--white); cursor: pointer; font-size: 13px; font-weight: 900; text-align: left; }
.nola-new-chat:hover { color: var(--white); background: var(--black); }
.nola-new-chat:first-letter { font-size: 18px; }
.nola-collapse { width: 34px; height: 40px; border: 1px solid var(--line-dark); color: var(--black); background: var(--white); cursor: pointer; font-size: 22px; line-height: 1; }
.nola-collapse:hover { color: var(--white); background: var(--black); }
.nola-history-label { margin: 26px 8px 8px; color: var(--muted); font-size: 11px; font-weight: 900; }
.nola-history { min-height: 0; overflow-y: auto; }
.nola-history-row { display: flex; align-items: center; gap: 2px; margin-bottom: 2px; }
.nola-history-row.is-active { background: var(--blue-bg); }
.nola-history-item { min-width: 0; flex: 1; overflow: hidden; padding: 9px 8px; border: 0; color: var(--text); background: transparent; cursor: pointer; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.nola-history-item:hover { color: var(--blue); }
.nola-history-remove { width: 26px; height: 28px; border: 0; color: var(--muted-2); background: transparent; cursor: pointer; opacity: 0; }
.nola-history-row:hover .nola-history-remove { opacity: 1; }
.nola-history-remove:hover { color: var(--error); }
.nola-history-empty { padding: 8px; color: var(--muted-2); font-size: 12px; }
.nola-scope-panel { margin-top: 22px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.nola-scope-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); font-size: 11px; font-weight: 900; }
.nola-scope-heading span:last-child { max-width: 120px; overflow: hidden; color: var(--blue); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.nola-scope-help { margin: 7px 0 10px; color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.nola-scope-options { display: grid; gap: 5px; max-height: 210px; overflow-y: auto; padding-right: 3px; }
.nola-scope-option { display: flex; align-items: center; gap: 8px; min-height: 25px; color: var(--muted); cursor: pointer; font-size: 11px; }
.nola-scope-option:hover { color: var(--text); }
.nola-scope-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }
.nola-scope-loading { color: var(--muted-2); font-size: 10px; }
.nola-sidebar-bottom { display: grid; gap: 8px; margin-top: auto; padding: 16px 8px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.nola-sidebar-bottom a { color: var(--text); font-size: 12px; font-weight: 800; }
.nola-shell.sidebar-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.nola-shell.sidebar-collapsed .nola-sidebar { padding-left: 10px; padding-right: 10px; }
.nola-shell.sidebar-collapsed .nola-brand { justify-content: center; padding-left: 0; padding-right: 0; }
.nola-shell.sidebar-collapsed .nola-brand div,
.nola-shell.sidebar-collapsed .nola-new-chat span,
.nola-shell.sidebar-collapsed .nola-history-label,
.nola-shell.sidebar-collapsed .nola-history,
.nola-shell.sidebar-collapsed .nola-scope-panel,
.nola-shell.sidebar-collapsed .nola-sidebar-bottom { display: none; }
.nola-shell.sidebar-collapsed .nola-sidebar-actions { display: grid; grid-template-columns: 1fr; }
.nola-shell.sidebar-collapsed .nola-new-chat { width: 42px; justify-content: center; padding: 0; font-size: 21px; }
.nola-shell.sidebar-collapsed .nola-collapse { width: 42px; }

.nola-main { min-width: 0; position: relative; display: grid; grid-template-rows: 52px minmax(0, 1fr) auto; min-height: 0; overflow: hidden; background: var(--white); }
.nola-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 900; }
.nola-source-note { color: var(--muted); font-size: 11px; font-weight: 650; }
.nola-conversation { width: min(860px, 100%); min-height: 0; position: relative; display: flex; flex-direction: column; margin: 0 auto; padding: 28px 24px 150px; overflow-y: auto; }
.nola-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.nola-empty[hidden] { display: none; }
.nola-empty-mark { width: 52px; height: 52px; margin-bottom: 18px; font-size: 25px; }
.nola-empty h1 { color: var(--black); font-size: 28px; font-weight: 900; }
.nola-empty p { max-width: 420px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.nola-messages { display: grid; gap: 28px; }
.nola-message { display: flex; align-items: flex-start; }
.nola-message-body { max-width: 82%; min-width: 0; padding-top: 4px; color: var(--text); font-size: 15px; line-height: 1.85; white-space: pre-wrap; }
.nola-message-user { justify-content: flex-end; }
.nola-message-user .nola-message-body { max-width: min(72%, 620px); padding: 10px 14px; border: 1px solid var(--line); background: var(--blue-bg); font-weight: 750; white-space: pre-wrap; }
.nola-message-assistant { justify-content: flex-start; }
.nola-message-assistant .nola-message-body { max-width: 86%; }
.nola-message-assistant .nola-message-body > p { margin: 0 0 12px; }
.nola-message-assistant .nola-message-body > p:last-child { margin-bottom: 0; }
.nola-message-assistant .nola-message-body h1,
.nola-message-assistant .nola-message-body h2,
.nola-message-assistant .nola-message-body h3 { margin: 18px 0 8px; color: var(--black); line-height: 1.3; }
.nola-message-assistant .nola-message-body h1 { font-size: 22px; }
.nola-message-assistant .nola-message-body h2 { font-size: 19px; }
.nola-message-assistant .nola-message-body h3 { font-size: 16px; }
.nola-message-assistant .nola-message-body ul,
.nola-message-assistant .nola-message-body ol { margin: 4px 0 14px 22px; }
.nola-message-assistant .nola-message-body li { margin: 4px 0; }
.nola-message-assistant .nola-message-body code { padding: 2px 5px; color: var(--black); background: var(--blue-bg); font-size: .9em; }
.nola-message-assistant .nola-message-body pre { overflow-x: auto; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); background: #f4f6f6; }
.nola-message-assistant .nola-message-body pre code { padding: 0; background: transparent; white-space: pre; }
.nola-thinking { min-width: 280px; padding: 12px 14px; border-left: 2px solid var(--blue); background: var(--blue-bg); }
.nola-thinking-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nola-thinking-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: nola-pulse 1s ease-in-out infinite; }
.nola-thinking-steps { display: flex; gap: 14px; margin-top: 9px; color: var(--muted-2); font-size: 11px; }
.nola-thinking-steps span.is-active { color: var(--blue); font-weight: 800; }
@keyframes nola-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.answer-citation { color: var(--blue); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.nola-message-citations { display: grid; gap: 6px; margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--blue); background: var(--blue-bg); white-space: normal; }
.nola-message-citations a { color: var(--blue); font-size: 12px; font-weight: 750; }
.nola-composer { width: min(860px, 100%); position: relative; margin: 0 auto; padding: 0 24px 20px; }
.nola-input-wrap { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 16px; border: 1px solid var(--line-dark); background: var(--white); box-shadow: 0 5px 0 var(--line-dark); }
.nola-input-wrap textarea { width: 100%; max-height: 160px; resize: none; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 14px; line-height: 1.55; }
.nola-input-wrap textarea:disabled { opacity: .55; }
.nola-send { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line-dark); color: var(--white); background: var(--black); cursor: pointer; font-size: 20px; line-height: 1; }
.nola-send:hover { background: var(--blue); }
.nola-disclaimer { margin-top: 12px; color: var(--muted-2); font-size: 10px; text-align: center; }

/* NIO-inspired quiet workspace: hierarchy comes from space and tone, not frames. */
.nola-shell {
    grid-template-columns: 236px minmax(0, 1fr);
    border: 0;
    background: #f4f6f6;
}

.nola-sidebar {
    padding: 24px 18px 18px;
    border-right: 0;
    background: #f4f6f6;
}

.nola-sidebar-top {
    gap: 20px;
}

.nola-brand {
    padding: 0 4px;
}

.nola-mark {
    color: var(--white);
    background: var(--nio-teal);
}

.nola-new-chat {
    min-height: 42px;
    padding: 0 13px;
    border: 0;
    border-radius: 3px;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(17, 28, 31, .06);
    font-weight: 750;
}

.nola-new-chat:hover {
    color: var(--black);
    background: #e9eeee;
}

.nola-collapse {
    height: 42px;
    border: 0;
    border-radius: 3px;
    color: var(--muted);
    background: transparent;
}

.nola-collapse:hover {
    color: var(--black);
    background: #e9eeee;
}

.nola-history-label {
    margin: 28px 6px 9px;
    font-weight: 700;
}

.nola-history-row {
    margin-bottom: 3px;
    border-radius: 3px;
}

.nola-history-row.is-active {
    background: #e5eaea;
}

.nola-history-item {
    padding: 10px 8px;
}

.nola-scope-panel {
    margin-top: 24px;
    padding: 18px 6px 0;
    border-top-color: rgba(103, 116, 121, .14);
}

.nola-scope-option {
    min-height: 28px;
}

.nola-scope-option input {
    width: 13px;
    height: 13px;
}

.nola-sidebar-bottom {
    margin-inline: 6px;
    padding: 16px 0 2px;
    border-top-color: rgba(103, 116, 121, .14);
}

.nola-main {
    grid-template-rows: 60px minmax(0, 1fr) auto;
    background: var(--white);
}

.nola-topbar {
    padding: 0 36px;
    border-bottom: 0;
    font-weight: 750;
}

.nola-source-note {
    color: var(--muted-2);
    font-weight: 500;
}

.nola-conversation {
    width: min(900px, 100%);
    padding: 34px 32px 164px;
}

.nola-empty {
    width: min(900px, 100%);
    inset: auto 50% 50%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 32px;
    text-align: left;
    transform: translate(-50%, 42%);
}

.nola-empty-eyebrow {
    color: var(--nio-teal);
    font-size: 11px;
    font-weight: 800;
}

.nola-empty h1 {
    margin-top: 13px;
    font-size: 42px;
    font-weight: 650;
    letter-spacing: 0;
}

.nola-empty > p:not(.nola-empty-eyebrow) {
    max-width: 570px;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.75;
}

.nola-prompts {
    width: min(650px, 100%);
    display: grid;
    margin-top: 38px;
}

.nola-prompts button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(103, 116, 121, .2);
    color: var(--text);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    text-align: left;
}

.nola-prompts button:hover {
    color: var(--nio-teal);
}

.nola-prompts button span {
    color: var(--muted-2);
    font-size: 16px;
}

.nola-messages {
    gap: 42px;
}

.nola-message-body {
    font-size: 15px;
    line-height: 1.9;
}

.nola-message-user .nola-message-body {
    max-width: min(68%, 600px);
    padding: 12px 16px;
    border: 0;
    border-radius: 4px;
    background: #edf3f2;
    font-weight: 650;
}

.nola-message-assistant .nola-message-body {
    max-width: 90%;
}

.nola-message-assistant .nola-message-body pre {
    border: 0;
    border-radius: 3px;
    background: #f4f6f6;
}

.nola-thinking {
    min-width: 0;
    padding: 14px 0;
    border-left: 0;
    background: transparent;
}

.nola-thinking-dot {
    width: 7px;
    height: 7px;
}

.nola-message-citations {
    gap: 8px;
    margin-top: 24px;
    padding: 16px 18px;
    border-left: 0;
    border-radius: 3px;
    background: #f4f7f7;
}

.nola-message-citations a {
    color: #397d7b;
    font-weight: 650;
}

.nola-composer {
    width: min(900px, 100%);
    padding: 0 32px 22px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white) 24px);
}

.nola-input-wrap {
    min-height: 56px;
    align-items: center;
    padding: 10px 11px 10px 18px;
    border: 0;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 10px 34px rgba(25, 42, 46, .12), 0 0 0 1px rgba(103, 116, 121, .14);
}

.nola-input-wrap:focus-within {
    box-shadow: 0 12px 38px rgba(25, 42, 46, .14), 0 0 0 1px rgba(0, 169, 165, .55);
}

.nola-input-wrap textarea {
    display: block;
    line-height: 1.55;
}

.nola-send {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--black);
}

.nola-disclaimer {
    margin-top: 11px;
}

.nola-shell.sidebar-collapsed {
    grid-template-columns: 62px minmax(0, 1fr);
}

.nola-shell.sidebar-collapsed .nola-new-chat,
.nola-shell.sidebar-collapsed .nola-collapse {
    width: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Manual report center */
.reports-page,
.report-detail-page {
    display: grid;
    gap: 30px;
}

.report-builder,
.report-history,
.report-reading {
    border: 1px solid var(--line-dark);
    background: var(--white);
}

.report-section-head {
    min-height: 82px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-dark);
}

.report-section-head h2,
.report-reading h2 {
    font-size: 24px;
    line-height: 1.2;
}

.report-kicker {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.report-note {
    color: var(--muted);
    font-size: 12px;
}

.report-form {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.report-form-grid {
    display: grid;
    grid-template-columns: .7fr 1fr 1fr 1.1fr .7fr;
    gap: 12px;
}

.report-field {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.report-field small {
    color: var(--muted);
    font-weight: 500;
}

.report-field input,
.report-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid var(--line-dark);
    border-radius: 0;
    outline: 0;
    color: var(--text);
    background: var(--white);
}

.report-field input:focus,
.report-field select:focus {
    box-shadow: inset 0 -3px var(--blue);
}

.report-title-field {
    max-width: 720px;
}

.report-evidence {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
}

.report-evidence legend {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.report-evidence label {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--line-dark);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.report-evidence input {
    accent-color: var(--blue);
}

.report-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.report-form-actions p {
    color: var(--muted);
    font-size: 12px;
}

.report-list {
    display: grid;
}

.report-row {
    min-height: 76px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 150px 24px;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
}

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

.report-row:hover {
    background: var(--blue-bg);
}

.report-kind {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: var(--white);
    background: var(--black);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.report-row-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.report-row-main strong {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.report-row-main small,
.report-row time {
    color: var(--muted);
    font-size: 11px;
}

.report-open {
    color: var(--blue);
    font-weight: 900;
}

.report-empty {
    padding: 32px 20px;
    color: var(--muted);
    font-size: 13px;
}

.report-detail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0 22px;
    border-bottom: 1px solid var(--line-dark);
}

.report-detail-title {
    min-width: 0;
    display: grid;
    justify-items: start;
    gap: 10px;
}

.report-detail-title h1 {
    max-width: 900px;
    overflow-wrap: anywhere;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.report-detail-title p {
    color: var(--muted);
    font-size: 12px;
}

.report-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.report-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line-dark);
}

.report-overview > div {
    min-height: 90px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-right: 1px solid var(--line-dark);
}

.report-overview > div:last-child {
    border-right: 0;
}

.report-overview span {
    color: var(--muted);
    font-size: 11px;
}

.report-overview strong {
    overflow-wrap: anywhere;
    font-size: 18px;
}

.report-reading-intro,
.report-group {
    padding: 22px 24px;
}

.report-reading-intro {
    border-bottom: 1px solid var(--line-dark);
}

.report-reading-intro p {
    max-width: 860px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.report-group + .report-group {
    border-top: 1px solid var(--line-dark);
}

.report-group > h2 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-dark);
}

.report-group > h2 span {
    color: var(--blue);
    font-size: 13px;
}

.report-entry {
    display: grid;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

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

.report-entry-meta,
.report-footnote {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
}

.report-entry-meta span:first-child {
    color: var(--blue);
    font-weight: 900;
}

.report-entry h3 {
    max-width: 960px;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.4;
}

.report-entry > p {
    max-width: 960px;
    color: #252a30;
    font-size: 14px;
    line-height: 1.8;
}

.report-attention {
    max-width: 960px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--blue);
    background: var(--blue-bg);
    font-size: 13px;
}

.report-footnote a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.report-version {
    padding: 14px 0;
    color: var(--muted-2);
    border-top: 1px solid var(--line-dark);
    font-size: 10px;
}

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

@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: 1fr auto 1fr;
        gap: 16px;
        padding: 0 20px;
    }

    .header-primary-nav {
        gap: 18px;
    }

    .header-primary-link:nth-child(4),
    .header-primary-link:nth-child(5) {
        display: none;
    }

    .site-navigation-content {
        grid-template-columns: 1fr 1fr;
        gap: 42px 7vw;
        padding-inline: 34px;
    }

    .menu-master-detail {
        grid-template-columns: .85fr 1.15fr;
    }

    .menu-command-column {
        grid-row: span 2;
    }

    .menu-detail-column {
        grid-column: 2;
    }

    .menu-section-admin {
        grid-column: 1 / -1;
    }

    .menu-section-admin .menu-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

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

    .module-overview,
    .module-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 68px;
    }

    .container {
        padding: 28px 16px 56px;
    }

    body.home-route .container {
        padding-bottom: 28px;
    }

    .header-inner {
        gap: 8px;
        padding: 0 12px;
    }

    .header-left {
        width: 100%;
    }

    .header-primary-nav,
    .header-management-details {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .header-user-trigger {
        width: 32px;
        height: 32px;
    }

    .header-user-menu {
        right: -2px;
    }

    .header-logo-title {
        font-size: 11px;
    }

    .header-logo-sub {
        display: none;
    }

    .header-logo-mark {
        width: 22px;
        height: 22px;
    }

    .header-logo-centered {
        gap: 8px;
    }

    .back-button {
        display: none;
    }

    .header-assistant-link,
    .menu-assistant-link {
        min-height: 34px;
        padding: 0 11px;
        font-size: 11px;
    }

    .site-navigation-bar {
        height: var(--header-height);
        padding: 0 12px;
    }

    .site-navigation-content {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 22px 22px 50px;
    }

    .menu-master-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .menu-command-column {
        grid-row: auto;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .menu-command-admin {
        grid-column: 1 / -1;
    }

    .menu-business-selectors {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
        padding-bottom: 8px;
    }

    .menu-business-selector {
        min-width: 0;
        min-height: 42px;
        display: flex;
        gap: 5px;
        padding: 0 10px;
        border: 1px solid var(--line);
    }

    .menu-business-selector strong {
        font-size: 13px;
        line-height: 1.3;
        white-space: normal;
    }

    .menu-business-selector.is-active {
        border-color: var(--black);
        background: var(--blue-bg);
    }

    .menu-detail-column {
        grid-column: auto;
    }

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

    .menu-section-admin {
        grid-column: auto;
    }

    .menu-section-admin .menu-links {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .menu-links-primary .menu-link strong {
        font-size: 27px;
    }

    .menu-link strong {
        font-size: 20px;
    }

    .menu-link small {
        display: none;
    }

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

    .report-evidence {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .report-evidence label {
        width: 100%;
        min-height: 40px;
    }

    .report-overview {
        grid-template-columns: 1fr 1fr;
    }

    .report-row {
        grid-template-columns: 56px minmax(0, 1fr) 20px;
    }

    .report-row time {
        display: none;
    }

    .report-detail-head,
    .report-form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-downloads {
        justify-content: flex-start;
    }

    .report-overview > div:nth-child(2) {
        border-right: 0;
    }

    .report-overview > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line-dark);
    }

    .report-attention {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .l-mv,
    .page-heading {
        min-height: 168px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
    }

    .page-heading {
        min-height: 0;
        padding: 14px 0 18px;
        justify-content: flex-start;
    }

    .anchor-inner {
        grid-template-columns: 1fr;
    }

    .anchor-title {
        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .anchor-list {
        grid-template-columns: 1fr 1fr;
    }

    .anchor-list li:nth-child(2n) {
        border-right: 0;
    }

    .anchor-list a {
        min-height: 54px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card:nth-child(2n) {
        border-right: 0;
    }

    .stat-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line-dark);
    }

    .compact-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-search {
        min-width: 0;
        width: 100%;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .nola-shell {
        height: calc(100vh - var(--header-height));
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: 132px minmax(0, 1fr);
        margin: -28px -16px -56px;
    }

    .nola-sidebar {
        min-height: auto;
        max-height: 178px;
        padding: 12px 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .nola-sidebar-top { grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
    .nola-sidebar-actions { grid-template-columns: auto auto; }
    .nola-new-chat, .nola-collapse { min-height: 34px; height: 34px; padding: 0 9px; }
    .nola-history-label { margin: 8px 8px 4px; }
    .nola-history { display: flex; gap: 6px; overflow-x: auto; }
    .nola-history-row { min-width: 150px; border: 1px solid var(--line); }
    .nola-sidebar-bottom { display: none; }
    .nola-main { min-height: 0; }
    .nola-topbar { padding: 0 16px; }
    .nola-source-note { display: none; }
    .nola-conversation { padding: 22px 16px 130px; }
    .nola-composer { padding: 0 16px 14px; }
    .nola-empty h1 { font-size: 24px; }
    .nola-shell.sidebar-collapsed { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); }
    .nola-shell.sidebar-collapsed .nola-sidebar { display: none; }
    .nola-message-body,
    .nola-message-user .nola-message-body,
    .nola-message-assistant .nola-message-body { max-width: 92%; }

    .home-route .directory-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-route .directory-item {
        min-height: 92px;
        padding: 10px;
    }

    .home-route .directory-item > span:not(.directory-index):not(.directory-arrow) {
        display: none;
    }

    .nola-sidebar {
        height: 132px;
        max-height: 132px;
        padding: 10px 14px 8px;
        border-bottom: 0;
        background: #f4f6f6;
    }

    .nola-brand {
        padding: 0;
    }

    .nola-new-chat,
    .nola-collapse {
        border: 0;
        box-shadow: none;
    }

    .nola-new-chat {
        background: var(--white);
    }

    .nola-history-row {
        min-width: 150px;
        border: 0;
        background: rgba(255, 255, 255, .72);
    }

    .nola-scope-panel {
        display: none;
    }

    .nola-topbar {
        min-height: 48px;
        padding: 0 18px;
    }

    .nola-conversation {
        padding: 24px 18px 132px;
    }

    .nola-empty {
        inset: auto 50% 50%;
        padding: 0 18px;
        transform: translate(-50%, 44%);
    }

    .nola-empty h1 {
        font-size: 32px;
    }

    .nola-empty > p:not(.nola-empty-eyebrow) {
        font-size: 13px;
    }

    .nola-prompts {
        margin-top: 26px;
    }

    .nola-prompts button {
        min-height: 46px;
        font-size: 12px;
    }

    .nola-composer {
        padding: 0 16px 14px;
    }

    .nola-message-user .nola-message-body {
        max-width: 88%;
    }

}

/* Final article overrides */
body.articles-route .articles-page { gap: 0; }
body.articles-route .article-list { border: 0; background: transparent; }
body.articles-route .article-item { padding: 0; border-bottom: 1px solid var(--line); background: transparent; }
body.articles-route .article-item:hover { background: transparent; }
body.articles-route .article-title {
    color: var(--ink);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.4;
}
body.articles-route .article-summary { max-width: 820px; margin-top: 9px; font-size: 13px; line-height: 1.72; }

body.article-detail-route .detail-page { display: grid; gap: 54px; }
body.article-detail-route .detail-heading {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 42px;
    padding: 18px 0 38px;
    border-bottom: 1px solid var(--line-dark);
}
body.article-detail-route .detail-title {
    max-width: 980px;
    margin-top: 13px;
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1.16;
}
body.article-detail-route .detail-meta { margin-top: 24px; }
body.article-detail-route .detail-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 68px; }
body.article-detail-route .detail-content,
body.article-detail-route .detail-panel { border: 0; background: transparent; }
body.article-detail-route .detail-content-header { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
body.article-detail-route .summary-reading { max-width: 780px; padding: 34px 0 8px; font-size: 16px; line-height: 1.95; }
body.article-detail-route .detail-source-links { padding: 22px 0 0; }
body.article-detail-route .detail-panel { padding: 0 0 28px; }
body.article-detail-route .detail-panel + .detail-panel { padding-top: 28px; border-top: 1px solid var(--line); }
body.article-detail-route .detail-panel h2 { font-size: 17px; font-weight: 500; }
body.article-detail-route .knowledge-links { border-right: 0; border-left: 0; }

@media (max-width: 860px) {
    body.article-detail-route .detail-heading,
    body.article-detail-route .detail-layout { grid-template-columns: 1fr; }
    body.article-detail-route .detail-heading { align-items: start; }
    body.article-detail-route .detail-layout { gap: 48px; }
}

@media (max-width: 620px) {
    body.articles-route .article-title { font-size: 18px; }
    body.article-detail-route .detail-page { gap: 38px; }
    body.article-detail-route .detail-heading { gap: 28px; padding: 6px 0 28px; }
    body.article-detail-route .detail-title { font-size: 34px; }
    body.article-detail-route .summary-reading { padding-top: 28px; font-size: 15px; }
}

/* Simplified two-level site navigation. */
.site-navigation-content.menu-master-detail {
    width: min(1120px, 100%);
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(64px, 9vw, 130px);
    padding-top: 30px;
}

.menu-command-column {
    gap: 26px;
}

.menu-command-column > .menu-command-group:first-child {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.menu-command-links .menu-link {
    min-height: 36px;
}

.menu-command-links .menu-link strong {
    font-size: 14px;
    font-weight: 550;
}

.menu-business-column .menu-section-title {
    margin-bottom: 8px;
}

.menu-business-selector {
    min-height: 39px;
    grid-template-columns: 18px minmax(0, 1fr);
}

.menu-business-selector strong {
    font-size: 17px;
    font-weight: 500;
}

.menu-business-selector > span {
    font-size: 14px;
}

.menu-business-selector:focus-visible {
    outline: 0;
    box-shadow: inset 2px 0 0 var(--nio-teal);
}

.menu-detail-column {
    padding-top: 4px;
}

.menu-detail-heading {
    min-height: 86px;
}

.menu-detail-heading h2 {
    font-size: 32px;
}

.menu-detail-group {
    padding-top: 24px;
}

.menu-detail-links a {
    min-height: 46px;
    font-size: 14px;
    font-weight: 550;
}

@media (max-width: 900px) {
    .site-navigation-content.menu-master-detail {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 44px;
        padding-inline: 28px;
    }
}

@media (max-width: 680px) {
    .site-navigation-content.menu-master-detail {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 18px 20px 50px;
    }

    .menu-command-column {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .menu-business-column {
        min-width: 0;
    }

    .menu-business-selectors {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .menu-business-selector {
        min-width: max-content;
        min-height: 38px;
        display: inline-flex;
        gap: 5px;
        padding: 0 10px;
        border: 1px solid var(--line);
    }

    .menu-business-selector strong {
        font-size: 13px;
    }

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

/* Wiki-style knowledge workspace. */
body.knowledge-route .container {
    width: min(1440px, 100%);
    padding-top: 0;
}

.kb-wiki {
    min-height: calc(100vh - var(--header-height, 64px));
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 0;
}

.kb-wiki-sidebar {
    min-width: 0;
    padding: 34px 20px 40px 0;
    border-right: 1px solid var(--line);
}

.kb-sidebar-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 14px;
}

.kb-sidebar-heading strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.kb-sidebar-heading span {
    color: var(--ink-muted);
    font-size: 10px;
}

.kb-space-list {
    display: grid;
    gap: 3px;
}

.kb-space-link {
    min-height: 40px;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 0 12px;
    color: var(--ink-muted);
    font-size: 13px;
}

.kb-space-link:hover,
.kb-space-node.is-current > .kb-space-link {
    color: var(--ink);
    background: #f3f6f6;
}

.kb-space-node.is-current > .kb-space-link {
    font-weight: 600;
}

.kb-space-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b8c2c3;
}

.kb-space-node.is-current .kb-space-marker {
    background: var(--nio-teal);
}

.kb-space-count {
    color: #8d989a;
    font-size: 10px;
}

.kb-space-children {
    display: grid;
    margin: 3px 0 8px 30px;
    padding-left: 11px;
    border-left: 1px solid #dce2e2;
}

.kb-space-children a {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    color: var(--ink-muted);
    font-size: 12px;
}

.kb-space-children a:hover,
.kb-space-children a.is-active {
    color: var(--nio-teal);
}

.kb-space-children small {
    color: #9aa4a5;
    font-size: 10px;
}

.kb-sidebar-assistant {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 22px 12px 0;
    padding: 15px 0 0;
    border-top: 1px solid var(--line);
}

.kb-sidebar-assistant span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.kb-sidebar-assistant small {
    color: var(--ink-muted);
    font-size: 10px;
}

.kb-wiki-main {
    min-width: 0;
    padding: 34px 0 72px 52px;
}

.kb-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #8a9596;
    font-size: 11px;
}

.kb-breadcrumb a:hover {
    color: var(--nio-teal);
}

.kb-space-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 0 24px;
}

.kb-space-header p {
    margin: 0 0 8px;
    color: var(--nio-teal);
    font-size: 10px;
    font-weight: 600;
}

.kb-space-header h1 {
    margin: 0;
    color: var(--ink);
    font-size: 42px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
}

.kb-space-header > div > span {
    display: block;
    margin-top: 12px;
    color: var(--ink-muted);
    font-size: 13px;
}

.kb-ask-link {
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.kb-ask-link:hover {
    color: var(--nio-teal);
    border-color: var(--nio-teal);
}

.kb-space-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 11px;
}

.kb-space-summary strong {
    color: var(--ink);
    font-weight: 600;
}

.kb-search {
    margin-top: 28px;
}

.kb-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.kb-search > div {
    height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid #aeb9ba;
}

.kb-search input {
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 13px;
}

.kb-search button {
    height: 100%;
    padding: 0 2px 0 20px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.kb-search button:hover {
    color: var(--nio-teal);
}

.kb-wiki-section {
    margin-top: 44px;
}

.kb-wiki-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line-dark);
}

.kb-wiki-section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    font-weight: 600;
}

.kb-wiki-section-heading p {
    margin: 6px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.kb-wiki-section-heading > span {
    color: var(--ink-muted);
    font-size: 10px;
}

.kb-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.kb-topic-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 2px 10px;
    align-content: center;
    min-height: 92px;
    border-bottom: 1px solid var(--line);
}

.kb-topic-item:hover strong {
    color: var(--nio-teal);
}

.kb-topic-index {
    grid-row: 1 / 3;
    color: #9aa4a5;
    font-size: 10px;
}

.kb-topic-item strong {
    min-width: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.kb-topic-item small {
    color: var(--ink-muted);
    font-size: 10px;
}

.kb-document-list {
    display: grid;
}

.kb-document-row {
    min-width: 0;
    min-height: 74px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 68px;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.kb-document-row:hover {
    background: #f5f7f7;
}

.kb-document-date,
.kb-document-kind {
    color: var(--ink-muted);
    font-size: 10px;
}

.kb-document-content {
    min-width: 0;
}

.kb-document-content strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.45;
}

.kb-document-content small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-document-kind {
    text-align: right;
}

.kb-empty {
    padding: 58px 0;
    text-align: center;
}

.kb-empty strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.kb-empty p {
    margin: 8px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
}

@media (max-width: 900px) {
    .kb-wiki {
        grid-template-columns: 205px minmax(0, 1fr);
    }

    .kb-wiki-sidebar {
        padding-right: 14px;
    }

    .kb-wiki-main {
        padding-left: 30px;
    }

    .kb-topic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body.knowledge-route .container {
        padding-top: 0;
    }

    .kb-wiki {
        display: block;
        min-height: 0;
    }

    .kb-wiki-sidebar {
        padding: 22px 0 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .kb-sidebar-heading {
        padding: 0;
    }

    .kb-space-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .kb-space-node.is-current {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .kb-space-link {
        padding-inline: 9px;
    }

    .kb-space-children {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 17px;
    }

    .kb-sidebar-assistant {
        display: none;
    }

    .kb-wiki-main {
        padding: 24px 0 54px;
    }

    .kb-space-header {
        align-items: flex-start;
        padding-top: 28px;
    }

    .kb-space-header h1 {
        font-size: 34px;
    }

    .kb-space-header > div > span {
        max-width: 260px;
        line-height: 1.6;
    }

    .kb-document-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 14px;
        padding: 13px 0;
    }

    .kb-document-date {
        grid-column: 1;
        grid-row: 2;
    }

    .kb-document-content {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .kb-document-kind {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Shared visual language for business, research, reports, and management. */
body.business-route .container,
body.management-route .container,
body.reports-route .container,
body.knowledge-route .container,
body.opinion-route .container,
body.enforcement-route .container {
    width: min(1220px, 100%);
    padding-top: 50px;
}

body.business-route .page-heading,
body.management-route .page-heading,
body.reports-route .page-heading,
body.knowledge-route .page-heading,
body.opinion-route .page-heading,
body.enforcement-route .page-heading {
    min-height: 0;
    align-items: end;
    padding: 18px 0 34px;
    border-bottom: 1px solid var(--line-dark);
}

body.business-route .page-title,
body.management-route .page-title,
body.reports-route .page-title,
body.knowledge-route .page-title,
body.opinion-route .page-title,
body.enforcement-route .page-title {
    margin-top: 8px;
    font-size: clamp(42px, 5vw, 60px);
    font-weight: 500;
    line-height: 1.08;
}

body.business-route .page-lede,
body.knowledge-route .page-lede,
body.opinion-route .page-lede,
body.enforcement-route .page-lede {
    max-width: 680px;
    margin-top: 14px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.7;
}

body.business-route .btn,
body.management-route .btn,
body.reports-route .btn,
body.knowledge-route .btn,
body.opinion-route .btn,
body.enforcement-route .btn {
    min-height: 40px;
    padding: 0 15px;
    border-color: var(--line-dark);
    font-size: 11px;
    font-weight: 600;
}

body.business-route .btn-primary,
body.management-route .btn-primary,
body.reports-route .btn-primary,
body.knowledge-route .btn-primary,
body.opinion-route .btn-primary,
body.enforcement-route .btn-primary {
    color: var(--white);
    background: var(--ink);
}

body.business-route .btn-primary:hover,
body.management-route .btn-primary:hover,
body.reports-route .btn-primary:hover,
body.knowledge-route .btn-primary:hover,
body.opinion-route .btn-primary:hover,
body.enforcement-route .btn-primary:hover {
    border-color: var(--nio-teal);
    background: var(--nio-teal);
}

body.business-route .directory-heading,
body.business-route .compliance-region-heading,
body.business-route .frontier-source-heading,
body.reports-route .report-section-head,
body.knowledge-route .section-header,
body.enforcement-route .app-reason-chart-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-dark);
}

body.business-route .directory-heading h2,
body.business-route .compliance-region-heading h2,
body.reports-route .report-section-head h2,
body.knowledge-route .section-header h2,
body.enforcement-route .app-reason-chart-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
}

body.business-route .business-category-grid,
body.business-route .compliance-category-grid,
body.business-route .compliance-focus-grid,
body.business-route .frontier-subcategory-grid {
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    background: transparent;
}

body.business-route .business-category-item,
body.business-route .compliance-category-item,
body.business-route .compliance-focus-item,
body.business-route .frontier-subcategory-card {
    min-height: 112px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

body.business-route .business-category-item:hover,
body.business-route .compliance-category-item:hover,
body.business-route .compliance-focus-item:hover,
body.business-route .frontier-subcategory-card:hover {
    color: var(--ink);
    background: #f4f7f7;
}

body.business-route .business-category-item strong,
body.business-route .compliance-category-item strong,
body.business-route .compliance-focus-item strong,
body.business-route .frontier-subcategory-card strong {
    font-weight: 550;
}

body.business-route .business-recent-list,
body.business-route .compliance-recent-list,
body.business-route .frontier-article-list {
    border-top: 1px solid var(--line);
}

body.business-route .business-recent-item,
body.business-route .compliance-recent-item,
body.business-route .frontier-article-row {
    border-bottom-color: var(--line);
    background: transparent;
}

body.business-route .business-recent-item:hover,
body.business-route .compliance-recent-item:hover,
body.business-route .frontier-article-row:hover {
    background: #f4f7f7;
}

body.opinion-route .opinion-stats,
body.enforcement-route .app-enforcement-stats,
body.knowledge-route .kb-stats,
body.reports-route .report-overview {
    gap: 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: transparent;
}

body.opinion-route .opinion-stats > div,
body.enforcement-route .app-enforcement-stats > div,
body.knowledge-route .kb-stats > div,
body.reports-route .report-overview > div {
    min-height: 96px;
    padding: 17px 20px;
    border-right: 1px solid var(--line);
    background: transparent;
}

body.opinion-route .opinion-stats strong,
body.enforcement-route .app-enforcement-stats strong,
body.knowledge-route .kb-stats strong {
    font-size: 32px;
    font-weight: 500;
}

body.knowledge-route .kb-clusters,
body.knowledge-route .kb-list,
body.reports-route .report-builder,
body.reports-route .report-history,
body.enforcement-route .app-reason-chart-section,
body.management-route .source-config-note,
body.management-route .detail-panel {
    border: 0;
    background: transparent;
}

body.knowledge-route .kb-clusters,
body.knowledge-route .kb-list {
    margin-top: 36px;
}

body.knowledge-route .kb-cluster-row,
body.knowledge-route .kb-item,
body.reports-route .report-row,
body.management-route .notification-item {
    border-bottom: 1px solid var(--line);
    background: transparent;
}

body.knowledge-route .kb-cluster-row:hover,
body.knowledge-route .kb-item:hover,
body.reports-route .report-row:hover,
body.management-route .notification-item:hover {
    background: #f4f7f7;
}

body.reports-route .report-builder,
body.reports-route .report-history {
    padding: 0;
}

body.reports-route .report-form {
    padding: 24px 0 42px;
}

body.reports-route .report-field input,
body.reports-route .report-field select,
body.management-route .stacked-form input,
body.management-route .stacked-form textarea,
body.enforcement-route .filter-input,
body.enforcement-route .filter-select {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

body.management-route .panel-note,
body.enforcement-route .app-enforcement-note {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
}

body.management-route .data-table,
body.enforcement-route .app-enforcement-table {
    border: 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

body.management-route .data-table {
    display: table;
    width: 100%;
}

body.management-route .management-table-scroll {
    width: 100%;
    overflow-x: auto;
}

body.management-route .source-management-table {
    min-width: 1160px;
}

body.management-route .data-table th,
body.enforcement-route .app-enforcement-table th {
    color: var(--ink-muted);
    background: transparent;
    font-size: 10px;
    font-weight: 600;
}

body.management-route .data-table th,
body.management-route .data-table td,
body.enforcement-route .app-enforcement-table th,
body.enforcement-route .app-enforcement-table td {
    border-right: 0;
    border-bottom-color: var(--line);
}

body.management-route .data-table tbody tr:hover,
body.enforcement-route .app-enforcement-table tbody tr:hover {
    background: #f4f7f7;
}

body.management-route .source-group-nav {
    margin-top: 4px;
}

body.management-route .notification-list {
    border: 0;
    border-top: 1px solid var(--line-dark);
}

body.management-route .notification-item {
    padding: 20px 0;
}

body.knowledge-route .kb-stats {
    border-right: 0;
    border-left: 0;
}

.home-section-heading h1,
.home-section-heading h2 {
    font-weight: 550;
}

.home-section-link {
    font-weight: 600;
}

.home-signal-content strong {
    font-weight: 600;
}

body.knowledge-route .kb-item strong {
    font-weight: 550;
}

body.reports-route .report-detail-title h1 {
    font-weight: 500;
}

body.reports-route .report-reading {
    border: 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: transparent;
}

body.reports-route .report-reading-intro,
body.reports-route .report-group {
    padding-right: 0;
    padding-left: 0;
}

body.reports-route .report-entry h3 {
    font-weight: 550;
}

body.reports-route .report-attention {
    border-left-width: 2px;
    background: #f4f7f7;
}

@media (max-width: 760px) {
    body.business-route .container,
    body.management-route .container,
    body.reports-route .container,
    body.knowledge-route .container,
    body.opinion-route .container,
    body.enforcement-route .container {
        padding-top: 24px;
    }

    body.business-route .page-heading,
    body.management-route .page-heading,
    body.reports-route .page-heading,
    body.knowledge-route .page-heading,
    body.opinion-route .page-heading,
    body.enforcement-route .page-heading {
        gap: 20px;
        padding: 8px 0 26px;
    }

    body.business-route .page-title,
    body.management-route .page-title,
    body.reports-route .page-title,
    body.knowledge-route .page-title,
    body.opinion-route .page-title,
    body.enforcement-route .page-title {
        font-size: 38px;
    }

    body.business-route .business-category-grid,
    body.business-route .compliance-category-grid,
    body.business-route .compliance-focus-grid,
    body.business-route .frontier-subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.business-route .business-category-item,
    body.business-route .compliance-category-item,
    body.business-route .compliance-focus-item,
    body.business-route .frontier-subcategory-card {
        min-height: 96px;
    }
}

@media (max-width: 680px) {
    .site-navigation .menu-business-selectors {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        overflow-x: hidden;
        padding-bottom: 8px;
    }

    .site-navigation .menu-business-selector {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        display: flex;
        gap: 5px;
        padding: 6px 10px;
    }

    .site-navigation .menu-business-selector strong {
        min-width: 0;
        font-size: 13px;
        line-height: 1.3;
        white-space: normal;
    }
}

/* Keep the knowledge workspace full-width after shared page-shell overrides. */
body.knowledge-route .container {
    width: min(1440px, 100%);
    padding-top: 0;
}

@media (max-width: 760px) {
    body.knowledge-route .container {
        padding-top: 0;
    }
}

/* Automotive data-compliance topic system. */
.automotive-topic-directory {
    margin: 0 0 42px;
    padding: 6px 0 38px;
    border-bottom: 1px solid var(--line-dark);
}

.automotive-topic-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
}

.automotive-topic-intro p {
    max-width: 720px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.7;
}

.automotive-topic-intro > span {
    flex: 0 0 auto;
    color: var(--ink-muted);
    font-size: 11px;
}

.automotive-topic-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(38px, 6vw, 88px);
}

.automotive-topic-group {
    min-width: 0;
}

.automotive-topic-group-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    color: #7f929f;
}

.automotive-topic-group-heading span,
.automotive-topic-group-heading small {
    font-size: 12px;
    font-weight: 400;
}

.automotive-topic-items {
    display: grid;
}

.automotive-topic-item {
    min-width: 0;
    display: block;
    padding: 15px 0 18px;
    color: var(--ink);
}

.automotive-topic-item + .automotive-topic-item {
    margin-top: 12px;
}

.automotive-topic-name {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.automotive-topic-name strong {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.automotive-topic-name b {
    flex: 0 0 auto;
    color: #8b9a9d;
    font-size: 10px;
    font-weight: 500;
}

.automotive-topic-item > small {
    display: block;
    margin-top: 7px;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.65;
}

.automotive-topic-item:hover .automotive-topic-name strong,
.automotive-topic-item:focus-visible .automotive-topic-name strong {
    color: var(--nio-teal);
}

.automotive-topic-item:focus-visible {
    outline: 0;
    box-shadow: 0 1px 0 var(--nio-teal);
}

@media (max-width: 900px) {
    .automotive-topic-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 48px;
    }

    .automotive-topic-group:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 24px;
    }

    .automotive-topic-group:last-child .automotive-topic-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 30px;
    }
}

@media (max-width: 620px) {
    .automotive-topic-directory {
        margin-bottom: 30px;
        padding-bottom: 28px;
    }

    .automotive-topic-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 26px;
    }

    .automotive-topic-groups {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .automotive-topic-group:last-child {
        grid-column: auto;
        display: block;
    }

    .automotive-topic-group:last-child .automotive-topic-items {
        grid-template-columns: 1fr;
    }

    .automotive-topic-item {
        padding: 12px 0;
    }

    .automotive-topic-item + .automotive-topic-item {
        margin-top: 5px;
    }

    .automotive-topic-name strong {
        font-size: 16px;
    }
}
