:root {
  color-scheme: dark;
  --bg: #050B0A;
  --panel: #0B1210;
  --panel-soft: #121816;
  --panel-line: rgba(0, 208, 132, 0.22);
  --text: #F5F7F6;
  --muted: #A8B3AE;
  --accent: #00D084;
  --accent-strong: #19E69A;
  --accent-deep: #051a10;
  --warm: #e9fff5;
  --danger: #ef6767;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 70% 15%, rgba(0, 208, 132, 0.05), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(0, 208, 132, 0.04), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.skip-link,
.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;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 16px;
  padding: 10px 14px;
  clip: auto;
  z-index: 10;
  background: var(--accent);
  color: #05100c;
  border-radius: 8px;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.home-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 236px;
  padding: 22px 12px;
  background: rgba(11, 18, 16, 0.95);
  border-right: 1px solid rgba(0, 208, 132, 0.12);
  backdrop-filter: blur(16px);
}

.app-shell.panel-mode .home-rail {
  display: none;
}

.client-sidebar {
  position: sticky;
  top: 0;
  width: 100%;
  min-width: 260px;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  background: rgba(11, 18, 16, 0.98);
  border-right: 1px solid rgba(0, 208, 132, 0.12);
  backdrop-filter: blur(18px);
  display: none;
}

