:root {
    --navy: #102a43;
    --navy-2: #173f5f;
    --blue: #1f6feb;
    --teal: #0f8b8d;
    --green: #16865c;
    --red: #c0392b;
    --amber: #b7791f;
    --ink: #243b53;
    --muted: #627d98;
    --line: #d9e2ec;
    --surface: #ffffff;
    --canvas: #f3f7fb;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; overflow-y: auto; color: #fff; background: linear-gradient(180deg, var(--navy), #0b1f33); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; padding: 0 8px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #39b7b9, #1f6feb); font-weight: 800; }
.brand small { display: block; color: #b9d2e7; margin-top: 2px; }
.nav-label { margin: 20px 10px 7px; color: #83a7c3; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { display: flex; gap: 11px; align-items: center; padding: 11px 12px; margin: 3px 0; border-radius: 9px; color: #d9e7f2; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.11); color: #fff; }
.nav-icon { width: 22px; text-align: center; }
.nav-sub { display: block; margin: -1px 0 4px 45px; color: #91b4ce; font-size: 11px; line-height: 1.45; }
.sidebar-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-user { font-size: 13px; color: #b9d2e7; margin: 0 8px 10px; }
.logout { width: 100%; border: 0; border-radius: 8px; padding: 9px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; text-align: left; }
.content { min-width: 0; }
.topbar { min-height: 74px; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 21px; color: var(--navy); }
.topbar p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.main { padding: 28px 32px 50px; max-width: 1500px; margin: auto; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 650; font-size: 14px; }
.btn-primary { color: #fff; background: var(--blue); }
.btn-primary:hover { background: #165dcc; }
.btn-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.btn-danger { color: #fff; background: var(--red); }
.btn-sm { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-card, .card { background: var(--surface); border: 1px solid #e3ebf2; border-radius: 13px; box-shadow: 0 4px 18px rgba(16,42,67,.05); }
.stat-card { padding: 20px; }
.stat-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.stat-value { margin-top: 12px; font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-note { margin-top: 6px; color: var(--muted); font-size: 12px; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e8f1ff; color: var(--blue); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 20px; margin-top: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #edf2f7; }
.card-header h2 { margin: 0; font-size: 16px; color: var(--navy); }
.card-body { padding: 20px; }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.alert { margin-bottom: 18px; padding: 13px 15px; border-radius: 9px; font-size: 14px; }
.alert-success { color: #126344; background: #e8f7f0; border: 1px solid #b8e4d1; }
.alert-error { color: #8c2b23; background: #fff0ee; border: 1px solid #f2c2bc; }
.filter-bar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; }
.field.grow { flex: 1 1 260px; }
.field label { color: #486581; font-weight: 650; font-size: 13px; }
.input, .select, .textarea { width: 100%; border: 1px solid #bcccdc; border-radius: 8px; padding: 10px 11px; color: var(--ink); background: #fff; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.12); }
.textarea { min-height: 95px; resize: vertical; }
.error { color: var(--red); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.field-full { grid-column: 1 / -1; }
.section-title { grid-column: 1 / -1; margin: 12px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 13px; color: #486581; background: #f7fafc; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
td { padding: 13px; border-bottom: 1px solid #edf2f7; font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.text-muted { color: var(--muted); }
.text-right { text-align: right; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge-active, .badge-success { color: #126344; background: #dff5ea; }
.badge-inactive { color: #7b4e12; background: #fff2cf; }
.badge-resigned { color: #7f2f2a; background: #fde8e6; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.detail-item dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.detail-item dd { margin: 0; font-weight: 600; }
.timeline { display: grid; gap: 15px; }
.timeline-item { display: grid; grid-template-columns: 10px 1fr; gap: 12px; }
.timeline-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #e2f4f4; }
.timeline-item p { margin: 0; font-size: 13px; }
.timeline-item small { color: var(--muted); }
.pagination { margin-top: 18px; }
.pagination nav > div:first-child { display: none; }
.pagination nav > div:last-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pagination svg { width: 18px; }
.pagination a, .pagination span { font-size: 13px; }
.pagination nav span[aria-current="page"] span { background: var(--blue) !important; color: #fff !important; }
.login-body { overflow-x: hidden; background: #f5f8fb; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(520px, 1.12fr) minmax(430px, .88fr); background: #fff; }
.login-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; color: #fff; background: linear-gradient(145deg, #091f35 0%, #103e59 54%, #087d79 100%); }
.login-hero:before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 20% 15%, rgba(64,193,187,.2), transparent 28%), radial-gradient(circle at 85% 82%, rgba(31,111,235,.25), transparent 32%); }
.login-grid-pattern { position: absolute; inset: 0; z-index: -1; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 78%); mask-image: linear-gradient(to bottom right, #000, transparent 78%); animation: login-grid-drift 18s linear infinite; }
.login-hero-content { position: relative; z-index: 3; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(34px, 5vw, 68px); }
.login-brand { display: flex; align-items: center; gap: 14px; width: fit-content; animation: login-reveal .7s .05s both; }
.login-brand-mark { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #fff; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 30px rgba(4,24,40,.22); backdrop-filter: blur(10px); }
.login-brand-mark svg { width: 32px; height: 32px; fill: rgba(255,255,255,.1); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-brand strong { display: block; max-width: 360px; color: #fff; font-size: 16px; letter-spacing: -.01em; }
.login-brand small { display: block; margin-top: 4px; color: #9fdad7; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.login-copy { margin: auto 0; padding: 70px 0 45px; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #afe3df; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; animation: login-reveal .7s .18s both; }
.login-eyebrow i { width: 27px; height: 2px; border-radius: 5px; background: #53d2ca; box-shadow: 0 0 14px rgba(83,210,202,.7); }
.login-copy h1 { max-width: 700px; margin: 0; color: #fff; font-size: clamp(45px, 5.4vw, 78px); line-height: .98; letter-spacing: -.055em; animation: login-reveal .8s .28s both; }
.login-copy h1 em { display: block; color: #67dbd3; font-style: normal; }
.login-copy p { max-width: 610px; margin: 27px 0 0; color: #c7dce7; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; animation: login-reveal .8s .38s both; }
.login-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; animation: login-reveal .8s .48s both; }
.login-feature { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.login-feature:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.22); }
.login-feature-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #8fe5df; background: rgba(71,204,196,.12); font-size: 11px; font-weight: 850; }
.login-feature strong, .login-feature small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-feature strong { color: #f7fcff; font-size: 12px; }
.login-feature small { margin-top: 3px; color: #9ebdce; font-size: 10px; }
.login-hero-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; color: #9bbdca; font-size: 11px; animation: login-reveal .8s .55s both; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #4ee0a1; box-shadow: 0 0 0 5px rgba(78,224,161,.1); animation: login-status-pulse 2.2s ease-in-out infinite; }
.login-orb { position: absolute; z-index: 0; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.login-orb-one { width: 280px; height: 280px; right: -75px; top: -70px; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.18), rgba(64,193,187,.03) 65%); border: 1px solid rgba(255,255,255,.09); animation: login-float 9s ease-in-out infinite; }
.login-orb-two { width: 180px; height: 180px; left: 43%; bottom: 12%; background: rgba(38,129,177,.13); border: 1px solid rgba(125,211,252,.1); animation: login-float 11s 1.8s ease-in-out infinite reverse; }
.login-ring { position: absolute; right: -150px; bottom: -145px; z-index: 1; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; animation: login-ring-rotate 28s linear infinite; }
.login-ring:before, .login-ring:after, .login-ring span { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-ring:before { inset: 42px; }.login-ring:after { inset: 92px; }.login-ring span { inset: 140px; }
.login-panel { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 100vh; padding: clamp(30px, 5vw, 72px); background: linear-gradient(145deg, #fbfdff, #f3f7fb); }
.login-panel:before { content: ""; position: absolute; top: -75px; right: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(31,111,235,.1); box-shadow: 0 0 0 45px rgba(31,111,235,.018), 0 0 0 90px rgba(15,139,141,.015); }
.login-panel-glow { position: absolute; left: -100px; bottom: -100px; width: 280px; height: 280px; border-radius: 50%; background: rgba(15,139,141,.08); filter: blur(60px); animation: login-breathe 7s ease-in-out infinite; }
.login-panel-inner { position: relative; z-index: 2; width: min(440px, 100%); min-width: 0; }
.login-mobile-brand { display: none; }
.login-box { width: 100%; min-width: 0; padding: 38px; border: 1px solid rgba(204,216,227,.72); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: 0 28px 70px rgba(16,42,67,.11), 0 2px 8px rgba(16,42,67,.05); backdrop-filter: blur(18px); animation: login-card-enter .85s .16s cubic-bezier(.2,.8,.2,1) both; }
.login-heading { margin-bottom: 28px; }
.login-kicker { display: block; margin-bottom: 9px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-box h2 { margin: 0; color: var(--navy); font-size: clamp(27px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.login-heading p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.login-error { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.login-error > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--red); font-weight: 850; }
.login-error strong, .login-error small { display: block; }
.login-error small { margin-top: 2px; line-height: 1.4; }
.login-field { margin-bottom: 18px; }
.login-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.login-label-row span { color: #8a9bae; font-size: 11px; }
.input-shell { position: relative; display: flex; align-items: center; min-height: 51px; border: 1px solid #c7d4df; border-radius: 12px; background: #fbfdff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease; }
.input-shell:focus-within { transform: translateY(-1px); border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15,139,141,.11), 0 8px 18px rgba(16,42,67,.06); }
.input-shell > svg { width: 20px; height: 20px; margin-left: 15px; flex: 0 0 auto; fill: none; stroke: #7890a5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
.input-shell:focus-within > svg { stroke: var(--teal); }
.input-shell input { flex: 1 1 auto; width: 0; min-width: 0; height: 49px; padding: 0 14px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.input-shell input::placeholder { color: #9aaaba; }
.password-toggle { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; margin-right: 4px; padding: 0; border: 0; border-radius: 9px; color: #71869a; background: transparent; cursor: pointer; transition: color .2s ease, background .2s ease; }
.password-toggle:hover { color: var(--teal); background: #edf8f7; }
.password-toggle svg { grid-area: 1/1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed, .password-toggle[aria-pressed="true"] .eye-open { opacity: 0; transform: scale(.7); }
.password-toggle[aria-pressed="true"] .eye-closed { opacity: 1; transform: scale(1); }
.password-toggle svg { transition: opacity .18s ease, transform .18s ease; }
.login-checkbox { position: relative; display: flex; align-items: center; gap: 9px; width: fit-content; margin: 2px 0 21px; color: var(--muted); font-size: 13px; cursor: pointer; }
.login-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-control { width: 19px; height: 19px; display: grid; place-items: center; border: 1.5px solid #aab9c7; border-radius: 6px; background: #fff; transition: .2s ease; }
.login-checkbox input:checked + .checkbox-control { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 3px rgba(15,139,141,.1); }
.login-checkbox input:checked + .checkbox-control:after { content: ""; width: 8px; height: 4px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.login-checkbox input:focus-visible + .checkbox-control { outline: 3px solid rgba(31,111,235,.2); outline-offset: 2px; }
.login-submit { position: relative; isolation: isolate; width: 100%; min-height: 52px; overflow: hidden; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(110deg, #0c7774, #0f9791 55%, #1677bd); box-shadow: 0 13px 28px rgba(15,139,141,.22); font-weight: 750; transition: transform .2s ease, box-shadow .2s ease; }
.login-submit:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.25) 48%, transparent 72%); transform: translateX(-110%); transition: transform .65s ease; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(15,139,141,.3); }
.login-submit:hover:before { transform: translateX(110%); }
.login-submit:active { transform: translateY(0); }
.login-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.login-submit:hover svg { transform: translateX(4px); }
.login-security { display: flex; align-items: center; gap: 11px; margin-top: 22px; padding: 13px 14px; border-radius: 12px; color: #62798d; background: #f4f8fb; }
.login-security svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: #16865c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-security p { margin: 0; font-size: 11px; line-height: 1.45; }
.login-security strong { color: #40596e; }
.login-copyright { margin: 19px 0 0; color: #8ca0b3; font-size: 11px; text-align: center; animation: login-reveal .7s .75s both; }
@keyframes login-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes login-card-enter { from { opacity: 0; transform: translateY(28px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes login-grid-drift { to { background-position: 52px 52px; } }
@keyframes login-float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-14px,18px,0); } }
@keyframes login-ring-rotate { to { transform: rotate(360deg); } }
@keyframes login-breathe { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes login-status-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(78,224,161,.1); } 50% { box-shadow: 0 0 0 8px rgba(78,224,161,.025); } }
details summary { cursor: pointer; color: var(--blue); }
pre { white-space: pre-wrap; word-break: break-word; background: #f6f8fa; padding: 10px; border-radius: 7px; font-size: 12px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.module-card { position: relative; overflow: hidden; min-height: 220px; padding: 22px; background: var(--surface); border: 1px solid #e3ebf2; border-radius: 14px; box-shadow: 0 4px 18px rgba(16,42,67,.05); transition: transform .18s ease, box-shadow .18s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,42,67,.11); }
.module-card:after { content: ""; position: absolute; width: 92px; height: 92px; right: -30px; top: -30px; border-radius: 50%; background: var(--module-soft, #e8f1ff); }
.module-number { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.module-title { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; color: var(--navy); font-size: 20px; }
.module-title span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--module-color, var(--blue)); background: var(--module-soft, #e8f1ff); }
.module-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.module-link { display: inline-flex; margin-top: 14px; color: var(--module-color, var(--blue)); font-size: 13px; font-weight: 750; }
.module-wide { grid-column: span 3; min-height: auto; }
.module-wide .module-list { columns: 3; }
.section-heading { margin: 28px 0 14px; color: var(--navy); font-size: 18px; }
.money-positive { color: var(--green); font-weight: 750; }
.money-negative { color: var(--red); font-weight: 750; }
.drop-zone { display: grid; place-items: center; min-height: 210px; padding: 28px; border: 2px dashed #9fb3c8; border-radius: 12px; background: #f8fbfe; text-align: center; transition: .18s ease; }
.drop-zone.dragover { border-color: var(--blue); background: #edf5ff; }
.drop-zone input { max-width: 100%; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-stat { padding: 14px; border-radius: 10px; background: #f6f9fc; }
.mini-stat small { display: block; color: var(--muted); margin-bottom: 5px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 12px; color: var(--muted); font-size: 13px; font-weight: 700; border-bottom: 2px solid transparent; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

@media (max-width: 1050px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-wide { grid-column: span 2; }
    .grid-2 { grid-template-columns: 1fr; }
    .login-page { grid-template-columns: minmax(430px, 1fr) minmax(390px, .9fr); }
    .login-hero-content { padding: 38px; }
    .login-copy h1 { font-size: clamp(43px, 5vw, 60px); }
    .login-feature-grid { grid-template-columns: 1fr; max-width: 340px; }
    .login-feature:nth-child(3) { display: none; }
}
@media (max-width: 780px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; padding: 14px; }
    .brand { margin-bottom: 12px; }
    .nav-label, .nav-sub, .sidebar-footer { display: none; }
    .sidebar nav { display: flex; gap: 5px; overflow-x: auto; }
    .nav-link { white-space: nowrap; }
    .topbar { padding: 16px 18px; align-items: flex-start; gap: 12px; }
    .main { padding: 20px 18px 40px; }
    .form-grid, .detail-grid { grid-template-columns: 1fr; }
    .field-full, .section-title { grid-column: 1; }
    .login-page { grid-template-columns: 1fr; }
    .login-hero { min-height: 390px; }
    .login-hero-content { min-height: 390px; padding: 28px 24px; }
    .login-copy { padding: 52px 0 25px; }
    .login-copy h1 { max-width: 520px; font-size: clamp(39px, 10vw, 54px); }
    .login-copy p { max-width: 560px; margin-top: 18px; font-size: 14px; }
    .login-feature-grid, .login-hero-footer { display: none; }
    .login-panel { min-height: auto; padding: 42px 20px; }
    .login-panel-inner { width: min(480px, 100%); }
    .login-box { padding: 32px; }
}
@media (max-width: 520px) {
    .cards { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .module-wide { grid-column: span 1; }
    .module-wide .module-list { columns: 1; }
    .topbar { display: block; }
    .page-actions { margin-top: 12px; }
    .login-hero { min-height: 330px; }
    .login-hero-content { min-height: 330px; padding: 22px 19px; }
    .login-brand-mark { width: 44px; height: 44px; border-radius: 13px; }
    .login-brand-mark svg { width: 28px; height: 28px; }
    .login-brand strong { font-size: 14px; }
    .login-brand small { font-size: 9px; }
    .login-copy { padding: 42px 0 8px; }
    .login-copy h1 { font-size: 38px; }
    .login-copy p { display: none; }
    .login-panel { padding: 28px 14px; }
    .login-box { padding: 26px 20px; border-radius: 20px; }
    .login-box h2 { font-size: 27px; }
    .login-label-row span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .login-grid-pattern, .login-orb, .login-ring, .login-panel-glow, .status-dot,
    .login-brand, .login-eyebrow, .login-copy h1, .login-copy p,
    .login-feature-grid, .login-hero-footer, .login-box, .login-copyright {
        animation: none !important;
    }
    .login-feature, .login-submit, .login-submit:before, .input-shell { transition: none !important; }
}
.chart{display:flex;align-items:flex-end;gap:18px;min-height:280px;padding-top:28px}
.chart-group{display:flex;flex:1;min-width:70px;height:220px;flex-direction:column;justify-content:flex-end;text-align:center;gap:8px}
.chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:5px;height:190px;border-bottom:1px solid #d8dee8}
.chart-bar{display:block;width:18px;min-height:3px;border-radius:5px 5px 0 0}
.chart-savings{background:#0f8b8d}.chart-loans{background:#7656b5}.chart-installments{background:#cc7a00}
.chart-legend{display:flex;gap:14px;font-size:12px;color:#5b6575}
.chart-legend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px}
.legend-savings::before{background:#0f8b8d}.legend-loans::before{background:#7656b5}.legend-installments::before{background:#cc7a00}
.field-grow{flex:1}.field-help{margin:5px 0 0;color:#667085;font-size:13px;line-height:1.5}
.document-row{display:grid;grid-template-columns:minmax(170px,.7fr) 1.3fr 2fr;gap:16px;align-items:end;padding:16px 0;border-bottom:1px solid #e5e9f0}
.document-row:last-child{border-bottom:0}.document-list{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:900px){.document-row{grid-template-columns:1fr}.chart{overflow-x:auto}.chart-group{min-width:86px}}
