/* The app: phone first, then wider. Tokens come from ../style.css. */
body.app {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: max(12px, env(safe-area-inset-top)) 16px 8px;
  max-width: 860px;
  margin: 0 auto;
}
.status-line {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs a {
  flex: 1 0 auto;
  text-align: center;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.tabs a[aria-current] {
  background: var(--panel2);
  color: var(--ink);
}
.view {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 72px;
  outline: none;
}
.view h1 {
  font-size: clamp(28px, 7vw, 40px);
  letter-spacing: -0.035em;
  margin: 6px 0 10px;
  outline: none;
}
.view h2 {
  font-size: 19px;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 12px;
}
.mode {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 16px;
}
.meter {
  height: 10px;
  border-radius: 99px;
  background: var(--todo);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.intro {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.intro h1 {
  margin-top: 0;
}

/* Filters */
.filters {
  margin: 20px 0 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.filters summary {
  cursor: pointer;
  padding: 12px 16px;
  min-height: 44px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filters summary::-webkit-details-marker {
  display: none;
}
.filters summary::before {
  content: "▸";
  transition: transform 0.15s;
}
.filters[open] summary::before {
  transform: rotate(90deg);
}
.count {
  background: var(--warm-ink);
  color: var(--paper);
  border-radius: 99px;
  font-size: 12px;
  padding: 1px 8px;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}
.filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.filter-grid label:first-child {
  grid-column: 1 / -1;
}
.filter-grid .check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
}
input,
select,
textarea {
  font: 16px / 1.4 var(--font);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--accent);
}
.link {
  background: none;
  border: 0;
  color: var(--accent-ink);
  font: 600 14px var(--font);
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  justify-self: start;
  padding: 0;
}
.result-count {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 2px 0;
}

/* List */
.group {
  margin-top: 26px;
}
.group h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--line);
}
.group h2 .muted {
  font: 600 14px var(--font);
}
.items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  min-height: 56px;
}
.row a:hover .row-title {
  text-decoration: underline;
}
.row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.row-title {
  font-weight: 600;
}
.row-meta {
  font-size: 13px;
  color: var(--muted);
}
.row-note {
  font-size: 13px;
  color: var(--bad);
}
.row-works .row-title,
.row-skipped .row-title {
  color: var(--muted);
}
.status {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--line);
  color: var(--muted);
  margin-top: 1px;
}
.status-works {
  background: var(--good);
  border-color: var(--good);
  color: var(--paper);
}
.status-problem {
  background: var(--bad);
  border-color: var(--bad);
  color: var(--paper);
}
.status-skipped {
  border-style: dashed;
}
.pill {
  display: inline-block;
  font: 700 11px / 1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 99px;
  vertical-align: 2px;
}
.pill.private {
  background: var(--warm-ink);
  color: var(--paper);
}
.empty {
  padding: 30px 0;
  color: var(--muted);
}

