/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f9f9fb;
  --bg-soft: #f3f3f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.94);
  --surface-tint: rgba(226, 213, 240, 0.2);
  --card: rgba(255, 255, 255, 0.72);
  --ink: #333333;
  --muted: #666666;
  --muted-soft: #7b7890;
  --accent: #e2d5f0;
  --accent-strong: #8d79a8;
  --accent-soft: rgba(226, 213, 240, 0.36);
  --blue-soft: #d6e4f0;
  --rose-soft: #f5e6e8;
  --success: #5f9684;
  --danger: #c4878d;
  --line: rgba(141, 121, 168, 0.12);
  --line-strong: rgba(141, 121, 168, 0.2);
  --shadow: 0 18px 52px rgba(94, 88, 124, 0.08);
  --shadow-soft: 0 12px 32px rgba(114, 108, 146, 0.06);
  --radius-panel: 22px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --display-font: "Baskerville Old Face", "Palatino Linotype", "Songti SC", serif;
  --ui-font: Aptos, "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(226, 213, 240, 0.62), transparent 28%),
    radial-gradient(circle at top right, rgba(214, 228, 240, 0.42), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(245, 230, 232, 0.58), transparent 24%),
    linear-gradient(180deg, #fcfcfe 0%, #f9f9fb 44%, #f6f4fb 100%);
  font-family: var(--ui-font);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.86), transparent 18%);
  opacity: 0.9;
}

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

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

.shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.site-shell {
  padding-bottom: 72px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

.panel-inset {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(141, 121, 168, 0.08);
  box-shadow: none;
}

.site-header,
.console-header {
  position: relative;
  z-index: 40;
  padding: 16px 18px;
  margin-bottom: 24px;
}

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

.console-header {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.console-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-header-floating {
  position: -webkit-sticky;
  position: sticky;
  top: 12px;
}

.site-brand,
.console-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0%, rgba(255, 255, 255, 0.85) 20%, transparent 21%),
    linear-gradient(135deg, #eadff5 0%, #d6e4f0 50%, #f5e6e8 100%);
  box-shadow: 0 0 0 6px rgba(226, 213, 240, 0.22);
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted-soft);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.site-actions,
.console-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease;
}

.landing-nav a:hover {
  background: rgba(226, 213, 240, 0.32);
  color: var(--ink);
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(141, 121, 168, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

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

.site-title,
.section-title,
.section-display,
.hero-display {
  font-family: var(--display-font);
  color: #2f2c38;
}

.site-title {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 36px);
}

.site-subtitle,
.section-copy,
.conversation-subtitle,
.hint,
.hint-inline,
.meta-key,
.profile-copy small {
  color: var(--muted);
}

.console-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
}

.app-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-gap: 22px;
  gap: 22px;
  align-items: start;
}

.sidebar-card {
  position: -webkit-sticky;
  position: sticky;
  top: 98px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 248, 255, 0.86));
}

