:root {
  --navy: #0f3748;
  --navy-soft: #224f64;
  --navy-card: #315f77;
  --navy-card-strong: #1b4659;
  --stone: #cececb;
  --stone-soft: #d8d8d5;
  --stone-line: rgba(15, 55, 72, 0.16);
  --white: #ffffff;
  --ink: #101112;
  --ink-soft: #404040;
  --ink-muted: #696969;
  --line-light: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.28);
  --shadow-soft: 0 20px 60px rgba(6, 18, 24, 0.18);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

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

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

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

.site-shell {
  height: 100vh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

main {
  display: block;
  overflow: visible;
}

.section-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(206, 206, 203, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 55, 72, 0.12);
  box-shadow: 0 14px 36px rgba(15, 55, 72, 0.08);
}

.site-header .section-inner {
  width: calc(100% - 56px);
  max-width: none;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 55, 72, 0.08);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 118px;
  height: auto;
}

.topbar-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
  margin-left: auto;
  min-width: 0;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  color: rgba(15, 55, 72, 0.72);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--navy);
}

.utility-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.utility-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(15, 55, 72, 0.14);
  background: rgba(15, 55, 72, 0.08);
  color: var(--navy);
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.utility-button:hover {
  transform: translateY(-1px);
  background: rgba(15, 55, 72, 0.14);
  border-color: rgba(15, 55, 72, 0.26);
}

.utility-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-section {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 26%),
    linear-gradient(180deg, #103b4c 0%, #0f3748 100%);
}

.hero-inner {
  padding: 58px 0 84px;
}

.hero-inner-wide {
  max-width: 1040px;
}

.hero-section-contact .hero-inner {
  max-width: none;
}

.hero-section-account .hero-inner {
  max-width: none;
}

.hero-contact-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.hero-account-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.hero-contact-copy {
  min-width: 0;
}

.hero-account-copy {
  min-width: 0;
}

.hero-contact-panel {
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
}

.hero-account-panel {
  width: min(100%, 500px);
  display: flex;
  flex-direction: column;
}

.contact-line-nowrap {
  white-space: nowrap;
}

.account-line-nowrap {
  white-space: nowrap;
}

.hero-home-line-nowrap {
  white-space: nowrap;
}

.display-title-account {
  max-width: 9.6ch;
}

.display-title-account span {
  display: block;
}

.hero-home-grid {
  display: block;
}

.hero-home-flow {
  display: none;
}

.hero-home-copy {
  min-width: 0;
}

.hero-section-bot .section-inner {
  width: min(1900px, calc(100% - 40px));
}

.hero-section-bot.hero-section .hero-inner {
  padding-bottom: 56px;
}

.hero-bot-grid {
  display: grid;
  grid-template-columns: minmax(460px, 620px) minmax(720px, 1fr);
  align-items: start;
  gap: clamp(52px, 4.4vw, 96px);
}

.bot-hero-copy {
  order: 1;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 24px;
  padding-right: 10px;
}

