:root {
  color-scheme: dark;
  --font-body: "Manrope", sans-serif;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --heading-spacing: 0.01em;
  --radius-card: 22px;
  --radius-input: 16px;
  --radius-button: 18px;
  --radius-pill: 999px;
  --border-width: 1px;

  --bg: #080b1a;
  --bg-alt: #0d1126;
  --panel: #0f152d;
  --card: #151b36;
  --card-strong: #1b2344;
  --text: #f2f4ff;
  --muted: #9aa7d9;
  --accent: #48d6ff;
  --accent-soft: #b87dff;
  --accent-alt: #6bffde;
  --accent-rgb: 72, 214, 255;
  --accent-soft-rgb: 184, 125, 255;
  --accent-alt-rgb: 107, 255, 222;
  --warning: #ffb347;
  --warning-rgb: 255, 179, 71;
  --success: #4df2c5;
  --success-rgb: 77, 242, 197;
  --danger: #ff5f7a;
  --danger-rgb: 255, 95, 122;
  --toggle-on-color: var(--accent-alt);
  --toggle-off-color: #5b668f;
  --toggle-track-on: rgba(var(--accent-alt-rgb), 0.6);
  --toggle-track-off: rgba(91, 102, 143, 0.4);
  --border: #232c55;
  --shadow: rgba(2, 6, 23, 0.7);
  --glow: rgba(var(--accent-rgb), 0.35);
  --glow-strong: rgba(var(--accent-soft-rgb), 0.45);
  --accent-contrast: #031019;
  --accent-contrast-soft: #050814;
  --bg-elevated: #121936;
  --theme-color: #080b1a;

  --ambient-bg:
    radial-gradient(900px 900px at 10% 10%, rgba(var(--accent-rgb), 0.2), transparent 50%),
    radial-gradient(700px 700px at 80% 30%, rgba(var(--accent-soft-rgb), 0.18), transparent 45%),
    radial-gradient(600px 600px at 50% 90%, rgba(var(--accent-alt-rgb), 0.16), transparent 50%),
    #080b1a;

  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --card-shadow: 0 16px 30px rgba(2, 6, 23, 0.65), 0 0 28px rgba(var(--accent-rgb), 0.22), var(--card-inset);
  --card-backdrop: blur(14px);

  --btn-glow: 0 0 24px rgba(var(--accent-rgb), 0.25);
  --btn-glow-strong: 0 0 44px rgba(var(--accent-soft-rgb), 0.4);
  --primary-shadow: 0 16px 28px rgba(var(--accent-rgb), 0.35);
  --primary-disabled: rgba(var(--accent-rgb), 0.2);
  --ghost-selected: inset 0 0 0 1px rgba(var(--accent-rgb), 0.55);
  --slider-glow-on: 0 0 0 2px rgba(var(--accent-alt-rgb), 0.25);
  --slider-glow-on-strong: 0 0 8px rgba(var(--accent-alt-rgb), 0.6);
  --slider-glow-off: 0 0 0 2px rgba(var(--warning-rgb), 0.25);
  --slider-glow-off-strong: 0 0 8px rgba(var(--warning-rgb), 0.6);

  --header-bg: rgba(11, 16, 38, 0.92);
  --header-border: rgba(var(--accent-rgb), 0.5);
  --header-border-width: 1px;
  --header-text: #f2f4ff;
  --header-muted: #b9c6f5;
  --header-shadow: 0 18px 30px rgba(2, 6, 23, 0.7);

  --btn-secondary-bg: rgba(15, 21, 45, 0.8);
  --btn-secondary-border: rgba(var(--accent-rgb), 0.35);
  --btn-secondary-text: var(--text);
  --btn-secondary-hover: rgba(var(--accent-rgb), 0.15);

  --overlay: rgba(5, 9, 25, 0.72);

  --assistant-user-border: rgba(var(--accent-rgb), 0.65);

  --summary-bg: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-soft-rgb), 0.12));
  --summary-border: rgba(var(--accent-rgb), 0.5);
  --summary-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.2);
  --summary-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --avatar-gradient: linear-gradient(145deg, #6bffde, #3b84ff);
  --avatar-shadow: 0 4px 14px rgba(var(--accent-alt-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --avatar-shadow-strong: 0 6px 22px rgba(var(--accent-soft-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --badge-gradient: linear-gradient(90deg, rgba(var(--accent-rgb), 0.95), rgba(var(--accent-soft-rgb), 0.8));
  --badge-text: #02060f;

  --safety-bg: rgba(var(--warning-rgb), 0.12);
  --safety-border: rgba(var(--warning-rgb), 0.4);
  --safety-text: #ffd8a1;

  --issue-bg: rgba(var(--accent-rgb), 0.12);
  --issue-warning-bg: rgba(var(--warning-rgb), 0.1);
  --issue-slider-bg: rgba(var(--accent-rgb), 0.3);
  --issue-slider-warning-bg: rgba(var(--warning-rgb), 0.25);

  --hover-bg: rgba(var(--accent-rgb), 0.12);
  --warning-bg: rgba(var(--warning-rgb), 0.12);

  --modal-outline: rgba(var(--accent-rgb), 0.2);

  --timeline-user-bg: rgba(var(--accent-rgb), 0.18);
  --timeline-user-border: rgba(var(--accent-rgb), 0.45);
  --timeline-success: var(--success);
  --timeline-success-bg: rgba(var(--success-rgb), 0.16);
  --timeline-success-border: rgba(var(--success-rgb), 0.4);

  --check-response-bg: rgba(var(--accent-rgb), 0.14);
  --check-response-border: rgba(var(--accent-rgb), 0.35);

  --code-bg: #0c1126;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

body.auth-locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: var(--heading-spacing);
  margin: 0 0 0.4rem;
}

code,
pre {
  font-family: var(--font-mono);
}

p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

ul {
  margin: 0.6rem 0 0.6rem 1.2rem;
  padding: 0;
  color: var(--text);
}

li {
  margin-bottom: 0.4rem;
}

.ambient {
  position: fixed;
  inset: 0;
  background: var(--ambient-bg);
  z-index: -1;
  transition: background 0.6s ease;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.2rem 1rem;
  gap: 1.2rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-card);
  background: var(--header-bg);
  color: var(--header-text);
  border: 1px solid var(--header-border);
  border-bottom-width: var(--header-border-width);
  box-shadow: var(--header-shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-header p {
  color: var(--header-muted);
}

.app-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.2rem;
  color: var(--accent-soft);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.screen {
  display: none;
  animation: fadeUp 0.5s ease;
}

.screen.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: linear-gradient(145deg, var(--card), var(--card-strong));
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: 0 12px 24px var(--shadow);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.status-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.status-card strong {
  font-size: 1.4rem;
  display: block;
  margin-top: 0.3rem;
}

.screen-header {
  display: grid;
  gap: 0.3rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.2rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--card-backdrop);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 0.8rem;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-button);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font-body);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  box-shadow: var(--btn-glow), var(--btn-glow-strong);
}

.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: var(--btn-glow-strong);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-social:hover {
  background: #f5f5f5;
}

.btn-google {
  border-color: #4285f4;
}

.btn-apple {
  border-color: #000;
}

.btn-facebook {
  border-color: #1877f2;
}

.error-message {
  color: var(--warning);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.auth-status {
  min-height: 1.2rem;
}

.auth-status.error {
  color: var(--warning);
}

.hidden {
  display: none !important;
}

.notice {
  border-left: 3px solid var(--warning);
}

.form-card label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Actual Fix List */
.actual-fix-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.fix-option {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fix-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(0, 191, 255, 0.05);
}

.fix-option-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  margin: 0;
}

.fix-option-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.fix-option-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
}

.fix-option-name {
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.fix-option-probability {
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--muted);
  flex-shrink: 0;
}

.fix-option-probability.high {
  background: rgba(var(--warning-rgb), 0.12);
  color: var(--warning);
}

.fix-option-detail {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

fieldset legend {
  font-weight: 600;
  padding: 0 0.5rem;
  color: var(--text);
}

/* Symptom Form - Mobile First */
.symptom-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.symptom-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.symptom-form .field-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.symptom-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.symptom-form .form-field--half {
  min-width: 0;
}

.symptom-form .fault-hint {
  font-size: 0.8rem;
  margin: -0.5rem 0 0;
  min-height: 1.2rem;
}

/* Quick Checks - Compact Toggle Row */
.quick-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  flex: 1 1 auto;
  min-width: fit-content;
}

.quick-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-track {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--toggle-track-off);
  border-radius: 10px;
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.check-track::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.quick-check input:checked + .check-track {
  background: var(--toggle-track-on);
  border-color: transparent;
}

.quick-check input:checked + .check-track::after {
  transform: translateX(16px);
}

.check-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.model-autocomplete {
  position: relative;
}

.model-autocomplete input {
  padding-right: 2.4rem;
}

.model-spinner {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.model-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  box-shadow: 0 10px 24px var(--shadow);
  max-height: 240px;
  overflow-y: auto;
  padding: 0.35rem;
}

.model-suggestion {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: calc(var(--radius-input) - 2px);
  cursor: pointer;
  font-size: 0.95rem;
}

.model-suggestion:hover,
.model-suggestion:focus {
  background: var(--bg-alt);
}

.model-suggestion--empty {
  color: var(--muted);
  cursor: default;
}

.model-suggestion--custom {
  border: 1px dashed var(--border);
  margin-top: 0.2rem;
}

.model-search-card label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

.model-search-card .field-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.detail-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0.7rem;
}