.sidebar-title {
  margin-bottom: 14px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

.sidebar-link {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  transition: 180ms ease;
}

.sidebar-link:hover {
  color: var(--ink);
  border-color: rgba(141, 121, 168, 0.12);
  background: rgba(226, 213, 240, 0.16);
}

.sidebar-link.active {
  color: #4d4361;
  background: linear-gradient(135deg, rgba(226, 213, 240, 0.68), rgba(214, 228, 240, 0.46));
  border-color: rgba(141, 121, 168, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.sidebar-footer {
  margin-top: 16px;
}

.sidebar-back-link {
  width: 100%;
}

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

.profile-menu-wrap {
  position: relative;
  z-index: 120;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.profile-trigger.open {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(226, 213, 240, 0.16);
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eadff5 0%, #d6e4f0 100%);
  color: #5f5275;
  font-weight: 800;
}

.profile-copy {
  display: grid;
  text-align: left;
  min-width: 0;
}

.profile-copy strong {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 160;
  width: 220px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
}

.profile-menu-section + .profile-menu-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(141, 121, 168, 0.08);
}

.profile-menu-item {
  width: 100%;
  display: block;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: rgba(226, 213, 240, 0.18);
}

.profile-menu-item.danger {
  color: var(--danger);
}

.mobile-nav-trigger {
  width: 46px;
  height: 46px;
  display: none;
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.mobile-nav-trigger span {
  display: block;
  border-radius: var(--radius-pill);
  background: var(--ink);
}

.mobile-nav-shell {
  position: fixed;
  inset: 0;
  z-index: 150;
}

.mobile-nav-overlay,
.modal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(51, 51, 51, 0.12);
}

.mobile-nav-card {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  padding: 18px;
}

.desktop-only-action {
  display: inline-flex;
}

.mobile-console-toolbar,
.mobile-tab-strip,
.mobile-bottom-dock {
  display: none;
}

.mobile-console-toolbar {
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.mobile-console-current {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
}

.mobile-console-current strong {
  font-size: 18px;
  color: #40394f;
  word-break: break-word;
}

.mobile-console-label,
.mobile-nav-section-title {
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.mobile-console-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(141, 121, 168, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #4a425b;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-console-nav-icon {
  width: 18px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.mobile-console-nav-icon span {
  display: block;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.mobile-tab-strip {
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.mobile-tab-strip::-webkit-scrollbar {
  display: none;
}

.mobile-tab-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(141, 121, 168, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-tab-chip.active {
  color: #4c4460;
  background: linear-gradient(135deg, rgba(226, 213, 240, 0.62), rgba(214, 228, 240, 0.42));
  border-color: rgba(141, 121, 168, 0.14);
  font-weight: 700;
}

.mobile-nav-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.mobile-nav-section + .mobile-nav-section {
  margin-top: 18px;
}

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

.mobile-nav-tile {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(141, 121, 168, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #4a425b;
}

.mobile-nav-tile span {
  color: var(--muted);
  font-size: 13px;
}

.mobile-nav-tile.active {
  background: linear-gradient(135deg, rgba(226, 213, 240, 0.62), rgba(214, 228, 240, 0.42));
  border-color: rgba(141, 121, 168, 0.14);
}

.mobile-bottom-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 140;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(141, 121, 168, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(94, 88, 124, 0.16);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

.mobile-dock-item {
  flex: 1 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  grid-gap: 6px;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.mobile-dock-item.active {
  color: #4d4361;
  background: rgba(226, 213, 240, 0.34);
  font-weight: 700;
}

.mobile-dock-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.mobile-dock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

.landing-hero,
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  grid-gap: 24px;
  gap: 24px;
}

.hero-layout {
  padding: 30px 8px 8px;
}

.hero-copy-block,
.hero-side-stack,
.stack,
.side-stack,
.panel-section,
.field-group,
.agent-form,
.example-dialog-list,
.field-grid,
.preview-thread {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.hero-copy-block {
  padding: 28px 30px 34px;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(141, 121, 168, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-display {
  margin: 4px 0 0;
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-tagline {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.02em;
  color: #4f4761;
}

.lead {
  max-width: 50rem;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-lead {
  max-width: 40rem;
}

.hero-actions,
.action-row,
.preset-chip-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-metrics,
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

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

.soft-stat,
.stat {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 244, 252, 0.92));
  border: 1px solid rgba(141, 121, 168, 0.08);
}

.stat-label {
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.stat-value {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.hero-preview-card,
.serenity-card,
.feature-card,
.dashboard-card,
.auth-card,
.usage-chart-card,
.provider-summary-card,
.conversation-item,
.example-dialog-card,
.pricing-card,
.guide-card {
  padding: 22px;
}

.hero-preview-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 252, 0.82));
}

.message-stream,
.conversation-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.preview-thread {
  margin-top: 4px;
}

.message-bubble {
  max-width: 88%;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(141, 121, 168, 0.08);
}

.message-bubble.outgoing,
.preview-outgoing {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(226, 213, 240, 0.42), rgba(255, 255, 255, 0.88));
}

.preview-incoming {
  background: rgba(255, 255, 255, 0.78);
}

.message-meta {
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.content-section {
  margin-top: 28px;
}

.compact-section {
  margin-top: 20px;
}

.section-heading {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 18px;
}

.section-display {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-heading-copy {
  max-width: 44rem;
}

.feature-grid,
.announcement-grid,
.feature-showcase,
.pricing-grid,
.guide-grid,
.card-grid,
.admin-quick-grid,
.provider-summary-grid {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.feature-grid,
.pricing-grid,
.guide-grid,
.provider-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.announcement-grid,
.admin-quick-grid,
.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiet-card,
.feature-showcase-card,
.pricing-card,
.guide-card,
.provider-summary-card,
.conversation-item,
.usage-chart-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 244, 252, 0.76));
}

.compact-title {
  margin: 6px 0 0;
  font-size: 24px;
}

.section-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.serial-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(226, 213, 240, 0.38);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pricing-card-featured {
  background: linear-gradient(180deg, rgba(234, 226, 245, 0.82), rgba(255, 255, 255, 0.88));
  border-color: rgba(141, 121, 168, 0.16);
}

.pricing-value {
  margin-top: 8px;
  font-family: var(--display-font);
  font-size: 34px;
  color: #4b4460;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px;
  margin-top: 28px;
}

.brand-footer {
  font-family: var(--display-font);
  font-size: 24px;
  color: #40394f;
}

.auth-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.auth-display {
  font-size: clamp(30px, 4vw, 44px);
}

.landing-auth-card {
  margin-top: 30px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 252, 0.78));
}

.auth-page-grid {
  align-items: stretch;
}

.auth-page-panel {
  align-self: stretch;
}

.auth-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(226, 213, 240, 0.24);
  border: 1px solid rgba(141, 121, 168, 0.08);
}

.auth-toggle button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-toggle button.active {
  background: #ffffff;
  color: #4c4460;
  box-shadow: 0 8px 18px rgba(141, 121, 168, 0.12);
  font-weight: 700;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid rgba(141, 121, 168, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(102, 102, 102, 0.66);
}

.input:focus,
.textarea:focus {
  border-color: rgba(141, 121, 168, 0.26);
  box-shadow: 0 0 0 4px rgba(226, 213, 240, 0.2);
  background: var(--surface-strong);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.compact-textarea {
  min-height: 96px;
}

.tall-textarea {
  min-height: 176px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #4f4761;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #e7dcf4 0%, #d9e5f1 100%);
  color: #4a425b;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(141, 121, 168, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border: 1px solid rgba(141, 121, 168, 0.1);
  box-shadow: none;
}

.button.danger {
  background: linear-gradient(135deg, #f4dde1 0%, #efcad0 100%);
  color: #8a4f58;
  box-shadow: 0 12px 24px rgba(196, 135, 141, 0.16);
}

.status {
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}

.status.error {
  color: #ba6673;
}

.status.success {
  color: #5f9684;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  grid-gap: 20px;
  gap: 20px;
}

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

.management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}

.admin-quick-card {
  display: block;
}

.sticky-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 98px;
}

.admin-scroll-panel {
  max-height: 78vh;
  overflow: auto;
}

.admin-scroll-list {
  max-height: 64vh;
  overflow: auto;
  padding-right: 4px;
}

.compact-scroll {
  max-height: 260px;
}

.tall-scroll {
  max-height: 78vh;
}

.admin-user-layout {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.code-status-badge.unused {
  background: rgba(211, 236, 228, 0.8);
  color: #4f8777;
}

.code-status-badge.redeemed {
  background: rgba(226, 213, 240, 0.58);
  color: #7e6996;
}

.code-status-badge.expired {
  background: rgba(245, 230, 232, 0.88);
  color: #b06d79;
}

.code-status-badge.revoked {
  background: rgba(233, 231, 242, 0.88);
  color: #807b96;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(141, 121, 168, 0.08);
}

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

.meta-value {
  font-weight: 700;
  text-align: right;
  word-break: break-word;
  color: #4a425b;
}

.hint {
  margin: 0;
  line-height: 1.75;
}

.hint-inline {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 14px;
}

.conversation-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(141, 121, 168, 0.08);
  border-radius: 16px;
  cursor: pointer;
}

.conversation-item.static {
  cursor: default;
}

.conversation-item.active {
  border-color: rgba(141, 121, 168, 0.2);
  background: linear-gradient(180deg, rgba(226, 213, 240, 0.24), rgba(255, 255, 255, 0.9));
}

.conversation-head,
.topbar,
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.conversation-title {
  font-weight: 700;
  word-break: break-word;
  color: #423b54;
}

.conversation-subtitle {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.7;
}

.progress-block {
  margin-top: 12px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.progress-block-secondary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(141, 121, 168, 0.1);
}

.progress-label {
  font-size: 13px;
  font-weight: 700;
  color: #554c69;
}

.progress-value,
.progress-caption {
  font-size: 12px;
  color: var(--muted);
}

.progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(226, 213, 240, 0.26);
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #d6e4f0 0%, #e2d5f0 100%);
}

.progress-track.warning .progress-fill {
  background: linear-gradient(135deg, #f1d6de 0%, #e8c8cd 100%);
}

.progress-track.danger .progress-fill {
  background: linear-gradient(135deg, #e7b7c0 0%, #d998a4 100%);
}

.composer,
.persona-presets {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.persona-presets {
  padding: 16px;
  border-radius: 16px;
  background: rgba(226, 213, 240, 0.18);
  border: 1px solid rgba(141, 121, 168, 0.08);
}

.preset-chip {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
}

.selected-chip {
  background: rgba(226, 213, 240, 0.38) !important;
  color: #5d5272 !important;
  border-color: rgba(141, 121, 168, 0.16) !important;
}

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

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.checkbox-row input {
  accent-color: #b8a3d0;
}

.example-dialog-empty {
  color: var(--muted);
  line-height: 1.7;
}

.compact-chart-card {
  padding: 18px;
}

.compact-chart-card .usage-chart-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.usage-svg {
  width: 100%;
  height: auto;
  margin-top: 12px;
}

.usage-axis {
  stroke: rgba(141, 121, 168, 0.16);
  stroke-width: 1;
}

.usage-label {
  fill: var(--muted);
  font-size: 11px;
}

.usage-pie-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.usage-pie {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.usage-pie-text {
  fill: var(--ink);
  font-size: 4px;
  transform: rotate(90deg);
  transform-origin: 21px 21px;
}

.usage-legend {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.usage-legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.usage-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.qr-frame {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(141, 121, 168, 0.08);
}

.qr-frame img {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.mono {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.target-panel {
  display: none;
}

.target-panel:target {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(51, 51, 51, 0.12);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.modal-card,
.modal-window {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(251, 249, 255, 0.985));
  border: 1px solid var(--line);
  box-shadow: 0 24px 72px rgba(94, 88, 124, 0.18);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(51, 51, 51, 0.07);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.bot-page-shell {
  gap: 18px;
}

.bot-hero-card,
.bot-list-card {
  overflow: hidden;
}

.bot-hero-top,
.bot-section-head,
.bot-binding-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.bot-hero-copy,
.bot-binding-identity {
  min-width: 0;
}

.bot-hero-title {
  margin-top: 14px;
  margin-bottom: 0;
}

.bot-hero-text,
.bot-section-hint {
  margin-top: 14px;
}

.bot-hero-action {
  min-width: 150px;
}

.bot-summary-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.bot-summary-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 244, 252, 0.92));
  border: 1px solid rgba(141, 121, 168, 0.08);
}

.bot-summary-label,
.bot-detail-label {
  display: block;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bot-summary-value {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #423b54;
  word-break: break-word;
}

.bot-binding-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
}

.bot-binding-card {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.bot-binding-title {
  font-size: 18px;
  line-height: 1.4;
}

.bot-binding-subtitle {
  margin-top: 4px;
}

.bot-binding-details {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.bot-detail-item {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(141, 121, 168, 0.08);
}

.bot-detail-value {
  color: #433c55;
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}

.bot-break-all {
  word-break: break-all;
}

.bot-binding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.bot-binding-actions > .button,
.bot-binding-actions > .hint,
.bot-binding-actions > .bot-inline-note {
  flex: 1 1 160px;
}

.bot-inline-note {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(226, 213, 240, 0.16);
  border: 1px solid rgba(141, 121, 168, 0.08);
  color: #5a526d;
  line-height: 1.6;
}

.bot-empty-state {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(141, 121, 168, 0.14);
}

.bot-qr-frame {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

@media (max-width: 1100px) {
  .feature-grid,
  .pricing-grid,
  .guide-grid,
  .provider-summary-grid,
  .stats,
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero,
  .hero-layout,
  .dashboard-grid,
  .announcement-grid,
  .feature-showcase,
  .bot-binding-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 12px;
    padding-bottom: 92px;
  }

  .landing-nav,
  .desktop-only-action,
  .sidebar-card {
    display: none;
  }

  .mobile-console-toolbar,
  .mobile-bottom-dock {
    display: flex;
  }

  .mobile-tab-strip {
    display: none;
  }

  .console-header {
    gap: 14px;
    position: -webkit-sticky;
    position: sticky;
    top: 10px;
    z-index: 70;
    padding: 12px 14px;
    margin-bottom: 14px;
  }

  .site-header,
  .auth-heading,
  .topbar,
  .conversation-head,
  .meta-row,
  .site-footer {
    align-items: flex-start;
  }

  .app-layout,
  .management-layout,
  .admin-quick-grid,
  .admin-user-layout,
  .card-grid,
  .form-grid-two,
  .provider-summary-grid,
  .feature-grid,
  .pricing-grid,
  .guide-grid,
  .announcement-grid,
  .stats,
  .hero-metrics,
  .usage-pie-layout {
    grid-template-columns: 1fr;
  }

  .site-header,
  .auth-heading,
  .topbar,
  .conversation-head,
  .meta-row,
  .site-footer {
    flex-direction: column;
  }

  .console-header-main {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .console-brand {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    align-items: center;
    gap: 12px;
  }

  .console-copy {
    display: none;
  }

  .console-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .profile-menu-wrap {
    flex: 0 0 auto;
    min-width: 0;
  }

  .profile-trigger {
    width: auto;
    min-width: 0;
    padding: 6px;
    justify-content: center;
  }

  .profile-copy {
    display: none;
  }

  .profile-avatar {
    width: 38px;
    height: 38px;
  }

  .mobile-console-toolbar {
    align-items: center;
    gap: 10px;
  }

  .mobile-console-current {
    flex: 1 1 auto;
  }

  .mobile-console-current strong {
    font-size: 16px;
    line-height: 1.3;
  }

  .mobile-console-label {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .mobile-console-nav-button {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
  }

  .admin-scroll-panel,
  .admin-scroll-list,
  .compact-scroll,
  .tall-scroll,
  .message-stream {
    max-height: none;
  }

  .sticky-panel {
    position: static;
  }

  .hero-layout {
    padding: 8px 0 0;
  }

  .hero-copy-block {
    padding: 22px;
  }

  .mobile-nav-card {
    top: auto;
    bottom: calc(92px + env(safe-area-inset-bottom));
    right: 12px;
    left: 12px;
    max-height: min(72vh, 640px);
    overflow: auto;
  }

  .modal-shell {
    padding: 14px;
    align-items: flex-end;
  }

  .modal-window {
    width: min(100%, 680px);
    max-height: min(88vh, 760px);
    padding: 18px;
    border-radius: 22px 22px 18px 18px;
  }

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

  .bot-hero-top,
  .bot-section-head,
  .bot-binding-head {
    flex-direction: column;
  }

  .bot-hero-action {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 16px);
  }

  .site-header,
  .console-header {
    padding: 10px 12px;
  }

  .console-header {
    top: 8px;
    gap: 10px;
  }

  .mobile-console-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .mobile-console-nav-button {
    width: auto;
    justify-content: flex-start;
    padding: 9px 11px;
  }

  .mobile-nav-card-head {
    flex-direction: column;
  }

  .mobile-nav-grid {
    grid-template-columns: 1fr;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-preview-card,
  .serenity-card,
  .dashboard-card,
  .auth-card,
  .feature-card,
  .pricing-card,
  .guide-card,
  .usage-chart-card,
  .provider-summary-card,
  .conversation-item,
  .example-dialog-card,
  .landing-auth-card {
    padding: 18px;
  }

  .hero-display {
    font-size: clamp(46px, 16vw, 72px);
  }

  .section-display {
    font-size: clamp(28px, 9vw, 38px);
  }

  .section-title {
    font-size: 24px;
  }

  .stat-value,
  .pricing-value {
    font-size: 22px;
  }

  .button,
  .button.secondary,
  .button.danger {
    width: 100%;
  }

  .action-row > * {
    width: 100%;
  }

  .mobile-bottom-dock {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 7px;
    border-radius: 16px;
  }

  .mobile-dock-item {
    padding: 8px 4px;
    font-size: 11px;
  }

  .profile-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .mobile-console-current strong {
    font-size: 15px;
  }

  .meta-row {
    gap: 6px;
    padding: 12px 0;
  }

  .meta-value {
    width: 100%;
    text-align: left;
  }

  .conversation-title {
    width: 100%;
  }

  .conversation-head .badge {
    white-space: normal;
  }

  .bot-binding-card {
    gap: 14px;
  }

  .bot-detail-item {
    padding: 11px 12px;
  }

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

  .bot-binding-actions > .button,
  .bot-binding-actions > .hint,
  .bot-binding-actions > .bot-inline-note {
    width: 100%;
    flex: none;
  }

  .bot-inline-note {
    min-height: 0;
  }

  .modal-window {
    width: 100%;
    max-height: calc(100vh - 12px);
    padding: 16px;
    border-radius: 22px 22px 0 0;
  }

  .modal-window .topbar {
    gap: 10px;
  }

  .profile-menu {
    left: 0;
    right: auto;
    width: min(260px, calc(100vw - 32px));
  }
}

