/* PRTY OS — Show Day mobile. Tokens only.
   ≥720px: phone-sized frame (390×844) centred with a note beside it. <720px: full screen.
   Tap targets ≥44px, large tabular times, high contrast, no dense tables. */

/* ---------- Stage & frame ---------- */
.sd-stage {
  min-height: 100%;
  display: flex; align-items: center; justify-content: center; gap: var(--s-10);
  padding: var(--s-8) var(--s-6);
  background: var(--bg);
}
.sd-aside { width: 250px; display: flex; flex-direction: column; gap: var(--s-3); color: var(--text-2); }
.sd-aside__back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-3); margin-bottom: var(--s-4); }
.sd-aside__back:hover { color: var(--text); }
.sd-aside__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-16); font-weight: 600; color: var(--text); }
.sd-aside__title .icon { color: var(--text-3); }
.sd-aside__text { font-size: var(--fs-14); line-height: 1.5; color: var(--text-2); }
.sd-aside__url { align-self: flex-start; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-1); font-size: var(--fs-12); color: var(--text-3); }
.sd-aside__hint { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.sd-aside__hint p { font-size: var(--fs-12); line-height: 1.5; color: var(--text-3); }

.sd-phone {
  --sd-pad: 16px;
  position: relative;
  width: 390px; height: min(844px, calc(100vh - 64px)); min-height: 600px;
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--r-3) * 3);
  overflow: hidden;
  font-size: var(--fs-14);
  flex-shrink: 0;
}

/* ---------- Top bar ---------- */
.sd-top {
  display: flex; align-items: center; gap: 4px;
  min-height: 56px; padding: 6px 8px 6px 4px;
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  flex-shrink: 0;
  position: relative; z-index: 5;
}
.sd-top__back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-2); color: var(--text-2); flex-shrink: 0; }
.sd-top__back:active { background: var(--press); }
.sd-top__name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; font-size: var(--fs-16); }
.sd-top__name small { font-size: var(--fs-11); font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-clock { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; }
.sd-clock b { color: var(--text); font-weight: 600; font-size: var(--fs-12); }
.sd-clock__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.sd-clock.is-override { border-style: solid; border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.sd-clock.is-override .sd-clock__dot { background: var(--amber); }
.sd-top .popover { right: 0; }

/* ---------- Scroll body ---------- */
.sd-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sd-body { animation: fade-in var(--dur-2) var(--ease); padding-bottom: var(--s-6); }
.sd-pad { padding: var(--s-5) var(--sd-pad) 0; }
.sd-h { font-size: var(--fs-20); font-weight: 600; letter-spacing: -0.01em; }
.sd-sub { font-size: var(--fs-13); color: var(--text-3); margin: 2px 0 var(--s-4); }
.sd-muted { color: var(--text-3); font-size: var(--fs-13); display: inline-flex; align-items: center; gap: 4px; }
.sd-section { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) 0 var(--s-2); font-size: var(--fs-11); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.sd-section__right { font-weight: 500; letter-spacing: 0.04em; color: var(--text-4); }
.sd-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--s-8) 0; color: var(--text-3); }

/* ---------- Buttons ---------- */
.sd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  border-radius: var(--r-3);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-14); font-weight: 500;
  min-width: 0;
  transition: background var(--dur-1), border-color var(--dur-1), transform var(--dur-1);
  -webkit-tap-highlight-color: transparent;
}
.sd-btn:active { transform: scale(0.98); background: var(--surface-3); }
.sd-btn .icon { color: var(--text-2); }
.sd-btn--primary { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.sd-btn--primary .icon { color: var(--on-inverse); }
.sd-btn--primary:active { background: var(--text-2); }
.sd-btn[disabled] { opacity: 0.4; pointer-events: none; }
.sd-btn--square { width: 48px; padding: 0; flex-shrink: 0; }
.sd-calls { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s-4); }
.sd-callrow { display: flex; gap: 8px; }
.sd-callrow .sd-btn:first-child { flex: 1; justify-content: flex-start; }

.sd-round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.sd-round:active { background: var(--surface-4); }

