:root {
  --paper: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --ink: #1f2933;
  --ink-soft: #5e6976;
  --ink-faint: #8a94a3;
  --rule: #d8dee2;
  --rule-strong: #bfc8ce;
  --brand: #115e59;
  --brand-ink: #ffffff;
  --brand-soft: #dff1ee;
  --gold: #9a6b16;
  --gold-soft: #f5ead2;
  --danger: #b23030;
  --danger-soft: #f7e0e0;
  --blue: #255a8f;
  --blue-soft: #dcebf8;
  --radius: 6px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: var(--font-body); }
body.menu-open { overflow: hidden; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--brand); color: var(--brand-ink); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
.sidebar h1 { font-size: 20px; }
.sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar nav a { color: rgba(255,255,255,0.82); text-decoration: none; padding: 9px 10px; border-radius: var(--radius); font-size: 13.5px; font-weight: 650; }
.sidebar nav a.active { background: rgba(255,255,255,0.15); color: #fff; }
.sidebar-foot { margin-top: auto; font-size: 11.5px; opacity: 0.74; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

.main { min-width: 0; padding: 22px 26px 42px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.page-actions, .inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn { border: 1px solid transparent; border-radius: var(--radius); padding: 9px 14px; cursor: pointer; font-size: 13px; font-weight: 700; min-height: 36px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--sidebar { background: transparent; border-color: rgba(255,255,255,0.42); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 18px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--rule); gap: 12px; flex-wrap: wrap; }
.panel__head h2 { font-size: 16px; }
.panel__body { padding: 16px; }
.panel-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }
.summary-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; min-height: 88px; }
.summary-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); font-weight: 800; }
.summary-card__value { margin-top: 6px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary-card__sub { margin-top: 4px; color: var(--ink-soft); font-size: 12px; line-height: 1.35; }

.table-scroll { overflow-x: auto; }
table.ledger { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
table.ledger th { padding: 10px 16px; border-bottom: 1px solid var(--rule-strong); color: var(--ink-faint); text-align: left; text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; font-weight: 800; }
table.ledger td { padding: 11px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.ledger tbody tr:last-child td { border-bottom: none; }
.cell-primary { font-weight: 750; }
.cell-sub { color: var(--ink-soft); font-size: 12px; }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.status-pill { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.status-pill.green { background: var(--brand-soft); color: var(--brand); }
.status-pill.gold { background: var(--gold-soft); color: var(--gold); }
.status-pill.red { background: var(--danger-soft); color: var(--danger); }
.status-pill.blue { background: var(--blue-soft); color: var(--blue); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row.full { grid-column: 1 / -1; }
label { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: #fff; color: var(--ink); padding: 10px; font-size: 13.5px; }
textarea { min-height: 92px; resize: vertical; }
.field-hint { color: var(--ink-faint); font-size: 11.5px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(22, 28, 35, 0.52); padding: 16px; }
.modal-card { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 8px; padding: 22px; border: 1px solid var(--rule); }
.modal-card h2 { font-size: 18px; margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.empty-state { padding: 38px 18px; color: var(--ink-soft); text-align: center; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; max-width: 90vw; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; }
.toast.hidden { display: none; }
.toast.toast--danger { background: var(--danger); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 390px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 30px 28px; box-shadow: 0 10px 28px rgba(31,41,51,0.08); }
.login-card h1 { font-size: 23px; margin-bottom: 6px; }
.login-card p { margin: 0 0 22px; color: var(--ink-soft); font-size: 13px; }
.login-card label { display: block; margin: 14px 0 4px; }
.login-card button { width: 100%; margin-top: 20px; padding: 12px; }
#login-error { min-height: 18px; margin-top: 12px; color: var(--danger); font-size: 13px; }

@media (max-width: 900px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ---- Menu mobile: drawer kiri, bukan bar horizontal ----
   Percobaan pertama (sidebar jadi bar horizontal di atas) diganti atas
   permintaan user 2026-07-19 — menu tetap harus di kiri. Sidebar
   disembunyikan off-canvas, tombol hamburger di topbar mobile
   menggesernya masuk, backdrop menutup drawer kalau diketuk di luar. */
.mobile-topbar { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 720px) {
  .mobile-topbar {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 30;
  }
  .mobile-menu-btn {
    background: transparent; border: none; color: #fff; font-size: 22px;
    line-height: 1; padding: 4px 6px; cursor: pointer;
  }
  .mobile-topbar__title { font-family: var(--font-display); font-weight: 650; font-size: 17px; }

  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
    width: 240px; transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-backdrop.open {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(20,26,22,0.45);
  }

  .main { padding: 18px 14px 34px; }
  .page-head {
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }
  .page-head h1 { font-size: 24px; line-height: 1.08; }
  .page-head > .btn, .page-actions, .inline-actions { width: 100%; }
  .page-actions, .inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .page-actions .btn, .inline-actions .btn, .page-head > .btn { width: 100%; }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }
  .summary-card { padding: 12px; min-height: 76px; }
  .summary-card__label { font-size: 10px; line-height: 1.2; }
  .summary-card__value { font-size: 20px; line-height: 1.15; margin-top: 5px; }
  .summary-card__sub { font-size: 11.5px; }
  .panel { margin-bottom: 16px; }
  .panel__head { align-items: flex-start; padding: 12px 14px; }
  .panel__head h2 { font-size: 15px; }
  .panel__body { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 100px minmax(0, 1fr); }
  .modal-actions { width: 100%; }
  .modal-actions .btn { flex: 1; }
}

@media screen and (max-width: 640px) {
  .table-scroll { overflow-x: visible; }
  table.ledger,
  table.ledger tbody,
  table.ledger tr,
  table.ledger td {
    display: block;
    width: 100%;
  }
  table.ledger {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  table.ledger thead { display: none; }
  table.ledger tr {
    margin: 10px 10px 0;
    padding: 10px 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface-2);
  }
  table.ledger tr:first-child { margin-top: 10px; }
  table.ledger tr:last-child { margin-bottom: 10px; }
  table.ledger td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
    text-align: right;
    overflow-wrap: anywhere;
  }
  table.ledger tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
  table.ledger td:last-child { border-bottom: none; }
  table.ledger td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    text-align: left;
    color: var(--ink-faint);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  table.ledger .cell-primary { font-size: 14px; }
  table.ledger .cell-sub { font-size: 12px; }
  table.ledger .cell-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 10px;
    text-align: left;
  }
  table.ledger .cell-actions::before {
    grid-column: 1 / -1;
    flex: none;
    width: 100%;
  }
  table.ledger .cell-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
  }
}

@media screen and (max-width: 420px) {
  .main { padding-left: 10px; padding-right: 10px; }
  .mobile-topbar { padding-left: 12px; padding-right: 12px; }
  .summary-grid { grid-template-columns: 1fr; }
  .page-actions, .inline-actions { grid-template-columns: 1fr; }
  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }
  .modal-actions .btn { width: 100%; flex: none; }
  table.ledger .cell-actions { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt {
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .kv dd { margin-bottom: 8px; }
}

/* 2026 UI refresh — owner console follows the BukuAbsen design system. */
:root {
  --paper: #f4f7f6; --surface: #fff; --surface-2: #f8faf9;
  --ink: #182520; --ink-soft: #607069; --ink-faint: #89968f;
  --rule: #e2e9e6; --rule-strong: #ccd8d3;
  --brand: #08705b; --brand-dark: #055444; --brand-ink: #fff; --brand-soft: #e4f3ee;
  --gold: #a86f18; --gold-soft: #fbf1de; --danger: #b63f49; --danger-soft: #fbe9eb;
  --blue: #3471a9; --blue-soft: #e8f1f8; --radius: 12px; --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(21,54,43,.04), 0 7px 22px rgba(21,54,43,.045);
  --shadow-md: 0 18px 50px rgba(15,55,43,.10);
  --font-display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
html, body { min-height: 100%; background: var(--paper); -webkit-font-smoothing: antialiased; }
body { line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(30,157,124,.25); outline-offset: 2px; }

.shell { grid-template-columns: 252px minmax(0,1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px 16px; gap: 0;
  background: radial-gradient(circle at 10% 5%, rgba(82,196,160,.18), transparent 28%), linear-gradient(165deg,#075e4f 0%,#06483e 100%);
  box-shadow: 8px 0 30px rgba(8,50,40,.06);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 25px; }
.sidebar-brand > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sidebar-brand strong { font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.sidebar-brand small { margin-top: 3px; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg,#fff,#dff8ef); color: var(--brand); box-shadow: 0 8px 20px rgba(1,44,35,.2); }
.brand-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark--small { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
.brand-mark--small svg { width: 19px; height: 19px; }
.sidebar-section-label { padding: 0 10px 8px; color: rgba(255,255,255,.42); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.sidebar nav { gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; color: rgba(255,255,255,.72); font-size: 13.5px; font-weight: 620; transition: background .18s,color .18s,transform .18s; }
.sidebar nav a svg, .sidebar-logout svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.075); transform: translateX(2px); }
.sidebar nav a.active { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.08); box-shadow: inset 3px 0 #66d7b4; }
.sidebar-account { display: grid; grid-template-columns: 34px minmax(0,1fr) 32px; align-items: center; gap: 9px; margin-top: auto; padding: 13px 8px 4px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 12px; font-weight: 800; }
.sidebar-foot { margin: 0; min-width: 0; color: rgba(255,255,255,.7); opacity: 1; font-size: 10.5px; line-height: 1.45; white-space: pre-line; overflow: hidden; text-overflow: ellipsis; }
.sidebar-logout { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.64); cursor: pointer; }
.sidebar-logout:hover { background: rgba(255,255,255,.1); color: #fff; }

.main { min-width: 0; padding: 34px clamp(22px,3vw,46px) 52px; }
.main > * { width: 100%; max-width: 1480px; margin-left: auto; margin-right: auto; }
.page-head { align-items: center; margin-bottom: 24px; }
.page-head h1 { color: var(--ink); font-size: clamp(25px,2.4vw,32px); font-weight: 760; line-height: 1.15; letter-spacing: -.035em; }
.page-head p { margin-top: 7px; color: var(--ink-soft); font-size: 13.5px; }
.btn { min-height: 40px; padding: 9px 15px; border-radius: 10px; font-size: 12.5px; font-weight: 700; transition: transform .15s,box-shadow .15s,background .15s,border-color .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg,#0a7962,#07614f); box-shadow: 0 7px 16px rgba(8,112,91,.18); }
.btn--primary:hover:not(:disabled) { box-shadow: 0 9px 22px rgba(8,112,91,.26); }
.btn--ghost { background: #fff; border-color: var(--rule-strong); color: #31413b; box-shadow: 0 1px 2px rgba(20,45,36,.025); }
.btn--ghost:hover:not(:disabled) { background: #f9fbfa; border-color: #aebeb7; }

.panel { overflow: hidden; margin-bottom: 20px; border-color: var(--rule); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel__head { min-height: 57px; padding: 16px 20px; border-color: var(--rule); background: linear-gradient(180deg,#fff,#fdfefd); }
.panel__head h2 { font-size: 15px; font-weight: 730; letter-spacing: -.015em; }
.panel__body { padding: 20px; }
.panel-actions { margin-top: 18px; }
.summary-grid { gap: 14px; margin-bottom: 20px; }
.summary-card { position: relative; overflow: hidden; min-height: 112px; padding: 18px 19px; border-color: var(--rule); border-radius: 16px; background: linear-gradient(145deg,#fff,#fbfdfc); box-shadow: var(--shadow-sm); }
.summary-card::after { content: ""; position: absolute; top: -28px; right: -26px; width: 82px; height: 82px; border-radius: 50%; background: var(--brand-soft); opacity: .55; }
.summary-card__label,.summary-card__value,.summary-card__sub { position: relative; z-index: 1; }
.summary-card__label { font-size: 10px; letter-spacing: .075em; }
.summary-card__value { margin-top: 8px; font-size: 27px; font-weight: 770; letter-spacing: -.025em; }
.summary-card__sub { margin-top: 5px; }
.dashboard-grid,.detail-grid { gap: 20px; }

.table-scroll { scrollbar-width: thin; scrollbar-color: #bdcbc5 transparent; }
table.ledger th { padding: 11px 18px; background: #f8faf9; color: #7a8882; font-size: 9.5px; letter-spacing: .075em; }
table.ledger td { padding: 13px 18px; border-color: #edf1ef; }
table.ledger tbody tr { transition: background .15s; }
table.ledger tbody tr:hover { background: #fafcfb; }
.cell-primary { color: #26362f; font-weight: 680; }
.cell-sub { color: var(--ink-soft); }
.status-pill { min-height: 24px; padding: 4px 9px; font-size: 10.5px; font-weight: 720; }

input,select,textarea,.modal-card input,.modal-card select { min-height: 43px; border-color: var(--rule-strong); border-radius: 10px; transition: border-color .15s,box-shadow .15s; }
input:focus,select:focus,textarea:focus { outline: none; border-color: #35a486; box-shadow: 0 0 0 4px rgba(8,112,91,.10); }
label { color: #4d5d56; font-weight: 680; }
.modal-backdrop { z-index: 70; background: rgba(9,31,25,.56); backdrop-filter: blur(5px); }
.modal-card { border: 1px solid rgba(255,255,255,.65); border-radius: 18px; box-shadow: var(--shadow-md); }
.modal-card h2 { font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.toast { z-index: 90; padding: 11px 16px; border-radius: 11px; background: #17352c; box-shadow: 0 12px 32px rgba(10,34,27,.22); }
.empty-state { line-height: 1.6; }

/* Authentication */
.login-wrap { display: grid; grid-template-columns: minmax(330px,440px) minmax(390px,560px); align-items: stretch; justify-content: center; min-height: 100vh; padding: clamp(28px,5vw,72px); background: radial-gradient(circle at 14% 10%,#e3f4ee 0,transparent 30%),#f4f7f6; }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; min-height: 570px; padding: 36px 38px; border-radius: 24px 0 0 24px; color: #fff; background: radial-gradient(circle at 85% 15%,rgba(118,220,188,.24),transparent 29%),linear-gradient(155deg,#08705b,#06483d); box-shadow: var(--shadow-md); }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 780; letter-spacing: -.025em; }
.auth-intro__content { max-width: 355px; padding-bottom: 15px; }
.auth-kicker,.login-eyebrow { display: block; margin-bottom: 12px; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-kicker { color: #83e0c2; }
.auth-intro h2 { max-width: 12ch; color: #fff; font-size: clamp(30px,3vw,40px); font-weight: 730; line-height: 1.12; letter-spacing: -.045em; }
.auth-intro p { margin: 17px 0 24px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.auth-trust { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.83); font-size: 12px; font-weight: 630; }
.auth-trust span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: rgba(255,255,255,.12); color: #83e0c2; }
.login-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; max-width: none; padding: 48px clamp(34px,5vw,62px); border: 0; border-radius: 0 24px 24px 0; box-shadow: var(--shadow-md); }
.login-card h1 { margin-bottom: 8px; color: var(--ink); font-size: 27px; font-weight: 760; line-height: 1.2; letter-spacing: -.04em; }
.login-card > p { margin-bottom: 24px; font-size: 13px; }
.login-eyebrow { margin-bottom: 8px; color: var(--brand); }
.login-card label { margin-top: 15px; margin-bottom: 6px; }
.login-card input { min-height: 43px; padding: 11px 13px; }
.login-card input::placeholder { color: #a1aba6; }
.login-card button { min-height: 44px; }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: minmax(270px,340px) minmax(390px,1fr); padding: 28px; }
  .auth-intro { padding: 30px; }
  .auth-intro h2 { font-size: 30px; }
}

@media (max-width: 720px) {
  .mobile-topbar { min-height: 58px; padding: 11px 16px; background: linear-gradient(135deg,#075f50,#06483e); box-shadow: 0 5px 18px rgba(5,61,49,.15); }
  .mobile-menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 34px; height: 34px; padding: 7px; border-radius: 9px; }
  .mobile-menu-btn span { display: block; width: 18px; height: 2px; border-radius: 99px; background: currentColor; }
  .mobile-topbar__title { font-family: var(--font-body); font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
  .sidebar { position: fixed; width: 268px; height: 100%; padding-top: 20px; }
  .main { padding: 22px 14px 38px; }
  .main > * { max-width: none; }
  .page-head h1 { font-size: 25px; }
  .summary-card { min-height: 100px; }
  .panel__head { padding: 14px 16px; }
  .panel__body { padding: 16px; }
  .login-wrap { display: block; padding: 0; background: #fff; }
  .auth-intro { min-height: 150px; padding: 22px 22px 28px; border-radius: 0; box-shadow: none; }
  .auth-intro__content { padding: 20px 0 0; }
  .auth-intro__content h2,.auth-intro__content p,.auth-intro__content .auth-trust { display: none; }
  .auth-kicker { margin: 0; }
  .login-card { min-height: calc(100vh - 150px); padding: 34px 22px 40px; border-radius: 22px 22px 0 0; transform: translateY(-22px); box-shadow: 0 -10px 30px rgba(13,53,42,.06); }
}

@media screen and (max-width: 640px) {
  table.ledger tr { border-color: var(--rule); border-radius: 14px; box-shadow: 0 2px 10px rgba(20,55,43,.035); }
  table.ledger td { border-color: #edf1ef; }
}
