@font-face {
    font-family: "Roboto Condensed";
    font-style: normal;
    font-weight: 400;
    src:
        url("/assets/fonts/roboto-condensed-v19-latin-regular.woff2") format("woff2"),
        url("/assets/fonts/roboto-condensed-v19-latin-regular.woff") format("woff"),
        url("/assets/fonts/roboto-condensed-v19-latin-regular.ttf") format("truetype");
}

:root {
    --brand-blue: #4a8fd6;
    --brand-blue-dark: #2f76bf;
    --brand-blue-soft: #bdd4ec;
    --brand-blue-pale: #eaf2fb;
    --brand-orange: #ff9c00;
    --brand-ink: #111111;
    --brand-text: #1f2937;
    --brand-muted: #6b7280;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: #ffffff;
    --border-soft: rgba(74, 143, 214, 0.18);
    --shadow-soft: 0 18px 40px rgba(66, 93, 127, 0.12);
    --shadow-button: rgba(60, 64, 67, 0.18) 0 3px 5px -1px, rgba(60, 64, 67, 0.14) 0 6px 10px 0, rgba(60, 64, 67, 0.1) 0 1px 18px 0;
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Roboto Condensed", Arial, sans-serif;
    color: var(--brand-text);
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.98) 34%, rgba(189,212,236,0.88) 62%, rgba(241,247,253,0.96) 100%),
        radial-gradient(circle at top right, rgba(74,143,214,0.16), transparent 38%),
        #f7f9fc;
    line-height: 1.35;
}

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

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    overflow: visible;
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(246, 250, 254, 0.34)),
        linear-gradient(90deg, rgba(255,255,255,0.48) 0%, rgba(231,240,250,0.38) 58%, rgba(255,246,232,0.3) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 34px rgba(66, 93, 127, 0.12);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 46%),
        linear-gradient(90deg, rgba(74, 143, 214, 0.06), transparent 44%, rgba(255, 156, 0, 0.06));
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(74, 143, 214, 0.28), rgba(255, 156, 0, 0.22), transparent);
}

.header-inner {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    padding: 18px 28px 14px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-lockup img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-meta strong {
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--brand-ink);
    letter-spacing: 0.01em;
}

.brand-meta small {
    color: #7a838d;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.05;
}

.user-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ghost-pill {
    background: #fff;
    color: #3c4043;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 24px;
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(244,248,252,0.46));
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        var(--shadow-button);
    color: #3c4043;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

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

.nav-dropdown[open] summary,
.nav-dropdown summary:hover {
    transform: translateY(-1px);
    color: var(--brand-blue-dark);
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(247,251,255,0.56));
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 10px;
    border-radius: 18px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff;
    border: 1px solid rgba(74, 143, 214, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 18px 42px rgba(66, 93, 127, 0.18);
    display: grid;
    gap: 8px;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 14px;
    color: #3c4043;
    transition: background 160ms ease, color 160ms ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(234, 242, 251, 0.88);
    color: var(--brand-blue-dark);
}

.container {
    max-width: 1360px;
    margin: 28px auto 40px;
    padding: 0 22px;
}

.card,
.summary-card,
.map-card,
.table-card,
.controls-panel,
.progress-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

h1,
h2,
h3,
strong {
    font-weight: 400;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 2vw, 2.6rem);
    color: var(--brand-ink);
}

h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 1.5vw, 1.7rem);
    color: var(--brand-ink);
}

.intro,
.table-header p {
    color: var(--brand-muted);
    line-height: 1.5;
}

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

fieldset {
    margin: 0;
    border: 1px solid rgba(74,143,214,0.16);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255,255,255,0.72);
}

legend {
    padding: 0 8px;
    font-size: 1.05rem;
    color: var(--brand-ink);
}

label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--brand-muted);
}

input,
select,
button {
    width: 100%;
    margin-top: 6px;
    border-radius: 24px;
    border: 0;
    padding: 11px 18px;
    font-size: 1rem;
    background: #fff;
    font-family: "Roboto Condensed", Arial, sans-serif;
    box-shadow: var(--shadow-button);
    color: #3c4043;
}

button {
    width: auto;
    cursor: pointer;
    min-width: 180px;
    transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

button:hover {
    transform: translateY(-1px);
    background: #f7fbff;
    color: #174ea6;
}

button:focus,
input:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,143,214,0.22), var(--shadow-button);
}

.secondary-button {
    background: rgba(233, 241, 250, 0.98);
}

.warning-button {
    background: rgba(255, 244, 227, 0.98);
    color: #8a5a00;
}

.warning-button:hover {
    background: #fff3de;
    color: #7a4f00;
}

.secondary-button.active {
    background: linear-gradient(180deg, #5598dc, #448cd6);
    color: #fff;
}

.platform-body {
    overflow-x: hidden;
}

.platform-auth-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: center;
    gap: clamp(28px, 6vw, 90px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 24px;
}

.platform-auth-brand {
    display: grid;
    align-self: center;
    gap: 36px;
}

.platform-auth-brand h1 {
    max-width: 560px;
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 3.1vw, 3.35rem);
    line-height: 1.05;
}

.platform-auth-brand h1 span {
    display: block;
}

.platform-auth-brand h1 span + span {
    font-size: 1em;
}

.platform-auth-brand p {
    max-width: 560px;
    margin: 0;
    color: #3d4c5c;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

.platform-auth-copy {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: 30px;
    max-width: 680px;
    min-height: 430px;
    padding: 28px 30px 24px;
}

.platform-auth-copy::before {
    content: "";
    position: absolute;
    inset: 0 -50px 0 -28px;
    z-index: -1;
    border-radius: 0;
    background:
        radial-gradient(ellipse at 34% 50%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 44%, rgba(255, 255, 255, 0.34) 68%, rgba(255, 255, 255, 0) 100%);
    filter: blur(0.2px);
}

.platform-auth-copy > div {
    align-self: center;
}

.platform-auth-copy .platform-legal-links {
    align-self: end;
    margin-top: 0;
}

.platform-auth-card,
.platform-module-card,
.platform-admin-user {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(74, 143, 214, 0.18);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.platform-auth-card {
    align-self: center;
    padding: 26px;
}

.platform-card-header,
.platform-admin-user-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.platform-card-header h2 {
    margin: 0;
    line-height: 1.1;
}

.platform-card-header a,
.platform-legal-links a,
.platform-legal-page a {
    color: var(--brand-blue-dark);
}

.platform-card-header a {
    line-height: 1;
}

.platform-card-header a {
    padding-top: 7px;
}

.platform-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(47, 118, 191, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 242, 251, 0.82));
    color: var(--brand-blue-dark);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 20px rgba(66, 93, 127, 0.12);
}

.platform-nav-pill:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #ffffff, rgba(222, 236, 250, 0.95));
}

.platform-session-chip {
    display: inline-flex;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(74, 143, 214, 0.16);
    background: rgba(255, 255, 255, 0.58);
    color: #52616f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.platform-session-chip span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(47, 118, 191, 0.72);
    line-height: 1;
    transform: translateY(1.5px);
}

.platform-session-chip strong {
    font-variant-numeric: tabular-nums;
    color: #2d4054;
    font-size: 0.95rem;
    line-height: 1;
    transform: translateY(0.5px);
}

.platform-header-legal-stack {
    display: inline-grid;
    gap: 3px;
    align-content: center;
    justify-items: start;
    min-height: 42px;
}

.platform-header-legal-link {
    display: flex;
    align-items: center;
    min-height: auto;
    padding: 0;
    color: rgba(47, 118, 191, 0.78);
    font-size: 0.82rem;
    line-height: 1;
}

.platform-header-legal-link:hover {
    color: var(--brand-blue-dark);
}

.platform-form {
    display: grid;
    gap: 16px;
}

.platform-form label,
.platform-inline-form {
    display: grid;
    gap: 7px;
}

.platform-honeypot {
    position: absolute;
    left: -10000px;
}

.platform-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(234, 242, 251, 0.92);
    color: var(--brand-blue-dark);
}

.platform-message-error {
    background: rgba(255, 238, 238, 0.95);
    color: #9b1c1c;
}

.platform-legal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: -10px;
    color: var(--brand-blue-dark);
}

.platform-consent {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px !important;
    margin-top: 4px;
    padding: 12px 13px;
    border-radius: 12px;
    background: rgba(234, 242, 251, 0.72);
    color: #3d4c5c;
    line-height: 1.42;
}

.platform-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.platform-form-actions {
    margin-top: 8px;
}

