:root {
    --bg: #eef2f7;
    --panel: #ffffff;
    --text: #263238;
    --muted: #7a8793;
    --line: #e5e9f0;
    --primary: #9e76b4;
    --primary-dark: #6f4388;
    --accent: #d8b15f;
    --gold: #d8b15f;
    --blue: #8f6faf;
    --red: #b94a48;
    --sidebar: #3b244d;
    --sidebar-deep: #251431;
    --sidebar-text: #d8c9e1;
    --shadow: 0 4px 18px rgba(69, 90, 100, 0.08);
    --sidebar-width: 330px;
    --sidebar-collapsed-width: 76px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Sarabun", Tahoma, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.app-body {
    padding-left: var(--sidebar-width);
    transition: padding-left 0.2s ease;
}

.app-body.sidebar-collapsed {
    padding-left: var(--sidebar-collapsed-width);
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 68px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(69, 90, 100, 0.06);
    backdrop-filter: blur(12px);
}

.app-body .topbar {
    left: var(--sidebar-width);
    transition: left 0.2s ease;
}

.app-body.sidebar-collapsed .topbar {
    left: var(--sidebar-collapsed-width);
}

.brand,
.nav,
.nav form,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand,
.sidebar-brand {
    font-weight: 700;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #6f4388);
    color: #fff;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--sidebar-width);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--sidebar), var(--sidebar-deep));
    color: var(--sidebar-text);
    box-shadow: 8px 0 24px rgba(29, 41, 53, 0.18);
    transition: width 0.2s ease, transform 0.2s ease;
}

.sidebar-overlay {
    display: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-brand span:last-child {
    display: grid;
    line-height: 1.25;
}

.sidebar-brand em,
.sidebar-user span,
.nav-caption {
    color: #8ea1b5;
    font-size: 12px;
    font-style: normal;
}

.sidebar-user {
    display: grid;
    gap: 4px;
    margin: 16px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-user strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.sidebar-toggle {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(69, 90, 100, 0.06);
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-dark);
}

.sidebar-year {
    display: grid;
    gap: 7px;
    margin: 0 16px 10px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-year label {
    color: #8ea1b5;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-year select {
    min-height: 38px;
    border-color: rgba(255, 255, 255, 0.14);
    background: #2f1d3d;
    color: #fff;
}

.side-nav {
    display: grid;
    gap: 4px;
    padding: 8px 12px 24px;
}

.nav-caption {
    margin: 16px 10px 6px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--sidebar-text);
}

.side-nav a.strategy-link {
    align-items: flex-start;
    min-height: 74px;
}

.side-nav a.strategy-link span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.side-nav a.strategy-link strong {
    color: #fff;
    font-size: 13px;
}

.side-nav a.strategy-link small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--sidebar-text);
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.side-nav a.strategy-link em {
    color: #8ea1b5;
    font-size: 11px;
    font-style: normal;
}

.side-nav a:hover,
.side-nav a.active {
    background: transparent;
    color: #fff;
}

.side-nav i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    background: #4e3a5d;
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.side-nav i svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.side-nav a.active i {
    background: #67467a;
}

.side-nav a:hover i {
    background: #74518a;
}

.app-body.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
}

.app-body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 0;
}

.app-body.sidebar-collapsed .sidebar-brand .brand-mark {
    width: 42px;
}

.app-body.sidebar-collapsed .sidebar-brand span:last-child,
.app-body.sidebar-collapsed .sidebar-user,
.app-body.sidebar-collapsed .sidebar-year,
.app-body.sidebar-collapsed .nav-caption,
.app-body.sidebar-collapsed .side-nav a > span {
    display: none;
}

.app-body.sidebar-collapsed .side-nav {
    padding: 12px 10px 24px;
}

.app-body.sidebar-collapsed .side-nav a {
    justify-content: center;
    min-height: 48px;
    padding: 6px;
}

.app-body.sidebar-collapsed .side-nav a.strategy-link {
    align-items: center;
    min-height: 48px;
}

.topbar-title {
    display: grid;
    justify-items: start;
    flex: 1 1 auto;
    line-height: 1.25;
    text-align: left;
}

.topbar-title span {
    color: var(--muted);
    font-size: 13px;
}

.topbar-title strong {
    font-size: 18px;
}

.topbar-actions form {
    margin: 0;
}

.topbar-actions {
    margin-left: auto;
}

.topbar-pill {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fbf8fc;
    color: var(--muted);
    font-size: 13px;
}

.auth-brand {
    margin-left: auto;
}

.nav a,
.link-button {
    color: var(--muted);
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.link-button {
    min-height: 40px;
    padding: 8px 18px;
    color: #7b8794;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(69, 90, 100, 0.06);
}

.nav a:hover,
.link-button:hover {
    border-color: #d9c7e4;
    background: #fbf8fc;
    color: var(--primary-dark);
}

.shell {
    width: min(1400px, calc(100% - 32px));
    margin: 24px auto 56px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1400px, calc(100% - 32px));
    margin: -28px auto 24px;
    padding: 14px 4px;
    color: var(--muted);
    font-size: 13px;
}

.flash {
    width: min(1280px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 12px 16px;
    border: 1px solid #b7d3c2;
    border-radius: 8px;
    background: #e8f4ed;
    color: #205a3e;
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 430px;
    min-height: calc(100vh - 148px);
    gap: 34px;
    align-items: center;
}

.login-copy h1,
.hero h1,
.page-head h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.2vw, 36px);
    line-height: 1.28;
}

.login-copy p,
.hero p,
.page-head p,
.help {
    color: var(--muted);
}

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

.panel,
.hero,
.page-head {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 22px;
}

.hero,
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    margin-bottom: 22px;
}

.page-head > div {
    min-width: 0;
}

.page-head .inline-form {
    flex: 0 0 160px;
    align-self: center;
}

.page-head .inline-form select {
    min-width: 150px;
    text-align: center;
}

.login-panel {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
}

