@font-face { font-family: Inter; src: url(/fonts/Inter-Regular.otf); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-SemiBold.otf); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-ExtraBold.otf); font-weight: 800; font-display: swap; }
:root {
  --orange: #F16C19; --black: #0D0E0B; --white: #FFFFFF; --muted: #5C5D58; --muted-dark: #B8B9B3; --hair: #D9D9D4; --hair-dark: #3A3B36;
  --s1: 8px; --s2: 16px; --s3: 32px; --s4: 64px; --r: 8px; --hit: 56px;
  --dots: radial-gradient(circle at 3px 3px, var(--orange) 3px, transparent 3.5px) 0 0 / 60px 60px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font: 400 16px/24px Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
a { color: inherit; }
small { font-size: 14px; line-height: 20px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.rail :focus-visible, .topbar :focus-visible, .login :focus-visible, .plane:not(.go) :focus-visible { outline-color: var(--white); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.strong { font-weight: 600; }
.ic { flex: none; display: block; }
.label { display: block; margin: 0; background: var(--black); color: var(--white); font-size: 14px; line-height: 20px; font-weight: 800; text-transform: uppercase; padding: 8px var(--s2); }

/* Shell */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; isolation: isolate; background: #000; color: var(--white); display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.rail .logo { padding: 20px var(--s2); }
.rail .logo img { width: 148px; display: block; }
.nav { display: flex; flex-direction: column; flex: 1; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 var(--s2); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--hair-dark); }
.nav a.on { background: var(--orange); color: var(--black); font-weight: 800; }
.nav .count { margin-left: auto; min-width: 26px; height: 26px; padding: 0 6px; background: var(--white); color: var(--black); font-size: 14px; font-weight: 800; display: grid; place-items: center; border-radius: 9999px; }
.who { padding: var(--s2); display: grid; gap: var(--s1); }
.who .me { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s1); min-width: 0; }
.who .initial { width: 40px; height: 40px; background: var(--white); color: var(--black); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.who strong { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 20px; }
.who small { color: var(--muted-dark); display: block; }
.who button { min-height: 44px; background: none; border: 1px solid var(--hair-dark); color: var(--white); border-radius: var(--r); cursor: pointer; padding: 0 8px; font-size: 14px; }
.who button:hover { border-color: var(--white); }
main { padding: var(--s3); max-width: 1040px; width: 100%; transition: opacity .15s; }
main.busy { opacity: .4; }
.head { margin-bottom: var(--s3); display: flex; justify-content: space-between; gap: var(--s2); align-items: flex-start; flex-wrap: wrap; }
.head .muted { margin-top: 4px; }
.back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; margin-bottom: var(--s1); }
.topbar { display: none; background: var(--black); color: var(--white); padding: 10px var(--s2); align-items: center; justify-content: space-between; gap: var(--s1); }
.topbar img { width: 104px; display: block; }
.topbar button { background: none; border: 1px solid var(--hair-dark); color: var(--white); min-height: 40px; border-radius: var(--r); padding: 0 10px; font-size: 13px; cursor: pointer; }
.topbar .row { display: flex; gap: var(--s1); }
.mobile-only { display: none; }
@media (max-width: 820px) {
  .shell { display: block; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .rail { position: fixed; z-index: 5; inset: auto 0 0 0; height: auto; display: block; padding-bottom: env(safe-area-inset-bottom); overflow: visible; }
  .rail .logo, .rail .who { display: none; }
  .nav { flex-direction: row; }
  .nav a { flex: 1 1 0; min-width: 0; min-height: 68px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; padding: 0 2px; font-size: 11px; line-height: 14px; position: relative; }
  .nav a span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav a.desk { display: none; }
  .nav .count { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; min-width: 20px; height: 20px; font-size: 12px; padding: 0 4px; }
  main { padding: var(--s2); }
  .topbar { display: flex; }
  .mobile-only { display: inline-flex; }
  h1 { font-size: 30px; }
  .head { margin-bottom: var(--s2); }
  body.focus .rail, body.focus .topbar { display: none; }
  body.focus .shell { padding-bottom: 0; }
}

/* Buttons and fields */
.btn { display: inline-flex; gap: var(--s1); align-items: center; justify-content: center; min-height: var(--hit); padding: 0 20px; border: 2px solid var(--black); border-radius: var(--r); background: var(--white); color: var(--black); font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--black); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--black); font-weight: 800; }
.btn.primary:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn.dark-btn { background: var(--black); color: var(--white); }
.btn.dark-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }
.btn.slim { min-height: 44px; font-size: 14px; padding: 0 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.textbtn { background: none; border: 0; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.field { display: block; margin-bottom: var(--s2); }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=number], input[type=date], input[type=password], select, textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--hair); border-radius: var(--r); background: var(--white); }
input:focus, select:focus, textarea:focus { border-color: var(--black); outline: none; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button { display: none; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: var(--s1); align-items: center; min-height: 44px; margin-bottom: var(--s1); cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--orange); flex: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--s2); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 var(--s2); }
.narrow { max-width: 640px; }
.err { background: var(--orange); padding: 12px var(--s2); font-weight: 600; margin-bottom: var(--s2); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { min-height: 48px; padding: 0 14px; border: 2px solid var(--black); background: var(--white); border-radius: var(--r); cursor: pointer; font-weight: 600; flex: 1 1 auto; }
.seg button[aria-checked=true] { background: var(--black); color: var(--white); }

/* Tiles: the counter's small square tiles carry all progress in the app */
.tiles { display: flex; flex-wrap: wrap; gap: 2px; }
.tile { width: 14px; height: 14px; border: 1px solid var(--muted); background: var(--white); flex: none; display: inline-block; }
.tile.ok { background: var(--black); border-color: var(--black); }
.tile.issue { background: var(--orange); border-color: var(--orange); }
.tile.part { border: 2px solid var(--black); }

/* Sign in */
.login { position: relative; overflow: hidden; isolation: isolate; min-height: 100dvh; background: #000; color: var(--white); display: grid; grid-template-columns: minmax(300px, 2fr) 3fr; }
.login .brand { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s3); }
.login .brand img { width: min(220px, 70%); }
.login .slogan { font-size: 48px; line-height: .98; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; color: var(--orange); margin-top: auto; }
.login .pick { padding: var(--s3); display: flex; flex-direction: column; max-width: 720px; }
.login h1 { font-size: 40px; }
.loginhead { display: flex; align-items: center; gap: var(--s2); justify-content: space-between; margin-bottom: var(--s2); min-height: 44px; }
.grouplabel { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted-dark); margin: var(--s2) 0 var(--s1); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 4px; }
.person { min-height: 136px; background: var(--white); color: var(--black); border: 0; padding: var(--s2); text-align: left; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; overflow-wrap: anywhere; gap: var(--s1); }
.person strong { font-size: 20px; line-height: 24px; font-weight: 800; letter-spacing: -.01em; }
.person span { font-size: 14px; line-height: 20px; }
.person:hover { background: var(--orange); }
.linkback { background: none; border: 0; color: var(--white); text-decoration: underline; min-height: 44px; font-weight: 600; cursor: pointer; padding: 0; }
.pinhint { margin-top: 4px; color: var(--muted-dark); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 360px; }
.pad button { height: 72px; font-size: 26px; font-weight: 800; background: var(--white); color: var(--black); border: 0; cursor: pointer; display: grid; place-items: center; }
.pad button:active { background: var(--orange); }
.pad button.alt { background: var(--black); color: var(--white); border: 2px solid var(--hair-dark); }
.pad button.go { background: var(--orange); font-size: 17px; }
.pad button.go[disabled] { background: var(--hair-dark); color: var(--muted-dark); cursor: not-allowed; }
.dots { display: flex; gap: var(--s1); margin-top: var(--s2); height: 22px; }
.dots i { width: 22px; height: 22px; border: 2px solid var(--white); }
.dots i.f { background: var(--orange); border-color: var(--orange); }
.pinerr { min-height: 40px; padding-top: 10px; font-weight: 600; color: var(--orange); font-size: 14px; line-height: 20px; max-width: 360px; }
.err-pin { color: var(--orange); }
.langs { display: flex; gap: 4px; }
.langs button { min-height: 44px; min-width: 52px; border: 1px solid var(--hair-dark); background: none; color: var(--white); border-radius: var(--r); cursor: pointer; font-weight: 600; }
.langs button.on { background: var(--white); color: var(--black); border-color: var(--white); }
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; align-content: start; }
  .login .brand { padding: var(--s2); flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s1); border: 0; }
  .login .brand img { width: 88px; }
  .login .slogan { font-size: 18px; line-height: 1.05; text-align: right; margin: 0; max-width: 150px; }
  .login .pick { padding: var(--s2); }
  .login h1 { font-size: 28px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .person { min-height: 104px; }
  .pad { max-width: none; }
}

