:root {
  color-scheme: dark;
  --bg: #05080b;
  --bg-soft: #080d11;
  --sidebar: rgba(6, 11, 15, 0.96);
  --panel: rgba(10, 17, 22, 0.88);
  --panel-raised: rgba(13, 23, 29, 0.94);
  --panel-hover: rgba(16, 29, 36, 0.96);
  --line: rgba(135, 208, 207, 0.12);
  --line-strong: rgba(109, 233, 226, 0.26);
  --text: #e5f0ef;
  --muted: #74898a;
  --muted-bright: #9db0b0;
  --cyan: #6de9e2;
  --cyan-bright: #b0fff9;
  --cyan-dim: #2e817e;
  --cyan-wash: rgba(68, 211, 204, 0.09);
  --amber: #e6b85c;
  --red: #ef746f;
  --green: #75e6b3;
  --blue: #79aeee;
  --radius: 3px;
  --voice-level: 0;
  --font-sans: "Avenir Next", "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 52% -15%, rgba(53, 141, 141, 0.12), transparent 31rem),
    radial-gradient(circle at 94% 85%, rgba(15, 73, 83, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.ambient-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(90, 190, 190, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 190, 190, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 244px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  backdrop-filter: blur(20px);
}

.brand {
  height: 78px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--cyan-bright);
  border: 1px solid var(--cyan-dim);
  transform: rotate(45deg);
  box-shadow: inset 0 0 16px rgba(109, 233, 226, 0.12), 0 0 22px rgba(109, 233, 226, 0.07);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-color: var(--cyan);
  border-style: solid;
}

.brand-mark::before {
  top: -2px;
  left: -2px;
  border-width: 1px 0 0 1px;
}

.brand-mark::after {
  right: -2px;
  bottom: -2px;
  border-width: 0 1px 1px 0;
}

.brand-mark span {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  transform: rotate(-45deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.28em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.primary-nav {
  flex: 1;
  padding: 21px 14px;
  overflow-y: auto;
}

.nav-label {
  margin: 0 10px 8px;
  color: #4e6162;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-label-work {
  margin-top: 31px;
}

.nav-item {
  position: relative;
  min-height: 42px;
  margin-bottom: 3px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 11px;
  color: var(--muted-bright);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: 160ms ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: transparent;
  box-shadow: none;
}

.nav-item svg,
.privacy-icon svg,
.icon-button svg,
.mic-button svg,
.send-button svg,
.clear-ring svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span:not(.nav-count) {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(109, 233, 226, 0.035);
}

.nav-item.active {
  color: var(--cyan);
  border-color: rgba(109, 233, 226, 0.1);
  background: linear-gradient(90deg, rgba(109, 233, 226, 0.1), rgba(109, 233, 226, 0.025));
}

.nav-item.active::before {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.nav-count {
  min-width: 22px;
  padding: 2px 5px;
  color: var(--muted);
  background: rgba(129, 161, 162, 0.08);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}

.nav-chevron {
  color: var(--muted);
  font-size: 15px !important;
}

.nav-tree {
  margin: 7px 0 0 21px;
  padding-left: 21px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.nav-tree a {
  position: relative;
  padding: 7px 0;
  color: #657879;
  font-size: 11px;
  transition: color 150ms ease;
}

.nav-tree a::before {
  content: "";
  position: absolute;
  width: 13px;
  top: 50%;
  right: calc(100% + 8px);
  border-top: 1px solid var(--line);
}

.nav-tree a:hover,
.nav-tree a:last-child {
  color: var(--muted-bright);
}

.sidebar-footer {
  min-height: 83px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

.privacy-state {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.privacy-state > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.privacy-state strong {
  color: var(--muted-bright);
  font-size: 10px;
  font-weight: 600;
}

.privacy-state small {
  overflow: hidden;
  color: #536566;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.privacy-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--cyan-dim);
  border: 1px solid var(--line);
  background: var(--cyan-wash);
}

.privacy-icon svg {
  width: 15px;
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 58px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 12, 0.86);
  backdrop-filter: blur(18px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.breadcrumb span,
.breadcrumb i {
  color: #526566;
  font-style: normal;
}

.breadcrumb strong {
  color: var(--muted-bright);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 19px;
}

.system-state {
  height: 25px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.signal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 7px var(--amber);
}

.system-state[data-state="online"] {
  color: var(--green);
  border-color: rgba(117, 230, 179, 0.18);
}

.system-state[data-state="online"] .signal-dot {
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}

.system-state[data-state="offline"] {
  color: var(--red);
  border-color: rgba(239, 116, 111, 0.18);
}

.system-state[data-state="offline"] .signal-dot {
  background: var(--red);
  box-shadow: 0 0 7px var(--red);
}

.clock {
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
}

.clock strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.clock span {
  margin-top: 1px;
  color: #586b6c;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.icon-button {
  width: 31px;
  height: 31px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: 150ms ease;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button:hover,
.icon-button[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--line-strong);
  background: var(--cyan-wash);
}

.menu-button,
.sidebar-close {
  display: none;
}

.dashboard {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 42px 35px 24px;
}

.intro {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--cyan-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 16px;
  height: 1px;
  margin: 0 7px 3px 0;
  background: var(--cyan-dim);
}

.intro h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 300;
  letter-spacing: -0.035em;
}

.intro-copy {
  margin: 8px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.readiness {
  min-width: 242px;
  padding-bottom: 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
}

.readiness > span {
  color: #526566;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.readiness > strong {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.readiness-bar {
  height: 2px;
  overflow: hidden;
  background: rgba(109, 233, 226, 0.1);
}

.readiness-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 7px var(--cyan);
  transition: width 700ms ease;
}

.command-deck {
  position: relative;
  min-height: 246px;
  padding: 30px 32px 30px 287px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(115deg, rgba(20, 49, 54, 0.19), transparent 44%),
    linear-gradient(90deg, rgba(10, 19, 24, 0.97), rgba(7, 13, 17, 0.9));
  box-shadow: inset 0 0 70px rgba(53, 180, 174, 0.025), 0 22px 80px rgba(0, 0, 0, 0.15);
}

.command-deck::before,
.command-deck::after,
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.command-deck::before,
.panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
}

.command-deck::after,
.panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--cyan-dim);
  border-bottom: 1px solid var(--cyan-dim);
}

.orb-stage {
  position: absolute;
  left: 27px;
  top: 50%;
  width: 222px;
  height: 222px;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 calc(4px + var(--voice-level) * 24px) rgba(109, 233, 226, calc(0.05 + var(--voice-level) * 0.28)));
  transition: filter 90ms linear;
}

.orb-radar,
.orb-ring,
.orb-core {
  position: absolute;
  border-radius: 50%;
}

.orb-radar {
  inset: 0;
  opacity: 0.5;
  border: 1px solid rgba(109, 233, 226, 0.08);
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(109, 233, 226, 0.08) 50%, transparent 50.4%),
    linear-gradient(transparent 49.6%, rgba(109, 233, 226, 0.08) 50%, transparent 50.4%),
    repeating-radial-gradient(circle, transparent 0 24px, rgba(109, 233, 226, 0.08) 25px 26px);
}

.orb-radar::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 76%, rgba(109, 233, 226, 0.15) 91%, transparent 100%);
  animation: radar-sweep 5s linear infinite;
}

.voice-spectrum {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  opacity: 0.17;
  transition: opacity 220ms ease;
}

.voice-spectrum span {
  position: absolute;
  left: calc(50% - 1px);
  top: 50%;
  width: 2px;
  height: calc(3px + var(--bar, 0) * 17px);
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--cyan-bright), rgba(109, 233, 226, 0));
  box-shadow: 0 0 calc(2px + var(--bar, 0) * 6px) rgba(109, 233, 226, 0.55);
  transform: rotate(calc(var(--i) * 10deg)) translateY(-101px);
  transform-origin: 1px 0;
  transition: height 55ms linear;
}

