/* Gather — styles */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');

:root{
  --navy:#353B7F; --navy-d:#2b3068;
  --green:#7A964E; --magenta:#CA2F6B;
  --ink:#3A4052; --grey:#777779;
  --off:#F7F7F2; --surface:#ffffff; --line:#e6e6df;
  --yes:#7A964E; --maybe:#d99c25; --no:#b6b6b0;
  --radius:14px; --maxw:920px;
  --shadow:0 1px 2px rgba(53,59,127,.04), 0 6px 20px rgba(53,59,127,.06);
}
*{ box-sizing:border-box; }
html,body{ margin:0; }
body{ font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink);
      background:var(--off); line-height:1.5; -webkit-font-smoothing:antialiased; }

h1,h2,h3{ font-family:"Jost",system-ui,sans-serif; color:var(--navy);
          font-weight:600; letter-spacing:-.01em; margin:0 0 8px; }
h1{ font-size:27px; } h2{ font-size:18px; }
.muted{ color:var(--grey); }
.hint{ color:var(--grey); font-size:13px; margin-top:4px; }
a{ color:var(--navy); }
.icon{ width:1em; height:1em; display:inline-block; vertical-align:-2px; }

#app{ transition:filter .6s ease, transform .6s ease; }
#app.blurred{ filter:blur(9px); transform:scale(1.012); pointer-events:none; user-select:none; }

.topbar{ position:sticky; top:0; z-index:30; background:rgba(247,247,242,.85);
         backdrop-filter:saturate(140%) blur(8px); border-bottom:1px solid var(--line); }
.topbar-in{ max-width:var(--maxw); margin:0 auto; padding:12px 18px;
            display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.logo{ display:inline-flex; align-items:center; }
.logo img{ height:46px; width:auto; display:block; }
.headright{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.tabs{ display:flex; gap:4px; }
.tabs a{ font-family:"Jost",sans-serif; font-weight:500; font-size:15px; text-decoration:none;
         color:var(--grey); padding:8px 14px; border-radius:9px; transition:background .15s,color .15s; }
.tabs a:hover{ color:var(--navy); background:rgba(53,59,127,.06); }
.tabs a.active{ color:var(--navy); background:rgba(53,59,127,.10); }
.chip{ display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line);
       border-radius:999px; padding:4px 12px 4px 4px; cursor:pointer; }
.chip:hover{ border-color:var(--navy); }
.avatar{ width:30px; height:30px; border-radius:50%; background:var(--navy); color:#fff;
         display:grid; place-items:center; font-family:"Jost",sans-serif; font-size:13px; font-weight:600; }
.chip .nm{ font-size:14px; font-weight:500; color:var(--ink); max-width:120px; overflow:hidden;
           text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:560px){
  .logo img{ height:38px; }
  .tabs a{ padding:7px 10px; font-size:14px; }
  .chip .nm{ display:none; }
}

#progress{ position:fixed; top:0; left:0; height:3px; width:0; z-index:60;
           background:linear-gradient(90deg,var(--navy),var(--magenta)); opacity:0;
           transition:width .3s ease, opacity .3s ease; }
