/* Layout: one calm column. Trip tiles on home; on a trip, every day and stop on one scroll with small square photos. */
:root{
  --bg:#FFFFFF; --surface:#FFFFFF; --sunk:#F4F4F4; --ink:#111111; --soft:#555555; --muted:#8A8A8A; --faint:#C4C4C4; --line:#EDEDED;
  --accent:#111111; --accent-ink:#FFFFFF; --map:#F4F4F2; --grid:#E4E4E0; --route:#111111;
  --k-place:#111111; --k-stay:#111111; --k-flight:#111111; --k-activity:#111111; --k-food:#111111; --k-transit:#111111;
  --danger:#B42318; --pin-ink:#FFFFFF; --scrim:rgb(0 0 0 / .32);
  --shadow:0 1px 2px rgb(0 0 0 / .05), 0 12px 32px rgb(0 0 0 / .08);
  --f-body:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --gutter-l:max(20px, env(safe-area-inset-left, 0px));
  --gutter-r:max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0E0E0E; --surface:#171717; --sunk:#1E1E1E; --ink:#EDEDED; --soft:#B5B5B5; --muted:#8C8C8C; --faint:#4A4A4A; --line:#242424;
  --accent:#EDEDED; --accent-ink:#0E0E0E; --map:#161616; --grid:#262626; --route:#EDEDED;
  --k-place:#EDEDED; --k-stay:#EDEDED; --k-flight:#EDEDED; --k-activity:#EDEDED; --k-food:#EDEDED; --k-transit:#EDEDED;
  --danger:#FF8A80; --pin-ink:#0E0E0E; --scrim:rgb(0 0 0 / .55);
  --shadow:0 1px 2px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .4);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0E0E0E; --surface:#171717; --sunk:#1E1E1E; --ink:#EDEDED; --soft:#B5B5B5; --muted:#8C8C8C; --faint:#4A4A4A; --line:#242424;
  --accent:#EDEDED; --accent-ink:#0E0E0E; --map:#161616; --grid:#262626; --route:#EDEDED;
  --k-place:#EDEDED; --k-stay:#EDEDED; --k-flight:#EDEDED; --k-activity:#EDEDED; --k-food:#EDEDED; --k-transit:#EDEDED;
  --danger:#FF8A80; --pin-ink:#0E0E0E; --scrim:rgb(0 0 0 / .55);
  --shadow:0 1px 2px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .4);
  color-scheme:dark;
}
html{min-height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 var(--f-body);letter-spacing:-.01em;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
a{color:inherit}
button,input,textarea,select{font:inherit;color:inherit;letter-spacing:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums;letter-spacing:0}
.num{font-variant-numeric:tabular-nums}
.ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.spacer{flex:1}
.muted{color:var(--muted)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-size:13.5px;font-weight:500;text-decoration:none;white-space:nowrap}
.btn:hover{border-color:var(--faint)}
.btn.primary{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.btn.primary:hover{opacity:.88}
.btn.ghost{background:transparent;border-color:transparent}
.btn.ghost:hover{background:var(--sunk)}
.btn.danger{color:var(--danger)}
.btn.sm{height:30px;padding:0 10px;font-size:12.5px}
.btn.google{height:44px;gap:10px;font-size:14px;border-color:var(--faint);color:var(--ink)}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12.5px;margin:4px 0 -4px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:999px;border:0;background:transparent;cursor:pointer;color:var(--muted);text-decoration:none}
.icon-btn:hover{background:var(--sunk);color:var(--ink)}
.icon-btn.line{border:1px solid var(--line);color:var(--ink)}

.wrap{max-width:640px;margin:0 auto;padding-left:var(--gutter-l);padding-right:var(--gutter-r)}
.topbar{display:flex;align-items:center;gap:8px;min-height:44px;padding-top:16px}
.brand{font-size:15px;font-weight:600;display:inline-flex;align-items:center;line-height:0}
.vv-lockup{width:92px;height:auto;display:block;fill:currentColor}
.status{font-size:12px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.status::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--faint)}
.status.live::before{background:#2E9E5B}
.chip{display:inline-flex;align-items:center;font-size:11px;font-weight:500;padding:2px 8px;border-radius:999px;background:var(--sunk);color:var(--muted)}

/* home */
.home{padding-bottom:64px}
.home h1{font-weight:500;font-size:32px;line-height:1.1;letter-spacing:-.035em;margin:28px 0 4px}
.lede{color:var(--muted);margin:0 0 22px;font-size:14px}
.trip-list{display:grid;gap:24px}
@media (min-width:700px){ .home.wrap{max-width:980px} .trip-list{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px 20px} }
.tile{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--ink)}
.cover{position:relative;height:170px;border-radius:12px;overflow:hidden;background:var(--sunk)}
.trip-list > .tile:first-child .cover{height:220px}
@media (min-width:700px){ .trip-list > .tile:first-child .cover,.cover{height:200px} }
.cover img{width:100%;height:100%;object-fit:cover;display:block}
.tile:hover .cover{opacity:.94}
.tile-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.tile-title{font-size:17px;font-weight:500}
.tile-dates{flex:none;font-size:13px;color:var(--muted)}
.tile-meta{margin-top:-6px;font-size:13px;color:var(--muted)}
.new-tile{display:flex;align-items:center;justify-content:center;gap:6px;min-height:72px;border:1px dashed var(--faint);border-radius:12px;background:transparent;cursor:pointer;color:var(--muted);font-size:14px}
.new-tile:hover{color:var(--ink);border-color:var(--muted)}
.empty{padding:40px 0;color:var(--muted)}

