:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #253641;
  background: #f1f8fa;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #edf7f9, #f7fafb); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-wrap { width: min(1180px, calc(100% - 36px)); min-height: 100vh; margin: 0 auto; padding: 28px 0 22px; display: flex; flex-direction: column; }
.site-header, .program-panel, .login-panel { background: #fff; border: 1px solid #dbe6e9; border-radius: 19px; box-shadow: 0 10px 34px rgba(45,83,92,.06); }
.site-header { border-top: 3px solid #217682; padding: 18px 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.header-heading { display: flex; align-items: center; gap: 19px; min-width: 0; }
.oer-logo { display: block; width: 140px; height: auto; flex: none; }
.header-title, .header-subtitle { display: block; }
.header-title { font-size: 26px; font-weight: 750; letter-spacing: -.045em; line-height: 1.15; }
.header-subtitle { font-size: 13px; color: #72828c; margin-top: 5px; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.header-actions form { margin: 0; }
.user-name { font-size: 13px; color: #5b6b75; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; border-radius: 9px; padding: 11px 17px; border: 1px solid transparent; min-height: 43px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, transform .15s, border-color .15s; }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #92cbd0; outline-offset: 2px; }
.button-primary { background: #1a7380; color: #fff; }
.button-primary:hover { background: #125e69; }
.button-secondary { background: #fff; color: #25414a; border-color: #d9e3e6; }
.button-secondary:hover { background: #f1f8f9; }
.header-search { width: 100%; display: flex; gap: 10px; }
.header-search input { min-width: 0; flex: 1; height: 48px; border: 1px solid #dce5e8; border-radius: 11px; padding: 0 15px; color: #263b43; background: #fbfcfc; outline: none; }
.header-search input::placeholder { color: #89949c; }
.header-search .button { min-width: 94px; }
.header-badge { display: inline-flex; align-items: center; gap: 9px; color: #58717a; background: #f2f8f9; border: 1px solid #deebed; border-radius: 999px; padding: 9px 13px; font-size: 12px; }
.badge-dot { display: inline-block; width: 8px; height: 8px; background: #27858c; border-radius: 50%; flex: none; }
.dashboard-main { padding-top: 34px; flex: 1; }
.program-panel { border-left: 4px solid #497f8c; padding: 25px 26px 30px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e0e6e8; padding-bottom: 16px; }
.panel-kicker { display: block; color: #617987; font-size: 13px; font-weight: 700; }
.panel-heading h1 { font-size: 29px; line-height: 1.1; letter-spacing: -.04em; margin: 6px 0 0; }
.program-count { font-size: 13px; color: #74838c; white-space: nowrap; }
.panel-intro { font-size: 14px; color: #687984; margin: 17px 0 21px; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 15px; }
.program-card { position: relative; display: flex; gap: 16px; min-height: 190px; background: #f5faf9; border: 1px solid #dce6e4; border-radius: 16px; padding: 18px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.program-card[href]:hover { border-color: #8bc0c3; box-shadow: 0 10px 22px #3568781a; transform: translateY(-2px); }
.program-icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #e5f0f2; color: #1b6472; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.program-icon--violet { background: #eeeaf7; color: #675580; }
.program-icon--blue { background: #e3eff5; color: #426d82; }
.program-icon--green { background: #e6f3e9; color: #3d7457; }
.program-icon--orange { background: #f8eddd; color: #9a6b3d; }
.program-icon--rose { background: #f7e9ed; color: #9b5e71; }
.program-details { min-width: 0; padding: 2px 0 42px; }
.program-category { display: block; color: #647782; font-size: 12px; font-weight: 650; }
.program-details h2 { font-size: 23px; letter-spacing: -.035em; line-height: 1.2; margin: 7px 0; }
.program-details p { font-size: 13px; line-height: 1.5; color: #6d7d86; margin: 0; }
.program-status { position: absolute; left: 88px; bottom: 18px; display: inline-block; padding: 6px 10px; border-radius: 7px; background: #eff2f2; color: #65737b; font-size: 12px; font-weight: 700; }
.program-status--ready { background: #e8f6ef; color: #28684f; }
.program-open { position: absolute; right: 17px; top: 17px; color: #1a7380; font-size: 20px; }
.empty-programs { grid-column: 1/-1; padding: 30px; background: #f5faf9; border-radius: 14px; color: #6d7d86; }
.empty-programs h2 { font-size: 18px; color: #253641; margin: 0 0 6px; }
.empty-programs p { margin: 0; font-size: 13px; }
.search-empty { padding: 24px; color: #697e84; text-align: center; }
.site-footer { text-align: center; color: #86969e; font-size: 12px; margin-top: 30px; }
.login-wrap { max-width: 850px; }
.login-header { flex-wrap: nowrap; }
.login-panel { width: min(100%,580px); padding: 40px 42px; margin: clamp(42px,10vh,100px) auto auto; border-left: 4px solid #497f8c; }
.login-panel h1 { font-size: clamp(30px,4vw,43px); letter-spacing: -.055em; line-height: 1.13; margin: 11px 0 13px; }
.login-panel>p { color: #667984; font-size: 15px; line-height: 1.65; margin: 0 0 30px; }
.login-panel .button { width: 100%; justify-content: space-between; min-height: 52px; }
.login-note { display: flex; align-items: center; gap: 9px; color: #72868e; font-size: 12px; margin-top: 22px; }
.setup-notice { display: flex; flex-direction: column; gap: 4px; background: #fff9ed; border: 1px solid #eddfbd; color: #775d28; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 13px; }
.setup-notice span { color: #8b7955; }
.button-disabled { opacity: .5; cursor: not-allowed; }
.button-disabled:hover { background: #1a7380; }
.error-page { background: #f1f8fa; }
.error-shell { max-width: 800px; margin: 0 auto; padding: 35px 20px; }
.error-shell .brand { font-weight: 700; color: #253641; }
.error-card { background: #fff; border: 1px solid #dbe6e9; border-radius: 18px; padding: 35px; max-width: 520px; margin: 13vh auto; }
.error-card h1 { font-size: 32px; margin: 0 0 12px; }
.error-card p { color: #667984; line-height: 1.6; }
.error-card .primary-button { display: inline-block; background: #1a7380; color: #fff; border-radius: 9px; padding: 12px 18px; }
@media (max-width: 650px) {
  .site-wrap { width: calc(100% - 28px); padding-top: 18px; }
  .site-header { padding: 15px 14px 16px; gap: 14px; }
  .header-heading { gap: 11px; }
  .oer-logo { width: 105px; }
  .header-title { font-size: 22px; }
  .header-subtitle { font-size: 12px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .header-search { gap: 7px; }
  .header-search input { font-size: 13px; padding: 0 11px; }
  .header-search .button { min-width: 72px; padding: 9px 11px; font-size: 13px; }
  .dashboard-main { padding-top: 23px; }
  .program-panel { padding: 20px 17px 24px; }
  .panel-heading { align-items: start; flex-direction: column; }
  .program-count { font-size: 12px; }
  .panel-heading h1 { font-size: 27px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 175px; }
  .login-header { align-items: flex-start; }
  .login-header .header-badge { font-size: 0; padding: 9px; }
  .login-header .header-badge .badge-dot { width: 9px; height: 9px; }
  .login-panel { padding: 28px 23px; margin-top: 45px; }
  .login-panel>p { font-size: 14px; }
}