button,
.primary,
.secondary {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary {
    background: var(--primary);
    color: #fff;
}

.primary:hover {
    background: var(--primary-dark);
}

.secondary {
    background: #e8ece8;
    color: var(--text);
}

.demo-users {
    display: grid;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.year-picker {
    display: grid;
    min-width: 130px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.year-picker span,
.metric span {
    color: var(--muted);
    font-size: 13px;
}

.year-picker strong {
    font-size: 26px;
}

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

.grid.two {
    grid-template-columns: 1.2fr 0.8fr;
}

.metric {
    padding: 20px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.metric strong {
    display: block;
    margin-top: 6px;
    color: var(--primary);
    font-size: 32px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.dashboard-hero-copy,
.dashboard-year-card,
.dashboard-main,
.dashboard-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.dashboard-hero-copy {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 210px;
    padding: 26px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
        linear-gradient(135deg, #f4eef8, #edf5f2 54%, #fff7e5);
}

.dashboard-hero-copy h1 {
    margin: 0;
    font-size: clamp(26px, 2.2vw, 36px);
    line-height: 1.28;
}

.dashboard-hero-copy p {
    margin: 0;
    color: var(--muted);
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.dashboard-year-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 22px;
    text-align: center;
}

.dashboard-year-card > span,
.dashboard-year-card em,
.dashboard-metric span,
.dashboard-metric em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.dashboard-year-card strong {
    color: var(--text);
    font-size: 34px;
    line-height: 1;
}

.dashboard-progress-ring {
    display: grid;
    place-items: center;
    width: 118px;
    aspect-ratio: 1;
    margin-top: 8px;
    border-radius: 50%;
    background: conic-gradient(#4f927a var(--dashboard-progress), #e8edf1 0);
}

.dashboard-progress-ring span {
    display: grid;
    place-items: center;
    width: 78px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    color: #315c4d;
    font-weight: 800;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-metric {
    display: grid;
    gap: 4px;
    min-height: 142px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.dashboard-metric strong {
    font-size: 34px;
    line-height: 1.1;
}

.metric-total strong {
    color: var(--primary);
}

.metric-done strong {
    color: #3f8b70;
}

.metric-draft strong {
    color: #b8862d;
}

.metric-left strong {
    color: #667789;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 18px;
}

.dashboard-main,
.dashboard-side {
    padding: 22px;
}

.dashboard-strategy-list,
.dashboard-activity-list {
    display: grid;
    gap: 10px;
}

.dashboard-strategy-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 58px;
    gap: 14px;
    align-items: center;
    min-height: 96px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-strategy-row:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 22px rgba(69, 90, 100, 0.1);
    transform: translateY(-1px);
}

.strategy-row-index {
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: #f3edf7;
    color: var(--primary-dark);
    font-weight: 800;
}

.strategy-row-body {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.strategy-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.strategy-row-head strong {
    min-width: 0;
    line-height: 1.35;
}

.strategy-row-head span {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef5f1;
    color: #3f765f;
    font-size: 12px;
    font-weight: 700;
}

.strategy-row-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.strategy-row-progress span {
    display: block;
    width: var(--row-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9e76b4, #4f927a);
}

.strategy-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.strategy-row-meta em,
.strategy-row-percent {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.strategy-row-percent {
    color: var(--primary-dark);
    font-size: 18px;
    text-align: right;
}

.dashboard-activity {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-activity time {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-activity p {
    margin: 2px 0 0;
    line-height: 1.45;
}

.activity-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: #8ea1b5;
}

.dashboard-activity.submitted .activity-dot,
.dashboard-activity.verified .activity-dot {
    background: #4f927a;
}

.dashboard-activity.draft .activity-dot {
    background: #d8b15f;
}

.dashboard-activity.settings .activity-dot {
    background: var(--primary);
}

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

.section-title h2,
.panel h2 {
    margin: 0;
    font-size: 22px;
}

.small-link {
    color: var(--primary);
    font-weight: 700;
}

.strategy-list,
.logs,
.user-list {
    display: grid;
    gap: 10px;
}

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

.strategy-card {
    display: grid;
    gap: 12px;
    min-height: 220px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.strategy-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.strategy-card h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
}

.strategy-card p {
    margin: 0;
    color: var(--muted);
}

.strategy-code {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f4eef8;
    color: var(--primary);
    font-weight: 700;
}

.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.card-stats span {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
}

.strategy-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 18px;
}

.strategy-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

.strategy-tabs a.active,
.strategy-tabs a:hover {
    border-color: var(--primary);
    background: #f4eef8;
    color: var(--primary);
}

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

.strategy-sidebar {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 108px);
    overflow: auto;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.strategy-sidebar-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.strategy-sidebar-head span {
    color: var(--muted);
    font-size: 13px;
}

.strategy-menu {
    display: grid;
    padding: 8px;
    gap: 6px;
}

.strategy-menu a {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 4px 10px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.strategy-menu a:hover,
.strategy-menu a.active {
    border-color: var(--primary);
    background: #f4eef8;
}

.strategy-menu span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f6f0f9;
    color: var(--primary);
    font-weight: 700;
}

.strategy-menu a.active span {
    background: var(--primary);
    color: #fff;
}

.strategy-menu strong {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
}

.strategy-menu em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.strategy-workspace {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.indicator-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 6px;
    overflow: visible;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.indicator-tabs a {
    position: relative;
    display: grid;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 66px;
    padding: 8px 22px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbf8fc;
    white-space: normal;
    overflow-wrap: anywhere;
}

.indicator-tab-title {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.indicator-tab-title strong {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #9e76b4;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.indicator-tabs a:hover,
.indicator-tabs a.active {
    border-color: var(--primary);
    background: #f4eef8;
}

.indicator-tabs .indicator-tab-title > span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    max-height: 2.5em;
    min-width: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.indicator-tabs .status {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 9px;
    min-width: 9px;
    height: 9px;
    min-height: 9px;
    overflow: hidden;
    padding: 0;
    border-radius: 50%;
    color: transparent;
    font-size: 0;
}

.strategy-list a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.strategy-list a:hover {
    border-color: var(--primary);
}

.strategy-list span,
.logs span,
.user-list span {
    color: var(--muted);
}

.logs p,
.user-list p {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.entry-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 18px;
}

.sidebar {
    max-height: calc(100vh - 130px);
    overflow: auto;
}

.sidebar a {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.sidebar a.active {
    border-color: var(--primary);
    background: #f4eef8;
}

.sidebar span {
    color: var(--accent);
    font-weight: 700;
}

.sidebar strong {
    font-size: 14px;
}

.status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.status.muted {
    background: #eef0ef;
    color: #67736d;
}

.status.draft {
    background: #fff4de;
    color: #946414;
}

.status.submitted {
    background: #f0e6f6;
    color: var(--blue);
}

.status.verified {
    background: #e3f9ed;
    color: #24734d;
}

.status.returned {
    background: #fbe7e4;
    color: var(--red);
}

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

.form-intro {
    padding: 14px 16px;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fbf8fc;
}

.form-intro strong {
    display: block;
    margin-bottom: 4px;
}

.form-intro p {
    margin: 0;
    color: var(--muted);
}

.data-table-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.select-question-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.checkbox-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbf8fc;
    transition: opacity .2s ease, background .2s ease;
}

.checkbox-panel.is-disabled {
    opacity: .62;
    background: #f3f5f8;
}

.checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 10px;
}

.checkbox-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.checkbox-item:has(input:checked) {
    border-color: var(--primary);
    background: #f4eef8;
    color: var(--primary);
}

.form-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.compact-control {
    display: grid;
    gap: 6px;
    min-width: min(100%, 240px);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.national-test-card {
    transition: opacity .2s ease;
}

.national-test-card.is-disabled [data-national-test-fields],
.national-test-card.is-disabled textarea {
    opacity: .58;
}

.national-test-card output {
    display: inline-flex;
    min-width: 78px;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f7f3f8;
    color: var(--text);
    font-weight: 800;
}

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

.level-help-list > div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbf8fc;
}

.level-help-list > div.active {
    border-color: var(--primary);
    background: #f4eef8;
}

.level-help-list strong {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-dark);
}

.level-help-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.evidence-gallery a {
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbf8fc;
}

.evidence-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.evidence-gallery span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-title.compact {
    margin-bottom: 0;
}

.section-title.compact h3 {
    margin: 0;
    font-size: 18px;
}

.section-title.compact p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.input-table {
    min-width: 560px;
    border: 1px solid var(--line);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.input-table.wide {
    min-width: 860px;
}

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

.mi-table {
    min-width: 760px;
}

.mi-table textarea {
    min-width: 280px;
}

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

.mi-table th:last-child,
.mi-table td:last-child {
    width: 92px;
}

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

.assessment-table th,
.assessment-table td {
    text-align: left;
    vertical-align: top;
}

.assessment-table tbody td {
    padding: 14px 16px;
    line-height: 1.55;
}

.assessment-table tbody tr:nth-child(even) td {
    background: #fcfbfd;
}

.assessment-table th:last-child,
.assessment-table td:last-child {
    width: 190px;
}

.assessment-table select {
    width: 100%;
    min-width: 150px;
}

.assessment-table td strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.sar-table th:nth-child(2),
.sar-table td:nth-child(2) {
    width: 44%;
    color: var(--muted);
}

.input-table th,
.input-table td {
    padding: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.assessment-table th,
.assessment-table td {
    text-align: left;
    vertical-align: top;
}

.input-table th:first-child {
    text-align: left;
}

.input-table thead th {
    background: #f4eef8;
    color: var(--primary-dark);
    font-size: 13px;
}

.input-table tfoot th,
.input-table tfoot td {
    background: #fbf8fc;
    color: var(--primary-dark);
    font-weight: 800;
}

.input-table tr > *:last-child {
    border-right: 0;
}

.input-table tfoot tr:last-child > *,
.input-table tbody tr:last-child > * {
    border-bottom: 0;
}

.number-input {
    max-width: 110px;
    min-width: 82px;
    margin: 0 auto;
    text-align: right;
}

.input-table output {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 62px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8f5fa;
    color: var(--text);
    font-weight: 800;
}

.placeholder {
    padding: 16px;
    border: 1px dashed #c7d1c8;
    border-radius: 8px;
    background: #f8faf8;
}

.placeholder p,
.empty {
    color: var(--muted);
}

.actions,
.inline-form,
.review-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

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

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

.checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 8px 12px;
    min-width: 440px;
}

.checks label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checks input[type="checkbox"] {
    width: auto;
}

.choice-fieldset {
    display: grid;
    gap: 10px;
    padding: 0;
    border: 0;
}

.choice-fieldset legend {
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 800;
}

.choice-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 10px;
}

.choice-list label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
}

.choice-list label.active {
    border-color: var(--primary);
    background: #f4eef8;
    color: var(--primary);
}

.choice-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.inline-quantity {
    display: grid;
    gap: 6px;
    min-width: 190px;
}

.inline-quantity span,
.muted-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

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

.donut-chart {
    display: grid;
    place-items: center;
    width: 160px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--donut-value, 0%), #e9edf3 0);
    color: var(--text);
    font-weight: 900;
}

.donut-chart::before {
    content: "";
    position: absolute;
}

.donut-chart span {
    display: grid;
    place-items: center;
    width: 104px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.donut-legend {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.donut-legend strong {
    color: var(--text);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.insight-card {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.insight-card span,
.insight-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.insight-card strong {
    color: var(--text);
    font-size: 28px;
    line-height: 1.15;
}

.balance-compare {
    display: grid;
    gap: 10px;
}

.balance-chart-labels,
.balance-chart-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.balance-chart-labels strong:last-child,
.balance-chart-values span:last-child {
    text-align: right;
}

.balance-chart {
    display: grid;
    grid-template-columns: 1fr 10px 1fr;
    align-items: stretch;
    gap: 8px;
}

.balance-half {
    display: flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    background: #eef2f4;
}

.balance-half.left {
    justify-content: flex-end;
}

.balance-half.right {
    justify-content: flex-start;
}

.balance-axis {
    border-radius: 999px;
    background: linear-gradient(180deg, #d1d9df, #94a3af);
}

.balance-bar {
    height: 24px;
    border-radius: 999px;
}

.balance-bar.left {
    background: linear-gradient(90deg, #f2c66d, #d98f2b);
}

.balance-bar.right {
    background: linear-gradient(90deg, #3f8b70, #73b098);
}

.trend-bars {
    display: grid;
    gap: 12px;
}

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

.trend-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.trend-fill {
    height: 100%;
    border-radius: inherit;
}

.trend-fill.positive {
    background: linear-gradient(90deg, #72b89b, #3f8b70);
}

.trend-fill.negative {
    background: linear-gradient(90deg, #f0b361, #d98f2b);
}

.trend-fill.neutral {
    background: linear-gradient(90deg, #7ea6c9, #567fa3);
}

.treemap-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 180px;
}

.treemap-cell {
    display: grid;
    align-content: end;
    gap: 6px;
    min-width: 140px;
    min-height: 120px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f2c66d, #d98f2b 50%, #f5ead7);
    color: #3f2a0c;
    box-shadow: var(--shadow);
}

.treemap-cell:nth-child(2n) {
    background: linear-gradient(135deg, #83b89e, #4f927a 50%, #edf6f2);
    color: #173c2e;
}

.treemap-cell:nth-child(3n) {
    background: linear-gradient(135deg, #8db2d2, #5b84a7 50%, #eef4fa);
    color: #17304a;
}

.treemap-cell strong {
    font-size: 18px;
    line-height: 1.2;
}

.treemap-cell span,
.treemap-empty {
    color: var(--muted);
    font-size: 13px;
}

.network-preview {
    display: grid;
    gap: 14px;
}

.network-link-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.network-node,
.network-connector,
.network-empty,
.gauge-meta {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.network-node {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.network-node.school {
    border-color: rgba(124, 82, 149, 0.22);
    background: rgba(124, 82, 149, 0.05);
}

.network-node.partner {
    border-color: rgba(212, 150, 61, 0.28);
    background: rgba(245, 201, 118, 0.11);
}

.network-node span,
.network-connector small,
.gauge-meta small {
    color: var(--muted);
    font-size: 13px;
}

.network-connector {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 16px 12px;
    text-align: center;
}

.network-connector::before,
.network-connector::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 2px;
    background: rgba(124, 82, 149, 0.35);
}

.network-connector::before {
    left: -22px;
}

.network-connector::after {
    right: -22px;
}

.network-empty {
    padding: 28px 20px;
    text-align: center;
}

.gauge-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.gauge-chart {
    --gauge-fill: 0deg;
    position: relative;
    display: grid;
    place-items: center;
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#7c5295 0deg, #7c5295 var(--gauge-fill), #efe6f5 var(--gauge-fill), #efe6f5 360deg);
}

.gauge-chart::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: #fff;
}

.gauge-chart span {
    position: relative;
    z-index: 1;
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.gauge-meta {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.gauge-meta strong {
    font-size: 24px;
}

.bar-stack-preview {
    display: grid;
    gap: 14px;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) 56px;
    gap: 12px;
    align-items: center;
}

.bar-row strong {
    font-size: 15px;
}

.bar-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #efe6f5;
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c5295, #b78ac9);
}

.donut-preview-wrap {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

@media (max-width: 900px) {
    .app-body,
    .app-body.sidebar-collapsed {
        padding-left: 0;
    }

    .app-sidebar,
    .app-body.sidebar-collapsed .app-sidebar {
        width: min(330px, 86vw);
        transform: translateX(-104%);
    }

    .app-body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: block;
        background: rgba(20, 12, 28, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .app-body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .app-body .topbar,
    .app-body.sidebar-collapsed .topbar {
        left: 0;
    }

    .app-body.sidebar-collapsed .sidebar-brand {
        justify-content: flex-start;
        padding: 0 20px;
    }

    .app-body.sidebar-collapsed .sidebar-brand span:last-child,
    .app-body.sidebar-collapsed .sidebar-user,
    .app-body.sidebar-collapsed .sidebar-year,
    .app-body.sidebar-collapsed .nav-caption,
    .app-body.sidebar-collapsed .side-nav a > span {
        display: grid;
    }

    .app-body.sidebar-collapsed .side-nav {
        padding: 8px 12px 24px;
    }

    .app-body.sidebar-collapsed .side-nav a {
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 12px;
    }

    .app-body.sidebar-collapsed .side-nav a.strategy-link {
        align-items: flex-start;
        min-height: 74px;
    }

    .shell,
    .app-footer,
    .flash {
        width: min(100% - 20px, 1400px);
    }

    .topbar {
        min-height: auto;
        padding: 10px;
    }

    .topbar-title strong {
        font-size: 15px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .app-footer {
        flex-direction: column;
        margin-top: -36px;
    }

    .topbar,
    .hero,
    .page-head,
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        flex-wrap: wrap;
    }

    .login-layout,
    .metrics,
    .dashboard-hero,
    .dashboard-metrics,
    .dashboard-layout,
    .grid.two,
    .strategy-page-grid,
    .strategy-shell,
    .entry-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-copy {
        min-height: auto;
        padding: 20px;
    }

    .dashboard-year-card {
        grid-template-columns: 1fr auto;
        justify-items: start;
        text-align: left;
    }

    .dashboard-year-card em {
        grid-column: 1;
    }

    .dashboard-progress-ring {
        grid-column: 2;
        grid-row: 1 / span 3;
        width: 86px;
        margin-top: 0;
    }

    .dashboard-progress-ring span {
        width: 58px;
        font-size: 13px;
    }

    .dashboard-strategy-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .strategy-row-percent {
        grid-column: 2;
        text-align: left;
    }

    .strategy-row-head {
        display: grid;
    }

    .strategy-sidebar {
        position: static;
        max-height: none;
    }

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

    .strategy-menu a {
        grid-template-columns: 1fr;
    }

    .strategy-menu span {
        grid-row: auto;
    }

    .checks {
        grid-template-columns: 1fr;
        min-width: 260px;
    }

    .network-link-card,
    .gauge-layout,
    .donut-preview-wrap {
        grid-template-columns: 1fr;
    }

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

    .network-connector::before,
    .network-connector::after {
        display: none;
    }

    .gauge-chart {
        width: 160px;
        margin-inline: auto;
    }
}
/* Premium authentication landing */
.auth-body:has(.public-site) {
    background:
        linear-gradient(135deg, rgba(44, 28, 58, 0.96), rgba(86, 55, 111, 0.82)),
        #3b244d;
}

.auth-body:has(.public-site) .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    padding: 24px clamp(18px, 4vw, 54px);
}

.auth-body:has(.public-site) .topbar-title {
    display: block;
    width: fit-content;
    max-width: min(560px, 48vw);
    padding: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-body:has(.public-site) .topbar-title strong {
    display: block;
    color: #fff;
    font-family: "Prompt", "Sarabun", sans-serif;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.auth-body:has(.public-site) .auth-brand {
    color: #3b244d;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 36px rgba(18, 10, 28, 0.2);
}

.auth-body:has(.public-site) .shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.auth-body:has(.public-site) .app-footer {
    position: relative;
    z-index: 3;
    margin-top: -72px;
    padding: 0 clamp(18px, 4vw, 54px) 22px;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    border-top: 0;
}

.public-site {
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
}

.public-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 20;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 48px rgba(19, 12, 28, 0.18);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.public-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #5d4a6f;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.public-nav a:hover {
    color: #fff;
    background: #6f4598;
}

.public-nav .public-nav-login {
    color: #3b244d;
    background: #f2d78d;
}

.public-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(520px, 0.92fr) minmax(360px, 0.72fr);
    gap: clamp(28px, 5vw, 86px);
    align-items: center;
    min-height: 100vh;
    padding: 118px clamp(28px, 5vw, 84px) 116px;
}

.public-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(24, 15, 34, 0.94), rgba(60, 35, 82, 0.76) 38%, rgba(101, 70, 118, 0.3)),
        linear-gradient(0deg, rgba(16, 10, 24, 0.52), rgba(16, 10, 24, 0.12)),
        url("https://d1j7gws94ta18j.cloudfront.net/insecure/rs%3Afill%3A1200%3A900/czM6Ly90YWtlbWV0b3VyLTMtMC90b3BpY3MvM2hQalot4LiU4Lit4Lii4Liq4Li44LmA4LiX4LieX-C5gOC4iuC4teC4ouC4h-C5g-C4q-C4oeC5iDIuanBn") center / cover;
    pointer-events: none;
}

.public-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(30deg, rgba(255, 255, 255, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.18) 87.5%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.16) 87.5%);
    background-size: 58px 100px;
}

.public-copy,
.public-showcase,
.public-overview,
.public-story-band {
    position: relative;
    z-index: 1;
}

.public-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #f2d78d;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-kicker::before {
    content: "";
    width: 40px;
    height: 2px;
    border-radius: 999px;
    background: #f2d78d;
}

.public-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.05rem, 3.35vw, 3.95rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.public-copy > p {
    max-width: 660px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.95rem, 1.05vw, 1.04rem);
    line-height: 1.72;
}

.public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.public-actions .button-link {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.95rem;
}

.public-actions .primary {
    background: #f2d78d;
    color: #3b244d;
    border-color: #f2d78d;
    box-shadow: 0 18px 42px rgba(216, 177, 95, 0.26);
}

.public-actions .secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.public-search-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
    align-items: center;
    max-width: 560px;
    margin-top: 20px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 48px rgba(19, 12, 28, 0.22);
}

.public-search-panel span {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: #6f4598;
    font-size: 0;
}

.public-search-panel span::before {
    content: "⌕";
    font-size: 1.35rem;
    line-height: 1;
}

.public-search-panel strong {
    color: #263238;
    line-height: 1.25;
    font-size: 0.94rem;
}

.public-search-panel em {
    color: #758291;
    font-style: normal;
    font-weight: 700;
    font-size: 0.86rem;
}

.public-showcase {
    min-height: 460px;
    transform: scale(0.92);
    transform-origin: center right;
}

.public-map-card,
.public-float-card {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 28px 80px rgba(19, 12, 28, 0.26);
    backdrop-filter: blur(16px);
}

.public-map-card {
    inset: 72px 24px auto 0;
    min-height: 280px;
    padding: 32px;
    border-radius: 32px;
}

.public-map-card::before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 24px;
    border: 1px solid rgba(242, 215, 141, 0.32);
}

.public-map-card::after {
    content: "";
    position: absolute;
    right: 30px;
    bottom: 34px;
    width: 150px;
    height: 94px;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(242, 215, 141, 0.9) 0 18%, transparent 18% 28%, rgba(255, 255, 255, 0.38) 28% 46%, transparent 46% 56%, rgba(255, 255, 255, 0.24) 56% 78%, transparent 78%),
        linear-gradient(180deg, transparent 0 24%, rgba(255, 255, 255, 0.16) 24% 26%, transparent 26% 49%, rgba(255, 255, 255, 0.16) 49% 51%, transparent 51% 74%, rgba(255, 255, 255, 0.16) 74% 76%, transparent 76%);
    opacity: 0.9;
}

.public-map-card span {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    color: #3b244d;
    background: #f2d78d;
    font-weight: 900;
}

.public-map-card strong {
    position: relative;
    display: block;
    max-width: 280px;
    margin-top: 42px;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.12;
}

.public-map-card em {
    position: relative;
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-weight: 800;
}

.public-float-card {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 24px;
}

.public-float-card.one {
    right: 0;
    top: 22px;
}

.public-float-card.two {
    right: 30px;
    bottom: 86px;
    background: rgba(216, 177, 95, 0.18);
}

.public-float-card.three {
    left: 24px;
    bottom: 34px;
}

.public-float-card strong {
    color: #f2d78d;
    font-size: 1.75rem;
    line-height: 1;
}

.public-float-card span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

@media (min-width: 1600px) {
    .public-copy h1 {
        max-width: 820px;
        font-size: 4rem;
    }

    .public-copy > p {
        max-width: 760px;
    }
}

.public-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 clamp(18px, 5vw, 76px);
}

.public-quick-menu {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: -58px clamp(18px, 5vw, 76px) 28px;
}

.public-quick-menu a {
    min-width: 150px;
    padding: 11px 17px;
    border-radius: 999px;
    text-align: center;
    color: #3b244d;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 26px rgba(19, 12, 28, 0.14);
    text-decoration: none;
    font-weight: 900;
}

.public-quick-menu a:hover {
    color: #fff;
    background: #6f4598;
}

.public-featured {
    position: relative;
    z-index: 1;
    margin: 18px clamp(18px, 5vw, 76px) 0;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 24px 70px rgba(19, 12, 28, 0.16);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 0.85fr;
    gap: 14px;
}

.featured-grid article {
    position: relative;
    display: flex;
    min-height: 270px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 24px;
    border-radius: 26px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(23, 14, 32, 0.05), rgba(23, 14, 32, 0.72)),
        linear-gradient(135deg, #6f4598, #251431);
}

.featured-grid article::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(30deg, rgba(255, 255, 255, 0.3) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.3) 87.5%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.22) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.22) 87.5%);
    background-size: 50px 88px;
}

.featured-grid article::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 22px;
    width: 96px;
    height: 58px;
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(242, 215, 141, 0.9) 0 16%, transparent 16% 26%, rgba(255, 255, 255, 0.28) 26% 48%, transparent 48% 58%, rgba(255, 255, 255, 0.18) 58% 76%, transparent 76%),
        linear-gradient(180deg, transparent 0 30%, rgba(255, 255, 255, 0.16) 30% 33%, transparent 33% 64%, rgba(255, 255, 255, 0.16) 64% 67%, transparent 67%);
    opacity: 0.7;
}

.featured-grid .featured-large {
    min-height: 380px;
    background:
        linear-gradient(180deg, rgba(23, 14, 32, 0.04), rgba(23, 14, 32, 0.82)),
        url("https://d1j7gws94ta18j.cloudfront.net/insecure/rs%3Afill%3A1200%3A900/czM6Ly90YWtlbWV0b3VyLTMtMC90b3BpY3MvM2hQalot4LiU4Lit4Lii4Liq4Li44LmA4LiX4LieX-C5gOC4iuC4teC4ouC4h-C5g-C4q-C4oeC5iDIuanBn") center / cover;
}

.featured-grid span,
.featured-grid h3,
.featured-grid p,
.featured-grid a {
    position: relative;
}

.featured-grid span {
    color: #f2d78d;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-grid h3 {
    margin: 12px 0 10px;
    font-size: clamp(1.35rem, 2vw, 2.05rem);
    line-height: 1.18;
}

.featured-grid p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-size: 0.98rem;
}

.featured-grid a {
    width: fit-content;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #3b244d;
    background: #f2d78d;
    text-decoration: none;
    font-weight: 900;
}

.public-overview article,
.public-story-band {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(19, 12, 28, 0.18);
}

.public-overview article {
    min-height: 185px;
    padding: 24px;
    border-radius: 24px;
}

.public-overview span {
    color: #b68a35;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-overview h2 {
    margin: 12px 0 10px;
    color: #263238;
    font-size: 1.45rem;
}

.public-overview p {
    margin: 0;
    color: #758291;
    line-height: 1.7;
}

.public-presentation,
.public-strategy-showcase {
    position: relative;
    z-index: 1;
    margin: 18px clamp(18px, 5vw, 76px) 0;
    padding: clamp(22px, 3vw, 38px);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 24px 70px rgba(19, 12, 28, 0.16);
}

.public-section-head {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(360px, 0.9fr) minmax(360px, 1fr);
    gap: clamp(22px, 3vw, 54px);
    align-items: start;
    margin-bottom: 26px;
}

.public-section-head h2 {
    max-width: 760px;
    margin: 0;
    color: #263238;
    font-size: clamp(1.85rem, 2.25vw, 2.55rem);
    line-height: 1.12;
}

.public-section-head > p {
    max-width: 680px;
    margin: 0;
    color: #758291;
    line-height: 1.8;
    font-size: 1rem;
}

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

.presentation-grid article {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 184px;
    overflow: hidden;
    padding: 24px 28px;
    border-radius: 8px;
    background:
        linear-gradient(145deg, #ffffff, #fbf8fd);
    border: 1px solid #e8e2ee;
    box-shadow: 0 10px 28px rgba(40, 31, 53, 0.05);
}

.presentation-grid article::after {
    content: "";
    position: absolute;
    inset: auto 28px 24px auto;
    width: 86px;
    height: 58px;
    border-radius: 14px;
    background:
        linear-gradient(90deg, #6f4598 0 16%, transparent 16% 24%, #d8b15f 24% 38%, transparent 38% 48%, rgba(111, 69, 152, 0.28) 48% 70%, transparent 70%),
        linear-gradient(180deg, transparent 0 30%, #e9e0ef 30% 33%, transparent 33% 64%, #e9e0ef 64% 67%, transparent 67%);
    opacity: 0.28;
}

.presentation-grid article > * {
    position: relative;
    z-index: 1;
}

.presentation-grid span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #fff;
    background: #6f4598;
    font-weight: 900;
}

.presentation-grid h3 {
    margin: 20px 0 8px;
    color: #263238;
    font-size: 1.22rem;
    line-height: 1.25;
}

.presentation-grid p {
    max-width: 86%;
    margin: 0;
    color: #758291;
    line-height: 1.7;
    font-size: 0.96rem;
}

@media (max-width: 1280px) {
    .public-section-head {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    }

    .public-section-head > p {
        grid-column: 2;
    }

    .presentation-grid p {
        max-width: 100%;
    }
}

.public-strategy-showcase {
    background:
        linear-gradient(135deg, rgba(59, 36, 77, 0.96), rgba(111, 69, 152, 0.9)),
        #3b244d;
}

.public-strategy-showcase .public-kicker,
.public-strategy-showcase h2 {
    color: #f2d78d;
}

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

.strategy-showcase-grid span {
    min-height: 110px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 900;
    line-height: 1.35;
}

.public-story-band {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    margin: 18px clamp(18px, 5vw, 76px) 120px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 28px;
}

.public-story-band h2 {
    margin: 0;
    color: #263238;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.18;
}

.public-story-band > p {
    margin: 0;
    color: #758291;
    font-size: 1.05rem;
    line-height: 1.85;
}

@media (max-width: 980px) {
    .public-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 110px;
    }

    .public-showcase {
        min-height: 360px;
    }

    .public-map-card {
        inset: 20px auto auto 0;
        width: min(100%, 460px);
    }

    .public-overview,
    .public-story-band,
    .public-section-head {
        grid-template-columns: 1fr;
    }

    .public-section-head {
        display: grid;
    }

    .public-section-head > p {
        grid-column: auto;
    }

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

@media (max-width: 640px) {
    .auth-body:has(.public-site) .topbar {
        position: relative;
        padding: 16px;
    }

    .auth-body:has(.public-site) .topbar-title {
        max-width: 100%;
    }

    .public-hero {
        padding: 24px 16px 96px;
    }

    .public-copy h1 {
        font-size: clamp(1.8rem, 8.8vw, 2.55rem);
        line-height: 1.2;
    }

    .public-actions,
    .public-actions .button-link {
        width: 100%;
    }

    .public-showcase {
        display: none;
    }

    .public-search-panel {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .public-search-panel span {
        display: none;
    }

    .public-quick-menu {
        margin: -42px 16px 18px;
    }

    .public-quick-menu a {
        flex: 1 1 100%;
    }

    .public-overview {
        margin: 0 16px;
        grid-template-columns: 1fr;
    }

    .public-story-band {
        margin: 16px 16px 110px;
    }

    .public-nav {
        position: relative;
        top: auto;
        left: auto;
        flex-wrap: wrap;
        width: calc(100% - 32px);
        margin: 0 16px 10px;
        transform: none;
    }

    .public-nav a {
        flex: 1 1 auto;
    }

    .public-presentation,
    .public-strategy-showcase,
    .public-featured {
        margin: 16px;
        padding: 22px;
    }

    .presentation-grid,
    .strategy-showcase-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(216, 177, 95, 0.18), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(158, 118, 180, 0.18), transparent 30%),
        linear-gradient(135deg, #fbfaf7 0%, #f1edf5 45%, #ece7f1 100%);
}

.auth-body .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    padding: 24px clamp(18px, 4vw, 54px);
}

.auth-body .shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.auth-body .app-footer {
    position: relative;
    z-index: 3;
    margin-top: -74px;
    padding: 0 clamp(18px, 4vw, 54px) 22px;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    border-top: 0;
}

.auth-body .auth-brand {
    margin-left: auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 36px rgba(40, 31, 53, 0.12);
}

.auth-landing {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 440px);
    gap: clamp(22px, 4vw, 58px);
    align-items: center;
    min-height: 100vh;
    padding: 112px clamp(18px, 4vw, 64px) 96px;
    overflow: hidden;
}

.auth-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(46, 26, 66, 0.82), rgba(69, 42, 92, 0.64) 42%, rgba(88, 58, 110, 0.22) 72%, rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #3b244d 0%, #6f4598 54%, #d8b15f 145%);
    clip-path: polygon(0 0, 72% 0, 56% 100%, 0 100%);
    pointer-events: none;
}

.auth-landing::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(30deg, rgba(255, 255, 255, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.18) 87.5%, rgba(255, 255, 255, 0.18)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.18) 87.5%, rgba(255, 255, 255, 0.18));
    background-size: 56px 98px;
    pointer-events: none;
}

.auth-copy,
.auth-login-card,
.auth-visual {
    position: relative;
    z-index: 1;
}

.auth-copy {
    max-width: 820px;
    color: #fff;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #f3d991;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-kicker::before {
    content: "";
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: #f3d991;
}

.auth-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 4.6vw, 5rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.auth-copy > p:not(.auth-kicker) {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.85;
}

.auth-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin-top: 34px;
}

.auth-insight-grid article {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.auth-insight-grid strong {
    display: block;
    color: #f5dc98;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
}

.auth-insight-grid span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    line-height: 1.45;
}

.auth-story {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.auth-story span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    font-size: 0.92rem;
}

.auth-login-card {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 30px 80px rgba(38, 27, 52, 0.24);
    backdrop-filter: blur(18px);
}

.auth-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.auth-card-head .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(111, 69, 152, 0.3);
}

.auth-card-head p {
    margin: 0 0 2px;
    color: #b68a35;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card-head h2 {
    margin: 0;
    color: #263238;
    font-size: 1.9rem;
    line-height: 1.1;
}

.auth-login-card label {
    color: #5e6872;
    font-weight: 800;
}

.auth-login-card input {
    min-height: 54px;
    border-radius: 16px;
    background: #fbfafc;
    border-color: #e2d9ea;
    font-size: 1rem;
}

.auth-login-card input:focus {
    border-color: #9e76b4;
    box-shadow: 0 0 0 4px rgba(158, 118, 180, 0.12);
    outline: 0;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 2px;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(111, 69, 152, 0.24);
}

.auth-demo {
    display: grid;
    gap: 7px;
    padding: 14px;
    border-radius: 18px;
    background: #f8f5fa;
    border: 1px solid #ece4f1;
    color: #778392;
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-demo strong {
    color: #6f4598;
}

.auth-demo b {
    color: #2f3a42;
}

.auth-visual {
    position: absolute;
    inset: auto 33% 8% auto;
    width: min(34vw, 520px);
    height: min(34vw, 520px);
    pointer-events: none;
}

.culture-card {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 24px 60px rgba(28, 18, 40, 0.18);
    backdrop-filter: blur(12px);
}

.culture-main {
    left: 15%;
    top: 22%;
    width: 250px;
    padding: 22px;
    border-radius: 24px;
}

.culture-main span,
.culture-main em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-weight: 800;
}

.culture-main strong {
    display: block;
    margin: 7px 0;
    color: #f5dc98;
    font-size: 1.45rem;
    line-height: 1.15;
}

.culture-stat {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 26px;
}

.culture-stat.top {
    right: 14%;
    top: 4%;
}

.culture-stat.bottom {
    right: 0;
    bottom: 16%;
    background: rgba(216, 177, 95, 0.18);
}

.culture-stat span {
    color: #f5dc98;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.culture-stat em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-weight: 800;
}

.culture-line {
    position: absolute;
    border-radius: 999px;
    background: rgba(245, 220, 152, 0.5);
    transform: rotate(-28deg);
}

.culture-line.one {
    width: 220px;
    height: 4px;
    left: 28%;
    top: 52%;
}

.culture-line.two {
    width: 150px;
    height: 3px;
    right: 12%;
    top: 37%;
}

@media (max-width: 1180px) {
    .auth-landing {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
    }

    .auth-visual {
        display: none;
    }
}

@media (max-width: 900px) {
    .auth-body .topbar {
        position: relative;
        padding: 16px;
    }

    .auth-body .shell {
        min-height: auto;
    }

    .auth-landing {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 22px 16px 90px;
    }

    .auth-landing::before {
        clip-path: none;
    }

    .auth-copy h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .auth-login-card {
        order: -1;
    }

    .auth-insight-grid {
        grid-template-columns: 1fr;
    }

    .auth-body .app-footer {
        margin-top: -64px;
        color: rgba(255, 255, 255, 0.78);
    }
}

@media (max-width: 560px) {
    .auth-body .topbar-title {
        display: none;
    }

    .auth-body .auth-brand {
        margin-left: 0;
    }

    .auth-landing {
        padding-top: 10px;
    }

    .auth-card-head {
        align-items: flex-start;
    }

    .auth-story {
        display: grid;
    }
}

/* Public hero redesign */
.public-showcase {
    min-height: 460px;
    transform: none;
}

.public-data-window {
    position: absolute;
    inset: 30px 0 auto auto;
    width: min(100%, 520px);
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 34px 90px rgba(18, 10, 28, 0.34);
    backdrop-filter: blur(16px);
}

.data-window-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid #eee7f3;
    background: rgba(250, 248, 252, 0.88);
}

