/* ============ Talki Walki Live — habillage radio ============ */
@font-face { font-family: 'DSEG7'; src: url('fonts/DSEG7Classic-Bold.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'DSEG14'; src: url('fonts/DSEG14Classic-Bold.woff2') format('woff2'); font-display: block; }

:root {
  --bg: #0d0f10;
  --shell: #23272a;
  --shell-hi: #353a3e;
  --shell-lo: #141618;
  --rubber: #1a1c1e;
  --accent: #ff6a1a;
  --accent-lo: #b5420a;
  --lcd-on: #b9d77a;
  --lcd-on2: #a6c565;
  --lcd-ink: #1d2a10;
  --lcd-ghost: rgba(29, 42, 16, .09);
  --lcd-off: #59614a;
  --key: #2c3134;
  --key-hi: #41474b;
  --text: #e9e6df;
  --muted: #9aa0a3;
  --sheet: #1b1e20;
  --line: #33393d;
  --ok: #3ddc84;
  --rx: #3ddc84;
  --tx: #ff3b30;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden; touch-action: manipulation;
  background: radial-gradient(ellipse at 50% 35%, #1f2326 0%, var(--bg) 70%) fixed, var(--bg);
  -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { -webkit-user-select: text; user-select: text; }

.stage {
  height: 100%; display: grid; place-items: center;
  padding: calc(var(--safe-t) + 8px) 12px calc(var(--safe-b) + 8px);
}

/* ---------------- corps de la radio ---------------- */
.radio {
  --w: min(390px, 94vw, calc((100dvh - 30px) * .5));
  width: var(--w);
  position: relative;
  font-size: calc(var(--w) / 390 * 16px);
  display: flex; flex-direction: column; align-items: center;
}

.crown {
  width: 78%; height: 3.4em; position: relative;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: .3em .2em 0 0;
}
.antenna {
  position: absolute; left: 4%; bottom: 0; width: 2.4em; height: 8em;
  border-radius: 1.2em 1.2em .3em .3em;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 2px, transparent 2px 9px),
    linear-gradient(90deg, #0f1112, #2a2e31 40%, #17191b);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.5);
  transform-origin: bottom center;
}
.antenna span { position: absolute; top: .5em; left: 50%; width: .5em; height: .5em; margin-left: -.25em; border-radius: 50%; background: #2a2e31; }

/* voyant TX/RX intégré à la façade */
.led-wrap { margin-left: auto; display: inline-flex; align-items: center; gap: .45em; }
.led-wrap small { font-size: .58em; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.led {
  display: block; width: .85em; height: .85em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555, #222); box-shadow: inset 0 0 0 2px #111, 0 1px 0 rgba(255,255,255,.06);
  transition: background .1s, box-shadow .1s;
}
.led.on-green { background: radial-gradient(circle at 35% 35%, #b7ffd2, var(--rx)); box-shadow: 0 0 .7em var(--rx), inset 0 0 0 2px #0b3; }
.led.on-red   { background: radial-gradient(circle at 35% 35%, #ffc2bd, var(--tx)); box-shadow: 0 0 .9em var(--tx), inset 0 0 0 2px #a11; }
.led.idle     { background: radial-gradient(circle at 35% 35%, #ffd9a8, #9a5a14); box-shadow: 0 0 .3em rgba(255,140,40,.4); }

/* boutons de fenêtre (Windows, fenêtre sans cadre) */
.win-ctrl { display: flex; gap: .45em; }
.win-ctrl button {
  width: 1.9em; height: 1.9em; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; font-size: 1em; font-weight: 700; line-height: 1;
  color: #cfcac0; background: linear-gradient(180deg, #353a3e, #1d2023);
  box-shadow: 0 .2em .4em rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
}
.win-ctrl button:hover { color: #fff; }
.win-ctrl #winClose:hover { background: linear-gradient(180deg, #e0463b, #a52a21); }

/* signature gravée */
.signature {
  text-align: center; margin-top: .1em;
  font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", "Dancing Script", cursive;
  font-style: italic; font-size: .82em; letter-spacing: .02em;
  color: #8d8a83; text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.05);
  user-select: none;
}

.shell {
  width: 100%; position: relative;
  border-radius: 2.6em 2.6em 3.2em 3.2em;
  padding: .7em;
  background:
    linear-gradient(160deg, var(--shell-hi) 0%, var(--shell) 30%, var(--shell-lo) 100%);
  box-shadow:
    0 2.5em 4em rgba(0,0,0,.65),
    0 .4em 0 #0b0c0d,
    inset 0 2px 1px rgba(255,255,255,.12),
    inset 0 -3px 6px rgba(0,0,0,.6);
}
/* texture caoutchouc sur les flancs */
.shell::before, .shell::after {
  content: ''; position: absolute; top: 14%; bottom: 14%; width: .7em; border-radius: .5em;
  background: repeating-linear-gradient(0deg, #101213 0 3px, #24282b 3px 6px);
}
.shell::before { left: -.25em; } .shell::after { right: -.25em; }

.side-ptt {
  position: absolute; left: -1.05em; top: 27%; width: 1.1em; height: 6.5em; z-index: 2;
  border: 0; border-radius: .6em 0 0 .6em;
  background: linear-gradient(90deg, #111, #2e3236);
  box-shadow: -3px 4px 8px rgba(0,0,0,.6), inset 2px 0 1px rgba(255,255,255,.1);
  touch-action: none;
}
.side-ptt::after { content: 'PTT'; position: absolute; left: .05em; top: 50%; transform: translateY(-50%) rotate(-90deg); font-size: .5em; letter-spacing: .15em; color: #777; font-weight: 800; }
.side-ptt.pressed { transform: translateX(.3em); background: linear-gradient(90deg, #0a0a0a, #222); }
.side-grip { position: absolute; right: -.9em; top: 30%; width: .9em; height: 3.2em; border-radius: 0 .4em .4em 0; background: linear-gradient(90deg, #2a2e31, #111); }

.faceplate {
  border-radius: 2.1em 2.1em 2.7em 2.7em;
  background:
    radial-gradient(130% 60% at 50% 0%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, #2a2f32, #1d2023);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 .3em .6em rgba(0,0,0,.45);
  padding: 1em 1.15em 1.3em;
  display: flex; flex-direction: column; gap: .85em;
}

.brand { display: flex; align-items: baseline; gap: .4em; padding: 0 .3em; }
.brand b { font-weight: 900; letter-spacing: .12em; font-size: .95em; color: #d9d5cc; }
.brand em { font-style: normal; font-weight: 900; font-size: .72em; letter-spacing: .1em; color: #111; background: var(--accent); padding: .05em .4em; border-radius: .25em; }


.grille {
  height: 4.2em; border-radius: 1em; padding: .45em;
  background: linear-gradient(180deg, #15181a, #1d2124);
  box-shadow: inset 0 .25em .5em rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.05);
}
.grille-holes {
  height: 100%; border-radius: .7em;
  background-image: radial-gradient(circle, #050606 38%, transparent 42%);
  background-size: .62em .62em;
  background-position: center;
  opacity: .95;
}

/* ---------------- écran LCD ---------------- */
.lcd {
  border-radius: .9em; padding: .45em;
  background: linear-gradient(180deg, #0c0e0f, #222629);
  box-shadow: inset 0 .2em .4em rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06);
}
.lcd-glass {
  position: relative; overflow: hidden;
  border-radius: .55em; padding: .5em .7em .55em;
  color: var(--lcd-ink);
  background: linear-gradient(170deg, var(--lcd-on) 0%, var(--lcd-on2) 100%);
  box-shadow: inset 0 0 1.4em rgba(40, 70, 0, .35), inset 0 0 0 1px rgba(0,0,0,.25);
  transition: background .35s, filter .35s;
}
.lcd-glass::after { /* reflet */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, transparent 35%, transparent 70%, rgba(255,255,255,.06));
}
.radio.off .lcd-glass { background: linear-gradient(170deg, #4e5544, #444a3b); box-shadow: inset 0 0 1.4em rgba(0,0,0,.4); }
.radio.off .lcd-glass > * { opacity: 0; }
.radio.tx .lcd-glass { background: linear-gradient(170deg, #ffb27a, #f59a59); }
.radio.rx .lcd-glass { background: linear-gradient(170deg, #c9e98a, #b2d46c); }

.lcd-row { display: flex; align-items: center; gap: .5em; position: relative; z-index: 1; }
.lcd-top { font-size: .62em; font-weight: 900; letter-spacing: .08em; height: 1.4em; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 1.1em; }
.sig i { width: .32em; background: var(--lcd-ghost); border-radius: 1px; }
.sig i:nth-child(1) { height: 30%; } .sig i:nth-child(2) { height: 55%; } .sig i:nth-child(3) { height: 78%; } .sig i:nth-child(4) { height: 100%; }
.sig.l1 i:nth-child(-n+1), .sig.l2 i:nth-child(-n+2), .sig.l3 i:nth-child(-n+3), .sig.l4 i { background: var(--lcd-ink); }
.flag { padding: 0 .3em; border-radius: .2em; color: var(--lcd-ghost); border: 1px solid var(--lcd-ghost); }
.flag.on { color: var(--lcd-on); background: var(--lcd-ink); border-color: var(--lcd-ink); }
.batt { margin-left: auto; width: 2em; height: .95em; border: 2px solid var(--lcd-ink); border-radius: 2px; position: relative; padding: 1px; }
.batt::after { content: ''; position: absolute; right: -4px; top: 25%; height: 50%; width: 2px; background: var(--lcd-ink); }
.batt i { display: block; height: 100%; width: 85%; background: var(--lcd-ink); }

.lcd-main { margin-top: .2em; gap: .3em; align-items: flex-end; }
.lcd-ch-label { font-size: .6em; font-weight: 900; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .1em; margin-bottom: .45em; }
.seg7, .seg14 { position: relative; white-space: pre; line-height: 1; }
.seg7 .ghost, .seg14 .ghost { color: var(--lcd-ghost); }
.seg7 .val, .seg14 .val { position: absolute; right: 0; top: 0; }
.seg14 .val { left: 0; right: auto; }
.seg7 { font-family: 'DSEG7', monospace; }
.seg14 { font-family: 'DSEG14', monospace; }
.seg7.big { font-size: 3.1em; }
.name { font-size: 1.02em; margin-left: auto; margin-bottom: .35em; max-width: 64%; overflow: hidden; }
.lcd-status { margin-top: .4em; }
.status { font-size: .92em; }
.lcd-bottom { margin-top: .45em; font-size: .62em; font-weight: 900; letter-spacing: .06em; }
.users { display: inline-flex; align-items: center; gap: .3em; }
.users svg { width: 1.1em; height: 1.1em; fill: var(--lcd-ink); }
.users b { font-family: 'DSEG7', monospace; font-size: 1.15em; }
.code { margin: 0 auto; font-family: 'DSEG14', monospace; font-size: 1.1em; letter-spacing: .05em; }
.vol { display: inline-flex; align-items: center; gap: .35em; }
.volbars { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 1em; }
.volbars i { width: .26em; background: var(--lcd-ghost); border-radius: 1px; }
.volbars i.on { background: var(--lcd-ink); }
.radio.blink .status .val { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- clavier ---------------- */
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; }
.key {
  height: 3.1em; border: 0; border-radius: .7em; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em;
  background: linear-gradient(180deg, var(--key-hi), var(--key));
  box-shadow: 0 .25em 0 #101213, 0 .35em .6em rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
  color: #d8d4cb; font-weight: 800; font-size: .62em; letter-spacing: .08em;
  transition: transform .06s, box-shadow .06s, opacity .2s;
}
.key b { font-size: 1.7em; line-height: 1; color: #fff; }
.key svg { width: 1.9em; height: 1.9em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.key--wide { grid-column: span 2; flex-direction: row; gap: .5em; height: 2.6em; font-size: .7em; }
.key--wide svg { width: 1.6em; height: 1.6em; }
.key--call { color: #ffd166; }
.key--call .charge { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #ffd166; opacity: .8; }
.key--call.cooldown { color: #8b8f92; }
.key--call.cooldown .charge { background: #6c7073; }
.key.inert { opacity: .45; }
.key:active, .key.pressed { transform: translateY(.2em); box-shadow: 0 .05em 0 #101213, 0 .1em .3em rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
.key--accent { color: var(--accent); }
.key--power { color: #ff5a4f; }
.radio:not(.off) .key--power { color: var(--ok); }
.key.toggled { color: #111; background: linear-gradient(180deg, #ffd27a, #f0a93a); }
.key:focus-visible, .ptt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- PTT ---------------- */
.ptt {
  position: relative; border: 0; height: 6.4em; border-radius: 1.6em 1.6em 2.2em 2.2em;
  margin-top: .15em;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #ff8a45, var(--accent) 45%, var(--accent-lo));
  box-shadow: 0 .45em 0 #6b2604, 0 .7em 1.3em rgba(0,0,0,.55), inset 0 2px 1px rgba(255,255,255,.35);
  color: #2a0f00; touch-action: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .07s, box-shadow .07s, filter .2s;
}
.ptt-label { font-weight: 900; letter-spacing: .14em; font-size: .95em; line-height: 1.25; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,.3); }
.ptt-hint { font-size: .55em; font-weight: 800; letter-spacing: .2em; opacity: .55; margin-top: .4em; }
.ptt-ring { position: absolute; inset: -.3em; border-radius: inherit; border: 2px solid transparent; pointer-events: none; }
.ptt.pressed { transform: translateY(.38em); box-shadow: 0 .07em 0 #6b2604, 0 .2em .5em rgba(0,0,0,.5), inset 0 3px 8px rgba(0,0,0,.3); }
.ptt.pressed .ptt-ring { border-color: var(--tx); animation: ring 1s ease-out infinite; }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(255,59,48,.6); } to { box-shadow: 0 0 0 1em rgba(255,59,48,0); } }
.radio.off .ptt, .radio.off .side-ptt { filter: saturate(.25) brightness(.65); }
.radio.busy .ptt { filter: saturate(.5) brightness(.85); }

.foot { width: 70%; height: .8em; border-radius: 0 0 2em 2em; background: linear-gradient(180deg, #111, transparent); margin-top: -.2em; }

/* ---------------- feuilles ---------------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index: 10; }
.sheet {
  position: fixed; z-index: 11; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(560px, 100%); max-height: 88dvh; overflow: auto;
  background: var(--sheet); border-radius: 1.2rem 1.2rem 0 0;
  border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -20px 50px rgba(0,0,0,.5);
  padding-bottom: calc(var(--safe-b) + 1rem);
  -webkit-user-select: text; user-select: text;
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } }
@media (min-width: 700px) { .sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 1.2rem; border-bottom: 1px solid var(--line); animation: none; } }
.sheet header { display: flex; align-items: center; padding: 1rem 1.2rem .4rem; position: sticky; top: 0; background: var(--sheet); z-index: 1; }
.sheet h2 { margin: 0; font-size: 1.15rem; letter-spacing: .02em; }
.sheet h3 { margin: 0 0 .6rem; font-size: .95rem; }
.x { margin-left: auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: #2a2f32; font-size: 1.4rem; line-height: 1; }
.sheet-body { padding: .6rem 1.2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--muted); }
.sheet input {
  width: 100%; padding: .75rem .85rem; border-radius: .7rem; border: 1px solid var(--line);
  background: #121416; color: var(--text); font-size: 1rem; text-transform: uppercase;
}
.sheet input:focus { outline: none; border-color: var(--accent); }
.split { display: grid; gap: .8rem; }
@media (min-width: 520px) { .split { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: .55rem; padding: .9rem; border-radius: .9rem; background: #222629; border: 1px solid var(--line); }
.btn { border: 1px solid var(--line); background: #2c3236; padding: .75rem 1rem; border-radius: .7rem; font-weight: 700; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #1a0900; }
.btn--wide { width: 100%; }
.muted { color: var(--muted); font-size: .88rem; margin: 0; }
.list-title { margin-top: .2rem !important; }
.list-title small { color: var(--muted); font-weight: 400; }
.audio-card select {
  width: 100%; padding: .7rem .8rem; border-radius: .7rem; border: 1px solid var(--line);
  background: #121416; color: var(--text); font-size: .95rem;
}
.switch { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--text); cursor: pointer; }
.switch input { width: 1.2rem; height: 1.2rem; margin-top: .1rem; accent-color: var(--accent); flex: none; }
.owner-box { display: flex; flex-direction: column; gap: .7rem; padding: .9rem; border-radius: .9rem; background: #2a2418; border: 1px solid #5c4a1e; }
.members .tag { font-size: .65rem; font-weight: 800; letter-spacing: .08em; padding: .1rem .4rem; border-radius: .3rem; background: var(--accent); color: #1a0900; }
.members button { margin-left: .4rem; border: 0; border-radius: .5rem; padding: .4rem .7rem; font-size: .78rem; font-weight: 800; background: #3a2222; color: #ff8a80; }
.members button.ok { background: #1f3326; color: #7ee2a8; }
.radio.calling .lcd-glass { animation: callflash .25s steps(2) 8; }
@keyframes callflash { 50% { filter: brightness(1.35) saturate(1.4); } }
.goto-row { display: flex; gap: .5rem; }
.goto-row input { flex: 1; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0,0,0,.6); padding: 1rem; }
.dialog { width: min(380px, 100%); background: var(--sheet); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.dialog p { margin: 0 0 1rem; line-height: 1.45; }
.dialog-actions { display: flex; gap: .6rem; justify-content: flex-end; }
.chlist .count { font-size: .78rem; color: var(--muted); }
.chlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.chlist li { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: .7rem; background: #222629; border: 1px solid var(--line); }
.chlist li.current { border-color: var(--accent); }
.chlist .n { font-family: 'DSEG7', monospace; color: var(--accent); width: 2.2rem; }
.chlist .meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chlist .meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chlist .meta span { font-size: .78rem; color: var(--muted); letter-spacing: .08em; }
.chlist button { border: 0; background: #2f3539; border-radius: .5rem; padding: .45rem .7rem; font-size: .8rem; font-weight: 700; }
.chlist button.del { background: transparent; color: #ff6b6b; }
.chlist .empty { color: var(--muted); justify-content: center; }

.share-name { margin: 0; text-align: center; color: var(--muted); letter-spacing: .1em; font-weight: 700; }
.share-code { text-align: center; font-family: 'DSEG14', monospace; font-size: 2.2rem; color: var(--lcd-ink); background: linear-gradient(170deg, var(--lcd-on), var(--lcd-on2)); border-radius: .8rem; padding: .8rem; letter-spacing: .1em; }
.share-link { display: flex; gap: .5rem; }
.share-link input { text-transform: none; font-size: .85rem; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.sn { display: grid; place-items: center; text-align: center; padding: .7rem .2rem; border-radius: .7rem; border: 0; font-size: .78rem; font-weight: 800; text-decoration: none; color: #fff; }
.sn-fb { background: #1877f2; } .sn-ms { background: linear-gradient(135deg, #0a7cff, #a033ff, #ff5280); } .sn-wa { background: #25d366; color: #052e16; }
.sn-tg { background: #229ed9; } .sn-x { background: #000; border: 1px solid #333; }
.sn-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sn-sms { background: #34c759; color: #062b12; } .sn-mail { background: #5b6670; }

.members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.members li { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: .7rem; background: #222629; }
.members .dot { width: .6rem; height: .6rem; border-radius: 50%; background: #666; }
.members .dot.ok { background: var(--ok); } .members .dot.talk { background: var(--tx); box-shadow: 0 0 .5rem var(--tx); }
.members small { margin-left: auto; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 1.2rem); transform: translate(-50%, 2rem);
  background: #f2efe8; color: #111; padding: .7rem 1.1rem; border-radius: 2rem; font-weight: 700; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 20; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.ptt-bind { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.ptt-bind b { color: var(--text); padding: .25rem .6rem; border-radius: .45rem; background: #121416; border: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; }
.ptt-bind b.listening { border-color: var(--accent); color: var(--accent); animation: blink 1s steps(2) infinite; }

/* ---------- Windows : fenêtre sans cadre, seul le talkie est visible ---------- */
html.frameless, html.frameless body { background: transparent !important; overflow: hidden; }
html.frameless .stage { display: block; height: auto; padding: 78px 30px 30px; }
html.frameless .radio { --w: 360px; margin: 0 auto; -webkit-app-region: drag; }
html.frameless .radio button, html.frameless .radio input, html.frameless .radio a { -webkit-app-region: no-drag; }
html.frameless .sheet, html.frameless .sheet-backdrop, html.frameless .dialog-backdrop, html.frameless .toast { -webkit-app-region: no-drag; }
html.frameless .sheet { max-height: calc(100vh - 16px); border-radius: 1.2rem; bottom: 8px; width: calc(100% - 16px); }
html.frameless .sheet-backdrop, html.frameless .dialog-backdrop { border-radius: 2.4rem; }
html.frameless .foot { display: none; }

[hidden] { display: none !important; }

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