.platform-login-actions {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.platform-auth-card .primary-button {
    min-height: 52px;
    border: 1px solid rgba(47, 118, 191, 0.5);
    background: linear-gradient(180deg, #3f8ed8, #246fb8);
    color: #fff;
    box-shadow:
        0 14px 30px rgba(47, 118, 191, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.platform-auth-card .primary-button:hover {
    background: linear-gradient(180deg, #4d9be2, #1f66aa);
    color: #fff;
}

.platform-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(47, 118, 191, 0.2);
    background: rgba(255, 255, 255, 0.5);
    color: rgba(47, 118, 191, 0.88);
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.platform-secondary-button:hover {
    border-color: rgba(47, 118, 191, 0.34);
    background: rgba(234, 242, 251, 0.72);
    color: var(--brand-blue-dark);
}

.platform-welcome {
    position: relative;
    z-index: 2;
    width: 100%;
}

.platform-welcome-hero {
    width: 100%;
    min-height: 320px;
    grid-template-columns: 1fr;
    display: block;
}

.platform-welcome-copy {
    display: grid;
    grid-template-columns: minmax(360px, 1.4fr) repeat(3, minmax(160px, 0.75fr));
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: none;
    min-height: 210px;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.platform-welcome-copy p {
    max-width: 880px;
}

.platform-welcome-copy::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -32%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 156, 0, 0.24), rgba(74, 143, 214, 0.12) 48%, transparent 72%);
    pointer-events: none;
}

.platform-session-grid {
    position: relative;
    z-index: 1;
    display: contents;
}

.platform-session-grid article {
    display: grid;
    gap: 4px;
    min-height: 132px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.platform-session-grid span {
    color: var(--brand-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.platform-session-grid strong {
    color: var(--brand-ink);
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
    line-height: 1;
}

.platform-session-grid small {
    color: var(--brand-muted);
    line-height: 1.25;
}

.platform-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.platform-module-card {
    display: grid;
    align-content: space-between;
    gap: 14px;
    min-height: 240px;
    padding: 22px;
}

.platform-module-card span,
.platform-admin-user-head span {
    color: var(--brand-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.platform-module-card p,
.platform-admin-user p {
    margin: 0;
    color: var(--brand-muted);
}

.platform-module-panel {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        var(--shadow-soft);
    backdrop-filter: blur(18px) saturate(1.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.platform-module-panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 28px;
}

.platform-module-panel-head > span {
    color: var(--brand-blue-dark);
    white-space: nowrap;
}

.platform-module-panel-head .home-kicker {
    margin: 0;
}

.platform-module-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.platform-module-compact-card {
    display: grid;
    gap: 4px;
    min-height: 94px;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(74, 143, 214, 0.14);
    box-shadow: 0 8px 18px rgba(66, 93, 127, 0.08);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.platform-module-compact-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(47, 118, 191, 0.26);
    box-shadow: 0 12px 26px rgba(66, 93, 127, 0.12);
}

.platform-module-compact-card span {
    color: var(--brand-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    line-height: 1.1;
}

.platform-module-compact-card strong {
    color: var(--brand-ink);
    font-size: 1.04rem;
    line-height: 1.12;
}

.platform-module-compact-card small {
    color: var(--brand-muted);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.platform-admin {
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 2;
    --admin-content-pad: clamp(20px, 2.5vw, 36px);
}

.platform-admin-body {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.98) 34%, rgba(189,212,236,0.72) 62%, rgba(241,247,253,0.96) 100%),
        radial-gradient(circle at top right, rgba(74,143,214,0.12), transparent 38%),
        #f7f9fc;
}

.platform-admin-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: stretch;
    padding: var(--admin-content-pad);
}

.platform-admin-hero-copy {
    display: grid;
    align-content: center;
    min-height: 180px;
    padding-left: 0;
}

.platform-admin-hero-text {
    display: grid;
    justify-items: start;
    gap: 0;
    padding-left: 1.4rem;
}

.platform-admin-hero-text .platform-admin-kicker,
.platform-admin-hero-text h1,
.platform-admin-hero-text p {
    margin-left: 0;
    padding-left: 0;
}

.platform-admin-kicker {
    display: block;
    margin-bottom: 0.85rem;
    color: #8a5a00;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.platform-admin-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.platform-admin-summary article {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 132px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.74);
}

.platform-admin-summary span,
.platform-panel-title {
    color: var(--brand-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.platform-admin-summary strong {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1;
}

.platform-admin-list {
    display: grid;
    gap: 0;
    margin-top: 0;
    margin-inline: var(--admin-content-pad);
    padding-inline: 0;
    overflow: hidden;
    border: 1px solid rgba(74, 143, 214, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(66, 93, 127, 0.1);
}

.platform-admin-user {
    overflow: hidden;
    padding: 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(74, 143, 214, 0.12);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.platform-admin-user summary {
    list-style: none;
    cursor: pointer;
}

.platform-admin-user summary::-webkit-details-marker {
    display: none;
}

.platform-admin-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.platform-admin-panel,
.platform-password-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.platform-module-checks {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 4px 0 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.platform-module-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.platform-module-checks label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0;
    background: transparent;
}

.platform-module-checks input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
    -webkit-appearance: checkbox;
    appearance: auto;
}

.platform-password-panel {
    margin-top: 14px;
}

.platform-user-badges {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.platform-status-badge,
.platform-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    justify-self: start;
}

.platform-status-pending {
    background: rgba(255, 156, 0, 0.16);
    color: #8a5a00;
}

.platform-status-active {
    background: rgba(32, 180, 134, 0.15);
    color: #08785a;
}

.platform-status-blocked {
    background: rgba(239, 68, 68, 0.14);
    color: #9b1c1c;
}

.platform-role-badge {
    background: rgba(74, 143, 214, 0.14);
    color: var(--brand-blue-dark);
}

.platform-module-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(234, 242, 251, 0.82);
    color: #52616f;
    font-size: 0.78rem;
    font-weight: 700;
    justify-self: start;
}

.platform-admin-table-head,
.platform-admin-user-head {
    margin: 0;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(230px, 1.4fr) minmax(90px, 0.55fr) minmax(78px, 0.45fr) minmax(76px, 0.35fr) minmax(92px, 0.45fr);
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid transparent;
}

.platform-admin-table-head {
    background: rgba(234, 242, 251, 0.8);
    color: var(--brand-blue-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.platform-admin-user-head {
    min-height: 62px;
}

.platform-admin-user-head > strong {
    color: var(--brand-ink);
    font-size: 1.05rem;
}

.platform-admin-user-head > span:not(.platform-status-badge):not(.platform-role-badge):not(.platform-module-count):not(.platform-row-action) {
    color: var(--brand-muted);
}

.platform-admin-user[open] .platform-admin-user-head {
    border-bottom-color: rgba(74, 143, 214, 0.12);
    background: rgba(255, 255, 255, 0.56);
}

.platform-admin-user-details {
    padding: 18px;
    background: rgba(247, 250, 253, 0.72);
}

.platform-row-action {
    justify-self: end;
    color: var(--brand-blue-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.platform-audit-log {
    margin-inline: var(--admin-content-pad);
    margin-bottom: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(74, 143, 214, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(66, 93, 127, 0.1);
}

.platform-audit-log summary {
    list-style: none;
    cursor: pointer;
}

.platform-audit-log summary::-webkit-details-marker {
    display: none;
}

.platform-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-bottom: 0;
}

.platform-audit-log[open] .platform-section-header {
    border-bottom: 1px solid rgba(74, 143, 214, 0.12);
}

.platform-section-header h2 {
    margin: 0;
}

.platform-section-header small {
    color: var(--brand-muted);
}

.platform-section-header::after {
    content: "Öffnen";
    color: var(--brand-blue-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.platform-audit-log[open] .platform-section-header::after {
    content: "Schließen";
}

.platform-audit-table {
    display: grid;
}

.platform-audit-table-head,
.platform-audit-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.85fr) minmax(150px, 0.9fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.2fr);
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
}

.platform-audit-table-head {
    background: rgba(234, 242, 251, 0.8);
    color: var(--brand-blue-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.platform-audit-row {
    border-top: 1px solid rgba(74, 143, 214, 0.1);
}

.platform-audit-row time,
.platform-audit-row span,
.platform-audit-row small {
    color: var(--brand-muted);
}

.platform-audit-row strong {
    color: var(--brand-ink);
}

.platform-audit-empty {
    margin: 0;
    padding: 18px;
    color: var(--brand-muted);
}

.platform-audit-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(74, 143, 214, 0.1);
}

.platform-legal-page {
    position: relative;
    z-index: 2;
    max-width: 980px;
    padding-top: 24px;
    padding-bottom: 64px;
}

.platform-legal-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(74, 143, 214, 0.18);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: clamp(22px, 4vw, 38px);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.platform-legal-card h1 {
    margin-top: 0;
}

.platform-legal-card h1:not(:first-child) {
    margin-top: 34px;
}

.platform-legal-card h2 {
    margin-top: 28px;
}

.platform-legal-card h3 {
    margin: 20px 0 8px;
    color: var(--brand-blue-dark);
    font-size: 1.05rem;
}

.platform-legal-card p {
    line-height: 1.62;
}

.is-hidden {
    display: none !important;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-action-row {
    margin-top: 12px;
}

.metric-note {
    display: block;
}

.exact-count-label {
    display: block;
    margin-top: 10px;
    font-size: 0.92rem;
    color: var(--brand-text);
}

.exact-count-result {
    display: block;
    margin-top: 4px;
    color: var(--brand-blue-dark);
}

.compact-button {
    min-width: 0;
    width: auto;
    padding: 9px 14px;
    font-size: 0.95rem;
}

#status-text {
    color: var(--brand-muted);
    font-size: 0.98rem;
}

#import-lock-state {
    display: block;
    margin-top: 4px;
}

.status-grid,
.summary-grid,
.progress-grid,
.runtime-grid,
.maps-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

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

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

.import-status-card {
    grid-column: 1 / -1;
}

.import-metric-card {
    grid-column: span 1;
}

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

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

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

.summary-card {
    min-height: 132px;
}

.summary-card p,
.summary-card span,
.progress-top,
small {
    color: var(--brand-muted);
}

.summary-card strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 2rem;
    color: var(--brand-ink);
}

.summary-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,251,255,0.82));
}

.progress-item {
    padding: 8px 0 0;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.progress-top strong {
    color: var(--brand-ink);
}

.progress-bar {
    height: 16px;
    border-radius: 999px;
    background: #dce8f0;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7eb1e4, #4a8fd6);
    transition: width 0.35s ease;
}

.runtime-card {
    border: 1px solid rgba(74,143,214,0.16);
}

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

.summary-table-card {
    margin-top: 18px;
}

.map-card header p {
    margin: 6px 0 14px;
    color: var(--brand-muted);
}

.map {
    height: 480px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(74,143,214,0.12);
}

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

#table-section {
    margin-top: 28px;
}

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

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(74,143,214,0.12);
    text-align: left;
    vertical-align: top;
}

tbody tr:hover {
    background: rgba(234, 242, 251, 0.75);
}

thead th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-muted);
    background: rgba(234, 242, 251, 0.72);
    position: sticky;
    top: 0;
    z-index: 1;
}

.summary-table thead th {
    position: static;
}

code {
    font-family: "Roboto Condensed", Arial, sans-serif;
    background: rgba(233, 241, 250, 0.96);
    padding: 1px 6px;
    border-radius: 8px;
}

.table-station,
.table-metric,
.table-value,
.table-delta {
    display: inline-block;
}

.table-station {
    color: var(--brand-ink);
    font-size: 1.04rem;
}

.table-metric {
    color: var(--brand-text);
}

.table-value {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(233, 241, 250, 0.9);
}

.table-delta {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 245, 228, 0.92);
    color: #8a5a00;
}

.station-metrics {
    display: grid;
    gap: 8px;
    min-width: 180px;
}

.station-metric-line {
    display: grid;
    gap: 6px;
}

.station-metric-label {
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.station-metric-value {
    display: inline-block;
}

td .station-metric-value {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(233, 241, 250, 0.9);
}

td:nth-child(4) .station-metric-value,
td:nth-child(5) .station-metric-value {
    background: rgba(255, 245, 228, 0.92);
    color: #8a5a00;
}

.leaflet-popup-content-wrapper {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(74,143,214,0.16);
}

.leaflet-popup-content {
    margin: 14px 16px;
    font-family: "Roboto Condensed", Arial, sans-serif;
    min-width: 220px;
}

.leaflet-popup-tip {
    background: #ffffff;
}

.leaflet-interactive {
    transition: fill-opacity 160ms ease, stroke 160ms ease, transform 160ms ease;
}

.leaflet-interactive:hover {
    stroke: #2f76bf;
    fill-opacity: 1;
}

.leaflet-container {
    background: #eaf2fb;
}

.leaflet-container.selection-crosshair {
    cursor: crosshair;
}

.weather-popup__title {
    font-size: 1.2rem;
    color: var(--brand-ink);
}

.weather-popup__subtitle {
    color: var(--brand-muted);
    margin-top: 2px;
}

.weather-popup__metric {
    margin-top: 12px;
    color: var(--brand-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.84rem;
}

.weather-popup__value {
    margin-top: 6px;
    font-size: 1.5rem;
    color: var(--brand-ink);
}

.weather-popup__meta {
    margin-top: 6px;
    color: var(--brand-muted);
}

@media (max-width: 1100px) {
    .period-grid,
    .status-grid,
    .progress-grid,
    .runtime-grid,
    .summary-grid,
    .maps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 14px;
    }

    .page-intro {
        padding-left: 14px;
    }

    .header-inner {
        padding: 16px 14px 12px;
    }

    .brand-row,
    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button-row {
        flex-direction: column;
    }

    .map {
        height: 360px;
    }
}

/* Restored newer LUCY UI layers after accidental stylesheet truncation */

.page-intro {
    margin-bottom: 1rem;
    padding-left: 20px;
}

.page-intro h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2.15vw, 2.05rem);
    line-height: 1.12;
}

.import-container > .page-intro,
.data-inspector-body .container > .page-intro {
    margin-bottom: 0;
}

.home-body {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(74, 143, 214, 0.16), transparent 34%),
        radial-gradient(circle at 82% 14%, rgba(255, 156, 0, 0.18), transparent 28%),
        linear-gradient(180deg, #eef5fc 0%, #f7fafd 45%, #eef3f9 100%);
}

.home-shell,
.home-header {
    background: transparent;
}

.home-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding-top: 1.2rem;
    padding-bottom: 2rem;
}

.home-orbit {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.home-orbit span {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(55px);
    opacity: 0.32;
    animation: homeFloat 22s linear infinite;
}

.home-orbit span:nth-child(1) {
    width: 18rem;
    height: 18rem;
    top: 4%;
    left: -3%;
    background: rgba(74, 143, 214, 0.38);
}

.home-orbit span:nth-child(2) {
    width: 20rem;
    height: 20rem;
    top: 14%;
    right: -5%;
    background: rgba(255, 156, 0, 0.34);
    animation-delay: -4s;
}

.home-orbit span:nth-child(3) {
    width: 24rem;
    height: 24rem;
    bottom: -6%;
    left: 32%;
    background: rgba(47, 118, 191, 0.22);
    animation-delay: -8s;
}

.lucy-analytics-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.92;
}

.lucy-analytics-background::before,
.lucy-analytics-background::after {
    content: "";
    position: absolute;
    inset: -8%;
}

.lucy-analytics-background::before {
    background-image:
        linear-gradient(rgba(74, 143, 214, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 143, 214, 0.08) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.38;
}

.lucy-analytics-background::after {
    background:
        radial-gradient(circle at 28% 28%, rgba(74, 143, 214, 0.18), transparent 26%),
        radial-gradient(circle at 72% 22%, rgba(255, 156, 0, 0.16), transparent 24%),
        radial-gradient(circle at 58% 74%, rgba(74, 143, 214, 0.12), transparent 30%);
    animation: lucyGlowShift 24s linear infinite;
}

.lucy-isolines {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.lucy-isolines::before,
.lucy-isolines::after {
    content: "";
    position: absolute;
    inset: -12% -8%;
    border-radius: 50%;
    border: 1px solid rgba(47, 118, 191, 0.16);
    transform: rotate(-10deg);
    animation: lucySweep 7.5s linear infinite;
}

.lucy-isolines::after {
    inset: 6% 2%;
    border-color: rgba(255, 156, 0, 0.16);
    animation-direction: reverse;
    animation-duration: 5.2s;
}

.lucy-sensor-field {
    position: absolute;
    inset: 0;
}

.lucy-sensor-field span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(47, 118, 191, 0.88);
    box-shadow: 0 0 0 5px rgba(47, 118, 191, 0.08), 0 0 16px rgba(47, 118, 191, 0.28);
    animation: sensorPulse 1.8s ease-in-out infinite;
}

.lucy-sensor-field span:nth-child(2n) {
    background: rgba(255, 156, 0, 0.88);
    box-shadow: 0 0 0 5px rgba(255, 156, 0, 0.08), 0 0 16px rgba(255, 156, 0, 0.28);
}

.lucy-sensor-field span:nth-child(1) { top: 8%; left: 12%; }
.lucy-sensor-field span:nth-child(2) { top: 14%; left: 68%; animation-delay: -0.7s; }
.lucy-sensor-field span:nth-child(3) { top: 21%; left: 36%; animation-delay: -0.2s; }
.lucy-sensor-field span:nth-child(4) { top: 27%; left: 84%; animation-delay: -1.1s; }
.lucy-sensor-field span:nth-child(5) { top: 39%; left: 22%; animation-delay: -0.5s; }
.lucy-sensor-field span:nth-child(6) { top: 46%; left: 58%; animation-delay: -1.3s; }
.lucy-sensor-field span:nth-child(7) { top: 57%; left: 9%; animation-delay: -0.9s; }
.lucy-sensor-field span:nth-child(8) { top: 64%; left: 73%; animation-delay: -0.4s; }
.lucy-sensor-field span:nth-child(9) { top: 72%; left: 42%; animation-delay: -1.5s; }
.lucy-sensor-field span:nth-child(10) { top: 79%; left: 87%; animation-delay: -0.1s; }
.lucy-sensor-field span:nth-child(11) { top: 83%; left: 16%; animation-delay: -1.8s; }
.lucy-sensor-field span:nth-child(12) { top: 88%; left: 56%; animation-delay: -0.6s; }
.lucy-sensor-field span:nth-child(13) { top: 33%; left: 48%; animation-delay: -1.2s; }

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
    gap: 1.2rem;
    align-items: stretch;
}

.home-hero-copy,
.home-command-card,
.home-panel,
.home-status-card,
.home-kpi-card {
    position: relative;
    border: 1px solid rgba(74, 143, 214, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 44px rgba(66, 93, 127, 0.12);
}

.home-hero-copy {
    padding: 1.8rem 2rem;
    min-height: 250px;
}

.home-kicker {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--brand-blue-dark);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.home-hero-copy p {
    margin: 0;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.6;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.72rem 1.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-ghost-cta {
    color: var(--brand-text);
    background: #ffffff;
    border: 1px solid rgba(74, 143, 214, 0.24);
    box-shadow: 0 10px 22px rgba(66, 93, 127, 0.08);
}

.home-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(66, 93, 127, 0.12);
}

.home-command-card {
    overflow: hidden;
    min-height: 250px;
    padding: 1.2rem 1.35rem 1.35rem;
}

.home-command-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.14), transparent 42%),
        linear-gradient(180deg, rgba(74, 143, 214, 0.28), rgba(74, 143, 214, 0.16));
    z-index: 0;
}

.home-command-card > * {
    position: relative;
    z-index: 1;
}

.home-command-label,
.home-status-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.7);
}