.data-window-top span {
    margin-right: auto;
    color: #6f4598;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.data-window-top i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d8b15f;
}

.data-window-top i:nth-child(3) {
    background: #9e76b4;
}

.data-window-top i:nth-child(4) {
    background: #e7d9ee;
}

.data-window-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.data-window-hero small {
    color: #b68a35;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.data-window-hero strong {
    display: block;
    max-width: 310px;
    margin-top: 6px;
    color: #263238;
    font-size: 1.75rem;
    line-height: 1.18;
}

.data-window-hero b {
    display: inline-grid;
    place-items: center;
    min-width: 78px;
    height: 78px;
    border-radius: 22px;
    color: #3b244d;
    background: #f2d78d;
    font-size: 1.3rem;
}

.data-window-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 24px 18px;
}

.data-window-metrics div {
    padding: 16px 14px;
    border-radius: 18px;
    background: #f7f3fa;
    border: 1px solid #eee6f3;
}

.data-window-metrics strong {
    display: block;
    color: #6f4598;
    font-size: 1.8rem;
    line-height: 1;
}

.data-window-metrics span {
    display: block;
    margin-top: 7px;
    color: #778392;
    font-weight: 800;
    font-size: 0.88rem;
}

.data-window-chart {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 150px;
    margin: 0 24px 18px;
    padding: 18px 18px 0;
    border-radius: 22px;
    background:
        linear-gradient(180deg, transparent 0 31%, #eee8f2 31% 32%, transparent 32% 63%, #eee8f2 63% 64%, transparent 64%),
        #fbfafc;
    border: 1px solid #eee6f3;
}

.data-window-chart span {
    flex: 1;
    height: var(--h);
    min-height: 28px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, #d8b15f, #9e76b4);
}

.data-window-list {
    display: grid;
    gap: 10px;
    padding: 0 24px 24px;
}

.data-window-list p {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    color: #596673;
    font-weight: 800;
}

.data-window-list b {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d8b15f;
}

@media (max-width: 980px) {
    .public-data-window {
        position: relative;
        inset: auto;
        width: min(100%, 560px);
    }
}

@media (max-width: 640px) {
    .public-data-window {
        display: none;
    }
}

/* Provincial landing */
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 18px;
}

