/* ── iOS 18 Inspired – Single-Page Mobile-First ── */
:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --secondary-text: #8e8e93;
  --tertiary-text: #aeaeb2;
  --separator: rgba(60, 60, 67, 0.12);
  --grouped-bg: #f2f2f7;
  --system-blue: #007aff;
  --system-green: #34c759;
  --system-orange: #ff9500;
  --system-red: #ff3b30;
  --system-yellow: #ffcc00;
  --system-teal: #5ac8fa;
  --system-indigo: #5856d6;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-elevated: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-input: 10px;
  --radius-badge: 100px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); min-height: 100vh; min-height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }

/* ── App Shell ── */
.app-shell {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Sticky Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,242,247,0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  padding: 12px 0 8px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.large-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.15;
}
.header-action {
  border: none;
  background: rgba(142,142,147,0.12);
  color: var(--secondary-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Status Pills ── */
.status-row {
  display: flex;
  gap: 6px;
  padding: 8px 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.status-row::-webkit-scrollbar { display: none; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-badge);
  background: var(--surface);
  box-shadow: 0 0.5px 2px rgba(0,0,0,0.06);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-dot.green { background: var(--system-green); }
.pill-dot.orange { background: var(--system-orange); }
.pill-dot.red { background: var(--system-red); }
.pill-dot.blue { background: var(--system-blue); }
.pill-dot.gray { background: var(--secondary-text); }

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 12px;
}
.card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.control-home-card {
  padding-top: 14px;
}
.main-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}
.main-switch-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
}
.main-switch-subtitle {
  margin-top: 3px;
  font-size: 13px;
  color: var(--secondary-text);
}
.compact-group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--separator);
}
.quick-settings-form {
  border-top: 1px solid var(--separator);
  padding-top: 2px;
}
.friend-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.mini-action-btn {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--system-blue);
  font-size: 14px;
  font-weight: 700;
}
.mini-action-btn.muted {
  background: var(--tertiary-bg);
  color: var(--secondary-text);
}
.field-hint {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--secondary-text);
}
.quick-save-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.quick-save-row .card-save-btn,
.quick-save-row .emergency-btn {
  min-height: 44px;
}

/* ── Card 1: Connection ── */
.connection-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.connection-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--system-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.connection-avatar.disconnected {
  background: var(--secondary-text);
}
.connection-info { flex: 1; min-width: 0; }
.connection-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connection-status {
  font-size: 13px;
  color: var(--system-green);
  font-weight: 500;
}
.connection-status.off {
  color: var(--secondary-text);
}

/* ── Card 2: Group Picker ── */
.group-selected {
  display: flex;
  align-items: center;
  gap: 12px;
}
.group-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a84ff, #34c759);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.group-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-info { flex: 1; min-width: 0; }
.group-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-meta {
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 1px;
}
.change-btn {
  border: none;
  background: rgba(0,122,255,0.1);
  color: var(--system-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-badge);
  flex-shrink: 0;
  min-height: 32px;
}

/* Group picker list (inline expandable) */
.group-picker {
  margin-top: 12px;
  border-top: 1px solid var(--separator);
  padding-top: 8px;
}
.group-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.group-picker-item + .group-picker-item {
  border-top: 1px solid var(--separator);
}
.group-picker-item .group-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 14px;
}
.group-picker-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-picker-check {
  color: var(--system-blue);
  font-size: 18px;
  font-weight: 700;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.group-picker-refresh {
  border: none;
  background: none;
  color: var(--system-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* ── Card 3: Signup Setup ── */
.setup-field {
  padding: 10px 0;
}
.setup-field + .setup-field {
  border-top: 1px solid var(--separator);
}
.setup-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-text);
  margin-bottom: 4px;
}
.setup-input {
  width: 100%;
  border: none;
  background: rgba(142,142,147,0.08);
  border-radius: var(--radius-input);
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.15s;
}
.setup-input:focus {
  box-shadow: 0 0 0 2px rgba(0,122,255,0.3);
}
.setup-input::placeholder {
  color: var(--tertiary-text);
}
.setup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.setup-row + .setup-row,
.setup-field + .setup-row,
.setup-row + .setup-field {
  border-top: 1px solid var(--separator);
}
.setup-row-label {
  font-size: 15px;
  font-weight: 500;
  padding-right: 10px;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  background: rgba(142,142,147,0.12);
  border-radius: 9px;
  overflow: hidden;
  height: 34px;
  flex-shrink: 0;
}
.stepper-btn {
  border: none;
  background: transparent;
  width: 38px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--system-blue);
  font-size: 18px;
  font-weight: 500;
  padding: 0;
  min-height: auto;
  border-radius: 0;
  transition: background 0.12s;
}
.stepper-btn:active { background: rgba(142,142,147,0.18); }
.stepper-divider {
  width: 1px;
  height: 16px;
  background: rgba(142,142,147,0.3);
}
.stepper-value {
  font-size: 15px;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  padding: 0 2px;
}

