/* Proactive Senior Care & Comfort Agent — interface.

Where the look comes from, and why:

- Toss (토스). The Korean standard for large-type mobile UI: white page, near-black
  text, one accent colour, thin dividers, almost no shadow. It proves that "big
  enough for an elderly reader" and "looks like a shipped product" are not in
  conflict — the previous version traded one for the other.
- LG ThinQ. The app this actually talks to. Its device rows are the shape a
  household already knows: icon, name, state, one control on the right.
- Mi Home (米家). Device density without clutter: filled tiles for a grid, hairline
  rows for a list, no card inside a card.
- iOS Settings / WeChat. Section labels above divided groups. This is what makes a
  screen read as an app rather than as a landing page.

Four rules, in priority order:

1. Nothing tappable is under 52px; the answer buttons are the largest things on
   any screen, because the whole product exists for the moment they appear.
2. Body text never drops below 16px, and numbers are set larger than their labels.
3. Colour is a signal, not decoration. Accent blue means "this is the action".
   Green / amber / red mean house state. Everything else is neutral.
4. No drop shadows on the page. Depth is expressed with a fill step and a hairline,
   which is what real apps do and what generated templates do not.
*/

:root {
  /* Surfaces */
  --bg: #ffffff;
  --surface: #f2f4f6;
  --surface-press: #e5e8eb;
  --line: #eceef1;
  --line-strong: #dfe3e8;

  /* Ink */
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --ink-4: #b0b8c1;

  /* Signal */
  --accent: #3182f6;
  --accent-ink: #1b64da;
  --accent-weak: #e8f3ff;

  --green: #0b9b6d;
  --green-weak: #e7f7f1;
  --red: #e5484d;
  --red-weak: #fdecec;
  --amber: #a86500;
  --amber-weak: #fff8ea;
  --amber-line: #f2c879;

  --radius-block: 16px;
  --radius-control: 12px;
}

* { box-sizing: border-box; }

html { font-size: 17px; height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "PingFang SC",
        "Microsoft YaHei", sans-serif;
  letter-spacing: -0.01em;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  /* The page itself never scrolls; each view scrolls inside the shell.
     A scrolling document is what made a focused input jump to the top of the
     transcript: the browser scrolls the nearest scrollable ancestor to reveal
     the field, and a field in a fixed bottom bar has nowhere sane to be
     revealed to. With the document locked, that scroll cannot happen. */
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; letter-spacing: inherit; }
button:active { opacity: .92; }

.sprite { display: none; }

.app {
  max-width: 600px;
  margin: 0 auto;
  /* The shell fills the *visible* viewport, so the talk bar sits on the bottom
     edge and the transcript gets the space in between. 100dvh follows the phone
     keyboard; 100vh does not, and that mismatch is what used to hide the last
     message behind the buttons. */
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
}

/* Every view is its own scroll container. The old layout let the document
   scroll, which meant the fixed bars floated over the content and nothing
   agreed on where the bottom was. */
