/* Smart Team — KK SMART COM. Mobile d'abord, puis tablette et ordinateur. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Dancing+Script:wght@600&display=swap');

:root {
  --blue: #4285F4; --blue-ink: #1F5FC4; --blue-soft: #EAF2FE;
  --yellow: #FBBC05; --pink: #FF0062;
  --ink: #14161A; --ink-2: #3D424A; --muted: #5B616B; --line: #ECEEF2; --line-2: #D5D9E2;
  --bg: #FAFAFB; --card: #FFFFFF;
  --ok: #15803D; --ok-soft: #E9F7EF; --warn: #B4410E; --warn-soft: #FFF1E6;
  --studio: #FBBC05; --design: #4285F4; --digital: #FF0058; --direction: #414042;
  --radius: 12px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
h2 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Structure ---------- */
.shell { min-height: 100%; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; padding: 0 0 calc(var(--tabbar-h) + var(--safe-b) + 16px); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .logo { height: 30px; width: auto; display: block; }
.page { padding: 16px; max-width: 1180px; margin: 0 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr)); background: #fff; border-top: 1px solid var(--line); padding: 4px 4px calc(6px + var(--safe-b)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a.on { color: var(--blue-ink); font-weight: 800; }
.tabbar svg, .sidebar svg { width: 22px; height: 22px; }

@media (min-width: 900px) {
  .sidebar { display: flex; flex-direction: column; gap: 2px; width: 240px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; background: #fff; border-right: 1px solid var(--line); }
  .sidebar .logo { height: 36px; width: auto; margin: 0 8px 18px; align-self: flex-start; }
  .sidebar a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
  .sidebar a.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 800; }
  .sidebar .sep { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 10px 4px; }
  .tabbar, .topbar .logo { display: none; }
  .main { padding-bottom: 32px; }
  .page { padding: 24px 28px; }
  h1 { font-size: 28px; }
}

