:root {
  --ink: #172033;
  --ink-soft: #5d6679;
  --paper: #fbfaf6;
  --paper-deep: #f2efe6;
  --navy: #12233f;
  --blue: #2869e6;
  --green: #14835c;
  --amber: #d78913;
  --red: #d94242;
  --line: rgba(27, 39, 61, .13);
  --shadow: 0 22px 60px rgba(18, 35, 63, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }
body {
  margin: 0;
  background: #e9edf2;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 118, 239, .26), transparent 34%),
    radial-gradient(circle at 92% 82%, rgba(20, 131, 92, .18), transparent 31%),
    #0e182a;
}

.login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.login-card {
  position: relative;
  width: min(440px, 100%);
  padding: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  color: white;
  background: rgba(20, 32, 53, .88);
  box-shadow: 0 36px 100px rgba(0,0,0,.36);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(145deg, #3c7bf4, #1a50bd);
  color: white;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.06em;
  box-shadow: 0 12px 26px rgba(27, 91, 218, .35);
}

.brand-mark.small { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
.eyebrow { margin: 18px 0 5px; color: #6e87ad; font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.login-card .eyebrow { color: #89aef7; }
.login-card h1 { margin: 0; font-size: 35px; letter-spacing: -.04em; }
.login-copy { margin: 10px 0 34px; color: #b7c2d4; line-height: 1.55; }
.login-card label { display: block; margin-bottom: 9px; color: #dbe4f2; font-size: 13px; font-weight: 700; }
.password-row { display: flex; gap: 10px; }
.password-row input {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  outline: 0;
  background: rgba(255,255,255,.07);
}
.password-row input:focus { border-color: #6396f8; box-shadow: 0 0 0 3px rgba(64, 124, 242, .18); }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}
.primary-button { color: white; background: var(--blue); box-shadow: 0 9px 22px rgba(40,105,230,.24); }
.primary-button:hover { background: #195bd8; }
.secondary-button { color: var(--navy); background: #e8eef9; }
.form-error { min-height: 20px; margin: 10px 0 0; color: #ff9e9e; font-size: 13px; }
.privacy-note { margin-top: 27px; color: #91a0b6; font-size: 12px; }
.privacy-note span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #52d59f; box-shadow: 0 0 0 4px rgba(82,213,159,.12); }

.app-shell { min-height: 100vh; background: #e7ebf0; }
.topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 18px;
  color: #dce5f4;
  background: var(--navy);
  box-shadow: 0 5px 18px rgba(13, 28, 50, .2);
}
.brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.02; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { color: #96a8c4; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.menu-button { display: none !important; }
.lesson-heading { min-width: 0; margin-left: 20px; display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.13); padding-left: 20px; }
.lesson-heading strong { overflow: hidden; max-width: 420px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.lesson-heading span { margin-top: 2px; color: #91a2bd; font-size: 11px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-button {
  height: 36px;
  min-width: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #dce5f4;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.icon-button:hover { background: rgba(255,255,255,.12); }
.free-badge { display: flex; align-items: center; gap: 7px; margin-right: 6px; color: #b6c5d9; font-size: 11px; font-weight: 700; }
.free-badge i { width: 7px; height: 7px; border-radius: 50%; background: #45d19b; box-shadow: 0 0 0 4px rgba(69,209,155,.12); }

.library-panel, .teacher-panel {
  position: fixed;
  z-index: 80;
  top: 66px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: #f7f8fa;
  box-shadow: 8px 0 24px rgba(22,35,57,.08);
  transition: transform .25s ease;
}
.library-panel { left: 0; width: 286px; }
.teacher-panel { right: 0; width: 330px; transform: translateX(103%); box-shadow: -8px 0 24px rgba(22,35,57,.12); }
.teacher-panel.open { transform: translateX(0); }
.panel-head { display: flex; align-items: start; justify-content: space-between; }
.panel-head .eyebrow { margin-top: 0; }
.panel-head h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.close-button, .dialog-close { width: 32px; height: 32px; border: 0; border-radius: 9px; color: #748096; background: #e9edf2; cursor: pointer; font-size: 20px; }
.library-panel .close-button { display: none; }
.filters { display: flex; gap: 8px; margin-top: 20px; }
.segmented { display: flex; flex: 1; padding: 3px; border: 1px solid #dce1e8; border-radius: 10px; background: white; }
.segmented button { flex: 1; height: 28px; border: 0; border-radius: 7px; color: #778297; background: transparent; cursor: pointer; font-size: 11px; font-weight: 850; }
.segmented button.active { color: white; background: var(--navy); box-shadow: 0 4px 9px rgba(18,35,63,.16); }
.filters select, .command-selectors select {
  border: 1px solid #dce1e8;
  border-radius: 10px;
  color: var(--ink);
  background: white;
  outline: 0;
}
.filters select { width: 82px; padding: 0 8px; font-size: 12px; font-weight: 750; }
.search-box { height: 41px; display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 0 12px; border: 1px solid #dfe3e9; border-radius: 11px; background: white; }
.search-box span { color: #8490a2; font-size: 20px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.lesson-list { min-height: 0; flex: 1; overflow-y: auto; padding-right: 3px; }
.lesson-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.lesson-item:hover { background: #edf1f6; }
.lesson-item.active { border-color: #cddbf5; background: #e7eefc; }
.lesson-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #47617f; background: #e3e9f1; font-size: 11px; font-weight: 900; }
.lesson-item.active .lesson-icon { color: white; background: var(--blue); }
.lesson-item-copy { min-width: 0; display: flex; flex-direction: column; }
.lesson-item-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.lesson-item-copy small { margin-top: 4px; color: #8490a3; font-size: 10px; }
.lesson-steps { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #7d899c; background: #e9edf2; font-size: 10px; font-weight: 850; }
.list-empty { padding: 22px 12px; display: flex; flex-direction: column; gap: 6px; color: #727f93; text-align: center; font-size: 12px; }
.list-empty strong { color: var(--ink); }
.library-footer { padding: 14px; border-radius: 13px; color: #637085; background: #ebeff4; font-size: 10px; line-height: 1.45; }
.library-footer strong, .library-footer span { display: block; }
.library-footer strong { color: #39465a; font-size: 11px; }

.workspace {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: 286px;
  padding: 84px 22px 92px;
  transition: margin .25s ease, padding .25s ease;
}
.empty-state { width: min(650px, 100%); margin: auto; text-align: center; }
.empty-state .eyebrow { margin-top: 28px; }
.empty-state h2 { margin: 6px 0 8px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.05em; }
.empty-state > p:not(.eyebrow) { max-width: 570px; margin: 0 auto 22px; color: #6b7688; line-height: 1.6; }
.empty-illustration { position: relative; width: 250px; height: 150px; margin: auto; border: 1px solid #ccd4df; border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-1deg); }
.empty-circle { position: absolute; left: 33px; top: 35px; width: 61px; height: 61px; display: grid; place-items: center; border: 3px solid var(--blue); border-radius: 50%; color: var(--blue); font: 800 34px/1 Georgia, serif; }
.empty-line { position: absolute; left: 119px; height: 3px; border-radius: 2px; background: #9eabbc; transform: rotate(-1deg); }
.empty-line.one { top: 43px; width: 91px; }
.empty-line.two { top: 67px; width: 75px; }
.empty-line.three { top: 91px; width: 98px; }

.board-wrap { width: min(1320px, 100%, calc((100vh - 270px) * 16 / 9)); margin: auto; }
.board {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #d1d5d8;
  border-radius: 18px 18px 6px 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.paper-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(rgba(27,56,94,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(27,56,94,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, rgba(0,0,0,.5), black 28%, black 76%, rgba(0,0,0,.55));
}
.paper-grid::after { content: ""; position: absolute; left: 4.8%; top: 0; bottom: 0; width: 1px; background: rgba(218,62,62,.13); }
.element-layer, .arrow-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.element-layer { z-index: 2; }
.arrow-layer { z-index: 4; pointer-events: none; overflow: visible; }
.board-watermark { position: absolute; z-index: 1; right: 2%; bottom: 2.2%; color: rgba(18,35,63,.12); font-size: clamp(8px, .8vw, 13px); font-weight: 900; letter-spacing: .08em; }

.board-element {
  position: absolute;
  display: flex;
  align-items: stretch;
  white-space: pre-wrap;
  transition: opacity .35s ease, filter .35s ease, transform .35s ease;
  transform-origin: left top;
}
.board-element.is-history { opacity: .48; filter: saturate(.7); }
.board-element.is-current { opacity: 1; }
.board-element.draw-in { animation: draw-element .55s cubic-bezier(.2,.75,.2,1) both; }
@keyframes draw-element { from { opacity: 0; transform: translateY(8px) rotate(-.4deg) scale(.98); } to { opacity: 1; transform: none; } }
.board-element-content { width: 100%; color: var(--ink); font-size: clamp(10px, 1.2vw, 20px); line-height: 1.25; }
.tone-blue .board-element-content { --element-color: var(--blue); }
.tone-green .board-element-content { --element-color: var(--green); }
.tone-amber .board-element-content { --element-color: var(--amber); }
.tone-red .board-element-content { --element-color: var(--red); }
.tone-muted .board-element-content { --element-color: #718096; }
.tone-ink .board-element-content { --element-color: var(--ink); }
.element-label { display: block; margin-bottom: .38em; color: var(--element-color); font-size: .58em; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.type-title h3 { margin: 0; color: var(--element-color); font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2.25vw, 38px); line-height: 1.04; letter-spacing: -.035em; }
.type-text .element-copy { padding: .2em .1em; color: var(--element-color); font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.type-card { height: 100%; padding: .7em .8em; border: 2px solid color-mix(in srgb, var(--element-color) 70%, transparent); border-radius: .65em; background: color-mix(in srgb, var(--element-color) 5%, white); box-shadow: 3px 4px 0 color-mix(in srgb, var(--element-color) 12%, transparent); transform: rotate(-.35deg); }
.type-card .element-copy { color: var(--element-color); font-weight: 760; }
.type-formula { display: grid; place-items: center; height: 100%; padding: .5em; border-radius: .55em; color: var(--element-color); background: color-mix(in srgb, var(--element-color) 8%, transparent); font-family: Georgia, "Times New Roman", serif; font-size: 1.45em; font-weight: 800; }
.type-condition { height: 100%; display: flex; align-items: center; gap: .6em; padding: .55em .7em; border: 2px dashed var(--element-color); border-radius: .7em; color: var(--element-color); font-weight: 800; }
.condition-icon { flex: 0 0 auto; width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--element-color); font-weight: 950; }
.type-badge { display: inline-grid; width: auto; place-items: center; padding: .35em .7em; border-radius: 99px; color: white; background: var(--element-color); font-size: .9em; font-weight: 900; }
.type-divider { min-height: 0 !important; height: 2px; margin-top: .4em; background: repeating-linear-gradient(90deg, var(--element-color), var(--element-color) 8px, transparent 8px, transparent 14px); }
.array-row, .token-row { display: flex; align-items: stretch; filter: drop-shadow(2px 3px 0 rgba(18,35,63,.09)); }
.array-cell { position: relative; min-width: 2.15em; height: 2.15em; display: grid; place-items: center; margin-left: -1px; border: 2px solid var(--element-color); color: var(--element-color); background: rgba(255,255,255,.8); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 850; }
.array-cell:first-child { border-radius: .35em 0 0 .35em; }
.array-cell:last-child { border-radius: 0 .35em .35em 0; }
.array-cell[data-label]::after { content: attr(data-label); position: absolute; top: calc(100% + .3em); color: #7b8799; font-size: .52em; font-weight: 750; }
.token-row { gap: .15em; flex-wrap: wrap; }
.token-row .array-cell { margin: 0; border-radius: .32em; }
.code-snippet { margin: 0; padding: .7em .8em; overflow: hidden; border-left: 4px solid var(--element-color); border-radius: .35em; color: #edf4ff; background: #17243a; font: 650 clamp(8px, .82vw, 14px)/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.board-arrow { fill: none; stroke: var(--ink); stroke-width: .42; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 120; animation: draw-arrow .75s ease both; }
.board-arrow.is-history { opacity: .35; }
.board-arrow.tone-blue { stroke: var(--blue); }
.board-arrow.tone-green { stroke: var(--green); }
.board-arrow.tone-amber { stroke: var(--amber); }
.board-arrow.tone-red { stroke: var(--red); }
.arrow-layer marker path { fill: var(--ink); }
.arrow-label { fill: #536078; font: 700 2.2px system-ui, sans-serif; text-anchor: middle; }
@keyframes draw-arrow { from { stroke-dashoffset: 120; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

.narration-bar {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border: 1px solid #d7dce2;
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: rgba(251,250,246,.97);
  box-shadow: 0 16px 34px rgba(18,35,63,.1);
}
.step-pill { width: 53px; height: 53px; display: flex; align-items: baseline; justify-content: center; padding-top: 12px; border-radius: 15px; color: white; background: var(--navy); }
.step-pill span { font-size: 20px; font-weight: 900; }
.step-pill small { margin-left: 2px; color: #8da2c2; font-size: 10px; }
.narration-copy { min-width: 0; }
.narration-copy strong { font-size: 13px; }
.narration-copy p { margin: 4px 0 0; color: #5b6576; font-size: clamp(11px, 1vw, 14px); line-height: 1.4; }
.playback { display: flex; gap: 7px; }
.playback button { height: 38px; padding: 0 13px; border: 1px solid #d9dee5; border-radius: 10px; background: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.playback button:disabled { opacity: .35; cursor: default; }
.playback .next-button { min-width: 103px; border-color: var(--blue); color: white; background: var(--blue); }
.progress-track { height: 3px; margin: 0 16px; overflow: hidden; border-radius: 0 0 4px 4px; background: #cfd5dd; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--blue); transition: width .35s ease; }

.command-dock {
  position: fixed;
  z-index: 70;
  left: 306px;
  right: 20px;
  bottom: 14px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(18,35,63,.12);
  border-radius: 18px;
  background: rgba(252,253,254,.95);
  box-shadow: 0 16px 44px rgba(15,30,53,.18);
  backdrop-filter: blur(12px);
  transition: left .25s ease;
}
.command-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, #2e70ec, #174db8); font-weight: 950; box-shadow: 0 8px 18px rgba(40,105,230,.25); }
.command-dock form { min-width: 0; flex: 1; }
.command-dock label { display: block; margin-bottom: 2px; color: #657188; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.command-dock input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.command-selectors { display: flex; gap: 6px; }
.command-selectors select { height: 38px; padding: 0 9px; font-size: 11px; font-weight: 750; }
.send-button { width: 39px; height: 39px; border: 0; border-radius: 11px; color: white; background: var(--navy); cursor: pointer; font-size: 20px; }

.teacher-section { margin-top: 20px; padding-bottom: 19px; border-bottom: 1px solid #dfe3e8; }
.section-label { display: block; margin-bottom: 7px; color: #8792a4; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.teacher-section p { margin: 0; color: #4f5b6e; font-size: 13px; line-height: 1.55; }
.teacher-section code { display: block; margin-top: 8px; color: var(--blue); font-size: 12px; font-weight: 800; }
.danger-quiet { width: 100%; height: 39px; margin-top: 13px; border: 1px solid #ecd0d0; border-radius: 10px; color: #b43838; background: #fff6f6; cursor: pointer; font-size: 12px; font-weight: 800; }
.solution-section pre { max-height: 260px; margin: 10px 0 0; padding: 13px; overflow: auto; border-radius: 10px; color: #e9f1ff; background: #182438; font-size: 10px; line-height: 1.45; white-space: pre-wrap; }
.shortcut-card { margin-top: auto; padding: 13px; border-radius: 11px; color: #748095; background: #e9edf2; font-size: 9px; text-align: center; }
.shortcut-card span { color: var(--ink); font-weight: 900; }

dialog { width: min(650px, calc(100% - 30px)); padding: 28px; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 32px 100px rgba(8,18,34,.35); }
dialog::backdrop { background: rgba(9,18,32,.6); backdrop-filter: blur(5px); }
dialog .dialog-close { position: absolute; top: 16px; right: 16px; }
dialog .eyebrow { margin-top: 0; }
dialog h2 { margin: 4px 0 8px; font-size: 27px; letter-spacing: -.04em; }
dialog > p:not(.eyebrow) { color: #667286; font-size: 13px; line-height: 1.55; }
dialog pre { max-height: 220px; padding: 15px; overflow: auto; border: 1px solid #dce2e9; border-radius: 12px; color: #2d3b50; background: #f5f7fa; font: 12px/1.55 ui-monospace, monospace; white-space: pre-wrap; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 95px; padding: 11px 16px; border-radius: 11px; color: white; background: #15243a; box-shadow: 0 12px 32px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s ease; font-size: 12px; font-weight: 750; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.chrome-hidden .teacher-chrome { opacity: 0; pointer-events: none; }
.chrome-hidden .workspace { margin-left: 0; padding: 14px; }
.chrome-hidden .board-wrap { width: min(100%, calc((100vh - 28px) * 16 / 9)); }
.chrome-hidden .board { border-radius: 7px; box-shadow: none; }
.chrome-hidden .narration-bar, .chrome-hidden .progress-track { display: none; }

@media (max-width: 980px) {
  .menu-button { display: block !important; }
  .library-panel { transform: translateX(-103%); }
  .library-panel.open { transform: translateX(0); }
  .library-panel .close-button { display: block; }
  .workspace { margin-left: 0; }
  .command-dock { left: 20px; }
  .lesson-heading { display: none; }
}

@media (max-width: 700px) {
  body { overflow-y: auto; }
  .login-card { padding: 30px 24px; }
  .topbar { height: 60px; padding: 0 10px; gap: 8px; }
  .brand > span:last-child, .free-badge, #teacherToggle, #logoutButton { display: none; }
  .library-panel, .teacher-panel { top: 60px; width: min(90vw, 330px); }
  .workspace { min-height: 100svh; padding: 74px 8px 155px; }
  .board-wrap { width: 100%; }
  .board { border-radius: 9px 9px 3px 3px; }
  .narration-bar { grid-template-columns: auto 1fr; min-height: 100px; gap: 9px; padding: 8px; }
  .playback { grid-column: 1 / -1; justify-content: flex-end; }
  .step-pill { width: 44px; height: 44px; padding-top: 9px; border-radius: 12px; }
  .command-dock { left: 8px; right: 8px; bottom: 8px; flex-wrap: wrap; }
  .command-dock form { min-width: calc(100% - 58px); }
  .command-selectors { width: 100%; padding-left: 55px; }
  .command-selectors select:first-child { flex: 1; }
  .dialog-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