.app-shell.panel-mode {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.app-shell.panel-mode .client-sidebar {
  display: flex;
}

.app-shell.panel-mode .main-panel {
  padding-left: clamp(24px, 5vw, 72px);
}

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

.home-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 41;
  width: min(280px, calc(100vw - 34px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  background: rgba(5, 11, 10, 0.98);
  border-right: 1px solid rgba(0, 208, 132, 0.14);
  box-shadow: 24px 0 80px rgba(0, 0, 0, 0.56);
  transform: translateX(-104%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 220ms ease;
}

.app-shell.drawer-open .drawer-scrim {
  display: block;
}

.app-shell.drawer-open .home-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.app-shell.panel-mode .home-drawer,
.app-shell.panel-mode .drawer-scrim {
  display: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  color: var(--text);
  font-size: 0.95rem;
}

.sidebar-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 208, 132, 0.40);
  border-radius: 8px;
  background: linear-gradient(145deg, #051a10, #0B1210);
  color: var(--accent);
  font-weight: 800;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.rail-brand span {
  min-width: 0;
  white-space: nowrap;
}

.rail-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  color: var(--muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 650;
}

.rail-item span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.rail-item:hover,
.rail-item:focus-visible {
  color: var(--text);
  border-color: rgba(0, 208, 132, 0.28);
  background: rgba(0, 208, 132, 0.08);
}

.rail-item.primary {
  color: #06130d;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  border: 0;
  font-weight: 800;
}

.rail-item.primary span:first-child {
  color: #06130d;
  background: rgba(255, 255, 255, 0.26);
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.login-actions button {
  min-height: 40px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.login-actions button:first-child {
  color: #06130d;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  border: 0;
  font-weight: 800;
}

.auth-note {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.client-nav {
  display: grid;
  gap: 8px;
}

.client-nav-item {
  width: 100%;
  min-height: 48px;
  padding: 12px 12px;
  text-align: left;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  line-height: 1.25;
  font-size: 1rem;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.client-nav-item.active,
.client-nav-item:hover {
  color: var(--text);
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.22);
}

.main-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-width: 0;
  padding: 28px clamp(24px, 5vw, 72px) 22px 268px;
}

.top-bar {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 760px) 190px;
  align-items: start;
  justify-content: center;
  gap: 24px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.app-shell.panel-mode .top-bar {
  display: none;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  justify-self: start;
}

.home-rail + .home-drawer + .client-sidebar + .main-panel .home-brand .menu-toggle {
  display: none;
}

.menu-toggle {
  display: grid;
  gap: 4px;
  place-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.menu-toggle span {
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-toggle:hover {
  border-color: rgba(0, 255, 163, 0.34);
  background: rgba(4, 211, 97, 0.1);
}

.compact-mark {
  width: 34px;
  font-size: 0.76rem;
}

.hero-copy {
  width: min(860px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(2.45rem, 4.6vw, 4rem);
  line-height: 1.12;
  font-weight: 730;
}

.subtitle {
  max-width: 860px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(1.14rem, 1.5vw, 1.28rem);
  line-height: 1.48;
}

.ai-status-pulse {
  justify-self: end;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  animation: softPulse 2.8s ease-in-out infinite;
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
    box-shadow: 0 0 8px rgba(0, 208, 132, 0.4);
  }
  50% {
    transform: scale(1.32);
    opacity: 1;
    box-shadow: 0 0 18px rgba(0, 208, 132, 0.65);
  }
}

.content-view {
  display: none;
  min-height: 0;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.content-view.active {
  display: grid;
}

#chat-view {
  align-content: center;
  padding: clamp(22px, 7vh, 72px) 0 26px;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 8px 2px;
}

.home-stage {
  position: relative;
  display: grid;
  gap: 24px;
  justify-items: center;
  isolation: isolate;
  width: 100%;
  margin: 0 auto;
}

.assistant-zone {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  width: min(860px, 100%);
  min-height: 0;
  position: relative;
  z-index: 1;
}

.conversation:empty {
  display: none;
}

.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message.user-message {
  flex-direction: row-reverse;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #172235;
  color: var(--accent);
  font-weight: 800;
}

.user-message .avatar {
  background: #263349;
  color: var(--warm);
}

.bubble {
  max-width: min(760px, 82vw);
  padding: 15px 17px;
  background: rgba(23, 25, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.user-message .bubble {
  background: rgba(5, 26, 16, 0.85);
  border-color: rgba(0, 208, 132, 0.22);
}

.bubble p {
  margin: 0;
  color: var(--text);
  line-height: 1.48;
}

.bubble p + p {
  margin-top: 8px;
}

.bubble-note {
  color: var(--muted) !important;
  font-size: 0.92rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 0;
}

.quick-actions button {
  min-height: 46px;
  padding: 10px 18px;
  color: var(--text);
  background: rgba(0, 208, 132, 0.06);
  border: 1px solid rgba(0, 208, 132, 0.22);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease;
}

.convênio-line {
  width: 100%;
  margin: 2px auto 0;
  color: rgba(183, 192, 198, 0.7);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.convênio-line::-webkit-scrollbar {
  display: none;
}

.hologram {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(4, 211, 97, 0.08), rgba(0, 255, 163, 0.04)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 255, 163, 0.14);
  border-radius: 8px;
}

.home-hologram {
  display: none;
}

.orb {
  position: absolute;
  inset: 52px 70px 42px;
  border: 1px solid rgba(0, 255, 163, 0.18);
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(0, 255, 163, 0.08) 23px 24px),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(4, 211, 97, 0.06) 27px 28px);
  box-shadow: inset 0 0 46px rgba(0, 255, 163, 0.08), 0 0 42px rgba(4, 211, 97, 0.11);
  animation: pulseOrb 4.8s ease-in-out infinite;
}

.gear {
  position: absolute;
  border: 2px dashed rgba(0, 255, 163, 0.68);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(0, 255, 163, 0.22);
  animation: rotateGear 14s linear infinite;
}

.gear::before,
.gear::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(4, 211, 97, 0.5);
  border-radius: 50%;
}

.gear::after {
  inset: 43%;
  background: rgba(0, 255, 163, 0.28);
}

.gear-one {
  width: 82px;
  height: 82px;
  top: 32px;
  right: 92px;
}

.gear-two {
  width: 62px;
  height: 62px;
  top: 70px;
  right: 30px;
  animation-direction: reverse;
  animation-duration: 11s;
}

.gear-three {
  width: 46px;
  height: 46px;
  top: 130px;
  right: 82px;
  animation-duration: 9s;
}

.wire-card {
  position: absolute;
  border: 1px solid rgba(0, 255, 163, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 36%, rgba(0, 255, 163, 0.18) 36% 38%, transparent 38%),
    linear-gradient(0deg, transparent 0 58%, rgba(4, 211, 97, 0.14) 58% 60%, transparent 60%);
  box-shadow: 0 0 24px rgba(0, 255, 163, 0.12);
}

.wire-card-a {
  width: 170px;
  height: 112px;
  left: 34px;
  top: 76px;
  transform: perspective(420px) rotateY(16deg);
}

.wire-card-b {
  width: 132px;
  height: 92px;
  right: 54px;
  bottom: 50px;
  transform: perspective(420px) rotateY(-18deg);
}

.data-lines {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 24px;
  display: grid;
  gap: 8px;
}

.data-lines span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
  animation: pulseLine 2.4s ease-in-out infinite;
}

.data-lines span:nth-child(2) {
  animation-delay: 0.4s;
}

.data-lines span:nth-child(3) {
  animation-delay: 0.8s;
}

.shield {
  position: absolute;
  left: 42px;
  bottom: 54px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #06130d;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  border-radius: 8px;
  font-weight: 900;
}

.credit-calendar-card {
  padding: 20px;
  background: rgba(248, 249, 250, 0.055);
  border: 1px solid rgba(0, 255, 163, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  width: min(1040px, 100%);
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.panel-stage {
  align-self: center;
  display: grid;
  gap: 24px;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 32px 0;
}

.panel-entry-link {
  justify-self: center;
  margin-top: 4px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 1rem;
}

.panel-entry-link:hover {
  color: var(--text);
  border-color: rgba(0, 255, 163, 0.34);
  background: rgba(4, 211, 97, 0.08);
}

.panel-entry-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 8px;
}

.panel-entry-wrap p {
  display: none;
}

.video-trigger {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.video-trigger:hover,
.video-trigger:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
}

.app-shell.video-open .video-modal {
  display: grid;
}

.video-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  border: 0;
  backdrop-filter: blur(5px);
}

.video-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(680px, 100%);
  padding: 24px;
  background: rgba(18, 18, 20, 0.96);
  border: 1px solid rgba(0, 255, 163, 0.18);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.video-card h2,
.video-card p {
  margin: 0;
}

.video-card h2 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.12;
}

.video-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.video-card > button:last-child {
  justify-self: start;
  min-height: 48px;
  padding: 12px 16px;
  color: #06130d;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1.4rem;
}

.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 42%, rgba(0, 255, 163, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(4, 211, 97, 0.14), rgba(18, 18, 20, 0.88));
  border: 1px solid rgba(0, 255, 163, 0.16);
  border-radius: 8px;
}

.video-placeholder span {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  color: #06130d;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  border-radius: 999px;
  font-size: 1.8rem;
  box-shadow: 0 0 36px rgba(0, 255, 163, 0.24);
}

.easy-access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  padding: 22px;
  background: rgba(248, 249, 250, 0.045);
  border: 1px solid rgba(0, 255, 163, 0.13);
  border-radius: 8px;
}

.easy-access-card h2,
.easy-access-card p {
  margin: 0;
}

.easy-access-card h2 {
  font-size: 1.28rem;
  line-height: 1.22;
}

.easy-access-card p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.96rem;
}

.easy-access-card button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
  color: #06130d;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.credit-calendar-card h2 {
  margin: 0 0 18px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.credit-calendar-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.credit-calendar-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credit-calendar-card dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.credit-calendar-card dd {
  margin: 0;
  color: var(--text);
  text-align: right;
  font-size: 0.9rem;
}

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

@keyframes pulseOrb {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-8px);
  }
  50% {
    opacity: 0.9;
    transform: translateX(8px);
  }
}

