/* ==========================================================================
   AURA 2.0 — neo-futuristic AI workspace
   Palette, type, surfaces, and component system for the existing app.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #080914;
  --surface: #17152d;
  --elevated: #22203a;
  --elevated-soft: #1c1934;
  --violet: #925bff;
  --violet-deep: #6034c9;
  --violet-ink: #2b1b59;
  --cyan: #39e8ff;
  --lime: #d7ff65;
  --pink: #ff73c6;
  --text: #f7f5ff;
  --muted: #b5aed1;
  --border: #373055;
  --border-soft: rgba(55, 48, 85, 0.62);
  --border-bright: rgba(57, 232, 255, 0.28);
  --violet-wash: rgba(146, 91, 255, 0.12);
  --cyan-wash: rgba(57, 232, 255, 0.08);
  --lime-wash: rgba(215, 255, 101, 0.08);
  --pink-wash: rgba(255, 115, 198, 0.08);
  --sidebar-w: 248px;
  --rail-w: 336px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --shadow-panel: 0 24px 80px rgba(2, 3, 12, 0.36);
  --shadow-float: 0 12px 34px rgba(2, 3, 12, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 560px at 14% -10%, rgba(146, 91, 255, 0.16), transparent 62%),
    radial-gradient(760px 500px at 94% 2%, rgba(57, 232, 255, 0.08), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(146, 91, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 91, 255, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

::selection {
  background: rgba(215, 255, 101, 0.72);
  color: #090a15;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

button,
a,
select,
input[type="date"],
input[type="datetime-local"],
input[type="number"] {
  touch-action: manipulation;
}

button:not(:disabled),
a,
select:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.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;
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ==========================================================================
   Sidebar / navigation
   ========================================================================== */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  padding: 26px 18px 18px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(23, 21, 45, 0.94), rgba(8, 9, 20, 0.97)),
    var(--bg);
  border-right: 1px solid var(--border-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--text);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-icon {
  position: relative;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  color: #090a15;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #d5c2ff 0%, var(--violet) 45%, var(--cyan) 100%);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(146, 91, 255, 0.26);
}

.brand-icon::after {
  position: absolute;
  inset: 1px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
}

.brand-word {
  margin-left: 1px;
}

.brand-version {
  margin-left: 1px;
  padding: 2px 7px;
  color: var(--cyan);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(57, 232, 255, 0.08);
  border: 1px solid rgba(57, 232, 255, 0.22);
  border-radius: 99px;
}

.sidebar-eyebrow {
  margin: 30px 12px 10px;
  color: #8e86ae;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(146, 91, 255, 0.07);
  border-color: rgba(146, 91, 255, 0.16);
}

.nav-item.selected {
  color: var(--text);
  background: linear-gradient(90deg, rgba(146, 91, 255, 0.2), rgba(57, 232, 255, 0.035));
  border-color: rgba(146, 91, 255, 0.26);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.nav-icon {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #9a91ba;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-item:hover .nav-icon,
.nav-item.selected .nav-icon {
  color: var(--cyan);
  background: rgba(57, 232, 255, 0.08);
}

.sidebar-note {
  position: relative;
  margin-top: auto;
  padding: 19px 16px 15px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(146, 91, 255, 0.1), rgba(57, 232, 255, 0.025));
  border: 1px solid rgba(146, 91, 255, 0.2);
  border-radius: 15px;
}

.note-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sidebar-note strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.sidebar-note p {
  max-width: 170px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tiny-orbit {
  position: absolute;
  right: -12px;
  bottom: -16px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(57, 232, 255, 0.17);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(0.72);
  animation: slowTurn 18s linear infinite;
}

.tiny-orbit::before,
.tiny-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(146, 91, 255, 0.2);
  border-radius: 50%;
}

.tiny-orbit::before {
  inset: 14px;
}

.tiny-orbit::after {
  inset: 27px;
  background: radial-gradient(circle, rgba(57, 232, 255, 0.5), transparent 68%);
}

.tiny-orbit i {
  position: absolute;
  top: 8px;
  left: 18px;
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(215, 255, 101, 0.8);
}

.account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #090a15;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border-radius: 10px;
}

.account-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.account-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#logout {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

#logout:hover {
  color: var(--pink);
  background: var(--pink-wash);
  border-color: rgba(255, 115, 198, 0.3);
}

/* ==========================================================================
   Main shell / header
   ========================================================================== */

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  margin-left: var(--sidebar-w);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 40px;
  background: rgba(8, 9, 20, 0.72);
  border-bottom: 1px solid rgba(55, 48, 85, 0.4);
  backdrop-filter: blur(14px);
}

