/* MeshNewb — dark, Inter, purple accent. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #161826; --surface: #232532; --tint: #2b2741; --border: #3f424d;
  --text: #e9e9ed; --text-2: #b2b6ca; --hint: #9da1b6; --muted: #75798c;
  --accent: #9184d9; --accent-deep: #5d5294; --accent-hover: #d2cefd;
  /* Status colors are not in the brief: kept muted and used only as small marks. */
  --ok: #8fc1a3; --warn: #d9b878; --err: #e08f8f;
  --radius: 8px; --radius-lg: 14px;
  --font: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 400 15px/1.55 var(--font);
  background:
    radial-gradient(900px 500px at 8% -10%, var(--tint) 0%, transparent 60%),
    radial-gradient(700px 500px at 100% 30%, rgba(43, 39, 65, .55) 0%, transparent 65%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 28px; }
header.site { padding: 28px 0 18px; }
.eyebrow, h2, .label { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
h1 { font-weight: 500; font-size: 30px; letter-spacing: -.02em; margin: 6px 0 4px; }
h1 .dot { color: var(--accent); }
header.site p { margin: 0; color: var(--text-2); }
header.site .fw { color: var(--muted); font-size: 13px; margin-top: 6px; }
header.site .fw b { color: var(--text-2); font-weight: 500; }

main, section.prereq { max-width: none; }
main { display: block; }

section.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 14px; }
h2 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
h2 .n { color: var(--accent); margin-right: 8px; }
h2 small { font: inherit; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; }

label { display: block; font-size: 13px; color: var(--text-2); margin: 10px 0 4px; }
label.inline { display: inline-flex; gap: 6px; align-items: center; margin: 8px 16px 0 0; color: var(--text); }
label.inline input { width: auto; accent-color: var(--accent); }
input, select {
  width: 100%; padding: 7px 10px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); font: inherit;
}
input::placeholder { color: var(--muted); }
input:hover, select:hover { border-color: #565a68; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
input:disabled, select:disabled { opacity: .45; }
input[type="file"] { padding: 5px; color: var(--text-2); }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text); font: 400 13px var(--font); cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hint { font-size: 13px; color: var(--hint); margin-top: 4px; }
/* A note is helper text the reader must not miss (who can see the name, write the PIN down). */
.note { font-size: 14px; color: var(--text-2); margin: 6px 0 0; max-width: 72ch; }
.note b { color: var(--text); font-weight: 500; }
.req { color: var(--accent); }
.callout { font-size: 13px; color: var(--text-2); border-left: 2px solid var(--accent); padding: 6px 10px; background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; margin-top: 8px; }
details summary { cursor: pointer; color: var(--text-2); font-size: 13px; margin-top: 12px; }
details summary:hover { color: var(--accent-hover); }
details[open] summary { color: var(--text); }