/* trip */
.trip{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.trip-head{padding:18px 0 22px}
.trip-head h1{margin:0;font-weight:500;font-size:34px;line-height:1.08;letter-spacing:-.04em;text-wrap:balance}
.trip-when{margin-top:6px;font-size:14px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.pill{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-radius:14px;background:var(--sunk);font-size:12.5px;font-weight:500;color:var(--soft)}
.pill b{font-weight:600;color:var(--ink)}
.avatars{display:flex}
.av{width:26px;height:26px;border-radius:13px;border:2px solid var(--bg);background:var(--ink);color:var(--bg);font-size:11px;font-weight:600;display:grid;place-items:center;overflow:hidden;flex:none}
.av + .av{margin-left:-7px}
.av:nth-child(2){background:var(--muted)} .av:nth-child(3){background:var(--faint);color:var(--ink)}
.av img{width:100%;height:100%;object-fit:cover}
.av.sm{width:18px;height:18px;border:0;font-size:9.5px;background:var(--muted);color:var(--bg)}

.day-head{display:flex;align-items:center;justify-content:space-between;min-height:48px;border-top:1px solid var(--line)}
.day-head h2{margin:0;font-size:15px;font-weight:600;display:flex;align-items:baseline;gap:8px}
.day-head h2 span{font-size:13px;font-weight:400;color:var(--muted)}
.day-head .icon-btn{width:36px;height:36px;margin-right:-8px}
.night{font-size:12.5px;color:var(--muted);margin:-6px 0 10px}
.stop{display:grid;grid-template-columns:46px 64px minmax(0,1fr) 34px;column-gap:12px;padding:6px 0 18px}
.stop .t{padding-top:2px;font-size:12.5px;color:var(--muted);display:flex;flex-direction:column;gap:1px;line-height:1.3}
.stop .t .d{color:var(--ink);font-weight:500}
.thumb{position:relative;width:64px;height:64px;border-radius:10px;overflow:hidden;border:0;padding:0;background:var(--sunk);display:block;cursor:default}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .code{position:absolute;left:0;right:0;bottom:6px;text-align:center;font-size:11px;font-weight:600;color:#FFFFFF;letter-spacing:.02em}
.thumb .ki{position:absolute;inset:0;display:grid;place-items:center;color:rgb(255 255 255 / .9)}
.thumb .ki .ico{width:20px;height:20px}
.stop .thumb,.stop .title{cursor:pointer}
.body{min-width:0;display:flex;flex-direction:column;gap:2px}
.title{font-size:15px;font-weight:500;line-height:1.3;overflow-wrap:anywhere;background:none;border:0;padding:0;text-align:left}
.stop .title:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--faint)}
.sub{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.note{font-size:13px;color:var(--soft);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2px}
.links{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:5px}
.links a{display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:500;text-decoration:none;color:var(--ink)}
.links a:hover{text-decoration:underline;text-underline-offset:3px}
.links .ico{width:11px;height:11px;stroke-width:2.2}
.comments{display:grid;gap:6px;margin-top:9px}
.cmt{display:flex;align-items:flex-start;gap:7px;font-size:12.5px;line-height:1.4;color:var(--soft)}
.cmt .who{color:var(--ink);font-weight:500}
.cmt .x{margin-left:auto;border:0;background:none;color:var(--faint);cursor:pointer;padding:0 2px;font-size:14px;line-height:1}
.cmt .x:hover{color:var(--danger)}
.composer{display:flex;gap:6px;margin-top:8px}
.composer input{flex:1;min-width:0;height:34px;border-radius:17px;border:1px solid var(--line);background:var(--sunk);padding:0 12px;font-size:13px}
.composer input:focus{outline:none;border-color:var(--muted);background:var(--surface)}
.cbtn{width:34px;height:28px;border:0;background:transparent;color:var(--faint);display:flex;align-items:center;justify-content:flex-end;gap:2px;cursor:pointer;font-size:11px;font-weight:600;padding:0}
.cbtn:hover{color:var(--ink)}
.cbtn.has{color:var(--ink)}
.cbtn .ico{width:16px;height:16px;stroke-width:1.7}
.stop.sel .title{text-decoration:underline;text-underline-offset:3px}
.trip-empty{margin-top:8px;padding:24px;border:1px dashed var(--faint);border-radius:14px;color:var(--muted);display:grid;gap:12px;justify-items:start}
.unsched .t{visibility:hidden}

.dock{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--bg);border-top:1px solid var(--line);padding:12px 0 calc(14px + env(safe-area-inset-bottom,0px))}
.dock .wrap{display:flex;gap:8px}
.paste{flex:1;height:46px;padding:0 16px;border-radius:23px;border:0;background:var(--sunk);color:var(--muted);font-size:14px;text-align:left;cursor:pointer;display:flex;align-items:center;gap:8px}
.paste:hover{color:var(--ink)}
.dock .round{width:46px;height:46px;border-radius:23px;border:0;background:var(--ink);color:var(--bg);display:grid;place-items:center;cursor:pointer;flex:none}
/* Bottom bar (Dec 2026, same as the iPhone app's "halfway" bar): no band or fade; a solid black "Add a stop" with a soft
   shadow and a frosted-glass Map pill float over the stops. Taps between the buttons reach the page. */
.dock{border-top:0;padding-top:8px;background:transparent;pointer-events:none}
.dock .wrap > *{pointer-events:auto}
.trip{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.dock-add,.dock-map{height:52px;border-radius:26px;font:inherit;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;white-space:nowrap}
.dock-add{flex:1;min-width:0;padding:0 18px;border:0;background:var(--ink);color:var(--bg);font-weight:600;box-shadow:0 6px 18px rgb(0 0 0 / .18),0 1px 3px rgb(0 0 0 / .12)}
.dock-map{flex:none;padding:0 20px;gap:7px;color:var(--ink);font-weight:500;
  background:color-mix(in srgb,var(--bg) 55%,transparent);-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%);
  border:1px solid color-mix(in srgb,var(--ink) 12%,transparent);box-shadow:inset 0 1px 0 rgb(255 255 255 / .45),0 6px 18px rgb(0 0 0 / .12)}
.dock-map:hover{background:color-mix(in srgb,var(--bg) 70%,transparent)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .dock-map{box-shadow:inset 0 1px 0 rgb(255 255 255 / .08),0 6px 18px rgb(0 0 0 / .4)}}
:root[data-theme="dark"] .dock-map{box-shadow:inset 0 1px 0 rgb(255 255 255 / .08),0 6px 18px rgb(0 0 0 / .4)}
.dock .paste{background:color-mix(in srgb,var(--sunk) 80%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.dock-add .ico,.dock-map .ico{width:18px;height:18px;flex:none}

/* sheet */
.scrim{position:fixed;inset:0;background:var(--scrim);z-index:50;display:flex;align-items:center;justify-content:center;padding:24px;animation:fade .18s ease}
.sheet{--pb:22px;background:var(--surface);width:min(560px,100%);max-height:min(88vh,900px,100%);overflow-y:auto;border-radius:20px;padding:22px 22px var(--pb);box-shadow:var(--shadow);animation:rise .22s cubic-bezier(.2,.8,.2,1);box-sizing:border-box}
.sheet.wide{width:min(900px,100%)}
.sheet h2{font-weight:500;font-size:22px;letter-spacing:-.03em;margin:0 0 14px}
@media (max-width:600px){
  .scrim{align-items:flex-end;padding:0}
  .sheet{--pb:calc(16px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0;max-height:min(92vh,calc(100% - 8px));padding-bottom:var(--pb);padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
}
@keyframes fade{from{opacity:0}}
@keyframes rise{from{transform:translateY(16px);opacity:.4}}
@media (prefers-reduced-motion: reduce){ *{animation:none!important;transition:none!important} }
.form{display:grid;gap:14px}
.field{display:grid;gap:5px}
.field > span{font-size:12px;font-weight:500;color:var(--muted)}
.input{width:100%;box-sizing:border-box;height:42px;border-radius:10px;border:1px solid var(--line);background:var(--sunk);padding:0 12px;min-width:0}
textarea.input{height:auto;min-height:72px;padding:10px 12px;resize:vertical}
.input:focus{outline:none;border-color:var(--muted);background:var(--surface)}
.smart{position:relative}
.smart .input{height:50px;padding-left:42px;font-size:15px}
.smart .ico{position:absolute;left:14px;top:16px;color:var(--muted)}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.detect{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--muted);min-height:22px}
.detect .src{font-weight:600;color:var(--ink)}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg label{cursor:pointer}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg span{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);font-size:13px;font-weight:500;color:var(--soft)}
.seg span .ico{width:15px;height:15px}
.seg input:checked + span{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.seg input:focus-visible + span{outline:2px solid var(--ink);outline-offset:2px}
.photo-field{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.photo-field .thumb{cursor:default}
.coord{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sheet-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:6px}
.confirm{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--danger)}
.p{margin:0 0 12px;max-width:62ch;font-size:14px}
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:999px;font-size:14px;z-index:60;box-shadow:var(--shadow);max-width:calc(100% - 32px)}
.loading{display:grid;place-items:center;min-height:60vh;color:var(--muted)}
.map-box{position:relative;height:min(62vh,560px);border-radius:14px;overflow:hidden;background:var(--map)}
.map-box svg{display:block;width:100%;height:100%}
.map-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:var(--muted);padding:24px;font-size:14px}

/* map svg */
.g-line{stroke:var(--grid);stroke-width:1}
.g-lbl{fill:var(--muted);font:10px var(--f-mono);opacity:.85}
.route{fill:none;stroke:var(--route);stroke-width:1.6;opacity:.5;stroke-linecap:round;stroke-linejoin:round}
.route.air{stroke-dasharray:2 5;opacity:.65}
.pin circle.dot{fill:var(--k);stroke:var(--map);stroke-width:3}
.pin text{fill:var(--pin-ink);font:600 10.5px var(--f-mono);text-anchor:middle;dominant-baseline:central;pointer-events:none}
.pin{cursor:pointer}
.pin .ring{fill:none;stroke:var(--k);stroke-width:2;opacity:0}
.pin.sel .ring{opacity:1}
.end circle{fill:var(--map);stroke:var(--k);stroke-width:2}
.end text,.pin-lbl{fill:var(--ink);font:500 10.5px var(--f-mono)}
.pin-lbl{paint-order:stroke;stroke:var(--map);stroke-width:4px;stroke-linejoin:round}
.scale line{stroke:var(--ink);stroke-width:1.5}
.scale text{fill:var(--ink);font:10px var(--f-mono)}
.k-place{--k:var(--k-place)} .k-stay{--k:var(--k-stay)} .k-flight{--k:var(--k-flight)}
.k-activity{--k:var(--k-activity)} .k-food{--k:var(--k-food)} .k-transit{--k:var(--k-transit)}
/* legal pages + sign-in footer */
.legal{padding-bottom:64px}
.legal h1{font-size:30px;line-height:1.15;font-weight:600;letter-spacing:-.03em;margin:28px 0 6px}
.legal h2{font-size:16px;font-weight:600;margin:28px 0 6px}
.legal p,.legal li{color:var(--soft);font-size:14.5px;line-height:1.6}
.legal ul,.legal ol{padding-left:20px;margin:6px 0}
.legal h3{font-size:14.5px;font-weight:600;margin:20px 0 4px}
.legal code{font:13px/1.4 var(--f-mono);background:var(--chip,#F4F4F4);padding:2px 6px;border-radius:6px;word-break:break-all}
.legal a,.auth-foot a{color:var(--ink)}
.legal .muted{color:var(--muted);font-size:13px}
.brand a{color:inherit;text-decoration:none}
.auth-foot{margin-top:28px;font-size:12.5px;color:var(--muted);max-width:420px}
.gbtn{min-height:44px;display:flex;justify-content:center;color-scheme:light}
.gbtn[hidden]{display:none}

/* stop detail */
.detail h2{margin:14px 0 2px;font-size:24px}
.detail-top{display:flex;align-items:center;justify-content:space-between;margin:-6px -8px 0 0}
.detail-top .kind{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.detail-top .kind .ico{width:15px;height:15px}
.detail-top .btn .ico{width:14px;height:14px}
.detail-photo{position:relative;margin-top:12px;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--sunk)}
.detail-photo img{width:100%;height:100%;object-fit:cover;display:block}
.detail-photo .ki{position:absolute;inset:0;display:grid;place-items:center;color:rgb(255 255 255 / .9)}
.detail-photo .ki .ico{width:32px;height:32px}
.detail-when{margin:0;color:var(--soft);font-size:14px}
.detail-sub{margin:6px 0 0;color:var(--muted);font-size:13.5px}
.detail-note{margin:12px 0 0;padding:12px 14px;background:var(--sunk);border-radius:12px;font-size:14px;white-space:pre-wrap}
.detail-links{margin-top:14px;gap:8px}
.detail-links a{height:32px;padding:0 12px;border:1px solid var(--line);border-radius:999px;font-size:13px}
.detail-links a:hover{text-decoration:none;border-color:var(--faint)}
.detail-cmts{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.detail-cmts h3{margin:0;font-size:14px;font-weight:600}
.detail-cmts h3 span{color:var(--muted);font-weight:400}
.hint{display:block;margin-top:4px;font-size:12px;color:var(--muted);min-height:1em}

/* link fields: find it, copy, paste */
.linkf > label{font-size:12px;font-weight:500;color:var(--muted)}
.linkrow{display:flex;gap:8px;align-items:center}
.linkrow .input{flex:1;min-width:0}
.linkrow .btn{height:40px;flex:none}
.linkf .links{margin-top:6px;gap:4px 14px}
.linkf .links a{font-size:12.5px}

/* flight lookup + facts */
.flightbox{display:grid;gap:6px;padding:12px;border:1px solid var(--line);border-radius:14px}
.flightrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:end}
.flightrow .btn{height:44px}
.flightbox .hint{margin:0}
.pickfl{display:flex;flex-wrap:wrap;gap:6px}
.pickfl:empty{display:none}
.facts{margin-top:14px;border-top:1px solid var(--line)}
.fact{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.fact span{width:96px;flex:none;color:var(--muted);font-size:13px}
.fact b{font-weight:500;flex:1;min-width:0}
@media (max-width:420px){ .flightrow{grid-template-columns:1fr 1fr} .flightrow .btn{grid-column:1 / -1} }
/* iPhone Safari: date/time boxes have their own minimum width and collapse when empty; keep them inside their column */
.field{min-width:0}
input.input[type=date],input.input[type=time]{-webkit-appearance:none;appearance:none;display:block;min-width:0;max-width:100%;width:100%;height:42px;line-height:40px;text-align:left}
input.input[type=date]::-webkit-date-and-time-value,input.input[type=time]::-webkit-date-and-time-value{text-align:left;margin:0;min-height:40px;line-height:40px}
input.input[type=date]::-webkit-datetime-edit,input.input[type=time]::-webkit-datetime-edit{padding:0}

/* paste confirmation */
.conf-text{height:150px;padding:10px 12px;font-size:13px;line-height:1.4;resize:vertical}
.conf-link{justify-self:start;padding-left:0;color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--faint)}
.conf-link .ico{width:14px;height:14px}
.cf-list{display:grid;gap:8px;margin-top:10px}
.cf-item{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer}
.cf-item input{margin-top:3px;accent-color:var(--ink);width:16px;height:16px;flex:none}
.cf-item.dup{opacity:.6}
.cf-main{display:flex;flex-direction:column;gap:2px;font-size:14px}
.cf-main b{font-weight:600}
.cf-sub{color:var(--muted);font-size:13px}

/* ---- refinement pass (Dec 2026) ---- */
/* trip header: summary pills on one swipeable line */
.pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:calc(var(--gutter-l) * -1);margin-right:calc(var(--gutter-r) * -1);padding:0 var(--gutter-r) 2px var(--gutter-l)}
.pills::-webkit-scrollbar{display:none}
.pill{flex:none}
/* day headers stay visible while scrolling a long day */
.day-head{position:sticky;top:0;z-index:5;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);margin:0 calc(var(--gutter-r) * -1) 6px calc(var(--gutter-l) * -1);padding:0 var(--gutter-r) 0 var(--gutter-l)}
.day-head h2{font-size:16px;letter-spacing:-.01em}
.night{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:13px;background:var(--sunk);color:var(--soft);font-size:12px;margin:0 0 12px}
.night .ico{width:14px;height:14px}
.stop{padding:4px 0 20px}
.stop .t{padding-top:1px}
.stop .t .d{font-size:12px}
.title{font-size:15.5px;letter-spacing:-.01em}
.links a{color:var(--soft)}
.links a:hover{color:var(--ink)}
.thumb{border-radius:12px;box-shadow:inset 0 0 0 1px rgb(0 0 0 / .04)}

/* sheets: title row with a close button */
.sheet-head{display:flex;align-items:center;justify-content:space-between;margin:-6px -10px 0 0}
.sheet-head h2{margin:0}
/* stop form: type first, grouped sections, actions always reachable */
.stopform{gap:12px}
.stopform .seg{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -22px;padding:2px 22px}
.stopform .seg::-webkit-scrollbar{display:none}
.stopform .seg label{flex:none}
.stopform .seg span{height:36px;padding:0 14px}
.stopform .smart .input{height:48px;border-radius:12px}
.stopform .detect{margin-top:-6px;font-size:12.5px}
.sec{margin:10px 0 -4px;padding-top:14px;border-top:1px solid var(--line);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sec[hidden]{display:none}
.coord{font-family:inherit;font-size:13px;color:var(--soft);gap:8px;min-height:32px}
.coord .ico{width:16px;height:16px;color:var(--muted)}
.coord .mono{font-size:12px;color:var(--muted)}
.coord .btn{margin-left:auto}
.flightbox{background:var(--sunk);border:0}
.flightbox .input{background:var(--surface)}
.sheet-actions.stick{position:sticky;bottom:calc(var(--pb) * -1);margin:4px -22px calc(var(--pb) * -1);padding:12px 22px var(--pb);background:var(--surface);border-top:1px solid var(--line);z-index:2}
.wide-btn{height:44px;padding:0 22px;font-size:14.5px}
@media (max-width:600px){
  .stopform .seg{margin:0 calc(max(20px,env(safe-area-inset-right,0px)) * -1) 0 calc(max(20px,env(safe-area-inset-left,0px)) * -1);padding:2px max(20px,env(safe-area-inset-left,0px))}
  .sheet-actions.stick{margin-left:calc(max(20px,env(safe-area-inset-left,0px)) * -1);margin-right:calc(max(20px,env(safe-area-inset-right,0px)) * -1);padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
  .sheet-actions.stick .wide-btn{flex:1;max-width:260px;margin-left:auto}
}

/* stop detail: shorter photo with the type on it */
.detail-top{margin-bottom:-2px}
.detail-photo{aspect-ratio:2/1;margin-top:8px}
.kind-chip{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:14px;background:rgb(0 0 0 / .45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#FFFFFF;font-size:12.5px;font-weight:500}
.kind-chip .ico{width:14px;height:14px}
.credit-btn{position:absolute;right:10px;bottom:10px;width:28px;height:28px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;background:rgb(0 0 0 / .45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#FFFFFF;cursor:pointer}
.credit-btn .ico{width:16px;height:16px}
.photo-credit{position:absolute;left:10px;right:44px;bottom:10px;z-index:1;padding:6px 10px;border-radius:10px;background:rgb(0 0 0 / .6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#FFFFFF;font-size:11.5px;line-height:1.35}
.photo-credit a{color:#FFFFFF;text-decoration:underline}
.photo-credit[hidden]{display:none}
.detail-photo.repos .credit-btn,.detail-photo.repos .photo-credit{display:none}
.detail h2{font-size:26px;line-height:1.15;letter-spacing:-.03em;margin-top:16px;text-wrap:balance}
.detail-links a{color:var(--ink)}
.coord{flex-wrap:nowrap;align-items:center}
.coord > span{flex:1;min-width:0;line-height:1.35}
.coord .ico{flex:none}
.sec{margin:4px 0 -6px;padding-top:12px}
.stopform{grid-template-columns:minmax(0,1fr)}
.flightbox{grid-template-columns:minmax(0,1fr)}
.conf-link{white-space:normal;text-align:left;height:auto;min-height:32px;padding:4px 0;line-height:1.35}

/* ---- photos: add a cover / stop photo right where it shows ---- */
.tile-wrap{position:relative;--cover-h:170px}
.trip-list > .tile-wrap:first-child{--cover-h:220px}
.trip-list > .tile-wrap:first-child .cover{height:220px}
@media (min-width:700px){ .tile-wrap,.trip-list > .tile-wrap:first-child{--cover-h:200px} .trip-list > .tile-wrap:first-child .cover{height:200px} }
.cover-btn,.photo-btn{position:absolute;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:20px;border:0;cursor:pointer;
  background:rgb(255 255 255 / .92);color:#111111;font-size:14px;font-weight:500;box-shadow:0 1px 2px rgb(0 0 0 / .08),0 6px 18px rgb(0 0 0 / .14);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.cover-btn .ico,.photo-btn .ico{width:18px;height:18px}
.cover-btn:hover,.photo-btn:hover{background:#FFFFFF}
.tile-wrap .cover-btn{left:50%;top:calc(var(--cover-h) / 2);transform:translate(-50%,-50%)}
.cover-btn.small,.photo-btn.small{width:40px;padding:0;justify-content:center;gap:0;left:auto;transform:none;top:12px;right:12px}
.tile-wrap .cover-btn.small{top:12px;right:12px;left:auto;transform:none}
.trip-cover{position:relative;margin:6px 0 0;--cover-h:180px}
.trip-cover .cover{height:180px;border-radius:14px}
.trip-cover .cover-btn{left:50%;top:90px;transform:translate(-50%,-50%)}
.trip-cover .cover-btn.small{left:auto;top:12px;right:12px;transform:none}
.trip-cover + .trip-head{padding-top:14px}
.detail-photo .photo-btn{left:50%;top:50%;transform:translate(-50%,-50%)}
.detail-photo .photo-btn.small{left:auto;top:12px;right:12px;transform:none}
.detail-photo:has(.photo-btn:not(.small)) .ki{display:none}
.cover-btn,.photo-btn{white-space:nowrap;line-height:1}

/* ---- Dec 2 comments ---- */
/* Day headings: "Day 1" and its date at the same, larger size */
.day-head{min-height:56px}
.day-head h2{font-size:18px;font-weight:600;gap:8px}
.day-head h2 span{font-size:18px;font-weight:400;color:var(--muted)}
/* stop rows: time only, so the column can be narrower */
.stop{grid-template-columns:58px 64px minmax(0,1fr) 34px}
.stop .t{font-size:13px;color:var(--soft);white-space:nowrap}
/* iPhone Safari zooms the whole page when you tap a box with text under 16px, and stays zoomed. Keep every box at 16px on touch screens. */
@media (pointer:coarse){
  input,textarea,select,.input,.smart .input,.composer input,.conf-text{font-size:16px!important}
}
/* paste confirmation: a clear, tappable first choice for flights */
.conf-cta{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 14px;border-radius:14px;border:1px solid var(--ink);background:var(--surface);color:var(--ink);text-align:left;cursor:pointer}
.conf-cta:hover{background:var(--bg)}
.conf-cta .conf-ico{width:40px;height:40px;border-radius:10px;background:var(--ink);color:var(--bg);display:grid;place-items:center;flex:none}
.conf-cta .conf-ico .ico{width:20px;height:20px}
.conf-cta .conf-txt{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.conf-cta b{font-size:15px;font-weight:600}
.conf-cta small{font-size:12.5px;color:var(--muted);line-height:1.35}
.conf-cta > .ico{color:var(--muted)}
.flightbox .or{margin:2px 0}
/* full-width main button on Add a stop and Paste confirmation */
.sheet-actions.full{display:block}
.btn.cta{display:flex;width:100%;height:52px;border-radius:26px;font-size:16px;font-weight:600}
.btn.cta:disabled{opacity:.35;cursor:default}
.del-row{display:flex;justify-content:center;margin-top:4px}
.del-row .confirm{justify-content:center}
#cf .sheet-actions.stick{margin-top:8px}

/* stop detail: a consistent 80%-height card over a darker backdrop */
.scrim.dim{background:rgb(0 0 0 / .6)}
.sheet.tall{height:min(80vh,calc(100% - 8px));height:min(80dvh,calc(100% - 8px));max-height:none}
@media (min-width:601px){ .sheet.tall{height:min(80vh,820px)} }

/* tickets & documents */
.docs{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.docs h3{margin:0;font-size:14px;font-weight:600;display:flex;align-items:center;gap:7px}
.docs h3 .ico{width:17px;height:17px}
.docs h3 span{color:var(--muted);font-weight:400}
.doc{display:flex;align-items:center;gap:6px}
.doc-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer;text-align:left}
.doc-open:hover{border-color:var(--faint)}
.doc-ico{width:36px;height:36px;border-radius:9px;background:var(--sunk);display:grid;place-items:center;flex:none}
.doc-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.doc-txt b{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.doc-txt small{font-size:12px;color:var(--muted)}
.doc-go{font-size:13px;font-weight:600}
.doc .x{border:0;background:none;color:var(--faint);font-size:18px;cursor:pointer;width:32px;height:32px}
.doc .x:hover{color:var(--danger)}
.doc-add{display:flex;gap:8px;flex-wrap:wrap}
.doc-add .btn{height:40px;flex:1;min-width:140px}
.doc-add .btn .ico{width:16px;height:16px}
.doc-linkf{display:flex;gap:8px}
.doc-linkf .input{flex:1}
.doc-linkf .btn{height:42px}
.doc-chip{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border-radius:12px;border:0;background:var(--sunk);color:var(--ink);font-size:12px;font-weight:600;cursor:pointer}
.doc-chip .ico{width:14px;height:14px}
/* comments: never wider than their column; links show as a short site name */
.cmt{min-width:0}
.cmt .ctext{flex:1;min-width:0;overflow-wrap:anywhere;word-break:break-word}
.cmt .clink{display:inline-flex;align-items:center;gap:2px;font-weight:500;color:var(--ink);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--faint);white-space:nowrap}
.cmt .clink .ico{width:11px;height:11px;stroke-width:2.2}
.comments{min-width:0}
.note,.sub,.title{overflow-wrap:anywhere}
/* safety net: nothing inside a stop can widen the page */
.trip.wrap{overflow-x:clip}

/* ---- welcome screen: the B blooms, the name rises, then the app arrives ---- */
html.welcoming,html.welcoming body{overflow:hidden}
.welcome{position:fixed;inset:0;z-index:100;background:var(--bg);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:default;-webkit-tap-highlight-color:transparent}
.w-center{display:flex;flex-direction:column;align-items:center;gap:26px;margin-top:-48px}
/* Bloom (4 Dec 2026): the B opens from its base like a flower, the petal unfurls on top, then "l o o m" rise from a horizon */
.w-bloom{width:184px;height:auto;display:block;overflow:visible;fill:currentColor}
.w-b path{transform-box:fill-box}
.w-body{transform-origin:50% 100%;transform:scale(.35) rotate(-14deg);opacity:0;animation:wOpen .95s .15s cubic-bezier(.22,1,.36,1) forwards}
.w-petal{transform-origin:100% 0;transform:scale(.2) rotate(28deg);opacity:0;animation:wOpen .8s .7s cubic-bezier(.22,1,.36,1) forwards}
@keyframes wOpen{to{transform:none;opacity:1}}
.w-l{transform:translateY(30px);animation:wRise .8s cubic-bezier(.16,.84,.3,1) forwards}
.w-l0{animation-delay:1.15s}.w-l1{animation-delay:1.27s}.w-l2{animation-delay:1.39s}.w-l3{animation-delay:1.51s}
@keyframes wRise{to{transform:none}}
.w-credit{position:absolute;left:50%;bottom:calc(52px + env(safe-area-inset-bottom,0px));width:104px;margin-left:-52px;fill:var(--muted);opacity:0;animation:wFade 1s 1.2s ease forwards}
@keyframes wFade{to{opacity:1}}
.welcome.out{pointer-events:none;animation:wOut .62s cubic-bezier(.65,0,.35,1) forwards}
.welcome.out .w-center{animation:wLift .62s cubic-bezier(.65,0,.35,1) forwards}
@keyframes wOut{to{opacity:0}}
@keyframes wLift{to{transform:translateY(-28px)}}
.welcome.still .w-bloom path{animation:none;transform:none;opacity:1}
.welcome.still .w-credit{animation:none;opacity:1}
/* the app's first screen eases in once the welcome lifts */
html.arriving .home > *,html.arriving .trip-list > *{animation:arrive .6s cubic-bezier(.2,.8,.2,1) both}
html.arriving .home > *:nth-child(2){animation-delay:.05s}
html.arriving .home > *:nth-child(3){animation-delay:.1s}
html.arriving .home > *:nth-child(4){animation-delay:.15s}
html.arriving .trip-list > *:nth-child(1){animation-delay:.18s}
html.arriving .trip-list > *:nth-child(2){animation-delay:.26s}
html.arriving .trip-list > *:nth-child(3){animation-delay:.34s}
html.arriving .trip-list > *:nth-child(n+4){animation-delay:.42s}
@keyframes arrive{from{opacity:0;transform:translateY(16px)}}

/* ---- invite: "Ben is sharing a trip with you" ---- */
.invite{display:flex;flex-direction:column;gap:14px;padding-bottom:40px}
.inv-card{margin-top:18px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--surface)}
.inv-cover{position:relative;height:180px}
.inv-av{position:absolute;left:20px;bottom:-26px;width:56px;height:56px;border-radius:28px;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-size:22px;font-weight:600;border:4px solid var(--surface)}
.inv-body{padding:38px 20px 20px;display:flex;flex-direction:column;gap:6px}
.inv-kicker{margin:0;font-size:15px;color:var(--soft)}
.inv-kicker b{color:var(--ink);font-weight:600}
.inv-h{margin:0;font-size:30px;font-weight:600;letter-spacing:-.03em;line-height:1.1;text-wrap:balance}
.inv-meta{margin:2px 0 0;font-size:14px;color:var(--muted)}
.inv-what{margin:10px 0 0;font-size:14px;color:var(--soft);line-height:1.5}
.inv-skel{display:inline-block;width:60%;height:28px;border-radius:8px;background:var(--sunk)}
.inv-skip{align-self:center;color:var(--muted)}
.invite > .cta{margin-top:6px}
.invite .inv-h{margin:6px 0 0}
.inv-av{border-radius:50%;box-sizing:content-box}

/* ---- sign in: editorial layout ---- */
.auth{min-height:100vh;min-height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;padding-top:max(36px,env(safe-area-inset-top,0px));padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.auth-brand{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600;letter-spacing:-.01em;margin-top:18px}
.auth-brand .vv-lockup{width:116px}
.auth-h{margin:52px 0 0;font-size:42px;font-weight:600;letter-spacing:-.04em;line-height:1.04;text-wrap:balance}
.auth-lede{margin:14px 0 0;font-size:15px;line-height:1.5;color:var(--soft);max-width:330px}
.auth-feats{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-direction:column;gap:14px;font-size:15px;color:var(--soft)}
.auth-feats li{display:flex;align-items:center;gap:12px}
.auth-feats li span{width:36px;height:36px;border-radius:10px;background:var(--sunk);color:var(--ink);display:grid;place-items:center;flex:none}
.auth-feats .ico{width:18px;height:18px}
.auth-spacer{flex:1;min-height:36px}
.auth-actions{display:flex;flex-direction:column;gap:14px;max-width:420px;width:100%;align-self:center}
.auth-actions .gbtn{min-height:44px}
.auth-actions .or{margin:8px 0}
.auth-email-btn{height:52px;border-radius:26px;font-size:16px;font-weight:500;border-color:var(--faint)}
.auth-emailf{display:flex;flex-direction:column;gap:12px}
.auth-emailf .input{height:52px;border-radius:14px}
.auth-msg{margin:0;font-size:13px;text-align:center}
.auth .auth-foot{margin:0;text-align:center;max-width:none}
.auth .auth-review{margin-top:-6px}
.auth .auth-review .link-btn{font-size:12.5px;font-weight:400;color:var(--muted)}
/* our own Continue with Google button, drawn to the design */
.btn.g-cta{width:100%;height:52px;border-radius:26px;border:0;background:var(--ink);color:var(--bg);font-size:16px;font-weight:600;gap:12px}
.btn.g-cta:hover{opacity:.9}
.btn.g-cta:disabled{opacity:.6;cursor:default}
.g-badge{width:26px;height:26px;border-radius:13px;background:#FFFFFF;display:grid;place-items:center;flex:none}
.auth-actions .gbtn{min-height:52px;display:block}
.inv-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.inv-av{z-index:1}
.auth-actions .gbtn.gis{min-height:44px;display:flex;justify-content:center}
.auth-actions .gbtn.gis{height:52px;min-height:52px;align-items:flex-start}

/* ---- All trips: small V mark top left ---- */
.home-mark{display:inline-flex;align-items:center;color:var(--ink);margin-right:6px}
.home-mark svg{width:24px;height:auto;display:block;fill:currentColor}

/* ---- a trip loads in when opened from All trips: cover grows, then the rest rises in order ---- */
.trip.entering .trip-cover{animation:tripCover .55s cubic-bezier(.2,.8,.2,1) both;transform-origin:50% 0}
.trip.entering .topbar{animation:tripFade .4s ease both}
.trip.entering .trip-head,.trip.entering > section{animation:tripRise .5s cubic-bezier(.2,.8,.2,1) both}
.trip.entering .trip-head{animation-delay:.12s}
.trip.entering > section:nth-of-type(1){animation-delay:.2s}
.trip.entering > section:nth-of-type(2){animation-delay:.27s}
.trip.entering > section:nth-of-type(3){animation-delay:.34s}
.trip.entering > section:nth-of-type(n+4){animation-delay:.4s}
.trip.entering ~ .dock{animation:tripRise .5s .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes tripCover{from{opacity:0;transform:scale(.94)}}
@keyframes tripFade{from{opacity:0}}
@keyframes tripRise{from{opacity:0;transform:translateY(18px)}}
@media (prefers-reduced-motion:reduce){.trip.entering *,.trip.entering,.trip.entering ~ .dock{animation:none!important}}

/* ---- All trips: "more" on each trip (duplicate) ---- */
.tile-more{position:absolute;right:-10px;bottom:-12px;width:44px;height:44px;border:0;background:none;border-radius:22px;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.tile-more .ico{width:20px;height:20px}
.tile-more:hover{background:var(--chip, #F4F4F4);color:var(--ink)}
.tile-wrap .tile-meta{padding-right:36px}
.dup-note{margin:2px 0 0}

/* ---- Share: invite only ---- */
.form.share{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}

/* ---- flights with no photo: plane icon over pillowy clouds ---- */
.thumb .ki .ico,.detail-photo .ki .ico{filter:drop-shadow(0 1px 3px rgb(30 70 120 / .35))}

/* ---- Plan with your AI ---- */
.ai-row{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);text-align:left;cursor:pointer;color:var(--ink);font:inherit}
.ai-row > .ico:first-child{width:22px;height:22px;flex:none}
.ai-row span{flex:1;display:flex;flex-direction:column;gap:2px}
.ai-row b{font-weight:600;font-size:15px}
.ai-row small{color:var(--muted);font-size:13px}
.ai-copy{display:flex;align-items:center;gap:6px;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:4px 4px 4px 14px}
.ai-copy code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:13px/1.4 var(--f-mono)}
.ai-tabs{margin-top:4px}
.ai-tabs input:checked + span{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.ai-steps{margin:0;padding-left:20px;display:grid;gap:8px;font-size:14px;line-height:1.45;color:var(--soft)}
.ai-steps b{color:var(--ink);font-weight:600}
.ai-prompt{margin:12px 0 8px;padding:12px 14px;border-radius:12px;background:var(--sunk);font-size:13.5px;line-height:1.45;color:var(--ink)}
.ai-foot{display:flex;justify-content:space-between;gap:8px;margin-top:6px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
.ai-copy.fresh{border-color:var(--ink);background:var(--bg)}
.ai-copy.fresh code{white-space:normal;word-break:break-all;overflow:visible}
.ai-prompt.mono{font:12.5px/1.5 var(--f-mono);word-break:break-all}

/* ---- reposition a stop photo by dragging ---- */
.detail-photo .photo-btn.small.pos-btn{right:60px}
.detail-photo .repos-bar{display:none}
.detail-photo.repos{cursor:grab;touch-action:none;outline:2px solid var(--ink);outline-offset:2px}
.detail-photo.repos:active{cursor:grabbing}
.detail-photo.repos img{user-select:none;-webkit-user-drag:none;pointer-events:none}
.detail-photo.repos .photo-btn,.detail-photo.repos .kind-chip{display:none}
.detail-photo.repos .repos-bar{display:flex;position:absolute;left:12px;right:12px;bottom:12px;justify-content:space-between;align-items:center;gap:8px}
.repos-hint{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;background:rgb(17 17 17 / .6);color:#fff;font-size:13px;font-weight:500}
.repos-hint .ico{width:15px;height:15px}
.repos-acts{display:flex;gap:6px}
.repos-acts .btn{background:#fff;color:#111}
.repos-acts .btn.primary{background:#111;color:#fff}

/* ---- Trip photos: pill, album and viewer ---- */
.photos-pill{border:0;cursor:pointer;font:inherit;font-size:12.5px;font-weight:500;background:var(--ink);color:var(--bg)}
.photos-pill b{color:var(--bg)}
.photos-pill .ico{width:14px;height:14px}
.album-sub{margin:-4px 0 0;font-size:14px}
.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:4px}
.album-cell{position:relative;aspect-ratio:1;padding:0;border:0;border-radius:6px;overflow:hidden;background:var(--sunk);cursor:zoom-in}
.album-cell img{width:100%;height:100%;object-fit:cover;display:block}
.album-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 0;color:var(--muted);font-size:14px}
.album-empty .ico{width:28px;height:28px}
.lightbox{position:fixed;inset:0;z-index:200;background:#0B0B0B;display:flex;align-items:center;justify-content:center;color:#fff;touch-action:pan-y}
.lb-img{max-width:100%;max-height:100%;object-fit:contain;user-select:none}
.lb-top{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px;background:linear-gradient(rgb(0 0 0 / .45),transparent)}
.lb-count{font-size:14px;font-weight:500}
.lb-btn,.lb-nav{width:40px;height:40px;border-radius:20px;border:0;background:rgb(255 255 255 / .14);color:#fff;display:grid;place-items:center;cursor:pointer}
.lb-btn .ico,.lb-nav .ico{width:20px;height:20px}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%)}
.lb-nav.prev{left:10px}.lb-nav.next{right:10px}
.lb-cap{position:absolute;left:0;right:0;bottom:0;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));text-align:center;font-size:14px;background:linear-gradient(transparent,rgb(0 0 0 / .5))}
@media (pointer:coarse){ .lb-nav{display:none} }

/* ---- album: select and download ---- */
.album-check{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:12px;border:2px solid #fff;background:rgb(0 0 0 / .25);display:none;place-items:center;color:#fff}
.album-check .ico{width:14px;height:14px;stroke-width:2.6;opacity:0}
.album.selecting .album-check{display:grid}
.album.selecting .album-cell{cursor:pointer}
.album-cell.on .album-check{background:var(--ink);border-color:#fff}
.album-cell.on .album-check .ico{opacity:1}
.album-cell.on img{opacity:.72}
.album-bar{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px -4px 0;padding:12px 4px calc(12px + env(safe-area-inset-bottom,0px));background:var(--bg);border-top:1px solid var(--line)}
.album:not(.selecting) .album-bar [data-dl-sel],.album:not(.selecting) .album-bar [data-rm-sel],.album.selecting .album-bar [data-dl-all]{display:none}
.album-broken{display:none;position:absolute;inset:0;place-items:center;padding:8px;font-size:11.5px;line-height:1.3;color:var(--muted);text-align:center}
.album-cell.broken img{visibility:hidden}
.album-cell.broken .album-broken{display:grid}
.album-bar [data-rm-sel]{color:var(--danger,#C0392B)}
.album:not(.selecting) .album-bar{grid-template-columns:1fr}
.album-bar .btn{justify-content:center;height:46px}
.album-bar .btn .ico{width:18px;height:18px}
.album-bar .btn[disabled]{opacity:.45}

/* ---- who added a stop + suggestions with thumbs-up ---- */
.by-row{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:6px}
.added-by{font-size:12.5px;color:var(--muted)}
.sugg-chip{display:inline-flex;align-self:flex-start;align-items:center;height:20px;padding:0 8px;margin-bottom:4px;border-radius:10px;border:1px dashed #C98A12;color:#9A6508;background:#FFF6E3;font-size:11.5px;font-weight:600;letter-spacing:.01em}
.stop.suggested .thumb{opacity:.6;outline:2px dashed #E3B65A;outline-offset:2px}
.stop.suggested .title{color:var(--soft)}
.vote-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-radius:14px;border:1px solid var(--line);background:var(--bg);color:var(--soft);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.vote-btn .ico{width:15px;height:15px}
.vote-btn.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.vote-btn.big{height:40px;padding:0 16px;border-radius:20px;font-size:14px}
.vote-btn.big .ico{width:18px;height:18px}
.detail-by{margin:2px 0 0;font-size:13px;color:var(--muted)}
.sugg-box{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;padding:14px;border-radius:14px;border:1px dashed #E3B65A;background:#FFF9EC}
.sugg-box > div{flex:1 1 100%;display:flex;flex-direction:column;gap:3px}
.sugg-box b{font-size:14.5px;font-weight:600;color:#7A5206}
.sugg-box small{font-size:13px;color:#8A6A2E;line-height:1.4}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--line);border-radius:14px;cursor:pointer}
.switch-row span{display:flex;flex-direction:column;gap:3px}
.switch-row b{font-size:15px;font-weight:600}
.switch-row small{font-size:12.5px;color:var(--muted);line-height:1.4}
.switch{appearance:none;-webkit-appearance:none;flex:none;width:46px;height:28px;border-radius:14px;background:var(--line);position:relative;cursor:pointer;transition:background .2s;margin:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:11px;background:#fff;box-shadow:0 1px 3px rgb(0 0 0 / .25);transition:transform .2s}
.switch:checked{background:#E0A229}
.switch:checked::after{transform:translateX(18px)}
.sugg-line{display:flex;align-items:center;gap:6px;margin-bottom:4px;flex-wrap:wrap}
.sugg-line .sugg-chip{margin-bottom:0}
.sugg-by{font-size:12.5px;color:#9A6508;font-weight:500}
/* suggestions: just a pink tag, no dotted outlines */
.sugg-chip{border:0;background:#FDE3EC;color:#C2185B;border-radius:10px}
.sugg-by{color:#C2185B}
.stop.suggested .thumb{opacity:1;outline:0}
.stop.suggested .title{color:var(--ink)}
.sugg-box{border:0;background:#FFF0F5}
.sugg-box b{color:#A3134D}
.sugg-box small{color:#8E4A63}
.switch:checked{background:#E8457F}
/* suggestions: quiet grey, to match the rest of the app */
.sugg-chip{background:var(--sunk);color:var(--soft)}
.sugg-by{color:var(--muted)}
.sugg-box{background:var(--sunk)}
.sugg-box b{color:var(--ink)}
.sugg-box small{color:var(--muted)}
.switch:checked{background:var(--ink)}
/* suggestion switch: one quiet row */
.switch-row{border:0;border-top:1px solid var(--line);border-radius:0;padding:14px 0 4px}
.switch-row b{font-size:15px;font-weight:500}
.switch-row small{font-size:13px}
.switch-row.top{border:0;padding:2px 0;margin-top:-2px}
.switch-row.top b{font-size:14.5px;font-weight:500;color:var(--soft)}
.switch-row.top .switch{width:40px;height:24px;border-radius:12px}
.switch-row.top .switch::after{width:18px;height:18px;border-radius:9px}
.switch-row.top .switch:checked::after{transform:translateX(16px)}
.w-credit{bottom:calc(96px + env(safe-area-inset-bottom,0px))}

.w-credit{animation-delay:1.7s}

/* Documents: optional name for a pasted link, and renaming */
.doc-linkf{flex-wrap:wrap}
.doc-linkf .input[type=url]{flex:1 1 100%}
.doc-linkf .input[type=text]{flex:1;min-width:0}
.doc .doc-ren svg{width:14px;height:14px}
.doc-renf{display:flex;gap:8px;flex:1;align-items:center;padding:6px 0}
.doc-renf .input{flex:1;min-width:0}

/* Photos: show the chosen photo at once while it uploads; remove buttons */
.cover.uploading::after,.detail-photo.uploading::after{content:'Uploading…';position:absolute;left:12px;bottom:12px;padding:5px 11px;border-radius:14px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;font-weight:500;pointer-events:none}
.detail-photo .photo-btn.small.rm-btn{right:108px}
.photo-menu{display:flex;flex-direction:column;gap:10px}
.photo-menu .btn.full{width:100%;justify-content:center;height:48px}
.photo-menu .hint{text-align:center}

/* ---- Add a stop: link box first, details only once there's something to fill in ---- */
.stopform .smart .input{padding-right:78px}
.smart-paste{position:absolute;right:8px;top:9px;height:30px}
.link-btn{justify-self:start;align-self:flex-start;background:none;border:0;padding:2px 0;font:inherit;font-size:13.5px;font-weight:500;color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.link-btn[hidden],.more-wrap[hidden]{display:none}
.more-wrap{display:grid;gap:12px}
.add-bar{display:flex!important;align-items:center;gap:12px}
.add-bar .cta{flex:1}
.sugg-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;flex:none}
.sugg-toggle span{display:flex;flex-direction:column;gap:1px}
.sugg-toggle b{font-size:13.5px;font-weight:500}
.sugg-toggle small{font-size:11.5px;color:var(--muted)}
@media (max-width:600px){
  /* Full height on phones, so nothing under the box moves when the keyboard opens */
  .sheet:has(.stopform.adding){height:calc(100% - 8px);max-height:none;animation:fade .18s ease}
  .stopform.adding{display:flex;flex-direction:column;min-height:100%}
  .stopform.adding > *{flex:none}
  .stopform.adding .add-bar{margin-top:auto}
}

/* ---- Trip map: real Google map with numbered pins, a day picker and a card for the tapped stop ---- */
.mapsheet .map-days{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -22px;padding:2px 22px}
.mapsheet .map-days::-webkit-scrollbar{display:none}
.mapsheet .map-days label{flex:none}
.mapsheet .map-days span{height:34px;padding:0 13px}
.mapsheet .map-days input:checked + span{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.mapsheet .map-box{height:min(64vh,620px);background:var(--sunk)}
.gpin{position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;border-radius:50%;border:2.5px solid #FFFFFF;background:#111111;color:#FFFFFF;font:600 12px var(--f-mono);display:grid;place-items:center;padding:0;cursor:pointer;box-shadow:0 1px 4px rgb(0 0 0 / .35);transition:transform .15s,opacity .15s}
.gpin.on,.gpin.sel{transform:translate(-50%,-50%) scale(1.25);z-index:2}
.gpin.dim{opacity:.28;transform:translate(-50%,-50%) scale(.8)}
.map-card{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.map-card[hidden]{display:none}
.map-card-n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--ink);color:var(--bg);font:600 12px var(--f-mono);display:grid;place-items:center}
.map-card-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.map-card-t b{font-size:14.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-card-t small{font-size:12.5px;color:var(--muted)}
.map-actions{justify-content:space-between;margin-top:0}
.map-hint{font-size:13px;color:var(--muted)}
@media (max-width:600px){
  .mapsheet .map-days{margin:0 calc(max(20px,env(safe-area-inset-right,0px)) * -1) 0 calc(max(20px,env(safe-area-inset-left,0px)) * -1);padding:2px max(20px,env(safe-area-inset-left,0px))}
  /* Full height on phones, like Add a stop and Trip photos */
  .sheet:has(.mapsheet){height:calc(100% - 8px);max-height:none;display:flex;flex-direction:column}
  .mapsheet{flex:1;display:flex;flex-direction:column;gap:12px;min-height:0}
  .mapsheet > *{flex:none}
  .mapsheet .map-box{flex:1;height:auto;min-height:240px}
  .sheet:has(.album){height:calc(100% - 8px);max-height:none}
}

/* ---- Sheets: keep the page behind still, and never show it under the sheet ---- */
html.sheet-open,html.sheet-open body{overflow:hidden;overscroll-behavior:none}
.sheet{overscroll-behavior:contain}
@media (max-width:600px){
  /* The keyboard on iPhone is see-through; fill the space under the sheet so the trip doesn't show through it */
  .scrim::after{content:'';position:absolute;left:0;right:0;top:100%;height:100vh;background:var(--surface);pointer-events:none}
}

/* ---- Phones: every sheet fills the screen (except the small cover-photo menu), with its buttons at the bottom ---- */
@media (max-width:600px){
  .sheet:not(:has(.photo-menu)){height:calc(100% - 8px);max-height:none}
  .sheet > .form{display:flex;flex-direction:column;min-height:100%}
  .sheet > .form > *{flex:none}
  .sheet > .form > .sheet-actions{margin-top:auto}
  .sheet > .form > .sheet-actions ~ .sheet-actions{margin-top:0}
  .sheet > .detail{min-height:100%}
  .sheet > .form > .map-box{flex:1 1 auto}
}

/* ---- Phones: sheets are truly full screen. The backdrop is the app's own background and covers the whole
   screen, including under the see-through keyboard; the sheet fills the part above the keyboard. ---- */
@media (max-width:600px){
  .scrim{background:var(--surface);padding:0;align-items:flex-start}
  .scrim::after{display:none}
  .scrim > .sheet:not(:has(.photo-menu)){position:absolute;left:0;right:0;top:var(--vvt,0px);height:var(--vvh,100%);max-height:none;border-radius:0;box-shadow:none;padding-top:max(18px,env(safe-area-inset-top,0px));animation:fade .18s ease}
  /* the small cover-photo menu stays a pop-up over the dimmed trip */
  .scrim:has(.photo-menu){background:var(--scrim);align-items:flex-end}
}
@media (max-width:600px){
  html.sheet-full,html.sheet-full body{background:var(--surface)}
  html.sheet-full #app{visibility:hidden}
}

/* stop detail: Edit and close sit on one line, centred on each other */
.detail-top > span{display:flex;align-items:center}

/* ---- Back to the trip: on phones, view screens (stop, map, photos) get "‹ Trip" at the top left instead of an X ---- */
.back-btn{display:none}
@media (max-width:600px){
  .back-btn{display:inline-flex;align-items:center;gap:2px;max-width:62vw;height:40px;margin-left:-10px;padding:0 10px 0 4px;border:0;border-radius:999px;background:none;color:var(--ink);font:inherit;font-size:16px;font-weight:500;cursor:pointer}
  .back-btn .ico{width:22px;height:22px;flex:none}
  .back-btn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .back-btn:active{background:var(--sunk)}
  .detail-top .icon-btn[data-close],.mapsheet .sheet-head [data-close],.album .sheet-head [data-close]{display:none}
  .mapsheet > .back-btn,.album > .back-btn{align-self:flex-start;margin-top:-8px;margin-bottom:-6px}
}
@media (max-width:600px){.detail-top{margin-right:0}}

/* ---- Paste or drop a plan ---- */
.imp-lede{margin:-6px 0 0;font-size:14px;line-height:1.45}
.imp-drop{display:grid;gap:8px;border-radius:14px}
.imp-drop.over{outline:2px dashed var(--ink);outline-offset:4px}
.imp-text{min-height:180px;resize:vertical;font-size:15px;line-height:1.45}
.imp-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.imp-tools .btn .ico{width:14px;height:14px}
.imp-hint{font-size:12.5px;color:var(--muted)}
@media (pointer:coarse){.imp-hint{display:none}}
.imp-file{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px;font-size:14px}
.imp-file[hidden]{display:none}
.imp-file span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imp-count{font-size:13.5px;color:var(--muted);margin-top:4px}
.imp-item{align-items:center}
.imp-item input{margin-top:0}
.imp-ico{flex:none;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--sunk);color:var(--ink)}
.imp-ico .ico{width:16px;height:16px}
.imp-note{font-style:italic}
.imp-wait{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted);padding:6px 0}
.imp-spin{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--ink);animation:impSpin .8s linear infinite}
@keyframes impSpin{to{transform:rotate(360deg)}}
.add-alts{display:flex;flex-wrap:wrap;gap:6px 18px}
.add-alts[hidden]{display:none}
#nt .link-btn{justify-self:start}
.importer .imp-text{height:38vh;min-height:180px;max-height:420px}
.importer.has-results .imp-text{height:96px;min-height:0}
@media (max-width:600px){.sheet > .form > *{min-width:0}.scrim > .sheet{overflow-x:hidden}}
/* Sign in: enter the code from the email */
.auth-sent{margin:0 0 4px;text-align:center;font-size:15px;line-height:1.5;color:var(--soft)}
.auth-sent b{color:var(--ink);font-weight:600;word-break:break-all}
.auth-code .input{text-align:center;font-size:22px;letter-spacing:.3em}
.auth-code .input::placeholder{font-size:16px;letter-spacing:0;font-family:var(--f-body)}
.auth-code-alts{display:flex;justify-content:center;gap:20px;font-size:13.5px}

/* What's new: dots on trips and stops, the activity list and the pop-up */
.wn-pill{position:absolute;left:12px;top:12px;height:26px;padding:0 10px;border-radius:13px;background:var(--ink);color:var(--bg);font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;gap:6px;box-shadow:0 1px 3px rgb(0 0 0 / .18);pointer-events:none}
.wn-pill::before{content:"";width:6px;height:6px;border-radius:3px;background:#FF5A36}
.wn-bar{display:flex;align-items:center;gap:12px;width:100%;margin:-6px 0 22px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.wn-bar:hover{border-color:var(--faint)}
.wn-bar .avatars{flex:none}
.wn-text{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.wn-text b{font-size:15px;font-weight:600}
.wn-text small{font-size:13px;color:var(--muted)}
.wn-bar > .ico{width:18px;height:18px;color:var(--muted);flex:none}
.av.wn-av{color:#fff;border-color:var(--bg)}
.av.wn-av.sm{width:22px;height:22px;border:0;font-size:10.5px}
.wn-dot{width:7px;height:7px;border-radius:4px;background:#FF5A36;flex:none;display:inline-block}
.wn-line{display:flex;align-items:center;gap:6px;margin-bottom:3px;font-size:12.5px;font-weight:600;color:var(--ink)}
.cbtn.wn{position:relative}
.cbtn.wn::after{content:"";position:absolute;top:1px;right:-3px;width:7px;height:7px;border-radius:4px;background:#FF5A36;border:2px solid var(--bg)}
.wn-sheet .p{margin:4px 0 6px}
.wn-day{margin:18px 0 4px;font-family:var(--f-mono);font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.02em}
.wn-row{display:flex;align-items:flex-start;gap:12px;width:100%;padding:10px 0;border:0;background:none;font:inherit;color:var(--soft);text-align:left;cursor:pointer}
.wn-row > .av{margin-top:1px}
.wn-row > span:not(.av){display:flex;flex-direction:column;gap:2px;min-width:0}
.wn-what{font-size:15px;line-height:1.35}
.wn-what b{color:var(--ink);font-weight:600}
.wn-row small{font-size:13px;color:var(--muted);line-height:1.4}
.wn-row small.wn-ago{color:var(--faint)}
.wn-row:hover .wn-what b:last-child{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--faint)}
.wn-sheet .sheet-actions{margin-top:18px}
.toast.wn-toast{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;width:max-content}
.wn-toast b{font-weight:600}
.wn-toast button{border:0;border-radius:999px;background:color-mix(in srgb, var(--bg) 18%, transparent);color:var(--bg);font:inherit;font-size:13px;font-weight:600;padding:6px 12px;cursor:pointer}
.wn-sheet .sheet-actions .btn{width:100%;justify-content:center}

/* Visitors from the website: planning screen, then their trip with "Save trip" (app.js renderVisitor) */
.planning .plan-steps{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-direction:column;gap:16px}
.planning .plan-steps li{display:flex;align-items:center;gap:12px;font-size:17px;color:var(--faint);transition:color .3s}
.planning .plan-steps li .imp-spin{visibility:hidden;flex:none}
.planning .plan-steps li.on{color:var(--ink)}
.planning .plan-steps li.on .imp-spin{visibility:visible}
.planning .plan-steps li.done .imp-spin,.planning .plan-steps li.stop .imp-spin{animation:none;border-color:var(--ink);background:var(--ink)}
.planning .plan-steps li.stop:not(.on){display:none}
.planning .plan-err{margin-top:28px;font-size:15px;line-height:1.5}
.planning .plan-acts{display:flex;gap:8px;margin-top:14px}
.trip.draft .draft-note{margin:14px 0 4px}
.draft-note{padding:12px 14px;border-radius:12px;background:var(--sunk);font-size:14px;line-height:1.45;color:var(--soft)}
.save-bar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--bg);border-top:1px solid var(--line);padding:12px 0 calc(14px + env(safe-area-inset-bottom,0px))}
.save-bar .wrap{display:flex;align-items:center;gap:12px}
.save-bar span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:15px}
.save-bar small{font-size:13px;color:var(--muted)}
.save-bar .btn{flex:none;height:48px;padding:0 22px}
.save-bar .round.line{width:48px;height:48px;border-radius:24px;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer;flex:none}