/* ---------- Composants ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card + .card { margin-top: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-decoration: none; color: inherit; }
.kpi b { display: block; font-size: 22px; font-weight: 800; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.section { margin-top: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 16px; min-height: 44px; font-size: 15px; font-weight: 700; background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { padding: 5px 12px; min-height: 32px; font-size: 12px; border-radius: 8px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn.dark { background: var(--ink); }
.btn.ok { background: var(--ok); }
.btn.warn { background: #fff; color: var(--warn); border: 1px solid #C2410C; }
.btn.wa { background: #25D366; color: #0B3D1E; }
.btn.block { width: 100%; }
.btn.link { background: none; color: var(--blue-ink); padding: 0; min-height: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 5px 10px; min-height: 30px; font-size: 12px; font-weight: 700; background: #F1F2F5; color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; }
.chip.opt { background: #fff; border: 1.5px solid var(--line-2); color: var(--ink); min-height: 32px; }
.chip.opt.on { background: #E3EDFD; border-color: var(--blue); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: #F1F2F5; color: #4B515B; }
.pill.urgent, .pill.fix { background: var(--warn-soft); color: var(--warn); }
.pill.important, .pill.review { background: var(--blue-soft); color: var(--blue-ink); }
.pill.done, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pole { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #F1F2F5; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; overflow: hidden; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.progress { height: 6px; border-radius: 999px; background: #EEF0F4; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; font-size: 16px; padding: 10px 12px; min-height: 42px; border: 1px solid #C9CDD4; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 500; }
textarea.input { min-height: 90px; resize: vertical; }
.input.err { border-color: var(--warn); }
.err-msg { color: var(--warn); font-size: 12px; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); font-size: 14px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
.banner.pink { background: #FFE5EE; color: #8A002F; }
.banner.blue { background: var(--blue-soft); color: var(--blue-ink); }
.banner.gold { background: #FFF8E1; color: #6B4E00; }

/* Tâches */
.task { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.task.fix { border-color: #F6C9A8; }
.task .t-title { font-size: 15px; font-weight: 700; }
.task.done .t-title { text-decoration: line-through; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.steps label { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); z-index: 25; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(66,133,244,.4); cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) { .fab { bottom: 28px; right: 28px; } }

/* Feuille du bas / fenêtre */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20,22,26,.42); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 12px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; animation: up .22s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); align-self: center; }
.sheet .x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F1F2F5; font-size: 18px; cursor: pointer; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 18px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px); z-index: 80; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; max-width: 92vw; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* Typeform (inscription) */
.tf { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.tf header { padding: 18px 20px; }
.tf header img { height: 34px; }
.tf .tf-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tf .tf-q { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 16px; animation: up .3s ease-out; }
.tf .tf-q h1 { font-size: 26px; }
.tf .tf-num { color: var(--blue-ink); font-weight: 800; font-size: 14px; }
.tf input.line { border: 0; border-bottom: 2px solid #8A909A; font-size: 24px; padding: 8px 0; outline: none; background: transparent; width: 100%; color: var(--ink); }
.tf input.line:focus { border-bottom-color: var(--blue); }
.tf .opts { display: flex; flex-direction: column; gap: 8px; }
.tf .opt { text-align: left; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.tf .opt.on { border-color: var(--blue); background: #E3EDFD; }
.tf .opt kbd { font: inherit; font-size: 12px; font-weight: 800; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--muted); }
.tf .bar { height: 4px; background: #EEF0F4; } .tf .bar i { display: block; height: 100%; background: var(--blue); transition: width .3s; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }

/* Médailles et confettis */
.medal-row { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.podium { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.award { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, #FFF8E1, #FFFFFF); border: 1px solid #F3E2A9; }
.award .ph { position: relative; flex: none; margin-right: 8px; }
.award .ph .avatar { width: 52px; height: 52px; border: 3px solid #E9B931; }
.award .ph svg { position: absolute; right: -8px; bottom: -6px; }
.kk-piece { position: fixed; top: 0; left: 50%; z-index: 90; pointer-events: none; border-radius: 1px; animation: kkBurst var(--d) cubic-bezier(.15,.6,.35,1) forwards; }
.kk-piece i { display: block; width: 100%; height: 100%; animation: kkFlutter .6s linear infinite; background: var(--c); }
@keyframes kkBurst { 0% { transform: translate(0, 35vh) rotate(0); opacity: 1; } 30% { transform: translate(var(--x), var(--y)) rotate(var(--r)); } 100% { transform: translate(calc(var(--x) * 1.3), 110vh) rotate(calc(var(--r) * 3)); opacity: .9; } }
@keyframes kkFlutter { 0% { transform: rotateX(0) rotateY(0); } 50% { transform: rotateX(180deg) rotateY(90deg); } 100% { transform: rotateX(360deg) rotateY(180deg); } }
@media (prefers-reduced-motion: reduce) { .kk-piece { display: none; } .sheet, .tf .tf-q { animation: none; } }

.signature { font-family: 'Dancing Script', cursive; font-size: 30px; color: var(--blue-ink); }
.audio-rec { display: flex; align-items: center; gap: 8px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #E11D48; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.loader { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.loader i { width: 10px; height: 10px; border-radius: 50%; margin: 0 4px; animation: bounce 1s infinite; }
.loader i:nth-child(1) { background: var(--blue); } .loader i:nth-child(2) { background: var(--yellow); animation-delay: .15s; } .loader i:nth-child(3) { background: var(--pink); animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-8px); } }
.install-card { display: flex; align-items: center; gap: 12px; }
.install-card img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

@media print {
  .sidebar, .tabbar, .topbar, .no-print, .fab { display: none !important; }
  .main { padding: 0; } body { background: #fff; } .card { break-inside: avoid; }
}
@media (max-width: 560px) { .award { flex-wrap: wrap; } .award .rest { width: 100%; padding-left: 70px; } }

/* ---------- Marque Smart Team ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .kk { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.brand .kk span:first-child { display: inline-block; transform: scaleX(-1); }
.brand .wm { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.brand .wm span { color: var(--muted); font-weight: 500; }

/* ---------- En-tête ordinateur des collaborateurs (maquettes) ---------- */
.deskbar { display: none; }
@media (min-width: 900px) {
  .shell.top { flex-direction: column; }
  .shell.top .main { width: 100%; }
  .deskbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--line); }
  .deskbar nav { display: flex; gap: 4px; }
  .deskbar nav a { padding: 10px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: none; }
  .deskbar nav a.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
  .deskbar .who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
  .deskbar .who span.txt { text-align: right; font-size: 13px; line-height: 1.3; }
  .shell.top .page { padding: 32px 24px 64px; max-width: 1180px; }
  .shell.top h1 { font-size: 34px; letter-spacing: -0.03em; }
  .page.wide { max-width: none !important; padding: 0 !important; }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 6px; }
}
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }

/* ---------- Tâches, vue ordinateur (façon Microsoft To Do) ---------- */
.td { display: flex; min-height: calc(100vh - 61px); background: #fff; }
.td-side { width: 250px; flex: none; border-right: 1px solid var(--line); padding: 18px 12px; background: #FAFAFB; }
.td-side .sep { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 16px 10px 6px; }
.td-list { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: left; }
.td-list:hover { background: #F1F2F5; }
.td-list.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.td-main { flex: 1; min-width: 0; padding: 28px 32px 48px; }
.td-quick { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; padding: 10px 14px; border-radius: 10px; background: #F6F7FB; color: var(--blue-ink); }
.td-quick input { flex: 1; border: 0; background: transparent; font-size: 15px; outline: none; color: var(--ink); }
.td-rows { display: flex; flex-direction: column; }
.td-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.td-row:hover, .td-row.on { background: #F6F8FD; }
.td-body { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.td-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.td-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.td-circle { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9AA0AA; background: #fff; cursor: pointer; flex: none; padding: 0; }
.td-circle:hover { border-color: var(--blue); }
.td-circle.ok { background: var(--blue); border-color: var(--blue); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: default; }
.td-star { border: 0; background: none; cursor: pointer; padding: 4px; }
.td-sec { margin: 22px 0 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.td-row.done .t-title { text-decoration: line-through; color: var(--muted); }
.td-panel { width: 360px; flex: none; border-left: 1px solid var(--line); padding: 20px; background: #fff; position: sticky; top: 61px; align-self: flex-start; max-height: calc(100vh - 61px); overflow-y: auto; }
.td-panel .x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F1F2F5; cursor: pointer; }
.shell.side .td { min-height: 100vh; } .shell.side .td-panel { top: 0; max-height: 100vh; }
@media (min-width: 900px) { .shell.top .topbar { display: none; } }
.home-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 6px; }
.td-panel .input { font-size: 14px; min-height: 36px; padding: 6px 10px; }

/* ---------- Formulaires façon Typeform (maquette d'inscription) ---------- */
.tf { position: relative; }
.tf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; }
.tf-logo { height: 40px; width: auto; }
.tf .tf-body { padding: 16px 20px 96px; }
.tf .tf-q { max-width: 720px; gap: 22px; }
.tf-hero { font-size: 34px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.tf-lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 580px; margin: 0; }
.tf-link { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 12px 8px; }
.tfq { display: flex; gap: 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.tfq span:first-child { color: var(--blue); font-size: 16px; padding-top: 6px; flex: none; }
.tf-in { margin-left: 0; }
.tf-grid2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.tf-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; }
.tf-field b { color: var(--warn); font-weight: 600; }
.tf-line { font: inherit; font-size: 19px; border: 0; border-bottom: 2px solid #8A909A; padding: 6px 0 10px; color: var(--ink); background: transparent; outline: none; width: 100%; min-width: 0; font-weight: 500; }
.tf-line.big { font-size: 24px; }
.tf-line::placeholder { font-size: 16px; color: #9AA0AA; font-weight: 400; }
.tf-line:focus { border-bottom-color: var(--blue); }
.tfo { font: inherit; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; cursor: pointer; width: 100%; }
.tfo:hover { border-color: #AEB4BE; }
.tfo.on { border-color: var(--blue); background: #E3EDFD; }
.tfo .k { width: 26px; height: 26px; flex: none; border-radius: 6px; border: 1.5px solid currentColor; border-color: inherit; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tfb { font-size: 17px; padding: 12px 22px; min-height: 48px; }
.tfb.lg { padding: 14px 28px; }
.tf-err { color: var(--warn); font-size: 14px; font-weight: 600; margin: -8px 0 0; }
.tf-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.tf-or::before, .tf-or::after { content: ''; flex: 1; height: 1px; background: #E3E5EA; }
.tf-ok { width: 56px; height: 56px; border-radius: 16px; background: var(--ok-soft); display: flex; align-items: center; justify-content: center; }
.tf-nav { position: fixed; right: 20px; bottom: 20px; display: flex; gap: 2px; }
.tf-nav button { width: 44px; height: 44px; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tf-nav button:first-child { border-radius: 8px 0 0 8px; } .tf-nav button:last-child { border-radius: 0 8px 8px 0; }
.tf-nav button:disabled { opacity: .45; cursor: default; }
@media (min-width: 700px) {
  .tf-head { padding: 24px 40px; } .tf-logo { height: 52px; }
  .tf-hero { font-size: 52px; } .tf-lead { font-size: 19px; }
  .tfq { font-size: 30px; } .tfq span:first-child { font-size: 18px; padding-top: 8px; }
  .tf-in { margin-left: 40px; }
  .tf-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .tf-line.big { font-size: 26px; }
  .tf-err { margin-left: 40px; }
  .tf-nav { right: 32px; bottom: 28px; }
}
.subtabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #F1F2F5; margin-bottom: 18px; width: fit-content; max-width: 100%; overflow-x: auto; }
.subtabs a { padding: 8px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.subtabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tfm-step { font-size: 13px; font-weight: 700; color: var(--blue-ink); letter-spacing: .06em; text-transform: uppercase; }
.tfm-q { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tfc { font: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tfc.on { border-color: var(--blue); background: #E3EDFD; }
.tfc .sq { width: 10px; height: 10px; border-radius: 3px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #F1F2F5; align-self: flex-start; }
.seg button { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; min-height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.seg button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (min-width: 700px) { .sheet { max-width: 640px; padding: 24px 32px 28px; box-shadow: 0 24px 60px rgba(20,22,26,.25); } .sheet .grab { display: none; } .overlay { align-items: flex-start; padding-top: 70px; } }
[hidden] { display: none !important; }
.sheet .bar { height: 4px; background: #EEF0F4; border-radius: 4px; overflow: hidden; } .sheet .bar i { display: block; height: 100%; background: var(--blue); transition: width .3s; }
