:root {
  color-scheme: light;
  --ink: #0d1b24;
  --ink-2: #1e323f;
  --muted: #60717d;
  --muted-2: #87959f;
  --paper: #f5f7f7;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --line: #dce5e3;
  --line-dark: #c5d1ce;
  --brand: #0ca889;
  --brand-dark: #087c68;
  --brand-soft: #ddf7f0;
  --nav: #07141d;
  --nav-2: #0d202b;
  --nav-text: #d8e5e5;
  --success: #15815e;
  --success-soft: #e0f5ec;
  --warning: #a76808;
  --warning-soft: #fff2d6;
  --danger: #b83838;
  --danger-soft: #fce7e7;
  --info: #2c66b8;
  --info-soft: #e5eefc;
  --purple: #7552b6;
  --purple-soft: #eee7fb;
  --shadow: 0 18px 50px rgba(13, 31, 39, .10);
  --shadow-sm: 0 5px 18px rgba(13, 31, 39, .08);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 278px;
  --topbar: 84px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: #9ae6d5; color: #092018; }

.eyebrow { display: block; color: var(--brand-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.break-word { overflow-wrap: anywhere; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: white; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #051715; background: linear-gradient(135deg, #20d2ad, #88f2dd); font-size: 14px; font-weight: 900; letter-spacing: -.03em; box-shadow: inset 0 1px rgba(255,255,255,.4); }
.brand strong { display: block; font-size: 17px; letter-spacing: -.03em; line-height: 1; }
.brand small { display: block; color: #7fa3a5; margin-top: 4px; font-size: 9px; font-weight: 800; letter-spacing: .25em; }
.brand-large .brand-mark { width: 54px; height: 54px; border-radius: 15px; font-size: 17px; }
.brand-large strong { font-size: 21px; }
.mobile-brand { display: none; color: var(--ink); margin-bottom: 32px; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr); background: var(--surface); }
.login-visual { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 46px clamp(40px, 6vw, 96px); overflow: hidden; color: white; background:
  radial-gradient(circle at 75% 12%, rgba(22, 199, 161, .22), transparent 31%),
  radial-gradient(circle at 16% 84%, rgba(36, 104, 126, .29), transparent 31%),
  linear-gradient(145deg, #07131c 0%, #0a202a 62%, #0b2831 100%);
}
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(124, 226, 207, .13); border-radius: 50%; pointer-events: none; }
.login-visual::before { width: 620px; height: 620px; right: -290px; top: 80px; box-shadow: 0 0 0 80px rgba(124, 226, 207, .025), 0 0 0 160px rgba(124, 226, 207, .018); }
.login-visual::after { width: 260px; height: 260px; left: -125px; bottom: -80px; }
.login-hero-copy { position: relative; z-index: 1; width: min(720px, 90%); margin: auto 0; padding: 80px 0; }
.login-hero-copy .eyebrow { color: #62dcc3; }
.login-hero-copy h1 { max-width: 680px; margin: 18px 0 20px; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.login-hero-copy > p { max-width: 610px; margin: 0; color: #b9cecf; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; }
.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.hero-features > div { min-height: 150px; padding: 20px; border: 1px solid rgba(181, 234, 225, .12); border-radius: 15px; background: rgba(255,255,255,.035); backdrop-filter: blur(5px); }
.hero-features span { color: #51d0b7; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.hero-features p { margin: 16px 0 0; color: #aac1c1; font-size: 13px; }
.hero-features strong { color: #eef8f7; }
.login-legal-note { position: relative; z-index: 1; max-width: 700px; color: #799799; font-size: 11px; }
.login-panel { display: grid; place-items: center; padding: 42px; background: #fbfcfc; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 8px 0 7px; font-size: 36px; letter-spacing: -.045em; }
.login-card > p { margin: 0 0 33px; }
.field { display: block; margin: 17px 0; }
.field > span:first-child { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea, .form-control { width: 100%; min-height: 48px; padding: 0 14px; color: var(--ink); border: 1px solid var(--line-dark); border-radius: 10px; outline: none; background: white; transition: border .18s, box-shadow .18s; }
.field textarea, textarea.form-control { min-height: 112px; padding-top: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12,168,137,.12); }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 48px; }
.password-wrap .icon-button { position: absolute; right: 5px; top: 5px; }
.form-error { padding: 11px 13px; color: var(--danger); border: 1px solid #efc6c6; border-radius: 9px; background: var(--danger-soft); }
.demo-accounts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; padding-top: 21px; border-top: 1px solid var(--line); }
.demo-accounts strong { flex: 0 0 100%; margin-bottom: 2px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.demo-accounts button { padding: 6px 9px; color: var(--brand-dark); border: 1px solid #c6e9e2; border-radius: 7px; background: var(--brand-soft); font-size: 11px; cursor: pointer; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 41px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .55; pointer-events: none; }
.button-primary { color: white; background: var(--brand-dark); box-shadow: 0 8px 20px rgba(8,124,104,.18); }
.button-primary:hover { background: #076f5e; }
.button-secondary { color: var(--ink); border-color: var(--line-dark); background: white; }
.button-secondary:hover { background: #f7f9f9; }
.button-ghost { color: var(--ink-2); background: transparent; }
.button-danger { color: white; background: var(--danger); }
.button-soft { color: var(--brand-dark); border-color: #bce5dc; background: var(--brand-soft); }
.button-wide { width: 100%; min-height: 50px; justify-content: space-between; padding: 0 19px; }
.button-small { min-height: 33px; padding: 0 11px; font-size: 12px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: transparent; font-size: 19px; cursor: pointer; }
.icon-button:hover { background: rgba(120,140,145,.12); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 23px 18px 17px; color: var(--nav-text); background: linear-gradient(180deg, var(--nav) 0%, #091b25 100%); box-shadow: 10px 0 40px rgba(4, 17, 24, .08); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 23px; }
.sidebar-close { display: none; color: white; }
.main-nav { flex: 1; overflow: auto; padding: 6px 0 16px; scrollbar-width: thin; }
.nav-group { margin: 7px 0 19px; }
.nav-group-label { display: block; padding: 0 12px 7px; color: #627e83; font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; margin: 3px 0; color: #a9bec0; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 650; }
.nav-link:hover { color: #eaf6f5; background: rgba(255,255,255,.045); }
.nav-link.active { color: white; background: linear-gradient(90deg, rgba(20,185,153,.18), rgba(20,185,153,.06)); }
.nav-link.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 23px; border-radius: 3px; background: #31d4b3; }
.nav-icon { display: grid; place-items: center; width: 23px; height: 23px; color: #7f9fa1; font-size: 17px; }
.nav-link.active .nav-icon { color: #48d6b9; }
.nav-badge { margin-left: auto; padding: 2px 7px; color: #6ce0c9; border-radius: 10px; background: rgba(32,203,170,.12); font-size: 10px; }
.sidebar-compliance { display: flex; align-items: center; gap: 11px; margin: 4px 3px 14px; padding: 12px 10px; border: 1px solid rgba(115,214,194,.10); border-radius: 10px; background: rgba(255,255,255,.025); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #36d2ad; box-shadow: 0 0 0 5px rgba(54,210,173,.10); }
.sidebar-compliance strong, .sidebar-compliance small { display: block; }
.sidebar-compliance strong { color: #c6dbdb; font-size: 11px; }
.sidebar-compliance small { margin-top: 2px; color: #6f8a8d; font-size: 9px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 13px 5px 2px; border-top: 1px solid rgba(169,206,204,.09); }
.avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #062017; border-radius: 9px; background: #5dddc3; font-size: 11px; font-weight: 900; }
.sidebar-user-copy { min-width: 0; flex: 1; }
.sidebar-user-copy strong, .sidebar-user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy strong { color: #d9e8e7; font-size: 11px; }
.sidebar-user-copy small { margin-top: 2px; color: #6c898c; font-size: 9px; }
.sidebar-user .icon-button { width: 32px; height: 32px; color: #769296; }
.sidebar-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(3,12,17,.55); backdrop-filter: blur(2px); }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; height: var(--topbar); padding: 0 clamp(20px, 3vw, 44px); border-bottom: 1px solid rgba(214,225,222,.8); background: rgba(247,249,249,.90); backdrop-filter: blur(14px); }
.topbar-left { display: flex; align-items: center; gap: 15px; }
.topbar-left h1 { margin: 3px 0 0; font-size: 23px; line-height: 1; letter-spacing: -.035em; }
.topbar-left .eyebrow { font-size: 9px; }
.menu-button { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.search-trigger { display: flex; align-items: center; gap: 9px; height: 39px; min-width: 215px; padding: 0 8px 0 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.8); cursor: pointer; }
.search-trigger span:nth-child(2) { flex: 1; text-align: left; font-size: 12px; }
kbd { padding: 2px 6px; border: 1px solid var(--line-dark); border-bottom-width: 2px; border-radius: 5px; background: #f4f6f6; font: 10px/1.3 inherit; }
.notification-button { position: relative; }
.notification-count { position: absolute; top: 1px; right: 0; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; color: white; border: 2px solid var(--paper); border-radius: 9px; background: var(--danger); font-size: 8px; font-weight: 900; }
.main-content { width: 100%; max-width: 1720px; margin: 0 auto; padding: 30px clamp(20px, 3vw, 44px) 70px; outline: none; }

.page-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-toolbar h2 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.035em; }
.page-toolbar p { max-width: 790px; margin: 0; color: var(--muted); }
.toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); }
.filters .form-control { width: auto; min-width: 170px; min-height: 39px; }
.filters input[type="search"] { min-width: min(330px, 100%); }

.grid { display: grid; gap: 17px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(0,0,0,.01); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 15px; }
.card-header h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 0 22px 21px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--line); background: #fbfcfc; border-radius: 0 0 var(--radius) var(--radius); }
.kpi-card { position: relative; min-height: 151px; padding: 19px; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; right: -30px; bottom: -35px; width: 105px; height: 105px; border-radius: 50%; background: var(--accent-soft, var(--brand-soft)); opacity: .62; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--accent, var(--brand-dark)); border-radius: 10px; background: var(--accent-soft, var(--brand-soft)); font-size: 18px; }
.kpi-trend { color: var(--muted); font-size: 10px; font-weight: 750; }
.kpi-value { position: relative; z-index: 1; margin-top: 17px; font-size: 30px; font-weight: 850; letter-spacing: -.05em; line-height: 1; }
.kpi-label { position: relative; z-index: 1; margin-top: 8px; color: var(--muted); font-size: 11px; }
.kpi-green { --accent: var(--success); --accent-soft: var(--success-soft); }
.kpi-amber { --accent: var(--warning); --accent-soft: var(--warning-soft); }
.kpi-red { --accent: var(--danger); --accent-soft: var(--danger-soft); }
.kpi-blue { --accent: var(--info); --accent-soft: var(--info-soft); }
.kpi-purple { --accent: var(--purple); --accent-soft: var(--purple-soft); }

.alert-list { display: grid; gap: 9px; }
.alert-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border-radius: 11px; background: var(--surface-2); }
.alert-icon { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; font-weight: 850; }
.alert-item strong { display: block; font-size: 12px; }
.alert-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.alert-CRITICAL { background: var(--danger-soft); }.alert-CRITICAL .alert-icon { color: var(--danger); background: #f8d3d3; }
.alert-WARNING { background: var(--warning-soft); }.alert-WARNING .alert-icon { color: var(--warning); background: #ffe3aa; }
.alert-INFO { background: var(--info-soft); }.alert-INFO .alert-icon { color: var(--info); background: #cfe0f8; }

.progress { width: 100%; height: 7px; overflow: hidden; border-radius: 10px; background: #e6ecea; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.progress-danger > span { background: var(--danger); }
.progress-warning > span { background: #e69a25; }
.department-row { display: grid; grid-template-columns: minmax(130px, 1.3fr) minmax(120px, 2fr) 52px; align-items: center; gap: 13px; padding: 10px 0; border-bottom: 1px solid #edf1f0; }
.department-row:last-child { border: 0; }
.department-row strong { display: block; font-size: 11px; }
.department-row small { color: var(--muted); font-size: 9px; }
.department-row b { font-size: 12px; text-align: right; }

.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e9eeee; text-align: left; vertical-align: middle; }
th { position: sticky; z-index: 2; top: 0; color: #52656f; background: #f8fafa; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { font-size: 12px; }
tbody tr:hover { background: #f9fbfb; }
tbody tr:last-child td { border-bottom: 0; }
.cell-primary { display: block; color: var(--ink); font-weight: 750; }
.cell-secondary { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; }
.checkbox { width: 16px; height: 16px; accent-color: var(--brand-dark); }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 2px 8px; border-radius: 20px; font-size: 9px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success, .badge-COMPLIANT, .badge-COMPLETED, .badge-PRESENT, .badge-ISSUED, .badge-SENT, .badge-ACTIVE { color: var(--success); background: var(--success-soft); }
.badge-warning, .badge-AT_RISK, .badge-ASSIGNED, .badge-SCHEDULED, .badge-AWAITING_EXAM, .badge-AWAITING_CONFIRMATION, .badge-PENDING, .badge-DRAFT { color: var(--warning); background: var(--warning-soft); }
.badge-danger, .badge-NON_COMPLIANT, .badge-EXPIRED, .badge-FAILED, .badge-ABSENT, .badge-ERROR, .badge-CANCELLED { color: var(--danger); background: var(--danger-soft); }
.badge-info, .badge-IN_PROGRESS, .badge-PUBLISHED, .badge-WEBINAR, .badge-E_LEARNING { color: var(--info); background: var(--info-soft); }
.badge-neutral, .badge-INACTIVE, .badge-EXCUSED, .badge-REGISTERED { color: #62737b; background: #edf1f1; }
.badge-purple, .badge-BLENDED, .badge-DIRECTED_SELF_STUDY { color: var(--purple); background: var(--purple-soft); }
.badge-CLASSROOM, .badge-WORKSTATION { color: #8b5b19; background: #f7ead8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; padding: 3px 7px; color: #49616b; border: 1px solid #dbe5e3; border-radius: 6px; background: #f5f8f7; font-size: 9px; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-card { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s, border .18s; }
.course-card:hover { transform: translateY(-3px); border-color: #b9d5cf; box-shadow: var(--shadow-sm); }
.course-card::after { content: ""; position: absolute; right: -25px; top: -25px; width: 95px; height: 95px; border-radius: 50%; background: var(--brand-soft); opacity: .55; }
.course-code { position: relative; z-index: 1; color: var(--brand-dark); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.course-card h3 { position: relative; z-index: 1; margin: 15px 0 8px; font-size: 17px; line-height: 1.3; letter-spacing: -.025em; }
.course-card p { flex: 1; margin: 0; color: var(--muted); font-size: 11px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); color: #54666e; font-size: 10px; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }


.courseware-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.courseware-card { display: flex; flex-direction: column; min-height: 285px; }
.courseware-card .card-header { align-items: flex-start; }
.courseware-card .card-body { display: flex; flex: 1; flex-direction: column; }
.courseware-actions { margin-top: auto; }

.course-materials { margin-top: 17px; }
.course-materials-compact { margin-top: 17px; }
.material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.material-card { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfefd; }
.material-card-icon { display: grid; place-items: center; width: 50px; height: 50px; color: #0f766e; border-radius: 13px; background: var(--brand-soft); font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.material-card-main { min-width: 0; }
.material-card-main strong { display: block; color: var(--ink); font-size: 11px; }
.material-card-main p { margin: 4px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.material-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; color: #64737b; font-size: 9px; }
.material-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.course-materials-compact .material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course-materials-compact .material-card { grid-template-columns: 42px minmax(0, 1fr); align-items: start; }
.course-materials-compact .material-actions { grid-column: 1 / -1; justify-content: flex-start; }
.course-materials-compact .material-card-icon { width: 42px; height: 42px; border-radius: 11px; }

.timeline { position: relative; }
.timeline-item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 17px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; color: var(--brand-dark); border: 1px solid #cde7e1; border-radius: 9px; background: var(--brand-soft); font-size: 10px; font-weight: 850; }
.timeline-content strong { display: block; font-size: 11px; }
.timeline-content p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.timeline-content time { color: var(--muted-2); font-size: 9px; }

.expiration-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid #edf1f0; }
.expiration-item:last-child { border: 0; }
.expiration-days { display: grid; place-items: center; width: 40px; height: 40px; color: var(--warning); border-radius: 10px; background: var(--warning-soft); font-size: 11px; font-weight: 850; }
.expiration-days.critical { color: var(--danger); background: var(--danger-soft); }
.expiration-item strong { display: block; font-size: 11px; }
.expiration-item p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }

.empty-state { display: grid; place-items: center; min-height: 260px; padding: 30px; text-align: center; border: 1px dashed var(--line-dark); border-radius: 14px; background: rgba(255,255,255,.55); }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 13px; color: var(--brand-dark); border-radius: 17px; background: var(--brand-soft); font-size: 25px; }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { max-width: 470px; margin: 7px auto 16px; color: var(--muted); font-size: 11px; }
.loading-state { display: grid; place-items: center; min-height: 360px; color: var(--muted); }
.spinner { width: 32px; height: 32px; margin-bottom: 12px; border: 3px solid #d8e4e1; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(3,13,18,.58); backdrop-filter: blur(4px); }
.modal { display: flex; flex-direction: column; width: min(860px, 100%); max-height: min(900px, calc(100vh - 48px)); overflow: hidden; border-radius: 18px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.27); }
.modal.modal-wide { width: min(1180px, 100%); }
.modal.modal-narrow { width: min(560px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 23px 17px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.03em; }
.modal-content { overflow: auto; padding: 23px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; margin: 23px -23px -23px; padding: 16px 23px; border-top: 1px solid var(--line); background: #fafcfc; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .field { margin: 9px 0; }
.form-grid .span-all { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; }
.check-row input { margin-top: 3px; accent-color: var(--brand-dark); }
.check-row label { color: var(--ink-2); font-size: 11px; }

.detail-hero { padding: 22px; color: white; border-radius: 14px; background: linear-gradient(135deg, #09202a, #0c3b41); }
.detail-hero .eyebrow { color: #5fd7bf; }
.detail-hero h2 { margin: 11px 0 8px; font-size: 27px; line-height: 1.15; letter-spacing: -.04em; }
.detail-hero p { max-width: 790px; margin: 0; color: #b7cecf; font-size: 12px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.detail-stat { padding: 9px 12px; border: 1px solid rgba(185,226,220,.13); border-radius: 8px; background: rgba(255,255,255,.05); }
.detail-stat b, .detail-stat small { display: block; }
.detail-stat b { font-size: 12px; }.detail-stat small { margin-top: 2px; color: #84a5a7; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.markdown { color: #263b46; font-size: 13px; line-height: 1.72; }
.markdown h2, .markdown h3, .markdown h4 { margin: 1.4em 0 .45em; color: var(--ink); letter-spacing: -.02em; }
.markdown h2 { font-size: 20px; }.markdown h3 { font-size: 16px; }.markdown h4 { font-size: 14px; }
.markdown ul { padding-left: 20px; }.markdown li { margin: 5px 0; }
.markdown code { padding: 2px 5px; border-radius: 5px; background: #eef3f2; font-size: .9em; }
.markdown blockquote { margin: 16px 0; padding: 11px 15px; border-left: 3px solid var(--brand); background: var(--brand-soft); }
.module-list { display: grid; gap: 9px; }
.module-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.module-item:hover { border-color: #afcec7; }
.module-number { display: grid; place-items: center; width: 34px; height: 34px; color: var(--brand-dark); border-radius: 9px; background: var(--brand-soft); font-weight: 850; }
.module-item.completed .module-number { color: white; background: var(--success); }
.module-item strong { display: block; font-size: 11px; }
.module-item small { color: var(--muted); font-size: 9px; }
.training-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 17px; }
.training-sidebar { align-self: start; position: sticky; top: 0; }
.training-content { min-height: 460px; }
.exam-question { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.exam-question legend { padding: 0 6px; font-weight: 750; }
.exam-option { display: flex; align-items: flex-start; gap: 9px; margin: 9px 0; padding: 9px 10px; border-radius: 8px; background: #f7f9f9; cursor: pointer; }
.exam-option input { margin-top: 3px; accent-color: var(--brand-dark); }

.matrix-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: white; }
.matrix-table { min-width: 1080px; }
.matrix-table th:first-child, .matrix-table td:first-child { position: sticky; z-index: 3; left: 0; background: inherit; min-width: 210px; }
.matrix-cell { text-align: center; }
.matrix-check { display: inline-grid; place-items: center; width: 23px; height: 23px; color: var(--success); border-radius: 7px; background: var(--success-soft); font-weight: 900; }
.matrix-empty { color: #c2cdca; }

.session-card { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.session-date { display: grid; place-items: center; min-height: 69px; color: var(--brand-dark); border-radius: 11px; background: var(--brand-soft); text-align: center; }
.session-date b { display: block; font-size: 23px; line-height: 1; }.session-date span { display: block; margin-top: 3px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.session-main h3 { margin: 0; font-size: 14px; }.session-main p { margin: 4px 0 8px; color: var(--muted); font-size: 10px; }
.session-meta { display: flex; flex-wrap: wrap; gap: 9px; color: #536871; font-size: 9px; }
.session-capacity { min-width: 90px; text-align: right; }
.session-capacity strong { display: block; font-size: 13px; }.session-capacity small { color: var(--muted); font-size: 9px; }

.command-backdrop { align-items: start; padding-top: 11vh; }
.command-palette { width: min(680px, 100%); overflow: hidden; border-radius: 15px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.29); }
.command-palette > label { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.command-palette > label span { color: var(--muted); font-size: 24px; }
.command-palette input { width: 100%; height: 61px; border: 0; outline: 0; font-size: 16px; }
.command-results { max-height: 410px; overflow: auto; padding: 8px; }
.command-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.command-result:hover, .command-result.active { background: var(--brand-soft); }
.command-result-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--brand-dark); border: 1px solid #cde9e2; border-radius: 9px; background: white; }
.command-result strong, .command-result small { display: block; }.command-result strong { font-size: 11px; }.command-result small { color: var(--muted); font-size: 9px; }
.command-palette footer { display: flex; gap: 15px; padding: 9px 16px; color: var(--muted-2); border-top: 1px solid var(--line); background: #fafcfc; font-size: 9px; }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 9px; width: min(380px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: 29px 1fr auto; align-items: start; gap: 10px; padding: 13px; color: white; border-radius: 11px; background: #10232d; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: rgba(255,255,255,.11); }
.toast strong { display: block; font-size: 11px; }.toast p { margin: 2px 0 0; color: #b7c9ca; font-size: 10px; }
.toast button { width: 25px; height: 25px; color: #9db2b3; border: 0; background: transparent; cursor: pointer; }
.toast-success { border-left: 3px solid #3bd3aa; }.toast-error { border-left: 3px solid #e56060; }.toast-warning { border-left: 3px solid #efb94d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.info-box { padding: 13px 15px; color: #315c5a; border: 1px solid #cce8e2; border-radius: 10px; background: #eaf8f4; font-size: 11px; }
.warning-box { padding: 13px 15px; color: #735011; border: 1px solid #efd8aa; border-radius: 10px; background: #fff6e5; font-size: 11px; }
.danger-box { padding: 13px 15px; color: #7d2e2e; border: 1px solid #efcaca; border-radius: 10px; background: #fff0f0; font-size: 11px; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.stat-strip > div { min-width: 130px; flex: 1; padding: 14px; background: white; }
.stat-strip b { display: block; font-size: 18px; letter-spacing: -.03em; }.stat-strip small { color: var(--muted); font-size: 9px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { height: 1px; margin: 20px 0; background: var(--line); }

@media (max-width: 1300px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-grid, .courseware-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-features { grid-template-columns: 1fr; max-width: 520px; }
  .hero-features > div { min-height: auto; }
}
@media (max-width: 1020px) {
  :root { --sidebar: 270px; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: grid; }
  .workspace { margin-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; }
  .mobile-brand { display: inline-flex; }
}
@media (max-width: 740px) {
  :root { --topbar: 72px; }
  .topbar { padding: 0 15px; }
  .topbar-left h1 { font-size: 19px; }
  .search-trigger { width: 40px; min-width: 40px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .search-trigger span:nth-child(2), .search-trigger kbd { display: none; }
  .topbar-actions { gap: 2px; }
  .main-content { padding: 20px 14px 50px; }
  .page-toolbar { display: block; }
  .toolbar-actions { justify-content: flex-start; margin-top: 15px; }
  .grid-2, .grid-3, .grid-4, .grid-6, .course-grid, .courseware-grid, .material-grid, .course-materials-compact .material-grid { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters .form-control, .filters input[type="search"] { width: 100%; min-width: 0; }
  .filters input[type="search"] { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-all { grid-column: auto; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100% !important; max-height: 92vh; border-radius: 17px 17px 0 0; }
  .training-layout { grid-template-columns: 1fr; }
  .training-sidebar { position: static; }
  .session-card { grid-template-columns: 58px minmax(0, 1fr); }
  .material-card { grid-template-columns: 44px minmax(0, 1fr); }
  .material-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .session-capacity { grid-column: 2; text-align: left; }
  .department-row { grid-template-columns: minmax(100px, 1fr) minmax(90px, 1.4fr) 40px; }
  .login-panel { padding: 28px 20px; }
  .login-card h2 { font-size: 31px; }
  .toast-region { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
@media (max-width: 430px) {
  .topbar-left .eyebrow { display: none; }
  .topbar-actions #help-button { display: none; }
  .filters { grid-template-columns: 1fr; }
  .filters input[type="search"] { grid-column: auto; }
  th, td { padding: 10px; }
}
@media print {
  .sidebar, .topbar, .page-toolbar .toolbar-actions, .filters, .button { display: none !important; }
  .workspace { margin: 0; }.main-content { max-width: none; padding: 0; }
  .card, .table-wrap { break-inside: avoid; box-shadow: none; }
}

/* Administration and course-authoring views */
.configuration-scroll { max-height: 520px; overflow: auto; }
.configuration-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.configuration-row:last-child { border-bottom: 0; }
.configuration-row > div:first-child { min-width: 0; }
.configuration-row strong { display: block; font-size: 11px; }
.configuration-row p { margin: 3px 0 0; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.configuration-row .actions-row { flex-shrink: 0; align-items: center; justify-content: flex-end; }
.editor-section { margin-top: 5px; padding-top: 17px; border-top: 1px solid var(--line); }
.editor-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.editor-section-heading h3 { margin: 0; font-size: 14px; }
.editor-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.editor-block { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfb; }
.editor-block > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.editor-block > header strong { font-size: 11px; }
.editor-block textarea { min-height: 96px; }

@media (max-width: 740px) {
  .configuration-row { align-items: flex-start; flex-direction: column; }
  .configuration-row .actions-row { width: 100%; justify-content: flex-start; }
  .editor-section-heading { align-items: stretch; flex-direction: column; }
}

/* SafetyFlow 3.0 — operational safety, work readiness and inspection cockpit */
.operational-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: clamp(28px, 5vw, 72px); min-height: 330px; padding: clamp(28px, 4.5vw, 56px); overflow: hidden; color: white; border: 0; background:
  radial-gradient(circle at 84% 20%, rgba(57, 221, 188, .21), transparent 27%),
  radial-gradient(circle at 10% 105%, rgba(61, 121, 151, .31), transparent 35%),
  linear-gradient(135deg, #071722 0%, #0b2630 58%, #0b3538 100%); }
.operational-hero::before { content: ""; position: absolute; inset: -70% auto auto 54%; width: 500px; height: 500px; border: 1px solid rgba(179, 241, 229, .09); border-radius: 50%; box-shadow: 0 0 0 70px rgba(179,241,229,.025), 0 0 0 140px rgba(179,241,229,.018); pointer-events: none; }
.operational-hero-copy { position: relative; z-index: 1; max-width: 760px; }
.operational-hero-copy .eyebrow { color: #70e5ce; }
.operational-hero-copy h2 { max-width: 680px; margin: 11px 0 13px; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -.045em; }
.operational-hero-copy > p { max-width: 690px; margin: 0 0 25px; color: #bfd2d2; font-size: 15px; line-height: 1.7; }
.operational-hero .button-secondary { color: #eaf5f3; border-color: rgba(213,239,234,.25); background: rgba(255,255,255,.07); }
.operational-hero .button-secondary:hover { background: rgba(255,255,255,.13); }

.score-orbit { --score-color: #22bb91; position: relative; z-index: 1; display: grid; place-items: center; width: 220px; aspect-ratio: 1; margin: auto; border-radius: 50%; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(255,255,255,.10) 0); box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.score-orbit::before { content: ""; position: absolute; inset: 12px; border-radius: inherit; background: linear-gradient(145deg, #0b2831, #081b24); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.score-orbit::after { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(171,236,224,.15); border-radius: inherit; }
.score-orbit > div { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: center; text-align: center; }
.score-orbit strong { font-size: 64px; line-height: .95; letter-spacing: -.08em; }
.score-orbit span { color: #8faeaf; font-size: 14px; font-weight: 800; }
.score-orbit small { grid-column: 1 / -1; margin-top: 9px; color: #b4cecd; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.score-green { --score-color: #31d5a8; }.score-amber { --score-color: #f1b853; }.score-red { --score-color: #ef6c6c; }

.component-list { display: grid; gap: 18px; }
.component-row { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(180px, 1.2fr); align-items: center; gap: 22px; }
.component-row strong, .component-row small { display: block; }
.component-row strong { font-size: 12px; }.component-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.component-meter { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.component-meter b { font-size: 12px; text-align: right; }

.pilot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 70px); }
.operational-list, .check-list { margin: 15px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.operational-list li, .check-list li { position: relative; min-height: 34px; margin: 9px 0; padding: 7px 0 7px 42px; color: var(--ink-2); }
.operational-list li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 5px; display: grid; place-items: center; width: 30px; height: 30px; color: var(--brand-dark); border: 1px solid #bde5dc; border-radius: 9px; background: var(--brand-soft); font-size: 9px; font-weight: 900; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 5px; display: grid; place-items: center; width: 30px; height: 30px; color: var(--success); border-radius: 50%; background: var(--success-soft); font-weight: 900; }

.mini-alert { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; font-size: 9px; }
.mini-warning { color: #7b5311; border-color: #edcf91; background: var(--warning-soft); }
.mini-danger { color: #842f2f; border-color: #efbcbc; background: var(--danger-soft); }
.row-alert td { background: linear-gradient(90deg, rgba(252,231,231,.64), rgba(255,255,255,0)); }
.row-alert td:first-child { box-shadow: inset 3px 0 var(--danger); }

.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.detail-grid > div { min-height: 82px; padding: 15px; background: white; }
.detail-grid small, .detail-grid strong { display: block; }
.detail-grid small { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.detail-grid strong { font-size: 11px; overflow-wrap: anywhere; }
.prose-block { margin: 14px 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfc; }
.prose-block h3 { margin: 0 0 7px; font-size: 12px; }.prose-block p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.prose-block pre { max-height: 300px; overflow: auto; padding: 13px; border-radius: 9px; background: #0e2029; color: #dff3ef; font-size: 10px; }
.evidence-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.evidence-row:last-child { border-bottom: 0; }

.observation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.observation-card { position: relative; display: flex; min-height: 255px; flex-direction: column; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.observation-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--line-dark); }
.observation-card.severity-low::before { background: var(--success); }.observation-card.severity-medium::before { background: #d69b29; }.observation-card.severity-high::before { background: #df7443; }.observation-card.severity-critical::before { background: var(--danger); }
.observation-card > header, .observation-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.observation-card > header time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.observation-card h3 { margin: 19px 0 8px; font-size: 16px; letter-spacing: -.02em; }.observation-card > p { flex: 1; margin: 0; color: var(--muted); font-size: 11px; }
.observation-meta { display: flex; flex-wrap: wrap; gap: 5px 11px; margin: 15px 0; color: var(--muted); font-size: 9px; }
.observation-meta span::before { content: "·"; margin-right: 6px; color: var(--brand); }.observation-meta span:first-child::before { display: none; }
.observation-card > footer { padding-top: 13px; border-top: 1px solid var(--line); }

.passport-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 185px; padding: clamp(24px, 4vw, 43px); overflow: hidden; color: white; border-radius: 17px; box-shadow: var(--shadow); }
.passport-banner::after { content: ""; position: absolute; right: -90px; top: -170px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.018); }
.passport-banner .eyebrow { color: rgba(255,255,255,.78); }.passport-banner h2 { margin: 7px 0 5px; font-size: clamp(28px, 4vw, 43px); letter-spacing: -.045em; }.passport-banner p { margin: 0; color: rgba(255,255,255,.78); }
.passport-ready { background: linear-gradient(135deg, #08725f, #0a9b78); }.passport-warning { background: linear-gradient(135deg, #8b570c, #c48820); }.passport-blocked { background: linear-gradient(135deg, #852f35, #b84141); }
.passport-number { position: relative; z-index: 1; max-width: 360px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(0,0,0,.12); backdrop-filter: blur(5px); text-align: right; }
.passport-number strong, .passport-number small { display: block; }.passport-number strong { font-size: 18px; }.passport-number small { margin-top: 5px; color: rgba(255,255,255,.78); font-size: 9px; }
.key-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.key-value-grid > div { min-height: 70px; padding: 13px; background: white; }.key-value-grid small, .key-value-grid strong { display: block; }.key-value-grid small { color: var(--muted); font-size: 9px; }.key-value-grid strong { margin-top: 6px; font-size: 11px; }
.qr-preview { display: grid; place-items: center; min-height: 340px; padding: 22px; border: 1px dashed var(--line-dark); border-radius: 13px; background: #fbfcfc; text-align: center; }
.qr-preview img, .qr-preview svg { width: min(290px, 80vw); height: auto; max-height: 290px; }
.qr-preview code { display: block; max-width: 100%; margin-top: 14px; overflow-wrap: anywhere; font-size: 9px; }

.toolbox-grid { display: grid; gap: 13px; }
.toolbox-card { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: stretch; gap: 18px; min-height: 132px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.toolbox-time { display: grid; align-content: center; justify-items: center; min-height: 98px; color: var(--brand-dark); border-radius: 11px; background: var(--brand-soft); text-align: center; }
.toolbox-time strong { font-size: 28px; line-height: 1; }.toolbox-time span { margin-top: 3px; font-size: 10px; font-weight: 900; text-transform: uppercase; }.toolbox-time small { margin-top: 7px; color: var(--muted); font-size: 9px; }
.toolbox-copy { align-self: center; }.toolbox-copy h3 { margin: 7px 0 4px; font-size: 15px; }.toolbox-copy > p { margin: 0; color: var(--muted); font-size: 11px; }
.toolbox-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 12px; color: var(--muted); font-size: 9px; }.toolbox-meta span::before { content: "•"; margin-right: 6px; color: var(--brand); }.toolbox-meta span:first-child::before { display: none; }
.toolbox-actions { display: flex; min-width: 130px; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.toolbox-content { margin: 16px 0; padding: 20px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: #f4faf8; }.toolbox-content h1, .toolbox-content h2, .toolbox-content h3 { margin-top: 0; }.toolbox-content p:last-child { margin-bottom: 0; }

.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.campaign-card { display: flex; min-height: 250px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.campaign-card > header, .campaign-card > footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.campaign-card h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.025em; }.campaign-card > p { flex: 1; margin: 17px 0; color: var(--muted); }
.campaign-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }.campaign-metrics span { padding: 11px; background: #fafcfc; color: var(--muted); font-size: 9px; }.campaign-metrics b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; }
.campaign-card > footer { align-items: center; margin-top: 17px; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.campaign-preview { display: grid; gap: 16px; }.campaign-preview > h3 { margin: 0; }.campaign-preview .table-wrap { max-height: 390px; overflow: auto; }

.public-checkin-screen { min-height: 100vh; padding: clamp(18px, 5vw, 70px); color: white; background:
  radial-gradient(circle at 80% 10%, rgba(26,195,158,.23), transparent 31%),
  radial-gradient(circle at 10% 90%, rgba(63,118,148,.32), transparent 36%),
  linear-gradient(145deg, #06131c, #0a2630 64%, #0b3638); }
.public-checkin-card { width: min(820px, 100%); margin: 0 auto; }.public-checkin-card > .brand { margin-bottom: 35px; }
.public-checkin-content { overflow: hidden; color: var(--ink); border-radius: 18px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.3); }.public-checkin-content:not(:empty) { padding: clamp(23px, 5vw, 48px); }
.public-checkin-content .eyebrow { color: var(--brand-dark); }.public-checkin-content h1 { margin: 8px 0 8px; font-size: clamp(29px, 5vw, 48px); line-height: 1.05; letter-spacing: -.045em; }.public-checkin-content .lead { margin: 0; color: var(--muted); font-size: 14px; }
.public-checkin-note { max-width: 720px; margin: 19px auto 0; color: #89a6a6; font-size: 10px; text-align: center; }
.public-talk-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }.public-talk-meta span { padding: 6px 9px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; background: #f8faf9; font-size: 9px; font-weight: 700; }
.public-talk-content { margin: 20px 0; padding: 20px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-soft); }.public-talk-content h1, .public-talk-content h2, .public-talk-content h3 { margin-top: 0; }.public-talk-content p:last-child { margin-bottom: 0; }
.public-success { display: grid; place-items: center; min-height: 470px; text-align: center; }.public-success > span { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 18px; color: white; border-radius: 50%; background: var(--success); box-shadow: 0 16px 35px rgba(21,129,94,.25); font-size: 40px; font-weight: 900; }.public-success h1 { margin: 0; }.public-success p { color: var(--ink-2); }.public-success small { max-width: 100%; margin: 5px 0 24px; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .observation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .key-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .operational-hero { grid-template-columns: 1fr; text-align: left; }
  .score-orbit { width: 176px; margin: 7px auto 0; }.score-orbit strong { font-size: 50px; }
  .component-row, .pilot-grid, .observation-grid, .campaign-grid { grid-template-columns: 1fr; }
  .component-row { gap: 8px; }
  .passport-banner { align-items: stretch; flex-direction: column; }.passport-number { max-width: none; text-align: left; }
  .toolbox-card { grid-template-columns: 63px minmax(0, 1fr); gap: 12px; }.toolbox-actions { grid-column: 1 / -1; min-width: 0; flex-direction: row; align-items: center; }.toolbox-time { min-height: 84px; }
  .campaign-metrics { grid-template-columns: 1fr; }
  .public-checkin-screen { padding: 13px; }.public-checkin-card > .brand { margin: 10px 7px 23px; }.public-checkin-content:not(:empty) { padding: 24px 18px; }
}
@media (max-width: 470px) {
  .detail-grid, .key-value-grid { grid-template-columns: 1fr; }
  .observation-card { min-height: 230px; }
  .passport-banner { border-radius: 13px; }
}
@media print {
  .operational-hero { min-height: auto; color: var(--ink); border: 1px solid var(--line); background: white; }
  .operational-hero::before, .passport-banner::after { display: none; }
  .operational-hero-copy .eyebrow, .operational-hero-copy > p { color: var(--ink-2); }
  .score-orbit { width: 140px; color: var(--ink); background: white; border: 8px solid var(--line-dark); box-shadow: none; }.score-orbit::before, .score-orbit::after { display: none; }.score-orbit span, .score-orbit small { color: var(--muted); }
  .passport-banner { color: var(--ink); border: 2px solid var(--line-dark); background: white !important; box-shadow: none; }.passport-banner .eyebrow, .passport-banner p, .passport-number small { color: var(--muted); }.passport-number { border-color: var(--line); background: #f7f9f9; }
  .observation-card, .campaign-card, .toolbox-card { break-inside: avoid; box-shadow: none; }
  .public-checkin-screen { min-height: auto; padding: 0; color: var(--ink); background: white; }.public-checkin-card { width: 100%; }.public-checkin-card > .brand, .public-checkin-note { display: none; }.public-checkin-content { box-shadow: none; }
}

/* Contractor onboarding and QR access control */
.public-pass-status { display: flex; align-items: center; gap: 12px; margin: -4px 0 22px; padding: 14px 16px; border-radius: 12px; font-size: 13px; letter-spacing: .02em; }
.public-pass-status > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: white; border-radius: 50%; font-size: 20px; font-weight: 900; }
.public-pass-active { color: #075c47; border: 1px solid #bce6d9; background: #e9f8f3; }
.public-pass-active > span { background: var(--success); }
.public-pass-blocked { color: #7d2e2e; border: 1px solid #efcaca; background: #fff0f0; }
.public-pass-blocked > span { background: var(--danger); }
.public-pass-grid { margin: 24px 0; }
.danger-list li::marker { color: var(--danger); }
.button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.35); }
@media (max-width: 740px) {
  .public-pass-status { align-items: flex-start; }
  .public-pass-grid { grid-template-columns: 1fr; }
}
