/* TDW Auto HQ — Martyr's language on the web.
   Tokens from the Martyr design system (near-black + TDW green, Libre Franklin + Open Sans).
   Rules kept from the app: one hero per screen; green once per screen outside status
   (the commit button's edge light); status = dot + words, never colour alone; hairlines
   only under interactive rows; one matte material, one radius family (14 cards, 6 chips,
   20 sheets); no shadows, no gradients on controls, no opacity on text. */
:root{
  --ground:#1E1E1E;--surface:#26272A;--surface2:#303134;--surface3:#3A3B3F;--graphite:#4A4D52;--border:#3A3B3F;
  --ink:#FFFFFF;--muted:#A3A6AB;--green:#B2E600;--glint:#D6FF55;--green-ink:#B2E600;
  --ok:#7BD88F;--warn:#F2C14E;--danger:#FF6B6B;--scrim:rgba(0,0,0,.6);
  --display:"Libre Franklin",system-ui,sans-serif;--sans:"Open Sans",system-ui,sans-serif;
  --r-card:14px;--r-chip:6px;--r-sheet:20px;--gutter:16px;--maxw:1040px;
  --ease:cubic-bezier(.2,.8,.2,1);
  color-scheme:dark;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --ground:#F4F4F2;--surface:#FFFFFF;--surface2:#EBEBE7;--surface3:#E0E0DB;--graphite:#C9CBCE;--border:#D6D6D0;
    --ink:#1E1E1E;--muted:#5E6166;--green-ink:#4F6600;--ok:#1F7A3A;--warn:#9A5B00;--danger:#B3261E;
    --scrim:rgba(30,30,30,.45);color-scheme:light;
  }
}
:root[data-theme="light"]{
  --ground:#F4F4F2;--surface:#FFFFFF;--surface2:#EBEBE7;--surface3:#E0E0DB;--graphite:#C9CBCE;--border:#D6D6D0;
  --ink:#1E1E1E;--muted:#5E6166;--green-ink:#4F6600;--ok:#1F7A3A;--warn:#9A5B00;--danger:#B3261E;
  --scrim:rgba(30,30,30,.45);color-scheme:light;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--ground);color:var(--ink);font:400 15px/22px var(--sans);-webkit-font-smoothing:antialiased;
  min-height:100dvh;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
a{color:var(--ink);text-decoration:none}
a.ext{color:var(--green-ink)}
a.ext:hover{text-decoration:underline;text-underline-offset:3px}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.danger-text{color:var(--danger)}
.hidden{display:none !important}
kbd{font:400 11px/16px var(--sans);color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:0 5px;min-width:18px;text-align:center;display:none}
::selection{background:var(--ink);color:var(--ground)}

/* focus: one ring, only from the keyboard */
:focus{outline:none}
:focus-visible{outline:1.5px solid var(--ink);outline-offset:2px;border-radius:6px}
.row:focus-visible,.note:focus-visible{outline-offset:-2px;border-radius:10px}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible,.quick input:focus-visible{outline:none}

/* top */
.top{display:flex;align-items:baseline;justify-content:space-between;padding:calc(14px + env(safe-area-inset-top)) var(--gutter) 6px;max-width:var(--maxw);width:100%;margin:0 auto}
.wordmark{display:flex;align-items:baseline;gap:8px;font-family:var(--display);font-weight:300;letter-spacing:-.02em}
.wordmark .mark{font-size:22px}
.wordmark .hq{font-size:15px;color:var(--muted);letter-spacing:.08em}
.live{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.live i{width:7px;height:7px;border-radius:50%;background:var(--muted);flex:none;transition:background .3s}
.live.on i{background:var(--ok)}
.live.off i{background:var(--warn)}

/* tabs */
.tabs{position:sticky;top:0;z-index:5;background:var(--ground);display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;
  padding:4px var(--gutter) 0;max-width:var(--maxw);width:100%;margin:0 auto;border-bottom:1px solid var(--border)}
.tabs::-webkit-scrollbar{display:none}
.tabs button{min-height:44px;padding:0 12px;font-size:15px;color:var(--muted);white-space:nowrap;position:relative;margin-bottom:-1px;display:inline-flex;align-items:center;gap:6px;transition:color .12s}
.tabs button.on{color:var(--ink)}
.tabs button.on::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:1.5px;background:var(--ink)}
.tabs button .end{display:inline-flex;align-items:center;gap:8px}
.tabs button .count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.tabs button .count:empty{display:none}
.tabs button.on .count{color:var(--ink)}
.tabs .search{margin-right:4px}

