/* Shared exam chrome. Skins keep their own card layout. */
.reveal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(16, 32, 68, 0.08));
  box-shadow: var(--shadow, none);
}
.reveal-bar.sticky-reveal {
  position: sticky;
  top: 62px;
  z-index: 4;
}
.reveal-tick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(16, 32, 68, 0.08));
  background: var(--elev, #fff);
  color: var(--muted, #667085);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.reveal-tick input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent, #1e3a8a);
}
.reveal-tick.on {
  color: var(--text, var(--ink, #0c1733));
  border-color: color-mix(in srgb, var(--accent, #1e3a8a) 35%, var(--line, transparent));
  background: color-mix(in srgb, var(--accent, #1e3a8a) 10%, var(--card, #fff));
}
.reveal-tick.locked { opacity: 0.45; cursor: not-allowed; }

.exam-more { text-align: center; color: var(--muted, #667085); font-size: 0.86rem; padding: 12px 4px; }
.exam-sentinel { height: 1px; }

.as-root {
  --as-nav: var(--nav, 0px);
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--as-nav) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(92vw, 320px);
  pointer-events: none;
}
.as-root[hidden] { display: none !important; }
.as-fab, .as-panel, .as-choice, .as-go, .as-close { pointer-events: auto; }
.as-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--text, var(--ink, #0c1733));
  color: var(--bg, #f8faff);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--text, #0c1733) 28%, transparent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.as-fab .as-ico { font-size: 1.05rem; line-height: 1; }
.as-root.is-run .as-fab {
  background: #b45309;
  color: #fff8f0;
  animation: as-pulse 1.6s ease-in-out infinite;
}
.as-panel {
  width: min(92vw, 300px);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line, rgba(16, 32, 68, 0.08));
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow, 0 10px 28px rgba(16, 24, 40, 0.08));
  display: none;
}
.as-root.is-open .as-panel { display: block; animation: as-rise 160ms ease; }
.as-panel[hidden] { display: none !important; }
.as-title { margin: 0; font-weight: 800; font-size: 1rem; }
.as-hint { margin: 6px 0 12px; color: var(--muted, #667085); font-size: 0.82rem; line-height: 1.45; }
.as-subtitle { margin: 10px 0 6px; font-size: 0.78rem; font-weight: 700; color: var(--muted, #667085); text-transform: uppercase; letter-spacing: 0.04em; }
.as-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.as-speeds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-custom-box {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--elev, #f8faff);
  border: 1px solid var(--line, rgba(16, 32, 68, 0.08));
}
.as-custom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.84rem;
}
.as-custom-label {
  font-weight: 700;
  color: var(--text, #0c1733);
}
.as-current-val {
  font-weight: 800;
  color: var(--ok, #0e7a45);
  font-size: 0.88rem;
  font-family: monospace;
}
.as-custom-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.as-num-input {
  flex: 1;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(16, 32, 68, 0.16));
  background: var(--card, #fff);
  color: var(--text, #0c1733);
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
}
.as-num-input:focus {
  border-color: var(--ok, #0e7a45);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok, #0e7a45) 15%, transparent);
}
.as-unit {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted, #667085);
}
.as-steppers {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.as-step-btn {
  flex: 1;
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--line, rgba(16, 32, 68, 0.12));
  background: var(--card, #fff);
  color: var(--text, #0c1733);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.as-step-btn:hover, .as-step-btn:active {
  background: color-mix(in srgb, var(--ok, #0e7a45) 12%, var(--card, #fff));
  border-color: var(--ok, #0e7a45);
  color: var(--ok, #0e7a45);
}
.as-range-slider {
  width: 100%;
  accent-color: var(--ok, #0e7a45);
  cursor: pointer;
  margin-top: 2px;
}
.as-choice, .as-go, .as-close {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(16, 32, 68, 0.08));
  background: var(--elev, #fff);
  color: var(--text, var(--ink, #0c1733));
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.as-choice.on {
  border-color: var(--ok, #0e7a45);
  background: color-mix(in srgb, var(--ok, #0e7a45) 14%, var(--card, #fff));
  color: var(--ok, #0e7a45);
}
.as-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 4px; }
.as-go {
  background: var(--ok, #0e7a45);
  border-color: var(--ok, #0e7a45);
  color: #f7fffb;
}
.as-close { background: transparent; }
body.as-with-dock .as-root {
  bottom: calc(var(--as-nav) + 72px + env(safe-area-inset-bottom, 0px));
}
@keyframes as-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes as-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 420px) {
  .as-root { bottom: calc(var(--as-nav) + 12px + env(safe-area-inset-bottom, 0px)); right: 10px; }
  body.as-with-dock .as-root { bottom: calc(var(--as-nav) + 68px + env(safe-area-inset-bottom, 0px)); }
  .as-fab { min-height: 48px; padding: 11px 14px; font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .as-root.is-run .as-fab,
  .as-root.is-open .as-panel { animation: none; }
}