.home-command-card strong {
    display: block;
    margin-top: 0.1rem;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    line-height: 1.1;
}

.home-command-card p {
    margin: 0.55rem 0 0;
    font-size: 1rem;
    line-height: 1.6;
}

.home-pulse-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.home-pulse-row span,
.home-timeline-item > span,
.home-status-eyebrow::before {
    display: inline-block;
    border-radius: 999px;
    animation: sensorPulse 1.8s ease-in-out infinite;
}

.home-pulse-row span {
    width: 10px;
    height: 10px;
    background: rgba(47, 118, 191, 0.92);
}

.home-pulse-row span:nth-child(2),
.home-status-card:nth-child(2) .home-status-eyebrow::before {
    animation-delay: -0.6s;
}

.home-pulse-row span:nth-child(3) {
    animation-delay: -1.1s;
}

.home-status-grid,
.home-kpi-grid,
.home-data-overview-grid {
    display: grid;
    gap: 1rem;
}

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

.home-status-card {
    padding: 1.15rem 1.25rem;
}

.home-status-card h2 {
    margin: 0.3rem 0 0;
    font-size: 1.2rem;
}

.home-status-card p {
    margin: 0.55rem 0 0.8rem;
    line-height: 1.55;
}

.home-status-card a {
    color: var(--brand-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.home-status-eyebrow::before,
.home-timeline-item > span {
    content: "";
    width: 10px;
    height: 10px;
    background: rgba(47, 118, 191, 0.88);
    box-shadow: 0 0 0 5px rgba(47, 118, 191, 0.08);
}

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

.home-kpi-card {
    padding: 1rem 1.1rem;
}

.home-kpi-card span {
    display: block;
    color: var(--brand-muted);
    font-size: 0.92rem;
}

.home-kpi-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.home-kpi-card small {
    display: block;
    margin-top: 0.25rem;
    color: var(--brand-muted);
}

.home-panel {
    padding: 1.25rem;
}

.home-data-overview-panel {
    margin-top: 0;
}

.home-data-overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-timeline {
    display: grid;
    gap: 0.9rem;
}

.home-timeline-item {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 0.85rem;
    align-items: start;
}

.home-timeline-item strong {
    display: block;
    margin-bottom: 0.18rem;
}

.home-timeline-item p {
    margin: 0;
    line-height: 1.55;
}

.home-inventory-list {
    display: grid;
    gap: 0.7rem;
}

.home-inventory-panel {
    padding-top: 0;
}

.home-skeleton {
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(234,242,251,0.8), rgba(255,255,255,0.9), rgba(234,242,251,0.8));
    background-size: 220% 100%;
    animation: skeletonShimmer 1.3s linear infinite;
}

/* LUCY home dashboard alignment */

.home-body {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 249, 254, 0.78) 48%, rgba(255, 250, 242, 0.72) 100%),
        radial-gradient(circle at 22% 24%, rgba(74, 143, 214, 0.17), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(255, 156, 0, 0.12), transparent 28%),
        #eef5fc;
}

.home-header {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(246, 250, 254, 0.34)),
        linear-gradient(90deg, rgba(255,255,255,0.48) 0%, rgba(231,240,250,0.38) 58%, rgba(255,246,232,0.3) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 34px rgba(66, 93, 127, 0.12);
}

.home-header .header-inner {
    max-width: 1480px;
    padding: 14px 34px 10px;
}

.home-container {
    max-width: 1480px;
    gap: 1.65rem;
    margin-top: 14px;
    padding-top: 0;
    padding-inline: 32px;
}

.home-orbit span {
    opacity: 0.14;
    filter: blur(72px);
}

.lucy-analytics-background {
    opacity: 1;
}

.lucy-analytics-background::before {
    inset: -12% -20%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1800 760'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-120 560 C160 330 315 710 585 458 C810 248 980 262 1210 410 C1430 552 1590 438 1920 206' stroke='%232f76bf' stroke-opacity='.42' stroke-width='5'/%3E%3Cpath d='M-160 205 C130 92 330 318 570 196 C820 68 1005 115 1245 276 C1488 440 1630 318 1900 138' stroke='%23ff9c00' stroke-opacity='.36' stroke-width='4'/%3E%3Cpath d='M-110 690 C122 486 338 518 560 620 C820 742 990 548 1215 492 C1470 428 1620 576 1910 376' stroke='%232f76bf' stroke-opacity='.28' stroke-width='4'/%3E%3Cpath d='M-130 390 C112 236 312 380 522 330 C746 276 922 92 1170 158 C1422 225 1540 384 1920 270' stroke='%232f76bf' stroke-opacity='.24' stroke-width='3'/%3E%3Cpath d='M-95 80 C172 226 368 48 612 106 C882 170 1032 410 1308 338 C1528 280 1660 98 1905 174' stroke='%23ff9c00' stroke-opacity='.24' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 125% 100%;
    background-position: 50% 50%;
    opacity: 0.95;
    animation: lucyLineDrift 36s linear infinite;
}

.lucy-isolines {
    opacity: 0.74;
}

.lucy-isolines::before,
.lucy-isolines::after {
    inset: -18% -10%;
    border-color: rgba(47, 118, 191, 0.34);
    box-shadow:
        0 0 0 48px rgba(74, 143, 214, 0.055),
        0 0 0 112px rgba(255, 156, 0, 0.04);
    animation: lucySweep 42s linear infinite;
}

.lucy-isolines::after {
    inset: -6% 4%;
    border-color: rgba(255, 156, 0, 0.32);
    animation-duration: 34s;
}

.lucy-sensor-field span {
    width: 13px;
    height: 13px;
    opacity: 0.95;
    background: rgba(47, 118, 191, 0.98);
    box-shadow: 0 0 0 7px rgba(47, 118, 191, 0.14), 0 0 22px rgba(47, 118, 191, 0.42);
    animation-name: lucySensorBlink;
    animation-duration: 3.4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.lucy-sensor-field span:nth-child(3n) {
    animation-duration: 4.8s;
}

.lucy-sensor-field span:nth-child(4n) {
    animation-duration: 5.8s;
}

.lucy-sensor-field span:nth-child(2n) {
    background: rgba(255, 156, 0, 0.98);
    box-shadow: 0 0 0 7px rgba(255, 156, 0, 0.16), 0 0 24px rgba(255, 156, 0, 0.44);
}

.home-hero {
    grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.68fr);
    gap: clamp(1.4rem, 4vw, 4.8rem);
    align-items: start;
    min-height: 220px;
    padding: 25px 36px;
    border: 1px solid rgba(74, 143, 214, 0.14);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 54px rgba(66, 93, 127, 0.14);
}

.home-hero-copy,
.home-command-card {
    border: 0;
    box-shadow: none;
}

.home-hero-copy {
    align-self: start;
    min-height: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
}

.home-hero-copy::before {
    opacity: 0;
}

.home-kicker {
    margin-bottom: 1.15rem;
    padding: 0.42rem 0.84rem;
    background: rgba(255, 238, 211, 0.74);
    color: #8a5a00;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

.home-hero-copy p {
    max-width: 700px;
    padding-left: 0.84rem;
    color: #233247;
    font-size: 1rem;
    line-height: 1.6;
}

.platform-welcome .platform-welcome-hero {
    display: block;
    width: 100%;
}

.platform-welcome .platform-welcome-copy {
    width: 100%;
    max-width: none;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.platform-welcome .platform-welcome-copy p {
    max-width: 880px;
    padding-left: 0;
}

.platform-welcome-intro {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 4px;
    padding-left: 0;
    min-width: 0;
}

.platform-welcome-intro h1 {
    margin-left: 0;
    margin-bottom: 2px;
    line-height: 1.02;
}

.platform-welcome-intro p {
    margin-top: 0;
    margin-left: 0;
    line-height: 1.35;
}

.platform-welcome-intro .home-kicker {
    margin-left: 0;
    margin-bottom: 0;
}

.platform-welcome-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.platform-system-light {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 0 0 5px rgba(255, 156, 0, 0.14), 0 0 18px rgba(255, 156, 0, 0.42);
    animation: importSignalBlink 1.45s ease-in-out infinite;
}

.platform-system-light[data-state="green"] {
    background: #20b486;
    box-shadow: 0 0 0 5px rgba(32, 180, 134, 0.14), 0 0 18px rgba(32, 180, 134, 0.42);
}

.platform-system-light[data-state="orange"] {
    background: var(--brand-orange);
    box-shadow: 0 0 0 5px rgba(255, 156, 0, 0.14), 0 0 18px rgba(255, 156, 0, 0.42);
}

.platform-system-light[data-state="red"] {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14), 0 0 18px rgba(239, 68, 68, 0.44);
}

.platform-status-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.home-hero-actions {
    gap: 1rem;
    margin-top: 1.65rem;
}

.home-cta {
    min-width: 205px;
    min-height: 54px;
    border-radius: 28px;
    font-weight: 400;
}

.home-ghost-cta {
    border-color: rgba(74, 143, 214, 0.12);
    box-shadow: 0 12px 24px rgba(60, 64, 67, 0.16);
}

.home-command-card {
    min-height: 150px;
    padding: 1.25rem 1.55rem;
    border-radius: 26px;
    background:
        linear-gradient(105deg, rgba(232, 244, 255, 0.72) 0%, rgba(255, 246, 228, 0.9) 100%);
    overflow: hidden;
}

.home-command-card::before {
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.74), transparent 38%),
        linear-gradient(135deg, rgba(74, 143, 214, 0.12), rgba(255, 156, 0, 0.13));
}

.home-command-label,
.home-status-eyebrow,
.home-kpi-card span {
    color: rgba(17, 24, 39, 0.56);
    letter-spacing: 0.08em;
}

.home-command-card strong {
    margin-top: 0.38rem;
    color: #0f172a;
    font-size: clamp(2.25rem, 2.8vw, 3rem);
}

.home-command-card p {
    max-width: 430px;
    color: #334155;
    font-size: 1rem;
}

.home-pulse-row {
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.home-pulse-row span {
    width: 31%;
    height: 9px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(74, 143, 214, 0.18), rgba(130, 151, 164, 0.3)),
        linear-gradient(90deg, transparent 0%, rgba(255, 156, 0, 0) 22%, rgba(255, 156, 0, 0.9) 44%, rgba(74, 143, 214, 0.82) 58%, rgba(74, 143, 214, 0) 80%, transparent 100%);
    background-size: 100% 100%, 320% 100%;
    background-position: 0 0, 140% 0;
    box-shadow: 0 0 14px rgba(74, 143, 214, 0.12);
    animation: homePulseBarFlow 3s linear infinite;
}

