/* Harnad Connect — design system aligned with voice.harnad.com */

:root {
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Outfit", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --ink: #0b1220;
  --ink-soft: #1e293b;
  --muted: #475569;
  --line: #d7e0ea;
  --wash: #f3f7f8;
  --teal: #0f766e;
  --teal-deep: #115e59;
  --teal-soft: #ccfbf1;
  --teal-glow: #0d9488;
  --mist: #ecfdf8;
  --white: #ffffff;
  --error: #b91c1c;
  --success: #0f766e;
  --surface: #ffffff;
  --surface-2: #f8fbfb;

  --brand: var(--teal);
  --brand-dark: var(--teal-deep);
  --bg: var(--wash);
  --text: var(--ink);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 10px 30px -22px rgba(15, 23, 42, 0.28);
  --shadow-teal: 0 18px 40px -18px rgba(15, 118, 110, 0.45);
  --nav-h: 4.5rem;
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background-color: transparent;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.14), transparent 55%),
    radial-gradient(900px 500px at 90% 0, rgba(15, 118, 110, 0.08), transparent 50%),
    linear-gradient(#fff, #f8fafc 40%, #fff);
  background-attachment: fixed;
}

::selection {
  color: var(--ink);
  background: rgba(15, 118, 110, 0.18);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

.text-teal {
  color: var(--teal);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

/* —— Ambient layer —— */

.welcome-body {
  position: relative;
  display: block;
  padding: 0;
  overflow-x: hidden;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-drift 18s var(--ease-out) infinite alternate;
}

.ambient-orb-a {
  width: 70vmax;
  height: 70vmax;
  top: -20%;
  left: -15%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 65%);
}

.ambient-orb-b {
  width: 50vmax;
  height: 50vmax;
  right: -10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 65%);
  animation-duration: 22s;
  animation-delay: -4s;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.06); }
}

/* —— Nav —— */

.product-ticker {
  position: relative;
  z-index: 51;
  height: 2.4rem;
  background: var(--ink);
  color: rgba(248, 250, 252, 0.88);
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.product-ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: product-ticker 32s linear infinite;
}

.product-ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  padding: 0 1.75rem;
  white-space: nowrap;
}

.product-ticker a {
  color: inherit;
}

.product-ticker a:hover {
  color: #5eead4;
}

.product-ticker-sep {
  color: rgba(248, 250, 252, 0.28);
}

@keyframes product-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1.5rem;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

body.nav-open .nav-toggle .icon-menu {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-nav-links a,
.site-nav-links button.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.site-nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.3);
  background: transparent;
  color: var(--ink);
  border-radius: 0.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.nav-cta:hover {
  background: var(--mist);
  border-color: var(--teal);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .site-nav {
    padding: 0 2.5rem;
  }
}

/* —— Hero —— */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--nav-h) - 2.4rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero- ken 28s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

.hero-media-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 18, 32, 0.82) 0%, rgba(11, 18, 32, 0.55) 42%, rgba(11, 18, 32, 0.22) 70%, rgba(11, 18, 32, 0.35) 100%),
    linear-gradient(to top, rgba(11, 18, 32, 0.55), transparent 45%);
}

.pulse-ring {
  position: absolute;
  border: 1.5px solid rgba(20, 184, 166, 0.45);
  border-radius: 50%;
  animation: pulse-ring 2.8s var(--ease-out) infinite;
}

.pulse-ring-1 {
  width: 132px;
  height: 132px;
  right: 12%;
  top: 28%;
}

.pulse-ring-2 {
  width: 220px;
  height: 220px;
  right: 8%;
  top: 20%;
  animation-delay: 0.9s;
  opacity: 0.7;
}

@keyframes pulse-ring {
  0% { opacity: 0.55; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.35); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding: 3.5rem 1.5rem 4rem;
  color: #fff;
}

.hero-copy .eyebrow {
  color: var(--teal-glow);
}

.hero-brand {
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-brand .text-teal {
  color: var(--teal-glow);
  background: linear-gradient(120deg, #5eead4, #14b8a6 55%, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.88);
  font-weight: 500;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0.75rem;
  padding: 0.9rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--teal);
}

.hero-note,
.checkout-intent-hint {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero-copy {
    padding: 4.5rem 2.5rem 5rem;
  }

  .pulse-ring-1,
  .pulse-ring-2 {
    display: block;
  }
}

@media (max-width: 639px) {
  .pulse-ring {
    display: none;
  }
}

/* —— Buttons —— */

.btn-primary,
.connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.9rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-teal);
  transition: background 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.btn-primary:hover:not(:disabled),
.connect-btn:hover:not(:disabled) {
  background: var(--teal);
  transform: translateY(-2px);
}

.btn-primary:disabled,
.connect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.google-signin {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.55);
}

.google-signin:hover:not(:disabled) {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: 0 16px 36px -16px rgba(15, 118, 110, 0.45);
}

.google-icon {
  flex-shrink: 0;
}

/* —— Status / toast —— */

.status {
  margin-top: 1rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
  font-weight: 600;
}

.hero-copy .status {
  color: rgba(255, 255, 255, 0.85);
}

.status.success {
  color: var(--success);
  font-weight: 700;
}

.hero-copy .status.success {
  color: #5eead4;
}

.status.error {
  color: #fecaca;
  font-weight: 700;
}

.dashboard-body .status.error,
.modal .status.error {
  color: var(--error);
}

.dashboard-body .status.success,
.modal .status.success {
  color: var(--success);
}

.retry-btn {
  margin-top: 0.75rem;
  background: none;
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

/* —— About / features —— */

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .section-inner {
    padding: 0 2.5rem;
  }
}

.about-section {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

.about-intro {
  max-width: 44rem;
}

.about-intro h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
}

.section-lead {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 40rem;
}

.feature-rail {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .feature-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature {
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* —— CTA band —— */

.cta-band {
  position: relative;
  z-index: 1;
  margin: 1rem 0 4rem;
}

.cta-band-inner {
  padding: 3rem 1.5rem;
  border-radius: 1.75rem;
  background:
    radial-gradient(600px 240px at 10% 0%, rgba(20, 184, 166, 0.18), transparent 60%),
    linear-gradient(135deg, var(--mist), #fff 45%, rgba(15, 118, 110, 0.06));
  border: 1px solid rgba(15, 118, 110, 0.15);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
}

.cta-band p {
  margin: 0.75rem auto 1.5rem;
  max-width: 32rem;
  color: var(--muted);
}

.stats-strip {
  position: relative;
  z-index: 1;
  padding: 0 0 1rem;
}

.stats-strip-inner {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
}

@media (min-width: 768px) {
  .stats-strip-inner {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.75rem 2rem;
  }
}

.stats-strip-inner div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats-strip-inner strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.stats-strip-inner span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.steps-section,
.compare-section,
.pricing-section,
.family-section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.steps-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card,
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem 1.6rem;
}

.step-n {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
}

.step-card h3,
.pricing-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.25rem;
}

.step-card p,
.pricing-card-detail {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.compare-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--wash);
}

.compare-table td:first-child {
  font-weight: 650;
}

.pricing-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.75rem 1.5rem 1.6rem;
}

.pricing-card.is-featured {
  background: linear-gradient(180deg, var(--mist), #fff);
}

.pricing-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-card-top span {
  color: var(--teal);
}

.pricing-card-price {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.pricing-card ul {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.pricing-card li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 99px;
  background: var(--teal);
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing-cta.is-featured,
.pricing-cta:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.pricing-footnote {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.family-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: #fff;
}

.family-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 650;
}

.home-plan-strip,
.home-limit-grid,
.home-pricing-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .home-plan-strip {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .home-limit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .home-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.home-info-card .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.4);
}

.home-info-card .value {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 750;
}

.home-info-card .meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.usage-meter {
  margin-top: 0.75rem;
  height: 6px;
  border-radius: 99px;
  background: rgba(11, 18, 32, 0.08);
  overflow: hidden;
}

.usage-meter > span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.home-pricing-card {
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.home-pricing-card.is-current {
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--mist);
}

/* —— Footer —— */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.brand-footer .brand-name {
  font-size: 1rem;
}

.footer-note {
  margin: 0.75rem 0 0;
  max-width: 26rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--teal);
}