.command-deck.voice-active .voice-spectrum {
  opacity: calc(0.42 + var(--voice-level) * 0.58);
}

.command-deck.voice-active .orb-radar {
  opacity: calc(0.52 + var(--voice-level) * 0.4);
}

.command-deck.voice-active .ring-one {
  inset: calc(34px - var(--voice-level) * 7px);
  border-color: rgba(109, 233, 226, calc(0.3 + var(--voice-level) * 0.45));
}

.command-deck.voice-active .ring-two {
  inset: calc(53px - var(--voice-level) * 5px);
  box-shadow: 0 0 calc(30px + var(--voice-level) * 38px) rgba(109, 233, 226, calc(0.08 + var(--voice-level) * 0.2));
}

.orb-ring {
  border: 1px solid rgba(109, 233, 226, 0.3);
}

.ring-one {
  inset: 34px;
  border-style: dashed;
  animation: orbit 22s linear infinite;
}

.ring-two {
  inset: 53px;
  border-color: rgba(109, 233, 226, 0.16);
  box-shadow: 0 0 30px rgba(109, 233, 226, 0.08);
}

.ring-two::before,
.ring-two::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 7px var(--cyan);
}

.ring-two::before {
  top: 6px;
  left: 22px;
}

.ring-two::after {
  right: 9px;
  bottom: 17px;
}