/* Tutorial */
.crumbs {
  margin-bottom: 8px;
}
.crumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
}
.tutorial .eyebrow {
  margin: 0;
}
.chips {
  list-style: none;
  padding: 0;
  margin: 4px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  font-size: 13px;
  background: var(--panel2);
  border-radius: 99px;
  padding: 4px 10px;
}
.current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.current .note {
  flex-basis: 100%;
  margin: 4px 0 0;
}
.status-box-problem {
  border-color: var(--bad);
}
.status-box-works {
  border-color: var(--good);
}
.tutorial section {
  margin-top: 22px;
}
.tutorial section p {
  margin: 6px 0 0;
  font-size: 17px;
}
.tutorial figure {
  margin: 22px 0 0;
  text-align: center;
}
.tutorial figure img {
  max-height: 520px;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.tutorial figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font: 700 15px var(--display);
}
.expect {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 16px;
  padding: 16px;
}
.pr {
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}
.actions {
  margin: 26px -16px 0;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.actions h2 {
  font-size: 16px;
  margin-bottom: 10px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.button.good {
  background: var(--good);
  border-color: var(--good);
  color: var(--paper);
}
.button.bad {
  background: var(--bad);
  border-color: var(--bad);
  color: var(--paper);
}
.button.quiet {
  background: transparent;
}
.problem-form[hidden] {
  display: none;
}
.problem-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.problem-form label {
  font-weight: 600;
}

/* Charts */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
.card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0;
}
.card h2 {
  margin-bottom: 10px;
}
.wide {
  grid-column: 1 / -1;
}
.overall {
  display: flex;
  gap: 20px;
  align-items: center;
}
.donut {
  width: 128px;
  flex: none;
}
.donut circle {
  fill: none;
  stroke-width: 14;
}
.donut .track {
  stroke: var(--todo);
}
.donut .fill {
  stroke: var(--accent);
  stroke-linecap: round;
}
.donut text {
  font: 700 24px var(--display);
  fill: var(--ink);
}
.legend {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.key {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -1px;
}
.bars {
  display: grid;
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 30%) 1fr;
  gap: 2px 12px;
  align-items: center;
  font-size: 14px;
}
.bar {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.bar-value {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
}
.bar-label {
  grid-row: span 2;
  font-weight: 600;
}
.seg-bg,
.seg-todo {
  fill: var(--todo);
  background: var(--todo);
}
.seg-works,
.seg-done {
  fill: var(--accent);
  background: var(--accent);
}
.seg-problem {
  fill: var(--bad);
  background: var(--bad);
}
.seg-skipped {
  fill: var(--skip);
  background: var(--skip);
}
.columns-wrap {
  overflow-x: auto;
}
.columns {
  min-width: 100%;
  height: 170px;
}
.col-value {
  font: 600 10px var(--font);
  fill: var(--ink);
}
.col-label {
  font: 9px var(--font);
  fill: var(--muted);
}

/* Settings */
.view > .card {
  margin-top: 16px;
}
.card p {
  margin: 0 0 12px;
}
.theme {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.theme label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.file {
  position: relative;
  overflow: hidden;
}
.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.sign-in {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.sign-in label {
  font-weight: 600;
}

/* Settings: Sign in with Apple & Sign in with Google (piper-shared SOCIAL_SIGNIN_CSS + real tokens) */
.piper-social-signin {
  --piper-surface: var(--panel);
  --piper-separator: var(--line);
  --piper-label: var(--ink);
  --piper-label-secondary: var(--muted);
  --piper-focus-color: var(--accent-ink);
  --piper-radius-md: 10px;
  --piper-radius-sm: 8px;
  --piper-critical-tint: color-mix(in srgb, var(--bad) 12%, var(--panel));
  --piper-critical-ink: var(--bad);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin-top: 12px;
  color: var(--piper-label);
}
.piper-social-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.piper-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--piper-radius-md);
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}
.piper-social-btn:focus-visible {
  outline: 2px solid var(--piper-focus-color);
  outline-offset: 2px;
}
.piper-social-btn--apple {
  background: #000;
  color: #fff;
  border: 1px solid transparent;
}
.piper-social-btn--google {
  background: var(--piper-surface);
  color: var(--piper-label);
  border: 1px solid var(--piper-separator);
}
.piper-social-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.piper-social-privacy,
.piper-social-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--piper-label-secondary);
}
.piper-social-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--piper-radius-sm);
  font-size: 13px;
  background: var(--piper-critical-tint);
  color: var(--piper-critical-ink);
}
.piper-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
}
.piper-social-divider::before,
.piper-social-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.social-provider-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.social-provider-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.social-provider-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .piper-social-btn--apple {
    background: #fff;
    color: #000;
  }
  :root:not([data-theme="light"]) .piper-social-btn--google {
    background: var(--piper-surface);
    color: var(--piper-label);
    border-color: var(--piper-separator);
  }
}
:root[data-theme="dark"] .piper-social-btn--apple {
  background: #fff;
  color: #000;
}
:root[data-theme="dark"] .piper-social-btn--google {
  background: var(--piper-surface);
  color: var(--piper-label);
  border-color: var(--piper-separator);
}