/* Segmented Control */
.segmented {
  display: flex;
  background: rgba(142,142,147,0.12);
  border-radius: 9px;
  padding: 2px;
  gap: 0;
}
.segmented-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-text);
  transition: all 0.2s;
  min-height: auto;
}
.segmented-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Save row in card */
.card-save {
  margin-top: 12px;
}
.card-save-btn {
  border: none;
  background: var(--system-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-btn);
  transition: opacity 0.15s;
}
.card-save-btn:active { opacity: 0.7; }

/* ── Card 4: Monitor Control ── */
.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.monitor-left { flex: 1; }
.monitor-status {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.monitor-subtitle {
  font-size: 13px;
  color: var(--secondary-text);
  margin-top: 3px;
  line-height: 1.35;
}

/* iOS Toggle */
.ios-toggle {
  position: relative;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
  cursor: pointer;
}
.ios-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: #e9e9eb;
  border-radius: 16px;
  transition: background 0.25s ease;
}
.ios-toggle input:checked + .toggle-track {
  background: var(--system-green);
}
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.06);
  transition: transform 0.25s ease;
}
.ios-toggle input:checked ~ .toggle-knob {
  transform: translateX(20px);
}

.emergency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--separator);
}
.emergency-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--system-red);
}
.emergency-btn {
  border: none;
  background: rgba(255,59,48,0.12);
  color: var(--system-red);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  min-height: 34px;
  transition: background 0.15s;
}
.emergency-btn:active { background: rgba(255,59,48,0.2); }
.emergency-btn.active {
  background: var(--system-red);
  color: #fff;
}

/* ── Card 5: Event ── */
.event-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.1px;
}
.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}
.event-badge.ok { background: rgba(52,199,89,0.14); color: #248a3d; }
.event-badge.warn { background: rgba(255,149,0,0.14); color: #c77c00; }
.event-badge.danger { background: rgba(255,59,48,0.12); color: var(--system-red); }
.event-badge.idle { background: rgba(142,142,147,0.12); color: var(--secondary-text); }

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--separator);
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
}
.meta-cell {
  background: rgba(142,142,147,0.06);
  padding: 10px 12px;
}
.meta-cell-label {
  font-size: 11px;
  color: var(--secondary-text);
  font-weight: 500;
  margin-bottom: 2px;
}
.meta-cell-value {
  font-size: 16px;
  font-weight: 600;
}
.event-waiting {
  font-size: 14px;
  font-weight: 500;
  color: var(--system-blue);
  padding: 8px 0;
}
.event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.event-actions.compact {
  flex-wrap: nowrap;
}
.event-actions .btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
}

/* Test runner */
.test-runner-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.test-runner-title {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
}
.test-runner-subtitle {
  margin-top: 2px;
  color: var(--secondary-text);
  font-size: 12px;
  line-height: 1.35;
}
.test-result-summary {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.test-result-summary.ok {
  background: rgba(52,199,89,0.12);
  color: #248a3d;
}
.test-result-summary.danger {
  background: rgba(255,59,48,0.12);
  color: var(--system-red);
}
.test-result-list {
  margin-top: 4px;
}
.test-result-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--separator);
}
.test-result-body {
  min-width: 0;
  flex: 1;
}
.test-result-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.test-result-detail {
  margin-top: 1px;
  color: var(--secondary-text);
  font-size: 12px;
  line-height: 1.35;
}

/* Preview */
.preview-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
}
.preview-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.preview-status-text {
  font-size: 15px;
  font-weight: 700;
}
.preview-status-text.can-send { color: var(--system-green); }
.preview-status-text.cannot-send { color: var(--system-orange); }
.preview-reason {
  font-size: 13px;
  color: var(--secondary-text);
}
.preview-message {
  background: #1c1c1e;
  color: #f2f2f7;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  overflow: auto;
  white-space: pre-wrap;
  font-family: "SF Mono", ui-monospace, monospace;
  margin-top: 8px;
  word-break: break-all;
}

