:root {
  --bg: #020816;
  --text: #f5f8ff;
  --muted: #aab6ca;
  --soft: #7f8da4;
  --line: rgba(109, 224, 255, 0.18);
  --cyan: #38d7ff;
  --green: #35f0b1;
  --orange: #fb923c;
  --panel-w: 340px;
  --preview-stimulus-size: 36px;
  --shell-top: 132px;
  --edge-pad: 16px;
  --peripheral-focus-y: 56.5%;
  --peripheral-letter-weight: 500;
  --peripheral-letter-spacing: -0.01em;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(38, 130, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(53, 240, 177, 0.09), transparent 35%),
    linear-gradient(180deg, #071c35 0%, #020816 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

body [data-autobyte-header] {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  width: min(1880px, calc(100vw - 56px)) !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  z-index: 1000 !important;
}

.tool-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.tool-layout {
  position: fixed;
  inset: var(--shell-top) var(--edge-pad) var(--edge-pad) var(--edge-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 52%, rgba(56, 215, 255, 0.077), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(53, 240, 177, 0.037), transparent 38%),
    rgba(3, 10, 23, 0.72);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.40);
}

.tool-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.62;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.020), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.012));
}

.trainer-panel {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: var(--panel-w);
  height: 100%;
  padding: 24px 30px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(109, 224, 255, 0.18);
  background:
    radial-gradient(circle at 18% 8%, rgba(53, 240, 177, 0.075), transparent 30%),
    rgba(2, 8, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 215, 255, 0.38) transparent;
}



body.is-dragging-placeholder {
  user-select: none;
}

.trainer-panel::-webkit-scrollbar {
  width: 8px;
}

.trainer-panel::-webkit-scrollbar-track {
  margin: 16px 0;
  background: transparent;
}

.trainer-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 8, 18, 0.62);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 215, 255, 0.48), rgba(53, 240, 177, 0.26));
}

.panel-content {
  display: block;
}

