#mainline-root { margin-bottom: 28px; }
#mainline-root [hidden] { display: none !important; }
.ml-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.ml-hero { grid-column: auto; min-height: 340px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.brand { color: var(--ink); }
.ml-hero h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; letter-spacing: -.035em; max-width: 20ch; margin: 20px 0; overflow-wrap: anywhere; }
.ml-eyebrow { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; }
.ml-hero p { position: relative; z-index: 1; }
.ml-hero .ml-helper { overflow-wrap: anywhere; }
.signal-card.ml-hero p { color: var(--accent-ink); }
.signal-card.ml-hero .ml-success { padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 18%, transparent); margin-top: 24px; }
.ml-hero .ml-success small { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.ml-hero .signal-orbit { opacity: .25; pointer-events: none; }
.ml-step { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.ml-step h3 { font-size: 24px; line-height: 1.45; margin: 12px 0; overflow-wrap: anywhere; }
.ml-step .section-label { margin: 0; }
.ml-muted, .ml-helper { color: var(--ink-muted); font-size: 14px; }
.ml-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ml-actions button { min-height: 44px; }
.ml-primary { border: 0; border-radius: 999px; background: var(--action); color: #fff8f5; padding: 14px 22px; font-weight: 600; min-height: 50px; }
.ml-primary:hover { filter: brightness(.95); }
.ml-primary:active { transform: scale(.98); }
.ml-timer { font-variant-numeric: tabular-nums; font-size: clamp(42px, 6vw, 64px); letter-spacing: -.04em; line-height: 1.2; }
.ml-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 16px 0 24px; }
.ml-park { padding: 24px 28px; display: flex; gap: 16px; align-items: center; }
.ml-park label { flex: 0 0 auto; }
.ml-park input { flex: 1; min-width: 0; }
.ml-input, .ml-form input:not([type=checkbox]), .ml-form textarea, .ml-form select, .ml-select {
  font: inherit; color: var(--ink); background: var(--surface-strong); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 12px 14px; min-height: 48px; width: 100%; box-sizing: border-box;
}
.ml-select { width: auto; }
.ml-form { display: grid; gap: 12px; }
.ml-form label { font-size: 14px; font-weight: 600; }
.ml-form p { margin: 0; }
.ml-form textarea { resize: vertical; min-height: 90px; }
.ml-form .ml-checkbox { display: flex; gap: 12px; align-items: center; min-height: 48px; }
.ml-form input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--action); }
.ml-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ml-two > div { display: grid; gap: 8px; }
.ml-list { list-style: none; margin: 12px 0; padding: 0; }
.ml-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ml-list li p { margin: 0 0 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.ml-detail { margin-top: 20px; padding: 8px 24px; }
summary { cursor: pointer; min-height: 52px; padding: 14px 0; }
summary:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ml-detail summary { font-weight: 600; }
.ml-detail > p { color: var(--ink-muted); }
.ml-capsule { border-left: 3px solid var(--accent); padding: 0 0 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ml-reminder { padding: 20px 24px; margin-bottom: 20px; border-left: 4px solid var(--accent); }
.ml-reminder p { margin: 4px 0 12px; }
.ml-reminder small { color: var(--ink-muted); }
.ml-empty { min-height: 280px; }
.ml-empty h2 { max-width: none; }
.mainline-loading { padding: 48px 32px; }
.business-details > summary { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.business-details > summary span { font-size: 13px; color: var(--ink-muted); }
.mainline-dialog { color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 28px; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 28px; overflow-y: auto; }
.mainline-dialog::backdrop { background: rgba(20, 18, 17, .54); backdrop-filter: blur(8px); }
.ml-dialog-heading { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.ml-dialog-heading h2 { font-size: 24px; margin: 0; }
.ml-dialog-heading button { min-height: 44px; }
.ml-dialog-error { margin: 12px 0; }
.ml-focus-mode .business-details, .ml-focus-mode .ml-secondary { display: none; }
.ml-focus-mode .welcome-copy { display: none; }
.ml-focus-mode .ml-hero .signal-orbit { animation: none; }
@media (max-width: 767px) {
  .topbar { margin-bottom: 20px; }
  .welcome-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
  .welcome-row h1 { font-size: 30px; }
  .welcome-copy { display: none; }
  .welcome-row .section-label { font-size: 12px; letter-spacing: .04em; }
  #refresh-button { padding: 0 12px; font-size: 12px; }
  .ml-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ml-hero { min-height: 220px; padding: 24px; }
  .ml-step { padding: 24px; }
  .ml-hero h2 { font-size: 28px; max-width: none; margin: 16px 0; }
  .signal-card.ml-hero .ml-success { padding-top: 12px; margin-top: 12px; }
  .ml-park { flex-wrap: wrap; padding: 20px; gap: 12px; }
  .ml-park label { width: 100%; }
  .ml-park input { flex-basis: calc(100% - 130px); }
  .ml-park button { padding: 12px 16px; }
  .ml-tools { gap: 8px; }
  .ml-detail { padding: 8px 20px; }
  .mainline-dialog { padding: 24px; }
}
@media (max-width: 374px) { .ml-two { grid-template-columns: 1fr; } .ml-park input { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .ml-primary:active { transform: none; } }