.landing-hero-copy,
.landing-score-card,
.landing-metrics article,
.landing-board {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(105, 71, 147, 0.12);
    box-shadow: 0 22px 60px rgba(24, 18, 36, 0.08);
}

.landing-hero-copy {
    min-height: 280px;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.landing-hero-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 5px solid #6f4598;
    pointer-events: none;
}

.landing-kicker {
    margin: 0 0 10px;
    color: #b68a35;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero h1 {
    max-width: 980px;
    margin: 0;
    color: #243039;
    font-size: clamp(2rem, 4vw, 4.25rem);
    line-height: 1.08;
}

.landing-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: #768494;
    font-size: 1.05rem;
    line-height: 1.8;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.landing-score-card {
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.landing-score-card span,
.landing-metrics span {
    color: #7b8794;
    font-weight: 800;
}

.landing-score-card strong {
    display: block;
    color: #5f3a84;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 1;
    margin-top: 14px;
}

.landing-score-card em,
.landing-metrics em {
    color: #8b97a6;
    font-style: normal;
    line-height: 1.6;
}

.landing-score-ring {
    width: 100%;
    height: 12px;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1eef5;
}

.landing-score-ring span {
    display: block;
    width: var(--landing-score);
    height: 100%;
    border-radius: inherit;
    background: #6f4598;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.landing-metrics article {
    border-radius: 16px;
    padding: 20px;
}

.landing-metrics strong {
    display: block;
    margin: 10px 0 4px;
    color: #25323c;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.landing-status-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.landing-status-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8e2ef;
    color: #71808f;
    font-weight: 800;
}

.landing-status-chip strong {
    color: #243039;
    font-size: 1.3rem;
}

.landing-status-chip.verified,
.landing-status-chip.submitted {
    border-color: rgba(48, 154, 112, 0.28);
    background: #f0faf5;
}

.landing-status-chip.draft {
    border-color: rgba(219, 169, 72, 0.32);
    background: #fff8ea;
}

.landing-status-chip.returned {
    border-color: rgba(191, 74, 74, 0.28);
    background: #fff3f2;
}

.landing-atlas {
    margin-bottom: 18px;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 252, 0.96)),
        #fff;
    border: 1px solid rgba(105, 71, 147, 0.12);
    box-shadow: 0 22px 60px rgba(24, 18, 36, 0.08);
}

