/* The signed-in pages: sign-in, add a recording, your sessions, the sample sessions.
   One light look, chosen by Steve on 27 November 2026: bone paper, carbon ink, and gold kept for the few things that
   matter most on a page (the mark, a best lap, what is selected). Rules and space divide the page, not boxes.
   Names and the times that are the point are set in Tenor Sans, as a chronograph's dial is. Everything else in Hanken Grotesk. */
:root{
  color-scheme:light;
  --bg:#f6f4ef; --panel:#fffefb; --panel-2:#f0ece3; --line:#dfdacd; --edge:#c9c3b4; --ink:#17191d; --ink-2:#4a4e55; --ink-3:#6b6e73;
  --gold:#b08a3e; --gold-ink:#7c5f22; --gold-wash:#f3ecdc; --bad:#b3261e;
  --f-text:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-display:"Tenor Sans","Optima","Candara","Gill Sans",system-ui,sans-serif;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html,body{background:var(--bg);color:var(--ink);font-family:var(--f-text);font-size:15.5px;line-height:1.5;margin:0;-webkit-font-smoothing:antialiased}
body{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));padding-block:18px 72px}
.app{max-width:1060px;margin:0 auto;display:flex;flex-direction:column;gap:44px}
.num{font-variant-numeric:tabular-nums lining-nums}
.label{font-size:12.5px;color:var(--ink-3);letter-spacing:.01em}
h2{font-family:var(--f-display);font-weight:400;font-size:28px;line-height:1.1;letter-spacing:.005em;margin:0;text-wrap:balance}
h3{font-family:var(--f-display);font-weight:400;margin:0}
p{margin:0}
a{color:inherit}