.home-pulse-row span:nth-child(2) {
    animation-delay: 0.28s;
}

.home-pulse-row span:nth-child(3) {
    animation-delay: 0.56s;
}

.home-status-grid {
    gap: 1.25rem;
}

.home-status-card {
    min-height: 128px;
    padding: 1.05rem 1.3rem;
    border-radius: 20px;
}

.home-status-card h2 {
    margin-top: 0.38rem;
    font-size: clamp(1.55rem, 1.75vw, 2rem);
}

.home-status-card p {
    max-width: 720px;
    color: #334155;
    font-size: 1.02rem;
}

.home-status-card a {
    display: inline-block;
    margin-top: 0.25rem;
    color: #2f76bf;
}

.home-status-eyebrow::before {
    position: absolute;
    top: 1.05rem;
    right: 1.05rem;
    width: 13px;
    height: 13px;
    background: rgba(45, 190, 128, 0.94);
    box-shadow: 0 0 0 8px rgba(45, 190, 128, 0.12);
    animation: homeStatusDotBlink 2.4s ease-in-out infinite;
}

.home-status-card.needs-attention {
    border-color: rgba(255, 156, 0, 0.26);
    background: rgba(255, 251, 244, 0.84);
}

.home-status-card.needs-attention .home-status-eyebrow::before {
    background: #ff8a00;
    box-shadow: 0 0 0 8px rgba(255, 138, 0, 0.2), 0 0 18px rgba(255, 138, 0, 0.42);
}

.home-command-card[data-state="attention"] .home-pulse-row span {
    background: linear-gradient(90deg, #ff8a00, #ffc15a);
    background-size: 100% 100%;
    box-shadow: 0 0 0 5px rgba(255, 138, 0, 0.12), 0 0 16px rgba(255, 138, 0, 0.32);
    animation: homePulseBarAttentionBlink 1.1s ease-in-out infinite;
}

.home-command-card[data-state="processing"] .home-pulse-row span {
    background:
        linear-gradient(90deg, rgba(255, 156, 0, 0.22), rgba(74, 143, 214, 0.22)),
        linear-gradient(90deg, transparent 0%, rgba(255, 156, 0, 0) 20%, rgba(255, 156, 0, 1) 45%, rgba(74, 143, 214, 0.72) 62%, rgba(74, 143, 214, 0) 82%, transparent 100%);
    background-size: 100% 100%, 320% 100%;
    box-shadow: 0 0 0 8px rgba(255, 156, 0, 0.12);
}

.home-status-card:nth-child(2) .home-status-eyebrow::before {
    animation-delay: -1.2s;
}

.home-kpi-grid {
    gap: 1.25rem;
}

.home-kpi-card {
    min-height: 150px;
    padding: 1.45rem 1.5rem;
    border-radius: 18px;
}

.home-kpi-card strong {
    margin-top: 0.85rem;
    color: #0f172a;
    font-size: clamp(2.7rem, 3.6vw, 4rem);
    line-height: 1;
}

.home-kpi-card small {
    margin-top: 1rem;
    color: #475569;
}

.home-panel {
    padding: 1.6rem 1.75rem;
    border-radius: 20px;
}

.home-data-overview-grid {
    gap: 2rem;
}

.home-inventory-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    min-height: 62px;
    padding: 0.8rem 0.95rem 0.95rem;
    overflow: hidden;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.home-inventory-row strong,
.home-inventory-row small {
    display: block;
}

.home-inventory-row span {
    color: #2f76bf;
    font-weight: 700;
    white-space: nowrap;
}

.home-inventory-row i {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.48rem;
    height: 4px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    overflow: hidden;
}

.home-inventory-row i::before {
    content: "";
    display: block;
    width: var(--inventory-width, 5%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
}

.admin-layout,
.admin-form-grid,
.analysis-grid-two,
.analysis-grid-four,
.analysis-usability-grid,
.auto-activity-grid,
.region-selection-tools,
.inspector-summary-grid,
.quality-filter-grid,
.quality-filter-grid-inline,
.model-test-detail-grid,
.consultant-report-grid {
    display: grid;
    gap: 1rem;
}

.admin-layout,
.analysis-grid-two,
.region-selection-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-grid-four,
.analysis-usability-grid,
.inspector-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.admin-form-grid .full-width,
.quality-filter-grid .full-width,
.quality-filter-grid-inline .full-width,
.consultant-report-card--full,
.formula-preview-card,
.full-width-admin-card {
    grid-column: 1 / -1;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    align-items: center;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    accent-color: var(--brand-blue-dark);
}

.field-hint,
.muted-text,
.import-help-text,
.inspector-sample-note,
.compact-info-box {
    color: var(--brand-muted);
}

.field-hint {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.model-description-textarea,
.prompt-preview-textarea {
    width: 100%;
    min-height: 8rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(74, 143, 214, 0.18);
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    color: var(--brand-text);
    font-family: "Roboto Condensed", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    resize: vertical;
}

.model-description-textarea {
    min-height: 10rem;
}

.prompt-preview-textarea[readonly] {
    background: rgba(234, 242, 251, 0.72);
}

.profile-table-actions {
    margin-bottom: 1.1rem;
}

.profile-table-wrap {
    margin-top: 0.45rem;
}

.consultant-json-header-field {
    display: grid;
    gap: 0.45rem;
}

.scoring-model-form .full-width:has(textarea) {
    display: grid;
    gap: 0.5rem;
    color: var(--brand-ink);
    font-size: 1.18rem;
}

.consultant-json-header-field textarea {
    width: 100%;
    min-height: 8rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(74, 143, 214, 0.18);
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    color: var(--brand-text);
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    resize: vertical;
    box-shadow: none;
}

.consultant-form-actions {
    margin-top: 1.25rem;
}

.scoring-model-form .checkbox-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding-top: 1.45rem;
    color: var(--brand-text);
}

.scoring-model-form .checkbox-label input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    inline-size: 16px !important;
    width: 16px !important;
    min-width: 16px !important;
    block-size: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: transparent !important;
    box-shadow: none !important;
    accent-color: var(--brand-blue-dark);
}

.actions,
.consultant-actions,
.import-actions,
.inspector-actions,
.inspector-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.inline-select-label,
.model-selection-label,
.info-box-label,
.info-box-value {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.inline-select-label {
    flex-wrap: wrap;
}

.data-inspector-body .container {
    display: grid;
    gap: 1rem;
}

.data-inspector-body .container > * {
    margin-top: 0;
}

.data-inspector-body .card,
.data-inspector-body .summary-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
}

.data-inspector-body .summary-table-card {
    padding: 1.35rem 1.45rem;
}

.data-inspector-body .table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.data-inspector-body .table-header h2,
.data-inspector-body .table-header p {
    margin: 0;
}

.data-inspector-body .table-header p {
    margin-top: 0.35rem;
    max-width: 860px;
}

.inspector-control-panel {
    padding: calc(0.95rem - 10px) 1.25rem 1.15rem;
}

.inspector-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem 1rem;
    align-items: end;
}

.inspector-actions .button-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(168px, auto)) minmax(250px, auto);
    gap: 0.85rem;
    align-items: end;
}

.inspector-actions .inline-select-label {
    display: grid;
    gap: 0.32rem;
    margin: 0;
}

.inspector-actions .inline-select-label select,
.inspector-actions button {
    margin-top: 0;
}

#inspector-refresh {
    min-width: 250px;
    white-space: nowrap;
}

.inspector-actions > small.supporting-text {
    grid-column: 1 / -1;
    max-width: 960px;
}

#inspector-status-text,
#inspector-runner-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.32rem 0.7rem;
    border-radius: 10px;
    background: rgba(234, 242, 251, 0.58);
    border: 1px solid rgba(74, 143, 214, 0.14);
    color: var(--brand-blue-dark);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none;
}

#inspector-runner-status {
    justify-self: end;
    max-width: min(100%, 520px);
    color: var(--brand-muted);
    font-weight: 600;
}

.data-inspector-body .data-quality-hero {
    display: grid;
    gap: 0.9rem;
    padding: 1.3rem 1.45rem;
}

.data-inspector-body .data-quality-indicator {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(234, 242, 251, 0.9), rgba(255, 245, 225, 0.75));
    color: var(--brand-text);
}

.data-inspector-body .data-quality-indicator p,
.data-inspector-body .data-quality-indicator strong,
.data-inspector-body .data-quality-indicator span {
    display: block;
    margin: 0;
}

.data-inspector-body .data-quality-indicator p {
    color: var(--brand-muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.data-inspector-body .data-quality-indicator strong {
    margin-top: 0.15rem;
    color: var(--brand-ink);
    font-size: clamp(1.55rem, 1.9vw, 2.1rem);
    line-height: 1.05;
}

.data-inspector-body .data-quality-indicator > .quality-light {
    width: 14px;
    height: 14px;
    justify-self: center;
    padding: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.94);
    box-shadow: 0 0 0 8px rgba(148, 163, 184, 0.12), 0 0 20px rgba(148, 163, 184, 0.18);
}

.data-inspector-body .data-quality-indicator[data-state="usable"] > .quality-light {
    background: rgba(45, 190, 128, 0.94);
    box-shadow: 0 0 0 8px rgba(45, 190, 128, 0.12), 0 0 20px rgba(45, 190, 128, 0.26);
    animation: inspectorStatusLightBlink 2.2s ease-in-out infinite;
}

.data-inspector-body .data-quality-indicator[data-state="warning"] > .quality-light,
.data-inspector-body .data-quality-indicator[data-state="restricted"] > .quality-light,
.data-inspector-body .data-quality-indicator[data-state="running"] > .quality-light {
    background: rgba(255, 156, 0, 0.96);
    box-shadow: 0 0 0 8px rgba(255, 156, 0, 0.13), 0 0 20px rgba(255, 156, 0, 0.26);
    animation: inspectorStatusLightBlink 1.35s ease-in-out infinite;
}

.data-inspector-body .data-quality-indicator[data-state="critical"] > .quality-light,
.data-inspector-body .data-quality-indicator[data-state="error"] > .quality-light {
    background: rgba(220, 38, 38, 0.94);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.11), 0 0 20px rgba(220, 38, 38, 0.23);
}

.data-inspector-body .inspector-summary-grid {
    gap: 1rem;
    margin-top: 0;
}

.data-inspector-body .summary-card {
    min-height: 154px;
    padding: 1.05rem 1.15rem;
}

.data-inspector-body .summary-card p,
.data-inspector-body .summary-card span,
.data-inspector-body .summary-card small {
    margin: 0;
}

.data-inspector-body .summary-card strong {
    margin: 0.65rem 0 0.45rem;
    font-size: clamp(1.75rem, 2.2vw, 2.45rem);
    line-height: 1;
}

#inspector-recent-quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.inspector-sample-note {
    margin: 0.85rem 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(234, 242, 251, 0.64);
    border: 1px solid rgba(74, 143, 214, 0.12);
    line-height: 1.55;
}

.inspector-filter-grid {
    grid-template-columns: repeat(5, minmax(145px, 1fr)) auto;
    align-items: end;
    gap: 0.85rem;
}

.inspector-filter-grid label {
    display: grid;
    gap: 0.4rem;
    margin: 0;
}

.inspector-filter-grid select,
.inspector-filter-grid input,
.inspector-filter-grid button {
    margin-top: 0;
}

.inspector-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.inspector-filter-actions button {
    min-width: 150px;
}

.inspector-severity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(234, 242, 251, 0.86);
    color: var(--brand-blue-dark);
    font-weight: 700;
    white-space: nowrap;
}

.inspector-severity-critical {
    background: rgba(254, 226, 226, 0.9);
    color: #991b1b;
}

.inspector-severity-warning {
    background: rgba(255, 244, 227, 0.96);
    color: #8a5a00;
}

.inspector-severity-info,
.inspector-severity-hint {
    background: rgba(234, 242, 251, 0.9);
    color: var(--brand-blue-dark);
}

.inspector-issue-detail-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
}

.data-inspector-body .import-help-card {
    margin-top: 0;
    padding: 1.35rem 1.45rem;
}

.data-inspector-body .import-help-text {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.data-inspector-body .import-help-text p {
    margin: 0;
}

.model-selection-label {
    margin: 0.6rem 0 0;
    color: var(--brand-muted);
}

.consultant-title {
    display: inline-flex;
    align-items: center;
    margin: 0;
    line-height: 1;
}

.consultant-title__logo {
    display: block;
    width: 46px;
    height: 46px;
    margin-left: -6px;
    margin-right: 0;
    object-fit: contain;
    object-position: left center;
}

.model-builder-body .admin-consultant-card .table-header {
    margin-bottom: 0.75rem;
}

.model-builder-body .admin-consultant-card .table-header > div {
    display: grid;
    justify-items: start;
}

.model-builder-body .admin-consultant-card .table-header p {
    margin-top: 0.2rem;
    padding-left: 0;
}

.model-builder-body .admin-consultant-card .model-selection-label {
    margin: 0.9rem 0 0.55rem;
}

.consultant-panel,
.model-test-panel,
.formula-preview-card,
.analysis-usability-card,
.auto-activity-card,
.region-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(74, 143, 214, 0.12);
}