.view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 16px;
}
.view[hidden] { display: none !important; }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 10px;
}
.masthead h1 {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stamp {
  margin: 0;
  font-size: 0.7rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
/* The build stamp is a diagnostic, not a feature. It belongs at the foot of the
   screen the way a version number does, not in the title bar where it reads as
   debug output. */
.view > .stamp {
  display: block;
  margin: 18px 0 0;
  text-align: center;
}

/* ---------- status: the one thing the house has to say ---------- */

/* A line, not a tile. Everything on this screen was a rounded grey rectangle of
   the same size, which is why nothing led; the status is now the only text-only
   row, and the dot is the only thing that changes colour. */
.status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 2px 0;
}
.status::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}
.status[data-tone="ask"]::before { background: var(--amber); }
.status strong {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.status[data-tone="ask"] strong { color: var(--amber); }
.status span {
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ---------- the ask: Tier-2, waiting for an answer ---------- */

.ask {
  margin-top: 12px;
  background: var(--amber-weak);
  border: 1.5px solid var(--amber-line);
  border-radius: var(--radius-block);
  padding: 18px 16px 16px;
}
.ask-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ask-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.ask-question {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.02em;
}
.ask-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.answer {
  min-height: 72px;
  border-radius: var(--radius-control);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  font-weight: 700;
}
.answer svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.answer span { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.answer small { font-size: 0.72rem; font-weight: 600; opacity: .8; }
.answer.yes { background: var(--green); color: #fff; }
.answer.no { background: #fff; color: var(--red); border-color: var(--red); }
.ask-clock {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* FR-4: an independent card for each Level-2 action. */
#askQueue:empty { display: none; }
#askQueue .ask + .ask { margin-top: 10px; }
.ask-index { margin-left: auto; color: var(--ink-3); font-size: 0.78rem; }
.ask-action {
  margin: -6px 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  word-break: break-word;
}

/* FR-6: the append-only trail, readable but never editable in the UI. */
.sec-note { font-size: 0.76rem; font-weight: 700; color: var(--ink-3); }
.audit { border: 1px solid var(--line); border-radius: var(--radius-block); overflow: hidden; }
.audit-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 4px 8px;
  align-items: baseline;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.35;
}
.audit-row:first-child { border-top: 0; }
.audit-time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.audit-event { font-weight: 700; color: var(--ink); word-break: break-word; }
.audit-status { font-size: 0.74rem; font-weight: 700; color: var(--ink-2); }
.audit-meta { grid-column: 2 / -1; font-size: 0.76rem; color: var(--ink-3); }
.audit-empty { margin: 0; padding: 12px; font-size: 0.82rem; color: var(--ink-3); }

/* The house's last answer, kept on screen until the next one. A reply that
   disappears after 2.6 s is not an answer for someone who reads slowly. */
.reply {
  margin-top: 12px;
  background: var(--accent-weak);
  border-radius: var(--radius-block);
  padding: 16px;
}
.reply-kicker {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.reply-text {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  white-space: pre-line;
}
.reply.pending .reply-text {
  color: var(--ink-3);
  font-weight: 500;
}

/* A placeholder in the chat log while the agent is working. */
.msg.pending { opacity: .55; font-style: italic; }

/* ---------- section heads ---------- */

/* A label, not a heading. The old version set these at 1.02rem bold, which put
   four competing titles on one screen; a shipped app gives the group a quiet
   caption and lets the content carry the weight. */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
}
.sec-head h2 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}

/* ---------- quick actions ---------- */

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick button {
  min-height: 74px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 6px;
  letter-spacing: -0.01em;
}
.quick button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick button:active { background: var(--surface-press); }

/* ---------- rooms ---------- */

.rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.room {
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-block);
  padding: 13px 15px;
  cursor: pointer;
  text-align: left;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.room.active {
  border-color: var(--accent);
  background: var(--accent-weak);
}
.room h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.room .temp {
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.room .meta {
  font-size: 0.78rem;
  color: var(--ink-3);
  display: flex;
  gap: 5px;
  align-items: center;
  letter-spacing: 0;
}
.room .meta svg {
  width: 13px; height: 13px;
  fill: none; stroke: var(--ink-4);
  stroke-width: 2; stroke-linecap: round;
}
.room .meta span { color: var(--ink-4); }

/* ---------- devices ---------- */

/* Rows divided by a hairline, not cards stacked with gaps. The gap version put
   nine rounded boxes on one screen and every one of them shouted equally; this
   reads as one list of things, which is what it is. */
.devices { display: block; }
.device {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.device:last-child { border-bottom: 0; }
.device .dev-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface);
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.device.on .dev-icon { background: var(--accent-weak); stroke: var(--accent-ink); }
.device .dev-text { flex: 1; min-width: 0; }
.device h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.device p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0;
}
.device .pwr {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.device .pwr svg {
  width: 21px; height: 21px;
  fill: none; stroke: var(--ink-3);
  stroke-width: 2; stroke-linecap: round;
}
.device.on .pwr { background: var(--accent); border-color: var(--accent); }
.device.on .pwr svg { stroke: #fff; }
.device.offline { opacity: .5; }

/* ---------- schedule ---------- */

.jobs { display: block; }
.job {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.job:last-child { border-bottom: 0; }
.job .job-main { flex: 1; min-width: 0; }
.job strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.job span {
  font-size: 0.8rem;
  color: var(--ink-3);
  letter-spacing: 0;
}
.job .del {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border: 0; border-radius: 10px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.job .del:active { background: var(--red-weak); color: var(--red); }
.job.disabled { opacity: .5; }

.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- assistant ---------- */

.assistant-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Title on one line, controls on the next. Side by side, the three of them do not
   fit in 390px and "Read aloud" breaks across two lines. */
#view-assistant .masthead {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 12px;
}
.mode-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
}
.mode-switch button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
}
.mode-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(25, 31, 40, .08);
}
.mode-note {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--ink-4);
  padding: 0 2px;
}
.tts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
}
.tts svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round;
}
.tts.active {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent-weak);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 12px;
}

