/* ============================================================
   D4N IT Skills Assessment — styles

   Two deliberate visual systems:
   1. EXAM CHROME (.exam-ui) — the assessment itself: warm paper,
      hard inked borders, monospace stamps, burnt-orange accent.
      A technical exam paper, not a SaaS dashboard.
   2. PORTAL SIMULATION — everything inside the fake browser stays
      Microsoft-Fluent on purpose: recognising and navigating the
      real portals is what's being tested.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* exam brand */
  --paper: #eeebe3;
  --paper-2: #e5e1d6;
  --surface: #fbfaf6;
  --ink: #1a1c20;
  --ink-2: #45484f;
  --ink-3: #74777e;
  --hairline: #d7d2c5;
  --accent: #c74a0a;
  --accent-dark: #a03b06;
  --font-sans: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --hard-shadow: 4px 4px 0 rgba(26, 28, 32, .12);

  /* portal simulation (Fluent-ish) */
  --blue: #0f6cbd;
  --blue-dark: #0c5aa0;
  --line: #e0e0e0;
  --green: #107c10;
  --green-bg: #dff6dd;
  --red: #c50f1f;
  --red-bg: #fde7e9;
  --amber: #9d5d00;
  --amber-bg: #fff4ce;
  --shadow: 0 2px 8px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.18);
  --font-fluent: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.screen { display: none; min-height: 100vh; flex-direction: column; }
.screen.active { display: flex; }

button { font-family: inherit; font-size: 14px; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.mono { font-family: var(--font-mono); }

/* ============================================================
   BUTTONS
   Default = Fluent (portal overlays live on document.body).
   .exam-ui overrides = brand.
   ============================================================ */
.btn-primary {
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  border-radius: 4px; padding: 7px 18px; font-weight: 600;
}
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn-primary:disabled { background: #c8c8c8; border-color: #c8c8c8; cursor: default; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid #adadad;
  border-radius: 4px; padding: 7px 18px; font-weight: 600;
}
.btn-ghost:hover { background: #ebebeb; }
.btn-danger {
  background: var(--red); border: 1px solid var(--red); color: #fff;
  border-radius: 4px; padding: 7px 18px; font-weight: 600;
}
.btn-danger:hover { background: #a80d1a; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 14px; width: 100%; margin-top: 28px; }

.exam-ui .btn-primary {
  background: var(--ink); color: var(--surface); border: 2px solid var(--ink);
  border-radius: 2px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
}
.exam-ui .btn-primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.exam-ui .btn-primary:disabled { background: #b9b5aa; border-color: #b9b5aa; color: #f0ede5; }
.exam-ui .btn-ghost {
  background: transparent; color: var(--ink); border: 2px solid var(--ink);
  border-radius: 2px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
}
.exam-ui .btn-ghost:hover { background: var(--ink); color: var(--surface); }

/* ============================================================
   LANDING
   ============================================================ */
#screen-landing { background: var(--paper); border-top: 6px solid var(--accent); }
.landing-topline {
  display: flex; justify-content: space-between; padding: 12px 28px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--ink-2); text-transform: uppercase;
}
.landing-wrap {
  flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 56px 28px 72px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start;
}
.landing-brand { padding-top: 12px; }
.brand-logo {
  display: inline-block; background: var(--ink); color: var(--surface);
  font-family: var(--font-mono); font-weight: 700; font-size: 20px; letter-spacing: .18em;
  padding: 10px 16px 9px 20px; margin-bottom: 30px;
}
.landing-brand h1 {
  font-size: 62px; line-height: .98; font-weight: 700; letter-spacing: -.02em;
  text-transform: uppercase;
}
.landing-brand .sub { margin-top: 22px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 420px; }
.landing-facts { list-style: none; margin-top: 34px; border-top: 2px solid var(--ink); max-width: 420px; }
.landing-facts li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 11px 2px; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--ink-2);
}
.landing-facts li b { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; }

.landing-card {
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--hard-shadow);
  padding: 30px 30px 26px;
}
.field-label {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 9px;
}
#candidate-name {
  width: 100%; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--surface); font-size: 15px;
}
#candidate-name:focus { outline: none; border-color: var(--accent); }
.tier-cards { display: flex; flex-direction: column; gap: 10px; }
.tier-card {
  border: 2px solid var(--hairline); background: var(--surface); border-radius: 2px;
  padding: 13px 16px; cursor: pointer; text-align: left; display: block; width: 100%;
  transition: border-color .1s;
}
.tier-card:hover { border-color: var(--ink-3); }
.tier-card.selected { border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.tier-card .tc-tier {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .16em;
}
.tier-card .tc-name { font-weight: 650; font-size: 15px; margin: 4px 0 5px; }
.tier-card .tc-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.landing-note { margin-top: 16px; font-size: 12px; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 860px) {
  .landing-wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .landing-brand h1 { font-size: 44px; }
}

/* ============================================================
   EXAM HEADER / MCQ
   ============================================================ */
#screen-mcq { background: var(--paper); }
.exam-header {
  background: var(--paper); border-bottom: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 26px;
}
.exam-header-left { display: flex; align-items: center; gap: 14px; }
.exam-badge {
  font-family: var(--font-mono); background: var(--ink); color: var(--surface);
  font-weight: 700; font-size: 11px; padding: 4px 10px 3px; letter-spacing: .14em; text-transform: uppercase;
}
.exam-title {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.exam-header-right { display: flex; align-items: center; gap: 16px; }
#mcq-progress-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.exam-timer {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: 13px; color: var(--ink); background: transparent;
  border: 2px solid var(--ink); padding: 3px 10px 2px; border-radius: 2px;
}
.progress-track { height: 5px; background: var(--paper-2); }
.progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width .25s; }

