/* portal/src/games/crossMath/equation-grid.css */
:root {
  --eq-cream:#FAF7F2;
  --eq-white:#fff;
  --eq-ink:#1A1A1A;
  --eq-body:#555;
  --eq-teal:#116B66;
  --eq-mint:#E1F1EC;
  --eq-deep:#37324F;
  --eq-plum:#684879;
  --eq-lilac:#EEE8F3;
  --eq-red:#A33736;
  --eq-error:#FCEBE8;
  --eq-blue:#315DA3;
  --eq-shadow:0 1px 3px #0000000D,0 8px 24px #0000000F;
  --eq-font-body:"Nunito Sans",system-ui,sans-serif;
  --eq-font-display:Fraunces,Georgia,serif;
  --eq-divider:#37324F33;
  --eq-disabled:#E9E5E1;
  --eq-ui-tone-1:#37324F40;
  --eq-surface-tint:#FFFFFF80;
  --eq-ui-tone-2:#116B6659;
  --eq-ui-tone-3:#116B6626;
  --eq-ui-tone-4:#37324F14;
  --eq-ui-tone-5:#28243D;
  --eq-stage-shadow:#37324F1A;
  --eq-tile-shadow:#211D34;
  --eq-selected-line:#FFFFFF14;
  --eq-selection:#B7E6D8;
  --eq-panel-shadow:#37324F0D;
  --eq-key-shadow:#D5C9E0;
  --eq-entry-ring:#116B6666;
  --eq-entry-soft:#116B6633;
  --eq-clear-ring:#116B6600;
}
.eqp {
  font: 400 15px/1.5 var(--eq-font-body);
  color: var(--eq-ink);
  width: 100%;
  box-sizing: border-box;
}
.eqp * {
  box-sizing: border-box;
}
.eqp button {
  font: 800 14px/1.3 var(--eq-font-body);
  cursor: pointer;
  touch-action: manipulation;
  border: 0;
  border-radius: 100px;
  min-height: 48px;
  color: var(--eq-deep);
  background: var(--eq-white);
}
.eqp button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.eqp :is(button, input):focus-visible {
  outline: 3px solid var(--eq-blue);
  outline-offset: 3px;
}
.eqp button:active:not(:disabled) {
  box-shadow: inset 0 0 0 3px var(--eq-ui-tone-1);
}
.eqp .eqp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 8px 0 24px;
}
.eqp .eqp-header h1 {
  font: 600 clamp(30px, 3vw, 40px)/1.1 var(--eq-font-display);
  margin: 0;
  color: var(--eq-deep);
}
.eqp .eqp-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.eqp .eqp-meta > span {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--eq-body);
}
.eqp .eqp-meta b {
  font-size: 20px;
  color: var(--eq-deep);
  font-variant-numeric: tabular-nums;
}
.eqp .eqp-meta button {
  padding: 8px 24px;
  box-shadow: var(--eq-shadow);
}
.eqp .eqp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 24px;
  align-items: start;
}
.eqp .eqp-stage {
  min-width: 0;
  background: var(--eq-mint);
  border-radius: 20px;
  padding: 24px;
}
.eqp .eqp-board-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--eq-teal);
  font-weight: 800;
  margin-bottom: 24px;
}
.eqp .eqp-board-wrap {
  position: relative;
  overflow: auto;
  scroll-margin-top: 24px;
  border-radius: 16px;
}
.eqp .eqp-board {
  display: grid;
  grid-template-columns: repeat(var(--eqp-n), minmax(0, 1fr));
  gap: 8px;
  max-width: calc(var(--eqp-n)*var(--eqp-size) + (var(--eqp-n) - 1)*8px);
  margin: 0 auto;
  padding: 8px;
}
.eqp .eqp-cell {
  aspect-ratio: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 900;
  position: relative;
  color: var(--eq-ink);
}
.eqp .eqp-cell.block {
  background: transparent;
}
.eqp .eqp-cell.lit:not(.block) {
  background: var(--eq-surface-tint);
}
.eqp .eqp-cell.result {
  background: var(--eq-deep);
  color: var(--eq-white);
  font-size: 18px;
}
.eqp .eqp-cell.result.lit {
  background: var(--eq-teal);
}
.eqp .eqp-cell.blank {
  background: var(--eq-white);
  box-shadow: inset 0 0 0 2px var(--eq-ui-tone-2);
}
.eqp .eqp-cell.selected {
  background: var(--eq-white);
  box-shadow: inset 0 0 0 3px var(--eq-teal), 0 4px 0 var(--eq-ui-tone-3);
}
.eqp .eqp-cell input {
  border: 0;
  background: transparent;
  color: var(--eq-teal);
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  text-align: center;
  font-family: inherit;
  font-size: inherit;
  font-weight: 900;
  border-radius: 12px;
  outline-offset: -5px;
}
.eqp .eqp-cell.bad {
  background: var(--eq-error);
  box-shadow: inset 0 0 0 2px var(--eq-red);
}
.eqp .eqp-cell.ok {
  box-shadow: inset 0 0 0 2px var(--eq-teal);
}
.eqp .eqp-mark {
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 13px;
  color: var(--eq-red);
  pointer-events: none;
}
.eqp .eqp-cell.ok .eqp-mark {
  color: var(--eq-teal);
}
.eqp .eqp-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--eq-teal);
  margin-top: 24px;
}
.eqp .eqp-legend > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eqp .eqp-legend i {
  width: 16px;
  height: 16px;
  background: var(--eq-white);
  box-shadow: inset 0 0 0 2px var(--eq-teal);
  border-radius: 4px;
}
.eqp .eqp-legend > span:nth-child(2) i {
  background: var(--eq-deep);
  box-shadow: none;
}
.eqp .eqp-legend button {
  font-size: 13px;
  padding: 8px 16px;
}
.eqp .eqp-controls {
  background: var(--eq-white);
  box-shadow: var(--eq-shadow);
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.eqp .eqp-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eqp .eqp-guide h2 {
  font: 800 18px/1.3 "Nunito Sans", sans-serif;
  margin: 0 0 4px;
  color: var(--eq-deep);
}
.eqp .eqp-guide p {
  font-size: 13px;
  color: var(--eq-body);
  margin: 0;
  line-height: 1.5;
}
.eqp .eqp-selection {
  font-size: 13px;
  font-weight: 800;
  color: var(--eq-teal);
  margin: 0 0 8px;
}
.eqp .eqp-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.eqp .eqp-line {
  padding: 8px 16px;
  background: var(--eq-cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}
.eqp .eqp-line span {
  font-size: 13px;
  color: var(--eq-body);
}
.eqp .eqp-line b {
  display: block;
  color: var(--eq-deep);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.eqp .eqp-line.correct {
  background: var(--eq-mint);
  color: var(--eq-teal);
}
.eqp .eqp-line.incorrect {
  background: var(--eq-error);
  color: var(--eq-red);
}
.eqp .eqp-line p {
  font-size: 13px;
  margin: 4px 0;
  flex-basis: 100%;
  line-height: 1.5;
}
.eqp .eqp-digits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.eqp .eqp-digits button {
  border-radius: 12px;
  background: var(--eq-cream);
  font-size: 20px;
  min-width: 0;
  box-shadow: 0 3px 0 var(--eq-ui-tone-4);
}
.eqp .eqp-digits .eqp-erase {
  font-size: 13px;
}
.eqp .eqp-status {
  font-size: 13px;
  line-height: 1.5;
  min-height: 40px;
  color: var(--eq-body);
  margin: 8px 0;
}
.eqp .eqp-tools {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.eqp .eqp-tools button {
  background: transparent;
  font-size: 13px;
  min-height: 40px;
  color: var(--eq-body);
  padding: 0 4px;
}
.eqp .eqp-pause {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--eq-mint);
  text-align: center;
  padding: 16px;
}
.eqp .eqp-pause strong {
  font-size: 24px;
  color: var(--eq-deep);
}
.eqp .eqp-pause p {
  margin: 8px 0 16px;
}
.eqp .eqp-pause button {
  background: var(--eq-deep);
  color: var(--eq-white);
  padding: 8px 24px;
}
.arcade-player--equation:has(.eqp) .pgs-scroll {
  overflow: visible;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.arcade-player--equation:has(.eqp) .pgs-back {
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  color: var(--eq-body);
}
@media (max-width:700px) {
  .eqp .eqp-header {
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 16px;
  }
  .eqp .eqp-header h1 {
    font-size: 30px;
  }
  .eqp .eqp-meta {
    gap: 16px;
    width: 100%;
    justify-content: space-between;
  }
  .eqp .eqp-meta > span {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .eqp .eqp-meta b {
    font-size: 16px;
  }
  .eqp .eqp-meta button {
    min-height: 44px;
    padding: 8px 24px;
  }
  .eqp .eqp-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .eqp .eqp-stage {
    padding: 16px 8px;
  }
  .eqp .eqp-board-top {
    margin: 0 8px 8px;
  }
  .eqp .eqp-board {
    gap: 4px;
    padding: 4px;
  }
  .eqp .eqp-cell {
    border-radius: 8px;
    font-size: 20px;
  }
  .eqp .eqp-cell input {
    border-radius: 8px;
  }
  .eqp .eqp-cell.result {
    font-size: 16px;
  }
  .eqp .eqp-legend {
    margin-top: 8px;
    gap: 16px;
  }
  .eqp .eqp-controls {
    padding: 16px;
  }
  .eqp .eqp-guide {
    display: none;
  }
  .eqp .eqp-lines {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  .eqp .eqp-line {
    padding: 8px;
  }
  .eqp .eqp-line b {
    font-size: 15px;
  }
  .eqp .eqp-status {
    min-height: 0;
  }
  .eqp .eqp-cell:has(input) {
    min-height: 24px;
  }
  .eqp .eqp-board-large {
    width: calc(var(--eqp-n)*44px + (var(--eqp-n) - 1)*4px + 8px);
    min-width: calc(var(--eqp-n)*44px + (var(--eqp-n) - 1)*4px + 8px);
  }
  .eqp .eqp-tools button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .eqp * {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}
@media (max-width:700px) {
  body:has(.eqp) .min-h-\[100dvh\] > p {
    display: none;
  }
  .eqp .eqp-board-small {
    max-width: 248px;
  }
  .eqp .eqp-header {
    margin-bottom: 16px;
    gap: 8px;
  }
  .eqp .eqp-header h1 {
    font-size: 26px;
  }
  .eqp .eqp-meta button {
    min-height: 40px;
  }
  .eqp .eqp-stage {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
body:has(.arcade-player--equation) .bl-auto-flow {
  background: var(--eq-white);
  color: var(--eq-deep);
  border-radius: 20px;
}
body:has(.arcade-player--equation) .bl-auto-flow button {
  border: 0;
  background: var(--eq-deep);
  color: var(--eq-white);
  min-height: 48px;
}
@media (max-width:700px) {
  .eqp .eqp-board:not(.eqp-board-small) .eqp-cell.result {
    font-size: 13px;
  }
}
@media (max-width:700px) {
  .eqp .eqp-board {
    padding: 8px;
  }
  .eqp .eqp-cell.blank input {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
    z-index: 1;
  }
}
.eqp .eqp-status.eqp-correct {
  color: var(--eq-teal);
  font-weight: 800;
}
.eqp .eqp-stage {
  background: var(--eq-deep);
  box-shadow: 0 8px 0 var(--eq-ui-tone-5), 0 20px 40px var(--eq-stage-shadow);
  padding: 32px 24px;
  overflow: hidden;
}
.eqp .eqp-board-top {
  color: var(--eq-lilac);
  font-weight: 800;
  letter-spacing: normal;
}
.eqp .eqp-cell {
  animation: eqp-arrive 240ms cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--eqp-delay);
  transition: background-color 140ms, box-shadow 140ms;
}
.eqp .eqp-cell.given {
  background: var(--eq-lilac);
  color: var(--eq-deep);
  box-shadow: 0 4px 0 var(--eq-tile-shadow);
}
.eqp .eqp-cell:is(.op, .eq) {
  color: var(--eq-white);
  background: transparent;
}
.eqp .eqp-cell.lit:not(.block) {
  background: var(--eq-selected-line);
}
.eqp .eqp-cell.given.lit {
  background: var(--eq-lilac);
}
.eqp .eqp-cell.blank,
.eqp .eqp-cell.blank.lit {
  background: var(--eq-white);
  box-shadow: 0 5px 0 var(--eq-tile-shadow), inset 0 0 0 2px var(--eq-surface-tint);
}
.eqp .eqp-cell.blank.selected {
  background: var(--eq-white);
  box-shadow: 0 5px 0 var(--eq-tile-shadow), 0 0 0 3px var(--eq-selection);
}
.eqp .eqp-cell.result,
.eqp .eqp-cell.result.lit {
  background: var(--eq-mint);
  color: var(--eq-teal);
  box-shadow: 0 4px 0 var(--eq-tile-shadow);
}
.eqp .eqp-cell.result.lit {
  box-shadow: 0 4px 0 var(--eq-tile-shadow), 0 0 0 2px var(--eq-selection);
}
.eqp .eqp-cell.blank.bad {
  background: var(--eq-error);
  box-shadow: 0 5px 0 var(--eq-tile-shadow), inset 0 0 0 3px var(--eq-red);
  animation: eqp-retry 260ms ease both;
}
.eqp .eqp-cell.blank.ok {
  background: var(--eq-mint);
  box-shadow: 0 5px 0 var(--eq-tile-shadow);
}
.eqp .eqp-entry-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.eqp .eqp-entry-ripple.has-value {
  animation: eqp-entry 230ms cubic-bezier(.2, .9, .3, 1);
}
.eqp.is-solved .eqp-cell:not(.block) {
  animation: eqp-balanced 340ms cubic-bezier(.2, .8, .3, 1) both;
  animation-delay: var(--eqp-delay);
}
.eqp .eqp-legend {
  color: var(--eq-lilac);
}
.eqp .eqp-legend i {
  box-shadow: none;
}
.eqp .eqp-legend > span:nth-child(2) i {
  background: var(--eq-mint);
}
.eqp .eqp-controls {
  box-shadow: 0 6px 0 var(--eq-lilac), 0 12px 32px var(--eq-panel-shadow);
}
.eqp .eqp-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.eqp .eqp-progress > span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: normal;
  color: var(--eq-plum);
}
.eqp .eqp-progress > b {
  font-size: 28px;
  line-height: 1;
  color: var(--eq-deep);
  font-variant-numeric: tabular-nums;
}
.eqp .eqp-progress small {
  font-size: 14px;
  color: var(--eq-body);
}
.eqp .eqp-progress-track {
  grid-column: 1/-1;
  height: 8px;
  border-radius: 100px;
  background: var(--eq-lilac);
  overflow: hidden;
}
.eqp .eqp-progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--eq-teal);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(.2, .8, .3, 1);
}
.eqp .eqp-meta .eqp-level {
  background: var(--eq-deep);
  color: var(--eq-lilac);
  border-radius: 16px;
  padding: 8px 16px;
}
.eqp .eqp-meta .eqp-level b {
  color: var(--eq-white);
  font-size: 28px;
}
.eqp .eqp-digits button {
  background: var(--eq-lilac);
  box-shadow: 0 4px 0 var(--eq-key-shadow);
  font-size: 22px;
  transition: transform 100ms, box-shadow 100ms;
}
.eqp .eqp-digits button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--eq-key-shadow);
}
.eqp .eqp-digits button:focus-visible {
  outline-offset: 5px;
}
.eqp .eqp-auto {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px;
  background: var(--eq-mint);
  border-radius: 16px;
  color: var(--eq-teal);
}
.eqp .eqp-auto > span {
  width: 24px;
  height: 24px;
  background: var(--eq-teal);
  color: var(--eq-white);
  border-radius: 100px;
  text-align: center;
  line-height: 24px;
  font-weight: 900;
}
.eqp .eqp-auto strong {
  font-size: 14px;
}
.eqp .eqp-auto.done {
  animation: eqp-success 240ms ease both;
}
.eqp .eqp-edit-hint {
  font-size: 13px;
  color: var(--eq-body);
  margin: 8px 0 0;
}
.eqp .eqp-tools {
  margin-top: 8px;
}
@keyframes eqp-arrive {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes eqp-entry {
  0% {
    box-shadow: inset 0 0 0 0 var(--eq-entry-ring);
    transform: scale(.94);
  }
  60% {
    box-shadow: inset 0 0 0 4px var(--eq-entry-soft);
    transform: scale(1.04);
  }
  100% {
    box-shadow: inset 0 0 0 1px var(--eq-clear-ring);
    transform: none;
  }
}
@keyframes eqp-retry {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  70% {
    transform: translateX(3px);
  }
}
@keyframes eqp-balanced {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 var(--eq-tile-shadow), 0 0 0 2px var(--eq-selection);
  }
}
@keyframes eqp-success {
  from {
    transform: scale(.96);
    opacity: .6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes eqp-nod {
  50% {
    transform: rotate(-6deg) translateY(-3px);
  }
}
@media (max-width:700px) {
  .eqp .eqp-stage {
    padding: 16px 8px;
  }
  .eqp .eqp-meta .eqp-level {
    padding: 8px 16px;
  }
  .eqp .eqp-meta .eqp-level b {
    font-size: 20px;
  }
  .eqp .eqp-progress {
    margin-bottom: 16px;
  }
  .eqp .eqp-progress > b {
    font-size: 22px;
  }
  .eqp .eqp-progress > span {
    font-size: 13px;
  }
  .eqp .eqp-auto {
    margin-top: 16px;
    padding: 8px 16px;
  }
  .eqp .eqp-tools {
    gap: 8px;
  }
  .eqp .eqp-tools button {
    font-size: 13px;
  }
  .eqp .eqp-status {
    min-height: 20px;
  }
}
.eqp.eqp-less-motion .eqp-cell,
.eqp.eqp-less-motion .eqp-entry-ripple.has-value,
.eqp.eqp-less-motion.is-solved .eqp-cell:not(.block),
.eqp.eqp-less-motion .eqp-auto.done {
  animation: none;
}
.eqp.eqp-less-motion .eqp-progress-track i,
.eqp.eqp-less-motion .eqp-digits button,
.eqp.eqp-less-motion .eqp-cell {
  transition: none;
}
.eqp .eqp-controls {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.eqp .eqp-guide {
  display: block;
  margin: 0 0 8px;
}
.eqp .eqp-guide h2 {
  font: 700 18px/1.3 var(--eq-font-body);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
.eqp .eqp-line {
  background: transparent;
  border-radius: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--eq-divider);
}
.eqp .eqp-header h1 {
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
.eqp .eqp-auto {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: 16px;
}
.eqp .eqp-auto .eqp-status {
  margin: 0;
}
.eqp .eqp-progress > span {
  letter-spacing: normal;
  font-weight: 700;
}
.eqp .eqp-selection {
  letter-spacing: normal;
}
.eqp button:disabled {
  background: var(--eq-disabled);
  color: var(--eq-body);
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}
@media (max-width:700px) {
  .eqp .eqp-controls {
    padding: 8px;
  }
  .eqp .eqp-guide {
    display: none;
  }
}
:root {
  --eq-options-width:208px;
  --eq-label-size:13px;
  --eq-tool-size:14px;
  --eq-option-radius:8px;
  --eq-options-shadow:0 8px 32px #37324F26;
}
.eqp-essential .eqp-layout {
  align-items: center;
}
.eqp-essential .eqp-header {
  margin-bottom: 24px;
}
.eqp-essential .eqp-meta {
  gap: 8px;
}
.eqp-essential .eqp-meta .eqp-level {
  background: transparent;
  color: var(--eq-body);
  padding: 0 16px 0 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.eqp-essential .eqp-meta .eqp-level b {
  color: var(--eq-deep);
  font-size: 20px;
}
.eqp-essential .eqp-stage {
  padding: 24px 16px;
}
.eqp-essential .eqp-controls {
  padding: 0;
}
.eqp-essential .eqp-options {
  position: relative;
}
.eqp-essential .eqp-options summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  background: transparent;
  border-radius: var(--eq-option-radius);
  font-size: var(--eq-tool-size);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}
.eqp-essential .eqp-options summary::-webkit-details-marker {
  display: none;
}
.eqp-essential .eqp-options summary:focus-visible {
  outline: 3px solid var(--eq-blue);
  outline-offset: 3px;
}
.eqp-essential .eqp-options summary:is(:hover, :active),
.eqp-essential .eqp-options[open] > summary {
  background: var(--eq-lilac);
}
.eqp-essential .eqp-options-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  width: var(--eq-options-width);
  padding: 8px;
  background: var(--eq-white);
  border-radius: var(--eq-option-radius);
  box-shadow: var(--eq-options-shadow);
}
.eqp-essential .eqp-options-panel button {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: left;
  border-radius: var(--eq-option-radius);
  padding: 8px 16px;
  font-size: var(--eq-tool-size);
}
.eqp-essential .eqp-options-panel button:hover:not(:disabled) {
  background: var(--eq-lilac);
}
.eqp-essential .eqp-elapsed {
  display: block;
  color: var(--eq-body);
  font-size: var(--eq-label-size);
  padding: 8px 16px;
  font-variant-numeric: tabular-nums;
}
.eqp-essential .eqp-board-size {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.eqp-essential .eqp-board-size button {
  min-height: 44px;
  padding: 8px 16px;
  font-size: var(--eq-label-size);
}
.eqp-essential .eqp-hint {
  margin-top: 16px;
}
.eqp-essential .eqp-hint-rule {
  font-size: var(--eq-label-size);
  color: var(--eq-body);
  margin: 0 0 8px;
}
.eqp-essential .eqp-lines {
  margin: 0;
}
.eqp-essential .eqp-auto {
  display: block;
  margin-top: 16px;
}
.eqp-essential .eqp-status {
  min-height: 0;
}
.eqp-essential .eqp-auto:has(.eqp-status:empty) {
  display: none;
}
.eqp .eqp-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body:has(.eqp-essential) .min-h-\[100dvh\] > p {
  display: none;
}
@media (max-width:700px) {
  .eqp-essential .eqp-header {
    margin-bottom: 16px;
  }
  .eqp-essential .eqp-meta {
    width: auto;
    margin-left: auto;
    flex-wrap: wrap;
    gap: 8px;
  }
  .eqp-essential .eqp-meta .eqp-level {
    padding-right: 8px;
  }
  .eqp-essential .eqp-meta button,
  .eqp-essential .eqp-options summary {
    min-height: 44px;
    padding: 8px 16px;
  }
  .eqp-essential .eqp-stage {
    padding: 16px 8px;
  }
  .eqp-essential .eqp-controls {
    padding: 8px;
  }
}