.consultant-panel h3 {
    font-size: 1.32rem;
    margin-bottom: 0.35rem;
}

.consultant-results,
.model-test-results,
.formula-preview {
    min-height: 4rem;
}

.model-builder-body .consultant-panel {
    margin-top: 0.35rem;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(234, 242, 251, 0.86), rgba(255, 245, 225, 0.62)),
        rgba(255, 255, 255, 0.78);
}

.model-builder-body .consultant-results {
    display: grid;
    gap: 0.9rem;
    min-height: 5rem;
}

.consultant-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.consultant-result-meta strong {
    margin-right: auto;
    color: var(--brand-ink);
    font-size: 1.12rem;
}

.consultant-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0;
}

.consultant-report-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(74, 143, 214, 0.14);
    box-shadow: 0 12px 24px rgba(66, 93, 127, 0.06);
}

.consultant-report-card--highlight {
    background: linear-gradient(180deg, rgba(255, 245, 225, 0.95), rgba(255,255,255,0.9));
    border-color: rgba(255, 156, 0, 0.24);
}

.consultant-report-card--inspector {
    background: linear-gradient(180deg, rgba(234, 242, 251, 0.92), rgba(255,255,255,0.88));
    border-color: rgba(74, 143, 214, 0.24);
}

.consultant-report-card h3,
.consultant-report-card h4,
.consultant-report-card p {
    margin: 0;
}

.consultant-report-card h4 {
    color: var(--brand-ink);
    font-size: 1.16rem;
}

.consultant-report-card p {
    color: var(--brand-text);
    line-height: 1.58;
}

.consultant-report-card p + p {
    margin-top: 0.55rem;
}

.consultant-alignment-card {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(74, 143, 214, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(66, 93, 127, 0.05);
}

.consultant-alignment-card__eyebrow {
    color: var(--brand-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.consultant-alignment-card h4,
.consultant-alignment-card p {
    margin: 0;
}

.consultant-alignment-card h4 {
    color: var(--brand-ink);
    font-size: 1.2rem;
}

.consultant-alignment-card p {
    line-height: 1.58;
}

.consultant-loading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: center;
    min-height: 104px;
    padding: 1.1rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
}

.consultant-loading__spinner {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: conic-gradient(
        from 0deg,
        rgba(74, 143, 214, 0.08) 0 10%,
        rgba(74, 143, 214, 0.95) 10% 22%,
        rgba(255, 156, 0, 0.95) 22% 34%,
        rgba(74, 143, 214, 0.22) 34% 46%,
        rgba(74, 143, 214, 0.08) 46% 100%
    );
    mask: radial-gradient(circle, transparent 0 54%, #000 56%);
    -webkit-mask: radial-gradient(circle, transparent 0 54%, #000 56%);
    animation: trinitySpin 1.15s linear infinite;
}

.consultant-loading__spinner::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.consultant-loading__text {
    display: grid;
    gap: 0.25rem;
}

.consultant-loading__text strong {
    color: var(--brand-ink);
    font-size: 1.25rem;
}

.consultant-loading__text span {
    color: var(--brand-muted);
    line-height: 1.45;
}

.admin-status-text.is-empty,
.empty-state {
    color: var(--brand-muted);
}

.admin-status-text {
    display: inline-block;
    min-height: 1.4rem;
}

.admin-status-text.is-error {
    color: #7f1d1d;
}

.formula-preview-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.formula-preview-card__content {
    margin-top: 0.75rem;
}

.model-builder-body .formula-preview-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(234, 242, 251, 0.9), rgba(255, 245, 225, 0.72)),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 30px rgba(66, 93, 127, 0.07);
}

.model-builder-body .formula-preview-card__content {
    display: grid;
    gap: 0.9rem;
    margin-top: 0;
}

.model-builder-body .formula-preview-card__content > p {
    margin: 0;
    color: var(--brand-muted);
    line-height: 1.55;
}

.model-builder-body .formula-preview {
    display: grid;
    gap: 0.85rem;
    min-height: 0;
}

.model-builder-body .formula-main {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(74, 143, 214, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.model-builder-body .formula-main strong {
    color: var(--brand-ink);
    font-size: clamp(1.3rem, 1.7vw, 1.75rem);
    line-height: 1.1;
}

.model-builder-body .formula-main span {
    color: var(--brand-blue-dark);
    font-size: 1.08rem;
    font-weight: 700;
}

.model-builder-body .formula-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.model-builder-body .formula-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(74, 143, 214, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--brand-text);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(66, 93, 127, 0.04);
}

.model-builder-body .formula-section {
    overflow: hidden;
    border: 1px solid rgba(74, 143, 214, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.model-builder-body .formula-section summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    min-height: 54px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    list-style: none;
}

.model-builder-body .formula-section summary::-webkit-details-marker {
    display: none;
}

.model-builder-body .formula-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: var(--brand-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.model-builder-body .formula-section-icon {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--brand-blue);
    box-shadow: 0 0 0 6px rgba(74, 143, 214, 0.12);
}

.model-builder-body .formula-section summary small {
    color: var(--brand-blue-dark);
    font-weight: 700;
    white-space: nowrap;
}

.model-builder-body .formula-section[open] summary {
    border-bottom: 1px solid rgba(74, 143, 214, 0.11);
    background: rgba(234, 242, 251, 0.52);
}

.model-builder-body .formula-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.model-builder-body .formula-table th,
.model-builder-body .formula-table td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(74, 143, 214, 0.1);
    vertical-align: top;
}

.model-builder-body .formula-table th {
    color: var(--brand-muted);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.model-builder-body .formula-table td:nth-child(2),
.model-builder-body .formula-table td:nth-child(3) {
    color: var(--brand-blue-dark);
    font-weight: 700;
}

.model-builder-body .formula-table tr:last-child td {
    border-bottom: 0;
}

.analysis-submit-panel {
    margin-top: 1rem;
}

.analysis-submit-button,
.primary-button,
.region-action-button {
    width: 100%;
}

.analysis-usability-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.analysis-usability-light,
.quality-light,
.data-quality-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(234, 242, 251, 0.85);
    color: var(--brand-blue-dark);
    font-weight: 700;
}

.analysis-usability-recommendations {
    margin: 0;
    padding-left: 1.1rem;
}

.region-control-grid,
.region-maps-grid {
    display: grid;
    gap: 1rem;
}

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

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

.region-selection-actions,
.region-selection-status,
.availability-hint,
.compact-info-box {
    margin-top: 0.6rem;
}

.analysis-body .container {
    display: grid;
    gap: 1rem;
}

.analysis-body .container > * {
    margin-top: 0;
}

.analysis-body .page-intro {
    margin-bottom: 0;
}

.analysis-body .compare-form {
    gap: 1rem;
}

.analysis-body .card,
.analysis-body .summary-card,
.analysis-body .map-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
}

.analysis-body .analysis-control-card,
.analysis-body .region-card,
.analysis-body .score-analysis-card,
.analysis-body .table-card,
.analysis-body .analysis-usability-card {
    padding: 1.25rem 1.35rem;
}

.analysis-body .section-header {
    margin-bottom: 1rem;
}

.analysis-body .section-header h2,
.analysis-body .table-header h2,
.analysis-body .table-header h3,
.analysis-body .table-header p {
    margin: 0;
}

.analysis-body .table-header p {
    margin-top: 0.35rem;
    max-width: 920px;
}

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

.analysis-body .analysis-grid-four,
.analysis-body .region-control-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analysis-body .analysis-period-card .analysis-grid-four {
    align-items: end;
}

.analysis-body .analysis-grid > label,
.analysis-body .quality-filter-grid > label,
.analysis-body .region-selection-tools > label,
.analysis-body .weather-visual-threshold-grid > label {
    display: grid;
    gap: 0.38rem;
    margin-top: 0;
}

.analysis-body .analysis-grid input,
.analysis-body .analysis-grid select,
.analysis-body .quality-filter-grid select,
.analysis-body .region-selection-tools select,
.analysis-body .weather-visual-threshold-grid input,
.analysis-body .region-action-button {
    margin-top: 0;
}

.analysis-body .availability-hint,
.analysis-body .compact-info-box,
.analysis-body .region-selection-status,
.analysis-body .score-meta-row {
    display: grid;
    align-content: center;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 14px;
    background: rgba(234, 242, 251, 0.58);
    color: var(--brand-muted);
    line-height: 1.4;
}

.analysis-body .analysis-grid .availability-hint,
.analysis-body .analysis-grid .compact-info-box {
    margin-top: 0;
}

.analysis-body .analysis-period-card .compact-info-box {
    min-height: 44px;
    padding: 0.42rem 0.65rem;
    gap: 0.12rem;
    font-size: 0.82rem;
    line-height: 1.2;
}

.analysis-body .analysis-period-card .compact-info-box .info-box-label {
    font-size: 0.74rem;
    line-height: 1;
}

.analysis-body .analysis-period-card .compact-info-box .info-box-value {
    font-size: 0.82rem;
    line-height: 1.15;
}

.analysis-body .quality-filter-grid-inline {
    margin-top: 1rem;
}

.analysis-body .period-checkbox-inline {
    width: fit-content;
    margin-top: 0.9rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
}

.analysis-body .period-checkbox-inline input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--brand-blue-dark);
}

.analysis-body #weather-period-settings {
    margin-top: 1rem;
}

.analysis-body .region-card {
    display: grid;
    gap: 1rem;
}

.analysis-body .region-control-grid {
    align-items: end;
}

.analysis-body .region-action-button {
    min-width: 0;
    min-height: 46px;
}

.analysis-body .region-maps-grid {
    margin-top: 0;
}

.analysis-body .map-card {
    padding: 1rem;
}

.analysis-body .map-card header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.analysis-body .map-card header h2,
.analysis-body .map-card header p {
    margin: 0;
}

.analysis-body .map {
    height: 430px;
    border-radius: 16px;
}

.analysis-body .region-selection-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 1rem;
    align-items: end;
    margin-top: 0;
}

.analysis-body .region-selection-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.analysis-body .analysis-submit-panel {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-top: 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.analysis-body .analysis-submit-button {
    margin-top: 0;
}

.analysis-body #status-text {
    justify-self: start;
    max-width: none;
}

.analysis-body .analysis-usability-card {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(115deg, rgba(234, 242, 251, 0.72), rgba(255, 255, 255, 0.78) 46%, rgba(255, 245, 225, 0.48)),
        rgba(255, 255, 255, 0.84);
}

.analysis-body .analysis-usability-card__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.25rem 0 0.15rem;
}

.analysis-body .analysis-usability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analysis-body .analysis-usability-mini-card {
    display: grid;
    gap: 0.25rem;
    min-height: 88px;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
}

.analysis-body .analysis-usability-mini-card span {
    color: var(--brand-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.analysis-body .analysis-usability-mini-card strong {
    color: var(--brand-ink);
    font-size: clamp(1.08rem, 1.4vw, 1.45rem);
    line-height: 1.1;
}

.analysis-body .analysis-usability-card__header .analysis-usability-light {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 999px;
    background: #20b486;
    box-shadow: 0 0 0 8px rgba(32, 180, 134, 0.14), 0 0 22px rgba(32, 180, 134, 0.34);
    animation: importSignalBlink 1.35s ease-in-out infinite;
}

.analysis-body .analysis-usability-light[data-state="restricted"],
.analysis-body .analysis-usability-light[data-state="limited"],
.analysis-body .analysis-usability-light[data-state="unknown"] {
    background: var(--brand-orange);
    box-shadow: 0 0 0 8px rgba(255, 156, 0, 0.14), 0 0 22px rgba(255, 156, 0, 0.34);
}

.analysis-body .analysis-usability-light[data-state="critical"],
.analysis-body .analysis-usability-light[data-state="stale"],
.analysis-body .analysis-usability-light[data-state="error"] {
    background: #ef4444;
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.14), 0 0 22px rgba(239, 68, 68, 0.34);
}

.analysis-body .analysis-usability-card__header strong {
    display: block;
    color: var(--brand-ink);
    font-size: clamp(1.35rem, 1.7vw, 1.75rem);
    line-height: 1.1;
}

.analysis-body .analysis-usability-card__header p {
    margin: 0.35rem 0 0;
    color: var(--brand-muted);
    line-height: 1.45;
}

.analysis-body .analysis-usability-recommendations {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0.85rem 1rem 0.85rem 2rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--brand-muted);
}