/* view */
.view{flex:1;width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter) 40px;min-width:0;overflow-x:clip}
.loading{color:var(--muted);padding:40px 0;text-align:center}
.h1{font-family:var(--display);font-weight:300;font-size:28px;line-height:34px;letter-spacing:-.015em;padding:18px 0 0}
.h1 small{font-family:var(--sans);font-size:15px;color:var(--muted);letter-spacing:0;margin-left:10px;font-weight:400}
.sec{font-size:12px;line-height:16px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;padding:28px 0 6px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.sec .act{text-transform:none;letter-spacing:0;font-size:15px;color:var(--ink);min-height:32px;display:inline-flex;align-items:center;border-radius:8px;padding:0 6px;margin-right:-6px;transition:background .12s}
.sec .act:hover{background:var(--surface)}
.sec .act[disabled]{color:var(--muted);cursor:default;background:none}
.sec .pair{display:inline-flex;gap:2px}
.sec.first{padding-top:16px}
.grid2{display:grid;grid-template-columns:minmax(0,1fr);gap:0 24px}
.grid2>*{min-width:0}
@media (min-width:860px){.grid2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.card{background:var(--surface);border-radius:var(--r-card);padding:0 16px;min-width:0;overflow:hidden}
.card.pad{padding:16px}
.empty{color:var(--muted);padding:14px 0 8px}
.empty .btn{margin-top:8px}

/* rows: full-bleed hover, inset hairline */
.row{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:0 -16px;width:calc(100% + 32px);min-height:56px;min-width:0;text-align:left;position:relative;cursor:pointer;transition:background .12s;-webkit-touch-callout:none}
.row::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:1px;background:var(--border)}
.row:last-child::after{display:none}
.row:hover,.row.menu-on{background:var(--surface2)}
.row:active{background:var(--surface3)}
.row .main{flex:1;min-width:0}
.row .t{font-size:17px;line-height:22px;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .m{font-size:13px;line-height:18px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .m b{font-weight:400;color:var(--ink)}
.row .r{text-align:right;flex:none;font-size:13px;color:var(--muted);display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.row .time{font-family:var(--display);font-weight:300;font-size:20px;line-height:24px;letter-spacing:-.01em;width:72px;flex:none;font-variant-numeric:tabular-nums;white-space:nowrap}
.row .time small{display:block;font-family:var(--sans);font-size:12px;color:var(--muted);letter-spacing:0;line-height:14px}
.row.done .t,.row.done .m{color:var(--muted);text-decoration:line-through}
.row .kind{flex:none;width:72px;font-size:12px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.row .btn.text{min-height:32px}
.sub{padding:0 0 12px 0;border-bottom:1px solid var(--border)}
.sub:last-child{border-bottom:0}
.sub .parts-line{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;padding:8px 0 0;min-width:0}

/* the "more" handle: hidden until the row is hovered or focused on a desktop, never on touch */
.more{flex:none;width:28px;height:32px;margin-left:-4px;border-radius:8px;color:var(--muted);display:none;align-items:center;justify-content:center;font-size:18px;line-height:1;letter-spacing:1px;transition:background .12s,color .12s}
.more:hover{background:var(--surface3);color:var(--ink)}
@media (hover:hover) and (pointer:fine){
  .more{display:inline-flex;visibility:hidden}
  .row:hover .more,.row:focus-within .more,.row.menu-on .more,.note:hover .more,.note:focus-within .more,.note.menu-on .more{visibility:visible}
  .board .row .more{display:none}   /* the Today board is dense; right-click works there */
}

/* status chip: dot + words */
.chip{display:inline-flex;align-items:center;gap:7px;font-size:13px;line-height:18px;color:var(--ink);white-space:nowrap}
.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--muted);flex:none}
.chip.ok::before{background:var(--ok)}.chip.warn::before{background:var(--warn)}
.chip.danger::before{background:var(--danger)}.chip.danger{color:var(--danger)}
.chip.quiet{color:var(--muted)}

/* buttons */
.btn{min-height:44px;padding:0 18px;border-radius:var(--r-card);display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-size:15px;font-weight:600;letter-spacing:-.005em;position:relative;white-space:nowrap;transition:background .12s,color .12s}
.btn.primary{border:1px solid var(--border);min-height:48px;width:100%;overflow:hidden}
.btn.primary .edge{position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,transparent 0%,var(--green) 25%,var(--glint) 50%,var(--green) 75%,transparent 100%)}
.btn.primary:hover{background:var(--surface2)}
.btn.primary:active{background:var(--surface3)}
.btn.primary[disabled]{color:var(--muted);cursor:default;background:none}
.btn.primary[disabled] .edge{display:none}
.btn.quiet{background:var(--surface2);font-weight:400}
.btn.quiet:hover{background:var(--surface3)}
.btn.text{padding:0 8px;font-weight:400;min-height:40px;border-radius:8px}
.btn.text:hover{background:var(--surface2)}
.btn.text.danger-text{color:var(--danger)}
.btn.small{min-height:36px;padding:0 12px;font-size:13px;font-weight:400;border-radius:10px;background:var(--surface2)}
.btn.small:hover{background:var(--surface3)}
.actions{display:flex;flex-direction:column;gap:10px;padding-top:16px}
.actions .pair{display:flex;gap:10px}
.actions .pair .btn{flex:1}

/* filter chips */
.filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:12px 0 4px;margin:0 calc(-1 * var(--gutter));padding-left:var(--gutter);padding-right:var(--gutter)}
.filters::-webkit-scrollbar{display:none}
.filters button{min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--border);color:var(--muted);font-size:13px;white-space:nowrap;transition:background .12s,color .12s,border-color .12s}
.filters button:hover{color:var(--ink);border-color:var(--graphite)}
.filters button.on{color:var(--ground);background:var(--ink);border-color:var(--ink)}