.landing-atlas-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.landing-atlas-head h2 {
    margin: 0;
    color: #25323c;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.landing-atlas-head p {
    max-width: 620px;
    margin: 0;
    color: #81909f;
    line-height: 1.7;
}

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

.landing-atlas-card {
    position: relative;
    display: grid;
    min-height: 190px;
    padding: 18px;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e8e2ee;
    box-shadow: 0 10px 28px rgba(40, 31, 53, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-atlas-card::after {
    content: "";
    position: absolute;
    inset: auto -46px -68px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(111, 69, 152, 0.08);
}

.landing-atlas-card:hover {
    transform: translateY(-3px);
    border-color: rgba(111, 69, 152, 0.42);
    box-shadow: 0 18px 42px rgba(40, 31, 53, 0.12);
}

.landing-atlas-card span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #fff;
    background: #6f4598;
    font-weight: 900;
}

.landing-atlas-card strong {
    display: block;
    margin-top: 14px;
    color: #26333c;
    font-weight: 900;
    line-height: 1.45;
}

.landing-atlas-card em {
    display: block;
    margin-top: 8px;
    color: #84919f;
    font-style: normal;
    font-weight: 700;
    line-height: 1.45;
}

.landing-atlas-card i {
    align-self: end;
    display: block;
    height: 9px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1edf5;
}

.landing-atlas-card i b {
    display: block;
    width: var(--atlas-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6f4598, #d8b15f);
}

.landing-atlas-card small {
    position: absolute;
    right: 16px;
    top: 18px;
    color: #6f4598;
    font-weight: 900;
    font-size: 1rem;
}

.landing-intelligence {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 14px;
    margin-bottom: 18px;
}

.landing-executive-card,
.landing-place-card,
.landing-activity-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: clamp(20px, 3vw, 30px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(105, 71, 147, 0.12);
    box-shadow: 0 22px 60px rgba(24, 18, 36, 0.08);
}

.landing-executive-card {
    grid-row: span 2;
    min-height: 300px;
    background:
        linear-gradient(135deg, rgba(111, 69, 152, 0.08), rgba(216, 177, 95, 0.08)),
        rgba(255, 255, 255, 0.96);
}

.landing-executive-card::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border: 42px solid rgba(111, 69, 152, 0.07);
    border-radius: 50%;
}

.landing-intelligence h2 {
    position: relative;
    margin: 0;
    color: #25323c;
    font-size: clamp(1.35rem, 2.6vw, 2.25rem);
    line-height: 1.28;
}

.landing-intelligence p {
    position: relative;
    margin: 14px 0 0;
    color: #758291;
    line-height: 1.75;
}

.landing-brief-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.landing-brief-grid div {
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8e2ee;
}

.landing-brief-grid span {
    display: block;
    color: #8b97a6;
    font-weight: 800;
}

.landing-brief-grid strong {
    display: block;
    margin: 8px 0 10px;
    color: #26333c;
    line-height: 1.45;
}

.landing-brief-grid em {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #6f4598;
    background: #f3edf8;
    font-style: normal;
    font-weight: 900;
}

.landing-place-card {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(59, 36, 77, 0.94), rgba(111, 69, 152, 0.88)),
        #3b244d;
}

