:root {
  color-scheme: dark;
  --page: #031626;
  --surface: #071f35;
  --surface-strong: #092a48;
  --surface-soft: #061d32;
  --surface-active: #082b45;
  --border: #174262;
  --border-strong: #25729c;
  --text: #f1f6ff;
  --muted: #b1c6de;
  --quiet: #8ba8c6;
  --accent: #40c8ff;
  --accent-strong: #4bcfff;
  --accent-deep: #074778;
  --accent-soft: #083d69;
  /* Success color is reserved for small evidence-backed status indicators. */
  --success: #7af4ac;
  --success-halo: #32e37d22;
  --amber: #efbd5e;
  --blue: #40c8ff;
  --danger: #ffb2a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --radius-large: 24px;
  --radius: 17px;
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(12px, env(safe-area-inset-bottom));
  --nav-safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-item-height: 59px;
  --nav-padding-top: 7px;
  --nav-padding-bottom: 8px;
  --nav-border: 1px;
  --nav-content-gap: 28px;
  --nav-height-fallback: calc(var(--nav-item-height) + var(--nav-padding-top) + var(--nav-padding-bottom) + var(--nav-border) + var(--nav-safe-bottom));
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(ellipse at 90% 5%, #07325788, transparent 40%),
    linear-gradient(155deg, #031b2d, #021222 80%);
  color: var(--text);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #a8d8ff;
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: 28%;
  left: -8rem;
  background: var(--accent);
}

.ambient-two {
  right: -8rem;
  bottom: 4%;
  background: #8e79da;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
  padding: var(--safe-top) max(22px, env(safe-area-inset-right)) 14px
    max(22px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.28);
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.privacy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px #40c8ff22;
}

.shell {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: clamp(46px, 9vw, 78px) 0 32px;
}

.hero {
  text-align: center;
}

.eyebrow,
.card-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 17ch;
  margin: 0 auto;
  font-size: clamp(2.25rem, 9vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 51ch;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.08rem);
  text-wrap: pretty;
}

.status-card,
.action-card,
.paired-card,
.support-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 34px;
  padding: 19px;
  border-color: var(--border-strong);
  border-radius: var(--radius);
  background:
    var(--surface-soft);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.35rem;
  font-weight: 900;
}

.status-card[data-tone="warning"] {
  border-color: rgba(239, 189, 94, 0.35);
}

.status-card[data-tone="warning"] .status-icon {
  border-color: rgba(239, 189, 94, 0.36);
  background: rgba(239, 189, 94, 0.11);
  color: var(--amber);
}

.status-card[data-tone="danger"] {
  border-color: rgba(255, 172, 163, 0.35);
}

.status-card[data-tone="danger"] .status-icon {
  border-color: rgba(255, 172, 163, 0.34);
  background: rgba(255, 172, 163, 0.1);
  color: var(--danger);
}

.status-copy h2,
.section-heading h2,
.paired-card h2,
.support-card h2 {
  margin: 0;
  font-size: clamp(1.18rem, 4vw, 1.42rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.status-copy p:last-child,
.section-copy {
  margin: 4px 0 0;
  color: var(--muted);
}

.action-card {
  margin-top: 18px;
  padding: clamp(22px, 5vw, 30px);
  border-radius: var(--radius-large);
  background:
    var(--surface-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.step-number {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.section-copy {
  margin-top: 18px;
}

.setup-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.setup-progress li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
}

.setup-progress li[aria-current="step"] {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.setup-progress li.is-complete {
  color: var(--accent);
}

.setup-progress span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.73rem;
  font-weight: 900;
}

.install-spotlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(168, 216, 255, 0.25);
  border-radius: 15px;
  background: var(--surface-soft);
}

.install-spotlight svg {
  width: 35px;
  height: 35px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(168, 216, 255, 0.12);
  color: #a8d8ff;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.install-spotlight p {
  margin: 0;
  color: var(--muted);
}

.install-spotlight strong {
  color: var(--text);
}

.apple-install-guide {
  margin-top: 22px;
}

.guide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-heading > span {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.guide-heading h3 {
  margin: 0;
  font-size: 0.94rem;
}

.visual-setup-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visual-setup-steps > li {
  display: flex;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
  flex-direction: column;
}

.visual-step-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 9px;
  line-height: 1.15;
}

.visual-step-heading > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.visual-step-heading strong {
  font-size: 0.82rem;
}

.visual-setup-steps > li > p {
  margin: 9px 2px 1px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.36;
}

.ios-step-image {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border: 1px solid rgba(168, 216, 255, 0.24);
  border-radius: 13px;
  background: var(--surface-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.16);
}

.ios-step-image::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  content: "";
  pointer-events: none;
}

.ios-step-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ios-step-image-share img,
.ios-step-image-add-home img {
  object-position: center bottom;
}

.ios-step-image-add img {
  object-position: center top;
}

.ios-step-image-enable img {
  object-position: center 60%;
}

.setup-steps {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
}

.setup-steps li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.setup-steps p {
  margin: 0;
  color: var(--muted);
}

.setup-steps strong {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 13px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.button-primary {
  border: 1px solid var(--border-strong);
  background: #0875c4;
  box-shadow: 0 12px 32px #40c8ff22;
}

.button-primary:not(:disabled):active,
.button-secondary:not(:disabled):active {
  transform: translateY(1px);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  background: #0a3154;
}

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 20px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--muted);
  font-size: 0.88rem;
}

.notice > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.notice p {
  margin: 2px 0 0;
}

.ready-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.ready-row p {
  margin: 0;
  color: var(--text);
}

.ready-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

#pair-code-form {
  margin-top: 22px;
}

label {
  display: block;
  font-weight: 800;
}

.field-help {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input::placeholder {
  color: var(--quiet);
}

input[aria-invalid="true"] {
  border-color: rgba(255, 172, 163, 0.6);
}

.field-error {
  min-height: 1.4em;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
}

.permission-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.permission-copy h3 {
  margin: 0;
  font-size: 1.13rem;
}

.permission-copy p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.paired-card {
  margin-top: 18px;
  padding: clamp(20px, 5vw, 30px);
  border-color: var(--border-strong);
  border-radius: var(--radius-large);
  background:
    var(--surface-strong);
  text-align: left;
}

.notification-health {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  background: var(--surface-soft);
}

.notification-health[data-tone="healthy"] {
  border-color: var(--border-strong);
}

.notification-health[data-tone="warning"] {
  border-color: rgba(239, 189, 94, 0.46);
  background: rgba(62, 45, 18, 0.3);
}

.notification-health[data-tone="danger"] {
  border-color: rgba(255, 172, 163, 0.46);
  background: rgba(72, 28, 24, 0.28);
}

.notification-health-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-health .card-label {
  margin-bottom: 4px;
}

.notification-health h2 {
  font-size: 1.12rem;
}

.notification-health-copy > p:last-of-type {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.health-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 820;
  white-space: nowrap;
}

.notification-health[data-tone="warning"] .health-badge {
  border-color: rgba(239, 189, 94, 0.35);
  color: var(--amber);
}

.notification-health[data-tone="danger"] .health-badge {
  border-color: rgba(255, 172, 163, 0.35);
  color: var(--danger);
}

.notification-health-times {
  display: flex;
  gap: 12px 24px;
  margin: 13px 0 0;
  flex-wrap: wrap;
}

.notification-health-times div {
  min-width: 8rem;
}

.notification-health-times dt {
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 720;
}

.notification-health-times dd {
  margin: 1px 0 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 760;
}

.notification-health-actions {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 10.5rem;
}

.notification-health-actions .button {
  min-height: 44px;
  padding: 8px 13px;
}

.notification-test-result {
  grid-column: 1 / -1;
  min-height: 1.3em;
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 690;
}

.paired-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-refresh-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
}