.analysis-body .table-card .table-header {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.analysis-body .table-card .table-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    padding-top: 0.15rem;
}

.analysis-body .table-card .table-header-actions button {
    margin-top: 0;
}

.analysis-body .summary-grid,
.analysis-body .score-status-grid,
.analysis-body .score-summary-grid {
    margin-top: 0;
}

.analysis-body .score-analysis-card,
.analysis-body .table-card {
    overflow: hidden;
}

.analysis-body .score-analysis-card {
    display: grid;
    gap: 1rem;
}

.analysis-body .score-hero-card {
    display: grid;
    align-content: start;
    gap: 0.18rem;
    min-height: auto;
    padding: 1rem 1.1rem;
}

.analysis-body .score-hero-card p,
.analysis-body .score-hero-card span {
    margin: 0;
    line-height: 1.28;
}

.analysis-body .score-hero-card strong {
    margin: 0.08rem 0 0.1rem;
    font-size: 1.85rem;
    line-height: 1.05;
}

.analysis-body .score-period-summary-card {
    display: grid;
    align-content: start;
    gap: 0.34rem;
}

.analysis-body .score-period-summary-card strong {
    margin: 0;
}

.analysis-body .score-chart-card {
    padding: 1rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
}

.analysis-body .score-chart-card canvas {
    display: block;
    width: 100%;
    height: 390px;
}

.analysis-body .score-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.analysis-body .score-summary-wide {
    grid-column: 1 / -1;
    min-width: 0;
}

.analysis-body .score-summary-grid > *,
.analysis-body .score-rating-distribution-card,
.analysis-body .score-rating-distribution-card .table-wrap {
    min-width: 0;
}

.analysis-body .score-rating-distribution-card {
    margin-top: 0;
}

.analysis-body .table-wrap {
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.analysis-body .score-report-panel,
.analysis-body .weather-report-panel {
    margin-top: 1rem;
}

.score-analysis-card,
.score-chart-card {
    overflow: hidden;
}

.score-matrix-host {
    padding: 0 !important;
}

.score-interval-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 0.85rem;
    width: 100%;
}

.score-interval-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(74, 143, 214, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.score-interval-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(74, 143, 214, 0.12);
    background: rgba(234, 242, 251, 0.62);
}