.quick-actions button:hover {
  background: rgba(0, 208, 132, 0.12);
  border-color: rgba(0, 208, 132, 0.42);
}

.inline-actions {
  margin-top: 14px;
}

.composer {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px 56px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: rgba(18, 24, 22, 0.92);
  border: 1px solid rgba(0, 208, 132, 0.22);
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
}

.icon-button,
.listen-button,
.send-button {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
}

.icon-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  font-weight: 800;
  font-size: 0.92rem;
}

.listen-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 0.86rem;
}

.send-button {
  color: #06130d;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  font-weight: 900;
}

textarea {
  width: 100%;
  max-height: 140px;
  min-height: 56px;
  resize: none;
  padding: 15px 6px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  line-height: 1.45;
  font-size: 1.12rem;
}

textarea::placeholder {
  color: rgba(248, 249, 250, 0.52);
  font-size: 1.08rem;
}

.info-layout {
  align-self: center;
  display: grid;
  gap: 28px;
  padding: 36px 0;
}

.compact-view {
  max-width: 720px;
}

.info-header {
  max-width: 760px;
}

.info-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.info-header p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.source-card,
.timeline > div {
  padding: 18px;
  background: rgba(17, 27, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.source-card h3,
.source-card p {
  margin: 0;
}

.source-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.48;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  background: var(--accent);
  color: #06110d;
  border-radius: 8px;
  font-weight: 900;
}

.timeline p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.legal-footer {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  width: 100%;
  margin: 22px auto 0;
  padding-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  border-top: 0;
}

.legal-footer span {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--text);
}

