/* Kandiala — styles. Palette: warm sand, deep ink, teal action, sunflower highlight. */
:root {
  --bg: #f7f4ee; --surface: #ffffff; --ink: #111827; --muted: #5b6270; --line: #e4ded3;
  --accent: #0f766e; --accent-ink: #ffffff; --accent-soft: #e3f1ef; --sun: #f5c84b; --sun-soft: #fdf3d3;
  --ok: #1f7a4d; --ok-soft: #e2f3ea; --warn: #9a6400; --warn-soft: #fbf0d9; --bad: #a3343a; --bad-soft: #f8e3e4;
  --display: "Bricolage Grotesque", "IBM Plex Sans", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons & inputs ---------- */
button, .btn { font: 600 14.5px var(--body); border-radius: 999px; padding: 10px 18px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; }
button:hover, .btn:hover { background: #2b3444; }
.btn.accent, button.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover, button.accent:hover { background: #0c5f58; }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); }
button.ghost:hover, .btn.ghost:hover { background: rgba(17,24,39,.06); }
button.small, .btn.small { padding: 6px 12px; font-size: 13px; }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button:disabled { opacity: .5; cursor: not-allowed; }
label { display: grid; gap: 5px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
label > strong { color: var(--ink); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 130px; resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 400; }
.check input { flex: none; margin-top: 2px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--accent); font-weight: 800; }

/* ---------- Landing ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(247,244,238,.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .in { max-width: 1160px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-head nav { display: flex; gap: 8px; align-items: center; }
.site-head nav a.link { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 10px; }
@media (max-width: 720px) { .site-head nav a.link { display: none; } }

.hero { max-width: 1160px; margin: 0 auto; padding: 56px 22px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--sun-soft); color: #7a5a00; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.hero h1 { font: 800 clamp(40px, 6vw, 68px)/1.02 var(--display); letter-spacing: -.035em; margin: 18px 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62%); padding: 0 .06em; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero .cta .btn { padding: 14px 24px; font-size: 16px; }
.hero .fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.mock { position: relative; }
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(17,24,39,.35); padding: 18px; display: grid; gap: 12px; }
.mock-row { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px; }
.mock-row.s2 { border-left-color: var(--sun); }
.mock-row.s3 { border-left-color: #94a3b8; }
.mock-av { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.mock-row div { flex: 1; min-width: 0; }
.mock-row strong { display: block; font-size: 14.5px; }
.mock-row span { font-size: 13px; color: var(--muted); }
.mock-bubble { position: absolute; right: -10px; bottom: -26px; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-size: 14px; max-width: 260px; box-shadow: 0 14px 30px -12px rgba(17,24,39,.5); }
.mock-bubble b { color: var(--sun); }
@media (max-width: 900px) { .mock-bubble { right: 8px; } }

.band { max-width: 1160px; margin: 0 auto; padding: 70px 22px; }
.band h2 { font: 800 clamp(28px, 4vw, 42px)/1.1 var(--display); letter-spacing: -.025em; margin: 0 0 10px; text-wrap: balance; }
.band > p.sub { color: var(--muted); font-size: 17px; max-width: 60ch; margin: 0 0 34px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--accent); }
.feature h3 { margin: 6px 0 0; font: 700 19px/1.25 var(--display); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; padding: 22px; border-top: 3px solid var(--ink); }
.step::before { content: counter(s, decimal-leading-zero); font: 800 34px var(--display); color: var(--accent); }
.step h3 { margin: 6px 0 6px; font: 700 19px var(--display); }
.step p { margin: 0; color: var(--muted); }
.free { background: var(--ink); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.free h2 { color: #fff; }
.free p { color: #c9cfd8; margin: 0; font-size: 17px; }
.free ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.free li { display: flex; gap: 10px; align-items: center; }
.free li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23111827' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.free .btn { background: var(--sun); color: var(--ink); border-color: var(--sun); margin-top: 22px; }
@media (max-width: 800px) { .free { grid-template-columns: 1fr; padding: 32px 24px; } }
.site-foot { border-top: 1px solid var(--line); margin-top: 30px; }
.site-foot .in { max-width: 1160px; margin: 0 auto; padding: 26px 22px 40px; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-side { background: var(--ink); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand { color: #fff; }
.auth-side h2 { font: 800 40px/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 14px; max-width: 14ch; }
.auth-side p { color: #c9cfd8; max-width: 42ch; }
.auth-side .quote { border-left: 3px solid var(--sun); padding-left: 14px; color: #e5e7eb; }
.auth-main { padding: 40px 24px; display: grid; place-items: center; }
.auth-box { width: 100%; max-width: 520px; display: grid; gap: 18px; }
.auth-box .brand { display: none; }
@media (max-width: 900px) { .auth-box .brand { display: inline-flex; } }
.auth-box h1 { font: 800 32px/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.auth-box p.sub { margin: -8px 0 0; color: var(--muted); }
.form { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 5px 10px; font-size: 12.5px; background: transparent; color: var(--muted); border: 0; }
.meter { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }
.err { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.okmsg { background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.field-err { color: var(--bad); font-size: 12.5px; }
.switch { text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- App shell ---------- */
.app-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.app-head .in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.user-chip .av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; overflow: hidden; }
.user-chip .av img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .user-chip .nm { display: none; } }
.tabs-bar { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs-bar button { background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 14px; font-weight: 600; white-space: nowrap; }
.tabs-bar button:hover { color: var(--ink); background: transparent; }
.tabs-bar button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--sun-soft); color: #7a5a00; font-size: 12px; text-align: center; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 20px 70px; display: grid; gap: 20px; }
section.view { display: grid; gap: 16px; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.view-head h2, section.view > h2, section.view > div > h2 { font: 800 28px/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; max-width: 75ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
h3.mini { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.note { font-size: 13.5px; color: var(--muted); }
.banner { border-radius: 10px; padding: 12px 14px; font-size: 14px; background: var(--sun-soft); color: #6b4f00; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.err { background: var(--bad-soft); color: var(--bad); }

/* Stats & cards */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 12px; padding: 12px 14px; border: 2px solid transparent; display: grid; gap: 2px; background: var(--surface); }
.stat b { font: 800 28px var(--display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat.active, .stat:hover { border-color: var(--ink); }
.stat:focus-visible { outline: 2px solid var(--accent); }
.stat.f-saved b { color: var(--accent); } .stat.f-sent b { color: var(--ok); } .stat.f-gone b { color: var(--bad); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px; display: grid; gap: 10px; cursor: pointer; align-content: start; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px -12px rgba(17,24,39,.25); transform: translateY(-1px); }
.card.g-sent { border-left-color: var(--ok); }
.card.g-gone { border-left-color: var(--bad); opacity: .75; }
.c-top { display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 17px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.c-name { min-width: 0; flex: 1; }
.c-name h3 { margin: 0; font-size: 15.5px; line-height: 1.25; }
.c-name .role { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.c-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.c-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sp { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.sp-saved { background: var(--accent-soft); color: var(--accent); }
.sp-sent { background: var(--ok-soft); color: var(--ok); }
.sp-gone { background: var(--bad-soft); color: var(--bad); }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--sun-soft); color: #7a5a00; white-space: nowrap; }
.done-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 2px; }
.empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 34px; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--muted); background: var(--surface); }
.empty h3 { margin: 0; color: var(--ink); font: 700 19px var(--display); }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, .4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(800px, 100vw); background: var(--bg); border-left: 1px solid var(--line); z-index: 50; overflow-y: auto; box-shadow: -12px 0 40px rgba(0,0,0,.18); }
.dr-head { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 20px 0; display: grid; gap: 12px; grid-template-columns: 1fr auto; }
.dr-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dr-id h2 { font: 800 21px var(--display); margin: 0; }
.dr-id .role { color: var(--muted); font-size: 14px; }
button.icon { background: transparent; color: var(--muted); border: 1px solid var(--line); width: 38px; height: 38px; padding: 0; font-size: 20px; }
.dr-tabs { grid-column: 1 / -1; display: flex; gap: 2px; }
.dr-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); padding: 8px 14px; }
.dr-tabs button:hover { background: transparent; color: var(--ink); }
.dr-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.dr-body { padding: 20px; display: grid; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

/* Letter & deck preview */
.letter { display: grid; gap: 10px; }
.letter-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.out { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; min-height: 60px; font-size: 14.5px; }
.sheet { background: #fff; color: #111827; max-width: 720px; width: 100%; margin: 4px auto; padding: 40px 48px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 24px rgba(0,0,0,.08); font: 14.5px/1.55 Calibri, Carlito, "IBM Plex Sans", sans-serif; display: grid; gap: 12px; }
.sheet .s-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.sheet .s-name { font-size: 21px; font-weight: 700; line-height: 1.2; }
.sheet .s-contact { color: #4b5563; font-size: 12px; line-height: 1.5; }
.sheet .s-logo img { max-width: 160px; max-height: 60px; display: block; }
.sheet .s-logo button { all: unset; cursor: pointer; border: 1.5px dashed #c9c3b8; color: #4b5563; border-radius: 6px; padding: 14px 16px; font-size: 12px; text-align: center; }
.sheet hr { border: 0; border-top: 1.5px solid #0f766e; margin: 2px 0 10px; width: 100%; }
.sheet .s-muted { color: #4b5563; }
.sheet .s-subject { color: #0f766e; font-weight: 700; }
.sheet p { margin: 0; }
.sheet .s-body { display: grid; gap: 10px; }
.sheet .s-body p { text-align: justify; }
@media (max-width: 560px) { .sheet { padding: 24px 20px; } }
.deck { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .wrap .deck { grid-template-columns: 1fr 1fr; } }
.slide { container-type: inline-size; position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 24px rgba(0,0,0,.08); font-family: Arial, Helvetica, sans-serif; }
.slide > * { position: absolute; margin: 0; }
.slide .tx { line-height: 1.22; white-space: pre-wrap; overflow: hidden; }

/* Search links */
.qlist { display: grid; gap: 10px; }
.qrow { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; background: var(--surface); }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
code.q { font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; word-break: break-word; }
.howto { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }

/* Training & Must know */
.tn-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 800px) { .tn-grid { grid-template-columns: 1fr; } }
.chiplist { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; }
.chip-btn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 13.5px; }
.chip-btn:hover, .chip-btn.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.chip-btn .sp { justify-self: start; margin-top: 4px; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ok); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.person { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-size: 13.5px; }
.qlist2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: q; }
.q2 { counter-increment: q; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.q2.answered { border-left-color: var(--ok); }
.q2-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.q2-head::before { content: counter(q); font: 800 19px var(--display); color: var(--accent); margin-right: 4px; }
.q2-q { margin: 0; font-size: 16px; font-weight: 600; }
.q2 textarea { min-height: 90px; }
.outline { margin: 0; padding-left: 20px; font-size: 14px; }
.fb { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 10px; }
.fb-score { font: 800 26px var(--display); color: var(--ok); }
.fb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; }
.fb-cols ul { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 640px) { .fb-cols { grid-template-columns: 1fr; } }
.better { margin: 4px 0 0; background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.mk .lead { font-size: 16px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.facts > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.mk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mk h4 { margin: 4px 0; font-size: 14px; color: var(--accent); }
.mk p { margin: 0; }
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.news li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; }
.callout { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; }
.spinner { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Profile */
.prof-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .prof-grid { grid-template-columns: 1fr; } }
.photo-row { display: flex; gap: 14px; align-items: center; }
.photo-row .ph { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 800 24px var(--display); overflow: hidden; flex: none; }
.photo-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.usage { display: grid; gap: 6px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px; }
.legal h1 { font: 800 38px/1.1 var(--display); letter-spacing: -.02em; }
.legal h2 { font: 700 21px var(--display); margin-top: 30px; }
.legal .todo { background: var(--sun-soft); padding: 2px 6px; border-radius: 4px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 80; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.btn { white-space: nowrap; }
@media (max-width: 480px) { .hide-sm { display: none; } }

/* ---------- Free-features v2 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .grid3 { grid-template-columns: 1fr; } }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .fields.three { grid-template-columns: 1fr; } }
.sub-panel { background: var(--bg); padding: 14px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Panel */
.dash { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 14px; }
.dash2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr 1fr; } .dash > :last-child { grid-column: 1 / -1; } .dash2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dash { grid-template-columns: 1fr; } }
.goal-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.goal-num b { font: 800 46px/1 var(--display); color: var(--ink); }
.goal-num input { width: 64px; padding: 4px 8px; text-align: center; font-weight: 700; }
.progress.big { height: 10px; }
.panel:has(> .funnel) { container-type: inline-size; }
.funnel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
@container (min-width: 540px) { .funnel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.funnel > * { min-width: 0; }
.fn { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 14px 8px; border-radius: 12px; background: var(--bg); text-align: center; }
.fn b { font: 800 28px/1 var(--display); }
.fn span { font-size: 13px; line-height: 1.25; color: var(--muted); font-weight: 600; max-width: 100%; overflow-wrap: break-word; }
.bars { position: relative; height: 170px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; padding-top: 4px; }
.bar { height: 100%; display: grid; grid-template-rows: 16px 1fr 18px; align-items: end; justify-items: center; }
.bar .v { font-size: 12px; font-weight: 700; }
.bar .b { width: 70%; background: var(--accent-soft); border-radius: 6px 6px 2px 2px; min-height: 2px; align-self: end; }
.bar.now .b { background: var(--accent); }
.bar .l { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.goal-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--sun); pointer-events: none; }
.goal-line span { position: absolute; right: 0; top: -17px; font-size: 10.5px; color: #7a5a00; background: var(--surface); padding: 0 4px; }
.todo { display: grid; gap: 8px; }
.todo-i { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
@media (max-width: 560px) { .todo-i { grid-template-columns: 1fr; } }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.t-iv { background: #ece6f8; color: #5b3fa0; } .t-late { background: var(--bad-soft); color: var(--bad); } .t-next { background: var(--sun-soft); color: #7a5a00; } .t-ok { background: var(--ok-soft); color: var(--ok); }
.onboard { border-color: var(--sun); background: #fffdf5; }
.steps-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.steps-mini a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.steps-mini a.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }

/* Cards: match score */
.score { flex: none; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.score.s3 { background: var(--ok-soft); color: var(--ok); } .score.s2 { background: var(--sun-soft); color: #7a5a00; } .score.s1 { background: var(--bad-soft); color: var(--bad); }

/* Contacts */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.contact input { padding: 7px 10px; font-size: 14px; }
@media (max-width: 640px) { .contact { grid-template-columns: 1fr 1fr; } }

/* Match */
.match-head { display: flex; gap: 18px; align-items: center; }
.ring { --c: var(--bad); width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.ring.s2 { --c: var(--sun); } .ring.s3 { --c: var(--ok); }
.ring b { width: 74px; height: 74px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: 800 22px var(--display); }
.kws { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.kw.yes { background: var(--ok-soft); color: var(--ok); } .kw.no { background: var(--bad-soft); color: var(--bad); }
.hint { background: var(--sun-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 2; }

/* Letter & deck editors */
.letter-edit { min-height: 280px; font: 14.5px/1.6 var(--body); }
.deck-form { display: grid; gap: 12px; }
.deck-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; background: var(--surface); }
.deck-form legend { font-weight: 700; font-size: 13.5px; padding: 0 6px; }
.deck-form input { padding: 7px 10px; font-size: 14px; }
.deck-form .hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.deck-form .hl > div { display: grid; gap: 4px; }
.deck-form .pair { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.deck-form .trio { display: grid; grid-template-columns: 110px 1fr 2fr; gap: 8px; }
@media (max-width: 640px) { .deck-form .hl, .deck-form .pair, .deck-form .trio { grid-template-columns: 1fr; } }

/* Prepare */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.link-card { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.link-card:hover { border-color: var(--accent); color: var(--accent); }

/* CV builder */
.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .cv-grid { grid-template-columns: 1fr; } }
.cv-preview { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; border-radius: 8px; }
@media (max-width: 980px) { .cv-preview { position: static; max-height: none; } }
.cv-sec { display: grid; gap: 10px; }
.cv-entry { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: var(--bg); }
.cv-entry-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cv-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cv-fields input { padding: 7px 10px; font-size: 14px; }
@media (max-width: 640px) { .cv-fields { grid-template-columns: 1fr 1fr; } }
.cv-sheet { padding: 36px 40px; font-size: 13px; gap: 8px; }
.cv-sheet .cv-headline { color: #0f766e; font-size: 14px; margin: 2px 0; }
.cv-sheet .cv-h { margin: 8px 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; }
.cv-sheet .cv-item { margin-bottom: 6px; }
.cv-sheet .cv-ih { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cv-sheet .cv-ih span { color: #4b5563; font-size: 12px; }
.cv-sheet ul { margin: 3px 0 0; padding-left: 18px; }

/* Interviews */
.star { background: var(--ink); color: #fff; border: 0; }
.star-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .star-grid { grid-template-columns: 1fr 1fr; } }
.star-grid div { background: rgba(255,255,255,.07); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; font-weight: 600; }
.star-grid b { color: var(--sun); font: 800 22px var(--display); }
.star-grid span { color: #c9cfd8; font-weight: 400; font-size: 13.5px; }
.q2 details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.stars { display: inline-flex; }
.star-b { background: none; border: 0; color: var(--line); font-size: 22px; padding: 0 2px; }
.star-b:hover { background: none; color: var(--sun); }
.star-b.on { color: var(--sun); }
.practice { background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: 20px; display: grid; gap: 12px; }
.practice .pq { font: 800 24px/1.25 var(--display); margin: 0; }
.clock { font: 800 30px var(--display); font-variant-numeric: tabular-nums; min-width: 80px; }
.clock.over { color: var(--bad); }
.contact button { justify-self: start; align-self: center; }
#iq-practice, .practice, .dr-body { scroll-margin-top: 120px; }

/* Legal pages, contact, public profile */
.legal mark.todo, mark.todo { display: inline; background: var(--sun-soft); color: #6b4f00; padding: 1px 6px; border-radius: 4px; }
.legal ul { padding-left: 20px; }
.lang-switch { display: flex; gap: 4px; flex-wrap: wrap; }
.lang-switch a, .lang-switch button { font-size: 13px; padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid transparent; background: transparent; font-weight: 600; }
.lang-switch a.on, .lang-switch button.on { color: var(--ink); border-color: var(--line); background: var(--surface); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.public-cv { background: var(--bg); }
.pub-wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 16px; }
.pub-bar { display: flex; justify-content: space-between; align-items: center; }
.pub-sheet { max-width: none; }
.pub-head { display: flex; gap: 20px; align-items: center; }
.pub-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.pub-sheet h1.s-name { margin: 0; font-size: 26px; }
.pub-sheet .cv-h { font-size: 12px; }
@media print { .no-print { display: none !important; } body, .public-cv { background: #fff; } .pub-sheet { box-shadow: none; padding: 0; } .pub-wrap { padding: 0; } }

/* ---------- v3: board, contacts, guides, admin, CV formats ---------- */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { background: transparent; color: var(--muted); border: 0; }
.seg button:hover { background: var(--bg); color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #efeae1; border-radius: 14px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 300px; }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.col-b { display: grid; gap: 8px; min-height: 220px; align-content: start; border-radius: 10px; transition: background .15s; }
.col-b.over { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: 2px; }
.col-empty { text-align: center; padding: 20px 0; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; cursor: grab; }
.kcard.dragging { opacity: .5; }
.kcard .c-name h3 { font-size: 14.5px; }
.kmove { display: flex; justify-content: space-between; }
.kmove button { padding: 2px 10px; }
.hbars { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 36px; gap: 10px; align-items: center; font-size: 13.5px; }
.hb-bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.hb-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.hb b { text-align: right; }
.ver-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.reject { border-color: var(--bad-soft); }
.bm-intro { margin: 0 0 14px; color: var(--muted); max-width: 70ch; }
.bm-tabs { display: inline-flex; justify-self: start; width: max-content; margin-bottom: 16px; }
.bm-tabs [aria-selected="true"] { background: var(--ink); color: #fff; }
.bm-link { cursor: grab; justify-self: start; margin-top: 4px; }
.bm-steps { list-style: none; counter-reset: bm; margin: 0; padding: 0; display: grid; gap: 14px; }
.bm-steps li { counter-increment: bm; position: relative; padding-left: 44px; display: grid; gap: 4px; justify-items: start; }
.bm-steps li::before { content: counter(bm); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 15px/30px var(--display); text-align: center; }
.bm-steps strong { font-size: 15.5px; }
.bm-d { color: var(--muted); }
.bm-keys { display: inline-flex; gap: 6px; align-items: center; margin-top: 2px; }
kbd { display: inline-block; min-width: 30px; padding: 3px 8px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px; background: #fff; font: 600 14px/1.4 var(--body, inherit); text-align: center; color: var(--ink); }
.is-mac .k-win, .is-win .k-mac { display: none; }
.bm-tip { margin: 16px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.bm-alt { margin-top: 12px; }
.bm-alt summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.bm-alt p { color: var(--muted); margin: 8px 0; }
.bm-os { margin: 4px 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bm-os ~ .bm-os { margin-top: 20px; }
/* mini illustration of a browser with the button in the bookmarks bar */
.bm-demo { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 18px; max-width: 520px; background: #fff; box-shadow: 0 6px 18px rgba(17,24,39,.06); }
.bm-demo-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #efeae2; }
.bm-demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6cfc4; }
.bm-demo-url { margin-left: 8px; flex: 1; background: #fff; border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--muted); }
.bm-demo-marks { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: #f8f5f0; }
.bm-demo-ph { width: 54px; height: 10px; border-radius: 5px; background: #e4ded4; }
.bm-demo-pill { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 10px; box-shadow: 0 0 0 3px rgba(245,200,75,.7); }
.bm-demo-cursor { width: 18px; height: 18px; fill: var(--ink); stroke: #fff; stroke-width: 1.5; margin-left: -12px; margin-top: 14px; }
.bm-demo-page { padding: 12px 14px; display: grid; gap: 7px; }
.bm-demo-page b { width: 46%; height: 12px; border-radius: 6px; background: #d9e7e4; }
.bm-demo-page span { height: 8px; border-radius: 4px; background: #eee9e1; } .bm-demo-page .short { width: 60%; }
.contacts { display: grid; gap: 10px; }
.ct { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ct.due { border-left-color: var(--warn); }
.ct-main { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ct-meta { display: grid; gap: 4px; justify-items: start; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 900px) { .ct { grid-template-columns: 1fr; } }
.guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: g; }
.guide li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.guide li.done { border-color: var(--ok); background: #f7fbf8; }
.guide li p { margin: 0 0 0 28px; color: var(--muted); font-size: 14.5px; }
.guide li .row { margin-left: 28px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.stat-card b { font: 800 30px var(--display); }
.stat-card span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-card small { color: var(--accent); font-weight: 600; }
.slug { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.slug span { padding: 0 4px 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.slug input { border: 0; padding-left: 0; }
.slug input:focus { box-shadow: none; }
.cv-bar { display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(200px, 1fr); gap: 12px; align-items: end; }
@media (max-width: 800px) { .cv-bar { grid-template-columns: 1fr; } }
.cv-personal summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.cv2 { --cvc: #0f766e; }
.cv2 .cv-h { color: var(--cvc); border-bottom: 1.2px solid var(--cvc); padding-bottom: 3px; margin-top: 12px; }
.cv2-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cv2-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cvc); font-weight: 700; margin-bottom: 6px; }
.cv2-photo { width: 84px; height: 108px; object-fit: cover; border-radius: 3px; }
.cv2-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; margin: 6px 0; }
.cv2-left { color: #4b5563; font-size: 12px; }
.cv2-sub { color: #374151; font-size: 12px; }
.cv2 ul { margin: 3px 0 0; padding-left: 18px; }
.cv2-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 26px; font-size: 12.5px; }
.cv2-line { border-top: 1px solid #9ca3af; padding-top: 4px; min-width: 180px; text-align: center; }
.auth-lang { position: absolute; top: 16px; right: 20px; }
.auth-main { position: relative; }
.site-head .lang-switch { margin: 0 6px; }
@media (max-width: 720px) { .site-head .lang-switch, .user-menu .lang-switch { display: none; } }
.star-grid em { font-style: normal; color: #fff; }

/* mobile overflow guards */
.dash > *, .dash2 > *, .tn-grid > *, .prof-grid > *, .cv-grid > * { min-width: 0; }
.bars { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.bar .l { font-size: 10px; overflow: hidden; text-overflow: clip; max-width: 100%; }
body { overflow-x: hidden; }
.show-sm { display: none; }
@media (max-width: 480px) { .show-sm { display: inline; } .hide-sm-full { display: none; } }
.site-foot .lang-switch { display: flex; }

/* ============ Responsive / touch improvements ============ */
.panel > *, .wrap > *, .view > * { min-width: 0; }
.drawer { overflow-x: hidden; overscroll-behavior: contain; }
.dr-head { grid-template-columns: minmax(0, 1fr) auto; }
.dr-id > div { min-width: 0; }
.dr-id h2, .dr-id .role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-tabs { overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 12px; scroll-snap-type: x proximity; }
.dr-tabs::-webkit-scrollbar, .tabs-bar::-webkit-scrollbar { display: none; }
.dr-tabs button { white-space: nowrap; flex: none; scroll-snap-align: start; }
.ti { display: none; }
.tab-more { display: none; }
.more-sheet, .more-scrim { display: none; }

/* Comparison table → stacked cards on small screens */
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  table.stack td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
  table.stack td:first-child { display: block; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
}

/* Touch devices: comfortable targets + no iOS zoom on focus */
@media (pointer: coarse) {
  button, .btn { min-height: 40px; }
  button.small, .btn.small { min-height: 36px; padding: 7px 13px; }
  input, select, textarea { font-size: 16px; }
  .lang-switch button { min-height: 32px; min-width: 36px; }
}
@media (max-width: 700px) { input, select, textarea { font-size: 16px; } }

/* App: bottom navigation bar on phones */
@media (max-width: 700px) {
  #app { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabs-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: none; margin: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: visible; box-shadow: 0 -6px 20px rgba(17,24,39,.06); }
  .tabs-bar button { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; min-height: 56px; font-size: 11px; font-weight: 600; border: 0; border-radius: 12px; color: var(--muted); position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs-bar [data-tab="panel"], .tabs-bar [data-tab="candidaturas"], .tabs-bar [data-tab="buscar"], .tabs-bar [data-tab="cv"], .tabs-bar .tab-more { display: flex; }
  .tabs-bar button[aria-selected="true"], .tabs-bar .tab-more.on { color: var(--accent); background: var(--accent-soft, #e6f2f0); border: 0; }
  .tabs-bar .ti { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabs-bar .tab-more .ti { fill: currentColor; stroke: none; }
  .tabs-bar .count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; padding: 0 4px; font-size: 10px; line-height: 16px; }
  .more-scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(17,24,39,.35); z-index: 31; }
  .more-sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 32; background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.2); }
  .more-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 12px; }
  .more-list { display: grid; gap: 6px; }
  .more-list button { justify-content: flex-start; text-align: left; width: 100%; min-height: 48px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; padding: 0 16px; }
  .more-list button.on { border-color: var(--accent); color: var(--accent); }
  .more-list button.ghost { color: var(--muted); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .app-head .lang-switch { display: none; }
  .board { scroll-snap-type: x mandatory; }
  .board > * { scroll-snap-align: start; }
}
.more-lang { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 14px; }
.ts { display: none; }
@media (max-width: 700px) { .tabs-bar .tl { display: none; } .tabs-bar .ts { display: inline; } }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-i { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq-i summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; position: relative; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--accent); font-weight: 600; }
.faq-i[open] summary::after { content: "–"; }
.faq-i p { margin: 0 0 16px; color: var(--muted); }

/* Cookie consent */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cc-in { pointer-events: auto; max-width: 640px; width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 50px -12px rgba(17,24,39,.35); display: grid; gap: 10px; font-size: 14px; }
.cc-in strong { font: 700 17px var(--display); }
.cc-in p { margin: 0; color: var(--muted); }
.cc-in a { color: var(--accent); }
.cc-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cc-btns button { flex: 1 1 auto; }
.cc-opts { display: grid; gap: 8px; }
.cc-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.cc-opt input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.cc-opt span { display: grid; } .cc-opt small { color: var(--muted); }
@media (max-width: 700px) { body:has(#app:not([hidden])) .cc { bottom: calc(76px + env(safe-area-inset-bottom)); } .cc { left: 8px; right: 8px; } }