.summary-refresh-button span {
  margin-right: 7px;
  color: var(--accent);
  font-size: 1.1em;
}

.summary-panel {
  min-height: 226px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    var(--surface-soft);
  transition: border-color 160ms ease;
}

.summary-panel[data-tone="good"] {
  border-color: var(--border-strong);
}

.summary-panel[data-tone="soft"] {
  border-color: var(--border-strong);
}

.summary-panel[data-tone="warn"] {
  border-color: rgba(239, 189, 94, 0.35);
}

.summary-state {
  min-height: 1.35em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.summary-panel[data-state="error"] .summary-state,
.summary-panel[data-state="stale"] .summary-state {
  color: #f1cf8d;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.summary-metric {
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  border-left: 1px solid var(--border);
}

.summary-metric:first-child {
  border-left: 0;
}

.summary-metric dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
  line-height: 1.25;
}

.summary-metric dt span {
  display: inline-block;
  margin-left: 3px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-metric dd {
  margin: 7px 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 5vw, 1.78rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.summary-metric-featured dd {
  color: var(--accent-strong);
}

.summary-comparison {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 13px 0 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 760;
}

.summary-comparison[data-tone="warn"] {
  background: rgba(239, 189, 94, 0.1);
  color: var(--amber);
}

.summary-comparison[data-tone="muted"] {
  color: var(--muted);
}

.summary-freshness {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.35;
  flex-wrap: wrap;
}

.summary-freshness time:not(:empty)::before {
  content: "·";
  margin-right: 6px;
}

.freshness-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #40c8ff22;
}

.summary-panel[data-state="stale"] .freshness-dot,
.summary-panel[data-state="error"] .freshness-dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(239, 189, 94, 0.09);
}

.community-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-refresh-help {
  margin: 4px 2px 0;
  color: var(--quiet);
  font-size: 0.74rem;
}

.full-charts-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 780;
  text-decoration: none;
}

.full-charts-link span {
  margin-left: 6px;
}

.device-privacy {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.device-privacy summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  color: var(--muted);
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.device-privacy summary::-webkit-details-marker {
  display: none;
}

.device-privacy summary span:last-child {
  color: var(--accent);
  transition: transform 150ms ease;
}

.device-privacy[open] summary span:last-child {
  transform: rotate(180deg);
}

.device-privacy-body {
  padding: 2px 2px 4px;
}

.device-privacy-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.device-privacy-body ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.device-privacy-body li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.device-privacy-body li span {
  color: var(--accent);
  font-weight: 900;
}

.device-privacy-body .button {
  min-height: 44px;
  margin-top: 18px;
}

.support-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.support-card h2 {
  font-size: 1rem;
}

.support-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.support-card li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
}

.support-card li span {
  color: var(--accent);
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 22px var(--safe-bottom);
  color: var(--quiet);
  font-size: 0.78rem;
}

body[data-view="paired"] .hero,
body[data-view="paired"] .support-card {
  display: none;
}

body[data-view="paired"] .shell {
  padding-top: 22px;
}

body[data-view="paired"] .status-card {
  margin-top: 0;
  padding: 13px 15px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

body[data-view="paired"] .status-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1rem;
}

body[data-view="paired"] .status-copy h2 {
  font-size: 1rem;
}

body[data-view="paired"] .status-copy p:last-child {
  font-size: 0.82rem;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 172, 163, 0.48);
  border-radius: 14px;
  background: #3c1916;
  color: white;
  text-align: center;
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
  }

  .privacy-pill {
    max-width: 9.5rem;
    white-space: normal;
  }

  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 34px;
  }

  body[data-view="install"] .shell {
    padding-top: 18px;
  }

  body[data-view="install"] h1 {
    font-size: clamp(1.85rem, 9vw, 2.25rem);
  }

  body[data-view="install"] .hero-copy {
    display: none;
  }

  body[data-view="install"] .status-card {
    display: none;
  }

  body[data-view="install"] .action-card {
    margin-top: 16px;
  }

  .action-card {
    padding: 20px 17px;
  }

  .notification-health {
    grid-template-columns: minmax(0, 1fr);
  }

  .notification-health-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .notification-health-actions .button {
    width: 100%;
  }

  .visual-setup-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-setup-steps > li {
    padding: 13px;
  }

  .visual-setup-steps > li > p,
  .visual-step-heading strong {
    font-size: 0.9rem;
  }

  .ios-step-image {
    aspect-ratio: 6 / 5;
  }

  .guide-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-row,
  .permission-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .button {
    width: 100%;
  }

  .summary-refresh-button {
    width: auto;
  }

  .summary-panel {
    min-height: 304px;
    padding: 14px;
  }

  .summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-metric {
    min-height: 88px;
    border-top: 1px solid var(--border);
  }

  .summary-metric:nth-child(-n + 2) {
    border-top: 0;
  }

  .summary-metric:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 380px) {
  .notification-health-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .setup-progress {
    grid-template-columns: minmax(0, 1fr);
  }

  .setup-progress li {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 355px) {
  .privacy-pill {
    display: none;
  }

  .status-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="paired"] .status-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .paired-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-refresh-button {
    width: 100%;
  }

  .summary-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-metric,
  .summary-metric:nth-child(-n + 2) {
    min-height: 78px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .summary-metric:first-child {
    border-top: 0;
  }
}

@media (min-width: 800px) {
  .site-header {
    padding-right: max(34px, env(safe-area-inset-right));
    padding-left: max(34px, env(safe-area-inset-left));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .status-card,
  .action-card,
  .paired-card {
    animation: enter 320ms ease-out both;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
  }
}

/* Paired mobile companion */
.compact-health {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.compact-health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 5px #40c8ff22;
}

.compact-health > span:last-child {
  display: grid;
  min-width: 0;
}

.compact-health strong {
  color: var(--accent-strong);
  font-size: 0.82rem;
  line-height: 1.2;
}

.compact-health small {
  max-width: 18rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-health[data-tone="warning"] .compact-health-dot {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(239, 189, 94, 0.09);
}

.compact-health[data-tone="warning"] strong {
  color: var(--amber);
}

.compact-health[data-tone="danger"] .compact-health-dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 172, 163, 0.09);
}

.compact-health[data-tone="danger"] strong {
  color: var(--danger);
}

body[data-view="paired"] .privacy-pill,
body[data-view="paired"] .status-card {
  display: none;
}

body[data-view="paired"] .site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface-soft);
}

body[data-view="paired"] .shell {
  width: min(100% - 24px, 720px);
  padding-top: 18px;
}

.paired-card.companion {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-view {
  min-width: 0;
}

.app-view h1,
.detail-heading {
  max-width: none;
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: left;
}

.app-view h1:focus,
.detail-heading:focus {
  outline: none;
}

.companion-heading-row,
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.companion-section-title {
  color: var(--accent);
  font-size: 0.82rem !important;
  font-weight: 850;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 790;
  text-decoration: none;
  white-space: nowrap;
}

.text-link span,
.back-link span {
  margin-left: 6px;
  font-size: 1.4em;
  line-height: 1;
}

.back-link span {
  margin-right: 6px;
  margin-left: 0;
}

.offline-banner {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(239, 189, 94, 0.34);
  border-radius: 13px;
  background: rgba(65, 46, 17, 0.45);
  color: #f4d69c;
  font-size: 0.82rem;
}

.alert-list {
  display: grid;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface-soft);
}

