/* Direction: Murmur — sky-to-mint glass, frosted panels, one coral accent, rounded geometric headings */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #eef6fb;
  --surface: #ffffff;
  --surface-2: #f2f8fc;
  --border: #d3e2ee;
  --border-strong: #b1b0b2;
  --ink: #152231;
  --muted: #566e85;
  --accent: #f4522f;
  --accent-hover: #cf4628;
  --accent-ink: #220b07;
  --accent-text: #c93f22;
  --accent-strong: #b93b20;
  --accent-soft: #ffe7e1;
  --accent-border: #f1ac9f;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #d4e8e4;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #e7e2de;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #e8dce0;
  --danger-strong: #b91c1c;
  --chart-1: #f4522f;
  --chart-2: #a58a1b;
  --chart-3: #00914f;
  --chart-4: #1796ad;
  --chart-5: #5663ec;
  --chart-6: #d857c5;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --radius-card: 26px;
  --radius-btn: 999px;
  --radius-input: 999px;
  --card-pad: 1.25rem;
  --x-sky: #cfe5f7;
  --x-mint: #d6f2e5;
  --x-sky-dark: #0e2234;
  --x-mint-dark: #0c2a28;
  --x-glass: rgba(255, 255, 255, 0.62);
  --x-glass-dark: rgba(16, 27, 40, 0.58);
  --x-glass-line: rgba(255, 255, 255, 0.72);
  --x-glass-line-dark: rgba(255, 255, 255, 0.12);
  --x-mark: #ffe39a;
  --x-av-ink: #16293c;
  --x-av-1: #ffd7cb;
  --x-av-2: #cfe3ff;
  --x-av-3: #d7f1d9;
  --x-av-4: #ffe9b8;
  --x-av-5: #e4d9ff;
  --x-av-6: #c9f0ef;
  --x-av-7: #ffd9ec;
  --x-av-8: #e2ecc4;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #120603;
  --surface: #2a1f1c;
  --surface-2: #1e1210;
  --border: #332926;
  --border-strong: #59514f;
  --ink: #eef6fb;
  --muted: #969698;
  --accent: #f4522f;
  --accent-hover: #f66c4e;
  --accent-ink: #220b07;
  --accent-text: #f4522f;
  --accent-strong: #f56040;
  --accent-soft: #44170d;
  --accent-border: #782817;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #132110;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #361704;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #370b09;
  --danger-strong: #d16969;
  --chart-1: #f4522f;
  --chart-2: #ccaa1f;
  --chart-3: #169855;
  --chart-4: #1bbad6;
  --chart-5: #5e6df7;
  --chart-6: #f370de;
}

.glass {
  @apply border border-[var(--x-glass-line)] bg-[var(--x-glass)] backdrop-blur-xl dark:border-[var(--x-glass-line-dark)] dark:bg-[var(--x-glass-dark)];
}

@keyframes murmur-rise {
  from {
    transform: translateY(14px);
    opacity: 0.35;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.msg-in {
  animation: murmur-rise 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.msg-row:hover {
  background: var(--x-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

html[data-theme="dark"] .msg-row:hover {
  background: var(--x-glass-dark);
}

#messages:has(.msg-row) .msg-empty {
  display: none;
}

@keyframes murmur-found {
  from {
    box-shadow: 0 0 0 6px var(--accent-soft), 0 0 0 2px var(--accent);
  }
  to {
    box-shadow: 0 0 0 2px var(--accent-border);
  }
}

.msg-focus {
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-border);
  animation: murmur-found 1.6s ease-out 1;
}

html.reduced-motion .msg-focus {
  animation: none;
}

.thread-panel:empty {
  display: none;
}

#messages,
.thread-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

@media (max-width: 1023px) {
  .thread-panel:not(:empty) {
    position: fixed;
    inset: 0;
    z-index: 60;
    width: auto;
    max-width: none;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.24);
  }
}

html.reduced-motion .msg-in {
  animation: none;
}