.guide-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 10%, rgba(0, 255, 163, 0.1), transparent 32%),
    radial-gradient(circle at 8% 84%, rgba(4, 211, 97, 0.11), transparent 28%),
    var(--bg);
}

.guide-header,
.guide-main,
.guide-footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 18px;
}

.guide-header a,
.guide-footer a,
.guide-cta a {
  text-decoration: none;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-nav a,
.guide-cta a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.guide-hero,
.guide-card,
.guide-list-card {
  background: rgba(248, 249, 250, 0.045);
  border: 1px solid rgba(0, 255, 163, 0.14);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.guide-hero {
  padding: clamp(28px, 6vw, 58px);
}

.guide-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
}

.guide-answer {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1.14rem, 2.2vw, 1.35rem);
  line-height: 1.52;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  margin-top: 18px;
}

.guide-card,
.guide-list-card {
  padding: 22px;
}

.guide-card h2,
.guide-card h3,
.guide-list-card h2,
.guide-list-card h3 {
  margin: 0 0 14px;
}

.guide-card p,
.guide-list-card p,
.guide-card li,
.guide-list-card li {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.guide-card ul,
.guide-list-card ul {
  margin: 0;
  padding-left: 20px;
}

.guide-card li + li,
.guide-list-card li + li {
  margin-top: 8px;
}

.guide-cta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.guide-cta a:first-of-type {
  color: #06130d;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  border: 0;
  font-weight: 900;
}

.guide-pages {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.guide-pages a {
  display: block;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.guide-pages a:hover {
  border-color: rgba(0, 255, 163, 0.24);
  background: rgba(4, 211, 97, 0.08);
}

.guide-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .home-hologram {
    width: min(340px, 30vw);
    opacity: 0.36;
  }
}

@media (max-width: 760px) {
  .home-rail {
    display: none;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .app-shell.panel-mode {
    display: block;
  }

  .client-sidebar,
  .app-shell.panel-mode .client-sidebar {
    display: none;
  }

  .main-panel {
    padding: 22px 16px 88px;
  }

  .top-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    text-align: left;
    justify-items: start;
  }

  .home-brand {
    grid-column: 1 / 2;
  }

  .home-brand .menu-toggle {
    display: grid !important;
  }

  .hero-copy {
    grid-column: 1 / -1;
    width: 100%;
  }

  h1 {
    margin: 0;
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .subtitle {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.14rem;
  }

  .ai-status-pulse {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
  }

  #chat-view {
    padding-top: 28px;
  }

  .home-stage {
    justify-items: stretch;
  }

  .home-hologram {
    display: none;
  }

  .source-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .app-shell.panel-mode .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    background: rgba(5, 11, 10, 0.95);
    border: 1px solid rgba(0, 208, 132, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }

  .mobile-bottom-nav .client-nav-item {
    min-height: 42px;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .legal-footer {
    display: none;
  }

  .guide-header,
  .guide-footer {
    display: grid;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-nav a,
  .guide-cta a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.1rem;
  }

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

  .icon-button,
  .listen-button,
  .send-button {
    width: 42px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-actions button {
    min-height: 56px;
  }

  .hologram {
    min-height: 240px;
  }

  .credit-calendar-card dl > div {
    grid-template-columns: 1fr;
  }

  .credit-calendar-card dd {
    text-align: left;
  }

  .easy-access-card {
    display: grid;
  }

  .easy-access-card button {
    width: 100%;
  }
}