/* Check svg (draws on done) */
.sd-checksvg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sd-checksvg__path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--dur-3) var(--ease); }
.is-done > .sd-checksvg .sd-checksvg__path,
.is-done .sd-tick .sd-checksvg__path,
.sd-btn--check .sd-checksvg__path { stroke-dashoffset: 0; }
@keyframes sd-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Now: header ---------- */
.sd-hello { padding: var(--s-5) var(--sd-pad) var(--s-4); }
.sd-kicker { font-size: var(--fs-12); font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; }
.sd-title { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.005em; text-transform: uppercase; margin-top: 6px; }
.sd-venue { font-size: var(--fs-16); color: var(--text-2); margin-top: 4px; }
.sd-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.sd-times > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-left: 1px solid var(--line-soft); }
.sd-times > div:first-child { border-left: 0; }
.sd-times span { font-size: var(--fs-11); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.sd-times b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }

/* Pinned critical issues */
.sd-pinned { padding: 0 var(--sd-pad); display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s-4); }
.sd-alert {
  --c: var(--red);
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 60px; padding: 12px 12px 12px 14px;
  text-align: left;
  border-radius: var(--r-3);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: color-mix(in srgb, var(--c) 12%, var(--surface));
  -webkit-tap-highlight-color: transparent;
  animation: rise-in var(--dur-3) var(--ease) both;
}
.sd-alert > .icon { color: var(--c); }
.sd-alert > .icon:last-child { color: var(--text-3); }
.sd-alert__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sd-alert__title { font-weight: 600; font-size: var(--fs-14); }
.sd-alert__detail { font-size: var(--fs-13); color: var(--text-2); }
.sd-morelink { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 36px; font-size: var(--fs-13); color: var(--text-2); font-weight: 500; }

/* Next hero */
.sd-next {
  margin: 0 var(--sd-pad);
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--r-3) * 1.5);
  background: var(--surface);
  animation: rise-in var(--dur-3) var(--ease) both;
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
.sd-next.is-pending { opacity: 0.55; transform: scale(0.99); }
.sd-next__label { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.sd-next__rel { text-transform: none; letter-spacing: 0; font-size: var(--fs-13); font-weight: 500; color: var(--text-2); }
.sd-next__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: 4px; }
.sd-next__time { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.sd-next.is-overdue .sd-next__time { color: var(--amber); }
.sd-next__title { font-size: 20px; font-weight: 600; line-height: 1.25; margin-top: var(--s-3); letter-spacing: -0.01em; }
.sd-next__detail { font-size: var(--fs-14); color: var(--text-2); margin-top: 4px; line-height: 1.4; }
.sd-next--clear .sd-next__title { font-size: var(--fs-16); }

.sd-donebtn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: var(--fs-16); font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-1);
}
.sd-donebtn .sd-checksvg__path { stroke-dashoffset: 0; }
.sd-donebtn:active { transform: scale(0.96); }
.sd-donebtn.is-done { background: var(--green); color: var(--on-inverse); animation: pop 420ms var(--ease); }
.sd-donebtn.is-done .sd-checksvg__path { animation: sd-draw 380ms var(--ease) both; }

/* Run sheet list */
.sd-now section + section { margin-top: 0; }
.sd-now > section:not(.sd-next) { padding: 0 var(--sd-pad); }
.sd-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; }
.sd-item {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px;
  align-items: center; gap: 10px;
  width: 100%; min-height: 64px; padding: 10px 8px 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-2) var(--ease), opacity var(--dur-3) var(--ease);
}
.sd-item:last-child { border-bottom: 0; }
.sd-item:active { background: var(--press); }
.sd-item__time { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; align-self: start; padding-top: 1px; }
.sd-item__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-item__title { font-size: var(--fs-14); font-weight: 500; line-height: 1.3; }
.sd-item__detail { font-size: var(--fs-12); color: var(--text-3); line-height: 1.35; }
.sd-item__flag { font-size: var(--fs-12); color: var(--amber); font-weight: 500; }
.sd-item.is-overdue .sd-item__time { color: var(--amber); }
.sd-tick { width: 32px; height: 32px; justify-self: center; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.sd-item.is-done .sd-tick { background: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); color: var(--on-inverse); }
.sd-item.is-pending { background: color-mix(in srgb, var(--green) 9%, transparent); }
.sd-item.is-pending .sd-tick { animation: pop 420ms var(--ease); }
.sd-item.is-pending .sd-checksvg__path { animation: sd-draw 380ms var(--ease) both; }
.sd-list--done .sd-item { min-height: 52px; }
.sd-list--done .sd-item__time, .sd-list--done .sd-item__title { color: var(--text-3); }
.sd-list--done .sd-item__title { text-decoration: line-through; text-decoration-color: var(--text-4); }
.sd-list--done .sd-tick { width: 26px; height: 26px; }

