/* Asistente de Embarque · identidad Copa Airlines (azul #0032A0, blanco, botones píldora) */
:root {
  --blue: #0032A0; --blue-2: #0A4BD0; --deep: #001B5E; --sky: #0E68FF; --cyan: #45E0EA;
  --bg: #EEF2F9; --card: #fff; --soft: #F3F6FC; --line: #D8E0EE;
  --text: #0B1B3F; --muted: #56678A;
  --ok: #0B9467; --ok-soft: #E3F6EE; --warn: #B96A00; --warn-soft: #FFF3DC; --danger: #CF2F1B;
  --shadow: 0 12px 32px rgba(0, 30, 108, .10), 0 2px 6px rgba(0, 30, 108, .06);
  --arcs: repeating-radial-gradient(circle at 118% 170%, transparent 0 54px, rgba(255, 255, 255, .06) 54px 56px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif; padding-bottom: 170px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--blue); }
.wrap { max-width: 580px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- encabezado ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--blue); color: #fff; padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { height: 21px; width: auto; flex: none; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 12px; }
.app-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-station { font-size: 12px; color: #C9D8FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; flex: none; }
.pill-btn { height: 34px; padding: 0 14px; border-radius: 40px; border: 0; background: #fff; color: var(--blue); font-weight: 700; font-size: 13px; display: none; flex: none; }
.pill-btn.on { display: block; }
.hero { height: 96px; margin-bottom: -78px; background: var(--arcs), linear-gradient(180deg, var(--blue), #00288A); border-radius: 0 0 26px 26px; }

/* ---------- tarjeta de embarque ---------- */
.pass { position: relative; background: var(--card); border-radius: 22px; padding: 16px 18px 16px; box-shadow: var(--shadow); }
.pass-top { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.pass-langs { color: var(--blue); background: #E7EEFF; border-radius: 20px; padding: 3px 9px; letter-spacing: .1em; }
.route { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ap { min-width: 0; }
.ap .code { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: .01em; color: var(--blue); }
.ap .city { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap.end { text-align: right; }
.path { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--sky); margin-bottom: 18px; min-width: 40px; }
.path i { flex: 1; border-top: 2px dashed #B9C8E6; }
.pass.div .end .code, .pass.div .path { color: var(--warn); }
.tear { position: relative; margin: 14px -18px 12px; border-top: 2px dashed var(--line); }
.tear::before, .tear::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.tear::before { left: -10px; } .tear::after { right: -10px; }
.meta { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.meta span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meta b { display: block; font-size: 21px; font-weight: 800; margin-top: 1px; font-variant-numeric: tabular-nums; }
.pass.solo .route, .pass.solo .tear { display: none; }
.pass.solo .meta { margin-top: 12px; }
.pass.solo .meta b { font-size: 30px; color: var(--blue); }

/* ---------- selectores ---------- */
.card { background: var(--card); border-radius: 20px; padding: 16px; margin-top: 14px; box-shadow: 0 1px 0 rgba(0, 30, 108, .04); border: 1px solid var(--line); }
.lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.row + .row { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 40px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s, color .15s; }
.chip.sel { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.sel.div { background: var(--warn); border-color: var(--warn); }
.divnote { margin: 8px 2px 0; font-size: 13px; color: var(--warn); font-weight: 600; }

.ready { display: flex; align-items: center; gap: 8px; margin: 14px 6px 0; font-size: 13.5px; color: var(--muted); }
.install { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 16px; border-radius: 18px; background: #E3EBFF; color: var(--blue); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.install span { flex: 1; }
.install .btn { min-height: 40px; padding: 0 16px; font-size: 14px; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); }
.dot.busy { background: var(--sky); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- pestañas y lista ---------- */
.tabs { display: flex; gap: 4px; margin-top: 22px; padding: 4px; background: #E1E8F5; border-radius: 40px; }
.tabs:empty { display: none; }
.tab { flex: 1; height: 42px; border: 0; border-radius: 40px; background: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.tab.sel { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(0, 30, 108, .12); }
.tab small { font-weight: 700; font-size: 12px; opacity: .7; margin-left: 4px; }
.list-hint { margin: 14px 6px 4px; font-size: 13.5px; color: var(--muted); }

.ann { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; margin-top: 10px; transition: border-color .15s, box-shadow .15s; }
.ann + .ann::before { content: ""; position: absolute; left: 38px; top: -12px; height: 10px; width: 2px; background: #C5D1E8; border-radius: 2px; }
.ann-main { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: none; border: 0; border-radius: 20px; padding: 14px 14px 14px 16px; min-height: 76px; }
.ann-main:active { transform: scale(.99); }
.tile { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(150deg, var(--blue-2), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; font-variant-numeric: tabular-nums; box-shadow: 0 4px 10px rgba(0, 50, 160, .28); }
.ann .t { flex: 1; min-width: 0; }
.when { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--blue); background: #E7EEFF; border-radius: 20px; padding: 2px 9px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.ann h3 { margin: 0; font-size: 16.5px; line-height: 1.25; font-weight: 700; }
.ann h3 em { font-style: normal; color: var(--blue); }
.ann .note { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.ann .state { margin: 5px 0 0; font-size: 12.5px; font-weight: 700; }
.ann .state.done { color: var(--ok); }
.ann .state.dev { color: var(--warn); }
.play { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px rgba(0, 50, 160, .3); }
.ann.done .tile { background: var(--ok); box-shadow: none; }
.ann.playing { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(14, 104, 255, .16); }
.ann.playing .play { background: var(--deep); }
.opt { display: flex; align-items: center; gap: 10px; margin: 0 16px; padding: 11px 0 13px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 40px; height: 24px; border-radius: 20px; background: #C5D1E8; position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.opt input:checked + .sw { background: var(--blue); }
.opt input:checked + .sw::after { transform: translateX(16px); }
.opt input:focus-visible + .sw { outline: 3px solid var(--sky); outline-offset: 2px; }
.empty { margin: 16px 6px; color: var(--muted); font-size: 14.5px; }

.foot { margin: 26px 6px 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.foot button { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font-size: inherit; }

/* ---------- reproductor ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--arcs), linear-gradient(160deg, #0038B4, var(--deep)); color: #fff; border-radius: 24px 24px 0 0; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .24s ease; }
.player.on { transform: none; box-shadow: 0 -14px 40px rgba(0, 20, 80, .35); }
.player .wrap { display: flex; gap: 14px; align-items: flex-start; }
.player .txt { flex: 1; min-width: 0; }
.player .ttl { font-weight: 700; font-size: 15.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.player .src { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.player .src.dev { color: #FFC857; }
.player .say { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: #D5E0FF; max-height: 7.6em; overflow: auto; }
.player .say p { margin: 0 0 6px; }
.player .say b { color: var(--cyan); font-weight: 800; font-size: 11px; letter-spacing: .1em; margin-right: 6px; }
.bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--cyan); border-radius: 3px; }
.stop { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.eq { display: inline-flex; gap: 2.5px; align-items: flex-end; height: 15px; color: var(--cyan); }
.eq b { width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: -.3s; } .eq b:nth-child(3) { animation-delay: -.6s; } .eq b:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- ingreso ---------- */
.login { min-height: 100dvh; margin-bottom: -170px; display: flex; flex-direction: column; background: var(--arcs), linear-gradient(165deg, #0A4BD0 0%, var(--blue) 42%, var(--deep) 100%); color: #fff; padding: calc(28px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); }
.login-in { width: 100%; max-width: 420px; margin: auto; }
.login h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.02em; margin: 26px 0 10px; font-weight: 800; }
.login-lead { margin: 0 0 26px; font-size: 16.5px; color: #D5E0FF; max-width: 30ch; }
.login-logo { height: 34px; width: auto; display: block; }
.login-card { background: #fff; color: var(--text); border-radius: 24px; padding: 20px; box-shadow: 0 24px 60px rgba(0, 10, 50, .45); }
.login-card label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.login-card input, .in { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); padding: 0 14px; font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.login-card input { text-transform: uppercase; font-size: 19px; text-align: center; letter-spacing: .08em; }
.login-card input::placeholder, .in::placeholder { color: #A9B6CF; font-weight: 600; }
.login-card input:focus, .in:focus, textarea.in:focus, select.in:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(14, 104, 255, .16); background: #fff; }
.login-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.login-help { margin: 22px 0 0; font-size: 14.5px; color: #D5E0FF; text-align: center; line-height: 1.6; }
.login-help a { color: #fff; font-weight: 700; }
.login-sign { margin: 28px 0 0; font-size: 12px; color: #A9BDF0; text-align: center; }
.login-sign a { color: inherit; }

/* ---------- botones, campos, diálogos ---------- */
.btn { min-height: 46px; padding: 0 20px; border-radius: 40px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; }
.btn.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.big { width: 100%; min-height: 54px; font-size: 17px; margin-top: 4px; }
.btn.ghost { border-color: transparent; background: none; color: var(--blue); padding: 0 10px; }
.btn.danger { color: var(--danger); }
.btn.danger.sure { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.err { min-height: 18px; margin: 8px 2px; font-size: 13px; font-weight: 600; color: var(--danger); }
.in { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 16px; height: 48px; }
.in.code { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
textarea.in { height: auto; min-height: 150px; field-sizing: content; padding: 12px 14px; line-height: 1.5; resize: vertical; font-weight: 500; }
dialog { width: min(480px, calc(100vw - 24px)); border: 0; border-radius: 24px; background: #fff; color: var(--text); padding: 22px; box-shadow: 0 30px 80px rgba(0, 10, 50, .45); }
dialog.wide { width: min(640px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); }
dialog::backdrop { background: rgba(0, 20, 70, .55); backdrop-filter: blur(2px); }
dialog h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
dialog .sub { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.steps { margin: 0 0 6px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60; background: #0B1B3F; color: #fff; font-size: 14.5px; font-weight: 600; padding: 12px 18px; border-radius: 40px; max-width: calc(100vw - 32px); text-align: center; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); }

/* ---------- administración ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.sheet-top { position: sticky; top: 0; z-index: 2; background: var(--blue); color: #fff; padding-top: env(safe-area-inset-top); }
.sheet-top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.sheet-top h2 { flex: 1; margin: 0; font-size: 17px; line-height: 1.2; }
.sheet-top h2 small { display: block; font-size: 12px; font-weight: 500; color: #C9D8FF; }
.sec { margin-top: 22px; }
.sec > h3 { margin: 0 6px 2px; font-size: 19px; letter-spacing: -.01em; }
.sec > p { margin: 0 6px; font-size: 13.5px; color: var(--muted); }
.sec .card { margin-top: 10px; }
details.sec { margin-top: 10px; }
details.sec > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; user-select: none; -webkit-user-select: none; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec .st { flex: 1; min-width: 0; }
details.sec .st b { display: block; font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em; }
details.sec .st small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #E7EEFF; position: relative; transition: transform .2s; }
.chev::after { content: ""; position: absolute; left: 12px; top: 10px; width: 8px; height: 8px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); }
details.sec[open] > summary { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
details.sec[open] .chev { transform: rotate(180deg); }
details.sec > p { margin: 10px 6px 0; }
details.sec[open] { margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 4px 0 14px; border-radius: 40px; background: #E7EEFF; color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.tag button { width: 32px; height: 32px; border: 0; background: none; color: var(--blue); font-size: 19px; line-height: 1; border-radius: 50%; }
.tag.lone { padding-right: 14px; }
.add { display: flex; gap: 8px; }
.add .in { flex: 1; min-width: 0; }
.add3 { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 8px; }
.add3 .btn { grid-column: 1 / -1; }
.block + .block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); min-height: 58px; }
.rows li:first-child { border-top: 0; }
.rows .tile { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; box-shadow: none; }
.rows .tile.own { background: linear-gradient(150deg, #19B6C4, #0B8794); }
.rows .rt { flex: 1; min-width: 0; }
.rows .rt b { display: block; font-size: 15px; line-height: 1.25; }
.rows .rt > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows li[data-voice] .rt > span { white-space: normal; }
.mini { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; color: var(--blue); font-weight: 800; }
.mini:disabled { opacity: .3; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: #E7EEFF; border-radius: 20px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.teamcode { font-size: 24px; font-weight: 800; letter-spacing: .08em; color: var(--blue); font-variant-numeric: tabular-nums; margin: 2px 0 12px; word-break: break-all; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.meter { height: 10px; border-radius: 6px; background: #E1E8F5; overflow: hidden; margin: 10px 0 8px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); border-radius: 6px; }
.small { font-size: 13px; color: var(--muted); margin: 0; }

.field { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 76px 1fr 1.4fr; gap: 10px; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.var { height: 34px; padding: 0 12px; border-radius: 40px; border: 1.5px dashed #9CB4EE; background: #F1F5FF; color: var(--blue); font-weight: 700; font-size: 13.5px; }
.optbox { margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.listen { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.listen audio { flex: 1; min-width: 200px; height: 40px; }

/* ---------- pantalla ancha ---------- */
@media (min-width: 960px) {
  body { padding-bottom: 210px; }
  .wrap { max-width: 1180px; padding: 0 36px; }
  .top .wrap, .sheet-top .wrap { height: 72px; }
  .brand { height: 26px; }
  .app-name { font-size: 15.5px; } .app-station { font-size: 13px; }
  .hero { height: 150px; margin-bottom: -112px; border-radius: 0 0 40px 40px; }
  main.wrap { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: start; }
  .side { position: sticky; top: 96px; }
  .pass { padding: 22px 24px 20px; border-radius: 26px; }
  .tear { margin: 18px -24px 16px; }
  .ap .code { font-size: 50px; }
  .meta b { font-size: 24px; }
  .card { padding: 22px; border-radius: 24px; }
  .chip:hover:not(.sel) { border-color: var(--blue); }
  .main { background: var(--card); border-radius: 26px; padding: 22px 24px 26px; box-shadow: var(--shadow); }
  .tabs { margin-top: 0; max-width: 460px; }
  .ann { margin-top: 12px; }
  .ann:hover { border-color: #9CB4EE; }
  .ann-main { padding: 18px 20px; min-height: 88px; gap: 18px; }
  .ann + .ann::before { left: 44px; top: -14px; height: 12px; }
  .tile { width: 50px; height: 50px; font-size: 19px; }
  .ann h3 { font-size: 18.5px; } .ann .note { font-size: 14px; }
  .play { width: 52px; height: 52px; }
  .opt { margin: 0 20px; }
  .player { padding: 22px 0; }
  .player .wrap { gap: 28px; align-items: center; }
  .player .ttl { font-size: 17px; }
  .player .say { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-height: none; font-size: 14.5px; }
  .stop { width: 66px; height: 66px; }
  .sheet .wrap { max-width: 760px; }
  .login h1 { font-size: 42px; }
}
@media (max-width: 380px) {
  .brand { height: 18px; }
  .app-name { font-size: 12.5px; }
  .ap .code { font-size: 34px; }
  .grid3 { grid-template-columns: 64px 1fr 1.5fr; }
  .add3 { grid-template-columns: 76px 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .eq b, .dot.busy { animation: none; }
  .player, .ann, .chip, .toast, .sw, .sw::after { transition: none; }
}

/* campos dentro de su etiqueta */
.in { color: var(--text); }
.lbl > .in { display: block; margin-top: 6px; }
.field > .small { margin-top: 6px; }

.in.code::placeholder { text-transform: none; letter-spacing: 0; }