/* segmented */
.seg{display:inline-flex;background:var(--surface2);border-radius:10px;padding:2px;gap:2px}
.seg button{min-height:36px;padding:0 12px;border-radius:8px;font-size:13px;color:var(--muted);white-space:nowrap;transition:background .12s,color .12s}
.seg button:hover{color:var(--ink)}
.seg button.on{color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink);background:var(--surface)}
.seg.small button{min-height:30px;padding:0 10px;font-size:12px}
.seg.full{display:flex;flex-wrap:wrap}.seg.full button{flex:1 1 auto;min-width:0}

/* check target */
.check{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--muted);flex:none;display:inline-flex;align-items:center;justify-content:center;position:relative;transition:background .15s,border-color .15s}
.check:hover{border-color:var(--ink)}
.check.on{background:var(--ink);border-color:var(--ink)}
.check.on::after{content:"";width:6px;height:11px;border-right:2px solid var(--ground);border-bottom:2px solid var(--ground);transform:translateY(-1px) rotate(45deg)}
.check.big{width:32px;height:32px}
.check.big.on::after{width:7px;height:13px}
.chkrow{display:inline-flex;align-items:center;gap:10px;min-height:36px;font-size:13px;color:var(--muted);border-radius:8px;padding:0 8px 0 4px;transition:background .12s}
.chkrow:hover{background:var(--surface)}
.chkrow .check{width:22px;height:22px}
.chkrow.on{color:var(--ink)}

/* notes (post-its) */
.quick{display:flex;gap:10px;align-items:center;padding:4px 0 12px}
.quick input{flex:1;min-height:48px;background:var(--surface);border:1px solid transparent;border-radius:var(--r-card);padding:0 16px;font-size:17px;outline:none;transition:border-color .12s}
.quick input:hover{border-color:var(--border)}
.quick input:focus{border-color:var(--ink)}
.quick input::placeholder{color:var(--muted);opacity:1}
.notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.note{background:var(--surface);border-radius:var(--r-card);padding:12px 10px 10px 12px;display:flex;gap:10px;align-items:flex-start;min-height:68px;text-align:left;position:relative;transition:background .12s;-webkit-touch-callout:none}
.note:hover,.note.menu-on{background:var(--surface2)}
.note .check{margin-top:1px}
.note .body{flex:1;min-width:0;text-align:left;padding:2px 0 0;border-radius:6px;cursor:text}
.note .text{font-size:16px;line-height:22px;letter-spacing:-.01em;white-space:pre-wrap;word-break:break-word}
.note .meta{font-size:12px;line-height:16px;color:var(--muted);margin-top:5px;display:flex;gap:10px;flex-wrap:wrap}
.note .meta .pin{color:var(--ink)}
.note.done{background:transparent;border:1px solid var(--border)}
.note.done:hover{background:var(--surface)}
.note.done .text{color:var(--muted);text-decoration:line-through}
.note .more{margin:-4px -2px 0 0}

