*,:after,:before{box-sizing:border-box;margin:0;padding:0}:root{--font-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-mono:"Menlo","Monaco","Courier New",monospace;--color-bg-page:#f5f7fe;--color-bg-surface:#fff;--color-bg-soft:#f1f5f9;--color-border:#e2e8f0;--color-border-strong:#cbd5e1;--color-text:#0f172a;--color-text-muted:#64748b;--color-primary:#4f46e5;--color-primary-hover:#4338ca;--color-secondary:#0f766e;--color-success:#16a34a;--color-warning:#f59e0b;--color-danger:#dc2626;--color-accent:#7c3aed;--color-info:#0284c7;--tint-neutral:#eef2ff;--tint-blue:#dbeafe;--tint-purple:#ede9fe;--tint-teal:#ccfbf1;--tint-amber:#fef3c7;--tint-rose:#fee2e2;--tint-green:#dcfce7;--radius-sm:6px;--radius-md:10px;--radius-lg:16px;--radius-xl:22px;--shadow-xs:0 1px 2px rgba(15,23,42,.05);--shadow-sm:0 4px 10px rgba(15,23,42,.06);--shadow-md:0 18px 40px rgba(15,23,42,.08)}html{font-family:var(--font-sans);font-size:16px;line-height:1.5;background:radial-gradient(1200px 480px at 100% -10%,rgba(79,70,229,.08),transparent 60%),radial-gradient(900px 420px at -10% 10%,rgba(13,148,136,.06),transparent 55%),var(--color-bg-page);background-attachment:fixed;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body,html{color:var(--color-text)}body{min-height:100vh;background:var(--color-bg-page)}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}h1,h2,h3,h4,h5,h6{color:var(--color-text);line-height:1.15}p{color:var(--color-text-muted)}.eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;font-size:12px;font-weight:700;letter-spacing:0;text-transform:uppercase;color:var(--color-secondary)}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.page-title{font-size:28px;font-weight:700;margin-bottom:6px}.page-description{max-width:760px;font-size:15px;color:var(--color-text-muted)}.card-actions,.page-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.content-area{gap:18px;padding:24px}.billing-alert,.content-area{display:flex;flex-direction:column}.billing-alert{gap:4px;padding:14px 18px;border-radius:var(--radius-lg);border:1px solid var(--color-border)}.billing-alert strong{font-size:14px}.billing-alert p{font-size:13px;margin:0}.billing-alert-restricted{background:var(--tint-amber);border-color:#fde68a}.billing-alert-restricted p,.billing-alert-restricted strong{color:#92400e}.billing-alert-suspended{background:var(--tint-rose);border-color:#fecaca}.billing-alert-suspended p,.billing-alert-suspended strong{color:#991b1b}.card{background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow-xs)}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.card-header h2{font-size:18px;margin-bottom:4px}.card-header p{font-size:14px}.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:14px;gap:14px}.stat-card{display:flex;flex-direction:column;gap:10px;background:linear-gradient(165deg,var(--tint-neutral),var(--color-bg-surface) 55%);border:1px solid var(--color-border);border-left:4px solid var(--color-border-strong);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow-xs);min-height:138px;transition:transform .15s ease,box-shadow .15s ease}.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm)}.stat-card:has(.badge-success){background:linear-gradient(165deg,var(--tint-green),var(--color-bg-surface) 55%);border-left-color:var(--color-success)}.stat-card:has(.badge-warning){background:linear-gradient(165deg,var(--tint-amber),var(--color-bg-surface) 55%);border-left-color:var(--color-warning)}.stat-card:has(.badge-danger){background:linear-gradient(165deg,var(--tint-rose),var(--color-bg-surface) 55%);border-left-color:var(--color-danger)}.stat-card:has(.badge-info){background:linear-gradient(165deg,var(--tint-blue),var(--color-bg-surface) 55%);border-left-color:var(--color-info)}.stat-card:has(.badge-teal){background:linear-gradient(165deg,var(--tint-teal),var(--color-bg-surface) 55%);border-left-color:var(--color-secondary)}.stat-card:has(.badge-purple){background:linear-gradient(165deg,var(--tint-purple),var(--color-bg-surface) 55%);border-left-color:var(--color-accent)}.stat-card strong{font-size:30px;line-height:1}.stat-card p{font-size:14px}.badge{display:inline-flex;width:-moz-fit-content;width:fit-content;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid transparent;font-size:12px;font-weight:700;line-height:1}.badge-neutral{color:var(--color-text);background:var(--color-bg-soft);border-color:var(--color-border)}.badge-success{color:#166534;background:#dcfce7;border-color:#bbf7d0}.badge-warning{color:#92400e;background:#fef3c7;border-color:#fde68a}.badge-danger{color:#991b1b;background:#fee2e2;border-color:#fecaca}.badge-info{color:#075985;background:#e0f2fe;border-color:#bae6fd}.badge-teal{color:#115e59;background:#ccfbf1;border-color:#99f6e4}.badge-purple{color:#5b21b6;background:#ede9fe;border-color:#ddd6fe}.ghost-button,.primary-button,.primary-button-large,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;border-radius:var(--radius-md);border:1px solid transparent;font-size:14px;font-weight:700;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}.primary-button,.primary-button-large{background:var(--color-primary);color:#fff;box-shadow:var(--shadow-xs)}.primary-button-large:hover,.primary-button:hover{background:var(--color-primary-hover)}.secondary-button{background:#eff6ff;color:var(--color-primary);border-color:#bfdbfe}.secondary-button:hover{background:#dbeafe}.ghost-button{background:transparent;color:var(--color-text);border-color:var(--color-border)}.ghost-button:hover{background:var(--color-bg-soft);text-decoration:none}.ghost-button:focus-visible,.institution-card:focus-visible,.institution-mini:focus-visible,.nav-link:focus-visible,.pill:focus-visible,.primary-button-large:focus-visible,.primary-button:focus-visible,.schedule-list-item:focus-visible,.secondary-button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.field{display:flex;flex-direction:column;gap:8px}.field span{font-size:13px;font-weight:700;color:var(--color-text)}.field input,.field select,.field textarea{width:100%;min-height:42px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:#fff;color:var(--color-text);padding:0 12px;outline:none;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.5)}.field textarea{min-height:96px;padding:12px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(59,130,246,.12)}.field-inline{min-width:320px;flex:1 1}.stack{display:flex;flex-direction:column;gap:12px}.list-row,.list-row-slim,.swap-card,.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:#fff;padding:14px 16px}.list-row strong,.swap-card strong{display:block;font-size:14px;color:var(--color-text)}.list-row p,.swap-card p{font-size:13px;margin-top:4px}.swap-card{align-items:flex-start;flex-wrap:wrap}.swap-card-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex:1 1 240px;min-width:0}.swap-card-meta{display:flex;flex-direction:column;gap:4px;flex:1 1 200px;font-size:13px;color:var(--color-text-muted)}.row-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}.two-column-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:18px;gap:18px}.three-column-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:18px;gap:18px}.detail-grid{display:grid;grid-template-columns:1.1fr 1fr;grid-gap:18px;gap:18px}.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px}.detail-list div{padding:14px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-bg-soft)}.detail-list span{display:block;margin-bottom:6px;font-size:12px;font-weight:700;text-transform:uppercase;color:var(--color-text-muted)}.detail-list strong{color:var(--color-text);font-size:14px}.soft-copy{font-size:14px;color:var(--color-text-muted)}.table-shell{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table td,.data-table th{padding:14px 12px;border-bottom:1px solid var(--color-border);text-align:left;vertical-align:top}.data-table th{font-size:12px;text-transform:uppercase;letter-spacing:0;color:var(--color-text-muted);background:#f8fafc}.data-table td strong{display:block;color:var(--color-text);margin-bottom:4px}.data-table td span{display:block;color:var(--color-text-muted);font-size:13px}.filter-bar{align-items:end;gap:14px}.filter-bar,.pill-group{display:flex;flex-wrap:wrap}.pill-group{gap:8px}.pill{min-height:38px;padding:0 12px;border-radius:999px;border:1px solid var(--color-border);background:#fff;color:var(--color-text);font-size:13px;font-weight:700}.pill.active{border-color:#bfdbfe;background:#eff6ff;color:var(--color-primary)}.app-shell{display:grid;grid-template-columns:282px minmax(0,1fr);min-height:100vh}.sidebar{display:flex;flex-direction:column;gap:18px;padding:20px;border-right:1px solid var(--color-border);background:linear-gradient(180deg,#fff,#f5f3ff 65%,#eef2ff);position:-webkit-sticky;position:sticky;top:0;height:100vh}.main-column{min-width:0;background:var(--color-bg-page)}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 18px;border-bottom:1px solid var(--color-border);background:rgba(248,250,252,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:-webkit-sticky;position:sticky;top:0;z-index:10}.topbar h1{font-size:24px;margin-bottom:6px}.topbar p{font-size:14px}.topbar-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.status-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid var(--color-border);border-radius:999px;background:#fff;font-size:13px;font-weight:700}.status-dot{width:10px;height:10px;border-radius:999px;display:inline-block}.status-active{background:var(--color-success)}.status-restricted{background:var(--color-warning)}.status-suspended{background:var(--color-danger)}.brand-area{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--color-primary),var(--color-accent));color:#fff;font-weight:800;box-shadow:var(--shadow-sm)}.brand-mark-large{width:54px;height:54px;font-size:20px}.brand-area p{font-size:13px}.institution-switcher{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:#f8fafc}.institution-switcher strong{color:var(--color-text)}.nav-list{display:flex;flex-direction:column;gap:6px}.nav-link{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:0 14px;border-radius:var(--radius-md);color:var(--color-text);border:1px solid transparent;font-weight:600}.nav-link:hover{background:#f8fafc;text-decoration:none}.nav-link.active{background:#eff6ff;border-color:#bfdbfe;color:var(--color-primary)}.sidebar-footer{margin-top:auto;padding-top:12px;border-top:1px solid var(--color-border);display:flex;flex-direction:column;gap:6px}.sidebar-footer p{font-size:13px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;grid-gap:24px;gap:24px;padding:28px;align-items:stretch}.auth-card,.auth-panel,.institution-card,.institution-mini,.loading-card,.placeholder-panel,.selected-banner,.selection-header{border:1px solid var(--color-border);border-radius:var(--radius-xl);background:#fff;box-shadow:var(--shadow-xs)}.auth-panel{padding:40px;display:flex;flex-direction:column;justify-content:center;gap:22px;color:#fff;background:linear-gradient(150deg,#3730a3,#4338ca 45%,#1d4ed8 110%);box-shadow:var(--shadow-md);border-color:transparent}.auth-panel .eyebrow{color:hsla(0,0%,100%,.85)}.auth-panel .page-title,.auth-panel h1{color:#fff;font-size:44px;max-width:520px}.auth-panel p{color:hsla(0,0%,100%,.85)}.auth-copy{max-width:640px;font-size:16px}.auth-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:14px;gap:14px}.auth-highlights div{padding:16px;border-radius:var(--radius-lg);border:1px solid hsla(0,0%,100%,.25);background:hsla(0,0%,100%,.12);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.auth-highlights strong{color:#fff;display:block;margin-bottom:6px}.auth-card{padding:32px;display:flex;flex-direction:column;justify-content:center;gap:16px}.auth-card h2{font-size:24px}.auth-form{display:flex;flex-direction:column;gap:14px;margin-top:8px}.primary-button-large{min-height:46px}.auth-credentials{display:grid;grid-gap:10px;gap:10px;padding-top:8px;border-top:1px solid var(--color-border)}.auth-credentials div{display:flex;flex-direction:column;gap:3px}.auth-credentials span,.auth-credentials strong{font-size:13px}.selection-layout{min-height:100vh;padding:28px;display:flex;flex-direction:column;gap:18px}.selection-header{padding:24px}.selection-header h1{font-size:32px;margin-bottom:6px}.selection-header p{font-size:15px}.selected-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px}.institution-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:16px;gap:16px}.institution-card{display:flex;flex-direction:column;gap:14px;text-align:left;padding:20px;border-radius:var(--radius-xl);border-top:4px solid var(--color-border-strong);background:linear-gradient(165deg,#fff,#f8fafc 70%);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.institution-card:has(.badge-success){border-top-color:var(--color-success)}.institution-card:has(.badge-warning){border-top-color:var(--color-warning)}.institution-card:has(.badge-danger){border-top-color:var(--color-danger)}.institution-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:#bfdbfe}.institution-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.institution-card-head strong,.institution-mini strong{color:var(--color-text);font-size:16px}.institution-card-meta{display:flex;flex-wrap:wrap;gap:8px}.institution-card-footer span,.institution-card-meta span{font-size:13px;color:var(--color-text-muted)}.institution-card-footer{display:flex;flex-direction:column;gap:6px;padding-top:8px;border-top:1px solid var(--color-border)}.institution-card-footer strong{color:var(--color-text)}.institution-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:14px;gap:14px}.institution-mini{padding:16px;display:flex;flex-direction:column;gap:10px}.institution-mini.active{border-color:#93c5fd;background:#eff6ff}.institution-mini p{font-size:13px}.schedule-grid-shell{display:flex;flex-direction:column;gap:12px}.schedule-grid-body{display:flex;flex-direction:column;gap:16px}.schedule-grid-head,.schedule-grid-row{display:grid;grid-template-columns:84px repeat(7,minmax(0,1fr));grid-gap:12px;gap:12px}.schedule-grid-day{padding:10px 12px;border-radius:var(--radius-md);background:#eff6ff;color:var(--color-primary);text-align:center}.schedule-grid-day,.schedule-grid-row-label{font-size:12px;font-weight:800;text-transform:uppercase}.schedule-grid-row-label{display:flex;align-items:flex-start;justify-content:flex-start;padding-top:6px;color:var(--color-text-muted)}.schedule-grid-cell{min-height:136px;padding:10px;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:#fff;display:flex;flex-direction:column;gap:8px}.schedule-grid-empty{min-height:100px;display:grid;place-items:center;border-radius:var(--radius-md);background:#f8fafc;color:var(--color-text-muted);font-size:13px;border:1px dashed var(--color-border)}.schedule-grid-footer{padding-top:8px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:40px 24px;border:1px dashed var(--color-border-strong);border-radius:var(--radius-lg);background:linear-gradient(165deg,var(--tint-neutral),var(--color-bg-soft) 70%)}.empty-state strong{font-size:15px;color:var(--color-text)}.empty-state p{max-width:420px;font-size:13px}.empty-state>div{margin-top:4px}.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:40px 24px;border:1px solid #fecaca;border-radius:var(--radius-lg);background:linear-gradient(165deg,var(--tint-rose),var(--color-bg-soft) 70%)}.error-state strong{font-size:15px;color:#991b1b}.error-state p{max-width:420px;font-size:13px;color:#991b1b}.grid-footnotes{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:var(--color-text-muted)}.shift-card{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:linear-gradient(180deg,#fff,#f8fafc)}.shift-card.compact{padding:12px}.shift-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.shift-card-top>div{min-width:0}.shift-card-top strong{color:var(--color-text);font-size:14px;overflow-wrap:break-word}.shift-card-top p{font-size:12px;margin-top:4px;overflow-wrap:break-word}.shift-card-top .badge{flex-shrink:0;white-space:nowrap}.shift-card.compact .shift-card-top{flex-wrap:wrap}.shift-foot,.shift-meta{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--color-text-muted)}.shift-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px}.schedule-list-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--color-border);border-radius:var(--radius-md);padding:14px 16px;background:#fff;text-align:left}.schedule-list-item.active{border-color:#93c5fd;background:#eff6ff}.schedule-list-item p{font-size:13px}.placeholder-panel{padding:26px;background:linear-gradient(180deg,#fff,#f8fafc)}.placeholder-panel strong{display:block;font-size:18px;margin-bottom:8px;color:var(--color-text)}.placeholder-panel p{max-width:640px;font-size:14px}.toggle-list{display:flex;flex-direction:column;gap:12px}.toggle{display:inline-flex;align-items:center;width:54px;height:30px;border-radius:999px;border:1px solid var(--color-border);padding:3px;background:#e2e8f0}.toggle.on{background:#d1fae5;border-color:#a7f3d0}.toggle.off{background:#fee2e2;border-color:#fecaca}.toggle-dot{width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:var(--shadow-xs);transition:transform .15s ease}.toggle.on .toggle-dot{transform:translateX(22px)}.toggle.off .toggle-dot{transform:translateX(0)}.app-loading{min-height:100vh;display:grid;place-items:center;padding:24px}.loading-card{min-width:280px;padding:28px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.spinner{width:24px;height:24px;border:3px solid #cbd5e1;border-top:3px solid var(--color-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}@media (max-width:1200px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid,.institution-grid,.institution-strip,.shift-list,.three-column-grid,.two-column-grid{grid-template-columns:1fr}.schedule-grid-head,.schedule-grid-row{grid-template-columns:64px repeat(7,minmax(0,1fr));gap:8px}}@media (max-width:960px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--color-border)}.topbar{position:static;flex-direction:column}.auth-layout{grid-template-columns:1fr}.auth-panel h1{font-size:34px}}@media (max-width:720px){.auth-layout,.content-area,.selection-layout{padding:16px}.card-header,.page-header,.selected-banner{flex-direction:column;align-items:stretch}.card-actions,.page-actions,.topbar-meta{justify-content:flex-start}.auth-highlights,.detail-list,.stat-grid,.three-column-grid,.two-column-grid{grid-template-columns:1fr}.schedule-grid-head,.schedule-grid-row{grid-template-columns:54px repeat(7,minmax(0,1fr));gap:6px}.schedule-grid-cell{min-height:112px;padding:8px}.sidebar{padding:16px}}