.landing-place-card .landing-kicker,
.landing-place-card h2 {
    color: #f3d991;
}

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

.landing-place-grid span {
    min-height: 74px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    line-height: 1.45;
}

.landing-activity-feed {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.landing-activity-feed > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: #faf8fc;
    border: 1px solid #ece6f2;
}

.landing-activity-feed strong {
    color: #26333c;
    line-height: 1.35;
}

.landing-activity-feed em {
    color: #85919e;
    font-style: normal;
    line-height: 1.45;
}

.landing-activity-feed .status {
    width: fit-content;
}

.landing-board {
    border-radius: 18px;
    padding: clamp(18px, 3vw, 32px);
}

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

.landing-board-head h2 {
    margin: 0;
    color: #25323c;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.landing-board-head > p {
    max-width: 560px;
    margin: 0;
    color: #8792a0;
    line-height: 1.6;
}

.landing-strategy-stack {
    display: grid;
    gap: 14px;
}

.landing-strategy,
.landing-indicator,
.landing-success-layer {
    border: 1px solid #e7e1ee;
    border-radius: 16px;
    background: #fff;
}

.landing-strategy summary,
.landing-indicator summary {
    cursor: pointer;
    list-style: none;
}

.landing-strategy summary::-webkit-details-marker,
.landing-indicator summary::-webkit-details-marker {
    display: none;
}

