:root{
  --bg:#f5f7fa;
  --surface:#ffffff;
  --surface-subtle:#f8fafc;
  --surface-blue:#f3f7fc;
  --ink:#172235;
  --ink-soft:#354154;
  --muted:#5d6979;
  --muted-2:#778293;
  --line:#dfe5ec;
  --line-strong:#cdd6e1;
  --primary:#173f7a;
  --primary-hover:#204f95;
  --primary-soft:#edf3fb;
  --sidebar:#102a4c;
  --sidebar-soft:#183a64;
  --success:#117352;
  --success-bg:#e9f7f1;
  --warning:#8a5a08;
  --warning-bg:#fff6df;
  --danger:#a92b22;
  --danger-bg:#fff0ef;
  --focus:#4d82c3;
  --shadow-soft:0 1px 2px rgba(16,42,76,.04),0 6px 18px rgba(16,42,76,.04);
  --shadow-popover:0 16px 40px rgba(16,42,76,.18);
  --radius:12px;
  --radius-sm:9px;
  --sidebar-width:252px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-width:0;
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
svg{display:block}
[hidden]{display:none!important}
::selection{background:#dce9f8;color:var(--ink)}
:focus-visible{outline:3px solid rgba(77,130,195,.42);outline-offset:2px}

.layout{min-height:100vh;display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  z-index:30;
  display:flex;
  flex-direction:column;
  padding:22px 14px 18px;
  background:var(--sidebar);
  color:#fff;
}
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 6px}
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand-mark,.brand-logo{
  width:42px;height:42px;flex:0 0 42px;border-radius:11px;
  display:grid;place-items:center;overflow:hidden;
  background:#fff;color:var(--primary);font-size:19px;font-weight:800;
}
.brand-logo img{width:100%;height:100%;object-fit:contain;background:#fff;padding:3px}
.brand-copy{display:flex;flex-direction:column;min-width:0}
.brand-title{font-size:19px;line-height:1.15;font-weight:750;letter-spacing:.01em}
.brand-sub{font-size:10px;line-height:1.4;margin-top:2px;letter-spacing:.11em;opacity:.65}
.nav{margin-top:24px;overflow-y:auto;overscroll-behavior:contain;padding-right:2px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent}
.nav-section{margin:22px 12px 8px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.13em;color:rgba(255,255,255,.48)}
.nav-section:first-child{margin-top:0}
.nav a{
  position:relative;
  min-height:44px;
  display:flex;align-items:center;gap:10px;
  margin:3px 0;padding:10px 11px;
  border-radius:9px;
  color:#dce6f3;
  font-size:14px;font-weight:550;
  transition:background .15s ease,color .15s ease;
}
.nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.nav a.active{background:rgba(255,255,255,.11);color:#fff;font-weight:650}
.nav a.active::before{
  content:"";position:absolute;left:-6px;top:10px;bottom:10px;width:3px;border-radius:3px;background:#9cc5ff
}
.nav-icon{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.92}
.sidebar-foot{margin-top:auto;padding:18px 10px 0;color:rgba(255,255,255,.52);font-size:11px;line-height:1.5}
.mobile-menu-toggle{display:none}

.main{min-width:0}
.topbar{
  position:sticky;top:0;z-index:20;
  min-height:76px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:10px 28px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
}
.topbar-primary{min-width:0;flex:1;display:flex;align-items:center;gap:24px}
.institution-context{min-width:180px;max-width:360px}
.institution-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;color:var(--ink)}
.context-chips{display:flex;align-items:center;gap:8px;margin-top:4px;overflow:hidden}
.context-chip{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:11px;white-space:nowrap}
.context-chip small{font-size:10px;color:var(--muted-2);text-transform:uppercase;letter-spacing:.04em}
.global-search{
  width:min(460px,46vw);min-width:220px;height:44px;
  display:flex;align-items:center;gap:9px;
  padding:0 10px 0 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle);
  transition:border .15s ease,background .15s ease,box-shadow .15s ease;
}
.global-search:focus-within{background:#fff;border-color:#8eadd1;box-shadow:0 0 0 3px rgba(77,130,195,.1)}
.global-search svg,.filter-search svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.global-search input,.filter-search input{min-height:0!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;font-size:13px!important}
.global-search kbd{margin-left:auto;border:1px solid var(--line);border-bottom-color:var(--line-strong);border-radius:5px;background:#fff;color:var(--muted-2);font:11px system-ui;padding:2px 6px}
.top-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.language-switcher select{
  width:auto;min-width:108px;height:42px;min-height:42px;padding:0 30px 0 10px;
  border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink-soft);
  font-size:12px;font-weight:650;
}
.user-menu{position:relative}
.user-menu summary{
  list-style:none;min-height:46px;display:flex;align-items:center;gap:9px;cursor:pointer;
  padding:4px 7px;border-radius:10px;
}
.user-menu summary::-webkit-details-marker{display:none}
.user-menu summary:hover{background:var(--surface-subtle)}
.user-avatar{width:36px;height:36px;border-radius:10px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-weight:750}
.user-summary{display:flex;flex-direction:column;max-width:160px}
.user-summary strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-summary small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-menu summary>svg{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.user-popover{
  position:absolute;right:0;top:calc(100% + 8px);width:230px;padding:7px;
  border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:var(--shadow-popover)
}
.user-popover a{display:block;padding:10px 11px;border-radius:8px;font-size:13px;font-weight:550}
.user-popover a:hover{background:var(--surface-subtle)}

.content{width:100%;max-width:1540px;margin:0 auto;padding:30px 32px 44px}
.messages{display:grid;gap:8px;margin-bottom:18px}
.message{padding:11px 14px;border:1px solid #cae9da;border-radius:9px;background:#eef9f3;color:#175f45;font-size:13px;font-weight:550}
.message-error,.message.error{border-color:#f0c7c3;background:var(--danger-bg);color:#8d241c}
.message-warning,.message.warning{border-color:#efdbab;background:var(--warning-bg);color:#805306}

.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.page-head>div:first-child{min-width:0}
.eyebrow,.section-kicker{
  display:block;margin-bottom:6px;color:var(--primary);font-size:11px;font-weight:750;
  text-transform:uppercase;letter-spacing:.09em
}
.eyebrow.light{color:#bcd8ff}
.page-head h1{margin:0;color:var(--ink);font-size:29px;line-height:1.16;letter-spacing:-.025em;font-weight:730}
.page-head p{max-width:760px;margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.breadcrumb{display:flex;align-items:center;gap:7px;margin-bottom:14px;color:var(--muted);font-size:12px}
.breadcrumb a{color:var(--primary);font-weight:600}
.breadcrumb span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.btn{
  min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 15px;border:1px solid transparent;border-radius:9px;cursor:pointer;
  font-size:14px;font-weight:650;line-height:1.2;white-space:nowrap;
  transition:background .15s ease,border .15s ease,transform .08s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-hover)}
.btn-secondary{border-color:#c8d7e8;background:#f2f6fb;color:var(--primary)}
.btn-secondary:hover{background:#e8f0fa}
.btn-tertiary{border-color:var(--line);background:#fff;color:var(--ink-soft)}
.btn-tertiary:hover{background:var(--surface-subtle);border-color:var(--line-strong)}
.btn-danger{border-color:#f0c7c3;background:var(--danger-bg);color:var(--danger)}
.btn-sm{min-height:38px;padding:7px 11px;font-size:12px}
.btn-large{min-height:48px;font-size:15px}

.grid{display:grid;gap:16px}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.compact-stats{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px}
.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-soft)}
.stat{min-width:0;padding:19px 20px}
.stat-link{transition:border .15s ease,box-shadow .15s ease,transform .15s ease}
.stat-link:hover{border-color:#c5d6e9;box-shadow:0 8px 22px rgba(16,42,76,.07);transform:translateY(-1px)}
.stat-label{color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.075em}
.stat-value{margin-top:7px;color:var(--ink);font-size:28px;line-height:1.15;font-weight:730;letter-spacing:-.025em;overflow-wrap:anywhere}
.stat-note{margin-top:5px;color:var(--muted);font-size:12px}
.compact-value{font-size:20px}
.money{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.danger-text{color:var(--danger)!important}

.section{padding:20px}
.section-gap{margin-top:18px}
.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}
.section-title h2{margin:0;color:var(--ink);font-size:19px;line-height:1.25;font-weight:690;letter-spacing:-.012em}
.section-title>span{color:var(--muted);font-size:12px}
.work-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:18px;margin-bottom:20px}
.split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px}
.search-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.settings-layout{display:grid;grid-template-columns:300px minmax(0,1fr);align-items:start;gap:20px}
.settings-form{min-width:0}

.task-list,.stack-list{display:grid}
.task-row,.stack-row{
  min-width:0;display:flex;align-items:center;gap:11px;padding:12px 2px;
  border-bottom:1px solid var(--line);transition:background .12s ease
}
.task-row:last-child,.stack-row:last-child{border-bottom:0}
.task-row:hover,.stack-row:not(.static):hover{background:#fafcff}
.task-row>span:nth-child(2),.stack-row>span:first-child{min-width:0;flex:1;display:flex;flex-direction:column}
.task-row strong,.stack-row strong{font-size:13px;font-weight:650}
.task-row small,.stack-row small{margin-top:2px;color:var(--muted);font-size:11px;line-height:1.45}
.task-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#91a0b4}
.task-dot.success{background:var(--success)}
.task-dot.warning{background:#d4931b}
.task-dot.danger{background:var(--danger)}
.task-arrow{color:#8894a5;font-size:23px;line-height:1}
.row-meta{color:var(--ink-soft);font-size:12px;font-weight:650;white-space:nowrap}
.stack-row>span:last-child:not(:first-child){display:flex;align-items:center;gap:7px}
.compact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.quick-link{
  min-height:74px;display:flex;align-items:center;gap:11px;padding:12px;
  border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle)
}
.quick-link:hover{border-color:#c4d6ea;background:#f5f9fe}
.quick-icon{width:32px;height:32px;flex:0 0 32px;border-radius:8px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:18px;font-weight:700}
.quick-link>span:last-child{min-width:0;display:flex;flex-direction:column}
.quick-link strong{font-size:13px}
.quick-link small{margin-top:2px;color:var(--muted);font-size:11px}

.empty-state{padding:34px 20px;text-align:center;color:var(--muted)}
.empty-state strong{display:block;color:var(--ink-soft);font-size:15px}
.empty-state p{max-width:560px;margin:6px auto 16px;font-size:13px;line-height:1.55}
.empty-state.compact{padding:20px 10px}
.empty-state.compact p{margin-bottom:0}
.empty-state .btn{margin-top:2px}

.badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:24px;padding:3px 8px;border-radius:999px;
  font-size:10px;font-weight:750;line-height:1.2;white-space:nowrap
}
.badge-large{min-height:30px;padding:5px 10px;font-size:11px}
.badge-paid,.badge-active,.badge-published,.badge-confirmed,.badge-sent{background:var(--success-bg);color:var(--success)}
.badge-unpaid,.badge-suspended,.badge-rejected,.badge-failed{background:var(--danger-bg);color:var(--danger)}
.badge-partial,.badge-pending,.badge-draft,.badge-trial,.badge-queued,.badge-past_due{background:var(--warning-bg);color:var(--warning)}
.badge-cancelled{background:#eef1f5;color:#667386}

.filter-panel{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin-bottom:16px;padding:11px;
  border:1px solid var(--line);border-radius:11px;background:#fff
}
.filter-panel.compact-filter{max-width:980px}
.filter-search{
  min-width:280px;flex:1;height:44px;display:flex;align-items:center;gap:8px;
  padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-subtle)
}
.filter-panel select{width:auto;min-width:155px}
.filter-check{min-height:44px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:9px;color:var(--ink-soft);font-size:12px;font-weight:550}
.filter-check input{width:18px!important;height:18px!important;min-height:18px!important}

.table-card{padding:0;overflow:hidden}
.table-card>.table-wrap{border:0;border-radius:0}
.table-wrap{
  max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:10px;
  -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain
}
.table{width:100%;border-collapse:collapse;background:#fff;min-width:720px}
.table th,.table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.table th{
  position:relative;background:var(--surface-subtle);color:#647083;
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap
}
.table td{color:var(--ink-soft);font-size:13px}
.table tr:last-child td{border-bottom:0}
.table tbody tr:hover td{background:#fcfdff}
.table a{color:var(--primary)}
.table small.cell-sub{display:block;margin-top:2px;color:var(--muted);font-size:10px}
.message-cell{min-width:260px;max-width:470px;white-space:normal;line-height:1.45}
.error-detail{display:block;margin-top:5px;color:var(--danger);font-size:10px}
.subtle-link{font-weight:600}
.muted{color:var(--muted);font-size:11px}
.person-cell{min-width:0;display:flex;align-items:center;gap:9px}
.person-cell>span:last-child{min-width:0;display:flex;flex-direction:column}
.mini-avatar{
  width:34px;height:34px;flex:0 0 34px;border-radius:9px;
  display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);
  font-size:11px;font-weight:750;overflow:hidden
}
.logo-mini img{width:100%;height:100%;object-fit:contain;background:#fff;padding:2px}
.clickable-row{cursor:pointer}

.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-top:1px solid var(--line);background:#fff}
.pagination-summary,.page-indicator{color:var(--muted);font-size:11px}
.pagination-controls{display:flex;align-items:center;gap:8px}

.form-shell{max-width:850px}
.form-layout{display:grid;gap:16px}
.form-section{padding:22px}
.form-section-head{padding-bottom:15px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.form-section-head h2{margin:0;font-size:18px;font-weight:690}
.form-section-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 18px}
.form-grid.one-column{grid-template-columns:1fr}
.field{min-width:0}
.field.span-2{grid-column:1/-1}
.field label,.generic-form label,.form-section label{
  display:block;margin-bottom:6px;color:var(--ink-soft);font-size:13px;font-weight:650
}
.form-control,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{
  width:100%;min-height:44px;padding:9px 11px;
  border:1px solid #cfd7e2;border-radius:9px;background:#fff;color:var(--ink);
  font-size:14px;line-height:1.35;
  transition:border .15s ease,box-shadow .15s ease
}
textarea{min-height:110px;resize:vertical}
select[multiple]{min-height:160px}
.form-control:focus,input:focus,select:focus,textarea:focus{outline:0;border-color:#789bc5;box-shadow:0 0 0 3px rgba(77,130,195,.11)}
input[type="checkbox"],input[type="radio"]{width:19px!important;height:19px!important;min-height:19px!important;padding:0;accent-color:var(--primary)}
input[type="file"]{max-width:100%;height:auto;padding:8px;background:var(--surface-subtle)}
.checkbox-field{display:flex;align-items:center;gap:8px;min-height:44px}
.checkbox-field label{margin:0}
.helptext{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45}
.errorlist{margin:5px 0 0;padding-left:18px;color:var(--danger);font-size:11px}
.form-error{margin-bottom:14px;padding:10px 12px;border:1px solid #f0c7c3;border-radius:8px;background:var(--danger-bg);color:var(--danger);font-size:12px}
.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:18px}
.sticky-form-actions{
  position:sticky;bottom:12px;z-index:8;justify-self:end;
  display:flex;align-items:center;gap:8px;padding:8px;
  border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.96);box-shadow:0 9px 30px rgba(16,42,76,.12);backdrop-filter:blur(10px)
}
.generic-form p{margin:0 0 16px}
.generic-form p:last-child{margin-bottom:0}
.guidance-card{align-self:start}
.guidance-card h2{margin:4px 0 8px;font-size:20px}
.guidance-card p,.clean-list{color:var(--muted);font-size:13px;line-height:1.6}
.clean-list{padding-left:18px}
.clean-list li+li{margin-top:6px}
.confirmation-panel{margin-top:18px;padding:17px;border:1px solid #c8d9eb;border-radius:10px;background:var(--surface-blue)}
.confirmation-panel h3{margin:2px 0 6px;font-size:17px}
.confirmation-panel p{margin:0 0 11px;color:var(--muted);font-size:13px}
.preview-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.preview-list span{padding:5px 8px;border:1px solid #d4e0ee;border-radius:8px;background:#fff;color:var(--ink-soft);font-size:11px}
.preview-list small{color:var(--muted)}

.setup-card{position:sticky;top:96px;padding:20px}
.setup-progress-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}
.setup-progress-head strong{color:var(--primary);font-size:18px}
.progress{height:7px;margin:10px 0 16px;border-radius:99px;background:#e9eef4;overflow:hidden}
.progress span{display:block;height:100%;border-radius:99px;background:var(--primary)}
.checklist{display:grid;gap:9px}
.check-item{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.check-item.done{color:var(--ink-soft)}
.checkmark{width:20px;height:20px;display:grid;place-items:center;border-radius:6px;background:#f0f3f7;color:#7a8797;font-weight:700}
.check-item.done .checkmark{background:var(--success-bg);color:var(--success)}
.setup-note{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.5}

.finance-hero{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin-bottom:20px;padding:24px 26px;border:1px solid #cfdcec;border-radius:14px;
  background:linear-gradient(125deg,#f8fbff,#edf4fc)
}
.finance-hero>div:first-child{display:flex;flex-direction:column}
.finance-hero span{color:var(--muted);font-size:12px;font-weight:650}
.finance-hero strong.money{margin:3px 0;font-size:34px;line-height:1.15;letter-spacing:-.03em}
.finance-hero small{color:var(--muted);font-size:11px}
.next-due{display:flex;align-items:center;gap:12px;padding-left:20px;border-left:1px solid #d5e0ed}
.next-due strong{font-size:16px}

.student-hero{
  display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px
}
.student-identity{min-width:0;display:flex;align-items:center;gap:14px}
.student-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:15px;display:grid;place-items:center;background:var(--primary);color:#fff;font-size:18px;font-weight:750}
.student-identity h1{margin:0;font-size:27px;line-height:1.15;font-weight:730;letter-spacing:-.02em}
.identity-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:6px}
.identity-meta>span:not(.badge){padding-right:7px;border-right:1px solid var(--line);color:var(--muted);font-size:11px}
.identity-meta>span:not(.badge):last-of-type{border-right:0}
.tabs{
  display:flex;gap:2px;margin-bottom:18px;padding:4px;
  border:1px solid var(--line);border-radius:10px;background:#fff;overflow-x:auto;scrollbar-width:none
}
.tabs::-webkit-scrollbar{display:none}
.tab{
  min-height:40px;flex:0 0 auto;padding:7px 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;font-weight:650;cursor:pointer
}
.tab:hover{background:var(--surface-subtle);color:var(--ink)}
.tab.active{background:var(--primary-soft);color:var(--primary)}
.tab-panel{display:none}
.tab-panel.active{display:block}
.finance-mini-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.detail-item{padding:10px 0;border-bottom:1px solid var(--line)}
.detail-item small{display:block;margin-bottom:3px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.045em}
.detail-item strong{display:block;color:var(--ink-soft);font-size:13px;overflow-wrap:anywhere}
.account-summary h2{margin:4px 0 11px;font-size:19px}
.payment-instructions{margin-top:16px;padding:13px;border:1px solid var(--line);border-radius:9px;background:var(--surface-subtle);font-size:12px}
.payment-instructions p{margin:6px 0 0;color:var(--muted);line-height:1.55}

.context-select{display:flex;align-items:center;gap:8px}
.context-select label{color:var(--muted);font-size:11px;font-weight:650}
.context-select select{width:auto;min-width:190px}

.gradebook-shell{padding:0;overflow:hidden}
.gradebook-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fff
}
.gradebook-toolbar>div:first-child{display:flex;flex-direction:column}
.gradebook-toolbar small{margin-top:2px;color:var(--muted);font-size:10px}
.gradebook-state{color:var(--success);font-size:12px;font-weight:700}
.gradebook-state.dirty{color:var(--warning)}
.toolbar-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.gradebook-wrap{border:0;border-radius:0;max-height:calc(100vh - 260px)}
.gradebook{min-width:820px}
.gradebook thead th{position:sticky;top:0;z-index:4}
.gradebook .sticky-col{position:sticky;z-index:3;background:#fff}
.gradebook thead .sticky-col{z-index:6;background:var(--surface-subtle)}
.gradebook .col-number{left:0;width:145px;min-width:145px}
.gradebook .col-name{left:145px;width:230px;min-width:230px;box-shadow:4px 0 8px rgba(16,42,76,.04)}
.gradebook .mark-input{min-width:105px}
.gradebook .comment-input{min-width:240px}
.check-cell{text-align:center!important}
.gradebook .check-cell input{width:20px!important;height:20px!important}
.progress-text{font-size:11px;color:var(--muted)}
.progress-text strong{color:var(--ink)}

.auth-body{background:#eef3f8}
.login-language{position:fixed;top:max(16px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));z-index:20}
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(440px,1.05fr) minmax(420px,.95fr)}
.login-hero{
  min-height:100vh;padding:44px 56px;
  display:flex;flex-direction:column;justify-content:space-between;
  background:linear-gradient(145deg,#0d2748,#174b82);color:#fff
}
.auth-brand{color:#fff}
.login-message{max-width:690px;padding:70px 0}
.login-message h1{max-width:680px;margin:0;font-size:48px;line-height:1.07;letter-spacing:-.035em;font-weight:720}
.login-message p{max-width:610px;margin:18px 0 0;color:rgba(255,255,255,.72);font-size:17px;line-height:1.65}
.login-audience{display:flex;gap:10px;flex-wrap:wrap}
.login-audience span{padding:6px 9px;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:rgba(255,255,255,.7);font-size:10px}
.login-panel{display:grid;place-items:center;padding:80px 34px 34px;background:#f6f8fb}
.login-card{width:min(430px,100%);padding:30px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 18px 50px rgba(16,42,76,.09)}
.login-card-head{margin-bottom:22px}
.login-card h2{margin:0;font-size:27px;letter-spacing:-.02em}
.login-card-head p{margin:6px 0 0;color:var(--muted);font-size:13px}
.login-card .field{margin-bottom:15px}
.login-submit{width:100%;margin-top:4px}
.login-help{margin:17px 0 0;color:var(--muted);text-align:center;font-size:11px;line-height:1.55}
.login-card>p{margin:0 0 15px}
.login-card>p label{display:block;margin-bottom:6px;font-size:13px;font-weight:650}

@media(max-width:1240px){
  .global-search{width:min(360px,40vw)}
  .institution-context{max-width:260px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
  .work-grid,.split{grid-template-columns:1fr}
  .settings-layout{grid-template-columns:270px minmax(0,1fr)}
  .search-results-grid{grid-template-columns:1fr}
}
@media(max-width:1024px){
  .layout{display:block}
  .sidebar{
    position:sticky;top:0;height:auto;min-height:68px;
    padding:11px max(16px,env(safe-area-inset-right)) 11px max(16px,env(safe-area-inset-left));
    box-shadow:0 8px 24px rgba(9,29,54,.12)
  }
  .brand-row{padding:0}
  .brand-mark,.brand-logo{width:40px;height:40px;flex-basis:40px}
  .mobile-menu-toggle{
    width:46px;height:46px;min-height:46px;flex:0 0 46px;
    display:inline-flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;
    border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.07);cursor:pointer
  }
  .mobile-menu-toggle span{width:19px;height:2px;border-radius:2px;background:#fff;transition:.15s ease}
  .sidebar.mobile-open .mobile-menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .sidebar.mobile-open .mobile-menu-toggle span:nth-child(2){opacity:0}
  .sidebar.mobile-open .mobile-menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .nav{display:none;max-height:calc(100dvh - 82px);margin-top:12px;padding-bottom:10px}
  .sidebar.mobile-open .nav{display:block}
  .sidebar-foot{display:none}
  .topbar{position:relative;min-height:72px;padding:10px 20px}
  .topbar-primary{gap:16px}
  .institution-context{min-width:160px}
  .global-search{width:auto;flex:1}
  .content{padding:24px 20px 40px}
  .settings-layout{grid-template-columns:1fr}
  .setup-card{position:relative;top:auto}
}
@media(max-width:900px){
  .login-page{grid-template-columns:1fr}
  .login-hero{display:none}
  .login-panel{min-height:100dvh;padding:max(72px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom))}
}
@media(max-width:760px){
  body{font-size:16px}
  .topbar{align-items:stretch;flex-direction:column;gap:8px;padding:10px 16px}
  .topbar-primary{display:grid;grid-template-columns:1fr}
  .institution-context{max-width:none;display:flex;align-items:center;justify-content:space-between;gap:10px}
  .institution-name{font-size:13px}
  .context-chips{margin:0;flex:0 0 auto}
  .global-search{width:100%;min-width:0}
  .global-search input{font-size:16px!important}
  .global-search kbd{display:none}
  .top-actions{justify-content:space-between}
  .language-switcher select{font-size:16px;min-width:126px}
  .user-summary{display:none}
  .content{padding:20px 14px 34px}
  .page-head{flex-direction:column;margin-bottom:19px}
  .page-head h1{font-size:25px}
  .page-head p{font-size:13px}
  .page-actions{width:100%;justify-content:flex-start}
  .page-actions .btn{flex:1 1 auto}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .compact-stats,.finance-mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{padding:16px}
  .stat-value{font-size:24px}
  .section{padding:16px}
  .section-title h2{font-size:18px}
  .filter-panel{align-items:stretch}
  .filter-search{min-width:100%;flex-basis:100%}
  .filter-search input{font-size:16px!important}
  .filter-panel select{min-width:0;flex:1 1 150px;font-size:16px}
  .filter-panel .btn{flex:1 1 auto}
  .form-grid{grid-template-columns:1fr}
  .field.span-2{grid-column:auto}
  .form-control,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{font-size:16px}
  .finance-hero{align-items:flex-start;flex-direction:column;padding:20px}
  .finance-hero strong.money{font-size:30px}
  .next-due{width:100%;padding:15px 0 0;border-left:0;border-top:1px solid #d5e0ed;flex-wrap:wrap}
  .student-hero{align-items:flex-start;flex-direction:column}
  .student-identity h1{font-size:24px}
  .detail-list{grid-template-columns:1fr}
  .compact-actions{grid-template-columns:1fr}
  .pagination{align-items:flex-start;flex-direction:column}
  .pagination-controls{width:100%;justify-content:space-between}
  .toolbar-actions{width:100%}
  .gradebook-toolbar{align-items:flex-start;flex-direction:column}
  .table.responsive-table{display:block;min-width:0}
  .responsive-table thead{display:none}
  .responsive-table tbody{display:grid;gap:10px;padding:10px;background:var(--bg)}
  .responsive-table tr{display:block;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
  .responsive-table td{
    display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
    padding:10px 12px;border-bottom:1px solid var(--line);text-align:right!important;background:#fff!important
  }
  .responsive-table td:last-child{border-bottom:0}
  .responsive-table td::before{
    content:attr(data-label);flex:0 0 38%;color:var(--muted);
    font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;text-align:left
  }
  .responsive-table td>*{min-width:0}
  .responsive-table .person-cell{justify-content:flex-end}
  .message-cell{min-width:0;max-width:none}
  .sticky-form-actions{position:relative;bottom:auto;justify-self:stretch;justify-content:flex-end}
}
@media(max-width:520px){
  .brand-title{font-size:18px}
  .content{padding:17px 12px 30px}
  .page-head h1{font-size:23px}
  .stats,.compact-stats,.finance-mini-stats{grid-template-columns:1fr}
  .card{border-radius:10px}
  .stat{padding:15px}
  .stat-value{font-size:25px}
  .page-actions{display:grid;grid-template-columns:1fr 1fr}
  .page-actions .btn:last-child:nth-child(odd){grid-column:1/-1}
  .form-actions,.sticky-form-actions{flex-direction:column-reverse;align-items:stretch}
  .form-actions .btn,.sticky-form-actions .btn{width:100%}
  .student-avatar{width:50px;height:50px;flex-basis:50px;border-radius:13px}
  .student-identity{align-items:flex-start}
  .identity-meta{gap:5px}
  .context-chips{display:none}
  .language-switcher select{min-width:112px}
  .user-menu summary{padding-right:2px}
  .tabs{margin-left:-2px;margin-right:-2px}
  .tab{font-size:11px}
}
@media(max-height:520px) and (orientation:landscape) and (max-width:1024px){
  .sidebar{position:relative}
  .nav{max-height:none}
  .login-panel{min-height:auto;padding-top:66px}
}
@media(hover:none) and (pointer:coarse){
  .stat-link:hover,.task-row:hover,.stack-row:hover,.btn:active{transform:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Phase finance et résilience réseau */
.executive-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.invoice-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.notification-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.operational-strip{
  display:flex;align-items:stretch;gap:1px;margin:0 0 20px;
  border:1px solid var(--line);border-radius:11px;background:var(--line);overflow:hidden
}
.operational-strip>a,.operational-strip>span{
  min-width:0;flex:1;display:flex;align-items:baseline;gap:8px;
  padding:12px 15px;background:#fff
}
.operational-strip a:hover{background:var(--surface-subtle)}
.operational-strip span,.operational-strip b{color:var(--ink);font-size:17px;font-weight:730}
.operational-strip small{color:var(--muted);font-size:11px}
.analytics-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;margin-bottom:20px}
.mini-chart{display:grid;gap:10px}
.chart-row{display:grid;grid-template-columns:58px minmax(80px,1fr) 96px;align-items:center;gap:10px}
.chart-label{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.chart-track{height:8px;border-radius:99px;background:#e9eef4;overflow:hidden}
.chart-fill{display:block;height:100%;min-width:2px;border-radius:99px;background:var(--primary)}
.chart-row strong{text-align:right;font-size:11px}
.cashier-search{padding:20px}
.cashier-search-form{display:flex;align-items:center;gap:10px}
.cashier-search-input{
  height:52px;min-width:0;flex:1;display:flex;align-items:center;gap:10px;
  padding:0 14px;border:1px solid var(--line-strong);border-radius:10px;background:#fff
}
.cashier-search-input:focus-within{border-color:#789bc5;box-shadow:0 0 0 3px rgba(77,130,195,.11)}
.cashier-search-input svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.cashier-search-input input{min-height:0!important;padding:0!important;border:0!important;box-shadow:none!important;font-size:16px!important}
.cashier-search>p{margin:8px 0 0;color:var(--muted);font-size:11px}
.cashier-results{display:grid;gap:9px}
.cashier-student{
  display:grid;grid-template-columns:minmax(220px,1fr) 180px auto;align-items:center;gap:16px;
  padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle)
}
.cashier-balance{display:flex;flex-direction:column}
.cashier-balance small,.cashier-selected small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.cashier-balance strong{font-size:16px}
.cashier-actions{display:flex;align-items:center;gap:7px}
.cashier-selected{
  display:grid;grid-template-columns:minmax(220px,1fr) 190px auto;align-items:center;gap:16px;
  padding:15px 17px
}
.cashier-selected>div:nth-child(2){display:flex;flex-direction:column}
.cashier-selected>div:nth-child(2) strong{font-size:18px}
.finance-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.family-payment-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-pay-button{width:100%;margin-top:14px}
.payment-flow{display:flex;align-items:flex-start;gap:10px;margin-top:14px}
.payment-flow>span{
  width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;
  border-radius:8px;background:var(--primary-soft);color:var(--primary);font-size:12px;font-weight:750
}
.payment-flow p{margin:0!important;display:flex;flex-direction:column}
.payment-flow strong{font-size:12px}
.payment-flow small{margin-top:2px;color:var(--muted);font-size:10px}
.connection-status{
  position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:100;
  transform:translateX(-50%);max-width:calc(100vw - 28px);
  padding:9px 13px;border:1px solid #e6c67b;border-radius:999px;
  background:#fff6df;color:#74500c;box-shadow:0 10px 30px rgba(16,42,76,.15);
  font-size:11px;font-weight:700;text-align:center
}
.offline-body{min-height:100dvh;display:grid;place-items:center;padding:24px;background:var(--bg)}
.offline-card{
  width:min(520px,100%);padding:30px;border:1px solid var(--line);border-radius:14px;
  background:#fff;box-shadow:var(--shadow-soft);text-align:center
}
.offline-card img{margin:0 auto 16px;border-radius:16px}
.offline-card h1{margin:0;font-size:28px}
.offline-card p{margin:10px auto 18px;color:var(--muted);font-size:13px;line-height:1.6}
.offline-card small{display:block;margin-top:18px;color:var(--muted);font-size:10px;line-height:1.5}
.compact-finance-hero{min-height:120px}
.badge-delivered,.badge-completed{background:var(--success-bg);color:var(--success)}

@media(max-width:1240px){
  .invoice-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .analytics-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .cashier-student,.cashier-selected{grid-template-columns:1fr auto}
  .cashier-student .cashier-actions{grid-column:1/-1;justify-content:flex-end}
  .cashier-selected>a{grid-column:1/-1;justify-self:start}
}
@media(max-width:760px){
  .executive-stats,.invoice-stats,.notification-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .operational-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .operational-strip>a,.operational-strip>span{min-height:58px}
  .cashier-search-form{align-items:stretch;flex-direction:column}
  .cashier-search-form .btn{width:100%}
  .cashier-student,.cashier-selected{grid-template-columns:1fr}
  .cashier-student .cashier-actions,.cashier-selected>a{grid-column:auto;justify-self:stretch}
  .cashier-actions .btn{flex:1}
  .chart-row{grid-template-columns:48px minmax(70px,1fr) 82px;gap:7px}
  .finance-toolbar .btn{flex:1 1 auto}
  .family-payment-actions{width:100%}
  .family-payment-actions .btn{flex:1 1 auto}
}
@media(max-width:520px){
  .executive-stats,.invoice-stats,.notification-stats{grid-template-columns:1fr}
  .operational-strip{grid-template-columns:1fr 1fr}
  .chart-row{grid-template-columns:42px minmax(50px,1fr) 72px}
}

/* Student identity portrait */
.student-dashboard-head{align-items:flex-start}
.student-profile-corner,.student-id-portrait{
  width:96px;flex:0 0 96px;display:flex;flex-direction:column;align-items:center;gap:7px
}
.student-profile-corner img,.student-id-portrait img,.portrait-current img,.portrait-review-image img{
  width:88px;height:116px;object-fit:cover;object-position:center 35%;
  border:1px solid var(--line);border-radius:9px;background:#eef2f6
}
.student-profile-corner .badge,.student-id-portrait .badge{max-width:100%;text-align:center}
.portrait-fallback{
  width:88px;height:116px;display:grid;place-items:center;border:1px solid var(--line);
  border-radius:9px;background:var(--primary-soft);color:var(--primary);
  font-size:24px;font-weight:780;letter-spacing:.04em
}
.portrait-edit-link{font-size:11px;font-weight:700;color:var(--primary)}
.student-hero-right{display:flex;align-items:flex-start;gap:16px}
.student-hero-right .page-actions{align-self:center}
.badge-portrait-pending{background:#fff3d6;color:#7a5100}
.badge-portrait-approved{background:var(--success-bg);color:var(--success)}
.badge-portrait-replacement_required{background:var(--danger-bg);color:var(--danger)}
.badge-muted{background:#edf1f5;color:var(--muted)}
.profile-alert{margin-bottom:16px}
.portrait-current{
  display:flex;align-items:center;gap:16px;margin-bottom:18px;padding:14px;
  border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle)
}
.portrait-current>div{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.portrait-current small{color:var(--muted);font-size:10px}
.portrait-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.portrait-rules>div{padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-subtle)}
.portrait-rules strong{display:block;font-size:11px}
.portrait-rules small{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}
.portrait-stats{grid-template-columns:repeat(2,minmax(0,220px))}
.portrait-review-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-top:16px
}
.portrait-review-card{overflow:hidden}
.portrait-review-image{display:block;background:#eef2f6;aspect-ratio:3/4;overflow:hidden}
.portrait-review-image img{width:100%;height:100%;border:0;border-radius:0;object-fit:cover;object-position:center 35%}
.portrait-review-body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px}
.portrait-review-body>div{display:flex;flex-direction:column}
.portrait-review-body strong{font-size:13px}
.portrait-review-body small{color:var(--muted);font-size:9.5px}
.portrait-review-actions{display:flex;gap:7px;padding:0 12px 12px}
.portrait-review-actions form{flex:1}
.portrait-review-actions .btn{width:100%}
@media(max-width:900px){
  .student-hero-right{flex-direction:column;align-items:flex-end}
  .student-hero-right .page-actions{align-self:auto}
}
@media(max-width:760px){
  .student-profile-corner,.student-id-portrait{width:72px;flex-basis:72px}
  .student-profile-corner img,.student-id-portrait img,.portrait-fallback{width:66px;height:88px}
  .student-dashboard-head{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .student-dashboard-head .student-profile-corner{grid-column:2;grid-row:1}
  .student-hero{align-items:flex-start}
  .student-hero-right{gap:10px}
  .portrait-rules{grid-template-columns:1fr}
  .portrait-review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media(max-width:520px){
  .portrait-review-grid{grid-template-columns:1fr 1fr}
  .portrait-review-actions{flex-direction:column}
}


/* Academia platform identity */
.platform-brand{
  width:100%;
  justify-content:flex-start;
}
.platform-brand-logo{
  display:block;
  width:150px;
  height:auto;
  max-height:112px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.auth-brand{
  width:100%;
}
.auth-brand-logo{
  display:block;
  width:min(280px,72%);
  height:auto;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.offline-brand-logo{
  display:block;
  width:min(190px,62vw);
  height:auto;
  margin:0 auto 20px;
}

@media(max-width:1024px){
  .platform-brand{
    width:auto;
  }
  .platform-brand-logo{
    width:92px;
    max-height:66px;
  }
}
@media(max-width:640px){
  .auth-brand-logo{
    width:min(220px,72vw);
  }
  .platform-brand-logo{
    width:84px;
    max-height:60px;
  }
}

/* Academia master brand: full network logo */
.platform-brand{
  width:100%;
  min-width:0;
  padding:10px 12px;
  justify-content:center;
  border-radius:15px;
  background:#ffffff;
  box-shadow:0 8px 22px rgba(4,20,40,.16);
}
.platform-brand-logo{
  display:block;
  width:100%;
  max-width:178px;
  max-height:116px;
  height:auto;
  object-fit:contain;
  filter:none;
}
.auth-brand{
  width:max-content;
  max-width:100%;
  padding:14px 18px;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 16px 40px rgba(4,20,40,.18);
}
.auth-brand-logo{
  display:block;
  width:min(300px,72vw);
  max-height:300px;
  height:auto;
  object-fit:contain;
  filter:none;
}
@media(max-width:1024px){
  .platform-brand{
    width:118px;
    flex:0 0 118px;
    padding:5px 8px;
    border-radius:11px;
  }
  .platform-brand-logo{
    width:100%;
    max-width:104px;
    max-height:58px;
  }
}
@media(max-width:640px){
  .platform-brand{
    width:104px;
    flex-basis:104px;
  }
  .platform-brand-logo{
    max-width:90px;
    max-height:52px;
  }
  .auth-brand{
    padding:12px 14px;
  }
  .auth-brand-logo{
    width:min(240px,72vw);
  }
}


/* Platform dashboard logo in the top navigation */
.platform-topbar-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:inherit;
}
.platform-topbar-brand img{
  display:block;
  height:58px;
  width:auto;
  max-width:92px;
  object-fit:contain;
  flex:0 0 auto;
}
.platform-topbar-brand .institution-name{
  font-size:14px;
  font-weight:750;
}
@media(max-width:1240px){
  .platform-topbar-brand{gap:9px}
  .platform-topbar-brand img{height:52px;max-width:82px}
  .platform-topbar-brand .institution-name{font-size:13px}
}
@media(max-width:760px){
  .platform-topbar-brand img{height:44px;max-width:70px}
  .platform-topbar-brand .institution-name{display:none}
  .platform-topbar-brand{width:max-content}
}


/* Academia dashboard and navigation polish — 2026-08-31 */
:root{
  --sidebar-width:244px;
  --radius:13px;
  --radius-sm:8px;
  --shadow-soft:0 1px 2px rgba(15,42,76,.035),0 8px 24px rgba(15,42,76,.045);
}

.sidebar{
  padding:20px 13px 17px;
  background:linear-gradient(180deg,#102d50 0%,#0d2949 100%);
  border-right:1px solid rgba(255,255,255,.045);
}
@media(min-width:1025px){
  .sidebar .brand-row{display:none}
  .sidebar .nav{margin-top:0}
}
.nav{
  margin-top:18px;
  padding-right:1px;
}
.nav-section{
  margin:24px 12px 8px;
  color:rgba(221,234,249,.52);
  font-size:9.5px;
  font-weight:760;
  letter-spacing:.14em;
}
.nav-section:first-child{margin-top:0}
.nav a{
  min-height:46px;
  gap:11px;
  margin:3px 0;
  padding:10px 12px;
  border-radius:9px;
  color:#dbe7f4;
  font-size:13.5px;
  font-weight:590;
  letter-spacing:-.005em;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.nav a:hover{
  background:rgba(255,255,255,.065);
  color:#fff;
}
.nav a.active{
  background:linear-gradient(90deg,rgba(92,146,208,.24),rgba(255,255,255,.09));
  color:#fff;
  font-weight:690;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
}
.nav a.active::before{
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  background:#9cc8ff;
}
.nav-icon{
  width:18px;
  height:18px;
  flex-basis:18px;
  opacity:.82;
  stroke-width:1.75;
}
.nav a.active .nav-icon{opacity:1}
.sidebar-foot{
  margin-top:auto;
  padding:16px 10px 0;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(225,236,249,.52);
  font-size:10.5px;
  line-height:1.55;
}

.topbar{
  min-height:72px;
  padding:8px 28px;
  border-bottom:1px solid #e5eaf0;
  background:rgba(255,255,255,.975);
  box-shadow:0 1px 10px rgba(16,42,76,.035);
}
.topbar-primary{gap:20px}
.institution-context.platform-context{
  min-width:112px;
  max-width:128px;
  flex:0 0 112px;
}
.platform-topbar-brand{
  width:100%;
  justify-content:center;
}
.platform-topbar-brand img{
  height:46px;
  width:auto;
  max-width:76px;
}
.global-search{
  width:min(520px,48vw);
  height:42px;
  border-color:#dde4ec;
  border-radius:9px;
  background:#f8fafc;
}
.global-search:hover{border-color:#d0d9e4;background:#fff}
.global-search input{font-size:12.5px!important}
.global-search kbd{
  border-color:#e1e6ec;
  background:#fff;
  color:#8490a0;
}
.top-actions{gap:9px}
.language-switcher select{
  min-width:116px;
  height:40px;
  min-height:40px;
  border-radius:8px;
  border-color:#dde4ec;
  background:#fff;
}
.user-menu summary{
  min-height:44px;
  padding:4px 6px;
  border-radius:9px;
}
.user-avatar{
  width:34px;
  height:34px;
  border-radius:9px;
}
.user-summary strong{font-size:11.5px}
.user-summary small{font-size:9.5px}

.content{
  max-width:1500px;
  padding:28px 32px 42px;
}
.btn{
  border-radius:8px;
  font-weight:670;
  box-shadow:none;
}
.btn svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.btn-primary{
  box-shadow:0 5px 14px rgba(23,63,122,.13);
}
.btn-primary:hover{box-shadow:0 6px 18px rgba(23,63,122,.18)}
.btn-secondary{background:#f7f9fc}
.card{
  border-color:#e0e6ee;
  box-shadow:var(--shadow-soft);
}

.platform-dashboard{width:100%}
.platform-page-head{
  align-items:flex-end;
  margin-bottom:22px;
}
.platform-heading-copy{max-width:780px}
.platform-page-head .eyebrow{
  margin-bottom:7px;
  font-size:10px;
  letter-spacing:.12em;
}
.platform-page-head h1{
  font-size:30px;
  line-height:1.12;
  letter-spacing:-.03em;
  font-weight:750;
}
.platform-page-head p{
  margin-top:7px;
  color:#687587;
  font-size:13.5px;
}
.platform-page-actions{
  padding-bottom:1px;
  gap:9px;
}

.platform-stats{
  gap:14px;
  margin-bottom:14px;
}
.platform-stat{
  position:relative;
  min-height:132px;
  padding:17px 18px 16px;
  overflow:hidden;
  border-radius:13px;
  background:linear-gradient(180deg,#fff 0%,#fdfefe 100%);
}
.platform-stat::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:linear-gradient(90deg,rgba(23,63,122,.52),rgba(23,63,122,0));
  opacity:.52;
}
.platform-stat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.platform-stat .stat-label{
  max-width:calc(100% - 46px);
  color:#5e6d80;
  font-size:10.5px;
  letter-spacing:.07em;
}
.platform-stat-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#eef4fb;
  color:#214f88;
}
.platform-stat-icon.warning{
  background:#fff5e3;
  color:#8a5a08;
}
.platform-stat-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.platform-stat .stat-value{
  margin-top:8px;
  font-size:29px;
  font-weight:760;
}
.platform-stat .stat-note{
  margin-top:4px;
  font-size:11.5px;
}
.platform-stat.stat-link:hover{
  border-color:#cbd9e9;
  box-shadow:0 10px 24px rgba(16,42,76,.075);
  transform:translateY(-2px);
}

.platform-operational{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 16px;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
}
.platform-operational>.platform-operational-item{
  min-height:64px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 14px;
  border:1px solid #e0e6ee;
  border-radius:11px;
  background:#fff;
  box-shadow:0 1px 2px rgba(16,42,76,.025);
}
.platform-operational .platform-operational-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f2f6fb;
  color:#315d91;
  font-size:inherit;
  font-weight:inherit;
}
.platform-operational-icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.platform-operational .platform-operational-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  color:inherit;
  font-size:inherit;
  font-weight:inherit;
}
.platform-operational .platform-operational-copy b{
  color:var(--ink);
  font-size:18px;
  line-height:1.1;
  font-weight:760;
}
.platform-operational .platform-operational-copy small{
  color:#6d798a;
  font-size:10.5px;
  line-height:1.35;
}

.platform-recent{
  margin-top:0;
  padding:0;
  overflow:hidden;
  border-radius:13px;
}
.platform-section-title{
  align-items:center;
  margin:0;
  padding:17px 18px;
  border-bottom:1px solid #e7ebf1;
}
.platform-section-title .section-kicker{
  margin-bottom:4px;
  font-size:9.5px;
  letter-spacing:.12em;
}
.platform-section-title h2{
  font-size:18px;
  font-weight:710;
}
.platform-recent-list{padding:0 18px}
.platform-recent-list .stack-row{
  padding:13px 2px;
}
.platform-empty-state{
  min-height:210px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px 20px 32px;
}
.platform-empty-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  margin-bottom:11px;
  border-radius:12px;
  background:#f1f5fa;
  color:#456b98;
}
.platform-empty-icon svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.platform-empty-state strong{
  font-size:14px;
  font-weight:710;
}
.platform-empty-state p{
  max-width:430px;
  margin:5px auto 13px;
  color:#738092;
  font-size:12px;
}
.platform-empty-state .btn{min-height:36px}

@media(max-width:1240px){
  .institution-context.platform-context{
    min-width:96px;
    max-width:104px;
    flex-basis:96px;
  }
  .platform-topbar-brand img{height:42px;max-width:68px}
  .global-search{width:min(440px,44vw)}
  .platform-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1024px){
  .sidebar{
    padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));
    border-right:0;
  }
  .sidebar .brand-row{display:flex}
  .sidebar .nav{margin-top:12px}
  .platform-brand{
    padding:4px 7px;
    border-radius:9px;
    box-shadow:none;
  }
  .platform-brand-logo{max-height:50px}
  .topbar{padding:8px 20px}
}
@media(max-width:760px){
  .topbar{padding:9px 15px}
  .institution-context.platform-context{
    min-width:0;
    max-width:none;
    flex:1 1 auto;
  }
  .platform-topbar-brand{justify-content:flex-start}
  .platform-topbar-brand img{height:40px;max-width:64px}
  .content{padding:20px 14px 34px}
  .platform-page-head{align-items:flex-start;margin-bottom:18px}
  .platform-page-head h1{font-size:25px}
  .platform-page-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .platform-page-actions .btn{width:100%}
  .platform-stats{gap:10px}
  .platform-stat{min-height:122px;padding:15px}
  .platform-operational{grid-template-columns:1fr}
  .platform-operational>.platform-operational-item{min-height:58px}
  .platform-section-title{padding:15px}
  .platform-recent-list{padding:0 14px}
}
@media(max-width:520px){
  .platform-page-actions{grid-template-columns:1fr}
  .platform-stats{grid-template-columns:1fr}
  .platform-stat{min-height:116px}
  .platform-empty-state{min-height:190px;padding:24px 16px 27px}
}


/* Logout must submit POST with CSRF (Django 5+) */
.user-popover .logout-form{margin:0}
.user-popover .logout-link{
  width:100%;
  display:block;
  padding:10px 11px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--ink-soft);
  font:inherit;
  font-size:13px;
  font-weight:550;
  text-align:left;
  cursor:pointer;
}
.user-popover .logout-link:hover{background:var(--surface-subtle)}


/* Academia premium login — 2026-08-31 */
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.auth-body-premium{
  min-height:100dvh;
  overflow-x:hidden;
  background:#f5f7fa;
}
.login-page.login-premium{
  min-height:100dvh;
  display:grid;
  grid-template-columns:minmax(480px,1fr) minmax(480px,1fr);
  background:#f5f7fa;
}

.login-premium .login-hero{
  min-height:100dvh;
  padding:0;
  display:block;
  position:relative;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 15% 12%,rgba(82,142,205,.20),transparent 34%),
    radial-gradient(circle at 84% 80%,rgba(26,83,143,.26),transparent 36%),
    linear-gradient(145deg,#0d294b 0%,#123963 55%,#0d2d52 100%);
}
.login-premium .login-hero::after{
  content:"";
  position:absolute;
  inset:auto -120px -140px auto;
  width:420px;
  height:420px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:50%;
  box-shadow:
    0 0 0 70px rgba(255,255,255,.016),
    0 0 0 140px rgba(255,255,255,.010);
  pointer-events:none;
}
.login-hero-inner{
  position:relative;
  z-index:1;
  width:min(620px,100%);
  min-height:100dvh;
  margin:0 auto;
  padding:54px 58px 46px;
  display:flex;
  flex-direction:column;
}
.login-hero-brand{
  width:176px;
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 16px 34px rgba(2,18,38,.20);
}
.login-hero-brand img{
  display:block;
  width:100%;
  max-height:92px;
  object-fit:contain;
}
.login-hero-copy{
  margin:auto 0;
  padding:48px 0 40px;
  max-width:560px;
}
.login-overline{
  display:inline-block;
  margin-bottom:16px;
  color:#bcd7f4;
  font-size:11px;
  line-height:1.2;
  font-weight:760;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.login-hero-copy h1{
  max-width:540px;
  margin:0;
  color:#fff;
  font-size:42px;
  line-height:1.08;
  font-weight:730;
  letter-spacing:-.035em;
}
.login-hero-copy>p{
  max-width:520px;
  margin:18px 0 0;
  color:rgba(237,245,253,.76);
  font-size:15.5px;
  line-height:1.65;
}
.login-benefits{
  display:grid;
  gap:14px;
  margin-top:34px;
  max-width:520px;
}
.login-benefit{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:0;
}
.login-benefit-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  margin-top:7px;
  border-radius:50%;
  background:#9cc8ff;
  box-shadow:0 0 0 4px rgba(156,200,255,.10);
}
.login-benefit>span:last-child{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.login-benefit strong{
  color:#fff;
  font-size:13.5px;
  line-height:1.35;
  font-weight:670;
}
.login-benefit small{
  margin-top:2px;
  color:rgba(229,240,251,.62);
  font-size:11.5px;
  line-height:1.45;
}
.login-hero-foot{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(232,241,251,.62);
}
.login-hero-foot span{
  font-size:11px;
  font-weight:730;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.login-hero-foot small{
  padding-left:8px;
  border-left:1px solid rgba(255,255,255,.16);
  font-size:10.5px;
  letter-spacing:.02em;
}

.login-premium .login-panel{
  position:relative;
  min-height:100dvh;
  padding:0;
  display:grid;
  grid-template-rows:auto 1fr auto;
  place-items:stretch;
  background:
    radial-gradient(circle at 88% 10%,rgba(23,63,122,.035),transparent 28%),
    #f6f8fb;
}
.login-panel-top{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding:28px 32px 0;
}
.login-language-switcher select{
  width:auto;
  min-width:132px;
  height:44px;
  min-height:44px;
  padding:0 34px 0 13px;
  border:1px solid #d8e0e9;
  border-radius:10px;
  background:#fff;
  color:#243247;
  font-size:12px;
  font-weight:680;
  box-shadow:0 1px 2px rgba(16,42,76,.025);
}
.login-language-switcher select:hover{border-color:#c7d2df}

.login-panel-center{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px 46px 48px;
}
.login-mobile-brand{display:none}
.login-card.login-card-premium{
  width:min(440px,100%);
  margin:0;
  padding:36px 36px 30px;
  border:1px solid #dfe6ee;
  border-radius:16px;
  background:#fff;
  box-shadow:
    0 1px 2px rgba(15,42,76,.035),
    0 18px 46px rgba(15,42,76,.075);
}
.login-card-premium .login-card-head{
  margin-bottom:28px;
}
.login-card-premium .eyebrow{
  margin-bottom:9px;
  color:#245087;
  font-size:10px;
  letter-spacing:.13em;
}
.login-card-premium h2{
  margin:0;
  color:#142238;
  font-size:32px;
  line-height:1.12;
  font-weight:740;
  letter-spacing:-.03em;
}
.login-card-premium .login-card-head p{
  margin:8px 0 0;
  color:#697789;
  font-size:13.5px;
  line-height:1.5;
}

.login-card-premium .login-field{
  margin-bottom:18px;
}
.login-card-premium .login-field label{
  display:block;
  margin-bottom:7px;
  color:#2e3c50;
  font-size:12px;
  line-height:1.3;
  font-weight:690;
}
.login-card-premium .login-field>input,
.login-card-premium .password-field-wrap>input{
  width:100%;
  height:50px;
  min-height:50px;
  padding:0 14px;
  border:1px solid #ccd6e1;
  border-radius:10px;
  background:#fff;
  color:#15243a;
  font-size:15px;
  line-height:1;
  box-shadow:0 1px 2px rgba(16,42,76,.02);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.login-card-premium .login-field>input:hover,
.login-card-premium .password-field-wrap>input:hover{
  border-color:#b9c7d6;
}
.login-card-premium .login-field>input:focus,
.login-card-premium .password-field-wrap>input:focus{
  outline:0;
  border-color:#6f96c1;
  background:#fff;
  box-shadow:0 0 0 4px rgba(66,112,164,.10);
}
.login-card-premium input:-webkit-autofill,
.login-card-premium input:-webkit-autofill:hover,
.login-card-premium input:-webkit-autofill:focus{
  -webkit-text-fill-color:#15243a;
  -webkit-box-shadow:0 0 0 1000px #fff inset;
  transition:background-color 9999s ease-out 0s;
}
.password-field-wrap{
  position:relative;
}
.login-card-premium .password-field-wrap>input{
  padding-right:48px;
}
.password-toggle{
  position:absolute;
  top:50%;
  right:8px;
  width:36px;
  height:36px;
  min-height:36px;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#68778a;
  cursor:pointer;
}
.password-toggle:hover{
  background:#f2f6fa;
  color:#244f84;
}
.password-toggle:focus-visible{
  outline:2px solid rgba(77,130,195,.44);
  outline-offset:1px;
}
.password-toggle svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.password-toggle .eye-closed{display:none}
.password-visible .password-toggle .eye-open{display:none}
.password-visible .password-toggle .eye-closed{display:block}

.login-card-premium .login-submit{
  width:100%;
  min-height:50px;
  margin-top:4px;
  padding:11px 16px;
  display:flex;
  justify-content:center;
  gap:10px;
  border-radius:10px;
  background:#18477f;
  box-shadow:0 8px 18px rgba(24,71,127,.16);
  font-size:14px;
  font-weight:700;
}
.login-card-premium .login-submit:hover{
  background:#123c6e;
  box-shadow:0 10px 22px rgba(24,71,127,.20);
}
.login-submit-arrow{
  font-size:17px;
  line-height:1;
  transition:transform .16s ease;
}
.login-submit:hover .login-submit-arrow{transform:translateX(2px)}

.login-support{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #edf0f4;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  text-align:center;
}
.login-support strong{
  color:#4d5c70;
  font-size:11.5px;
  font-weight:680;
}
.login-support span{
  max-width:330px;
  color:#7b8796;
  font-size:10.5px;
  line-height:1.5;
}
.login-form-error{
  margin:-4px 0 18px;
  padding:11px 12px;
  border-radius:9px;
  font-size:11.5px;
}
.login-field-error{
  margin-top:5px;
  color:var(--danger);
  font-size:10.5px;
}
.login-field-error ul{
  margin:0;
  padding-left:16px;
}

.login-panel-foot{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 24px 18px;
  color:#8a95a3;
}
.login-panel-foot span{
  font-size:10.5px;
  font-weight:700;
}
.login-panel-foot small{
  font-size:10.5px;
}

@media(max-width:1180px){
  .login-page.login-premium{
    grid-template-columns:minmax(420px,.92fr) minmax(470px,1.08fr);
  }
  .login-hero-inner{
    padding:48px 42px 42px;
  }
  .login-hero-copy h1{font-size:37px}
  .login-hero-copy>p{font-size:14.5px}
}
@media(max-width:900px){
  .login-page.login-premium{
    display:block;
    min-height:100dvh;
  }
  .login-premium .login-hero{display:none}
  .login-premium .login-panel{
    min-height:100dvh;
  }
  .login-panel-top{
    padding:18px 18px 0;
  }
  .login-panel-center{
    padding:24px 20px 34px;
  }
  .login-mobile-brand{
    display:flex;
    justify-content:center;
    margin:0 auto 20px;
  }
  .login-mobile-brand img{
    display:block;
    width:132px;
    max-height:92px;
    object-fit:contain;
  }
  .login-card.login-card-premium{
    padding:32px 30px 28px;
  }
}
@media(max-width:520px){
  .login-panel-top{
    padding:14px 14px 0;
  }
  .login-language-switcher select{
    min-width:120px;
    height:42px;
    min-height:42px;
    font-size:13px;
  }
  .login-panel-center{
    align-items:flex-start;
    padding:18px 14px 24px;
  }
  .login-mobile-brand{
    margin-bottom:14px;
  }
  .login-mobile-brand img{
    width:112px;
    max-height:78px;
  }
  .login-card.login-card-premium{
    padding:26px 20px 22px;
    border-radius:14px;
    box-shadow:0 10px 28px rgba(15,42,76,.065);
  }
  .login-card-premium .login-card-head{margin-bottom:23px}
  .login-card-premium h2{font-size:28px}
  .login-card-premium .login-card-head p{font-size:13px}
  .login-card-premium .login-field label{font-size:12.5px}
  .login-card-premium .login-field>input,
  .login-card-premium .password-field-wrap>input{
    height:50px;
    min-height:50px;
    font-size:16px;
  }
  .login-card-premium .login-submit{
    min-height:50px;
    font-size:15px;
  }
  .login-panel-foot{
    min-height:44px;
    padding-bottom:max(12px,env(safe-area-inset-bottom));
  }
}
@media(max-height:720px) and (min-width:901px){
  .login-hero-inner{padding-top:34px;padding-bottom:30px}
  .login-hero-brand{width:152px;min-height:94px}
  .login-hero-copy{padding:30px 0}
  .login-hero-copy h1{font-size:35px}
  .login-benefits{margin-top:24px;gap:10px}
  .login-panel-center{padding-top:18px;padding-bottom:24px}
  .login-card.login-card-premium{padding-top:30px;padding-bottom:26px}
}


/* Login ergonomics refinement — single-brand layout */
.login-page.login-premium{
  grid-template-columns:minmax(430px,.88fr) minmax(520px,1.12fr);
}
.login-hero-inner{
  width:min(560px,100%);
  padding:50px 48px 42px;
}
.login-hero-brand{
  width:156px;
  min-height:100px;
  padding:10px 12px;
}
.login-hero-brand img{max-height:80px}
.login-hero-copy{
  max-width:500px;
  padding:42px 0 34px;
}
.login-hero-copy h1{
  max-width:500px;
  font-size:38px;
}
.login-hero-copy>p{
  max-width:480px;
  font-size:14.5px;
}
.login-benefits{
  max-width:480px;
  gap:12px;
  margin-top:28px;
}

.login-panel-center{
  padding:28px 54px 42px;
}
.login-card.login-card-premium{
  width:min(420px,100%);
  padding:34px 34px 28px;
}
.login-card-premium .login-card-head{margin-bottom:24px}
.login-card-premium h2{font-size:30px}
.login-card-premium .login-field{margin-bottom:16px}
.login-card-premium .login-submit{margin-top:6px}
.login-panel-top{padding:24px 28px 0}
.login-panel-foot{padding-bottom:16px}

/* Remove the secondary/right-side logo completely */
.login-mobile-brand{display:none!important}

@media(max-width:900px){
  .login-page.login-premium{
    display:grid;
    grid-template-columns:1fr;
    min-height:100dvh;
  }
  .login-premium .login-hero{
    display:block;
    min-height:auto;
    height:118px;
    overflow:visible;
  }
  .login-hero-inner{
    min-height:118px;
    width:100%;
    padding:14px 18px;
    display:flex;
    justify-content:center;
  }
  .login-hero-brand{
    width:118px;
    min-height:88px;
    padding:8px 10px;
    border-radius:12px;
    box-shadow:0 10px 24px rgba(2,18,38,.16);
  }
  .login-hero-brand img{max-height:72px}
  .login-hero-copy,
  .login-hero-foot{display:none}
  .login-premium .login-panel{
    min-height:calc(100dvh - 118px);
  }
  .login-panel-top{
    padding:14px 18px 0;
  }
  .login-panel-center{
    padding:18px 20px 30px;
  }
}
@media(max-width:520px){
  .login-premium .login-hero{height:104px}
  .login-hero-inner{
    min-height:104px;
    padding:10px 14px;
  }
  .login-hero-brand{
    width:104px;
    min-height:78px;
    padding:7px 9px;
  }
  .login-hero-brand img{max-height:64px}
  .login-premium .login-panel{
    min-height:calc(100dvh - 104px);
  }
  .login-panel-top{padding:10px 14px 0}
  .login-panel-center{padding:14px 14px 22px}
  .login-card.login-card-premium{
    padding:24px 18px 20px;
  }
}


/* Self registration, approvals and pending access — 2026-08-31 */
.login-register-divider{
  display:flex;align-items:center;gap:12px;margin:18px 0 12px;color:#8792a1;font-size:10.5px
}
.login-register-divider::before,.login-register-divider::after{
  content:"";height:1px;flex:1;background:#e8edf2
}
.login-register-cta{
  width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;
  border:1px solid #cdd8e4;border-radius:10px;background:#fff;color:#244b7a;
  font-size:13.5px;font-weight:690;box-shadow:none
}
.login-register-cta:hover{background:#f7f9fc;border-color:#b9c8d8;color:#163f70}

.nav-count{
  display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;
  margin-left:auto;padding:0 6px;border-radius:999px;background:#dcecff;color:#173f7a;
  font-size:10px;font-weight:800;line-height:1
}
.nav a.active .nav-count{background:#fff;color:#173f7a}
.nav-static{
  margin:6px 10px 0;padding:11px 12px;border:1px solid rgba(255,255,255,.07);
  border-radius:9px;background:rgba(255,255,255,.035);color:rgba(229,239,250,.62);
  font-size:10.5px;line-height:1.55
}

.registration-body{min-height:100dvh;background:#f4f7fa}
.registration-shell{
  min-height:100dvh;display:grid;grid-template-columns:minmax(360px,.72fr) minmax(620px,1.28fr)
}
.registration-brand{
  min-height:100dvh;padding:46px 44px 40px;display:flex;flex-direction:column;
  background:
    radial-gradient(circle at 18% 12%,rgba(80,139,204,.19),transparent 34%),
    linear-gradient(150deg,#0d294b 0%,#123c68 60%,#0e2f55 100%);
  color:#fff
}
.registration-logo{
  width:148px;min-height:96px;padding:10px 12px;display:flex;align-items:center;justify-content:center;
  border-radius:15px;background:#fff;box-shadow:0 14px 34px rgba(2,18,38,.2)
}
.registration-logo img{display:block;width:100%;max-height:76px;object-fit:contain}
.registration-brand-copy{margin:auto 0;max-width:430px;padding:44px 0}
.registration-brand-copy h1{
  margin:0;color:#fff;font-size:36px;line-height:1.08;font-weight:730;letter-spacing:-.03em
}
.registration-brand-copy p{
  margin:17px 0 0;color:rgba(237,245,253,.75);font-size:14px;line-height:1.65
}
.registration-trust{display:flex;flex-direction:column;gap:7px;color:rgba(231,241,251,.65);font-size:10.5px}
.registration-trust span::before{content:"✓";margin-right:7px;color:#a9d1ff;font-weight:800}

.registration-main{min-width:0;padding:0 28px 38px}
.registration-topbar{
  min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;
  max-width:760px;margin:0 auto
}
.registration-back{color:#5d6d80;font-size:11.5px;font-weight:650}
.registration-back:hover{color:#173f7a}
.registration-card{
  width:min(760px,100%);margin:14px auto 0;padding:34px 36px 30px;
  border:1px solid #dfe6ee;border-radius:17px;background:#fff;
  box-shadow:0 1px 2px rgba(15,42,76,.03),0 18px 48px rgba(15,42,76,.065)
}
.registration-heading{text-align:left}
.registration-heading h2{margin:4px 0 0;font-size:29px;line-height:1.15;letter-spacing:-.025em}
.registration-heading p{margin:7px 0 0;color:#6d7b8c;font-size:12.5px}

.registration-progress{
  margin:28px 0 30px;display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr auto;align-items:center
}
.registration-progress>i{height:1px;background:#dce4ec}
.registration-step-dot{
  min-width:60px;padding:0;border:0;background:transparent;color:#8b97a5;text-align:center;cursor:pointer
}
.registration-step-dot span{
  width:30px;height:30px;margin:0 auto 5px;display:grid;place-items:center;border:1px solid #d3dde7;
  border-radius:50%;background:#fff;color:#778596;font-size:11px;font-weight:760
}
.registration-step-dot small{display:block;font-size:9.5px;font-weight:650}
.registration-step-dot.active span,.registration-step-dot.done span{
  border-color:#376999;background:#173f7a;color:#fff
}
.registration-step-dot.active,.registration-step-dot.done{color:#274e7d}
.registration-step{display:none}
.registration-step.active{display:block}
.step-copy{margin-bottom:21px;display:flex;flex-direction:column;gap:3px}
.step-copy strong{color:#1d2c42;font-size:15px}
.step-copy span{color:#778494;font-size:11.5px;line-height:1.5}

.registration-card .login-field{margin-bottom:17px}
.registration-card .login-field label{
  display:block;margin-bottom:7px;color:#2e3c50;font-size:11.5px;font-weight:690
}
.registration-card .form-control,
.registration-card input,
.registration-card select{
  width:100%;min-height:48px;padding:0 13px;border:1px solid #ccd6e1;border-radius:9px;
  background:#fff;color:#15243a;font-size:14px
}
.registration-card input:focus,.registration-card select:focus{
  outline:0;border-color:#6f96c1;box-shadow:0 0 0 4px rgba(66,112,164,.10)
}
.registration-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field-help{display:block;margin-top:5px;color:#8490a0;font-size:10px;line-height:1.45}
.registration-note{
  margin:5px 0 0;padding:11px 12px;border-radius:9px;background:#f7f9fc;color:#6f7d8e;font-size:10.5px;line-height:1.5
}
.registration-assurance,.registration-summary{
  margin-top:8px;padding:14px;border:1px solid #dfe7ef;border-radius:10px;background:#f8fafc
}
.registration-assurance strong,.registration-summary span{
  display:block;color:#254b79;font-size:11px;font-weight:720
}
.registration-assurance p,.registration-summary p{
  margin:4px 0 0;color:#718093;font-size:10.5px;line-height:1.55
}
.registration-actions{
  margin-top:27px;padding-top:20px;border-top:1px solid #edf1f5;display:flex;justify-content:flex-end;gap:9px
}
.registration-actions .btn{min-height:44px}
.registration-error{margin-top:18px}

.pending-body{
  min-height:100dvh;display:grid;place-items:center;padding:26px;
  background:linear-gradient(180deg,#f6f8fb,#eef3f7)
}
.pending-shell{width:min(580px,100%);text-align:center}
.pending-logo{
  width:132px;margin:0 auto 18px;padding:9px 11px;border-radius:13px;background:#fff;
  box-shadow:0 12px 28px rgba(15,42,76,.09)
}
.pending-logo img{display:block;width:100%;max-height:78px;object-fit:contain}
.pending-card{
  padding:34px 34px 28px;border:1px solid #dee6ee;border-radius:17px;background:#fff;
  box-shadow:0 18px 50px rgba(15,42,76,.07)
}
.pending-status{
  display:inline-flex;padding:6px 10px;border-radius:999px;background:#fff4d9;color:#826210;
  font-size:10px;font-weight:760;text-transform:uppercase;letter-spacing:.06em
}
.pending-status.rejected{background:var(--danger-bg);color:var(--danger)}
.pending-status.suspended{background:#eef1f5;color:#596675}
.pending-card h1{margin:15px 0 8px;font-size:27px;letter-spacing:-.025em}
.pending-card>p{margin:0 auto;max-width:470px;color:#6c7a8b;font-size:12.5px;line-height:1.65}
.pending-details{
  margin:24px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left
}
.pending-details>div{padding:12px;border:1px solid #e5eaf0;border-radius:10px;background:#fafbfd}
.pending-details small{display:block;margin-bottom:3px;color:#8994a2;font-size:9.5px;text-transform:uppercase;letter-spacing:.05em}
.pending-details strong{display:block;color:#2a394d;font-size:11.5px}
.pending-help{
  margin-top:18px;padding:14px;border-radius:10px;background:#f4f7fa;text-align:left
}
.pending-help strong{font-size:11.5px;color:#2d4e76}
.pending-help p{margin:5px 0 0;color:#718093;font-size:10.5px;line-height:1.55}
.pending-logout{margin-top:20px}

.approval-filter{margin-bottom:14px}
.approval-table td{vertical-align:middle}
.approval-sub{display:block;margin-top:5px;color:#7d8997;font-size:9.5px}
.approval-actions{position:relative}
.approval-actions>summary{list-style:none;cursor:pointer}
.approval-actions>summary::-webkit-details-marker{display:none}
.approval-popover{
  position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:300px;padding:14px;
  border:1px solid #dce4ec;border-radius:11px;background:#fff;box-shadow:0 18px 40px rgba(15,42,76,.14)
}
.approval-popover>p{margin:0 0 10px;color:#6f7d8e;font-size:10.5px;line-height:1.45}
.approval-popover label{display:block;color:#4e5d71;font-size:10.5px;font-weight:650}
.approval-popover textarea{
  width:100%;margin-top:5px;padding:8px;border:1px solid #d7e0e9;border-radius:8px;resize:vertical;font:inherit
}
.approval-popover form>div{display:flex;gap:7px;margin-top:10px}
.approval-empty{padding:44px 20px}

@media(max-width:1000px){
  .registration-shell{grid-template-columns:1fr}
  .registration-brand{
    min-height:auto;padding:16px 20px;display:flex;flex-direction:row;align-items:center;justify-content:center
  }
  .registration-logo{width:112px;min-height:78px;padding:7px 9px}
  .registration-logo img{max-height:62px}
  .registration-brand-copy,.registration-trust{display:none}
  .registration-main{padding:0 18px 28px}
  .registration-topbar{min-height:62px}
}
@media(max-width:700px){
  .registration-main{padding:0 12px 20px}
  .registration-topbar{gap:10px}
  .registration-back{font-size:10.5px}
  .registration-card{margin-top:4px;padding:25px 18px 22px;border-radius:14px}
  .registration-heading h2{font-size:25px}
  .registration-progress{margin:23px 0 25px}
  .registration-step-dot{min-width:38px}
  .registration-step-dot small{display:none}
  .registration-step-dot span{margin-bottom:0}
  .registration-grid{grid-template-columns:1fr;gap:0}
  .registration-actions{justify-content:space-between}
  .pending-body{padding:14px}
  .pending-card{padding:26px 18px 22px}
  .pending-details{grid-template-columns:1fr}
  .approval-popover{position:fixed;left:14px;right:14px;bottom:14px;top:auto;width:auto}
}


/* ==========================================================================
   Academia global UX system — 2026-09-01
   Scope: authenticated application shell only
   ========================================================================== */

body.app-body{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-subtle:#f8fafc;
  --surface-blue:#f1f6fc;
  --ink:#132238;
  --ink-soft:#334258;
  --muted:#657387;
  --muted-2:#8190a2;
  --line:#dce4ed;
  --line-strong:#c9d5e2;
  --primary:#17467f;
  --primary-hover:#123a6b;
  --primary-soft:#edf4fb;
  --focus:#5d8fc7;
  --radius:14px;
  --radius-sm:10px;
  --shadow-soft:0 1px 2px rgba(15,42,76,.035),0 8px 24px rgba(15,42,76,.045);
  --shadow-popover:0 20px 54px rgba(15,42,76,.18);
  background:var(--bg);
  color:var(--ink);
  font-size:14.5px;
  line-height:1.52;
  letter-spacing:-.002em;
}
body.app-body .layout{
  grid-template-columns:252px minmax(0,1fr);
}
body.app-body .main{
  min-width:0;
  background:var(--bg);
}

/* Sidebar and Academia identity */
body.app-body .sidebar{
  width:252px;
  padding:18px 14px 16px;
  background:
    radial-gradient(circle at 16% 4%,rgba(92,150,214,.13),transparent 24%),
    linear-gradient(180deg,#102f54 0%,#0d2949 100%);
  border-right:1px solid rgba(255,255,255,.05);
}
@media(min-width:1025px){
  body.app-body .sidebar .brand-row{
    display:flex!important;
    align-items:center;
    justify-content:center;
    padding:0 8px 15px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  body.app-body .sidebar .platform-brand{
    width:126px;
    min-width:126px;
    flex:0 0 126px;
    min-height:78px;
    padding:7px 10px;
    border-radius:12px;
    background:#fff;
    box-shadow:0 10px 24px rgba(3,18,38,.18);
  }
  body.app-body .sidebar .platform-brand-logo{
    width:100%;
    max-width:106px;
    max-height:64px;
    object-fit:contain;
  }
  body.app-body .sidebar .nav{margin-top:14px}
}
body.app-body .nav{
  padding:0 1px 4px 0;
  scrollbar-color:rgba(255,255,255,.22) transparent;
}
body.app-body .nav-section{
  margin:20px 11px 7px;
  color:rgba(225,237,250,.55);
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.135em;
}
body.app-body .nav-section:first-child{margin-top:2px}
body.app-body .nav a{
  min-height:44px;
  margin:2px 0;
  padding:9px 11px;
  gap:11px;
  border-radius:9px;
  color:#dbe7f4;
  font-size:13.25px;
  line-height:1.3;
  font-weight:590;
}
body.app-body .nav a:hover{
  background:rgba(255,255,255,.07);
  color:#fff;
}
body.app-body .nav a.active{
  background:linear-gradient(90deg,rgba(104,159,220,.24),rgba(255,255,255,.085));
  color:#fff;
  font-weight:700;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
}
body.app-body .nav a.active::before{
  left:0;
  top:9px;
  bottom:9px;
  width:3px;
  background:#a8d1ff;
}
body.app-body .nav-icon{
  width:18px;
  height:18px;
  flex-basis:18px;
  stroke-width:1.7;
}
body.app-body .sidebar-foot{
  margin-top:12px;
  padding:14px 10px 0;
  color:rgba(229,240,252,.49);
  font-size:10px;
  line-height:1.55;
}

/* Header */
body.app-body .topbar{
  min-height:76px;
  padding:9px 28px;
  gap:20px;
  border-bottom:1px solid #e3e9f0;
  background:rgba(255,255,255,.975);
  box-shadow:0 1px 10px rgba(15,42,76,.03);
}
body.app-body .topbar-primary{gap:22px}
body.app-body .institution-context{
  min-width:178px;
  max-width:300px;
}
body.app-body .institution-name{
  color:#17253a;
  font-size:13.5px;
  line-height:1.3;
  font-weight:760;
}
body.app-body .context-chips{
  gap:7px;
  margin-top:4px;
}
body.app-body .context-chip{
  font-size:10.5px;
}
body.app-body .global-search{
  width:min(540px,46vw);
  min-width:240px;
  height:44px;
  padding:0 10px 0 13px;
  border-color:#dbe4ed;
  border-radius:10px;
  background:#f8fafc;
}
body.app-body .global-search:hover{
  border-color:#cbd7e3;
  background:#fff;
}
body.app-body .global-search:focus-within{
  border-color:#84a8cf;
  box-shadow:0 0 0 4px rgba(77,130,195,.09);
}
body.app-body .global-search input{
  color:#1b293d!important;
  font-size:12.5px!important;
}
body.app-body .global-search input::placeholder{color:#8794a4}
body.app-body .top-actions{gap:9px}

/* Native dropdowns: consistent visual system */
body.app-body select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:38px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368798d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 12px center!important;
  background-size:16px 16px!important;
  cursor:pointer;
}
body.app-body select:hover{
  border-color:#b9c8d8;
}
body.app-body select:focus{
  border-color:#789fc8;
  box-shadow:0 0 0 4px rgba(77,130,195,.10);
}
body.app-body select:disabled{
  cursor:not-allowed;
  opacity:.62;
  background-color:#f4f6f8!important;
}
body.app-body .language-switcher select{
  min-width:128px;
  height:42px;
  min-height:42px;
  padding-left:12px!important;
  border:1px solid #d7e1eb;
  border-radius:10px;
  color:#26364b;
  font-size:12px;
  font-weight:720;
}

/* User dropdown */
body.app-body .user-menu summary{
  min-height:46px;
  padding:4px 7px 4px 5px;
  gap:9px;
  border:1px solid transparent;
  border-radius:11px;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
body.app-body .user-menu summary:hover{
  border-color:#e3e9f0;
  background:#f8fafc;
}
body.app-body .user-menu[open] summary{
  border-color:#d9e3ed;
  background:#f6f9fc;
  box-shadow:0 0 0 3px rgba(77,130,195,.06);
}
body.app-body .user-avatar{
  width:36px;
  height:36px;
  border-radius:10px;
  background:#edf4fb;
  color:#17467f;
  font-size:13px;
  font-weight:800;
}
body.app-body .user-summary{max-width:178px}
body.app-body .user-summary strong{
  color:#1a283c;
  font-size:11.75px;
  line-height:1.25;
  font-weight:740;
}
body.app-body .user-summary small{
  margin-top:2px;
  color:#728094;
  font-size:9.75px;
}
body.app-body .user-menu-chevron{
  width:15px;
  height:15px;
  transition:transform .16s ease;
}
body.app-body .user-menu[open] .user-menu-chevron{transform:rotate(180deg)}
body.app-body .user-popover{
  right:0;
  top:calc(100% + 9px);
  width:286px;
  padding:8px;
  border:1px solid #dbe4ed;
  border-radius:13px;
  background:#fff;
  box-shadow:var(--shadow-popover);
  z-index:80;
}
body.app-body .user-popover-head{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 9px 10px;
}
body.app-body .user-popover-avatar{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#edf4fb;
  color:#17467f;
  font-size:14px;
  font-weight:800;
}
body.app-body .user-popover-head>span:last-child{
  min-width:0;
  display:flex;
  flex-direction:column;
}
body.app-body .user-popover-head strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#1a283c;
  font-size:12px;
  font-weight:750;
}
body.app-body .user-popover-head small{
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#748195;
  font-size:10px;
}
body.app-body .user-popover-divider{
  height:1px;
  margin:3px 6px;
  background:#e9eef3;
}
body.app-body .user-popover-link,
body.app-body .user-popover .logout-link{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#35455b;
  font:inherit;
  font-size:12px;
  font-weight:620;
  text-align:left;
  cursor:pointer;
}
body.app-body .user-popover-link:hover,
body.app-body .user-popover .logout-link:hover{
  background:#f4f7fa;
  color:#173f7a;
}
body.app-body .user-popover-link svg,
body.app-body .user-popover .logout-link svg{
  width:17px;
  height:17px;
  flex:0 0 17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.app-body .user-popover .logout-link{color:#9a3028}
body.app-body .user-popover .logout-link:hover{
  background:#fff3f2;
  color:#90261f;
}

/* Main content typography and rhythm */
body.app-body .content{
  max-width:1480px;
  padding:30px 32px 46px;
}
body.app-body .page-head{
  align-items:flex-end;
  gap:24px;
  margin-bottom:24px;
}
body.app-body .page-head>div:first-child{max-width:880px}
body.app-body .eyebrow,
body.app-body .section-kicker{
  margin-bottom:6px;
  color:#17467f;
  font-size:10px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.11em;
}
body.app-body .page-head h1{
  font-size:clamp(27px,2.2vw,32px);
  line-height:1.12;
  font-weight:760;
  letter-spacing:-.032em;
}
body.app-body .page-head p{
  max-width:820px;
  margin-top:7px;
  color:#657488;
  font-size:13.5px;
  line-height:1.58;
}
body.app-body .section-title{
  align-items:center;
  gap:16px;
  margin-bottom:16px;
}
body.app-body .section-title h2{
  font-size:18.5px;
  line-height:1.24;
  font-weight:720;
  letter-spacing:-.018em;
}
body.app-body .section-title .page-actions{flex:0 0 auto}

/* Buttons: clearer hierarchy and more predictable distribution */
body.app-body .page-actions{
  gap:9px;
}
@media(min-width:761px){
  body.app-body .page-actions>.btn{
    min-width:112px;
  }
}
body.app-body .btn{
  min-height:42px;
  padding:9px 14px;
  border-radius:9px;
  font-size:13px;
  font-weight:700;
  letter-spacing:-.004em;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .08s ease;
}
body.app-body .btn-primary{
  background:#17467f;
  box-shadow:0 5px 14px rgba(23,70,127,.14);
}
body.app-body .btn-primary:hover{
  background:#123a6b;
  box-shadow:0 7px 18px rgba(23,70,127,.19);
}
body.app-body .btn-secondary{
  border-color:#c9d8e7;
  background:#f4f8fc;
  color:#17467f;
}
body.app-body .btn-secondary:hover{
  border-color:#b7cbe0;
  background:#eaf2fa;
}
body.app-body .btn-tertiary{
  border-color:#d7e0e9;
  background:#fff;
}
body.app-body .btn-tertiary:hover{
  border-color:#c4d1de;
  background:#f7f9fb;
}
body.app-body .btn-sm{
  min-height:36px;
  padding:7px 10px;
  font-size:11.5px;
}

/* Cards, stats and information density */
body.app-body .card{
  border-color:#dde5ed;
  border-radius:14px;
  box-shadow:0 1px 2px rgba(15,42,76,.025),0 7px 22px rgba(15,42,76,.04);
}
body.app-body .stat{
  padding:18px 19px;
}
body.app-body .stat-label{
  color:#67778a;
  font-size:10.25px;
  font-weight:780;
  letter-spacing:.07em;
}
body.app-body .stat-value{
  margin-top:7px;
  font-size:27px;
  font-weight:760;
  letter-spacing:-.03em;
}
body.app-body .stat-note{
  margin-top:5px;
  color:#718095;
  font-size:11.5px;
}
body.app-body .section{padding:20px}
body.app-body .empty-state{
  padding:34px 20px;
}
body.app-body .empty-state strong{
  color:#35455a;
  font-size:14px;
  font-weight:720;
}
body.app-body .empty-state p{
  color:#748195;
  font-size:12.5px;
}

/* Forms and dropdown controls */
body.app-body .form-section{padding:22px}
body.app-body .form-section-head{
  padding-bottom:14px;
  margin-bottom:17px;
}
body.app-body .form-section-head h2{
  color:#1b293d;
  font-size:18px;
  font-weight:720;
}
body.app-body .form-section-head p{
  margin-top:5px;
  color:#708095;
  font-size:12px;
  line-height:1.55;
}
body.app-body .field label,
body.app-body .generic-form label,
body.app-body .form-section label{
  margin-bottom:7px;
  color:#34445a;
  font-size:12.5px;
  font-weight:700;
}
body.app-body .form-control,
body.app-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.app-body select,
body.app-body textarea{
  min-height:46px;
  padding:10px 12px;
  border:1px solid #cbd6e2;
  border-radius:10px;
  background:#fff;
  color:#17263a;
  font-size:14px;
}
body.app-body textarea{
  min-height:116px;
  line-height:1.5;
}
body.app-body .form-control:hover,
body.app-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
body.app-body textarea:hover{
  border-color:#bac8d7;
}
body.app-body .helptext{
  margin-top:6px;
  color:#79879a;
  font-size:10.5px;
  line-height:1.5;
}
body.app-body .form-actions{
  gap:9px;
  margin-top:20px;
}
body.app-body .sticky-form-actions{
  gap:8px;
  padding:8px;
  border-radius:12px;
}

/* Filters and toolbars */
body.app-body .filter-panel{
  gap:9px;
  margin-bottom:17px;
  padding:10px;
  border-color:#dde5ed;
  border-radius:12px;
  box-shadow:0 1px 2px rgba(15,42,76,.02);
}
body.app-body .filter-search{
  min-width:260px;
  height:44px;
  border-color:#d8e2ec;
  border-radius:9px;
  background:#f8fafc;
}
body.app-body .filter-panel select{
  min-width:164px;
  height:44px;
  min-height:44px;
}
body.app-body .finance-toolbar,
body.app-body .toolbar-actions{
  gap:8px;
}
body.app-body .tabs{
  padding:4px;
  border-color:#dbe4ed;
  border-radius:11px;
}
body.app-body .tab{
  min-height:39px;
  border-radius:8px;
  font-size:11.5px;
  font-weight:680;
}
body.app-body .tab.active{
  background:#edf4fb;
  color:#17467f;
}

/* Tables */
body.app-body .table-wrap{
  border-color:#dce4ed;
  border-radius:11px;
}
body.app-body .table th,
body.app-body .table td{
  padding:12px 13px;
}
body.app-body .table th{
  background:#f7f9fb;
  color:#68778a;
  font-size:10.5px;
  font-weight:780;
  letter-spacing:.05em;
}
body.app-body .table td{
  color:#34445a;
  font-size:12.5px;
}
body.app-body .table tbody tr:hover td{background:#fbfcfe}
body.app-body .pagination{
  padding:12px 14px;
}

/* Mobile navigation scrim */
body.app-body .nav-scrim{
  display:none;
  border:0;
  padding:0;
  background:rgba(7,22,40,.46);
  backdrop-filter:blur(2px);
}
body.app-body.nav-open{overflow:hidden}

/* Tablet */
@media(max-width:1024px){
  body.app-body{
    font-size:14.5px;
  }
  body.app-body .layout{display:block}
  body.app-body .sidebar{
    position:sticky;
    top:0;
    width:100%;
    height:72px;
    min-height:72px;
    padding:9px 18px;
    z-index:50;
    box-shadow:0 6px 20px rgba(9,29,54,.13);
  }
  body.app-body .sidebar .brand-row{
    height:54px;
    padding:0;
  }
  body.app-body .sidebar .platform-brand{
    width:112px;
    min-width:112px;
    flex-basis:112px;
    min-height:52px;
    padding:4px 7px;
    border-radius:9px;
    box-shadow:none;
  }
  body.app-body .sidebar .platform-brand-logo{
    max-width:96px;
    max-height:46px;
  }
  body.app-body .mobile-menu-toggle{
    width:44px;
    height:44px;
    min-height:44px;
    flex-basis:44px;
    border-radius:10px;
  }
  body.app-body .sidebar .nav{
    display:none;
    position:fixed;
    top:72px;
    left:0;
    bottom:0;
    width:min(340px,88vw);
    max-height:none;
    margin:0;
    padding:17px 14px 30px;
    overflow-y:auto;
    background:
      radial-gradient(circle at 12% 4%,rgba(92,150,214,.13),transparent 24%),
      linear-gradient(180deg,#102f54 0%,#0d2949 100%);
    box-shadow:18px 0 46px rgba(7,22,40,.20);
    z-index:55;
  }
  body.app-body .sidebar.mobile-open .nav{display:block}
  body.app-body.nav-open .nav-scrim{
    position:fixed;
    inset:72px 0 0;
    display:block;
    z-index:45;
  }
  body.app-body .nav-section{margin-top:18px}
  body.app-body .topbar{
    position:sticky;
    top:72px;
    z-index:18;
    min-height:70px;
    padding:9px 20px;
  }
  body.app-body .content{
    padding:25px 22px 40px;
  }
  body.app-body .global-search{
    width:auto;
    flex:1;
    min-width:180px;
  }
  body.app-body .institution-context{
    min-width:150px;
    max-width:235px;
  }
  body.app-body .page-head{
    align-items:flex-start;
  }
  body.app-body .stats{
    gap:12px;
  }
  body.app-body .work-grid,
  body.app-body .split{
    gap:16px;
  }
}

/* Tablet portrait / large phone */
@media(max-width:840px){
  body.app-body .form-grid{
    grid-template-columns:1fr;
  }
  body.app-body .field.span-2{grid-column:auto}
  body.app-body .settings-layout{grid-template-columns:1fr}
  body.app-body .filter-panel{
    align-items:stretch;
  }
  body.app-body .filter-search{
    min-width:100%;
    flex-basis:100%;
  }
  body.app-body .filter-panel select{
    min-width:0;
    flex:1 1 190px;
  }
}

/* Smartphone */
@media(max-width:760px){
  body.app-body{
    font-size:16px;
  }
  body.app-body .sidebar{
    height:66px;
    min-height:66px;
    padding:7px 14px;
  }
  body.app-body .sidebar .brand-row{height:52px}
  body.app-body .sidebar .platform-brand{
    width:104px;
    min-width:104px;
    flex-basis:104px;
    min-height:48px;
  }
  body.app-body .sidebar .platform-brand-logo{
    max-width:90px;
    max-height:43px;
  }
  body.app-body .sidebar .nav{
    top:66px;
    width:min(330px,90vw);
    padding:15px 12px 28px;
  }
  body.app-body.nav-open .nav-scrim{inset:66px 0 0}
  body.app-body .topbar{
    top:66px;
    gap:9px;
    padding:10px 14px;
    background:#fff;
  }
  body.app-body .topbar-primary{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
  }
  body.app-body .institution-context{
    min-width:0;
    max-width:none;
  }
  body.app-body .institution-name{font-size:13px}
  body.app-body .global-search{
    width:100%;
    min-width:0;
    height:44px;
  }
  body.app-body .global-search input{font-size:16px!important}
  body.app-body .top-actions{
    width:100%;
    justify-content:space-between;
  }
  body.app-body .language-switcher select{
    min-width:126px;
    font-size:16px;
  }
  body.app-body .user-summary{display:none}
  body.app-body .user-menu summary{
    padding:4px;
  }
  body.app-body .content{
    padding:20px 14px 34px;
  }
  body.app-body .page-head{
    flex-direction:column;
    gap:14px;
    margin-bottom:20px;
  }
  body.app-body .page-head h1{
    font-size:25px;
  }
  body.app-body .page-head p{
    font-size:13px;
    line-height:1.55;
  }
  body.app-body .page-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  body.app-body .page-actions .btn{
    width:100%;
    min-width:0;
    white-space:normal;
    text-align:center;
  }
  body.app-body .page-actions .btn:only-child{grid-column:1/-1}
  body.app-body .section-title{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  body.app-body .section-title>.btn,
  body.app-body .section-title>.page-actions{
    flex:1 1 auto;
  }
  body.app-body .stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  body.app-body .stat{
    padding:15px;
  }
  body.app-body .stat-value{font-size:24px}
  body.app-body .section{padding:16px}
  body.app-body .form-control,
  body.app-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.app-body select,
  body.app-body textarea{
    min-height:48px;
    font-size:16px;
  }
  body.app-body .filter-search input{font-size:16px!important}
  body.app-body .filter-panel select{font-size:16px}
  body.app-body .toolbar-actions{
    width:100%;
  }
  body.app-body .toolbar-actions .btn{
    flex:1 1 auto;
  }
  body.app-body .responsive-table tbody{
    padding:9px;
    gap:9px;
  }
  body.app-body .responsive-table tr{
    border-radius:11px;
  }
  body.app-body .responsive-table td{
    padding:10px 11px;
    gap:14px;
  }
  body.app-body .responsive-table td::before{
    flex-basis:40%;
    font-size:9.5px;
  }
}

/* Small smartphone */
@media(max-width:520px){
  body.app-body .content{
    padding:17px 12px 30px;
  }
  body.app-body .page-head h1{font-size:23px}
  body.app-body .page-actions{
    grid-template-columns:1fr;
  }
  body.app-body .page-actions .btn{
    grid-column:1!important;
  }
  body.app-body .stats,
  body.app-body .compact-stats,
  body.app-body .finance-mini-stats{
    grid-template-columns:1fr;
  }
  body.app-body .card{border-radius:12px}
  body.app-body .user-popover{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    left:auto;
    width:min(286px,calc(100vw - 24px));
    max-width:none;
    margin-top:0;
  }
  body.app-body .language-switcher select{
    min-width:116px;
  }
  body.app-body .form-actions,
  body.app-body .sticky-form-actions{
    flex-direction:column-reverse;
    align-items:stretch;
  }
  body.app-body .form-actions .btn,
  body.app-body .sticky-form-actions .btn{
    width:100%;
  }
  body.app-body .filter-panel{
    display:grid;
    grid-template-columns:1fr;
  }
  body.app-body .filter-panel>*{
    width:100%!important;
    min-width:0!important;
  }
}

/* Motion preference */
@media(prefers-reduced-motion:reduce){
  body.app-body *,
  body.app-body *::before,
  body.app-body *::after{
    scroll-behavior:auto!important;
    transition-duration:.001ms!important;
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
  }
}


/* ==========================================================================
   SS Business-inspired product refinement — 2026-09-01
   Principles adopted: stronger hierarchy, restrained iconography,
   deliberate action emphasis, consistent spacing and cleaner responsive flow.
   ========================================================================== */

/* Executive dashboard: icon-led KPI cards */
body.app-body .executive-stats-refined{
  gap:14px;
  margin-bottom:16px;
}
body.app-body .executive-stat{
  position:relative;
  min-height:142px;
  padding:17px 18px 16px;
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#fdfefe 100%);
}
body.app-body .executive-stat::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:2px;
  background:linear-gradient(90deg,rgba(23,70,127,.45),rgba(23,70,127,0));
  opacity:.55;
  pointer-events:none;
}
body.app-body .executive-stat.has-alert::after{
  background:linear-gradient(90deg,rgba(176,112,14,.65),rgba(176,112,14,0));
}
body.app-body .executive-stat-head{
  min-width:0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
body.app-body .executive-stat-head .stat-label{
  max-width:calc(100% - 46px);
  padding-top:2px;
}
body.app-body .executive-stat-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eef4fb;
  color:#245488;
}
body.app-body .executive-stat-icon.success{
  background:#eaf7f1;
  color:#147354;
}
body.app-body .executive-stat-icon.warning{
  background:#fff5e3;
  color:#8b5d0b;
}
body.app-body .executive-stat-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.app-body .executive-stat .stat-value{
  margin-top:9px;
  font-size:29px;
}
body.app-body .executive-stat .stat-note{
  margin-top:4px;
}
body.app-body .executive-stat-accent{
  position:absolute;
  right:18px;
  bottom:15px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#84a9d0;
  opacity:.75;
}
body.app-body .executive-stat-accent.success{background:#46a47d}
body.app-body .executive-stat-accent.warning{background:#d49a31}
body.app-body .collection-progress{
  height:6px;
  margin-top:9px;
  overflow:hidden;
  border-radius:999px;
  background:#e8eef4;
}
body.app-body .collection-progress span{
  display:block;
  width:0;
  max-width:100%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#5b86b7,#17467f);
}
body.app-body .collection-stat .stat-note{margin-top:7px}

/* Operational strip: cleaner visual grouping */
body.app-body .operational-strip{
  gap:0;
  margin-bottom:18px;
  border-color:#dde5ed;
  border-radius:12px;
  background:#dde5ed;
  box-shadow:0 1px 2px rgba(15,42,76,.02);
}
body.app-body .operational-strip>a,
body.app-body .operational-strip>span{
  min-height:60px;
  padding:12px 15px;
  align-items:center;
  gap:9px;
  background:#fff;
}
body.app-body .operational-strip a{
  transition:background .15s ease,color .15s ease;
}
body.app-body .operational-strip a:hover{background:#f8fafc}
body.app-body .operational-strip span,
body.app-body .operational-strip b{
  color:#18273a;
  font-size:17px;
  line-height:1;
  font-weight:770;
}
body.app-body .operational-strip small{
  color:#738195;
  font-size:10.5px;
  line-height:1.35;
}

/* Analytics and progress bars */
body.app-body .analytics-grid,
body.app-body .work-grid{
  gap:16px;
}
body.app-body .mini-chart{gap:11px}
body.app-body .chart-track{
  height:7px;
  background:#e8eef4;
}
body.app-body .chart-fill{
  background:linear-gradient(90deg,#6b96c4,#17467f);
}
body.app-body .chart-label{
  color:#718095;
  font-size:9.75px;
  font-weight:700;
}
body.app-body .chart-row strong{
  color:#2a394e;
  font-size:10.75px;
  font-weight:720;
}

/* Section framing: stronger but still quiet */
body.app-body .section-title{
  padding-bottom:12px;
  border-bottom:1px solid #edf1f5;
}
body.app-body .table-card .section-title,
body.app-body .gradebook-shell .section-title{
  border-bottom:0;
  padding-bottom:0;
}
body.app-body .section-title h2{
  color:#17263a;
}
body.app-body .section-title .btn{
  flex:0 0 auto;
}
body.app-body .section-kicker{
  color:#1f4e84;
}

/* Action hierarchy */
body.app-body .page-actions .btn-primary{
  font-weight:740;
}
body.app-body .page-actions .btn-tertiary{
  color:#516075;
}
body.app-body .section-title .page-actions .btn{
  min-width:0;
}
body.app-body .section-title .page-actions .btn-primary{
  box-shadow:none;
}

/* Filter controls feel like one toolbar rather than unrelated fields */
body.app-body .filter-panel{
  position:relative;
  background:#fff;
}
body.app-body .filter-panel::before{
  content:"";
  position:absolute;
  left:10px;
  top:10px;
  bottom:10px;
  width:2px;
  border-radius:2px;
  background:#d7e5f3;
}
body.app-body .filter-panel>*:first-child{
  margin-left:5px;
}
body.app-body .filter-search:focus-within{
  border-color:#83a6cc;
  background:#fff;
  box-shadow:0 0 0 3px rgba(77,130,195,.08);
}
body.app-body .filter-check{
  border-color:#d7e0e9;
  background:#fafbfd;
}

/* Native selects / dropdown fields */
body.app-body select{
  text-overflow:ellipsis;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(15,42,76,.015);
}
body.app-body .field select,
body.app-body .filter-panel select,
body.app-body .context-select select{
  color:#27384e;
  font-weight:560;
}
body.app-body .field select:focus,
body.app-body .filter-panel select:focus,
body.app-body .context-select select:focus{
  background-color:#fff!important;
}
body.app-body .context-select{
  gap:9px;
}
body.app-body .context-select label{
  color:#66768b;
  font-size:10.5px;
  font-weight:720;
}
body.app-body .context-select select{
  min-width:200px;
}

/* Empty states: visual anchor without marketing-style decoration */
body.app-body .empty-state::before{
  content:"";
  width:42px;
  height:42px;
  display:block;
  margin:0 auto 11px;
  border:1px solid #dde6ef;
  border-radius:12px;
  background:
    linear-gradient(#9db3ca,#9db3ca) 12px 12px/18px 2px no-repeat,
    linear-gradient(#9db3ca,#9db3ca) 12px 19px/13px 2px no-repeat,
    linear-gradient(#9db3ca,#9db3ca) 12px 26px/16px 2px no-repeat,
    #f4f7fa;
}
body.app-body .empty-state.compact::before{
  width:34px;
  height:34px;
  margin-bottom:9px;
  border-radius:10px;
  background:
    linear-gradient(#a4b7ca,#a4b7ca) 10px 10px/14px 2px no-repeat,
    linear-gradient(#a4b7ca,#a4b7ca) 10px 16px/10px 2px no-repeat,
    linear-gradient(#a4b7ca,#a4b7ca) 10px 22px/13px 2px no-repeat,
    #f4f7fa;
}

/* Dense data screens */
body.app-body .table-card{
  border-radius:13px;
}
body.app-body .table-card>.table-wrap{
  border-top:0;
}
body.app-body .table th:first-child,
body.app-body .table td:first-child{
  padding-left:16px;
}
body.app-body .table th:last-child,
body.app-body .table td:last-child{
  padding-right:16px;
}
body.app-body .clickable-row{
  transition:background .12s ease;
}
body.app-body .clickable-row:hover td{
  background:#f9fbfd;
}
body.app-body .person-cell strong{
  color:#25354a;
  font-weight:700;
}
body.app-body .person-cell small{
  color:#7a8798;
}

/* Settings and long forms */
body.app-body .settings-layout{
  gap:18px;
}
body.app-body .setup-card{
  top:94px;
  padding:19px;
}
body.app-body .setup-progress-head{
  color:#68778a;
  font-size:11px;
}
body.app-body .setup-progress-head strong{
  color:#17467f;
  font-size:19px;
}
body.app-body .progress{
  height:6px;
  margin:9px 0 16px;
}
body.app-body .progress span{
  background:linear-gradient(90deg,#6a95c3,#17467f);
}
body.app-body .check-item{
  min-height:28px;
}
body.app-body .checkmark{
  width:22px;
  height:22px;
  border-radius:7px;
}

/* Gradebook: preserve productivity while improving tablet use */
body.app-body .gradebook-toolbar{
  padding:13px 15px;
  gap:14px;
}
body.app-body .gradebook-state{
  font-size:11.5px;
}
body.app-body .gradebook-toolbar small{
  max-width:720px;
  font-size:10.25px;
  line-height:1.45;
}
body.app-body .gradebook .mark-input{
  min-width:96px;
}
body.app-body .gradebook .comment-input{
  min-width:210px;
}

/* Tablet refinements */
@media(max-width:1024px){
  body.app-body .executive-stats-refined{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.app-body .executive-stat{
    min-height:134px;
  }
  body.app-body .operational-strip{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.app-body .operational-strip>a,
  body.app-body .operational-strip>span{
    border-bottom:1px solid #e5ebf1;
  }
  body.app-body .settings-layout{
    grid-template-columns:240px minmax(0,1fr);
  }
}
@media(max-width:900px){
  body.app-body .settings-layout{
    grid-template-columns:1fr;
  }
  body.app-body .setup-card{
    position:relative;
    top:auto;
  }
  body.app-body .gradebook-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  body.app-body .gradebook-toolbar .toolbar-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  body.app-body .gradebook-toolbar .toolbar-actions .btn{
    width:100%;
  }
  body.app-body .gradebook .col-number{
    left:0;
    width:128px;
    min-width:128px;
  }
  body.app-body .gradebook .col-name{
    left:128px;
    width:200px;
    min-width:200px;
  }
}

/* Smartphone: primary action first, secondary actions below */
@media(max-width:760px){
  body.app-body .page-actions .btn-primary{
    grid-column:1/-1;
    order:-1;
  }
  body.app-body .executive-stats-refined{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.app-body .executive-stat{
    min-height:132px;
    padding:15px;
  }
  body.app-body .executive-stat-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
  }
  body.app-body .executive-stat .stat-value{
    font-size:24px;
  }
  body.app-body .operational-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.app-body .operational-strip>a,
  body.app-body .operational-strip>span{
    min-height:58px;
    padding:11px 12px;
  }
  body.app-body .section-title{
    padding-bottom:10px;
  }
  body.app-body .filter-panel::before{
    display:none;
  }
  body.app-body .filter-panel>*:first-child{
    margin-left:0;
  }
  body.app-body .gradebook-wrap{
    max-height:none;
  }
  body.app-body .gradebook-toolbar .toolbar-actions{
    grid-template-columns:1fr 1fr;
  }
  body.app-body .gradebook-toolbar .toolbar-actions .btn-primary{
    grid-column:1/-1;
  }
  body.app-body .gradebook .col-number{
    left:0;
    width:116px;
    min-width:116px;
  }
  body.app-body .gradebook .col-name{
    position:static;
    width:180px;
    min-width:180px;
    box-shadow:none;
  }
}
@media(max-width:520px){
  body.app-body .executive-stats-refined{
    grid-template-columns:1fr;
  }
  body.app-body .executive-stat{
    min-height:122px;
  }
  body.app-body .operational-strip{
    grid-template-columns:1fr 1fr;
  }
  body.app-body .operational-strip span,
  body.app-body .operational-strip b{
    font-size:16px;
  }
  body.app-body .operational-strip small{
    font-size:10px;
  }
  body.app-body .gradebook-toolbar .toolbar-actions{
    grid-template-columns:1fr;
  }
  body.app-body .gradebook-toolbar .toolbar-actions .btn-primary{
    grid-column:auto;
    order:-1;
  }
}


/* ================================================================
   Academia — Verdant visual system adaptation
   Frontend-only theme layer. No backend/business logic dependency.
   2026-09-27
   ================================================================ */
:root{
  --bg:#f6f8f7;
  --surface:#ffffff;
  --surface-subtle:#f7faf8;
  --surface-blue:#f3f8f5;
  --ink:#152119;
  --ink-soft:#34433a;
  --muted:#68756d;
  --muted-2:#87938b;
  --line:#e2e8e4;
  --line-strong:#d3ddd6;
  --primary:#104b30;
  --primary-hover:#0b3e28;
  --primary-soft:#eaf4ed;
  --sidebar:#0b3523;
  --sidebar-soft:#123f2a;
  --success:#176032;
  --success-bg:#e7f4eb;
  --warning:#835d0e;
  --warning-bg:#fff4d8;
  --danger:#992b2b;
  --danger-bg:#fceaea;
  --focus:#2f7d4a;
  --shadow-soft:0 1px 2px rgba(14,35,23,.035),0 6px 18px rgba(14,35,23,.035);
  --shadow-popover:0 16px 40px rgba(8,39,25,.14);
  --radius:13px;
  --radius-sm:9px;
  --sidebar-width:260px;
}
html{
  background:var(--bg);
  color:var(--ink);
  font-family:"Segoe UI Variable Text","Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14.5px;
  font-feature-settings:"kern" 1,"liga" 1;
}
body{background:var(--bg);color:var(--ink)}
::selection{background:#dcecdf;color:var(--ink)}
:focus-visible{outline:3px solid rgba(47,125,74,.28);outline-offset:2px}

/* Shell + navigation */
.layout{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.sidebar{
  padding:18px 12px 14px;
  background:linear-gradient(180deg,#0b3523 0%,#082f1f 100%);
  border-right:1px solid rgba(255,255,255,.055);
  box-shadow:inset -1px 0 rgba(0,0,0,.08);
  scrollbar-width:none;
}
.sidebar::-webkit-scrollbar{width:0;height:0}
.brand-row{padding:2px 8px 7px}
.platform-brand{width:100%;justify-content:flex-start}
.platform-brand-logo{
  max-width:172px;
  max-height:58px;
  object-fit:contain;
  object-position:left center;
  filter:brightness(0) invert(1);
  opacity:.96;
}
.nav{margin-top:17px;scrollbar-width:none}
.nav::-webkit-scrollbar{width:0;height:0}
.nav-section{
  margin:20px 11px 7px;
  color:rgba(221,238,227,.56);
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.14em;
}
.nav a{
  min-height:42px;
  margin:2px 0;
  padding:0 11px;
  border-radius:9px;
  color:rgba(245,250,247,.89);
  font-size:.91rem;
  font-weight:590;
  letter-spacing:-.006em;
  transition:background .14s ease,color .14s ease,transform .14s ease;
}
.nav a:hover{background:rgba(255,255,255,.065);color:#fff}
.nav a.active{
  background:rgba(255,255,255,.105);
  color:#fff;
  font-weight:650;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
}
.nav a.active::before{left:0;top:10px;bottom:10px;width:2px;background:#9fd0ad}
.nav-icon{color:rgba(211,233,218,.78);stroke-width:1.75}
.nav a.active .nav-icon{color:#dff0e4}
.nav-static{color:rgba(226,239,230,.68);background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06)}
.nav-count{background:#cce6d3;color:#0c4129}
.sidebar-foot{color:rgba(221,238,227,.46);border-top-color:rgba(255,255,255,.08)}

/* Top bar */
.topbar{
  min-height:70px;
  padding:8px 24px;
  border-bottom:1px solid #e7ece9;
  background:rgba(255,255,255,.97);
  box-shadow:0 1px 0 rgba(15,40,25,.015);
}
.institution-name{color:#1c2a21;font-weight:690}
.context-chip{color:#718078}
.context-chip small{color:#8b978f}
.platform-topbar-brand img{max-height:42px;filter:none}
.global-search{
  height:42px;
  border-color:#dfe7e1;
  background:#f8faf8;
  border-radius:10px;
}
.global-search:focus-within{background:#fff;border-color:#83ab90;box-shadow:0 0 0 3px rgba(47,125,74,.10)}
.global-search svg,.filter-search svg{stroke:#6b786f}
.global-search kbd{border-color:#dde5df;color:#758279}
.language-switcher select{
  border-color:#dce5de;
  color:#34433a;
  background-color:#fff;
}
.language-switcher select:focus{border-color:#83ab90;box-shadow:0 0 0 3px rgba(47,125,74,.10)}
.user-menu summary{border-radius:999px;padding:4px 9px 4px 5px}
.user-menu summary:hover{background:#f7faf8}
.user-avatar{width:34px;height:34px;border-radius:50%;background:#eaf4ed;color:#104b30}
.user-popover{border-color:#dde6df;box-shadow:var(--shadow-popover)}
.user-popover a:hover,.logout-link:hover{background:#f5f9f6}
.user-popover-avatar{background:#eaf4ed!important;color:#104b30!important}

/* Content rhythm + typography */
.content{max-width:1760px;padding:30px 30px 48px}
.page-head{align-items:center;margin-bottom:22px}
.eyebrow,.section-kicker{color:#2f7d4a;font-size:.68rem;letter-spacing:.12em}
.page-head h1,.section-title h2,.stat-value,.hero-title{
  font-family:"Segoe UI Variable Display","Inter","SF Pro Display","Segoe UI",sans-serif;
}
.page-head h1{color:#0d3c27;font-size:1.92rem;line-height:1.14;font-weight:710;letter-spacing:-.037em}
.page-head p{color:#6f7d74;font-size:.92rem}
.breadcrumb{color:#748178}
.breadcrumb a{color:#1d5b35}

/* Buttons */
.btn{border-radius:10px;min-height:42px;padding:9px 14px;font-size:.9rem;font-weight:640;box-shadow:none}
.btn-primary{background:#104b30;border-color:#104b30;color:#fff;box-shadow:0 1px 2px rgba(8,47,31,.14)}
.btn-primary:hover{background:#0b3e28;border-color:#0b3e28}
.btn-secondary{background:#fff;color:#184a31;border-color:#d6dfd9}
.btn-secondary:hover{background:#f7faf8;border-color:#c7d4cb}
.btn-tertiary{background:#fff;color:#425147;border-color:#dde5df}
.btn-tertiary:hover{background:#f7faf8;border-color:#cbd7ce}
.btn-danger{background:#fff3f3;border-color:#e9baba;color:#992b2b}

/* Cards, stats, panels */
.card,.filter-panel,.form-panel,.detail-card{
  border-color:#e1e8e3;
  border-radius:13px;
  box-shadow:var(--shadow-soft);
}
.stats{gap:14px;margin-bottom:18px}
.stat{min-height:112px;padding:18px 19px}
.stat-label{color:#66746b;font-size:.76rem;letter-spacing:.005em;text-transform:none}
.stat-value{margin-top:7px;color:#0d3c27;font-size:1.92rem;font-weight:700;letter-spacing:-.04em}
.stat-note{color:#718078;font-size:.76rem}
.stat-link:hover{border-color:#bfcec4;box-shadow:0 8px 22px rgba(14,50,29,.07)}
.section{padding:19px}
.section-title h2{color:#123f26;font-weight:680}
.quick-link{border-color:#e1e8e3;background:#fafcfb;border-radius:10px}
.quick-link:hover{border-color:#c7d7cc;background:#f5f9f6}
.quick-icon{background:#eaf4ed;color:#1d5b35}
.task-row:hover,.stack-row:not(.static):hover{background:#fbfdfb}
.task-dot.success{background:#2f7d4a}
.empty-state strong{color:#34433a}

/* Tables */
.table-wrap{border-radius:10px}
table{border-color:#e2e8e4}
th{background:#fafcfb;color:#68756d;font-size:.72rem;letter-spacing:.035em}
td{border-color:#e5eae7}
tbody tr:hover td{background:#fbfdfb}
.table-link,.link-primary{color:#1d5b35!important}

/* Forms */
input,select,textarea,.form-control{
  border-color:#cdd8d0!important;
  border-radius:9px!important;
  background-color:#fff;
  color:#152119;
}
input:hover,select:hover,textarea:hover,.form-control:hover{border-color:#b7c6bc!important}
input:focus,select:focus,textarea:focus,.form-control:focus{
  outline:0!important;
  border-color:#2f7d4a!important;
  box-shadow:0 0 0 3px rgba(47,125,74,.12)!important;
}
label{color:#334239}
.helptext,.field-help{color:#718078}
.filter-panel{background:#fff}
.filter-chip.active,.tab.active,.tabs a.active{border-color:#2f7d4a!important;color:#1d5b35!important}

/* Statuses */
.badge{font-size:.72rem;font-weight:700;padding:5px 9px;min-height:26px}
.badge-paid,.badge-active,.badge-published,.badge-confirmed,.badge-sent,.badge-approved{background:#e7f4eb;color:#176032}
.badge-unpaid,.badge-suspended,.badge-rejected,.badge-failed{background:#fceaea;color:#992b2b}
.badge-partial,.badge-pending,.badge-draft,.badge-trial,.badge-queued,.badge-past_due{background:#fff4d8;color:#835d0e}
.badge-cancelled{background:#eef1ef;color:#606b63}
.message{border-color:#c7e2cf;background:#e7f4eb;color:#176032}
.message-error,.message.error{border-color:#efc6c6;background:#fceaea;color:#942828}
.message-warning,.message.warning{border-color:#eedca7;background:#fff5db;color:#7a560e}

/* Financial / academic visual accents */
.money,.metric-value,.amount{font-variant-numeric:tabular-nums}
.progress-track,.progress{background:#e7ede9}
.progress-fill,.progress>span{background:#2f7d4a}
.course-card:hover,.student-card:hover,.invoice-card:hover{border-color:#c6d5cb!important}

/* Offline banner */
.connection-status{background:#fff4d6;color:#74500d;border-bottom-color:#edd9a1}

/* Mobile adaptation: preserve Academia workflows, adopt Verdant spacing */
@media(max-width:1024px){
  .sidebar{box-shadow:12px 0 36px rgba(8,39,25,.18)}
  .mobile-menu-toggle{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.06)}
  .mobile-menu-toggle span{background:#eef6f0}
  .nav-scrim{background:rgba(7,31,20,.38)}
  .topbar{padding-left:16px;padding-right:16px}
  .content{padding:22px 18px 38px}
}
@media(max-width:720px){
  .content{padding:18px 14px 34px}
  .page-head h1{font-size:1.55rem}
  .stats{gap:10px}
  .stat{padding:14px;min-height:100px}
  .stat-value{font-size:1.55rem}
  .page-actions .btn{min-height:46px}
  .global-search{background:#f7faf8}
}

/* Authentication surfaces: shared Verdant tone for pages that use app.css */
.auth-card,.access-card,.offline-card,.suspended-card,.setup-card{
  border-color:#e1e8e3!important;
  box-shadow:0 18px 50px rgba(8,39,25,.08)!important;
}
.auth-logo,.registration-logo{box-shadow:0 14px 30px rgba(8,39,25,.18)!important}
