:root {
  color-scheme: light;
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --surface-tint: #eef8f3;
  --ink: #121417;
  --muted: #68707c;
  --line: #e2e7ee;
  --line-strong: #c9d2dd;
  --accent: #111827;
  --accent-hover: #020617;
  --teal: #128066;
  --teal-soft: #e6f6f0;
  --teal-wash: #f4fbf8;
  --teal-border: rgba(18, 128, 102, 0.18);
  --sky: #2563eb;
  --sky-soft: #eaf1ff;
  --amber: #906313;
  --amber-soft: #fff4d9;
  --red: #b13d3d;
  --red-soft: #fae9e9;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 22px 60px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f7f9fc 46%, #f9faf8 100%);
  color: var(--ink);
}

body.app-booting main {
  visibility: hidden;
}

button,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 76px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.topbar-inner {
  width: min(100%, 1360px);
  min-height: 50px;
  display: grid;
  grid-template-columns: auto minmax(270px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(226, 231, 238, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
}

.brand > span:last-child {
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, white, var(--surface-soft));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.workspace-nav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(226, 231, 238, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.nav-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-button:hover:not(.active) {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(18, 128, 102, 0.14);
}

.nav-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.16);
}

#signOutButton {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

#capabilitiesButton,
#signOutButton {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 850;
}

.dataset-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.dataset-picker > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dataset-picker select {
  max-width: 260px;
  min-height: 36px;
  padding: 7px 30px 7px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.dataset-picker select:focus,
.composer textarea:focus {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  min-width: 0;
  max-width: 176px;
  padding: 4px 11px 4px 5px;
  border: 1px solid rgba(226, 231, 238, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
}

.user-chip-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.user-chip-text strong,
.user-chip-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip-text strong {
  font-size: 0.84rem;
  line-height: 1.05;
}

.user-chip-text span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.05;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-soft);
}

