/* Figtree (SIL Open Font License): one clean family for everything, few sizes, few weights. */
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff") format("woff"); font-weight: 300 900; font-display: swap; }
/* Layout: professional-network feel. Sticky top bar, white cards on a cool grey ground, fixed bottom nav, 640px column */
:root {
  /* "Baldosa": the teal and mustard of the cement tiles and arches of the Casco Viejo. */
  --bg: #F2F5F4;
  --surface: #FFFFFF;
  --ink: #1B2627;
  --muted: #586566;
  --faint: #879394;
  --line: #DCE4E3;
  --brand: #1E6B74;
  --brand-hover: #175860;
  --brand-ink: #FFFFFF;
  --brand-soft: #DCEDEE;
  --mango: #E2A63B;
  --mango-soft: #FAEFD9;
  --tile: #1E6B74;
  --ok: #18744F;
  --ok-soft: #DDF1E6;
  --star: #B7801A;
  --wa: #1E8A4C;
  --danger: #B42318;
  --danger-soft: #FCEBE9;
  --a1bg: #DCEDEE; --a1fg: #1E6B74;
  --a2bg: #FAEFD9; --a2fg: #8A5D12;
  --a3bg: #DDF1E6; --a3fg: #18744F;
  --a4bg: #E2E6F2; --a4fg: #3B4F80;
  --shadow: 0 1px 0 var(--line);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: var(--font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1F21; --surface: #26292C; --ink: #FFFFFF; --muted: #D3D7D9; --faint: #AEB4B7; --line: #3A3F43;
    --brand: #5CC3CB; --brand-hover: #7DD0D6; --brand-ink: #0A1D1F; --brand-soft: #2F4446; --mango: #F2B544; --mango-soft: #3D3424; --tile: #2F4446;
    --ok: #5BD39D; --ok-soft: #2B3D34; --star: #F2B544; --wa: #4CC985; --danger: #FF8273; --danger-soft: #45302D;
    --a1bg: #2F4446; --a1fg: #A4E4E8; --a2bg: #45392A; --a2fg: #F5CF85; --a3bg: #2B3D34; --a3fg: #8FE0B5; --a4bg: #343B4F; --a4fg: #C2CCEB;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1F21; --surface: #26292C; --ink: #FFFFFF; --muted: #D3D7D9; --faint: #AEB4B7; --line: #3A3F43;
  --brand: #5CC3CB; --brand-hover: #7DD0D6; --brand-ink: #0A1D1F; --brand-soft: #2F4446; --mango: #F2B544; --mango-soft: #3D3424; --tile: #2F4446;
  --ok: #5BD39D; --ok-soft: #2B3D34; --star: #F2B544; --wa: #4CC985; --danger: #FF8273; --danger-soft: #45302D;
  --a1bg: #2F4446; --a1fg: #A4E4E8; --a2bg: #45392A; --a2fg: #F5CF85; --a3bg: #2B3D34; --a3fg: #8FE0B5; --a4bg: #343B4F; --a4fg: #C2CCEB;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { max-width: 100%; }
body { overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
select, input, textarea, button { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.wrap {
  max-width: 640px; margin: 0 auto;
  padding-left: max(16px, var(--safe-area-inset-left, env(safe-area-inset-left, 0px)));
  padding-right: max(16px, var(--safe-area-inset-right, env(safe-area-inset-right, 0px)));
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); }
.logo svg { width: 28px; height: 28px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 600; border: 1px solid transparent; text-decoration: none; font-size: 0.95rem; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn.outline:hover { background: var(--brand-soft); }
.btn.neutral { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.neutral:hover { background: var(--bg); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.block { width: 100%; padding-block: 12px; }
.btn.sm { padding: 6px 14px; font-size: 0.85rem; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .lbl { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.input, select.input, textarea.input {
  width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--faint); border-radius: 6px; padding: 11px 12px;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
textarea.input { min-height: 88px; resize: vertical; }
.pw { position: relative; }
.pw .input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 0.85rem; padding: 6px 8px; }
.hint { font-size: 0.8rem; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2 > * { min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { position: relative; }
.checks input { position: absolute; inset: 0; opacity: 0; }
.checks span { display: inline-block; border: 1px solid var(--faint); border-radius: 999px; padding: 6px 14px; font-size: 0.875rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.checks input:checked + span { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.checks input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 0.95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
input[type="file"] { font-size: 0.85rem; max-width: 100%; }
.errors { background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; }
.errors ul { margin: 4px 0 0; padding-left: 18px; }
.note { font-size: 0.85rem; min-height: 1em; }
.note.ok { color: var(--ok); font-weight: 600; }
.note.err { color: var(--danger); font-weight: 600; }

/* Auth */
.auth { min-height: 100%; display: flex; flex-direction: column; }
.auth .wrap { max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 24px; padding-block: 28px 40px; }
.auth-card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 6px; padding: 8px; font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); }
.center { text-align: center; }
.auth-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.auth-foot select { border: 0; background: transparent; color: var(--muted); font-weight: 600; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress span { height: 4px; border-radius: 4px; background: var(--line); }
.progress span.on { background: var(--brand); }
.fee { display: flex; gap: 14px; align-items: center; background: var(--brand-soft); border-radius: 10px; padding: 16px 18px; font-size: 0.9rem; }
.fee strong { font-size: 1.4rem; color: var(--brand); }

@media (max-width: 440px) {
  .row2 { grid-template-columns: 1fr; gap: 20px; }
  .card-pad { padding: 20px 16px; }
  .sec-title { padding: 18px 16px 6px; }
  .filters { padding: 18px 16px 12px; }
  .count { padding: 2px 16px 8px; }
  .prof-body { padding: 0 16px 20px; }
  .auth-card { padding: 22px 18px; }
  .prof-actions .btn { flex: 1 1 auto; }
  .prow { grid-template-columns: 44px 1fr auto; gap: 14px; padding: 16px; }
  .prow .av.s52 { width: 44px; height: 44px; font-size: 0.95rem; }
}
/* App chrome */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); z-index: 10; background: var(--surface); }
.topbar { position: sticky; top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.topbar .logo span { display: none; }
.tsearch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 6px; padding: 0 10px; }
.tsearch svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.tsearch input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 9px 0; outline: none; }
.logobtn { border: 0; background: none; padding: 0; }
.me-btn { border: 0; background: none; padding: 0; border-radius: 50%; }
.content { padding-block: 20px 110px; display: flex; flex-direction: column; gap: 18px; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  padding-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px)); padding-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
}
.bottomnav .in { max-width: 640px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.bottomnav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; font-size: 0.72rem; color: var(--muted); border-top: 2px solid transparent; margin-top: -1px; }
.bottomnav svg { width: 24px; height: 24px; }
.bottomnav button[aria-current="page"] { color: var(--ink); border-top-color: var(--ink); }

/* Cards */
.card { background: var(--surface); box-shadow: var(--shadow); border-radius: 10px; }
.card-pad { padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
/* Small counters on the right ("1 calificación") never break letter by letter. */
.card-head > .sub { flex: none; white-space: nowrap; overflow-wrap: normal; }
.card-head > h2, .card-head > div { min-width: 0; }
.sec-title { padding: 20px 20px 8px; }
.sec-title p { margin-top: 4px; }

/* People rows */
.rows { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: start; padding: 18px 20px; border: 0; background: none; text-align: left; width: 100%; border-top: 1px solid var(--line); }
.rows > .prow:first-child { border-top: 0; }
.prow:hover { background: var(--bg); }
.prow > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.prow .chev { width: 18px; height: 18px; color: var(--faint); margin-top: 4px; }
.pname { font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.verified { width: 16px; height: 16px; color: var(--ok); flex: none; }
.headline { font-size: 0.9rem; color: var(--ink); }
.sub { font-size: 0.82rem; color: var(--muted); }
.rate { font-size: 0.82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.rate b { color: var(--star); }
.av { border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--surface); flex: none; letter-spacing: 0.02em; }
.av.s32 { width: 32px; height: 32px; font-size: 0.8rem; }
.av.s52 { width: 52px; height: 52px; font-size: 1.05rem; }
.av.s96 { width: 96px; height: 96px; font-size: 2rem; border: 4px solid var(--surface); }
.av.c1 { background: var(--a1fg); } .av.c2 { background: var(--a2fg); } .av.c3 { background: var(--a3fg); } .av.c4 { background: var(--a4fg); }
.banner.c1 { background: var(--a1bg); } .banner.c2 { background: var(--a2bg); } .banner.c3 { background: var(--a3bg); } .banner.c4 { background: var(--a4bg); }
.ex { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 20px 14px; }
.filters::-webkit-scrollbar { display: none; }
.fsel { flex: none; appearance: none; -webkit-appearance: none; border: 1px solid var(--faint); background: var(--surface); border-radius: 999px; padding: 6px 30px 6px 14px; font-weight: 600; font-size: 0.875rem; color: var(--muted);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.fsel.on { background-color: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.ftog { flex: none; border: 1px solid var(--faint); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.875rem; color: var(--muted); }
.ftog[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.count { padding: 2px 20px 8px; font-size: 0.85rem; color: var(--muted); }

/* Profile */
.backrow { display: flex; }
.backbtn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font-weight: 600; padding: 4px 0; }
.backbtn svg { width: 20px; height: 20px; }
.prof { overflow: hidden; }
.banner { height: 104px; }
.prof-body { padding: 0 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.prof-body .av { margin-top: -52px; margin-bottom: 8px; }
.prof-name { font-size: 1.45rem; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prof-name .verified { width: 20px; height: 20px; }
.prof-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.status { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 10px; }
.status.pending { background: var(--brand-soft); }
.status.live { background: var(--ok-soft); }
.status svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.status.pending svg { color: var(--brand); } .status.live svg { color: var(--ok); }
.status > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.steps li { display: flex; gap: 8px; align-items: center; }
.steps i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); flex: none; font-style: normal; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; }
.steps i.done { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.steps i.now { border-color: var(--brand); }
.exp { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.exp:first-of-type { border-top: 0; padding-top: 0; }
.exp-ico { width: 44px; height: 44px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; color: var(--muted); }
.exp-ico svg { width: 22px; height: 22px; }
.exp > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vchip { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: 4px; font-size: 0.78rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 4px; padding: 2px 8px; }
.vchip svg { width: 14px; height: 14px; }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.skills li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.skills li:first-child { border-top: 0; padding-top: 0; }
.skills strong { font-weight: 600; }
.lockline { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.lockline svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.score { display: flex; align-items: center; gap: 10px; }
.score strong { font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stars { color: var(--star); letter-spacing: 1px; }
.stars .off { color: var(--line); }
.rev { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.rev > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.starpick { display: flex; gap: 2px; }
.starpick button { border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--line); padding: 2px; }
.starpick button.on { color: var(--star); }
.phone { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.phone code { font-family: var(--font); font-size: 1.05rem; font-weight: 600; user-select: all; font-variant-numeric: tabular-nums; }

/* Invite */
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed var(--faint); border-radius: 8px; padding: 12px 14px; }
.codebox code { font-family: var(--font); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.08em; user-select: all; font-variant-numeric: tabular-nums; }
.msg { background: var(--bg); border-radius: 8px; padding: 14px 16px; font-size: 0.92rem; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }

/* Me */
.me-head { display: flex; gap: 16px; align-items: center; }
.me-head > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.setrow:first-child { border-top: 0; padding-top: 0; }
.setrow select { width: auto; flex: none; }
.empty { padding: 4px 0; color: var(--muted); font-size: 0.9rem; }
.demo-tag { text-align: center; font-size: 0.78rem; color: var(--faint); padding-top: 4px; }

/* Identity, badges, recommendation */
:root { --rec: #A86A0C; --rec-soft: #FBF1DF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --rec: #F2B544; --rec-soft: #3D3424; } }
:root[data-theme="dark"] { --rec: #F2B544; --rec-soft: #3D3424; }
.stepbox { display: flex; flex-direction: column; gap: 20px; }
.seal { width: 16px; height: 16px; color: var(--rec); flex: none; }
.prof-name .seal { width: 20px; height: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; border-radius: 6px; padding: 4px 10px; }
.badge svg { width: 14px; height: 14px; }
.badge.id { color: var(--ok); background: var(--ok-soft); }
.badge.rec { color: var(--rec); background: var(--rec-soft); }
.badge.rec .seal { color: var(--rec); }
.badge.jw { color: var(--brand); background: var(--brand-soft); }
.badge .verified { color: var(--ok); width: 14px; height: 14px; }
.minitag { align-self: flex-start; margin-top: 4px; padding-block: 3px; font-size: 0.75rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 1px 7px; }
.vchip .seal { width: 14px; height: 14px; color: var(--ok); }
img.av { object-fit: cover; padding: 0; }
.photo-in { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; border: 1px dashed var(--faint); border-radius: 10px; padding: 14px; }
.photo-in > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.photo-in label { font-size: 0.875rem; font-weight: 600; }
.pv { width: 72px; height: 72px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.pv.round { border-radius: 50%; }
.pv svg { width: 30px; height: 30px; }
.pv img { width: 100%; height: 100%; object-fit: cover; }
.optbox { display: flex; flex-direction: column; gap: 14px; background: var(--rec-soft); border-radius: 10px; padding: 16px 18px; }
.verify-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 16px 0; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }
.okmark { color: var(--ok); }
.okmark svg { width: 52px; height: 52px; }

/* Salary, availability, stats, report, pay */
.salary { font-weight: 600; font-size: 0.95rem; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; }
.avail i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.avail.on { color: var(--ok); } .avail.on i { background: var(--ok); }
.avail.off { color: var(--muted); } .avail.off i { background: var(--faint); }
.hirechip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--ok); }
.hirechip svg { width: 13px; height: 13px; }
.reportlink { color: var(--muted); font-weight: 500; font-size: 0.85rem; padding: 6px 0 4px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--bg); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat strong { font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vchart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.vbar { border: 0; background: none; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 0; position: relative; min-width: 0; padding-bottom: 22px; }
.vbar:hover .vfill, .vbar:focus-visible .vfill { opacity: .8; }
.vfill { display: block; background: var(--brand-soft); border: 0; border-radius: 4px 4px 0 0; min-height: 4px; box-shadow: inset 0 0 0 1px var(--brand); }
.vbar.today .vfill { background: var(--brand); }
.vnum { font-size: 0.8rem; font-weight: 600; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1.2em; }
.vday { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 0.72rem; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
#vtip { margin-top: 8px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.paybox { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border-radius: 10px; padding: 16px; margin-top: 6px; }
.paybox code { font-family: var(--font); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.08em; user-select: all; }
@media (prefers-reduced-motion: reduce) { .switch i, .switch i::after { transition: none; } }

/* Tap-to-toggle filters */
.filters { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
.fhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fopen { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; font-weight: 600; font-size: 1rem; color: var(--ink); }
.fcount { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ok); color: var(--surface); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.caret { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.caret.up { transform: rotate(180deg); }
.fpanel { display: flex; flex-direction: column; gap: 16px; }
.fgroup { display: flex; flex-direction: column; gap: 8px; }
.flabel { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ftog { display: inline-flex; align-items: center; gap: 6px; }
.ftog .x { width: 14px; height: 14px; flex: none; }
@media (prefers-reduced-motion: reduce) { .caret { transition: none; } }

/* Recommendations and editable ratings */
.recitem { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.recitem:first-of-type { border-top: 0; padding-top: 0; }
.recitem.link { grid-template-columns: 44px 1fr auto; border-radius: 0; }
.recitem.link:hover strong { color: var(--brand); }
.recitem > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.recitem strong { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.av.s44 { width: 44px; height: 44px; font-size: 0.95rem; }
.myrate { display: flex; flex-direction: column; gap: 6px; }
.myrate .stars { font-size: 1.3rem; }
.confirm { display: flex; flex-direction: column; gap: 12px; background: var(--danger-soft); border-radius: 10px; padding: 14px 16px; }
.btn.danger { background: var(--danger); color: var(--surface); }

/* Admin panel and receipts */
.adminlink { color: var(--muted); font-weight: 500; }
.paycard { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.payhead { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.payhead > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mailnote { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--brand); font-weight: 600; }
.mailnote svg { width: 18px; height: 18px; flex: none; }
.paygrid { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.paygrid > * { min-width: 0; }
.receipt { width: 120px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.facts2 { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.facts2 dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); }
.facts2 dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; }
.facts2 code, .donerow code { font-family: var(--font); letter-spacing: 0.05em; }
.donerow, .reprow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.donerow:first-child, .reprow:first-child { border-top: 0; }
.reprow { flex-direction: column; align-items: flex-start; gap: 6px; }
.stchip { font-size: 0.78rem; font-weight: 600; border-radius: 6px; padding: 3px 10px; }
.stchip.approved { color: var(--ok); background: var(--ok-soft); }
.stchip.rejected { color: var(--danger); background: var(--danger-soft); }
.status.rejected { background: var(--danger-soft); }
.status.rejected svg { color: var(--danger); }
.sec-title h2 { display: flex; align-items: center; gap: 8px; }

/* Worker account type */
.modes { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.modes legend { padding: 0; margin-bottom: 10px; font-size: 0.875rem; font-weight: 600; }
.mode { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; border: 1px solid var(--faint); border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.mode input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.mode > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mode:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.fee.free { background: var(--ok-soft); flex-direction: column; align-items: flex-start; gap: 6px; }
.fee strong { flex: none; white-space: nowrap; }
.fee span { min-width: 0; }
.fee.free strong { color: var(--ok); font-size: 1.15rem; }
.payline { display: flex; flex-direction: column; gap: 4px; }
.payline code { font-size: 1.15rem; letter-spacing: 0.04em; }

/* Sort, alerts, notifications, edit, help, terms */
.sortrow { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 12px; }
.alertrow { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.alertrow .btn svg { width: 16px; height: 16px; }
.bellbtn { position: relative; border: 0; background: none; padding: 6px; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.bellbtn svg { width: 24px; height: 24px; }
.dotnum { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.notif { border-top: 1px solid var(--line); }
.notif:first-child { border-top: 0; }
.notif > p { padding: 14px 20px 0; }
.notif .prow { border-top: 0; }
.notif.unread > p { color: var(--brand); font-weight: 600; }
.setrow > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.setrow > span svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.withicon { display: flex; align-items: center; gap: 8px; }
.withicon svg { width: 20px; height: 20px; color: var(--brand); }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:first-child { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin-top: 8px; color: var(--muted); }
.check.terms { align-items: flex-start; font-size: 0.9rem; line-height: 1.5; }
.check.terms input { margin-top: 3px; }
.check.terms .linkbtn { font-size: inherit; }
.pv.round { font-weight: 700; color: var(--muted); }
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(10, 14, 20, 0.45); display: flex; align-items: flex-end; justify-content: center; padding-top: max(24px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); }
.sheet-card { background: var(--surface); width: 100%; max-width: 640px; max-height: 100%; overflow-y: auto; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; gap: 18px;
  padding: 22px max(20px, var(--safe-area-inset-right, env(safe-area-inset-right, 0px))) max(28px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))) max(20px, var(--safe-area-inset-left, env(safe-area-inset-left, 0px))); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -22px; background: var(--surface); padding: 8px 0; }
.sheet-card section { display: flex; flex-direction: column; gap: 6px; }
.sheet-card section p { color: var(--muted); }
@media (min-width: 700px) { .sheet { align-items: center; padding: 32px; } .sheet-card { border-radius: 16px; max-height: 85vh; } }
.setrow .btn, .card-head .btn { flex: none; white-space: nowrap; }
.btn { overflow-wrap: normal; }

/* Security */
.code6 { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.privrow { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.privrow:nth-of-type(1) { border-top: 0; padding-top: 0; }
.withicon svg { flex: none; }

/* Didit verification */
.didit { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--bg); }
.didit h3 { font-size: 1.05rem; }
.dsteps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.didit .note.ok { display: flex; gap: 6px; align-items: center; }
.didit .note.ok svg { width: 18px; height: 18px; flex: none; }
.badge.pend { color: var(--brand); background: var(--brand-soft); }
.badge.bad { color: var(--danger); background: var(--danger-soft); }
.badge.pend svg, .badge.bad svg { width: 14px; height: 14px; }

/* Real app additions */
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); }
.boot { min-height: 100vh; display: grid; place-items: center; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); transform: translateX(-50%); z-index: 30; max-width: min(92vw, 520px);
  background: var(--ink); color: var(--surface); border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast.err { background: var(--danger); color: #fff; }
.gate-status { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 0; }
.gate-status .okmark svg, .gate-status .badmark svg { width: 52px; height: 52px; }
.badmark { color: var(--danger); }
.pendmark { color: var(--brand); }
.pendmark svg { width: 52px; height: 52px; }
.linkrow { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.loadingrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; padding: 18px 20px; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
.admin-sub { display: flex; flex-direction: column; gap: 2px; }
.pending-chip { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: 4px; font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 4px; padding: 2px 8px; }

/* Chat */
.bottomnav button { position: relative; }
.navdot { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.chatsnip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.chat { display: flex; flex-direction: column; overflow: visible; }
.chat-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-name { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-rule { margin: 12px 16px 0; }
.chat-list { display: flex; flex-direction: column; gap: 8px; padding: 16px; min-height: 240px; }
.chat-empty { text-align: center; margin: auto 0; }
.msg-row { display: flex; }
.msg-row.mine { justify-content: flex-end; }
.bubble { max-width: 80%; background: var(--bg); border-radius: 14px 14px 14px 4px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.msg-row.mine .bubble { background: var(--brand); color: var(--brand-ink); border-radius: 14px 14px 4px 14px; }
.bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-time { font-size: 0.7rem; opacity: .7; align-self: flex-end; }
.chat-form { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: calc(58px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); z-index: 3; background: var(--surface); border-radius: 0 0 10px 10px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { min-height: 44px; max-height: 140px; resize: none; }
.chat-input .btn { flex: none; }

/* ---- install box, delete account, chat block ---- */
.installbox { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.installbox.compact { background: var(--surface); border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 12px 14px; }
.installbox strong { display: block; }
.install-ico svg { width: 40px; height: 40px; display: block; }
.install-help { grid-column: 1 / -1; margin-top: 6px; }
.installbox .install-help { margin: 6px 0 0; }
.danger-link { color: var(--danger, #b42318); }
.chat-tools { display: inline-flex; gap: 12px; align-items: center; justify-self: end; }
.auth-foot span { display: inline-flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.chat > .confirm { margin: 12px 16px 0; }
/* On iPhone (installed app), start the page below the clock and battery so the top is never hidden. */
body { padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); }

/* iPhone: typing in a box smaller than 16px makes the screen zoom in and slide sideways. */
input:not([type="file"]), select, textarea { font-size: 16px; }
html { overflow-x: hidden; overscroll-behavior-x: none; }

/* ---- welcome: two big, clear choices ---- */
.welcome h1 { font-size: 1.55rem; line-height: 1.25; }
.welcome p { margin-top: 6px; }
.choice-q { font-weight: 700; font-size: 1.05rem; margin: 4px 0 -4px; }
.choices { display: grid; gap: 12px; }
.choice { display: grid; grid-template-columns: 48px 1fr 20px; gap: 14px; align-items: center; text-align: left; width: 100%;
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 16px; color: var(--ink); cursor: pointer; }
.choice:hover, .choice:focus-visible { border-color: var(--brand); }
.choice strong { display: block; font-size: 1.05rem; }
.choice .chev { width: 20px; height: 20px; color: var(--muted); }
.choice-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.choice-ico svg { width: 26px; height: 26px; }
.choice.fam .choice-ico, .rolehead.fam .choice-ico { background: var(--brand-soft); color: var(--brand); }
.choice.work .choice-ico, .rolehead.work .choice-ico { background: var(--ok-soft); color: var(--ok); }
.how h2 { font-size: 1.05rem; }
.howsteps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: hs; display: grid; gap: 10px; }
.howsteps li { counter-increment: hs; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.howsteps li::before { content: counter(hs); width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }

/* ---- sign-up: who this account is for, and the 3 steps ---- */
.rolehead { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.rolehead h1 { font-size: 1.35rem; margin-top: 2px; }
.rolepill { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 0.78rem; color: var(--muted); }
.journey li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.journey li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--line); background: var(--surface); }
.journey li.now { color: var(--ink); font-weight: 700; }
.journey li.now span { border-color: var(--brand); background: var(--brand); color: #fff; }
.journey li.done span { border-color: var(--brand); color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tags .minitag { margin-top: 0; }
.freepill { display: inline-block; margin-top: 6px; font-size: 0.75rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 2px 10px; }
.choice-txt { display: flex; flex-direction: column; align-items: flex-start; }

/* ---- ratings inside the chat ---- */
.chat-rating { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 0; padding: 6px 16px; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.chat > .rateinchat { margin: 12px 16px 0; background: var(--brand-soft); }
.revlist summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.revlist .rev { margin-top: 10px; }

/* ---- interviews in the chat ---- */
.intv-card { display: flex; flex-direction: column; gap: 6px; margin: 12px 16px 0; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); }
.intv-card .intv-when { font-weight: 600; }
.intv-card .btnrow { margin-top: 2px; }
.chat > .intv-form { margin: 12px 16px 0; background: var(--surface); border: 1px solid var(--line); }
#intv-card:empty { display: none; }
/* chat header: back + name on top, actions in a row below */
.chat-head { grid-template-columns: auto 1fr; row-gap: 6px; }
.chat-head .chat-name { text-align: left; }
.chat-tools { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }

/* ---- video call (full screen) ---- */
.call-ov { position: fixed; inset: 0; z-index: 50; background: #0B0F14; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.call-ov[hidden] { display: none; }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0B0F14; }
.call-remote.fit { object-fit: contain; }
.call-local { position: absolute; top: calc(16px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); right: 16px; width: 28vw; max-width: 160px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255,255,255,.7); background: #1A1F26; transform: scaleX(-1); z-index: 2; }
.call-status { position: absolute; top: 40%; left: 16px; right: 16px; text-align: center; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); z-index: 2; }
body.call-live .call-status { top: auto; bottom: calc(96px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); font-size: 0.85rem; opacity: .8; }
.call-bar { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 16px 16px calc(20px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); width: 100%; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.call-tap { position: absolute; top: calc(40% + 64px); left: 50%; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 700; background: #fff; color: #0B0F14; max-width: calc(100% - 32px); }
.call-tap[hidden] { display: none; }
.call-info { position: absolute; left: 12px; bottom: calc(8px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); z-index: 2; font-size: 0.7rem; opacity: .45; }
.call-btn { border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 600; background: rgba(255,255,255,.18); color: #fff; }
.call-btn[aria-pressed="true"] { background: #fff; color: #0B0F14; }
.call-btn.end { background: #D92D20; }
@media (min-width: 900px) {
  .call-remote { inset: 24px 24px 110px; width: calc(100% - 48px); height: calc(100% - 134px); border-radius: 16px; }
  .call-local { width: 220px; max-width: 220px; aspect-ratio: 4 / 3; top: 40px; right: 40px; }
}

/* ---- jobs ---- */
.jobs { display: flex; flex-direction: column; }
.jobcard { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.jobtop { display: flex; gap: 10px; align-items: center; }
.jobtop > div { display: flex; flex-direction: column; min-width: 0; }
.jobcard .btnrow { align-items: center; }
.pushcard h3 { margin: 0; }
.sub.act { color: var(--ok, #1F7A4D); }
.scamline { margin-top: 6px; }
.cmplink { padding-top: 0; padding-bottom: 0; }
.cmplink .linkbtn { display: inline-flex; gap: 6px; align-items: center; }
.cmplink svg { width: 16px; height: 16px; }
/* ---- compare ---- */
.cmpwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table.cmp { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
table.cmp th, table.cmp td { overflow-wrap: normal; word-break: normal; hyphens: auto; text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.cmp.n3 { min-width: 480px; }
table.cmp tbody th { color: var(--muted); font-weight: 600; width: 96px; position: sticky; left: 0; background: var(--surface); }
table.cmp thead th { border-bottom: 0; }
.cmphead { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 700; color: var(--ink); text-align: left; }
/* ---- guide & contract ---- */
.guide details p { margin: 6px 0 0; }
.contract-doc { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; color: #111; font-family: Georgia, 'Times New Roman', serif; line-height: 1.6; }
.contract-doc h2 { text-align: center; font-size: 1.1rem; letter-spacing: .04em; margin: 0 0 12px; }
.contract-doc p { margin: 0 0 10px; }
@media print {
  body * { visibility: hidden !important; }
  .contract-doc, .contract-doc *, .cv-doc, .cv-doc * { visibility: visible !important; }
  .contract-doc, .cv-doc { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; box-shadow: none; }
  .bottomnav, .topbar { display: none !important; }
}
/* ---- monthly plan ---- */
.plan { text-align: center; align-items: center; }
.plan h1 { font-size: 1.5rem; margin: 6px 0 0; }
.planlogo svg { width: 56px; height: 56px; }
.planprice { margin: 6px 0; }
.planprice strong { font-size: 2.2rem; }
.planperks { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; text-align: left; align-self: stretch; }
.planperks li { display: flex; gap: 10px; align-items: center; }
.planperks svg { width: 20px; height: 20px; color: var(--ok); flex: none; }
.plan .btn.block { align-self: stretch; }

/* photo picker: our own button instead of the browser's "Choose file" */
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.file-btn { align-self: flex-start; margin-top: 4px; cursor: pointer; }
.file-hidden:focus-visible + .file-btn { outline: 2px solid var(--brand); outline-offset: 2px; }
.photo-lbl { font-size: 0.875rem; }
.photo-in { position: relative; }
/* short person rows */
.prow.mini { padding-top: 10px; padding-bottom: 10px; }
.prow.mini .pname svg { width: 15px; height: 15px; }

/* =====================================================================
   Redesign (Oct 18): fewer boxes, photo-first, CasaSafe's own type.
   ===================================================================== */
body { font-size: 15.5px; }
h1, h2, .prof-name, .quick b, .planprice strong, .logo span { font-family: var(--display); font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: 1.85rem; letter-spacing: -0.01em; line-height: 1.12; }
h2 { font-size: 1.3rem; letter-spacing: 0; line-height: 1.2; }
h3 { font-weight: 650; }
.card { border-radius: 20px; box-shadow: none; }
.btn { font-weight: 650; }
.btn.primary { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.rate b, .stars { color: var(--star); }
.rate.new { color: var(--brand); font-weight: 650; }

/* pictures: rounded squares, not circles, so a face reads at a glance */
.pic { display: grid; place-items: center; object-fit: cover; font-family: var(--display); font-weight: 700; flex: none; }
.pic.c1 { background: var(--a1bg); color: var(--a1fg); } .pic.c2 { background: var(--a2bg); color: var(--a2fg); }
.pic.c3 { background: var(--a3bg); color: var(--a3fg); } .pic.c4 { background: var(--a4bg); color: var(--a4fg); }
.pic.row { width: 76px; height: 88px; border-radius: 16px; font-size: 1.4rem; }
.pic.mini { width: 44px; height: 44px; border-radius: 12px; font-size: 0.95rem; }
.pic.card { width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; font-size: 2.2rem; }
.pic.hero { width: 100%; aspect-ratio: 4 / 3; border-radius: 0; font-size: 4rem; }

/* results list */
.prow { grid-template-columns: auto 1fr auto; gap: 14px; padding: 16px 18px; }
.prow.mini { grid-template-columns: 44px 1fr auto; align-items: center; }
.prow .pname { font-size: 1.05rem; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; color: var(--muted); align-items: baseline; }
.facts .price { color: var(--ink); font-weight: 650; }

/* Inicio */
.hello { padding: 6px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.hello h1 { font-size: 2.2rem; }
.shelf { display: flex; flex-direction: column; gap: 12px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 42%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.shelf-row::-webkit-scrollbar { display: none; }
.ncard { scroll-snap-align: start; border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--ink); min-width: 0; }
.ncard-name { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.ncard-name svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
.ncard-line { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncard:focus-visible .pic { outline: 3px solid var(--brand); outline-offset: 2px; }
.howbar { padding: 4px 2px; display: flex; flex-direction: column; gap: 10px; }
.sharebar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--mango-soft); }
.sharebar p { display: flex; flex-direction: column; gap: 2px; }
.nudge { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--mango-soft); }
.nudge > div { display: flex; flex-direction: column; gap: 2px; }
.nudge .btn { grid-column: 1 / -1; justify-self: start; }
.nudge-ico svg { width: 34px; height: 34px; color: var(--star); }

/* profile: one sheet with a photo on top */
.prof { background: var(--surface); border-radius: 22px; overflow: hidden; }
.prof-hero { background: var(--bg); }
.prof-body { padding: 18px 20px 20px; gap: 6px; }
.prof-body .av { margin-top: 0; }
.prof-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.prof-role { font-size: 1rem; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 12px 0 6px; border: 1px solid var(--line); border-radius: 16px; }
.quick > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 6px; }
.quick > div + div { border-left: 1px solid var(--line); }
.quick b { font-size: 1.4rem; font-weight: 800; }
.quick span { font-size: 0.75rem; color: var(--muted); line-height: 1.25; }
.prof-sec { padding: 18px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.facts-list { margin: 0; display: grid; gap: 10px; }
.facts-list > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; }
.facts-list dt { color: var(--muted); font-size: 0.9rem; }
.facts-list dd { margin: 0; font-weight: 600; }
/* the main action stays at hand while scrolling the profile */
.prof .prof-actions { position: sticky; bottom: calc(66px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); z-index: 4; background: var(--surface); padding: 12px 0 4px; margin-top: 10px; }
.prof .prof-actions .btn.primary { flex: 1; padding-block: 13px; font-size: 1rem; }

/* chat: automatic notes as quiet centered lines */
.sysnote { align-self: center; max-width: 92%; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); font-size: 0.86rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.sysnote svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.sysnote .msg-time { font-size: 0.72rem; color: var(--muted); }
.sysnote.apply { background: var(--mango-soft); }
.sysnote.apply svg { color: var(--star); }

@media (min-width: 720px) {
  .shelf-row { grid-auto-columns: minmax(170px, 30%); }
  .pic.hero { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: no-preference) {
  .shelf-row { scroll-behavior: smooth; }
}

.quick .st { font-style: normal; color: var(--mango); }
.flabel { text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* =====================================================================
   Calm version (Oct 18): plain greeting, arch photos, fewer colors on screen.
   ===================================================================== */
.hello { padding: 8px 2px 2px; }
.hello h1 { font-size: 2.1rem; }
.welcome h1 { font-size: 2rem; }
.shelf-head h2 { font-size: 1.45rem; }
.pic.card { border-radius: 999px 999px 18px 18px; }
.pic.row { border-radius: 38px 38px 12px 12px; }
.prof-hero { padding: 20px 20px 0; background: var(--surface); }
.prof-hero .pic.hero { border-radius: 280px 280px 18px 18px; aspect-ratio: 1 / 1; max-height: 400px; max-width: 400px; margin: 0 auto; }
.quick { border-color: var(--line); background: none; }
.quick > div + div { border-left-color: var(--line); }
.quick .st { color: var(--mango); }
.trust { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.86rem; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 5px; }
.trust svg { width: 15px; height: 15px; color: var(--ok); }
.trust svg.seal, .trust .seal { color: var(--star); }
.statusline { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ncard-name { font-weight: 700; }
.choice { border-radius: 20px; }
.jobline { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 14px 16px; color: var(--ink); }
.jobline > span { display: flex; flex-direction: column; gap: 2px; }
.jobline svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
@media (min-width: 720px) { .prof-hero .pic.hero { max-width: 380px; } }
/* Profile buttons: same width, text on one line */
.prof .prof-actions { flex-wrap: nowrap; }
.prof .prof-actions .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding-inline: 12px; }

/* ---------- Recommended by … (tap to see where they worked) */
.recbys { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.recby { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.recby > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 11px 12px; cursor: pointer; font-weight: 600; font-size: 0.95rem; line-height: 1.3; color: var(--ink); }
.recby > summary::-webkit-details-marker { display: none; }
.recby > summary > span { flex: 1; min-width: 0; }
.recby > summary svg { flex: none; width: 18px; height: 18px; }
.recby > summary svg:first-child { color: var(--star); }
.recby > summary svg:last-child { color: var(--muted); transition: transform .15s; }
.recby[open] > summary svg:last-child { transform: rotate(90deg); }
.recby-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.recby-body p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.recby-body .flabel { margin-top: 2px; color: var(--ink); font-weight: 600; }
.recby-who { display: flex; align-items: center; gap: 12px; }
.recby-who > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recby-who strong { display: inline-flex; align-items: center; gap: 4px; }
.recby-who strong svg { width: 15px; height: 15px; color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .recby > summary svg:last-child { transition: none; } }

/* Homes where she worked */
.homes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.homes li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.homes li:first-child { border-top: 0; padding-top: 2px; }
.homes li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.homes .yrs { font-size: 1.05rem; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

/* "Estoy buscando trabajo": big switch at the top of the worker's home */
.lookcard { border: 1.5px solid var(--line); }
.lookcard.on { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.switch.big strong { font-size: 1.08rem; }
.switch.big i { width: 58px; height: 34px; }
.switch.big i::after { width: 28px; height: 28px; }
.switch.big input:checked + i::after { transform: translateX(24px); }
.stoppay { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stoppay p { margin: 0; color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Numbers a bit bigger, easy to read */
.quick b { font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.quick span { font-size: 0.8rem; }
.quick > div { padding: 14px 6px; }
.facts { font-size: 0.9rem; }
.facts .price, .rate b { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rate { font-size: 0.9rem; }
.stat strong { font-size: 2.2rem; }
.vnum { font-size: 0.95rem; }
.score strong { font-size: 2.4rem; }
.quick b.word { font-size: 1.3rem; line-height: 1.45; }

/* ---------- Fit on every phone (checked from 320px to 430px wide) */
/* Words only break when a single word can't fit a whole line (never "$70 / 0" or "experienci / a"). */
body { overflow-wrap: break-word; }
.nw { white-space: nowrap; }
.pname, .prof-name { display: block; }
.pname svg, .prof-name svg { display: inline-block; vertical-align: -0.12em; margin-left: 5px; }
.prof-name svg + svg { margin-left: 3px; }
.quick > div { padding: 12px 4px; min-width: 0; }
.quick b { font-size: clamp(1.4rem, 7.4vw, 1.9rem); white-space: nowrap; }
.quick b.word { font-size: clamp(1.05rem, 5vw, 1.3rem); }
.quick span { overflow-wrap: normal; hyphens: manual; }
.tsearch { padding: 0 8px; gap: 6px; }
.tsearch input { -webkit-appearance: none; appearance: none; }
.tsearch input::-webkit-search-decoration, .tsearch input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.shelf-head { gap: 12px; }
.shelf-head h2 { font-size: clamp(1.2rem, 5.6vw, 1.45rem); }
.shelf-head > :last-child { white-space: nowrap; flex: none; }
/* The message box hint stays on one line on small phones */
#chat-text::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Family confirms a home with a code */
.askbox { margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.askbox p { margin: 0; }
.askbox .code, .code-in { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.18em; color: var(--ink); }
.code-in { text-transform: uppercase; max-width: 11rem; font-size: 1.2rem; }
.cfrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.cfbox { display: flex; flex-direction: column; gap: 12px; }
.cfbox h2 { margin: 4px 0 0; }
.cfbox p { margin: 0; }
.homes .pending-chip { align-self: flex-start; }

/* Profile-complete bar */
.pbar { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; margin: 10px 0 8px; }
.pbar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.pclist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.pclist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pclist li span { min-width: 0; }
.pclist .btn { flex: none; }
/* Pay: amount + per month / per hour */
.payrow { display: flex; gap: 8px; max-width: 320px; }
.payrow .input:first-child { flex: 1; min-width: 0; }
.payrow select { flex: none; width: auto; }
/* Preview before verifying */
.pvcard { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.pvcard h2 { margin: 0; }
.pvcard > p { margin: 0; }
.pvrow { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.pvrow > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pvrec { display: inline-flex; align-items: center; gap: 3px; font-size: 0.78rem; font-weight: 600; color: var(--star); vertical-align: 1px; }
.pvrec svg { width: 13px; height: 13px; }
.check.bio { margin: 6px 0 12px; align-items: flex-start; }
.check.bio span { font-size: 0.9rem; line-height: 1.4; }
.todo { margin: 6px 0 10px; padding-left: 20px; } .todo li { margin: 2px 0; } .admsect { margin: 28px 4px 10px; font-size: 1.1rem; }
/* App lock (Face ID / fingerprint) */
.lockscreen { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.lockscreen p { margin: 0; color: var(--muted); }
.setrow.switch { cursor: pointer; }
.pkbtn { margin-bottom: 4px; }
.ordiv { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 0.85rem; }
.ordiv::before, .ordiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pkcard .btnrow { margin-top: 10px; }

.errstack{white-space:pre-wrap;font-size:.72rem;max-height:160px;overflow:auto;background:var(--soft,#f4f4f4);padding:8px;border-radius:8px}

/* ---- resume (hoja de vida) ---- */
.cv-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cv-doc { display: flex; flex-direction: column; gap: 18px; }
.cv-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cv-head h1 { font-size: 1.4rem; margin: 0; line-height: 1.2; }
.cv-role { margin: 4px 0 2px; font-weight: 600; }
.cv-badges { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); }
.cv-badges span { display: inline-flex; align-items: center; gap: 4px; }
.cv-badges svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.cv-sec h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 0 0 8px; font-family: var(--font); font-weight: 700; }
.cv-sec p { margin: 0 0 6px; }
.cv-list { margin: 0; padding-left: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; }
.cv-work { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cv-work li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cv-ok, .cv-ref { font-size: 0.75rem; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.cv-ok { color: var(--ok, #1b7a46); background: var(--brand-soft); }
.cv-ref { color: var(--muted); background: var(--bg); }
.cv-dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cv-dl div { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; gap: 10px; }
.cv-dl dt { color: var(--muted); }
.cv-dl dd { margin: 0; }
.cv-foot { font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin: 0; }
.prof .btn.sm svg, .cv-tools .btn svg { width: 16px; height: 16px; }
.cv-dl dt { overflow-wrap: normal; }
@media (max-width: 360px) { .cv-dl div { grid-template-columns: 1fr; gap: 0; } }

/* date of birth: day / month / year lists */
fieldset.dob3 { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.dob3 legend { padding: 0; margin-bottom: 6px; }
.dobrow { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; max-width: 360px; }
.dobrow .input { min-width: 0; padding-left: 10px; padding-right: 6px; }

/* "Nana Destacada" (like Airbnb's Superhost) */
.topbadge { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; width: fit-content; font-size: 0.78rem; font-weight: 700; color: #7A4E00; background: var(--mango-soft); border-radius: 999px; padding: 2px 9px 2px 5px; line-height: 1.5; }
.topbadge .topico { width: 15px; height: 15px; color: var(--star); flex: none; }
.prow .topbadge, .ncard .topbadge { margin: 2px 0; }
.topinfo { margin: 4px 0 2px; }
.topinfo > summary { list-style: none; cursor: pointer; display: inline-block; }
.topinfo > summary::-webkit-details-marker { display: none; }
.topinfo > p { margin: 6px 0 0; font-size: 0.88rem; color: var(--muted); }
.topcard h2 .topico { width: 22px; height: 22px; color: var(--star); }
.topcard.won { border: 1px solid var(--mango); background: linear-gradient(var(--mango-soft), var(--surface) 70%); }
.topgoals { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.topgoals li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; font-size: 0.92rem; }
.topgoals .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; color: #fff; }
.topgoals li.ok .tick { background: var(--ok); border-color: var(--ok); }
.topgoals b { font-size: 0.85rem; color: var(--muted); font-weight: 650; white-space: nowrap; }
.topgoals li.ok b { color: var(--ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbadge { color: var(--mango); } }
:root[data-theme="dark"] .topbadge { color: var(--mango); }

/* Settings: "Cerrar sesión" is the clear button; deleting the account is a quiet link under it. */
.signoutrow { padding-top: 14px; }
.delrow { display: flex; justify-content: center; padding-top: 6px; }
.quietlink { color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] { --rec: #F2B544; --rec-soft: #3D3424; }

/* "Por contestar" on interested families (instead of a number that looks like a count of families) */
.pendchip { display: inline-block; margin: 2px 0; font-size: 0.75rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 9px; width: fit-content; }
.recitem > div { display: flex; flex-direction: column; }
#theme-app { width: auto; max-width: 150px; }

/* "¿Qué necesitas?" categories on Inicio */
.cats { margin: 4px 0 6px; }
.cats h2 { margin: 0 0 10px; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.cat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 78px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.76rem; font-weight: 600; text-align: center; line-height: 1.2; cursor: pointer; transition: transform 160ms cubic-bezier(.23,1,.32,1), border-color 160ms ease; }
.cat:active { transform: scale(0.97); }
.cat:hover { border-color: var(--brand); }
.cat-ico { font-size: 1.5rem; line-height: 1; }
.cat-n { position: absolute; top: 6px; right: 8px; font-size: 0.7rem; font-weight: 700; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .cat { transition: none; } .cat:active { transform: none; } }

/* Services and prices in the worker form */
.sublbl { display: block; margin: 10px 0 6px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.svcrow { display: grid; grid-template-columns: 1fr 96px 130px; gap: 8px; align-items: center; margin-top: 8px; }
.svcrow .svcname { font-weight: 600; font-size: 0.92rem; }
.svcrow .input { min-width: 0; }
@media (max-width: 360px) { .svcrow { grid-template-columns: 1fr 1fr; } .svcrow .svcname { grid-column: 1 / -1; } }
.jobcat { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 4px; font-size: 0.8rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; }

/* Short description in lists, cut with "…" after two lines; long "Acerca de mí" folds with "Ver más". */
.aboutsnip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 4px; font-size: 0.86rem; line-height: 1.4; color: var(--muted); }
p.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

/* "Patrocinado" (paid boost): small and honest, different from the earned "Destacada" */
.sponsor { display: inline-block; width: fit-content; margin: 1px 0 2px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.boostcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.boostcard > div { display: flex; flex-direction: column; gap: 2px; }
.boostcard.on { flex-direction: column; align-items: flex-start; border: 1px solid var(--brand-soft); }

/* "Fotos de mi trabajo" */
.wgal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wgal-i { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); border: 0; padding: 0; cursor: zoom-in; }
.wgal-i img, .wgal-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wgal.edit .wgal-i { cursor: default; }
.wgal-open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.wgal-open:focus-visible, .wgal-i:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.wgal-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; padding: 0; }
.wgal-x svg { width: 20px; height: 20px; }
#wp-card { display: flex; flex-direction: column; gap: 10px; }
#wp-card h3 { margin: 0; }
label.file-btn.busy { opacity: .6; pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }
body.noscroll { overflow: hidden; }

/* Logros: Apple Watch-style medals, no boxes — just the medal, its name and what is missing */
.medals { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
.medal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.medal-svg { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18)); }
.medal:not(.on) .medal-svg { filter: none; }
.medal-svg text { font-family: var(--font); }
.medal-name { font-size: 0.82rem; font-weight: 800; line-height: 1.2; }
.medal:not(.on) .medal-name { color: var(--muted); }
.medal-hint { font-size: 0.72rem; font-weight: 600; color: var(--faint); line-height: 1.3; }
.medal.pop .medal-svg { animation: medalpop .8s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes medalpop { 0% { transform: scale(.3) rotateY(180deg); opacity: 0; } 100% { transform: scale(1) rotateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .medal.pop .medal-svg { animation: none; } }
.medals.pub { display: flex; flex-wrap: wrap; gap: 14px; }
.medal.sm { width: 96px; }
.medal.sm .medal-svg { width: 62px; height: 62px; }
canvas.confetti { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
.medal-svg svg { stroke-width: 2.4px; }

/* =====================================================================================
   CasaSafe design system v2 — modern and simple (rules taken from Airbnb's system):
   white canvas, near-black ink, ONE action color (teal), one font, few sizes
   (26 / 20 / 16 / 14 / 12), 4px spacing grid, hairline dividers instead of boxes,
   flat surfaces (the photos give the shape), 48px touch targets, line icons.
   ===================================================================================== */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --soft: #F4F6F6; --ink: #1B2224; --muted: #5C686A; --faint: #737E80; --line: #E3E7E8;
  --brand: #1877F2; --brand-hover: #166FE5; --brand-ink: #FFFFFF; --brand-soft: #E7F0FE; --brand-grad: #1877F2; --brand-dark: #0B4FB3;
  --mango: #E89F00; --mango-soft: #FFF3D6; --tile: #1877F2; --star: #E09A00;
  --ok: #12805C; --ok-soft: #E2F3EB; --wa: #1E8A4C; --danger: #C2361C; --danger-soft: #FCEBE7;
  --rec: #A56A00; --rec-soft: #FFF3D6;
  --a1bg: #E7F0FE; --a1fg: #0B4FB3; --a2bg: #FFF3D6; --a2fg: #8A5A00; --a3bg: #E2F3EB; --a3fg: #12805C; --a4bg: #EAEEFB; --a4fg: #3550A6;
  --shadow: none; --r-btn: 12px; --r-card: 16px; --lift: 0 2px 10px rgba(16, 24, 26, .08);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111516; --surface: #111516; --soft: #1C2224; --ink: #EEF2F2; --muted: #A9B4B6; --faint: #8D9799; --line: #283033;
  --brand: #2D88FF; --brand-hover: #4A9AFF; --brand-ink: #FFFFFF; --brand-soft: #14263F; --brand-grad: #2D88FF; --brand-dark: #1663D6;
  --mango: #F5B83D; --mango-soft: #33290F; --tile: #14263F; --star: #F5B83D; --ok: #4FD39A; --ok-soft: #10291F; --danger: #FF7D6B; --danger-soft: #3A1915;
  --rec: #F5B83D; --rec-soft: #33290F;
  --a1bg: #14263F; --a1fg: #8DBBFF; --a2bg: #33290F; --a2fg: #F5CB75; --a3bg: #10291F; --a3fg: #7FE0B0; --a4bg: #1B2340; --a4fg: #AFC0F5;
  --lift: 0 2px 12px rgba(0, 0, 0, .5); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #111516; --surface: #111516; --soft: #1C2224; --ink: #EEF2F2; --muted: #A9B4B6; --faint: #8D9799; --line: #283033;
  --brand: #2D88FF; --brand-hover: #4A9AFF; --brand-ink: #FFFFFF; --brand-soft: #14263F; --brand-grad: #2D88FF; --brand-dark: #1663D6;
  --mango: #F5B83D; --mango-soft: #33290F; --tile: #14263F; --star: #F5B83D; --ok: #4FD39A; --ok-soft: #10291F; --danger: #FF7D6B; --danger-soft: #3A1915;
  --rec: #F5B83D; --rec-soft: #33290F;
  --a1bg: #14263F; --a1fg: #8DBBFF; --a2bg: #33290F; --a2fg: #F5CB75; --a3bg: #10291F; --a3fg: #7FE0B0; --a4bg: #1B2340; --a4fg: #AFC0F5;
  --lift: 0 2px 12px rgba(0, 0, 0, .5); color-scheme: dark; }

/* Type: one family, five sizes, three weights */
body { font-size: 15px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
h1, h2, .prof-name, .quick b, .planprice strong, .logo span { font-family: var(--font); letter-spacing: -0.01em; }
h1 { font-size: 1.625rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
h3 { font-size: 1rem; font-weight: 600; }
strong, b { font-weight: 600; }
.muted, .sub { color: var(--muted); }
.hint, .small { font-size: 0.875rem; }

/* Surfaces: flat. Sections are separated by space and a hairline, not by boxes. */
.card, .auth-card { background: transparent; border: 0; border-radius: 0; box-shadow: none !important; }
.card.card-pad { padding: 24px 0; border-bottom: 1px solid var(--line); gap: 14px; }
.sec-title { padding: 24px 0 4px; }
.prow { padding: 16px 0; }
/* Notices (things that ask you to do something) get a soft grey plate */
.pkcard.card, .pushcard.card, .boostcard.card, .lookcard.card, .cfbox.card, .how.card, .status {
  background: var(--soft); border: 0 !important; border-radius: var(--r-card); padding: 18px; margin-top: 8px; }

/* Buttons: 48px tall for the main ones, 12px corners, one color for the main action */
.btn { border-radius: var(--r-btn); font-weight: 600; font-size: 0.95rem; min-height: 42px; padding: 10px 18px; border-width: 1px; box-shadow: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn.block { min-height: 50px; font-size: 1rem; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 0.875rem; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.outline:hover { background: var(--soft); }
.btn.neutral { background: var(--soft); color: var(--ink); border-color: transparent; }
.btn.neutral:hover { background: var(--line); }

/* Inputs */
.input, select.input, textarea.input { border-radius: var(--r-btn); border: 1px solid #C9D0D2; min-height: 48px; background: var(--surface); }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* Chips (filters, sort): pills; selected = solid ink */
.ftog { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; padding: 8px 14px; }
.ftog[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Top bar: white, hairline, search as a soft pill */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.tsearch { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; box-shadow: var(--lift); min-height: 44px; }
.tsearch svg { color: var(--ink); }
/* Bottom nav: hairline, the current tab in the action color */
.bottomnav { border-top: 1px solid var(--line); background: var(--surface); }
.bottomnav button { font-size: 0.72rem; font-weight: 500; color: var(--muted); border-top: 0 !important; }
.bottomnav button[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* Inicio greeting: just a clear title */
.hello { padding: 8px 0 0; gap: 4px; }
.hello h1 { font-size: 1.625rem; }

/* "¿Qué necesitas?": icons on soft round plates, no boxes */
.catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
.cat { border: 0; background: none; min-height: 0; padding: 0; gap: 8px; border-radius: 0; font-size: 0.8rem; font-weight: 500; color: var(--ink); }
.cat:hover { border: 0; }
.cat-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--brand); font-size: 0; }
.cat-ico svg { width: 26px; height: 26px; }
.cat:active .cat-ico { background: var(--brand-soft); }
.cat-n { top: -2px; right: calc(50% - 34px); min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 0.7rem; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.cat-name { line-height: 1.2; text-align: center; }

/* People: the photo carries the card (rounded photo, text below / beside, no frame) */
.pic.row { width: 84px; height: 98px; border-radius: 42px 42px 14px 14px; }
.pic.card { border-radius: 999px 999px 16px 16px; aspect-ratio: 4 / 5; }
.prof-hero { padding: 16px 0 0; background: none; }
.prof-hero .pic.hero { border-radius: 999px 999px 22px 22px; aspect-ratio: 4 / 5; max-width: 380px; max-height: none; margin: 0 auto; }
.prof-body { padding-left: 0; padding-right: 0; }
.prof-sec { padding-left: 0; padding-right: 0; }
.prow .pname, .ncard-name { font-size: 1rem; font-weight: 600; }
.prof-name { font-size: 1.625rem; font-weight: 700; }
.quick b { font-size: 1.375rem; font-weight: 700; }
.facts .price, .rate b { font-weight: 600; }
.headline { color: var(--muted); }

/* Chat: soft grey for theirs, brand for mine */
.bubble { background: var(--soft); border-radius: 18px 18px 18px 6px; }
.msg-row.mine .bubble { border-radius: 18px 18px 6px 18px; }

/* Welcome */
.welcome h1 { font-size: 2rem; line-height: 1.15; }
.choice { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: none; }
.choice:hover, .choice:focus-visible { border-color: var(--ink); }
.jobcat svg { width: 15px; height: 15px; flex: none; }

/* ---- Color, the Airbnb way: a strong action color (gradient on the big buttons), colorful service icons, gold stars. */
.btn.primary { background: var(--brand-grad); border-color: transparent; }
.btn.primary:hover { background: var(--brand-grad); filter: brightness(1.05); }
.tsearch svg { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); margin-left: -8px; }
.tsearch { padding-left: 14px; }
.msg-row.mine .bubble { background: var(--brand); color: var(--brand-ink); }
.progress span.on, .pbar > i, .topgoals li.ok .tick { background: var(--brand-grad) !important; }
/* each service has its own color */
.cat-ico { color: var(--c, var(--brand)); background: var(--cb, var(--soft)); }

.cat-ico svg { stroke-width: 2px; }
/* a little color in the greeting */
.hello h1 .wave { display: inline-block; }
.stars, .rate .st, .st { color: var(--star); }
.pbar { background: var(--soft); }
/* Welcome: the colorful service circles, overlapping, above the promise */
.wicons { display: flex; margin: 4px 0 18px; }
.wicons .cat { pointer-events: none; }
.wicons .cat + .cat { margin-left: -10px; }
.wicons .cat-ico { width: 52px; height: 52px; border: 3px solid var(--bg); }
/* Service icons are emojis (Abe's choice) on the colored circles */
.cat-ico { font-size: 1.6rem; line-height: 1; }
.wicons .cat-ico { font-size: 1.45rem; }

/* ---- Lively Inicio (PedidosYa / Marketplace / Encuentra24) ---- */
/* Banners that scroll sideways */
.promos { margin: 4px -16px 0; }
.promo-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 8px; scrollbar-width: none; }
.promo-row::-webkit-scrollbar { display: none; }
.promo { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; border: 0; border-radius: 20px; padding: 18px 16px 18px 18px; min-height: 128px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; color: #fff; position: relative; overflow: hidden; }
.promo-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.promo strong { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.promo-txt > span:not(.promo-cta) { font-size: 0.9rem; opacity: .92; }
.promo-cta { align-self: flex-start; margin-top: 8px; background: rgba(255, 255, 255, .95); color: #1B2224; font-weight: 700; font-size: 0.8rem; border-radius: 999px; padding: 6px 12px; }
.promo-emo { font-size: 3.4rem; line-height: 1; flex: none; transform: rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
.promo::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .14); z-index: 0; }
.promo > * { position: relative; z-index: 1; }
.p-pink { background: #1877F2; } .p-orange { background: #4C9BF7; } .p-teal { background: #0B4FB3; } .p-violet { background: #2F80ED; }
.promo:active { transform: scale(.98); }
/* Categories: a sideways row of colored tiles with big emojis */
.cats h2 { margin-bottom: 12px; }
.catgrid { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; grid-template-columns: none; }
.catgrid::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 76px; }
.cat-ico { width: 68px; height: 68px; border-radius: 20px; font-size: 2rem; }
.cat-name { font-size: 0.78rem; font-weight: 600; }
.cat-n { right: 0; top: -4px; }
/* 2-column photo grid */
.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.gcard { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; }
.gcard .pic.card { width: 100%; margin-bottom: 8px; }
.gprice { font-size: 1.05rem; font-weight: 700; }
.gname { font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 4px; min-width: 0; }
.gname svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.gline, .gmeta { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard:active { transform: scale(.98); }
.promo-row, .catgrid { scroll-padding-inline: 16px; }

/* No black accents: selected filters, counters and outline buttons use the brand blue */
.ftog[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cat-n { background: var(--brand); color: var(--brand-ink); }
.btn.outline { color: var(--brand); border-color: var(--brand); }
.btn.outline:hover { background: var(--brand-soft); }
.choice:hover, .choice:focus-visible { border-color: var(--brand); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.promo-cta { color: var(--brand-dark, #0B4FB3); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.promos { margin-top: 8px; }

/* Greeting: small hello + one big question (like PedidosYa / Rappi) */
.hello { padding: 10px 0 2px; gap: 2px; }
.hello-hi { font-size: 1rem; font-weight: 500; color: var(--muted); }
.hello h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
/* Banners: solid, saturated blue (no see-through circle, no pale blue) */
.promo::after { display: none; }
.p-pink { background: linear-gradient(135deg, #1877F2 0%, #0B5ED7 100%); }
.p-orange { background: linear-gradient(135deg, #0B5ED7 0%, #0848A8 100%); }
.p-teal { background: linear-gradient(135deg, #1A6FE0 0%, #0D4FB8 100%); }
.p-violet { background: linear-gradient(135deg, #1877F2 0%, #0B5ED7 100%); }
.promo { box-shadow: 0 6px 16px rgba(24, 119, 242, .28); }
.promo strong { font-size: 1.3rem; }
.promo-txt > span:not(.promo-cta) { opacity: 1; }
.promo-emo { font-size: 3.8rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.promo-cta { color: #0B5ED7; }
/* Banners: flat, vivid, real colors (no gradients) */
.promo { box-shadow: none; }
.p-pink { background: #1877F2; color: #fff; }
.p-orange { background: #FF7A00; color: #fff; }
.p-teal { background: #FFC93C; color: #0B2E6B; }
.p-violet { background: #12B76A; color: #fff; }
.p-teal .promo-cta { background: #0B2E6B; color: #fff; }
.p-pink .promo-cta { color: #1877F2; } .p-orange .promo-cta { color: #D45F00; } .p-violet .promo-cta { color: #0A8F52; }
/* Banners: deeper, richer versions of the same colors */
.p-pink { background: #0A58CA; color: #fff; }
.p-orange { background: #E04F00; color: #fff; }
.p-teal { background: #D18A00; color: #fff; }
.p-violet { background: #0B7F46; color: #fff; }
.p-teal .promo-cta { background: #fff; color: #9C6600; }
.p-pink .promo-cta { color: #0A58CA; } .p-orange .promo-cta { color: #B33F00; } .p-violet .promo-cta { color: #0B7F46; }
/* Banners with a real photo: the photo fills the card, a soft dark fade on the left keeps the text readable */
.promo.photo { background: #1B2A3A; color: #fff; min-height: 150px; align-items: flex-end; padding: 18px; }
.promo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0 !important; }
.promo.photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(10, 18, 30, .78) 0%, rgba(10, 18, 30, .45) 55%, rgba(10, 18, 30, .05) 100%); }
.promo.photo .promo-txt { max-width: 72%; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.promo.photo .promo-cta { background: #fff; color: var(--brand); text-shadow: none; }
.promo.photo .promo-img { z-index: 0 !important; }
.promo.photo::before { z-index: 1; background: linear-gradient(90deg, rgba(8, 14, 24, .86) 0%, rgba(8, 14, 24, .62) 48%, rgba(8, 14, 24, .12) 100%); }
.promo.photo .promo-txt { z-index: 2; }
/* Profile numbers stay big and easy to read */
.quick b { font-size: 1.75rem; }
/* Welcome circles: only as wide as the circles themselves, so all six fit on small phones */
.wicons .cat { flex: 0 0 auto; }
.backrow .backtitle { margin-left: 6px; font-size: 1.05rem; font-weight: 600; }
/* Buscar: say what you are looking at first (service, what it is, how many, what tapping does), tools in one small row, then the people */
.srchead { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 2px; }
.srchead .backbtn { align-self: flex-start; }
.srch-top { display: flex; align-items: center; gap: 14px; }
.srch-ico { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--tile, #F2F4F5); display: grid; place-items: center; font-size: 30px; line-height: 1; }
.srchead h1 { font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.srch-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.srch-count { margin: 0; font-size: 0.95rem; color: var(--muted); }
.srch-count b { color: var(--ink); }
.srchead .linkbtn { align-self: flex-start; }
.srch-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 4px; }
.srch-tools .tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 0.9rem; font-family: inherit; min-height: 40px; }
.srch-tools .tool svg { width: 16px; height: 16px; }
.srch-tools .tool[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.srch-tools .sortsel { color: var(--muted); }
.srch-tools .sortsel select { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; padding: 0 2px; appearance: auto; }
.srch-chips { padding: 0 4px; }
.fpanel.card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.alertcard h3 { margin: 0; font-size: 1.05rem; }
.alertcard h3 svg { width: 18px; height: 18px; }
/* Worker page: say what it is, then three tappable numbers */
.whello { padding: 4px 4px 0; }
.whello .srch-sub { margin-top: 6px; }
.wtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.wtile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 12px; font-family: inherit; color: var(--ink); min-height: 88px; }
.wtile b { font-size: 1.6rem; line-height: 1; color: var(--brand); }
.wtile span { font-size: 0.82rem; color: var(--muted); line-height: 1.25; font-weight: 600; }
.svcchips { display: flex; gap: 8px; overflow-x: auto; margin: 2px -4px 0; padding: 2px 4px 6px; scrollbar-width: none; }
.svcchips::-webkit-scrollbar { display: none; }
.svcchip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 0.9rem; min-height: 40px; }
.svcchip span { font-size: 1.05rem; line-height: 1; }
/* "Subir": three packages */
.boostopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.boostopt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px 8px 14px; font: inherit; color: var(--ink); }
.boostopt b { font-size: 1.05rem; }
.boostopt .price { font-size: 1.25rem; font-weight: 700; color: var(--brand); }
.boostopt:active, .boostopt:hover { border-color: var(--brand); }
.boostpop { position: absolute; top: -10px; background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.boostcard.on { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* "Recomendada por familias de tu zona" */
.famrec { display: inline-flex; align-items: center; gap: 6px; color: var(--ok, #0E8A4F); font-weight: 600; font-size: 0.85rem; }
.famrec svg { width: 15px; height: 15px; flex: none; }
.famrec.big { display: flex; align-items: flex-start; font-size: 0.95rem; margin: 6px 0 0; }
.famrec.big svg { width: 18px; height: 18px; margin-top: 2px; }
.famrec.big span { font-weight: 500; color: var(--ink); } .famrec.big b { color: var(--ok, #0E8A4F); }
.recblock h3 { margin: 0 0 4px; }
/* Voice notes */
.chat-input .micbtn { padding: 0 12px; min-width: 44px; }
.chat-input .micbtn svg { width: 20px; height: 20px; }
.recbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 2px; }
.recbar .recdot { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: recpulse 1s infinite; }
.recbar .rectime { font-weight: 700; font-variant-numeric: tabular-nums; }
.recbar .sub { flex: 1; }
@keyframes recpulse { 50% { opacity: .3; } }
.bubble.voice { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.bubble.voice .vplay { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; }
.msg-row.mine .bubble.voice .vplay { background: #fff; color: var(--brand); }
.bubble.voice .vplay svg { width: 16px; height: 16px; }
.bubble.voice .vbar { flex: 1; height: 4px; border-radius: 4px; background: rgba(127,127,127,.3); overflow: hidden; }
.bubble.voice .vbar i { display: block; height: 100%; width: 0; background: currentColor; }
.bubble.voice .vdur { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.bubble.voice .msg-time { position: static; }
.bubble.voice { flex-direction: row; flex-wrap: wrap; width: 240px; max-width: 80%; padding-bottom: 6px; }
.bubble.voice .msg-time { width: 100%; text-align: right; margin-top: -2px; }
.bubble.voice .vbar { display: block; height: 4px; flex: 1 1 60px; align-self: center; }
/* Voice notes like WhatsApp: play/pause, a bar you can drag back and forth, speed */
.bubble.voice { width: 270px; }
.bubble.voice .vbar { display: none; }
.bubble.voice .vseek { flex: 1 1 80px; min-width: 60px; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; accent-color: currentColor; cursor: pointer; }
.bubble.voice .vseek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(127,127,127,.35); }
.bubble.voice .vseek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: currentColor; margin-top: -5px; }
.bubble.voice .vseek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(127,127,127,.35); }
.bubble.voice .vseek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: currentColor; }
.bubble.voice .vspeed { flex: none; border: 0; border-radius: 999px; padding: 2px 8px; font: inherit; font-size: 0.75rem; font-weight: 700; background: rgba(127,127,127,.18); color: inherit; min-width: 36px; }
.msg-row.mine .bubble.voice .vspeed { background: rgba(255,255,255,.22); }
.recbar .iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; }
.recbar .iconbtn svg { width: 18px; height: 18px; }
.recbar .rectrash { color: #E5484D; }
.recbar .recplay { color: var(--brand, #1F6FEB); }
.recbar .recdot.off { animation: none; background: var(--muted); }

/* Reply to a message (like WhatsApp) */
.rquote { display: flex; flex-direction: column; gap: 1px; text-align: left; font: inherit; color: inherit; background: rgba(127,127,127,.14); border: 0; border-left: 3px solid var(--brand); border-radius: 8px; padding: 5px 8px; margin: 0 0 4px; min-width: 0; max-width: 100%; }
.msg-row.mine .rquote { background: rgba(255,255,255,.2); border-left-color: #fff; }
.rquote strong { font-size: 0.78rem; }
.rquote span { font-size: 0.82rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble.voice .rquote { width: 100%; }
.replybar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--brand); }
.replybar[hidden] { display: none; }
.replybar.rin { animation: rin .22s cubic-bezier(.2,.8,.2,1); }
@keyframes rin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.replybar > svg { width: 20px; height: 20px; flex: none; }
.replybar .rquote { flex: 1; color: var(--ink); margin: 0; }
.replybar .iconbtn { flex: none; color: var(--muted); }
/* the message follows the finger sideways only, then springs back */
.msg-row { position: relative; touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .25s cubic-bezier(.2,.9,.3,1.2); will-change: transform; }
.msg-row.swiping { transition: none; }
.rswipe { position: absolute; left: -34px; top: 50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); opacity: 0; transform: translateY(-50%) scale(.5); transition: opacity .2s, background .15s, color .15s; pointer-events: none; }
.rswipe svg { width: 16px; height: 16px; }
.rswipe.on { background: var(--brand); color: #fff; }
.msg-row.flash .bubble { animation: rflash 1.2s ease-out; }
@keyframes rflash { 0%, 40% { box-shadow: 0 0 0 4px rgba(127,127,127,.45); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Récord policivo */
.recbox { display: grid; gap: 8px; }
.recbox h3 { margin: 0; }
.recbox .recstate { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.recbox .recstate svg { width: 18px; height: 18px; flex: none; }
.recbox .recstate.ok { color: var(--ok, #1a7f37); }
.recbox .recstate.bad { color: #E5484D; }
.stepbox .recbox { padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.recbox .recpart { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.refline { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 0.95rem; }
.refline svg { width: 16px; height: 16px; flex: none; }
.recbadge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 3px 8px; border-radius: 999px; background: #E8F5EC; color: #1a7f37; font-size: 0.75rem; font-weight: 700; }
.recbadge svg { width: 12px; height: 12px; }
.gcard, .ncard, .prof-hero { position: relative; }
.gcard > .recbadge, .ncard > .recbadge, .prof-hero > .recbadge { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.prof-hero > .recbadge { top: 12px; left: 12px; font-size: 0.85rem; }
.recbadge.demo { margin: 2px 0 4px; }
.recbox #rec-part { display: grid; gap: 6px; }
.jobsteps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 0.95rem; }
.whello .btnrow { margin-top: 10px; }

/* Trabaja con (companies, part 1) */
.cocard { display: grid; gap: 10px; }
.cocard h2 { margin: 0; }
.corow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.corow > span:first-child { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.corow svg { width: 16px; height: 16px; flex: none; color: #1a7f37; }
.corow.col { flex-direction: column; align-items: stretch; }
.cofind { display: flex; gap: 8px; }
.cofind .input { flex: 1; min-width: 0; }
.coowned { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.coowned h3 { margin: 0; font-size: 1rem; }
.coadd { display: grid; gap: 8px; }
.cocreate summary { cursor: pointer; font-weight: 600; color: var(--brand, #1877F2); }
.cosure { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.linkbtn.danger { color: #E5484D; }
.coline { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-weight: 600; }
.coline svg { width: 16px; height: 16px; flex: none; }
.coline svg:last-child { color: #1a7f37; }