.display-title-bot {
  max-width: 10.4ch;
  font-size: clamp(3.4rem, 3.9vw, 4.55rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.display-title-bot span {
  display: block;
}

.hero-copy-bot {
  max-width: 580px;
  margin-top: 0;
  font-size: clamp(1.05rem, 1vw, 1.18rem);
  line-height: 1.62;
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy-bot p + p {
  margin-top: 12px;
}

.bot-hero-structure {
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.bot-hero-structure-item {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bot-hero-structure-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bot-hero-structure-item strong {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.bot-hero-structure-item span {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.56;
}

@media (min-width: 1500px) {
  .hero-section-bot .section-inner {
    width: min(1920px, calc(100% - 72px));
  }

  .hero-bot-grid {
    grid-template-columns: minmax(620px, 720px) minmax(880px, 1fr);
    gap: clamp(76px, 5.4vw, 124px);
  }

  .hero-chat-shell {
    margin-top: 12px;
    height: min(860px, calc(100vh - 206px));
    max-width: 1180px;
  }

  .display-title-bot {
    max-width: 10.8ch;
    font-size: clamp(4.25rem, 4.5vw, 5.2rem);
    line-height: 0.9;
  }

  .hero-copy-bot {
    max-width: 560px;
    font-size: 1.12rem;
    line-height: 1.62;
  }

  .chat-shell {
    height: min(860px, calc(100vh - 206px));
    grid-template-rows: auto minmax(280px, 1fr) minmax(220px, auto);
  }

  .hero-chat-shell .chat-log {
    padding: 22px 28px 18px;
  }

  .hero-chat-shell .composer {
    padding: 18px 28px 24px;
  }

  .hero-chat-shell .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hero-chat-shell .choice-button,
  .hero-chat-shell .primary-button {
    min-height: 62px;
  }

  .bot-session-shell {
    width: min(1180px, 100%);
  }
}

.section-kicker,
.panel-kicker,
.footer-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.section-kicker-light {
  background: rgba(255, 255, 255, 0.12);
}

.section-kicker-dark {
  background: rgba(15, 55, 72, 0.1);
  color: var(--navy);
}

.display-title {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 980px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.28rem, 2.1vw, 1.62rem);
  line-height: 1.62;
  letter-spacing: 0.01em;
}

.hero-copy p + p {
  margin-top: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 700;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.primary-link {
  background: var(--white);
  color: var(--navy);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.workflow-section {
  padding: 0 0 88px;
  background: var(--navy);
}

.surface-section,
.team-section,
.site-footer {
  background: var(--stone);
  color: var(--ink);
}

.surface-section {
  padding: 88px 0;
}

.team-section {
  padding: 0 0 88px;
}

.site-footer {
  padding: 58px 0 66px;
}

.section-heading-row {
  margin-bottom: 34px;
}

.section-title {
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-title-light {
  color: var(--white);
}

.section-title-dark {
  color: var(--ink);
}

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

.feature-card {
  min-height: 100%;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: var(--navy-card);
  box-shadow: var(--shadow-soft);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.56;
}

.feature-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(207, 207, 203, 0.82);
  color: var(--white);
}

.feature-icon svg {
  width: 50px;
  height: 50px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 980px) {
  .hero-section-home .section-inner {
    width: min(1840px, calc(100% - 32px));
  }

  .hero-section-home .hero-inner {
    padding-bottom: 64px;
  }

  .hero-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(500px, 0.86fr);
    align-items: start;
    column-gap: 24px;
  }

  .hero-home-copy {
    max-width: 1080px;
  }

  .hero-section-home .display-title {
    max-width: 11.2ch;
    font-size: clamp(4rem, 5.8vw, 6.75rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
  }

  .hero-section-home .hero-copy {
    max-width: 860px;
    margin-top: 22px;
    font-size: 1.16rem;
    line-height: 1.6;
  }

  .hero-section-home .hero-actions {
    margin-top: 24px;
  }

  .hero-home-flow {
    display: block;
    padding-top: 18px;
  }

  .hero-home-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .feature-card-hero {
    min-height: 208px;
    padding: 20px 18px;
  }

  .feature-card-hero p {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .feature-icon-hero {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
  }

  .feature-icon-hero svg {
    width: 30px;
    height: 30px;
  }

  .workflow-section-home {
    display: none;
  }
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.story-copy,
.team-copy {
  color: var(--ink-soft);
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  line-height: 1.7;
}

.story-copy p + p {
  margin-top: 22px;
}

.story-copy-compact {
  margin-top: 28px;
  max-width: 980px;
}

.legal-page-title {
  max-width: 11.8ch;
}

.legal-hero-copy {
  max-width: 760px;
}

.legal-document-shell {
  display: grid;
  gap: 18px;
}

.legal-document-card {
  padding: 36px clamp(24px, 3vw, 44px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.legal-document {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.76;
}

.legal-document-compact {
  max-width: 760px;
}

.legal-document h2 {
  margin: 38px 0 16px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.14;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p + p {
  margin-top: 18px;
}

.legal-document ul {
  margin: 18px 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.legal-document li + li {
  margin-top: 10px;
}

.legal-document a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.legal-copyright {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--stone-line);
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.legal-copyright img {
  display: block;
  max-width: min(100%, 220px);
  height: auto;
}

.legal-copyright-compact {
  justify-content: flex-start;
  margin-top: 30px;
}

.team-intro {
  max-width: 860px;
  margin: 0 0 42px;
  text-align: left;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.team-brand-card,
.team-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 34px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-line);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: var(--shadow-soft);
}

.team-brand-card {
  align-items: center;
  text-align: center;
}

.team-card {
  align-items: flex-start;
  text-align: left;
}

.team-brand-logo {
  width: min(280px, 100%);
  height: auto;
}

.team-avatar {
  width: 136px;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fafb 0%, #eceeee 100%);
  color: var(--navy);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.team-card h3 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1.1;
}

.team-card p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.18rem;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
  gap: 24px;
  align-items: start;
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  width: 148px;
  height: auto;
  margin-bottom: 24px;
}

.footer-brand p,
.footer-copy,
.footer-column a {
  color: var(--ink-soft);
  line-height: 1.72;
}

.footer-copy {
  display: inline-block;
  margin-top: 28px;
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-label {
  margin-bottom: 6px;
  background: rgba(15, 55, 72, 0.1);
  color: var(--navy);
}

.footer-column a:hover {
  color: var(--ink);
}

.detail-stack {
  display: grid;
  gap: 16px;
}

.bot-session-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.bot-session-section {
  padding-top: 10px;
}

.bot-session-shell {
  width: min(1260px, 100%);
  margin-left: auto;
}

.chat-shell,
.inspector-card,
.support-form-card,
.info-panel,
.channel-card,
.legal-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: var(--navy-card);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.support-form-card,
.info-panel,
.legal-card,
.inspector-card,
.channel-card {
  padding: 30px 28px;
}

.bot-section-heading {
  max-width: 860px;
  text-align: left;
  margin-bottom: 24px;
}

.bot-support-copy {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.64;
  text-align: left;
}

.panel-kicker {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.chat-header h3,
.inspector-card h3,
.support-form-card h3,
.info-panel h3,
.channel-card h3,
.legal-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.panel-copy,
.inspector-card p,
.support-form-card p,
.info-panel p,
.channel-card p,
.legal-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.legal-card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.support-side,
.inspector-shell {
  display: grid;
  gap: 14px;
}

.session-state-card {
  min-height: 100%;
}

.session-effects-card {
  min-height: 100%;
}
.rail-card,
.contact-entry,
.support-entry,
.key-value-item,
.effect-item,
.form-status {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.06);
}

.contact-entry strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.support-entry span,
.key-value-item strong,
.effect-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-status strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.support-entry span {
  color: rgba(255, 255, 255, 0.92);
}

.email-link {
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.email-link:hover {
  color: var(--white);
}

.chat-shell {
  height: clamp(820px, 82vh, 1040px);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) minmax(280px, 1fr);
  overflow: hidden;
  overscroll-behavior: contain;
}

.hero-chat-shell {
  order: 2;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: clamp(820px, 82vh, 1040px);
  justify-self: stretch;
  align-self: start;
  min-width: 0;
  margin-top: clamp(24px, 3vw, 52px);
}

.hero-chat-shell.chat-shell {
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
}

.hero-chat-shell .chat-header {
  padding: 20px 24px;
}

.hero-chat-shell .chat-log {
  padding: 18px 24px 18px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
}

.hero-chat-shell .composer {
  padding: 18px 24px 22px;
  overflow-y: auto;
  min-height: 0;
  border-top: 1px solid var(--line-light);
  scrollbar-width: thin;
}

.hero-chat-shell .bubble {
  max-width: 100%;
  padding: 16px 18px;
  border-radius: 22px;
}

.hero-chat-shell .button-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-chat-shell .choice-button,
.hero-chat-shell .primary-button {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
}

.hero-chat-shell .form-grid {
  gap: 14px;
}

.hero-chat-shell .field-group textarea {
  min-height: 128px;
}

@media (min-width: 1321px) {
  body.assistant-page {
    overflow: hidden;
  }

  .assistant-page .site-shell {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .assistant-page .assistant-main {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .assistant-page .hero-section-bot {
    flex: 1;
    min-height: 0;
  }

  .assistant-page .hero-section-bot.hero-section .hero-inner {
    height: 100%;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .assistant-page .hero-bot-grid {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(360px, 500px) minmax(760px, 1fr);
    gap: clamp(34px, 3vw, 60px);
    align-items: stretch;
  }

  .assistant-page .bot-hero-copy {
    max-width: 500px;
    gap: 18px;
    align-self: center;
    padding-right: 0;
  }

  .assistant-page .section-kicker {
    margin-bottom: 8px;
  }

  .assistant-page .display-title-bot {
    max-width: 6.2ch;
    font-size: clamp(2.95rem, 3.5vw, 4.1rem);
    line-height: 0.92;
  }

  .assistant-page .hero-copy-bot {
    max-width: 460px;
    font-size: 1rem;
    line-height: 1.54;
  }

  .assistant-page .hero-copy-bot p + p {
    margin-top: 10px;
  }

  .assistant-page .bot-hero-structure {
    width: min(100%, 460px);
    gap: 12px;
    padding: 18px 20px;
  }

  .assistant-page .bot-hero-structure-item {
    gap: 5px;
    padding-bottom: 12px;
  }

  .assistant-page .bot-hero-structure-item span {
    line-height: 1.5;
  }

  .assistant-page .hero-chat-shell {
    margin-top: 0;
    height: min(700px, calc(100vh - 176px));
    max-height: none;
    align-self: center;
  }

  .assistant-page .hero-chat-shell.chat-shell {
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
  }

  .assistant-page .hero-chat-shell .chat-header {
    padding: 18px 24px;
  }

  .assistant-page .hero-chat-shell .chat-log {
    padding: 18px 24px 16px;
  }

  .assistant-page .hero-chat-shell .composer {
    padding: 16px 24px 22px;
  }

  .assistant-page .hero-chat-shell .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-page .hero-chat-shell .choice-button,
  .assistant-page .hero-chat-shell .primary-button {
    min-height: 58px;
  }

  .assistant-page .bot-session-section {
    display: none;
  }

}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line-light);
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.94rem;
}

.chat-log {
  padding: 28px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}

.composer {
  padding: 24px 30px 30px;
  border-top: 1px solid var(--line-light);
  overflow-y: auto;
  min-height: 0;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}

.bubble {
  max-width: min(86%, 720px);
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--line-light);
}

.bubble.bot {
  align-self: flex-start;
  background: rgba(8, 31, 41, 0.82);
}

.bubble.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.12);
}

.bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.bubble-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.bubble-title {
  font-weight: 700;
}

.bubble-message {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.62;
  white-space: pre-line;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.choice-button,
.primary-button {
  padding: 14px 18px;
}

.primary-button {
  background: var(--white);
  color: var(--navy);
  border: none;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions .choice-button,
.form-actions .primary-button {
  min-width: 180px;
}

.support-form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
}

.field-hint {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.5;
}

.field-status {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}

.field-status[data-state="success"] {
  color: rgba(192, 241, 216, 0.96);
}

.field-status[data-state="error"] {
  color: rgba(255, 214, 214, 0.96);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-light);
  background: rgba(8, 31, 41, 0.54);
  color: var(--white);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.34);
  outline-offset: 1px;
}

.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"],
.field-group textarea[aria-invalid="true"] {
  border-color: rgba(255, 183, 183, 0.95);
  outline: 2px solid rgba(255, 183, 183, 0.28);
  outline-offset: 1px;
}

.field-group input:disabled,
.field-group select:disabled,
.field-group textarea:disabled {
  opacity: 1;
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 31, 41, 0.64);
}

.field-group select {
  appearance: none;
}

.field-group textarea {
  min-height: 150px;
  resize: vertical;
}

.holiday-preview {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line-light);
  background: rgba(8, 31, 41, 0.42);
}

.holiday-preview-title {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.holiday-preview-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.58;
}

.holiday-preview-controls {
  display: grid;
  grid-template-columns: minmax(180px, 260px);
  gap: 12px;
}

.holiday-preview-content {
  display: grid;
  gap: 10px;
}

.holiday-preview-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.holiday-preview-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.holiday-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.holiday-preview-date {
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.holiday-preview-label {
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
}

.form-status:empty {
  display: none;
}

.form-status p + p {
  margin-top: 6px;
}

.form-status.is-success {
  border-color: rgba(175, 224, 194, 0.44);
  background: rgba(69, 140, 106, 0.28);
}

.form-status.is-error {
  border-color: rgba(255, 183, 183, 0.42);
  background: rgba(147, 58, 58, 0.32);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.support-grid-form-only {
  grid-template-columns: 1fr;
}

.support-form-section .section-inner {
  width: min(1320px, calc(100% - 48px));
}

.support-form-heading {
  max-width: none;
  margin: 0 auto 20px;
  text-align: center;
}

.support-form-intro {
  max-width: 780px;
  margin: 0 auto 26px;
  text-align: center;
}

.support-form-lead {
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.64;
}

.support-form-card-centered {
  width: min(920px, 100%);
  margin: 0 auto;
}

.account-section .section-inner {
  width: min(1360px, calc(100% - 48px));
}

.account-page-status {
  width: min(100%, 980px);
  margin: 0 auto 24px;
}

.account-auth-grid,
.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.account-profile-list,
.account-request-list,
.account-panel-meta {
  display: grid;
  gap: 14px;
}

.account-verification-box {
  margin-top: 20px;
}

.account-actions {
  margin-top: 18px;
}

.account-dashboard-cta {
  margin-top: 22px;
}

.account-request-item {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-line);
  background: rgba(15, 55, 72, 0.08);
}

.account-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.account-request-top strong {
  font-size: 1.02rem;
}

.account-request-meta {
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.account-request-description {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.account-request-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 55, 72, 0.1);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-request-status-open {
  background: rgba(15, 55, 72, 0.1);
}

.account-request-status-assigned,
.account-request-status-contacted,
.account-request-status-scheduled {
  background: rgba(158, 123, 36, 0.16);
}

.account-request-status-completed {
  background: rgba(69, 140, 106, 0.18);
}

.account-request-status-cancelled {
  background: rgba(147, 58, 58, 0.16);
}

.account-preview-link {
  margin-top: 8px;
}

.account-preview-link a {
  color: var(--navy);
  font-weight: 700;
}

.support-form-kicker {
  margin-bottom: 12px;
}

.support-form-card-copy {
  margin-bottom: 20px;
}

.hero-contact-note {
  margin-top: auto;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.58;
}

.channel-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.legal-layout .story-copy-compact {
  color: var(--ink-soft);
}

@media (min-width: 980px) {
  .hero-section-contact .section-inner {
    width: min(1520px, calc(100% - 40px));
  }

  .hero-section-account .section-inner {
    width: min(1560px, calc(100% - 40px));
  }

  .hero-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    column-gap: 40px;
  }

  .hero-account-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
    column-gap: 36px;
  }

  .hero-contact-panel {
    justify-self: end;
    align-self: start;
    margin-top: 20px;
  }

  .hero-account-panel {
    justify-self: end;
    align-self: start;
  }
}

@media (min-width: 1600px) and (min-height: 900px) {
  .hero-section-contact .section-inner {
    width: min(1918px, calc(100% - 12px));
  }

  .hero-section-contact .hero-inner {
    padding-bottom: 72px;
  }

  .hero-contact-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(720px, 0.82fr);
    column-gap: 8px;
  }

  .hero-contact-copy {
    max-width: 1120px;
  }

  .hero-section-contact .display-title {
    max-width: 16.2ch;
    font-size: clamp(4.2rem, 5.5vw, 6.6rem);
    line-height: 0.965;
    letter-spacing: -0.024em;
  }

  .hero-section-contact .hero-copy {
    max-width: 1060px;
    margin-top: 26px;
    font-size: 1.22rem;
    line-height: 1.62;
  }

  .hero-contact-panel {
    width: min(100%, 760px);
    margin-top: 0;
  }

  .hero-section-account .section-inner {
    width: min(1918px, calc(100% - 12px));
  }

  .hero-account-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(680px, 0.88fr);
    column-gap: 18px;
  }

  .hero-account-copy {
    max-width: 1140px;
  }

  .hero-section-account .display-title {
    max-width: 12ch;
    font-size: clamp(4.4rem, 5.8vw, 6.8rem);
    line-height: 0.96;
    letter-spacing: -0.024em;
  }

  .hero-section-account .hero-copy {
    max-width: 980px;
    margin-top: 26px;
    font-size: 1.24rem;
  }

  .hero-account-panel {
    width: min(100%, 780px);
  }
}

@media (min-width: 1850px) and (max-width: 1950px) and (min-height: 1020px) and (max-height: 1100px) {
  .hero-account-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(760px, 0.96fr);
    column-gap: 20px;
  }

  .hero-account-copy {
    max-width: 820px;
  }

  .hero-section-account .display-title {
    max-width: 8.9ch;
    font-size: clamp(3.95rem, 4.7vw, 5.75rem);
    line-height: 0.98;
    letter-spacing: -0.022em;
  }

  .hero-section-account .hero-copy {
    max-width: 820px;
  }

  .hero-account-panel {
    width: min(100%, 820px);
  }
}

.key-value-grid,
.stack-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.session-state-card .key-value-grid {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
}

.session-effects-card .stack-list {
  gap: 12px;
}

.key-value-item span,
.effect-item span {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.session-state-card .key-value-item {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 16px 15px;
}

.session-state-card .key-value-item strong {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.session-state-card .key-value-item span {
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 600;
}

.session-effects-card .effect-item {
  padding: 16px 18px;
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-light);
  color: rgba(255, 255, 255, 0.72);
}

.hero-section-admin {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #163f4f 0%, #0f3748 100%);
}

.admin-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: start;
}

.admin-display-title {
  max-width: 10.2ch;
}

.admin-hero-copy {
  min-width: 0;
}

.admin-hero-text {
  max-width: 860px;
}

.admin-helper-note {
  max-width: 720px;
}

.admin-refresh-button {
  min-width: 220px;
  min-height: 54px;
}

.admin-db-card {
  width: min(100%, 430px);
  gap: 18px;
}

.admin-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-sync-pill.is-loading {
  background: rgba(133, 158, 176, 0.92);
  border-color: rgba(133, 158, 176, 0.98);
}

.admin-sync-pill.is-ready {
  background: rgba(176, 211, 196, 0.96);
  border-color: rgba(143, 206, 179, 0.96);
}

.admin-sync-pill.is-error {
  background: rgba(179, 108, 108, 0.96);
  border-color: rgba(210, 140, 140, 0.98);
}

.admin-db-summary {
  gap: 12px;
}

.admin-db-entry strong {
  display: block;
  color: var(--white);
  line-height: 1.5;
  word-break: break-word;
}

.admin-section {
  padding-top: 0;
}

.admin-feedback {
  margin-bottom: 18px;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
}

.admin-metric-card,
.admin-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: var(--navy-card);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.admin-metric-card {
  padding: 22px 20px;
}

.admin-metric-label {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metric-value {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1;
}

.admin-workspace-section {
  padding-top: 0;
}

.admin-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  display: grid;
  gap: 24px;
}

.admin-panel {
  padding: 30px 28px;
}

.admin-panel-header {
  margin-bottom: 20px;
}

.admin-stack-list {
  display: grid;
  gap: 16px;
}

.admin-request-card,
.admin-provider-card,
.admin-match-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line-light);
  background: rgba(8, 31, 41, 0.48);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-card-head h4 {
  margin-top: 10px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.admin-card-time,
.admin-card-subtle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-status-chip.is-open {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-status-chip.is-assigned,
.admin-status-chip.is-contacted,
.admin-status-chip.is-scheduled {
  background: rgba(94, 185, 143, 0.22);
  border-color: rgba(154, 237, 201, 0.3);
}

.admin-status-chip.is-completed,
.admin-status-chip.is-provider-active {
  background: rgba(111, 204, 166, 0.28);
  border-color: rgba(181, 243, 219, 0.32);
}

.admin-status-chip.is-cancelled,
.admin-status-chip.is-provider-paused {
  background: rgba(183, 121, 121, 0.24);
  border-color: rgba(255, 187, 187, 0.26);
}

.admin-request-description,
.admin-card-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.62;
  white-space: pre-line;
}

.admin-card-note strong {
  color: var(--white);
}

.admin-card-note-muted {
  color: rgba(255, 255, 255, 0.72);
}

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

.admin-meta-grid.compact {
  margin-top: 18px;
}

.admin-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.admin-meta-item span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-meta-item strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  line-height: 1.5;
  word-break: break-word;
}

.admin-assignment-summary {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.admin-assignment-summary strong {
  color: var(--white);
}

.admin-assignment-summary span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.56;
}

.admin-inline-form {
  margin-top: 18px;
}

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

.admin-inline-form textarea,
.admin-form textarea {
  min-height: 110px;
}

.admin-request-actions {
  align-items: center;
  justify-content: space-between;
}

.admin-empty-state {
  margin: 0;
}

@media (max-width: 1240px) {
  .feature-grid,
  .footer-grid,
  .story-layout,
  .team-grid,
  .support-grid,
  .account-auth-grid,
  .account-dashboard-grid,
  .channel-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .display-title,
  .section-title {
    max-width: 100%;
  }

  .chat-shell {
    height: clamp(700px, 78vh, 900px);
    grid-template-rows: auto minmax(240px, 1fr) minmax(240px, 1fr);
  }

  .admin-hero-grid,
  .bot-session-grid {
    grid-template-columns: 1fr;
  }

  .bot-session-shell {
    width: 100%;
  }

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

  .admin-workspace-grid {
    grid-template-columns: 1fr;
  }

  .admin-db-card {
    width: 100%;
  }
}

@media (max-width: 1320px) {
  .hero-section-bot .section-inner {
    width: min(100%, calc(100% - 32px));
  }

  .hero-bot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bot-hero-copy {
    max-width: 760px;
    padding-right: 0;
  }

  .display-title-bot {
    max-width: 10ch;
    font-size: clamp(2.7rem, 5.2vw, 4rem);
  }

  .hero-copy-bot {
    max-width: 760px;
    font-size: clamp(1.14rem, 1.7vw, 1.34rem);
    line-height: 1.66;
  }

  .bot-hero-structure {
    width: min(100%, 760px);
  }

  .hero-chat-shell {
    width: 100%;
    margin-top: 0;
    justify-self: stretch;
  }

}

@media (max-width: 1080px) {
  .hero-section-bot .section-inner {
    width: min(100%, calc(100% - 32px));
  }

  .hero-bot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bot-hero-copy {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-chat-shell {
    width: 100%;
    min-height: 0;
    height: clamp(700px, 80vh, 900px);
    justify-self: stretch;
    margin-top: 20px;
    max-width: none;
  }

  .display-title-bot {
    max-width: 10ch;
    font-size: clamp(2.45rem, 5.3vw, 3.25rem);
    line-height: 0.98;
  }

  .hero-copy-bot {
    max-width: 100%;
    font-size: 1.08rem;
    line-height: 1.62;
  }

  .bot-hero-structure {
    width: 100%;
  }

  .hero-chat-shell .chat-header {
    flex-direction: row;
    align-items: flex-start;
    padding: 20px 22px;
  }

  .hero-chat-shell .status-pill {
    align-self: flex-start;
    font-size: 0.88rem;
    padding: 8px 12px;
  }

  .hero-chat-shell .chat-log {
    padding: 18px 22px;
  }

  .hero-chat-shell .composer {
    padding: 16px 22px 20px;
  }

  .hero-chat-shell .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bot-session-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-section-bot .section-inner {
    width: min(100%, calc(100% - 20px));
  }

  .hero-bot-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bot-hero-copy {
    max-width: 100%;
  }

  .display-title-bot {
    max-width: 9ch;
    font-size: clamp(2.05rem, 6.2vw, 2.65rem);
    line-height: 0.98;
  }

  .hero-copy-bot {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.58;
  }

  .bot-hero-structure {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-chat-shell {
    height: clamp(620px, 80vh, 820px);
    max-width: none;
    margin-top: 6px;
  }

  .hero-chat-shell .chat-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px 16px;
  }

  .hero-chat-shell .chat-header h3 {
    font-size: 0.98rem;
  }

  .hero-chat-shell .chat-log {
    padding: 16px 18px;
  }

  .hero-chat-shell .composer {
    padding: 14px 18px 18px;
  }

  .hero-chat-shell .status-pill {
    font-size: 0.82rem;
    padding: 7px 11px;
  }

  .hero-chat-shell .bubble {
    padding: 14px 16px;
    border-radius: 20px;
  }

  .hero-chat-shell .bubble-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-chat-shell .bubble-title {
    font-size: 0.92rem;
  }

  .hero-chat-shell .bubble-message {
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .hero-chat-shell .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-metrics-grid,
  .admin-meta-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel,
  .admin-metric-card {
    padding: 22px 18px;
  }

  .admin-request-card,
  .admin-provider-card,
  .admin-match-card {
    padding: 18px 16px;
  }

  .admin-card-head,
  .admin-request-actions,
  .admin-card-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-refresh-button {
    width: 100%;
  }

  .bot-session-section {
    padding-top: 22px;
  }

  .session-state-card .key-value-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .hero-chat-shell .choice-button,
  .hero-chat-shell .primary-button {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .hero-chat-shell .button-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-bot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bot-hero-copy {
    flex: none;
    max-width: 100%;
  }

  .display-title-bot {
    font-size: clamp(1.95rem, 7vw, 2.55rem);
  }

  .hero-copy-bot {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .bot-hero-structure {
    gap: 12px;
    padding: 16px;
  }

  .hero-chat-shell {
    height: clamp(560px, 78vh, 760px);
    max-width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .section-inner {
    width: min(100%, calc(100% - 32px));
  }

  .header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
  }

  .brand-mark {
    padding: 10px 14px;
    border-radius: 22px;
  }

  .brand-logo {
    width: 92px;
  }

  .topbar-cluster {
    width: auto;
    margin-left: auto;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: nowrap;
  }

  .site-nav {
    gap: 18px;
    justify-content: flex-end;
  }

  .utility-nav {
    justify-content: flex-end;
  }

  .hero-inner {
    padding: 40px 0 62px;
  }

  .hero-bot-grid {
    gap: 32px;
  }

  .surface-section,
  .team-section,
  .site-footer,
  .workflow-section {
    padding-bottom: 58px;
  }

  .surface-section {
    padding-top: 58px;
  }

  .team-brand-card,
  .team-card {
    min-height: 280px;
  }

  .support-form-columns {
    grid-template-columns: 1fr;
  }

  .workspace-rail,
  .support-form-card,
  .info-panel,
  .channel-card,
  .legal-card,
  .inspector-card {
    padding: 24px 22px;
  }

  .chat-header,
  .chat-log,
  .composer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-chat-shell {
    height: clamp(640px, 78vh, 840px);
  }
}

.admin-main {
  background: var(--stone);
}

.admin-site-header {
  background:
    linear-gradient(180deg, rgba(210, 211, 205, 0.96) 0%, rgba(222, 223, 217, 0.94) 100%);
}

.admin-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  padding: 18px 0 22px;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.admin-page-title-main {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.admin-wordmark {
  color: inherit;
  text-decoration: none;
}

.admin-wordmark:hover {
  color: rgba(15, 55, 72, 0.82);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(15, 55, 72, 0.1);
  background: rgba(255, 255, 255, 0.74);
  color: rgba(15, 55, 72, 0.88);
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(15, 55, 72, 0.08);
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
  transform: translateY(-1px);
  background: rgba(195, 225, 212, 0.96);
  border-color: rgba(135, 210, 181, 0.54);
  color: var(--navy);
}

.admin-header-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.admin-auth-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-basis: 100%;
  justify-content: flex-end;
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 220px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(15, 55, 72, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-idle-countdown {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(15, 55, 72, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(15, 55, 72, 0.08);
  white-space: nowrap;
}

.admin-idle-countdown.is-warning {
  background: rgba(255, 232, 214, 0.88);
  color: rgba(126, 58, 16, 0.92);
}

.admin-logout-button {
  appearance: none;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 55, 72, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: rgba(15, 55, 72, 0.88);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.admin-logout-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 55, 72, 0.22);
}

.admin-logout-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-db-hover {
  position: relative;
}

.admin-db-trigger {
  appearance: none;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(150, 216, 190, 0.78);
  background: rgba(190, 223, 208, 0.94);
  color: var(--white);
  font: inherit;
  box-shadow: 0 16px 36px rgba(105, 177, 145, 0.18);
  cursor: default;
}

.admin-db-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
  z-index: 70;
}

.admin-db-hover:hover .admin-db-popover,
.admin-db-hover:focus-within .admin-db-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-main-section {
  padding: 24px 0 72px;
}

.admin-login-main {
  min-height: calc(100vh - 120px);
}

.admin-login-shell {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.admin-login-card {
  width: min(100%, 560px);
  gap: 24px;
}

.admin-login-copy {
  display: grid;
  gap: 10px;
}

.admin-login-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.admin-login-actions {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-login-logout {
  justify-self: flex-start;
}

.admin-feedback {
  margin-bottom: 18px;
}

.admin-content-grid,
.admin-two-column-grid {
  display: grid;
  gap: 24px;
}

.admin-two-column-grid {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: start;
}

.admin-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: var(--navy-card);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 28px 26px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-section-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.1;
}

.admin-db-summary {
  gap: 10px;
  margin-top: 14px;
}

.admin-db-entry {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.admin-db-entry strong {
  display: block;
  color: var(--white);
  line-height: 1.5;
  word-break: break-word;
}

.admin-sync-pill.is-loading {
  background: rgba(133, 158, 176, 0.92);
  border-color: rgba(133, 158, 176, 0.98);
}

.admin-sync-pill.is-ready {
  background: rgba(176, 211, 196, 0.96);
  border-color: rgba(143, 206, 179, 0.96);
}

.admin-sync-pill.is-error {
  background: rgba(179, 108, 108, 0.96);
  border-color: rgba(210, 140, 140, 0.98);
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.admin-overview-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 31, 41, 0.5);
  color: var(--white);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.admin-overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(8, 31, 41, 0.62);
}

.admin-overview-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-overview-value {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.admin-overview-meta {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.admin-stack-list {
  display: grid;
  gap: 16px;
}

.admin-ticket-card,
.admin-request-card,
.admin-provider-card,
.admin-match-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line-light);
  background: rgba(8, 31, 41, 0.48);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-card-head h4 {
  margin: 10px 0 0;
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1.3;
}

.admin-card-time,
.admin-card-subtle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-status-chip,
.admin-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

.admin-status-chip.is-open {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-status-chip.is-assigned,
.admin-status-chip.is-contacted,
.admin-status-chip.is-scheduled {
  background: rgba(94, 185, 143, 0.22);
  border-color: rgba(154, 237, 201, 0.3);
}

.admin-status-chip.is-completed,
.admin-status-chip.is-provider-active {
  background: rgba(111, 204, 166, 0.28);
  border-color: rgba(181, 243, 219, 0.32);
}

.admin-status-chip.is-cancelled,
.admin-status-chip.is-provider-paused {
  background: rgba(183, 121, 121, 0.24);
  border-color: rgba(255, 187, 187, 0.26);
}

.admin-request-description,
.admin-card-note,
.admin-ticket-message {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.62;
  white-space: pre-line;
}

.admin-card-note strong {
  color: var(--white);
}

.admin-card-note-muted {
  color: rgba(255, 255, 255, 0.72);
}

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

.admin-meta-grid.compact {
  margin-top: 18px;
}

.admin-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.admin-meta-item span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-meta-item strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  line-height: 1.5;
  word-break: break-word;
}

.admin-assignment-summary {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.admin-assignment-summary strong {
  color: var(--white);
}

.admin-assignment-summary span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.56;
}

.admin-inline-form {
  margin-top: 18px;
}

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

.admin-inline-form textarea,
.admin-form textarea {
  min-height: 110px;
}

.admin-request-browser-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-request-breadcrumbs,
.admin-request-browser-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-request-breadcrumb-link,
.admin-request-breadcrumb-current,
.admin-request-browser-back,
.admin-request-browser-current {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1.2;
}

.admin-request-breadcrumb-link,
.admin-request-browser-back {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.admin-request-breadcrumb-link:hover,
.admin-request-browser-back:hover {
  border-color: rgba(195, 225, 212, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.admin-request-breadcrumb-current,
.admin-request-browser-current {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 600;
}

.admin-request-breadcrumb-divider {
  color: rgba(255, 255, 255, 0.38);
}

.admin-request-browser-list,
.admin-request-browser-leaf {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-request-browser-item {
  margin: 0;
}

.admin-request-browser-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.admin-request-browser-link:hover {
  border-color: rgba(195, 225, 212, 0.28);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.admin-request-browser-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-request-browser-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-request-browser-kicker {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-request-browser-title {
  color: var(--white);
  font-size: 0.96rem;
  line-height: 1.32;
  font-weight: 600;
}

.admin-request-browser-count {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-list-check {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 31, 41, 0.32);
}

.admin-list-check::before,
.admin-list-check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.admin-list-check::before {
  width: 8px;
  height: 1.5px;
}

.admin-list-check::after {
  width: 1.5px;
  height: 8px;
}

.admin-request-tree,
.admin-request-tree-list,
.admin-request-day-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-request-tree {
  display: grid;
  gap: 8px;
}

.admin-request-tree-list {
  display: grid;
  gap: 6px;
}

.admin-request-tree-item {
  margin: 0;
}

.admin-request-group {
  border: 0;
  background: transparent;
  overflow: visible;
}

.admin-request-group summary,
.admin-request-item summary {
  list-style: none;
}

.admin-request-group summary::-webkit-details-marker,
.admin-request-item summary::-webkit-details-marker {
  display: none;
}

.admin-request-group-summary,
.admin-request-item-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.admin-request-group-summary:hover,
.admin-request-item-summary:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.admin-request-group[open] > .admin-request-group-summary {
  border-color: rgba(195, 225, 212, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.admin-request-item {
  border: 0;
  background: transparent;
}

.admin-request-item[open] > .admin-request-item-summary {
  border-radius: 16px 16px 0 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.admin-request-summary-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-tree-toggle {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 31, 41, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-tree-toggle::before,
.admin-tree-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: opacity 140ms ease;
}

.admin-tree-toggle::before {
  width: 8px;
  height: 1.5px;
}

.admin-tree-toggle::after {
  width: 1.5px;
  height: 8px;
}

details[open] > summary .admin-tree-toggle {
  border-color: rgba(150, 216, 190, 0.52);
  background: rgba(190, 223, 208, 0.9);
}

details[open] > summary .admin-tree-toggle::before {
  background: rgba(15, 55, 72, 0.9);
}

details[open] > summary .admin-tree-toggle::after {
  opacity: 0;
}

.admin-request-group-heading {
  display: grid;
  gap: 2px;
}

.admin-request-group-kicker {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-request-group-title {
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 600;
}

.admin-request-group-compact .admin-request-group-title {
  font-size: 0.88rem;
}

.admin-request-group-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-request-group-body {
  display: grid;
  gap: 6px;
  padding: 8px 0 0 28px;
}

.admin-request-group-compact .admin-request-group-body {
  gap: 5px;
  padding-top: 6px;
}

.admin-request-day-list {
  display: grid;
  gap: 6px;
}

.admin-request-group-compact .admin-request-day-list {
  gap: 5px;
}

.admin-request-item-heading {
  display: grid;
  gap: 0;
}

.admin-request-item-id {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 600;
}

.admin-request-item-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-request-item-status {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.4;
}

.admin-request-item-meta {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.4;
}

.admin-request-item-body {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(8, 31, 41, 0.42);
}

.admin-request-item-body-compact {
  gap: 8px;
}

.admin-request-item .admin-request-description,
.admin-request-item .admin-card-note,
.admin-request-item .admin-ticket-message {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-request-item .admin-inline-form {
  margin-top: 0;
}

.admin-request-item-archive .admin-request-item-summary {
  padding: 10px 12px;
}

.admin-meta-grid-compact {
  margin-top: 0;
}

.admin-request-detail-list {
  display: grid;
  gap: 4px;
}

.admin-request-detail-list-compact {
  gap: 3px;
}

.admin-request-detail-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-request-detail-row span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-request-detail-row strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 600;
  word-break: break-word;
}

.admin-request-assignment-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding-top: 2px;
}

.admin-request-assignment-line span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-request-assignment-line strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-request-billing-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-request-billing-actions {
  align-items: center;
}

.admin-provider-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-provider-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.85fr);
  gap: 14px;
}

.admin-provider-results {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-provider-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.admin-provider-item summary {
  list-style: none;
  cursor: pointer;
}

.admin-provider-item summary::-webkit-details-marker {
  display: none;
}

.admin-provider-summary-trail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-provider-body {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-provider-edit-form {
  margin-top: 6px;
}

.admin-request-action-buttons,
.admin-archive-actions {
  justify-content: flex-end;
}

.admin-archive-request-card {
  padding: 0;
  border-radius: 14px;
}

.admin-archive-heading {
  display: grid;
  gap: 6px;
}

.admin-ticket-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.admin-danger-button,
.admin-secondary-button,
.admin-provider-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.admin-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.admin-secondary-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

.admin-danger-button,
.admin-provider-delete-button {
  border: 1px solid rgba(236, 150, 150, 0.3);
  background: rgba(121, 37, 37, 0.24);
  color: rgba(255, 239, 239, 0.96);
  font-weight: 700;
}

.admin-danger-button:hover,
.admin-provider-delete-button:hover {
  background: rgba(154, 52, 52, 0.34);
  border-color: rgba(255, 196, 196, 0.42);
}

.admin-request-actions {
  align-items: center;
  justify-content: space-between;
}

.admin-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-ticket-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.admin-empty-state {
  margin: 0;
}

@media (max-width: 1240px) {
  .admin-header-inner,
  .admin-two-column-grid {
    grid-template-columns: 1fr;
  }

  .admin-header-cluster,
  .admin-nav,
  .admin-auth-shell {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .admin-main-section {
    padding-bottom: 56px;
  }

  .admin-header-inner {
    padding: 16px 0 18px;
  }

  .admin-page-title-main {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .admin-header-brand,
  .admin-header-cluster,
  .admin-auth-shell,
  .admin-nav,
  .admin-section-head,
  .admin-request-browser-link,
  .admin-request-breadcrumbs,
  .admin-request-browser-toolbar,
  .admin-card-head,
  .admin-request-item-summary,
  .admin-request-item-trail,
  .admin-request-actions,
  .admin-request-action-buttons,
  .admin-provider-actions,
  .admin-provider-summary-trail,
  .admin-ticket-actions,
  .admin-archive-actions,
  .admin-request-group-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-nav a,
  .admin-db-trigger,
  .admin-user-badge,
  .admin-idle-countdown,
  .admin-logout-button,
  .admin-section-head .primary-button {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-request-group-count {
    white-space: normal;
  }

  .admin-request-group-body {
    padding-left: 16px;
  }

  .admin-request-item-body {
    padding-left: 16px;
  }

  .admin-request-browser-count {
    white-space: normal;
  }

  .admin-db-hover {
    width: 100%;
  }

  .admin-db-popover {
    left: 0;
    right: auto;
    width: min(100%, 380px);
  }

  .admin-panel,
  .admin-ticket-card,
  .admin-request-card,
  .admin-provider-card,
  .admin-match-card {
    padding: 18px 16px;
  }

  .admin-overview-grid,
  .admin-meta-grid,
  .admin-request-detail-row,
  .admin-form-grid,
  .admin-provider-toolbar-grid,
  .support-form-columns {
    grid-template-columns: 1fr;
  }
}

/* Assistant Page Rebuild */
body.assistant-page {
  overflow-x: hidden;
}

.assistant-page .bot-session-section {
  display: none;
}

.assistant-page .site-shell {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.assistant-page .assistant-main {
  min-height: 0;
  display: block;
  overflow: visible;
}

.assistant-hero {
  flex: 1;
  min-height: 0;
  display: flex;
}

.assistant-stage {
  width: min(1720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0 28px;
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(860px, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  flex: 1;
  min-height: 0;
}

.assistant-copy-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding-top: 12px;
  padding-left: clamp(12px, 1.2vw, 24px);
}

.assistant-page .section-kicker {
  margin-bottom: 0;
}

.assistant-title {
  max-width: 11.2ch;
  font-size: clamp(2.75rem, 3.6vw, 4.25rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.assistant-title span {
  display: block;
}

.assistant-copy-text {
  max-width: 420px;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.94rem, 0.96vw, 1.06rem);
  line-height: 1.5;
}

.assistant-copy-text p + p {
  margin-top: 10px;
}

.assistant-steps {
  max-width: 420px;
  display: grid;
  gap: 10px;
}

.assistant-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.assistant-step strong {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.assistant-step span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.94rem;
  line-height: 1.42;
}

.assistant-console {
  width: 100%;
  height: clamp(700px, 74vh, 860px);
  min-height: 700px;
  max-height: 860px;
  display: grid;
  grid-template-rows: auto minmax(220px, 0.9fr) minmax(300px, 1.1fr);
  border-radius: 32px;
  align-self: start;
}

.assistant-console .chat-header {
  padding: 18px 22px;
}

.assistant-console .chat-header h3 {
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  line-height: 1.04;
}

.assistant-console .status-pill {
  flex-shrink: 0;
}

.assistant-console .chat-log {
  min-height: 0;
  padding: 18px 22px 14px;
  overflow-y: auto;
}

.assistant-console .composer {
  min-height: 0;
  padding: 16px 22px 20px;
  overflow-y: auto;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: flex-start;
}

.assistant-console .composer > * {
  width: 100%;
}

.assistant-console .bubble {
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
}

.assistant-console .bubble-message {
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.5;
}

.assistant-console .button-row {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: stretch;
}

.assistant-console .button-row > * {
  min-height: clamp(58px, 9vh, 88px);
}

.assistant-console .choice-button,
.assistant-console .primary-button {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
}

.assistant-console .form-grid {
  min-height: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.assistant-console .form-actions {
  margin-top: auto;
}

@media (min-width: 1400px) and (max-height: 1100px) {
  .assistant-page .header-inner {
    padding: 16px 0;
  }

  .assistant-page .brand-mark {
    padding: 10px 14px;
    border-radius: 22px;
  }

  .assistant-page .brand-logo {
    width: 96px;
  }

  .assistant-stage {
    width: min(1880px, calc(100% - 40px));
    padding: 10px 0 20px;
    grid-template-columns: minmax(300px, 380px) minmax(830px, 1fr);
    gap: 24px;
  }

  .assistant-copy-panel {
    gap: 14px;
    padding-top: 8px;
    padding-left: 18px;
  }

  .assistant-title {
    max-width: 11.4ch;
    font-size: clamp(2.55rem, 3vw, 3.7rem);
  }

  .assistant-copy-text,
  .assistant-steps {
    max-width: 380px;
  }

  .assistant-copy-text {
    font-size: 0.92rem;
    line-height: 1.44;
  }

  .assistant-step {
    padding: 10px 12px;
  }

  .assistant-step span {
    font-size: 0.9rem;
  }

  .assistant-console .chat-header {
    padding: 16px 20px;
  }

  .assistant-console {
    height: clamp(660px, 71vh, 800px);
    min-height: 660px;
    max-height: 800px;
    grid-template-rows: auto minmax(210px, 0.88fr) minmax(280px, 1.12fr);
  }

  .assistant-console .chat-log {
    padding: 16px 20px 12px;
  }

  .assistant-console .composer {
    padding: 14px 20px 18px;
  }

  .assistant-console .button-row > * {
    min-height: clamp(54px, 8vh, 76px);
  }

  .assistant-console .choice-button,
  .assistant-console .primary-button {
    min-height: 52px;
    font-size: 0.98rem;
  }
}

@media (max-width: 1320px) {
  body.assistant-page {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .assistant-page .site-shell {
    height: auto;
    min-height: 100vh;
    display: block;
    overflow: visible;
  }

  .assistant-page .assistant-main {
    display: block;
    overflow: visible;
  }

  .assistant-hero {
    display: block;
  }

  .assistant-stage {
    width: min(100%, calc(100% - 32px));
    padding: 34px 0 60px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .assistant-copy-panel {
    max-width: 780px;
    align-content: start;
    padding-top: 0;
    padding-left: 10px;
  }

  .assistant-title {
    max-width: 7.6ch;
    font-size: clamp(2.8rem, 6.8vw, 4.3rem);
  }

  .assistant-copy-text,
  .assistant-steps {
    max-width: 780px;
  }

  .assistant-console {
    min-height: 0;
    height: auto;
    max-height: none;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  .assistant-console .chat-log {
    overflow: visible;
  }

  .assistant-console .composer {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
    display: block;
  }

  .assistant-console .form-grid {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .assistant-console .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 6px;
    padding-top: 14px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(
        180deg,
        rgba(49, 95, 119, 0) 0%,
        rgba(49, 95, 119, 0.92) 22%,
        rgba(49, 95, 119, 1) 100%
      );
  }
}

@media (max-width: 760px) {
  .assistant-page .site-shell {
    min-height: 100dvh;
  }

  .assistant-stage {
    width: min(100%, calc(100% - 20px));
    padding: 22px 0 32px;
    gap: 22px;
  }

  .assistant-title {
    max-width: 7.2ch;
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 0.96;
  }

  .assistant-copy-panel {
    padding-left: 6px;
  }

  .assistant-copy-text {
    font-size: 1rem;
    line-height: 1.56;
  }

  .assistant-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .assistant-step strong {
    width: 44px;
    height: 44px;
    font-size: 0.92rem;
  }

  .assistant-console {
    min-height: 0;
    height: auto;
    max-height: none;
    grid-template-rows: auto auto auto;
    border-radius: 26px;
    overflow: visible;
  }

  .assistant-console .chat-header {
    padding: 18px 18px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .assistant-console .chat-header h3 {
    font-size: 1.2rem;
  }

  .assistant-console .chat-log {
    padding: 16px 18px 14px;
    overflow: visible;
  }

  .assistant-console .composer {
    padding: 16px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .assistant-console .form-grid {
    gap: 14px;
  }

  .assistant-console .button-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .assistant-console .button-row > * {
    min-height: 60px;
  }
}
