/* Coached member app. Black + Coached Coral. Mobile first, one hand, sweaty. */
:root {
  --black: #000;
  --coral: #ff4f5c;
  --coral-dim: #7a2b31;
  --white: #fff;
  --bg: #000;
  --s1: #0e0e0e;
  --s2: #181818;
  --s3: #232323;
  --line: #2a2a2a;
  --muted: #a8a8a8;
  /* Judge Medium is licensed. Bebas Neue is the stand-in; drop the real font in here. */
  --font-display: "Judge Medium", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tap: 52px;
  --r: 6px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  overscroll-behavior-y: contain;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
[hidden] { display: none !important; }

.disp { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; letter-spacing: .02em; line-height: .95; }
.coral { color: var(--coral); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(120px + var(--safe-b)); }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px; width: 100%;
  background: var(--coral); color: var(--black);
  font-family: var(--font-display); text-transform: uppercase; font-size: 26px; letter-spacing: .04em;
  border-radius: var(--r);
}
a.btn { text-decoration: none; }
.btn:active { transform: translateY(1px); filter: brightness(.9); }
.btn[disabled] { opacity: .5; }
.btn.ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn.sm { font-size: 20px; min-height: 48px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--coral); }
.logo svg { display: block; }
.logo .wm { font-family: var(--font-display); font-size: 28px; letter-spacing: .03em; line-height: 1; text-transform: uppercase; padding-top: 2px; }
.logo.big svg { width: 84px; height: 84px; }
.logo.big .wm { font-size: 52px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: rgba(0,0,0,.96); border-bottom: 1px solid var(--line);
}
.top .who { margin-left: auto; text-align: right; line-height: 1.1; min-width: 0; }
.top .who small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.top .who b { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.menu-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--coral); color: var(--coral);
  font-family: var(--font-display); font-size: 24px; display: grid; place-items: center; flex: none;
}
.menu {
  position: absolute; right: 12px; top: calc(100% - 2px); background: var(--s2); border: 1px solid var(--line); border-radius: var(--r);
  min-width: 190px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.7);
}
.menu button { display: block; width: 100%; min-height: 48px; text-align: left; padding: 0 14px; font-weight: 700; border-radius: 4px; }
.menu button:active { background: var(--s3); }
.menu .em { color: var(--muted); font-size: 13px; padding: 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.pill {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px;
  border: 1px solid var(--coral); color: var(--white); white-space: nowrap;
}
.pill.off { background: var(--coral); color: var(--black); }

/* ---------- auth screens ---------- */
.auth { padding: calc(40px + env(safe-area-inset-top, 0px)) 24px 40px; display: flex; flex-direction: column; min-height: 100vh; gap: 28px; }
.auth .hero { margin-top: 6vh; }
.auth h1 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 64px; line-height: .92; margin-top: 36px; letter-spacing: .01em; }
.auth h1 em { font-style: normal; color: var(--coral); }
.auth p.lead { color: #e6e6e6; margin-top: 14px; max-width: 34ch; }
.auth form { display: grid; gap: 12px; }
.field-lbl { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.text-in {
  width: 100%; min-height: var(--tap); padding: 0 16px; background: var(--s1); color: var(--white);
  border: 2px solid var(--s3); border-radius: var(--r); font-size: 18px;
}
.text-in:focus { border-color: var(--coral); outline: none; }
.auth .tag { margin-top: auto; text-align: center; color: var(--coral); font-style: italic; letter-spacing: .3em; text-transform: uppercase; font-size: 12px; }
.err { color: #ff8a93; font-weight: 700; }
.linkish { color: var(--white); text-decoration: underline; text-underline-offset: 4px; min-height: 48px; font-weight: 700; }
.sent-mark { width: 72px; height: 72px; border: 3px solid var(--coral); border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; }

/* ---------- week bar ---------- */
.weekbar { padding: 18px 14px 6px; }
.wk-row { display: flex; align-items: center; gap: 8px; }
.nav-btn { width: 48px; height: 48px; flex: none; border: 2px solid var(--s3); border-radius: 50%; display: grid; place-items: center; }
.nav-btn[disabled] { opacity: .25; }
.nav-btn:not([disabled]):active { background: var(--s3); }
.wk-mid { flex: 1; text-align: center; min-width: 0; }
.wk-mid .wk { font-family: var(--font-display); font-size: 40px; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.wk-mid .wk b { color: var(--coral); font-weight: 400; }
.wk-mid .focus { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-top: 4px; }
.wk-mid .dates { font-size: 12px; color: var(--muted); margin-top: 2px; }
.deload-band {
  margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r); color: var(--black);
  background: repeating-linear-gradient(-45deg, var(--coral) 0 14px, #e63f4c 14px 28px);
  display: flex; align-items: center; gap: 12px;
}
.deload-band .dl { font-family: var(--font-display); font-size: 34px; line-height: .9; letter-spacing: .04em; background: var(--black); color: var(--coral); padding: 6px 10px 4px; border-radius: 3px; }
.deload-band p { font-weight: 700; font-size: 14px; line-height: 1.25; background: rgba(255,79,92,.0); }
.back-today { display: block; margin: 8px auto 0; color: var(--coral); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; min-height: 48px; }

/* ---------- 7-day strip ---------- */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.dcell {
  flex: 0 0 96px; min-height: 124px; scroll-snap-align: center; text-align: left; padding: 10px 10px 10px;
  background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; position: relative;
}
.dcell .dn { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.dcell .dd { font-family: var(--font-display); font-size: 34px; line-height: .9; }
.dcell .dt { font-size: 12px; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcell .dp { margin-top: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.dcell .bar { height: 4px; background: var(--s3); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.dcell .bar i { display: block; height: 100%; background: var(--coral); }
.dcell.rest { opacity: .6; }
.dcell.rest .dt { color: var(--muted); font-weight: 400; }
.dcell.today { border-color: var(--coral); border-width: 2px; padding: 9px; }
.dcell.today .dn { color: var(--coral); }
.dcell.sel { background: var(--coral); border-color: var(--coral); color: var(--black); opacity: 1; }
.dcell.sel .dn, .dcell.sel .dp, .dcell.sel .dt { color: var(--black); }
.dcell.sel .bar { background: rgba(0,0,0,.25); } .dcell.sel .bar i { background: var(--black); }
.dcell.full:not(.sel) .dp { color: var(--white); }
.dcell .chk { position: absolute; top: 8px; right: 8px; }

/* ---------- workout header ---------- */
.dayhead { padding: 6px 14px 4px; }
.kick { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kick .tg { color: var(--black); background: var(--coral); padding: 2px 8px; border-radius: 2px; }
.dayname {
  position: relative; font-family: var(--font-display); text-transform: uppercase; font-size: 76px; line-height: .9; color: var(--coral);
  margin: 10px 0 0; letter-spacing: .01em; padding-bottom: 10px; word-break: break-word;
}
.dayname::after {
  content: attr(data-text); position: absolute; left: 4px; top: 4px; color: transparent; -webkit-text-stroke: 1px var(--white); pointer-events: none;
}
.dayname.sm { font-size: 56px; }
.daysub { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-top: 6px; }
.dayprog { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.dayprog .bar { flex: 1; height: 8px; background: var(--s3); border-radius: 4px; overflow: hidden; }
.dayprog .bar i { display: block; height: 100%; background: var(--coral); transition: width .3s; }
.dayprog b { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .04em; }

.restcard { margin: 12px 14px; padding: 22px 18px; border: 2px dashed var(--coral-dim); border-radius: var(--r); }
.restcard h2 { font-family: var(--font-display); font-weight: 400; font-size: 44px; text-transform: uppercase; line-height: .95; }
.restcard p { color: #ddd; margin-top: 8px; }
.upnext { margin: 22px 14px 0; display: flex; align-items: center; gap: 12px; color: var(--coral); font-family: var(--font-display); font-size: 28px; letter-spacing: .06em; text-transform: uppercase; }
.upnext::after { content: ""; flex: 1; height: 2px; background: var(--coral); }

/* ---------- blocks ---------- */
.block { padding: 0 14px; margin-top: 26px; }
.bhead { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; border-bottom: 2px solid var(--white); padding-bottom: 10px; }
.bhead .bl { font-family: var(--font-display); font-size: 84px; line-height: .78; flex: none; padding-top: 6px; }
.bhead .bn { flex: 1; min-width: 0; font-family: var(--font-display); text-transform: uppercase; font-size: 22px; line-height: 1.05; letter-spacing: .03em; padding-top: 2px; }
.bhead .bn div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bhead .bc { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); white-space: nowrap; padding-top: 6px; }
.bhead .bc.full { color: var(--coral); }

/* ---------- exercise card ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
.card.complete { border-color: var(--coral-dim); }
.card.complete .exname::after { content: ""; display: inline-block; width: 22px; height: 22px; margin-left: 10px; vertical-align: -2px;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.2'/%3E%3C/svg%3E") center/16px no-repeat; border-radius: 50%; }
.chead { display: flex; gap: 8px; padding: 14px 8px 0 14px; }
.chead .ht { flex: 1; min-width: 0; }
.exname { font-family: var(--font-display); text-transform: uppercase; font-size: 32px; line-height: .98; letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.chip { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--muted); border-radius: 2px; color: var(--white); }
.chip.sw { background: var(--coral); border-color: var(--coral); color: var(--black); }
.chip.warm { border-color: var(--white); }
.was { font-size: 13px; color: var(--muted); }
.was b { color: var(--white); font-weight: 700; }
.icon-btn { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--s3); font-family: var(--font-display); font-size: 24px; }
.icon-btn[aria-expanded="true"] { border-color: var(--coral); color: var(--coral); }
.rx { padding: 10px 14px 0; }
.rx .line { font-family: var(--font-display); font-size: 28px; letter-spacing: .04em; color: var(--coral); text-transform: uppercase; line-height: 1; }
.rx .line span { color: var(--white); }
.rx .cue { margin-top: 8px; font-size: 14px; color: #dcdcdc; }
.rx .hint { margin-top: 6px; font-size: 14px; color: var(--white); border-left: 3px solid var(--coral); padding: 2px 0 2px 10px; }
.rx .pnote { margin-top: 6px; font-size: 13px; color: var(--muted); }

.hist { margin: 12px 14px 0; padding: 12px; background: var(--s2); border-radius: var(--r); font-size: 14px; }
.hist .hw { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.hist .hs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 700; }

.sets { padding: 10px 14px 0; display: grid; gap: 8px; }
.srow { display: flex; align-items: center; min-height: 48px; width: 100%; text-align: left; padding: 0 12px; gap: 10px; border-radius: var(--r); background: var(--s2); }
.srow.done { background: transparent; border: 1px solid var(--s3); }
.srow .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; flex: none; }
.srow .txt { font-weight: 700; flex: 1; }
.srow .sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.srow .sub.pend { color: var(--coral); }
.srow.todo { color: var(--muted); border: 1px dashed var(--s3); background: transparent; }
.srow.todo .txt { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }

.active { background: var(--s2); border: 2px solid var(--coral); border-radius: var(--r); padding: 12px; }
.active.warm { border-color: var(--white); }
.active .ah { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.active .ah .sn { font-family: var(--font-display); font-size: 26px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.active .ah .rm { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-height: 48px; padding: 0 6px; margin: -10px -6px -10px 0; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.steps.one { grid-template-columns: 1fr; }
.step .lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; height: 56px; background: var(--black); border: 1px solid var(--s3); border-radius: var(--r); overflow: hidden; }
.stepper button { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--coral); display: grid; place-items: center; }
.stepper button:active { background: var(--coral); color: var(--black); }
.stepper input {
  width: 100%; min-width: 0; text-align: center; background: transparent; border: 0; padding: 0;
  font-family: var(--font-display); font-size: 30px; letter-spacing: .02em; color: var(--white);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--s3); }
.unit { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-align: center; margin-top: 3px; }
.rirrow { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.rirrow .lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); width: 38px; }
.rirrow .opts { display: flex; gap: 6px; flex: 1; }
.rirrow .opts button { flex: 1; height: 48px; border: 1px solid var(--s3); border-radius: var(--r); font-family: var(--font-display); font-size: 24px; background: var(--black); }
.rirrow .opts button[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.log-btn { margin-top: 12px; min-height: 60px; font-size: 32px; }

.cfoot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 14px; }
.cfoot button { min-height: 52px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-right: 1px solid var(--line); }
.cfoot button:last-child { border-right: 0; }
.cfoot button:active { background: var(--s3); }
.cfoot button.strong { color: var(--coral); }
.note-wrap { padding: 12px 14px 0; }
.note-wrap .nl { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.note-wrap textarea { width: 100%; margin-top: 6px; min-height: 76px; resize: vertical; padding: 12px; background: var(--black); border: 1px solid var(--s3); border-radius: var(--r); font-size: 16px; }
.note-wrap textarea:focus { border-color: var(--coral); outline: none; }

/* ---------- board (mixed modal) ---------- */
.board { outline: 2px solid var(--coral); outline-offset: -2px; background: var(--coral); color: var(--black); border-radius: var(--r); padding: 16px 16px 0; margin-bottom: 14px; overflow: hidden; }
.board .bt { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; display: flex; justify-content: space-between; }
.board .bx { font-family: var(--font-display); text-transform: uppercase; font-size: 38px; line-height: 1; margin: 10px 0 16px; letter-spacing: .02em; }
.board .bn { font-weight: 700; font-size: 14px; margin: -6px 0 14px; }
.board .done-tog { margin: 0 -16px; width: calc(100% + 32px); min-height: 60px; background: var(--black); color: var(--white); font-family: var(--font-display); font-size: 28px; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 10px; }
.board .done-tog .box { width: 28px; height: 28px; border: 3px solid var(--coral); border-radius: 4px; display: grid; place-items: center; }
.board.done { background: var(--black); border: 2px solid var(--coral); color: var(--white); padding-top: 14px; }
.board.done .bx { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 3px; }
.board.done .done-tog { color: var(--coral); border-top: 1px solid var(--coral-dim); }
.board.done .done-tog .box { background: var(--coral); }

/* ---------- summary ---------- */
.summary { margin: 26px 14px 0; background: var(--coral); color: var(--black); border-radius: var(--r); padding: 22px 18px; }
.summary .sh { font-family: var(--font-display); font-size: 66px; line-height: .88; text-transform: uppercase; }
.summary .sl { font-weight: 700; margin-top: 10px; font-size: 17px; line-height: 1.25; }
.summary .st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; border-top: 2px solid var(--black); padding-top: 14px; }
.summary .st b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; }
.summary .st span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.overlay .summary { margin: 0; width: 100%; max-width: 420px; animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.overlay .btn { margin-top: 18px; background: transparent; color: var(--white); border: 2px solid var(--white); }

/* ---------- sheet ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.7); animation: fade .15s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-width: 560px; margin: 0 auto; max-height: 82vh; overflow-y: auto;
  background: var(--s1); border-top: 3px solid var(--coral); border-radius: 14px 14px 0 0; padding: 8px 14px calc(18px + var(--safe-b));
  animation: up .22s ease-out;
}
.sheet .grab { width: 44px; height: 4px; background: var(--s3); border-radius: 2px; margin: 4px auto 10px; }
.sheet h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; text-transform: uppercase; line-height: 1; }
.sheet .sub { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.sheet h3 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin: 16px 0 4px; }
.alt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.alt .an { flex: 1; font-weight: 700; line-height: 1.2; }
.alt .an small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.alt:active { background: var(--s2); }
.alt[disabled] { opacity: .5; }
.alt.back { color: var(--coral); }
.alt.back .an { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- rest dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + var(--safe-b)); background: var(--black); border-top: 3px solid var(--coral); }
.dock .dr { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto; }
.dock .dl { flex: 1; min-width: 0; }
.dock .dl small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .tm { font-family: var(--font-display); font-size: 52px; line-height: .9; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.dock .dc { display: flex; gap: 6px; }
.dock .dc button { min-width: 52px; height: 48px; padding: 0 10px; border: 1px solid var(--s3); border-radius: var(--r); font-weight: 700; font-size: 14px; }
.dock .dc button.skip { background: var(--white); color: var(--black); border-color: var(--white); }
.dock .pb { height: 5px; background: var(--s3); margin: 8px auto 0; max-width: 560px; border-radius: 3px; overflow: hidden; }
.dock .pb i { display: block; height: 100%; background: var(--coral); }
.dock.fire { background: var(--coral); color: var(--black); animation: flash .6s 3; }
.dock.fire .dl small { color: var(--black); }
.dock.fire .dc button { border-color: var(--black); }
.dock.fire .dc button.skip { background: var(--black); color: var(--white); border-color: var(--black); }
.dock.fire .pb { background: rgba(0,0,0,.25); } .dock.fire .pb i { background: var(--black); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--safe-b)); z-index: 100; background: var(--white); color: var(--black); font-weight: 700; padding: 12px 18px; border-radius: 99px; max-width: 90vw; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
body.resting .toast { bottom: calc(130px + var(--safe-b)); }

.loading { padding: 60px 14px; text-align: center; color: var(--muted); font-family: var(--font-display); font-size: 28px; letter-spacing: .1em; text-transform: uppercase; }
.banner { margin: 10px 14px 0; padding: 12px 14px; border: 1px solid var(--coral); border-radius: var(--r); font-size: 14px; }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@keyframes flash { 50% { filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 560px) { .dayname { font-size: 92px; } }
@media (max-width: 360px) { .dayname { font-size: 62px; } .wk-mid .wk { font-size: 34px; } }

.chip.tempo { margin: 8px 0 0; background: transparent; min-height: 28px; cursor: pointer; }
.chip.tempo[aria-expanded="true"] { border-color: var(--coral); color: var(--coral); }
.rx .rationale { margin-top: 8px; font-size: 14px; color: var(--white); }
.rirtip { display: flex; align-items: center; gap: 8px; margin: 0 14px 12px; font-size: 13px; color: var(--muted); }
.rirtip span { flex: 1; }
.rirtip button { width: 48px; height: 48px; margin: -12px -8px -12px 0; font-size: 24px; color: var(--muted); }

.install { display: flex; align-items: flex-start; gap: 12px; max-width: 560px; margin: calc(10px + env(safe-area-inset-top, 0px)) auto 0; padding: 12px 14px; background: #111; border: 1px solid var(--coral-dim); border-left: 4px solid var(--coral); border-radius: 10px; }
.install[hidden] { display: none; }
.install img { border-radius: 10px; flex: none; }
.install .txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.install .txt strong { display: block; font-size: 15px; margin-bottom: 4px; }
.install .txt p { margin: 0 0 6px; color: #ddd; }
.install .txt .sub { color: var(--muted); font-size: 13px; }
.install .btn { margin-top: 4px; width: auto; padding: 10px 18px; }
.install .x { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; padding: 0 4px; cursor: pointer; }

.swapday { width: calc(100% - 28px); margin: 0 14px 14px; }
.sheet .alt:not(.on) .chip.sw { display: none; }
.sheet .alt.on { border-color: var(--coral); }
.chip.on { background: var(--coral); color: #000; border-color: var(--coral); }

.demo { position: relative; overflow: hidden; border-radius: 10px; background: var(--s3); flex: none; aspect-ratio: 3 / 2; }
.demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.demo .f2 { animation: demoflip 1.8s ease-in-out infinite alternate; }
.demo.thumb { width: 84px; height: 56px; cursor: pointer; align-self: flex-start; margin-top: 2px; }
.demo.big { width: 100%; height: auto; margin: 10px 0 4px; }
@keyframes demoflip { 0%, 25% { opacity: 0; } 75%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .demo .f2 { animation: none; opacity: 0; } }

.extra-add { width: calc(100% - 28px); margin: 10px 14px; }
.extra { margin: 10px 14px; padding: 14px; border: 1px solid var(--s3); border-radius: 14px; background: var(--s2, transparent); }
.extra.done { opacity: .7; }
.extra-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.extra-k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.extra h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; text-transform: uppercase; line-height: 1.1; margin: 2px 0; }
.extra-m { color: var(--muted); font-size: 14px; }
.extra-d { font-size: 14px; line-height: 1.45; margin: 10px 0 0; }
.extra-a { display: flex; gap: 18px; margin-top: 10px; }
.extra-a .link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 13px; padding: 0; cursor: pointer; }
.extra-f { display: block; font-size: 13px; color: var(--muted); margin: 8px 0; }
.extra-f input, .extra-f textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; border-radius: 10px; border: 1px solid var(--s3); background: var(--s3); color: inherit; font: inherit; box-sizing: border-box; }
.extra-h .btn { width: auto; flex: none; padding-left: 16px; padding-right: 16px; }
