/* Finish: physical edges and softer corners in the theme's own colors,
   so every theme on the Customize page gets the same look. Loaded after app.css and before motion.css. */
:root,.flip{
  --line-soft:color-mix(in srgb,var(--line) 55%,var(--surface));   /* hairline borders inside cards */
  --raise:color-mix(in srgb,var(--ink) 4%,var(--surface));          /* a step lighter than a card */
  --tint:color-mix(in srgb,var(--mark) 12%,transparent);             /* picked and active states */
  --hilite:inset 0 1px 0 color-mix(in srgb,var(--ink) 7%,transparent);
  --r:16px;
}

/* Cards sit on the page like iOS grouped sections: a raised fill with a quiet edge and shadow. Deeper shadows are for what
   floats: sheets, menus and toasts. The border stays transparent so nothing shifts. */
.card{border-color:transparent;border-radius:var(--r);box-shadow:var(--shadow-1)}
html.compact .card{border-radius:12px}

/* Panels inside cards sit a step up, with hairlines rather than boxes */
.pr,.club,.rday,.kneedrop,.in-steps li{background:var(--raise);border-color:var(--line-soft);border-radius:12px}
.list .r,.rd-sec,.rd-next,.acct-manage{border-color:var(--line-soft)}
.gl{stroke:var(--line-soft)}

/* Example data banner: a soft tinted note instead of a gray slab */
.banner{background:color-mix(in srgb,var(--mark) 7%,var(--surface));border:1px dashed color-mix(in srgb,var(--mark) 35%,var(--line));border-radius:var(--r)}
.banner .btn{background:var(--surface)}

/* Buttons */
.btn{--button-edge:color-mix(in srgb,var(--accent) 62%,var(--medal-ink));border-radius:12px;box-shadow:var(--sheen),0 4px 0 var(--button-edge)}
.btn:not(.ghost):not(.danger){background:var(--accent)}
/* Every red button reads the same at its size: body bold, the text scaled to the button so it fills it (1.2rem on the
   big hero buttons, 1.0625rem on regular ones, .95rem on small ones). :not(#_) lifts it over id-scoped size rules like
   #gymmap .map-find .btn. */