.orb-core {
  inset: 73px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cyan-bright);
  border: 1px solid rgba(176, 255, 249, 0.58);
  background: radial-gradient(circle at 38% 30%, #7ae6df, #184b50 45%, #08171d 73%);
  box-shadow:
    0 0 15px rgba(109, 233, 226, 0.5),
    0 0 44px rgba(109, 233, 226, 0.22),
    inset 0 0 22px rgba(182, 255, 250, 0.15);
  animation: core-breathe 3.6s ease-in-out infinite;
  transition: box-shadow 80ms linear;
}

.command-deck.voice-active .orb-core {
  box-shadow:
    0 0 calc(15px + var(--voice-level) * 25px) rgba(109, 233, 226, calc(0.5 + var(--voice-level) * 0.35)),
    0 0 calc(44px + var(--voice-level) * 60px) rgba(109, 233, 226, calc(0.22 + var(--voice-level) * 0.3)),
    inset 0 0 calc(22px + var(--voice-level) * 18px) rgba(182, 255, 250, calc(0.15 + var(--voice-level) * 0.25));
}

.orb-letter {
  position: relative;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 300;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
}

.orb-glint {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  transform: rotate(-35deg);
}

.command-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.command-heading {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.micro-label {
  color: var(--cyan-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.command-heading h2 {
  margin: 5px 0 0;
  color: #dceaea;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 300;
}

.listening-state {
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.listening-state span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan-dim);
}

.listening-state em {
  color: #587171;
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.16em;
}

.listening-state.active span {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 0.8s ease infinite;
}

.listening-state.active em {
  color: var(--cyan);
}

.command-form {
  position: relative;
  height: 57px;
  padding: 0 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(109, 233, 226, 0.22);
  background: rgba(2, 8, 11, 0.72);
  box-shadow: inset 0 0 24px rgba(109, 233, 226, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.command-form:focus-within {
  border-color: rgba(109, 233, 226, 0.55);
  box-shadow: 0 0 24px rgba(109, 233, 226, 0.07), inset 0 0 24px rgba(109, 233, 226, 0.025);
}

.command-form input {
  min-width: 0;
  flex: 1;
  padding: 0 7px;
  color: var(--text);
  outline: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.command-form input::placeholder {
  color: #506465;
}

.command-form kbd {
  padding: 3px 5px;
  color: #496061;
  border: 1px solid rgba(117, 151, 151, 0.11);
  background: rgba(117, 151, 151, 0.04);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.mic-button,
.send-button {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--cyan-dim);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mic-button svg,
.send-button svg {
  position: relative;
  z-index: 2;
  width: 19px;
  height: 19px;
}

.mic-button:hover,
.mic-button.active {
  color: var(--cyan);
}

.mic-button.unsupported {
  color: #465859;
  cursor: not-allowed;
}

.mic-ripple {
  position: absolute;
  inset: 4px;
  border: 1px solid transparent;
  border-radius: 50%;
}

.mic-button.active .mic-ripple {
  border-color: rgba(109, 233, 226, 0.45);
  animation: mic-pulse 1.2s ease-out infinite;
}

.send-button {
  color: #061112;
  background: var(--cyan);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: 150ms ease;
}

.send-button:hover {
  background: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(109, 233, 226, 0.3);
}

.send-button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.quick-prompts {
  margin-top: 12px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.quick-prompts button,
.date-chip {
  padding: 6px 9px;
  color: #667c7d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 150ms ease;
}

.quick-prompts button:hover,
.date-chip:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
  background: var(--cyan-wash);
}

.response-panel {
  position: relative;
  margin-top: 12px;
  padding: 18px 50px 18px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 20, 24, 0.92);
  animation: response-in 260ms ease-out;
}

.response-avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  background: var(--cyan-wash);
  font-family: var(--font-mono);
  font-size: 11px;
}

.response-body {
  min-width: 0;
  flex: 1;
}

.response-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
}

.response-label span {
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.response-label small {
  color: #526566;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.response-body p {
  margin: 7px 0 0;
  color: #b6c8c8;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.response-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 25px;
  height: 25px;
  border: 0;
  font-size: 17px;
}

.dashboard-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 250px;
  padding: 20px 21px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(12, 20, 25, 0.94), rgba(8, 14, 18, 0.91));
  transition: border-color 170ms ease, background 170ms ease;
}

.panel:hover {
  border-color: rgba(109, 233, 226, 0.2);
  background: linear-gradient(145deg, rgba(13, 23, 29, 0.96), rgba(8, 15, 19, 0.94));
}

.panel::before,
.panel::after {
  width: 7px;
  height: 7px;
  border-color: rgba(109, 233, 226, 0.38);
}

.panel-header {
  min-height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.panel-header .eyebrow {
  margin-bottom: 3px;
  color: #466a6b;
  font-size: 7px;
}

.panel-header h2 {
  margin: 0;
  color: #d6e4e3;
  font-size: 16px;
  font-weight: 400;
}

.text-button {
  padding: 3px 0;
  color: var(--cyan-dim);
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.text-button:hover {
  color: var(--cyan);
}

.comms-panel,
.network-panel,
.calendar-panel {
  grid-column: span 4;
}

.inbox-list {
  margin: 15px -5px -4px;
}

.inbox-row {
  width: 100%;
  min-height: 45px;
  padding: 6px 7px;
  display: grid;
  grid-template-columns: 31px 1fr auto 11px;
  align-items: center;
  gap: 9px;
  color: inherit;
  border: 0;
  border-top: 1px solid rgba(132, 185, 184, 0.07);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.inbox-row:first-child {
  border-top: 0;
}

.inbox-row:hover {
  background: rgba(109, 233, 226, 0.035);
}

.inbox-icon,
.work-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(109, 233, 226, 0.17);
  background: rgba(109, 233, 226, 0.05);
  font-family: var(--font-mono);
  font-size: 8px;
}

.inbox-icon.hw {
  color: var(--blue);
  border-color: rgba(121, 174, 238, 0.18);
  background: rgba(121, 174, 238, 0.05);
}

.inbox-icon.host {
  color: var(--green);
  border-color: rgba(117, 230, 179, 0.18);
  background: rgba(117, 230, 179, 0.05);
}

.inbox-icon.novaryn {
  color: var(--amber);
  border-color: rgba(230, 184, 92, 0.18);
  background: rgba(230, 184, 92, 0.05);
}

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

.inbox-copy strong {
  color: #adbfbe;
  font-size: 10px;
  font-weight: 500;
}

.inbox-copy small {
  overflow: hidden;
  color: #526566;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-state {
  padding: 3px 5px;
  color: #506566;
  border: 1px solid rgba(120, 161, 162, 0.11);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.source-state.connected {
  color: var(--green);
  border-color: rgba(117, 230, 179, 0.17);
}

.source-state.unread {
  min-width: 21px;
  color: var(--bg);
  border-color: var(--cyan);
  border-radius: 11px;
  background: var(--cyan);
  text-align: center;
}

.row-arrow {
  color: #425657;
  font-size: 18px;
}

.live-badge {
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #536969;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.live-badge span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #536969;
}

.live-badge.active {
  color: var(--green);
  border-color: rgba(117, 230, 179, 0.2);
}

.live-badge.active span {
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
  animation: blink 1.8s ease infinite;
}

.live-badge.degraded {
  color: var(--amber);
  border-color: rgba(230, 184, 92, 0.2);
}

.network-summary {
  min-height: 111px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.uptime-gauge {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) calc(var(--value) * 1%), rgba(109, 233, 226, 0.08) 0);
  box-shadow: 0 0 22px rgba(109, 233, 226, 0.05);
  transition: background 500ms ease;
}

.uptime-gauge::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #091014;
}

.uptime-gauge div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uptime-gauge strong {
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 400;
}

.uptime-gauge small {
  margin-top: 2px;
  color: #526667;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.16em;
}

.network-stats {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.network-stats div {
  min-width: 0;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 1px solid var(--line);
}

.network-stats span {
  overflow: hidden;
  color: #526667;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
}

.network-stats strong {
  color: #b7c7c6;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
}

.network-stats strong.positive {
  color: var(--green);
}

.monitor-list {
  min-height: 54px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.empty-source {
  display: flex;
  align-items: center;
  gap: 10px;
}

.empty-source > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.empty-source strong {
  color: #809393;
  font-size: 9px;
  font-weight: 500;
}

.empty-source small {
  color: #4f6263;
  font-size: 7px;
  line-height: 1.4;
}

.pulse-icon {
  position: relative;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.pulse-icon::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 5px;
  left: 8px;
  top: 10px;
  border-left: 1px solid var(--cyan-dim);
  border-bottom: 1px solid var(--cyan-dim);
  transform: skew(-30deg);
}

.monitor-row {
  min-height: 32px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(132, 185, 184, 0.05);
  font-size: 8px;
}

.monitor-row:last-child {
  border-bottom: 0;
}

.monitor-row strong {
  overflow: hidden;
  color: #8da0a0;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-row span {
  color: #536666;
  font-family: var(--font-mono);
}

.monitor-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.monitor-row.down i {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.calendar-hero {
  min-height: 98px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-block {
  width: 67px;
  height: 73px;
  flex: 0 0 67px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: rgba(109, 233, 226, 0.035);
}

.date-block strong {
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 300;
}

.date-block span {
  color: var(--cyan-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.calendar-hero h3 {
  margin: 5px 0 3px;
  color: #a9baba;
  font-size: 12px;
  font-weight: 500;
}

.calendar-hero p {
  margin: 0;
  color: #526566;
  font-size: 8px;
  line-height: 1.45;
}

.timeline {
  position: relative;
  min-height: 49px;
  padding: 12px 0 0 16px;
  border-top: 1px solid var(--line);
}

.timeline-line {
  position: absolute;
  top: 12px;
  bottom: 2px;
  left: 3px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-dim);
}

.timeline-empty {
  color: #506263;
  font-size: 8px;
}

.timeline-event {
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
}

.timeline-event time {
  color: var(--cyan-dim);
  font-family: var(--font-mono);
  font-size: 7px;
}

.timeline-event strong {
  color: #849797;
  font-size: 8px;
  font-weight: 500;
}

.attention-panel {
  grid-column: span 4;
  min-height: 210px;
}

.attention-count {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(117, 230, 179, 0.17);
  background: rgba(117, 230, 179, 0.04);
  font-family: var(--font-mono);
  font-size: 9px;
}

.all-clear {
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.clear-ring {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(117, 230, 179, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 17px rgba(117, 230, 179, 0.04), 0 0 20px rgba(117, 230, 179, 0.03);
}

.clear-ring svg {
  width: 20px;
  height: 20px;
}

.all-clear strong {
  color: #a8bab9;
  font-size: 11px;
  font-weight: 500;
}

.all-clear p {
  margin: 5px 0 0;
  color: #536566;
  font-size: 8px;
  line-height: 1.5;
}

.priority-footer {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #4c6061;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.11em;
}

.priority-footer strong {
  color: #607474;
  font-weight: 500;
}

.work-panel {
  grid-column: span 8;
  min-height: 210px;
}

.panel-more {
  height: 24px;
  width: 30px;
  border: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.workspace-path {
  min-height: 56px;
  margin: 10px 0 12px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.workspace-path button {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #708485;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.workspace-path button.selected {
  color: var(--cyan);
}

.workspace-path strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-path > i {
  color: #3c5152;
  font-size: 15px;
  font-style: normal;
}

.work-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.work-icon.tradewatch {
  color: var(--amber);
  border-color: rgba(230, 184, 92, 0.16);
  background: rgba(230, 184, 92, 0.04);
}

.work-icon.accounts {
  color: var(--green);
  border-color: rgba(117, 230, 179, 0.16);
  background: rgba(117, 230, 179, 0.04);
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-metrics > div {
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 7px;
  border-left: 1px solid var(--line);
}

.account-metrics > div:first-child {
  border-left: 0;
}

.account-metrics span {
  align-self: center;
  color: #516465;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.account-metrics strong {
  grid-row: span 2;
  color: #829695;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 300;
}

.account-metrics small {
  color: #445859;
  font-size: 7px;
}

.connect-strip {
  width: 100%;
  padding: 10px 4px 0;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.connect-strip > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--cyan-dim);
  border: 1px solid var(--line);
}

.connect-strip > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.connect-strip strong {
  color: #788c8c;
  font-size: 8px;
  font-weight: 500;
}

.connect-strip small {
  color: #46595a;
  font-size: 7px;
}

.connect-strip i {
  color: #405455;
  font-size: 17px;
  font-style: normal;
}

.connect-strip:hover strong,
.connect-strip:hover > span {
  color: var(--cyan);
}

.dashboard-footer {
  min-height: 42px;
  margin-top: 16px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: #405354;
  border-top: 1px solid rgba(109, 233, 226, 0.07);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.11em;
}

.dashboard-footer strong {
  margin-left: 4px;
  color: #5b7071;
  font-weight: 500;
}

.footer-signal {
  width: 4px;
  height: 4px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--cyan-dim);
  box-shadow: 0 0 5px var(--cyan-dim);
}

.footer-right {
  margin-left: auto;
}

.auth-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(320px, 470px);
  place-content: center;
  align-items: center;
  gap: clamp(30px, 8vw, 130px);
  padding: 28px;
  background:
    radial-gradient(circle at 32% 50%, rgba(53, 177, 174, 0.12), transparent 25rem),
    linear-gradient(rgba(5, 8, 11, 0.96), rgba(5, 8, 11, 0.99));
  backdrop-filter: blur(20px);
}

.auth-orbit {
  position: relative;
  width: min(34vw, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--cyan-bright);
  border: 1px solid rgba(109, 233, 226, 0.1);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 41px, rgba(109, 233, 226, 0.06) 42px 43px);
}

.auth-orbit::before,
.auth-orbit::after,
.auth-orbit i {
  content: "";
  position: absolute;
  border: 1px solid rgba(109, 233, 226, 0.3);
  border-radius: 50%;
}

.auth-orbit::before { inset: 16%; border-style: dashed; animation: orbit 28s linear infinite; }
.auth-orbit::after { inset: 31%; box-shadow: 0 0 70px rgba(109, 233, 226, 0.17); }
.auth-orbit i:first-child { inset: 7%; border-left-color: transparent; animation: orbit 14s linear infinite reverse; }
.auth-orbit i:nth-child(2) { inset: 24%; border-right-color: transparent; animation: orbit 9s linear infinite; }
.auth-orbit span { font-family: var(--font-mono); font-size: 58px; font-weight: 200; text-shadow: 0 0 32px var(--cyan); }

.auth-card {
  padding: 38px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 17, 21, 0.9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), inset 0 0 60px rgba(109, 233, 226, 0.025);
}

.auth-card h1 { margin: 6px 0 10px; font-size: clamp(27px, 4vw, 42px); font-weight: 300; letter-spacing: -.04em; }
.auth-card > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.auth-card label { display: block; margin-bottom: 7px; color: var(--cyan-dim); font: 7px var(--font-mono); letter-spacing: .17em; }
.auth-input { display: flex; height: 53px; border: 1px solid var(--line-strong); background: #050a0d; }
.auth-input:focus-within { border-color: var(--cyan-dim); box-shadow: 0 0 24px rgba(109, 233, 226, .07); }
.auth-input input { min-width: 0; flex: 1; padding: 0 15px; color: var(--text); outline: 0; border: 0; background: transparent; letter-spacing: .08em; }
.auth-input button { width: 92px; color: #051011; border: 0; background: var(--cyan); font: 8px var(--font-mono); letter-spacing: .13em; cursor: pointer; }
.auth-card > small { display: block; margin-top: 12px; color: #526566; font: 7px var(--font-mono); letter-spacing: .1em; }
.auth-card > small.error { color: var(--red); }

.memory-panel { grid-column: span 7; min-height: 330px; }
.wellbeing-panel { grid-column: span 5; min-height: 330px; }
.peptide-panel { grid-column: span 5; min-height: 310px; }
.integrations-panel { grid-column: span 7; min-height: 310px; }

.memory-metrics {
  margin: 16px 0 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.memory-metrics > div { padding: 12px; display: flex; flex-direction: column; gap: 5px; border-left: 1px solid var(--line); }
.memory-metrics > div:first-child { border-left: 0; }
.memory-metrics span, .weight-hero span { color: #4f6364; font: 6px var(--font-mono); letter-spacing: .13em; }
.memory-metrics strong { color: #a7baba; font: 16px var(--font-mono); font-weight: 300; }

.mini-form { display: flex; min-height: 38px; border: 1px solid var(--line); background: rgba(2, 8, 11, .55); }
.mini-form input { min-width: 0; flex: 1; padding: 0 11px; color: var(--text); outline: 0; border: 0; background: transparent; font-size: 9px; }
.mini-form button, .protocol-form button, .message-form button, .connector-action { padding: 0 14px; color: var(--cyan); border: 0; border-left: 1px solid var(--line-strong); background: var(--cyan-wash); font: 7px var(--font-mono); letter-spacing: .1em; cursor: pointer; }
.memory-results { max-height: 120px; margin-top: 12px; overflow: auto; }
.memory-results p, .protocol-list > p { margin: 0; color: #526566; font-size: 8px; line-height: 1.5; }
.memory-result { padding: 8px 2px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; border-top: 1px solid rgba(109, 233, 226, .07); }
.memory-result strong { color: #a2b5b4; font-size: 9px; font-weight: 500; }
.memory-result time { color: #4f6364; font: 6px var(--font-mono); }
.memory-result p { grid-column: 1 / -1; color: #627677; }

.weight-hero { margin-top: 14px; display: grid; grid-template-columns: 1.6fr 1fr; border-bottom: 1px solid var(--line); }
.weight-hero > div { padding: 5px 12px 12px 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 8px; }
.weight-hero > div + div { padding-left: 15px; border-left: 1px solid var(--line); }
.weight-hero strong { grid-row: span 2; color: var(--cyan-bright); font: 25px var(--font-mono); font-weight: 300; }
.weight-hero small { color: #536667; font-size: 7px; }
.weight-chart { width: 100%; height: 98px; margin: 10px 0 4px; overflow: visible; }
.chart-area { fill: url(#weight-fill); }
.chart-line { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(109,233,226,.5)); }
.compact-form input:first-child { max-width: 105px; border-right: 1px solid var(--line); }

.safety-chip { padding: 4px 7px; color: var(--amber); border: 1px solid rgba(230,184,92,.2); font: 6px var(--font-mono); letter-spacing: .1em; }
.clinical-note { margin: 13px 0; padding: 9px 10px; color: #8e815f; border-left: 2px solid var(--amber); background: rgba(230,184,92,.035); font-size: 8px; line-height: 1.5; }
.protocol-form { display: grid; grid-template-columns: 1.5fr .65fr .6fr; gap: 7px; }
.protocol-form input, .protocol-form select, .message-form textarea { min-width: 0; padding: 9px 10px; color: #aebfbe; outline: 0; border: 1px solid var(--line); background: rgba(2,8,11,.6); font-size: 8px; }
.protocol-form select { color-scheme: dark; }
.protocol-form #peptide-note { grid-column: 1 / 3; }
.protocol-form button { min-height: 35px; border: 1px solid var(--line-strong); }
.protocol-list { max-height: 75px; margin-top: 10px; overflow: auto; }
.protocol-entry { min-height: 30px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; border-top: 1px solid rgba(109,233,226,.06); font-size: 8px; }
.protocol-entry strong { color: #91a4a3; font-weight: 500; }
.protocol-entry span { color: var(--cyan-dim); font-family: var(--font-mono); }
.protocol-entry time { color: #4c6061; font: 6px var(--font-mono); }

.integration-total { color: var(--cyan-dim); font: 7px var(--font-mono); letter-spacing: .12em; }
.integration-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.connector-card { min-width: 0; min-height: 215px; padding: 13px; display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(2,8,11,.35); }
.connector-top { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; }
.connector-logo { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); font: 12px var(--font-mono); }
.connector-logo.spotify { color: #1ed760; border-color: rgba(30,215,96,.25); }
.connector-logo.telegram { color: #54a9eb; border-color: rgba(84,169,235,.25); }
.connector-logo.discord { color: #8b9cff; border-color: rgba(139,156,255,.25); }
.connector-top > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.connector-top strong { color: #a6b8b7; font-size: 9px; font-weight: 500; }
.connector-top small { overflow: hidden; color: #526566; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.connector-dot { width: 5px; height: 5px; border-radius: 50%; background: #455859; }
.connector-card.connected .connector-dot { background: var(--green); box-shadow: 0 0 7px var(--green); }
.now-playing { min-height: 85px; margin: 13px 0; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.album-art { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; overflow: hidden; color: #1ed760; background: #0c1711; }
.album-art img { width: 100%; height: 100%; object-fit: cover; }
.now-playing > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.now-playing strong, .now-playing small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing strong { color: #9fb1b0; font-size: 8px; font-weight: 500; }
.now-playing small { color: #526566; font-size: 7px; }
.connector-action { min-height: 30px; margin-top: auto; border: 1px solid var(--line); }
.message-form { flex: 1; margin-top: 14px; display: flex; flex-direction: column; }
.message-form textarea { flex: 1; resize: none; line-height: 1.5; }
.message-form button { min-height: 30px; border: 1px solid var(--line); border-top: 0; }

.toast-region {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100vw - 44px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #aabdbc;
  border: 1px solid var(--line-strong);
  background: rgba(9, 18, 22, 0.98);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  font-size: 10px;
  line-height: 1.5;
  animation: toast-in 240ms ease-out;
}

.toast::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 7px var(--cyan);
}

.toast.out {
  opacity: 0;
  transform: translateY(7px);
  transition: 180ms ease;
}

.mobile-scrim {
  display: none;
}

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

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

@keyframes core-breathe {
  0%, 100% { transform: scale(calc(0.96 + var(--voice-level) * 0.13)); filter: brightness(calc(0.92 + var(--voice-level) * 0.55)); }
  50% { transform: scale(calc(1.03 + var(--voice-level) * 0.17)); filter: brightness(calc(1.1 + var(--voice-level) * 0.65)); }
}

@keyframes mic-pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes blink {
  50% { opacity: 0.3; }
}

@keyframes response-in {
  from { opacity: 0; transform: translateY(-7px); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1120px) {
  .dashboard {
    padding-inline: 24px;
  }

  .command-deck {
    padding-left: 242px;
  }

  .orb-stage {
    left: 15px;
    transform: translateY(-50%) scale(0.86);
  }

  .comms-panel,
  .network-panel {
    grid-column: span 6;
  }

  .calendar-panel,
  .attention-panel {
    grid-column: span 6;
  }

  .work-panel {
    grid-column: 1 / -1;
  }

  .memory-panel,
  .integrations-panel { grid-column: span 7; }

  .wellbeing-panel,
  .peptide-panel { grid-column: span 5; }

  .integration-grid { grid-template-columns: 1fr; }
  .connector-card { min-height: 145px; }
  .integrations-panel { min-height: 520px; }
}

@media (max-width: 860px) {
  .auth-gate { grid-template-columns: 1fr; }
  .auth-orbit { display: none; }
  .auth-card { width: min(470px, 100%); margin: auto; }

  .app-shell {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45);
    transition: transform 220ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    margin-left: auto;
    display: grid;
  }

  .mobile-scrim {
    position: fixed;
    z-index: 25;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(3px);
  }

  body.menu-open .mobile-scrim {
    display: block;
  }

  .workspace {
    display: block;
  }

  .topbar {
    padding-inline: 17px;
  }

  .menu-button {
    display: grid;
    margin-right: 12px;
  }

  .breadcrumb {
    margin-right: auto;
  }

  .dashboard {
    padding-top: 31px;
  }
}

@media (max-width: 680px) {
  .system-state {
    display: none;
  }

  .clock {
    min-width: auto;
  }

  .clock span {
    display: none;
  }

  .topbar-right {
    gap: 11px;
  }

  .dashboard {
    padding: 27px 14px 18px;
  }

  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .readiness {
    width: 100%;
  }

  .command-deck {
    min-height: 350px;
    padding: 160px 15px 18px;
    align-items: stretch;
  }

  .orb-stage {
    top: 5px;
    left: 50%;
    transform: translateX(-50%) scale(0.68);
    transform-origin: top center;
  }

  .command-form {
    height: 53px;
  }

  .command-form kbd {
    display: none;
  }

  .quick-prompts {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .quick-prompts button {
    flex: 0 0 auto;
  }

  .response-panel {
    padding-left: 13px;
  }

  .dashboard-grid {
    display: block;
  }

  .panel {
    min-height: 0;
    margin-bottom: 12px;
    padding: 18px 16px;
  }

  .integration-grid { grid-template-columns: 1fr; }
  .integrations-panel { min-height: 0; }

  .workspace-path {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-path > i {
    height: 5px;
    padding-left: 8px;
    transform: rotate(90deg);
    align-self: flex-start;
  }

  .account-metrics > div {
    padding-inline: 7px;
    display: flex;
    flex-direction: column;
  }

  .account-metrics strong {
    order: -1;
  }

  .dashboard-footer {
    padding: 12px 2px 0;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px 18px;
  }

  .footer-right {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .auth-gate { padding: 14px; }
  .auth-card { padding: 25px 19px; }

  .breadcrumb span,
  .breadcrumb i {
    display: none;
  }

  .command-heading h2 {
    font-size: 18px;
  }

  .listening-state {
    display: none;
  }

  .mic-button,
  .send-button {
    width: 38px;
    flex-basis: 38px;
  }

  .network-summary {
    gap: 10px;
  }

  .network-stats div {
    padding-inline: 5px;
  }

  .protocol-form { grid-template-columns: 1fr 1fr; }
  .protocol-form #peptide-name { grid-column: 1 / -1; }
  .protocol-form #peptide-note { grid-column: 1 / -1; }
  .protocol-form button { grid-column: 1 / -1; }

  .memory-metrics strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .sidebar,
  .topbar {
    background: #070c10;
  }
}