.mcq-wrap { max-width: 780px; width: 100%; margin: 0 auto; padding: 44px 20px 70px; }
.mcq-card {
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--hard-shadow);
  padding: 34px 36px 30px;
}
.mcq-topic {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .16em; margin-bottom: 12px;
}
.mcq-card h2 { font-size: 20px; font-weight: 650; line-height: 1.45; margin-bottom: 26px; }
.mcq-options { display: flex; flex-direction: column; gap: 10px; }
.mcq-option {
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
  border: 2px solid var(--hairline); background: var(--surface); border-radius: 2px;
  padding: 13px 16px; font-size: 14.5px; line-height: 1.45; transition: border-color .1s;
}
.mcq-option:hover { border-color: var(--ink-3); }
.mcq-option.selected { border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.mcq-option .opt-key {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 2px;
  border: 2px solid var(--ink-3); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.mcq-option.selected .opt-key { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.mcq-nav { display: flex; justify-content: space-between; margin-top: 24px; }

/* ============================================================
   SIMULATOR TASK BAR
   ============================================================ */
#screen-sim { background: var(--paper); }
.taskbar {
  background: var(--ink); color: var(--surface); padding: 11px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-bottom: 3px solid var(--accent);
}
.taskbar-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.taskbar-count {
  flex: 0 0 auto; font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--surface);
  border: 2px solid var(--accent); padding: 4px 10px 3px; white-space: nowrap;
}
.taskbar-title { font-weight: 700; font-size: 14.5px; }
.taskbar-scenario { font-size: 13px; color: #c3c0b6; margin-top: 3px; line-height: 1.45; }
.taskbar-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.taskbar .exam-timer { color: var(--surface); border-color: #4a4d55; }
.taskbar-actions .btn-ghost { color: var(--surface); border-color: #4a4d55; }
.taskbar-actions .btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--surface); }

.task-hint {
  background: #f5e9c8; color: #6d4e00; padding: 10px 20px; font-size: 13px;
  border-bottom: 1px solid #dcc98f;
}
.task-success {
  background: #1e5c1e; color: #eaf6e8; padding: 9px 20px; font-size: 14px; font-weight: 650;
  display: flex; align-items: center; justify-content: space-between;
}
.task-success .btn-primary { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.task-success .btn-primary:hover:not(:disabled) { background: #d8efd4; border-color: #d8efd4; color: var(--ink); }

.sim-tip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper-2); color: var(--ink-2); padding: 9px 20px; font-size: 13px;
  border-bottom: 1px solid var(--hairline);
}
.sim-tip b { color: var(--ink); }

/* ---------- sandbox / test mode ---------- */
.sandbox-link-row { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); text-align: center; }
.sandbox-link {
  background: transparent; border: none; color: var(--ink-3); cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px;
}
.sandbox-link:hover { color: var(--accent); }

.sandboxbar {
  background: var(--ink); color: var(--surface); padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 3px dashed var(--accent);
}
.sb-stamp {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); border: 2px dashed var(--accent);
  padding: 4px 10px 3px; white-space: nowrap; transform: rotate(-2deg);
}
.sb-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: #a5a29a;
}
#sb-task-select {
  background: #2b2d33; color: var(--surface); border: 1px solid #4a4d55; border-radius: 2px;
  padding: 6px 10px; font-size: 13px; max-width: 320px;
}
.sb-status { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.sb-status.pass { color: #7fd47f; font-weight: 700; }
.sb-status.pending { color: #d9b96a; }
.sb-actions { margin-left: auto; display: flex; gap: 10px; flex: 0 0 auto; }
.sandboxbar .btn-ghost { color: var(--surface); border-color: #4a4d55; }
.sandboxbar .btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--surface); }

.sb-scenario-row {
  background: var(--paper-2); color: var(--ink-2); padding: 9px 20px; font-size: 13px;
  border-bottom: 1px solid var(--hairline); line-height: 1.5;
}
.sb-scenario-row b { color: var(--ink); }
.sb-hint { margin-top: 3px; color: var(--ink-3); font-size: 12.5px; }

/* ============================================================
   SIMULATED BROWSER + PORTAL SHELL (intentionally Fluent)
   ============================================================ */
#sim-root { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.browser-bar-wrap { background: #cfd3d9; padding-top: 6px; }
.browser-chrome { padding: 4px 12px 0; display: flex; align-items: flex-end; gap: 6px; overflow-x: auto; }
.tabs-hint {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #5d6572; padding: 0 6px 9px 2px; white-space: nowrap;
}
.browser-tab {
  background: #b8bdc7; border: none; border-radius: 8px 8px 0 0; padding: 8px 14px;
  font-family: var(--font-fluent); font-size: 12.5px; color: #3b3f46;
  display: flex; align-items: center; gap: 8px; max-width: 240px; white-space: nowrap;
}
.browser-tab:hover { background: #c8ccd4; }
.browser-tab.active { background: #fff; color: #1f2227; font-weight: 600; }
.browser-tab .tab-dot { width: 13px; height: 13px; border-radius: 3px; flex: 0 0 auto; }
.browser-tab .tab-label { overflow: hidden; text-overflow: ellipsis; }
.browser-addr {
  background: #fff; margin: 0 12px; border-radius: 999px; padding: 6px 16px;
  font-family: var(--font-fluent); font-size: 12.5px; color: #5d6572;
  display: flex; align-items: center; gap: 8px;
  position: relative; top: 0; margin-bottom: 8px;
}
.browser-addr .lock { font-size: 11px; }

.portal { flex: 1; display: flex; flex-direction: column; background: #fff; min-height: 0; font-family: var(--font-fluent); }
.portal-top { height: 48px; display: flex; align-items: center; padding: 0 12px; gap: 10px; color: #fff; flex: 0 0 auto; }
.waffle-btn {
  width: 40px; height: 40px; background: transparent; border: none; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.waffle-btn:hover { background: rgba(255,255,255,.15); }
.waffle-grid { display: grid; grid-template-columns: repeat(3, 4px); grid-gap: 3px; }
.waffle-grid span { width: 4px; height: 4px; background: #fff; border-radius: 1px; }
.portal-top-title { font-weight: 600; font-size: 15px; white-space: nowrap; }
.portal-search {
  flex: 1; max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.9); border-radius: 4px; padding: 6px 12px;
  font-size: 13px; color: #616161;
}
.portal-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  margin-left: auto;
}

/* app launcher flyout — must sit ABOVE the .panel-scrim (z 400) */
.waffle-menu {
  position: fixed; z-index: 500; width: 300px;
  background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 8px 8px; padding: 14px;
  font-family: var(--font-fluent);
}
.waffle-menu h4 { font-size: 13px; color: #616161; font-weight: 600; margin: 2px 4px 10px; }
.waffle-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: transparent; border: none; padding: 10px; border-radius: 6px; font-size: 13.5px;
}
.waffle-item:hover { background: #f2f6fb; }
.waffle-item .wi-icon {
  width: 30px; height: 30px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.waffle-item .wi-sub { font-size: 11.5px; color: #616161; }

.portal-body { flex: 1; display: flex; min-height: 0; }
.portal-nav {
  width: 232px; flex: 0 0 auto; background: #f5f5f5; border-right: 1px solid var(--line);
  overflow-y: auto; padding: 8px 0;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: none; border-left: 3px solid transparent;
  padding: 9px 14px 9px 13px; font-size: 13.5px; color: #424242; font-family: var(--font-fluent);
}
.nav-item:hover { background: #ebebeb; }
.nav-item.active { border-left-color: var(--blue); background: #eaeaea; font-weight: 650; color: #242424; }
.nav-item .nav-ico { width: 17px; text-align: center; flex: 0 0 auto; font-size: 14px; opacity: .8; }
.nav-group-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: #616161; padding: 14px 16px 5px;
}
.nav-sub { padding-left: 26px !important; font-size: 13px !important; }

.portal-content { flex: 1; overflow-y: auto; padding: 24px 28px 60px; position: relative; color: #242424; }
.portal-content h1 { font-size: 22px; font-weight: 650; margin-bottom: 4px; }
.portal-content .page-desc { color: #616161; font-size: 13px; margin-bottom: 18px; max-width: 720px; line-height: 1.5; }

/* command bar */
.cmdbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.cmd-btn {
  background: transparent; border: none; border-radius: 4px; padding: 7px 12px;
  font-size: 13.5px; color: #424242; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-fluent);
}
.cmd-btn:hover:not(:disabled) { background: #f0f0f0; color: #242424; }
.cmd-btn:disabled { color: #b0b0b0; cursor: default; }
.cmd-btn .ci { color: var(--blue); font-size: 14px; }
.cmd-btn:disabled .ci { color: #b0b0b0; }

/* data tables */
.data-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.data-table th {
  text-align: left; font-size: 12.5px; font-weight: 650; color: #424242;
  border-bottom: 1px solid var(--line); padding: 9px 12px; white-space: nowrap;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 13.5px; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: #f5f9fd; }
.data-table .cell-link { color: var(--blue); font-weight: 600; }
.data-table .cell-sub { color: #616161; font-size: 12.5px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-red { background: var(--red-bg); color: var(--red); }
.pill-gray { background: #eee; color: #616161; }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-blue { background: #e8f1fb; color: var(--blue-dark); }

.placeholder-page { padding: 48px 20px; text-align: center; color: #616161; }
.placeholder-page .ph-ico { font-size: 40px; margin-bottom: 12px; opacity: .5; }

/* ---------- flyout panel (right side) ---------- */
.panel-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 400; }
.flyout {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 94vw;
  background: #fff; z-index: 401; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slideIn .18s ease-out;
  font-family: var(--font-fluent);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.flyout-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px 12px; }
.flyout-head h3 { font-size: 18px; font-weight: 650; line-height: 1.3; }
.flyout-close { background: transparent; border: none; font-size: 18px; color: #616161; padding: 4px 8px; border-radius: 4px; }
.flyout-close:hover { background: #f0f0f0; }
.flyout-body { flex: 1; overflow-y: auto; padding: 6px 24px 24px; }
.flyout-foot { border-top: 1px solid var(--line); padding: 14px 24px; display: flex; gap: 10px; }

/* ---------- modal dialog (center) ---------- */
.modal {
  position: fixed; z-index: 401; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg);
  width: 480px; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column;
  font-family: var(--font-fluent);
}
.modal-head { padding: 20px 24px 8px; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h3 { font-size: 17px; font-weight: 650; }
.modal-body { padding: 8px 24px 20px; overflow-y: auto; font-size: 13.5px; line-height: 1.5; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- forms in panels ---------- */
.f-label { display: block; font-weight: 600; font-size: 13px; margin: 16px 0 6px; }
.f-label .req { color: var(--red); }
.f-input, .f-select, .f-textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #adadad; border-radius: 4px; background: #fff;
  font-family: var(--font-fluent);
}
.f-input:focus, .f-select:focus, .f-textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.f-check { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; font-size: 13.5px; cursor: pointer; line-height: 1.4; }
.f-check input { margin-top: 2px; }
.f-radio { display: flex; align-items: flex-start; gap: 9px; margin: 9px 0; font-size: 13.5px; cursor: pointer; line-height: 1.4; }
.f-hint { font-size: 12px; color: #616161; margin-top: 4px; }
.f-row { display: flex; gap: 8px; align-items: center; }
.detail-list { margin: 8px 0 4px; }
.detail-list dt { font-size: 12px; color: #616161; margin-top: 12px; }
.detail-list dd { font-size: 13.5px; margin-top: 2px; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #616161; margin: 20px 0 6px; }
.action-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.action-tile {
  border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 9px 14px;
  font-size: 13px; font-weight: 600; color: #424242; display: flex; gap: 8px; align-items: center;
  font-family: var(--font-fluent);
}
.action-tile:hover { border-color: var(--blue); color: var(--blue-dark); background: #f7fbff; }

/* home page tiles */
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.home-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; cursor: pointer; }
.home-card:hover { box-shadow: var(--shadow); }
.home-card h3 { font-size: 14.5px; font-weight: 650; margin-bottom: 6px; }
.home-card p { font-size: 12.5px; color: #616161; line-height: 1.5; }
.home-card .hc-ico { font-size: 22px; margin-bottom: 10px; }

/* ============================================================
   ADUC (classic desktop window inside an RDP tab)
   ============================================================ */
.aduc-desktop {
  flex: 1; padding: 26px; display: flex; min-height: 0;
  background: linear-gradient(160deg, #0a4f8f, #1470c2);
}
.aduc-window {
  flex: 1; background: #f0f0f0; border-radius: 8px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  font-family: var(--font-fluent);
}
.aduc-titlebar { background: #fff; border-bottom: 1px solid #d8d8d8; padding: 8px 12px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.aduc-titlebar .win-btns { margin-left: auto; display: flex; gap: 14px; color: #616161; font-size: 11px; }
.aduc-menubar { background: #fff; border-bottom: 1px solid #e4e4e4; padding: 4px 8px; display: flex; gap: 2px; font-size: 12.5px; }
.aduc-menubar span { padding: 3px 9px; border-radius: 3px; color: #424242; }
.aduc-menubar span:hover { background: #e5f1fb; }
.aduc-main { flex: 1; display: flex; min-height: 0; background: #fff; }
.aduc-tree { width: 250px; flex: 0 0 auto; border-right: 1px solid #e0e0e0; overflow-y: auto; padding: 8px 4px; font-size: 12.5px; }
.tree-node { display: flex; align-items: center; gap: 6px; padding: 3px 8px; cursor: pointer; border-radius: 3px; white-space: nowrap; }
.tree-node:hover { background: #e5f1fb; }
.tree-node.active { background: #cce4f7; }
.tree-indent-1 { padding-left: 24px; }
.tree-indent-2 { padding-left: 42px; }
.aduc-list { flex: 1; overflow-y: auto; }
.aduc-list table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.aduc-list th { text-align: left; padding: 6px 10px; border-bottom: 1px solid #e0e0e0; background: #fafafa; font-weight: 600; color: #424242; }
.aduc-list td { padding: 5px 10px; border-bottom: 1px solid #f4f4f4; }
.aduc-list tbody tr { cursor: pointer; }
.aduc-list tbody tr:hover { background: #e5f1fb; }
.aduc-list tbody tr.selected { background: #cce4f7; }
.aduc-status { border-top: 1px solid #e0e0e0; background: #fafafa; padding: 4px 12px; font-size: 11.5px; color: #616161; }

/* context menu */
.ctx-menu {
  position: fixed; z-index: 500; background: #fff; border: 1px solid #ccc; border-radius: 4px;
  box-shadow: var(--shadow-lg); min-width: 220px; padding: 4px; font-size: 13px;
  font-family: var(--font-fluent);
}
.ctx-item { display: block; width: 100%; text-align: left; background: transparent; border: none; padding: 7px 14px; border-radius: 3px; }
.ctx-item:hover:not(:disabled) { background: #e5f1fb; }
.ctx-item:disabled { color: #b0b0b0; cursor: default; }
.ctx-sep { height: 1px; background: #e4e4e4; margin: 4px 6px; }

/* ---------- realism layer: skeletons, busy buttons, bell, search ---------- */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skel {
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 37%, #eee 63%);
  background-size: 800px 100%; animation: shimmer 1.1s linear infinite; border-radius: 4px;
}
.skel-page { padding: 4px 2px; }
.skel-title { height: 26px; width: 240px; margin-bottom: 12px; }
.skel-sub { height: 13px; width: 60%; margin-bottom: 22px; }
.skel-toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.skel-chip { height: 28px; width: 110px; }
.skel-row { height: 15px; margin: 15px 0; }

button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
button.is-busy::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px;
  margin: -8px 0 0 -8px; border: 2px solid rgba(120,120,120,.35); border-top-color: #555;
  border-radius: 50%; animation: busySpin .7s linear infinite;
}
@keyframes busySpin { to { transform: rotate(360deg); } }

.top-icons { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.top-icon-btn {
  position: relative; width: 36px; height: 36px; background: transparent; border: none;
  border-radius: 4px; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.top-icon-btn:hover { background: rgba(255,255,255,.15); }
.top-bell-badge {
  position: absolute; top: 3px; right: 3px; min-width: 14px; height: 14px; padding: 0 3px;
  background: #c50f1f; color: #fff; font-size: 9px; font-weight: 700; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.portal-top .portal-avatar { margin-left: 6px; }

.notif-panel {
  position: fixed; top: 48px; right: 8px; z-index: 500; width: 360px; max-width: 94vw;
  background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 8px 8px;
  font-family: var(--font-fluent); max-height: 70vh; display: flex; flex-direction: column;
}
.notif-head {
  padding: 12px 8px 10px 16px; font-weight: 650; font-size: 14px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.notif-list { overflow-y: auto; padding: 4px 0; }
.notif-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #f4f4f4; }
.notif-ico {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.notif-success { background: var(--green-bg); color: var(--green); }
.notif-error { background: var(--red-bg); color: var(--red); }
.notif-pending {
  border: 2px solid #cdcdcd; border-top-color: var(--blue); animation: busySpin .8s linear infinite;
}
.notif-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.notif-detail { font-size: 12px; color: #616161; margin-top: 2px; line-height: 1.4; }
.notif-time { font-size: 11px; color: #8a8a8a; margin-top: 3px; }
.notif-empty { padding: 26px 16px; text-align: center; color: #616161; font-size: 13px; }

.hamburger { display: flex; flex-direction: column; gap: 4px; }
.hamburger span { width: 17px; height: 2px; background: #fff; border-radius: 1px; }
.portal-nav.nav-collapsed { display: none; }

.waffle-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.waffle-app {
  display: flex; align-items: center; gap: 8px; background: transparent; border: none;
  padding: 7px 10px; border-radius: 6px; font-size: 12.5px; text-align: left;
}
.waffle-app:hover { background: #f2f6fb; }
.wa-icon { width: 22px !important; height: 22px !important; font-size: 11px !important; border-radius: 4px !important; }

/* skill-area bars (results) */
.skill-row { display: flex; align-items: center; gap: 12px; margin: 9px 0; }
.skill-label { flex: 0 0 210px; font-size: 13px; font-weight: 600; }
.skill-track { flex: 1; height: 10px; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 2px; }
.skill-fill { height: 100%; background: #1e5c1e; }
.skill-fill.low { background: #b02318; }
.skill-val { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }

/* journey chips under each task result */
.journey { margin: 7px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jchip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em;
  border: 1px solid var(--hairline); border-radius: 2px; padding: 2px 8px; color: var(--ink-3); background: var(--paper);
}
.jchip-amber { color: var(--amber); border-color: #dcc98f; background: #f9f2dc; }

/* sandbox requirements checklist */
.sb-reqs { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.sb-req { font-family: var(--font-mono); font-size: 11.5px; padding: 2px 8px; border-radius: 2px; border: 1px solid; }
.sb-req.req-ok { color: #1e5c1e; border-color: #b9dcb9; background: #eaf6e8; }
.sb-req.req-todo { color: var(--ink-3); border-color: var(--hairline); background: var(--paper); }

.portal-search-wrap { flex: 1; max-width: 480px; margin: 0 auto; position: relative; }
.portal-search-input {
  width: 100%; background: rgba(255,255,255,.92); border: none; border-radius: 4px;
  padding: 7px 12px; font-size: 13px; font-family: var(--font-fluent); color: #242424;
}
.portal-search-input:focus { outline: 2px solid rgba(255,255,255,.6); background: #fff; }
.search-drop {
  position: absolute; top: 34px; left: 0; right: 0; z-index: 450; background: #fff;
  box-shadow: var(--shadow-lg); border-radius: 0 0 6px 6px; padding: 4px; font-family: var(--font-fluent);
}
.search-item {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
  background: transparent; border: none; padding: 8px 10px; border-radius: 4px;
}
.search-item:hover { background: #f2f6fb; }
.search-kind { flex: 0 0 auto; width: 24px; text-align: center; font-size: 14px; }
.search-label { font-size: 13px; font-weight: 600; color: #242424; }
.search-sub { font-size: 11.5px; color: #616161; }
.search-empty { padding: 14px; font-size: 12.5px; color: #616161; text-align: center; }

.th-sortable { cursor: pointer; user-select: none; }
.th-sortable:hover { color: #0c5aa0; }
.table-filter { margin: 8px 0 2px; }
.table-filter-input {
  width: 280px; max-width: 100%; padding: 6px 10px; border: 1px solid #adadad; border-radius: 4px;
  font-size: 13px; font-family: var(--font-fluent);
}
.table-filter-input:focus { outline: 2px solid var(--blue); border-color: transparent; }

/* ---------- resume banner (landing) ---------- */
.resume-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: #f0ede4; border: 2px solid var(--ink); border-radius: 2px;
  padding: 12px 14px; margin-bottom: 22px; font-size: 13px;
}
.resume-banner .rb-sub { color: var(--ink-3); margin-top: 2px; font-size: 12.5px; }
.resume-banner .rb-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* ---------- toast ---------- */
#toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #292929; color: #fff; padding: 11px 20px; border-radius: 6px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); animation: toastIn .2s ease-out; max-width: 90vw;
  font-family: var(--font-fluent);
}
.toast.toast-success { background: var(--green); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   RESULTS — report document
   ============================================================ */
#screen-results { background: var(--paper); border-top: 6px solid var(--accent); }
.results-wrap { max-width: 880px; width: 100%; margin: 0 auto; padding: 44px 20px 90px; }
.results-hero {
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--hard-shadow);
  padding: 36px 32px 30px; text-align: center; margin-bottom: 22px; position: relative;
}
.results-hero .rh-name {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.results-hero h1 { font-size: 30px; margin: 10px 0 20px; font-weight: 700; letter-spacing: -.01em; }
.score-ring { font-family: var(--font-mono); font-size: 58px; font-weight: 700; line-height: 1; }
.score-ring.pass { color: #1e5c1e; }
.score-ring.fail { color: #b02318; }
.verdict-pill {
  display: inline-block; margin-top: 18px; padding: 7px 22px 6px;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: .22em;
  text-transform: uppercase; border: 3px solid currentColor; border-radius: 2px;
  transform: rotate(-3deg);
}
.verdict-pill.pass { color: #1e5c1e; }
.verdict-pill.fail { color: #b02318; }
.results-meta {
  margin-top: 20px; color: var(--ink-2); font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .04em; line-height: 1.8;
}
.results-section {
  background: var(--surface); border: 2px solid var(--ink);
  padding: 26px 30px; margin-bottom: 22px;
}
.results-section h2 {
  font-size: 13px; margin-bottom: 4px; font-family: var(--font-mono); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px;
}
.results-section .rs-sub { color: var(--ink-3); font-size: 13px; margin: 10px 0 14px; }
.rq { border-bottom: 1px solid var(--hairline); padding: 14px 0; }
.rq:last-child { border-bottom: none; }
.rq-head { display: flex; gap: 12px; align-items: flex-start; }
.rq-mark { flex: 0 0 auto; font-weight: 800; width: 20px; font-family: var(--font-mono); }
.rq-mark.ok { color: #1e5c1e; }
.rq-mark.bad { color: #b02318; }
.rq-mark.part { color: #9d5d00; }
.rq-parts { list-style: none; margin: 7px 0 0 0; }
.rq-parts li { font-size: 12.5px; margin: 3px 0; font-family: var(--font-mono); }
.rq-parts .part-ok { color: #1e5c1e; }
.rq-parts .part-bad { color: #b02318; }
.rq-q { font-weight: 650; font-size: 13.5px; line-height: 1.45; }
.rq-detail { margin-left: 32px; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.rq-detail .lbl { font-weight: 700; color: var(--ink-2); }
.steps-log {
  margin: 10px 0 0 32px; padding: 10px 14px;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 2px;
}
.steps-log li { font-size: 12.5px; color: var(--ink-2); margin: 3px 0 3px 16px; line-height: 1.5; }
.steps-log .sl-time { font-family: var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: 8px; font-size: 11px; }
.results-actions { display: flex; gap: 12px; justify-content: center; margin-top: 10px; }

@media print {
  .results-actions, .taskbar { display: none !important; }
  body, #screen-results { background: #fff; border-top: none; }
  .results-section, .results-hero { box-shadow: none; border: 1px solid #999; }
}