/* The assistant is the one view that must not scroll as a whole: the
   transcript scrolls, the suggestions and the talk bar stay put. */
#view-assistant {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
#view-assistant .chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#view-assistant .chips { flex: 0 0 auto; }

.msg {
  max-width: 84%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.98rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  letter-spacing: -0.01em;
}
.msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.msg.assistant, .msg.system {
  align-self: flex-start;
  background: var(--surface);
  border-bottom-left-radius: 5px;
}
.msg.system { background: var(--amber-weak); }
.msg .stamp {
  display: block;
  margin-top: 5px;
  font-size: 0.68rem;
  color: var(--ink-4);
  letter-spacing: 0;
}
.msg.user .stamp { color: rgba(255, 255, 255, .72); }
.msg details {
  margin-top: 8px;
  border-top: 1px solid rgba(25, 31, 40, .08);
  padding-top: 6px;
}
.msg summary {
  font-size: 0.74rem;
  color: var(--ink-3);
  cursor: pointer;
}
.msg details ol {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.msg details li { margin-bottom: 4px; }
.msg details li.offer { list-style: "▸ "; }

.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 4px 0 10px;
  /* One row, scrolled rather than wrapped: a second row of chips steals height
     from the conversation, and a chip clipped mid-word reads as a bug. The fade
     is the only affordance it needs — if the row fits, the fade falls on empty
     background and disappears. */
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; }
.chips button {
  border: 1.5px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 15px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.chips button:active { background: var(--surface); }

/* ---------- talk bar (permanent) ---------- */

.talkbar {
  flex: 0 0 auto;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* The one loud control in the app. A glow under it is what made it look like a
   marketing button; a flat fill at this size is louder anyway. */
.talk {
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.talk svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2.1; stroke-linecap: round;
}
.talk span { display: flex; align-items: baseline; gap: 7px; }
.talk small { font-size: 0.8rem; font-weight: 600; opacity: .78; }
.talk.listening { background: var(--red); }

.composer {
  display: flex;
  gap: 8px;
}
.composer input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 15px;
  min-height: 50px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}
.composer input::placeholder { color: var(--ink-4); }
.composer input:focus { border-color: var(--accent); background: #fff; }
.composer .lang {
  min-width: 50px;
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-control);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
}
.composer .send {
  width: 50px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.composer .send svg {
  width: 20px; height: 20px;
  fill: none; stroke: #fff;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- tab bar ---------- */

.tabbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  border: 0;
  background: none;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-4);
  cursor: pointer;
  letter-spacing: 0;
}
.tabbar .tab svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.tabbar .tab.active { color: var(--ink); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(150px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  z-index: 40;
  max-width: 86%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(25, 31, 40, .18);
}

/* ---------- device sheet ---------- */

.sheet-scrim {
  position: fixed;
  inset: 0;
  background: rgba(25, 31, 40, .42);
  z-index: 50;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  z-index: 51;
  box-shadow: 0 -8px 32px rgba(25, 31, 40, .16);
}
.sheet-grip {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  margin: 4px auto 16px;
}
.sheet h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sheet .sub {
  margin: 3px 0 20px;
  color: var(--ink-3);
  font-size: 0.85rem;
  letter-spacing: 0;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 6px 0 18px;
}
.stepper button {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.stepper .target {
  font-size: 2rem;
  font-weight: 700;
  min-width: 110px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.pills button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.pills button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sheet-power {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.sheet-power.on { background: var(--red); }

/* ---------- wide screens: keep the phone frame honest ---------- */

@media (min-width: 640px) {
  body { background: var(--surface); }
  .app {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

/* A laptop or a projector is the same audience, so the frame gets wider and
   everything gets bigger — not just more space to fill. */
@media (min-width: 1000px) {
  html { font-size: 21px; }
  .app, .sheet { max-width: 780px; }
  .toast { max-width: 66%; }
}