.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
button {
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--accent); background: transparent;
  color: var(--text); cursor: pointer; font: 500 14px var(--font);
}
button:hover { background: rgba(145, 132, 217, .12); color: var(--accent-hover); }
button.primary { border-color: var(--accent); box-shadow: 0 0 18px -6px rgba(145, 132, 217, .55); }
button.quiet { border-color: var(--border); color: var(--text-2); }
button.small { padding: 6px 10px; font-size: 13px; }
/* The one button a newcomer needs on the setup tab. Filled, so it can't be mistaken for the small ones near it. */
button.big { padding: 13px 26px; font-size: 16px; background: var(--accent-deep); border-color: var(--accent); color: #fff; }
button.big:hover:not(:disabled) { background: var(--accent); color: #fff; }
.choose { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--hint); }
/* Progress and the log appear once there is something to show. */
.runbox { margin-top: 12px; }
.runbox:has(#log:empty) { display: none; }
#pin { font: 400 22px/1.2 var(--mono); letter-spacing: .22em; max-width: 12ch; }
#short-row summary b { color: var(--text); font-weight: 500; font-family: var(--mono); }
.card.done { border-color: rgba(143, 193, 163, .55); }
.card.done ol { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.card.done li { margin: 6px 0; }
.card.done b { color: var(--text); font-weight: 500; }
#trouble { margin-top: 4px; }
button:disabled { opacity: .4; cursor: wait; }

.tabs { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.tabs button { flex: 1; border: 0; border-radius: 0; color: var(--text-2); font-weight: 400; }
.tabs button.on { background: var(--tint); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.pinrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
#ble-fields .pinrow { grid-template-columns: auto auto; justify-content: start; }

.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-top: 10px; background: var(--bg); }
.card table td:first-child { color: var(--muted); width: 45%; }
.card ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.meta { font-size: 12px; color: var(--muted); margin-top: 8px; }

ol.steps { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 6px; flex-wrap: wrap; }
ol.steps li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); font: 400 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
ol.steps li[data-state=active] { border-color: var(--accent); color: var(--accent-hover); }
ol.steps li[data-state=done] { border-color: var(--ok); color: var(--ok); }
ol.steps li[data-state=fail] { border-color: var(--err); color: var(--err); }
progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--bg); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--bg); }
progress::-webkit-progress-value { background: var(--accent); }
#log { height: 240px; overflow: auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font: 12px/1.55 var(--mono); color: var(--text-2); white-space: pre-wrap; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td { padding: 5px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
#verify tr.ok td, #verify tr.err td { color: var(--text); }
#verify tr.ok td:first-child { color: var(--ok); }
#verify tr.err td:first-child { color: var(--err); }

