/* Mifgash design tokens, "Sea, sun, meet" (UI review 29/10/2026).
   Light is the base. Dark follows prefers-color-scheme unless <html data-theme="light|dark">
   is set by the header toggle (localStorage "mif-theme", static/planner/theme.js).
   Colours live ONLY in the token blocks below; every rule after them uses var(--...). */
@font-face{font-family:"Rubik";font-style:normal;font-weight:300 800;font-display:swap;
  src:url(fonts/rubik-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Rubik";font-style:normal;font-weight:300 800;font-display:swap;
  src:url(fonts/rubik-hebrew.woff2) format("woff2");
  unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
:root{
  color-scheme:light;
  --bg:#F2F4F7; --surface:#FFFFFF; --surface-2:#E9EDF2; --ink:#14202B; --muted:#52606D; --line:#D6DCE3;
  --sea:#1D5FD0; --sea-soft:#E6EEFC; --on-sea:#FFFFFF;
  --sun:#F5B83D; --sun-soft:#FDF0D2; --sun-text:#8A5A00;
  --meet:#0E7552; --meet-soft:#E2F3EA; --on-meet:#FFFFFF;
  --danger:#B3261E;
  --ink-on-sun:#14202B; --sun-soft-light:#FDF0D2;
  --radius-s:10px; --radius-m:16px; --radius-l:24px;
  --shadow:0 1px 2px rgba(20,32,43,.06),0 6px 20px rgba(20,32,43,.06);
  --font:"Rubik",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,Menlo,Consolas,monospace;
  --focus:0 0 0 3px var(--surface),0 0 0 5px var(--sea);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]){
    color-scheme:dark;
    --bg:#0E141B; --surface:#172029; --surface-2:#1F2A35; --ink:#EAF0F6; --muted:#9DAAB8; --line:#2B3744;
    --sea:#79A6FF; --sea-soft:#1A2945; --on-sea:#0E141B;
    --sun:#F7C25A; --sun-soft:#33291A; --sun-text:#F7C25A;
    --meet:#4CC38A; --meet-soft:#16322A; --on-meet:#0E141B;
    --danger:#FF8A80; --shadow:none;
  }
}
:root[data-theme=dark]{
  color-scheme:dark;
  --bg:#0E141B; --surface:#172029; --surface-2:#1F2A35; --ink:#EAF0F6; --muted:#9DAAB8; --line:#2B3744;
  --sea:#79A6FF; --sea-soft:#1A2945; --on-sea:#0E141B;
  --sun:#F7C25A; --sun-soft:#33291A; --sun-text:#F7C25A;
  --meet:#4CC38A; --meet-soft:#16322A; --on-meet:#0E141B;
  --danger:#FF8A80; --shadow:none;
}
/* ---- end of token blocks ---- */
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.5 var(--font);-webkit-font-smoothing:antialiased}
a{color:var(--sea)}
.wrap{max-width:520px;margin:0 auto;padding:12px 14px 90px}
header{display:flex;align-items:center;gap:10px;padding:8px 0 12px;border-bottom:1px solid var(--line);margin-bottom:12px}
header .brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink)}
header .brand svg{width:34px;height:24px;flex:none}
header .brand b{font-weight:700;font-size:22px;letter-spacing:-.02em}
header .brand .he{font-size:14px;color:var(--muted);font-weight:500}
.m-a{fill:var(--sea)}.m-b{fill:var(--sun)}.m-ab{fill:var(--meet)}
header nav{margin-left:auto;display:flex;gap:12px;font-size:14px}
.bubble{max-width:85%;padding:9px 13px;border-radius:16px;margin:6px 0;white-space:pre-wrap}
.me{background:var(--sea-soft);margin-left:auto;border-bottom-right-radius:4px}
.agent{background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px}
.row{display:flex}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.chip,button.chip{background:var(--surface-2);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:8px 14px;font:inherit;font-size:15px;cursor:pointer;text-decoration:none}
.chip.primary{background:var(--sea);border-color:var(--sea);color:var(--on-sea);font-weight:700}
form.say{position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:10px}
form.say .in{max-width:520px;margin:0 auto;display:flex;gap:8px}
form.say input{flex:1;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:10px 14px;font:inherit}
form.say button{background:var(--sea);border:0;border-radius:20px;padding:0 16px;font-weight:700}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:10px 0}
.card h3{margin:0 0 4px;font-size:17px}
.mute{color:var(--muted);font-size:14px}
.ok{color:var(--meet)}
.big{font-size:22px;font-weight:700}
.log{font:12.5px/1.45 var(--mono);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:8px;max-height:46vh;overflow:auto}
.log .l{padding:4px 0;border-bottom:1px dashed var(--line)}
.log .ty{color:var(--sea)} .log .model{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:0 4px;white-space:nowrap} .log .who{color:var(--sea)}
.dots span{animation:b 1.2s infinite;opacity:.2} .dots span:nth-child(2){animation-delay:.2s} .dots span:nth-child(3){animation-delay:.4s}
@keyframes b{50%{opacity:1}}
table{width:100%;border-collapse:collapse;font-size:14px} td,th{border-bottom:1px solid var(--line);padding:6px 4px;text-align:left;vertical-align:top}
.tag{display:inline-block;background:var(--surface-2);border-radius:8px;padding:0 6px;font-size:12px;margin:1px}
.slot{display:flex;justify-content:space-between;align-items:center;gap:10px}
.slot.both{border-color:var(--meet)}
details summary{cursor:pointer;color:var(--muted)}
pre{white-space:pre-wrap;word-break:break-word}
.demo{border:1px dashed var(--line);background:var(--surface-2)}
.dash-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.dash-head h2{margin:4px 0}
h3.sec{margin:22px 0 4px;font-size:15px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted)}
.chips button.chip{min-height:44px}