.lang-button {
  min-width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.lang-button.active {
  background: var(--accent);
  color: white;
}

.landing-view {
  padding: 34px 18px 56px;
}

.landing-hero {
  width: min(100%, 1120px);
  min-height: min(720px, calc(100vh - 150px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 44px;
}

.landing-copy {
  max-width: 760px;
}

.landing-copy .landing-audience {
  max-width: 620px;
  margin: -8px 0 18px;
  color: #3f4a56;
  font-size: 1rem;
  line-height: 1.48;
  font-weight: 700;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.landing-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 0.96;
  font-weight: 820;
  letter-spacing: 0;
}

.landing-copy h1 span {
  display: block;
}

.landing-copy h1 span:last-child {
  color: var(--teal);
}

.landing-copy p:not(.landing-audience) {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.62;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-proof-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
}

.trust-preview {
  padding: 20px;
  border: 1px solid rgba(226, 231, 238, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

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

.preview-top img {
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  object-fit: contain;
}

.preview-top span,
.preview-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.preview-row p {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: pre-line;
}

.preview-review {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.preview-review div {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.preview-review b {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.3;
}

.preview-status {
  margin-top: 2px;
  padding: 11px 12px;
  border: 1px solid var(--teal-border);
  border-radius: 12px;
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.landing-block {
  width: min(100%, 1120px);
  margin: 0 auto 54px;
  padding-top: 18px;
}

.landing-block-soft {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.section-eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin: 10px 0 22px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.04;
  font-weight: 780;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-timeline article {
  position: relative;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.process-timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
}

.process-timeline h3,
.world-grid h3 {
  margin: 18px 0 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.process-timeline p,
.world-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.52;
}

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

.world-grid article {
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.world-grid h3 {
  margin-top: 0;
  font-size: 1.06rem;
}

.world-conclusion {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--teal-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.72), rgba(255, 255, 255, 0.86));
}

.world-conclusion h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.world-conclusion p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.access-block {
  width: min(100%, 1120px);
  margin: 0 auto 54px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.access-copy p:not(.section-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.56;
}

.access-card {
  padding: 20px;
  border: 1px solid var(--teal-border);
  border-radius: 8px;
  background: var(--teal-wash);
}

.access-card > span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.access-card p {
  margin: 10px 0 0;
  color: #225448;
  line-height: 1.52;
}

.access-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.access-fallback {
  font-size: 0.84rem;
}

body.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

.contact-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-height: min(92vh, 840px);
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.scope-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(92vh, 680px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.scope-modal-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: linear-gradient(180deg, rgba(248, 251, 252, 0.9), #fff);
}

.scope-panel {
  min-height: 178px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.scope-panel-accent {
  border-color: var(--teal-border);
  background: var(--teal-wash);
}

.scope-panel h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}

.scope-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.36;
}

.scope-modal-foot {
  justify-content: flex-end;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  line-height: 1.15;
}

.modal-head p:not(.section-eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.contact-frame-shell {
  position: relative;
  min-height: 320px;
  background: #fff;
}

.contact-frame {
  width: 100%;
  height: min(68vh, 620px);
  border: 0;
  background: #fff;
}

.contact-frame.dimmed {
  opacity: 0.18;
}

.contact-frame-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.contact-frame-state span::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  border: 3px solid rgba(18, 128, 102, 0.16);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.contact-frame-fallback {
  align-content: center;
  gap: 8px;
  background: #fff;
}

.contact-frame-fallback h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.2;
}

.contact-frame-fallback p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.modal-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  background: #fff;
}

.landing-footer {
  width: min(100%, 1120px);
  margin: 72px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.landing-footer img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-links {
  display: inline-flex;
  gap: 12px;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

.legal-page {
  min-height: 100vh;
  background: var(--background);
}

.legal-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 56px 20px;
  color: var(--ink);
  line-height: 1.65;
}

.legal-shell h1 {
  margin: 18px 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.legal-shell section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-back {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--ink);
}

.auth-view {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 56px;
}

.auth-card {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(226, 231, 238, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.auth-card img {
  width: 48px;
  height: 48px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  object-fit: contain;
}

.auth-card h1 {
  margin: 18px 0 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.auth-card p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-fields {
  display: grid;
  gap: 0;
}

.auth-card input {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  outline: none;
}

.admin-panel input,
.admin-panel select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  outline: none;
}

.admin-panel input:focus,
.admin-panel select:focus {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.admin-panel input:disabled,
.admin-panel select:disabled {
  background: var(--surface-soft);
  color: var(--muted);
}

.auth-card input:focus {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-help,
.field-help {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.field-help {
  margin: -6px 0 2px;
}

.auth-card .primary-button,
.auth-card .secondary-button {
  width: 100%;
  margin-top: 10px;
}

.admin-page,
.explore-page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 32px 16px 42px;
}

.admin-shell,
.explore-shell {
  width: min(100%, 1180px);
  display: grid;
  gap: 18px;
}

.admin-header,
.explore-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-header h1,
.explore-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-header p:last-child,
.explore-header p:last-child {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.explore-content {
  display: grid;
  gap: 18px;
}

.explore-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.explore-profile-card,
.explore-quality-card {
  padding: 20px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.explore-profile-card h2,
.explore-quality-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
}

.explore-profile-card p,
.explore-quality-card p {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.brief-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.quality-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quality-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 820;
}

.brief-notes {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.brief-notes span {
  display: block;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.brief-notes b {
  color: var(--ink);
  font-weight: 850;
}

.explore-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.explore-metric {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.explore-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.explore-metric b {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.08;
}

.explore-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.explore-grid.executive {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.explore-list-panel,
.explore-detail-panel,
.explore-observations {
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.explore-list-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.explore-list-panel.executive {
  position: static;
  max-height: none;
  overflow: visible;
}

.starter-section,
.search-section {
  display: grid;
}

.starter-section {
  border-bottom: 1px solid var(--line);
}

.explore-panel-head {
  display: grid;
  gap: 11px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.explore-panel-head.simple {
  border-bottom: 0;
  padding-bottom: 8px;
}

.explore-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.explore-panel-head h2,
.explore-observations h2 {
  margin: 0;
  font-size: 1rem;
}

.explore-search {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  outline: none;
}

.explore-search:focus {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.explore-type-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.type-chip {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 830;
}

.type-chip.active {
  border-color: var(--teal-border);
  background: var(--teal-wash);
  color: var(--teal);
}

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

.starter-card {
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.starter-card:hover,
.starter-card.active {
  border-color: var(--teal-border);
  background: var(--teal-wash);
}

.starter-card b,
.starter-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.starter-card b {
  line-height: 1.25;
  font-size: 0.94rem;
}

.starter-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.explore-column-list {
  display: grid;
  gap: 7px;
  overflow: auto;
  padding: 12px;
}

.explore-column-list.compact {
  padding-top: 0;
  max-height: 360px;
}

.explore-column-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.explore-column-item.compact {
  padding: 10px 12px;
}

.explore-column-item:hover,
.explore-column-item.active {
  border-color: var(--line);
  background: white;
}

.column-item-main b,
.column-item-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-item-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.column-item-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.explore-detail-panel {
  padding: 18px;
}

.explore-detail-panel.executive {
  position: sticky;
  top: 96px;
}

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

.column-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.column-detail h2 {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
}

.column-detail p {
  margin: 8px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.value-list {
  padding-top: 2px;
}

.value-list h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.value-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.explore-observations {
  padding: 18px;
}

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

.observation-card {
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.observation-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.observation-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.explore-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  text-align: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr) minmax(340px, 1.1fr);
  align-items: start;
  gap: 18px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-summary-card,
.admin-summary-loading {
  min-height: 108px;
  padding: 14px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-summary-card {
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.admin-summary-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.admin-summary-card b {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.admin-summary-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.25;
}

.admin-summary-card.warn {
  border-color: rgba(144, 99, 19, 0.24);
  background: linear-gradient(180deg, rgba(255, 244, 217, 0.72), rgba(255, 255, 255, 0.86));
}

.admin-summary-card.info {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, rgba(234, 241, 255, 0.72), rgba(255, 255, 255, 0.86));
}

.admin-summary-loading {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 820;
}

.admin-summary-loading.compact {
  min-height: 72px;
}

.readiness-panel {
  gap: 14px;
}

.readiness-head,
.readiness-summary,
.readiness-row {
  display: flex;
  align-items: center;
}

.readiness-head {
  justify-content: space-between;
  gap: 16px;
}

.readiness-head h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.readiness-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.readiness-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.readiness-badge.pass {
  color: #075f46;
  background: rgba(218, 244, 233, 0.9);
}

.readiness-badge.warn,
.readiness-badge.fail {
  color: #7a4d06;
  background: rgba(255, 244, 217, 0.95);
}

.readiness-badge.fail {
  color: #8a1f16;
  background: rgba(255, 229, 226, 0.95);
}

.readiness-summary {
  flex-wrap: wrap;
  gap: 8px;
}

.readiness-list {
  display: grid;
  gap: 8px;
}

.readiness-row {
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.readiness-row b,
.readiness-row p,
.readiness-row small,
.readiness-row em {
  overflow-wrap: anywhere;
}

.readiness-row b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.9rem;
}

.readiness-row p,
.readiness-row small {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.readiness-row small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
}

.readiness-row em {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.readiness-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.readiness-dot.pass {
  background: #14936f;
}

.readiness-dot.warn {
  background: #d89712;
}

.readiness-dot.fail {
  background: #dc3c2f;
}

.admin-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.panel-heading.small {
  margin-top: 4px;
}

.admin-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px;
  color: var(--ink) !important;
  font-size: 0.88rem !important;
  font-weight: 760 !important;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  accent-color: var(--teal);
}

.dataset-access-list {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.field-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dataset-checkbox {
  padding: 3px 0;
}

.admin-users-list {
  display: grid;
  gap: 9px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 2px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.admin-user-row.active {
  border-color: var(--teal-border);
  background: var(--teal-wash);
}

.admin-user-main {
  min-width: 0;
}

.admin-user-main b,
.admin-user-main span,
.admin-user-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-main b {
  color: var(--ink);
}

.admin-user-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-user-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.status-pill.ok {
  background: var(--teal-wash);
  color: var(--teal);
}

.status-pill.off {
  background: var(--red-soft);
  color: var(--red);
}

.status-pill.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.info {
  background: rgba(234, 241, 255, 0.95);
  color: #2563eb;
}

.secondary-button.muted {
  color: var(--muted);
}

.manage-content,
.account-form,
.reset-form {
  display: grid;
  gap: 13px;
}

.account-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.account-meta div {
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.account-meta span,
.account-meta b {
  display: block;
}

.account-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-meta b {
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.reset-form {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reset-confirm-check {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.feedback-review-panel {
  gap: 16px;
}

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

.feedback-review-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feedback-review-filters label {
  display: grid;
  gap: 6px;
}

.feedback-review-filters span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feedback-triage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.72), rgba(255, 255, 255, 0.78));
}

.feedback-triage h3 {
  margin: 0;
  font-size: 0.98rem;
}

.feedback-triage p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.88rem;
}

.feedback-triage-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.feedback-triage-metrics span {
  min-width: 98px;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.feedback-triage-metrics small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-triage-metrics b {
  color: var(--ink);
  font-size: 1.05rem;
}

.feedback-review-card {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.feedback-review-card.needs-review {
  border-color: rgba(144, 99, 19, 0.24);
  background: linear-gradient(180deg, rgba(255, 244, 217, 0.58), rgba(255, 255, 255, 0.8));
}

.feedback-review-card.positive {
  border-color: var(--teal-border);
}

.feedback-review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.feedback-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feedback-review-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 178px;
}

.feedback-review-card-head small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: right;
}

.feedback-status-control {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px;
  color: var(--muted) !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}

.feedback-status-control select {
  min-height: 34px;
  width: auto;
  min-width: 138px;
  padding: 6px 30px 6px 10px;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: none;
}

.feedback-review-field {
  display: grid;
  gap: 4px;
}

.feedback-review-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-review-field p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.chat-page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 32px 16px 22px;
}

.chat-layout {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: 260px minmax(0, 900px);
  align-items: start;
  gap: 18px;
}

.history-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 118px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 231, 238, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(16px);
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-list {
  display: grid;
  gap: 7px;
  overflow: auto;
  padding-right: 2px;
}

.history-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.history-entry {
  display: grid;
  gap: 7px;
}

.history-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.history-item:hover,
.history-item.active {
  border-color: var(--line);
  background: white;
}

.history-open {
  min-width: 0;
  padding: 10px 0 10px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.history-text {
  min-width: 0;
}

.history-text b,
.history-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-text b {
  font-size: 0.9rem;
  line-height: 1.25;
}

.history-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
}

.history-action,
.history-delete {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.history-action:hover,
.history-action:focus {
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.history-delete:hover,
.history-delete:focus {
  background: var(--red-soft);
  color: var(--red);
  outline: none;
}

.rename-form {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.rename-input {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.rename-input:focus {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.rename-actions {
  display: flex;
  gap: 8px;
}

.delete-confirm {
  padding: 10px;
  border: 1px solid #efc0c0;
  border-radius: 14px;
  background: var(--red-soft);
}

.delete-confirm p {
  margin: 0;
  color: var(--red);
  font-size: 0.82rem;
  line-height: 1.35;
}

.delete-confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.danger-button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-weight: 850;
}

.danger-button:hover:not(:disabled) {
  background: #8f2f2f;
}

.primary-button.compact,
.secondary-button.compact {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
}

.chat-frame {
  width: 100%;
  min-height: calc(100vh - 124px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}

.empty-state {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 10px;
}

.empty-state.hidden {
  display: none;
}

.empty-state img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.empty-state h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 2.45rem;
  line-height: 1.08;
  font-weight: 720;
}

.empty-state p {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-guide {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.empty-guide article {
  min-height: 84px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
}

.empty-guide b {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 0.82rem;
}

.empty-guide span {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 720;
}

.starter-notice {
  margin: 18px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 780;
}

.quick-examples {
  width: min(100%, 780px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 30px;
}

.starter-head {
  grid-column: 1 / -1;
  text-align: left;
}

.starter-head h2 {
  margin: 0;
  font-size: 1rem;
}

.starter-head p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.example-button {
  min-height: 58px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  line-height: 1.3;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.example-button:hover {
  border-color: var(--teal-border);
  background: white;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 6px;
}

.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.message.user {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #111827, #1f2937);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.bubble {
  max-width: 740px;
  padding: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.message.user .bubble {
  max-width: min(740px, 88%);
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 20px 20px 8px 20px;
  background: linear-gradient(180deg, #111827, #1f2937);
  color: white;
  box-shadow: none;
}

.message.assistant .bubble {
  color: var(--ink);
}

.assistant-card {
  padding: 22px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  border-radius: 20px;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 42px rgba(15, 23, 42, 0.05);
}

.interpretation-card {
  border-color: rgba(201, 210, 221, 0.86);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-heading h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.interpretation-text,
.result-text {
  margin: 0;
  color: var(--ink);
}

.interpretation-text {
  white-space: pre-line;
}

.interpretation-brief {
  display: grid;
  gap: 12px;
}

.interpretation-lead {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.42;
  font-weight: 760;
}

.interpretation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.interpretation-fact {
  min-height: 74px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.interpretation-fact span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.interpretation-fact b {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.interpretation-review {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.review-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.review-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.review-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.confirm-note {
  display: grid;
  gap: 3px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--teal-border);
  border-radius: 14px;
  background: var(--teal-wash);
  color: var(--teal);
  line-height: 1.4;
  font-weight: 760;
}

.confirm-note b {
  color: var(--teal);
  font-size: 0.88rem;
}

.confirm-note span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 620;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 12px;
  font-weight: 760;
  border: 1px solid transparent;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(180deg, #111827, #1f2937);
  border-color: #111827;
  color: white;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
  color: var(--ink);
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: white;
  color: var(--ink);
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 850;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.notice {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.4;
}

.notice.warning {
  border-color: #ead28f;
  background: var(--amber-soft);
  color: var(--amber);
}

.notice.error {
  border-color: #efc0c0;
  background: var(--red-soft);
  color: var(--red);
}

.table-wrap {
  max-width: 100%;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.result-summary {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding: 14px;
  border: 1px solid var(--teal-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.8), rgba(255, 255, 255, 0.78));
}

.result-summary span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-summary p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 680;
}

.result-context {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.result-context-head {
  display: grid;
  gap: 3px;
}

.result-context-head b {
  color: var(--ink);
  font-size: 0.92rem;
}

.result-context-head span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.result-context-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.result-context-list > span {
  display: inline-grid;
  gap: 2px;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.result-context-list small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-context-list b {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.result-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.result-details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--ink);
}

.result-details summary b {
  font-size: 0.94rem;
}

.result-details summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.result-details .table-wrap {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
}

.metric-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--teal-border);
  border-radius: 16px;
  background: var(--teal-wash);
}

.metric-strip span {
  color: var(--teal);
  font-weight: 850;
}

.metric-strip b {
  font-size: 1.4rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.metric-card {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--teal-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.82), rgba(255, 255, 255, 0.92));
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.metric-card b {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.1;
}

.result-chart {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.result-chart h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.chart-warnings {
  display: grid;
  gap: 4px;
  margin: -2px 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.35fr) minmax(100px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.chart-label {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-meter {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
  appearance: none;
}

.chart-meter::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-soft);
}

.chart-meter::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
}

.chart-meter::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
}

.result-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.result-table th,
.result-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.result-table th {
  position: sticky;
  top: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.result-feedback {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.feedback-copy {
  display: grid;
  gap: 3px;
}

.feedback-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.feedback-copy p,
.feedback-status,
.feedback-form-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.feedback-status.error {
  color: var(--red);
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.feedback-button:hover:not(:disabled),
.feedback-button.active {
  border-color: var(--teal-border);
  background: var(--teal-wash);
  color: var(--teal);
}

.feedback-form {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.feedback-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  outline: none;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 86px;
}

.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.composer {
  position: sticky;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: end;
  gap: 11px;
  padding: 11px 11px 11px 16px;
  border: 1px solid rgba(226, 231, 238, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.composer textarea {
  width: 100%;
  max-height: 190px;
  min-height: 42px;
  resize: none;
  padding: 10px 2px 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  line-height: 1.45;
  outline: none;
}

.composer-counter {
  align-self: center;
  min-width: 54px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

.composer-counter.warning {
  color: var(--amber);
}

.composer-counter.error {
  color: var(--red);
}

.send-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #111827, #1f2937);
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

.send-button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .topbar {
    height: auto;
  }

  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .workspace-nav {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .controls {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .workspace-nav {
    grid-column: auto;
    justify-self: stretch;
  }

  .controls {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dataset-picker {
    flex: 1 1 280px;
  }

  .dataset-picker select {
    max-width: none;
    width: 100%;
  }

}

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

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

  .feedback-review-list {
    grid-template-columns: 1fr;
  }

  .admin-users-list {
    max-height: none;
  }

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

  .explore-brief {
    grid-template-columns: 1fr;
  }

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

  .explore-list-panel {
    position: static;
    max-height: none;
  }

  .explore-detail-panel.executive {
    position: static;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .history-sidebar {
    position: static;
    max-height: none;
  }

  .history-list {
    display: flex;
    overflow-x: auto;
    padding: 0 0 2px;
  }

  .history-item {
    min-width: 220px;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 18px;
  }

  .landing-copy {
    max-width: 860px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 10px;
  }

  .topbar-inner {
    align-items: stretch;
    border-radius: 16px;
  }

  .controls {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .workspace-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  }

  .nav-button {
    width: 100%;
    min-height: 42px;
  }

  .dataset-picker {
    flex: 1 1 100%;
    order: 2;
  }

  .user-chip {
    flex: 1 1 180px;
    max-width: none;
    order: 3;
  }

  .language-switch,
  #signOutButton {
    order: 4;
  }

  #signOutButton {
    flex: 1 1 110px;
  }

  .dataset-picker select {
    max-width: none;
    width: 100%;
  }

  .landing-view {
    padding: 18px 10px 42px;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 16px;
  }

  .landing-copy h1 {
    font-size: 2.55rem;
  }

  .trust-preview {
    padding: 16px;
    border-radius: 18px;
  }

  .landing-block {
    margin-bottom: 42px;
  }

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

  .process-timeline article {
    min-height: auto;
  }

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

  .world-grid article {
    min-height: auto;
  }

  .world-conclusion {
    padding: 20px;
  }

  .access-block {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .modal-shell {
    padding: 10px;
    align-items: stretch;
  }

  .contact-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .scope-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .scope-modal-body {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .scope-panel {
    min-height: auto;
    padding: 16px;
  }

  .modal-head {
    padding: 16px;
  }

  .contact-frame {
    height: 68vh;
  }

  .modal-foot {
    justify-content: stretch;
    padding: 10px 16px 16px;
  }

  .modal-foot .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .chat-page {
    padding: 18px 10px 14px;
  }

  .chat-layout {
    gap: 12px;
  }

  .history-sidebar {
    padding: 10px;
    border-radius: 17px;
  }

  .history-list {
    gap: 9px;
    scroll-snap-type: x proximity;
  }

  .history-entry {
    min-width: min(82vw, 270px);
    scroll-snap-align: start;
  }

  .admin-page {
    padding: 18px 10px 32px;
  }

  .explore-page {
    padding: 18px 10px 32px;
  }

  .admin-header,
  .explore-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .admin-header .secondary-button,
  .explore-header .secondary-button {
    width: 100%;
  }

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

  .readiness-head,
  .readiness-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .readiness-row em {
    margin-left: 0;
    text-align: left;
  }

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

  .brief-metrics,
  .starter-grid {
    grid-template-columns: 1fr;
  }

  .account-meta {
    grid-template-columns: 1fr;
  }

  .feedback-review-head,
  .feedback-review-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feedback-review-meta {
    width: 100%;
    justify-items: start;
  }

  .feedback-triage {
    grid-template-columns: 1fr;
  }

  .feedback-triage-metrics {
    justify-content: stretch;
  }

  .feedback-triage-metrics span {
    flex: 1 1 130px;
  }

  .feedback-review-card-head small {
    text-align: left;
  }

  .feedback-review-filters {
    grid-template-columns: 1fr;
  }

  .column-stats,
  .observation-grid {
    grid-template-columns: 1fr;
  }

  .chat-frame {
    min-height: calc(100vh - 150px);
  }

  .auth-view {
    min-height: auto;
    align-items: flex-start;
    padding: 18px 10px 36px;
  }

  .auth-card {
    padding: 22px;
    border-radius: 18px;
  }

  .empty-state h1 {
    font-size: 1.7rem;
  }

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

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

  .message {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
  }

  .avatar {
    width: 28px;
    height: 28px;
  }

  .message.user .bubble {
    max-width: 94%;
  }

  .assistant-card {
    padding: 17px;
    border-radius: 18px;
  }

  .card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .interpretation-facts {
    grid-template-columns: 1fr;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .result-feedback {
    align-items: stretch;
    flex-direction: column;
  }

  .result-details summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-feedback .secondary-button {
    width: 100%;
  }

  .actions,
  .feedback-actions,
  .admin-actions,
  .delete-confirm-actions,
  .rename-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions > button,
  .feedback-actions > button,
  .admin-actions > button,
  .delete-confirm-actions > button,
  .rename-actions > button {
    width: 100%;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 0;
  }

}

@media (max-width: 520px) {
  .brand > span:last-child {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .workspace-nav,
  #signOutButton,
  .language-switch {
    flex: 1 1 auto;
  }

  .workspace-nav {
    justify-content: center;
  }

  .topbar {
    padding-left: 6px;
    padding-right: 6px;
  }

  .topbar-inner {
    padding: 8px;
  }

  .user-chip {
    flex: 1 1 100%;
  }

  .dataset-picker {
    min-width: 0;
  }

  .workspace-nav {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  }

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

  .admin-summary-card {
    min-height: 92px;
  }

  .feedback-status-control {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-status-control select {
    width: 100%;
  }

  .lang-button,
  .language-switch .lang-button {
    min-width: 0;
    flex: 1;
  }

  .landing-copy h1 {
    font-size: 2.15rem;
  }

  .landing-copy .landing-audience {
    font-size: 0.95rem;
  }

  .landing-actions .primary-button,
  .landing-actions .secondary-button,
  .access-actions .primary-button,
  .access-actions .secondary-button {
    width: 100%;
  }

  .chat-page {
    padding-left: 6px;
    padding-right: 6px;
  }

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

  .message.assistant .avatar {
    display: none;
  }

  .message.user .bubble,
  .bubble {
    max-width: 100%;
  }

  .composer {
    grid-template-columns: minmax(0, 1fr) 44px;
    border-radius: 18px;
    padding-left: 13px;
  }

  .composer-counter {
    display: none;
  }
}