.detail-label {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.detail-value {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

legend {
  font-size: 0.9rem;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 1rem;
}

/* Slider Toggle Component */
.slider-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.slider-group {
  display: grid;
  gap: 0.5rem;
}

.slider-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.slider-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}

.slider-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-option {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s ease;
  min-width: 28px;
  text-align: center;
}

.slider-option:first-of-type {
  text-align: right;
}

.slider-option:last-of-type {
  text-align: left;
}

.slider-toggle input:checked ~ .slider-option:last-of-type {
  color: var(--toggle-on-color);
  font-weight: 600;
}

.slider-toggle input:not(:checked) ~ .slider-option:last-of-type {
  color: var(--muted);
}

.slider-toggle:has(input:not(:checked)) .slider-option:first-of-type {
  color: var(--toggle-off-color);
  font-weight: 600;
}

.slider-track {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--card);
  border-radius: 13px;
  border: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.slider-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.slider-toggle input:checked + .slider-track {
  background: var(--toggle-track-on);
  border-color: var(--toggle-on-color);
  box-shadow: var(--slider-glow-on);
}

.slider-toggle input:checked + .slider-track::after {
  transform: translateX(22px);
  background: var(--toggle-on-color);
  box-shadow: var(--slider-glow-on-strong);
}

.slider-toggle input:not(:checked) + .slider-track {
  background: var(--toggle-track-off);
  border-color: var(--toggle-off-color);
  box-shadow: var(--slider-glow-off);
}

.slider-toggle input:not(:checked) + .slider-track::after {
  background: var(--toggle-off-color);
  box-shadow: var(--slider-glow-off-strong);
}

/* Legacy toggle (kept for compatibility) */
.toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem;
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 12px;
}

