/* I&JJ Field App - diseno v2 (tarjetas suaves, esquinas amplias, botones pill).
   Montserrat alojada aqui mismo: la CSP no deja cargar nada de terceros. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #202840;
  --orange: #ff3300;          /* marca: fondos y texto grande */
  --orange-deep: #d42a00;     /* fondo bajo texto blanco chico (contraste AA) */
  --orange-ink: #c22a00;      /* texto naranja sobre claro (contraste AA) */
  --orange-on-navy: #ff7a55;  /* texto naranja chico sobre navy */
  --ink: #0d0925;
  --slate: #5a6470;
  --muted: #5f6874;
  --bg: #f3f4f7;
  --line: #eef0f4;
  --dash: #d4d8df;
  --wash: #fff0eb;
  --ok: #177a40;
  --ok-wash: #eaf5ee;
  --bad: #b42318;
  --bad-wash: #fdecea;
  --white: #ffffff;
  --f: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sh: 0 2px 12px rgba(32, 40, 64, 0.05);
  --sh-navy: 0 16px 34px rgba(32, 40, 64, 0.22);
  --sh-orange: 0 12px 28px rgba(255, 51, 0, 0.28);
  --pad-x: 40px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f); -webkit-font-smoothing: antialiased; }
body[data-view="login"], body[data-view="setpw"] { background: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { flex: none; }
.noscript { padding: 24px; color: #fff; }

.app { max-width: 900px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 28px var(--pad-x) 40px; }
.grow { flex: 1; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.loading { flex: 1; display: grid; place-items: center; color: var(--slate); font-size: 15px; font-weight: 600; }
.error { background: var(--bad-wash); color: var(--bad); border-radius: 18px; padding: 14px 18px; font-size: 14px; font-weight: 700; }
.hint { text-align: center; font-size: 13px; font-weight: 600; color: var(--slate); }
.hint.ok { color: var(--ok); }

/* ---------- idioma */
.lang { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: var(--sh); }
.lang button { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--slate); }
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.lang.dark { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.lang.dark button { color: rgba(255, 255, 255, 0.7); }
.lang.dark button[aria-pressed="true"] { background: var(--white); color: var(--navy); }

/* ---------- avatares */
.av { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 17px; font-weight: 800; flex: none; }
.stack { display: flex; }
.stack .av { width: 36px; height: 36px; font-size: 12px; background: var(--line); color: var(--navy); border: 2px solid var(--white); }
.stack .av + .av { margin-left: -8px; }
.stack .av.me { background: var(--orange-deep); color: var(--white); }
.stack .av.more { background: var(--navy); color: var(--white); font-size: 11px; }

/* ---------- botones pill */
.pill { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 999px; padding: 0 10px 0 32px; font-size: 19px; font-weight: 800; text-align: left; transition: transform 0.12s, filter 0.12s; }
.pill:active:not(:disabled) { transform: scale(0.985); }
.pill .knob { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pill.orange { background: var(--orange); color: var(--white); box-shadow: var(--sh-orange); }
.pill.orange .knob { background: var(--white); color: var(--orange); }
.pill.navy { background: var(--navy); color: var(--white); box-shadow: 0 12px 28px rgba(32, 40, 64, 0.25); }
.pill.navy .knob { background: var(--white); color: var(--navy); }
.pill.white { background: var(--white); color: var(--navy); box-shadow: 0 2px 12px rgba(32, 40, 64, 0.08); }
.pill.white .knob { background: var(--navy); color: var(--white); }
.pill:disabled { opacity: 0.45; box-shadow: none; }
.actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.narrow { width: 100%; max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* ---------- encabezado con volver */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.round { width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--navy); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(32, 40, 64, 0.06); flex: none; }
.bar-title { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.bar-title h1 { font-size: 22px; font-weight: 800; color: var(--ink); }
.bar-title p { font-size: 13px; font-weight: 600; color: var(--slate); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 1. ingreso */
.login-top { position: relative; flex: 0 0 auto; min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 64px var(--pad-x) 48px; }
.login-top .lang { position: absolute; top: 20px; right: var(--pad-x); }
.login-top img { width: 320px; max-width: 70%; height: auto; }
.login-tag { font-size: 13px; font-weight: 800; letter-spacing: 6px; color: var(--orange-on-navy); }
.sheet { flex: 1; background: var(--bg); border-radius: 48px 48px 0 0; padding: 64px var(--pad-x) 48px; display: flex; justify-content: center; }
.sheet-in { width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 22px; }
.sheet-in h1 { font-size: 34px; font-weight: 800; color: var(--ink); }
.sheet-in .sub { font-size: 16px; font-weight: 500; color: var(--slate); margin-top: 6px; }
.field { background: var(--white); border-radius: 24px; min-height: 76px; display: flex; align-items: center; gap: 16px; padding: 0 14px 0 22px; box-shadow: var(--sh); }
.field:focus-within { box-shadow: 0 0 0 2px var(--navy), var(--sh); }
.field .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--line); color: var(--navy); display: grid; place-items: center; flex: none; }
.field label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.field label span { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.field input { width: 100%; border: none; background: none; outline: none; font-size: 18px; font-weight: 600; color: var(--ink); padding: 2px 0; }
.eye { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
/* clave nueva: cabecera mas baja, para que los dos campos y el boton entren sin bajar tanto */
.login-top.compact { min-height: 0; gap: 14px; padding-top: 72px; padding-bottom: 36px; }
.login-top.compact img { width: 220px; }
.pw-hint { margin-top: -12px; padding: 0 22px; font-size: 13px; font-weight: 600; color: var(--slate); }
.sheet-in > .link { align-self: center; }
.link:disabled { opacity: 0.45; }

/* ---------- 2. trabajos */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .logo { height: 46px; width: auto; }
.me { display: flex; align-items: center; gap: 14px; min-width: 0; }
.me-text { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.me-text small { font-size: 13px; font-weight: 500; color: var(--slate); }
.me-text b { font-size: 17px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
button.av:hover { filter: brightness(1.15); }
.menu { align-self: flex-end; margin-top: -12px; background: var(--white); border-radius: 20px; padding: 8px; box-shadow: var(--sh-navy); }
.menu button { min-height: 48px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 800; color: var(--bad); }
.menu button:hover { background: var(--bad-wash); }
.hero { background: var(--navy); color: var(--white); border-radius: 36px; padding: 32px 34px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--sh-navy); }
.hero-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-head .eyebrow { color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 700; }
.badge { font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, 0.14); }
.badge.live { background: var(--orange-deep); }
.hero-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-job { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hero-job h2 { font-size: 40px; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.hero-job .client { font-size: 18px; font-weight: 700; }
.hero-job .addr { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.hero-hours { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.big { font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.hero-hours .cap { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.crewbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 10px 10px 10px 16px; }
.crewbar-who { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; min-width: 0; font-size: 15px; font-weight: 700; }
.crewbar-who > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.crewbar .stack .av { width: 42px; height: 42px; font-size: 13px; background: #e8eaf0; color: var(--navy); border: 3px solid var(--navy); }
.crewbar .stack .av + .av { margin-left: -10px; }
.crewbar .stack .av.me { background: var(--orange-deep); color: var(--white); }
.crewbar .stack .av.more { background: var(--white); color: var(--navy); }
.go { display: flex; align-items: center; gap: 12px; background: var(--white); color: var(--navy); border-radius: 999px; padding: 0 8px 0 22px; min-height: 56px; font-size: 15px; font-weight: 800; white-space: nowrap; flex: none; }
.go .knob { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.list-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.list-head h2 { font-size: 22px; font-weight: 800; color: var(--ink); }
.link { font-size: 14px; font-weight: 700; color: var(--orange-ink); min-height: 44px; padding: 0 4px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.job { background: var(--white); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh); text-align: left; width: 100%; transition: transform 0.12s; }
.job:active { transform: scale(0.985); }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.job-head .t { font-size: 22px; font-weight: 800; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 999px; white-space: nowrap; background: var(--line); color: var(--navy); flex: none; }
.chip.live { background: var(--wash); color: var(--orange-ink); }
.job-who { display: flex; flex-direction: column; gap: 4px; }
.job-who b { font-size: 15px; font-weight: 700; color: var(--navy); }
.job-who span { font-size: 13px; font-weight: 500; color: var(--slate); }
.job-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { background: var(--white); border-radius: 28px; padding: 40px 32px; text-align: center; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 8px; }
.empty b { font-size: 18px; font-weight: 800; }
.empty span { font-size: 14px; font-weight: 500; color: var(--slate); }

/* ---------- 3. registrar horas */
.seg { background: var(--white); border-radius: 999px; padding: 8px; display: flex; gap: 4px; box-shadow: var(--sh); }
.seg button { flex: 1; min-height: 60px; border-radius: 999px; color: var(--slate); font-size: 16px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 8px; }
.seg button small { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: none; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--white); border-radius: 32px; padding: 28px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 18px; }
/* el contador se dimensiona por el ancho real de su tarjeta (cqi): "24.0" nunca
   se monta sobre los botones, sea iPad, telefono o el ancho intermedio */
.stepper { align-items: center; gap: 22px; padding: 28px 24px; container-type: inline-size; }
.step-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.step { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--navy); flex: none; }
.step.plus { background: var(--orange); color: var(--white); box-shadow: 0 10px 20px rgba(255, 51, 0, 0.3); }
.step:disabled { opacity: 0.4; box-shadow: none; }
.step-val { font-size: 44px; min-width: 0; white-space: nowrap; font-weight: 900; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
@supports (width: 1cqi) {
  .step { width: clamp(48px, 20cqi, 72px); height: clamp(48px, 20cqi, 72px); }
  .step-val { font-size: clamp(34px, 17cqi, 72px); }
}
.caption { font-size: 12px; font-weight: 600; color: var(--muted); }
.worked { background: var(--navy); color: var(--white); border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh-navy); }
.worked-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.worked-head .eyebrow { color: rgba(255, 255, 255, 0.55); font-weight: 700; }
.tag { background: rgba(255, 255, 255, 0.12); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; }
.worked .big { font-size: 56px; }
.worked .big small { font-size: 20px; }
.worked p { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.crew-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip.wash { background: var(--wash); color: var(--orange-ink); font-weight: 800; padding: 6px 12px; }
.crew-row { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 20px; padding: 14px 16px; }
.crew-row .av { width: 44px; height: 44px; font-size: 14px; background: var(--white); color: var(--navy); }
.crew-row .av.me { background: var(--orange-deep); color: var(--white); }
.crew-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.crew-name b { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.crew-name span { font-size: 12px; font-weight: 600; color: var(--slate); }
.crew-name span.ok { color: var(--ok); }
.crew-name span.you { color: var(--orange-ink); }
.crew-row > strong { font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.crew-empty { font-size: 14px; font-weight: 600; color: var(--slate); }
.crew-total { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.crew-total span { font-size: 16px; font-weight: 800; }
.crew-total strong { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; }
.crew-total strong small { font-size: 16px; color: var(--slate); }

/* ---------- 4. firma */
.notice { background: var(--navy); color: var(--white); border-radius: 32px; padding: 28px 30px; display: flex; gap: 22px; align-items: center; box-shadow: var(--sh-navy); }
.notice .knob { width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; }
.notice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.notice-text b { font-size: 20px; font-weight: 800; }
.notice-text span { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.7); line-height: 1.5; }
.notice-num { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.notice-num strong { font-size: 40px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.notice-num span { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.55); }
.sign-card { flex: 1; gap: 20px; }
/* .fld (orden nueva) comparte el mismo campo: fondo gris dentro de tarjeta blanca */
.signer, .fld { background: var(--bg); border-radius: 22px; padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; }
.signer:focus-within, .fld:focus-within { box-shadow: 0 0 0 2px var(--navy); }
.signer input, .fld input, .fld select, .fld textarea { border: none; background: none; outline: none; font-size: 18px; font-weight: 700; color: var(--ink); width: 100%; }
.signer input::placeholder, .fld ::placeholder { color: var(--muted); font-weight: 600; }
.padbox { position: relative; height: 360px; border: 2px dashed var(--dash); border-radius: 28px; overflow: hidden; background: var(--white); }
.padbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.padbox .baseline { position: absolute; left: 40px; right: 40px; bottom: 48px; border-bottom: 2px solid #e4e7ec; pointer-events: none; }
.padbox .ph { position: absolute; left: 0; right: 0; bottom: 60px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); pointer-events: none; }
.padbox .clear { position: absolute; top: 16px; right: 16px; background: var(--bg); border-radius: 999px; padding: 10px 18px; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--slate); z-index: 1; }
.stamp { font-size: 13px; font-weight: 500; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- 5. enviado */
.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; }
.ring1 { width: 240px; height: 240px; border-radius: 50%; background: rgba(31, 138, 76, 0.08); display: grid; place-items: center; }
.ring2 { width: 176px; height: 176px; border-radius: 50%; background: rgba(31, 138, 76, 0.14); display: grid; place-items: center; }
.ring3 { width: 116px; height: 116px; border-radius: 50%; background: var(--ok); color: var(--white); display: grid; place-items: center; box-shadow: 0 14px 28px rgba(31, 138, 76, 0.35); }
.done-text { display: flex; flex-direction: column; gap: 10px; }
.done-text h1 { font-size: 36px; font-weight: 800; color: var(--ink); }
.done-text p { font-size: 17px; font-weight: 500; color: var(--slate); line-height: 1.5; }
.synced { width: 100%; max-width: 540px; background: var(--white); border-radius: 28px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; box-shadow: var(--sh); text-align: left; }
.synced .knob { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-wash); color: var(--ok); display: grid; place-items: center; flex: none; }
.synced div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.synced b { font-size: 17px; font-weight: 800; }
.synced span { font-size: 14px; font-weight: 500; color: var(--slate); }
.synced time { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- 6. orden nueva */
.add { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 8px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 15px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px rgba(32, 40, 64, 0.18); transition: transform 0.12s; }
.add:active { transform: scale(0.97); }
.add .knob { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; }
.empty .add { align-self: center; margin-top: 14px; }
.fld .eyebrow small { font-size: inherit; font-weight: 600; letter-spacing: 1px; }   /* sin opacidad: --muted sobre --bg ya queda en 5.1:1 (AA) */
.fld input { min-height: 36px; font-variant-numeric: tabular-nums; }
/* que no parezca un valor ya escrito, pero legible (AA): se distingue por peso y
   cursiva, no por opacidad. opacity 1 porque Firefox le baja la opacidad por defecto */
.fld ::placeholder { font-weight: 500; font-style: italic; opacity: 1; }
.fld textarea { resize: vertical; min-height: 104px; line-height: 1.45; font-weight: 600; }
.fld :disabled { opacity: 0.55; }
.fld-msg { min-height: 36px; display: flex; align-items: center; font-size: 16px; font-weight: 600; color: var(--slate); }
/* select nativo (el selector del sistema funciona mejor en tablet), con flecha propia:
   la CSP no deja imagenes data: en el CSS, asi que la flecha es un svg del HTML */
.sel { position: relative; display: block; }
.sel select { -webkit-appearance: none; appearance: none; min-height: 44px; padding: 0 34px 0 0; text-overflow: ellipsis; cursor: pointer; }
.sel svg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.o-addr { font-size: 14px; font-weight: 600; color: var(--slate); padding: 0 8px; margin-top: -6px; }

/* ---------- telefono */
@media (max-width: 700px) {
  :root { --pad-x: 18px; }
  .screen { padding-top: 18px; gap: 18px; }
  .login-top { min-height: 300px; padding-top: 72px; }
  .sheet { padding-top: 40px; border-radius: 36px 36px 0 0; }
  .sheet-in h1 { font-size: 28px; }
  .top .logo { height: 36px; }
  .me-text { display: none; }
  .hero { padding: 24px 22px; border-radius: 28px; }
  .hero-main { flex-direction: column; align-items: flex-start; }
  .hero-hours { align-items: flex-start; }
  .hero-job h2 { font-size: 32px; }
  .crewbar { flex-direction: column; align-items: stretch; border-radius: 28px; padding: 12px; }
  .go { justify-content: space-between; }
  .grid, .cols, .actions { grid-template-columns: minmax(0, 1fr); }
  /* Actualizar sigue junto al titulo y Nueva orden baja a su propia fila completa */
  .list-tools { display: contents; }
  .list-head .add { flex-basis: 100%; justify-content: center; }
  .seg button { font-size: 13px; letter-spacing: 0.5px; min-height: 54px; }
  .notice { flex-wrap: wrap; padding: 22px; }
  .notice-num { flex-direction: row; align-items: baseline; gap: 8px; }
  .padbox { height: 240px; }
  .pill { min-height: 68px; font-size: 19px; padding-left: 26px; }
  .pill .knob { width: 50px; height: 50px; }
  .done-text h1 { font-size: 28px; }
  .ring1 { width: 200px; height: 200px; }
  .ring2 { width: 148px; height: 148px; }
  .ring3 { width: 100px; height: 100px; }
}

/* Telefonos angostos (320-380 px): menos relleno, para que un apellido largo no choque
   con las horas de la cuadrilla y el titulo de la barra no ocupe tres lineas */
@media (max-width: 380px) {
  :root { --pad-x: 14px; }
  .card { padding: 20px; }
  .crew-row { gap: 10px; padding: 12px; }
  .crew-row .av { width: 36px; height: 36px; font-size: 12px; }
  .round, .bar > .av { width: 48px; height: 48px; }
  .bar-title h1 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
