:root {
  color-scheme:light;
  --bg:#f5f7fb;
  --white:#fff;
  --ink:#16253b;
  --muted:#526174;
  --blue:#1f5f9f;
  --green:#006b55;
  --amber:#f1b84b;
  --red:#b42318;
  --line:#cbd3df;
  --soft:#eaf0f7;
  font-family:'Segoe UI',Arial,sans-serif;
  font-size:16px;
  color:var(--ink);
  background:var(--bg)
}

* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select {
  font:inherit
}
button,a,input,select {
  touch-action:manipulation
}
button {
  cursor:pointer;
  min-height:44px;
  border:1px solid var(--blue);
  border-radius:8px;
  background:white;
  color:var(--blue);
  padding:9px 15px;
  font-weight:600;
  transition:background .12s
}
button:hover {
  background:#eaf2fb
}
button:active {
  background:#dce8f6
}
button:disabled {
  cursor:not-allowed;
  color:#526174;
  background:#eaf0f7;
  border-color:#a5afbd
}
button.primary {
  background:var(--blue);
  color:white;
  border-color:var(--blue)
}
button.primary:hover {
  background:#194f85
}
button.primary:disabled {
  background:#eaf0f7;
  color:var(--muted);
  border-color:#a5afbd
}
button.danger {
  color:var(--red);
  border-color:var(--red)
}
button.danger:hover {
  background:#fdecea
}
button.tertiary {
  border-color:transparent;
  background:transparent
}
button.small {
  font-size:.875rem;
  padding:8px 12px
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible,summary:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:3px
}
button:focus:not(:focus-visible) {
  outline:none
}
input,select {
  min-height:48px;
  max-width:100%;
  border:1px solid var(--muted);
  border-radius:8px;
  padding:10px 12px;
  color:var(--ink);
  background:white
}
input[type=checkbox],input[type=radio] {
  min-height:24px;
  width:22px;
  height:22px;
  accent-color:var(--blue)
}
input[type=range] {
  padding:0;
  accent-color:var(--blue);
  border:0
}
label {
  font-weight:600
}
p {
  line-height:1.5;
  margin:.5rem 0 1rem
}
h1,h2,h3 {
  line-height:1.2;
  margin:0
}
h1 {
  font-size:2rem;
  letter-spacing:-.025em
}
h2 {
  font-size:1.25rem
}
h3 {
  font-size:1rem
}
.muted,.hint {
  color:var(--muted)
}
.hint {
  font-size:.875rem;
  line-height:1.5
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.75rem;
  font-weight:700;
  color:var(--muted)
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 10px;
  border-radius:20px;
  background:#eaf2fb;
  color:var(--blue);
  font-size:.8125rem;
  font-weight:600;
  line-height:1.4
}
.badge.green {
  background:#e6f3ee;
  color:var(--green)
}
.badge.amber {
  background:#fff4d6;
  color:#76500c
}
.dot-status {
  width:7px;
  height:7px;
  background:currentColor;
  border-radius:50%;
  display:inline-block
}
.site-header {
  background:#fff;
  border-bottom:1px solid var(--line)
}
.header-inner {
  max-width:1488px;
  margin:auto;
  min-height:80px;
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  color:var(--ink);
  padding:0;
  background:none;
  text-align:left;
  font-size:1.45rem;
  letter-spacing:.025em;
  line-height:1
}
.brand b {
  color:var(--blue);
  font-weight:400
}
.brand small {
  font-size:.58rem;
  letter-spacing:.16em;
  display:block;
  margin-top:8px;
  color:var(--muted)
}
.brand-mark {
  border:2px solid var(--blue);
  border-right:0;
  border-radius:6px;
  padding:12px 8px;
  display:flex;
  align-items:center;
  gap:4px
}
.brand-mark i {
  width:5px;
  height:5px;
  border-radius:3px;
  background:var(--blue)
}
.brand-mark i:nth-child(2) {
  width:15px
}
.site-header nav {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}
.nav-button {
  font-size:.875rem;
  border-color:transparent;
  color:var(--muted);
  background:none
}
.teacher-link {
  border-left:1px solid var(--line);
  border-radius:0;
  padding-left:24px
}
.site-footer {
  max-width:1440px;
  margin:32px auto 0;
  padding:20px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:.75rem
}
main {
  max-width:1440px;
  margin:0 auto;
  padding:28px 0;
  min-height:calc(100vh - 180px)
}
.home {
  max-width:1040px;
  margin:auto
}
.home-intro {
  padding:30px 0 25px;
  position:relative
}
.home-intro h1 {
  font-size:clamp(2rem,3.2vw,2.8rem);
  max-width:720px;
  margin:16px 0
}
.home-intro p {
  font-size:1.0625rem;
  max-width:640px
}
.intro-bottom {
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-size:.875rem
}
.home-cards {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px
}
.mode-card {
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px;
  position:relative;
  overflow:hidden;
  box-shadow:0 4px 16px #16253b06
}
.card-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:26px
}
.mode-card h2 {
  font-size:1.5rem;
  margin:16px 0 10px
}
.mode-card p {
  max-width:340px;
  color:var(--muted);
  min-height:48px
}
.mode-card button {
  margin-top:12px;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center
}
.card-index {
  font-family:Consolas,monospace;
  font-size:.8125rem;
  color:var(--muted)
}
.emblem {
  width:64px;
  height:64px;
  background:#eaf2fb;
  display:grid;
  place-items:center;
  border-radius:18px;
  color:var(--blue)
}
.emblem svg {
  width:42px;
  height:42px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7
}
.peer .emblem {
  color:var(--green);
  background:#e6f3ee
}
.peer button.primary {
  background:var(--green);
  border-color:var(--green)
}
.practice-strip {
  display:flex;
  align-items:center;
  gap:20px;
  margin:24px 0;
  background:#eaf0f7;
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px 24px
}
.practice-strip .strip-text {
  flex:1
}
.practice-strip p {
  margin:4px 0 0
}
.mini-signal {
  font-family:Consolas,monospace;
  font-size:2rem;
  letter-spacing:.12em;
  color:var(--blue)
}
.first-steps {
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  margin-top:24px;
  color:var(--muted);
  font-size:.875rem
}
.first-steps span b {
  color:var(--blue);
  margin-right:8px
}
.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px
}
.page-head h1 {
  font-size:1.5rem;
  margin-top:5px
}
.head-actions,.row {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.context {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--line);
  padding:12px 0 16px;
  font-size:.875rem
}
.context strong {
  margin-right:12px
}
.station-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px
}
.panel {
  min-width:0;
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  box-shadow:0 4px 16px #16253b04
}
.panel-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px
}
.section-index {
  font:.75rem Consolas,monospace;
  color:var(--muted);
  letter-spacing:.1em
}
.receiver {
  border-top:3px solid var(--green)
}
.transmitter {
  border-top:3px solid var(--blue)
}
.signal-screen {
  background:#eaf0f7;
  border:1px solid #cbd3df;
  border-radius:10px;
  min-height:156px;
  padding:18px;
  position:relative
}
.signal-meta {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.8125rem;
  color:var(--muted)
}
.lamp {
  width:24px;
  height:24px;
  border-radius:50%;
  border:2px solid var(--muted);
  background:white;
  flex-shrink:0
}
.lamp.on {
  background:var(--amber);
  border-color:#76500c
}
.rx-symbols {
  display:flex;
  flex-wrap:wrap;
  align-content:center;
  gap:8px 12px;
  min-height:70px;
  padding:18px 0;
  overflow-wrap:anywhere
}
.morse-letter {
  display:inline-flex;
  gap:5px;
  align-items:center;
  padding:6px 3px;
  border-radius:4px
}
.morse-letter.active {
  background:#f1b84b;
  color:var(--ink);
  outline:2px solid var(--ink)
}
.morse-word {
  display:inline-flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center
}
.word-boundary {
  color:var(--muted);
  align-self:center
}
.mark {
  height:8px;
  width:8px;
  border-radius:5px;
  background:currentColor;
  display:inline-block;
  flex-shrink:0
}
.mark.dash {
  width:24px
}
.sequence .mark {
  height:10px;
  width:10px
}
.sequence .mark.dash {
  width:30px
}
.progress {
  width:100%;
  height:7px;
  accent-color:var(--green);
  display:block
}
.transport {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0
}
.transport button {
  font-size:.875rem
}
.receiver-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px
}
.receiver-tools select {
  min-height:44px;
  padding:6px 8px
}
.inline-label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.875rem
}
.interpret {
  border-top:1px solid var(--line);
  padding-top:16px
}
.interpret label {
  font-size:.875rem;
  display:block;
  margin-bottom:8px
}
.interpret-row {
  display:flex;
  gap:8px
}
.interpret input {
  min-width:0;
  width:100%
}
.translation {
  background:#eaf2fb;
  padding:12px;
  border-radius:8px;
  margin:8px 0;
  overflow-wrap:anywhere
}
.method-selector {
  border:0;
  margin:0;
  padding:0;
  display:flex;
  gap:0
}
.method-selector legend {
  font-size:.875rem;
  font-weight:600;
  margin-bottom:8px
}
.method-option {
  flex:1;
  position:relative;
  display:flex;
  min-width:0
}
.method-option input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  margin:0
}
.method-option span {
  width:100%;
  text-align:center;
  display:block;
  padding:12px 4px;
  border:1px solid var(--muted);
  font-size:.875rem;
  font-weight:600;
  background:white
}
.method-option:first-of-type span {
  border-radius:8px 0 0 8px
}
.method-option:last-of-type span {
  border-radius:0 8px 8px 0
}
.method-option input:checked+span {
  background:var(--blue);
  color:white;
  border-color:var(--blue)
}
.method-option input:focus-visible+span {
  outline:3px solid var(--blue);
  outline-offset:3px;
  z-index:2
}
.method-hint {
  min-height:23px;
  margin:8px 0 12px;
  font-size:.8125rem;
  color:var(--muted)
}
.draft-label {
  display:flex;
  justify-content:space-between;
  font-size:.75rem;
  color:var(--muted);
  margin-bottom:6px
}
.draft-message {
  background:#f5f7fb;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  min-height:48px;
  max-height:110px;
  overflow:auto;
  font-family:Consolas,monospace;
  font-size:1.25rem;
  overflow-wrap:anywhere
}
.placeholder {
  font-family:'Segoe UI',sans-serif;
  font-size:.875rem;
  color:var(--muted)
}
.current-letter {
  display:flex;
  gap:16px;
  align-items:center;
  margin:12px 0
}
.sequence-wrap {
  flex:1;
  min-width:0
}
.sequence {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  min-height:42px
}
.candidate {
  border-left:1px solid var(--line);
  min-width:84px;
  padding-left:16px
}
.candidate strong {
  font-size:2.25rem;
  line-height:1;
  display:block;
  margin-top:4px
}
.input-surface {
  background:#f5f7fb;
  border:1px dashed #526174;
  border-radius:10px;
  min-height:155px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:10px;
  gap:5px;
  text-align:center
}
.input-surface.key-mode {
  min-height:126px;
  background:#eaf2fb
}
.input-surface.key-mode:focus {
  border-style:solid;
  outline:3px solid var(--blue);
  outline-offset:2px
}
.key-symbols {
  font-family:Consolas,monospace;
  font-size:2rem;
  letter-spacing:.3em
}
.telegraph {
  width:144px;
  height:144px;
  border-radius:50%;
  background:var(--ink);
  border:6px solid #d7e0eb;
  box-shadow:0 0 0 1px #526174;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  color:white;
  padding:10px;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  font-size:.875rem
}
.telegraph:hover {
  background:#223c5c
}
.telegraph.is-pressed {
  background:var(--amber);
  color:var(--ink);
  border-color:#d6a13d
}
.telegraph .pulse-glyph {
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:10px
}
.pulse-glyph i {
  width:9px;
  height:9px;
  background:currentColor;
  border-radius:8px
}
.pulse-glyph i:nth-child(2) {
  width:27px
}
.duration {
  width:120px;
  height:6px;
  background:#cbd3df;
  border-radius:4px;
  overflow:hidden
}
.duration-fill {
  height:100%;
  width:0;
  background:var(--blue)
}
.duration-wrap {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.75rem;
  color:var(--muted)
}
.signal-buttons {
  display:flex;
  gap:16px
}
.signal-buttons button {
  min-width:110px;
  min-height:64px;
  font-size:1.125rem
}
.edit-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px
}
.edit-actions button {
  font-size:.875rem;
  flex:1;
  white-space:nowrap
}
.send-row {
  display:flex;
  gap:8px;
  margin-top:12px
}
.send-row .primary {
  flex:1;
  min-height:48px
}
.send-reason {
  font-size:.8125rem;
  min-height:20px;
  margin:6px 0 0;
  color:var(--muted)
}
.error-text {
  color:var(--red);
  font-size:.875rem;
  line-height:1.5;
  min-height:21px;
  margin:6px 0
}
.details-section {
  border-top:1px solid var(--line);
  margin-top:16px;
  padding-top:12px
}
.details-section summary {
  cursor:pointer;
  color:var(--muted);
  font-size:.875rem;
  min-height:44px;
  display:flex;
  align-items:center
}
.inbox {
  max-height:180px;
  overflow:auto;
  list-style:none;
  padding:0;
  margin:0
}
.inbox li {
  border-top:1px solid var(--line)
}
.inbox button {
  width:100%;
  border:0;
  border-radius:0;
  text-align:left;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--ink);
  font-size:.875rem
}
.inbox button[aria-pressed=true] {
  background:#eaf2fb
}
.log-list {
  font-size:.875rem;
  list-style:none;
  margin:0;
  padding:0;
  max-height:180px;
  overflow:auto
}
.log-list li {
  padding:10px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:12px
}
.banner {
  border:1px solid #a67622;
  background:#fff4d6;
  border-radius:8px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
  line-height:1.5
}
.banner .banner-copy {
  flex:1
}
.banner.error {
  background:#fdecea;
  border-color:var(--red)
}
.demo-controls {
  margin-top:20px;
  border:1px dashed #a5afbd;
  border-radius:8px;
  padding:12px 16px;
  font-size:.875rem
}
.demo-controls summary {
  cursor:pointer;
  min-height:32px;
  color:var(--muted)
}
.demo-controls .row {
  margin-top:12px
}
.center-page {
  max-width:520px;
  margin:40px auto
}
.center-page h1 {
  font-size:1.75rem;
  margin:18px 0
}
.form-stack {
  display:grid;
  gap:16px
}
.field {
  display:grid;
  gap:7px
}
.field small {
  font-weight:400
}
.operator-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:24px 0
}
.operator {
  background:var(--soft);
  padding:20px;
  border-radius:8px
}
.operator strong {
  display:block;
  margin:8px 0
}
.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:20px 0
}
.stat {
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  padding:20px
}
.stat b {
  font-size:1.75rem;
  display:block;
  margin-bottom:4px
}
.stat span {
  font-size:.875rem;
  color:var(--muted)
}
.admin-tools {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:space-between;
  margin:20px 0
}
.table-wrap {
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:.875rem
}
th {
  text-align:left;
  background:#eaf0f7;
  color:var(--muted);
  font-size:.75rem;
  padding:14px 16px
}
td {
  border-top:1px solid var(--line);
  padding:8px 16px;
  min-height:44px
}
td button {
  min-height:44px
}
td:first-child {
  font-weight:600
}
.level-label {
  font-size:.8125rem
}
.help-panel {
  position:fixed;
  right:0;
  top:0;
  height:100dvh;
  width:380px;
  background:white;
  border-left:1px solid var(--line);
  padding:24px;
  overflow:auto;
  z-index:20;
  box-shadow:-8px 0 32px #16253b12
}
body.help-open {
  padding-right:380px
}
.panel-close {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:20px
}
.alphabet {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.alpha-item {
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px;
  display:flex;
  align-items:center;
  gap:8px
}
.alpha-item strong {
  font-size:1.125rem;
  min-width:20px
}
.alpha-item code {
  font-size:1rem;
  flex:1
}
.alpha-item button {
  padding:5px 8px;
  min-width:44px
}
.help-search {
  width:100%;
  margin:8px 0 16px
}
dialog {
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  max-width:min(640px,calc(100vw - 24px));
  width:560px;
  max-height:calc(100dvh - 32px);
  overflow:auto;
  color:var(--ink);
  box-shadow:0 16px 64px #16253b30
}
dialog::backdrop {
  background:#16253b66
}
dialog h2 {
  font-size:1.5rem
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px
}
.settings-group {
  border:0;
  border-top:1px solid var(--line);
  margin:20px 0 0;
  padding:16px 0 0;
  display:grid;
  gap:14px
}
.settings-group legend {
  padding-right:12px;
  font-weight:600
}
.check-label {
  display:flex;
  gap:12px;
  align-items:center;
  font-weight:400
}
.calibration-pad {
  min-height:80px;
  width:100%;
  background:var(--ink);
  color:white;
  touch-action:none;
  user-select:none
}
.calibration-pad.is-pressed {
  background:var(--amber);
  color:var(--ink)
}
.credentials {
  font:1rem Consolas,monospace;
  background:var(--soft);
  padding:12px;
  border-radius:8px;
  overflow-wrap:anywhere
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip {
  position:fixed;
  top:-100px;
  left:12px;
  z-index:100;
  background:white;
  padding:12px
}
.skip:focus {
  top:12px
}
[hidden] {
  display:none!important
}
.reduce-motion * {
  transition:none!important;
  animation:none!important
}

@media(min-width:1800px) {
  .telegraph {
  width:160px;
  height:160px
}

}

@media(max-width:1488px) {
  main,.site-footer {
  margin-left:24px;
  margin-right:24px
}

}

@media(max-height:800px) and (min-width:1100px) {
  .header-inner {
  min-height:64px;
  padding-top:8px;
  padding-bottom:8px
}
main {
  padding-top:18px
}
.panel {
  padding:16px
}
.panel-top {
  margin-bottom:12px
}
.input-surface {
  min-height:145px
}
.telegraph {
  width:128px;
  height:128px
}
.home-intro {
  padding-top:18px
}
.home-intro h1 {
  font-size:2.5rem
}
.mode-card {
  padding:24px
}
.card-top {
  margin-bottom:12px
}
.site-footer {
  margin-top:16px
}
.context {
  padding-bottom:12px
}
.method-hint {
  margin-bottom:8px
}
.current-letter {
  margin:8px 0
}

}

@media(max-width:1099px) {
  .station-grid {
  grid-template-columns:1fr
}
.receiver {
  min-height:0
}
.rx-symbols {
  min-height:50px
}
.stats {
  grid-template-columns:1fr 1fr
}
.header-inner {
  align-items:flex-start
}
.site-header nav {
  justify-content:flex-end
}
.input-surface {
  min-height:160px
}
body.help-open {
  padding-right:0
}
.help-panel {
  display:none
}

}

@media(max-width:959px) {
  .home-cards {
  grid-template-columns:1fr
}
.mode-card p {
  max-width:none;
  min-height:0
}
.card-top {
  margin-bottom:8px
}
.mode-card h2 {
  margin-top:0
}
.header-inner {
  flex-wrap:wrap
}
.site-header nav {
  justify-content:flex-start
}
.practice-strip {
  flex-wrap:wrap
}
.home-intro {
  padding-top:12px
}
.table-wrap {
  overflow:visible;
  border:0;
  background:none
}
table,tbody,tr,td {
  display:block
}
thead {
  display:none
}
tr {
  border:1px solid var(--line);
  border-radius:10px;
  margin-bottom:12px;
  background:white;
  padding:12px
}
td {
  border:0;
  padding:6px 8px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
td:before {
  content:attr(data-label);
  font-weight:600;
  color:var(--muted)
}
.site-footer {
  flex-direction:column
}

}

@media(max-width:599px) {
  .header-inner {
  padding:12px
}
.site-header nav {
  gap:0;
  width:100%
}
.nav-button {
  padding:8px;
  font-size:.8125rem
}
.teacher-link {
  padding-left:10px
}
.brand {
  font-size:1.25rem
}
main,.site-footer {
  margin-left:12px;
  margin-right:12px
}
main {
  padding-top:20px
}
.home-intro h1 {
  font-size:2rem
}
.mode-card {
  padding:20px
}
.practice-strip {
  padding:16px;
  gap:12px
}
.practice-strip button {
  width:100%
}
.first-steps {
  gap:12px;
  flex-direction:column
}
.panel {
  padding:16px
}
.page-head {
  align-items:flex-start;
  flex-wrap:wrap
}
.head-actions {
  width:100%
}
.context {
  align-items:flex-start;
  flex-direction:column
}
.method-option span {
  font-size:.8125rem;
  padding:12px 3px
}
.interpret-row {
  flex-direction:column
}
.receiver-tools {
  flex-wrap:wrap
}
.edit-actions button {
  white-space:normal;
  flex-basis:40%
}
.stats {
  gap:8px
}
.stat {
  padding:12px
}
.stat b {
  font-size:1.5rem
}
.operator-grid {
  grid-template-columns:1fr
}
.center-page {
  margin:12px auto
}
.alphabet {
  grid-template-columns:1fr
}
.dialog-actions button {
  flex:1
}
.banner {
  align-items:flex-start;
  flex-wrap:wrap
}
.candidate {
  min-width:65px;
  padding-left:10px
}
.signal-buttons {
  gap:8px
}
.signal-buttons button {
  min-width:96px
}
.send-row {
  flex-wrap:wrap
}
.panel-top {
  align-items:flex-start
}
.badge {
  font-size:.75rem
}
.home-intro .badge {
  max-width:100%
}

}

@media(prefers-reduced-motion:reduce) {
  * {
  transition:none!important;
  animation:none!important
}

}

/* Compact school desktops: keep the instrument beside the current letter. */
.error-text:empty {
  display:none
}

@media(max-height:800px) and (min-width:1100px) {
  
.transmitter .method-selector legend {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)
}

.transmitter .panel-top .section-index {
  display:none
}

.transmitter .current-letter {
  float:left;
  width:36%;
  min-height:165px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  margin:0;
  padding:8px 12px 8px 0;
  gap:6px
}

.transmitter .current-letter .candidate {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  padding:0
}

.transmitter .current-letter .candidate strong {
  font-size:2rem
}

.transmitter #input-host {
  margin-left:38%;
  min-height:165px;
  margin-top:10px
}

.transmitter #tx-error {
  clear:both
}

.transmitter .edit-actions {
  clear:both;
  margin-top:8px
}

.transmitter .input-surface {
  min-height:165px;
  padding:6px
}

.transmitter .input-surface.key-mode {
  min-height:165px
}

.transmitter .send-reason {
  margin-bottom:0
}


}