/* Today */
.plane { position: relative; overflow: hidden; isolation: isolate; width: 100%; border: 0; font: inherit; text-align: left; background: var(--black); color: var(--white); padding: var(--s3); display: flex; justify-content: space-between; gap: var(--s2); align-items: flex-end; flex-wrap: wrap; text-decoration: none; }
.plane.go { background: var(--orange); color: var(--black); cursor: pointer; }
.plane > div { min-width: 0; }
.plane span { display: block; }
.plane .eyebrow { font-weight: 600; }
.plane .big { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 8px; overflow-wrap: anywhere; }
.plane .sub { font-weight: 400; }
.plane .btn { display: inline-flex; background: var(--black); color: var(--white); border-color: var(--black); font-weight: 800; min-height: 64px; padding: 0 28px; font-size: 18px; }
.plane.go:hover .btn { background: var(--white); color: var(--black); border-color: var(--white); }
@media (max-width: 600px) { .plane { padding: 20px var(--s2); } .plane .big { font-size: 40px; } .plane .btn { width: 100%; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 var(--s2); }
.step { font: inherit; background: var(--white); border: 2px solid var(--black); color: var(--black); padding: 14px; min-height: 128px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; text-align: left; cursor: pointer; min-width: 0; }
.step .mark { height: 24px; margin-bottom: auto; display: block; }
.step strong { font-weight: 800; font-size: 18px; line-height: 22px; margin-top: 12px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.step small { overflow-wrap: anywhere; }
.step .flag { align-self: flex-start; background: var(--orange); color: var(--black); font-size: 12px; line-height: 16px; font-weight: 800; padding: 2px 6px; margin-top: 6px; }
a.step:hover, button.step:hover { background: var(--black); color: var(--white); }
.step.done { background: var(--black); color: var(--white); }
.step.done .tile.ok { background: var(--white); border-color: var(--white); }
a.step.done:hover { background: var(--hair-dark); }
.step.active { border-width: 4px; padding: 12px; }
.step.locked { border: 2px solid var(--hair); color: var(--muted); cursor: default; }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } .step { min-height: 112px; } }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: var(--s3); }
.quick .btn { min-height: 64px; padding: 0 8px; }
@media (max-width: 420px) { .quick .btn { font-size: 14px; } }
.section { margin-bottom: var(--s3); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 var(--s2); }
.row-link { display: flex; align-items: center; gap: var(--s2); min-height: 68px; padding: 10px var(--s2); text-decoration: none; flex-wrap: wrap; width: 100%; background: none; border-width: 0 0 1px; border-style: solid; border-color: var(--hair); text-align: left; cursor: pointer; font: inherit; color: inherit; }
a.row-link:hover { background: var(--hair); }
.row-link.plain { cursor: default; }
.row-link .grow { flex: 1 1 180px; min-width: 0; }
.row-link strong { font-weight: 600; font-size: 17px; display: block; margin-bottom: 4px; }
.state { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { padding: var(--s2); border-bottom: 1px solid var(--hair); overflow-wrap: anywhere; }
.empty { padding: var(--s3) var(--s2); text-align: left; border-bottom: 1px solid var(--hair); }

/* Checklist */
.runhead { display: flex; gap: var(--s2); align-items: flex-start; margin-bottom: var(--s2); }
.closebtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 2px solid var(--black); border-radius: var(--r); min-height: 48px; padding: 0 12px 0 8px; cursor: pointer; font-weight: 600; flex: none; }
.closebtn:hover { background: var(--black); color: var(--white); }
.signedbox { display: flex; justify-content: space-between; gap: var(--s2); align-items: center; flex-wrap: wrap; padding: var(--s2); border: 2px solid var(--black); margin-bottom: var(--s2); }
.item, .task { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--s1); border-bottom: 1px solid var(--hair); padding-right: var(--s2); }
.tap { display: flex; align-items: center; gap: var(--s2); min-height: 72px; padding: 10px var(--s2); background: none; border: 0; text-align: left; cursor: pointer; width: 100%; font: inherit; color: inherit; min-width: 0; }
.tap.static { cursor: default; }
button.tap:hover .box { border-color: var(--orange); }
.box { width: 36px; height: 36px; border: 2px solid var(--black); display: grid; place-items: center; flex: none; font-weight: 800; font-size: 20px; background: var(--white); }
.ok > .tap .box, .isdone .box { background: var(--black); color: var(--white); }
.bad > .tap .box { background: var(--orange); border-color: var(--orange); }
.q { font-weight: 600; font-size: 17px; line-height: 22px; display: block; overflow-wrap: anywhere; }
.item.ok .q, .isdone .q { font-weight: 400; }
.by, .sentback { display: block; color: var(--muted); }
.sentback { color: var(--black); font-weight: 600; }
.info { flex: none; width: 32px; height: 32px; border-radius: 9999px; border: 2px solid var(--black); background: var(--white); font-weight: 800; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; position: relative; }
.info::after { content: ''; position: absolute; inset: -8px; }
.info[aria-expanded=true] { background: var(--black); color: var(--white); }
.infotext { grid-column: 1 / -1; padding: 0 var(--s2) var(--s2) 68px; }
.actions { display: flex; gap: var(--s1); align-items: center; grid-column: 3; }
.pbtn { min-height: 48px; padding: 0 14px; background: var(--white); border: 2px solid var(--hair); border-radius: var(--r); font-weight: 600; cursor: pointer; font-size: 14px; }
.pbtn:hover { border-color: var(--black); }
.pbtn[aria-pressed=true] { background: var(--orange); border-color: var(--orange); font-weight: 800; }
.temp { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.temp input { width: 92px; text-align: right; }
.detail { grid-column: 1 / -1; padding: 0 0 var(--s2) 68px; display: block; }
.detail span { display: block; margin-bottom: 4px; }
.detail textarea { min-height: 72px; }
.readonly { font-weight: 600; white-space: nowrap; }
.item.pulse { outline: 3px solid var(--orange); outline-offset: -3px; }
@media (max-width: 560px) {
  .item, .task { padding-right: var(--s1); column-gap: 6px; }
  .tap { gap: 10px; padding: 10px 2px 10px 12px; }
  .q { font-size: 16px; line-height: 20px; }
  .pbtn { min-height: 44px; padding: 0 8px; font-size: 13px; }
  .tap.static + .actions { grid-column: 1 / -1; padding: 0 0 12px 58px; }
  .infotext, .detail { padding-left: 58px; }
}
.sticky { position: sticky; bottom: 0; background: var(--white); border-top: 2px solid var(--black); padding: 12px var(--s2); display: flex; gap: var(--s2); align-items: center; justify-content: space-between; z-index: 2; margin: 0 calc(var(--s3) * -1) calc(var(--s3) * -1); }
.sticky .btn { flex: none; min-height: 60px; }
.stickyinfo { min-width: 0; display: grid; gap: 4px; }
.stickyinfo .tile { width: 10px; height: 10px; }
.box-p { padding: var(--s2); border-bottom: 1px solid var(--hair); }
.diff { font-weight: 800; font-size: 20px; min-height: 28px; }
.diff.off, .off { color: var(--black); }
.diff.off { background: var(--orange); padding: 8px 12px; display: inline-block; }
@media (max-width: 820px) { .sticky { margin: 0 calc(var(--s2) * -1) calc(var(--s2) * -1); padding-bottom: calc(12px + env(safe-area-inset-bottom)); } }
@media (max-width: 480px) { .sticky .btn { padding: 0 12px; font-size: 14px; } }
.signed { position: relative; overflow: hidden; isolation: isolate; background: #000; color: var(--white); padding: var(--s4) var(--s3); margin: calc(var(--s3) * -1); min-height: 100dvh; }
.signed h1 { font-size: 56px; margin: var(--s3) 0 var(--s1); overflow-wrap: anywhere; }
.signed .btn { margin-top: var(--s3); }
.signed .tiles.big { max-width: 560px; gap: 4px; }
.signed .tile { width: 24px; height: 24px; background: var(--white); border-color: var(--white); }
@media (max-width: 820px) { .signed { margin: calc(var(--s2) * -1); min-height: calc(100dvh - 128px); padding: var(--s3) var(--s2); } .signed h1 { font-size: 38px; } }
@media (prefers-reduced-motion: no-preference) {
  .signed .tile { animation: tilein .25s both; animation-delay: calc(var(--i) * 18ms); }
  @keyframes tilein { from { background: var(--orange); border-color: var(--orange); transform: scale(.6); } }
  .box { transition: background-color .1s; }
}

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: var(--s2); flex-wrap: wrap; }
.tabs button { min-height: 56px; padding: 6px var(--s2); border: 2px solid var(--black); background: var(--white); cursor: pointer; font-weight: 600; flex: 1 1 0; display: flex; gap: 8px; justify-content: center; align-items: center; white-space: nowrap; }
.tabs button[aria-selected=true] { background: var(--black); color: var(--white); }
.tabs small { font-variant-numeric: tabular-nums; font-weight: 400; }
@media (max-width: 520px) { .tabs button { flex-direction: column; gap: 0; padding: 6px 4px; font-size: 14px; } }
.progress { display: flex; gap: var(--s2); align-items: center; justify-content: space-between; margin-bottom: var(--s2); flex-wrap: wrap; }
.task .redo { display: flex; gap: var(--s1); }
.task .redo span { margin: 0; }

/* Overview tile wall */
.wall { overflow-x: auto; margin-top: var(--s1); }
.wall table { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 620px; }
.wall th { font-weight: 600; font-size: 14px; line-height: 18px; text-align: left; padding: 2px 8px 2px 0; background: var(--white); }
.wall tbody th { position: sticky; left: 0; z-index: 1; min-width: 104px; }
.wall thead th { text-align: center; font-weight: 400; color: var(--muted); padding: 0 0 4px; white-space: nowrap; }
.wall thead th.now { color: var(--black); font-weight: 800; }
.wall td { padding: 0; height: 48px; }
.cell { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--hair); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--white); color: var(--black); }
.cell.ok { background: var(--black); color: var(--white); border-color: var(--black); }
.cell.issue { background: var(--orange); border-color: var(--orange); font-weight: 800; }
.cell.part { border: 2px solid var(--black); }
.legend { display: flex; gap: 6px var(--s2); flex-wrap: wrap; margin-top: var(--s1); align-items: center; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.alert { background: var(--orange); padding: var(--s2); margin-bottom: 4px; }
.alert h2 { font-size: 24px; line-height: 1.2; font-weight: 800; margin-bottom: var(--s1); letter-spacing: -.01em; }
.alertrow { display: block; text-decoration: none; padding: var(--s1) 0; border-top: 1px solid var(--black); overflow-wrap: anywhere; font-weight: 600; }
.alert .tag { border-color: var(--black); }
.alert .tag.hot { background: var(--black); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: var(--s3); }
.stat { background: var(--black); color: var(--white); padding: var(--s2); text-decoration: none; display: block; font-weight: 600; line-height: 20px; min-width: 0; overflow-wrap: anywhere; }
.stat:hover { background: var(--hair-dark); }
.stat.hot { background: var(--orange); color: var(--black); }
.stat b { display: block; font-size: 48px; line-height: 1; font-weight: 800; margin-bottom: var(--s1); letter-spacing: -.02em; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.cashrow { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s1) var(--s2); padding: 12px var(--s2); border-bottom: 1px solid var(--hair); align-items: center; font-variant-numeric: tabular-nums; }
.cashrow small { display: block; }
.cashrow strong { font-weight: 600; display: block; }
.cashrow .off { background: var(--orange); font-weight: 800; padding: 4px 8px; }
@media (max-width: 620px) { .cashrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cashrow > :first-child { grid-column: 1 / -1; } }

/* Problems and proofs */
.prob { display: block; padding: var(--s2); border-bottom: 1px solid var(--hair); overflow-wrap: anywhere; text-decoration: none; }
a.prob:hover { background: var(--hair); }
.prob > p + p { margin-top: 4px; }
.prob .tags, .alert .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 12px; line-height: 16px; font-weight: 800; padding: 2px 8px; border: 1px solid var(--black); text-transform: uppercase; }
.tag.hot { background: var(--orange); border-color: var(--orange); }
.tag.stop { background: var(--black); color: var(--white); }
.meta { display: flex; gap: 4px var(--s2); flex-wrap: wrap; }
.follow { margin-top: 12px; }
.follow summary { list-style: none; display: inline-flex; }
.follow summary::-webkit-details-marker { display: none; }
.follow form { margin-top: var(--s2); }
.photo-pick { display: block; border: 2px dashed var(--black); cursor: pointer; font-weight: 600; text-align: center; margin-bottom: var(--s2); position: relative; }
.photo-pick .face { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 72px; padding: var(--s2); }
.photo-pick.big { background: var(--orange); border: 0; font-weight: 800; font-size: 20px; }
.photo-pick.big .face { flex-direction: column; min-height: 176px; }
.photo-pick:hover { border-style: solid; }
.photo-pick.has { background: var(--white); border: 2px solid var(--black); font-size: 14px; font-weight: 600; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-pick:focus-within { outline: 2px solid var(--black); outline-offset: 2px; }
.preview { max-width: 100%; max-height: 240px; display: block; }
.proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; margin-top: 4px; }
.proof { text-decoration: none; border: 1px solid var(--hair); display: block; overflow-wrap: anywhere; }
.proof:hover { border-color: var(--black); }
.proof img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--hair); }
.proof div div { font-variant-numeric: tabular-nums; }
.proof > div { padding: var(--s1); }
.proof strong { font-weight: 600; }
.toggles { border-top: 1px solid var(--hair); margin-bottom: var(--s2); }
.toggle { display: flex; gap: var(--s2); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 56px; height: 32px; }
.switch { width: 56px; height: 32px; border: 2px solid var(--black); border-radius: 9999px; flex: none; position: relative; background: var(--white); }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 9999px; background: var(--black); }
.toggle input:checked + .switch { background: var(--orange); border-color: var(--orange); }
.toggle input:checked + .switch::after { left: 28px; }
.toggle input:focus-visible + .switch { outline: 2px solid var(--black); outline-offset: 2px; }
.toggle strong { display: block; font-weight: 600; }
.toggle small { display: block; color: var(--muted); }

