/* ---------------------------------------------------------------------------
   Embedded app demo.

   This is a port of the real client's stylesheets - apps/desktop/src/renderer/
   src/assets/styles/{layout,components}.css plus the per-view scoped blocks -
   scoped under .appdemo so the marketing page's own rules can't reach in and
   the app's rules can't leak out.

   The token block below is the app's palette, NOT the site's: the site's --seal
   is brand navy, but inside the app green/amber/red have to keep meaning
   clear/review/flag or the status badges stop being readable.
   --------------------------------------------------------------------------- */

.appdemo {
  --ink: #1a2238;
  --ink-2: #33405e;
  --paper: #f5f6ff;
  --card: #ffffff;
  --card-2: #eef0f7;
  --line: #c1c4d9;
  --line-strong: #a6abc6;
  --muted: #5c6480;
  --dim: #838aa1;
  --seal: #178a72;
  --seal-soft: #cfe8e1;
  --amber: #a9781f;
  --amber-soft: #efe3c9;
  --flag: #c1413d;
  --flag-soft: #f1d6d4;
  --indigo: #5a5fc4;
  --well: #0b1220;

  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
}

:root[data-theme='dark'] .appdemo {
  --ink: #e7eaf3;
  --ink-2: #c3c9da;
  --paper: #0c1322;
  --card: #121b2d;
  --card-2: #18233a;
  --line: #1f2b44;
  --line-strong: #2d3c5e;
  --muted: #8b95a6;
  --dim: #606b7c;
  --seal: #2fae97;
  --seal-soft: #10302b;
  --amber: #dba04a;
  --amber-soft: #2f2513;
  --flag: #dd6060;
  --flag-soft: #331717;
  --indigo: #8a8fdd;
  --well: #060b16;
}

/* ---------- the frame the app sits in ---------- */
.appframe {
  position: relative;
  border: 1px solid var(--line-strong);

  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.appchrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.appchrome .dots {
  display: flex;
  gap: 6px;
}
.appchrome .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.appchrome .title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 auto;
}
.appchrome .live {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seal);
  border: 1px solid var(--seal);

  padding: 2px 9px;
}

