:root {
  --bg: #f4efe5;
  --bg-strong: #e7ddc9;
  --text: #1f1c17;
  --muted: #5a5348;
  --accent: #bf3f2f;
  --accent-2: #1d6a53;
  --card: rgba(255, 250, 241, 0.82);
  --border: rgba(31, 28, 23, 0.16);
  --hero-title-size: clamp(2rem, 3.8vw, 3.2rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #f9f2df 0%, transparent 38%),
    radial-gradient(circle at 80% 0%, #d7ebe2 0%, transparent 28%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-strong) 100%);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(31, 28, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 28, 23, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 100%);
  pointer-events: none;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 22px 0;
  position: relative;
  z-index: 2;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 22px;
}

.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.hero {
  padding-top: 62px;
  padding-bottom: 52px;
  position: relative;
  z-index: 2;
}

.kicker {
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
}

h1 {
  margin: 12px 0 0;
  max-width: 900px;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1.05;
  font-size: var(--hero-title-size);
}

.lead {
  max-width: 700px;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #fff8f1;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 56px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(4px);
}

.card h2 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  padding-bottom: 36px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms ease-out forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

.delay-3 {
  animation-delay: 320ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .menu {
    gap: 14px;
  }

  .page-theme-floating-wrap {
    top: 16px;
    right: 16px;
  }
}

.ask-layout {
  position: relative;
  z-index: 2;
  padding-top: 34px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.menu-ask {
  align-items: center;
}

.theme-toggle {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.92);
}

.theme-toggle-gear {
  width: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.theme-toggle-gear svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ask-shell,
.result-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.ask-shell h1 {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  margin-top: 8px;
}

.ask-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #433b31;
}

.field textarea,
.field input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--text);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-sm {
  max-width: 180px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-shell h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.result-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.result-block h3 {
  margin: 0 0 10px;
}

#answer {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  font-family: "Space Grotesk", sans-serif;
}

#sources {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.error {
  grid-column: 1 / -1;
  border-color: rgba(191, 63, 47, 0.45);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.page-ask.theme-dark {
  --bg: #101522;
  --bg-strong: #0c1019;
  --text: #e8eefc;
  --muted: #aeb8d3;
  --accent: #4f7cff;
  --accent-2: #71d8b8;
  --card: rgba(15, 20, 34, 0.86);
  --border: rgba(146, 171, 235, 0.28);
}

.page-ask.theme-dark .bg-grid {
  background-image: linear-gradient(rgba(146, 171, 235, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 171, 235, 0.14) 1px, transparent 1px);
}

.page-ask.theme-dark .field span {
  color: #cbd8f9;
}

.page-ask.theme-dark .field textarea,
.page-ask.theme-dark .field input {
  background: rgba(8, 11, 21, 0.72);
}

.page-ask.theme-dark .theme-toggle {
  background: rgba(13, 18, 31, 0.74);
  border-color: rgba(146, 171, 235, 0.38);
  color: #d7e4ff;
}

.page-ask.theme-dark .theme-toggle:hover {
  background: rgba(13, 18, 31, 0.94);
}

.page-web-minimal.theme-light {
  background: radial-gradient(circle at 15% 0%, #f4f7ff 0%, #eef3ff 55%, #e9f0ff 100%);
  color: #15233e;
}

.page-web-minimal.theme-light .web-minimal-logo-link,
.page-web-minimal.theme-light .web-minimal-composer,
.page-web-minimal.theme-light .web-minimal-chat-window .bubble,
.page-web-minimal.theme-light .web-user-dock {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(23, 37, 84, 0.12);
  box-shadow: 0 20px 40px rgba(59, 108, 247, 0.08);
}

.page-web-minimal.theme-light .web-minimal-title,
.page-web-minimal.theme-light .web-user-meta strong,
.page-web-minimal.theme-light .web-minimal-nav-link,
.page-web-minimal.theme-light .web-minimal-theme-toggle {
  color: #162a57;
}

.page-web-minimal.theme-light .web-minimal-composer textarea,
.page-web-minimal.theme-light .web-minimal-metrics input,
.page-web-minimal.theme-light .web-minimal-chat-window .bubble,
.page-web-minimal.theme-light .web-user-action,
.page-web-minimal.theme-light .web-user-logout,
.page-web-minimal.theme-light .web-user-email {
  color: #435983;
}

.page-web-minimal.theme-light .web-minimal-composer textarea::placeholder,
.page-web-minimal.theme-light .web-minimal-metrics input::placeholder,
.page-web-minimal.theme-light .web-minimal-chat-window .bubble-meta,
.page-web-minimal.theme-light .web-user-provider {
  color: #65799f;
}

.page-web-minimal.theme-light .web-minimal-metrics input {
  background: rgba(240, 245, 255, 0.92);
  border-color: rgba(70, 97, 146, 0.2);
}

.page-web-minimal.theme-light .web-minimal-chat-window .bubble-user {
  background: rgba(92, 133, 255, 0.14);
  border-color: rgba(92, 133, 255, 0.28);
}

.page-web-minimal.theme-light .web-user-provider {
  background: rgba(92, 133, 255, 0.12);
}

@media (max-width: 980px) {
  .ask-layout {
    grid-template-columns: 1fr;
  }
}

.page-chat {
  background: #ffffff;
  color: #10141a;
  font-family: "Manrope", sans-serif;
}

.chat-bg {
  position: fixed;
  inset: 0;
  background: #ffffff;
  pointer-events: none;
}

.chat-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, 96vw);
  margin: 16px auto;
  border-radius: 22px;
  border: 1px solid rgba(16, 20, 26, 0.1);
  background: #ffffff;
  box-shadow: none;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 32px);
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid rgba(16, 20, 26, 0.1);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
}

.brand-chat {
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.sidebar-sub {
  margin: 8px 0 0;
  color: #5d6672;
  font-size: 0.9rem;
}

.sidebar-btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
  border-color: rgba(16, 20, 26, 0.2);
  background: #ffffff;
}

.quick-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.quick-title {
  margin: 0 0 2px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #677486;
}

.quick-item {
  text-align: left;
  border: 1px solid rgba(16, 20, 26, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  color: #1f2732;
  font: inherit;
  cursor: pointer;
}

.quick-item:hover {
  border-color: rgba(8, 126, 91, 0.4);
}

.sidebar-link {
  margin-top: auto;
  color: #1d6a53;
  text-decoration: none;
  font-weight: 700;
}

.chat-main {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: calc(100vh - 32px);
}

.chat-topbar {
  padding: 24px 28px 10px;
}

.chat-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #256d59;
  text-transform: uppercase;
}

.chat-topbar h1 {
  margin: 8px 0 0;
  max-width: 760px;
  color: #151a21;
  font-family: "Syne", sans-serif;
  line-height: 1.15;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.chat-window {
  padding: 14px 28px 20px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 14px;
}

.bubble {
  max-width: min(84%, 760px);
  border-radius: 16px;
  padding: 14px 16px;
  line-height: 1.6;
  border: 1px solid rgba(16, 20, 26, 0.09);
  background: #ffffff;
  box-shadow: none;
}

.bubble p {
  margin: 0;
}

.bubble-user {
  margin-left: auto;
  background: #145744;
  color: #f3fffb;
  border-color: rgba(20, 87, 68, 0.4);
}

.bubble-assistant {
  background: #ffffff;
}

.bubble-meta {
  margin-top: 8px;
  color: #607286;
  font-size: 0.82rem;
}

.composer {
  margin: 0 20px;
  border: 1px solid rgba(16, 20, 26, 0.13);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  font: inherit;
  min-height: 34px;
  line-height: 1.45;
  color: #0e1218;
}

.composer-actions {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 8px;
}

.composer-actions input {
  border: 1px solid rgba(16, 20, 26, 0.13);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.chat-disclaimer {
  margin: 8px 28px 20px;
  color: #607286;
  font-size: 0.82rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 940px) {
  .chat-shell {
    grid-template-columns: 1fr;
    margin: 8px;
    min-height: calc(100vh - 16px);
  }

  .chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 20, 26, 0.1);
  }

  .chat-main {
    min-height: 70vh;
  }

  .composer-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-home-clean {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(117, 177, 255, 0.26), transparent 20%),
    radial-gradient(circle at 84% 14%, rgba(127, 229, 255, 0.2), transparent 18%),
    linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 52%, #dce9ff 100%);
  color: #102753;
  font-family: "Space Grotesk", sans-serif;
  display: flex;
  flex-direction: column;
}

#matrix-canvas { display: none; }

.home-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.46), transparent 46%),
    radial-gradient(circle at 18% 24%, rgba(82, 138, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(101, 214, 255, 0.18), transparent 22%);
}

.home-bg::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image:
    linear-gradient(rgba(71, 116, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 116, 212, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 92%);
  opacity: 0.55;
}

.home-bg::after {
  content: "";
  position: absolute;
  inset: 12% 10% auto;
  height: 42%;
  background: radial-gradient(circle, rgba(120, 168, 255, 0.18), transparent 68%);
  filter: blur(14px);
}

.neural-network {
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

.neural-node,
.neural-link {
  position: absolute;
}

.neural-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b6d7ff 28%, #5f93ff 58%, #396ae8 100%);
  box-shadow: 0 0 0 8px rgba(95, 147, 255, 0.1), 0 0 24px rgba(95, 147, 255, 0.3);
  animation: neural-node-pulse 4.6s ease-in-out infinite;
}

.neural-node::after {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(95, 147, 255, 0.18);
  border-radius: 50%;
  animation: neural-halo 4.6s ease-out infinite;
}

.neural-link {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 130, 242, 0.12), rgba(79, 130, 242, 0.5), rgba(79, 130, 242, 0.12));
  transform-origin: left center;
  overflow: hidden;
}

.neural-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -18%;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  animation: neural-data-flow 3.4s linear infinite;
}

.node-a { top: 17%; left: 10%; animation-delay: 0.2s; }
.node-b { top: 27%; left: 24%; animation-delay: 1.1s; }
.node-c { top: 18%; left: 40%; animation-delay: 0.7s; }
.node-d { top: 30%; left: 57%; animation-delay: 1.8s; }
.node-e { top: 20%; left: 82%; animation-delay: 0.4s; }
.node-f { top: 55%; left: 16%; animation-delay: 1.4s; }
.node-g { top: 64%; left: 34%; animation-delay: 2.1s; }
.node-h { top: 54%; left: 56%; animation-delay: 0.9s; }
.node-i { top: 68%; left: 79%; animation-delay: 1.6s; }

.link-a { top: 18.7%; left: 10.8%; width: 18%; transform: rotate(24deg); }
.link-b { top: 26.4%; left: 24.8%; width: 17%; transform: rotate(-16deg); }
.link-c { top: 19.2%; left: 40.8%; width: 18%; transform: rotate(27deg); }
.link-d { top: 29%; left: 57.8%; width: 25%; transform: rotate(-20deg); }
.link-e { top: 28%; left: 24.8%; width: 31%; transform: rotate(58deg); }
.link-f { top: 55.8%; left: 16.8%; width: 19%; transform: rotate(18deg); }
.link-g { top: 63.5%; left: 34.8%; width: 22%; transform: rotate(-13deg); }
.link-h { top: 31%; left: 58%; width: 23%; transform: rotate(71deg); }
.link-i { top: 54.8%; left: 56.8%; width: 25%; transform: rotate(28deg); }
.link-j { top: 20%; left: 40.8%; width: 35%; transform: rotate(76deg); }

.home-topbar {
  position: relative;
  z-index: 10;
  margin-top: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(93, 145, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 34px rgba(59, 108, 247, 0.08);
}

.home-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-link-btn {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(82, 131, 240, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #2a56bf;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}

.home-link-btn:hover {
  border-color: rgba(82, 131, 240, 0.5);
  background: rgba(255, 255, 255, 0.96);
}

.home-link-btn-primary {
  background: #3b6cf7;
  color: #ffffff;
  border-color: #3b6cf7;
  box-shadow: 0 2px 16px rgba(59, 108, 247, 0.32);
}

.home-link-btn-primary:hover {
  background: #2d5de8;
  border-color: #2d5de8;
  box-shadow: 0 4px 22px rgba(59, 108, 247, 0.42);
}

.settings-gear {
  width: 38px;
  min-height: 38px;
  padding: 0;
  transition: transform 0.3s ease;
}

.settings-gear:hover {
  transform: rotate(30deg);
}

.settings-gear.is-active {
  transform: rotate(65deg);
}

.settings-gear svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.settings-wrap {
  position: relative;
}

/* Transparent full-page backdrop – sits below panel, above page content */
.settings-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: transparent;
}

.settings-backdrop.is-active {
  display: block;
}

.settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 210px;
  padding: 18px 20px;
  border: 1px solid rgba(99, 130, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 36px rgba(15, 29, 58, 0.12), 0 2px 8px rgba(15, 29, 58, 0.07);
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.settings-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-item label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7db3;
}

.settings-item select {
  border: 1px solid rgba(99, 130, 255, 0.22);
  border-radius: 10px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.92rem;
  background: #ffffff;
  color: #0f1d3a;
  cursor: pointer;
  outline-offset: 2px;
}

.page-home-clean[dir='rtl'] .home-topbar,
.page-home-clean[dir='rtl'] .home-topbar-actions,
.page-home-clean[dir='rtl'] .home-actions,
.page-home-clean[dir='rtl'] .home-footer {
  direction: rtl;
}

.home-brand {
  color: #2a56bf;
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.home-link {
  color: #1d6a53;
  text-decoration: none;
  font-weight: 700;
}

.home-main {
  position: relative;
  z-index: 2;
  padding: 42px 0 56px;
  flex: 0 0 auto;
}

.home-hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 36px 40px;
  text-align: center;
  animation: fade-up 0.6s ease both;
  border: 1px solid rgba(86, 136, 246, 0.18);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(243, 248, 255, 0.72));
  box-shadow: 0 28px 60px rgba(56, 104, 226, 0.11);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(86, 136, 246, 0.12), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(120, 221, 255, 0.12), transparent 22%);
  pointer-events: none;
}

.home-hero h1 {
  position: relative;
  margin: 10px 0 16px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Fraunces", serif;
  font-size: var(--hero-title-size);
  line-height: 1.06;
  color: #0f1d3a;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b6cf7 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero p {
  position: relative;
  max-width: 680px;
  color: #45649b;
  line-height: 1.75;
  margin: 0 auto;
  font-size: 1.05rem;
}

.home-badge {
  position: relative;
  margin: 0;
  display: inline-block;
  background: rgba(255, 255, 255, 0.78);
  color: #3b6cf7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 108, 247, 0.22);
}