/* —— Reveal animations —— */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy.reveal {
  transition-duration: 0.95s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-image,
  .ambient-orb,
  .pulse-ring,
  .product-ticker-track {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   Dashboard (same design language)
   ========================================================= */

.logo-placeholder {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.logo-placeholder-sm {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.75rem;
  margin: 0;
}

.dashboard-body {
  display: block;
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(15, 118, 110, 0.07), transparent 52%),
    linear-gradient(180deg, #f4f8f8 0%, #eef4f5 100%);
}

.dashboard-body .ambient {
  opacity: 0.28;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-brand .brand-mark {
  width: 2rem;
  height: 2rem;
}

.sidebar-brand-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.sidebar-brand-kicker {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-brand-product {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
  min-height: 2.5rem;
}

.sidebar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface-2);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-icon-btn:hover {
  background: var(--mist);
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--teal-deep);
}

.sidebar-collapse-btn .icon-expand {
  display: none;
}

.sidebar-close-mobile-btn {
  display: none;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0 0.25rem;
}

.sidebar-user[hidden] {
  display: none;
}

.sidebar-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-photo {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wash);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.link-btn:hover {
  color: var(--teal-deep);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.app-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
}

.app-topbar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

#sidebar-open-btn {
  display: none;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.app-topbar-label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.topbar-plans-btn {
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: var(--mist);
  color: var(--teal-deep);
  border-radius: 0.65rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.topbar-plans-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.sidebar-backdrop {
  display: none;
}

.app-sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0.9rem 1rem;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 24px -28px rgba(15, 23, 42, 0.55);
  overflow: hidden;
  transition: width 0.2s ease, flex-basis 0.2s ease, padding 0.2s ease;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(11, 18, 32, 0.1);
}

.sidebar-family {
  padding: 0 0.35rem 0.5rem;
}

.sidebar-family-label {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.35);
}

.sidebar-family a {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(11, 18, 32, 0.45);
  margin-top: 0.2rem;
}

.sidebar-family a:hover {
  color: var(--teal);
}

.sidebar-signout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.35rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  color: rgba(11, 18, 32, 0.4);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-signout-btn:hover {
  color: var(--ink);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 0.7rem;
  border-radius: 0.7rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
  background: var(--mist);
  color: var(--teal-deep);
}

.sidebar-link.is-active {
  background: var(--mist);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.sidebar-link.is-active .sidebar-link-icon {
  color: var(--teal);
}

.sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: inherit;
}

.sidebar-link-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sidebar-link-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sidebar-collapsed .app-sidebar {
  flex-basis: var(--sidebar-w-collapsed);
  width: var(--sidebar-w-collapsed);
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

body.sidebar-collapsed .sidebar-brand-row {
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  flex: 0 0 auto;
}

body.sidebar-collapsed .sidebar-brand-name,
body.sidebar-collapsed .sidebar-link-label,
body.sidebar-collapsed .sidebar-user-name,
body.sidebar-collapsed .sidebar-family {
  display: none;
}

body.sidebar-collapsed .sidebar-collapse-btn .icon-collapse {
  display: none;
}

body.sidebar-collapsed .sidebar-collapse-btn .icon-expand {
  display: block;
}

body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-signout-btn {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  gap: 0;
}

body.sidebar-collapsed .sidebar-user {
  justify-content: center;
}

@media (max-width: 1023px) {
  #sidebar-open-btn {
    display: inline-flex;
  }

  .sidebar-collapse-btn {
    display: none;
  }

  .sidebar-close-mobile-btn {
    display: inline-flex;
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(11, 18, 32, 0.3);
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    width: 260px;
    flex-basis: 260px;
    transform: translateX(-105%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.45);
  }

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

  body.sidebar-collapsed .app-sidebar {
    width: 260px;
    flex-basis: 260px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.sidebar-collapsed .sidebar-brand-name,
  body.sidebar-collapsed .sidebar-link-label,
  body.sidebar-collapsed .sidebar-user-name {
    display: block;
  }

  body.sidebar-collapsed .sidebar-family {
    display: block;
  }

  body.sidebar-collapsed .sidebar-brand-row {
    flex-direction: row;
  }

  body.sidebar-collapsed .sidebar-link,
  body.sidebar-collapsed .sidebar-signout-btn {
    justify-content: flex-start;
    gap: 0.75rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  body.sidebar-collapsed .sidebar-user {
    justify-content: flex-start;
  }

  .inbox-layout {
    flex-direction: column;
  }

  .inbox-conversations-card {
    flex: 1 1 auto;
  }

  .inbox-thread-card {
    max-width: none;
  }
}

.dashboard-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

@media (min-width: 768px) {
  .dashboard-main {
    padding: 2.5rem 2rem 5rem;
  }
}

.dashboard-intro {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0.5rem 0 1.75rem;
  text-align: left;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.dashboard-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
}

.dashboard-intro .tagline {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1.35rem;
  max-width: 36rem;
}

.dashboard-intro .connect-btn {
  width: auto;
  min-width: 12rem;
}

.dashboard-intro.settings-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings-header-heading {
  min-width: 0;
}

.settings-header-row .connect-btn {
  flex-shrink: 0;
  min-width: 10rem;
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.analytics-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-soft);
}

.analytics-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.analytics-card-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

.analytics-section {
  margin-bottom: 2rem;
}

.analytics-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  padding: 0.5rem 0.25rem 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.analytics-chart-bar {
  flex: 1 0 6px;
  min-width: 6px;
  background: var(--teal);
  border-radius: 3px 3px 0 0;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.analytics-chart-bar:hover {
  opacity: 1;
}

.analytics-chart-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.analytics-table th,
.analytics-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.analytics-table th {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.analytics-empty-msg {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

.toast {
  border-radius: 0.85rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.toast.success {
  background: var(--mist);
  color: var(--success);
  border-color: rgba(15, 118, 110, 0.2);
}

.toast.error {
  background: #fef2f2;
  color: var(--error);
  border-color: rgba(185, 28, 28, 0.15);
}

.connections-empty {
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.numbers-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-soft);
}

.numbers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.numbers-table th,
.numbers-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.numbers-table tbody tr:last-child td {
  border-bottom: none;
}

.numbers-table th {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.numbers-table-actions-col {
  width: 1%;
}

.connection-row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--wash);
  color: var(--ink);
}

.icon-btn.gear-btn.is-active {
  background: var(--mist);
  color: var(--teal-deep);
  border-color: rgba(15, 118, 110, 0.35);
}

.icon-btn.delete-btn:hover {
  background: #fef2f2;
  color: var(--error);
  border-color: rgba(185, 28, 28, 0.35);
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.status-active {
  background: var(--mist);
  color: var(--success);
}

.status-disconnected {
  background: var(--wash);
  color: var(--muted);
}

.status-pending {
  background: #fef9c3;
  color: #854d0e;
}

.status-rejected {
  background: #fef2f2;
  color: var(--error);
}

.back-to-numbers-btn {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.settings-page-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.5rem 0 1.5rem;
}

.settings-connected-date {
  font-size: 0.8125rem;
  color: var(--muted);
}

.connection-details {
  padding-top: 0.9rem;
  margin-bottom: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.connection-details p {
  margin: 0.25rem 0;
  word-break: break-all;
}

.connection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.settings-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.automation-toggle-heading {
  min-width: 0;
}

.automation-toggle-desc {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.automation-state-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.6rem;
  height: 1.5rem;
  flex-shrink: 0;
}

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

.toggle-switch-slider {
  position: absolute;
  inset: 0;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.toggle-switch-slider::before {
  content: '';
  position: absolute;
  height: 1.05rem;
  width: 1.05rem;
  left: 0.14rem;
  top: 0.14rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.toggle-switch input:checked + .toggle-switch-slider {
  background: var(--teal);
  border-color: var(--teal);
}

.toggle-switch input:checked + .toggle-switch-slider::before {
  transform: translateX(1.1rem);
}

.toggle-switch input:focus-visible + .toggle-switch-slider {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.25);
}

.toggle-switch input:disabled + .toggle-switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.auto-reply-label,
.modal-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auto-reply-input,
.recipient-country-code,
.recipient-number-input,
.template-select {
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auto-reply-input:focus,
.recipient-country-code:focus,
.recipient-number-input:focus,
.template-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.auto-reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.auto-reply-saved-msg {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 700;
}

.automation-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.automation-toggle-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cooldown-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.cooldown-select,
.cooldown-custom-input {
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cooldown-select:focus,
.cooldown-custom-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.cooldown-select {
  min-width: 12rem;
}

.cooldown-custom-input {
  width: 6rem;
}

.cooldown-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.cooldown-saved-msg {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 700;
}

.recent-sends-list {
  margin-top: 0.65rem;
  max-height: 220px;
  overflow-y: auto;
}

.recent-sends-empty {
  font-size: 0.75rem;
  color: var(--muted);
}

.sent-message-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem;
}

.sent-message-row:last-child {
  border-bottom: none;
}

.sent-message-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sent-message-recipient {
  font-weight: 700;
  color: var(--ink);
}

.sent-message-template {
  color: var(--muted);
}

.sent-message-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.sent-message-status-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.sent-message-status-badge.status-sent {
  background: var(--mist);
  color: var(--success);
}

.sent-message-status-badge.status-delivered {
  background: #ecfdf5;
  color: #047857;
}

.sent-message-status-badge.status-read {
  background: #eff6ff;
  color: #1d4ed8;
}

.sent-message-status-badge.status-failed {
  background: #fef2f2;
  color: var(--error);
}

.sent-message-status-badge.status-pending {
  background: #fffbeb;
  color: #b45309;
}

.sent-message-status-badge.status-canceled {
  background: #f1f5f9;
  color: var(--muted);
}

.sent-message-date {
  color: var(--muted);
}

.scheduled-cancel-btn {
  font-size: 0.7rem;
}

/* —— Inbox —— */

.inbox-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.inbox-conversations-card {
  flex: 0 0 280px;
  max-width: 280px;
}

.inbox-thread-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.inbox-conversation-list {
  margin-top: 0.65rem;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.inbox-conversation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.5rem;
  border: none;
  border-radius: 0.6rem;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.inbox-conversation-row:hover {
  background: var(--wash);
}

.inbox-conversation-row.is-active {
  background: var(--mist);
}

.inbox-conversation-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.inbox-conversation-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink);
}

.inbox-conversation-preview {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.inbox-conversation-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.inbox-conversation-date {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

.inbox-conversation-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.inbox-thread-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.inbox-thread-name {
  font-weight: 700;
  color: var(--ink);
}

.inbox-thread-number {
  font-size: 0.8125rem;
  color: var(--muted);
}

.inbox-thread-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 240px;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.25rem 0.15rem;
}

.inbox-message-bubble {
  max-width: 75%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.inbox-message-bubble.is-inbound {
  align-self: flex-start;
  background: var(--wash);
  color: var(--ink);
  border-bottom-left-radius: 0.2rem;
}

.inbox-message-bubble.is-outbound {
  align-self: flex-end;
  background: var(--mist);
  color: var(--ink);
  border-bottom-right-radius: 0.2rem;
}

.inbox-message-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.inbox-message-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  color: var(--muted);
}

.inbox-message-status {
  font-weight: 800;
  color: var(--error);
}

.inbox-reply-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.inbox-reply-input {
  flex: 1;
  min-height: 2.75rem;
  max-height: 8rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
}

.inbox-reply-input:focus {
  outline: none;
  border-color: var(--teal);
}

/* —— Modal —— */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.48);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal {
  background: #fff;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.45);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-up 0.35s var(--ease-out);
}

@keyframes modal-up {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}

.modal-body {
  padding: 1rem 1.5rem 0;
  text-align: left;
}

.modal-label {
  margin: 0.9rem 0 0.4rem;
}

.modal-label:first-child {
  margin-top: 0;
}

.recipient-input-row {
  display: flex;
  gap: 0.5rem;
}

.recipient-input-row[hidden] {
  display: none;
}

.combobox {
  position: relative;
}

.combobox-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.combobox-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.combobox-options {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 14rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  box-shadow: var(--shadow-soft);
}

.combobox-option {
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
}

.combobox-option:hover,
.combobox-option.is-highlighted {
  background: var(--wash);
}

.combobox-empty {
  padding: 0.6rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.bim-manual-recipient-row {
  margin-top: 0.75rem;
}

.bim-save-contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.bim-save-contact-row[hidden] {
  display: none;
}

.bim-save-contact-name {
  margin-top: 0.5rem;
}

.bim-mode-toggle {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.9rem;
}

.bim-mode-btn {
  color: var(--muted);
}

.bim-mode-btn.is-active {
  color: var(--teal-deep);
}

.bim-broadcast-tag-filter {
  margin-bottom: 0.6rem;
}

.bim-schedule-fields {
  flex-wrap: wrap;
  align-items: center;
}

.bim-schedule-date-input {
  width: auto;
  min-width: 9.5rem;
}

.bim-schedule-time-select {
  width: auto;
  min-width: 4.5rem;
}

.bim-schedule-colon {
  font-weight: 700;
  color: var(--muted);
}

.bim-template-params-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.bim-template-param-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bim-template-param-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.bim-broadcast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.bim-broadcast-select-all-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.bim-broadcast-count {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 700;
}

.bim-broadcast-contacts-list {
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
}

.bim-broadcast-contact-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.bim-broadcast-contact-row:last-child {
  border-bottom: none;
}

.bim-broadcast-contact-row:hover {
  background: var(--wash);
}

.contact-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-row-name-input,
.contact-row-tags-input {
  min-width: 8rem;
}

.contact-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal-deep);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.contact-name-input {
  flex: 1 1 12rem;
  min-width: 0;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-name-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.tpl-full-width {
  width: 100%;
  flex: none;
  margin-bottom: 0.75rem;
}

.agent-system-prompt-textarea {
  min-height: 6rem;
  margin-bottom: 0.75rem;
}

.agent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.agent-row-name {
  font-weight: 700;
  color: var(--ink);
}

.agent-row-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.agent-row-prompt-preview {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.agent-row-meta {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.templates-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.templates-header-row .analytics-section-title {
  margin: 0;
}

#tpl-create-card .auto-reply-label {
  margin-top: 1rem;
}

#tpl-create-card .auto-reply-label:first-child {
  margin-top: 0;
}

#tpl-body-examples-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tpl-body-example-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  color: var(--ink);
  background: #fff;
}

.tpl-body-example-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.tpl-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tpl-button-row .cooldown-select {
  min-width: 9rem;
}

.tpl-button-row .contact-name-input {
  flex: 1 1 10rem;
}

.recipient-country-code {
  flex: 0 0 90px;
  width: auto;
}

.recipient-number-input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.template-select {
  width: 100%;
}

.modal-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
}

.modal-send-btn {
  width: auto;
  padding: 0.65rem 1.35rem;
}

/* Legacy login card (unused on welcome, kept safe) */
.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 2rem;
}

.google-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.google-btn:hover:not(:disabled) {
  background: var(--wash);
}

.details {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 0.8125rem;
  color: var(--muted);
}

.details p {
  margin: 0.25rem 0;
  word-break: break-all;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.billing-plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-soft);
}

.billing-plan-card.is-current {
  border-color: rgba(15, 118, 110, 0.45);
  background: var(--mist);
  box-shadow: 0 18px 40px -28px rgba(15, 118, 110, 0.55);
}

.billing-plan-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.billing-plan-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--teal);
}

.billing-plan-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.billing-plan-card .connect-btn,
.billing-plan-card .link-btn {
  margin-top: auto;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.35rem 0 0.5rem;
  }

  body.nav-open .site-nav-links {
    display: flex;
  }

  .site-nav-links a,
  .site-nav-links .nav-cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    color: var(--ink);
  }

  .site-nav-links .nav-cta {
    justify-content: center;
    margin-top: 0.25rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 2.25rem 1.15rem 2.75rem;
  }

  .hero-brand {
    font-size: clamp(2.15rem, 11vw, 3.25rem);
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .connect-btn {
    width: 100%;
  }

  .cta-band-inner {
    padding: 2rem 1.15rem;
    border-radius: 1.25rem;
  }

  .about-section,
  .steps-section,
  .compare-section,
  .pricing-section,
  .family-section {
    padding: 2.75rem 0;
  }

  .section-inner {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .stats-strip-inner {
    grid-template-columns: 1fr 1fr;
  }

  .family-inner {
    padding: 1.35rem;
  }

  .compare-table {
    min-width: 0;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    padding: 0.85rem 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .compare-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    white-space: normal;
  }

  .compare-table td:first-child {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .compare-table td:nth-child(2)::before { content: "Free"; }
  .compare-table td:nth-child(3)::before { content: "Starter"; }
  .compare-table td:nth-child(4)::before { content: "Growth"; }
  .compare-table td:nth-child(5)::before { content: "Enterprise"; }

  .compare-table td::before {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .dashboard-main {
    padding: 1.15rem 0.95rem 3.5rem;
  }

  .dashboard-intro .hero-actions {
    width: 100%;
  }

  .dashboard-intro .connect-btn,
  .dashboard-intro .btn-secondary {
    width: 100%;
    min-width: 0;
  }

  .analytics-cards,
  .home-limit-grid,
  .home-pricing-grid,
  .billing-plan-grid {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    padding: 0.75rem 0.95rem;
  }

  .numbers-table thead,
  .analytics-table thead {
    display: none;
  }

  .numbers-table,
  .analytics-table,
  .numbers-table tbody,
  .analytics-table tbody,
  .numbers-table tr,
  .analytics-table tr,
  .numbers-table td,
  .analytics-table td {
    display: block;
    width: 100%;
  }

  .numbers-table tr,
  .analytics-table tr {
    padding: 0.85rem 0 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .numbers-table td,
  .analytics-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem 1rem;
    white-space: normal;
    border-bottom: none;
  }

  .numbers-table td::before,
  .analytics-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex: 0 0 7rem;
  }

  .connection-row-actions,
  .contact-row-actions {
    justify-content: flex-end;
  }

  .contact-add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-add-row .recipient-country-code,
  .contact-add-row .recipient-number-input,
  .contact-add-row .contact-name-input,
  .contact-add-row .link-btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .inbox-conversations-card,
  .inbox-thread-card {
    max-width: none;
    flex: 1 1 auto;
  }

  .inbox-conversation-preview {
    max-width: none;
  }

  .inbox-reply-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bim-schedule-fields {
    flex-wrap: wrap;
  }

  .tpl-button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-overlay {
    align-items: stretch;
    padding: 0;
  }

  .modal {
    max-width: none;
    max-height: 100%;
    border-radius: 0;
    min-height: 100%;
  }
}

/* =========================================================
   Harnad refresh — Voice-inspired neo workspace
   ========================================================= */

:root {
  --ink: #17252d;
  --ink-soft: #30434b;
  --muted: #6d7d82;
  --line: rgba(106, 130, 132, 0.18);
  --wash: #e9f1f0;
  --surface: #e9f1f0;
  --surface-2: #f4f8f7;
  --mist: #d9f2ec;
  --teal: #087f73;
  --teal-deep: #075e57;
  --teal-glow: #20b9a6;
  --neo-shadow-dark: 12px 14px 28px rgba(129, 149, 151, 0.34);
  --neo-shadow-light: -12px -12px 26px rgba(255, 255, 255, 0.92);
  --neo-shadow: var(--neo-shadow-dark), var(--neo-shadow-light);
  --neo-inset: inset 5px 5px 12px rgba(133, 154, 155, 0.22), inset -5px -5px 12px rgba(255, 255, 255, 0.84);
  --radius-xl: 2rem;
  --radius-lg: 1.35rem;
  --radius-md: 0.95rem;
}

body {
  background-color: var(--wash);
  background-image:
    radial-gradient(900px 500px at 10% -5%, rgba(50, 190, 171, 0.15), transparent 62%),
    radial-gradient(800px 450px at 100% 20%, rgba(255, 255, 255, 0.85), transparent 65%),
    linear-gradient(135deg, #edf4f3 0%, #e6efee 100%);
}

body::selection {
  color: var(--ink);
  background: rgba(32, 185, 166, 0.22);
}

.ambient-orb {
  opacity: 0.3;
  filter: blur(64px);
}

.site-nav {
  margin: 0.75rem 1rem 0;
  min-height: 4.25rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 1.25rem;
  background: rgba(235, 243, 242, 0.78);
  box-shadow: var(--neo-shadow);
}

.brand-mark {
  filter: drop-shadow(3px 4px 6px rgba(7, 94, 87, 0.2));
}

.nav-cta,
.btn-secondary,
.pricing-cta {
  border: none;
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.nav-cta:hover,
.btn-secondary:hover,
.pricing-cta:hover {
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: 5px 6px 14px rgba(129, 149, 151, 0.28), -5px -5px 12px rgba(255, 255, 255, 0.84);
}

.btn-primary,
.connect-btn {
  border-radius: 0.9rem;
  background: var(--ink);
  box-shadow: 8px 10px 18px rgba(23, 37, 45, 0.26), -5px -5px 13px rgba(255, 255, 255, 0.65);
}

.btn-primary:hover:not(:disabled),
.connect-btn:hover:not(:disabled) {
  background: var(--teal);
  box-shadow: 5px 7px 14px rgba(8, 127, 115, 0.3), -4px -4px 10px rgba(255, 255, 255, 0.75);
}

.hero {
  min-height: calc(100svh - var(--nav-h) - 2.4rem);
  margin: 1.25rem 1rem 0;
  border-radius: 2rem;
  box-shadow: var(--neo-shadow);
}

.hero-media {
  border-radius: inherit;
  overflow: hidden;
}

.hero-media-veil {
  background:
    linear-gradient(105deg, rgba(10, 27, 32, 0.9) 0%, rgba(10, 27, 32, 0.65) 42%, rgba(10, 27, 32, 0.28) 78%, rgba(10, 27, 32, 0.42) 100%),
    linear-gradient(to top, rgba(10, 27, 32, 0.68), transparent 52%);
}

.hero-copy {
  padding-left: clamp(1.75rem, 6vw, 5.5rem);
}

.hero-copy .eyebrow {
  color: #65e4d0;
}

.hero-brand {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.about-section,
.steps-section,
.compare-section,
.pricing-section,
.family-section {
  padding-top: 6.5rem;
  padding-bottom: 5rem;
}

.stats-strip {
  margin-top: -2rem;
}

.stats-strip-inner,
.step-card,
.compare-wrap,
.pricing-grid,
.family-inner,
.cta-band-inner {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.stats-strip-inner {
  border-radius: var(--radius-lg);
}

.feature {
  padding: 1.65rem;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: var(--mist);
  box-shadow: var(--neo-inset);
}

.step-card,
.family-inner,
.cta-band-inner {
  border-radius: var(--radius-xl);
}

.step-n {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mist);
  box-shadow: var(--neo-inset);
}

.compare-wrap,
.pricing-grid {
  overflow: hidden;
}

.compare-table th {
  background: rgba(217, 242, 236, 0.58);
}

.pricing-grid {
  gap: 1rem;
  padding: 1rem;
  border: none;
  background: transparent;
  overflow: visible;
}

.pricing-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--neo-shadow);
}

.pricing-card.is-featured {
  background: linear-gradient(145deg, #d9f2ec, #eef8f6);
  transform: translateY(-0.5rem);
}

.family-inner {
  padding: 2.5rem;
}

.cta-band-inner {
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(32, 185, 166, 0.18), transparent 70%),
    var(--surface);
}

/* Dashboard shell */

.dashboard-body {
  background:
    radial-gradient(850px 520px at 0% 0%, rgba(32, 185, 166, 0.14), transparent 63%),
    linear-gradient(135deg, #edf4f3, #e3eceb);
}

.dashboard-body .ambient {
  opacity: 0.16;
}

.app-shell {
  gap: 1.1rem;
  padding: 1rem;
}

.app-sidebar {
  top: 1rem;
  height: calc(100vh - 2rem);
  flex-basis: 264px;
  width: 264px;
  padding: 1.25rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.sidebar-brand-row {
  margin: 0.15rem 0 1.75rem;
}

.sidebar-brand-product {
  color: var(--teal);
  font-size: 1.12rem;
}

.sidebar-icon-btn {
  border: none;
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.sidebar-icon-btn:hover {
  border-color: transparent;
  box-shadow: var(--neo-inset);
}

.sidebar-links {
  gap: 0.28rem;
}

@media (min-width: 1024px) {
  .sidebar-links {
    overflow: visible;
  }
}

.sidebar-section-label {
  margin: 0.85rem 0.7rem 0.25rem;
  color: rgba(48, 67, 75, 0.43);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sidebar-section-label:first-child {
  margin-top: 0;
}

body.sidebar-collapsed .sidebar-section-label {
  display: none;
}

body.sidebar-collapsed .sidebar-links {
  gap: 0.1rem;
}

body.sidebar-collapsed .sidebar-link {
  min-height: 2.45rem;
}

.sidebar-link {
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  color: var(--muted);
}

.sidebar-link:hover {
  background: var(--surface);
  box-shadow: var(--neo-inset);
}

.sidebar-link.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 6px 7px 15px rgba(23, 37, 45, 0.2), -4px -4px 10px rgba(255, 255, 255, 0.72);
}

.sidebar-link.is-active .sidebar-link-icon {
  color: var(--teal-glow);
}

.sidebar-footer {
  border-top: 1px solid rgba(106, 130, 132, 0.16);
}

.sidebar-signout-btn {
  border-radius: 0.8rem;
}

.app-content {
  min-width: 0;
}

.app-topbar {
  margin-bottom: 0.25rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.25rem;
  background: rgba(233, 241, 240, 0.78);
  box-shadow: var(--neo-shadow);
}

.app-topbar-label {
  color: var(--ink);
  font-size: 0.98rem;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.system-status,
.section-context,
.analytics-period-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.system-status-dot,
.section-context-dot,
.hero-trust-dot,
.hero-visual-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #20b981;
  box-shadow: 0 0 0 4px rgba(32, 185, 129, 0.12);
}

.topbar-plans-btn {
  border: none;
  border-radius: 0.8rem;
  background: var(--teal);
  color: #fff;
  box-shadow: 5px 6px 13px rgba(8, 127, 115, 0.24), -4px -4px 9px rgba(255, 255, 255, 0.8);
}

.topbar-plans-btn:hover {
  border-color: transparent;
  background: var(--teal-deep);
}

.dashboard-main {
  max-width: 1440px;
  padding: 1.25rem 1rem 4rem;
}

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: stretch;
  gap: 2rem;
  min-height: 310px;
  margin-bottom: 1.6rem;
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(500px 230px at 0% 0%, rgba(32, 185, 166, 0.18), transparent 72%),
    var(--surface);
  box-shadow: var(--neo-shadow);
}

.dashboard-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dashboard-intro h1 {
  max-width: 38rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.03;
}

.dashboard-intro .tagline {
  max-width: 34rem;
  color: var(--muted);
}

.dashboard-intro .hero-actions {
  margin-top: 0.35rem;
}

.dashboard-intro .btn-secondary {
  color: var(--ink);
}

.dashboard-hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-trust-separator {
  color: rgba(109, 125, 130, 0.45);
}

.dashboard-hero-visual {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: 1.45rem;
  background: var(--ink);
  box-shadow: var(--neo-inset);
}

.dashboard-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
  opacity: 0.7;
}

.dashboard-hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(8, 127, 115, 0.16), rgba(10, 27, 32, 0.78));
}

.hero-visual-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(10, 27, 32, 0.68);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 27, 32, 0.22);
  backdrop-filter: blur(12px);
}

.hero-visual-badge-top {
  top: 1rem;
  left: 1rem;
}

.hero-visual-badge-bottom {
  right: 1rem;
  bottom: 1rem;
}

.hero-visual-badge strong,
.hero-visual-badge small {
  display: block;
}

.hero-visual-badge strong {
  font-size: 0.72rem;
}

.hero-visual-badge small {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.63rem;
}

.hero-visual-badge-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  background: rgba(32, 185, 166, 0.2);
  color: #68ead8;
}

.hero-visual-pulse {
  display: block;
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  box-shadow: 0 0 0 5px rgba(32, 185, 129, 0.16);
}

.home-plan-strip,
.home-limit-grid,
.home-pricing-grid {
  gap: 1rem;
}

.home-info-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.home-info-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.home-limit-grid .home-info-card {
  min-height: 145px;
}

.home-pricing-card.is-current {
  background: linear-gradient(145deg, #d9f2ec, #eef8f6);
  border-color: rgba(8, 127, 115, 0.26);
}

.usage-meter {
  background: rgba(106, 130, 132, 0.15);
  box-shadow: var(--neo-inset);
}

.usage-meter > span {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-glow));
}