.landing-strategy > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(140px, 280px) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.landing-strategy-number,
.landing-indicator-number {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #6f4598;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

.landing-strategy-title strong,
.landing-indicator strong {
    display: block;
    color: #26333c;
    font-weight: 900;
    line-height: 1.45;
}

.landing-strategy-title em,
.landing-indicator em {
    display: block;
    margin-top: 3px;
    color: #85919e;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
}

.landing-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #f2edf6;
}

.landing-progress i {
    display: block;
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: #6f4598;
}

.landing-strategy > summary > b {
    color: #5f3a84;
    font-size: 1.35rem;
}

.landing-strategy-body {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.landing-success-layer {
    padding: 16px;
    background: #fbfafc;
}

.landing-success-layer h3 {
    margin: 0 0 12px;
    color: #7c5a99;
    font-size: 1rem;
    line-height: 1.6;
}

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

.landing-indicator > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.landing-indicator-number {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #9b72b6;
    font-size: 1rem;
}

.landing-mini-status {
    display: grid;
    place-items: center;
    min-width: 78px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #f4f1f7;
    color: #5f3a84;
}

.landing-mini-status i {
    font-style: normal;
    font-size: 1.2rem;
    font-weight: 900;
}

.landing-mini-status small {
    color: #8a799b;
    font-weight: 800;
}

.landing-indicator-body {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
}

.landing-indicator-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.landing-status-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.landing-status-mini-grid span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2f4f6;
    color: #6f7b87;
    font-weight: 800;
    font-size: 0.88rem;
}