/* ---------- portal shell (layout.css) ---------- */
.appdemo .portal {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 620px;
  background: var(--paper);
}
.appdemo .side {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.appdemo .side .brandrow {
  padding: 2px 6px 16px;
}
.appdemo .side .brandrow svg {
  width: 96px;
  height: auto;
  fill: var(--ink);
}
.appdemo .side .uchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;

  background: var(--card-2);
  margin-bottom: 16px;
}
.appdemo .side .uchip .av {
  width: 30px;
  height: 30px;

  background: var(--ink);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.appdemo .side .uchip .who {
  min-width: 0;
}
.appdemo .side .uchip .nm {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}
.appdemo .side .uchip .rl {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.3;
}
.appdemo .navbtn {
  width: 100%;
  text-align: left;
  padding: 9px 11px;

  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.appdemo .navbtn.on {
  background: var(--seal-soft);
  color: var(--seal);
}
.appdemo .navbtn:hover:not(.on) {
  background: var(--card-2);
  color: var(--ink);
}
.appdemo .side .foot {
  margin-top: auto;
  padding: 10px 6px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.appdemo .panel {
  padding: 22px 24px;
  overflow-y: auto;
  min-width: 0;
}

.appdemo .phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.appdemo .phead h2 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: none;
}
.appdemo .phead .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* ---------- buttons (components.css) ---------- */
.appdemo .btn {
  padding: 8px 14px;

  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.08s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
  color: var(--ink);
}
.appdemo .btn.sm {
  padding: 4px 9px;
  font-size: 12px;

}
.appdemo .btn:active {
  transform: translateY(1px);
}
.appdemo .btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.appdemo .btn.ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.appdemo .btn.seal {
  background: var(--seal);
  color: #fff;
}
:root[data-theme='dark'] .appdemo .btn.seal {
  color: #06211c;
}
.appdemo .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- cards & KPIs ---------- */
.appdemo .card {
  background: var(--card);
  border: 1px solid var(--line);

  padding: 16px;
}
.appdemo .kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.appdemo .kpi {
  background: var(--card);
  border: 1px solid var(--line);

  padding: 14px;
}
.appdemo .kpi .n {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.appdemo .kpi .l {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- data table ---------- */
.appdemo table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--line);

  overflow: hidden;
}
.appdemo table.data th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 11px 13px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.appdemo table.data td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.appdemo table.data tr:last-child td {
  border-bottom: none;
}
.appdemo table.data tr.clickable {
  cursor: pointer;
}
.appdemo table.data tr.clickable:hover {
  background: var(--card-2);
}
.appdemo table.data tr.flagrow {
  background: color-mix(in srgb, var(--flag-soft) 45%, transparent);
}
.appdemo .mono {
  font-family: var(--mono);
}
.appdemo .dim,
.appdemo .muted {
  color: var(--muted);
  font-size: 12px;
}
.appdemo .empty {
  text-align: center;
  color: var(--muted);
  padding: 26px;
}

/* ---------- badges ---------- */
.appdemo .badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;

  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.appdemo .badge::before {
  content: '';
  width: 6px;
  height: 6px;

}
.appdemo .badge.clear {
  background: var(--seal-soft);
  color: var(--seal);
}
.appdemo .badge.clear::before {
  background: var(--seal);
}
.appdemo .badge.review {
  background: var(--amber-soft);
  color: var(--amber);
}
.appdemo .badge.review::before {
  background: var(--amber);
}
.appdemo .badge.flag {
  background: var(--flag-soft);
  color: var(--flag);
}
.appdemo .badge.flag::before {
  background: var(--flag);
}

/* ---------- forms ---------- */
.appdemo .field {
  margin-bottom: 12px;
}
.appdemo .field label {
  display: block;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.appdemo .input,
.appdemo .select,
.appdemo textarea.input {
  width: 100%;
  border: 1px solid var(--line-strong);

  padding: 8px 11px;
  font-size: 13px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}
.appdemo textarea.input {
  resize: vertical;
  min-height: 70px;
}
.appdemo .input:focus,
.appdemo .select:focus,
.appdemo textarea.input:focus {
  outline: 2px solid var(--seal);
  outline-offset: 1px;
  border-color: var(--seal);
}
.appdemo .toggle {
  width: 38px;
  height: 22px;

  background: var(--line-strong);
  position: relative;
  transition: 0.15s;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 0;
}
.appdemo .toggle.on {
  background: var(--seal);
}
.appdemo .toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;

  background: var(--card);
  transition: 0.15s;
}
.appdemo .toggle.on::after {
  left: 18px;
}
.appdemo .settingcard label.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.appdemo .settingcard label.row:last-child {
  border-bottom: none;
}

/* ---------- filters row (per-view scoped styles) ---------- */
.appdemo .filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.appdemo .filters .select,
.appdemo .filters .input {
  width: auto;
  padding: 7px 10px;
  font-size: 12.5px;
}
.appdemo .filters .spacer {
  flex: 1;
}
.appdemo .fclear {
  position: relative;
  display: flex;
}
.appdemo .fclear .input {
  width: 100%;
  padding-right: 26px;
}
.appdemo .fclear .clr {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 5px;
  line-height: 1;
}
.appdemo .fclear .clr:hover {
  color: var(--ink);
}

/* ---------- tabs ---------- */
.appdemo .tabs {
  display: flex;
  gap: 4px;
  background: var(--card-2);
  padding: 4px;

}
.appdemo .tabs button {
  padding: 6px 13px;

  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.appdemo .tabs button.on {
  background: var(--card);
  color: var(--ink);
}

/* ---------- row actions ---------- */
.appdemo .rowactions {
  display: flex;
  gap: 3px;
}
.appdemo .rowactions button {
  color: var(--muted);
  padding: 4px 6px;

  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.appdemo .rowactions button:hover {
  background: var(--card-2);
  color: var(--seal);
}
.appdemo .rowbtns {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

/* ---------- question rows (builder) ---------- */
.appdemo .qtype {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  background: color-mix(in srgb, var(--indigo) 14%, transparent);
  padding: 3px 8px;

}

/* ---------- set builder ---------- */
.appdemo .setgrid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
/* grid items default to min-width:auto, so a long prompt widened the column
   instead of ellipsing. Demo-only fix - the app has more room to play with. */
.appdemo .setgrid > * {
  min-width: 0;
}
.appdemo .setrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);

  background: var(--card);
  margin-bottom: 7px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.appdemo .setrow span {
  font-size: 11.5px;
  color: var(--muted);
}
.appdemo .setrow.on {
  border-color: var(--seal);
  background: var(--seal-soft);
}
.appdemo .setrow.on span {
  color: var(--seal);
}
.appdemo .itemrow {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);

  padding: 9px 12px;
  margin-bottom: 6px;
  font-size: 13px;
}
.appdemo .itemrow.pick {
  border-style: dashed;
}
.appdemo .itemrow .grip {
  color: var(--dim);
  cursor: grab;
  font-size: 15px;
  line-height: 1;
}
.appdemo .itemrow .pos {
  color: var(--seal);
  font-size: 12px;
  width: 18px;
  font-family: var(--mono);
}
.appdemo .itemrow .prompt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- live dashboard ---------- */
.appdemo .alertbar {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--flag-soft);
  border: 1px solid var(--flag);
  color: var(--flag);

  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.appdemo .alertbar .link {
  text-decoration: underline;
  font-weight: 700;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.appdemo .conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  text-transform: capitalize;
}
.appdemo .conn .dot {
  width: 7px;
  height: 7px;

  background: var(--seal);
}
.appdemo .conn.offline {
  color: var(--flag);
}
.appdemo .conn.offline .dot {
  background: var(--flag);
}
.appdemo .conn.weak {
  color: var(--amber);
}
.appdemo .conn.weak .dot {
  background: var(--amber);
}
.appdemo .sectionlabel {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

/* ---------- review surface ---------- */
.appdemo .review-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  align-items: start;
}
.appdemo .scrubwrap {
  background: var(--well);
  border: 1px solid var(--line);

  padding: 14px;
}
.appdemo .scrubwrap .stext {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  min-height: 118px;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.05);

  padding: 12px;
  color: #cfe9e2;
}
.appdemo .scrubwrap input[type='range'] {
  width: 100%;
  margin-top: 12px;
  accent-color: var(--seal);
}
.appdemo .scrubwrap .scap {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}
.appdemo .evtline {
  position: relative;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);

  overflow: hidden;
  margin: 10px 0 4px;
}
.appdemo .evt {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
}
.appdemo .evt.paste {
  background: var(--flag);
}
.appdemo .evt.blur {
  background: var(--amber);
}
.appdemo .evt.type {
  background: rgba(127, 224, 207, 0.5);
  width: 1px;
}
.appdemo .flaglist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.appdemo .flagcard {
  border: 1px solid var(--line);

  padding: 10px 12px;
  background: var(--card);
}
.appdemo .flagcard .ft {
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.appdemo .flagcard .fd {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.appdemo .vidwrap {
  background: #000;

  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 12px;
  position: relative;
  overflow: hidden;
}
.appdemo .vidwrap .vtag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 3px 7px;

}
.appdemo .notice {
  border: 1px solid var(--amber);

  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  background: var(--amber-soft);
  color: var(--amber);
}
.appdemo .notice.clear {
  background: var(--seal-soft);
  border-color: var(--seal);
  color: var(--seal);
}
.appdemo .scoreboard {
  text-align: center;
  padding: 16px;
}
.appdemo .scorering {
  width: 104px;
  height: 104px;

  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--clr) var(--deg), var(--card-2) 0);
}
.appdemo .scorering .inner {
  width: 84px;
  height: 84px;

  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

/* ---------- exam question cards (preview) ---------- */
.appdemo .qcard {
  background: var(--card);
  border: 1px solid var(--line);

  padding: 20px;
  margin-bottom: 14px;
}
.appdemo .qcard .qn {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--seal);
  letter-spacing: 0.08em;
}
.appdemo .qcard .qprompt {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0 14px;
  letter-spacing: -0.01em;
}
.appdemo .choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);

  padding: 11px 13px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.appdemo .choice:hover {
  border-color: var(--seal);
}
.appdemo .choice.sel {
  border-color: var(--seal);
  background: var(--seal-soft);
}
.appdemo .choice .box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);

  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
}
.appdemo .choice.sel .box {
  border-color: var(--seal);
  background: var(--seal);
  color: #fff;
}
.appdemo .choice.radio .box {

}
.appdemo .multi-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.appdemo .choice.locked {
  opacity: 0.45;
  cursor: not-allowed;
}
.appdemo .choice.locked:hover {
  border-color: var(--line-strong);
}
.appdemo .wordcount {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}