#progress.go{ opacity:1; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:24px 18px 80px; position:relative; z-index:1; }
@media (prefers-reduced-motion:no-preference){
  .view-enter{ animation:fadeUp .28s ease both; }
  @keyframes fadeUp{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
}

.spinner{ width:26px; height:26px; border:3px solid var(--line); border-top-color:var(--navy);
          border-radius:50%; animation:spin .7s linear infinite; margin:30px auto; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.loading-row{ display:flex; align-items:center; gap:10px; color:var(--grey); justify-content:center; padding:24px; }

.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
       padding:18px; margin-bottom:16px; box-shadow:var(--shadow); }
label{ display:block; font-weight:600; font-size:14px; margin-bottom:6px; color:var(--ink); }
input[type=text],input[type=date],input[type=time],input[type=password],input[type=number],select{
  padding:11px; border:1px solid var(--line); border-radius:10px; font-size:15px;
  font-family:inherit; color:var(--ink); background:#fff; }
input[type=text],input[type=password],input[type=number],select{ width:100%; }
input:focus-visible,a:focus-visible,button:focus-visible,select:focus-visible{ outline:2px solid var(--navy); outline-offset:2px; }
.field{ margin-bottom:14px; } .field:last-child{ margin-bottom:0; }
.optional{ font-weight:400; color:var(--grey); }
.row{ display:flex; gap:8px; flex-wrap:wrap; align-items:flex-end; }
.check{ display:flex; gap:10px; align-items:flex-start; } .check input{ margin-top:3px; }

.btn{ font-family:inherit; font-size:16px; border:0; border-radius:11px; padding:13px 20px;
      cursor:pointer; font-weight:600; transition:background .15s,transform .05s; }
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--navy); color:#fff; width:100%; }
.btn-primary:hover{ background:var(--navy-d); }
.btn-primary:disabled{ opacity:.55; cursor:default; }
.btn-add{ background:#fff; color:var(--navy); border:1px solid var(--navy); border-radius:10px;
          padding:11px 16px; font-size:14px; cursor:pointer; font-weight:600; }
.btn-ghost{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:8px 13px;
            font-size:13px; cursor:pointer; color:var(--ink); font-weight:500; text-decoration:none;
            display:inline-flex; align-items:center; gap:6px; }
.btn-ghost:hover{ border-color:var(--navy); color:var(--navy); }
.btn-danger{ color:var(--magenta); border-color:#f0c9d8; }
.btn-danger:hover{ border-color:var(--magenta); color:var(--magenta); }
.btnspin{ display:inline-block; width:14px; height:14px; border:2px solid rgba(255,255,255,.5);
          border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; vertical-align:-2px; }

.back{ display:inline-flex; align-items:center; gap:6px; background:none; border:0; cursor:pointer;
       color:var(--grey); font-size:14px; padding:4px 0; margin-bottom:10px; font-weight:500; }
.back:hover{ color:var(--navy); }

.status{ padding:12px 14px; border-radius:10px; font-size:14px; margin-bottom:16px; }
.status.ok{ background:#eef4e8; color:#3f5226; }
.status.err{ background:#fbeaef; color:#8d2148; }
.status.info{ background:#ecedf6; color:#2b3068; }

.callout{ display:flex; align-items:center; gap:12px; background:#fbeef4; border:1px solid #f0c9d8;
          border-radius:12px; padding:14px 16px; margin-bottom:16px; }
.callout .ic{ color:var(--magenta); flex-shrink:0; width:26px; height:26px; }
.callout .ttl{ font-family:"Jost",sans-serif; font-weight:600; color:var(--magenta); }
.callout .sub{ font-size:13px; color:var(--ink); }

.slot{ display:flex; align-items:center; justify-content:space-between; gap:12px;
       padding:13px 0; border-top:1px solid var(--line); }
.slot:first-of-type{ border-top:0; }
.slot-time{ font-size:15px; }
.choices{ display:flex; gap:6px; flex-shrink:0; }
.choices button{ border:1px solid var(--line); background:#fff; border-radius:9px; padding:8px 11px;
                 font-size:13px; cursor:pointer; min-width:46px; color:var(--ink); }
.choices button[aria-pressed=true][data-v=yes]   { background:var(--yes);   color:#fff; border-color:var(--yes); }
.choices button[aria-pressed=true][data-v=maybe] { background:var(--maybe); color:#fff; border-color:var(--maybe); }
.choices button[aria-pressed=true][data-v=no]    { background:var(--no);    color:#fff; border-color:var(--no); }

.tablewrap{ overflow-x:auto; }
table{ border-collapse:collapse; width:100%; font-size:13px; }
th,td{ border:1px solid var(--line); padding:7px 9px; text-align:center; }
th{ font-family:"Jost",sans-serif; font-weight:500; color:var(--navy); background:#fbfbf8; }
th.name,td.name{ text-align:left; white-space:nowrap; }
.cell-yes{ background:#e9f0e0; color:var(--green); font-weight:600; }
.cell-maybe{ background:#fbf1dc; color:#a9761a; }
.cell-no{ background:#f4f4ef; color:var(--grey); }
th.best,td.best{ box-shadow:inset 0 0 0 2px var(--magenta); }

.slotlist{ list-style:none; margin:12px 0 0; padding:0; }
.slotlist li{ display:flex; justify-content:space-between; align-items:center; padding:9px 0;
              border-top:1px solid var(--line); font-size:15px; }
.slotlist li:first-child{ border-top:0; }
.remove{ background:none; border:0; color:var(--magenta); font-size:20px; cursor:pointer; line-height:1; }

.linkbox{ background:#fbfbf8; border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:12px; }
.linkbox .lab{ font-weight:600; font-size:14px; margin-bottom:6px; }
.linkbox .url{ font-size:13px; word-break:break-all; color:#444; background:#fff;
               border:1px solid var(--line); border-radius:8px; padding:9px; margin-bottom:8px; }

.hero{ font-size:17px; color:var(--ink); margin:2px 0 22px; max-width:56ch; }
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:26px 0; }
@media (max-width:620px){ .steps{ grid-template-columns:1fr; } }
.step{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px; box-shadow:var(--shadow); }
.step .ic{ width:34px; height:34px; margin-bottom:10px; }
.step:nth-child(1) .ic{ color:var(--navy); }
.step:nth-child(2) .ic{ color:var(--green); }
.step:nth-child(3) .ic{ color:var(--magenta); }
.step h3{ font-size:16px; margin:0 0 4px; }
.step p{ margin:0; font-size:14px; color:var(--grey); }

.polllist{ list-style:none; margin:0 0 20px; padding:0; }
.pollitem{ display:flex; gap:14px; background:var(--surface); border:1px solid var(--line);
           border-radius:12px; padding:15px 16px; margin-bottom:10px; box-shadow:var(--shadow); }
.pollitem .pic{ width:42px; height:42px; border-radius:10px; background:#eef0f7; color:var(--navy);
                display:grid; place-items:center; flex-shrink:0; }
.pollitem .pic .ic{ width:22px; height:22px; }
.pollitem .body{ flex:1; min-width:0; }
.pollitem .t{ font-family:"Jost",sans-serif; font-weight:600; color:var(--navy); font-size:16px; }
.pollitem .d{ color:var(--grey); font-size:12px; margin-top:2px; }
.pollitem .acts{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.empty{ text-align:center; padding:34px 16px; color:var(--grey); }
.dots{ display:flex; gap:8px; justify-content:center; margin-bottom:14px; }
.dots span{ width:12px; height:12px; border-radius:50%; display:block; }
.dots span:nth-child(1){ background:var(--navy); }
.dots span:nth-child(2){ background:var(--green); }
.dots span:nth-child(3){ background:var(--magenta); }
@media (prefers-reduced-motion:no-preference){
  .dots span{ animation:gather 2.4s ease-in-out infinite; }
  .dots span:nth-child(2){ animation-delay:.2s; } .dots span:nth-child(3){ animation-delay:.4s; }
  @keyframes gather{ 0%,100%{ transform:translateY(0); opacity:.85; } 50%{ transform:translateY(-5px); opacity:1; } }
}
.pill{ display:inline-block; font-size:12px; font-weight:600; padding:3px 10px; border-radius:999px; }
.pill.open{ background:#e9f0e0; color:#3f5226; }
.pill.closed{ background:#f4e3e9; color:#8d2148; }

#splash{ position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:20px;
         background:rgba(53,59,127,.18); transition:opacity .5s ease; }
#splash.gone{ opacity:0; pointer-events:none; }
.splash-card{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:30px 26px;
              width:100%; max-width:380px; box-shadow:0 20px 60px rgba(53,59,127,.22); text-align:center; }
@media (prefers-reduced-motion:no-preference){ .splash-card{ animation:pop .4s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes pop{ from{ opacity:0; transform:translateY(10px) scale(.97); } to{ opacity:1; transform:none; } } }
.splash-card.shake{ animation:shake .4s; }
@keyframes shake{ 0%,100%{ transform:translateX(0); } 20%,60%{ transform:translateX(-7px); } 40%,80%{ transform:translateX(7px); } }
.splash-card img{ height:42px; margin-bottom:6px; }
.splash-card .sub{ color:var(--grey); font-size:14px; margin-bottom:20px; }
.splash-card label{ text-align:left; }
.splash-card .field{ margin-bottom:14px; }
.splash-err{ color:#8d2148; font-size:13px; min-height:18px; margin-top:4px; }
.verify{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:14px 0; }
.verify .ring{ width:46px; height:46px; border:4px solid var(--line); border-top-color:var(--navy);
               border-radius:50%; animation:spin .7s linear infinite; }
.verify .check{ width:46px; height:46px; color:var(--green); }
.verify .msg{ font-family:"Jost",sans-serif; color:var(--navy); font-weight:500; }

#toasts{ position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:90;
         display:flex; flex-direction:column; gap:8px; align-items:center; }
.toast{ background:var(--ink); color:#fff; padding:11px 18px; border-radius:10px; font-size:14px;
        box-shadow:0 8px 24px rgba(0,0,0,.18); display:flex; align-items:center; gap:8px; }
.toast.ok{ background:#3f5226; } .toast.err{ background:#8d2148; }
@media (prefers-reduced-motion:no-preference){ .toast{ animation:toastin .3s ease both; }
  @keyframes toastin{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } } }

.modal-back{ position:fixed; inset:0; z-index:95; background:rgba(53,59,127,.28);
             display:grid; place-items:center; padding:20px; }
.modal{ background:#fff; border-radius:16px; padding:22px; max-width:380px; width:100%;
        box-shadow:0 20px 50px rgba(0,0,0,.25); }
.modal h3{ margin:0 0 8px; } .modal p{ margin:0 0 18px; color:var(--ink); font-size:15px; }
.modal .acts{ display:flex; gap:10px; justify-content:flex-end; }

.cal-opts{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* ---- Time chooser (5-min blocks) ---- */
.tlab{ display:block; font-size:12px; color:var(--grey); margin-bottom:4px; font-weight:600; }
.timesel{ display:inline-flex; align-items:center; gap:4px; }
.timesel select{ width:auto; padding:10px 8px; }
.timesel span{ color:var(--grey); }

/* ---- Bokeh background ---- */
.bokeh{ position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.bokeh span{ position:absolute; display:block; border-radius:50%; filter:blur(64px); opacity:.16; }
.bokeh .b1{ width:360px; height:360px; background:var(--navy); top:-80px; left:-60px; }
.bokeh .b2{ width:300px; height:300px; background:var(--green); top:32%; right:-90px; }
.bokeh .b3{ width:280px; height:280px; background:var(--magenta); bottom:-90px; left:18%; }
.bokeh .b4{ width:240px; height:240px; background:var(--navy); bottom:8%; right:14%; opacity:.10; }
@media (prefers-reduced-motion:no-preference){
  .bokeh .b1{ animation:bk1 28s ease-in-out infinite; }
  .bokeh .b2{ animation:bk2 34s ease-in-out infinite; }
  .bokeh .b3{ animation:bk3 38s ease-in-out infinite; }
  .bokeh .b4{ animation:bk2 31s ease-in-out infinite; }
  @keyframes bk1{ 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(44px,32px); } }
  @keyframes bk2{ 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(-52px,40px); } }
  @keyframes bk3{ 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(34px,-42px); } }
}

.hidden{ display:none; }
.footer{ text-align:center; color:var(--grey); font-size:12px; margin-top:34px; }
.divider{ height:1px; background:var(--line); margin:22px 0; border:0; }