.brand{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.brand h1{margin:0;line-height:0;flex:none}
.brand h1 svg{height:28px;width:auto;display:block}
.account{margin-left:auto;display:flex;align-items:center;gap:16px;min-width:0}
.account span{color:var(--ink-2);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}

.btn{font:500 14.5px var(--f-text);color:var(--ink);background:transparent;border:1px solid var(--edge);border-radius:2px;padding:9px 18px;min-height:42px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;transition:border-color .15s,background-color .15s}
.btn:hover{border-color:var(--ink)}
.btn.small{min-height:36px;padding:6px 13px;font-size:13.5px}
.btn.primary{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.btn.primary:hover{background:#2c3037;border-color:#2c3037}
.btn:disabled{opacity:.45;cursor:default}
.btn:focus-visible,a:focus-visible,.drop:focus-within{outline:2px solid var(--ink);outline-offset:3px}

.state{color:var(--ink-2);padding:56px 0}

/* signed out: the name, what it does, and the line of a real circuit */
.welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:28px 56px;align-items:center;padding:6vh 0 0}
.welcome .words{display:flex;flex-direction:column;gap:20px;align-items:flex-start;min-width:0}
.lockup svg{width:min(392px,100%);height:auto;display:block}
.welcome h2{font-size:clamp(34px,5vw,54px);line-height:1.04;max-width:14ch}
.welcome .lead{color:var(--ink-2);font-size:17.5px;line-height:1.55;max-width:46ch}
.welcome .btn{min-height:48px;padding:11px 22px;font-size:15.5px}
.welcome .circuit{min-width:0}
.welcome .circuit svg{display:block;width:100%;height:auto;overflow:visible}
/* the line of a circuit, the start line and the mark that laps it in gold. circuits.js moves them. */
.circuit .line{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round}
.circuit .trail{fill:none;stroke:var(--gold);stroke-width:2.6;stroke-linecap:round}
.circuit .start{fill:none;stroke:var(--gold);stroke-width:2.4;stroke-linecap:round}
.circuit .car{fill:var(--gold);stroke:var(--bg);stroke-width:2.2}
.circuit .dust circle{fill:var(--gold)} .circuit .dust .pale{fill:#cfb26b}       /* the lighter gold is the light end of the logo's mark */
.welcome .circuit figcaption{display:flex;flex-direction:column;align-items:flex-end;gap:3px;margin-top:12px;min-height:56px;transition:opacity .9s ease,transform .9s ease}
.welcome .circuit figcaption.away{opacity:0;transform:translateY(5px);transition-duration:.4s}
.welcome .circuit .name{font-family:var(--f-display);font-size:25px;line-height:1.15;color:var(--ink)}
.welcome .circuit .facts{color:var(--ink-3);font-size:13.5px}
.welcome figure{margin:0}
.welcome.plain{grid-template-columns:minmax(0,1fr);max-width:640px}
.fine{color:var(--ink-3);font-size:13px;max-width:70ch}
.alert{color:var(--ink);font-size:14.5px;border-left:2px solid var(--bad);padding:2px 0 2px 12px;max-width:70ch}

.home{display:flex;flex-direction:column;gap:44px}

/* add a recording, and the car it was driven in */
.adding{display:flex;flex-direction:column;gap:16px}
.drop{border:1px solid var(--line);border-radius:3px;background:var(--panel);padding:26px 28px;display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;transition:border-color .15s,background-color .15s}
.drop.over{border-color:var(--gold);background:var(--gold-wash)}
.drop .words{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:6px}
.drop .words strong{font-family:var(--f-display);font-weight:400;font-size:24px;line-height:1.15}
.drop .words span{color:var(--ink-2);font-size:14.5px;max-width:60ch}
.drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.carbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px}
.carbar .pick{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:6px}

/* what an upload became */
.results{display:flex;flex-direction:column;gap:14px}
.results:empty{display:none}
.card{border:1px solid var(--line);border-top:2px solid var(--gold);border-radius:3px;background:var(--panel);padding:20px 24px;display:flex;flex-direction:column;gap:14px;min-width:0}
.card.busy{border-top-color:var(--edge)} .card.no{border-top-color:var(--bad)}
.card .head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px}
.card .head h3{font-size:26px;line-height:1.1;min-width:0;overflow-wrap:anywhere}
.card .head .meta{color:var(--ink-3);font-size:13.5px}
.card .head .btn{margin-left:auto}
.facts{display:flex;flex-wrap:wrap;gap:10px 40px}
.fact{display:flex;flex-direction:column;gap:2px}
.fact b{font-family:var(--f-display);font-weight:400;font-size:30px;line-height:1.05}
.fact b small{font-family:var(--f-text);font-size:13px}
.laps{display:flex;flex-wrap:wrap;gap:6px 18px}
.lap{font-size:13.5px;color:var(--ink-3);white-space:nowrap}
.lap b{color:var(--ink);font-weight:500;margin-left:6px}
.lap.best b{color:var(--gold-ink);font-weight:600;border-bottom:1px solid var(--gold)}
.notes{margin:0;padding-left:18px;color:var(--ink-2);font-size:14.5px;max-width:80ch}
.notes li+li{margin-top:4px}
.badge{font-size:12.5px;color:var(--gold-ink);border:1px solid var(--gold);border-radius:2px;padding:1px 8px;white-space:nowrap}
.badge.no{color:var(--ink-2);border-color:var(--edge)}
.spin{width:14px;height:14px;border:1.5px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:spin .8s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation:none} .btn,.drop{transition:none}}
.card .has{display:flex;flex-direction:column;gap:4px}
.carline{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border-top:1px solid var(--line);padding-top:14px;font-size:14.5px}
.carline .more{margin-left:auto}

/* Coach IQ: its own name, and the one thing on a page that is boxed in gold. Shown only where a session has it. */
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.coachiq{display:inline-flex;align-items:center;flex:none;border:1px solid var(--gold);background:var(--gold-wash);border-radius:2px;padding:5px 10px 5px;color:var(--ink);font-size:12px;font-weight:600;line-height:1;white-space:nowrap}
.coachiq svg{display:block;height:14px;width:auto;stroke:currentColor;stroke-width:5}       /* a hairline on the letters, which are light at this size */
/* The five seconds after an upload in which Coach IQ is held back: its name faint, a light passing over it, and
   "Reading the laps" beside it. Then it arrives. */