.toggle input {
  accent-color: var(--accent);
  width: auto;
}

.primary,
.ghost {
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-button);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}

.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--primary-shadow);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.ghost.selected {
  border-color: var(--accent);
  box-shadow: var(--ghost-selected);
}

.primary:disabled {
  background: var(--primary-disabled);
  color: var(--text);
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.footer-actions {
  display: grid;
  gap: 0.8rem;
}

.list-stack {
  display: grid;
  gap: 0.8rem;
}

.result-item {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 0.8rem;
  border: 1px solid var(--border);
  display: grid;
  gap: 0.4rem;
}

.result-item h4 {
  margin: 0;
}

.assistant-card {
  display: grid;
  gap: 0.8rem;
}

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.assistant-messages {
  display: grid;
  gap: 0.6rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.assistant-message {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 0.7rem;
  border: 1px solid var(--border);
  display: grid;
  gap: 0.4rem;
}

.assistant-message.user {
  border-color: var(--assistant-user-border);
}

.assistant-role {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.assistant-message pre {
  margin: 0;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  overflow-x: auto;
}

.assistant-section {
  display: grid;
  gap: 0.4rem;
}

.assistant-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
}

.assistant-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.assistant-section li {
  margin-bottom: 0.3rem;
}

.assistant-block {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.assistant-toolbar {
  display: flex;
  justify-content: flex-end;
}

.assistant-checklist {
  display: grid;
  gap: 0.5rem;
}

.assistant-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.assistant-check-input {
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.assistant-check-input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.assistant-question-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.assistant-recheck {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.assistant-recheck textarea {
  min-height: 90px;
}

.assistant-followup {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.assistant-followup-question {
  margin: 0;
  color: var(--text);
}

.assistant-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.assistant-followup-status {
  min-height: 1rem;
}

.assistant-followup-option.selected {
  border-color: var(--accent);
  box-shadow: var(--ghost-selected);
}

.assistant-followup-form {
  display: grid;
  gap: 0.6rem;
}

.assistant-form {
  display: grid;
  gap: 0.6rem;
}

.assistant-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

.assistant-status {
  min-height: 1.2rem;
}

.assistant-status.error {
  color: var(--warning);
}

.compact {
  width: auto;
  min-height: auto;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

.confidence {
  background: rgba(255, 255, 255, 0.08);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.confidence span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.muted {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Diagnostic Assessment Styles */
.diagnostic-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.diagnostic-loading p {
  color: var(--muted);
  margin: 0;
}

.diagnostic-content {
  display: grid;
  gap: 1.2rem;
}

.diagnostic-summary {
  background: var(--summary-bg);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  border: 1px solid var(--summary-border);
  box-shadow: var(--summary-shadow), var(--summary-inset);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 1.275rem;
}

.agent-avatar {
  width: 63px;
  height: 63px;
  background: var(--avatar-gradient);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: var(--avatar-shadow);
  animation: pulse-glow 3s ease-in-out infinite;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  display: block;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--avatar-shadow); }
  50% { box-shadow: var(--avatar-shadow-strong); }
}

.agent-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.agent-name {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agent-badge {
  font-size: 0.975rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--badge-text);
  background: var(--badge-gradient);
  padding: 0.3rem 0.75rem;
  border-radius: 9px;
  width: fit-content;
  font-weight: 500;
}

.agent-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin: 0.75rem 0 0.5rem;
  font-weight: 600;
}

.agent-message p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.diagnostic-summary p.agent-title {
  color: var(--accent-soft);
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.6rem;
  font-weight: 600;
}

/* Safety Section */
.safety-section {
  background: var(--safety-bg);
  border: 1px solid var(--safety-border);
  border-radius: 12px;
  overflow: hidden;
}

.safety-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--safety-text);
  list-style: none;
}

.safety-header::-webkit-details-marker {
  display: none;
}

.safety-header::after {
  content: '▸';
  margin-left: auto;
  transition: transform 0.2s ease;
}

.safety-section[open] .safety-header::after {
  transform: rotate(90deg);
}

.safety-list {
  margin: 0;
  padding: 0 1rem 0.8rem 2.5rem;
  color: var(--text);
}

.safety-list li {
  margin-bottom: 0.4rem;
}

/* Diagnostic Checks */
.diagnostic-checks-section {
  display: grid;
  gap: 0.6rem;
}

.diagnostic-checks {
  display: grid;
  gap: 0.8rem;
}

.diagnostic-check-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  transition: border-color 0.2s ease;
}

.diagnostic-check-item.completed {
  border-color: var(--accent);
  background: var(--issue-bg);
}

.diagnostic-check-item.has-issue {
  border-color: var(--warning);
  background: var(--issue-warning-bg);
}

.check-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-checkbox {
  margin-top: 0.15rem;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.check-content {
  flex: 1;
  display: grid;
  gap: 0.3rem;
}

.check-task {
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.check-expected {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.check-expected strong {
  color: var(--accent-soft);
}

.check-response {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.check-response.hidden {
  display: none;
}

.issue-slider-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.issue-slider-label {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 60px;
}

.issue-slider-label.active-no {
  color: var(--accent);
  font-weight: 600;
}

.issue-slider-label.active-yes {
  color: var(--warning);
  font-weight: 600;
}

.issue-slider {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--issue-slider-bg);
  border-radius: 14px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.issue-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.issue-slider.has-issue {
  background: var(--issue-slider-warning-bg);
  border-color: var(--warning);
}

.issue-slider.has-issue::after {
  transform: translateX(24px);
  background: var(--warning);
}

.check-feedback {
  width: 100%;
  min-height: 60px;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  resize: vertical;
}

.check-feedback::placeholder {
  color: var(--muted);
}

/* Clarification Questions */
.clarification-section {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.clarification-exchange {
  background: var(--card);
  border-radius: 10px;
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.clarification-question-display,
.clarification-answer-display {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.clarification-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent);
  min-width: 1.2rem;
  flex-shrink: 0;
}

.clarification-answer-display .clarification-label {
  color: var(--accent-soft);
}

.clarification-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

.clarification-answer-display .clarification-text {
  color: var(--muted);
}

.clarification-input-wrapper {
  display: grid;
  gap: 0.5rem;
}

.clarification-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.clarification-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--hover-bg);
}

.clarification-toggle.expanded {
  border-color: var(--accent);
  color: var(--accent);
}

.clarification-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.75rem;
  font-weight: 700;
}

.clarification-toggle-text {
  flex: 1;
}

.clarification-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.clarification-input-group.hidden {
  display: none;
}

.clarification-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.clarification-input:focus {
  outline: none;
  border-color: var(--accent);
}

.clarification-input::placeholder {
  color: var(--muted);
}

.clarification-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.clarification-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: var(--accent-contrast);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
}

.clarification-submit:hover:not(:disabled) {
  background: var(--accent-soft);
}

.clarification-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.clarification-submit-text.hidden {
  display: none;
}

.clarification-submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--accent-contrast);
  border-radius: 50%;
  animation: clarification-spin 0.8s linear infinite;
}

.clarification-submit-spinner.hidden {
  display: none;
}

@keyframes clarification-spin {
  to {
    transform: rotate(360deg);
  }
}

.clarification-error {
  padding: 0.5rem 0.75rem;
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  border-radius: 8px;
  color: var(--warning);
  font-size: 0.85rem;
  animation: clarification-error-fade 0.3s ease;
}

@keyframes clarification-error-fade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Possible Issues */
.diagnostic-issues-section {
  display: grid;
  gap: 0.6rem;
}

.diagnostic-issues {
  display: grid;
  gap: 0.6rem;
}

.possible-issue-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.5rem;
}

.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.issue-name {
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.issue-probability {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 45px;
  text-align: right;
}

.issue-probability.high {
  color: var(--warning);
}

.probability-bar {
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.probability-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.probability-bar-fill.high {
  background: linear-gradient(90deg, var(--warning), rgba(var(--warning-rgb), 0.4));
}

.issue-detail {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Continue Button */
#continue-diagnosis-btn {
  margin-top: 0.5rem;
}

#continue-diagnosis-btn:disabled {
  background: var(--primary-disabled);
  color: var(--text);
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.diagnostic-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.diagnostic-actions .full-width {
  width: 100%;
}

.diagnostic-actions .primary,
.diagnostic-actions .ghost {
  min-height: 48px;
}

.iteration-counter {
  text-align: center;
  margin: 0;
}

/* Error State */
.diagnostic-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  text-align: center;
}

.error-message {
  color: var(--warning);
  margin: 0;
}

.app-footer {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
}

/* Previous Jobs Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 400px;
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px var(--shadow);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(100%);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s;
}

.btn-icon:hover {
  color: var(--text);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.12);
  transition: box-shadow 0.2s;
}

.job-card:hover {
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.2);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.job-model {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.job-date {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.job-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.job-status.completed {
  background: rgba(var(--success-rgb), 0.2);
  color: var(--success);
}

.job-status.closed {
  background: rgba(var(--accent-soft-rgb), 0.2);
  color: var(--accent-soft);
}

.job-status.active {
  background: var(--issue-bg);
  color: var(--accent);
}

.job-summary {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.job-actions {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-link:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

.btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-link.delete {
  color: var(--warning);
}

.btn-link.delete:hover {
  color: rgba(var(--warning-rgb), 0.85);
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== */
/* Session Details Modal */
/* ==================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

.modal-container {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--modal-outline);
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.modal-header .muted {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.modal-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.modal-error {
  padding: 2rem 1rem;
  text-align: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-body.hidden {
  display: none;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Confirmation Modal */

.modal-confirm {
  max-width: 450px;
  max-height: none;
}

.confirm-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.session-summary {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.summary-label {
  color: var(--muted);
  font-weight: 500;
}

.summary-value {
  color: var(--text);
  font-weight: 600;
}

/* Conversation Timeline */

.conversation-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-message {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-message.user {
  align-items: flex-end;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.message-bubble {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  max-width: 85%;
  word-wrap: break-word;
}

.timeline-message.user .message-bubble {
  background: var(--timeline-user-bg);
  border-color: var(--timeline-user-border);
}

.message-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.clarification-question-text {
  font-style: italic;
  color: var(--accent-soft);
}

.clarification-answer-text {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  font-style: italic;
}

.clarification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.message-checks {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-check {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}

.timeline-check.completed {
  border-color: var(--timeline-success-border);
  background: var(--timeline-success-bg);
}

.timeline-check-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.timeline-check.completed .check-icon {
  background: var(--timeline-success-bg);
  border-color: var(--timeline-success);
  color: var(--timeline-success);
}

.check-task {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.check-expected {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.25rem 0 0 0;
  padding-left: 1.75rem;
}

.check-response {
  margin-top: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--check-response-bg);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text);
  border-left: 3px solid var(--check-response-border);
}

.check-response-label {
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.5rem;
}

.message-issues {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.timeline-issue {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}

.timeline-issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-issue-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.timeline-issue-probability {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--timeline-user-bg);
  color: var(--accent);
}

.timeline-issue-probability.high {
  background: rgba(var(--danger-rgb), 0.12);
  color: var(--danger);
}

.timeline-issue-bar {
  height: 4px;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.timeline-issue-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.timeline-issue-bar-fill.high {
  background: var(--danger);
}

.timeline-issue-detail {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .app-shell {
    max-width: 640px;
    margin: 0 auto;
  }

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

  .footer-actions {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}
