:root {
    --navy: #0f172a;
    --navy-2: #111c34;
    --indigo: #4f46e5;
    --indigo-dark: #3730a3;
    --indigo-soft: #eef2ff;
    --text: #172033;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --canvas: #f6f8fc;
    --success: #059669;
    --success-soft: #ecfdf5;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --shadow: 0 8px 30px rgba(15, 23, 42, .06);
    --sidebar-width: 270px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    color: #cbd5e1;
    background:
        radial-gradient(circle at 20% 2%, rgba(79, 70, 229, .2), transparent 22%),
        linear-gradient(180deg, #10172b 0%, #0b1222 100%);
    border-right: 1px solid rgba(255, 255, 255, .05);
    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 78px;
    padding: 0 22px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    border-radius: 11px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    box-shadow: 0 8px 22px rgba(79, 70, 229, .35);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { margin-top: 1px; color: #94a3b8; font-size: 10px; letter-spacing: .03em; }

.primary-nav {
    flex: 1;
    padding: 14px 12px 22px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.nav-label {
    padding: 18px 11px 8px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 39px;
    padding: 7px 10px;
    margin: 2px 0;
    color: #bac5d6;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 9px;
    transition: .18s ease;
}

.nav-link:hover { color: white; background: rgba(255, 255, 255, .06); }
.nav-link.is-active { color: white; background: rgba(79, 70, 229, .23); border-color: rgba(129, 140, 248, .16); }
.nav-icon { width: 22px; font-size: 18px; text-align: center; }
.nav-number { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; color: white; font-size: 9px; font-weight: 800; border-radius: 6px; background: color-mix(in srgb, var(--module-accent), transparent 25%); }
.nav-chevron { margin-left: auto; color: #64748b; font-size: 18px; }
.nav-pill { margin-left: auto; padding: 1px 7px; color: #c7d2fe; font-size: 10px; border-radius: 999px; background: rgba(99, 102, 241, .2); }

.subnav { position: relative; margin: 3px 0 8px 21px; padding-left: 17px; }
.subnav::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #28344b; }
.subnav a { display: block; padding: 5px 8px; color: #7f8da3; font-size: 10.5px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav a:hover, .subnav a.is-active { color: white; background: rgba(255,255,255,.045); }
.subnav a.is-active::before { content: ""; position: absolute; left: 0; width: 2px; height: 17px; background: #818cf8; }

.sidebar-card { margin: 12px; padding: 15px; border: 1px solid rgba(129, 140, 248, .14); border-radius: 12px; background: rgba(79, 70, 229, .08); }
.sidebar-card__eyebrow { display: block; margin-bottom: 5px; color: #818cf8; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.sidebar-card strong { display: block; color: #e2e8f0; font-size: 11.5px; }
.sidebar-card small { color: #7f8da3; font-size: 9.5px; }
.progress { height: 4px; margin: 10px 0 7px; overflow: hidden; border-radius: 99px; background: #263149; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366f1, #22d3ee); }

.main-area { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); }

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    padding: 0 clamp(20px, 3vw, 42px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.global-search { position: relative; display: flex; align-items: center; width: min(460px, 45vw); }
.global-search > span { position: absolute; left: 14px; color: #94a3b8; font-size: 20px; }
.global-search input { width: 100%; height: 42px; padding: 0 58px 0 42px; color: var(--text); border: 1px solid #dbe2ec; border-radius: 10px; outline: 0; background: #f8fafc; }
.global-search input:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px #eef2ff; background: white; }
.global-search kbd { position: absolute; right: 10px; padding: 2px 6px; color: #94a3b8; font-family: inherit; font-size: 9px; border: 1px solid #dbe2ec; border-radius: 5px; background: white; }
.search-results { position: absolute; top: 48px; left: 0; right: 0; max-height: 360px; padding: 7px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 20px 50px rgba(15,23,42,.16); }
.search-results a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 11px; border-radius: 8px; }
.search-results a:hover { background: #f8fafc; }
.search-results strong { font-size: 12px; }
.search-results small { color: var(--muted); font-size: 10px; }
.search-results__empty { padding: 18px; color: var(--muted); text-align: center; }

.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar-title strong, .topbar-title small { display: block; }
.topbar-title strong { color: #1e293b; font-size: 12px; }
.topbar-title small { margin-top: 1px; color: var(--muted); font-size: 9.5px; }
.icon-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: white; }
.icon-button:hover { color: var(--indigo); background: var(--indigo-soft); }
.has-dot::after { content: ""; position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: #ef4444; }
.mobile-menu { display: none; }
.user-menu { display: flex; align-items: center; gap: 9px; margin-left: 4px; padding-left: 11px; border-left: 1px solid var(--line); }
.user-menu strong, .user-menu small { display: block; }
.user-menu strong { font-size: 11.5px; }
.user-menu small { color: var(--muted); font-size: 9.5px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: white; font-size: 10px; font-weight: 800; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #3730a3); }
.avatar--soft { color: var(--indigo-dark); background: var(--indigo-soft); }

.content { max-width: 1580px; margin: 0 auto; padding: 31px clamp(20px, 3vw, 42px) 60px; }

.breadcrumbs { display: flex; align-items: center; gap: 7px; margin: -2px 0 19px; color: #94a3b8; font-size: 10.5px; }
.breadcrumbs a { color: #64748b; }
.breadcrumbs a:hover { color: var(--indigo); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-head--dashboard { padding: 2px 0 3px; }
.page-head h1 { margin: 2px 0 5px; color: #101828; font-size: clamp(27px, 2.4vw, 36px); line-height: 1.16; letter-spacing: -.035em; }
.page-head p, .section-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--indigo); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.page-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; border-color: var(--indigo); background: var(--indigo); box-shadow: 0 7px 16px rgba(79,70,229,.18); }
.button--primary:hover { background: var(--indigo-dark); }
.button--secondary { color: #334155; border-color: #d8e0eb; background: white; }
.button--secondary:hover { color: var(--indigo); border-color: #a5b4fc; }
.button--light { color: #312e81; border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.9); }
.button--soft { color: var(--indigo-dark); background: var(--indigo-soft); }
.button--ghost { color: #64748b; background: transparent; }
.button--block { width: 100%; }
.button--small { min-height: 34px; padding: 0 12px; font-size: 10px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 111px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 4px 16px rgba(15,23,42,.025); }
.metric-card__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; font-size: 16px; font-weight: 800; }
.metric-card__icon--indigo { color: #4338ca; background: #eef2ff; }
.metric-card__icon--green { color: #047857; background: #ecfdf5; }
.metric-card__icon--amber { color: #b45309; background: #fffbeb; }
.metric-card__icon--violet { color: #7e22ce; background: #faf5ff; }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card > div:nth-child(2) > span { color: var(--muted); font-size: 10px; font-weight: 600; }
.metric-card strong { margin: 2px 0 1px; color: #111827; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.metric-card small { color: #94a3b8; font-size: 9.5px; }
.metric-card > a { position: absolute; right: 15px; bottom: 13px; color: var(--indigo); font-size: 9.5px; font-weight: 700; }
.positive { color: var(--success) !important; }
.warning-text { color: var(--warning) !important; }
.micro-chart { position: absolute; right: 14px; bottom: 14px; color: #818cf8; font-size: 18px; letter-spacing: -3px; }
.donut { position: absolute; right: 15px; display: grid !important; place-items: center; width: 43px; height: 43px; color: #047857; font-size: 9px !important; font-weight: 800 !important; border-radius: 50%; background: conic-gradient(#10b981 calc(var(--value) * 1%), #d1fae5 0); }
.donut::after { content: ""; position: absolute; width: 31px; height: 31px; border-radius: 50%; background: white; }
.donut { isolation: isolate; }
.donut::before { content: attr(style); display: none; }
.donut { text-indent: 0; }
.donut { z-index: 0; }
.donut { --ring-text: 1; }
.donut { color: transparent; }
.donut::after { z-index: -1; }
.donut::before { content: "89%"; display: grid; place-items: center; position: absolute; inset: 6px; z-index: 2; color: #047857; font-size: 9px; border-radius: 50%; background: white; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.dashboard-main, .dashboard-side { display: flex; flex-direction: column; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 13px; }
.panel-head--border { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.panel-head h2, .section-heading h2 { margin: 2px 0 0; color: #172033; font-size: 17px; letter-spacing: -.02em; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.text-link { color: var(--indigo); font-size: 10.5px; font-weight: 700; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.segmented button { padding: 5px 9px; border: 0; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 9px; background: transparent; }
.segmented button.is-active { color: #1e293b; background: white; box-shadow: 0 1px 3px rgba(15,23,42,.1); }

.attendance-chart { display: flex; align-items: flex-end; gap: clamp(15px, 4vw, 37px); height: 218px; padding: 10px 25px 0; border-bottom: 1px solid #edf1f6; background: repeating-linear-gradient(to top, transparent 0, transparent 48px, #f1f5f9 49px); }
.bar-column { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-value { margin-bottom: 4px; color: #64748b; font-size: 9px; }
.bar-track { position: relative; width: min(25px, 100%); height: 150px; overflow: hidden; border-radius: 6px 6px 2px 2px; background: #eef2ff; }
.bar-track span { position: absolute; bottom: 0; left: 0; right: 0; border-radius: inherit; background: linear-gradient(180deg, #818cf8, #4f46e5); }
.bar-column small { margin: 6px 0 9px; color: #64748b; font-size: 9px; }
.chart-legend { display: flex; align-items: center; gap: 16px; padding: 13px 22px 16px; color: var(--muted); font-size: 9px; }
.chart-legend a { margin-left: auto; color: var(--indigo); font-weight: 700; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 2px; }
.legend-dot--indigo { background: var(--indigo); }
.legend-dot--pale { background: #e0e7ff; }

.module-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 5px 18px 19px; }
.module-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid #edf0f5; border-radius: 9px; transition: .18s ease; }
.module-card:hover { border-color: color-mix(in srgb, var(--accent), white 55%); background: color-mix(in srgb, var(--accent), white 97%); transform: translateY(-1px); }
.module-card__number { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; color: var(--accent); font-size: 9px; font-weight: 800; border-radius: 8px; background: color-mix(in srgb, var(--accent), white 90%); }
.module-card div { min-width: 0; }
.module-card strong, .module-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-card strong { font-size: 10.5px; }
.module-card small { color: #94a3b8; font-size: 8.5px; }
.module-card__arrow { margin-left: auto; color: #cbd5e1; }

.count-badge { display: grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; color: #b45309; font-size: 10px; font-weight: 800; border-radius: 7px; background: #fef3c7; }
.approval-panel { padding-bottom: 15px; }
.approval-row { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid #f1f5f9; }
.approval-row:hover { background: #fafbff; }
.approval-row > span:nth-child(2) { flex: 1; }
.approval-row strong, .approval-row small { display: block; }
.approval-row strong { font-size: 10.5px; }
.approval-row small { color: var(--muted); font-size: 9px; }
.approval-row > span:last-child { color: #94a3b8; }
.approval-panel > .button { width: calc(100% - 40px); margin: 13px 20px 0; }

.coverage-panel { padding-bottom: 20px; }
.coverage-ring { display: grid; place-items: center; width: 118px; height: 118px; margin: 4px auto 16px; border-radius: 50%; background: conic-gradient(#4f46e5 0 100%, #e0e7ff 0); }
.coverage-ring::before { content: ""; position: absolute; width: 91px; height: 91px; border-radius: 50%; background: white; }
.coverage-ring div { position: relative; z-index: 1; text-align: center; }
.coverage-ring strong, .coverage-ring small { display: block; }
.coverage-ring strong { font-size: 21px; }
.coverage-ring small { color: var(--muted); font-size: 9px; }
.coverage-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 18px; border: 1px solid var(--line); border-radius: 9px; }
.coverage-stats div { padding: 9px 4px; text-align: center; border-right: 1px solid var(--line); }
.coverage-stats div:last-child { border: 0; }
.coverage-stats strong, .coverage-stats span { display: block; }
.coverage-stats strong { font-size: 14px; }
.coverage-stats span { color: var(--muted); font-size: 7.5px; }
.coverage-panel > p { margin: 13px 20px 0; color: var(--muted); font-size: 9.5px; text-align: center; }

.module-hero { position: relative; display: flex; align-items: center; gap: 20px; min-height: 194px; margin-bottom: 28px; padding: 30px 32px; overflow: hidden; color: white; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent), #0f172a 62%), color-mix(in srgb, var(--accent), #0f172a 23%)); box-shadow: 0 16px 42px color-mix(in srgb, var(--accent), transparent 80%); }
.module-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -80px; top: -160px; border: 45px solid rgba(255,255,255,.055); border-radius: 50%; }
.module-hero__number { position: relative; z-index: 1; display: grid; place-items: center; width: 70px; height: 70px; flex: 0 0 70px; font-size: 21px; font-weight: 800; border: 1px solid rgba(255,255,255,.23); border-radius: 17px; background: rgba(255,255,255,.1); backdrop-filter: blur(5px); }
.module-hero__body { position: relative; z-index: 1; flex: 1; }
.module-hero .eyebrow { color: rgba(255,255,255,.68); }
.module-hero h1 { margin: 2px 0 5px; font-size: 30px; letter-spacing: -.035em; }
.module-hero p { max-width: 750px; margin: 0 0 16px; color: rgba(255,255,255,.72); font-size: 12px; }
.module-hero > .button { position: relative; z-index: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta span { padding: 5px 9px; font-size: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(255,255,255,.07); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 14px; }
.section-heading h2 { font-size: 20px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.topic-card { display: flex; min-height: 212px; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 4px 18px rgba(15,23,42,.025); transition: .2s ease; }
.topic-card:hover { border-color: color-mix(in srgb, var(--accent), white 55%); transform: translateY(-3px); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent), transparent 90%); }
.topic-card__top { display: flex; align-items: center; justify-content: space-between; }
.topic-index { color: var(--accent); font-size: 10px; font-weight: 800; }
.topic-card h3 { margin: 18px 0 5px; font-size: 15px; letter-spacing: -.015em; }
.topic-card p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }
.topic-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.topic-card__meta span { max-width: 100%; padding: 3px 7px; overflow: hidden; color: #64748b; font-size: 8px; border-radius: 5px; background: #f8fafc; text-overflow: ellipsis; white-space: nowrap; }
.topic-card__action { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 11px; color: var(--accent); font-size: 9.5px; font-weight: 700; border-top: 1px solid #f1f5f9; }

.status { display: inline-flex; align-items: center; width: max-content; padding: 3px 7px; color: #64748b; font-size: 8.5px; font-weight: 700; border-radius: 999px; background: #f1f5f9; white-space: nowrap; }
.status--success { color: #047857; background: var(--success-soft); }
.status--warning { color: #b45309; background: var(--warning-soft); }
.status--danger { color: #b91c1c; background: var(--danger-soft); }

.split-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.split-section--single { grid-template-columns: 1fr; }
.scope-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 4px 22px 22px; }
.scope-group { padding: 12px; border: 1px solid #edf1f6; border-radius: 9px; background: #fbfcfe; }
.scope-group h3 { margin: 0 0 7px; color: #334155; font-size: 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-list span { padding: 3px 7px; color: #53627a; font-size: 8px; border: 1px solid #e5eaf1; border-radius: 999px; background: white; }
.report-list { padding: 0 18px 18px; }
.report-list a { display: flex; align-items: center; gap: 10px; padding: 12px 5px; border-bottom: 1px solid #eef2f6; }
.report-list a:last-child { border: 0; }
.report-list a:hover strong { color: var(--indigo); }
.report-list a > span:nth-child(2) { flex: 1; }
.report-list strong, .report-list small { display: block; }
.report-list strong { font-size: 10.5px; }
.report-list small { color: var(--muted); font-size: 8.5px; }
.report-list__icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--indigo); border-radius: 8px; background: var(--indigo-soft); }

.title-with-icon { display: flex; align-items: center; gap: 15px; }
.large-module-number { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; color: var(--accent); font-size: 14px; font-weight: 800; border: 1px solid color-mix(in srgb, var(--accent), white 75%); border-radius: 13px; background: color-mix(in srgb, var(--accent), white 92%); }
.mini-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 19px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 4px 18px rgba(15,23,42,.025); }
.mini-metrics div { padding: 14px 18px; border-right: 1px solid var(--line); }
.mini-metrics div:last-child { border: 0; }
.mini-metrics span, .mini-metrics strong, .mini-metrics small { display: block; }
.mini-metrics span { color: var(--muted); font-size: 9px; }
.mini-metrics strong { margin: 2px 0; font-size: 18px; }
.mini-metrics small { color: #94a3b8; font-size: 8.5px; }

.workspace-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; width: max-content; }
.workspace-tabs button { min-height: 34px; padding: 0 14px; color: var(--muted); font-size: 10px; font-weight: 700; border: 0; border-radius: 7px; cursor: pointer; background: transparent; }
.workspace-tabs button.is-active { color: white; background: var(--indigo); box-shadow: 0 4px 10px rgba(79,70,229,.19); }
.tab-count { margin-left: 4px; padding: 1px 5px; border-radius: 999px; background: rgba(255,255,255,.2); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: tabIn .22s ease; }
@keyframes tabIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.table-search { position: relative; width: 270px; }
.table-search--wide { width: min(460px, 60%); }
.table-search span { position: absolute; left: 11px; top: 7px; color: #94a3b8; font-size: 17px; }
.table-search input { width: 100%; height: 35px; padding: 0 11px 0 34px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fbfcfe; }
.table-search input:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px #eef2ff; }
.toolbar-actions { display: flex; gap: 7px; }
.table-wrap, .scope-table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 13px; color: #64748b; font-size: 8.5px; font-weight: 800; letter-spacing: .03em; text-align: left; text-transform: uppercase; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { max-width: 245px; padding: 12px 13px; color: #334155; font-size: 9.5px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcff; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.row-action { padding: 4px 7px; color: #94a3b8; border: 0; border-radius: 5px; cursor: pointer; background: transparent; }
.row-action:hover { color: var(--indigo); background: var(--indigo-soft); }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; color: #94a3b8; font-size: 9px; border-top: 1px solid var(--line); }
.table-footer strong { color: #64748b; font-size: 8px; }
.pagination { display: flex; gap: 3px; }
.pagination button { display: grid; place-items: center; min-width: 25px; height: 25px; color: #64748b; font-size: 9px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: white; }
.pagination button.is-active { color: white; border-color: var(--indigo); background: var(--indigo); }

.entry-form { overflow: hidden; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; padding: 23px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field > label:first-child, .report-filter-grid label > span { display: block; margin-bottom: 6px; color: #334155; font-size: 9.5px; font-weight: 700; }
.required { margin-left: 3px; color: #ef4444; }
.optional { margin-left: 6px; color: #94a3b8; font-size: 7px; font-weight: 500; }
.form-field input:not([type=file]), .form-field select, .form-field textarea, .report-filter-grid input, .report-filter-grid select, .compact-select { width: 100%; min-height: 40px; padding: 9px 11px; color: #273449; border: 1px solid #dbe2ec; border-radius: 8px; outline: 0; background: white; transition: .15s ease; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .report-filter-grid input:focus, .report-filter-grid select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px #eef2ff; }
.form-field input[readonly], .form-field textarea[readonly], .form-field select:disabled { color: #64748b; background: #f8fafc; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 9px; color: #64748b; }
.input-prefix input { padding-left: 29px !important; }
.file-drop { display: flex !important; align-items: center; gap: 10px; min-height: 58px; margin: 0 !important; padding: 9px 12px; border: 1px dashed #cbd5e1; border-radius: 9px; cursor: pointer; background: #fbfcfe; }
.file-drop:hover { border-color: #818cf8; background: var(--indigo-soft); }
.file-drop__icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--indigo); font-size: 18px; border-radius: 8px; background: white; box-shadow: 0 2px 5px rgba(15,23,42,.08); }
.file-drop strong, .file-drop small { display: block; }
.file-drop strong { color: var(--indigo); font-size: 9px; }
.file-drop small { margin-top: 1px; color: #94a3b8; font-size: 8px; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }
.form-footer > div { display: flex; gap: 8px; }

.workflow-panel { padding-bottom: 23px; }
.workflow-steps { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 25px 22px 32px; border-bottom: 1px solid var(--line); }
.workflow-step { display: flex; align-items: center; gap: 9px; min-width: 145px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.workflow-step > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; color: #64748b; font-size: 9px; font-weight: 800; border-radius: 50%; background: #e9eef5; }
.workflow-step strong, .workflow-step small { display: block; }
.workflow-step strong { font-size: 9.5px; }
.workflow-step small { color: #94a3b8; font-size: 7.5px; }
.workflow-step.is-current { border-color: #a5b4fc; background: var(--indigo-soft); }
.workflow-step.is-current > span { color: white; background: var(--indigo); }
.workflow-arrow { color: #94a3b8; }
.timeline { position: relative; max-width: 720px; margin: 25px 34px 0; padding-left: 27px; }
.timeline::before { content: ""; position: absolute; top: 4px; bottom: 10px; left: 7px; width: 1px; background: #dbe2ec; }
.timeline > div { position: relative; margin-bottom: 22px; }
.timeline-dot { position: absolute; left: -26px; top: 2px; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 1px #a5b4fc; }
.timeline strong, .timeline small { display: block; }
.timeline strong { font-size: 10px; }
.timeline small { color: #94a3b8; font-size: 8px; }
.timeline p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.timeline .is-muted { opacity: .5; }
.workflow-note { margin: 0 22px; padding: 13px 15px; color: #64748b; font-size: 9.5px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }

.report-highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.report-highlight { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.report-highlight > span { display: grid; place-items: center; width: 37px; height: 37px; color: var(--indigo); font-weight: 800; border-radius: 9px; background: var(--indigo-soft); }
.report-highlight strong, .report-highlight small { display: block; }
.report-highlight strong { font-size: 17px; }
.report-highlight small { color: var(--muted); font-size: 9px; }
.report-catalog { overflow: hidden; }
.compact-select { width: 210px; min-height: 35px; padding-top: 5px; padding-bottom: 5px; font-size: 10px; }
.report-catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 18px; }
.report-card { display: flex; min-height: 205px; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: white; transition: .18s ease; }
.report-card:hover { border-color: color-mix(in srgb, var(--accent), white 55%); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(15,23,42,.07); }
.report-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.report-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent), white 91%); }
.report-card__module { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-card h3 { margin: 5px 0; font-size: 13px; }
.report-card p { margin: 0 0 15px; color: var(--muted); font-size: 9.5px; }
.report-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 11px; color: #94a3b8; font-size: 8.5px; border-top: 1px solid #f1f5f9; }
.report-card__footer span:last-child { color: var(--accent); font-weight: 700; }
.empty-filter { padding: 45px; color: var(--muted); text-align: center; }

.report-filters { margin-bottom: 15px; padding: 15px 18px; }
.report-filter-grid { display: flex; align-items: flex-end; gap: 11px; }
.report-filter-grid label { flex: 1; }
.report-filter-grid input, .report-filter-grid select { min-height: 37px; padding: 7px 9px; font-size: 9.5px; }
.report-filter-grid .button { min-width: 105px; min-height: 37px; }
.report-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.report-summary-grid article { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.report-summary-grid span, .report-summary-grid strong, .report-summary-grid small { display: block; }
.report-summary-grid span { color: var(--muted); font-size: 8.5px; }
.report-summary-grid strong { margin: 2px 0; font-size: 17px; }
.report-summary-grid small { color: #94a3b8; font-size: 8px; }
.report-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 15px; margin-bottom: 15px; }
.report-chart-panel, .insight-panel { min-height: 289px; }
.horizontal-chart { padding: 7px 23px 20px; }
.horizontal-chart > div { display: grid; grid-template-columns: 33px 1fr 28px; align-items: center; gap: 9px; margin: 11px 0; color: #64748b; font-size: 8.5px; }
.horizontal-chart > div > div { height: 9px; overflow: hidden; border-radius: 999px; background: #f1f5f9; }
.horizontal-chart i { display: block; height: 100%; border-radius: inherit; }
.horizontal-chart strong { color: #475569; font-size: 8.5px; }
.insight { display: flex; gap: 10px; margin: 0 18px; padding: 12px 0; border-bottom: 1px solid #eef2f6; }
.insight:last-child { border: 0; }
.insight__icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; color: #047857; font-size: 11px; font-weight: 800; border-radius: 8px; background: #ecfdf5; }
.insight__icon--amber { color: #b45309; background: #fffbeb; }
.insight__icon--blue { color: #1d4ed8; background: #eff6ff; }
.insight strong { font-size: 9.5px; }
.insight p { margin: 2px 0 0; color: var(--muted); font-size: 8.5px; }
.report-table-panel { overflow: hidden; }

.scope-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.scope-summary div { padding: 17px; text-align: center; border-right: 1px solid var(--line); }
.scope-summary div:last-child { border: 0; }
.scope-summary strong, .scope-summary span { display: block; }
.scope-summary strong { font-size: 22px; }
.scope-summary span { color: var(--muted); font-size: 9px; }
.scope-matrix { display: flex; flex-direction: column; gap: 10px; }
.scope-module { overflow: hidden; }
.scope-module summary { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 13px 18px; cursor: pointer; list-style: none; }
.scope-module summary::-webkit-details-marker { display: none; }
.scope-module[open] summary { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent), white 97%); }
.scope-module__number { display: grid; place-items: center; width: 38px; height: 38px; color: var(--accent); font-size: 10px; font-weight: 800; border-radius: 10px; background: color-mix(in srgb, var(--accent), white 90%); }
.scope-module summary > span:nth-child(2) { flex: 1; }
.scope-module summary strong, .scope-module summary small { display: block; }
.scope-module summary strong { font-size: 13px; }
.scope-module summary small { color: var(--muted); font-size: 8.5px; }
.summary-chevron { color: #94a3b8; transition: .18s ease; }
.scope-module[open] .summary-chevron { transform: rotate(180deg); }
.scope-module__body > .scope-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 18px; }
.scope-table-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope-table td:first-child { min-width: 190px; }
.scope-table td:nth-child(2) { min-width: 360px; color: #64748b; }
.scope-table td:nth-child(3) { min-width: 180px; }
.scope-table strong, .scope-table small { display: block; }
.scope-table small { margin-top: 2px; color: #94a3b8; font-size: 8px; }
.scope-report-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 13px 18px 17px; color: #64748b; font-size: 8.5px; }
.scope-report-row a { padding: 4px 8px; color: var(--indigo-dark); border: 1px solid #dfe4ff; border-radius: 6px; background: var(--indigo-soft); }

.navigation-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.guide-card { position: relative; padding: 24px; overflow: hidden; }
.guide-card h2 { margin: 6px 0 8px; font-size: 18px; letter-spacing: -.02em; }
.guide-card p { margin: 0; color: var(--muted); font-size: 11px; }
.guide-card ul { margin: 17px 0 0; padding-left: 18px; color: #475569; font-size: 10px; }
.guide-card li { margin: 8px 0; }
.guide-number { position: absolute; top: 18px; right: 20px; color: #e0e7ff; font-size: 42px; font-weight: 900; line-height: 1; }
.guide-card--accent { color: white; border-color: #4338ca; background: linear-gradient(135deg, #312e81, #4f46e5); }
.guide-card--accent .eyebrow { color: #c7d2fe; }
.guide-card--accent h2 { color: white; }
.guide-card blockquote { margin: 15px 0 0; color: rgba(255,255,255,.84); font-size: 11px; line-height: 1.75; }
.guide-flow-panel { margin-bottom: 16px; }
.guide-flow { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 27px 24px 30px; }
.guide-flow > div { display: flex; align-items: center; gap: 10px; min-width: 170px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.guide-flow > div > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; color: white; font-size: 10px; font-weight: 800; border-radius: 8px; background: var(--indigo); }
.guide-flow strong, .guide-flow small { display: block; }
.guide-flow strong { font-size: 9.5px; }
.guide-flow small { color: var(--muted); font-size: 8px; }
.guide-flow b { color: #94a3b8; font-weight: 500; }
.scope-boundary { padding: 17px 20px; border-left: 3px solid var(--indigo); }
.scope-boundary strong { font-size: 10px; }
.scope-boundary p { margin: 3px 0 0; color: var(--muted); font-size: 9.5px; }

.empty-state { max-width: 640px; margin: 80px auto; padding: 50px; text-align: center; }
.empty-state > span { color: var(--indigo); font-size: 44px; font-weight: 900; }
.empty-state h1 { margin: 0; }
.empty-state p { color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 350px; padding: 12px 16px; color: white; font-size: 10.5px; font-weight: 600; border-radius: 9px; background: #111827; box-shadow: 0 14px 36px rgba(15,23,42,.28); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
    :root { --sidebar-width: 238px; }
    .module-card-grid, .topic-grid, .report-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    .sidebar { transform: translateX(-100%); transition: .22s ease; }
    .sidebar.is-open { transform: none; box-shadow: 10px 0 40px rgba(15,23,42,.35); }
    .main-area { width: 100%; margin-left: 0; }
    .mobile-menu { display: grid; }
    .topbar { gap: 12px; }
    .topbar-title { flex: 1; }
    .user-menu > span:nth-child(2), .user-menu > span:last-child { display: none; }
    .dashboard-grid, .split-section, .report-layout { grid-template-columns: 1fr; }
    .navigation-guide-grid { grid-template-columns: 1fr; }
    .dashboard-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid, .report-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .content { padding: 22px 14px 44px; }
    .topbar { height: 64px; padding: 0 14px; }
    .global-search kbd, .topbar-actions .icon-button, .user-menu { display: none; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .page-actions { width: 100%; }
    .page-actions .button { flex: 1; }
    .metric-grid, .mini-metrics, .report-highlight-grid, .report-summary-grid, .scope-summary, .dashboard-side, .topic-grid, .report-catalog__grid, .module-card-grid, .scope-module__body > .scope-groups { grid-template-columns: 1fr; }
    .metric-card { min-height: 98px; }
    .mini-metrics div, .scope-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
    .module-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
    .module-hero > .button { width: 100%; }
    .module-hero__number { width: 54px; height: 54px; flex-basis: 54px; }
    .module-hero h1 { font-size: 25px; }
    .form-grid { grid-template-columns: 1fr; padding: 18px; }
    .form-field--wide { grid-column: auto; }
    .table-toolbar { align-items: stretch; flex-direction: column; }
    .table-search, .table-search--wide, .compact-select { width: 100%; max-width: none; }
    .workflow-steps { align-items: stretch; flex-direction: column; }
    .workflow-arrow { text-align: center; transform: rotate(90deg); }
    .workflow-step { width: 100%; }
    .report-filter-grid { align-items: stretch; flex-direction: column; }
    .scope-module summary .status { display: none; }
    .title-with-icon { align-items: flex-start; }
    .guide-flow { align-items: stretch; flex-direction: column; }
    .guide-flow > div { width: 100%; }
    .guide-flow > b { text-align: center; transform: rotate(90deg); }
    .workspace-tabs { width: 100%; overflow-x: auto; }
    .workspace-tabs button { flex: 1; white-space: nowrap; }
}

@media print {
    @page { size: A4 landscape; margin: 11mm; }
    body { background: white; font-size: 10px; }
    .sidebar, .topbar, .breadcrumbs, .no-print, .page-actions, .workspace-tabs, .toast { display: none !important; }
    .main-area { width: 100%; margin: 0; }
    .content { max-width: none; padding: 0; }
    .panel { box-shadow: none; break-inside: avoid; }
    .page-head { margin-bottom: 14px; }
    .page-head h1 { font-size: 24px; }
    .report-layout { grid-template-columns: 1.3fr .7fr; }
    .report-table-panel { overflow: visible; }
    .data-table { font-size: 8px; }
    .data-table th, .data-table td { padding: 7px; }
    .scope-module { break-inside: avoid; }
    .scope-module summary { min-height: 50px; }
}

/* Human-centred presentation refinements */
.nav-link { min-height: 42px; font-size: 13px; }
.subnav a { padding-top: 7px; padding-bottom: 7px; font-size: 11.5px; }
.topbar-title strong { font-size: 13px; }
.topbar-title small { font-size: 10.5px; }
.user-menu strong { font-size: 12px; }
.user-menu small { font-size: 10px; }
.page-head p, .section-heading p { font-size: 14px; }
.eyebrow { font-size: 10px; }
.panel-head h2, .section-heading h2 { font-size: 18px; }
.panel-head p { font-size: 11px; }
.metric-card > div:nth-child(2) > span { font-size: 11px; }
.metric-card small { font-size: 10px; }
.module-card { min-height: 68px; padding: 12px; }
.module-card strong { font-size: 11.5px; }
.module-card small { display: -webkit-box; margin-top: 2px; overflow: hidden; font-size: 9px; line-height: 1.35; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.approval-row strong { font-size: 11px; }
.approval-row small { font-size: 9.5px; }
.topic-card p { font-size: 11px; line-height: 1.55; }
.topic-card__action, .text-link { font-size: 10.5px; }
.data-table td { font-size: 10.5px; }
.data-table th { font-size: 9px; }
.form-field > label:first-child, .report-filter-grid label > span { font-size: 10.5px; }

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 13px 14px;
    padding: 13px;
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
}
.sidebar-footer > span:last-child { min-width: 0; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: 11px; }
.sidebar-footer small { margin-top: 1px; color: #7f8da3; font-size: 9.5px; }
.presence-dot { width: 9px; height: 9px; flex: 0 0 9px; border: 2px solid rgba(16,185,129,.18); border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.08); }

.logout-form { margin: 0; }
.logout-button { min-height: 34px; padding: 0 11px; color: #64748b; font-size: 10px; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: white; }
.logout-button:hover { color: #b91c1c; border-color: #fecaca; background: #fff7f7; }

.today-panel { overflow: hidden; }
.update-list { padding: 0 18px 13px; }
.update-list a { display: flex; align-items: center; gap: 10px; padding: 13px 2px; border-top: 1px solid #eef2f6; }
.update-list a:hover strong { color: var(--indigo); }
.update-list a > span:nth-child(2) { flex: 1; min-width: 0; }
.update-list strong, .update-list small { display: block; }
.update-list strong { font-size: 10.5px; }
.update-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.update-list b { color: #94a3b8; font-size: 15px; font-weight: 500; }
.update-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.update-dot--amber { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }
.update-dot--green { background: #10b981; box-shadow: 0 0 0 4px #d1fae5; }
.update-dot--blue { background: #3b82f6; box-shadow: 0 0 0 4px #dbeafe; }
.update-dot--violet { background: #8b5cf6; box-shadow: 0 0 0 4px #ede9fe; }

/* Login */
.login-page { min-height: 100vh; background: #eef2f7; }
.login-shell { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(500px, 1.05fr); min-height: 100vh; }
.login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 42px clamp(38px, 5vw, 78px);
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 75% 20%, rgba(129,140,248,.34), transparent 27%),
        radial-gradient(circle at 18% 82%, rgba(34,211,238,.16), transparent 30%),
        linear-gradient(145deg, #111a32 0%, #18244a 52%, #3730a3 120%);
}
.login-story::before, .login-story::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-story::before { width: 430px; height: 430px; top: -230px; right: -170px; }
.login-story::after { width: 300px; height: 300px; right: 8%; bottom: -190px; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: max-content; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 18px; }
.login-brand small { color: #aeb9cf; font-size: 10px; }
.login-story__content { position: relative; z-index: 1; max-width: 610px; margin: auto 0; padding: 70px 0; }
.login-kicker { color: #a5b4fc; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.login-story h1 { max-width: 590px; margin: 15px 0 18px; font-size: clamp(39px, 4vw, 62px); line-height: 1.05; letter-spacing: -.05em; }
.login-story__content > p { max-width: 530px; margin: 0; color: #c3ccdc; font-size: 16px; line-height: 1.75; }
.people-preview { display: flex; align-items: center; gap: 18px; width: max-content; max-width: 100%; margin-top: 45px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.065); backdrop-filter: blur(10px); }
.people-preview__avatars { display: flex; padding-left: 8px; }
.people-preview__avatars span { display: grid; place-items: center; width: 35px; height: 35px; margin-left: -8px; color: #312e81; font-size: 9px; font-weight: 800; border: 2px solid #1e2b50; border-radius: 50%; background: #e0e7ff; }
.people-preview__avatars span:nth-child(2) { color: #065f46; background: #d1fae5; }
.people-preview__avatars span:nth-child(3) { color: #92400e; background: #fef3c7; }
.people-preview__avatars span:nth-child(4) { color: #9f1239; background: #ffe4e6; }
.people-preview strong, .people-preview small { display: block; }
.people-preview strong { font-size: 12px; }
.people-preview small { margin-top: 2px; color: #aeb9cf; font-size: 9.5px; }
.login-story__footer { position: relative; z-index: 1; margin: 0; color: #7f8da8; font-size: 10px; }

.login-form-side { display: grid; place-items: center; min-height: 100vh; padding: 45px clamp(28px, 6vw, 90px); background: #f8fafc; }
.login-card { width: min(430px, 100%); }
.login-mobile-brand { display: none; }
.login-card__heading h2 { margin: 7px 0 8px; color: #111827; font-size: 31px; line-height: 1.2; letter-spacing: -.035em; }
.login-card__heading p { margin: 0; color: var(--muted); font-size: 13px; }
.login-alert { display: flex; align-items: center; gap: 9px; margin-top: 23px; padding: 12px 13px; color: #b91c1c; font-size: 11px; font-weight: 600; border: 1px solid #fecaca; border-radius: 9px; background: #fef2f2; }
.login-alert span { display: grid; place-items: center; width: 20px; height: 20px; color: white; font-size: 10px; border-radius: 50%; background: #dc2626; }
.login-form { margin-top: 30px; }
.login-form > label { display: block; margin: 17px 0 7px; color: #334155; font-size: 11px; font-weight: 700; }
.login-input { position: relative; display: flex; align-items: center; }
.login-input > span { position: absolute; left: 14px; z-index: 1; color: #94a3b8; font-size: 13px; }
.login-input input { width: 100%; height: 49px; padding: 0 70px 0 42px; color: #172033; border: 1px solid #d6dee9; border-radius: 10px; outline: 0; background: white; transition: .16s ease; }
.login-input input:focus { border-color: #818cf8; box-shadow: 0 0 0 4px #eef2ff; }
.password-toggle { position: absolute; right: 12px; padding: 5px 6px; color: var(--indigo); font-size: 10px; font-weight: 700; border: 0; cursor: pointer; background: transparent; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 49px; margin-top: 24px; color: white; font-weight: 750; border: 0; border-radius: 10px; cursor: pointer; background: linear-gradient(135deg, #4f46e5, #4338ca); box-shadow: 0 12px 25px rgba(79,70,229,.22); transition: .18s ease; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(79,70,229,.28); }
.login-submit span { font-size: 17px; }
.demo-access { display: flex; align-items: flex-start; gap: 10px; margin-top: 23px; padding: 13px; border: 1px solid #dfe4ff; border-radius: 10px; background: #f4f5ff; }
.demo-access__icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; color: white; font-size: 10px; font-weight: 800; border-radius: 50%; background: var(--indigo); }
.demo-access strong { display: block; color: #312e81; font-size: 10.5px; }
.demo-access p { margin: 2px 0 0; color: #64748b; font-size: 10px; }
.demo-access code { padding: 1px 4px; color: #312e81; font-family: inherit; font-weight: 800; border-radius: 4px; background: white; }
.login-help { margin: 20px 0 0; color: #94a3b8; font-size: 10px; text-align: center; }

@media (max-width: 980px) {
    .login-shell { grid-template-columns: minmax(360px, .8fr) minmax(440px, 1.2fr); }
    .login-story { padding: 34px; }
    .login-story h1 { font-size: 42px; }
}

@media (max-width: 760px) {
    .login-shell { display: block; background: #f8fafc; }
    .login-story { display: none; }
    .login-form-side { min-height: 100vh; padding: 35px 22px; }
    .login-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 45px; color: #172033; font-size: 15px; font-weight: 800; }
    .login-mobile-brand .brand__mark { width: 34px; height: 34px; }
    .logout-button { width: 34px; padding: 0; overflow: hidden; color: transparent; }
    .logout-button::before { content: "↪"; color: #64748b; font-size: 15px; }
}
