@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");

:root {
  --navy: #173141;
  --navy-2: #234454;
  --ink: #17232c;
  --muted: #718087;
  --line: #dfe5e2;
  --canvas: #f6f7f4;
  --paper: #ffffff;
  --gold: #c88d3f;
  --gold-soft: #fbf1e3;
  --mint: #6fc2a0;
  --mint-soft: #e8f7f0;
  --danger: #bd695f;
  --danger-soft: #faece9;
  --shadow: 0 16px 42px rgba(24, 49, 65, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", Arial, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }

.ops-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.ops-sidebar { position: sticky; top: 0; height: 100vh; z-index: 20; display: flex; flex-direction: column; padding: 28px 18px 22px; color: #fff; background: var(--navy); }
.ops-brand, .login-brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; position: relative; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; color: #fff; }
.brand-mark i { position: absolute; width: 33px; height: 8px; bottom: -3px; border: solid var(--gold); border-width: 0 0 2px; border-radius: 50%; transform: rotate(-4deg); }
.ops-brand strong { display: block; font-family: Georgia, serif; font-size: 20px; }
.ops-brand span { display: block; margin-top: 4px; color: #9eb2bb; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ops-nav-label { margin: 48px 12px 11px; color: #7893a0; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ops-nav { display: grid; gap: 7px; }
.ops-nav button { width: 100%; height: 48px; padding: 0 13px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; color: #b9c9d0; background: transparent; border: 0; border-radius: 11px; cursor: pointer; text-align: left; transition: .2s ease; }
.ops-nav button:hover, .ops-nav button.active { color: white; background: rgba(255,255,255,.1); transform: translateX(2px); }
.ops-nav button.active { box-shadow: inset 3px 0 var(--gold); }
.ops-nav button i { font-style: normal; font-size: 16px; text-align: center; }
.ops-nav button span { font-size: 14px; font-weight: 600; }
.ops-nav button b { min-width: 25px; padding: 4px 7px; color: #b7c7ce; background: rgba(255,255,255,.08); border-radius: 20px; font-size: 10px; text-align: center; }
.ops-sidebar-card { margin-top: auto; padding: 17px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.ops-sidebar-card > span { color: #91a7b1; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.ops-sidebar-card strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 19px; }
.ops-sidebar-card > div { height: 5px; margin: 14px 0 9px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 8px; }
.ops-sidebar-card > div i { display: block; height: 100%; background: var(--mint); border-radius: inherit; }
.ops-sidebar-card small { color: #a8bbc3; font-size: 10px; }
.ops-signout { margin-top: 12px; padding: 11px 13px; color: #9fb1ba; background: transparent; border: 0; border-radius: 10px; cursor: pointer; text-align: left; }
.ops-signout:hover { color: white; background: rgba(255,255,255,.07); }

.ops-main { min-width: 0; }
.ops-topbar { height: 75px; padding: 0 clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.ops-topbar > div:first-child { display: flex; align-items: center; gap: 11px; color: #9aa5a8; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.ops-topbar b { color: #ccd2d1; }
.ops-topbar strong { color: var(--navy); }
.ops-top-actions { display: flex; align-items: center; gap: 8px; }
.ops-top-actions button { padding: 9px 12px; background: white; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 600; transition: .2s; }
.ops-top-actions button:hover { border-color: var(--gold); transform: translateY(-1px); }
.source-chip, .local-save-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #397e65; background: var(--mint-soft); border-radius: 30px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.source-chip::first-letter { color: var(--mint); }
.ops-page { width: min(1420px, 100%); margin: 0 auto; padding: 46px clamp(24px, 4vw, 64px) 64px; animation: page-in .35s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.ops-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.compact-intro { margin-bottom: 30px; }
.ops-eyebrow { display: block; color: #8c9a9e; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.ops-intro h1 { max-width: 810px; margin: 9px 0 8px; font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(40px, 5vw, 67px); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.compact-intro h1 { font-size: clamp(38px, 4.3vw, 60px); }
.ops-intro h1 em { color: var(--gold); font-weight: 400; }
.ops-intro p { margin: 0; color: #66747b; font-size: 14px; line-height: 1.65; }
.gold-button { min-height: 43px; padding: 0 17px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 18px; color: white; background: var(--gold); border: 0; border-radius: 10px; box-shadow: 0 9px 22px rgba(200,141,63,.2); cursor: pointer; font-size: 12px; font-weight: 700; transition: .2s; }
.gold-button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(200,141,63,.28); }
.plain-button { min-height: 43px; padding: 0 17px; color: #536166; background: white; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 700; }
.intro-actions { display: flex; align-items: center; gap: 9px; }
.data-banner { margin: 12px 34px 0; padding: 10px 13px; color: #456558; background: #edf8f3; border: 1px solid #d4ecdf; border-radius: 9px; font-size: 10px; }
.data-banner.error { color: #8b413c; background: #fff1ef; border-color: #f0d2ce; }

.ops-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.ops-metric { min-height: 156px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 4px 12px rgba(20,40,52,.025); }
.ops-metric-top { display: flex; align-items: center; justify-content: space-between; }
.ops-metric-top span { color: #89969b; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ops-metric-top i { width: 31px; height: 31px; display: grid; place-items: center; color: #789098; background: #f1f4f3; border-radius: 9px; font-style: normal; }
.ops-metric > strong { display: block; margin-top: 22px; font-family: Georgia, serif; font-size: clamp(28px, 2.5vw, 39px); font-weight: 500; line-height: 1; }
.ops-metric > p { margin: 10px 0 0; color: #8d989c; font-size: 11px; }
.ops-metric.navy { color: white; background: var(--navy); border-color: var(--navy); }
.ops-metric.navy .ops-metric-top span, .ops-metric.navy > p { color: #9db0b9; }
.ops-metric.navy .ops-metric-top i { color: #e7bd82; background: rgba(255,255,255,.08); }
.ops-metric.green { background: linear-gradient(145deg, #fff 55%, #edf8f3); }
.ops-metric.green .ops-metric-top i { color: #398469; background: var(--mint-soft); }
.ops-metric.gold { background: var(--gold-soft); border-color: #edd5b5; }
.ops-metric.gold .ops-metric-top i { color: #9b6626; background: rgba(200,141,63,.12); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 17px; margin-top: 17px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 6px 18px rgba(22,43,55,.025); }
.revenue-panel, .finance-snapshot, .recent-panel, .expense-panel, .account-totals, .fee-followup { padding: 25px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 7px 0 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.period-pill { padding: 7px 10px; color: #7c898e; background: #f4f6f4; border-radius: 25px; font-size: 10px; font-weight: 700; }
.text-button { padding: 5px 0; color: var(--gold); background: transparent; border: 0; cursor: pointer; font-size: 11px; font-weight: 700; }
.collection-layout { min-height: 215px; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 32px; }
.collection-ring { width: 153px; height: 153px; display: grid; place-items: center; border-radius: 50%; }
.collection-ring > div { width: 113px; height: 113px; display: grid; place-content: center; text-align: center; background: white; border-radius: 50%; }
.collection-ring strong { font-family: Georgia, serif; font-size: 29px; }
.collection-ring span { color: var(--muted); font-size: 10px; }
.collection-detail { display: grid; }
.collection-detail > div { min-height: 58px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; border-bottom: 1px solid #edf0ee; font-size: 11px; }
.collection-detail > div:last-child { border: 0; }
.collection-detail span { display: flex; align-items: center; color: #607078; }
.collection-detail strong { color: #8a969b; font-size: 10px; font-weight: 500; }
.collection-detail b { min-width: 68px; text-align: right; }
.legend-dot { width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; }
.legend-dot.paid { background: var(--mint); }.legend-dot.pending { background: var(--gold); }.legend-dot.review { background: var(--danger); }
.snapshot-row { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0ee; }
.snapshot-row span { font-size: 12px; font-weight: 600; }
.snapshot-row small { display: block; margin-top: 4px; color: #97a0a3; font-size: 9px; font-weight: 500; }
.snapshot-row strong { font-family: Georgia, serif; font-size: 20px; }
.expense-value { color: var(--danger); }
.snapshot-total { margin: 14px -9px 0; padding: 17px 10px 7px; display: flex; justify-content: space-between; }
.snapshot-total span { font-size: 12px; font-weight: 700; }.snapshot-total strong { font-family: Georgia, serif; font-size: 25px; }
.data-note { margin: 12px 0 0; padding: 10px 12px; color: #87602f; background: var(--gold-soft); border-radius: 8px; font-size: 9px; line-height: 1.5; }
.recent-panel { margin-top: 17px; }
.activity-list { margin-top: 17px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.activity-list button { min-width: 0; padding: 12px 14px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; background: transparent; border: 0; border-right: 1px solid #edf0ee; cursor: pointer; text-align: left; }
.activity-list button:last-child { border: 0; }
.activity-list button > span:nth-child(2) { min-width: 0; }
.activity-list strong, .activity-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-list strong { font-size: 11px; }.activity-list small { margin-top: 4px; color: #8f9a9e; font-size: 8px; }.activity-list b { font-size: 11px; }.activity-list i { display: none; }
.mini-avatar { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: var(--navy); background: #e8eeec; border-radius: 10px; font-size: 10px; font-weight: 700; }
.mini-avatar.large { width: 48px; height: 48px; color: #fff; background: var(--navy-2); border-radius: 13px; font-size: 13px; }
.source-note { margin: 15px 3px 0; color: #99a2a5; font-size: 9px; line-height: 1.5; }

.student-table-panel { overflow: hidden; }
.table-toolbar { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.ops-search { width: min(410px, 100%); height: 39px; padding: 0 11px; display: flex; align-items: center; gap: 9px; background: #f5f7f5; border: 1px solid transparent; border-radius: 9px; }
.ops-search:focus-within { background: white; border-color: #cfdbd6; }
.ops-search span { color: #8b979a; }.ops-search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 11px; }.ops-search button { background: transparent; border: 0; cursor: pointer; }
.status-filters { display: flex; padding: 3px; background: #f2f4f2; border-radius: 9px; }
.status-filters button { padding: 7px 10px; color: #7d898e; background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 9px; font-weight: 700; }
.status-filters button.active { color: var(--navy); background: white; box-shadow: 0 2px 8px rgba(20,40,52,.08); }
.table-scroll { overflow-x: auto; }
.student-table { width: 100%; min-width: 1040px; border-collapse: collapse; }
.student-table th { height: 45px; padding: 0 14px; color: #929da1; background: #fbfcfb; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.student-table td { height: 64px; padding: 8px 14px; border-bottom: 1px solid #edf0ee; color: #4a5960; font-size: 10px; vertical-align: middle; }
.student-table tbody tr { cursor: pointer; transition: .15s; }
.student-table tbody tr:hover { background: #fbf8f3; }
.student-table tbody tr:last-child td { border: 0; }
.student-cell { min-width: 155px; display: flex; align-items: center; gap: 10px; }
.student-cell strong, .student-cell small { display: block; }.student-cell strong { color: var(--ink); font-size: 11px; }.student-cell small { max-width: 120px; margin-top: 3px; overflow: hidden; color: #929da1; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admission-tag { padding: 5px 7px; color: var(--navy); background: #eef2f2; border-radius: 5px; font-size: 9px; font-weight: 700; }
.subject-count { display: inline-block; margin-right: 6px; color: var(--navy); }.course-line { display: block; max-width: 135px; margin-top: 3px; overflow: hidden; color: #929da1; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 20px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; }
.status-pill.paid { color: #347c61; background: var(--mint-soft); }.status-pill.paid i { background: var(--mint); }
.status-pill.pending { color: #9a6526; background: var(--gold-soft); }.status-pill.pending i { background: var(--gold); }
.status-pill.review { color: #a4544c; background: var(--danger-soft); }.status-pill.review i { background: var(--danger); }
.balance-note { color: var(--danger); font-weight: 700; }
.row-open { width: 28px; height: 28px; background: transparent; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.table-footer { min-height: 49px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; color: #929da1; background: #fbfcfb; border-top: 1px solid var(--line); font-size: 9px; }

.accounts-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 17px; }
.accounts-help { margin: 16px 0; color: #7d898d; font-size: 10px; }
.expense-list { border-top: 1px solid #edf0ee; }
.expense-row { min-height: 68px; display: grid; grid-template-columns: 38px minmax(150px, 1fr) 145px 24px; align-items: center; gap: 12px; border-bottom: 1px solid #edf0ee; }
.expense-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #80602f; background: var(--gold-soft); border-radius: 9px; font-size: 11px; font-weight: 700; }
.expense-row > div strong { display: block; font-size: 11px; }.expense-row > div input { width: 100%; margin-top: 4px; padding: 0; color: #8e989c; background: transparent; border: 0; outline: 0; font-size: 9px; }
.expense-row label { height: 37px; display: flex; align-items: center; padding: 0 9px; background: #f5f7f5; border: 1px solid transparent; border-radius: 8px; }
.expense-row label:focus-within { background: white; border-color: #cdd9d4; }.expense-row label span { color: #829094; font-size: 10px; }.expense-row label input { width: 100%; min-width: 0; text-align: right; background: transparent; border: 0; outline: 0; font-size: 11px; font-weight: 700; }
.expense-row > button { color: #a6afb1; background: transparent; border: 0; cursor: pointer; }
.add-expense { margin: 20px -4px -4px; padding: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; background: #f7f8f6; border-radius: 12px; }
.add-expense > div { flex: 1; }.add-expense-fields { margin-top: 9px; display: grid; grid-template-columns: .75fr 1.35fr .65fr; gap: 8px; }.add-expense-fields input { min-width: 0; height: 37px; padding: 0 10px; background: white; border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: 10px; }.add-expense-fields input:focus { border-color: var(--gold); }
.accounts-side { display: grid; align-content: start; gap: 17px; }
.account-totals > div { min-height: 59px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0ee; font-size: 11px; }.account-totals > div strong { font-family: Georgia, serif; font-size: 18px; }.account-totals .net-line { margin: 8px -10px 0; padding: 0 10px; color: white; background: var(--navy); border: 0; border-radius: 9px; }.account-totals > small { display: block; margin-top: 14px; color: #8c979b; font-size: 8px; line-height: 1.55; }
.fee-followup .panel-heading > strong { color: var(--danger); font-family: Georgia, serif; font-size: 21px; }.fee-followup > button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 1fr auto 10px; align-items: center; gap: 10px; background: transparent; border: 0; border-top: 1px solid #edf0ee; cursor: pointer; text-align: left; }.fee-followup > button:first-of-type { margin-top: 14px; }.fee-followup button span strong, .fee-followup button span small { display: block; }.fee-followup button span strong { font-size: 11px; }.fee-followup button span small { margin-top: 3px; color: #949ea1; font-size: 8px; }.fee-followup button b { font-size: 11px; }

.profile-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(9,25,34,.36); backdrop-filter: blur(3px); animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } }
.profile-drawer { width: min(520px, 100%); height: 100%; overflow: hidden; background: #f8f9f7; box-shadow: -20px 0 60px rgba(8,24,33,.18); animation: drawer-in .28s ease both; }
.student-form-drawer { width: min(690px, 100%); height: 100%; overflow-y: auto; background: #fff; box-shadow: -20px 0 60px rgba(8,24,33,.18); animation: drawer-in .28s ease both; }
.student-entry-form { padding: 4px 28px 30px; }
.student-entry-form section { padding: 20px 0; border-bottom: 1px solid #edf0ee; }
.student-entry-form h3 { margin: 0 0 14px; color: var(--navy); font-family: Georgia, serif; font-size: 16px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry-grid label { display: grid; gap: 6px; }.entry-grid label.wide { grid-column: 1 / -1; }
.entry-grid label > span { color: #7d898d; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.entry-grid input, .entry-grid select, .entry-grid textarea { width: 100%; min-width: 0; padding: 10px 11px; color: var(--navy); background: #f8f9f7; border: 1px solid var(--line); border-radius: 8px; outline: 0; font: inherit; font-size: 11px; }
.entry-grid input:focus, .entry-grid select:focus, .entry-grid textarea:focus { background: white; border-color: var(--gold); }.entry-grid textarea { resize: vertical; }
.entry-actions { padding-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }.form-error { margin: 15px 0 0; color: var(--danger); font-size: 10px; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-header { min-height: 110px; padding: 24px 25px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--navy); }
.drawer-header > div { display: flex; align-items: center; gap: 13px; }.drawer-header small { color: #9db1ba; font-size: 8px; letter-spacing: .15em; }.drawer-header h2 { margin: 4px 0 3px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }.drawer-header p { margin: 0; color: #aebec5; font-size: 9px; }.drawer-header > button { width: 35px; height: 35px; color: white; background: rgba(255,255,255,.09); border: 0; border-radius: 50%; cursor: pointer; font-size: 20px; }
.drawer-scroll { height: calc(100vh - 110px); padding: 22px 25px 40px; overflow-y: auto; }
.drawer-status { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; background: white; border: 1px solid var(--line); border-radius: 11px; }.drawer-status > strong { font-family: Georgia, serif; font-size: 20px; }.drawer-status > strong small { color: #8c979b; font-family: "DM Sans", sans-serif; font-size: 8px; font-weight: 500; }
.drawer-section { margin-top: 17px; padding: 19px; background: white; border: 1px solid var(--line); border-radius: 12px; }.drawer-section h3 { margin: 0 0 15px; color: #7d8a8f; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.detail-grid > div { min-width: 0; }.detail-grid .wide { grid-column: 1 / -1; }.detail-grid span, .detail-list span { display: block; color: #9aa3a6; font-size: 8px; }.detail-grid strong, .detail-list strong { display: block; margin-top: 4px; color: #33444c; font-size: 10px; line-height: 1.45; }.detail-list > div { padding: 10px 0; border-bottom: 1px solid #edf0ee; }.detail-list > div:first-child { padding-top: 0; }.detail-list > div:last-child { padding-bottom: 0; border: 0; }.detail-list small { display: block; margin-top: 4px; color: #68777e; font-size: 9px; }
.drawer-note { margin-top: 17px; padding: 14px; display: flex; gap: 10px; color: #805d31; background: var(--gold-soft); border: 1px solid #ecd2af; border-radius: 11px; }.drawer-note span { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(200,141,63,.18); border-radius: 50%; font-size: 9px; font-weight: 700; }.drawer-note p { margin: 1px 0 0; font-size: 9px; line-height: 1.6; }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: #fff; }
.login-art { min-height: 100vh; padding: clamp(28px, 5vw, 74px); position: relative; overflow: hidden; display: flex; flex-direction: column; color: white; background: var(--navy); }
.login-art::before { content: ""; width: 420px; height: 420px; position: absolute; right: -100px; top: -130px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-art::after { content: ""; width: 520px; height: 520px; position: absolute; left: -330px; bottom: -320px; border: 1px solid rgba(200,141,63,.28); border-radius: 50%; }
.login-art-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .4; }.glow-one { width: 230px; height: 230px; right: 8%; top: 26%; background: radial-gradient(circle, rgba(111,194,160,.17), transparent 68%); }.glow-two { width: 190px; height: 190px; left: 35%; bottom: 8%; background: radial-gradient(circle, rgba(200,141,63,.12), transparent 68%); }
.login-brand-lockup { position: relative; z-index: 2; }.login-brand-lockup strong { display: block; font-family: Georgia, serif; font-size: 22px; }.login-brand-lockup span { display: block; margin-top: 4px; color: #a6b8c0; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.login-art-copy { max-width: 590px; margin: auto 0; position: relative; z-index: 2; }.login-kicker, .login-small-label { color: #d2a364; font-size: 9px; font-weight: 700; letter-spacing: .18em; }.login-art-copy h1 { margin: 16px 0; font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(49px, 6vw, 82px); font-weight: 400; letter-spacing: -.05em; line-height: .98; }.login-art-copy h1 em { color: #dda95f; font-weight: 400; }.login-art-copy p { max-width: 480px; color: #aec0c8; font-size: 14px; line-height: 1.7; }.login-art-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; color: #8099a4; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.login-panel { display: grid; place-items: center; padding: 35px; }.login-card { width: min(400px, 100%); }.login-card-top { display: flex; justify-content: space-between; }.login-lock { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border-radius: 50%; }.login-card h2 { margin: 15px 0 8px; font-family: "Libre Caslon Display", Georgia, serif; font-size: 44px; font-weight: 400; letter-spacing: -.04em; }.login-intro { margin: 0 0 31px; color: #7d8a8f; font-size: 12px; }.login-field { display: block; margin-bottom: 17px; }.login-field > span { display: block; margin-bottom: 7px; color: #5f6d73; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.login-field input { width: 100%; height: 47px; padding: 0 14px; background: #f7f8f6; border: 1px solid #e0e5e2; border-radius: 9px; outline: 0; font-size: 12px; }.login-field input:focus { background: white; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,141,63,.1); }.password-input-wrap { position: relative; }.password-input-wrap input { padding-right: 62px; }.password-input-wrap button { height: 33px; padding: 0 10px; position: absolute; right: 7px; top: 7px; color: #7f8a8e; background: white; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 9px; }.login-error { padding: 10px; color: #a24f48; background: var(--danger-soft); border-radius: 8px; font-size: 10px; }.login-submit { width: 100%; height: 49px; margin-top: 5px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--navy); border: 0; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 700; transition: .2s; }.login-submit:hover { background: var(--navy-2); transform: translateY(-1px); }.login-submit:disabled { opacity: .6; }.login-security-note { margin-top: 18px; padding: 13px; display: flex; gap: 10px; color: #849095; background: #f7f8f6; border-radius: 9px; }.login-security-note p { margin: 0; font-size: 9px; line-height: 1.5; }
.login-success { padding: 11px; color: #2f735a; background: var(--mint-soft); border-radius: 8px; font-size: 10px; line-height: 1.5; }
.forgot-link, .back-to-login { display: block; margin: -4px 0 14px auto; padding: 4px 0; color: var(--gold); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 700; }
.back-to-login { margin: 14px auto 0 0; color: #748187; }
.reset-complete > span { width: 48px; height: 48px; display: grid; place-items: center; color: #2f735a; background: var(--mint-soft); border-radius: 50%; font-weight: 700; }
.reset-complete h2 { margin-top: 22px; }.reset-complete p { margin: 0 0 24px; color: #7d8a8f; font-size: 12px; }.reset-complete .login-submit { text-decoration: none; }

@media (max-width: 1080px) {
  .ops-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .ops-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .accounts-layout { grid-template-columns: 1fr; }
  .activity-list { grid-template-columns: 1fr 1fr; }
  .activity-list button { border-bottom: 1px solid #edf0ee; }
  .accounts-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .ops-shell { display: block; padding-bottom: 70px; }
  .ops-sidebar { width: 100%; height: auto; min-height: 0; padding: 12px 14px; position: fixed; top: auto; bottom: 0; display: block; background: rgba(23,49,65,.97); backdrop-filter: blur(18px); }
  .ops-brand, .ops-nav-label, .ops-sidebar-card, .ops-signout { display: none; }
  .ops-nav { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .ops-nav button { height: 48px; padding: 5px; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
  .ops-nav button:hover, .ops-nav button.active { transform: none; box-shadow: inset 0 -2px var(--gold); }
  .ops-nav button i { font-size: 14px; }.ops-nav button span { font-size: 9px; }.ops-nav button b { display: none; }
  .ops-topbar { height: 58px; padding: 0 16px; }.ops-topbar > div:first-child span, .ops-topbar > div:first-child b { display: none; }.source-chip { display: none; }.ops-top-actions button { padding: 8px; font-size: 9px; }
  .ops-page { padding: 30px 15px 42px; }
  .ops-intro { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 26px; }.ops-intro h1, .compact-intro h1 { font-size: 42px; }.ops-intro p { font-size: 12px; }.local-save-badge { align-self: flex-start; }
  .ops-metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.ops-metric { min-height: 132px; padding: 16px; }.ops-metric-top span { font-size: 8px; }.ops-metric-top i { width: 27px; height: 27px; }.ops-metric > strong { margin-top: 19px; font-size: 25px; }.ops-metric > p { font-size: 8px; }
  .dashboard-grid { gap: 10px; }.revenue-panel, .finance-snapshot, .recent-panel, .expense-panel, .account-totals, .fee-followup { padding: 18px; }.collection-layout { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding-top: 20px; }.collection-detail { width: 100%; }.activity-list { grid-template-columns: 1fr; }.activity-list button { grid-template-columns: 36px 1fr auto 9px; border-right: 0; }.activity-list i { display: block; }
  .table-toolbar { align-items: stretch; flex-direction: column; padding: 13px; }.ops-search { width: 100%; }.status-filters { overflow-x: auto; }.status-filters button { flex: 1; white-space: nowrap; }.table-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .accounts-side { grid-template-columns: 1fr; }.expense-row { grid-template-columns: 34px 1fr 105px 16px; gap: 8px; }.add-expense { align-items: stretch; flex-direction: column; }.add-expense-fields { grid-template-columns: 1fr; }.add-expense .gold-button { justify-content: space-between; }
  .login-shell { grid-template-columns: 1fr; }.login-art { min-height: 300px; padding: 28px; }.login-art-copy { margin: 60px 0; }.login-art-copy h1 { font-size: 48px; }.login-art-copy p { display: none; }.login-art-footer { display: none; }.login-panel { padding: 42px 22px; }
}

@media (max-width: 420px) {
  .ops-metric-grid { grid-template-columns: 1fr; }.ops-metric { min-height: 124px; }.expense-row { grid-template-columns: 31px 1fr 88px 14px; }.expense-row > div input { max-width: 130px; }.drawer-header, .drawer-scroll { padding-left: 17px; padding-right: 17px; }.detail-grid { grid-template-columns: 1fr; }.detail-grid .wide { grid-column: auto; }
  .intro-actions { width: 100%; }.intro-actions button { flex: 1; }.entry-grid { grid-template-columns: 1fr; }.entry-grid label.wide { grid-column: auto; }.student-entry-form { padding-left: 17px; padding-right: 17px; }.data-banner { margin-left: 14px; margin-right: 14px; }
}

@media print {
  .ops-sidebar, .ops-topbar, .gold-button, .table-toolbar, .row-open { display: none !important; }.ops-shell { display: block; }.ops-page { padding: 20px; }.panel, .ops-metric { box-shadow: none; break-inside: avoid; }
}