.panel-toggle,
.clean-minimize-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  color: rgba(244, 248, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.panel-toggle:hover,
.clean-minimize-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.panel-toggle-icon {
  font-size: 1.18em;
  line-height: 1;
}

.panel-head h1 {
  margin: 42px 0 12px;
  font-size: 30px;
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 850;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}

.control-card {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.control,
.range-control {
  display: grid;
  gap: 9px;
}

.control label,
.range-control label {
  color: #75ffd2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 950;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(1, 7, 18, 0.72);
}

small {
  color: var(--soft);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.distance-controls,
.pro-direction-controls {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.distance-controls {
  display: grid;
  gap: 14px;
}

.pro-direction-controls {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #75ffd2;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 12px;
  font-weight: 950;
}

.pro-tag {
  padding: 4px 8px;
  border: 1px solid rgba(53, 240, 177, 0.20);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(53, 240, 177, 0.08);
}

.pro-direction-controls p {
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.direction-range-grid {
  display: grid;
  gap: 14px;
}

.range-control {
  gap: 8px;
}

.range-control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(235, 244, 255, 0.92);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.panel-footer-actions {
  margin-top: 20px;
}

.training-stage {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.field-card {
  position: relative;
  z-index: 2;
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.field-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  background: radial-gradient(circle at 50% var(--peripheral-focus-y), rgba(56, 215, 255, 0.040), rgba(53, 240, 177, 0.014) 14%, transparent 25%);
}

.field-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(109, 224, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 224, 255, 0.030) 1px, transparent 1px);
  background-size: 128px 128px;
  background-position: 50% var(--peripheral-focus-y);
}

.field-instruction {
  position: absolute;
  top: 5.5%;
  left: 50%;
  z-index: 4;
  width: min(780px, 80%);
  transform: translateX(-50%);
  text-align: center;
  color: rgba(220, 231, 247, 0.82);
  font-size: clamp(18px, 1.45vw, 28px);
  line-height: 1.35;
}

.fixation {
  position: absolute;
  left: 50%;
  top: var(--peripheral-focus-y);
  z-index: 4;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  color: rgba(230, 241, 255, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 950;
}

.fixation::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: 0.30;
  background: radial-gradient(circle, rgba(56, 215, 255, 0.095), rgba(53, 240, 177, 0.030) 38%, transparent 66%);
}

.fixation span {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(56, 215, 255, 0.18);
}

.calibration-hint {
  position: absolute;
  top: 24px;
  right: 18px;
  z-index: 5;
  width: min(204px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 16px;
  color: rgba(222, 235, 252, 0.78);
  background: linear-gradient(145deg, rgba(10, 21, 39, 0.78), rgba(3, 10, 23, 0.58));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20);
  pointer-events: auto;
  opacity: 0.86;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.calibration-hint strong {
  display: block;
  margin-bottom: 5px;
  color: rgba(246, 250, 255, 0.94);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.calibration-hint span {
  display: block;
  color: rgba(178, 192, 215, 0.74);
  font-size: 11px;
  line-height: 1.4;
}

body.is-training-active .calibration-hint,
.calibration-hint[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.calibration-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 9px;
  padding: 6px 10px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  color: rgba(226, 240, 255, 0.84);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.calibration-reset-btn:hover,
.calibration-reset-btn:focus-visible {
  color: rgba(246, 250, 255, 0.98);
  border-color: rgba(125, 211, 252, 0.34);
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.14), rgba(255, 255, 255, 0.05));
  transform: translateY(-1px);
  outline: none;
}

.calibration-reset-btn:active {
  transform: translateY(0);
}

.fixation strong {
  position: relative;
}

.direction-preview {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.82;
  transform: none;
  transform-origin: 50% var(--peripheral-focus-y);
}

.preview-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 8px;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  color: rgba(230, 242, 255, 0.70);
  text-align: center;
}

.preview-dot:hover::before,
.preview-dot:focus-visible::before,
body.is-dragging-placeholder .preview-dot:hover::before {
  border-color: rgba(125, 211, 252, 0.78);
  background: rgba(6, 18, 34, 0.76);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.16), 0 14px 34px rgba(0, 0, 0, 0.22);
}

.preview-dot:active {
  cursor: grabbing;
}

.preview-dot:focus-visible {
  outline: none;
}

.preview-dot::before {
  content: attr(data-symbol);
  min-width: 1.5em;
  min-height: 1.5em;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 215, 255, 0.58);
  border-radius: 999px;
  color: rgba(232, 251, 255, 0.86);
  background: rgba(2, 8, 18, 0.58);
  font-size: var(--preview-stimulus-size);
  font-weight: var(--peripheral-letter-weight);
  letter-spacing: var(--peripheral-letter-spacing);
  line-height: 1;
  text-shadow: none;
  box-shadow: none;
}

.preview-dot::after {
  content: attr(data-label);
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(210, 225, 244, 0.58);
  background: rgba(0, 0, 0, 0.30);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stimulus {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  color: #e7fbff;
  font-weight: var(--peripheral-letter-weight);
  letter-spacing: var(--peripheral-letter-spacing);
  text-shadow: none;
}

.reader-actions {
  position: relative;
  z-index: 6;
  width: min(560px, calc(100% - 96px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reader-btn {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    filter 0.22s var(--ease);
}

.reader-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent),
    radial-gradient(circle at 82% 18%, rgba(56, 215, 255, 0.16), transparent 34%);
  transition: opacity 0.22s var(--ease);
}

.reader-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 238, 255, 0.26);
  background: rgba(255, 255, 255, 0.050);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(56, 215, 255, 0.070);
}

.reader-btn:hover::after {
  opacity: 1;
}

.reader-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.reader-btn.start {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(56, 215, 255, 0.10));
}

.btn-icon {
  color: #35f0b1;
  font-size: 21px;
}

.reader-btn.reset .btn-icon {
  color: var(--orange);
}

.btn-label {
  font-size: 15px;
}

.btn-key {
  color: var(--soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tool-layout.is-panel-collapsed .trainer-panel,
body.is-training-active .trainer-panel {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 74px;
  height: 96px;
  padding: 22px 0 0 16px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tool-layout.is-panel-collapsed .panel-content,
.tool-layout.is-panel-collapsed .panel-footer-actions,
body.is-training-active .panel-content,
body.is-training-active .panel-footer-actions {
  display: none;
}

.tool-layout.is-panel-collapsed .panel-toggle,
body.is-training-active .panel-toggle {
  width: 46px;
  height: 46px;
  min-height: 46px;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(4, 12, 26, 0.18);
  box-shadow: none;
}

.tool-layout.is-panel-collapsed .panel-toggle-text,
.tool-layout.is-panel-collapsed .panel-toggle span:not(.panel-toggle-icon),
body.is-training-active .panel-toggle-text,
body.is-training-active .panel-toggle span:not(.panel-toggle-icon) {
  display: none;
}

.tool-layout.is-panel-collapsed .panel-toggle-icon,
body.is-training-active .panel-toggle-icon {
  display: inline-block;
  transform: rotate(180deg);
}


.training-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.training-modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(5, 14, 29, 0.94);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.eyebrow.small {
  width: fit-content;
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(53, 240, 177, 0.18);
  border-radius: 999px;
  color: #75ffd2;
  background: rgba(53, 240, 177, 0.08);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 950;
}

.modal-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 2.3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.modal-copy,
.modal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.answer-option {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 950;
}

.answer-option:hover {
  border-color: rgba(56, 215, 255, 0.35);
}

.answer-option.correct {
  border-color: rgba(53, 240, 177, 0.72);
  background: rgba(53, 240, 177, 0.14);
}

.answer-option.wrong {
  border-color: rgba(251, 146, 60, 0.72);
  background: rgba(251, 146, 60, 0.13);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.modal-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.modal-btn.primary {
  border: 1px solid rgba(112, 255, 223, 0.44);
  color: #04131a;
  background:
    linear-gradient(135deg, rgba(65, 230, 255, 0.96), rgba(70, 244, 185, 0.94)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 34px rgba(35, 226, 221, 0.13);
}

.summary-modal-card .modal-btn.primary:hover,
.summary-modal-card .modal-btn.primary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(190, 255, 241, 0.72);
  background:
    linear-gradient(135deg, rgba(81, 237, 255, 0.98), rgba(100, 255, 203, 0.98)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 18px 42px rgba(35, 226, 221, 0.22),
    0 0 0 4px rgba(53, 240, 177, 0.09);
  filter: saturate(1.08);
}

.summary-modal-card .modal-btn.primary:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(35, 226, 221, 0.14);
}

.danger-soft {
  color: #fecaca;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.summary-grid article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.05;
  letter-spacing: 0;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  body [data-autobyte-header] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(100%, calc(100vw - 24px)) !important;
    margin: 12px auto !important;
    transform: none !important;
  }

  .tool-layout {
    position: relative;
    inset: auto;
    width: min(100%, calc(100vw - 24px));
    min-height: auto;
    margin: 12px auto 24px;
    grid-template-columns: 1fr;
  }

  .trainer-panel {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .training-stage {
    min-height: 80vh;
  }

  .reader-actions {
    width: calc(100% - 24px);
  }

  .answer-options,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* AutoByte selective modal interaction polish.
   Peripheral modals were missing the broader hover/active/focus treatment that
   Speed Reader already has. This only upgrades existing modal controls; no
   layout, copy or design-system changes. */
.training-modal .modal-btn:hover,
.training-modal .modal-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.48);
  background: rgba(56, 189, 248, 0.09);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.30),
    0 0 24px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  outline: none;
}

.training-modal .modal-btn:active {
  transform: translateY(0) scale(0.985);
  border-color: rgba(125, 211, 252, 0.36);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.training-modal .modal-btn.primary:hover,
.training-modal .modal-btn.primary:focus-visible {
  border-color: rgba(190, 255, 241, 0.72);
  color: #031217;
  background:
    linear-gradient(135deg, rgba(81, 237, 255, 0.98), rgba(100, 255, 203, 0.98)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 18px 42px rgba(35, 226, 221, 0.22),
    0 0 0 4px rgba(53, 240, 177, 0.09);
  filter: saturate(1.08);
}

.training-modal .modal-btn.primary:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(35, 226, 221, 0.14);
}

.training-modal .modal-btn.secondary:hover,
.training-modal .modal-btn.secondary:focus-visible {
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.05);
}

.training-modal .danger-soft:hover,
.training-modal .danger-soft:focus-visible {
  border-color: rgba(251, 146, 60, 0.48);
  background: rgba(251, 146, 60, 0.10);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.30),
    0 0 22px rgba(251, 146, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.answer-option {
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.answer-option:hover,
.answer-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(104, 220, 255, 0.55);
  background: rgba(104, 220, 255, 0.09);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  outline: none;
}

.answer-option:active {
  transform: translateY(0) scale(0.99);
}

/* AutoByte 1.5.7 cleanup foundation lock: fixed panel + calibration affordance */
:root { --panel-w: 340px; --peripheral-panel-width: 340px; }
.trainer-panel { width: 340px !important; min-width: 340px !important; max-width: 340px !important; cursor: default !important; }
.direction-preview .preview-marker,
.direction-preview .preview-dot { cursor: grab; touch-action: none; }
.direction-preview .preview-marker:active,
.direction-preview .preview-dot:active,
body.is-dragging-placeholder .direction-preview .preview-marker,
body.is-dragging-placeholder .direction-preview .preview-dot { cursor: grabbing; }
.direction-preview .preview-dot:hover { transform: translate(-50%, -50%) scale(1.025); }
.tool-layout.is-panel-collapsed .trainer-panel,
body.is-training-active .trainer-panel { cursor: default !important; box-shadow: none !important; border-right-color: rgba(109, 224, 255, 0.18) !important; }