hr.fade { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent); margin: 22px 0 14px; }
/* Share row: two buttons, one mail link styled as a button, plain text links to four sites. */
section.share { margin: 0 0 18px; }
section.share p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
section.share .buttons { align-items: center; }
a.btn { display: inline-block; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--accent); color: var(--text); font: 500 14px var(--font); }
a.btn:hover { background: rgba(145, 132, 217, .12); color: var(--accent-hover); }
#share-msg { font-size: 13px; color: var(--ok); overflow-wrap: anywhere; }
section.share p.share-more { margin-top: 10px; font-size: 13px; color: var(--hint); }
footer.site { color: var(--muted); font-size: 12px; padding-bottom: 28px; }
footer.site p { margin: 4px 0; max-width: 100ch; }
footer.site code { font-family: var(--mono); color: var(--text-2); font-size: 11.5px; }
code.hash { word-break: break-all; }
footer.site .mark { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
footer.site .mark img { display: block; height: 44px; width: auto; }

.checklist { margin: 4px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.checklist li { margin: 8px 0; }
.checklist b { color: var(--text); font-weight: 500; }
.check { font-size: 13px; padding: 7px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.check.good { border-color: rgba(143,193,163,.45); }
.check.bad { border-color: rgba(224,143,143,.6); color: var(--text); }
.check .ok, .check .err { font-weight: 500; }

p.privacy-teaser { margin: 0 0 14px; font-size: 13px; color: var(--hint); }
p.privacy-teaser b { color: var(--text-2); font-weight: 500; }
#privacy h2 .n { color: var(--accent); font-size: 10px; }
.small-link { font: 400 12px var(--font); text-transform: none; letter-spacing: 0; }
ul.plain { margin: 4px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
ul.plain li { margin: 6px 0; }
ul.plain b { color: var(--text); font-weight: 500; }
ul.plain ul { padding-left: 18px; }
#privacy h3 { font-weight: 500; font-size: 15px; letter-spacing: -.01em; margin: 14px 0 2px; color: var(--text); }
#privacy h3:first-of-type { margin-top: 2px; }
.mqtt { margin-top: 6px; }
.mqtt .tag { font: 400 11px var(--mono); color: var(--muted); }
details.mini summary { margin-top: 8px; font-size: 13px; }
details.mini p { font-size: 13px; color: var(--text-2); margin: 6px 0; }
details.mini b { color: var(--text); font-weight: 500; }
label.inline .hint { display: inline; margin: 0; }

/* One template, six pages: /radio/, /join/, /family/, /check/, /use/ and /about/. Each hides the parts that don't name it. */
body[data-page="radio"] [data-only]:not([data-only~="radio"]), body[data-page="family"] [data-only]:not([data-only~="family"]), body[data-page="check"] [data-only]:not([data-only~="check"]), body[data-page="join"] [data-only]:not([data-only~="join"]), body[data-page="use"] [data-only]:not([data-only~="use"]), body[data-page="about"] [data-only]:not([data-only~="about"]) { display: none; }
/* Join a local mesh: always the community picker, whatever mode the Set up tab was left in. */
body[data-page="join"] #panel-community { display: block !important; }
body[data-page="join"] #panel-standard, body[data-page="join"] #panel-manual, body[data-page="join"] #btn-customize { display: none !important; }
#check-flags ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text); }
#check-flags li { margin: 6px 0; }
#check-out h3 { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 4px; }
#check-out td, #check-out th { text-align: left; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
#check-out th { font-weight: 500; color: var(--muted); font-size: 12px; }
#check-out table.kv td:first-child { color: var(--muted); width: 38%; }
#fam-qr { background: #fff; border-radius: 6px; margin-top: 8px; image-rendering: pixelated; }
/* The three tabs at the top. They replace the old landing page's cards. */
.pagetabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.pagetabs button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start; cursor: pointer; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-2); }
.pagetabs .ico { font-style: normal; margin-right: 8px; }
.pagetabs button b { display: block; font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.pagetabs button span { font-size: 13px; color: var(--muted); }
.pagetabs button:hover:not(:disabled) { background: var(--tint); }
.pagetabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Keyed on the page, not on script state, so the right tab is marked from the first paint. */
body[data-page="radio"] .pagetabs [data-tab="radio"], body[data-page="family"] .pagetabs [data-tab="family"], body[data-page="check"] .pagetabs [data-tab="check"], body[data-page="join"] .pagetabs [data-tab="join"], body[data-page="use"] .pagetabs [data-tab="use"], body[data-page="about"] .pagetabs [data-tab="about"] { background: var(--tint); border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.pagetabs button:disabled { cursor: not-allowed; opacity: .55; }
.tabintro { margin-top: 14px; }
.tabintro p b { color: var(--text); font-weight: 500; }

/* Nothing is plugged in on this tab: the cable checklist and the USB privacy line would only be in the way. */
body[data-page="use"] #prereq, body[data-page="use"] .privacy-teaser, body[data-page="about"] #prereq, body[data-page="about"] .privacy-teaser { display: none; }
/* ===== Use your radio: steps for the real phone, and a pretend phone to practice on (src/practice.js). ===== */
.use-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.use-cols .card p { margin: 0; }
.use-cols .card b { color: var(--text); font-weight: 500; }
.use-cols ol { margin: 8px 0 2px; padding-left: 22px; color: var(--text-2); font-size: 15px; }
.use-cols li { margin: 8px 0; }
.use-cols .card .hint { display: inline; margin: 0 0 0 4px; }
.kinds .card .note { margin-top: 6px; }
.kinds .card p.hint { display: block; margin: 8px 0 0; }
/* The real-phone steps: the same size as body text and well spaced, for a reader following along with a phone in the other hand. */
ol.taps { margin: 10px 0 4px; padding-left: 24px; color: var(--text-2); font-size: 16px; max-width: 60ch; }
ol.taps li { margin: 10px 0; padding-left: 4px; }
ol.taps li::marker { color: var(--accent); font-weight: 500; }
ol.taps b, section[data-only~="use"] .note b, section[data-only~="use"] .hint b { color: var(--text); font-weight: 500; }
section[data-only~="use"] h3 { margin: 18px 0 2px; font-size: 16px; font-weight: 500; color: var(--text); scroll-margin-top: 12px; }
section[data-only~="use"] h3:first-of-type { margin-top: 6px; }
table.statuses { width: 100%; border-collapse: collapse; font-size: 14px; }
table.statuses th, table.statuses td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); }
table.statuses th { font-weight: 500; color: var(--text); width: 34%; }
table.statuses td { color: var(--text-2); }
body[data-page="use"] ul.plain { font-size: 14px; color: var(--text-2); padding-left: 20px; }
body[data-page="use"] ul.plain li { margin: 8px 0; }
body[data-page="use"] ul.plain b { color: var(--text); font-weight: 500; }

.practice { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 12px;
  --ios: #2c55a8; --ibg: #f2f2f7; --irow: #fff; --iline: #d8d8dd; --itext: #111; --igray: #6d6d72; --ibub: #e9e9eb; }
.practice button { all: unset; box-sizing: border-box; cursor: pointer; }
.practice button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.practice .pr-side { position: sticky; top: 12px; }
.practice .lessons { display: grid; gap: 8px; }
.practice .lessons button { padding: 12px 14px; min-height: 48px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 15px; }
.practice .lessons button:hover { background: var(--tint); }
.practice .lessons button[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); box-shadow: inset 3px 0 0 var(--accent); }
.practice .coach { margin-top: 10px; padding: 12px 14px; min-height: 96px; border: 1px solid var(--accent); border-radius: var(--radius-lg); background: var(--bg); }
.practice .coach .n { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.practice .coach p { margin: 4px 0 0; font-size: 18px; line-height: 1.4; color: var(--text); }
.practice .coach.done { border-color: var(--ok); }
.practice .coach.done .n { color: var(--ok); }
.practice .again { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.practice .again button { padding: 10px 14px; min-height: 44px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--text); font-size: 14px; font-weight: 500; }
.practice .again button + button { border-color: var(--border); color: var(--text-2); }
.practice .again button:hover { background: var(--tint); }
.practice .pr-caption { text-align: center; margin-top: 8px; }

.practice .phone { background: var(--ibg); color: var(--itext); border: 6px solid #05060a; border-radius: 30px; overflow: hidden; font: 400 16px/1.3 -apple-system, system-ui, "Helvetica Neue", sans-serif; }
.practice .statusbar { display: flex; justify-content: space-between; padding: 8px 22px 2px; font-size: 13px; font-weight: 600; }
.practice .screen { height: 500px; display: flex; flex-direction: column; }
.practice .nav { display: flex; align-items: center; min-height: 44px; padding: 0 8px; }
.practice .back { display: flex; align-items: center; gap: 2px; min-width: 96px; padding: 10px 6px; color: var(--ios); font-size: 16px; border-radius: 8px; }
.practice .nav .t { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; }
.practice .nav .sp { min-width: 96px; }
.practice .big { padding: 0 16px 8px; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.practice .list { margin: 0 14px; background: var(--irow); border-radius: 12px; overflow: hidden; }
.practice .list > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; border-top: 1px solid var(--iline); background: var(--irow); }
.practice .list > button:first-child { border-top: 0; }
.practice .list > button:active { background: #e5e5ea; }
.practice .grow { flex: 1; min-width: 0; display: block; overflow: hidden; }
.practice .pr-phone, .practice .phone, .practice .screen { min-width: 0; max-width: 100%; }
.practice .h { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.practice .prev { display: block; font-size: 14px; color: var(--igray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.practice .ct { display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 600; }
.practice .pc-chan { background: #4a7bd0; font-size: 16px; }
.practice .pc-otter { background: #993556; }
.practice .pc-bison { background: #0f6e56; }
.practice .pc-maple { background: #854f0b; }
.practice .search { margin: 0 14px 10px; padding: 8px 12px; border-radius: 10px; background: #e3e3e8; color: var(--igray); font-size: 15px; }
.practice .log { flex: 1; overflow-y: auto; padding: 8px 10px; background: var(--irow); }
.practice .m { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.practice .who { margin: 0 0 2px 4px; font-size: 12px; color: var(--igray); }
.practice .bub { display: inline-block; max-width: 100%; padding: 8px 13px; border-radius: 18px; background: var(--ibub); overflow-wrap: anywhere; }
.practice .mine { margin: 10px 0 0 54px; text-align: right; }
.practice .mine .bub { background: var(--ios); color: #fff; text-align: left; }
.practice .st { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin: 3px 4px 0; font-size: 12px; color: #a35c00; }
.practice .st.ok { color: var(--igray); }
.practice .compose { padding: 6px 10px 8px; background: var(--irow); border-top: 1px solid var(--iline); }
.practice .compose .r { display: flex; align-items: center; gap: 8px; }
.practice .compose input { flex: 1; min-width: 0; width: auto; padding: 8px 14px; border: 1px solid #c7c7cc; border-radius: 18px; background: #fff; color: #111; font: inherit; font-size: 16px; box-shadow: none; }
.practice .compose input::placeholder { color: #a0a0a6; }
.practice .send { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ios); color: #fff; }
.practice .tb { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 6px 14px; border-radius: 18px; background: #f2f2f4; color: #3c3c50; font-size: 15px; }
.practice .tb .by { margin-left: auto; font-size: 12px; text-align: right; }
.practice .tb .bar { display: block; width: 60px; height: 4px; margin-top: 2px; border-radius: 2px; background: #d9d9de; }
.practice .tb .bar span { display: block; width: 0; height: 4px; border-radius: 2px; background: var(--ios); }
.practice .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 0 12px; border-top: 1px solid var(--iline); background: #f9f9f9; color: #8e8e93; font-size: 11px; text-align: center; }
.practice .tabbar svg { display: block; margin: 0 auto 2px; }
.practice .tabbar button { display: block; width: 100%; text-align: center; }
/* Name a radio: the touch-and-hold menu and the Display Name box, drawn over the Nodes screen. */
.practice .screen { position: relative; }
.practice .list.nodes > button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.practice .shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.practice .menu { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); width: 236px; max-width: calc(100% - 32px); background: #fff; border-radius: 14px; overflow: hidden; }
.practice .mi { display: block; box-sizing: border-box; width: 100%; padding: 12px 16px; border-top: 1px solid var(--iline); color: #111; font-size: 16px; }
.practice .mi:first-child { border-top: 0; }
.practice .mi.off { color: #8e8e93; }
.practice .alert { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); width: 268px; max-width: calc(100% - 32px); padding: 16px 16px 0; background: #f4f4f6; border-radius: 14px; text-align: center; }
.practice .al-t { font-size: 17px; font-weight: 600; }
.practice .al-m { margin: 4px 0 12px; font-size: 13px; color: #3c3c43; }
.practice .alert input { width: 100%; padding: 8px 10px; border: 1px solid #c7c7cc; border-radius: 8px; background: #fff; color: #111; font: inherit; font-size: 16px; box-shadow: none; }
.practice .alert input::placeholder { color: #a0a0a6; }
.practice .alert input:focus, .practice .compose input:focus { border-color: var(--ios); box-shadow: none; }
.practice .al-b { display: grid; grid-template-columns: 1fr 1fr; margin: 14px -16px 0; border-top: 1px solid var(--iline); }
.practice .al-b button { padding: 12px 0; text-align: center; color: var(--ios); font-size: 17px; }
.practice .al-b button + button { border-left: 1px solid var(--iline); font-weight: 600; }
.practice .alert input.target { outline-offset: 2px; }
.practice .tabbar .on { color: var(--ios); }
.practice svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.practice svg.sm { width: 16px; height: 16px; }
.practice svg.ios { color: var(--ios); }
.practice .chev { color: #c4c4c7; }
.practice .lock-g { color: #2fa84f; }
.practice .lock-y { color: #e0a800; }
.practice .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* The next thing to tap. Orange, because nothing else on the pretend phone is. */
.practice .target { outline: 3px solid #ff9f0a; outline-offset: -3px; animation: pr-pulse 1.2s ease-in-out infinite; }
.practice .send.target, .practice .compose input.target { outline-offset: 2px; }
@keyframes pr-pulse { 50% { outline-color: rgba(255, 159, 10, .25); } }
@media (prefers-reduced-motion: reduce) { .practice .target { animation: none; } }
/* On a phone the six choices are a compact 2x3 grid on every tab, so the layout never jumps when you switch tabs, and the content starts sooner. */
@media (max-width: 640px) {
  .pagetabs { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
  .pagetabs button { padding: 8px 10px; min-height: 44px; }
  .pagetabs button { justify-content: center; }
  /* The label wraps beside its emoji, not under it. */
  .pagetabs button b { display: flex; align-items: flex-start; font-size: 14px; line-height: 1.25; margin: 0; }
  .pagetabs button span { display: none; }
  header.site > p { display: none; }
  .kinds .card p.hint { display: none; }
  /* A heading and its aside stack on a phone; side by side they both wrap into ragged columns. */
  section[data-only~="use"] h2 { flex-direction: column; gap: 2px; }
  .use-cols .card .hint { display: block; margin: 2px 0 0; }
  .kinds { gap: 8px; }
}
@media (max-width: 760px) {
  .use-cols { grid-template-columns: 1fr; }
  /* minmax(0, ...): a plain 1fr track grows to fit its widest child, and a one-line message preview is very wide. */
  .practice { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* On a phone the step and the pretend phone fit on one screen together: the drawing shrinks to the space there is
     (svh: the height with Safari's bars showing). practice.js scrolls the step to the top after each tap. The step is
     not sticky: on a real iPhone a sticky step slid over the pretend phone's top bar and hid its back button. */
  .practice .pr-side { display: contents; }
  .practice .lessons { grid-template-columns: 1fr 1fr; }
  .practice .lessons button { padding: 10px; min-height: 44px; font-size: 14px; }
  .practice .lessons button:nth-child(3) { grid-column: 1 / -1; }
  .practice .coach { margin-top: 0; min-height: 84px; scroll-margin-top: 8px; }
  .practice .screen { height: 500px; height: clamp(330px, calc(100svh - 310px), 500px); }
  .practice .pr-phone { max-width: 360px; width: 100%; margin: 0 auto; }
  table.statuses th { width: 42%; }
}

/* ===== What is Meshtastic? (about tab): drawings, the radio list and the flyers. ===== */
.scene { display: block; width: 100%; height: auto; margin: 4px 0 12px; border-radius: 12px; }
.examples .scene { margin: 0 0 10px; border-radius: 8px; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.examples figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 8px 8px 12px; }
.examples figcaption { padding: 0 4px; }
.examples figcaption { font-size: 13px; color: var(--text-2); }
.examples figcaption b, .is b, .isnt b { color: var(--text); font-weight: 500; }
ul.is li::marker { color: var(--ok); }
ul.isnt li::marker { color: var(--err); }
table.radios th span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
table.radios td { color: var(--text-2); }
table.radios td b { color: var(--text); font-weight: 500; }
.flyers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.flyers a { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: var(--bg); color: var(--text-2); font-size: 13px; }
.flyers a:hover { border-color: var(--accent); color: var(--text); }
.flyers img { display: block; width: 100%; height: auto; border-radius: 4px; margin-bottom: 8px; }
.flyers b { color: var(--accent); font-weight: 500; margin-left: 4px; }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } section[data-only~="about"] h2 { flex-direction: column; gap: 2px; } }
@media (max-width: 480px) { .flyers { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  table.radios th, table.radios td { display: block; width: auto; }
  table.radios th { border-bottom: 0; padding-bottom: 2px; }
}
