@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0b1220;
    --bg-soft: #10192b;
    --panel: rgba(15, 23, 42, 0.94);
    --panel-soft: rgba(18, 29, 49, 0.98);
    --line: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(148, 163, 184, 0.24);
    --text: #edf2fb;
    --muted: #93a1b5;
    --primary: #4f8cff;
    --primary-soft: rgba(79, 140, 255, 0.14);
    --gold: #f0b55a;
    --gold-soft: rgba(240, 181, 90, 0.16);
    --blue: #8bb4ff;
    --blue-soft: rgba(139, 180, 255, 0.16);
    --red: #ef7d7d;
    --red-soft: rgba(239, 125, 125, 0.16);
    --shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(79, 140, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #0b1220 0%, #0f1726 46%, #121c2c 100%);
}

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

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(100, 171, 255, 0.22);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.button.primary {
    background: linear-gradient(135deg, var(--primary), #396dcb);
    color: #f7faff;
    font-weight: 800;
    border: none;
}

.button.small {
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.button.disabled,
.button:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.55;
}

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

.table-note {
    width: 100%;
    min-height: 74px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

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

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0;
    background: rgba(9, 16, 28, 0.96);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.sidebar-inner {
    height: 100%;
    padding: 28px 20px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 171, 255, 0.32) transparent;
}

.sidebar-inner::-webkit-scrollbar {
    width: 10px;
}

.sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-inner::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(100, 171, 255, 0.28);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #edf4ff, #8fb5ff);
    color: #0b1220;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow);
}

.brand h1 {
    margin: 0;
    font-size: 20px;
}

.brand p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-item {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.notification-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.notification-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.sidebar-label {
    margin: 22px 0 10px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.sidebar-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: #d8e1ef;
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sidebar-nav a:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(79, 140, 255, 0.18);
}

.sidebar-nav a.active {
    background: rgba(79, 140, 255, 0.12);
    border-color: rgba(79, 140, 255, 0.24);
    color: #eef4ff;
}

.sidebar-nav-label {
    font-weight: 600;
}

.nav-indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    transition: width 0.18s ease, height 0.18s ease, background 0.18s ease;
}

.nav-indicator.active,
.sidebar-nav a.active .nav-indicator {
    width: 18px;
    height: 4px;
    border-radius: 999px;
    background: var(--primary);
}

.main-content {
    padding: 28px;
}

.topbar {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 18px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        linear-gradient(135deg, rgba(14, 22, 38, 0.98) 0%, rgba(15, 23, 42, 0.98) 62%, rgba(11, 19, 33, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.2);
}

.topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(100, 171, 255, 0.12), rgba(31, 199, 164, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.topbar::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -100px;
    left: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.12), transparent 72%);
    pointer-events: none;
}

.topbar-main,
.topbar-actions {
    position: relative;
    z-index: 1;
}

.topbar-main {
    min-width: 0;
}

.topbar-utility {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 12px;
}

.topbar-kicker-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e7eefc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-status-signal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dbe5f5;
    font-size: 12px;
    font-weight: 700;
}

.topbar-status-muted {
    color: var(--muted);
}

.topbar-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #79abff, #4f8cff);
    box-shadow: 0 0 0 5px rgba(79, 140, 255, 0.12);
}

.topbar-copy {
    min-width: 0;
}

.topbar-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.topbar-title-row strong {
    margin: 0;
    display: block;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.topbar-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 680px;
    font-size: 13px;
    line-height: 1.5;
}

.topbar-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #dbe9e5;
    font-size: 12px;
    font-weight: 700;
}

.topbar-chip-primary {
    background: linear-gradient(135deg, rgba(100, 171, 255, 0.2), rgba(55, 111, 202, 0.24));
    color: #dbe8ff;
    border-color: rgba(100, 171, 255, 0.28);
}

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

.topbar-dropdown {
    position: relative;
}

.topbar-dropdown summary {
    list-style: none;
}

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