.alert-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 110px;
  padding: 13px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.alert-row:first-child {
  border-top: 0;
}

a.alert-row {
  text-decoration: none;
}

.alert-row:active {
  background: var(--surface-active);
}

.alert-row.is-unread {
  background: var(--surface-soft);
}

.alert-thumbnail {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 15px;
  background: #f4f8fc;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 900;
}

.alert-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.alert-thumbnail.is-placeholder {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--accent);
}

.alert-row-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.alert-row-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.alert-kind {
  display: inline-flex;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 820;
}

.alert-time {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.alert-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.alert-etv {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 820;
}

.alert-view-state {
  color: var(--quiet);
  font-size: 0.72rem;
}

.alert-row.is-unread .alert-view-state {
  color: var(--accent);
}

.alert-details-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.alert-details-chevron {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.alert-row:active .alert-details-action {
  background: var(--surface-active);
}

.empty-alerts {
  margin-top: 15px;
  padding: 28px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
}

.empty-alerts > span {
  display: inline-grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
}

.empty-alerts h2 {
  margin: 12px 0 0;
  font-size: 1rem;
}

.empty-alerts p,
.history-storage-note,
.view-intro,
.availability-note,
.detail-truncated,
.clear-history-result {
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-alerts p {
  margin: 5px 0 0;
}

.history-storage-note {
  margin: 9px 3px 0;
}

.recent-history-link {
  margin-top: 12px;
}

.community-card,
.destination-card,
.troubleshooting-section {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
}

.community-card {
  padding: 17px;
}

.community-card .summary-panel {
  min-height: 0;
  margin-top: 13px;
  padding: 13px;
}

.community-card .summary-metric {
  min-height: 73px;
  padding: 10px;
}

.community-card .summary-metric dd {
  font-size: clamp(1.1rem, 5vw, 1.45rem);
}

.community-card .summary-state {
  margin-bottom: 10px;
}

.external-action-slot {
  margin-top: 4px;
}

.full-charts-link {
  width: fit-content;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.full-charts-link:disabled {
  color: var(--quiet);
  cursor: default;
}

.destination-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  color: var(--text);
  text-decoration: none;
}

.destination-card > span:nth-child(2) {
  display: grid;
}

.destination-card small {
  margin-top: 2px;
  color: var(--muted);
}

.destination-card > span:last-child {
  color: var(--accent);
  font-size: 1.8rem;
}

.destination-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
}

.view-toolbar {
  min-height: 48px;
  margin-bottom: 14px;
}

.clear-history-button {
  width: auto;
  min-height: 44px;
  padding: 8px 12px;
}

.alert-list-all {
  margin-top: 20px;
}

.detail-time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.detail-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.detail-status div {
  min-width: 0;
  padding: 11px 12px;
}

.detail-status div + div {
  border-left: 1px solid var(--border);
}

.detail-status dt {
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
}

.detail-status dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 720;
}

.availability-note {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.detail-item-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.detail-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.detail-item .alert-thumbnail {
  width: 94px;
  height: 94px;
}

.detail-item-copy {
  display: grid;
  align-content: start;
  min-width: 0;
}

.detail-item-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.detail-item-etv {
  margin: 6px 0 0;
  color: var(--accent-strong);
  font-weight: 820;
}

.detail-item-note,
.detail-item-asin {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.detail-item-action {
  width: fit-content;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
}

.detail-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.detail-generic {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.detail-generic h2,
.troubleshooting-section h2 {
  margin: 0;
  font-size: 1rem;
}

.detail-generic p,
.troubleshooting-section p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-generic .button,
.troubleshooting-section .button {
  width: fit-content;
  min-height: 44px;
  margin-top: 14px;
  text-decoration: none;
}

.troubleshooting-section {
  padding: 17px;
}

#troubleshooting-view .notification-health {
  margin-top: 19px;
  margin-bottom: 0;
}

#troubleshooting-view .device-privacy {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

#troubleshooting-view .device-privacy summary,
#troubleshooting-view .device-privacy-body {
  padding-right: 16px;
  padding-left: 16px;
}

#troubleshooting-view .device-privacy-body {
  padding-bottom: 16px;
}

.technical-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.technical-actions .button,
.device-privacy-body > .button {
  margin-top: 0;
}

.technical-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.technical-details {
  display: grid;
  gap: 0;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.technical-details div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 10px;
  padding: 9px 11px;
  border-top: 1px solid var(--border);
}

.technical-details div:first-child {
  border-top: 0;
}

.technical-details dt {
  color: var(--muted);
}

.technical-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

@media (max-width: 560px) {
  body[data-view="paired"] .site-header {
    align-items: center;
    min-height: 76px;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  body[data-view="paired"] .brand {
    gap: 9px;
  }

  body[data-view="paired"] .brand img {
    width: 40px;
    height: 40px;
  }

  body[data-view="paired"] .brand strong {
    font-size: 0.92rem;
  }

  body[data-view="paired"] .brand small {
    font-size: 0.66rem;
  }

  .compact-health {
    max-width: 11.5rem;
  }

  .compact-health small {
    max-width: 9.6rem;
  }

  .alert-row {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 100px;
    padding: 11px;
  }

  .alert-thumbnail {
    width: 74px;
    height: 74px;
    border-radius: 13px;
  }

  .notification-health-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .compact-health {
    max-width: 9.2rem;
  }

  .compact-health small {
    display: none;
  }

  .alert-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 9px;
  }

  .alert-thumbnail {
    width: 62px;
    height: 62px;
  }

  .alert-title {
    font-size: 0.9rem;
  }

  .alert-row-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .alert-details-action {
    gap: 3px;
    min-height: 34px;
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .companion-heading-row {
    align-items: flex-start;
  }

  .community-card .paired-heading-row {
    flex-direction: row;
  }

  .summary-refresh-button {
    width: 44px;
    padding: 8px;
  }

  .summary-refresh-button .button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .detail-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

  .detail-item .alert-thumbnail {
    width: 72px;
    height: 72px;
  }

  .detail-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-status div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (max-width: 320px) {
  body[data-view="paired"] .shell {
    width: calc(100% - 16px);
  }

  body[data-view="paired"] .brand small,
  .compact-health small {
    display: none;
  }

  .compact-health {
    min-width: 0;
    padding: 7px 9px;
  }

  .alert-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .alert-thumbnail {
    width: 54px;
    height: 54px;
  }

  .alert-etv,
  .alert-view-state {
    font-size: 0.68rem;
  }

  .view-toolbar {
    align-items: flex-start;
  }

  .clear-history-button {
    max-width: 8rem;
  }

  .technical-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 600px) {
  .alert-row.is-phase-alert {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 9px 11px;
  }

  .is-phase-alert .alert-thumbnail {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
  }

  .is-phase-alert .alert-details-action {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Four-view companion. Delivery, storage and pairing behavior remain in their existing modules. */
button,a,input {touch-action:manipulation;}
button:focus-visible,a:focus-visible,summary:focus-visible {outline:3px solid #9cdbff;outline-offset:3px;}
button:active,.settings-row:active,.bottom-nav a:active {transform:scale(.98);}
svg {width:1.5rem;height:1.5rem;flex-shrink:0;}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
body[data-view="paired"] .site-header {width:100%;max-width:580px;margin:0 auto;padding:24px 18px 18px;padding-top:max(24px,env(safe-area-inset-top));display:flex;align-items:center;}
.brand {gap:14px;min-width:0;}
.brand img {width:54px;height:54px;border-radius:14px;object-fit:contain;}
.brand strong {font-size:1.62rem;line-height:1.18;letter-spacing:-.035em;color:#f5f7ff;}
.brand strong span {color:#35bdff;}
.brand small {margin-top:5px;font-size:.85rem;color:#48cfff;letter-spacing:0;}
body[data-view="paired"] .shell {width:100%;max-width:580px;padding:0 16px calc(var(--nav-height, var(--nav-height-fallback)) + var(--nav-content-gap));margin:0 auto;display:block;}
body[data-view="paired"] .hero,body[data-view="paired"]>.shell>.status-card,body[data-view="paired"] .support-card,body[data-view="paired"]>footer,body[data-view="paired"] .ambient {display:none;}
body[data-view="paired"] .paired-card {padding:0;border:0;background:none;box-shadow:none;display:block;}
.app-view {min-width:0;}
.app-view>h1 {margin:3px 0 3px;font-size:1.7rem;line-height:1.2;font-weight:750;letter-spacing:-.025em;color:var(--text);}
.app-view .view-intro {font-size:.92rem;line-height:1.5;margin:5px 0 20px;color:var(--muted);}
.home-health {position:relative;background:radial-gradient(ellipse at 90% 110%,#0877c088,transparent 70%),linear-gradient(120deg,#063051,#062542);border:1px solid #178ac3;box-shadow:inset 0 1px 0 #55ceff22,0 5px 20px #00132280;border-radius:17px;padding:14px;margin:0 0 19px;}
body[data-view="paired"] .home-health .compact-health {display:flex;width:100%;border:0;box-shadow:none;background:none;padding:0;min-height:44px;align-items:flex-start;color:var(--text);text-align:left;gap:12px;}
.compact-health>span:last-child {min-width:0;}
.home-health .compact-health strong {font-size:1rem;line-height:1.45;color:var(--text);white-space:normal;}
.home-health .compact-health small {font-size:.79rem;line-height:1.5;white-space:normal;color:#c3d9ef;}
.home-health .compact-health-dot {width:12px;height:12px;margin:5px 0 0;border-radius:50%;background:#a6b9ca;box-shadow:0 0 0 5px #71849c25;}
.home-health [data-tone="healthy"] .compact-health-dot {background:var(--success);box-shadow:0 0 0 5px var(--success-halo);}
.home-health [data-tone="warning"] .compact-health-dot {background:#ffc96c;box-shadow:0 0 0 5px #ffc96c20;}
.home-health [data-tone="danger"] .compact-health-dot {background:#ffa38b;box-shadow:0 0 0 5px #ffa38b20;}
#home-preference-state {margin:7px 0 0 24px;font-size:.78rem;line-height:1.5;color:#bad5ee;}
.section-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:19px 2px 10px;}
.section-heading h2 {font-size:1rem;margin:0;color:#4bcfff;line-height:1.4;}
.section-heading a {font-size:.78rem;color:#49d4ff;text-decoration:none;flex-shrink:0;padding:8px 0;}
.activity-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.stat-card {min-width:0;border:1px solid #164b73;border-radius:15px;background:linear-gradient(135deg,#072946,#061d33);padding:13px 8px 11px;display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:var(--text);text-align:center;}
.stat-card>svg {color:#23b8ff;background:#0960a43b;box-sizing:content-box;padding:9px;border-radius:50%;width:23px;height:23px;margin-bottom:3px;}
.stat-card>strong {font-size:1.35rem;font-weight:750;line-height:1.35;overflow-wrap:anywhere;}
.stat-card>span {font-size:.78rem;line-height:1.4;}
.stat-card>small {font-size:.66rem;color:#aec7e0;line-height:1.4;}
.stat-drop {background:linear-gradient(135deg,#1c264d,#0b213a);border-color:#364168;}
.stat-drop>svg {color:#ff9863;background:#70363144;}
.stat-last {background:linear-gradient(135deg,#21294f,#102141);border-color:#354778;}
.stat-last>svg {color:#c79aff;background:#7846aa40;}
.stat-last>strong {font-size:1rem;}
.micro-note {font-size:.72rem;color:#a4bdd4;line-height:1.5;margin:9px 2px 0;}
#local-count-note {margin-bottom:14px;}
.alert-list {display:flex;flex-direction:column;gap:9px;}
.alert-row {display:flex;width:100%;position:relative;align-items:center;gap:12px;padding:10px;border-radius:15px;border:1px solid #164e73;background:linear-gradient(135deg,#07243d,#041d31);color:var(--text);box-shadow:none;text-align:left;min-width:0;}
.alert-row.is-unread {border-color:#236287;background:linear-gradient(135deg,#072944,#051d32);}
.alert-thumbnail {width:68px;height:72px;flex:0 0 68px;border:0;border-radius:10px;overflow:hidden;background:#f4f8fc;}
.alert-thumbnail img {width:100%;height:100%;object-fit:contain;}
.alert-thumbnail.is-placeholder {background:#063357;color:#51caff;display:grid;place-items:center;font-size:1.1rem;}
.alert-row-copy {display:flex;flex:1;flex-direction:column;min-width:0;gap:3px;}
.alert-row-meta {display:flex;align-items:flex-start;justify-content:space-between;gap:6px;flex-wrap:wrap;}
.alert-kind {font-size:.67rem;line-height:1.4;padding:2px 7px;color:#c7e9ff;border-radius:7px;background:#075197;letter-spacing:0;text-transform:none;}
.alert-time {font-size:.7rem;line-height:1.4;white-space:normal;color:#adcbe7;}
.alert-title {font-size:.85rem;line-height:1.35;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:#f3f7ff;}
.alert-etv {font-size:.72rem;line-height:1.4;color:#c5d8eb;}
.alert-view-state {font-size:.67rem;line-height:1.4;color:#9fbdda;}
.alert-details-action {font-size:0;display:flex;align-items:center;width:13px;flex:0 0 13px;}
.alert-details-chevron {font-size:1.55rem;line-height:1;color:#37cfff;}
.featured-alert,.featured-alert.is-unread {background:radial-gradient(ellipse at 95% 80%,#853c242f,transparent 70%),linear-gradient(120deg,#391e28,#241c2d);border:1px solid #ed7643;box-shadow:0 0 20px #f96a1620;padding:14px 11px;}
.featured-alert .alert-title {color:#ff946e;-webkit-line-clamp:3;font-size:.97rem;}
.featured-alert .alert-kind {background:#763525;color:#ffe2c5;}
.featured-alert .alert-thumbnail {width:37px;height:46px;flex-basis:37px;background:#6f30294a;color:#ffab69;}
.featured-alert .alert-details-chevron {color:#ffbd67;}
.filter-chips {display:flex;gap:9px;margin:0 0 22px;flex-wrap:wrap;}
.filter-chips a {min-height:44px;min-width:52px;padding:10px 16px;display:grid;place-items:center;border-radius:24px;border:1px solid #21567b;color:#c5dcf4;text-decoration:none;font-size:.85rem;background:#041b2e;}
.filter-chips a[aria-current] {background:linear-gradient(#26c3ff,#069ded);border-color:#31bfff;color:#001625;font-weight:700;box-shadow:0 3px 12px #069ded20;}
.timeline-day {font-size:.97rem;color:#41cfff;margin:2px 0 8px;border-bottom:1px solid #134464;padding-bottom:8px;}
.timeline-group {display:flex;flex-direction:column;gap:0;}
.timeline-row,.timeline-row.is-unread {border:0;background:transparent;border-radius:0;padding:13px 0;gap:12px;align-items:flex-start;box-shadow:none;}
.timeline-row:before {content:"";position:absolute;left:23px;top:0;bottom:0;width:2px;background:#12466c;z-index:-1;}
.timeline-row .alert-thumbnail {width:46px;height:49px;flex-basis:46px;border-radius:12px;}
.timeline-row .alert-kind {padding:0;background:none;color:#38cdff;font-weight:650;font-size:.79rem;}
.timeline-row .alert-title {-webkit-line-clamp:3;font-weight:550;}
.timeline-row.kind-drops .alert-kind {color:#ff9a78;}
.timeline-row.kind-beta .alert-kind {color:#ceabff;}
.timeline-row.kind-beta .alert-thumbnail {color:#cdacff;background:#282548;}
.source-status {font-size:.76rem;line-height:1.55;color:#b7cee4;padding:10px 12px;background:#082139;border:1px solid #244c6b;border-radius:12px;margin:0 0 12px;}
.phase-grid {display:flex;flex-direction:column;gap:10px;}
.phase-card {display:flex;align-items:center;gap:13px;padding:16px 13px;border:1px solid #21587f;border-radius:16px;background:linear-gradient(110deg,#072f51,#092237);}
.phase-symbol {display:grid;place-items:center;align-self:flex-start;width:43px;height:45px;flex:0 0 43px;border-radius:14px;background:#0b3556;color:#a4c9e9;font-size:1.55rem;font-weight:700;}
.phase-copy {min-width:0;}
.phase-card h2 {font-size:.93rem;margin:0 0 3px;color:#e5f2ff;}
.phase-card p,.phase-card time {font-size:.8rem;line-height:1.6;margin:0;color:#b7cfe4;overflow-wrap:anywhere;}
.phase-card.confirmed {border-color:#1983ba;background:linear-gradient(120deg,#073755,#082742);}
.phase-card.confirmed .phase-symbol {background:var(--surface-soft);color:var(--success);}
.phase-card.estimated {border-color:#5e4d91;background:linear-gradient(120deg,#182951,#102443);}
.phase-card.estimated .phase-symbol {background:#473274;color:#d6b6ff;}
.phase-card.unknown {background:#071e31;border-color:#25445c;}
.phase-card.unknown h2 {color:#b9cee2;}
.drop-summary-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0;}
.drop-summary-grid .stat-card {align-items:flex-start;text-align:left;padding:15px;}
.drop-summary-grid .stat-card>strong {font-size:1rem;}
.drop-summary-grid .stat-card>span {font-size:.8rem;}
.beta-explanation {display:flex;align-items:flex-start;gap:13px;border:1px solid #60519a;background:linear-gradient(115deg,#252448,#171f3b);padding:16px;border-radius:16px;margin:13px 0;}
.beta-explanation>span {color:#d1b0ff;}
.beta-explanation h2 {font-size:.87rem;margin:0 0 5px;color:#d7b9ff;}
.beta-explanation p {font-size:.78rem;line-height:1.6;color:#c9c5e6;margin:0;}
#drop-timeline {display:flex;flex-direction:column;gap:10px;}
#drop-timeline .alert-thumbnail {width:35px;flex-basis:35px;height:40px;}
.selected-drop {border:1px solid #c66a43;background:#31212c;border-radius:15px;padding:16px;margin:15px 0;}
.selected-drop h2 {font-size:1rem;color:#ffa788;}
.selected-drop p {font-size:.87rem;}
.notification-health {border:1px solid #1e567b;background:linear-gradient(130deg,#082941,#061d32);padding:16px;border-radius:16px;margin:0 0 14px;box-shadow:none;}
.notification-health[data-tone="healthy"] {background:linear-gradient(130deg,#082b42,#061e32);border-color:#256686;}
.notification-health-title-row {display:flex;justify-content:space-between;align-items:center;gap:8px;}
.notification-health h2 {font-size:1.05rem;line-height:1.4;color:var(--text);margin:6px 0;}
.notification-health p,.notification-health-times {font-size:.75rem;line-height:1.5;}
.notification-health .card-label {font-size:.65rem;letter-spacing:.09em;color:#9cbad2;}
.health-badge {background:#1b353f;color:#d4e1ef;}
[data-tone="healthy"] .health-badge {color:var(--success);background:var(--surface-soft);}
.notification-health-times {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0;}
.notification-health-times div {min-width:0;}
.notification-health-times dt {color:#a4c1da;font-size:.7rem;}
.notification-health-times dd {margin:3px 0;color:#dbeeff;overflow-wrap:anywhere;}
.notification-health-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.button {min-height:44px;border-radius:11px;padding:10px 15px;white-space:normal;overflow-wrap:anywhere;line-height:1.4;}
.button-primary {background:#0875c4;color:white;border-color:#188dcc;box-shadow:none;}
.button-secondary {background:#0a3154;border-color:#205a86;color:#d6ebff;box-shadow:none;}
.settings-list {display:flex;flex-direction:column;gap:9px;}
.settings-row {display:flex;align-items:center;gap:13px;background:linear-gradient(105deg,#072740,#061c30);border:1px solid #1b5276;border-radius:15px;min-height:76px;padding:12px;color:#edf5ff;text-decoration:none;transition:transform 130ms cubic-bezier(.23,1,.32,1);}
.tile-icon {display:grid;place-items:center;width:43px;height:45px;flex:0 0 43px;background:#083d69;border-radius:13px;color:#8ecbff;}
.settings-row>span:nth-child(2) {min-width:0;flex:1;}
.settings-row strong {display:block;font-size:.88rem;line-height:1.4;}
.settings-row small {display:block;color:#b3cbe1;font-size:.73rem;margin-top:4px;line-height:1.5;}
.chevron {color:#80d0ff;font-size:1.5rem;}
.privacy-card {display:flex;gap:15px;padding:18px;border:1px solid #1b90c8;border-radius:16px;background:linear-gradient(110deg,#083552,#082743);margin-top:20px;}
.privacy-card>svg {width:35px;height:40px;color:#77ccff;}
.privacy-card h2 {font-size:.93rem;margin:0 0 6px;}
.privacy-card p {font-size:.8rem;color:#c0d8ed;line-height:1.6;margin:0 0 5px;}
.privacy-card a {font-size:.8rem;color:#64dbff;}
.info-card,.preference-list,.device-privacy,.troubleshooting-section {padding:16px;background:#082238;border:1px solid #28516c;border-radius:15px;line-height:1.6;color:#c3d8eb;}
.preference-list>div {display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #28465d;font-size:.9rem;}
.preference-list>div:last-child {border:0;}
.preference-list dd {margin:0;text-align:right;color:#e4f3ff;}
.device-privacy summary {min-height:44px;line-height:1.5;white-space:normal;}
.technical-details div {min-width:0;}
.technical-details dd {overflow-wrap:anywhere;}
.empty-alerts {border:1px dashed #315977;border-radius:15px;background:#061e31;padding:23px 18px;color:#b6cbe0;text-align:center;}
.empty-alerts h2 {font-size:1rem;margin:0 0 6px;color:#dcecff;}
.empty-alerts p,.empty-copy {font-size:.85rem;line-height:1.6;}
.history-storage-note {font-size:.75rem;color:#a5bed4;line-height:1.6;margin:18px 0;}
.view-toolbar {margin:4px 0 16px;}
.back-link {display:inline-flex;align-items:center;min-height:44px;color:#63d7ff;font-size:.9rem;}
/* A body-level sibling of the scrolling shell, never a child of its enter animation. */
.bottom-nav {position:fixed;z-index:20;left:0;right:0;bottom:0;margin:0 auto;width:100%;max-width:580px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:var(--nav-padding-top) max(9px,env(safe-area-inset-right,0px)) calc(var(--nav-padding-bottom) + var(--nav-safe-bottom)) max(9px,env(safe-area-inset-left,0px));border:var(--nav-border) solid #1c567b;border-bottom:0;border-radius:20px 20px 0 0;background:#041b2ef5;box-shadow:0 -5px 25px #00132388;}
body:not([data-view="paired"])>.bottom-nav {display:none;}
.bottom-nav a {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:var(--nav-item-height);padding:8px 3px;gap:5px;color:#a9c5e5;border-radius:14px;text-decoration:none;font-size:.73rem;line-height:1.25;min-width:0;overflow-wrap:anywhere;}
.bottom-nav a svg {width:23px;height:23px;}
.bottom-nav a[aria-current="page"] {background:linear-gradient(#075082,#073358);color:#38d0ff;font-weight:700;box-shadow:inset 0 1px 0 #32a8e533;}
.bottom-nav a[aria-current="page"] svg {stroke-width:2.3;}
body[data-view="paired"] .offline-banner {border-color:#ab7839;background:#362920;color:#ffe0ae;margin:0 0 14px;}
@media (max-width:359px) {body[data-view="paired"] .shell {padding-left:12px;padding-right:12px;}body[data-view="paired"] .site-header {padding-left:14px;padding-right:14px;} .activity-grid {gap:6px;} .stat-card {padding:11px 5px;} .stat-card>small {font-size:.62rem;} .alert-thumbnail {width:55px;height:66px;flex-basis:55px;} .brand strong {font-size:1.5rem;} .section-heading {gap:5px;} .section-heading a {font-size:.73rem;}}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}button:active,.settings-row:active,.bottom-nav a:active{transform:none;}}
/* Resolve the former single-view cascade at mobile widths. */
body[data-view="paired"] .site-header {position:relative;background:transparent;border-bottom:0;backdrop-filter:none;gap:0;min-height:0;}
body[data-view="paired"] .brand {gap:14px;}
body[data-view="paired"] .brand img {width:54px;height:54px;}
body[data-view="paired"] .brand strong {font-size:1.62rem;}
body[data-view="paired"] .brand strong span {display:inline;}
body[data-view="paired"] .brand small {font-size:.85rem;}
.app-view h1,.detail-heading {white-space:normal;overflow-wrap:anywhere;}
.home-health .compact-health,.home-health .compact-health small {max-width:none;}
.home-health .compact-health small {display:block;}
.alert-list {background:transparent;border:0;border-radius:0;overflow:visible;margin-top:0;}
.alert-row {font-weight:400;min-height:0;}
.alert-row:first-child {border-top:1px solid #236287;}
.timeline-row:first-child {border-top:0;}
.alert-row .alert-etv {font-weight:400;}
.alert-row .alert-view-state,.alert-row.is-unread .alert-view-state {color:#aac6de;}
.alert-row .alert-details-action {background:none;border:0;box-shadow:none;padding:0;min-height:32px;}
.alert-row:active,.alert-row:active .alert-details-action {background:#082b45;}
.alert-row .alert-details-chevron {color:#44ceff;}
.featured-alert .alert-etv {font-size:.79rem;color:#e6d7dc;}
.featured-alert .alert-view-state {font-size:.69rem;}
.timeline-row .alert-etv {color:#bfd2e6;}
button.button {font-weight:600;}
@media(max-width:359px){body[data-view="paired"] .brand strong {font-size:1.5rem;}.stat-last>strong{font-size:.88rem;}}
.notification-health[data-health="device_confirmed"] #notification-health-detail {display:none;}
.notification-test-result:empty {display:none;}
.notification-health {margin-bottom:14px;}
.notification-health-actions .button {padding:8px 12px;}

/* Home reference layout. Shared routes keep their existing card presentation. */
.home-health {padding:0;margin-bottom:12px;}
body[data-view="paired"] .home-health .compact-health {padding:10px 12px;align-items:center;gap:12px;}
.home-health-copy {flex:1;min-width:0;}
.home-health .compact-health strong {line-height:1.3;}
.home-health .compact-health-dot {flex:0 0 10px;width:10px;height:10px;margin:0;}
.home-health-chevron {width:16px;height:20px;color:var(--accent);}
.home-health-details {display:flex;flex-wrap:wrap;gap:0 6px;margin-top:2px;}
.home-health .compact-health small,#home-preference-state {font-size:.79rem;line-height:1.45;margin:0;color:#c3d9ef;}
#home-preference-state:empty {display:none;}
#home-preference-state:not(:empty)::before {content:"·";margin-right:6px;}
.companion-home>.section-heading {margin-top:16px;margin-bottom:8px;align-items:center;}
.companion-home>.section-heading h2 {font-size:1.05rem;color:#8edbff;}
.companion-home>.section-heading a {display:inline-flex;align-items:center;min-height:44px;}
.companion-home .activity-strip {gap:0;border:1px solid #164e73;border-radius:15px;background:linear-gradient(135deg,#072946,#061d33);padding:12px 0;}
.activity-metric {min-width:0;display:grid;grid-template-columns:26px minmax(0,1fr);align-content:start;align-items:center;gap:4px 4px;padding:0 6px;}
.activity-metric+.activity-metric {border-left:1px solid #165175;}
.activity-metric>svg {grid-column:1;grid-row:1;width:20px;height:20px;padding:3px;box-sizing:content-box;border-radius:50%;color:#23b8ff;background:#0960a43b;}
.activity-drop>svg {color:#ff9863;background:#70363144;}
.activity-latest>svg {color:#c79aff;background:#7846aa40;}
.metric-copy {display:contents;}
.metric-copy strong {grid-column:2;grid-row:1;min-width:0;font-size:1.4rem;font-weight:750;line-height:1.25;overflow-wrap:anywhere;}
.activity-latest .metric-copy strong {font-size:1.06rem;}
.metric-copy>span {grid-column:1 / -1;text-align:center;font-size:.8rem;line-height:1.4;overflow-wrap:anywhere;color:#c9ddf1;}
#local-count-note {margin:6px 2px 15px;font-size:.68rem;line-height:1.4;}
.companion-home .featured-alert {padding:11px 10px;gap:11px;}
.companion-home .featured-alert .alert-thumbnail {width:43px;height:51px;flex-basis:43px;font-size:1.85rem;}
.companion-home .featured-alert .alert-row-copy {gap:5px;}
.featured-heading {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:3px 8px;}
.featured-heading .alert-title {flex:1 1 7em;font-size:1.04rem;line-height:1.35;display:block;}
.featured-heading .alert-time {font-size:.75rem;}
.companion-home .featured-alert .alert-etv {font-size:.84rem;line-height:1.45;}
#home-recent-list .alert-row {padding:10px;gap:12px;}
#home-recent-list .alert-row-meta {flex-direction:row;align-items:baseline;}
#home-recent-list .alert-title {font-size:.94rem;line-height:1.35;}
#home-recent-list .alert-etv {font-size:.8rem;}
#home-recent-list .alert-kind {font-size:.73rem;}
#home-recent-list .alert-time {font-size:.73rem;}
/* Nested screens share neutral surfaces; success is a glyph/text, never a panel. */
.ready-check {color:var(--success);}
.health-badge {background:var(--surface-strong);}
[data-tone="healthy"] .health-badge {background:var(--surface-strong);color:var(--success);}
.phase-card.confirmed .phase-symbol {background:var(--accent-soft);color:var(--success);}
.detail-item .alert-thumbnail {flex-shrink:0;}
.detail-item-actions .button {max-width:100%;}
.device-privacy summary {gap:10px;}
.device-privacy summary>span:first-child {min-width:0;overflow-wrap:anywhere;}
.preference-list dt,.preference-list dd {min-width:0;overflow-wrap:anywhere;}
.is-drop-alert:not(.is-beta-alert) .alert-kind {color:#ffb18c;}
.is-beta-alert .alert-kind {color:#ceabff;}
.is-beta-alert .alert-thumbnail {color:#cdacff;background:#282548;}

/* Phone companion refresh: concise status, shared daily schedule, quieter details. */
body[data-view="paired"] .site-header {justify-content:space-between;gap:12px;padding:20px 16px 18px;padding-top:max(20px,env(safe-area-inset-top));}
body[data-view="paired"] .brand {gap:9px;flex:0 1 auto;}
body[data-view="paired"] .brand img {width:42px;height:46px;flex-shrink:0;}
body[data-view="paired"] .brand strong {font-size:1.3rem;letter-spacing:-.025em;white-space:nowrap;}
body[data-view="paired"] .brand small {font-size:.69rem;margin-top:3px;white-space:nowrap;}
body[data-view="paired"] .header-health {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:auto;max-width:45%;padding:6px 3px;flex:0 1 auto;border:0;border-radius:10px;background:transparent;box-shadow:none;color:#d5e6f4;}
.header-health strong {font-size:.72rem;line-height:1.25;font-weight:550;white-space:normal;}
.header-health .compact-health-dot {width:9px;height:9px;flex:0 0 9px;margin:0;background:#a6b9ca;box-shadow:0 0 0 3px #71849c25;}
.header-health[data-tone="healthy"] .compact-health-dot {background:#3dec9b;box-shadow:0 0 0 3px #32e39d22;}
.header-health[data-tone="warning"] .compact-health-dot {background:#ffc96c;box-shadow:0 0 0 3px #ffc96c20;}
.header-health[data-tone="danger"] .compact-health-dot {background:#ffa38b;box-shadow:0 0 0 3px #ffa38b20;}
.header-health[data-tone="warning"] strong,.header-health[data-tone="danger"] strong {color:inherit;}
.companion-home>h1 {font-size:1.5rem;}
.companion-home>.view-intro {margin-bottom:8px;font-size:.88rem;}
.home-health-warning {display:flex;align-items:center;gap:12px;width:100%;border:1px solid #a28248;border-radius:14px;padding:13px;background:linear-gradient(115deg,#2b2a25,#162b37);text-align:left;color:var(--text);margin:14px 0 5px;box-shadow:none;}
.home-health-warning>span:nth-child(2) {flex:1;min-width:0;}
.home-health-warning strong {display:block;font-size:.88rem;line-height:1.4;}
.home-health-warning small {display:block;font-size:.75rem;line-height:1.5;color:#d3d8df;margin-top:3px;}
.home-health-warning .compact-health-dot {width:9px;height:9px;flex:0 0 9px;margin:0;background:#ffc96c;box-shadow:0 0 0 4px #ffc96c22;}
.home-health-warning[data-tone="danger"] {border-color:#a66860;background:linear-gradient(115deg,#35292f,#182838);}
.home-health-warning[data-tone="danger"] .compact-health-dot {background:#ffa38b;}
.activity-heading {display:flex;justify-content:flex-end;min-height:32px;margin:0 0 2px;}
.text-button {appearance:none;border:0;border-radius:7px;min-height:36px;padding:7px 2px;background:transparent;color:#8ebcd6;font-size:.72rem;line-height:1.4;box-shadow:none;font-weight:500;}
.companion-home .activity-strip {padding:0;overflow:hidden;border-color:#216990;background:linear-gradient(125deg,#082e4a,#061e32);}
.activity-strip .activity-metric {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;padding:8px 7px;}
.activity-strip .activity-metric+.activity-metric {border-color:#205471;}
.metric-icon {display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#07588459;color:#40d5ff;margin-bottom:3px;}
.metric-icon svg {width:23px;height:23px;}
.activity-metric[data-metric="drops"] .metric-icon,.activity-metric[data-metric="latest_drop"] .metric-icon {background:#73372f4a;color:#ffab7b;}
.activity-metric[data-metric="next"] .metric-icon,.activity-metric[data-metric="last"] .metric-icon {background:#764c9c44;color:#d4afff;}
.activity-strip .activity-metric>strong {font-size:1.55rem;line-height:1.2;font-weight:750;letter-spacing:-.035em;color:#f5f7ff;overflow-wrap:anywhere;max-width:100%;font-variant-numeric:tabular-nums;}
.activity-strip .activity-metric[data-metric="next"]>strong,.activity-strip .activity-metric[data-metric="latest_rfy"]>strong,.activity-strip .activity-metric[data-metric="latest_drop"]>strong,.activity-strip .activity-metric[data-metric="last"]>strong {font-size:1.13rem;min-height:1.65rem;display:flex;align-items:center;}
.metric-label {font-size:.75rem;line-height:1.4;text-align:center;color:#e0effe;}
.metric-detail {font-size:.64rem;line-height:1.4;text-align:center;color:#a9c8dd;overflow-wrap:anywhere;}
#local-count-note {font-size:.8rem;line-height:1.5;color:var(--muted);margin:10px 0 0;}
.home-metric-editor {display:grid;grid-template-columns:1fr;gap:10px;padding:13px;margin-top:10px;border:1px solid var(--border-strong);border-radius:13px;background:var(--surface);}
.home-metric-editor label {display:grid;grid-template-columns:6.5em minmax(0,1fr);align-items:center;gap:8px;font-size:.79rem;color:var(--muted);}
.home-metric-editor select {min-height:44px;max-width:100%;min-width:0;border:1px solid #2c6588;background:#08253e;border-radius:8px;padding:6px;color:var(--text);font:inherit;font-size:.85rem;}
.home-metric-editor select:focus-visible {outline:3px solid #9cdbff;outline-offset:3px;}
.home-metric-editor p {margin:0;font-size:.72rem;color:var(--muted);}
.current-drop-card {display:flex;align-items:center;gap:13px;width:100%;margin:12px 0 13px;padding:10px 13px;border:1px solid #2c7496;border-radius:15px;background:linear-gradient(125deg,#083652,#062237);color:var(--text);text-align:left;text-decoration:none;box-shadow:inset 0 1px 0 #6fd7ff16;}
.current-drop-card[data-kind="recently_observed"] {border-color:#398b77;background:linear-gradient(115deg,#0a3537,#072638);}
.current-drop-icon {display:grid;place-items:center;border-radius:50%;width:35px;height:35px;flex:0 0 35px;background:#124863;color:#70dfff;}
.current-drop-card[data-kind="recently_observed"] .current-drop-icon {background:#1cc681;color:#003321;}
.current-drop-copy {min-width:0;flex:1;}
.current-drop-copy strong {display:block;font-size:.9rem;line-height:1.4;}
.current-drop-copy span {display:block;margin-top:2px;font-size:.77rem;line-height:1.5;color:#c6e1f1;}
.current-drop-copy small {display:block;margin-top:3px;font-size:.7rem;line-height:1.5;color:#9dc5dc;}
.companion-home>.section-heading {margin-top:13px;}
.companion-home>.section-heading h2 {font-size:.95rem;}
#home-recent-list .alert-row {padding:11px 10px;border-color:#205e80;border-radius:14px;background:linear-gradient(125deg,#062d46,#041e31);}
#home-recent-list .alert-title {font-size:.88rem;-webkit-line-clamp:2;line-height:1.4;}
#home-recent-list .alert-thumbnail {width:60px;height:68px;flex-basis:60px;}
#home-recent-list .alert-etv {font-size:.74rem;}
#home-recent-list .alert-details-action {font-size:0;}
#home-recent-list .alert-details-chevron {font-size:1.4rem;}
.timeline-row.is-unread::after {content:"";position:absolute;left:0;top:11px;width:6px;height:6px;border-radius:50%;background:#42cfff;box-shadow:0 0 0 2px #0c3550;}
.timeline-row .alert-title {-webkit-line-clamp:2;line-height:1.4;}
.timeline-row .alert-view-state {font-size:.68rem;}
.drop-schedule {border:1px solid #205a7e;border-radius:16px;overflow:hidden;background:linear-gradient(125deg,#072b43,#041d30);}
.schedule-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:15px 13px 12px;border-bottom:1px solid #194967;}
.schedule-heading h2 {font-size:.95rem;line-height:1.4;margin:0;}
.schedule-heading p {font-size:.67rem;line-height:1.5;margin:3px 0 0;color:#b0cce0;}
.schedule-day {font-size:.66rem;line-height:1.5;max-width:8.5em;padding:5px 7px;border:1px solid #205b7b;border-radius:7px;color:#c6e6f5;background:#092b44;text-align:center;flex-shrink:0;}
.schedule-day small {display:block;font-size:.58rem;color:#8ebbd4;margin-bottom:1px;}
#drop-schedule-date {display:block;}
.drop-schedule .source-status {padding:10px 13px;margin:0;border:0;border-bottom:1px solid #1b4c68;border-radius:0;background:#0d2b3c;font-size:.73rem;color:#bdcbd5;}
.drop-schedule .phase-grid {gap:0;}
.drop-schedule .phase-card {position:relative;align-items:flex-start;gap:12px;margin:0 13px;padding:12px 0;border:0;border-bottom:1px solid #16475f;border-radius:0;background:transparent;}
.drop-schedule .phase-card:last-child {border-bottom:0;}
.drop-schedule .phase-symbol {width:30px;height:30px;flex:0 0 30px;border-radius:50%;font-size:1.2rem;background:#223b4b;color:#91a9ba;margin-top:2px;}
.drop-schedule .phase-symbol svg {width:20px;height:20px;}
.drop-schedule .phase-card.observed .phase-symbol,.drop-schedule .phase-card.confirmed .phase-symbol {background:#31dc91;color:#003629;}
.drop-schedule .phase-card.upcoming .phase-symbol,.drop-schedule .phase-card.watching .phase-symbol {background:#684b9155;color:#d7b4ff;}
.drop-schedule .phase-card.watching {background:linear-gradient(90deg,#0a465355,transparent);}
.drop-schedule .phase-card.is-next {background:linear-gradient(90deg,#12578138,#0b3c5810);box-shadow:inset 0 0 0 1px #37b6ed24;border-radius:8px;}
.drop-schedule .phase-card.is-next::before {content:"";position:absolute;left:-6px;top:11px;bottom:11px;width:2px;border-radius:2px;background:#40c8ff99;}
.phase-title {display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;min-width:0;}
.phase-next {font-size:.56rem;line-height:1.4;letter-spacing:.06em;font-weight:650;text-transform:uppercase;color:#9de7ff;background:#13638845;border:1px solid #3598be40;border-radius:4px;padding:1px 4px;}
.drop-schedule .phase-copy {flex:1;}
.phase-heading {display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px;}
.drop-schedule .phase-heading h2 {font-size:.84rem;font-weight:650;margin:0;color:#88deff;}
.phase-state {font-size:.66rem;line-height:1.5;color:#a5bed0;text-align:right;flex:0 0 auto;max-width:50%;}
.phase-card.observed .phase-state,.phase-card.confirmed .phase-state {color:#7af4ac;}
.phase-card.upcoming .phase-state,.phase-card.watching .phase-state {color:#78ddff;}
.drop-schedule .phase-copy p {font-size:.75rem;line-height:1.6;margin:2px 0;color:#c1d9e9;}
.drop-schedule .phase-copy .phase-countdown {font-size:.7rem;color:#8fb9d2;}
.drop-summary-grid .stat-card {padding:10px;gap:3px;align-items:flex-start;}
.drop-summary-grid .stat-card>svg {width:21px;height:21px;padding:6px;}
.drop-summary-grid .stat-card>strong {font-size:1.13rem;}
.beta-explanation {border-color:#235471;background:linear-gradient(115deg,#092c44,#061e32);padding:13px;gap:10px;}
.beta-explanation>span,.beta-explanation h2 {color:#8addff;}
.beta-explanation h2 {font-size:.79rem;margin-bottom:3px;}
.beta-explanation p {font-size:.74rem;color:#b5ccdf;}
#drops-view>.section-heading {margin-top:23px;}
.notification-health[data-health="device_confirmed"] #notification-health-detail {display:block;}
.notification-health {padding:12px;}
.notification-health #notification-health-detail {font-size:.8rem;margin:3px 0 0;}
.notification-health h2 {font-size:.95rem;}
.notification-health-actions {margin-top:7px;}
.notification-health-actions .button {flex:1;}
.notification-test-result {font-size:.73rem;}
.notification-health-times {padding:10px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.device-delivery-heading {font-size:.95rem;margin:18px 0 8px;}
.settings-row {min-height:68px;padding:10px 12px;gap:12px;}
.settings-row .tile-icon {width:39px;height:42px;flex-basis:39px;}
.settings-row strong {font-size:.83rem;}
.settings-row small {font-size:.71rem;line-height:1.45;}
@media(max-width:359px) {
  body[data-view="paired"] .site-header {padding-left:12px;padding-right:12px;gap:8px;}
  body[data-view="paired"] .brand {gap:6px;}
  body[data-view="paired"] .brand img {width:35px;height:39px;}
  body[data-view="paired"] .brand strong {font-size:1.16rem;}
  body[data-view="paired"] .brand small {font-size:.62rem;}
  .header-health strong {font-size:.65rem;}
  .header-health .compact-health-dot {width:8px;height:8px;flex-basis:8px;}
  .activity-strip .activity-metric {padding:9px 4px;}
  .activity-strip .activity-metric[data-metric="next"]>strong,.activity-strip .activity-metric[data-metric="latest_rfy"]>strong,.activity-strip .activity-metric[data-metric="latest_drop"]>strong,.activity-strip .activity-metric[data-metric="last"]>strong {font-size:.98rem;}
  .metric-label {font-size:.7rem;}
  .metric-detail {font-size:.6rem;}
  .schedule-heading {gap:7px;}
  .schedule-heading h2 {font-size:.88rem;}
  .phase-heading {gap:5px;}
}
@media(min-width:500px) {
  .activity-strip .activity-metric {padding:12px 10px;}
  .metric-label {font-size:.82rem;}
  .metric-detail {font-size:.72rem;}
  .drop-schedule .phase-card {padding:13px 3px;}
}