/* ---------- modal ---------- */
/* Fixed, not absolute: anchored to the app frame the modal could sit below the
   fold with its footer unreachable. This requires no transformed ancestor -
   hence the app embed deliberately carries no [data-reveal] animation. */
.appdemo .overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.55);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 24px;
}
.appdemo .modal {
  width: min(640px, 94vw);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-strong);

  box-shadow: 0 24px 60px rgba(4, 8, 16, 0.35);
}
.appdemo .modal.wide {
  width: min(860px, 96vw);
}
.appdemo .mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.appdemo .mhead h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
  margin: 0;
}
.appdemo .mhead .x {
  color: var(--muted);
  font-size: 15px;
  padding: 4px 8px;

  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.appdemo .mhead .x:hover {
  background: var(--card-2);
  color: var(--ink);
}
.appdemo .mbody {
  padding: 18px;
  overflow-y: auto;
  /* flex children default to min-height:auto, which lets a tall body push the
     footer past the modal's max-height instead of scrolling - hence the
     unreachable Save button. Demo-only: the real app modals scroll the page. */
  min-height: 0;
  flex: 1 1 auto;
}
.appdemo .mfoot,
.appdemo .mhead {
  flex: 0 0 auto;
}
.appdemo .mfoot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---------- wizard steps ---------- */
.appdemo .wsteps {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.appdemo .wstep {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;

  border: 1px solid var(--line);
  color: var(--muted);
  background: none;
  cursor: pointer;
}
.appdemo .wstep.on {
  border-color: var(--seal);
  background: var(--seal-soft);
  color: var(--seal);
}
.appdemo .wstep.done {
  color: var(--seal);
  border-color: var(--seal-soft);
}

/* ---------- student exam client (stage 6) ---------- */
.appdemo .examclient {
  height: 620px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.appdemo .exambar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  flex-shrink: 0;
}
.appdemo .exambar .lockchip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--seal);
}
.appdemo .exambar .lockchip .ld {
  width: 8px;
  height: 8px;

  background: var(--seal);
  animation: adpulse 2s infinite;
}
@keyframes adpulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 138, 114, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(23, 138, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 138, 114, 0); }
}
.appdemo .exambar .a11ybar {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.appdemo .exambar .a11ybar button {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--card);

  padding: 3px 8px;
  cursor: pointer;
}
.appdemo .exambar .a11ybar button:hover {
  border-color: var(--seal);
  color: var(--seal);
}
.appdemo .exambar .timer {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}
.appdemo .exambar .cam {
  width: 74px;
  height: 48px;

  background: #000;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667;
  font-family: var(--mono);
  font-size: 9px;
}
.appdemo .exam-stage {
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 22px 40px;
  width: 100%;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.appdemo .examnav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.appdemo .qprogress {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}
.appdemo .qprogress span {
  flex: 1;
  height: 4px;

  background: var(--card-2);
}
.appdemo .qprogress span.done {
  background: var(--seal);
}
.appdemo .qprogress span.on {
  background: var(--seal);
  opacity: 0.55;
}
.appdemo .pastewarn {
  font-size: 12.5px;
  color: var(--flag);
  background: var(--flag-soft);

  padding: 8px 10px;
  margin-top: 8px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .appdemo .portal {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 720px;
  }
  .appdemo .side {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 10px;
  }
  .appdemo .side .brandrow,
  .appdemo .side .uchip,
  .appdemo .side .foot {
    display: none;
  }
  .appdemo .navbtn {
    width: auto;
    white-space: nowrap;
    margin-bottom: 0;
  }
  .appdemo .setgrid,
  .appdemo .review-grid {
    grid-template-columns: 1fr;
  }
  .appdemo .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .appdemo .panel {
    padding: 18px 16px;
  }
}
.appdemo .tablescroll {
  overflow-x: auto;
}