.home-actions {
  position: relative;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.home-actions .btn {
  min-height: 52px;
  padding: 0 26px;
  font-size: 0.98rem;
  border-radius: 14px;
}

.home-examples {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  animation: fade-up 0.78s ease both;
  animation-delay: 0.08s;
}

.home-section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-section-kicker {
  margin: 0 0 8px;
  color: #3b6cf7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-examples h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.12;
  color: #132857;
}

.home-section-head > p:last-child {
  margin: 14px auto 0;
  color: #5470a8;
  line-height: 1.72;
  font-size: 1rem;
}

.home-examples-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-examples-flow {
  color: #254aa9;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-examples-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 108, 247, 0.1);
  color: #2c57d2;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-examples-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.home-examples-track {
  --example-track-duration: 126s;
  --example-track-distance: 0px;
  display: flex;
  gap: 16px;
  width: max-content;
  transform: translate3d(-12px, 0, 0);
  will-change: transform;
}

.home-examples-lane {
  display: flex;
  gap: 16px;
}

.example-card {
  --branch-accent: #3b6cf7;
  position: relative;
  overflow: hidden;
  width: min(338px, 78vw);
  min-height: 250px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  border-left: 3px solid var(--branch-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.86));
  box-shadow: 0 18px 42px rgba(59, 108, 247, 0.09);
  backdrop-filter: blur(14px);
  flex: 0 0 auto;
}

.home-how {
  margin-top: 34px;
  animation: fade-up 0.82s ease both;
  animation-delay: 0.12s;
}

.home-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 22px;
  align-items: stretch;
}

.home-how-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.home-section-head-left {
  margin: 0;
  text-align: left;
}

.home-how-feed {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(86, 136, 246, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(239, 246, 255, 0.84));
  box-shadow: 0 18px 38px rgba(59, 108, 247, 0.08);
}

.home-how-feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-how-feed-label {
  color: #254aa9;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-how-feed-hint {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 108, 247, 0.1);
  color: #2c57d2;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-how-marquee {
  position: relative;
  height: 408px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.home-how-feed-track {
  --how-feed-duration: 94s;
  --how-feed-distance: 0px;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, -12px, 0);
  will-change: transform;
}

.home-how-feed-column {
  display: grid;
  gap: 16px;
}

.home-how-feed-item {
  width: auto;
  max-width: none;
  min-height: 0;
}

.home-how-feed-item h3 {
  font-size: 1.16rem;
}

.home-how-feed-item .example-card-note {
  margin-top: 12px;
}

.home-how-feed-item .example-card-footer {
  margin-top: 16px;
}

