:root {
    --ink: #12212b;
    --muted: #687784;
    --line: #e5ebee;
    --surface: #ffffff;
    --page: #f5f7f7;
    --nav: #0d1c25;
    --nav-soft: #172d39;
    --teal: #0c847b;
    --teal-deep: #06675f;
    --teal-pale: #def5f1;
    --amber: #b7791f;
    --amber-pale: #fff4dc;
    --rose: #c33d47;
    --rose-pale: #feecee;
    --sky: #2d6bb1;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(22, 46, 55, .07);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100%; color: var(--ink); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--page); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; display: flex; flex-direction: column; background: var(--nav); color: #dce9e9; z-index: 20; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; }
.brand-lockup strong { display: block; color: #fff; letter-spacing: -.03em; font-size: 19px; }
.brand-lockup small { display: block; color: #87a1a7; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { display: grid; width: 33px; height: 33px; place-items: center; background: var(--teal); color: white; border-radius: 10px; font-size: 19px; font-weight: 900; box-shadow: 0 6px 20px rgba(11, 137, 128, .35); }
.sidebar > .brand-lockup { padding: 28px 24px 25px; }
.main-nav { padding: 5px 12px; overflow-y: auto; }
.nav-label { margin: 26px 12px 7px; color: #67808a; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: #aec2c5; font-weight: 650; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #f7ffff; transform: translateX(2px); }
.nav-item.is-active { background: var(--nav-soft); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.nav-item > span { width: 17px; color: #7fc5bf; font-size: 18px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 20px 17px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; gap: 10px; align-items: center; padding: 5px 6px; }
.user-chip > span { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #274352; color: #a7e1db; font-size: 12px; font-weight: 800; }
.user-chip strong, .user-chip small { display: block; max-width: 172px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { color: #edf7f6; font-size: 12px; }.user-chip small { color: #79949b; font-size: 11px; }
.logout-link { display: flex; width: 100%; justify-content: space-between; margin-top: 9px; padding: 8px 6px; border: 0; background: none; color: #90a8ae; font-size: 12px; text-align: left; }.logout-link:hover { color: #fff; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(8px); }
.eyebrow { margin: 0 0 4px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.035em; }.topbar-actions { display: flex; align-items: center; gap: 12px; }.today-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.menu-toggle { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.content-shell { max-width: 1600px; margin: 0 auto; padding: 32px 42px 44px; }

.flash { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; padding: 13px 15px; border: 1px solid; border-radius: 10px; font-size: 13px; animation: slideIn .3s ease both; }.flash button { border: 0; background: none; font-size: 20px; line-height: 1; }.flash-success { color: #12675e; background: #ebfaf7; border-color: #bfe8df; }.flash-error { color: #a12c35; background: #fff0f1; border-color: #facad0; }.flash ul { margin: 6px 0 0; padding-left: 18px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }.page-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }.page-heading p { max-width: 660px; margin: 5px 0 0; color: var(--muted); }.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 750; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }.btn:hover { transform: translateY(-1px); }.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 5px 13px rgba(12, 132, 123, .2); }.btn-primary:hover { background: var(--teal-deep); }.btn-secondary { border-color: #cfdadd; background: #fff; color: #28404a; }.btn-secondary:hover { background: #f5f8f8; }.btn-quiet { border-color: transparent; background: transparent; color: var(--teal-deep); }.btn-danger { border-color: #f6bdc3; background: #fff3f4; color: var(--rose); }.btn-sm { min-height: 31px; padding: 0 10px; font-size: 12px; }.btn-block { width: 100%; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 28px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }.metric { position: relative; padding: 19px 18px; border-right: 1px solid var(--line); }.metric:last-child { border-right: 0; }.metric-label { display: block; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .02em; }.metric-value { display: block; margin-top: 8px; font-size: clamp(19px, 1.7vw, 28px); font-weight: 790; letter-spacing: -.05em; white-space: nowrap; }.metric-note { display: block; margin-top: 5px; color: #7b8b93; font-size: 11px; }.metric.is-positive::before, .metric.is-warning::before { position: absolute; top: 0; left: 18px; width: 26px; height: 3px; content: ""; border-radius: 0 0 3px 3px; }.metric.is-positive::before { background: var(--teal); }.metric.is-warning::before { background: var(--amber); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); gap: 24px; }.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }.surface-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 20px 14px; border-bottom: 1px solid #edf1f2; }.surface-head h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }.surface-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }.surface-body { padding: 20px; }.text-link { color: var(--teal-deep); font-size: 12px; font-weight: 750; }.text-link:hover { color: var(--teal); }

.chart-surface { padding-bottom: 4px; }.chart-bars { display: flex; height: 220px; align-items: end; gap: 12px; padding: 12px 20px 18px; }.bar-group { display: grid; flex: 1; min-width: 0; height: 100%; grid-template-rows: 1fr auto; align-items: end; gap: 9px; }.bar-pair { display: flex; height: 100%; align-items: end; justify-content: center; gap: 5px; }.bar { width: min(18px, 38%); min-height: 3px; border-radius: 5px 5px 1px 1px; transition: height .5s cubic-bezier(.2,.8,.2,1); }.bar.in { background: var(--teal); }.bar.out { background: #c8d5d8; }.bar-label { overflow: hidden; color: var(--muted); font-size: 10px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }.chart-key { display: flex; gap: 15px; padding: 0 20px 20px; color: var(--muted); font-size: 11px; }.chart-key i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }.chart-key .key-in { background: var(--teal); }.chart-key .key-out { background: #c8d5d8; }
.renewal-list, .activity-list { list-style: none; margin: 0; padding: 0; }.renewal-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef2f2; }.renewal-list li:last-child { border: 0; }.date-box { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-content: center; border-radius: 9px; background: var(--amber-pale); color: #996519; text-align: center; }.date-box strong { font-size: 15px; line-height: 1; }.date-box small { margin-top: 3px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.list-main { min-width: 0; flex: 1; }.list-main strong, .list-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.list-main strong { font-size: 12px; }.list-main span { margin-top: 2px; color: var(--muted); font-size: 11px; }.empty-state { padding: 28px 15px; color: var(--muted); font-size: 13px; text-align: center; }

.data-surface { overflow: hidden; }.toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fbfcfc; }.toolbar form { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; }.search-field { position: relative; flex: 1 1 220px; max-width: 355px; }.search-field::before { position: absolute; top: 9px; left: 11px; content: "⌕"; color: #8ea0a6; font-size: 18px; }.search-field input { padding-left: 33px; }.filter-select { width: auto; min-width: 125px; }.table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }.data-table th { padding: 11px 18px; color: #76858c; background: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }.data-table td { padding: 14px 18px; border-top: 1px solid #edf1f2; vertical-align: middle; }.data-table tr:hover td { background: #fafdfd; }.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }.primary-cell { font-weight: 750; }.secondary-cell { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }.table-actions { display: flex; justify-content: flex-end; gap: 7px; }.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.pagination .links { display: flex; gap: 4px; }.pagination a, .pagination span { display: inline-grid; min-width: 28px; height: 28px; place-items: center; border-radius: 6px; }.pagination a { color: var(--teal-deep); }.pagination a:hover { background: var(--teal-pale); }
.badge { display: inline-flex; align-items: center; min-height: 21px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: capitalize; white-space: nowrap; }.badge-green { background: var(--teal-pale); color: #087167; }.badge-amber { background: var(--amber-pale); color: #9b6714; }.badge-red { background: var(--rose-pale); color: #b23740; }.badge-slate { background: #edf2f3; color: #5c6c73; }.badge-blue { background: #e9f2fc; color: #2864a4; }

.form-shell { max-width: 930px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; padding: 22px; }.form-section { grid-column: 1 / -1; margin: 4px 0 -2px; padding-top: 5px; border-top: 1px solid #edf1f2; }.form-section:first-child { padding-top: 0; border-top: 0; }.form-section h3 { margin: 0; font-size: 13px; }.form-section p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }.field { min-width: 0; }.field.span-2 { grid-column: span 2; }.field label, .stack-form label { display: block; margin-bottom: 6px; color: #4d5d65; font-size: 12px; font-weight: 750; }.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; } input, select, textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #d5e0e2; border-radius: 7px; outline: 0; background: #fff; color: var(--ink); transition: border .16s ease, box-shadow .16s ease; } textarea { min-height: 92px; resize: vertical; } input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12, 132, 123, .11); }.input-error { border-color: var(--rose); }.field-error { display: block; margin-top: 5px; color: var(--rose); font-size: 11px; }.checkbox-field { display: flex; align-items: center; gap: 9px; min-height: 38px; padding-top: 23px; }.checkbox-field input, .check-row input { width: 15px; min-height: 15px; accent-color: var(--teal); }.checkbox-field label, .check-row { margin: 0; color: #4d5d65; font-size: 12px; font-weight: 650; }.form-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 22px; border-top: 1px solid var(--line); background: #fafcfc; }

.detail-hero { display: flex; justify-content: space-between; gap: 20px; padding: 23px; }.detail-kicker { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.detail-hero h2 { margin: 5px 0 5px; font-size: 26px; letter-spacing: -.045em; }.detail-hero p { max-width: 720px; margin: 0; color: var(--muted); }.detail-side { min-width: 165px; text-align: right; }.detail-side strong { display: block; margin-top: 4px; font-size: 23px; letter-spacing: -.04em; }.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }.detail-stat { padding: 16px 20px; border-right: 1px solid var(--line); }.detail-stat:last-child { border-right: 0; }.detail-stat span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.detail-stat strong { display: block; margin-top: 5px; font-size: 17px; letter-spacing: -.03em; }.detail-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); gap: 24px; margin-top: 24px; }.info-list { margin: 0; }.info-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf1f2; }.info-list div:last-child { border: 0; }.info-list dt { color: var(--muted); font-size: 11px; }.info-list dd { margin: 0; font-size: 12px; font-weight: 650; }
.inline-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.inline-form .span-all { grid-column: 1 / -1; }.inline-form .btn { align-self: end; }
.notice { padding: 13px 15px; border-left: 3px solid var(--teal); background: #f0fbf9; color: #28615d; font-size: 12px; }.notice strong { color: #125c55; }

.report-summary { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); margin-bottom: 25px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }.report-summary > div { padding: 16px; background: #fff; border-right: 1px solid var(--line); }.report-summary > div:last-child { border-right: 0; }.report-summary span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }.report-summary strong { display: block; margin-top: 6px; font-size: 18px; letter-spacing: -.04em; }

.login-body { min-height: 100vh; background: #0d1c25; }.login-frame { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.2fr) minmax(410px, .8fr); }.login-story { position: relative; display: flex; flex-direction: column; padding: clamp(34px, 6vw, 84px); overflow: hidden; color: #d9ebea; background: #10242f; }.login-story::before, .login-story::after { position: absolute; border-radius: 50%; content: ""; filter: blur(1px); }.login-story::before { right: -20vw; bottom: -30vw; width: 60vw; height: 60vw; border: 1px solid rgba(95, 216, 201, .16); box-shadow: 0 0 0 75px rgba(95,216,201,.025), 0 0 0 150px rgba(95,216,201,.02); }.login-story::after { top: 12%; right: 14%; width: 12px; height: 12px; background: #64e0d0; box-shadow: 55px 118px 0 rgba(100,224,208,.5), 138px 48px 0 rgba(100,224,208,.25); }.login-story-copy { position: relative; z-index: 1; max-width: 640px; margin: auto 0; }.login-story-copy h1 { max-width: 600px; margin: 12px 0 18px; color: #f6ffff; font-size: clamp(40px, 5vw, 76px); line-height: 1.02; letter-spacing: -.07em; }.login-story-copy p:not(.eyebrow) { max-width: 495px; color: #9bb7bb; font-size: 16px; line-height: 1.65; }.login-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: #8aa5aa; font-size: 12px; }.login-status span { width: 8px; height: 8px; border-radius: 50%; background: #4bdbb9; box-shadow: 0 0 0 5px rgba(75,219,185,.12); }.login-panel { display: grid; place-items: center; padding: 30px; background: #f5f8f8; }.login-card { width: min(100%, 390px); }.login-card h2 { margin: 3px 0 8px; font-size: 31px; letter-spacing: -.05em; }.muted { color: var(--muted); }.stack-form { display: grid; gap: 16px; margin-top: 25px; }.check-row { display: flex !important; align-items: center; gap: 8px; }.demo-credentials { display: grid; gap: 3px; margin-top: 25px; padding: 13px; border-left: 3px solid var(--teal); background: #eaf7f5; color: #3a6564; font-size: 11px; }.demo-credentials strong { color: #14665f; }.inline-error { margin-top: 17px; padding: 10px; border-radius: 7px; background: #fff0f1; color: var(--rose); font-size: 12px; }

@media (max-width: 1180px) { .metric-grid, .report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }.metric:nth-child(3) { border-right: 0; }.metric:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }.report-summary > div:nth-child(3) { border-right: 0; }.report-summary > div:nth-child(-n + 3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 900px) { .app-body { display: block; }.sidebar { transform: translateX(-105%); transition: transform .2s ease; }.sidebar-open .sidebar { transform: translateX(0); }.sidebar-backdrop { position: fixed; inset: 0; display: none; background: rgba(8,18,24,.5); z-index: 19; }.sidebar-open .sidebar-backdrop { display: block; }.workspace { width: 100%; }.menu-toggle { display: grid; place-items: center; }.topbar { padding: 14px 21px; }.content-shell { padding: 24px 21px 34px; }.workspace-grid, .detail-columns { grid-template-columns: 1fr; }.login-frame { grid-template-columns: 1fr; }.login-story { min-height: 42vh; }.login-panel { min-height: 58vh; }.login-story-copy h1 { font-size: 48px; }.today-label { display: none; } }
@media (max-width: 640px) { .topbar h1 { font-size: 18px; }.page-heading, .detail-hero { align-items: flex-start; flex-direction: column; }.page-actions { width: 100%; }.page-actions .btn { flex: 1; }.metric-grid, .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.metric { border-bottom: 1px solid var(--line); }.metric:nth-child(2n) { border-right: 0; }.metric:nth-last-child(-n + 2) { border-bottom: 0; }.report-summary > div { border-bottom: 1px solid var(--line); }.report-summary > div:nth-child(2n) { border-right: 0; }.report-summary > div:nth-last-child(-n + 2) { border-bottom: 0; }.form-grid { grid-template-columns: 1fr; }.field.span-2 { grid-column: auto; }.form-footer { justify-content: stretch; }.form-footer .btn { flex: 1; }.detail-grid { grid-template-columns: repeat(2, 1fr); }.detail-stat { border-bottom: 1px solid var(--line); }.detail-stat:nth-child(2n) { border-right: 0; }.detail-stat:nth-last-child(-n+2) { border-bottom: 0; }.detail-side { text-align: left; }.inline-form { grid-template-columns: 1fr 1fr; }.inline-form .btn { grid-column: 1 / -1; }.toolbar { flex-direction: column; }.search-field { max-width: none; }.filter-select { flex: 1; }.login-story { padding: 30px; }.login-story-copy h1 { font-size: 39px; }.login-panel { padding: 26px; } }