.header-title {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.breadcrumb {
  margin-right: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.header-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.presence {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  max-width: 240px;
  padding: 6px 10px;
  overflow: hidden;
  color: var(--lime);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--lime-wash);
  border: 1px solid rgba(215, 255, 101, 0.18);
  border-radius: 99px;
}

.presence::before {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(215, 255, 101, 0.72);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  align-items: start;
  gap: 24px;
  width: 100%;
  max-width: 1580px;
  padding: 26px 40px 0;
  margin: 0 auto;
}

.conversation {
  min-width: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  align-items: center;
  gap: 16px;
  min-height: 300px;
  padding: 34px 34px 30px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(142deg, rgba(34, 32, 58, 0.98), rgba(18, 16, 37, 0.98)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.intro::before {
  position: absolute;
  top: -180px;
  left: -110px;
  z-index: -1;
  width: 520px;
  height: 520px;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, rgba(146, 91, 255, 0.22), transparent 68%);
}

.intro::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 430px;
  height: 300px;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 70% 80%, rgba(57, 232, 255, 0.1), transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-copy .eyebrow {
  color: #c6b8ee;
}

.intro h1 {
  max-width: 620px;
  margin-top: 13px;
  color: var(--text);
  font-size: clamp(45px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.062em;
  line-height: 0.95;
}

.hero-accent {
  color: transparent;
  background: linear-gradient(105deg, #d8c9ff 0%, var(--violet) 44%, var(--cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-spark {
  display: inline-block;
  margin-left: 8px;
  color: var(--lime);
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(215, 255, 101, 0.58);
  transform: translateY(-23px) rotate(12deg);
  animation: sparkle 5s ease-in-out infinite;
}

#greeting {
  max-width: 470px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 17px;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 11px;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease;
}

.hero-primary {
  color: #0a0816;
  background: linear-gradient(105deg, #cbb6ff 0%, var(--violet) 44%, var(--cyan) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 26px rgba(146, 91, 255, 0.22);
}

.hero-primary span {
  font-size: 14px;
  line-height: 1;
}

.hero-primary:hover {
  box-shadow: 0 12px 32px rgba(57, 232, 255, 0.18);
  transform: translateY(-1px);
}

.hero-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.hero-secondary:hover {
  background: rgba(57, 232, 255, 0.06);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.intro-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.intro-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  color: #c0b8dc;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(8, 9, 20, 0.42);
  border: 1px solid rgba(55, 48, 85, 0.85);
  border-radius: 99px;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.dot-violet {
  background: var(--violet);
  box-shadow: 0 0 8px rgba(146, 91, 255, 0.9);
}

.dot-cyan {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(57, 232, 255, 0.78);
}

.dot-lime {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(215, 255, 101, 0.72);
}

.hero-visual {
  position: relative;
  display: grid;
  width: 100%;
  height: 218px;
  place-items: center;
  justify-self: end;
}

.hero-grid {
  position: absolute;
  inset: -15px;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(57, 232, 255, 0.22) 1px, transparent 1.4px);
  background-size: 13px 13px;
  mask-image: radial-gradient(circle, #000 0 25%, transparent 72%);
  opacity: 0.55;
}

.hero-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  background:
    radial-gradient(circle at 33% 26%, #fff 0, #d7c5ff 8%, #a277ff 24%, #7040dc 50%, #29135f 78%, #0b0820 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 22px rgba(57, 232, 255, 0.18),
    0 0 34px rgba(146, 91, 255, 0.32),
    0 0 84px rgba(57, 232, 255, 0.1);
  animation: orbBreathe 7s ease-in-out infinite;
}

.hero-orb::before {
  position: absolute;
  inset: -10px;
  content: "";
  border: 1px solid rgba(57, 232, 255, 0.25);
  border-radius: 50%;
}

.hero-orb::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-orb-core {
  color: #f7f5ff;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}

.hero-ring {
  position: absolute;
  width: 188px;
  height: 188px;
  border: 1px solid rgba(57, 232, 255, 0.2);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(0.38);
  animation: ringTurn 16s linear infinite;
}

.hero-ring-two {
  width: 152px;
  height: 152px;
  border-color: rgba(146, 91, 255, 0.26);
  transform: rotate(27deg) scaleY(0.55);
  animation-direction: reverse;
  animation-duration: 12s;
}

.hero-coord {
  position: absolute;
  z-index: 2;
  color: rgba(181, 174, 209, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.hero-coord-top {
  top: 0;
  left: 0;
}

.hero-coord-bottom {
  right: 0;
  bottom: 0;
}

/* ==========================================================================
   Momentum overview
   ========================================================================== */

.pulse {
  padding: 22px;
  margin-top: 19px;
  background: linear-gradient(160deg, rgba(23, 21, 45, 0.98), rgba(18, 16, 37, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.section-heading,
.pulse-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h2,
.pulse-heading h2 {
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

.pulse-range {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.pulse-range span {
  color: #d5cce9;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pulse-card {
  position: relative;
  min-width: 0;
  padding: 13px 12px 12px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(34, 32, 58, 0.8), rgba(23, 21, 45, 0.38));
  border: 1px solid rgba(55, 48, 85, 0.75);
  border-radius: 12px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.pulse-card::before {
  position: absolute;
  top: 0;
  left: 12px;
  width: 26px;
  height: 1px;
  content: "";
  background: var(--violet);
  box-shadow: 0 0 10px rgba(146, 91, 255, 0.8);
}

.pulse-card:hover {
  background: linear-gradient(165deg, rgba(34, 32, 58, 0.92), rgba(23, 21, 45, 0.52));
  border-color: rgba(146, 91, 255, 0.36);
  transform: translateY(-1px);
}

.pulse-done::before {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(215, 255, 101, 0.62);
}

.pulse-streak::before {
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255, 115, 198, 0.62);
}

.pulse-next::before {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(57, 232, 255, 0.62);
}

.stat-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-icon {
  display: grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  place-items: center;
  color: var(--violet);
  font-size: 10px;
  background: var(--violet-wash);
  border: 1px solid rgba(146, 91, 255, 0.15);
  border-radius: 6px;
}

.pulse-done .stat-icon {
  color: var(--lime);
  background: var(--lime-wash);
  border-color: rgba(215, 255, 101, 0.16);
}

.pulse-streak .stat-icon {
  color: var(--pink);
  background: var(--pink-wash);
  border-color: rgba(255, 115, 198, 0.16);
}

.pulse-next .stat-icon {
  color: var(--cyan);
  background: var(--cyan-wash);
  border-color: rgba(57, 232, 255, 0.16);
}

.pulse-progress .stat-icon {
  color: var(--cyan);
  background: var(--cyan-wash);
  border-color: rgba(57, 232, 255, 0.16);
}

.stat-value {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.stat-value.is-text {
  overflow: hidden;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-note {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-meter {
  height: 3px;
  margin-top: 11px;
  overflow: hidden;
  background: var(--elevated);
  border-radius: 99px;
}

.stat-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: inherit;
  transition: width 420ms ease;
}

/* ==========================================================================
   Planner / missions
   ========================================================================== */

.planner,
.mood-studio {
  padding: 24px;
  margin-top: 19px;
  background: linear-gradient(160deg, rgba(23, 21, 45, 0.98), rgba(18, 16, 37, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.planner-heading,
.mood-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.planner-heading h2,
.mood-heading h2 {
  margin-top: 4px;
  color: var(--text);
  font-size: 25px;
  font-weight: 600;
}

.planner-count,
.mix-sticker {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--cyan-wash);
  border: 1px solid rgba(57, 232, 255, 0.22);
  border-radius: 99px;
}

.planner-intro {
  max-width: 640px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.planner-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 7px;
  margin-top: 17px;
}

.planner-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-toolbar input,
.planner-year > label input {
  min-height: 36px;
  padding: 0 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.planner-toolbar input:hover,
.planner-toolbar input:focus,
.planner-year > label input:hover,
.planner-year > label input:focus {
  border-color: rgba(57, 232, 255, 0.38);
}

.planner-toolbar button,
.planner-year > label button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  background: rgba(34, 32, 58, 0.72);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.planner-toolbar button:hover,
.planner-year > label button:hover {
  color: var(--text);
  background: rgba(146, 91, 255, 0.09);
  border-color: rgba(146, 91, 255, 0.3);
}

#planner-add {
  margin-left: auto;
  color: #0a0816;
  background: linear-gradient(105deg, var(--lime), #b6ef3e);
  border-color: transparent;
}

#planner-add:hover {
  color: #0a0816;
  background: linear-gradient(105deg, #e2ff98, var(--lime));
  border-color: transparent;
}

progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  appearance: none;
  background: var(--elevated);
  border: 0;
  border-radius: 99px;
}

progress::-webkit-progress-bar {
  background: var(--elevated);
  border-radius: 99px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 99px;
  transition: width 350ms ease;
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 99px;
}

#planner-reminders,
#planner-error,
#task-error,
#context-status {
  min-height: 0;
}

#planner-reminders,
#planner-error {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.5;
}

#planner-reminders:empty,
#planner-error:empty {
  display: none;
}

#planner-error,
#task-error {
  color: var(--pink);
}

.planner-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  margin-top: 6px;
  color: var(--text);
  background: rgba(57, 232, 255, 0.055);
  border: 1px solid rgba(57, 232, 255, 0.16);
  border-radius: 9px;
}

.planner-nudge button {
  min-height: 28px;
  padding: 0 10px;
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 700;
  background: transparent;
  border: 1px solid rgba(57, 232, 255, 0.28);
  border-radius: 6px;
}

#planner-tasks {
  margin-top: 12px;
}

.planner-task {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  background: rgba(34, 32, 58, 0.52);
  border: 1px solid rgba(55, 48, 85, 0.72);
  border-radius: 11px;
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.planner-task + .planner-task {
  margin-top: 6px;
}

.planner-task:hover {
  background: rgba(34, 32, 58, 0.82);
  border-color: rgba(57, 232, 255, 0.22);
}

.planner-task.done {
  opacity: 0.62;
}

.planner-task input[type="checkbox"] {
  position: relative;
  display: grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  margin: 0;
  appearance: none;
  background: rgba(8, 9, 20, 0.46);
  border: 1px solid rgba(181, 174, 209, 0.36);
  border-radius: 7px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.planner-task input[type="checkbox"]::after {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  content: "";
  border-right: 2px solid #090a15;
  border-bottom: 2px solid #090a15;
  opacity: 0;
  transform: rotate(45deg) scale(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.planner-task input[type="checkbox"]:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 232, 255, 0.06);
}

.planner-task input[type="checkbox"]:checked {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 14px rgba(215, 255, 101, 0.2);
}

.planner-task input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.task-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.task-copy strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.planner-task.done .task-copy strong {
  color: #9d94bb;
  text-decoration: line-through;
  text-decoration-color: rgba(181, 174, 209, 0.45);
}

.task-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.task-copy small.task-overdue {
  color: var(--pink);
}

.task-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.task-controls button {
  min-height: 28px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(55, 48, 85, 0.9);
  border-radius: 6px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.task-controls button:hover {
  color: var(--text);
  background: rgba(57, 232, 255, 0.06);
  border-color: rgba(57, 232, 255, 0.26);
}

.task-controls button:last-child:hover {
  color: var(--pink);
  background: var(--pink-wash);
  border-color: rgba(255, 115, 198, 0.28);
}

.task-controls button:first-child:hover {
  color: var(--lime);
  background: var(--lime-wash);
  border-color: rgba(215, 255, 101, 0.28);
}

.planner-empty {
  padding: 22px 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  background: rgba(8, 9, 20, 0.25);
  border: 1px dashed rgba(55, 48, 85, 0.9);
  border-radius: 11px;
}

#planner-year {
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--border-soft);
}

.planner-year > label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.planner-month {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
  padding: 12px;
  background: rgba(34, 32, 58, 0.45);
  border: 1px solid rgba(55, 48, 85, 0.7);
  border-radius: 9px;
}

.planner-month h3 {
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.planner-month small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-month button {
  width: 100%;
  min-height: 26px;
  padding: 4px 7px;
  overflow: hidden;
  color: #c0b8dc;
  font-size: 11.5px;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(8, 9, 20, 0.28);
  border: 1px solid transparent;
  border-radius: 6px;
}

.planner-month button:hover {
  color: var(--text);
  background: rgba(57, 232, 255, 0.08);
  border-color: rgba(57, 232, 255, 0.2);
}

.planner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.planner-actions button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: rgba(34, 32, 58, 0.6);
  border: 1px solid rgba(55, 48, 85, 0.85);
  border-radius: 8px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.planner-actions button:hover {
  color: var(--text);
  background: rgba(146, 91, 255, 0.12);
  border-color: rgba(146, 91, 255, 0.35);
}

.planner-help {
  margin-top: 10px;
  color: #9d94be;
  font-size: 12px;
  line-height: 1.55;
}

body.mission-complete .planner {
  border-color: rgba(215, 255, 101, 0.34);
  box-shadow: 0 0 0 1px rgba(215, 255, 101, 0.06), 0 0 30px rgba(215, 255, 101, 0.05);
}

/* ==========================================================================
   Mood / vibe check
   ========================================================================== */

.mix-sticker {
  color: var(--lime);
  background: var(--lime-wash);
  border-color: rgba(215, 255, 101, 0.18);
  transform: rotate(1deg);
}

.mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.mood-chips button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: rgba(34, 32, 58, 0.54);
  border: 1px solid rgba(55, 48, 85, 0.85);
  border-radius: 99px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mood-chips button:hover {
  color: var(--text);
  background: rgba(57, 232, 255, 0.055);
  border-color: rgba(57, 232, 255, 0.24);
  transform: translateY(-1px);
}

.mood-chips button[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(105deg, rgba(146, 91, 255, 0.3), rgba(57, 232, 255, 0.08));
  border-color: rgba(57, 232, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(57, 232, 255, 0.06), 0 0 18px rgba(57, 232, 255, 0.05);
}

.mix-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.mix-summary p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mix-summary button,
.mix-footer button {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 700;
  background: transparent;
  border: 0;
}

.mix-summary button:hover,
.mix-footer button:hover {
  color: var(--text);
}

.mood-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.pick-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px;
  overflow: hidden;
  background: rgba(34, 32, 58, 0.44);
  border: 1px solid rgba(55, 48, 85, 0.74);
  border-radius: 11px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pick-card:hover {
  background: rgba(34, 32, 58, 0.7);
  border-color: rgba(146, 91, 255, 0.3);
  transform: translateY(-2px);
}

.pick-art {
  display: grid;
  width: 100%;
  height: 48px;
  margin-bottom: 9px;
  place-items: center;
  overflow: hidden;
  color: rgba(247, 245, 255, 0.86);
  font-family: var(--display);
  font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.pick-music .pick-art {
  background:
    radial-gradient(circle at 28% 30%, rgba(57, 232, 255, 0.32), transparent 34%),
    linear-gradient(112deg, #2b1d65, #4f2c9f);
}

.pick-movie .pick-art {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 115, 198, 0.25), transparent 32%),
    linear-gradient(112deg, #142447, #1a4169);
}

.pick-activity .pick-art {
  background:
    radial-gradient(circle at 28% 34%, rgba(215, 255, 101, 0.22), transparent 34%),
    linear-gradient(112deg, #26321a, #3a4a21);
}

.pick-food .pick-art {
  background:
    radial-gradient(circle at 70% 30%, rgba(146, 91, 255, 0.28), transparent 34%),
    linear-gradient(112deg, #3b1d45, #57265b);
}

.pick-card .eyebrow {
  overflow: hidden;
  color: #9c92bd;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-card h3 {
  margin-top: 4px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-card p {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pick-card a,
.pick-card > button {
  align-self: flex-start;
  padding: 0;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
}

.pick-card a:hover,
.pick-card > button:hover {
  color: var(--text);
}

.mix-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  margin-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.mix-footer span {
  color: #9d94be;
  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   Suggestions, thread, composer
   ========================================================================== */

.suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 19px;
}

.suggestions > button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(23, 21, 45, 0.78);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.suggestions > button:hover {
  background: rgba(34, 32, 58, 0.82);
  border-color: rgba(57, 232, 255, 0.24);
  transform: translateY(-1px);
}

.suggestion-icon {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--cyan);
  font-size: 12px;
  background: var(--cyan-wash);
  border: 1px solid rgba(57, 232, 255, 0.15);
  border-radius: 8px;
}

.suggestions > button:last-child .suggestion-icon {
  color: var(--lime);
  background: var(--lime-wash);
  border-color: rgba(215, 255, 101, 0.15);
}

.suggestion-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
  font-size: 10.5px;
  font-weight: 600;
}

.suggestion-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-arrow {
  flex: 0 0 auto;
  color: #8a80a8;
  font-size: 13px;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  max-height: 420px;
  padding: 16px;
  margin-top: 19px;
  overflow-y: auto;
  background: rgba(23, 21, 45, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.thread::-webkit-scrollbar {
  width: 4px;
}

.thread::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

.thread:empty::before {
  display: grid;
  flex: 1;
  min-height: 82px;
  place-items: center;
  color: #7d749b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  content: "Your conversation starts here. Ask anything, or start a voice call.";
  border: 1px dashed rgba(55, 48, 85, 0.8);
  border-radius: 10px;
}

.message {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 5px;
  max-width: 84%;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  background: rgba(34, 32, 58, 0.7);
  border: 1px solid rgba(55, 48, 85, 0.8);
  border-radius: 14px 14px 14px 4px;
}

.message small,
.typing-indicator small {
  color: #9c92bd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message.model small {
  color: var(--cyan);
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(146, 91, 255, 0.34), rgba(57, 232, 255, 0.07));
  border-color: rgba(146, 91, 255, 0.28);
  border-radius: 12px 12px 4px 12px;
}

.message.user small {
  color: #d7c9ff;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 9px 11px;
  background: rgba(34, 32, 58, 0.6);
  border: 1px solid rgba(55, 48, 85, 0.72);
  border-radius: 12px 12px 12px 4px;
}

.typing-indicator small {
  color: var(--cyan);
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.notice {
  padding: 9px 11px;
  margin-top: 10px;
  color: var(--text);
  font-size: 10px;
  line-height: 1.5;
  background: rgba(255, 115, 198, 0.08);
  border: 1px solid rgba(255, 115, 198, 0.22);
  border-radius: 9px;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 13px;
  margin-top: 11px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

.composer:focus-within {
  border-color: rgba(57, 232, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(57, 232, 255, 0.055);
}

.composer-field {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.composer textarea {
  width: 100%;
  min-height: 25px;
  max-height: 130px;
  padding: 4px 0;
  resize: none;
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.5;
  background: transparent;
  border: 0;
  outline: 0;
}

.composer textarea::placeholder {
  color: #847b9f;
}

.composer textarea:disabled {
  color: #7d749b;
}

.composer-hint {
  overflow: hidden;
  color: #8e86ae;
  font-size: 11.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

#send,
.composer-mic {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

#send {
  color: #090a15;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#send:hover:not(:disabled) {
  box-shadow: 0 0 22px rgba(57, 232, 255, 0.16);
  transform: translateY(-1px);
}

.composer-mic {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(55, 48, 85, 0.9);
}

.composer-mic svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.composer-mic:hover:not(:disabled) {
  color: var(--cyan);
  background: var(--cyan-wash);
  border-color: rgba(57, 232, 255, 0.3);
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.composer-footer span {
  color: #8e86ae;
  font-size: 11.5px;
  line-height: 1.45;
}

.composer-footer button {
  flex: 0 0 auto;
  padding: 0;
  color: #a89fca;
  font-size: 11.5px;
  font-weight: 600;
  background: transparent;
  border: 0;
}

.composer-footer button:hover {
  color: var(--pink);
}

/* ==========================================================================
   Voice card / orb
   ========================================================================== */

.call-card {
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(34, 32, 58, 0.98), rgba(17, 15, 35, 0.98)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.call-card::before {
  position: absolute;
  top: -130px;
  left: 50%;
  width: 310px;
  height: 260px;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, rgba(146, 91, 255, 0.2), transparent 70%);
  transform: translateX(-50%);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-top .eyebrow {
  color: #a99ec9;
  font-size: 11px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--cyan-wash);
  border: 1px solid rgba(57, 232, 255, 0.22);
  border-radius: 99px;
}

.live-pill::before {
  width: 4px;
  height: 4px;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(57, 232, 255, 0.82);
  animation: signalPulse 2.2s ease-in-out infinite;
}

.orb-scene {
  position: relative;
  display: grid;
  width: 100%;
  height: 224px;
  margin: 4px 0 2px;
  place-items: center;
}

.orb-halo {
  position: absolute;
  width: 178px;
  height: 178px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(146, 91, 255, 0.22), rgba(57, 232, 255, 0.035) 42%, transparent 70%);
  border-radius: 50%;
  animation: haloBreathe 7s ease-in-out infinite;
}

.orbit {
  position: absolute;
  width: 196px;
  height: 196px;
  pointer-events: none;
  border: 1px solid rgba(57, 232, 255, 0.16);
  border-radius: 50%;
  transform: rotate(-20deg) scaleY(0.38);
  animation: ringTurn 18s linear infinite;
}

.orbit-two {
  width: 158px;
  height: 158px;
  border-color: rgba(146, 91, 255, 0.24);
  transform: rotate(27deg) scaleY(0.56);
  animation-direction: reverse;
  animation-duration: 13s;
}

.orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  background:
    radial-gradient(circle at 33% 27%, #fff 0, #d7c5ff 7%, #a87cff 23%, #7240dd 50%, #2a1462 79%, #0b0820 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 23px rgba(57, 232, 255, 0.16),
    0 0 36px rgba(146, 91, 255, 0.3),
    0 0 78px rgba(57, 232, 255, 0.09);
  animation: orbBreathe 7s ease-in-out infinite;
}

.orb::before {
  position: absolute;
  inset: -9px;
  content: "";
  border: 1px solid rgba(57, 232, 255, 0.2);
  border-radius: 50%;
}

.orb::after {
  position: absolute;
  inset: 13px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.orb span {
  color: #f7f5ff;
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

.orb-shadow {
  position: absolute;
  bottom: 21px;
  width: 104px;
  height: 11px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.56);
  border-radius: 50%;
  filter: blur(7px);
}

.voice-wave {
  position: absolute;
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.voice-wave span {
  width: 3px;
  height: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: 99px;
  animation: voiceWave 0.95s ease-in-out infinite;
  animation-play-state: paused;
}

.voice-wave span:nth-child(2) {
  height: 9px;
  animation-delay: 0.1s;
}

.voice-wave span:nth-child(3) {
  height: 14px;
  animation-delay: 0.2s;
}

.voice-wave span:nth-child(4) {
  height: 8px;
  animation-delay: 0.3s;
}

.voice-wave span:nth-child(5) {
  height: 5px;
  animation-delay: 0.4s;
}

.orb-scene.active .voice-wave {
  opacity: 0.35;
}

.orb-scene.speaking .voice-wave {
  opacity: 1;
}

.orb-scene.active .voice-wave span,
.orb-scene.speaking .voice-wave span {
  animation-play-state: running;
}

.orb-scene.connecting .orb {
  animation: orbProcess 2.6s linear infinite;
}

.orb-scene.connecting .orbit {
  animation-duration: 4s;
}

.orb-scene.active .orb {
  box-shadow:
    inset 0 0 23px rgba(57, 232, 255, 0.22),
    0 0 42px rgba(57, 232, 255, 0.22),
    0 0 90px rgba(146, 91, 255, 0.16);
  animation: orbListen 4.2s ease-in-out infinite;
}

.orb-scene.speaking .orb {
  box-shadow:
    inset 0 0 25px rgba(215, 255, 101, 0.15),
    0 0 44px rgba(57, 232, 255, 0.3),
    0 0 100px rgba(146, 91, 255, 0.2);
  animation: orbSpeak 1.25s ease-in-out infinite;
}

.orb-scene.muted .voice-wave {
  opacity: 0.14;
}

.orb-scene.muted .orb {
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.08),
    0 0 28px rgba(146, 91, 255, 0.16);
}

.call-card h2 {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.06;
}

.call-card h2 span {
  color: transparent;
  background: linear-gradient(105deg, #d8c9ff, var(--violet) 46%, var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.call-card > p:not(.privacy) {
  max-width: 270px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.call-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  margin-top: 13px;
  color: #d9d1ef;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  background: rgba(8, 9, 20, 0.38);
  border: 1px solid rgba(57, 232, 255, 0.16);
  border-radius: 9px;
}

.voice-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin-top: 8px;
  background: rgba(8, 9, 20, 0.25);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
}

.voice-select label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.voice-select select {
  max-width: 160px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--text);
  font-size: 12.5px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  color: #0a0816;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(105deg, #d0baff, var(--violet) 45%, var(--cyan));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(146, 91, 255, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary:hover:not(:disabled) {
  box-shadow: 0 10px 28px rgba(57, 232, 255, 0.16);
  transform: translateY(-1px);
}

#call {
  margin-top: 9px;
}

#call::before {
  content: "◉";
  font-size: 12px;
}

.call-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.call-controls button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

#mute[aria-pressed="true"] {
  color: var(--cyan);
  background: var(--cyan-wash);
  border-color: rgba(57, 232, 255, 0.3);
}

#hangup {
  color: var(--pink);
  background: var(--pink-wash);
  border-color: rgba(255, 115, 198, 0.24);
}

.caption {
  min-height: 0;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.5;
}

.caption:empty {
  display: none;
}

.privacy {
  padding-top: 10px;
  margin-top: 11px;
  color: #9d94be;
  font-size: 11.5px;
  line-height: 1.55;
  border-top: 1px solid var(--border-soft);
}

.card-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
  color: #a89fca;
  font-size: 11.5px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1580px;
  padding: 22px 40px 28px;
  margin: 0 auto;
  color: #8e86ae;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Dialogs
   ========================================================================== */

dialog {
  position: fixed;
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 27px;
  overflow-y: auto;
  color: var(--text);
  background:
    linear-gradient(165deg, rgba(34, 32, 58, 0.99), rgba(19, 17, 38, 0.99)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 21px;
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.55);
}

dialog[open] {
  animation: dialogIn 220ms ease both;
}

dialog::backdrop {
  background: rgba(4, 4, 12, 0.76);
  backdrop-filter: blur(5px);
}

dialog form {
  position: relative;
}

dialog .eyebrow {
  color: var(--cyan);
  font-size: 11px;
}

dialog h2 {
  max-width: 430px;
  margin-top: 8px;
  color: var(--text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.02;
}

dialog h2 span {
  color: transparent;
  background: linear-gradient(105deg, var(--lime), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

dialog p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

dialog label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

dialog input,
dialog textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  background: rgba(8, 9, 20, 0.42);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

dialog input:focus,
dialog textarea:focus {
  border-color: rgba(57, 232, 255, 0.42);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(57, 232, 255, 0.055);
}

dialog textarea {
  min-height: 130px;
  resize: vertical;
}

dialog input::placeholder,
dialog textarea::placeholder {
  color: #786f95;
}

dialog small {
  display: block;
  margin-top: 7px;
  color: #9d94be;
  font-size: 12px;
  line-height: 1.5;
}

dialog .primary {
  margin-top: 16px;
}

.close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 3;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 160ms ease, border-color 160ms ease;
}

.close:hover {
  color: var(--text);
  border-color: rgba(255, 115, 198, 0.36);
}

#task-zone {
  margin-top: 7px;
  color: #9d94be;
  font-size: 11.5px;
}

#task-error,
#context-status {
  margin-top: 9px;
  font-size: 12px;
}

#reward-dialog {
  width: min(610px, calc(100% - 24px));
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 50% -20%, rgba(215, 255, 101, 0.09), transparent 70%),
    linear-gradient(165deg, #1d1a38, #121026);
}

.reward-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 460px;
  height: 330px;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(215, 255, 101, 0.12), transparent 54%),
    radial-gradient(circle at 70% 50%, rgba(255, 115, 198, 0.1), transparent 54%);
  transform: translateX(-50%);
}

#reward-dialog > *:not(.reward-glow):not(.close) {
  position: relative;
  z-index: 1;
}

#reward-dialog #reward-for {
  color: #e3dcf5;
  font-size: 11px;
}

#reward-result {
  margin-top: 15px;
}

#reward-result:not([hidden]) {
  animation: rewardIn 360ms ease both;
}

.reward-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 32, 58, 0.96), rgba(23, 21, 45, 0.94));
  border: 1px solid rgba(215, 255, 101, 0.3);
  border-radius: 15px;
}

.ticket-body {
  min-width: 0;
  padding: 16px;
}

.ticket-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #a59bc1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ticket-kicker {
  display: block;
  margin-top: 17px;
  color: var(--lime);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ticket-body h3 {
  margin-top: 4px;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.ticket-body p {
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.ticket-body a {
  display: inline-block;
  margin-top: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.ticket-body a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(57, 232, 255, 0.6);
}

.ticket-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(215, 255, 101, 0.11), rgba(255, 115, 198, 0.08));
  border-left: 1px dashed rgba(215, 255, 101, 0.3);
}

.ticket-stub::before,
.ticket-stub::after {
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  content: "";
  background: #14112a;
  border-radius: 50%;
}

.ticket-stub::before {
  top: -7px;
}

.ticket-stub::after {
  bottom: -7px;
}

.ticket-stub span {
  color: var(--lime);
  font-size: 22px;
  text-shadow: 0 0 18px rgba(215, 255, 101, 0.55);
}

.ticket-stub small {
  margin: 0;
  color: #c7dc93;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.reward-footnote {
  margin-top: 12px;
  color: #9d94be !important;
  font-size: 12px !important;
  text-align: center;
}

/* Confetti celebratory burst for earned rewards */
.confetti-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 10;
}

.confetti-burst span {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color, var(--lime));
  box-shadow: 0 0 10px var(--color, var(--lime));
  animation: confettiFly 0.8s cubic-bezier(0.18, 0.89, 0.32, 1) forwards;
}

@keyframes confettiFly {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(var(--rot)); opacity: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1320px) {
  :root {
    --sidebar-w: 224px;
    --rail-w: 310px;
  }

  .workspace {
    gap: 20px;
    padding-right: 30px;
    padding-left: 30px;
  }

  header {
    padding-right: 30px;
    padding-left: 30px;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) 178px;
    padding: 29px;
  }

  .hero-visual {
    height: 190px;
  }

  .hero-ring {
    width: 164px;
    height: 164px;
  }

  .hero-ring-two {
    width: 132px;
    height: 132px;
  }

  .hero-orb {
    width: 104px;
    height: 104px;
  }

  .call-card {
    padding: 18px;
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-w: 80px;
    --rail-w: 292px;
  }

  .sidebar {
    align-items: center;
    padding: 22px 11px 15px;
  }

  .brand {
    justify-content: center;
  }

  .brand-word,
  .brand-version,
  .sidebar-eyebrow,
  .sidebar-note,
  .account-copy {
    display: none;
  }

  .sidebar nav {
    width: 100%;
    margin-top: 28px;
  }

  .nav-item {
    justify-content: center;
    min-height: 44px;
    padding: 0;
  }

  .nav-item > span:not(.nav-icon) {
    display: none;
  }

  .nav-icon {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
    font-size: 13px;
  }

  .account {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-top: 14px;
    margin-top: auto;
  }

  .workspace {
    gap: 18px;
    padding-right: 28px;
    padding-left: 28px;
  }

  header {
    padding-right: 28px;
    padding-left: 28px;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) 150px;
    padding: 26px;
  }

  .intro h1 {
    font-size: clamp(42px, 5.1vw, 58px);
  }

  .hero-visual {
    height: 168px;
  }

  .hero-orb {
    width: 92px;
    height: 92px;
  }

  .hero-orb-core {
    font-size: 22px;
  }

  .hero-ring {
    width: 146px;
    height: 146px;
  }

  .hero-ring-two {
    width: 118px;
    height: 118px;
  }

  .hero-coord {
    font-size: 9.5px;
  }

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

  .pulse-progress {
    grid-column: span 2;
  }

  .call-card {
    top: 82px;
  }
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    max-width: 880px;
    padding-top: 22px;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) 188px;
  }

  .call-card {
    position: relative;
    top: auto;
    justify-self: center;
    width: 100%;
    max-width: 570px;
    margin-top: 4px;
  }

  .call-card h2 {
    font-size: 27px;
  }

  .orb-scene {
    height: 212px;
  }

  footer {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 760px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 26px 23px;
  }

  .hero-visual {
    display: none;
  }

  .hero-spark {
    transform: translateY(-17px) rotate(12deg);
  }

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

  .pulse-progress {
    grid-column: span 2;
  }

  .planner,
  .mood-studio {
    padding: 20px;
  }

  .planner-heading h2,
  .mood-heading h2 {
    font-size: 22px;
  }

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

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

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

  header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .workspace {
    padding-right: 20px;
    padding-left: 20px;
  }

  footer {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .sidebar {
    inset: 0 0 auto;
    flex-direction: row;
    width: 100%;
    height: 62px;
    padding: 0 13px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
  }

  .brand {
    flex: 0 0 auto;
    min-height: 36px;
    font-size: 18px;
  }

  .brand-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 17px;
    border-radius: 10px;
  }

  .sidebar nav {
    flex: 0 1 auto;
    flex-direction: row;
    gap: 2px;
    width: auto;
    margin: 0 0 0 auto;
  }

  .nav-item {
    flex: 0 0 38px;
    width: 38px;
    min-height: 38px;
    border-radius: 9px;
  }

  .nav-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .account {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 5px;
    width: auto;
    padding: 0;
    margin: 0 0 0 7px;
    border: 0;
  }

  .avatar {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 11px;
    border-radius: 9px;
  }

  #logout {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  main {
    padding-top: 62px;
    margin-left: 0;
  }

  header {
    top: 62px;
    min-height: 52px;
    padding: 8px 16px;
  }

  .header-title {
    font-size: 13px;
  }

  .breadcrumb {
    font-size: 10.5px;
  }

  .header-date {
    display: none;
  }

  .presence {
    max-width: 175px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .workspace {
    gap: 17px;
    padding: 16px 16px 0;
  }

  .intro {
    padding: 23px 19px 21px;
    border-radius: 19px;
  }

  .intro h1 {
    font-size: clamp(40px, 12.5vw, 56px);
    letter-spacing: -0.065em;
  }

  .hero-spark {
    font-size: 16px;
    transform: translateY(-13px) rotate(12deg);
  }

  #greeting {
    font-size: 13px;
  }

  .hero-actions {
    gap: 7px;
    margin-top: 18px;
  }

  .hero-primary,
  .hero-secondary {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .intro-pills {
    gap: 5px;
    margin-top: 16px;
  }

  .intro-pills span {
    font-size: 11px;
  }

  .pulse,
  .planner,
  .mood-studio {
    padding: 17px;
    border-radius: 14px;
  }

  .section-heading h2,
  .pulse-heading h2 {
    font-size: 20px;
  }

  .pulse-range {
    font-size: 10.5px;
  }

  .stat-value {
    margin-top: 13px;
    font-size: 26px;
  }

  .stat-value.is-text {
    font-size: 16px;
  }

  .stat-top {
    font-size: 10.5px;
  }

  .planner-heading,
  .mood-heading {
    gap: 9px;
  }

  .planner-heading h2,
  .mood-heading h2 {
    font-size: 21px;
  }

  .planner-count,
  .mix-sticker {
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .planner-intro {
    font-size: 12.5px;
  }

  .planner-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .planner-toolbar label {
    grid-column: 1 / -1;
  }

  .planner-toolbar button {
    width: 100%;
    padding: 0 7px;
    font-size: 12px;
  }

  #planner-add {
    margin-left: 0;
  }

  .planner-task {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .task-controls {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 3px;
  }

  .task-controls button {
    min-height: 26px;
    font-size: 11px;
  }

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

  .planner-actions {
    gap: 5px;
  }

  .planner-actions button {
    flex: 1 1 auto;
    padding: 0 8px;
    font-size: 11.5px;
  }

  .planner-help {
    font-size: 11px;
  }

  .mood-chips {
    gap: 5px;
  }

  .mood-chips button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .mix-summary p {
    font-size: 12px;
  }

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

  .pick-art {
    height: 44px;
  }

  .mix-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .suggestions {
    gap: 6px;
  }

  .thread {
    min-height: 105px;
    max-height: 330px;
    padding: 12px;
  }

  .message {
    max-width: 92%;
    font-size: 11px;
  }

  .composer {
    padding-left: 11px;
  }

  .composer-hint {
    display: none;
  }

  .composer-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .call-card {
    max-width: 100%;
    padding: 17px;
    border-radius: 19px;
  }

  .orb-scene {
    height: 205px;
  }

  .call-card h2 {
    font-size: 24px;
  }

  .call-card > p:not(.privacy) {
    font-size: 12.5px;
  }

  .card-bottom {
    font-size: 11px;
  }

  dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 22px 18px;
    border-radius: 17px;
  }

  dialog h2 {
    font-size: 26px;
  }

  .close {
    top: 8px;
    right: 8px;
  }

  .reward-ticket {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .ticket-body {
    padding: 13px;
  }

  .ticket-body h3 {
    font-size: 20px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 18px 16px 22px;
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .brand-word,
  .brand-version {
    display: none;
  }

  .sidebar {
    padding: 0 9px;
  }

  .nav-item {
    flex-basis: 34px;
    width: 34px;
  }

  .account {
    margin-left: 4px;
  }

  .hero-primary,
  .hero-secondary {
    flex: 1 1 auto;
  }

  .stat-value {
    font-size: 23px;
  }

  .stat-note {
    font-size: 10.5px;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .orb-scene {
    height: 188px;
  }

  .orb {
    width: 96px;
    height: 96px;
  }

  .orb-halo {
    width: 154px;
    height: 154px;
  }

  .orbit {
    width: 168px;
    height: 168px;
  }

  .orbit-two {
    width: 136px;
    height: 136px;
  }

  .call-card h2 {
    font-size: 23px;
  }

  .call-card > p:not(.privacy) {
    margin-top: 5px;
  }

  .call-status {
    margin-top: 9px;
  }

  .privacy {
    margin-top: 8px;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes orbBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes haloBreathe {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes ringTurn {
  to {
    transform: rotate(342deg) scaleY(0.38);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.64;
    transform: translateY(-23px) rotate(12deg) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translateY(-23px) rotate(22deg) scale(1.08);
  }
}

@keyframes slowTurn {
  to {
    transform: rotate(342deg) scaleY(0.72);
  }
}

@keyframes signalPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes voiceWave {
  0%,
  100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1.4);
  }
}

@keyframes orbListen {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.055);
  }
}

@keyframes orbProcess {
  0% {
    transform: scale(0.98) rotate(0deg);
  }
  50% {
    transform: scale(1.04) rotate(180deg);
  }
  100% {
    transform: scale(0.98) rotate(360deg);
  }
}

@keyframes orbSpeak {
  0%,
  100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.07);
  }
  70% {
    transform: scale(1.025);
  }
}

@keyframes rewardIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