.sd-daybreak { padding: 8px 14px; font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); background: var(--bg-2); border-bottom: 1px solid var(--line-soft); }

.sd-fold { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-top: var(--s-4); padding: 0 12px; border-radius: var(--r-3); border: 1px solid var(--line); color: var(--text-2); font-weight: 500; }
.sd-fold > span:nth-child(2) { flex: 1; text-align: left; }
.sd-fold__icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.sd-fold__icon .icon { stroke-width: 2.5; }
.sd-fold + .sd-list, .sd-fold + .sd-issues { margin-top: 8px; animation: rise-in var(--dur-2) var(--ease) both; }

/* ---------- Running order ---------- */
.sd-stagebox { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; margin-bottom: var(--s-4); }
.sd-stagebox__head { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.sd-stagebox__head .num { font-weight: 500; color: var(--text-3); font-size: var(--fs-13); }
.sd-stagebox > .sd-muted { padding: 14px; }
.sd-slot { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 68px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); position: relative; }
.sd-slot:last-child { border-bottom: 0; }
.sd-slot__time { display: flex; flex-direction: column; line-height: 1.15; }
.sd-slot__time b { font-size: 18px; font-weight: 600; }
.sd-slot__time span { font-size: var(--fs-12); color: var(--text-3); }
.sd-slot__artist { font-size: var(--fs-16); font-weight: 600; letter-spacing: 0.02em; }
.sd-slot__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-12); color: var(--text-3); margin-top: 2px; }
.sd-slot__state { text-align: right; }
.sd-slot.is-past { opacity: 0.55; }
.sd-slot.is-live { background: color-mix(in srgb, var(--green) 8%, transparent); }
.sd-slot.is-live::before, .sd-slot.is-next::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: var(--green); }
.sd-slot.is-next::before { background: var(--text); }
.sd-live { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); font-size: var(--fs-12); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.sd-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: sd-blink 1.6s var(--ease) infinite; }
@keyframes sd-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.sd-nextchip { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: var(--fs-12); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.sd-nextchip small { font-size: var(--fs-12); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-3); }

/* ---------- Cards (artists, transport) ---------- */
.sd-cards { display: flex; flex-direction: column; gap: 10px; }
.sd-card { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sd-card .sd-calls { margin-top: 8px; }
.sd-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sd-card__id { min-width: 0; }
.sd-card__name { font-size: var(--fs-16); font-weight: 600; letter-spacing: 0.02em; }
.sd-card__meta { font-size: var(--fs-13); color: var(--text-3); }
.sd-card__line { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-13); color: var(--text-2); }
.sd-card__line .icon { margin-top: 2px; color: var(--text-3); }
.sd-card__line.c-red, .sd-card__line.c-red .icon { color: var(--red); }