.home-how-feed-item[data-branch='neuro'] { --branch-accent: #6a63ff; }
.home-how-feed-item[data-branch='gastro'] { --branch-accent: #ef8f2f; }
.home-how-feed-item[data-branch='resp'] { --branch-accent: #0ea5a3; }
.home-how-feed-item[data-branch='ent'] { --branch-accent: #3b82f6; }
.home-how-feed-item[data-branch='internal'] { --branch-accent: #14b8a6; }
.home-how-feed-item[data-branch='cardio'] { --branch-accent: #ef4444; }
.home-how-feed-item[data-branch='ortho'] { --branch-accent: #8b5cf6; }
.home-how-feed-item[data-branch='rheum'] { --branch-accent: #f97316; }
.home-how-feed-item[data-branch='derm'] { --branch-accent: #ec4899; }
.home-how-feed-item[data-branch='uro'] { --branch-accent: #06b6d4; }
.home-how-feed-item[data-branch='gyn'] { --branch-accent: #d946ef; }
.home-how-feed-item[data-branch='endo'] { --branch-accent: #22c55e; }
.home-how-feed-item[data-branch='eye'] { --branch-accent: #0f766e; }
.home-how-feed-item[data-branch='mental'] { --branch-accent: #a855f7; }
.home-how-feed-item[data-branch='vascular'] { --branch-accent: #f43f5e; }

.home-demo-shell {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(237, 245, 255, 0.86));
  box-shadow: 0 22px 48px rgba(59, 108, 247, 0.11);
  backdrop-filter: blur(18px);
}

.home-demo-header {
  display: grid;
  gap: 14px;
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f57cb;
  font-size: 0.88rem;
  font-weight: 700;
}

.demo-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
  animation: demo-live-pulse 1.8s ease infinite;
}

.demo-slide-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.demo-slide-btn {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(86, 136, 246, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: #4d67a1;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.demo-slide-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 108, 247, 0.26);
  box-shadow: 0 10px 20px rgba(59, 108, 247, 0.1);
}

.demo-slide-btn.is-active {
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(231, 240, 255, 0.94));
  border-color: rgba(59, 108, 247, 0.28);
  color: #1f49ac;
  box-shadow: 0 12px 24px rgba(59, 108, 247, 0.12);
}

.demo-slide-count {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-demo-chat {
  display: grid;
  gap: 12px;
  min-height: 258px;
  padding: 6px 0;
  align-content: start;
}

.demo-message {
  max-width: 84%;
  padding: 16px 18px;
  border-radius: 22px;
  opacity: 0.26;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.demo-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-message-user {
  margin-left: auto;
  background: linear-gradient(135deg, #3b6cf7 0%, #5a8cff 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(59, 108, 247, 0.18);
}

.demo-message-assistant {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(86, 136, 246, 0.14);
  color: #284171;
  box-shadow: 0 14px 28px rgba(59, 108, 247, 0.08);
}

.demo-role {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-message-user .demo-role {
  color: rgba(255, 255, 255, 0.74);
}

.demo-message-assistant .demo-role {
  color: #2f57cb;
}

.demo-message p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-line;
}

.home-demo-composer {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.demo-composer-label {
  color: #5873ab;
  font-size: 0.82rem;
  font-weight: 700;
}

.demo-composer-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

[data-demo-input] {
  flex: 1 1 auto;
  min-height: 24px;
  color: #204ab0;
  line-height: 1.6;
}

.demo-cursor {
  width: 1px;
  height: 22px;
  background: #3b6cf7;
  animation: demo-cursor-blink 1s step-end infinite;
}

.demo-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3b6cf7;
  color: #ffffff;
  font-size: 1rem;
  box-shadow: 0 10px 20px rgba(59, 108, 247, 0.22);
}

.example-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.86));
  box-shadow: 0 18px 42px rgba(59, 108, 247, 0.09);
  backdrop-filter: blur(14px);
}

.example-card::before {
  content: "";
  position: absolute;
  inset: auto -20% 68% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 190, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.example-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.example-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid currentColor;
  color: var(--branch-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.example-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.7);
  color: var(--branch-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.example-card h3 {
  position: relative;
  margin: 18px 0 10px;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  line-height: 1.22;
  color: #132857;
}

.example-card-note {
  position: relative;
  margin: 0;
  color: #5570a7;
  line-height: 1.7;
}

.example-card-footer {
  position: relative;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4869ad;
  font-size: 0.84rem;
  font-weight: 600;
}

.example-card-footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--branch-accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--branch-accent) 14%, transparent);
}

.example-card[data-branch='neuro'] { --branch-accent: #6a63ff; }
.example-card[data-branch='gastro'] { --branch-accent: #ef8f2f; }
.example-card[data-branch='resp'] { --branch-accent: #0ea5a3; }
.example-card[data-branch='ent'] { --branch-accent: #3b82f6; }
.example-card[data-branch='internal'] { --branch-accent: #14b8a6; }
.example-card[data-branch='cardio'] { --branch-accent: #ef4444; }
.example-card[data-branch='ortho'] { --branch-accent: #8b5cf6; }
.example-card[data-branch='rheum'] { --branch-accent: #f97316; }
.example-card[data-branch='derm'] { --branch-accent: #ec4899; }
.example-card[data-branch='uro'] { --branch-accent: #06b6d4; }
.example-card[data-branch='gyn'] { --branch-accent: #d946ef; }
.example-card[data-branch='endo'] { --branch-accent: #22c55e; }
.example-card[data-branch='eye'] { --branch-accent: #0f766e; }
.example-card[data-branch='mental'] { --branch-accent: #a855f7; }
.example-card[data-branch='vascular'] { --branch-accent: #f43f5e; }

.example-query {
  position: relative;
  margin-top: 18px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(224, 238, 255, 0.72);
  border: 1px solid rgba(86, 136, 246, 0.14);
}

.example-query span {
  display: inline-block;
  margin-bottom: 8px;
  color: #2f57cb;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.example-query p {
  margin: 0;
  color: #284171;
  line-height: 1.6;
}

.page-home-clean .btn-primary {
  background: #3b6cf7;
  color: #fff;
  border: 1px solid #3b6cf7;
  box-shadow: 0 4px 18px rgba(59, 108, 247, 0.3);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.page-home-clean .btn-primary:hover {
  background: #2d5de8;
  box-shadow: 0 6px 26px rgba(59, 108, 247, 0.42);
  transform: translateY(-1px);
}

.btn-store {
  border: 1px solid rgba(99, 130, 255, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #1e3a8a;
  box-shadow: 0 2px 10px rgba(15, 29, 58, 0.07);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-store:hover {
  border-color: rgba(59, 108, 247, 0.55);
  box-shadow: 0 4px 18px rgba(59, 108, 247, 0.16);
  transform: translateY(-1px);
}

.home-policy-strip {
  margin: 34px auto 0;
  max-width: 980px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(32, 74, 176, 0.08), rgba(20, 118, 90, 0.08));
  border: 1px solid rgba(59, 108, 247, 0.16);
  box-shadow: 0 18px 38px rgba(15, 29, 58, 0.08);
}
.home-policy-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  color: #16327b;
}
.home-policy-text {
  margin: 10px auto 0;
  max-width: 760px;
}
.home-policy-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.home-policy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(59, 108, 247, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: #204ab0;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.home-policy-link:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 108, 247, 0.42);
  box-shadow: 0 10px 18px rgba(59, 108, 247, 0.12);
}
.home-policy-link-primary {
  background: #204ab0;
  color: #ffffff;
  border-color: #204ab0;
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 10px;
  fill: currentColor;
  flex-shrink: 0;
}

.icon-android {
  color: #22c55e;
}

.icon-ios {
  color: #64748b;
}

.home-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-card {
  background: #ffffff;
  border: 1px solid rgba(31, 28, 23, 0.14);
  border-radius: 16px;
  padding: 18px;
}

.home-card h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.home-card p {
  margin: 0;
  color: #5a5348;
  line-height: 1.6;
}

.home-links-grid {
  margin-top: 16px;
}

.home-link-card {
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 28, 23, 0.09);
}

.policy-wrap {
  max-width: 900px;
}

.policy-wrap.app-release-page {
  max-width: 1240px;
}

.app-release-intro {
  max-width: 76ch;
}

.app-release-announcement {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: 28px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 244, 255, 0.92));
  box-shadow: 0 20px 40px rgba(64, 97, 163, 0.12);
}

.app-release-announcement-label {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2953b7;
}

.app-release-announcement h2 {
  margin-top: 0;
}

.app-release-shell {
  margin-top: 30px;
}

.admin-table-wrap.app-release-table-wrap {
  border-radius: 28px;
  overflow: hidden;
}

.admin-table.app-release-table {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}

.admin-table.app-release-table th,
.admin-table.app-release-table td {
  vertical-align: top;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: normal;
}

.admin-table.app-release-table th:nth-child(1),
.admin-table.app-release-table td:nth-child(1),
.admin-table.app-release-table th:nth-child(2),
.admin-table.app-release-table td:nth-child(2) {
  white-space: nowrap;
}

.admin-table.app-release-table tbody tr:hover {
  background: transparent;
}

.policy-wrap h1 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.policy-wrap h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.policy-wrap p {
  color: #564f43;
  line-height: 1.7;
}

.page-home-clean.theme-dark .policy-wrap .home-link,
.page-home-clean.theme-dark .policy-wrap a {
  color: #8ee7ff;
}

.page-home-clean.theme-dark .policy-wrap h1,
.page-home-clean.theme-dark .policy-wrap h2,
.page-home-clean.theme-dark .policy-wrap h3,
.page-home-clean.theme-dark .policy-wrap strong {
  color: #eef4ff;
}

.page-home-clean.theme-dark .policy-wrap p,
.page-home-clean.theme-dark .policy-wrap li,
.page-home-clean.theme-dark .status-list li {
  color: #c5d3ea;
}

.page-home-clean.theme-dark .app-release-announcement {
  border-color: rgba(86, 136, 246, 0.28);
  background: linear-gradient(135deg, rgba(12, 20, 38, 0.94), rgba(18, 33, 61, 0.92));
  box-shadow: 0 20px 44px rgba(3, 9, 24, 0.34);
}

.page-home-clean.theme-dark .app-release-announcement-label {
  color: #8ee7ff;
}

.page-home-clean.theme-dark .app-release-announcement p {
  color: #c5d3ea;
}

.page-home-clean.theme-dark .admin-table.app-release-table td::before {
  color: #d7e4ff;
}

.page-home-clean.theme-dark .admin-table.app-release-table tbody tr:hover {
  background: transparent;
}

@media (max-width: 1100px) {
  .admin-table.app-release-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .admin-table.app-release-table,
  .admin-table.app-release-table tbody,
  .admin-table.app-release-table tr,
  .admin-table.app-release-table td {
    display: block;
    width: 100%;
  }

  .admin-table.app-release-table tr {
    border-bottom: 1px solid rgba(86, 136, 246, 0.14);
  }

  .admin-table.app-release-table tbody tr:last-child {
    border-bottom: none;
  }

  .admin-table.app-release-table td {
    display: grid;
    grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
    gap: 8px 16px;
    padding: 14px 18px;
    border-bottom: none;
    white-space: normal;
  }

  .admin-table.app-release-table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #16327b;
  }
}

@media (max-width: 680px) {
  .admin-table.app-release-table td {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 13px 16px;
  }
}

.page-theme-floating-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
}

.page-auth .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-main {
  padding-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 24px;
  align-items: start;
}

.auth-main-login {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
}

.auth-copy,
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(86, 136, 246, 0.18);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.86));
  box-shadow: 0 24px 54px rgba(59, 108, 247, 0.1);
  backdrop-filter: blur(18px);
}

.auth-copy {
  padding: 34px 32px;
}

.auth-copy::before,
.auth-card::before {
  content: "";
  position: absolute;
  inset: auto -14% 64% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 213, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.auth-copy h1 {
  position: relative;
  margin: 18px 0 16px;
  font-family: "Fraunces", serif;
  font-size: var(--hero-title-size);
  line-height: 1.04;
  color: #0f1d3a;
  background: linear-gradient(135deg, #163b92 0%, #3b6cf7 55%, #62b4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-lead,
.auth-card-head p,
.auth-note,
.auth-status,
.auth-alt-link {
  color: #5470a8;
  line-height: 1.75;
}

.auth-benefit-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-benefit-list li {
  position: relative;
  padding-left: 18px;
  color: #244479;
  line-height: 1.7;
}

.auth-benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b6cf7;
}

.auth-card {
  padding: 30px;
}

.auth-card-head {
  display: grid;
  gap: 8px;
}

.auth-kicker {
  margin: 0;
  color: #2f66f0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: #132857;
}

.auth-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  color: #244479;
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #142a59;
  padding: 0 16px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.auth-field textarea,
.auth-field select {
  width: 100%;
  border: 1px solid rgba(86, 136, 246, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #142a59;
  padding: 14px 16px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.auth-field textarea {
  resize: vertical;
  min-height: 120px;
}

.auth-field input:focus {
  outline: 2px solid rgba(59, 108, 247, 0.22);
  outline-offset: 2px;
}

.auth-field textarea:focus,
.auth-field select:focus {
  outline: 2px solid rgba(59, 108, 247, 0.22);
  outline-offset: 2px;
}

.auth-consent-group {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.auth-checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: #35558f;
  line-height: 1.65;
}

.auth-checkbox input {
  margin-top: 4px;
}

.auth-checkbox a,
.auth-alt-link a {
  color: #2f66f0;
  text-decoration: none;
  font-weight: 700;
}

.auth-checkbox a:hover,
.auth-alt-link a:hover {
  color: #1f49ac;
}

.auth-note {
  margin: 0;
  font-size: 0.88rem;
}

.auth-submit {
  min-height: 52px;
  width: 100%;
}

.auth-divider {
  position: relative;
  margin: 20px 0;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(86, 136, 246, 0.18);
}

.auth-divider span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0 12px;
  background: rgba(245, 249, 255, 0.96);
  color: #5c77ad;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-social-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(86, 136, 246, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.auth-social-shell[data-busy='true'] {
  opacity: 0.78;
}

.auth-social-shell[data-busy='true'] .auth-google-button {
  pointer-events: none;
}

.auth-social-shell[data-state='disabled'] {
  border-style: dashed;
}

.auth-social-shell-minimal {
  display: grid;
  width: fit-content;
  margin: -10px auto 0;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
}

.auth-social-shell[hidden],
.auth-social-shell-minimal[hidden],
.auth-google-launch-shell[hidden],
.auth-divider[hidden] {
  display: none !important;
}

.auth-social-shell-minimal .auth-google-button {
  min-height: 0;
}

.auth-google-launch-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(42px, 9vw, 52px);
  aspect-ratio: 1;
}

.auth-google-launch-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(19, 40, 87, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-google-launch-visual svg {
  width: clamp(18px, 4.5vw, 24px);
  height: clamp(18px, 4.5vw, 24px);
}

.auth-google-launch-shell:hover .auth-google-launch-visual,
.auth-google-launch-shell:focus-within .auth-google-launch-visual {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(19, 40, 87, 0.14);
}

.auth-social-shell-minimal .auth-google-button-proxy {
  position: absolute;
  inset: 0;
}

.auth-social-shell-minimal #google-signin-button > .S9gUrf-YoZ4jf,
.auth-social-shell-minimal #google-signin-button > .S9gUrf-YoZ4jf > div,
.auth-social-shell-minimal #google-signin-button [role='button'] {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auth-social-shell-minimal #google-signin-button .L6cTce {
  display: none !important;
}

.auth-social-shell-minimal #google-signin-button [role='button'] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border-radius: 999px !important;
  opacity: 0 !important;
}

.auth-social-shell-minimal #google-signin-button svg {
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
}

.auth-social-shell-minimal .auth-status,
.auth-social-shell-minimal .auth-consent-group {
  width: min(320px, calc(100vw - 64px));
}

.auth-social-shell-minimal [data-google-consent-group][hidden] {
  display: none !important;
}

.auth-social-head {
  display: grid;
  gap: 6px;
}

.auth-social-head h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: #132857;
}

.auth-social-head p,
.auth-social-shell .auth-note {
  margin: 0;
}

.auth-google-button {
  min-height: 44px;
}

.auth-google-button[hidden] {
  display: none;
}

.auth-consent-group-compact {
  margin-top: 0;
}

.auth-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(248, 251, 255, 0.88);
}

.auth-status[data-state='success'] {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(238, 253, 244, 0.9);
  color: #176a44;
}

.auth-status[data-state='error'] {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(255, 242, 242, 0.92);
  color: #9f2430;
}

.auth-profile-summary {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(245, 249, 255, 0.92);
}

.auth-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 130, 255, 0.34);
  box-shadow: 0 12px 22px rgba(59, 108, 247, 0.16);
}

.auth-profile-avatar[hidden] {
  display: none;
}

.auth-profile-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.auth-profile-meta strong {
  color: #16327b;
  line-height: 1.4;
}

.auth-provider-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 108, 247, 0.12);
  color: #244479;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-inline-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-helper-card {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(245, 249, 255, 0.88);
}

.auth-helper-card[hidden] {
  display: none;
}

.auth-helper-title {
  margin: 0;
  color: #16327b;
  font-size: 1rem;
  font-weight: 700;
}

.auth-helper-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  color: #35558f;
  line-height: 1.65;
}

.auth-field-hint {
  margin: 0;
  color: #6d83b4;
  font-size: 0.82rem;
  line-height: 1.6;
}

.auth-password-shell {
  position: relative;
}

.auth-password-shell input {
  padding-right: 92px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 72px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #244479;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-password-toggle:hover {
  border-color: rgba(47, 102, 240, 0.34);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid rgba(59, 108, 247, 0.22);
  outline-offset: 2px;
}

.auth-inline-link {
  color: #2f66f0;
  text-decoration: none;
  font-weight: 700;
}

.auth-inline-link:hover {
  color: #1f49ac;
}

.auth-alt-link {
  margin: 18px 0 0;
}

.legal-main {
  display: grid;
  gap: 24px;
  padding-top: 24px;
}

.legal-hero,
.legal-panel,
.legal-log-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(86, 136, 246, 0.18);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.86));
  box-shadow: 0 24px 54px rgba(59, 108, 247, 0.1);
  backdrop-filter: blur(18px);
}

.legal-hero,
.legal-log-shell,
.legal-panel {
  padding: 30px;
}

.legal-hero::before,
.legal-panel::before,
.legal-log-shell::before {
  content: "";
  position: absolute;
  inset: auto -12% 62% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 213, 255, 0.2), transparent 72%);
  pointer-events: none;
}

.legal-hero h1,
.legal-panel h2,
.legal-log-shell h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  color: #132857;
}

.legal-hero h1 {
  margin-top: 16px;
  font-size: var(--hero-title-size);
  line-height: 1.04;
  background: linear-gradient(135deg, #163b92 0%, #3b6cf7 55%, #62b4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-lead,
.legal-panel p,
.legal-log-shell p {
  color: #5470a8;
  line-height: 1.75;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.legal-status-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(86, 136, 246, 0.16);
  background: rgba(248, 251, 255, 0.88);
  color: #456596;
}

.legal-status-banner[data-state='warning'] {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(255, 248, 235, 0.92);
  color: #8a5a09;
}

.legal-status-banner[data-state='success'] {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(238, 253, 244, 0.92);
  color: #176a44;
}

.legal-doc-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.legal-doc-card {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(86, 136, 246, 0.16);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(59, 108, 247, 0.07);
}

.legal-doc-card h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  color: #132857;
}

.legal-doc-meta {
  display: grid;
  gap: 8px;
  color: #5470a8;
  font-size: 0.9rem;
}

.legal-hash {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 108, 247, 0.08);
  color: #2f66f0;
  font-size: 0.76rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legal-summary-list {
  display: grid;
  gap: 12px;
}

.legal-summary-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.legal-summary-item strong {
  display: block;
  margin-bottom: 8px;
  color: #163b92;
}

.legal-log-shell {
  display: grid;
  gap: 16px;
}

.legal-log-list {
  display: grid;
  gap: 14px;
}

.legal-log-card {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 28px rgba(59, 108, 247, 0.06);
}

.legal-log-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-log-card-head strong {
  color: #163b92;
}

.legal-log-meta {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  color: #5470a8;
  font-size: 0.9rem;
}

.legal-refresh-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.security-report-main {
  display: grid;
  gap: 24px;
}

.security-report-grid,
.security-report-form-shell,
.security-report-side {
  position: relative;
}

.security-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.security-report-form-shell,
.security-report-side {
  overflow: hidden;
  border: 1px solid rgba(86, 136, 246, 0.18);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.86));
  box-shadow: 0 24px 54px rgba(59, 108, 247, 0.1);
  backdrop-filter: blur(18px);
  padding: 30px;
}

.security-report-form-shell::before,
.security-report-side::before {
  content: "";
  position: absolute;
  inset: auto -14% 64% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 213, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.security-report-form-shell h1,
.security-report-side h2 {
  position: relative;
  margin: 0;
  font-family: "Fraunces", serif;
  color: #132857;
}

.security-report-form-shell h1 {
  margin-top: 16px;
  font-size: var(--hero-title-size);
  line-height: 1.06;
  background: linear-gradient(135deg, #163b92 0%, #3b6cf7 55%, #62b4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.security-report-lead,
.security-report-side p,
.security-summary-item span {
  color: #5470a8;
  line-height: 1.75;
}

.security-report-form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.security-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-summary-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.security-summary-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.security-summary-item strong {
  display: block;
  margin-bottom: 8px;
  color: #163b92;
}

.security-contact {
  margin-top: 18px;
}

.security-contact a {
  color: #2f66f0;
  text-decoration: none;
  font-weight: 700;
}

.security-policy-copy {
  max-width: none;
}

.page-home-clean.theme-dark .legal-hero,
.page-home-clean.theme-dark .legal-panel,
.page-home-clean.theme-dark .legal-log-shell,
.page-home-clean.theme-dark .legal-doc-card,
.page-home-clean.theme-dark .legal-summary-item,
.page-home-clean.theme-dark .legal-log-card {
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.8), rgba(8, 16, 32, 0.76));
  border-color: rgba(99, 130, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.page-home-clean.theme-dark .legal-hero h1,
.page-home-clean.theme-dark .legal-panel h2,
.page-home-clean.theme-dark .legal-log-shell h2,
.page-home-clean.theme-dark .legal-doc-card h3,
.page-home-clean.theme-dark .legal-summary-item strong,
.page-home-clean.theme-dark .legal-log-card-head strong {
  color: #d7e4ff;
}

.page-home-clean.theme-dark .legal-lead,
.page-home-clean.theme-dark .legal-panel p,
.page-home-clean.theme-dark .legal-log-shell p,
.page-home-clean.theme-dark .legal-doc-meta,
.page-home-clean.theme-dark .legal-log-meta,
.page-home-clean.theme-dark .legal-status-banner {
  color: #9db3df;
}

.page-home-clean.theme-dark .legal-status-banner,
.page-home-clean.theme-dark .legal-hash {
  background: rgba(18, 30, 56, 0.78);
  border-color: rgba(99, 130, 255, 0.22);
}

.page-home-clean.theme-dark .security-report-form-shell,
.page-home-clean.theme-dark .security-report-side,
.page-home-clean.theme-dark .security-summary-item {
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.8), rgba(8, 16, 32, 0.76));
  border-color: rgba(99, 130, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.page-home-clean.theme-dark .security-report-form-shell h1,
.page-home-clean.theme-dark .security-report-side h2,
.page-home-clean.theme-dark .security-summary-item strong {
  color: #d7e4ff;
}

.page-home-clean.theme-dark .security-report-lead,
.page-home-clean.theme-dark .security-report-side p,
.page-home-clean.theme-dark .security-summary-item span {
  color: #9db3df;
}

.page-home-clean.theme-dark .auth-social-shell {
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.74), rgba(8, 16, 32, 0.7));
  border-color: rgba(99, 130, 255, 0.18);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.page-home-clean.theme-dark .auth-divider span {
  background: rgba(10, 15, 30, 0.96);
  color: #9db3df;
}

.page-home-clean.theme-dark .auth-divider::before {
  background: rgba(99, 130, 255, 0.22);
}

.page-home-clean.theme-dark .auth-social-head h3 {
  color: #d7e4ff;
}

.page-home-clean.theme-dark .auth-profile-summary {
  background: rgba(10, 16, 31, 0.84);
  border-color: rgba(99, 130, 255, 0.18);
}

.page-home-clean.theme-dark .auth-profile-meta strong {
  color: #d7e4ff;
}

.page-home-clean.theme-dark .auth-provider-badge {
  background: rgba(99, 130, 255, 0.16);
  color: #cbdcff;
}

.page-home-clean.theme-dark .auth-helper-card {
  background: rgba(10, 16, 31, 0.84);
  border-color: rgba(99, 130, 255, 0.18);
}

.page-home-clean.theme-dark .auth-helper-title {
  color: #d7e4ff;
}

.page-home-clean.theme-dark .auth-helper-list,
.page-home-clean.theme-dark .auth-field-hint {
  color: #9db3df;
}

.page-home-clean.theme-dark .auth-password-toggle {
  background: rgba(9, 15, 29, 0.94);
  border-color: rgba(99, 130, 255, 0.18);
  color: #d7e4ff;
}

.page-home-clean.theme-dark .auth-inline-link {
  color: #cbdcff;
}

.page-admin-shell .home-main {
  align-items: start;
}

.page-admin-login .home-topbar {
  justify-content: center;
}

.admin-login-main {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.page-admin-login .auth-card {
  width: 100%;
}

.admin-topbar {
  align-items: center;
}

.admin-main {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.admin-table-shell {
  display: grid;
  gap: 18px;
}

.admin-table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.admin-table-head h2 {
  margin: 6px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  color: #132857;
}

.admin-table-head p {
  margin: 0;
  color: #5470a8;
}

.admin-search-field {
  min-width: min(320px, 100%);
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(86, 136, 246, 0.14);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
  background: rgba(255, 255, 255, 0.88);
}

.admin-table-compact {
  min-width: 760px;
}

.admin-users-table th:last-child,
.admin-users-table td:last-child {
  position: sticky;
  right: 0;
}

.admin-users-table th:last-child {
  z-index: 2;
  box-shadow: -12px 0 20px rgba(171, 198, 255, 0.22);
}

.admin-users-table td:last-child {
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -12px 0 20px rgba(171, 198, 255, 0.16);
}

.admin-users-table tbody tr:hover td:last-child {
  background: rgba(239, 246, 255, 0.9);
}

.admin-users-table tbody tr.admin-row-inactive td:last-child {
  background: rgba(255, 246, 246, 0.94);
}

.admin-users-table tbody tr.admin-row-selected td:last-child {
  background: rgba(232, 241, 255, 0.98);
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(86, 136, 246, 0.12);
  text-align: left;
  color: #244479;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: rgba(239, 246, 255, 0.98);
  color: #16327b;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table tbody tr:hover {
  background: rgba(239, 246, 255, 0.62);
}

.admin-table-empty {
  text-align: center;
  color: #5470a8;
}

.admin-row-inactive {
  background: rgba(255, 246, 246, 0.78);
}

.admin-row-selected {
  box-shadow: inset 4px 0 0 #3b6cf7;
  background: rgba(232, 241, 255, 0.92);
}

.admin-cell-stack {
  display: grid;
  gap: 6px;
}

.admin-status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-status-badge-active {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.admin-status-badge-inactive {
  background: rgba(239, 68, 68, 0.14);
  color: #991b1b;
}

.admin-status-badge-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #9a5700;
}

.admin-status-note {
  color: #6b7fae;
  font-size: 0.8rem;
}

.admin-detail-shell {
  display: grid;
  gap: 18px;
}

.admin-detail-shell[hidden] {
  display: none;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-detail-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

.admin-detail-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: #132857;
}

.admin-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.admin-detail-list > div {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(86, 136, 246, 0.12);
}

.admin-detail-list > div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-detail-list dt {
  color: #5470a8;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-detail-list dd {
  margin: 0;
  color: #244479;
  font-weight: 600;
}

.admin-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-action-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #244479;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.admin-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 102, 240, 0.34);
}

.admin-action-btn[data-busy='true'],
.admin-action-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.admin-action-btn-neutral {
  background: rgba(255, 244, 230, 0.9);
  color: #9a5700;
}

.admin-action-btn-success {
  background: rgba(238, 253, 244, 0.94);
  color: #176a44;
}

.admin-action-btn-danger {
  background: rgba(255, 242, 242, 0.94);
  color: #9f2430;
}

.admin-log-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 108, 247, 0.12);
  color: #244479;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-log-details {
  margin-top: 6px;
  color: #6b7fae;
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-setting-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-setting-main,
.admin-setting-main > div:first-child,
.admin-setting-value-shell,
.admin-setting-value-label,
.admin-setting-value-bar,
.admin-setting-value-input,
.admin-setting-value-status {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.admin-setting-main {
  grid-template-columns: minmax(0, 1fr);
}

.admin-setting-main strong,
.admin-setting-main p,
.admin-setting-value-status,
.admin-setting-value-input {
  overflow-wrap: anywhere;
}

.admin-setting-value-shell {
  justify-self: stretch;
}

.admin-setting-action-row {
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (max-width: 780px) {
  .admin-setting-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-setting-card .admin-toggle-btn,
  .admin-setting-card .admin-log-pill {
    justify-self: start;
  }
}

.page-home-clean.theme-dark .admin-table {
  background: rgba(10, 16, 31, 0.84);
}

.page-home-clean.theme-dark .admin-table th {
  background: rgba(15, 23, 42, 0.98);
  color: #d7e4ff;
}

.page-home-clean.theme-dark .admin-table td,
.page-home-clean.theme-dark .admin-table-empty,
.page-home-clean.theme-dark .admin-table-head p {
  color: #9db3df;
}

.page-home-clean.theme-dark .admin-row-inactive {
  background: rgba(59, 18, 30, 0.38);
}

.page-home-clean.theme-dark .admin-row-selected {
  background: rgba(27, 44, 88, 0.72);
}

.page-home-clean.theme-dark .admin-table-head h2 {
  color: #d7e4ff;
}

.page-home-clean.theme-dark .admin-status-badge-active {
  background: rgba(34, 197, 94, 0.16);
  color: #b7f7cf;
}

.page-home-clean.theme-dark .admin-status-badge-inactive {
  background: rgba(239, 68, 68, 0.18);
  color: #ffb4bd;
}

.page-home-clean.theme-dark .admin-status-badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #ffd8a1;
}

.page-home-clean.theme-dark .admin-status-note {
  color: #91a8d8;
}

.page-home-clean.theme-dark .admin-detail-card {
  background: rgba(10, 16, 31, 0.84);
  border-color: rgba(99, 130, 255, 0.16);
}

.page-home-clean.theme-dark .admin-detail-card h3,
.page-home-clean.theme-dark .admin-detail-list dd {
  color: #d7e4ff;
}

.page-home-clean.theme-dark .admin-detail-list dt {
  color: #9db3df;
}

.page-home-clean.theme-dark .admin-action-btn {
  background: rgba(10, 16, 31, 0.86);
  border-color: rgba(99, 130, 255, 0.18);
  color: #d7e4ff;
}

.page-home-clean.theme-dark .admin-action-btn-neutral {
  background: rgba(115, 79, 12, 0.34);
  color: #ffd8a1;
}

.page-home-clean.theme-dark .admin-action-btn-success {
  background: rgba(18, 84, 53, 0.34);
  color: #b7f7cf;
}

.page-home-clean.theme-dark .admin-action-btn-danger {
  background: rgba(109, 29, 43, 0.34);
  color: #ffb4bd;
}

.page-home-clean.theme-dark .admin-log-pill {
  background: rgba(59, 108, 247, 0.18);
  color: #d7e4ff;
}

.page-home-clean.theme-dark .admin-log-details {
  color: #91a8d8;
}

@media (max-width: 900px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}

.page-privacy .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.privacy-main {
  display: grid;
  gap: 24px;
  padding-top: 30px;
}

.privacy-hero,
.privacy-section,
.privacy-side-panel,
.privacy-related-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(86, 136, 246, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(238, 246, 255, 0.84));
  box-shadow: 0 22px 48px rgba(59, 108, 247, 0.1);
  backdrop-filter: blur(18px);
}

.privacy-hero,
.privacy-notes-layout,
.privacy-faq-layout {
  display: grid;
  gap: 22px;
}

.privacy-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  padding: 0;
  border-radius: 34px;
}

.privacy-hero-copy,
.privacy-hero-panel,
.privacy-section,
.privacy-side-panel,
.privacy-related-panel {
  padding: 30px;
  border-radius: 30px;
}

.privacy-hero-copy,
.privacy-hero-panel {
  position: relative;
}

.privacy-hero-copy::before,
.privacy-hero-panel::before,
.privacy-section::before,
.privacy-side-panel::before,
.privacy-related-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% 62% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 213, 255, 0.22), transparent 72%);
  pointer-events: none;
}

.privacy-hero-copy h1 {
  position: relative;
  margin: 16px 0 14px;
  max-width: 12ch;
  font-family: "Fraunces", serif;
  font-size: var(--hero-title-size);
  line-height: 1.02;
  color: #0f1d3a;
  background: linear-gradient(135deg, #163b92 0%, #3b6cf7 52%, #62b4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-lead,
.privacy-section-copy > p,
.privacy-tier-card p,
.privacy-data-card p,
.privacy-flow-card p,
.privacy-note-card p,
.privacy-control-card p,
.privacy-faq-card p,
.privacy-panel-stat span,
.privacy-alert {
  color: #5470a8;
  line-height: 1.75;
}

.privacy-hero-actions {
  position: relative;
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.privacy-last-updated {
  margin: 18px 0 0;
  color: #5673ab;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.privacy-hero-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.privacy-panel-kicker {
  margin: 0;
  color: #2f66f0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.privacy-panel-grid {
  display: grid;
  gap: 12px;
}

.privacy-panel-stat {
  position: relative;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(86, 136, 246, 0.14);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 26px rgba(59, 108, 247, 0.07);
}

.privacy-panel-stat strong,
.privacy-tier-card h3,
.privacy-data-card h3,
.privacy-flow-card h3,
.privacy-note-card h3,
.privacy-control-card h3,
.privacy-faq-card h3,
.privacy-side-panel h3,
.privacy-related-panel h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  color: #142a59;
}

.privacy-panel-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.privacy-alert {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(59, 108, 247, 0.18);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.88), rgba(245, 250, 255, 0.96));
}

.privacy-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(86, 136, 246, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #2f66f0;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(59, 108, 247, 0.06);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.privacy-jump-link:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 108, 247, 0.3);
  background: #f8fbff;
}

.privacy-section {
  scroll-margin-top: 110px;
  display: grid;
  gap: 22px;
}

.privacy-section-split {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
}

.privacy-section-copy h2,
.privacy-section .home-section-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  color: #132857;
}

.privacy-visibility-grid,
.privacy-data-grid,
.privacy-usage-grid,
.privacy-note-grid,
.privacy-control-grid {
  display: grid;
  gap: 16px;
}

.privacy-visibility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-tier-card,
.privacy-data-card,
.privacy-flow-card,
.privacy-note-card,
.privacy-control-card,
.privacy-faq-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(86, 136, 246, 0.16);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(59, 108, 247, 0.07);
}

.privacy-tier-card,
.privacy-data-card,
.privacy-flow-card,
.privacy-note-card,
.privacy-control-card {
  padding: 22px;
}

.privacy-faq-card {
  padding: 24px;
}

.privacy-tier-card {
  --privacy-accent: #3b6cf7;
  border-top: 3px solid var(--privacy-accent);
}

.privacy-tier-index,
.privacy-flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.privacy-tier-index {
  color: var(--privacy-accent);
}

.privacy-flow-step {
  color: #2f66f0;
}

.privacy-tier-card h3,
.privacy-data-card h3,
.privacy-flow-card h3,
.privacy-note-card h3,
.privacy-control-card h3,
.privacy-faq-card h3 {
  margin: 18px 0 10px;
  font-size: 1.32rem;
  line-height: 1.16;
}

.privacy-tier-card[data-tier='only-you'] { --privacy-accent: #2f66f0; }
.privacy-tier-card[data-tier='session'] { --privacy-accent: #0ea5a3; }
.privacy-tier-card[data-tier='support'] { --privacy-accent: #8b5cf6; }
.privacy-tier-card[data-tier='security'] { --privacy-accent: #ef4444; }
.privacy-tier-card[data-tier='public'] { --privacy-accent: #f59e0b; }

.privacy-data-grid,
.privacy-note-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-usage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-control-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.privacy-mini-list,
.privacy-bullet-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.privacy-bullet-list {
  margin-top: 18px;
  gap: 12px;
}

.privacy-mini-list li,
.privacy-bullet-list li {
  position: relative;
  padding-left: 18px;
  color: #244479;
  line-height: 1.65;
}

.privacy-mini-list li::before,
.privacy-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.privacy-mini-list li::before {
  background: var(--privacy-accent, #2f66f0);
}

.privacy-bullet-list li::before {
  background: #3b6cf7;
}

.privacy-bullet-list-compact {
  gap: 10px;
}

.privacy-notes-layout,
.privacy-faq-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.privacy-side-panel,
.privacy-related-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.privacy-control-card a,
.privacy-related-panel .footer-links a {
  color: #2f66f0;
  text-decoration: none;
  font-weight: 700;
}

.privacy-control-card a:hover,
.privacy-related-panel .footer-links a:hover {
  color: #1f49ac;
}

.privacy-faq-list {
  display: grid;
  gap: 16px;
}

.page-home-clean.theme-dark.page-privacy .privacy-hero,
.page-home-clean.theme-dark.page-privacy .privacy-section,
.page-home-clean.theme-dark.page-privacy .privacy-side-panel,
.page-home-clean.theme-dark.page-privacy .privacy-related-panel,
.page-home-clean.theme-dark.page-privacy .privacy-tier-card,
.page-home-clean.theme-dark.page-privacy .privacy-data-card,
.page-home-clean.theme-dark.page-privacy .privacy-flow-card,
.page-home-clean.theme-dark.page-privacy .privacy-note-card,
.page-home-clean.theme-dark.page-privacy .privacy-control-card,
.page-home-clean.theme-dark.page-privacy .privacy-faq-card,
.page-home-clean.theme-dark.page-privacy .privacy-panel-stat {
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.8), rgba(8, 16, 32, 0.76));
  border-color: rgba(99, 130, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.page-home-clean.theme-dark.page-privacy .privacy-hero-copy h1 {
  background: linear-gradient(135deg, #bdd0ff 0%, #93b4f7 50%, #78d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-home-clean.theme-dark.page-privacy .privacy-section-copy h2,
.page-home-clean.theme-dark.page-privacy .privacy-section .home-section-head h2,
.page-home-clean.theme-dark.page-privacy .privacy-panel-stat strong,
.page-home-clean.theme-dark.page-privacy .privacy-tier-card h3,
.page-home-clean.theme-dark.page-privacy .privacy-data-card h3,
.page-home-clean.theme-dark.page-privacy .privacy-flow-card h3,
.page-home-clean.theme-dark.page-privacy .privacy-note-card h3,
.page-home-clean.theme-dark.page-privacy .privacy-control-card h3,
.page-home-clean.theme-dark.page-privacy .privacy-faq-card h3,
.page-home-clean.theme-dark.page-privacy .privacy-side-panel h3,
.page-home-clean.theme-dark.page-privacy .privacy-related-panel h3 {
  color: #d7e4ff;
}

.page-home-clean.theme-dark.page-privacy .privacy-lead,
.page-home-clean.theme-dark.page-privacy .privacy-section-copy > p,
.page-home-clean.theme-dark.page-privacy .privacy-tier-card p,
.page-home-clean.theme-dark.page-privacy .privacy-data-card p,
.page-home-clean.theme-dark.page-privacy .privacy-flow-card p,
.page-home-clean.theme-dark.page-privacy .privacy-note-card p,
.page-home-clean.theme-dark.page-privacy .privacy-control-card p,
.page-home-clean.theme-dark.page-privacy .privacy-faq-card p,
.page-home-clean.theme-dark.page-privacy .privacy-panel-stat span,
.page-home-clean.theme-dark.page-privacy .privacy-alert,
.page-home-clean.theme-dark.page-privacy .privacy-mini-list li,
.page-home-clean.theme-dark.page-privacy .privacy-bullet-list li,
.page-home-clean.theme-dark.page-privacy .privacy-last-updated {
  color: #9db3df;
}

.page-home-clean.theme-dark.page-privacy .privacy-jump-link,
.page-home-clean.theme-dark.page-privacy .privacy-tier-index,
.page-home-clean.theme-dark.page-privacy .privacy-flow-step,
.page-home-clean.theme-dark.page-privacy .privacy-alert {
  background: rgba(18, 30, 56, 0.78);
  border-color: rgba(99, 130, 255, 0.22);
}

.page-home-clean.theme-dark.page-privacy .privacy-jump-link,
.page-home-clean.theme-dark.page-privacy .privacy-control-card a,
.page-home-clean.theme-dark.page-privacy .privacy-related-panel .footer-links a,
.page-home-clean.theme-dark.page-privacy .privacy-panel-kicker {
  color: #93b4f7;
}

@media (max-width: 1100px) {
  .auth-main,
  .auth-main-login,
  .legal-grid,
  .security-report-grid,
  .privacy-hero,
  .privacy-section-split,
  .privacy-notes-layout,
  .privacy-faq-layout {
    grid-template-columns: 1fr;
  }

  .legal-doc-grid,
  .privacy-visibility-grid,
  .privacy-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-copy,
  .auth-card,
  .legal-hero,
  .legal-panel,
  .legal-log-shell,
  .security-report-form-shell,
  .security-report-side,
  .privacy-main {
    gap: 18px;
    padding-top: 24px;
  }

  .auth-copy,
  .auth-card,
  .legal-hero,
  .legal-panel,
  .legal-log-shell,
  .security-report-form-shell,
  .security-report-side,
  .privacy-hero-copy,
  .privacy-hero-panel,
  .privacy-section,
  .privacy-side-panel,
  .privacy-related-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .privacy-hero-copy h1 {
    max-width: none;
  }

  .auth-submit {
    width: 100%;
  }

  .privacy-hero-actions {
    flex-direction: column;
  }

  .privacy-jump-link,
  .privacy-hero-actions .home-link-btn,
  .privacy-side-panel .home-link-btn,
  .privacy-control-card a {
    width: 100%;
  }

  .privacy-visibility-grid,
  .privacy-data-grid,
  .privacy-usage-grid,
  .privacy-note-grid,
  .legal-doc-grid,
  .security-form-grid,
  .privacy-control-grid {
    grid-template-columns: 1fr;
  }

  .page-privacy .home-brand span {
    display: none;
  }

  .page-auth .home-brand span {
    display: none;
  }
}

.home-footer {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #dfeeff 0%, #d4e7ff 100%);
  border-top: 1px solid rgba(95, 147, 255, 0.28);
  box-shadow: 0 -14px 32px rgba(59, 108, 247, 0.08);
  color: #2550b8;
}

.home-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 18%, rgba(95, 147, 255, 0.12), transparent 18%),
    radial-gradient(circle at 88% 24%, rgba(110, 213, 255, 0.14), transparent 20%),
    linear-gradient(rgba(89, 138, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 138, 247, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 84px 84px, 84px 84px;
  opacity: 0.8;
  pointer-events: none;
}

.home-footer-shell {
  position: relative;
  z-index: 1;
  padding: 42px 0 22px;
}

#site-footer {
  scroll-margin-top: 24px;
}

.home-footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.8fr);
  gap: 36px;
  align-items: start;
}

.home-footer-brand-block {
  display: grid;
  gap: 16px;
}

.home-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1f49ac;
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
}

.home-footer-brand .brand-logo {
  height: 32px;
}

.home-footer-brand span {
  line-height: 1;
}

.home-footer-tagline {
  margin: 0;
  max-width: 360px;
  color: #4c68b4;
  line-height: 1.75;
}

.home-footer-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 108, 247, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #2b5cd4;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.home-footer-pill:hover {
  background: #f8fbff;
  border-color: rgba(59, 108, 247, 0.36);
  color: #1f49ac;
  transform: translateY(-1px);
}

.home-footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.home-footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-footer-label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2f66f0;
  font-weight: 700;
}

.home-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(95, 147, 255, 0.16);
  display: grid;
  gap: 16px;
}

.home-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 108, 247, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: #2b5cd4;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.18s, background 0.18s;
}

.home-footer-social a:hover {
  background: #f7faff;
  border-color: rgba(59, 108, 247, 0.3);
  color: #1f49ac;
}

.home-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-footer-legal-links a {
  color: #2f66f0;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s;
}

.home-footer-legal-links a:hover {
  color: #1f49ac;
}

/* Dark mode (koyu tema) */
.page-home-clean.theme-dark {
  background:
    radial-gradient(circle at 12% 18%, rgba(17, 135, 183, 0.2), transparent 22%),
    radial-gradient(circle at 84% 10%, rgba(46, 106, 255, 0.16), transparent 18%),
    linear-gradient(180deg, #050913 0%, #09111f 48%, #050b14 100%);
  color: #eef4ff;
}

.page-home-clean.theme-dark .home-bg {
  background:
    linear-gradient(125deg, rgba(9, 15, 28, 0.9), transparent 46%),
    radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.18), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(59, 130, 246, 0.18), transparent 22%);
}

.page-home-clean.theme-dark .home-bg::before {
  background-image:
    linear-gradient(rgba(97, 135, 186, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 135, 186, 0.1) 1px, transparent 1px);
  opacity: 0.42;
}

.page-home-clean.theme-dark .home-bg::after {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 68%);
  filter: blur(22px);
}