.home-section-heading,
.analytics-card-heading,
.home-quick-actions-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.home-section-heading {
  margin: 2.5rem 0 1rem;
}

.home-section-heading .eyebrow,
.home-quick-actions-heading .eyebrow,
.analytics-overline {
  margin-bottom: 0.3rem;
  color: var(--teal);
}

.home-section-heading .analytics-section-title,
.home-quick-actions-heading .analytics-section-title {
  margin: 0;
  font-size: 1.5rem;
}

.analytics-summary-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.analytics-card {
  position: relative;
  min-height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.analytics-card-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.35rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--neo-inset);
}

.analytics-card-icon-teal { color: var(--teal); background: #d9f2ec; }
.analytics-card-icon-blue { color: #3977a7; background: #e1edf8; }
.analytics-card-icon-rose { color: #b55c6a; background: #f6e4e8; }
.analytics-card-icon-violet { color: #7566a8; background: #ece7f7; }
.analytics-card-icon-amber { color: #a17728; background: #f7eed8; }

.analytics-card-value {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1;
}

.analytics-card-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.analytics-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.9fr);
  gap: 1rem;
}

.analytics-dashboard-grid .settings-card {
  margin-bottom: 0;
}

.settings-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.analytics-card-heading {
  align-items: center;
  margin-bottom: 1.35rem;
}

.analytics-overline {
  margin-top: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.analytics-card-heading .analytics-section-title {
  margin: 0;
  font-size: 1.15rem;
}

.analytics-period-pill {
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  background: var(--surface);
  box-shadow: var(--neo-inset);
}

.analytics-live-mark {
  color: #15936c;
  font-size: 0.68rem;
  font-weight: 800;
}

.analytics-chart {
  height: 190px;
  gap: 0.35rem;
  padding: 1rem 0.4rem 0;
  border-bottom: none;
  border-radius: 0.9rem;
  background:
    linear-gradient(rgba(106, 130, 132, 0.09) 1px, transparent 1px),
    var(--surface-2);
  background-size: 100% 25%;
  box-shadow: var(--neo-inset);
}

.analytics-chart-bar {
  min-width: 8px;
  border-radius: 0.45rem 0.45rem 0.2rem 0.2rem;
  background: linear-gradient(180deg, var(--teal-glow), var(--teal));
  box-shadow: 2px 0 5px rgba(8, 127, 115, 0.16);
}

.analytics-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.analytics-table th {
  color: var(--muted);
}

.analytics-table td,
.analytics-table th {
  border-bottom-color: rgba(106, 130, 132, 0.13);
}

.home-quick-actions {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, 1fr);
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.75rem;
}

.home-quick-actions-heading {
  align-items: center;
  display: block;
  padding: 1rem 0.25rem;
}

.home-action-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--neo-shadow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.home-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 8px 10px 20px rgba(129, 149, 151, 0.3), -8px -8px 18px rgba(255, 255, 255, 0.9);
}

.home-action-card strong,
.home-action-card small {
  display: block;
}

.home-action-card strong {
  font-size: 0.82rem;
}

.home-action-card small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.home-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  background: var(--mist);
  color: var(--teal);
  font-size: 1.2rem;
  box-shadow: var(--neo-inset);
}

.home-action-icon-blue { background: #e1edf8; color: #3977a7; }
.home-action-icon-violet { background: #ece7f7; color: #7566a8; }

.home-action-arrow {
  margin-left: auto;
  color: var(--teal);
  font-weight: 800;
}

.numbers-table-wrap,
.bim-broadcast-contacts-list,
.combobox-options {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface-2);
  box-shadow: var(--neo-inset);
}

.numbers-table-wrap {
  border-radius: var(--radius-lg);
}

input,
textarea,
select,
.combobox-input,
.contact-name-input,
.inbox-reply-input {
  border-color: transparent;
  border-radius: 0.8rem;
  background: var(--surface-2);
  box-shadow: var(--neo-inset);
}

input:focus,
textarea:focus,
select:focus,
.combobox-input:focus,
.contact-name-input:focus,
.inbox-reply-input:focus {
  border-color: rgba(8, 127, 115, 0.34);
  box-shadow: var(--neo-inset), 0 0 0 3px rgba(8, 127, 115, 0.1);
}

.icon-btn {
  border: none;
  border-radius: 0.7rem;
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.icon-btn:hover {
  border-color: transparent;
  background: var(--surface);
  box-shadow: var(--neo-inset);
}

.status-badge {
  box-shadow: var(--neo-inset);
}

.modal {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

@media (max-width: 1200px) {
  .analytics-summary-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-quick-actions-heading {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
}

@media (max-width: 1023px) {
  .app-shell {
    padding: 0.75rem;
  }

  .app-sidebar {
    top: 0;
    left: 0;
    height: 100vh;
    border-radius: 0 1.75rem 1.75rem 0;
  }

  .dashboard-intro {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-visual {
    min-height: 190px;
  }

  .dashboard-hero-visual img {
    min-height: 190px;
  }
}

@media (max-width: 767px) {
  .site-nav {
    margin: 0.55rem 0.55rem 0;
    border-radius: 1rem;
  }

  .hero {
    min-height: 0;
    margin: 0.8rem 0.55rem 0;
    border-radius: 1.35rem;
  }

  .hero-copy {
    padding: 2.5rem 1.35rem 3rem;
  }

  .stats-strip {
    margin-top: -1rem;
  }

  .feature,
  .step-card,
  .family-inner,
  .cta-band-inner {
    border-radius: 1.25rem;
  }

  .pricing-grid {
    padding: 0;
  }

  .pricing-card.is-featured {
    transform: none;
  }

  .app-shell {
    padding: 0.55rem;
  }

  .app-topbar {
    margin-bottom: 0;
    border-radius: 1rem;
  }

  .app-topbar-right {
    gap: 0.5rem;
  }

  .system-status {
    display: none;
  }

  .dashboard-main {
    padding: 0.9rem 0.2rem 3rem;
  }

  .dashboard-intro {
    gap: 1.25rem;
    min-height: 0;
    padding: 1.35rem;
    border-radius: 1.35rem;
  }

  .dashboard-intro h1 {
    font-size: 2rem;
  }

  .dashboard-hero-trust {
    font-size: 0.65rem;
  }

  .dashboard-hero-visual {
    min-height: 170px;
  }

  .dashboard-hero-visual img {
    min-height: 170px;
  }

  .hero-visual-badge {
    padding: 0.55rem 0.65rem;
  }

  .analytics-summary-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .analytics-card {
    min-height: 132px;
    padding: 0.9rem;
  }

  .analytics-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .home-quick-actions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .home-quick-actions-heading {
    grid-column: auto;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

/* =========================================================
   Visual system v2 — Harnad Voice blue/cyan direction
   ========================================================= */

:root {
  --ink: #0b1c31;
  --ink-soft: #29415a;
  --muted: #637990;
  --line: rgba(89, 122, 157, 0.18);
  --wash: #eaf2f9;
  --surface: #eaf2f9;
  --surface-2: #f7faff;
  --mist: #dceeff;
  --teal: #1769d5;
  --teal-deep: #0c4b9d;
  --teal-soft: #dceeff;
  --teal-glow: #36c9ed;
  --neo-shadow-dark: 14px 16px 30px rgba(139, 161, 184, 0.38);
  --neo-shadow-light: -12px -12px 28px rgba(255, 255, 255, 0.96);
  --neo-shadow: var(--neo-shadow-dark), var(--neo-shadow-light);
  --neo-inset: inset 5px 5px 12px rgba(147, 169, 191, 0.22), inset -5px -5px 12px rgba(255, 255, 255, 0.9);
}

body {
  color: var(--ink);
  background-color: #eaf2f9;
  background-image:
    radial-gradient(900px 540px at 0% -10%, rgba(54, 201, 237, 0.2), transparent 63%),
    radial-gradient(900px 520px at 100% 5%, rgba(23, 105, 213, 0.13), transparent 64%),
    linear-gradient(135deg, #f1f7fc 0%, #e5eef6 100%);
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--teal-deep);
}

.text-teal {
  color: var(--teal);
}

.eyebrow {
  color: var(--teal);
  letter-spacing: 0.18em;
}

.product-ticker {
  background: #091b30;
}

.product-ticker a:hover {
  color: var(--teal-glow);
}

.site-nav {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(234, 242, 249, 0.82);
}

.site-nav,
.hero {
  border: none;
}

.brand-mark {
  filter: drop-shadow(3px 4px 7px rgba(23, 105, 213, 0.28));
}

.brand-name {
  color: var(--ink);
}

.nav-cta,
.btn-secondary,
.pricing-cta {
  color: var(--ink);
  background: #f4f9fe;
}

.nav-cta:hover,
.btn-secondary:hover,
.pricing-cta:hover {
  color: var(--teal-deep);
  background: #fff;
}

.btn-primary,
.connect-btn {
  background: #0b1c31;
  box-shadow: 9px 11px 20px rgba(42, 70, 101, 0.3), -5px -5px 12px rgba(255, 255, 255, 0.82);
}

.btn-primary:hover:not(:disabled),
.connect-btn:hover:not(:disabled) {
  background: var(--teal);
  box-shadow: 6px 8px 16px rgba(23, 105, 213, 0.28), -5px -5px 12px rgba(255, 255, 255, 0.86);
}

.google-signin {
  color: var(--ink) !important;
  background: #f7fbff !important;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--neo-shadow);
}

.google-signin:hover:not(:disabled) {
  color: var(--teal-deep) !important;
  background: #fff !important;
}

.hero {
  align-items: center;
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 16px 20px 38px rgba(76, 108, 138, 0.3), -12px -12px 28px rgba(255, 255, 255, 0.74);
}

.hero-media-veil {
  background:
    linear-gradient(100deg, rgba(7, 23, 42, 0.92) 0%, rgba(7, 23, 42, 0.76) 38%, rgba(7, 23, 42, 0.33) 76%, rgba(7, 23, 42, 0.4) 100%),
    linear-gradient(to top, rgba(7, 23, 42, 0.62), transparent 58%);
}

.hero-copy {
  max-width: 44rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-copy .eyebrow {
  color: #62e1f2;
}

.hero-brand {
  max-width: 35rem;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.92;
}

.hero-brand .text-teal {
  background: linear-gradient(115deg, #78efff 0%, #36c9ed 48%, #2f85ef 100%);
}

.hero-lead {
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(245, 250, 255, 0.86);
}

.pulse-ring {
  border-color: rgba(54, 201, 237, 0.58);
}

.stats-strip-inner,
.step-card,
.compare-wrap,
.pricing-grid,
.family-inner,
.cta-band-inner,
.feature,
.pricing-card {
  border-color: rgba(255, 255, 255, 0.86);
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.stats-strip-inner {
  background: rgba(234, 242, 249, 0.9);
}

.feature-icon,
.step-n {
  color: var(--teal);
  background: var(--mist);
}

.compare-table th {
  background: rgba(220, 238, 255, 0.7);
}

.pricing-card.is-featured,
.home-pricing-card.is-current {
  border-color: rgba(23, 105, 213, 0.32);
  background: linear-gradient(145deg, #dceeff, #f2f8fe);
}

.family-links a {
  color: var(--teal);
}

.cta-band-inner {
  background:
    radial-gradient(550px 220px at 0% 0%, rgba(54, 201, 237, 0.2), transparent 70%),
    var(--surface);
}

/* Dashboard layout and alignment */

.dashboard-body {
  background:
    radial-gradient(900px 560px at 0% 0%, rgba(54, 201, 237, 0.16), transparent 62%),
    radial-gradient(800px 500px at 100% 10%, rgba(23, 105, 213, 0.12), transparent 64%),
    linear-gradient(135deg, #f0f6fb, #e3edf6);
}

.app-shell {
  gap: 1.35rem;
  padding: 1.1rem;
}

.app-sidebar {
  flex-basis: 270px;
  width: 270px;
  padding: 1.35rem 1.05rem 1.05rem;
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 1.8rem;
  background: linear-gradient(145deg, #eef5fb, #e3edf5);
  box-shadow: var(--neo-shadow);
}

.sidebar-brand-product {
  color: var(--teal);
}

.sidebar-icon-btn {
  color: var(--ink-soft);
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.sidebar-icon-btn:hover {
  color: var(--teal);
  background: var(--surface);
}

.sidebar-section-label {
  color: rgba(41, 65, 90, 0.46);
}

.sidebar-link {
  color: #60768b;
}

.sidebar-link:hover {
  color: var(--teal-deep);
  background: var(--surface);
  box-shadow: var(--neo-inset);
}

.sidebar-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #145bb9, #1f7de3);
  box-shadow: 7px 8px 16px rgba(65, 106, 150, 0.3), -4px -4px 10px rgba(255, 255, 255, 0.82);
}

.sidebar-link.is-active .sidebar-link-icon {
  color: #80efff;
}

.sidebar-footer {
  border-top-color: rgba(89, 122, 157, 0.18);
}

.app-topbar {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(234, 242, 249, 0.8);
  box-shadow: var(--neo-shadow);
}

.app-topbar-label {
  color: var(--ink);
}

.system-status-dot,
.section-context-dot,
.hero-trust-dot,
.hero-visual-pulse {
  background: #1fbe91;
}

.topbar-plans-btn {
  background: var(--teal);
  box-shadow: 6px 7px 14px rgba(23, 105, 213, 0.28), -4px -4px 10px rgba(255, 255, 255, 0.86);
}

.topbar-plans-btn:hover {
  background: var(--teal-deep);
}

.dashboard-main {
  max-width: 1480px;
  padding: 1.3rem 1.1rem 4rem;
}

.dashboard-intro {
  display: block;
  min-height: 0;
  padding: 1.25rem 0 1.65rem;
  border: none;
  border-bottom: 1px solid rgba(89, 122, 157, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-dashboard > .dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
  gap: 2.2rem;
  min-height: 330px;
  margin-bottom: 1.65rem;
  padding: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  background:
    radial-gradient(600px 250px at 0% 0%, rgba(54, 201, 237, 0.17), transparent 72%),
    linear-gradient(145deg, #edf5fc, #e5eef6);
  box-shadow: var(--neo-shadow);
}

.dashboard-intro.settings-header-row {
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 0 1.65rem;
  border: none;
  border-bottom: 1px solid rgba(89, 122, 157, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-intro h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.dashboard-intro .tagline {
  color: var(--muted);
}

.dashboard-hero-visual {
  min-height: 250px;
  border: 1px solid rgba(104, 225, 242, 0.18);
  box-shadow: var(--neo-inset);
}

.dashboard-hero-visual-overlay {
  background: linear-gradient(145deg, rgba(23, 105, 213, 0.22), rgba(7, 23, 42, 0.84));
}

.hero-visual-badge {
  background: rgba(7, 23, 42, 0.7);
}

.hero-visual-badge-icon {
  color: #7dedfb;
  background: rgba(54, 201, 237, 0.18);
}

.home-info-card,
.analytics-card,
.settings-card,
.home-action-card {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, #edf4fa, #e5eef6);
  box-shadow: var(--neo-shadow);
}

.home-info-card .label,
.analytics-card-label {
  color: #6a8094;
}

.home-info-card:hover,
.home-action-card:hover {
  box-shadow: 8px 10px 21px rgba(139, 161, 184, 0.33), -8px -8px 19px rgba(255, 255, 255, 0.94);
}

.home-pricing-card.is-current {
  background: linear-gradient(145deg, #dceeff, #f1f8fe);
}

.usage-meter {
  background: rgba(89, 122, 157, 0.14);
}

.usage-meter > span {
  background: linear-gradient(90deg, #1769d5, #36c9ed);
}

.home-section-heading {
  margin-top: 2.8rem;
}

.analytics-card-icon-teal { color: #1769d5; background: #dceeff; }
.analytics-card-icon-blue { color: #3977a7; background: #e1edf8; }
.analytics-card-icon-rose { color: #b55c6a; background: #f6e4e8; }
.analytics-card-icon-violet { color: #7566a8; background: #ece7f7; }
.analytics-card-icon-amber { color: #a17728; background: #f7eed8; }

.analytics-period-pill,
.analytics-chart {
  background: #f6faff;
}

.analytics-chart {
  border-color: rgba(89, 122, 157, 0.12);
  background:
    linear-gradient(rgba(89, 122, 157, 0.09) 1px, transparent 1px),
    #f6faff;
  background-size: 100% 25%;
}

.analytics-chart-bar {
  background: linear-gradient(180deg, #36c9ed, #1769d5);
}

.analytics-live-mark,
.home-action-arrow {
  color: var(--teal);
}

.home-action-icon {
  color: var(--teal);
  background: var(--mist);
}

.home-action-icon-blue {
  color: #3977a7;
  background: #e1edf8;
}

.home-action-icon-violet {
  color: #7566a8;
  background: #ece7f7;
}

.numbers-table-wrap,
.bim-broadcast-contacts-list,
.combobox-options {
  border-color: rgba(255, 255, 255, 0.86);
  background: #f5f9fd;
  box-shadow: var(--neo-inset);
}

input,
textarea,
select,
.combobox-input,
.contact-name-input,
.inbox-reply-input {
  color: var(--ink);
  background: #f5f9fd;
  box-shadow: var(--neo-inset);
}

input:focus,
textarea:focus,
select:focus,
.combobox-input:focus,
.contact-name-input:focus,
.inbox-reply-input:focus {
  border-color: rgba(23, 105, 213, 0.38);
  box-shadow: var(--neo-inset), 0 0 0 3px rgba(23, 105, 213, 0.12);
}

.icon-btn {
  color: #60768b;
  background: var(--surface);
  box-shadow: var(--neo-shadow);
}

.icon-btn:hover {
  color: var(--teal);
  background: var(--surface);
  box-shadow: var(--neo-inset);
}

.modal {
  background: linear-gradient(145deg, #edf4fa, #e5eef6);
}

@media (max-width: 1200px) {
  #view-dashboard > .dashboard-intro {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.85fr);
  }
}

@media (max-width: 1023px) {
  .app-shell {
    padding: 0.75rem;
  }

  .app-sidebar {
    width: 270px;
    flex-basis: 270px;
    top: 0;
    left: 0;
    height: 100vh;
    border-radius: 0 1.8rem 1.8rem 0;
  }

  #view-dashboard > .dashboard-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero {
    align-items: end;
  }

  .hero-copy {
    padding: 2.5rem 1.35rem 3rem;
  }

  .hero-brand {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .dashboard-main {
    padding: 0.9rem 0.2rem 3rem;
  }

  #view-dashboard > .dashboard-intro {
    gap: 1.25rem;
    min-height: 0;
    padding: 1.35rem;
    border-radius: 1.35rem;
  }

  .dashboard-intro {
    padding: 0.9rem 0 1.35rem;
  }

  .dashboard-intro h1 {
    font-size: 2rem;
  }

  .analytics-summary-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Long-form product story */

.hero-brand .text-teal {
  display: inline;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.connect-story-section,
.connect-capabilities-section,
.connect-analytics-section,
.connect-steps-section,
.connect-security-section,
.connect-faq-section {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 1rem;
}

.connect-story-intro {
  max-width: 52rem;
}

.connect-story-intro h2,
.connect-capabilities-section h2,
.connect-analytics-section h2,
.connect-steps-section h2,
.connect-security-section h2,
.connect-faq-section h2 {
  max-width: 48rem;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.04;
}

.workflow-board {
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2.3rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2rem;
  color: #fff;
  background:
    radial-gradient(500px 260px at 88% 0%, rgba(54, 201, 237, 0.18), transparent 70%),
    linear-gradient(135deg, #091d35, #0d3150 60%, #0e4261);
  box-shadow: 16px 18px 36px rgba(58, 91, 122, 0.25), -10px -10px 24px rgba(255, 255, 255, 0.7);
}

.workflow-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.8rem;
}

.workflow-board-header h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.workflow-board .analytics-overline {
  color: #6ce4f5;
}

.workflow-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.workflow-live-badge > span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #45e3ae;
  box-shadow: 0 0 0 4px rgba(69, 227, 174, 0.12);
}

.workflow-path {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
}

.workflow-node {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.07);
}

.workflow-node-featured {
  border-color: rgba(54, 201, 237, 0.5);
  background: linear-gradient(145deg, rgba(54, 201, 237, 0.2), rgba(23, 105, 213, 0.18));
}

.workflow-node-number {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.workflow-node-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 1rem 0 1.1rem;
  border-radius: 0.7rem;
  color: #7deafb;
  background: rgba(54, 201, 237, 0.15);
  font-size: 1.15rem;
}

.workflow-node h3 {
  font-size: 1.05rem;
}

.workflow-node p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  line-height: 1.55;
}

.workflow-connector {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #5edff2;
  font-size: 1.35rem;
  font-weight: 700;
}

.connect-capabilities-section {
  padding-top: 6rem;
}

.connect-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.connect-capability-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #eef6fc, #e5eff8);
  box-shadow: var(--neo-shadow);
}

.capability-index {
  color: rgba(99, 121, 144, 0.65);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  margin: 1.25rem 0 1rem;
  border-radius: 0.8rem;
  color: var(--teal);
  background: var(--mist);
  box-shadow: var(--neo-inset);
  font-size: 1.25rem;
}

.connect-capability-card h3 {
  font-size: 1.15rem;
}

.connect-capability-card p {
  margin: 0.65rem 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.capability-note {
  margin-top: auto;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
}

.connect-analytics-section {
  padding-top: 7rem;
}

.connect-analytics-layout,
.connect-security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.connect-analytics-copy .section-lead {
  max-width: 34rem;
}

.connect-proof-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.connect-proof-list > div,
.connect-security-points > div {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.connect-proof-list > div > span {
  padding-top: 0.15rem;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
}

.connect-proof-list p,
.connect-security-points p {
  margin: 0;
}

.connect-proof-list strong,
.connect-proof-list small,
.connect-security-points strong,
.connect-security-points small {
  display: block;
}

.connect-proof-list strong,
.connect-security-points strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.connect-proof-list small,
.connect-security-points small {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.connect-dashboard-preview {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.55rem;
  color: #fff;
  background:
    radial-gradient(460px 220px at 100% 0%, rgba(54, 201, 237, 0.22), transparent 70%),
    #0a2039;
  box-shadow: 16px 18px 34px rgba(58, 91, 122, 0.27), -10px -10px 24px rgba(255, 255, 255, 0.72);
}

.preview-window-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-window-bar > span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.preview-window-bar strong {
  margin-left: 0.65rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.preview-metrics > div {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
}

.preview-metrics small,
.preview-metrics strong,
.preview-metrics em {
  display: block;
}

.preview-metrics small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
}

.preview-metrics strong {
  margin-top: 0.4rem;
  font-size: 1.35rem;
}

.preview-metrics em {
  margin-top: 0.35rem;
  color: #65e4f4;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
}

.preview-chart {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  height: 135px;
  margin-top: 1.25rem;
  padding: 1rem 0.65rem 0;
  border-radius: 0.9rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 100% 25%;
}

.preview-chart > span {
  flex: 1;
  border-radius: 0.35rem 0.35rem 0.12rem 0.12rem;
  background: linear-gradient(180deg, #65e4f4, #1872df);
}

.preview-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.62rem;
}

.preview-insight {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(54, 201, 237, 0.22);
  border-radius: 0.85rem;
  background: rgba(54, 201, 237, 0.08);
}

.preview-insight > span {
  color: #65e4f4;
}

.preview-insight p {
  margin: 0;
}

.preview-insight strong,
.preview-insight small {
  display: block;
}

.preview-insight strong {
  font-size: 0.72rem;
}

.preview-insight small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.63rem;
  line-height: 1.45;
}

.connect-steps-section {
  padding-top: 7rem;
}

.connect-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.connect-step {
  padding: 1.35rem;
  border-top: 2px solid var(--teal);
}

.connect-step > span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.connect-step h3 {
  margin-top: 1.1rem;
  font-size: 1.15rem;
}

.connect-step p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.connect-security-section {
  padding-top: 7rem;
}

.connect-security-layout {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 2rem;
  background: linear-gradient(145deg, #edf5fb, #e2edf7);
  box-shadow: var(--neo-shadow);
}

.connect-security-points {
  display: grid;
  gap: 1.35rem;
}

.connect-security-points > div > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  color: var(--teal);
  background: var(--mist);
  box-shadow: var(--neo-inset);
  font-size: 0.75rem;
  font-weight: 800;
}

.connect-faq-section {
  padding-bottom: 6rem;
}

.connect-faq-list {
  max-width: 54rem;
  margin-top: 2.5rem;
}

.connect-faq {
  border-bottom: 1px solid rgba(89, 122, 157, 0.2);
}

.connect-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
}

.connect-faq summary::-webkit-details-marker {
  display: none;
}

.connect-faq summary::after {
  content: '+';
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 400;
}

.connect-faq[open] summary::after {
  content: '−';
}

.connect-faq p {
  max-width: 46rem;
  margin: -0.25rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .connect-capability-grid,
  .connect-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .connect-analytics-layout,
  .connect-security-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .connect-story-section,
  .connect-capabilities-section,
  .connect-analytics-section,
  .connect-steps-section,
  .connect-security-section,
  .connect-faq-section {
    padding-top: 4.5rem;
  }

  .workflow-board-header {
    flex-direction: column;
  }

  .workflow-path {
    flex-direction: column;
  }

  .workflow-connector {
    transform: rotate(90deg);
  }

  .connect-capability-grid,
  .connect-steps-grid {
    grid-template-columns: 1fr;
  }

  .preview-metrics {
    gap: 0.35rem;
  }

  .preview-metrics > div {
    padding: 0.55rem;
  }

  .preview-metrics strong {
    font-size: 1rem;
  }
}

/* Supplied Harnad artwork — rendered directly, without filters */

.brand-wordmark {
  display: block;
  width: 9.5rem;
  height: 3.15rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 0.55rem;
  background: transparent;
  border: none;
  filter: none !important;
}

.brand-wordmark img,
.brand-mark-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: none !important;
}

.brand-wordmark img {
  transform: scale(1.08);
}

.brand-mark-image {
  width: 2.45rem;
  height: 2.45rem;
  overflow: hidden;
  border-radius: 0.7rem;
  filter: none !important;
}

.brand-mark-image img {
  object-fit: contain;
}

.hero-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.hero-wordmark {
  width: min(27rem, 100%);
  height: auto;
  max-height: 8rem;
  object-fit: contain;
  object-position: left center;
  border-radius: 0.15rem;
  filter: none !important;
}

.hero-brand-lockup .text-teal {
  display: block;
}

@media (max-width: 767px) {
  .brand-wordmark {
    width: 8rem;
    height: 2.65rem;
  }

  .hero-wordmark {
    width: min(20rem, 100%);
  }
}

/* Network loading feedback */

.loading-indicator {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 10rem;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(247, 250, 255, 0.94);
  color: var(--ink);
  box-shadow: 7px 8px 18px rgba(126, 153, 181, 0.28), -6px -6px 15px rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  animation: loading-indicator-in 0.2s var(--ease-out);
}

.loading-indicator[hidden] {
  display: none;
}

.loading-spinner {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  border: 2px solid rgba(23, 105, 213, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

body.is-loading-data .analytics-card-value {
  min-width: 3.5rem;
  min-height: 1.6rem;
  color: transparent;
  border-radius: 0.35rem;
  background: linear-gradient(90deg, rgba(99, 121, 144, 0.11), rgba(255, 255, 255, 0.7), rgba(99, 121, 144, 0.11));
  background-size: 220% 100%;
  animation: loading-shimmer 1.2s ease-in-out infinite;
}

@keyframes loading-indicator-in {
  from { opacity: 0; transform: translate(-50%, -0.4rem); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

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

@keyframes loading-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner,
  body.is-loading-data .analytics-card-value {
    animation: none;
  }
}

/* Keep navigation and footer in separate, non-overlapping layers */

@media (min-width: 1024px) {
  .app-sidebar {
    overflow: hidden;
  }

  .sidebar-links {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .sidebar-links::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .sidebar-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    background: var(--surface);
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .app-sidebar {
    padding-top: 0.9rem;
    padding-bottom: 0.75rem;
  }

  .sidebar-brand-row {
    margin-bottom: 0.9rem;
  }

  .sidebar-section-label {
    margin-top: 0.5rem;
  }

  .sidebar-link {
    min-height: 2.35rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .sidebar-footer {
    padding-top: 0.6rem;
    gap: 0.3rem;
  }
}