.topbar-control {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 248px;
    padding: 12px 15px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.topbar-control:hover {
    transform: translateY(-1px);
    border-color: rgba(100, 171, 255, 0.24);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.topbar-dropdown[open] .topbar-control {
    background: linear-gradient(180deg, rgba(100, 171, 255, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(100, 171, 255, 0.24);
}

.topbar-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(100, 171, 255, 0.18), rgba(79, 140, 255, 0.08));
    color: #dbe8ff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-icon svg {
    width: 18px;
    height: 18px;
}

.topbar-control-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.topbar-control-label {
    font-size: 13px;
    font-weight: 800;
}

.topbar-control-meta {
    color: var(--muted);
    font-size: 12px;
}

.topbar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #3b6fce);
    color: #f6f9ff;
    font-size: 12px;
    font-weight: 800;
}

.topbar-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(420px, calc(100vw - 56px));
    padding: 16px;
    border-radius: 22px;
    background: rgba(14, 22, 38, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(20px);
}

.topbar-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.topbar-empty-state {
    margin-top: 0;
    padding: 12px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    min-width: 0;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #edf4ff, #8fb5ff);
    color: #0b1220;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.profile-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.profile-copy strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.profile-copy small {
    color: #c5d1e4;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.topbar-logout {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    color: #edf5f1;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 24px 26px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(17, 27, 46, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-panel::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 140px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), rgba(79, 140, 255, 0));
}

.hero-panel h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-panel p {
    margin: 12px 0 0;
    color: var(--muted);
    max-width: 840px;
}

.hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.grid {
    display: grid;
    gap: 18px;
}

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

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(16, 26, 44, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.metric-card::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 76px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), rgba(240, 181, 90, 0));
}

.metric-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
}

.metric-meta {
    color: #d6e0ef;
    font-size: 13px;
}