.coachiq.reading{position:relative;overflow:hidden;background:var(--panel)}
.coachiq.reading svg{opacity:.38}
.coachiq.reading::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,rgba(207,178,107,.55) 50%,transparent 80%);transform:translateX(-100%);animation:coach-reading 1.25s ease-in-out infinite}
.reading-say{font-size:13px;color:var(--gold-ink)}
.coachiq.arrived{animation:coach-arrived .9s ease-out}
@keyframes coach-reading{to{transform:translateX(100%)}}
@keyframes coach-arrived{0%{background:var(--gold);transform:scale(1.07)}45%{background:#e6d3a3}100%{background:var(--gold-wash);transform:none}}
@media (prefers-reduced-motion:reduce){.coachiq.reading::after{animation:none;transform:none;opacity:.5} .coachiq.arrived{animation:none}}
/* what a session holds: Coach IQ, the other things it has, then the things it is without */
.holding{display:flex;flex-wrap:wrap;align-items:center;gap:7px 14px}
.holds{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px 0;font-size:13.5px;color:var(--ink)}
.holds li{white-space:nowrap}
.holds li:not(:last-child)::after{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--gold);margin:0 9px;vertical-align:middle;position:relative;top:-1px}       /* after, so a line that wraps starts with a word */
.lacks{font-size:13px;color:var(--ink-3)}

/* your sessions: a ruled list */
.sessions{display:flex;flex-direction:column;gap:16px}
.sessions .top{display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap}
.sessions .top span{color:var(--ink-3);font-size:14px}
.list{border-top:1px solid var(--ink)}
.row{display:grid;grid-template-columns:minmax(0,1fr) 104px 56px 112px;gap:4px 20px;align-items:center;padding:16px 4px;text-decoration:none;color:var(--ink)}
.line{display:flex;align-items:center;border-bottom:1px solid var(--line)}
.line .row{flex:1;min-width:0}
.line .acts{flex:none;width:150px;margin:0 4px 0 20px;display:flex;flex-direction:column;gap:6px}
.line .acts .btn{width:100%;margin:0}
.card.waits{border-top-color:var(--edge)} .card.waits .head .btn{margin-left:auto}
.row.waits .r{align-self:center}
.row.headrow{padding-block:9px;border-bottom:1px solid var(--line)}
.row.headrow.wide{padding-right:178px}
.row.headrow span{font-size:12.5px;color:var(--ink-3)}
a.row{transition:background-color .15s}
a.row:hover{background:var(--panel-2)}
a.row:focus-visible{outline-offset:-2px}
.row .what{min-width:0;display:flex;flex-direction:column;gap:3px}
.row .what strong{font-weight:600;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .what small{color:var(--ink-3);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .what .holding{margin-top:5px}
.row .what .again{font-size:13px;color:var(--ink-2);margin-top:2px}      /* read again by a newer version: what moved */
.row .r{text-align:right;color:var(--ink-2);font-size:14px;white-space:nowrap}
.row .best{font-family:var(--f-display);font-size:23px;color:var(--ink)}
.row .best small{display:block;font:500 12.5px/1.35 var(--f-text);color:var(--ink-2);margin-top:3px}
.row .best small.dev{font-weight:400;font-size:11.5px;color:var(--ink-3);margin-top:0}
.fact.iq .link{font-size:12.5px;padding:0;min-height:0;color:var(--ink-3)}
.sample .nums .iqline{margin-top:6px;font-size:13px} .sample .nums .iqline strong{font-weight:600;color:var(--ink)}
#iqDlg form{padding-bottom:6px} #iqDlg header .badge{align-self:center}
.row.off{color:var(--ink-2);grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid var(--line)} .row.off .what strong{font-weight:500}
.row .why{grid-column:1/-1;color:var(--ink-3);font-size:13.5px}
.empty{padding:26px 4px;color:var(--ink-2);border-bottom:1px solid var(--line)}

/* sample sessions: three plates, then the Grand Prix circuits */
.samples{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.sample{border:1px solid var(--line);border-radius:3px;background:var(--panel);padding:24px 24px 20px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--ink);min-width:0;transition:border-color .15s}
.sample:hover{border-color:var(--ink)}
.sample h3{font-size:30px;line-height:1.05}
.sample .where{color:var(--ink-3);font-size:13.5px;margin-top:-4px}
.sample p{color:var(--ink-2);font-size:14.5px;flex:1}
.sample .holding{flex-direction:column;align-items:flex-start;gap:12px}
.sample .lacks{margin-top:-6px}
.sample .nums{display:flex;align-items:flex-end;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px;margin-top:6px;color:var(--ink-3);font-size:13.5px}
.sample .nums .time{display:flex;flex-direction:column;gap:1px}
.sample .nums b{font-family:var(--f-display);font-weight:400;font-size:34px;line-height:1;color:var(--ink)}
.sample .nums .rest{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;justify-content:flex-end}

.more{display:flex;flex-direction:column;gap:14px;margin-top:22px}
.more:empty{display:none}
.more .top{flex-direction:column;align-items:flex-start;gap:4px}
.more .top h3{font-size:22px}
.more .top span{max-width:76ch}
.tracks{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:0 28px;border-top:1px solid var(--ink)}
.track{border-bottom:1px solid var(--line);padding:13px 4px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 12px;align-items:baseline;text-decoration:none;color:var(--ink);min-width:0;transition:background-color .15s}
.track:hover{background:var(--panel-2)}
.track strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.track small{grid-column:1;color:var(--ink-3);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.track .num{grid-column:2;grid-row:1;font-family:var(--f-display);font-size:20px}
.track .coachiq{grid-column:2;grid-row:2;justify-self:end;align-self:center;padding:3px 7px 3px}
.track .coachiq svg{height:11.5px}

/* forms */
input:not([type=file]),select,textarea{font:400 15.5px var(--f-text);color:var(--ink);background:var(--panel);border:1px solid var(--edge);border-radius:2px;padding:9px 12px;min-height:42px;width:100%;min-width:0}
textarea{resize:vertical}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
::placeholder{color:#9b9a95}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.pair{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px}
.pair.wide{grid-template-columns:repeat(2,minmax(0,1fr))}
.withbtn{display:flex;gap:8px} .withbtn .btn{flex:none}
.stack{display:flex;flex-direction:column;gap:14px}
.link{font:500 14.5px var(--f-text);color:var(--ink-2);background:none;border:0;padding:6px 0;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px;cursor:pointer;align-self:flex-start;min-height:36px}
.link:hover{color:var(--ink)}

/* dialogs: My cars, Car and setup, Driver profile */
dialog.dlg{border:1px solid var(--line);border-radius:4px;background:var(--panel);color:var(--ink);padding:0;width:min(800px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-shadow:0 32px 90px rgba(23,25,29,.2)}
dialog.dlg.narrow{width:min(560px,calc(100vw - 24px))}
dialog.dlg::backdrop{background:rgba(23,25,29,.34);backdrop-filter:blur(3px)}
.dlg form{display:flex;flex-direction:column;gap:16px;padding:24px 26px 0}
.dlg form>:last-child:not(footer){margin-bottom:26px}
.dlg header{display:flex;align-items:baseline;gap:6px 14px;flex-wrap:wrap}
.dlg header .sub{color:var(--ink-3);font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.dlg header .btn{margin-left:auto}
.dlg footer{display:flex;align-items:center;gap:10px 14px;justify-content:space-between;flex-wrap:wrap;position:sticky;bottom:0;background:var(--panel);padding:14px 0 20px;border-top:1px solid var(--line)}
.dlg .stack footer{position:static;padding-bottom:4px}
.changes{display:flex;flex-direction:column;gap:10px}
.chg{display:grid;grid-template-columns:92px minmax(0,1fr) auto auto;gap:6px 14px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.chg span:first-child{color:var(--ink-3);font-size:13.5px} .chg strong{font-weight:600;min-width:0;overflow-wrap:anywhere}
.chgadd{display:grid;grid-template-columns:92px minmax(0,1.4fr) minmax(0,1fr) auto;gap:10px 12px;align-items:end}
.wline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;border-top:1px solid var(--line);padding-top:14px}
.wline .btn{margin-left:auto}
/* Match the columns: one ruled line per column of the file */
.ground{display:grid;grid-template-columns:132px minmax(0,1fr);gap:18px;align-items:center}
.ground .drawn{aspect-ratio:1;border:1px solid var(--line);border-radius:3px;background:var(--bg)}
.ground svg{display:block;width:100%;height:100%}
.ground polyline{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.cols{border-top:1px solid var(--ink)}
.col{display:grid;grid-template-columns:minmax(0,1.1fr) 120px minmax(0,1fr) 128px;gap:4px 16px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}
.col.colhead{padding-block:8px} .col.colhead span{font-size:12.5px;color:var(--ink-3)}
.col .name{min-width:0;display:flex;flex-direction:column;gap:2px}
.col .name strong{font-weight:600;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.col .name small{color:var(--ink-3);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.col .spark{display:block;width:120px;height:30px}
.col .spark polyline{fill:none;stroke:var(--ink-2);stroke-width:1.2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.col select{min-height:38px;padding:6px 10px;font-size:14.5px}
.col .why{grid-column:1/-1;color:var(--ink-3);font-size:13px}
.col .why:empty{display:none}
.col .why .badge{margin-left:6px}
.col.unused .name strong{font-weight:500;color:var(--ink-2)} .col.unused .spark polyline{stroke:var(--ink-3)}
.dlg .sect{border-top:1px solid var(--line);padding-top:14px;color:var(--ink);font-size:14px;font-weight:600}
.hits{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.hits:empty{display:none}
.hit{display:flex;align-items:baseline;justify-content:space-between;gap:12px;text-align:left;font:inherit;color:var(--ink);background:none;border:0;border-bottom:1px solid var(--line);padding:10px 4px;min-height:44px;cursor:pointer}
.hit:hover,.hit:focus-visible{background:var(--panel-2)}
.hit strong{font-weight:600;min-width:0} .hit small,.mycar small{color:var(--ink-3);font-size:13px;white-space:nowrap}
.hits .none{padding:12px 4px;color:var(--ink-2);font-size:14.5px}
.picked{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:17px}
.mine{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line);padding-top:14px}
.mine:empty{display:none}
.mycar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mycar div{display:flex;flex-direction:column;min-width:0} .mycar strong{font-weight:600;overflow-wrap:anywhere}

/* the setup sheet: one row a setting, one box a wheel or an axle */
.groups{display:flex;flex-direction:column;border-top:1px solid var(--ink)}
.group{border-bottom:1px solid var(--line)}
.group summary{cursor:pointer;padding:12px 4px;font-weight:600;font-size:14.5px;display:flex;align-items:center;gap:12px;list-style:none}
.group summary::-webkit-details-marker{display:none}
.group summary::before{content:"";width:6px;height:6px;border-right:1.5px solid var(--ink-3);border-bottom:1.5px solid var(--ink-3);transform:rotate(-45deg);flex:none;margin:0 2px 0 2px}
.group[open] summary::before{transform:rotate(45deg) translate(-1px,-1px)}
.group summary .filled{color:var(--gold-ink);font-size:13px;font-weight:500;margin-left:auto}
.srow{display:grid;grid-template-columns:190px minmax(0,1fr);gap:8px 14px;align-items:end;padding:10px 4px;border-top:1px solid var(--line)}
.sname{font-size:14.5px;padding-bottom:10px} .sname .unit{color:var(--ink-3);font-size:13px}
.cells{display:grid;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr))}
.cells.n1{grid-template-columns:minmax(0,2fr) minmax(0,2fr)} .cells.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cell{display:flex;flex-direction:column;gap:3px;min-width:0}
.cell span{color:var(--ink-3);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cell input{min-height:40px;padding:6px 9px}

@media (max-width:820px){
  .welcome{grid-template-columns:minmax(0,1fr);padding-top:3vh}
  .welcome .circuit{max-width:460px}
}
@media (max-width:620px){
  .app,.home{gap:34px}
  .line{flex-wrap:wrap} .line .row{flex:1 1 100%;padding-bottom:10px} .line .acts{width:auto;flex-direction:row;margin:0 4px 16px} .line .acts .btn{width:auto}
  .row.headrow.wide{padding-right:4px}
  .pair,.pair.wide{grid-template-columns:minmax(0,1fr)}
  .srow{grid-template-columns:minmax(0,1fr)} .sname{padding-bottom:0}
  .cells{grid-template-columns:repeat(2,minmax(0,1fr))}
  .carline .more{margin-left:0;width:100%}
  .row{grid-template-columns:minmax(0,1fr) auto}
  .row .date,.row.headrow .date,.row .lapsn,.row.headrow .lapsn{display:none}
  .drop{padding:20px}
  .card{padding:18px}
  .card .head .btn{margin-left:0;width:100%}
  .dlg form{padding:18px 18px 0}
  .ground{grid-template-columns:96px minmax(0,1fr);gap:14px}
  .chg{grid-template-columns:minmax(0,1fr) auto} .chgadd{grid-template-columns:minmax(0,1fr)} .wline .btn{margin-left:0}
  .col{grid-template-columns:minmax(0,1fr) 96px} .col.colhead{display:none}
  .col .spark{width:96px} .col select[data-use]{grid-column:1} .col .unit{grid-column:2}
}