.landing-status-mini-grid .verified,
.landing-status-mini-grid .submitted {
    background: #edf8f2;
    color: #267456;
}

.landing-status-mini-grid .draft {
    background: #fff5df;
    color: #9a6b12;
}

.landing-status-mini-grid .returned {
    background: #fff0ef;
    color: #a74040;
}

.landing-agency-table {
    overflow: hidden;
    border: 1px solid #e8e2ee;
    border-radius: 14px;
}

.landing-agency-table > div {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr);
}

.landing-agency-table span {
    padding: 13px 14px;
    border-top: 1px solid #eef0f4;
    color: #6e7b88;
    line-height: 1.45;
}

.landing-agency-head span {
    border-top: 0;
    background: #f1eaf5;
    color: #6f4598;
    font-weight: 900;
}

.landing-agency-table .status {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .landing-hero,
    .landing-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-hero-copy {
        grid-column: 1 / -1;
    }

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

    .landing-intelligence {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .landing-hero,
    .landing-metrics,
    .landing-status-strip {
        grid-template-columns: 1fr;
    }

    .landing-board-head,
    .landing-indicator-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-brief-grid,
    .landing-place-grid {
        grid-template-columns: 1fr;
    }

    .landing-atlas-head {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-atlas-grid {
        grid-template-columns: 1fr;
    }

    .landing-strategy > summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .landing-progress,
    .landing-strategy > summary > b {
        grid-column: 1 / -1;
    }

    .landing-indicator > summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .landing-mini-status {
        grid-column: 1 / -1;
        justify-items: start;
    }

    .landing-agency-table,
    .landing-agency-table > div,
    .landing-agency-table span {
        display: block;
    }

    .landing-agency-head {
        display: none !important;
    }

    .landing-agency-table > div {
        padding: 12px;
        border-top: 1px solid #eef0f4;
    }

    .landing-agency-table > div:first-of-type + div {
        border-top: 0;
    }

    .landing-agency-table span {
        border-top: 0;
        padding: 4px 0;
    }
}