/* hero (money / review) */
.hero{padding:18px 0 6px}
.hero .big{font-family:var(--display);font-weight:300;font-size:34px;line-height:38px;letter-spacing:-.02em}
.hero .line{font-size:15px;color:var(--muted);margin-top:6px}
.hero .line b{font-weight:400;color:var(--ink)}
.hero .btn{margin-top:14px}
.hero .line .chip{vertical-align:middle}

/* inbox */
.inbox .summary{font-size:17px;line-height:25px;letter-spacing:-.01em;white-space:pre-wrap;padding:14px 0 6px}
.inbox .date{font-size:13px;color:var(--muted);padding-top:12px}
.inbox .item{display:flex;gap:12px;align-items:flex-start;padding:10px 16px;margin:0 -16px;position:relative;transition:background .12s;-webkit-touch-callout:none}
.inbox .item::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:1px;background:var(--border)}
.inbox .item:last-child::after{display:none}
.inbox .item:hover,.inbox .item.menu-on{background:var(--surface2)}
.inbox .item .chip{text-transform:capitalize;margin-bottom:2px}
.inbox .item .txt{flex:1;min-width:0}
.inbox .item .btn{flex:none}

/* draft */
.draft-body{white-space:pre-wrap;font-size:15px;line-height:23px;padding:10px 0}
.comments{padding-top:6px}
.comment{padding:8px 0;border-bottom:1px solid var(--border);font-size:14px;line-height:20px}
.comment:last-child{border-bottom:0}
.comment .by{font-size:12px;color:var(--muted);display:block}