.two-col {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

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

.card {
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(16, 26, 44, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

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

.card-title p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

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

.section-toolbar p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    max-width: 760px;
}

.chart-wrap {
    height: 300px;
}

.smart-box {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(31, 199, 164, 0.22);
    background: linear-gradient(135deg, rgba(31, 199, 164, 0.12), rgba(100, 171, 255, 0.08));
}

.smart-box strong {
    display: block;
    margin-bottom: 10px;
}

.smart-box ul {
    margin: 0;
    padding-left: 18px;
}

.smart-box li {
    margin-bottom: 8px;
}

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

.smart-prompt-grid,
.branch-prompt-grid {
    display: grid;
    gap: 14px;
}

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

.branch-prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.smart-prompt-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(31, 199, 164, 0.16);
    box-shadow: var(--shadow);
}

.smart-prompt-card.positive {
    background: linear-gradient(135deg, rgba(31, 199, 164, 0.2), rgba(18, 94, 74, 0.86));
}

.smart-prompt-card.behind {
    background: linear-gradient(135deg, rgba(242, 118, 118, 0.22), rgba(96, 25, 32, 0.9));
    border-color: rgba(242, 118, 118, 0.24);
}

.smart-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.smart-prompt-kicker {
    color: rgba(237, 245, 241, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.smart-prompt-card h4 {
    margin: 8px 0 0;
    font-size: 18px;
}

.smart-prompt-card p {
    margin: 12px 0 0;
    color: #edf5f1;
    line-height: 1.6;
    font-size: 14px;
}

.smart-prompt-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.smart-prompt-pill.positive {
    background: rgba(9, 37, 28, 0.42);
    color: #bff8ea;
}

.smart-prompt-pill.behind {
    background: rgba(72, 18, 25, 0.52);
    color: #ffd2d2;
}

.branch-prompt-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.branch-prompt-card h4 {
    margin: 0;
    font-size: 18px;
}

.branch-prompt-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.summary-strip,
.cue-grid,
.mini-grid,
.packet-grid,
.reference-grid,
.form-grid {
    display: grid;
    gap: 14px;
}

.summary-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 16px;
}

.summary-chip,
.cue-card,
.mini-card,
.packet-card,
.reference-item {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-chip .label,
.mini-card .label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.summary-chip .value,
.mini-card .value {
    font-size: 20px;
    font-weight: 800;
}

.cue-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.cue-card h4,
.packet-card h4 {
    margin: 0;
}

.cue-card p,
.packet-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.cue-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.cue-stat {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.cue-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

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

.target-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(100, 171, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.target-month-heading {
    flex: 1;
    text-align: center;
}

.target-month-heading strong {
    display: block;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.target-month-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.target-month-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.target-month-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.target-month-card:hover {
    transform: translateY(-2px);
    border-color: rgba(100, 171, 255, 0.22);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.target-month-card.is-selected {
    border-color: rgba(31, 199, 164, 0.45);
    background: linear-gradient(180deg, rgba(9, 24, 32, 0.98), rgba(10, 32, 41, 0.96));
    box-shadow: inset 0 0 0 1px rgba(31, 199, 164, 0.18);
}

.target-month-card.is-current:not(.is-selected) {
    border-color: rgba(100, 171, 255, 0.22);
}

.target-submenu {
    margin-bottom: 18px;
}

.target-submenu .tab-button {
    text-decoration: none;
}

.target-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.target-section {
    scroll-margin-top: 24px;
}

.target-branch-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.target-branch-card {
    padding: 18px;
}

.target-branch-card h4 {
    margin: 0;
    font-size: 18px;
}

.target-branch-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.target-branch-meta,
.target-compact-stats {
    display: grid;
    gap: 10px;
}

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

.target-compact-stats,
.target-live-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.target-branch-meta {
    margin: 14px 0 12px;
}

.target-branch-stat,
.target-compact-stat {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.target-branch-stat span,
.target-compact-stat span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.target-branch-stat strong,
.target-compact-stat strong {
    display: block;
    font-size: 15px;
}

.target-branch-stat small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.target-branch-form .button-row {
    margin-top: 14px;
}

.target-branch-inputs {
    gap: 12px;
}

.target-live-preview {
    margin-top: 14px;
}

.chart-summary {
    margin-top: 16px;
}

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

.reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.packet-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

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

.table-shell {
    margin-top: 16px;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.table-shell table {
    min-width: 780px;
}

.financial-table-shell table {
    min-width: 100%;
}

.table-shell th:first-child,
.table-shell td:first-child {
    padding-left: 16px;
}

.table-shell th:last-child,
.table-shell td:last-child {
    padding-right: 16px;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.financial-table td:last-child,
.financial-table th:last-child {
    text-align: right;
}

.financial-section-row th {
    background: rgba(255, 255, 255, 0.04);
    color: #f4f7f6;
}

.financial-total-row td,
.financial-net-row td {
    font-weight: 700;
}

.financial-net-row td {
    color: #92ffe6;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status.pending {
    background: var(--gold-soft);
    color: #ffd88e;
}

.status.approved {
    background: var(--primary-soft);
    color: #92ffe6;
}

.status.disbursed {
    background: var(--blue-soft);
    color: #b0d8ff;
}

.status.denied {
    background: var(--red-soft);
    color: #ffc4c4;
}

.status.docs {
    background: rgba(136, 151, 255, 0.14);
    color: #d8ddff;
}

.status.neutral {
    background: rgba(255, 255, 255, 0.06);
    color: #dbe8e2;
}

.footer-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

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

.filter-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 10px;
}

.filter-grid {
    display: grid;
    gap: 14px;
}

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

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

.toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.field {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.field > span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.field-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    padding: 0;
}

.field textarea {
    min-height: 76px;
    resize: vertical;
}

.field-wide {
    grid-column: 1 / -1;
}

.field.readonly strong {
    font-size: 20px;
}

.branch-directory-copy {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.branch-directory-copy strong {
    font-size: 19px;
    letter-spacing: -0.03em;
}

.branch-directory-copy span:not(.branch-list-kicker) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.branch-page-actions {
    margin-top: 0;
}

.branch-directory-toolbar {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    margin-top: 18px;
}

.branch-search-card,
.branch-search-summary {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(12, 20, 34, 0.98), rgba(15, 24, 40, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
}

.branch-search-card::after,
.branch-search-summary::after,
.branch-list-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 171, 255, 0.14), transparent 72%);
    pointer-events: none;
}

.branch-search-card::after {
    right: -40px;
    bottom: -70px;
}

.branch-search-summary::after {
    top: -60px;
    right: -40px;
    background: radial-gradient(circle, rgba(31, 199, 164, 0.16), transparent 70%);
}

.branch-list-card::after {
    right: -55px;
    bottom: -90px;
}

.branch-search-kicker,
.branch-list-kicker {
    color: #9ab8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.branch-search-card strong,
.branch-search-summary strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 21px;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.branch-search-card p,
.branch-search-summary p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.branch-search-input-row {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.branch-search-input-row input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 12, 24, 0.76);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.branch-search-input-row input:focus {
    border-color: rgba(100, 171, 255, 0.32);
    box-shadow: 0 0 0 4px rgba(100, 171, 255, 0.12);
    background: rgba(9, 15, 28, 0.9);
}

.branch-search-pill {
    width: fit-content;
}

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

.branch-list-card,
.branch-workspace-panel,
.branch-create-role-section {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.branch-list-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(10, 18, 31, 0.98), rgba(15, 24, 40, 0.95));
    border-color: rgba(122, 168, 255, 0.14);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.18);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.branch-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 168, 255, 0.22);
    box-shadow: 0 24px 42px rgba(2, 6, 23, 0.24);
}

.branch-list-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(100, 171, 255, 0.12), rgba(31, 199, 164, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.branch-list-card-header,
.branch-create-staff-header,
.branch-team-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.branch-status-pill {
    position: relative;
    z-index: 1;
}

.branch-status-pill-active {
    background: rgba(31, 199, 164, 0.16);
    color: #b9fff0;
    border-color: rgba(31, 199, 164, 0.22);
}

.branch-status-pill-inactive {
    background: rgba(242, 118, 118, 0.12);
    color: #ffcaca;
    border-color: rgba(242, 118, 118, 0.18);
}

.branch-staff-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.branch-staff-metric {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.branch-staff-metric span {
    color: #a9c4ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.branch-staff-metric strong {
    font-size: 26px;
    letter-spacing: -0.05em;
    line-height: 1;
}

.branch-staff-metric small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.branch-list-capital-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.branch-list-capital-grid .branch-capital-item {
    min-height: 82px;
    flex-direction: column;
    align-items: flex-start;
}

.branch-list-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.branch-list-staff-total {
    display: grid;
    gap: 4px;
}

.branch-list-staff-total span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.branch-list-staff-total strong {
    font-size: 22px;
    letter-spacing: -0.04em;
}

.branch-list-empty {
    margin-top: 18px;
}

.branch-create-role-section {
    margin-top: 18px;
}

.branch-create-role-list,
.branch-team-list {
    display: grid;
    gap: 12px;
}

.branch-create-staff-entry,
.branch-team-card {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.branch-team-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.branch-capital-list {
    display: grid;
    gap: 10px;
    min-width: 210px;
}

.branch-capital-list-compact {
    min-width: 0;
}

.branch-capital-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.branch-capital-item span {
    color: var(--muted);
    font-size: 12px;
}

.branch-capital-item strong {
    font-size: 13px;
}

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

.branch-capital-grid .field {
    padding: 10px 12px;
}

.checkbox-field {
    display: grid;
    gap: 10px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.checkbox-row span {
    color: var(--text);
    line-height: 1.4;
}

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

body.dialog-open {
    overflow: hidden;
}

.loan-form-section {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.loan-form-section-header h4 {
    margin: 0;
    font-size: 16px;
    color: #f3f7ff;
}

.loan-form-section-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.loan-form-section-grid {
    margin-top: 14px;
}

.loan-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(7, 12, 24, 0.72);
    backdrop-filter: blur(6px);
}

.loan-detail-overlay[hidden] {
    display: none !important;
}

.loan-detail-dialog {
    width: min(1080px, 100%);
    max-height: min(86vh, 980px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(79, 140, 255, 0.16);
    background: linear-gradient(180deg, rgba(17, 27, 46, 0.99) 0%, rgba(15, 23, 42, 0.99) 100%);
    box-shadow: var(--shadow);
}

.loan-detail-toolbar {
    margin-bottom: 18px;
}

.loan-detail-content {
    min-width: 0;
}

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

.loan-detail-section-header {
    align-items: flex-start;
}

.loan-detail-section-span {
    grid-column: 1 / -1;
}

.loan-detail-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loan-detail-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.loan-detail-item-label {
    color: var(--muted);
    font-size: 12px;
}

.loan-detail-item-value {
    margin-top: 6px;
    color: #f4f8ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
}

.loan-ai-card {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(79, 140, 255, 0.22);
    background: linear-gradient(180deg, rgba(21, 34, 61, 0.98) 0%, rgba(18, 28, 49, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.loan-ai-card-header,
.loan-queue-ai-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.loan-ai-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #72d4ff;
}

.loan-ai-card-amount {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 700;
    color: #dce7ff;
}

.loan-ai-card-amount span {
    font-size: 30px;
    color: #34f5a8;
}

.loan-ai-card-copy {
    margin: 14px 0 0;
    color: #d8dfef;
    line-height: 1.6;
}

.loan-ai-card-meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.loan-queue-ai {
    display: grid;
    gap: 6px;
    min-width: 220px;
}

.loan-queue-ai strong {
    font-size: 15px;
    color: #dff6ff;
}

.tab-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tab-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 16px;
    font: inherit;
    cursor: pointer;
    transition: 0.2s ease;
}

.tab-button:hover,
.tab-button.active {
    background: var(--primary-soft);
    border-color: rgba(31, 199, 164, 0.24);
    color: #9fffe9;
}

.tab-panel {
    display: none;
}

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

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

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

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

.row-actions form {
    margin: 0;
}

.section-gap {
    margin-bottom: 18px;
}

.manager-form-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(79, 140, 255, 0.18);
    background: linear-gradient(180deg, rgba(17, 27, 46, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.manager-form-panel[hidden] {
    display: none !important;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 28px;
}

.login-layout {
    width: min(1320px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 440px);
    gap: 24px;
    align-items: start;
}

.login-hero,
.login-card {
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(17, 27, 46, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.login-hero {
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 22px;
}

.login-hero::after {
    content: '';
    position: absolute;
    inset: -100px -60px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.16), transparent 68%);
}

.login-badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.12);
    border: 1px solid rgba(79, 140, 255, 0.22);
    color: #dde9ff;
    font-size: 12px;
    font-weight: 700;
}

.login-badge-muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.login-brand-block {
    display: grid;
    gap: 22px;
}

.login-intro h2 {
    margin: 0;
    max-width: 760px;
    font-size: 46px;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.login-intro p {
    margin: 14px 0 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

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

.login-stat-card,
.login-overview-card {
    position: relative;
    z-index: 1;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.login-stat-card {
    padding: 18px;
}

.login-stat-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-stat-card strong {
    display: block;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.login-stat-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.login-overview-card {
    padding: 22px;
}

.login-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.login-section-heading strong {
    display: block;
    font-size: 18px;
}

.login-section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.login-role-list,
.access-directory {
    display: grid;
    gap: 12px;
}

.login-role-row,
.access-row {
    display: grid;
    gap: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-role-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 16px 18px;
}

.login-role-marker {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(79, 140, 255, 0.12);
    border: 1px solid rgba(79, 140, 255, 0.22);
    color: #dde9ff;
    font-size: 13px;
    font-weight: 700;
}

.login-role-copy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.login-role-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.access-row {
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto;
    align-items: center;
    padding: 16px 18px;
}

.access-role {
    display: grid;
    gap: 5px;
}

.access-role strong {
    font-size: 14px;
}

.access-role span {
    color: var(--muted);
    font-size: 12px;
}

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

.access-copy {
    display: grid;
    gap: 6px;
}

.access-copy span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.access-copy strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.login-card {
    padding: 30px;
    position: sticky;
    top: 32px;
}

.login-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.login-card h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.login-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.login-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(240, 181, 90, 0.22);
    background: rgba(240, 181, 90, 0.12);
    color: #ffe0ab;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.login-form {
    display: grid;
    gap: 14px;
}

.input-group {
    display: grid;
    gap: 8px;
}

.input-group label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-group input:focus {
    border-color: rgba(79, 140, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

.input-help {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
}

.login-help-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.login-help-card strong {
    display: block;
    margin-bottom: 10px;
}

.login-help-card ul {
    margin: 0;
    padding-left: 18px;
}

.login-help-card li {
    margin-bottom: 8px;
    color: var(--muted);
    line-height: 1.55;
}

.login-footnote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.login-footnote-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), #d6983d);
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--red-soft);
    color: #ffc8c8;
    border: 1px solid rgba(242, 118, 118, 0.2);
    font-size: 13px;
    margin-bottom: 18px;
}

.alert-success {
    background: var(--primary-soft);
    color: #dbe8ff;
    border-color: rgba(79, 140, 255, 0.22);
}

.alert-warning {
    background: rgba(214, 168, 76, 0.14);
    color: #ffe39f;
    border-color: rgba(214, 168, 76, 0.3);
}

@media (max-width: 1200px) {
    .metrics,
    .cue-grid,
    .three-col,
    .summary-strip,
    .mini-grid,
    .target-month-grid,
    .target-branch-meta,
    .target-compact-stats,
    .branch-list-grid,
    .smart-prompt-grid,
    .branch-prompt-grid,
    .login-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .branch-directory-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .app-shell,
    .login-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .sidebar-inner {
        height: auto;
        overflow: visible;
    }

    .topbar,
    .hero,
    .two-col,
    .metrics,
    .cue-grid,
    .three-col,
    .filter-grid,
    .summary-strip,
    .mini-grid,
    .target-month-grid,
    .target-branch-meta,
    .target-compact-stats,
    .branch-list-grid,
    .smart-prompt-grid,
    .branch-prompt-grid,
    .packet-grid,
    .reference-grid,
    .form-grid,
    .login-highlight-grid {
        grid-template-columns: 1fr;
    }

    .loan-detail-grid,
    .loan-detail-list {
        grid-template-columns: 1fr;
    }

    .branch-staff-metrics,
    .branch-list-capital-grid,
    .branch-search-input-row {
        grid-template-columns: 1fr;
    }

    .section-toolbar {
        flex-direction: column;
    }

    .target-month-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .target-month-heading {
        text-align: left;
    }

    .topbar-actions {
        justify-content: flex-start;
    }

    .topbar-title-row {
        align-items: flex-start;
    }

    .topbar-chip-row {
        width: 100%;
    }

    .branch-list-card-footer {
        align-items: flex-start;
    }

    .topbar-control {
        min-width: 0;
        width: 100%;
    }

    .topbar-menu {
        left: 0;
        right: auto;
        width: min(420px, calc(100vw - 72px));
    }

    .profile-badge {
        width: 100%;
    }

    .topbar-logout {
        width: 100%;
    }

    .login-card {
        position: static;
    }

    .login-card-header,
    .login-section-heading,
    .access-row {
        grid-template-columns: 1fr;
    }

    .login-card-header,
    .login-section-heading {
        display: grid;
    }

    .access-credentials {
        grid-template-columns: 1fr;
    }

    .branch-capital-grid {
        grid-template-columns: 1fr;
    }

    .login-intro h2 {
        font-size: 38px;
    }
}

@media (max-width: 720px) {
    .login-shell,
    .main-content {
        padding: 20px;
    }

    .login-hero,
    .login-card,
    .topbar,
    .hero-panel,
    .metric-card,
    .card,
    .loan-detail-dialog {
        border-radius: 22px;
    }

    .login-hero,
    .login-card {
        padding: 24px;
    }

    .login-intro h2 {
        font-size: 32px;
    }

    .access-row {
        padding: 14px;
    }
}
