/* Layout for the working prototype. Colour stays in the Neuralix tokens and the six --chat-* variables. */
.c-root { --chat-accent-ink: var(--brand-navy); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.nx-iconbtn, .x-btn, .c-primary, .x-sw, .x-chip--btn { min-height: 44px; }
.nx-iconbtn { width: 44px; height: 44px; border: 0; }
.x-sw { min-width: 44px; height: 28px; }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
.city-page { min-height: 100%; display: flex; flex-direction: column; }
.city-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 10px 24px; background: var(--content1); border-bottom: 1px solid var(--default-200); }
.city-brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; text-decoration: none; }
.city-brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; }
.city-brand strong { display: block; font-size: 15px; line-height: 20px; }
.city-brand span span { display: block; font-size: 13px; line-height: 18px; color: var(--default-600); }
.city-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.city-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-medium); color: var(--foreground); font-weight: 600; text-decoration: none; }
.city-nav a[aria-current="page"] { background: var(--default-100); }
.powered { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 12px/16px var(--font-sans); color: var(--default-600); }
.powered img { height: 22px; width: auto; }
.nx-brand img { height: 28px; width: auto; }
.city-main { flex: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 20px; }
.admin-body { display: flex; gap: 20px; padding: 20px 24px 48px; align-items: flex-start; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nx-side a.nx-nav-item { text-decoration: none; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grow { flex: 1; }
.page-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; align-items: start; }
.stat { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 28px; line-height: 32px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars i { display: block; width: 100%; background: var(--primary-700); border-radius: 6px 6px 0 0; }
.okta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 24px; background: var(--default-100); border-bottom: 1px solid var(--default-200); font-size: 13px; color: var(--default-700); }
@media (max-width: 900px) {
  .admin-body { flex-direction: column; }
  .nx-side { width: 100%; }
  .page-grid { grid-template-columns: 1fr; }
}

/* Public assistant: banner, access gate, two-panel workspace */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-shell { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.nx-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 24px; background: var(--brand-navy); color: #fff; }
.nx-banner-logo { height: 32px; width: auto; background: #fff; border-radius: 8px; padding: 4px 10px; }
.nx-banner-text { margin: 0; display: flex; flex-direction: column; }
.nx-banner-text strong { font-size: 16px; line-height: 22px; }
.nx-banner-text span { font-size: 13px; line-height: 18px; color: #d3dbe8; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; padding: 16px 24px; }
.info-toggle { display: none; }
.side { padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }
.side-logo { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; flex: none; }
.side-title { font-size: 18px; line-height: 24px; font-weight: 700; }
.side-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.samples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sample { width: 100%; justify-content: space-between; text-align: left; font-weight: 500; height: auto; padding-top: 8px; padding-bottom: 8px; }
.tips summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.tips ul { margin: 0; padding-left: 18px; }
.side-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; }
.chat { display: flex; flex-direction: column; min-height: 0; padding: 0; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-empty { margin: auto; max-width: 460px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.samples--inline { display: none; width: 100%; }
.chat-empty h2 { font-size: 18px; line-height: 26px; }
.composer { display: flex; gap: 12px; align-items: flex-end; padding: 12px 20px 0; border-top: 1px solid var(--chat-border); }
.chat-ta { min-height: 56px; max-height: 160px; flex: 1; }
.composer-hint { font-size: 13px; padding: 6px 20px 12px; margin: 0; }
.gate { width: min(440px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.gate h1 { font-size: 22px; line-height: 28px; }
@media (max-width: 900px) {
  .nx-banner { padding: 8px 16px; flex-wrap: nowrap; gap: 10px; }
  .nx-banner-logo { height: 28px; }
  .nx-banner-text strong { font-size: 13px; line-height: 17px; }
  .nx-banner-text span { display: none; }
  .samples--inline { display: flex; }
  .chat-empty { margin: 0 auto; }
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); padding: 12px 16px; gap: 10px; }
  .info-toggle { display: inline-flex; width: 100%; }
  .side { max-height: 45dvh; }
  .side--closed { display: none; }
  .chat-log { padding: 14px; }
  .composer { padding: 10px 14px 0; flex-wrap: wrap; }
  .composer .c-primary { width: 100%; justify-content: center; }
  .composer-hint { padding: 6px 14px 10px; }
}
.nx-banner-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; font-weight: 600; text-decoration: underline; }
.x-root a.nx-banner-link { color: #fff; }