.score-interval-card__head span {
    min-width: 0;
    overflow: hidden;
    color: var(--brand-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-interval-card__head strong {
    color: var(--brand-ink);
    font-size: 1.2rem;
    white-space: nowrap;
}

.score-interval-card__periods {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
}

.score-interval-row {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) auto minmax(78px, 0.8fr) auto;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.score-interval-row__label,
.score-interval-row__rating {
    min-width: 0;
    overflow: hidden;
    color: var(--brand-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-interval-row__score,
.score-delta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 28px;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.score-delta-chip.is-base,
.score-delta-chip.is-empty {
    background: rgba(74, 143, 214, 0.14) !important;
    color: var(--brand-muted);
}

.score-comparison-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 0.75rem;
}

.score-comparison-card {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.score-comparison-card span,
.score-comparison-card small {
    color: var(--brand-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.score-comparison-card strong {
    color: var(--brand-ink);
    font-size: 1.3rem;
    line-height: 1.1;
}

.score-matrix-block {
    margin: 0.5rem 0;
    border: 1px solid rgba(74, 143, 214, 0.14);
    border-radius: 14px;
    overflow: hidden;
}

.score-matrix-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.score-matrix-table th,
.score-matrix-table td {
    padding: 0.55rem 0.45rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    font-size: 0.92rem;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

.score-period-cell.is-empty {
    color: var(--brand-muted);
    background: rgba(234, 242, 251, 0.48);
}

.import-help-card {
    margin-top: 1rem;
}

.import-body .container {
    display: grid;
    gap: 1rem;
}

.import-body .container > * {
    margin-top: 0;
}

.import-body .page-intro {
    margin-bottom: 0;
}

.import-body .page-intro p {
    max-width: 760px;
    margin: 0.35rem 0 0;
    color: var(--brand-muted);
    line-height: 1.5;
}

.import-body .card,
.import-body .summary-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
}

.import-body .table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.import-body .table-header h2,
.import-body .table-header p {
    margin: 0;
}

.import-body .table-header p {
    margin-top: 0.35rem;
    max-width: 900px;
}

.import-controls-card {
    padding: 1rem 1.25rem;
}

.import-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem 1rem;
    margin-top: 0;
}

.import-actions .button-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.import-actions button {
    margin-top: 0;
}

#status-text {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    min-height: 36px;
    max-width: min(100%, 520px);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(234, 242, 251, 0.78);
    color: var(--brand-blue-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.import-status-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(145px, 1fr));
    align-items: stretch;
    gap: 0.75rem;
    min-height: 0;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
}

.import-status-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(234, 242, 251, 0.58), transparent 44%, rgba(255, 245, 225, 0.58));
}

.import-status-card > * {
    position: relative;
    z-index: 1;
}

.import-status-main {
    grid-column: 1;
    display: grid;
    align-content: start;
    gap: 0.42rem;
}

.import-status-card p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.import-state-line {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.import-status-signal {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    min-height: 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f59e0b !important;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14), 0 0 18px rgba(245, 158, 11, 0.38) !important;
    animation: importSignalBlink 1.25s ease-in-out infinite;
}

.import-status-signal[data-state="green"] {
    background: #20b486 !important;
    box-shadow: 0 0 0 5px rgba(32, 180, 134, 0.14), 0 0 18px rgba(32, 180, 134, 0.42) !important;
}

.import-status-signal[data-state="orange"],
.import-status-signal[data-state="unknown"] {
    background: var(--brand-orange) !important;
    box-shadow: 0 0 0 5px rgba(255, 156, 0, 0.14), 0 0 18px rgba(255, 156, 0, 0.42) !important;
}

.import-status-signal[data-state="red"] {
    background: #ef4444 !important;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14), 0 0 18px rgba(239, 68, 68, 0.44) !important;
}

.import-state-line strong {
    margin: 0;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    line-height: 1.05;
}

.import-status-card span {
    display: flex;
    align-items: flex-start;
    color: var(--brand-muted);
    line-height: 1.35;
}

.import-status-detail {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    min-height: 82px;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 20px rgba(66, 93, 127, 0.04);
}

.import-status-detail small {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

@keyframes importSignalBlink {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.88);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.auto-activity-card,
.import-dataset-card,
.import-help-card,
.progress-card {
    padding: 1.35rem 1.45rem;
}

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

.auto-activity-item {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    min-height: 92px;
    background: rgba(255, 255, 255, 0.7);
}

.auto-activity-item span,
.import-metric-card p,
.runtime-card p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auto-activity-item strong {
    color: var(--brand-ink);
    font-size: 1.12rem;
    line-height: 1.25;
}

.import-body .status-grid-import {
    gap: 1rem;
    margin-top: 0;
}

.import-metric-card {
    display: grid;
    align-content: start;
    min-height: 150px;
    padding: 1.15rem 1.25rem;
}

.import-metric-card strong {
    margin: 0.45rem 0 0.25rem;
    font-size: clamp(1.45rem, 2.2vw, 2.05rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.import-metric-card span {
    line-height: 1.45;
}

.import-metric-card .inline-action-row button {
    margin-top: 0;
}

.import-body .progress-grid {
    gap: 0.8rem;
}

.import-body .progress-item {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.import-body .runtime-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.import-body .runtime-card {
    min-height: 112px;
    padding: 1rem 1.05rem;
}

.import-body .summary-table-card {
    overflow: hidden;
}

.import-body .table-wrap {
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.import-body .summary-table th,
.import-body .summary-table td {
    padding: 0.78rem 0.85rem;
}

.import-body .summary-table tbody tr:last-child td {
    border-bottom: 0;
}

.import-help-text {
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    display: grid;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.import-help-text p {
    margin: 0;
}

@keyframes sensorPulse {
    0%, 100% {
        opacity: 0.65;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes homeFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    25% { transform: translate3d(22px, -14px, 0) scale(1.03); }
    50% { transform: translate3d(34px, 8px, 0) scale(1.01); }
    75% { transform: translate3d(10px, 22px, 0) scale(1.04); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes lucyGlowShift {
    0% { transform: translate3d(-1.2%, 0, 0) scale(1); }
    25% { transform: translate3d(0.8%, -1.2%, 0) scale(1.035); }
    50% { transform: translate3d(1.8%, 0.4%, 0) scale(1.05); }
    75% { transform: translate3d(-0.4%, 1.2%, 0) scale(1.025); }
    100% { transform: translate3d(-1.2%, 0, 0) scale(1); }
}

@keyframes lucySweep {
    from { transform: rotate(-10deg) translate3d(0, 0, 0); }
    to { transform: rotate(350deg) translate3d(0, 0, 0); }
}

@keyframes lucyLineDrift {
    0% { transform: translate3d(-2.5%, -0.8%, 0) scale(1.02); }
    25% { transform: translate3d(0.6%, -1.6%, 0) scale(1.035); }
    50% { transform: translate3d(2.5%, 0.5%, 0) scale(1.04); }
    75% { transform: translate3d(-0.2%, 1.4%, 0) scale(1.03); }
    100% { transform: translate3d(-2.5%, -0.8%, 0) scale(1.02); }
}

@keyframes lucySensorBlink {
    0%, 100% {
        opacity: 0.38;
        transform: scale(0.74);
    }
    42% {
        opacity: 1;
        transform: scale(1.08);
    }
    58% {
        opacity: 0.55;
        transform: scale(0.9);
    }
}

@keyframes homePulseBarFlow {
    0% {
        opacity: 0.5;
        background-position: 0 0, 140% 0;
    }
    35%, 55% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
        background-position: 0 0, -140% 0;
    }
}

@keyframes homePulseBarAttentionBlink {
    0%, 100% {
        opacity: 0.42;
        transform: scaleY(0.82);
        filter: saturate(1);
    }
    48%, 58% {
        opacity: 1;
        transform: scaleY(1);
        filter: saturate(1.35);
    }
}

@keyframes homeStatusDotBlink {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.78);
        box-shadow: 0 0 0 5px rgba(45, 190, 128, 0.08), 0 0 10px rgba(45, 190, 128, 0.18);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
        box-shadow: 0 0 0 9px rgba(45, 190, 128, 0.16), 0 0 20px rgba(45, 190, 128, 0.34);
    }
}

@keyframes trinitySpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes inspectorStatusLightBlink {
    0%, 100% {
        opacity: 0.58;
        transform: scale(0.8);
        filter: saturate(0.95);
    }
    48% {
        opacity: 1;
        transform: scale(1.13);
        filter: saturate(1.2);
    }
}

@keyframes skeletonShimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 1100px) {
    .platform-auth-shell {
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 28px;
    }

    .platform-auth-brand {
        gap: 28px;
    }

    .home-hero,
    .home-status-grid,
    .home-kpi-grid,
    .home-data-overview-grid,
    .analysis-grid-four,
    .analysis-usability-grid,
    .region-control-grid,
    .admin-layout,
    .analysis-grid-two,
    .admin-form-grid,
    .quality-filter-grid,
    .consultant-report-grid,
    .region-maps-grid,
    .data-inspector-body .inspector-summary-grid,
    #inspector-recent-quality-grid,
    .inspector-filter-grid,
    .auto-activity-grid,
    .import-body .progress-grid,
    .import-body .runtime-grid {
        grid-template-columns: 1fr;
    }

    .inspector-actions,
    .inspector-actions .button-row,
    .import-actions,
    .import-status-card {
        grid-template-columns: 1fr;
    }

    #inspector-runner-status,
    #status-text {
        justify-self: start;
    }

    .inspector-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .platform-auth-brand h1 {
        font-size: clamp(2.4rem, 14vw, 4.2rem);
    }

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

    .platform-welcome-copy {
        grid-template-columns: 1fr;
    }

    .platform-session-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .platform-admin-hero,
    .platform-admin-control-grid,
    .platform-admin-panel,
    .platform-password-panel {
        grid-template-columns: 1fr;
    }

    .platform-admin-table-head {
        display: none;
    }

    .platform-audit-table-head {
        display: none;
    }

    .platform-admin-user-head {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .platform-audit-row {
        grid-template-columns: 1fr;
    }

    .platform-admin-summary {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-command-card,
    .home-panel,
    .home-status-card,
    .home-kpi-card {
        border-radius: 20px;
    }

    .home-hero-copy {
        padding: 1.3rem 1.2rem;
        min-height: auto;
    }

    .home-command-card {
        min-height: auto;
    }

    .home-hero-actions,
    .actions,
    .consultant-actions,
    .import-actions,
    .inspector-actions,
    .inspector-filter-actions,
    .checkbox-row {
        flex-direction: column;
        align-items: stretch;
    }

    .data-inspector-body .container {
        gap: 1rem;
    }

    .data-inspector-body .summary-table-card,
    .data-inspector-body .import-help-card,
    .inspector-control-panel,
    .data-inspector-body .data-quality-hero,
    .import-controls-card,
    .auto-activity-card,
    .import-dataset-card,
    .import-help-card,
    .progress-card {
        padding: 1.05rem;
    }

    .import-status-card {
        padding: 1.05rem;
    }

    .import-actions .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .import-actions button,
    .import-actions .button-row button {
        width: 100%;
    }

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

    .inspector-filter-actions button {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .analysis-body .analysis-grid-two,
    .analysis-body .analysis-grid-four,
    .analysis-body .region-control-grid,
    .analysis-body .region-selection-actions,
    .analysis-body .region-selection-tools,
    .analysis-body .analysis-usability-grid,
    .analysis-body .analysis-usability-card__header {
        grid-template-columns: 1fr;
    }

    .analysis-body .region-action-button,
    .analysis-body .analysis-submit-button {
        width: 100%;
    }

    .score-interval-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .score-interval-row__rating {
        grid-column: 1 / 2;
    }

    .score-delta-chip {
        grid-column: 2 / 3;
    }

    .weather-visual-period-row {
        grid-template-columns: 1fr;
    }

    .weather-visual-bar-metric {
        grid-template-columns: 1fr;
        gap: 0.28rem;
    }

    .weather-visual-bar-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-orbit span,
    .lucy-analytics-background::before,
    .lucy-analytics-background::after,
    .lucy-isolines::before,
    .lucy-isolines::after,
    .lucy-sensor-field span,
    .home-pulse-row span,
    .home-timeline-item > span,
    .home-status-eyebrow::before,
    .home-skeleton {
        animation: none !important;
    }

    .data-inspector-body .data-quality-indicator > .quality-light {
        animation: none !important;
    }
}

.nav-divider {
    margin: 0.35rem 0;
    border: 0;
    border-top: 1px solid rgba(74, 143, 214, 0.14);
}

.analysis-grid,
.analysis-page-form,
.compare-form,
.scoring-model-form,
.score-report-panel,
.weather-report-panel,
.import-container,
.inspector-filter-grid,
.score-status-grid,
.score-summary-grid,
.score-weather-visuals,
.slider-admin-grid {
    display: grid;
    gap: 1rem;
}

.analysis-page-form,
.compare-form,
.scoring-model-form,
.import-container,
.inspector-filter-grid,
.score-report-panel,
.weather-report-panel,
.score-weather-visuals {
    width: 100%;
}

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

.score-status-grid,
.score-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.section-header,
.table-header-actions,
.summary-card-help,
.supporting-text,
.eyebrow {
    color: var(--brand-muted);
}

.eyebrow {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.model-builder-body .container {
    display: grid;
    gap: 1rem;
}

.model-builder-body .container > * {
    margin-top: 0;
}

.model-builder-body .page-intro {
    margin-bottom: 0;
}

.model-builder-body .controls-panel {
    padding: 1rem 1.25rem;
}

.model-builder-body .controls-panel .actions,
.model-builder-body .controls-panel button {
    margin-top: 0;
}

.model-builder-body .model-list-actions-panel {
    margin: 0.9rem 0 1rem;
}

.model-builder-body .admin-layout {
    gap: 1.1rem;
}

.model-builder-body .admin-model-list-card,
.model-builder-body .admin-editor-card,
.model-builder-body .admin-test-card,
.model-builder-body .admin-consultant-card {
    padding: 1.35rem 1.45rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
}

.model-builder-body .table-header {
    margin-bottom: 1rem;
}

.model-builder-body .table-header h2,
.model-builder-body .table-header p {
    margin: 0;
}

.model-builder-body .table-header p {
    margin-top: 0.35rem;
}

.model-builder-body .admin-form-grid {
    gap: 1rem 1.15rem;
}

.model-builder-body .admin-form-grid > label {
    display: grid;
    gap: 0.4rem;
    margin: 0;
}

.model-builder-body .admin-form-grid input,
.model-builder-body .admin-form-grid select,
.model-builder-body .admin-form-grid textarea {
    margin-top: 0;
}

.model-builder-body .checkbox-row {
    gap: 0.75rem 1rem;
    padding: 0.25rem 0 0.15rem;
}

.model-builder-body .checkbox-label {
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 999px;
    background: rgba(234, 242, 251, 0.58);
}

.model-builder-body .checkbox-label input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    accent-color: var(--brand-blue-dark);
}

.model-builder-body .slider-admin-grid {
    align-items: start;
    gap: 1rem;
    margin-top: 0.25rem;
}

.slider-panel {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(74, 143, 214, 0.12);
}

.model-builder-body .slider-panel {
    display: grid;
    align-content: start;
    gap: 0.85rem;
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 24px rgba(66, 93, 127, 0.05);
}

.slider-panel--full,
.slider-panel--ratings,
.slider-panel--weights {
    grid-column: 1 / -1;
}

.model-builder-body .slider-panel--ratings,
.model-builder-body .slider-panel--weights {
    grid-column: span 1;
}

.model-builder-body .slider-panel--full {
    grid-column: 1 / -1;
}

.slider-panel__header,
.model-builder-body .formula-preview-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.slider-panel__header h3,
.model-builder-body .formula-preview-card__header h3 {
    margin: 0;
    font-size: 1.22rem;
}

.slider-panel__content {
    display: grid;
    gap: 0.75rem;
}

.slider-panel.is-collapsed .slider-panel__content {
    display: none;
}

.model-builder-body .slider-panel.is-collapsed {
    gap: 0;
    padding-bottom: 1rem;
}

.slider-panel-hint,
.summary-card-help,
.supporting-text {
    font-size: 0.95rem;
    line-height: 1.55;
}

.model-builder-body .slider-panel-hint {
    margin: 0;
}

.slider-group {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.8rem;
}

.model-builder-body .slider-group {
    gap: 0.7rem;
    margin-top: 0;
}

.slider-panel__toggle {
    min-width: 120px;
}

.model-builder-body .slider-panel__toggle {
    width: auto;
    min-width: 112px;
    margin: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
}

.admin-model-list-card,
.admin-editor-card,
.admin-test-card,
.admin-consultant-card,
.import-controls-card,
.import-dataset-card,
.score-hero-card,
.data-quality-hero {
    width: 100%;
}

.admin-editor-feedback {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.model-test-controls,
.weather-visual-threshold-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.model-builder-body .model-test-panel {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.model-builder-body .model-test-results {
    display: grid;
    gap: 1rem;
    min-height: 0;
}

.model-builder-body .model-test-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(118px, 1fr));
    gap: 0.6rem;
    overflow-x: auto;
}

.model-builder-body .dashboard-stat,
.model-builder-body .model-test-check,
.model-builder-body .model-test-distribution,
.model-builder-body .model-test-note,
.model-builder-body .model-test-day-card,
.model-builder-body .model-test-sample-group {
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(66, 93, 127, 0.05);
}

.model-builder-body .dashboard-stat {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    min-height: 112px;
    padding: 0.75rem 0.7rem;
}

.model-builder-body .stat-label {
    color: var(--brand-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.model-builder-body .stat-value {
    min-width: 0;
    color: var(--brand-ink);
    font-size: clamp(1.05rem, 1.35vw, 1.55rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.model-builder-body .model-test-note,
.model-builder-body .model-test-distribution {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
}

.model-builder-body .model-test-note {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    background: linear-gradient(90deg, rgba(234, 242, 251, 0.84), rgba(255, 245, 225, 0.6));
}

.model-builder-body .model-test-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.model-builder-body .model-test-check {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    min-height: 112px;
    padding: 0.8rem 0.75rem;
}

.model-builder-body .model-test-check strong,
.model-builder-body .model-test-distribution strong {
    color: var(--brand-ink);
    font-size: 0.98rem;
}

.model-builder-body .model-test-check span {
    color: var(--brand-blue-dark);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.1;
}

.model-builder-body .model-test-check--pass {
    border-color: rgba(45, 190, 128, 0.24);
    background: rgba(240, 253, 244, 0.78);
}

.model-builder-body .model-test-check--warn {
    border-color: rgba(255, 156, 0, 0.24);
    background: rgba(255, 251, 235, 0.82);
}

.model-builder-body .model-test-check--fail {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(254, 242, 242, 0.78);
}

.model-builder-body .metric-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.model-builder-body .metric-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 999px;
    background: rgba(234, 242, 251, 0.72);
    color: var(--brand-blue-dark);
    font-weight: 700;
}

.model-builder-body .model-test-day-sections,
.model-builder-body .model-test-day-grid,
.model-builder-body .model-test-sample-group {
    display: grid;
    gap: 1rem;
}

.model-builder-body .model-test-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.model-builder-body .model-test-sample-group {
    padding: 1rem;
}

.model-builder-body .model-test-sample-group > .table-header {
    margin-bottom: 0;
}

.model-builder-body .model-test-day-card {
    min-width: 0;
    padding: 1rem;
}

.model-builder-body .model-test-day-card .table-header {
    margin-bottom: 0.75rem;
}

.model-builder-body .model-test-day-card h3,
.model-builder-body .model-test-day-card p {
    margin: 0;
}

.model-builder-body .model-test-day-card p {
    margin-top: 0.25rem;
}

.model-builder-body .model-test-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.model-builder-body .model-test-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.model-builder-body .model-test-table th,
.model-builder-body .model-test-table td {
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid rgba(74, 143, 214, 0.1);
    font-size: 0.92rem;
    vertical-align: middle;
}

.model-builder-body .model-test-table th {
    color: var(--brand-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.model-builder-body .model-test-day-grid--rankings .model-test-table th:nth-child(1),
.model-builder-body .model-test-day-grid--rankings .model-test-table td:nth-child(1) {
    width: 96px;
    padding-right: 0.95rem;
    white-space: nowrap;
}

.model-builder-body .model-test-day-grid--rankings .model-test-table th:nth-child(2),
.model-builder-body .model-test-day-grid--rankings .model-test-table td:nth-child(2) {
    width: 72px;
    padding-left: 0.8rem;
    text-align: right;
}

.model-builder-body .model-test-day-grid--rankings .model-test-table th:nth-child(3),
.model-builder-body .model-test-day-grid--rankings .model-test-table td:nth-child(3) {
    width: 96px;
    white-space: nowrap;
}

.model-builder-body .model-test-day-grid--rankings .model-test-table th:nth-child(8),
.model-builder-body .model-test-day-grid--rankings .model-test-table td:nth-child(8) {
    width: 36px;
    padding-left: 0.3rem;
    text-align: right;
}

.model-builder-body .model-test-day-grid--rankings .model-test-table td:last-child {
    line-height: 1;
}

.model-builder-body .model-test-table--compact th,
.model-builder-body .model-test-table--compact td {
    padding: 0.45rem 0.32rem;
    font-size: 0.84rem;
}

.model-builder-body .model-test-table--compact th:nth-child(1),
.model-builder-body .model-test-table--compact td:nth-child(1) {
    width: 78px;
}

.model-builder-body .model-test-table--compact th:nth-child(2),
.model-builder-body .model-test-table--compact td:nth-child(2) {
    width: 56px;
    text-align: right;
}

.model-builder-body .model-test-table--compact th:nth-child(3),
.model-builder-body .model-test-table--compact td:nth-child(3) {
    width: 68px;
}

.model-builder-body .model-test-table--compact th:nth-child(5),
.model-builder-body .model-test-table--compact td:nth-child(5) {
    width: 34px;
    text-align: right;
}

.model-builder-body .model-test-weather-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.22rem 0.32rem;
    min-width: 0;
}

.model-builder-body .model-test-weather-mini span {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
    padding: 0.25rem 0.32rem;
    border-radius: 8px;
    background: rgba(234, 242, 251, 0.62);
    color: var(--brand-blue-dark);
    line-height: 1.15;
    white-space: nowrap;
}

.model-builder-body .model-test-weather-mini strong {
    color: var(--brand-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.model-builder-body .model-test-day-card--compact {
    padding: 0.85rem;
}

.model-builder-body .model-test-day-card--compact .table-header {
    margin-bottom: 0.55rem;
}

.model-builder-body .model-test-day-card--compact h3 {
    font-size: 1.08rem;
}

.model-builder-body .model-test-day-card--compact p {
    font-size: 0.9rem;
    line-height: 1.35;
}

.period-checkbox,
.period-checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}

.period-checkbox-inline {
    margin-top: 0.55rem;
}

.auto-activity-item,
.active-import-note,
.legacy-note {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(234, 242, 251, 0.58);
    border: 1px solid rgba(74, 143, 214, 0.12);
}

.inspector-issue-dialog,
.model-test-detail-dialog {
    width: min(960px, 92vw);
}

.model-test-detail-dialog {
    max-height: min(86vh, 920px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(74, 143, 214, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(234, 242, 251, 0.96), rgba(255, 245, 225, 0.86)),
        #fff;
    box-shadow: 0 26px 70px rgba(30, 41, 59, 0.24);
    color: var(--brand-text);
}

.model-test-detail-dialog::backdrop {
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(5px);
}

.inspector-issue-dialog-grid,
.model-test-detail-dialog__header,
.score-meta-row,
.score-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.model-test-detail-dialog__header {
    justify-content: space-between;
    padding: 1.1rem 1.2rem 0.9rem;
    border-bottom: 1px solid rgba(74, 143, 214, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.model-test-detail-dialog__header h3,
.model-test-detail-dialog__header p {
    margin: 0;
}

.model-test-detail-dialog__header h3 {
    margin-top: 0.15rem;
    color: var(--brand-ink);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.05;
}

.model-test-detail-close {
    margin-top: 0;
}

.model-test-detail-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.58);
}

.model-test-detail-summary span {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    min-height: 32px;
    padding: 0.28rem 0.7rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--brand-blue-dark);
    font-weight: 700;
}

.model-test-detail-summary strong {
    color: var(--brand-muted);
    font-weight: 700;
}

.model-test-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    max-height: calc(86vh - 180px);
    padding: 1rem 1.2rem 1.2rem;
    overflow: auto;
}

.model-test-detail-section {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.model-test-detail-section h4 {
    margin: 0 0 0.55rem;
    color: var(--brand-ink);
    font-size: 1.08rem;
}

.model-test-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.model-test-detail-table th,
.model-test-detail-table td {
    padding: 0.5rem 0.45rem;
    border-bottom: 1px solid rgba(74, 143, 214, 0.1);
    font-size: 0.92rem;
    vertical-align: top;
}

.model-test-detail-table th {
    color: var(--brand-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.model-test-detail-table tr:last-child td {
    border-bottom: 0;
}

.score-chart-legend {
    margin-top: 0.8rem;
    color: var(--brand-muted);
}

.score-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 30px;
    padding: 0.28rem 0.65rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--brand-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.score-chart-legend-line {
    display: inline-block;
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}

.prompt-preview-textarea--editable {
    background: rgba(255, 255, 255, 0.96);
}

.score-report-download-button {
    width: 100%;
    margin-top: 1rem;
}

.error-text {
    color: #7f1d1d;
}

.is-dominant {
    background: rgba(255, 156, 0, 0.16) !important;
    font-weight: 700;
}

.score-rating-distribution-card {
    overflow-x: auto;
}

.score-rating-cell {
    color: var(--brand-ink) !important;
}

.weather-visual-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.weather-visual-table th,
.weather-visual-table td {
    border: 1px solid rgba(74, 143, 214, 0.12);
    text-align: center;
}

.weather-visual-cell-empty {
    background: rgba(255, 255, 255, 0.9);
}

.weather-visual-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.weather-visual-header {
    display: grid;
    gap: 0.2rem;
}

.weather-visual-header strong {
    color: var(--brand-ink);
    font-size: 1rem;
}

.weather-visual-header span {
    color: var(--brand-muted);
    font-size: 0.86rem;
}

.weather-visual-period-list {
    display: grid;
    gap: 0.65rem;
}

.weather-visual-period-row {
    display: grid;
    grid-template-columns: minmax(92px, 130px) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.weather-visual-period-label {
    min-width: 0;
    overflow: hidden;
    color: var(--brand-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-visual-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    min-width: 0;
    max-width: 100%;
}

.weather-visual-period-metric {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
}

.weather-visual-period-metric small {
    color: var(--brand-muted);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.weather-visual-bar-metric {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    min-width: 0;
}

.weather-visual-period-detail {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

.weather-visual-bar-track {
    position: relative;
    min-width: 0;
    height: 24px;
    overflow: hidden;
    border: 1px solid rgba(74, 143, 214, 0.14);
    border-radius: 999px;
    background: rgba(214, 226, 239, 0.72);
}

.weather-visual-bar-track.is-empty {
    background: rgba(234, 242, 251, 0.42);
}

.weather-visual-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(74, 143, 214, 0.62), rgba(18, 126, 198, 0.92));
}

.weather-visual-bar-fill.is-highlighted {
    background: linear-gradient(90deg, rgba(255, 183, 77, 0.78), rgba(255, 156, 0, 0.96));
}

.weather-visual-bar-meta {
    display: grid;
    justify-items: end;
    min-width: 78px;
}

.weather-visual-bar-meta strong {
    color: var(--brand-ink);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
}

.weather-visual-bar-meta small {
    color: var(--brand-muted);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.weather-visual-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
    gap: 3px;
    min-width: 0;
}

.weather-visual-timeline-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    color: var(--brand-muted);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
}

.weather-visual-timeline-labels span:last-child {
    text-align: right;
}

.weather-visual-timeline-box {
    display: block;
    min-width: 0;
    height: 14px;
    border: 1px solid rgba(74, 143, 214, 0.12);
    border-radius: 4px;
    background: rgba(234, 242, 251, 0.82);
}

.weather-visual-timeline-box.is-hit {
    border-color: rgba(255, 156, 0, 0.42);
    background: linear-gradient(180deg, rgba(255, 198, 102, 0.95), rgba(255, 156, 0, 0.9));
}

.weather-visual-timeline-box.is-miss {
    background: linear-gradient(180deg, rgba(138, 190, 231, 0.8), rgba(74, 143, 214, 0.72));
}

.weather-visual-timeline-box.is-empty {
    background: rgba(234, 242, 251, 0.42);
}

.weather-visual-tile {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 26px;
    padding: 0.18rem 0.34rem;
    border: 1px solid rgba(74, 143, 214, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.weather-visual-tile.is-highlighted {
    border-color: rgba(255, 156, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.95), rgba(255, 156, 0, 0.86));
    color: #17324d;
    box-shadow: 0 6px 14px rgba(255, 156, 0, 0.16);
}

.weather-visual-tile.is-empty {
    background: rgba(234, 242, 251, 0.5);
    color: rgba(77, 95, 115, 0.62);
}

.weather-visual-tile.is-more {
    border-color: rgba(74, 143, 214, 0.22);
    background: rgba(234, 242, 251, 0.9);
    color: var(--brand-ink);
}

@media (max-width: 1100px) {
    .weather-visual-period-row {
        grid-template-columns: 1fr;
    }

    .weather-visual-bar-metric {
        grid-template-columns: 1fr;
        gap: 0.28rem;
    }

    .weather-visual-period-detail {
        gap: 0.5rem;
    }

    .weather-visual-bar-meta {
        display: grid;
        justify-items: start;
        gap: 0.02rem;
        min-width: 0;
    }

    .weather-visual-timeline {
        grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
        gap: 4px;
    }

    .weather-visual-timeline-labels {
        font-size: 0.64rem;
    }

    .weather-visual-timeline-box {
        height: 15px;
    }
}

.inspector-issue-detail-button,
.model-test-detail-button,
.model-test-detail-close,
.model-test-detail-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.model-test-detail-icon-button {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
}

.model-builder-body .model-test-table .model-test-detail-icon-button,
.model-builder-body .model-test-table--compact .model-test-detail-icon-button {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 0.82rem;
    box-shadow: 0 6px 12px rgba(66, 93, 127, 0.08);
}

.slider-control--paired,
.slider-control--dual-range,
.slider-control--number,
.slider-control--readonly {
    display: grid;
    gap: 0.55rem;
}

.model-builder-body .slider-control {
    display: grid;
    grid-template-columns: minmax(190px, 0.95fr) minmax(220px, 1.4fr) minmax(82px, auto);
    gap: 0.65rem 0.85rem;
    align-items: center;
    min-height: 54px;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(74, 143, 214, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.model-builder-body .slider-control--paired,
.model-builder-body .slider-control--dual-range,
.model-builder-body .slider-control--readonly {
    grid-template-columns: minmax(190px, 0.9fr) minmax(240px, 1.35fr) minmax(86px, auto) minmax(96px, auto) minmax(150px, 0.8fr);
}

.model-builder-body .slider-control--number {
    grid-template-columns: minmax(220px, 1fr) minmax(96px, auto) minmax(160px, 0.9fr);
}

.model-builder-body .slider-control__label {
    min-width: 0;
    color: var(--brand-text);
    font-weight: 700;
    line-height: 1.25;
}

.model-builder-body .slider-control input[type="range"] {
    width: 100%;
    min-width: 180px;
    height: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-blue) var(--slider-progress, 0%), rgba(226, 232, 240, 0.95) var(--slider-progress, 0%));
    box-shadow: none;
    accent-color: var(--brand-blue-dark);
}

.model-builder-body .slider-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--brand-blue-dark);
    box-shadow: 0 4px 12px rgba(66, 93, 127, 0.25);
}

.model-builder-body .slider-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--brand-blue-dark);
    box-shadow: 0 4px 12px rgba(66, 93, 127, 0.25);
}

.model-builder-body .slider-control__value,
.model-builder-body .slider-control__impact {
    color: var(--brand-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.model-builder-body .slider-control__value {
    min-width: 78px;
    color: var(--brand-blue-dark);
    font-weight: 700;
    white-space: nowrap;
}

.model-builder-body .slider-control__impact {
    justify-self: end;
    text-align: right;
}

.model-builder-body .slider-control--readonly .slider-control__impact {
    grid-column: 5;
}

.model-builder-body .slider-control__number {
    width: 96px;
    min-width: 96px;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
    text-align: right;
    box-shadow: 0 7px 16px rgba(66, 93, 127, 0.08);
}

.model-builder-body .slider-control__static-bar {
    position: relative;
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.95);
}

.model-builder-body .slider-control__static-bar span {
    display: block;
    width: var(--slider-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
}

.model-builder-body .slider-control__dual-range {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 24px;
}

.model-builder-body .slider-control__dual-range::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 8px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.95);
    transform: translateY(-50%);
}

.model-builder-body .slider-control__dual-range-input {
    position: relative;
    grid-area: 1 / 1;
    background: transparent !important;
}

.model-builder-body .slider-control__dual-range-input--max {
    z-index: 2;
}

.model-builder-body .slider-control__dual-range-input.is-active-thumb {
    z-index: 3;
}

.slider-control__dual-range-input--min,
.slider-control__dual-range-input--max {
    width: 100%;
}

@media (max-width: 760px) {
    .slider-admin-grid {
        grid-template-columns: 1fr;
    }

    .model-builder-body .admin-model-list-card,
    .model-builder-body .admin-editor-card,
    .model-builder-body .admin-test-card,
    .model-builder-body .admin-consultant-card {
        padding: 1.05rem;
    }

    .model-builder-body .slider-panel--ratings,
    .model-builder-body .slider-panel--weights {
        grid-column: 1 / -1;
    }

    .model-builder-body .slider-control,
    .model-builder-body .slider-control--paired,
    .model-builder-body .slider-control--dual-range,
    .model-builder-body .slider-control--readonly,
    .model-builder-body .slider-control--number {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .model-builder-body .slider-control__impact {
        justify-self: start;
        text-align: left;
    }

    .model-builder-body .slider-control__number {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .model-builder-body .formula-section summary {
        grid-template-columns: 1fr;
    }

    .model-builder-body .formula-section summary small {
        white-space: normal;
    }

    .model-builder-body .formula-table {
        table-layout: auto;
    }

    .model-builder-body .model-test-day-grid,
    .model-builder-body .model-test-note {
        grid-template-columns: 1fr;
    }

    .consultant-report-grid {
        grid-template-columns: 1fr;
    }

    .consultant-loading {
        grid-template-columns: 1fr;
    }

    .model-test-detail-grid {
        grid-template-columns: 1fr;
        max-height: calc(86vh - 210px);
        padding: 0.85rem;
    }

    .model-test-detail-dialog__header,
    .model-test-detail-summary {
        padding-inline: 0.9rem;
    }
}

@media (min-width: 761px) {
    .model-builder-body .model-test-results > .model-test-summary-grid {
        display: flex;
        flex-wrap: nowrap;
    }
}

.model-builder-body .model-test-results > .model-test-summary-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    width: 100%;
    overflow-x: hidden;
}

.model-builder-body .model-test-results > .model-test-summary-grid > .dashboard-stat {
    flex: 1 1 0;
    min-width: 0;
}

.platform-admin .platform-admin-hero-copy {
    padding-left: 0;
}

.platform-admin .platform-admin-hero-text {
    display: block;
    padding-left: 0;
}

.platform-admin .platform-admin-hero-text .home-kicker {
    display: inline-block;
    margin: 0 0 0.85rem 8px;
    padding: 0.42rem 0.84rem;
    transform: none;
}

.platform-admin .platform-admin-hero-text h1 {
    margin: 0 0 0.55rem 0;
    padding-left: 0.84rem;
}

.platform-admin .platform-admin-hero-text p {
    margin: 0;
    max-width: 700px;
    padding-left: 0.84rem;
}