.btn:not(.ghost):not(.danger):not(#_){font-family:var(--body);font-weight:700;font-size:1.0625rem;text-transform:none;letter-spacing:0}
.btn.hero:not(.ghost):not(.danger):not(#_){font-size:1.2rem}
.btn.sm:not(.ghost):not(.danger):not(#_){font-size:.95rem}
.btn.ghost{--button-edge:color-mix(in srgb,var(--raise) 68%,var(--bg));background:var(--raise);border-color:transparent;box-shadow:var(--sheen),0 3px 0 var(--button-edge)}
.btn.danger{--button-edge:color-mix(in srgb,var(--bad) 50%,var(--bg))}
.btn:active:not(:disabled){translate:0 3px;box-shadow:var(--sheen),0 1px 0 var(--button-edge)}
.btn:disabled{box-shadow:none}
.reward,.cw-hero .pt-n,.cr-screen h1,#lvup .ms-n,#lvup .ms-s b,.md-head>.num,.pr-hit,.cv-row.lead .cv-rv{color:var(--reward-text)}
.lbar.hit>.num,.lbar.hit>b,.lsay.hit>b{color:var(--reward-text)}
.cw-days i.on,.cv-row.lead .meter>i{background:var(--reward)}
.btn.poke-sent:disabled{background:color-mix(in srgb,var(--crewc) 20%,var(--surface));border-color:color-mix(in srgb,var(--crewc) 65%,var(--line))}
.btn.hero{min-height:72px;border-radius:14px}
.quick.cal-big.tight .lh.done .lh-top>.btn{display:inline-flex}

/* Kilo leads Log; the fit measurement can still fold the calendar on shorter screens. */
#today .lhead{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px 12px}
.lhead-t{grid-column:2;grid-row:1;display:flex;align-items:baseline;flex-wrap:wrap;gap:0 8px}
.lhead-t .lsub{font-size:.75rem}
/* Back to today reads as a link beside the date, not a box: the line stays the date's height, and the tap area keeps its
   44px by reaching past it. */
#today .lsub [data-act=sel-today]{min-height:44px;min-width:0;margin:-12px 0;padding:0 2px;border:0;background:none;box-shadow:none;color:var(--mark);font-size:.82rem;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.lbud{display:contents}
.lkilo-b{grid-column:1;grid-row:1/3;justify-self:center}
.lkilo-b>.lkilo{width:104px;height:104px;filter:drop-shadow(0 5px 0 color-mix(in srgb,var(--bg) 65%,transparent))}
.lbud>.lsay,.lbud>.lnote-wrap{grid-column:2;grid-row:2}
.lbud-note>.lnote-wrap{grid-row:1/3}
.lnote-wrap{padding-left:8px;padding-right:0;margin-left:-8px;margin-right:0}
.lnote-dismiss{inset:0 0 0 8px}
.lsay{flex:1;text-align:left;padding:8px 12px;min-height:64px}
.lsay::after,.lnote::after{right:auto;left:-7px;transform:rotate(225deg)}
.lsay b{font-size:1.35rem}
.goal-pns{grid-template-columns:repeat(7,1fr);margin:12px 0 16px}
#goalsheet h2{margin:8px 0 4px}
.goal-pns .cw-pn.on{background:var(--ink);color:var(--bg)}
.log-rest{display:flex;flex:0 1 auto;min-width:0;align-items:center;gap:10px;flex-wrap:wrap;font-size:.75rem}
.log-rest{min-height:44px;border:0;background:none;padding:0;text-align:left}
.personal-streak{font-weight:800}
.personal-streak{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
.personal-streak.perfect{color:var(--reward-text)}
.streak-flame{display:inline-block;flex:none;overflow:visible;vertical-align:middle}
.flame-base{fill:var(--surface2)}
.flame-charge{fill:var(--cardio);transition:y .3s ease,height .3s ease}
.flame-line{fill:none;stroke:var(--ink2);stroke-width:1.4;stroke-linejoin:round}
.streak-flame.perfect .flame-charge{fill:var(--reward)}
.streak-flame.lit .flame-line,.streak-flame.perfect .flame-line{stroke:var(--reward-text)}
.streak-recovery{padding:14px;border:1px solid var(--line-soft);border-radius:14px;background:var(--raise);margin:12px 0}
.streak-recovery p{margin:8px 0 0}
.wd-ring.streak-lit .wd-c{overflow:visible}
.wd-c>.wd-flame{position:absolute;inset:-20% -10%;display:grid;place-items:center;margin:0;z-index:0}
.wd-ring .streak-flame{transform:none;width:160px;height:208px}
.wd-ring.streak-lit .wd-n{position:relative;z-index:1;color:var(--medal-ink);font-size:clamp(3rem,17vw,4.5rem);margin-top:26px}
.wd-ring.streak-lit .wd-c>span:last-child{position:relative;z-index:1;color:var(--medal-ink);font-size:.65rem}
#wdone .wd-ring.streak-lit .wd-n{color:var(--medal-ink)}
#streak-award{box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;border:0;padding:28px 20px;background:var(--bg);color:var(--ink);overflow-y:auto}
#streak-award::backdrop{background:var(--bg)}
.streak-award-in{position:relative;max-width:420px;min-height:100%;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center}
.streak-award-in h1{color:var(--reward-text);font-size:clamp(3.5rem,16vw,6rem)}
.streak-award-in>.btn{width:100%;margin-top:16px}
.champion-kilo{position:relative;isolation:isolate;margin:26px 0;width:150px;height:150px}
.champion-kilo>.kilo{width:150px;height:150px}
.champion-crown{position:absolute;width:80px;height:40px;left:35px;top:-24px;color:var(--reward);rotate:-8deg}
.champion-cape{position:absolute;z-index:-1;inset:15px -25px -18px;background:color-mix(in srgb,var(--reward) 45%,var(--surface));clip-path:polygon(35% 0,65% 0,100% 100%,50% 83%,0 100%)}
@media(prefers-reduced-motion:no-preference){html:not(.still) .streak-flame.risk{animation:flame-risk 1.3s ease-in-out infinite}@keyframes flame-risk{50%{filter:drop-shadow(0 0 5px var(--cardio));scale:1.12}}}
@media(prefers-reduced-motion:reduce){.flame-charge{transition:none}}
.rest-token{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:3px 10px 3px 8px;border:1px solid var(--line-soft);border-radius:999px;background:var(--raise);color:var(--ink);font-size:.8rem;font-weight:700;white-space:nowrap}
.rest-token svg{flex:none;color:var(--ink2)}

.journey-preview .card-head{align-items:center;margin-bottom:6px}
.journey-preview h3{font-size:1.3rem}
.journey-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.journey-head>span:first-child{font-size:1.05rem;font-weight:700}
.journey-head>span:first-child>b{font-size:2rem;line-height:1}
.journey-road>p{margin:8px 0 0}
.road-track{position:relative;height:5px;margin:58px 10% 20px;background:var(--line);border-radius:999px}
.road-fill{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:var(--reward)}
.road-person{position:absolute;top:0;translate:-50% -50%;z-index:1}
.road-person.me{translate:-50% -46px;z-index:2}
.road-person.me .av{width:34px;height:34px;font-size:.8rem}
.road-person .av{border:2px solid var(--surface);box-shadow:0 2px 0 var(--line)}
.road-person.me .av{outline:2px solid var(--reward)}
.road-stops{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0;padding:0;text-align:center}
.road-stops li{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;color:var(--ink2);font-size:1rem}
.road-stops b{color:var(--ink);line-height:1.1}
.road-stops .locked b{color:var(--ink2)}
.road-medal{display:grid;place-items:center;width:44px;height:44px;border:2px dashed var(--line);border-radius:50%;background:var(--surface);font-size:1.3rem}
.road-stops .earned .road-medal{background:var(--reward);border:2px solid var(--reward);color:var(--reward-ink);box-shadow:0 3px 0 color-mix(in srgb,var(--reward) 60%,var(--medal-ink))}
.road-stops .next .road-medal{border:2px solid var(--reward);color:var(--reward-text);background:color-mix(in srgb,var(--reward) 12%,var(--surface))}
.road-stops .next b{color:var(--reward-text)}
.road-stops small{font-size:.75rem;font-weight:600}
.road-stops .start .road-medal{border-style:solid;border-color:var(--line-soft);background:var(--raise);font-size:.7rem}
.road-company{overflow-wrap:anywhere}
.journey-road>.road-company{margin-top:14px}
.road-company b{color:var(--ink);font-weight:600}
.journey-sheet{max-width:500px}
.journey-sheet>.kilo{margin:12px auto}
.journey-sheet>p{text-align:center;margin:12px 0}
.journey-tabs{display:flex;gap:10px;margin:18px 0}
.journey-tabs .btn{flex:1}
.journey-tabs [aria-pressed=true]{border-color:var(--reward);background:color-mix(in srgb,var(--reward) 14%,var(--surface));color:var(--ink)}
.buddy-faces{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border-radius:14px;background:var(--raise)}
.buddy-faces>span{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0}
.buddy-faces b{max-width:100%;overflow-wrap:anywhere}
.buddy-faces small{color:var(--ink2)}
.buddy-invite{margin:16px 0}
.buddy-invite p{margin-top:10px}
#mstone:not(.sharing) .ms-n,.ps-big,.pr-delta,.pb-go.hit,.fp-pr-n b{color:var(--reward-text)}
.wd-in.hit .wd-fill{stroke:var(--reward)}
.wd-in.hit .wd-n{color:var(--reward-text)}
.recap-reveal{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:min(85dvh,760px);width:min(100%,460px);padding:24px 10px;text-align:center}
.recap-reveal>.kilo{width:140px;height:140px}
.recap-reveal h2{font-size:1.8rem}
.recap-reveal-value{font-family:var(--display);font-weight:800;font-size:clamp(2.5rem,10vw,4.5rem);line-height:1.1;overflow-wrap:anywhere;max-width:100%}
.recap-reveal-detail{min-height:3em}
.recap-reveal-acts{display:flex;flex-direction:column;gap:12px;width:100%}

/* Pickers: the chosen one takes a neutral tint, never the accent */
.splitpick button,.plan,.acc,.theme,.tabs button,.pr-opt,.cstep button,.nav button,.daynav .navb,.ib{border-color:var(--line-soft);border-radius:10px}
.splitpick button[aria-pressed=true],.acc[aria-pressed=true]{background:var(--tint);border-color:color-mix(in srgb,var(--mark) 60%,transparent);color:var(--ink)}
.tabs button[aria-pressed=true],.plan[aria-pressed=true]{background:var(--mark);border-color:var(--mark);color:var(--mark-ink)}
.plan[aria-pressed=true] .t{color:var(--mark-ink)}
.seg{border-color:var(--line-soft);border-radius:10px}
.theme[aria-pressed=true]{background:var(--tint)}

/* Week strip and calendar: rounder cells, logged days raised, cardio as a small pill */
.strip .c,.cal .d{border-color:var(--line-soft);border-radius:10px}
.strip .c.gym,.cal .d.gym{background:var(--mark)}
.strip .c.cardio::after,.cal .d.cardio::after{left:28%;right:28%;bottom:5px;height:3px;border-radius:2px}
.strip .c.today,.cal .d.today{box-shadow:inset 0 0 0 2px var(--mark),0 0 0 3px var(--tint)}
.wsd.sel{background:var(--tint);border-color:transparent}

/* Meters and bars: pill shaped */
.meter{height:8px;border-radius:999px;background:var(--surface-sunken)}
.meter>i{border-radius:999px;background:var(--mark)}
.hb-t,.wb-t,.comeback-meter,.road-track,.vb-bar,.ob-prog{background:var(--surface-sunken)}

/* Inputs: inset wells with a soft focus ring */
input[type=number],input[type=date],input[type=time],input[type=text],input[type=email],input[type=password],input[type=search],select,textarea{border-color:var(--line-soft);border-radius:10px;background-color:var(--surface-sunken)}
#onboard input:not([type=checkbox]):not([type=radio]):not([type=range]){background:var(--surface-sunken)}
input:focus,select:focus{border-color:color-mix(in srgb,var(--mark) 60%,var(--line));box-shadow:0 0 0 3px var(--tint);outline:none}

/* Chips */
.chip{border-color:color-mix(in srgb,currentColor 45%,transparent);background:color-mix(in srgb,currentColor 9%,transparent)}

/* Dialogs and menus: glassy, lifted */
#checkin,#dayview,#install,.sheet,#commands{background:var(--surface-overlay);border-color:var(--line-soft);border-radius:20px;box-shadow:var(--shadow-4)}
#checkin::backdrop,#dayview::backdrop,#install::backdrop,.sheet::backdrop,#commands::backdrop{background:rgba(6,8,28,.58);background:color-mix(in srgb,#06081c 58%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.sheet .sheet-head{background:var(--surface-overlay)}
@supports (background:color-mix(in srgb,#000 88%,transparent)) and (backdrop-filter:blur(1px)){
  .sheet .sheet-head{background:color-mix(in srgb,var(--surface-overlay) 88%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
}
/* The backdrop supplies the scrim; the live page settles back under it when a regular sheet opens. */
.wrap>.top,.wrap>main{transform-origin:50% 0}
@media(prefers-reduced-motion:no-preference){.wrap>.top,.wrap>main{transition:transform .3s var(--ease,ease)}}
body:has(#checkin[open],#dayview[open],#install[open],.sheet[open]:not(#vidsheet)) .wrap>:is(.top,main){transform:scale(.985) translateY(4px)}
/* On phones the log sheet sits on the bottom edge, full width. */
@media (max-width:700px),(any-pointer:coarse) and (min-height:600px) and (max-width:1400px){
  .sheet{width:100%;margin:auto 0 0;border-radius:20px 20px 0 0;border-bottom:0;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
}
/* The grab handle, on touch screens, where a sheet can be pulled down to close (js/ui/sheet-drag.js) */
@media (max-width:700px) and (pointer:coarse),(any-pointer:coarse) and (min-height:600px) and (max-width:1400px){.sheet:not(#vidsheet)::before{content:"";display:block;width:36px;height:5px;border-radius:3px;background:var(--line);margin:-4px auto 8px}}

@media (max-width:700px),(any-pointer:coarse) and (min-height:600px) and (max-width:1400px){
  .card{border-radius:var(--r)}
  .btn,.banner,.club,.pr,.plan,.kneedrop,.ib,.empty,input[type=number],input[type=date],input[type=time],input[type=text],input[type=email],input[type=password],select{border-radius:12px}
  .btn.hero{border-radius:14px}
  .top{border-bottom-color:var(--line-soft)}
  .moremenu{background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-color:var(--line-soft);border-radius:16px;box-shadow:var(--hilite),0 18px 40px -16px var(--shadow-c)}
  .moremenu button[aria-current=page]{background:var(--tint)}
  /* Bottom bar, Instagram style: a pill floating just above the bottom edge, icons only, all in the text color; the
     open page's icon draws bolder. The labels stay for screen readers. Profile shows your photo when you have one,
     ringed when open. --tb-b is the gap under the pill; the More menu, toasts and page padding sit above it. */
  :root{--tb-b:max(12px,calc(env(safe-area-inset-bottom,0px) - 10px))}
  body{padding-bottom:88px}
.tabbar{left:max(16px,env(safe-area-inset-left,0px));right:max(16px,env(safe-area-inset-right,0px));bottom:var(--tb-b);padding:4px 8px;border:1px solid var(--line-soft);border-radius:999px;background:var(--surface-floating);background:color-mix(in srgb,var(--surface-floating) 88%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--shadow-3)}
  /* Keep the bar natively bottom-fixed, then move the whole hit-tested element when installed
     iOS exposes a shorter visual viewport. A calculated top can move only WebKit's painted copy,
     leaving the touch region behind after changing pages. */
  .ios-pwa .tabbar{transform:translateY(var(--viewport-shift,0px))}
  .moremenu{bottom:calc(var(--tb-b) + 66px)}
  .toast,.vidbar{bottom:calc(var(--tb-b) + 72px)}
  body.toasting .vidbar{bottom:calc(var(--tb-b) + 136px)}
  .tabbar button{color:var(--ink)}
  .tabbar button:active,.tabbar button[aria-current=page]{color:var(--ink)}
  .tabbar button>span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tabbar button svg{width:26px;height:26px}
  .tabbar button svg *{transition:stroke-width .15s}
  .tabbar button[aria-current=page] svg *{stroke-width:2.3}
  .tabbar button[aria-current=page] svg [fill=currentColor]{stroke:currentColor;stroke-width:.6}
  .tabbar .tb-av{display:none;width:26px;height:26px;border-radius:50%;object-fit:cover;box-sizing:border-box}
  .tabbar .has-av>.tb-av{display:block}
  .tabbar .has-av>svg{display:none}
  .tabbar .has-av[aria-current=page]>.tb-av{border:2px solid var(--surface);outline:1.5px solid var(--ink)}
}

/* Depth and calm. Surfaces catch light from above: a lit top edge, a faint fall of tone and a soft ground shadow, so cards
   read as slabs rather than flat fills. Everything mixes from the theme's own colors, so on the light themes the lit edge
   fades into the surface and the shadow carries the depth. Inside cards, boxes give way to fills: one outline per idea. */
:root,.flip{
  --sheen:inset 0 1px 0 color-mix(in srgb,#fff 9%,transparent);      /* the same edge on buttons and controls */
  --well:var(--surface-sunken);                                       /* sunk tracks: segmented controls, inputs */
  --fill:color-mix(in srgb,var(--ink) 5%,transparent);               /* quiet fill for unpicked options and empty days */
}
/* A wash of light at the top of the page, so the background is a place rather than a color */
body{background-image:radial-gradient(130% 100% at 50% 0,color-mix(in srgb,var(--ink) 5%,transparent),transparent 70%);background-repeat:no-repeat;background-size:100% 460px}
.card:not(.quick){background-image:linear-gradient(180deg,color-mix(in srgb,var(--surface-raised) 95%,#fff),transparent 140px);box-shadow:var(--shadow-2)}
/* The red button: lit from above like the plate it is */
.btn:not(.ghost):not(.danger){background-image:linear-gradient(180deg,color-mix(in srgb,#fff 13%,transparent),transparent 60%)}
.btn.ghost.sm{box-shadow:var(--sheen),0 2px 0 var(--button-edge)}
.banner{border-style:solid;border-color:transparent}
.empty{border-color:transparent}
.lsay{border-color:var(--line-soft);border-width:1px}
.st-t{background:var(--surface-raised);box-shadow:var(--shadow-1)}
.toast,.vb{background:var(--surface-floating);box-shadow:var(--shadow-3)}
.map-sheet{background:var(--surface-overlay);box-shadow:var(--shadow-3)}
.tour-card{background:var(--surface-overlay);box-shadow:var(--shadow-3)}
.edx.lifted{background:var(--surface-raised);scale:1.015;will-change:transform;box-shadow:var(--shadow-3)}

/* Card titles speak with one voice, whichever heading level the card uses */
.card-head>h3{text-transform:uppercase;letter-spacing:.04em}

/* Range tabs and two-way switches: one sunk track with a raised thumb, instead of a row of boxes */
.tabs{gap:2px;padding:3px;border-radius:12px;background:var(--well);box-shadow:inset 0 1px 2px color-mix(in srgb,var(--shadow-c) 50%,transparent)}
.tabs button{border-color:transparent;border-radius:9px;color:var(--ink2);font-weight:600}
.tabs button[aria-pressed=true]{background:color-mix(in srgb,var(--ink) 13%,var(--surface));border-color:transparent;color:var(--ink);font-weight:700;box-shadow:var(--sheen),0 1px 3px color-mix(in srgb,var(--shadow-c) 70%,transparent)}
.seg{border-color:transparent;background:var(--well);padding:3px;gap:2px;border-radius:12px}
.seg span{border-radius:9px}
.seg input:checked+span{background:color-mix(in srgb,var(--ink) 13%,var(--surface));color:var(--ink);box-shadow:var(--sheen),0 1px 3px color-mix(in srgb,var(--shadow-c) 70%,transparent)}
/* Option grids: unpicked ones are quiet fills, the picked one keeps its tint and outline */
.splitpick button:not([aria-pressed=true]),.acc:not([aria-pressed=true]){border-color:transparent;background:var(--fill)}
.nav button,.daynav .navb,.ib{border-color:transparent;background:var(--fill)}

/* Calendar: only days that hold something are drawn as tiles. Open days are a soft fill, days to come are just a number. */
.strip .c,.cal .d{border-color:transparent;background:var(--fill)}
.strip .c.future:not(.gym),.cal .d.future:not(.gym){background:transparent}
.strip .c.gym,.cal .d.gym{background:var(--mark);box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--mark-ink) 22%,transparent)}
.strip .c.gym.today,.cal .d.gym.today{box-shadow:inset 0 0 0 2px var(--mark),0 0 0 3px var(--tint)}
/* The picked day's ring sits inside the day, so the scrolling row can't cut it off and the next day can't cover it: a
   light ring with a dark one inside it, which shows on a filled day and an empty one alike. */
.strip .c.sel,.strip .c.sel.today,.strip .c.gym.sel{outline:0;box-shadow:inset 0 0 0 2px var(--ink),inset 0 0 0 4px var(--bg)}
.strip .c.sel:focus-visible{outline:2px solid var(--mark);outline-offset:-6px}

/* Floating chrome picks up the same lit edge */
@media (max-width:700px),(any-pointer:coarse) and (min-height:600px) and (max-width:1400px){
  .tabbar{box-shadow:var(--sheen),0 10px 28px -8px var(--shadow-c),0 2px 6px -2px var(--shadow-c)}
}