.sd-transfer.is-done { opacity: 0.7; }
.sd-transfer.is-pending { background: color-mix(in srgb, var(--green) 7%, var(--surface)); }
.sd-transfer__top { display: flex; align-items: center; justify-content: space-between; }
.sd-transfer__time { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.sd-transfer__title { text-transform: none; letter-spacing: -0.005em; }
.sd-transfer__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.sd-btn--check { color: var(--text); }
.sd-btn--check .sd-checksvg { color: var(--green); }
.sd-btn--check.is-done { background: color-mix(in srgb, var(--green) 16%, var(--surface-2)); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.sd-transfer.is-pending .sd-btn--check .sd-checksvg__path { animation: sd-draw 380ms var(--ease) both; }

/* ---------- Contacts ---------- */
.sd-group { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; }
.sd-group__empty { padding: 14px; }
.sd-contact { display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line-soft); }
.sd-contact:last-child { border-bottom: 0; }
.sd-contact__main { flex: 1; min-width: 0; }
.sd-contact__name { font-size: var(--fs-16); font-weight: 600; }
.sd-contact__role { font-size: var(--fs-13); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Issues ---------- */
.sd-add { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); margin-bottom: var(--s-4); }
.sd-input { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: var(--fs-16); outline: none; }
.sd-input::placeholder { color: var(--text-4); }
.sd-input:focus { border-color: var(--focus); }
.sd-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--bg); }
.sd-seg__opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: var(--r-1); color: var(--text-3); font-size: var(--fs-13); font-weight: 500; -webkit-tap-highlight-color: transparent; }
.sd-seg__opt .icon { color: var(--c); opacity: 0.7; }
.sd-seg__opt.is-active { background: color-mix(in srgb, var(--c) 16%, var(--surface-3)); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.sd-seg__opt.is-active .icon { opacity: 1; }
.sd-add .sd-btn { width: 100%; }

.sd-issues { display: flex; flex-direction: column; gap: 8px; }
.sd-issue { --c: var(--amber); display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 12px 12px 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; animation: rise-in var(--dur-2) var(--ease) both; }
.sd-issue__bar { align-self: stretch; background: var(--c); margin: -12px 0; }
.sd-issue__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sd-issue__sev { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c); }
.sd-issue__title { font-size: var(--fs-14); font-weight: 600; line-height: 1.3; }
.sd-issue__detail { font-size: var(--fs-13); color: var(--text-2); line-height: 1.35; }
.sd-issue__meta { font-size: var(--fs-12); color: var(--text-3); }
.sd-issue__action { min-height: 44px; padding: 0 12px; font-size: var(--fs-13); }
.sd-issue.is-resolved { opacity: 0.65; }
.sd-issue.is-resolved .sd-issue__title { text-decoration: line-through; text-decoration-color: var(--text-4); }

/* ---------- Empty state ---------- */
.sd-emptystate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-10) var(--s-6); }
.sd-emptystate__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.sd-emptystate__title { font-size: var(--fs-16); font-weight: 600; }
.sd-emptystate p { color: var(--text-3); font-size: var(--fs-14); line-height: 1.5; max-width: 30ch; }

/* ---------- Bottom tab bar ---------- */
.sd-tabs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
}
.sd-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; color: var(--text-3); border-radius: var(--r-2); -webkit-tap-highlight-color: transparent; transition: color var(--dur-1); }
.sd-tab:active { background: var(--press); }
.sd-tab.is-active { color: var(--text); }
.sd-tab__icon { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; transition: background var(--dur-2) var(--ease); }
.sd-tab.is-active .sd-tab__icon { background: var(--surface-4); }
.sd-tab__label { font-size: var(--fs-11); font-weight: 500; letter-spacing: 0.01em; }
.sd-badge { position: absolute; top: -3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-4); color: var(--text); font: 600 var(--fs-10)/1 var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg-2); }
.sd-badge.is-critical { background: var(--red); color: var(--on-inverse); }

/* Toasts sit above the tab bar on this screen */
.sd-stage ~ .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) and (min-width: 720px) {
  .sd-stage { gap: var(--s-6); }
  .sd-aside { width: 200px; }
}

@media (max-height: 700px) and (min-width: 720px) {
  .sd-stage { align-items: flex-start; }
}

@media (max-width: 719px) {
  .sd-stage { display: block; padding: 0; min-height: 0; height: 100%; }
  .sd-aside { display: none; }
  .sd-phone {
    position: fixed; inset: 0;
    width: 100%; height: 100%; min-height: 0;
    border: 0; border-radius: 0;
  }
  @supports (height: 100dvh) { .sd-phone { height: 100dvh; } }
}

@media (max-width: 360px) {
  .sd-phone { --sd-pad: 12px; }
  .sd-clock__label { font-size: var(--fs-10); }
  .sd-next__time { font-size: 40px; }
  .sd-tab__label { font-size: var(--fs-10); }
}