.page-home-clean.theme-dark .neural-network {
  opacity: 0.72;
}

.page-home-clean.theme-dark .neural-node {
  background: radial-gradient(circle at 35% 35%, #f8fcff 0%, #b2f1ff 24%, #38bdf8 58%, #0f2b52 100%);
  box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.08), 0 0 28px rgba(34, 211, 238, 0.24);
}

.page-home-clean.theme-dark .neural-node::after {
  border-color: rgba(125, 211, 252, 0.16);
}

.page-home-clean.theme-dark .neural-link {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.06), rgba(59, 130, 246, 0.44), rgba(34, 211, 238, 0.06));
}

.page-home-clean.theme-dark .neural-link::after {
  background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.92), transparent);
}

.page-home-clean.theme-dark .home-brand { color: #f5f9ff; }

.page-home-clean.theme-dark .home-topbar {
  background: linear-gradient(180deg, rgba(8, 13, 25, 0.82), rgba(10, 18, 32, 0.72));
  border-color: rgba(141, 166, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 44px rgba(0, 0, 0, 0.42);
}

.page-home-clean.theme-dark .home-hero h1 {
  background: linear-gradient(135deg, #f8fbff 0%, #9bddff 34%, #67b8ff 72%, #7c9dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-home-clean.theme-dark .home-hero p { color: #b7c5de; }

.page-home-clean.theme-dark .home-hero {
  background: linear-gradient(180deg, rgba(8, 14, 27, 0.82), rgba(10, 16, 30, 0.72));
  border-color: rgba(141, 166, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 32px 72px rgba(0, 0, 0, 0.44);
}

.page-home-clean.theme-dark .home-hero::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.12), transparent 22%);
}

.page-home-clean.theme-dark .home-section-kicker,
.page-home-clean.theme-dark .example-query span,
.page-home-clean.theme-dark .example-rank,
.page-home-clean.theme-dark .home-footer-kicker { color: #8ee7ff; }

.page-home-clean.theme-dark .home-examples h2,
.page-home-clean.theme-dark .example-card h3,
.page-home-clean.theme-dark .home-footer-brand,
.page-home-clean.theme-dark .home-footer-brand span { color: #eef4ff; }

.page-home-clean.theme-dark .home-section-head > p:last-child,
.page-home-clean.theme-dark .home-section-head-left > p:last-child,
.page-home-clean.theme-dark .example-card > p,
.page-home-clean.theme-dark .home-footer-tagline { color: #9fb0cb; }

.page-home-clean.theme-dark .example-card {
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.84), rgba(7, 13, 24, 0.8));
  border-color: rgba(141, 166, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 48px rgba(0, 0, 0, 0.34);
}

.page-home-clean.theme-dark .example-card::before {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
}

.page-home-clean.theme-dark .home-examples-flow,
.page-home-clean.theme-dark .home-examples-count,
.page-home-clean.theme-dark .example-chip,
.page-home-clean.theme-dark .example-rank,
.page-home-clean.theme-dark .home-how-feed-label {
  color: var(--branch-accent, #8ee7ff);
}

.page-home-clean.theme-dark .home-examples-count,
.page-home-clean.theme-dark .example-chip,
.page-home-clean.theme-dark .home-how-feed-hint {
  background: rgba(14, 24, 44, 0.88);
  border-color: rgba(143, 175, 224, 0.14);
}

.page-home-clean.theme-dark .example-rank {
  background: rgba(14, 24, 44, 0.88);
}

.page-home-clean.theme-dark .example-card-note,
.page-home-clean.theme-dark .example-card-footer,
.page-home-clean.theme-dark .home-how-feed-item .example-card-note,
.page-home-clean.theme-dark .home-how-feed-item .example-card-footer,
.page-home-clean.theme-dark .demo-composer-label,
.page-home-clean.theme-dark .demo-slide-btn,
.page-home-clean.theme-dark .home-footer .footer-links a,
.page-home-clean.theme-dark .home-footer-legal-links a,
.page-home-clean.theme-dark .home-footer-social a,
.page-home-clean.theme-dark .page-disclaimer,
.page-home-clean.theme-dark .home-copyright {
  color: #c5d3ea;
}

.page-home-clean.theme-dark .home-how-feed {
  background: linear-gradient(180deg, rgba(10, 17, 31, 0.82), rgba(7, 13, 24, 0.78));
  border-color: rgba(141, 166, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px rgba(0, 0, 0, 0.34);
}

.page-home-clean.theme-dark .home-how-feed-item {
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.84), rgba(7, 13, 24, 0.8));
  border-color: rgba(141, 166, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 48px rgba(0, 0, 0, 0.34);
}

.page-home-clean.theme-dark .home-how-feed-item .example-chip,
.page-home-clean.theme-dark .home-how-feed-item .example-rank {
  background: rgba(14, 24, 44, 0.88);
  border-color: rgba(143, 175, 224, 0.14);
  color: var(--branch-accent);
}

.page-home-clean.theme-dark .home-demo-shell {
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.84), rgba(7, 13, 24, 0.8));
  border-color: rgba(141, 166, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 56px rgba(0, 0, 0, 0.38);
}

.page-home-clean.theme-dark .demo-live,
.page-home-clean.theme-dark .demo-message-assistant .demo-role,
.page-home-clean.theme-dark .settings-item label,
.page-home-clean.theme-dark .home-footer-label {
  color: #8ee7ff;
}

.page-home-clean.theme-dark .demo-slide-btn {
  background: rgba(13, 22, 40, 0.9);
  border-color: rgba(143, 175, 224, 0.1);
}

.page-home-clean.theme-dark .demo-slide-btn:hover {
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 14px 26px rgba(6, 10, 20, 0.3);
}

.page-home-clean.theme-dark .demo-slide-btn.is-active {
  background: linear-gradient(180deg, rgba(22, 38, 72, 0.98), rgba(15, 28, 53, 0.96));
  border-color: rgba(96, 165, 250, 0.32);
  color: #f3f8ff;
  box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.08), 0 16px 28px rgba(4, 9, 18, 0.34);
}

.page-home-clean.theme-dark .demo-message-assistant {
  background: rgba(11, 21, 40, 0.92);
  border-color: rgba(143, 175, 224, 0.14);
  color: #deebff;
  box-shadow: 0 18px 30px rgba(4, 8, 18, 0.24);
}

.page-home-clean.theme-dark .demo-composer-box {
  background: rgba(10, 19, 35, 0.9);
  border-color: rgba(143, 175, 224, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-home-clean.theme-dark [data-demo-input] {
  color: #eef4ff;
}

.page-home-clean.theme-dark .demo-cursor {
  background: #8ee7ff;
}

.page-home-clean.theme-dark .home-badge {
  background: rgba(10, 34, 49, 0.72);
  color: #8ee7ff;
  border-color: rgba(34, 211, 238, 0.24);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.05), 0 12px 24px rgba(3, 12, 22, 0.24);
}

.page-home-clean.theme-dark .home-link-btn {
  background: rgba(11, 20, 37, 0.82);
  border-color: rgba(143, 175, 224, 0.14);
  color: #deebff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-home-clean.theme-dark .home-link-btn:hover {
  background: rgba(14, 25, 46, 0.94);
  border-color: rgba(34, 211, 238, 0.22);
}

.page-home-clean.theme-dark .home-link-btn-primary {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  color: #f8fbff;
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 18px 30px rgba(8, 145, 178, 0.16);
}

.page-home-clean.theme-dark .home-link-btn-primary:hover,
.page-home-clean.theme-dark .btn-primary:hover,
.page-home-clean.theme-dark .btn-store:hover {
  box-shadow: 0 20px 36px rgba(6, 182, 212, 0.18);
}

.page-home-clean.theme-dark .settings-panel {
  background: rgba(8, 14, 26, 0.96);
  border-color: rgba(143, 175, 224, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 40px rgba(0, 0, 0, 0.48);
}

.page-home-clean.theme-dark .settings-item select {
  background: rgba(11, 20, 37, 0.96);
  color: #eef4ff;
  border-color: rgba(143, 175, 224, 0.14);
}

.page-home-clean.theme-dark .btn-primary,
.page-home-clean.theme-dark .home-link-btn-primary,
.page-home-clean.theme-dark .demo-send-btn {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
}

.page-home-clean.theme-dark .btn-store {
  background: rgba(11, 20, 37, 0.82);
  border-color: rgba(143, 175, 224, 0.14);
  color: #deebff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px rgba(0, 0, 0, 0.22);
}

.page-home-clean.theme-dark .home-footer {
  background: linear-gradient(180deg, #040913 0%, #060d18 100%);
  border-color: rgba(143, 175, 224, 0.12);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.34);
}

.page-home-clean.theme-dark .home-footer::before {
  background:
    radial-gradient(circle at 10% 18%, rgba(34, 211, 238, 0.1), transparent 18%),
    radial-gradient(circle at 88% 24%, rgba(59, 130, 246, 0.12), transparent 20%),
    linear-gradient(rgba(96, 123, 166, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 123, 166, 0.06) 1px, transparent 1px);
}

.page-home-clean.theme-dark .home-footer-pill,
.page-home-clean.theme-dark .home-footer-social a {
  background: rgba(11, 20, 37, 0.84);
  border-color: rgba(143, 175, 224, 0.14);
  color: #deebff;
}

.page-home-clean.theme-dark .home-footer-pill:hover,
.page-home-clean.theme-dark .home-footer-social a:hover,
.page-home-clean.theme-dark .home-footer .footer-links a:hover,
.page-home-clean.theme-dark .home-footer-legal-links a:hover,
.page-home-clean.theme-dark .page-disclaimer a:hover {
  color: #8ee7ff;
  border-color: rgba(34, 211, 238, 0.22);
}

.page-home-clean.theme-dark .home-footer-bottom {
  border-top-color: rgba(143, 175, 224, 0.12);
}

.home-copyright {
  margin: 0;
  color: #4f6fbe;
  font-size: 0.88rem;
}

.page-disclaimer {
  margin: 0;
  color: #4f6fbe;
  font-size: 0.79rem;
  text-align: left;
}

.page-disclaimer a {
  color: #2f66f0;
  text-decoration: underline;
}

.page-home-clean.theme-dark .home-copyright,
.page-home-clean.theme-dark .page-disclaimer,
.page-home-clean.theme-dark .home-footer-intro p { color: #91a7d8; }

.page-home-clean.theme-dark .page-disclaimer a,
.page-home-clean.theme-dark .footer-links a,
.page-home-clean.theme-dark .home-footer-kicker { color: #8ee7ff; }

/* ask.html / web.html standalone disclaimer */
.standalone-disclaimer {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px 18px;
  color: #8a8078;
  font-size: 0.78rem;
}

.standalone-disclaimer a {
  color: #1d6a53;
  text-decoration: underline;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.home-footer .footer-links a {
  color: #4368b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
}

.home-footer .footer-links a:hover {
  color: #1f49ac;
  text-decoration: none;
}

@media (max-width: 980px) {
  .neural-network {
    opacity: 0.55;
  }

  .home-how-grid,
  .home-examples-grid {
    grid-template-columns: 1fr;
  }

  .home-footer-top {
    grid-template-columns: 1fr;
  }

  .home-footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-examples-marquee {
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  }

  .home-how-marquee {
    height: 332px;
  }

  .demo-slide-nav {
    grid-template-columns: 1fr;
  }

  .home-footer-groups {
    grid-template-columns: 1fr;
  }

  .home-footer-social a,
  .home-footer-pill {
    width: 100%;
  }

  .home-footer-legal {
    align-items: flex-start;
  }
}

.page-home-clean.theme-dark .home-footer-label { color: #93b4f7; }

@media (max-width: 900px) {
  .home-hero {
    padding: 40px 22px 34px;
  }

  .home-how-feed,
  .home-demo-shell,
  .example-card {
    padding: 20px 18px 18px;
  }

  .demo-message {
    max-width: 100%;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .settings-panel {
    right: auto;
    left: 0;
  }


@keyframes demo-live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.18);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.04);
    opacity: 0.72;
  }
}

@keyframes demo-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes how-feed-scroll {
  from {
    transform: translateY(-12px);
  }

  to {
    transform: translateY(calc(-12px - var(--how-feed-distance)));
  }
}

@keyframes example-track-scroll {
  from {
    transform: translateX(-12px);
  }

  to {
    transform: translateX(calc(-12px - var(--example-track-distance)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-how-feed-track {
    animation-duration: calc(var(--how-feed-duration) * 1.2);
  }
}
  .home-actions {
    flex-direction: column;
  }

  .home-actions .btn {
    width: min(380px, 92vw);
  }
}

@keyframes neural-data-flow {
  0% {
    left: -18%;
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  100% {
    left: 108%;
    opacity: 0;
  }
}

@keyframes neural-node-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(95, 147, 255, 0.1), 0 0 24px rgba(95, 147, 255, 0.22);
  }

  50% {
    transform: scale(1.16);
    box-shadow: 0 0 0 12px rgba(95, 147, 255, 0.14), 0 0 30px rgba(95, 147, 255, 0.32);
  }
}

@keyframes neural-halo {
  0% {
    transform: scale(0.72);
    opacity: 0.55;
  }

  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

/* /web redesigned chat (v2) */
.chat-shell-v2 {
  width: min(1280px, 97vw);
  margin: 10px auto;
  border-radius: 24px;
  border: 1px solid #d9e3ff;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(20, 41, 90, 0.07);
  grid-template-columns: 300px 1fr;
}

.chat-sidebar-v2 {
  background: linear-gradient(180deg, #f4f8ff 0%, #f7fffc 100%);
  border-right: 1px solid #dfe8ff;
}

.sidebar-head {
  display: grid;
  gap: 8px;
}

.chat-main-v2 {
  grid-template-rows: auto 1fr auto auto;
  background: #ffffff;
}

.chat-topbar-v2 {
  border-bottom: 1px solid #ebf0ff;
  padding-bottom: 16px;
}

.chat-topbar-v2 h1 {
  max-width: 900px;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

.chat-window-v2 {
  padding: 18px 30px 24px;
  background:
    radial-gradient(circle at 98% 0%, rgba(56, 189, 248, 0.08), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.08), transparent 30%),
    #ffffff;
}

.bubble {
  border-radius: 18px;
}

.bubble-user {
  background: linear-gradient(145deg, #0d6e5a 0%, #0f8265 100%);
}

.bubble-assistant {
  border-color: #d5e2ff;
  background: #ffffff;
}

.bubble-loading {
  border-style: dashed;
  color: #4c5e86;
  background: #f7faff;
}

.composer-v2 {
  margin: 0 22px;
  border: 1px solid #cfdcff;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 52, 113, 0.06);
}

.composer-v2 textarea {
  font-size: 1rem;
  min-height: 56px;
}

.composer-actions-v2 {
  grid-template-columns: 1.3fr 160px auto;
}

.composer-actions-v2 input {
  border: 1px solid #d3def7;
  background: #fbfdff;
}

.composer-actions-v2 input:focus,
.composer-v2 textarea:focus {
  outline: 2px solid #c7dafb;
  outline-offset: 1px;
}

.chat-main-v2 .btn-primary {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid #2458db;
  background: #2f66f0;
}

.chat-main-v2 .btn-primary:hover {
  background: #2458db;
}

@media (max-width: 960px) {
  .chat-shell-v2 {
    grid-template-columns: 1fr;
    margin: 6px;
    border-radius: 16px;
  }

  .chat-sidebar-v2 {
    border-right: 0;
    border-bottom: 1px solid #dfe8ff;
  }

  .composer-actions-v2 {
    grid-template-columns: 1fr;
  }
}

/* /web minimal dark chat */
.page-web-minimal {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 15% 0%, #111627 0%, #090c15 55%, #060910 100%);
  color: #f7f9ff;
  font-family: "Manrope", sans-serif;
}

.web-premium-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.web-premium-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.55;
  animation: webOrbFloat 18s ease-in-out infinite;
}

.web-premium-orb-a {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(32, 213, 255, 0.34) 0%, rgba(32, 213, 255, 0.05) 68%, transparent 100%);
}

.web-premium-orb-b {
  width: 360px;
  height: 360px;
  bottom: 80px;
  left: -100px;
  background: radial-gradient(circle, rgba(80, 255, 190, 0.26) 0%, rgba(80, 255, 190, 0.04) 70%, transparent 100%);
  animation-delay: -7s;
}

.web-premium-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(112, 146, 214, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 146, 214, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 78%);
  opacity: 0.2;
}

.web-minimal-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 18px 0 32px;
}

.web-minimal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.web-minimal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-usage-counter {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid rgba(122, 168, 255, 0.16);
  background: linear-gradient(145deg, rgba(15, 22, 41, 0.82), rgba(7, 12, 23, 0.74));
  box-shadow: 0 28px 60px rgba(3, 8, 20, 0.36);
  backdrop-filter: blur(16px);
}

.web-usage-counter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.web-premium-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 224, 255, 0.24);
  background: rgba(15, 39, 64, 0.76);
  color: #dcf8ff;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(40, 218, 255, 0.08), 0 0 24px rgba(25, 184, 255, 0.12);
  animation: premiumPulse 3.2s ease-in-out infinite;
}

.web-header-upgrade,
.web-paywall-primary,
.web-sticky-upgrade,
.web-plan-select {
  border: 0;
  color: #04131f;
  background: linear-gradient(135deg, #34e3ff 0%, #7cf5ff 38%, #49ffbe 100%);
  box-shadow: 0 18px 36px rgba(38, 214, 255, 0.24);
}

.web-header-upgrade {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.web-header-upgrade:hover,
.web-sticky-upgrade:hover,
.web-paywall-primary:hover,
.web-plan-select:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(38, 214, 255, 0.3);
}

.web-usage-counter-body {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
}

.web-usage-copy {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #f4fbff;
}

.web-usage-detail {
  margin: 8px 0 0;
  color: #9db1d9;
  line-height: 1.55;
}

.web-trial-info {
  margin: 10px 0 0;
  color: #8fd8ff;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.web-trial-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 177, 90, 0.42);
  background: rgba(255, 176, 62, 0.14);
  color: #ffdcb0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.web-usage-meter {
  display: grid;
  gap: 10px;
  align-self: end;
}

.web-usage-progress-label {
  color: #bcd7ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.web-usage-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.web-usage-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34e3ff 0%, #7cf5ff 42%, #49ffbe 100%);
  transition: width 0.28s ease;
}

.web-usage-counter.is-premium {
  border-color: rgba(80, 255, 190, 0.24);
  box-shadow: 0 28px 60px rgba(3, 8, 20, 0.42), 0 0 0 1px rgba(80, 255, 190, 0.08);
}

.web-usage-counter.is-premium .web-usage-progress-fill {
  background: linear-gradient(90deg, #61ffb7 0%, #8cffe0 40%, #8cf7ff 100%);
}

.web-usage-counter.is-locked {
  border-color: rgba(80, 255, 190, 0.34);
}

.web-chat-surface {
  display: grid;
  gap: 18px;
  padding-bottom: 132px;
  transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.web-chat-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.web-chat-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.web-medication-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(122, 168, 255, 0.16);
  background: linear-gradient(160deg, rgba(14, 22, 40, 0.88), rgba(7, 12, 23, 0.8));
  box-shadow: 0 28px 56px rgba(3, 8, 20, 0.34);
  backdrop-filter: blur(16px);
}

.web-medication-panel-inline {
  position: relative;
  top: auto;
  margin-bottom: 16px;
}

.web-medication-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.web-medication-panel-kicker {
  margin: 0 0 8px;
  color: #88d5ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.web-medication-panel-head strong {
  color: #f7fbff;
  font-size: 1.15rem;
  line-height: 1.2;
}

.web-medication-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #d3e3fb;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-medication-status-pill.is-active {
  border-color: rgba(80, 255, 190, 0.22);
  background: rgba(80, 255, 190, 0.12);
  color: #ddfff3;
}

.web-medication-panel-copy {
  margin: 0;
  color: #adc2e6;
  font-size: 0.94rem;
  line-height: 1.65;
}

.web-medication-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.web-medication-stat-card,
.web-medication-list-item,
.web-medication-list-empty {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.web-medication-stat-card {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.web-medication-stat-label,
.web-medication-section-label {
  color: #90a9d2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-medication-stat-card strong {
  color: #f8fbff;
  font-size: 1.6rem;
  line-height: 1;
}

.web-medication-empty-state {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(122, 168, 255, 0.24);
  background: rgba(9, 21, 40, 0.44);
  color: #c0d2ef;
  line-height: 1.6;
}

.web-medication-content {
  display: grid;
  gap: 14px;
}

.web-medication-section {
  display: grid;
  gap: 8px;
}

.web-medication-list {
  display: grid;
  gap: 8px;
}

.web-medication-list-item,
.web-medication-list-empty {
  padding: 12px 14px;
  color: #eff5ff;
  line-height: 1.55;
}

.web-medication-list-empty {
  color: #9eb4d8;
}

.web-medication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.web-medication-primary,
.web-medication-secondary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.web-medication-primary {
  border: 0;
  color: #04131f;
  background: linear-gradient(135deg, #34e3ff 0%, #7cf5ff 38%, #49ffbe 100%);
  box-shadow: 0 18px 36px rgba(38, 214, 255, 0.24);
}

.web-medication-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #edf5ff;
}

.web-medication-primary:hover,
.web-medication-secondary:hover {
  transform: translateY(-1px);
}

.web-medication-secondary:hover {
  border-color: rgba(143, 176, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.page-web-minimal.paywall-locked .web-chat-surface {
  filter: blur(11px) saturate(0.85);
  transform: scale(0.985);
  opacity: 0.82;
  pointer-events: none;
  user-select: none;
}

.web-minimal-nav-link,
.web-minimal-theme-toggle {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f9ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.web-minimal-theme-toggle {
  width: 38px;
  padding: 0;
  cursor: pointer;
}

.web-minimal-theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.web-minimal-nav-link:hover,
.web-minimal-theme-toggle:hover {
  border-color: rgba(143, 176, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.web-minimal-logo-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.web-minimal-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.web-minimal-hero {
  display: grid;
  place-items: center;
  align-self: end;
  gap: 12px;
  text-align: center;
}

.web-minimal-eyebrow {
  margin: 0;
  color: #72f2ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.web-minimal-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3f6ff;
}

.web-minimal-subtitle {
  max-width: 700px;
  margin: 0;
  color: #a7badf;
  font-size: 1rem;
  line-height: 1.7;
}

.web-minimal-title-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.web-minimal-chat-window {
  align-self: start;
  display: grid;
  gap: 12px;
  margin: 24px auto 0;
  padding-bottom: 12px;
  width: min(820px, 100%);
  position: relative;
}

.web-minimal-composer {
  width: min(820px, 100%);
  margin: 20px auto 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  padding: 14px 14px 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  position: sticky;
  bottom: 18px;
  z-index: 8;
}

.web-minimal-composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f7ff;
  font: inherit;
  font-size: 1.02rem;
  min-height: 34px;
  line-height: 1.5;
}

.web-minimal-composer textarea::placeholder {
  color: #a5adbf;
}

.web-attachment-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.web-attachment-list[hidden] {
  display: none;
}

.web-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 168, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf5ff;
  text-decoration: none;
}

.web-attachment-chip-type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(80, 255, 190, 0.12);
  border: 1px solid rgba(80, 255, 190, 0.18);
  color: #c8ffea;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.web-attachment-chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
}

.web-attachment-feedback {
  margin: 10px 0 0;
  color: #9fb5d9;
  font-size: 0.82rem;
  line-height: 1.5;
}

.web-minimal-composer-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.web-attachment-controls {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.web-attachment-trigger {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e6f4ff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.web-attachment-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 227, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.web-attachment-trigger[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.web-attachment-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


.web-minimal-send {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(140deg, #34dfff 0%, #53baff 48%, #50ffb8 100%);
  color: #03121b;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(45, 159, 255, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.web-minimal-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(45, 159, 255, 0.34);
}

.web-minimal-send[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.web-minimal-chat-window .bubble {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf0ff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.web-minimal-chat-window .bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.web-minimal-chat-window .bubble-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.web-minimal-chat-window .bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(52, 223, 255, 0.94), rgba(80, 255, 184, 0.9));
  color: #03121b;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(44, 182, 255, 0.24);
  overflow: hidden;
}

.web-minimal-chat-window .bubble-avatar-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.web-minimal-chat-window .bubble-avatar-user {
  background: linear-gradient(135deg, rgba(144, 164, 255, 0.95), rgba(92, 118, 255, 0.92));
  color: #f5f8ff;
  box-shadow: 0 10px 20px rgba(76, 97, 214, 0.24);
}

.web-minimal-chat-window .bubble-label {
  color: #f7fbff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.web-minimal-chat-window .bubble-time {
  color: #9aaed7;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: lowercase;
  white-space: nowrap;
}

.web-minimal-chat-window .bubble-text {
  white-space: pre-wrap;
}

.web-minimal-chat-window .bubble-user {
  margin-left: auto;
  background: rgba(61, 95, 216, 0.28);
  border-color: rgba(143, 176, 255, 0.4);
}

.web-minimal-chat-window .bubble-meta {
  color: #a8b5d7;
}

.web-minimal-chat-window .bubble-typing {
  border-style: dashed;
  opacity: 0.95;
}

.web-minimal-chat-window .bubble-typing .bubble-avatar {
  animation: bubblePresencePulse 1.3s ease-in-out infinite;
}

.web-minimal-chat-window .bubble-typing .bubble-text::after {
  content: ' ...';
  display: inline-block;
  color: #8fe6ff;
  letter-spacing: 0.18em;
  animation: bubbleDotsPulse 1s ease-in-out infinite;
}

.web-minimal-chat-window .bubble-lock {
  border-color: rgba(80, 255, 190, 0.28);
  background: rgba(32, 69, 60, 0.28);
}

.web-sticky-upgrade {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 980;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.web-sticky-upgrade[hidden] {
  display: none;
}

.web-paywall-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 10, 20, 0.58);
  backdrop-filter: blur(18px);
}

.web-paywall-backdrop[hidden],
.web-paywall-modal[hidden] {
  display: none;
}

.web-paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: grid;
  place-items: center;
  padding: 26px;
}

.web-paywall-shell {
  width: min(1080px, 100%);
  max-height: calc(100vh - 52px);
  overflow: auto;
  position: relative;
  border-radius: 32px;
  border: 1px solid rgba(111, 168, 255, 0.18);
  background: linear-gradient(160deg, rgba(8, 14, 27, 0.95), rgba(9, 16, 31, 0.92));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  padding: 28px;
  animation: webPaywallIn 0.3s ease;
}

.web-paywall-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e8f5ff;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.web-paywall-copy {
  max-width: 660px;
}

.web-paywall-trust-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.web-paywall-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e7ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.web-paywall-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(80, 255, 190, 0.3);
  background: rgba(17, 50, 56, 0.72);
  color: #d8fff0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(80, 255, 190, 0.14);
}

.web-paywall-copy h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.web-paywall-subtitle {
  margin: 14px 0 0;
  color: #b9c8e6;
  font-size: 1rem;
  line-height: 1.7;
}

.web-paywall-content {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.web-pricing-panel {
  border-radius: 24px;
  border: 1px solid rgba(111, 168, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.web-pricing-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(111, 168, 255, 0.12);
  background: linear-gradient(160deg, rgba(12, 22, 44, 0.82), rgba(10, 17, 29, 0.9));
}

.web-pricing-summary-kicker {
  margin: 0 0 8px;
  color: #88d5ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.web-pricing-summary strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.15;
  color: #f8fbff;
}

.web-pricing-summary-copy {
  margin: 10px 0 0;
  color: #abc0e5;
  line-height: 1.6;
}

.web-pricing-summary-amount-block {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.web-pricing-summary-amount-block strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.web-pricing-summary-amount-block span {
  color: #9fb5d9;
  font-size: 0.9rem;
  font-weight: 700;
}

.web-pricing-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.web-pricing-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(80, 255, 190, 0.1);
  border: 1px solid rgba(80, 255, 190, 0.18);
  color: #d9fff1;
  font-size: 0.82rem;
  font-weight: 700;
}

.web-pricing-summary-pill-muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #c4d4ed;
}

.web-billing-toggle {
  width: fit-content;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.web-billing-option {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #c5d7f8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.web-billing-option.is-active {
  background: linear-gradient(135deg, rgba(42, 187, 255, 0.32), rgba(74, 255, 190, 0.24));
  color: #f7fcff;
}

.web-plan-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.web-addon-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(111, 168, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(74, 255, 190, 0.12), transparent 30%),
    linear-gradient(160deg, rgba(10, 18, 34, 0.92), rgba(7, 13, 25, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 40px rgba(6, 12, 28, 0.28);
}

.web-addon-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.web-addon-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.web-addon-panel-kicker {
  margin: 0 0 8px;
  color: #88d5ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.web-addon-panel-head strong {
  display: block;
  font-size: 1.08rem;
  color: #f8fbff;
}

.web-addon-selection-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(42, 187, 255, 0.26), rgba(74, 255, 190, 0.2));
  border: 1px solid rgba(55, 224, 255, 0.24);
  color: #f1fbff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(18, 54, 96, 0.24);
}

.web-addon-panel-copy {
  margin: 12px 0 0;
  color: #a9b9d8;
  line-height: 1.6;
}

.web-addon-toggle {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #dff6ff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.web-addon-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 198, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.web-addon-panel.is-collapsed {
  padding-bottom: 18px;
}

.web-addon-panel.is-collapsed .web-addon-groups {
  display: none;
}

.web-addon-groups {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.web-addon-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(17, 28, 49, 0.82), rgba(9, 15, 28, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.web-addon-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.web-addon-group-title {
  margin: 0;
  color: #f7fcff;
  font-size: 0.92rem;
  font-weight: 800;
}

.web-addon-group-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #a8c8ff;
  font-size: 0.76rem;
  font-weight: 700;
}

.web-addon-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.web-addon-button {
  min-height: 126px;
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: #dcecff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.web-addon-button:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 198, 255, 0.34);
  box-shadow: 0 16px 24px rgba(7, 19, 39, 0.26);
}

.web-addon-button.is-selected {
  border-color: rgba(52, 227, 255, 0.56);
  background: linear-gradient(135deg, rgba(42, 187, 255, 0.24), rgba(74, 255, 190, 0.2));
  color: #f7fcff;
  box-shadow: 0 0 0 1px rgba(52, 227, 255, 0.16), 0 20px 28px rgba(14, 43, 78, 0.28);
}

.web-addon-button-top,
.web-addon-button-bottom,
.web-addon-button-copy,
.web-addon-button-side,
.web-addon-button-title-row {
  display: flex;
}

.web-addon-button-top,
.web-addon-button-bottom {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.web-addon-button-copy {
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.web-addon-button-title-row {
  align-items: center;
  gap: 12px;
}

.web-addon-button-side {
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.web-addon-button-icon,
.web-addon-button-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.web-addon-button-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 227, 255, 0.2), rgba(103, 123, 255, 0.16));
  border: 1px solid rgba(52, 227, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.web-addon-button-icon svg,
.web-addon-button-check svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.web-addon-button-icon svg {
  color: #dff8ff;
}

.web-addon-button-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(223, 248, 255, 0.42);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.web-addon-button.is-selected .web-addon-button-check {
  background: linear-gradient(135deg, rgba(42, 187, 255, 0.94), rgba(74, 255, 190, 0.82));
  border-color: rgba(255, 255, 255, 0.18);
  color: #04111d;
  transform: scale(1.04);
}

.web-addon-button.is-selected .web-addon-button-icon {
  background: linear-gradient(135deg, rgba(42, 187, 255, 0.3), rgba(74, 255, 190, 0.24));
  border-color: rgba(52, 227, 255, 0.28);
}

.web-addon-button-label {
  color: #f6fbff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.4;
}

.web-addon-button-description {
  color: #a9b9d8;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
}

.web-addon-button-badge,
.web-addon-button-category,
.web-addon-button-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.web-addon-button-badge {
  background: rgba(80, 255, 190, 0.12);
  color: #bfffe3;
  border: 1px solid rgba(80, 255, 190, 0.2);
}

.web-addon-button-category {
  background: rgba(143, 176, 255, 0.12);
  color: #dce9ff;
  border: 1px solid rgba(143, 176, 255, 0.14);
}

.web-addon-button-state {
  background: rgba(255, 255, 255, 0.06);
  color: #a9b9d8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.web-addon-button.is-selected .web-addon-button-state {
  background: rgba(255, 255, 255, 0.14);
  color: #f7fcff;
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1180px) {
  .web-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.web-plan-card {
  min-height: 100%;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(13, 22, 42, 0.74), rgba(8, 14, 24, 0.92));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.web-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 198, 255, 0.34);
  box-shadow: 0 18px 30px rgba(10, 20, 40, 0.28);
}

.web-plan-card.is-selected {
  border-color: rgba(52, 227, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(52, 227, 255, 0.18), 0 24px 36px rgba(20, 71, 128, 0.32);
}

.web-plan-card.is-active {
  border-color: rgba(80, 255, 190, 0.56);
}

.web-plan-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.web-plan-kicker {
  margin: 0;
  color: #87cfff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.web-plan-card h3 {
  margin: 4px 0 0;
  font-size: 1.36rem;
  line-height: 1.15;
}

.web-plan-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(55, 224, 255, 0.12);
  color: #c8f8ff;
  font-size: 0.72rem;
  font-weight: 800;
}

.web-plan-summary {
  margin: 0;
  color: #a9b9d8;
  line-height: 1.6;
}

.web-plan-price {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f7fcff;
}

.web-plan-price-note {
  margin: -6px 0 0;
  color: #90e6c3;
  font-size: 0.86rem;
  line-height: 1.5;
}

.web-plan-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.web-plan-feature-list li {
  position: relative;
  padding-left: 18px;
  color: #c4d3ef;
  line-height: 1.5;
}

.web-plan-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34dfff, #49ffbe);
}

.web-plan-select {
  min-height: 44px;
  width: 100%;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.web-plan-card.is-active .web-plan-select {
  opacity: 0.72;
}

.web-paywall-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.web-paywall-secondary,
.web-paywall-tertiary {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #edf7ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.web-paywall-primary {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.web-paywall-feedback {
  margin: 14px 0 0;
  min-height: 24px;
  color: #9fe7ff;
  line-height: 1.5;
}

.web-paywall-legal {
  margin: 10px 0 0;
  color: #92a7cb;
  font-size: 0.9rem;
  line-height: 1.6;
}

.web-paywall-legal a {
  color: #dff7ff;
}

.web-user-dock {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 960;
  display: flex;
  width: min(92vw, 430px);
  height: 100vh;
  padding: 0 18px 0 20px;
  border-radius: 0 28px 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 22, 0.92);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  overflow: visible;
  transform: translateX(calc(-100% + 58px));
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.web-user-dock.is-expanded {
  transform: translateX(0);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
}

.web-user-dock[hidden] {
  display: none;
}

.web-user-drawer-toggle {
  position: absolute;
  top: 50%;
  right: -58px;
  width: 58px;
  min-height: 170px;
  padding: 16px 0;
  border: 1px solid rgba(150, 186, 255, 0.24);
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(180deg, rgba(65, 113, 224, 0.96), rgba(25, 49, 108, 0.92));
  color: #f7fbff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.web-user-drawer-scroll {
  width: 100%;
  display: grid;
  gap: 18px;
  height: 100%;
  overflow-y: auto;
  padding: 88px 4px 22px 0;
  padding-right: 4px;
}

.web-user-drawer-top {
  display: grid;
  gap: 16px;
}

.web-user-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.web-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(143, 176, 255, 0.45);
}

.web-user-avatar[hidden] {
  display: none;
}

.web-user-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.web-user-meta strong {
  color: #f4f7ff;
  line-height: 1.3;
}

.web-user-email {
  color: #aab7d9;
  font-size: 0.82rem;
  line-height: 1.3;
}

.web-user-provider {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(143, 176, 255, 0.14);
  color: #dbe6ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-user-health-summary {
  color: #96b5ef;
  font-size: 0.78rem;
  line-height: 1.35;
}

.web-user-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.web-health-panel {
  position: relative;
  z-index: auto;
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(143, 176, 255, 0.2);
  background: rgba(15, 22, 38, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.web-health-panel[hidden] {
  display: none;
}

.web-health-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.web-health-panel-kicker {
  margin: 0 0 6px;
  color: #8db6ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.web-health-panel-copy {
  margin: 8px 0 0;
  color: #9caed5;
  font-size: 0.88rem;
  line-height: 1.55;
}

.web-health-panel-close {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #f4f7ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.web-health-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.web-health-document-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(143, 176, 255, 0.14);
  background: linear-gradient(160deg, rgba(16, 25, 44, 0.88), rgba(10, 16, 30, 0.94));
}

.web-health-document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.web-health-document-copy {
  margin: 8px 0 0;
  color: #9fb5d9;
  font-size: 0.86rem;
  line-height: 1.6;
}

.web-health-document-empty {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(143, 176, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #a7bddf;
  font-size: 0.86rem;
}

.web-health-document-list {
  display: grid;
  gap: 12px;
}

.web-health-document-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.web-health-document-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.web-health-document-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(80, 255, 190, 0.12);
  border: 1px solid rgba(80, 255, 190, 0.18);
  color: #d6fff1;
  font-size: 0.74rem;
  font-weight: 800;
}

.web-health-document-link {
  display: block;
  margin-top: 10px;
  color: #f4f9ff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.web-health-document-link:hover {
  text-decoration: underline;
}

.web-health-document-meta,
.web-health-document-excerpt {
  margin: 0;
}

.web-health-document-meta {
  color: #9fb5d9;
  font-size: 0.8rem;
  line-height: 1.5;
}

.web-health-document-excerpt {
  color: #dce9ff;
  font-size: 0.84rem;
  line-height: 1.6;
}

.web-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.web-health-field {
  display: grid;
  gap: 8px;
}

.web-health-field[hidden],
.web-health-field-full[hidden] {
  display: none;
}

.web-health-field-full {
  grid-column: 1 / -1;
}

.web-health-section {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(164, 196, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 49, 87, 0.7), rgba(9, 20, 42, 0.9));
}

.web-health-section-title {
  color: #f3f7ff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.web-health-section-copy {
  margin: 0;
  color: rgba(220, 231, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.55;
}

.web-health-field span,
.web-health-memory-label {
  color: #dce7ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.web-health-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-health-option {
  position: relative;
  display: inline-flex;
}

.web-health-option-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.web-health-option-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 176, 240, 0.18);
  background: rgba(16, 23, 38, 0.92);
  color: #dbe6ff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.web-health-option-input:checked + .web-health-option-chip {
  border-color: rgba(116, 174, 255, 0.68);
  background: rgba(58, 101, 197, 0.26);
  color: #f7fbff;
  transform: translateY(-1px);
}

.web-health-input,
.web-health-select,
.web-health-textarea {
  width: 100%;
  border: 1px solid rgba(148, 176, 240, 0.18);
  border-radius: 16px;
  background: rgba(16, 23, 38, 0.92);
  color: #f6f9ff;
  font: inherit;
  padding: 12px 14px;
}

.web-health-textarea {
  resize: vertical;
  min-height: 84px;
}

.web-health-input:focus,
.web-health-select:focus,
.web-health-textarea:focus {
  outline: none;
  border-color: rgba(112, 163, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(87, 142, 255, 0.16);
}

.web-health-memory-block {
  display: grid;
  gap: 10px;
}

.web-health-memory-list {
  display: grid;
  gap: 8px;
}

.web-health-memory-item,
.web-health-memory-empty {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe6ff;
  font-size: 0.84rem;
  line-height: 1.5;
}

.web-health-memory-time {
  display: block;
  margin-top: 4px;
  color: #8ea3d2;
  font-size: 0.74rem;
}

.web-data-control-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(143, 176, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.web-data-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.web-data-control-copy,
.web-data-control-summary {
  margin: 6px 0 0;
  color: #9caed5;
  font-size: 0.82rem;
  line-height: 1.5;
}

.web-data-control-summary {
  margin: 0;
}

.web-chat-history-list {
  display: grid;
  gap: 8px;
}

.web-chat-history-item {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(148, 176, 240, 0.14);
  background: rgba(16, 23, 38, 0.82);
  color: #f4f7ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.web-chat-history-item:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 163, 255, 0.38);
}

.web-chat-history-item.is-active {
  border-color: rgba(112, 163, 255, 0.62);
  background: rgba(58, 101, 197, 0.18);
}

.web-chat-history-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.web-chat-history-title {
  color: #f6f9ff;
  font-size: 0.86rem;
  line-height: 1.35;
}

.web-chat-history-time {
  flex-shrink: 0;
  color: #8ea3d2;
  font-size: 0.72rem;
}

.web-chat-history-preview,
.web-chat-history-empty {
  color: #c9d8f6;
  font-size: 0.8rem;
  line-height: 1.45;
}

.web-chat-history-empty {
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(16, 23, 38, 0.82);
}

.web-data-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.web-data-control-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #f4f7ff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.web-data-control-secondary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.web-data-control-danger {
  border-color: rgba(255, 123, 123, 0.24);
  color: #ffc7c7;
}

.web-health-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.web-health-feedback {
  margin: 0;
  color: #9fc3ff;
  font-size: 0.84rem;
  line-height: 1.45;
}

.web-user-action,
.web-user-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4f7ff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
}

.web-user-action:hover,
.web-user-logout:hover {
  border-color: rgba(143, 176, 255, 0.46);
  background: rgba(143, 176, 255, 0.08);
}

.web-user-action[hidden] {
  display: none;
}

.web-user-logout {
  cursor: pointer;
}

.page-web-minimal.theme-light .web-premium-grid {
  opacity: 0.1;
}

.page-web-minimal.theme-light .web-usage-counter,
.page-web-minimal.theme-light .web-paywall-shell,
.page-web-minimal.theme-light .web-pricing-panel,
.page-web-minimal.theme-light .web-plan-card,
.page-web-minimal.theme-light .web-paywall-features li {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(26, 50, 94, 0.12);
  box-shadow: 0 18px 36px rgba(42, 91, 190, 0.1);
}

.page-web-minimal.theme-light .web-premium-chip,
.page-web-minimal.theme-light .web-paywall-badge {
  background: rgba(219, 247, 255, 0.9);
  color: #194466;
  border-color: rgba(52, 227, 255, 0.26);
}

.page-web-minimal.theme-light .web-paywall-trust-strip span,
.page-web-minimal.theme-light .web-pricing-summary-pill-muted,
.page-web-minimal.theme-light .web-addon-panel,
.page-web-minimal.theme-light .web-addon-button {
  background: rgba(245, 248, 255, 0.94);
  border-color: rgba(21, 48, 90, 0.12);
  color: #28466f;
}

.page-web-minimal.theme-light .web-usage-copy,
.page-web-minimal.theme-light .web-plan-card h3,
.page-web-minimal.theme-light .web-paywall-copy h2,
.page-web-minimal.theme-light .web-plan-price,
.page-web-minimal.theme-light .web-pricing-summary strong {
  color: #15305a;
}

.page-web-minimal.theme-light .web-usage-detail,
.page-web-minimal.theme-light .web-minimal-subtitle,
.page-web-minimal.theme-light .web-plan-summary,
.page-web-minimal.theme-light .web-plan-price-note,
.page-web-minimal.theme-light .web-addon-panel-copy,
.page-web-minimal.theme-light .web-paywall-subtitle,
.page-web-minimal.theme-light .web-pricing-summary-copy,
.page-web-minimal.theme-light .web-pricing-summary-amount-block span,
.page-web-minimal.theme-light .web-plan-feature-list li,
.page-web-minimal.theme-light .web-paywall-features li,
.page-web-minimal.theme-light .web-paywall-feedback,
.page-web-minimal.theme-light .web-paywall-legal {
  color: #536b96;
}

.page-web-minimal.theme-light .web-pricing-summary {
  background: linear-gradient(160deg, rgba(239, 247, 255, 0.96), rgba(247, 250, 255, 0.98));
  border-color: rgba(52, 140, 219, 0.12);
}

.page-web-minimal.theme-light .web-trial-info {
  color: #275f95;
}

.page-web-minimal.theme-light .web-trial-warning {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(255, 243, 218, 0.9);
  color: #8a4f00;
}

.page-web-minimal.theme-light .web-pricing-summary-pill {
  background: rgba(56, 205, 156, 0.12);
  border-color: rgba(56, 205, 156, 0.18);
  color: #1a5f52;
}

.page-web-minimal.theme-light .web-addon-group-title,
.page-web-minimal.theme-light .web-addon-panel-head strong,
.page-web-minimal.theme-light .web-addon-button-label {
  color: #15305a;
}

.page-web-minimal.theme-light .web-addon-button-icon {
  background: linear-gradient(135deg, rgba(219, 247, 255, 0.98), rgba(236, 242, 255, 0.94));
  border-color: rgba(52, 140, 219, 0.18);
}

.page-web-minimal.theme-light .web-addon-button-icon svg {
  color: #1c5376;
}

.page-web-minimal.theme-light .web-addon-button-check {
  background: rgba(240, 246, 255, 0.98);
  border-color: rgba(52, 140, 219, 0.12);
  color: rgba(28, 83, 118, 0.34);
}

.page-web-minimal.theme-light .web-addon-button.is-selected .web-addon-button-check {
  color: #ffffff;
}

.page-web-minimal.theme-light .web-addon-group,
.page-web-minimal.theme-light .web-addon-button-state,
.page-web-minimal.theme-light .web-addon-group-count {
  background: linear-gradient(160deg, rgba(247, 250, 255, 0.98), rgba(240, 246, 255, 0.94));
  border-color: rgba(21, 48, 90, 0.1);
}

.page-web-minimal.theme-light .web-addon-button.is-selected {
  border-color: rgba(52, 140, 219, 0.28);
  background: linear-gradient(135deg, rgba(219, 247, 255, 0.98), rgba(233, 255, 246, 0.96));
}

.page-web-minimal.theme-light .web-minimal-chat-window .bubble-label {
  color: #15305a;
}

.page-web-minimal.theme-light .web-minimal-chat-window .bubble-time {
  color: #6882ad;
}

.page-web-minimal.theme-light .web-addon-toggle {
  background: rgba(240, 246, 255, 0.98);
  border-color: rgba(21, 48, 90, 0.1);
  color: #275f95;
}

.page-web-minimal.theme-light .web-addon-toggle:hover {
  border-color: rgba(52, 140, 219, 0.22);
  background: rgba(232, 243, 255, 0.98);
}

.page-web-minimal.theme-light .web-medication-panel,
.page-web-minimal.theme-light .web-medication-stat-card,
.page-web-minimal.theme-light .web-medication-list-item,
.page-web-minimal.theme-light .web-medication-list-empty {
  background: rgba(245, 248, 255, 0.94);
  border-color: rgba(21, 48, 90, 0.12);
}

.page-web-minimal.theme-light .web-medication-panel-head strong {
  color: #15305a;
}

.page-web-minimal.theme-light .web-medication-panel-copy,
.page-web-minimal.theme-light .web-medication-empty-state,
.page-web-minimal.theme-light .web-medication-list-empty,
.page-web-minimal.theme-light .web-medication-stat-label,
.page-web-minimal.theme-light .web-medication-section-label {
  color: #60718d;
}

.page-web-minimal.theme-light .web-attachment-feedback,
.page-web-minimal.theme-light .web-health-document-copy,
.page-web-minimal.theme-light .web-health-document-meta {
  color: #60718d;
}

.page-web-minimal.theme-light .web-attachment-chip,
.page-web-minimal.theme-light .web-attachment-trigger,
.page-web-minimal.theme-light .web-health-document-block,
.page-web-minimal.theme-light .web-health-document-item,
.page-web-minimal.theme-light .web-health-document-empty {
  background: rgba(245, 248, 255, 0.94);
  border-color: rgba(21, 48, 90, 0.12);
  color: #233752;
}

.page-web-minimal.theme-light .web-attachment-chip-type,
.page-web-minimal.theme-light .web-health-document-type {
  background: rgba(56, 167, 129, 0.12);
  border-color: rgba(56, 167, 129, 0.18);
  color: #1d6b52;
}

.page-web-minimal.theme-light .web-health-document-link {
  color: #15305a;
}

.page-web-minimal.theme-light .web-health-document-excerpt {
  color: #2f4566;
}

.page-web-minimal.theme-light .web-medication-status-pill {
  border-color: rgba(47, 77, 125, 0.12);
  background: rgba(16, 33, 59, 0.05);
  color: #446080;
}

.page-web-minimal.theme-light .web-medication-status-pill.is-active {
  border-color: rgba(56, 167, 129, 0.22);
  background: rgba(56, 167, 129, 0.12);
  color: #1d6b52;
}

.page-web-minimal.theme-light .web-medication-stat-card strong,
.page-web-minimal.theme-light .web-medication-list-item,
.page-web-minimal.theme-light .web-medication-secondary {
  color: #233752;
}

.page-web-minimal.theme-light .web-medication-empty-state {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(21, 48, 90, 0.14);
}

.page-web-minimal.theme-light .web-medication-secondary {
  border-color: rgba(47, 77, 125, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.page-web-minimal.theme-light .web-medication-secondary:hover {
  border-color: rgba(47, 77, 125, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

@keyframes bubblePresencePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(44, 182, 255, 0.24);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 14px 28px rgba(44, 182, 255, 0.34);
  }
}

@keyframes bubbleDotsPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.page-web-minimal.theme-light .web-addon-button-price,
.page-web-minimal.theme-light .web-addon-selection-pill {
  color: #1a5f52;
}

.page-web-minimal.theme-light .web-addon-button-description,
.page-web-minimal.theme-light .web-addon-button-state,
.page-web-minimal.theme-light .web-addon-group-count {
  color: #536b96;
}

.page-web-minimal.theme-light .web-addon-button-badge {
  color: #1a5f52;
  border-color: rgba(56, 205, 156, 0.22);
}

.page-web-minimal.theme-light .web-addon-button-category {
  color: #28466f;
}

.page-web-minimal.theme-light .web-paywall-legal a {
  color: #15305a;
}

.page-web-minimal.theme-light .web-paywall-backdrop {
  background: rgba(222, 233, 251, 0.62);
}

.page-web-minimal.theme-light .web-billing-toggle,
.page-web-minimal.theme-light .web-paywall-secondary,
.page-web-minimal.theme-light .web-paywall-tertiary,
.page-web-minimal.theme-light .web-paywall-close {
  background: rgba(245, 248, 255, 0.94);
  border-color: rgba(21, 48, 90, 0.12);
  color: #18355f;
}

.page-web-minimal.theme-light .web-usage-progress-track {
  background: rgba(85, 122, 191, 0.1);
  border-color: rgba(85, 122, 191, 0.1);
}

.page-web-minimal.theme-light .web-sticky-upgrade {
  box-shadow: 0 18px 30px rgba(37, 151, 224, 0.22);
}

@keyframes webOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 18px, 0) scale(1.08);
  }
}

@keyframes premiumPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(40, 218, 255, 0.08), 0 0 24px rgba(25, 184, 255, 0.12);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(80, 255, 190, 0.14), 0 0 32px rgba(80, 255, 190, 0.18);
  }
}

@keyframes webPaywallIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .web-chat-layout {
    grid-template-columns: 1fr;
  }

  .web-medication-panel {
    position: relative;
    top: auto;
    width: min(820px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .web-chat-surface {
    padding-bottom: 196px;
  }

  .web-user-dock {
    top: auto;
    right: 8px;
    left: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    max-height: min(72vh, 640px);
    padding: 0 14px 10px;
    border-radius: 24px;
    transform: translateY(calc(100% - 60px));
  }

  .web-user-dock.is-expanded {
    transform: translateY(0);
  }

  .web-user-drawer-toggle {
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    min-height: 60px;
    padding: 0 18px;
    border-left: 1px solid rgba(150, 186, 255, 0.24);
    border-radius: 24px 24px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.08em;
  }

  .web-user-drawer-scroll {
    height: auto;
    max-height: calc(min(72vh, 640px) - 18px);
    padding-top: 78px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  .web-minimal-shell {
    width: min(980px, 95vw);
  }

  .web-minimal-top {
    flex-wrap: wrap;
  }

  .web-minimal-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .web-usage-counter {
    padding: 16px;
  }

  .web-usage-counter-head,
  .web-usage-counter-body,
  .web-paywall-content {
    grid-template-columns: 1fr;
  }

  .web-usage-counter-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .web-plan-grid {
    grid-template-columns: 1fr;
  }

  .web-pricing-summary {
    flex-direction: column;
  }

  .web-pricing-summary-amount-block {
    justify-items: start;
    text-align: left;
  }

  .web-addon-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .web-addon-group-head,
  .web-addon-button-top,
  .web-addon-button-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .web-addon-button-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .web-addon-card-grid {
    grid-template-columns: 1fr;
  }

  .web-paywall-shell {
    padding: 22px 18px 20px;
  }

  .web-paywall-actions {
    flex-direction: column;
  }

  .web-paywall-primary,
  .web-paywall-secondary,
  .web-paywall-tertiary {
    width: 100%;
  }

  .web-medication-panel-head,
  .web-medication-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .web-medication-stat-grid {
    grid-template-columns: 1fr;
  }

  .web-minimal-composer {
    border-radius: 18px;
    padding: 12px;
    bottom: 12px;
  }

  .web-minimal-composer-footer {
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
  }

  .web-attachment-controls {
    justify-content: flex-end;
  }

  .web-minimal-send {
    align-self: auto;
  }

  .web-health-document-item-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .web-minimal-title {
    text-align: center;
    justify-content: center;
  }

  .web-minimal-title {
    flex-wrap: wrap;
  }

  .web-minimal-subtitle {
    font-size: 0.95rem;
  }

  .web-sticky-upgrade {
    right: 12px;
    left: 12px;
    bottom: 16px;
    justify-content: center;
  }

  .web-health-panel {
    padding: 16px;
  }

  .web-user-profile,
  .web-user-actions,
  .web-health-panel-head,
  .web-data-control-head {
    width: 100%;
    justify-content: space-between;
  }

  .web-data-control-head {
    flex-direction: column;
    align-items: stretch;
  }

  .web-health-grid {
    grid-template-columns: 1fr;
  }

  .web-data-control-actions,
  .web-health-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