/* Manage */
details.edit { border-bottom: 1px solid var(--hair); }
details.edit > summary { min-height: var(--hit); padding: 10px var(--s2); cursor: pointer; font-weight: 600; display: flex; gap: var(--s1); align-items: center; list-style: none; flex-wrap: wrap; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit > summary:hover { background: var(--hair); }
details.edit > summary .muted { font-weight: 400; margin-left: auto; font-size: 14px; }
details.edit.off > summary { color: var(--muted); font-weight: 400; }
details.edit.add > summary { font-weight: 800; }
details.edit form { padding: var(--s2); border-top: 2px solid var(--black); }

#toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 12px var(--s2); font-weight: 600; z-index: 20; max-width: calc(100vw - 32px); width: max-content; display: none; border: 2px solid var(--white); gap: var(--s2); align-items: center; }
#toast.show { display: flex; }
#toast button { background: none; border: 0; color: var(--white); text-decoration: underline; font-weight: 800; cursor: pointer; }
@media print { .rail, .topbar, .sticky { display: none; } }

/* Brand backdrop, shared with the website: black base, orange dots and two slow glows. */
.backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #000; }
.backdrop i { position: absolute; display: block; }
.bg-dots { inset: 0; background: var(--dots); opacity: .08; animation: bg-dots 6s ease-in-out infinite; }
.bg-glow { border-radius: 9999px; background: var(--orange); will-change: transform, opacity; }
.bg-a { width: 640px; height: 640px; top: 0; left: -80px; filter: blur(140px); opacity: .15; animation: bg-a 12s ease-in-out infinite; }
.bg-b { width: 720px; height: 720px; bottom: -10%; right: -80px; filter: blur(150px); opacity: .1; animation: bg-b 15s ease-in-out infinite; }
@keyframes bg-dots { 50% { opacity: .15; } }
@keyframes bg-a { 33.33% { transform: translate(80px, 50px) scale(1.1); opacity: .25; } 66.67% { transform: translate(-40px, -20px) scale(.9); opacity: .1; } }
@keyframes bg-b { 33.33% { transform: translate(-60px, -80px) scale(1.2); opacity: .2; } 66.67% { transform: translate(40px, 20px) scale(.95); opacity: .08; } }
@media (max-width: 760px) {
  .bg-a { width: 300px; height: 300px; left: -60px; filter: blur(80px); }
  .bg-b { width: 300px; height: 300px; right: -60px; bottom: -5%; filter: blur(80px); }
}
/* Work screens stay still: only the dots, no blur or motion. */
.backdrop.still .bg-dots { animation: none; opacity: .12; }
.backdrop.still .bg-glow { display: none; }
@media (prefers-reduced-motion: reduce) { .bg-dots, .bg-a, .bg-b { animation: none; } }

/* Recipes */
.testbanner { display: flex; gap: 12px; align-items: flex-start; padding: 12px var(--s2); border: 2px solid var(--orange); margin-bottom: var(--s2); font-weight: 600; }
.testbanner .tag { flex: none; }
.fryset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: var(--s3); }
.fy { border: 2px solid var(--black); padding: 12px var(--s2); min-width: 0; overflow-wrap: anywhere; }
.fy small { display: block; }
.fy strong { font-weight: 600; display: block; margin-top: 4px; line-height: 22px; }
.fy.main { background: var(--black); color: var(--white); grid-column: span 1; }
.fy.main strong { font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -.01em; }
.fryset .fy:nth-child(1) { grid-column: span 2; }
.fryset .fy:nth-child(2) { grid-column: span 1; }
@media (max-width: 620px) { .fryset { grid-template-columns: 1fr 1fr; } .fryset .fy:nth-child(1), .fryset .fy:nth-child(2) { grid-column: 1 / -1; } }
.stepsl { list-style: none; margin: 0; padding: 0; }
.stepbtn { display: flex; gap: var(--s2); width: 100%; min-height: 64px; align-items: center; padding: 10px var(--s2); border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.stepbtn .num { width: 36px; height: 36px; flex: none; background: var(--black); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.stepbtn[aria-pressed=true] { color: var(--muted); }
.stepbtn[aria-pressed=true] span:last-child { text-decoration: line-through; }
.stepbtn[aria-pressed=true] .num { background: var(--orange); color: var(--black); }
.rejectbox { background: var(--orange); padding: var(--s2); margin-bottom: var(--s3); }
.rejectbox h2 { font-size: 20px; line-height: 24px; font-weight: 800; margin-bottom: 4px; }
.facts { margin: 0 0 var(--s3); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px; }
.facts > div { border-bottom: 1px solid var(--hair); padding: var(--s1) var(--s2); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.duo2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.duo2 h3, .passfail h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.quicklist { list-style: none; margin: 0; padding: 0; }
.quicklist li { display: flex; justify-content: space-between; gap: var(--s2); padding: 4px 0; }
.quicklist b, .ingrow b { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.passfail { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px; margin-bottom: var(--s3); }
.passfail > div { border: 2px solid var(--black); padding: var(--s2); }
.passfail .no { background: var(--orange); border-color: var(--orange); }
.ingrow { display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: 56px; padding: 8px var(--s2); border: 0; border-bottom: 1px solid var(--hair); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ingrow .grow { flex: 1; min-width: 0; }
.ingrow .box { width: 28px; height: 28px; }
.ingrow[aria-pressed=true] .box { background: var(--black); color: var(--white); }
figure.proof { margin: 0; }
figure.proof figcaption { padding: var(--s1); }
.lines { min-height: 180px; }
.ingedit { display: grid; grid-template-columns: 2fr 2fr 80px 64px 120px 32px; gap: 4px; align-items: center; margin-bottom: 4px; }
.ingedit input, .ingedit select { min-height: 44px; padding: 8px; }
.ingedit.head small { color: var(--muted); }
@media (max-width: 720px) { .ingedit { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--hair); } .ingedit.head { display: none; } }

/* Promo, sold out, targets, schedule */
.promo { background: #000; color: var(--white); margin-bottom: 4px; }
.promoitem { display: flex; gap: var(--s2); align-items: center; padding: 14px var(--s2); flex-wrap: wrap; }
.promoitem + .promoitem { border-top: 1px solid var(--hair-dark); }
.promolabel { background: var(--orange); color: var(--black); font-size: 13px; line-height: 16px; font-weight: 800; text-transform: uppercase; padding: 6px 10px; flex: none; }
.promotext { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.promotext strong { font-size: 20px; line-height: 24px; font-weight: 800; letter-spacing: -.01em; display: block; }
.promotext p { color: var(--muted-dark); margin-top: 2px; }
.promoitem small { color: var(--muted-dark); white-space: nowrap; }
.soldout { border: 2px solid var(--hair); padding: 12px var(--s2); margin-bottom: 4px; }
.soldout.has { border-color: var(--orange); }
.sohead { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.sohead strong { font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px 6px 14px; background: var(--orange); border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--black); }
.chip b { display: block; font-weight: 800; }
.chip small { display: block; font-size: 13px; line-height: 16px; }
.chip:hover { background: var(--black); color: var(--white); }
.sohint { display: block; color: var(--muted); margin-top: 6px; }
.soform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 4px; margin-top: 10px; }
.soform input { min-height: 48px; }
@media (max-width: 560px) { .soform { grid-template-columns: 1fr; } }
.editlink { margin: -8px 0 var(--s2); }
.editlink a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; min-height: 44px; }
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px; margin-top: 4px; }
.goal { border: 2px solid var(--black); padding: var(--s2); display: grid; gap: 6px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.goal.bonus { border-color: var(--orange); }
.goal.hit { background: var(--black); color: var(--white); }
.goal.hit .muted { color: var(--muted-dark); }
.goaltop { display: flex; justify-content: space-between; gap: var(--s1); align-items: flex-start; }
.goaltop strong { display: block; font-size: 18px; line-height: 22px; font-weight: 800; letter-spacing: -.01em; }
.pct { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; }
.meter span { height: 14px; border: 1px solid var(--muted); }
.meter span.on { background: var(--orange); border-color: var(--orange); }
.goal.hit .meter span { border-color: var(--muted-dark); }
.reward { font-weight: 600; }
.progform { display: flex; gap: 4px; margin-top: 4px; }
.progform input { min-height: 44px; }
.onshift { display: flex; gap: var(--s1); flex-wrap: wrap; padding: 2px 0; }
.onshift strong { font-weight: 600; min-width: 120px; }
.onshift.mine strong::after { content: ' ●'; color: var(--orange); }
.myshift { color: var(--black); font-weight: 600; }
.weeknav { display: flex; gap: 4px; }
.weeknav .btn { min-width: 48px; font-size: 18px; }
.weeknav .btn:nth-child(2) { font-size: 14px; }
.week { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: var(--s3); }
@media (min-width: 1180px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); } .day { min-height: 220px; } }
.day { border: 2px solid var(--hair); display: flex; flex-direction: column; min-width: 0; position: relative; }
.day.now { border-color: var(--black); }
.day.past { opacity: .6; }
.dayhead { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; margin: 0; padding: 8px 10px; font-size: 14px; line-height: 20px; font-weight: 600; text-transform: capitalize; border-bottom: 1px solid var(--hair); }
.day.now .dayhead { background: var(--black); color: var(--white); }
.dayhead b { font-weight: 800; }
.shift { display: grid; gap: 0; text-align: left; padding: 8px 10px; background: none; border: 0; border-bottom: 1px solid var(--hair); font: inherit; color: inherit; width: 100%; min-height: 48px; overflow-wrap: anywhere; }
button.shift { cursor: pointer; }
button.shift:hover { background: var(--hair); }
.shift strong { font-weight: 600; font-size: 15px; line-height: 20px; }
.shift .time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.shift small { font-size: 13px; line-height: 16px; }
.shift.mine { background: var(--orange); }
.noshift { padding: 10px; color: var(--muted); font-size: 14px; }
.addshift { margin-top: auto; display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 44px; background: none; border: 0; border-top: 1px dashed var(--hair); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: inherit; }
.addshift:hover { background: var(--black); color: var(--white); }
.shiftform { padding: 10px; border-top: 2px solid var(--black); background: var(--white); }
.shiftform .field { margin-bottom: 10px; }
.shiftform input, .shiftform select { min-height: 44px; padding: 8px; }
.grid2.tight { grid-template-columns: 1fr 1fr; gap: 0 6px; }
.formrow { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
@media (min-width: 1180px) { .shiftform { position: absolute; z-index: 3; top: 100%; left: -2px; width: 280px; border: 2px solid var(--black); } .day:nth-child(n+5) .shiftform { left: auto; right: -2px; } }
.pct { white-space: nowrap; }
.progform .btn { flex: none; white-space: nowrap; }
.progform input { flex: 1; min-width: 0; }
.goal.hit .btn.dark-btn { background: var(--white); color: var(--black); border-color: var(--white); }
.goal.hit input { border-color: var(--hair-dark); color: var(--black); background: var(--white); }