/* Settings: API keys */
.key-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}
.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.key-main {
  min-width: 0;
  flex: 1 1 260px;
}
.key-main p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.key-expired .key-main strong {
  text-decoration: line-through;
}
.chip {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.chip-warn {
  border-color: var(--bad);
  color: var(--bad);
}
.key-made {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 2px solid var(--good);
  border-radius: var(--radius);
}
.key-made h3,
.sign-in h3 {
  margin: 0;
  font-size: 16px;
}
.token {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}
.key-help {
  margin-top: 12px;
}
.key-help summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
.key-help pre {
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 30;
  font-size: 15px;
}

@media (min-width: 720px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-grid label:first-child {
    grid-column: auto;
  }
  .actions {
    margin: 26px 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
}
@media (max-width: 560px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .overall {
    flex-direction: column;
    align-items: flex-start;
  }
  .bar-row {
    grid-template-columns: 1fr;
  }
  .bar-label {
    grid-row: auto;
  }
  .bar-value {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Inbox: agents' questions. Sizes in rem; colours from the tokens. */
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.4rem;
  padding: 0 0.35rem;
  border-radius: 0.7rem;
  /* The ink shade, so a two-digit count passes contrast as a one-digit one does (ticket I5's 18 asks). */
  background: var(--warm-ink);
  color: var(--paper);
  font-size: 0.8rem;
}
.tabs a {
  grid-auto-flow: column;
  justify-content: center;
}
.tab-extra {
  margin-left: 0.25em;
}
.ask {
  margin: 0 0 1rem;
}
.ask-lock-card {
  margin: 0 0 1rem;
  border-left: 0.25rem solid var(--warm);
}
.ask-lock-card h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.ask-meta,
.ask-fine {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}
.ask-kind {
  font-weight: 700;
  color: var(--ink);
}
.ask-kind-approval {
  color: var(--warm-ink);
}
/* Who asked (decision 8), from the stamped origin. It sits outside the agent's words because the agent
   didn't write it, but the asking process reported all of it except the Mac: a hint, not proof. */
.ask-from {
  margin-top: -0.25rem;
}
.ask-open-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.ask-session {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  user-select: all;
}
/* A resume command: one line that scrolls, so `claude --resume` never breaks at its hyphens. */
.ask-session-command {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: normal;
  white-space: pre;
}
.ask-short {
  font-family: var(--mono);
}
/* Everything an agent wrote sits in this block, so it can't pass for Checkpoint's own text or an answer. */
.agent-words {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--panel2);
  border-left: 0.25rem solid var(--warm);
  border-radius: 0 0.75rem 0.75rem 0;
}
.agent-words figcaption {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.agent-words blockquote {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ask-effects {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}
.ask-effects div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem;
}
.ask-effects dt {
  font-weight: 700;
}
.ask-effects dd {
  margin: 0;
}
.ask-links {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.ask-answers {
  margin-top: 0.75rem;
}
.ask-answers .button {
  white-space: normal;
  text-align: left;
}
.ask-earlier-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.ask-checks {
  margin-top: 1.25rem;
}
.confirm {
  max-width: min(30rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.confirm::backdrop {
  background: rgb(0 0 0 / 40%);
}
.confirm h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  outline: none;
}
.confirm-note {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Send feedback ---------- */
.feedback {
  max-width: min(34rem, calc(100vw - 2rem));
}
.feedback form {
  display: grid;
  gap: 12px;
}
.feedback-body {
  display: grid;
  gap: 12px;
}
.feedback-kinds {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feedback-kinds legend {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  padding: 0;
  margin-bottom: 6px;
}
.feedback-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
}
.feedback-kind:has(input:checked) {
  border-color: var(--accent);
  background: var(--panel2);
}
.feedback-field {
  display: grid;
  gap: 6px;
}
.feedback-field label {
  font-weight: 600;
  font-size: 14px;
}
.feedback-attach {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.feedback-attach input {
  margin-top: 3px;
  flex: none;
}
.feedback-preview {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.feedback-error:not(:empty) {
  color: var(--bad);
  font-weight: 600;
  margin: 0;
  font-size: 14px;
}
.feedback-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.feedback-actions {
  justify-content: flex-end;
}
.feedback-actions .feedback-roadmap {
  margin-right: auto;
  align-self: center;
}
.feedback-roadmap {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
}
.tabs a[hidden],
.tab-count[hidden] {
  display: none;
}
.ask-default {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}
/* Ticket I5: the questions grouped by Mac, then session, one heading each. */
.ask-group {
  margin: 0 0 1.25rem;
}
.ask-group-mac {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}
.ask-group-session {
  font-size: 0.95rem;
  margin: 0.75rem 0 0.5rem;
  overflow-wrap: anywhere;
}
.ask-group-count {
  font-weight: 400;
  color: var(--muted);
  /* The count moves to the next line whole, never "· 8" / "questions" (PR #101 review U1.5). */
  white-space: nowrap;
}
.ask-title {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
/* From 6 questions each is one line that opens to its card. */
.ask-compact {
  margin: 0 0 0.5rem;
  padding: 0;
}
.ask-compact summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
}
.ask-compact summary::-webkit-details-marker {
  display: none;
}
.ask-compact summary::before {
  /* Visual only: empty alt text keeps the glyph out of each row's accessible name (review U1.3).
     A browser without alt text for content takes the first line. */
  content: "▸";
  content: "▸" / "";
  grid-row: span 2;
  color: var(--warm-ink);
  transition: transform 0.15s;
}
.ask-compact[open] summary::before {
  transform: rotate(90deg);
}
.ask-compact-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ask-compact summary .ask-meta {
  margin: 0;
}
.ask-session-way {
  margin: 0 0 0.5rem;
}
.ask-compact-body {
  padding: 0.25rem 0.9rem 0.9rem;
  border-top: 1px solid var(--line);
}
@media (prefers-reduced-motion: reduce) {
  .ask-compact summary::before {
    transition: none;
  }
}
/* Six tabs fit a phone: "Next 15 min" reads "Next" there (design trial A). */
@media (max-width: 30rem) {
  .tabs {
    gap: 2px;
    padding: 8px;
  }
  .tab-extra {
    display: none;
  }
  .tabs a {
    padding: 0 0.42rem;
    font-size: 0.8125rem;
  }
}

/* Daily updates (#/daily): features, fixes, decisions, verification and linked checks. */
.daily-intro .mode {
  margin-top: 0.35rem;
}
.daily-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 1rem 0;
}
.daily-controls .button {
  width: auto;
}
.daily-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 10.5rem;
}
.daily-field input,
.daily-field select {
  width: auto;
  min-width: 10.5rem;
}
.daily-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.daily-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  display: grid;
  gap: 0.1rem;
}
.daily-stat strong {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.1;
}
.daily-stat span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.daily-coverage {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.daily-project {
  margin-top: 1rem;
}
.daily-project-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.daily-project-head .muted {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}
.daily-entry {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.daily-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.daily-entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.daily-entry-head h3 {
  font-size: 1.0625rem;
  margin: 0;
  flex: 1 1 14rem;
}
.daily-pr {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--muted);
}
.daily-avail {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.daily-avail-live {
  background: var(--good);
  border: 1px solid var(--good);
  color: var(--paper);
}
.daily-avail-withdrawn {
  background: var(--bad);
  border: 1px solid var(--bad);
  color: var(--paper);
}
.daily-avail-unknown {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.daily-avail-note {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.daily-block {
  margin-top: 0.75rem;
}
.daily-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.daily-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.daily-tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--ink);
  margin-right: 0.25rem;
}
.daily-tag-fixed {
  border-color: var(--good);
}
.daily-tag-decision {
  border-color: var(--warm-ink);
}
.daily-models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.daily-model-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  font-size: 0.75rem;
  line-height: 1.3;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.daily-model-observed {
  border-color: var(--good);
}
.daily-model-declared {
  border-color: var(--accent, var(--line));
}
.daily-models-summary {
  margin-top: 0.65rem;
}
.daily-evidence {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0 0.75rem;
  background: var(--paper);
}
.daily-evidence summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.daily-evidence[open] .daily-list {
  padding-bottom: 0.75rem;
}
.daily-checks .row:last-child a {
  border-bottom: 0;
}
.daily-empty {
  margin-top: 1rem;
}
.daily-empty h2 {
  margin: 0 0 0.5rem;
}
.daily-empty p {
  margin: 0;
  color: var(--muted);
}
.device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0.75rem;
}
.device-chip {
  width: auto;
  padding: 0 0.85rem;
  border-radius: 999px;
}
.device-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.daily-personal,
.daily-summary-card {
  margin-top: 1rem;
}
.daily-personal #open-note-form,
.daily-summary-body .button {
  width: auto;
}
.daily-personal kbd {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.08rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--panel2);
}
.personal-note-form {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
}
.personal-note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.personal-note-text-label {
  font-size: 0.875rem;
  font-weight: 600;
}
.personal-note-form .action-row .button {
  width: auto;
}
#voice-note-btn[aria-pressed="true"] {
  border-color: var(--good);
  color: var(--good);
}
.personal-device-groups {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.personal-device-group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
}
.daily-summary-card summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
}
.daily-summary-body {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.daily-summary-pre {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Decided for you (decision 9): a council's picks, collapsed under the questions. Quieter than a
   question card: no orange, and each row has only Reverse. */
.ask-decided {
  margin: 0 0 1rem;
  padding: 0;
}
.ask-decided summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  min-height: 44px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ask-decided summary::-webkit-details-marker {
  display: none;
}
.ask-decided summary::before {
  content: "▸";
  transition: transform 0.15s;
}
.ask-decided[open] summary::before {
  transform: rotate(90deg);
}
.ask-decided summary h2 {
  font-size: 1.05rem;
  margin: 0;
}
.ask-decided > .ask-fine,
.ask-decided ul {
  margin: 0 1rem 1rem;
}
.ask-decided ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.ask-decided-row + .ask-decided-row {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.ask-decided-row h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
  .ask-decided summary::before {
    transition: none;
  }
}