/* forms */
.field{display:flex;flex-direction:column;gap:6px;padding:10px 0}
.field .label{font-size:12px;line-height:16px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.field input,.field select,.field textarea{min-height:44px;background:var(--surface2);border:1px solid transparent;border-radius:var(--r-chip);padding:10px 12px;font-size:17px;outline:none;width:100%;appearance:none;-webkit-appearance:none;transition:border-color .12s}
.field textarea{min-height:120px;resize:vertical;line-height:24px;font-size:15px}
.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--border)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--ink)}
.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:1}
.field select{background-image:none}
.field.inline{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.field.inline .label{flex:1}
.two{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.hint{font-size:13px;line-height:18px;color:var(--muted);padding:6px 0}

/* what's new */
.news .entry{padding:18px 0 6px;border-bottom:1px solid var(--border)}
.news .entry:last-child{border-bottom:0}
.news .entry .when{font-size:12px;line-height:16px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}
.news .entry .name{font-family:var(--display);font-weight:300;font-size:22px;line-height:28px;letter-spacing:-.015em;padding:4px 0 8px}
.news .entry ul{padding:0 0 10px 18px;max-width:720px}
.news .entry li{padding:3px 0;line-height:22px}
.news .entry li::marker{color:var(--muted)}

/* search results */
.results{padding-top:8px}
.results .sec{padding-top:18px}
.results .empty{padding-top:24px;text-align:center}

/* sheet */
.sheet{border:0;padding:0;background:var(--surface);color:var(--ink);width:100%;max-width:100%;margin:auto 0 0;
  border-radius:var(--r-sheet) var(--r-sheet) 0 0;max-height:92dvh;overflow:auto;border-top:1px solid var(--graphite)}
.sheet::backdrop{background:var(--scrim)}
.sheet[open]{animation:sheet-up .24s var(--ease)}
@keyframes sheet-up{from{transform:translateY(28px)}}
.sheet-body{padding:8px 16px calc(20px + env(safe-area-inset-bottom))}
.sheet .grab{width:36px;height:4px;border-radius:2px;background:var(--graphite);margin:6px auto 10px}
.sheet .title{font-family:var(--display);font-weight:300;font-size:24px;line-height:30px;letter-spacing:-.015em;padding:6px 0 4px;display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.sheet .title>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet .title .tools{display:inline-flex;gap:2px;align-items:center;flex:none}
.sheet .title .btn{font-family:var(--sans);font-size:15px}
.sheet .title .more{display:inline-flex;visibility:visible;width:36px;height:36px}
.sheet .sub-title{font-size:13px;color:var(--muted);padding-bottom:4px}
.sheet .sub-title .chip{vertical-align:middle}
@media (min-width:700px){
  .sheet{max-width:520px;margin:auto;border-radius:var(--r-sheet);max-height:88dvh;border:1px solid var(--border);border-top:1px solid var(--graphite)}
  .sheet .grab{display:none}
  .sheet[open]{animation:sheet-pop .18s var(--ease)}
  @keyframes sheet-pop{from{transform:scale(.985)}}
}

/* context menu: a small card on a desktop, an action sheet on a phone */
.menu{border:1px solid var(--graphite);background:var(--surface);color:var(--ink);padding:6px;border-radius:12px;min-width:220px;max-width:300px;margin:0;position:fixed;inset:auto;overflow:auto;max-height:calc(100dvh - 16px)}
.menu::backdrop{background:transparent}
.menu[open]{animation:menu-pop .12s ease-out}
@keyframes menu-pop{from{transform:scale(.97);opacity:0}}
.menu .menu-title{font-size:13px;color:var(--muted);padding:8px 12px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu .menu-sep{height:1px;background:var(--border);margin:6px 8px;position:relative}
.menu .menu-sep span{position:absolute;left:4px;top:4px;font-size:11px;line-height:16px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:var(--surface);padding-right:6px}
.menu .menu-sep.head{margin-bottom:22px}
.menu .menu-sep[data-first]{background:transparent;margin-top:0}
.menu [role=menuitem]{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 12px 0 8px;border-radius:8px;font-size:14px;text-align:left;white-space:nowrap;transition:background .1s}
.menu [role=menuitem]:hover,.menu [role=menuitem]:focus-visible{background:var(--surface2);outline:none}
.menu [role=menuitem]:active{background:var(--surface3)}
.menu [role=menuitem][disabled]{color:var(--muted);cursor:default;background:none}
.menu [role=menuitem].danger{color:var(--danger)}
.menu [role=menuitem] .tick{width:14px;flex:none;text-align:center;font-size:12px}
.menu [role=menuitem].on .tick::before{content:"✓"}
.menu [role=menuitem] .l{flex:1;overflow:hidden;text-overflow:ellipsis}
.menu [role=menuitem] .hint{font-size:12px;color:var(--muted)}
.menu [role=menuitem] .dot{width:7px;height:7px;border-radius:50%;background:var(--muted);flex:none;margin-right:-4px}
.menu [role=menuitem] .dot.ok{background:var(--ok)}.menu [role=menuitem] .dot.warn{background:var(--warn)}.menu [role=menuitem] .dot.danger{background:var(--danger)}
@media (max-width:699px){
  .menu{inset:auto 0 0 0;width:100%;max-width:100%;min-width:0;border-radius:var(--r-sheet) var(--r-sheet) 0 0;border:0;border-top:1px solid var(--graphite);padding:8px 10px calc(14px + env(safe-area-inset-bottom));max-height:80dvh}
  .menu::backdrop{background:var(--scrim)}
  .menu[open]{animation:sheet-up .24s var(--ease)}
  .menu [role=menuitem]{min-height:48px;font-size:16px;padding:0 12px}
  .menu .menu-title{font-size:15px;padding:10px 12px 8px}
}

/* footer */
.foot{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:var(--maxw);width:100%;margin:0 auto;padding:12px var(--gutter) 24px;color:var(--muted)}

/* toast, with an optional undo */
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%,16px);background:var(--ink);color:var(--ground);z-index:20;
  padding:0 6px 0 16px;min-height:44px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .18s,transform .25s var(--ease);max-width:calc(100% - 32px);display:flex;align-items:center;gap:10px}
.toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.toast .msg{padding:10px 0}
.toast .undo{color:var(--ground);font-weight:600;min-height:36px;padding:0 12px;border-radius:8px;margin-right:4px}
.toast .undo:hover{background:rgba(128,128,128,.3)}

/* login */
body.login{justify-content:center;align-items:center}
.login-main{width:min(360px,calc(100% - 32px));padding-bottom:10vh}
.login-main .wordmark{justify-content:center;padding-bottom:28px}
.login-main .wordmark .mark{font-size:30px}
.login-form .btn{margin-top:12px}
.login-form .hint{text-align:center;min-height:30px}

@media (prefers-reduced-motion: reduce){*{transition:none !important;animation:none !important}}

/* ---------- rail: phone keeps the stacked shell; the MacBook gets a left rail ---------- */
.rail{display:contents}
.rail .foot{order:10}
.clock{display:none}
.board{display:grid;grid-template-columns:minmax(0,1fr);gap:0 24px}
.board>.col{min-width:0}
@media (min-width:860px) and (max-width:1099px){
  .board{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .board>.col.notes-col{grid-column:1 / -1}
}
.desk{display:none}
@media (min-width:1100px){
  :root{--gutter:32px;--maxw:none}
  body{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100dvh;align-items:start}
  kbd{display:inline-block}
  .rail{display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;padding:22px 20px 18px 24px;border-right:1px solid var(--border);gap:0}
  .rail .top{display:block;padding:0 0 22px;margin:0;max-width:none}
  .rail .wordmark .mark{font-size:24px}
  .rail .live{padding-top:8px}
  .rail .tabs{position:static;display:flex;flex-direction:column;gap:2px;overflow:visible;padding:0;margin:0;border-bottom:0;max-width:none}
  .rail .tabs button{min-height:40px;padding:0 10px;text-align:left;font-size:15px;border-radius:10px;margin:0;display:flex;justify-content:space-between;align-items:center;transition:background .12s,color .12s}
  .rail .tabs button:hover{background:var(--surface);color:var(--ink)}
  .rail .tabs button.on{background:var(--surface);color:var(--ink)}
  .rail .tabs button.on::after{display:none}
  .rail .tabs button kbd{visibility:hidden}
  .rail .tabs:hover button kbd,.rail .tabs button:focus-visible kbd{visibility:visible}
  .rail .tabs .search{margin:0 0 10px;border:1px solid var(--border);color:var(--muted)}
  .rail .tabs .search kbd{visibility:visible}
  .rail .tabs .news-tab{margin-top:10px;color:var(--muted);font-size:14px;min-height:36px}
  .rail .tabs .news-tab.on{color:var(--ink)}
  .clock{display:block;margin-top:auto;padding:0 10px 18px;font-family:var(--display);font-weight:300;font-size:24px;line-height:28px;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
  .clock small{display:block;font-family:var(--sans);font-size:13px;line-height:18px;color:var(--muted);letter-spacing:0;margin-top:2px}
  .rail .foot{order:0;padding:0;margin:0;max-width:none;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
  .rail .foot .btn.text{padding:0 10px;margin-left:-2px}
  .view{max-width:1480px;margin:0;padding:0 var(--gutter) 48px}
  .h1{padding-top:26px}
  .board{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr);gap:0 28px}
  .notes{grid-template-columns:1fr}
  .filters{margin:0;padding-left:0;padding-right:0}
  /* side panel instead of a bottom sheet */
  .sheet{margin:0 0 0 auto;max-width:560px;width:560px;height:100dvh;max-height:100dvh;border-radius:0;border:0;border-left:1px solid var(--border);border-top:0}
  .sheet::backdrop{background:var(--scrim);opacity:.6}
  .sheet[open]{animation:sheet-in .22s var(--ease)}
  @keyframes sheet-in{from{transform:translateX(32px)}}
  .sheet-body{padding:12px 28px 32px}
  .sheet .title{padding-top:16px}
  /* table-style part rows */
  .desk{display:block}
  .row.part{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.1fr) minmax(0,1fr) auto auto;align-items:center;gap:16px}
  .row.part .m .mob{display:none}
  .row.part .desk{font-size:13px;line-height:18px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .row.part .desk b{font-weight:400;color:var(--ink);display:block;font-size:15px;line-height:20px}
  .row.part .r{min-width:120px}
}
@media (min-width:1500px){.board{gap:0 36px}}