/* ── Card 6: Logs ── */
.log-list { }
.log-entry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
}
.log-entry + .log-entry {
  border-top: 1px solid var(--separator);
}
.log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.log-dot.ok { background: var(--system-green); }
.log-dot.warn { background: var(--system-orange); }
.log-dot.danger { background: var(--system-red); }
.log-dot.idle { background: var(--tertiary-text); }
.log-body { flex: 1; min-width: 0; }
.log-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.log-subtitle {
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 1px;
  line-height: 1.3;
}
.log-time {
  font-size: 12px;
  color: var(--tertiary-text);
  flex-shrink: 0;
  margin-top: 2px;
}
.show-more-btn {
  border: none;
  background: none;
  color: var(--system-blue);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0 4px;
  width: 100%;
  text-align: center;
}

/* ── Buttons ── */
.btn {
  border: none;
  min-height: 44px;
  border-radius: var(--radius-btn);
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.btn:active { opacity: 0.7; }
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-primary { background: var(--system-blue); color: #fff; }
.btn-secondary { background: rgba(0,122,255,0.1); color: var(--system-blue); }
.btn-muted { background: rgba(142,142,147,0.12); color: var(--secondary-text); }
.btn-danger { background: rgba(255,59,48,0.12); color: var(--system-red); }
.btn-full { width: 100%; }

/* ── Disclosure / Advanced ── */
.disclosure {
  margin-top: 12px;
  border-top: 1px solid var(--separator);
  padding-top: 8px;
}
.disclosure-toggle {
  border: none;
  background: none;
  color: var(--system-blue);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 4px;
}
.disclosure-arrow {
  font-size: 11px;
  transition: transform 0.2s;
}
.disclosure-arrow.open {
  transform: rotate(90deg);
}
.disclosure-body {
  display: none;
  padding-top: 4px;
}
.disclosure-body.open {
  display: block;
}

/* ── QR Panel ── */
.qr-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.qr-image {
  width: min(220px, 100%);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.pin-box {
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255,149,0,0.12);
  color: var(--system-orange);
  border-radius: 14px;
  padding: 12px;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--secondary-text);
  font-size: 14px;
}

/* ── Error ── */
.error-box {
  color: var(--system-red);
  background: rgba(255,59,48,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
  margin-top: 8px;
}

/* ── Success toast ── */
.toast {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--surface);
  box-shadow: var(--shadow-elevated);
  border-radius: var(--radius-badge);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2s forwards;
  pointer-events: none;
}
.toast.success { color: var(--system-green); }
.toast.error { color: var(--system-red); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; } }

/* ── Modal (ToS, Bottom Sheet) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.32);
}
.modal-sheet {
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-elevated);
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: rgba(60,60,67,0.18);
  margin: 0 auto 16px;
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}
.modal-body {
  font-size: 14px;
  color: var(--secondary-text);
  line-height: 1.55;
  margin-bottom: 20px;
  text-align: center;
}
.modal-action {
  border: none;
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--system-red);
  color: #fff;
  transition: opacity 0.15s;
}
.modal-action:active { opacity: 0.7; }

/* ── Login ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-title { font-size: 22px; font-weight: 700; text-align: center; }
.login-subtitle { text-align: center; color: var(--secondary-text); font-size: 14px; margin-bottom: 4px; }
.login-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-input);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
}
.login-input:focus { border-color: var(--system-blue); }

/* ── Section Divider ── */
.section-divider {
  height: 1px;
  background: var(--separator);
  margin: 4px 0;
}

/* ── Job Result ── */
.job-result {
  padding: 10px 0;
}
.job-result + .job-result {
  border-top: 1px solid var(--separator);
}
.job-status {
  font-size: 14px;
  font-weight: 700;
}
.job-status.success { color: var(--system-green); }
.job-status.failed { color: var(--system-red); }
.job-status.pending { color: var(--system-orange); }
.job-detail {
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 2px;
}

/* ── Responsive ── */
@media (min-width: 769px) {
  .app-shell {
    max-width: 540px;
    padding: 0 24px 32px;
  }
  .header {
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 359px) {
  .app-shell { padding: 0 10px 20px; }
  .header { margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
  .large-title { font-size: 24px; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .event-actions .btn { flex: 1 1 100%; }
}