.hero h1{font-size:28px;line-height:1.2;margin:18px 0 6px;color:var(--ink);letter-spacing:-.01em}
.lead{font-size:19px;margin:0 0 18px}
ol.steps{list-style:none;padding:0;margin:0 0 8px}
ol.steps li{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:10px 0}
ol.steps .n{flex:none;width:32px;height:32px;border-radius:50%;background:var(--sea);color:var(--on-sea);font-weight:800;display:flex;align-items:center;justify-content:center}
.say-line{color:var(--sea);margin-top:2px}
.note p{margin:6px 0 0}
.small{font-size:13px}
.human .ask{margin:0 0 6px;font-size:22px}
.human .facts{margin:0;font-size:17px}
.human .place,.ask .place{display:flex;gap:12px;align-items:flex-start;min-height:48px;cursor:pointer}
.human .place input,.ask .place input{margin-top:4px;width:20px;height:20px;flex:none}
.hbtn{display:block;width:100%;min-height:52px;margin:10px 0;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);font:inherit;font-size:18px;cursor:pointer}
.hbtn.primary{background:var(--sea);border-color:var(--sea);color:var(--on-sea);font-weight:700}
.fin{margin-top:8px}.fin-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0 4px}
.fin input[type=time],.fin select{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:8px 10px;font:inherit;min-height:44px}
.fin select{flex:1;min-width:0}.fin button.chip{min-height:44px}
.err{color:var(--danger);border:1px solid var(--danger);border-radius:12px;padding:8px 12px}
a{text-underline-offset:3px}
:focus-visible{outline:none;box-shadow:var(--focus);border-radius:var(--radius-s)}
.card{box-shadow:var(--shadow)}
.card.c-ask{border-color:var(--sea)}
.card.c-set{border-color:var(--meet)}
.mt{margin-top:10px}.mt-l{margin-top:24px}
header .theme-btn{margin-left:auto}header nav+.theme-btn{margin-left:4px}
.theme-btn{width:44px;height:44px;flex:none;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;display:grid;place-items:center;padding:0}
.theme-btn svg{width:20px;height:20px}
.err{background:var(--surface)}
form.say button{color:var(--on-sea)}
/* The outing ticket (T120): one partial, _ticket.html, for the dashboard and /outing/<id>/. */
.chip.quiet{background:transparent;border-color:transparent;color:var(--muted)}
.status{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;padding:3px 10px 3px 8px;border-radius:999px;text-decoration:none}
.status::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.status.looking{background:var(--surface-2);color:var(--muted)}
.status.looking::before{animation:pulse 1.6s ease-in-out infinite}
.status.you{background:var(--sea-soft);color:var(--sea)}
.status.set{background:var(--meet-soft);color:var(--meet)}
.status.set::before{border-radius:2px;transform:rotate(45deg)}
@keyframes pulse{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.status.looking::before{animation:none}}
.ticket{display:grid;grid-template-columns:84px 1fr;padding:0;overflow:hidden;border-radius:var(--radius-l)}
.ticket .date{background:var(--sun);color:var(--ink-on-sun);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 6px;text-align:center}
.ticket .date .d{font-size:34px;font-weight:700;line-height:1}
.ticket .date .w,.ticket .date .mo{font-size:14px;font-weight:600}
.ticket .date .t{margin-top:8px;font-size:17px;font-weight:600;background:var(--ink-on-sun);color:var(--sun-soft-light);border-radius:8px;padding:2px 8px}
.ticket .body{padding:16px;border-left:2px dashed var(--line);min-width:0}
.ticket.pending .date{background:var(--surface-2);color:var(--ink)}
.ticket.pending .date .t{background:transparent;color:var(--muted);border:1px dashed var(--line)}
.ticket h3{font-size:20px;margin:6px 0 2px}
.facts{margin:10px 0 0;padding:0;list-style:none;font-size:15px}
.facts li{display:flex;gap:8px;padding:3px 0}
.facts svg{width:18px;height:18px;flex:none;margin-top:2px;color:var(--muted)}
.num{font-variant-numeric:tabular-nums}
/* Human offer page, link pages and open times (T121): mock-outing.html, right half. */
.stack{display:flex;flex-direction:column;gap:8px}
.label{font-size:14px;color:var(--muted);margin:18px 0 8px}
.human .hi{display:flex;gap:12px;align-items:center}.human .hi p,.human .hi h2{margin:0}
.human .ask{font-size:24px;line-height:1.25;margin:6px 0 2px}
.human .when{font-size:18px;font-weight:500}
.av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:15px;flex:none;border:2px solid var(--surface)}
.av.you{background:var(--sea);color:var(--on-sea)}
.choice{display:flex;gap:12px;align-items:center;min-height:56px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--surface);cursor:pointer}
.choice input{accent-color:var(--sea);width:20px;height:20px;flex:none;margin:0}
.choice:has(input:checked){border-color:var(--sea);background:var(--sea-soft)}
.hbtn{border-radius:999px;font-size:17px;margin:0}
.hbtn.outline{background:transparent;border-color:var(--line)}
.human form>p.mute{margin-top:12px}
.pick-me{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pick-me .label{margin:0}
.pick-me select{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:8px 10px;font:inherit;min-height:44px}
/* Landing (T122): hero, a static agent exchange in the timeline style, the ticket. */
.hero-mark{width:68px;height:48px;display:block;margin:14px 0 0}
.land .hero h1{margin-top:10px}
.land .lead{margin-bottom:10px}
.tl{list-style:none;margin:0;padding:0}
.tl li{display:grid;grid-template-columns:32px 1fr auto;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.tl li:last-child{border-bottom:0}
.tl .av{width:32px;height:32px;font-size:12px}
.tl .who{font-size:13px;color:var(--muted);font-weight:500}
.tl .what{font-size:15px}
.tl time{font-size:13px;color:var(--muted)}
.av.friend{background:var(--sun);color:var(--ink-on-sun)}
.av.mif{background:var(--surface-2);color:var(--ink)}
.av.agent{background:var(--sea-soft);color:var(--sea);border-color:var(--sea)}
.demo-ex .card{margin:8px 0}
.demo-ex .ticket .body{padding:12px 14px}.demo-ex .ticket h3{font-size:18px;margin:6px 0 2px}
.demo-ex .ticket .date{padding:10px 6px}.demo-ex .ticket .date .d{font-size:30px}.demo-ex .ticket .date .t{margin-top:6px}
h2.sec-l{font-size:18px;margin:26px 0 4px}
.code-chip{display:flex;gap:8px;align-items:center;margin:10px 0 6px}
.code-chip code{flex:1;min-width:0;overflow-wrap:anywhere;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-s);padding:10px 12px;font-size:14px}
.code-chip .chip{min-height:44px}
@media (min-width:960px){
  .wrap.wide{max-width:1040px}
  .wrap.wide .land{display:grid;grid-template-columns:1fr 440px;gap:48px;align-items:center;padding:28px 0 8px}
  .wrap.wide .land .hero h1{font-size:40px}
  /* T143: below the hero the steps and the cards use the full width, so no column stays empty. */
  .wrap.wide .below ol.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
  .wrap.wide .below ol.steps li{margin:10px 0 0}
  .wrap.wide .below .pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
  .wrap.wide .below .pair>.card{margin:10px 0}
}
/* T78: the model's one sentence 'why this fits' on a proposal */
.why{margin:8px 0 0;font-style:italic} .why .model{font-style:normal;font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:0 4px;white-space:nowrap}
