:root {
  color-scheme: light;
  --bg: #f4f8ff;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --raised: #edf3ff;
  --ink: #122144;
  --muted: #586b8a;
  --line: #e4ecf7;
  --glass-edge: #e5edf7;
  --glass-highlight: inset 0 1px 0 #ffffff00;
  --glass-blur: 20px;
  --panel-gap: 20px;
  --blue: #1659e8;
  --primary: #2163f3;
  --blue-soft: #eaf1ff;
  --green: #087b54;
  --green-soft: #e5f8ef;
  --amber: #955805;
  --amber-soft: #fff4df;
  --red: #bc3652;
  --red-soft: #ffedf1;
  --violet: #7653ca;
  --radius: 24px;
  --control-radius: 14px;
  /* Text follows its role, not the width of its card. Only display roles step down on mobile. */
  --type-page: 2rem;
  --type-card: 1.375rem;
  --type-item: 1.125rem;
  --type-body: 1rem;
  --type-control: 0.9375rem;
  --type-support: 0.875rem;
  --type-meta: 0.8125rem;
  --type-metric: 2.75rem;
  --shadow: 0 12px 32px #3154820b;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 100%;
  line-height: 1.6;
  font-synthesis: none;
}
@media (max-width: 760px) {
  :root {
    --type-page: 1.625rem;
    --type-card: 1.25rem;
    --type-item: 1.0625rem;
    --type-metric: 2.25rem;
  }
}
.assistant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(350px, 1fr);
  grid-template-areas: 'hero hero' 'model settings' 'usage usage' 'save save';
  gap: var(--panel-gap);
  align-items: stretch;
}
.assistant-grid > * {
  min-width: 0;
}
.assistant-grid > .section {
  margin: 0;
}
.assistant-hero {
  grid-area: hero;
}
.assistant-model {
  grid-area: model;
}
.assistant-settings {
  grid-area: settings;
}
.assistant-usage {
  grid-area: usage;
}
.assistant-limits {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.assistant-catalog:has(#model-catalog:empty) {
  display: none;
}
.assistant-catalog {
  margin-top: 16px;
}
#model-catalog {
  width: 100%;
  min-width: 0;
}
.provider-connection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}
.provider-connection label {
  display: grid;
  gap: 8px;
  align-content: start;
}
.provider-connection small {
  margin: 0;
  line-height: 1.7;
}
.model-options {
  border: 0;
  padding: 0;
  margin: 22px 0;
  min-width: 0;
}
.model-options legend {
  padding: 0;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.provider-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.provider-choices .model-option {
  border: 1px solid var(--line);
  min-height: 54px;
}
.provider-choices .model-option:has(input:checked) {
  border-color: #94b1f3;
  box-shadow: inset 0 1px 6px #9b89ff26;
}
.model-option:has(input:disabled) {
  cursor: not-allowed;
  color: var(--muted);
}
.model-option:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.model-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 4px;
}
.model-option:hover {
  background: var(--raised);
}
.model-option:has(input:checked) {
  background: var(--blue-soft);
  color: #2058c0;
  box-shadow: inset 0 1px 1px #a6b9ff24;
}
.model-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.model-option strong {
  font-weight: 600;
}
.model-brand {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--blue);
}
.model-brand-gemini {
  color: var(--violet);
}
.model-option > span {
  min-width: 0;
}
@media (max-width: 600px) {
  .provider-choices {
    grid-template-columns: 1fr;
  }
}
.model-option strong,
.model-option small {
  display: block;
  overflow-wrap: anywhere;
}
.model-option small {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.assistant-prompt {
  margin: 0;
  border: 0;
  padding: 0;
}
.assistant-prompt label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.assistant-prompt summary {
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}
.assistant-model-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}
.assistant-model-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.assistant-prompt[open] {
  flex-basis: 100%;
}
.assistant-prompt:not([open]) {
  max-width: 180px;
}
.assistant-model .model-options {
  margin: 16px 0;
}
.assistant-model .model-option {
  padding-top: 10px;
  padding-bottom: 10px;
}
.assistant-model .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}
.assistant-model .icon-tile .icon {
  width: 24px;
  height: 24px;
}
.assistant-model .form-error:not([hidden]) {
  margin-top: 16px;
}
.section.assistant-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  min-height: 148px;
  padding: 18px 26px;
  background:
    linear-gradient(100deg, #17263dcc, #2535568c),
    url('/assets/aurora-banner.webp') center / cover no-repeat;
  border-color: #4b608b;
  box-shadow:
    inset 0 1px 1px #c1c6ff30,
    0 12px 30px #04091740;
}
.assistant-hero-identity {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.assistant-orb {
  width: 144px;
  height: 108px;
  object-fit: cover;
  flex-shrink: 0;
}
.assistant-hero-identity > div {
  border-left: 1px solid #7084b4;
  padding-left: 24px;
}
.assistant-hero h2 {
  font-size: 27px;
  font-weight: 600;
  margin-bottom: 10px;
}
.assistant-hero .badge {
  font-size: 14px;
  padding: 6px 14px;
}
.assistant-hero-control {
  flex: 1;
  min-width: 0;
}
.assistant-readiness {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 24px;
  font-size: 14px;
}
.assistant-readiness > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.assistant-readiness .icon {
  width: 20px;
  height: 20px;
  color: #47628e;
}
.assistant-tested {
  font-variant-numeric: tabular-nums;
}
.assistant-hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.assistant-hero-actions button {
  background-color: #edf3ff;
}
.assistant-hero-actions button.primary {
  background-color: var(--primary);
}
.assistant-feedback {
  flex-basis: 100%;
}
.assistant-feedback:not(:has(p:not([hidden]))) {
  display: none;
}
.builtin-tools {
  align-self: stretch;
}
.builtin-tools > h2 {
  gap: 14px;
}
.builtin-tools > h2 > .icon {
  width: 28px;
  height: 28px;
  color: #25436f;
}
.tool-list {
  margin-top: 22px;
}
.tool-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  min-height: 76px;
  cursor: pointer;
}
.tool-switch + .tool-switch {
  border-top: 1px solid var(--line);
}
.tool-switch > span:not(.icon) {
  flex: 1;
  min-width: 0;
}
.tool-switch .tool-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  color: #466696;
  background: #edf3ff;
}
.tool-switch:has(:disabled) {
  cursor: not-allowed;
}
.tool-switch small {
  color: var(--amber);
  font-size: var(--type-meta);
}
.tool-switch small.tool-formats {
  color: var(--muted);
}
input[role='switch'] {
  appearance: none;
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #b7c5d8;
  border-radius: 99px;
  background: #d7e0ed;
  cursor: pointer;
}
input[role='switch']::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    0 2px 4px #040a2240,
    inset 0 1px 0 #ffffff80;
}
input[role='switch']:checked {
  background: var(--primary);
  border-color: var(--blue);
}
input[role='switch']:checked::before {
  transform: translateX(20px);
}
input[role='switch']:hover:not(:disabled),
.tool-switch:hover input[role='switch']:not(:disabled) {
  border-color: #356fe9;
}
.tool-switch:hover input[role='switch']:checked:not(:disabled) {
  background: #1754d8;
}
input[role='switch']:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.tool-scope {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}
.attachment-settings,
.assistant-data-notice {
  margin-top: 18px;
  padding-top: 12px;
}
.attachment-settings summary,
.assistant-data-notice summary {
  font-size: 14px;
  font-weight: 500;
}
.assistant-data-notice {
  border: 0;
  padding: 0;
  margin-top: 4px;
}
.assistant-data-notice summary {
  color: var(--muted);
}
.builtin-tools .field-pair {
  gap: 12px;
}
.builtin-tools .field-pair label {
  font-size: var(--type-control);
}
.notice-inline {
  color: var(--amber);
}
.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.field-pair label {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.field-pair small {
  font-size: var(--type-support);
  color: var(--muted);
}
.command-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.command-list span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}
.usage-facts {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.usage-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.usage-facts dt {
  color: var(--muted);
}
.usage-facts dd {
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.usage-facts dd span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.builtin-tools code {
  overflow-wrap: anywhere;
}
.assistant-save {
  grid-area: save;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.assistant-save .form-error {
  flex-basis: 100%;
  margin: 0;
}
.assistant-recent {
  margin-top: 22px;
}
.record-error {
  display: block;
  color: var(--amber);
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .assistant-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'hero' 'model' 'settings' 'usage' 'save';
  }
  .assistant-hero-identity {
    flex: 1;
  }
  .assistant-hero-control {
    flex-basis: 100%;
  }
  .assistant-readiness,
  .assistant-hero-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .provider-connection {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .assistant-hero {
    gap: 16px;
  }
  .assistant-hero-identity {
    gap: 12px;
  }
  .assistant-orb {
    width: 64px;
    height: 64px;
  }
  .assistant-hero-identity > div {
    padding-left: 14px;
  }
  .assistant-hero h2 {
    font-size: 22px;
  }
  .assistant-readiness {
    gap: 12px 18px;
  }
  .assistant-hero-actions button {
    flex: 1;
  }
  .assistant-model-actions {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr;
  }
  .assistant-model-actions button {
    flex: 1;
  }
}

@media (max-width: 450px) {
  .field-pair {
    grid-template-columns: 1fr;
  }
  .assistant-grid {
    gap: 16px;
  }
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #aebdd4 transparent;
}
body {
  margin: 0;
  font-size: var(--type-body);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  font-size: var(--type-control);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--raised);
  color: var(--ink);
  padding: 11px 16px;
  font-weight: 500;
  line-height: 1.45;
  min-height: 44px;
}
button:hover:not(:disabled) {
  background: #e1ebfc;
}
button.primary {
  background: var(--primary);
  border-color: #437bff;
  color: #fff;
  box-shadow: 0 5px 14px #04102430;
}
button.primary:hover:not(:disabled) {
  background: #1754d8;
}
button.outline {
  background: transparent;
  border-color: #a4bde9;
}
button.outline:hover:not(:disabled) {
  background: var(--raised);
  border-color: var(--blue);
}
button.quiet {
  color: var(--muted);
}
button.danger {
  color: var(--red);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.text {
  border: 0;
  background: transparent;
  padding: 8px 2px;
  color: var(--blue);
}
button.text:hover:not(:disabled) {
  color: #1748ba;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
a:hover {
  color: #1748ba;
}
:focus-visible {
  outline: 2px solid #356fe9;
  outline-offset: 3px;
}
h1:focus,
#main:focus,
.form-error:focus {
  outline: none;
}
::selection {
  background: #c8dcff;
  color: #fff;
}
input,
textarea,
select {
  caret-color: var(--blue);
  width: 100%;
  border: 1px solid #cbd8e9;
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 1px 3px #3154820b;
  min-height: 46px;
}
input::placeholder,
textarea::placeholder {
  color: #697e9a;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #7f9dca;
}
textarea {
  resize: vertical;
  min-height: 96px;
}
input[type='checkbox']:not([role='switch']) {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin: 0;
  flex-shrink: 0;
}
label {
  display: block;
  font-weight: 500;
}
label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: var(--type-page);
  letter-spacing: normal;
  line-height: 1.3;
  font-weight: 700;
}
h2 {
  font-size: var(--type-card);
  line-height: 1.4;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
:where(h1, h2, h3, h4) {
  text-wrap: balance;
  overflow-wrap: anywhere;
}
p {
  max-width: 68ch;
  text-wrap: pretty;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.mono,
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  font-size: 13px;
}
code {
  background: #edf3fb;
  padding: 4px 7px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 13px 22px;
  background: var(--surface);
  z-index: 20;
  border-radius: 12px;
}
.skip-link:focus {
  top: 12px;
}
.icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  vertical-align: middle;
}
.icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
button > .icon,
summary > .icon,
.config-detail a > .icon {
  width: 18px;
  height: 18px;
}
button.primary > .icon {
  color: inherit;
}
button[data-loading] {
  cursor: progress;
  opacity: 0.8;
}
button[data-loading] > .icon:first-child {
  color: inherit;
}
summary .chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #526d95;
}
.credential-detail summary {
  border-radius: 10px;
  padding: 8px 10px;
  margin: -4px -10px;
}
.credential-detail summary:hover {
  background: var(--raised);
}
.icon-tile {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--blue);
  background: #e9f0ff;
}
.icon-tile .icon {
  width: 28px;
  height: 28px;
}
.icon-tile.teal {
  color: var(--green);
  background: #e9f9f5;
}
.icon-tile.violet {
  color: var(--violet);
  background: #f0ebfc;
}
.icon-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}
.loading {
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 23px;
  letter-spacing: -0.03em;
  box-shadow:
    inset 0 1px 1px #ffffff32,
    0 4px 12px #00000020;
}
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  margin: 0 6px 16px;
  gap: 8px;
}
.sidebar-title > span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-weight: 600;
}
.tenant-picker {
  min-width: 0;
}
.tenant-trigger {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 12px;
  border: 1px solid #cedbec;
  background: #f2f6fd;
  text-align: left;
}
.tenant-trigger:hover:not(:disabled) {
  background: #e8f0ff;
  border-color: #7d9ccc;
}
.tenant-trigger[aria-expanded='true'] {
  border-color: #477de8;
  background: #edf3ff;
}
.tenant-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenant-name small,
.tenant-option-name small {
  display: block;
  font-size: var(--type-meta);
  color: var(--amber);
  margin-top: 2px;
}
.tenant-trigger > .icon {
  width: 20px;
  height: 20px;
  color: #466696;
}
.tenant-trigger > .chevron {
  width: 16px;
  height: 16px;
  color: #526d95;
}
.tenant-trigger[aria-expanded='true'] > .chevron {
  transform: rotate(180deg);
}
.tenant-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 8px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd8e9;
  border-radius: 18px;
  box-shadow: 0 18px 44px #263f6b22;
  overflow: hidden;
}
.tenant-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px 11px;
  font-size: var(--type-meta);
  color: #586b8a;
}
.tenant-menu-head > span:last-child {
  font-variant-numeric: tabular-nums;
}
.tenant-options {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
}
.tenant-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.tenant-option + .tenant-option {
  margin-top: 4px;
}
.tenant-option[aria-selected='true'] {
  background: #e8f0ff;
  color: #2058c0;
}
.tenant-option[data-active] {
  background: #eff4fd;
  outline: 1px solid #94b1dc;
  outline-offset: -1px;
}
.tenant-option[aria-selected='true'][data-active] {
  background: #dfeaff;
}
.tenant-option > .tenant-option-icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 9px;
  background: #ebf2ff;
  color: #45689e;
}
.tenant-option-name {
  overflow-wrap: anywhere;
  min-width: 0;
  line-height: 1.5;
}
.tenant-option > .selection-check {
  width: 18px;
  height: 18px;
  color: #2163f3;
  visibility: hidden;
}
.tenant-option[aria-selected='true'] > .selection-check {
  visibility: visible;
}
.model-picker {
  margin: 22px 0;
  min-width: 0;
}
.model-field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}
.model-trigger {
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  min-height: 72px;
  padding: 14px 16px;
  background: var(--bg);
}
.model-option-copy {
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.model-option-copy strong,
.model-option-copy small {
  display: block;
}
.model-option-copy strong {
  font-weight: 600;
}
.model-option-copy small {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.model-picker-option[aria-disabled='true'] {
  cursor: not-allowed;
  color: var(--muted);
}
.model-picker-option[aria-disabled='true'] small {
  color: var(--amber);
}
.app-list {
  display: grid;
  gap: 8px;
  margin-top: 21px;
}
.app-button {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  padding: 13px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.app-button > span:not(.icon):not(.app-status-dot) {
  overflow-wrap: anywhere;
  min-width: 0;
}
.app-button.active {
  background: var(--blue-soft);
  color: #2163f3;
  box-shadow: inset 0 1px #b3cbff10;
}
.app-status-dot {
  height: 6px;
  width: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #91a0b7;
  margin-left: auto;
}
.app-status-dot.good {
  background: var(--green);
}
.app-status-dot.warn {
  background: var(--amber);
}
.app-status-dot.bad {
  background: var(--red);
}
.account-menu {
  border: 0;
  margin: auto 0 0;
  padding: 0;
}
.account-menu > summary {
  display: none;
}
.account-menu > .sidebar-bottom {
  display: grid;
}
.sidebar-bottom {
  gap: 8px;
  padding-top: 24px;
}
.sidebar-bottom button {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 8px;
}
.sidebar-bottom button:hover,
.sidebar-bottom button[aria-current] {
  background: var(--raised);
}
.sidebar-bottom .icon {
  color: var(--muted);
}
.account-identity {
  color: var(--muted);
  padding: 2px 8px 12px;
  font-size: var(--type-meta);
  overflow-wrap: anywhere;
}
.sidebar-bottom .logout {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  border-radius: 0;
  margin-top: 5px;
}
.workspace {
  padding: 24px 28px;
  max-width: 1700px;
  margin-inline: auto;
  width: 100%;
  min-width: 0;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  min-height: 78px;
}
.page-head > div:first-child {
  min-width: 0;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: var(--type-meta);
}
.breadcrumb span:not(.icon) {
  overflow-wrap: anywhere;
}
.breadcrumb .icon {
  width: 19px;
  height: 19px;
}
.breadcrumb .icon:nth-last-child(2) {
  width: 13px;
}
.page-head p {
  margin-top: 6px;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.page-head .actions button {
  min-height: 46px;
  font-size: var(--type-control);
}
.section {
  background: var(--surface);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--glass-highlight), var(--shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  min-width: 0;
}
.section + .section {
  margin-top: 20px;
}
.assistant-grid > .section {
  margin: 0;
}
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(310px, 1fr);
  gap: var(--panel-gap);
  align-items: stretch;
}
.bento > .section {
  margin: 0;
}
.connection-card {
  background: linear-gradient(125deg, #354c7338, #1a294242 65%), var(--surface);
}
.bot-heading {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  position: relative;
  padding-right: 0;
}
.bot-avatar {
  width: 100px;
  height: 108px;
  border-radius: 24px;
  background: #e5edff;
  color: #2965ed;
}
.bot-avatar .icon {
  width: 66px;
  height: 66px;
}
.bot-identity h2 {
  font-size: 25px;
  line-height: 1.4;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
#connection-badge .badge {
  font-size: 17px;
  padding: 8px 15px;
}
#connection-badge .status-dot {
  height: 9px;
  width: 9px;
}
.bot-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.bot-actions button {
  min-height: 44px;
  font-size: 14px;
  padding: 9px 14px;
}
#live-status {
  margin-top: 21px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 64px;
}
.status-row + .status-row {
  border-top: 1px solid var(--line);
  margin-left: 62px;
  padding-top: 12px;
  margin-top: 10px;
}
.status-row + .status-row > .icon-tile {
  margin-left: -62px;
}
.status-row strong {
  font-size: 18px;
}
.status-row > .badge,
.status-row > .muted {
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.status-row > .muted {
  padding-left: 18px;
}
.status-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.status-error {
  margin-top: 14px;
}
.credential-card {
  min-width: 0;
}
.credential-facts {
  margin: 23px 0 20px;
  display: grid;
  gap: 14px;
}
.credential-facts > div {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.credential-facts dt {
  color: var(--muted);
  font-size: 15px;
}
.credential-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 550;
}
.credential-facts dd.mono {
  font-size: 13px;
}
.wide {
  width: 100%;
}
.credential-card .outline {
  color: var(--blue);
  border-color: #577fe2;
}
.credential-detail {
  margin-top: 20px;
  padding-top: 17px;
}
.recent-card,
.config-card {
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.event-row + .event-row {
  border-top: 1px solid var(--line);
}
.event-row > div {
  min-width: 0;
}
.event-row h3 {
  font-size: 16px;
}
.event-row p {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.event-row > .badge {
  margin-left: auto;
}
.config-card {
  background: linear-gradient(135deg, #7766aa12, transparent), var(--surface);
}
.config-card > p {
  color: #586b8a;
  margin: 23px 0 21px;
}
.config-detail {
  border: 0;
  padding: 0;
  margin-top: 0;
}
.config-detail summary {
  color: var(--blue);
}
.config-detail summary .chevron {
  margin-left: auto;
}
.config-detail li {
  color: var(--muted);
  margin: 10px 0;
}
.config-detail ol {
  padding-left: 20px;
  margin-bottom: 19px;
}
.config-detail a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--type-meta);
  line-height: 1.5;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf2f9;
  color: #596a85;
  white-space: nowrap;
}
.badge.good {
  background: var(--green-soft);
  color: var(--green);
}
.badge.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge.bad {
  background: var(--red-soft);
  color: var(--red);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.health {
  margin-top: 32px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.service-state {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}
.service-state.good .status-dot {
  color: var(--green);
}
.service-state.warn .status-dot {
  color: var(--amber);
}
.stack {
  display: grid;
  gap: 20px;
}
.stack label > input,
.stack label > textarea,
.stack label > select {
  margin-top: 8px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  min-height: 32px;
}
.form-width {
  max-width: 720px;
}
.form-width > p {
  margin: 10px 0 25px;
  color: var(--muted);
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
}
.form-error {
  color: var(--red);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.note {
  font-size: var(--type-support);
  color: var(--muted);
  margin-top: 14px;
}
.guide {
  background: #edf3ff;
  padding: 20px;
  border-radius: 16px;
  margin: 22px 0 0;
  color: #385982;
}
.guide p {
  margin: 9px 0 13px;
}
.guide ol {
  padding-left: 20px;
  margin: 10px 0;
}
.guide li + li {
  margin-top: 10px;
}
.binding-command {
  display: block;
  padding: 12px;
  color: var(--ink);
}
.binding-result {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.empty {
  padding: 48px 32px;
  max-width: 760px;
}
.empty h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.empty p {
  margin-bottom: 26px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 500;
}
td,
th {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td code {
  font-size: var(--type-meta);
}
.records-heading {
  margin-top: 26px;
  margin-bottom: 10px;
}
details {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
details[open] > summary > .chevron {
  transform: rotate(180deg);
}
details .stack {
  margin-top: 18px;
}
.inline-status {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.account-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.account-row:first-of-type {
  margin-top: 18px;
}
.account-row .stack {
  margin-top: 16px;
}
.scope-options {
  display: flex;
  gap: 12px 22px;
  flex-wrap: wrap;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
legend {
  padding: 0 7px;
}
.auth-wrap {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(380px, 1fr);
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 48px;
  gap: 80px;
}
.auth-brand h1 {
  font-size: var(--type-page);
  margin: 30px 0 20px;
}
.auth-brand p {
  color: var(--muted);
  font-size: 17px;
}
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.auth-panel h2 {
  font-size: var(--type-card);
  margin-bottom: 8px;
}
.auth-panel form {
  margin-top: 27px;
}
#notice {
  position: fixed;
  inset: max(16px, env(safe-area-inset-top)) 0 auto;
  margin: 0 auto;
  box-sizing: border-box;
  width: max-content;
  min-width: min(220px, calc(100% - 24px));
  max-width: min(520px, calc(100% - 24px));
  overflow: visible;
  padding: 10px 10px 15px 14px;
  border: 0;
  border-radius: 16px;
  box-shadow:
    0 5px 24px #1d365626,
    0 0 0 1px var(--line);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
#notice:popover-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.notice-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-soft);
}
.notice-mark .icon {
  width: 21px;
  height: 21px;
}
#notice.error .notice-mark {
  color: var(--red);
  background: var(--red-soft);
}
.notice-copy {
  max-height: 50dvh;
  overflow: auto;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}
#notice button {
  width: auto;
  min-height: 36px;
  padding: 5px 8px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
#notice button:is(:hover, :focus-visible) {
  background: var(--raised);
  color: var(--ink);
}
.notice-track {
  position: absolute;
  inset: auto 16px 6px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-soft);
}
.notice-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transform-origin: left;
}
@media (prefers-reduced-motion: reduce) {
  .notice-track {
    visibility: hidden;
  }
}
[hidden] {
  display: none !important;
}
@keyframes control-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes menu-enter {
  from {
    opacity: 0.75;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  input[role='switch']::before {
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .chevron {
    transition: transform 160ms ease-out;
  }
  .tenant-menu:popover-open {
    animation: menu-enter 160ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  button[data-loading] > .icon:first-child {
    animation: control-spin 800ms linear infinite;
  }
  button,
  input,
  textarea,
  select {
    transition:
      background-color 0.15s ease-out,
      border-color 0.15s ease-out,
      color 0.15s ease-out;
  }
  button:active:not(:disabled) {
    transform: translateY(1px);
  }
}
@media (min-width: 1400px) {
  .bot-heading {
    grid-template-columns: 100px minmax(0, 1fr) auto;
    column-gap: 16px;
  }
  .bot-actions {
    grid-column: auto;
    position: static;
    align-self: start;
    padding-top: 22px;
    margin: 0;
  }
  .bot-identity {
    padding-right: 0;
  }
  .bot-identity h2 {
    padding-right: 0;
    font-size: 26px;
  }

  #live-status {
    margin-top: 26px;
  }
}
@media (max-width: 1190px) {
  .shell {
    grid-template-columns: 222px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 16px;
  }
  .sidebar .brand {
    font-size: 18px;
    gap: 9px;
  }
  .workspace {
    padding: 26px 24px;
  }
  .page-head {
    flex-wrap: wrap;
    min-height: 0;
    gap: 20px;
  }
  .page-head .actions {
    flex-shrink: 1;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.9fr);
    gap: 18px;
  }
  .section {
    padding: 22px;
  }
  .bot-heading {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
  }
  .bot-avatar {
    width: 70px;
    height: 78px;
    border-radius: 20px;
  }
  .bot-avatar .icon {
    width: 48px;
    height: 48px;
  }
  .bot-identity h2 {
    font-size: 20px;
  }
  .status-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .status-row strong {
    font-size: 15px;
  }
  .status-row + .status-row {
    margin-left: 0;
  }
  .status-row + .status-row > .icon-tile {
    margin-left: 0;
  }
  .status-row > .muted {
    padding-left: 0;
    border: 0;
  }
  .event-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .event-row > .badge {
    margin-left: 60px;
  }
  .icon-heading {
    font-size: 18px;
    gap: 10px;
  }
  .credential-facts > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .credential-card {
    min-height: 0;
  }
  .section-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 960px) and (min-width: 761px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .connection-card {
    min-height: 0;
  }
  .credential-card {
    grid-row: 3;
  }
  .event-row > .badge {
    margin-left: auto;
  }
  .bot-heading {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .bot-avatar {
    width: 84px;
    height: 90px;
  }
  .credential-facts > div {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 20px 18px;
    gap: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 19px;
  }
  .sidebar .brand-mark {
    height: 38px;
    width: 38px;
    font-size: 20px;
    border-radius: 12px;
  }
  .sidebar-title {
    margin-bottom: 10px;
  }
  .sidebar-title > span {
    font-size: 13px;
  }
  .app-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-top: 12px;
    padding: 2px;
  }
  .app-button {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    max-width: 100%;
    font-size: 14px;
  }
  .app-button .app-status-dot {
    margin-left: 8px;
  }
  .account-menu {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    padding: 0;
    margin: 0;
    z-index: 5;
  }
  .account-menu > summary {
    display: flex;
    gap: 7px;
    font-size: 13px;
    padding: 8px 10px;
    background: var(--raised);
    border-radius: 12px;
  }
  .account-menu > summary .icon {
    width: 18px;
    height: 18px;
  }
  .account-menu > .sidebar-bottom {
    display: none;
  }
  .account-menu[open] > .sidebar-bottom {
    display: grid;
    position: absolute;
    right: 0;
    top: 49px;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 14px 36px #0007;
  }
  .sidebar-bottom .logout {
    padding-top: 12px;
  }
  .workspace {
    padding: 24px 18px;
  }
  .page-head {
    gap: 20px;
    margin-bottom: 24px;
  }
  .breadcrumb {
    margin-bottom: 13px;
    gap: 8px;
  }
  .breadcrumb span:last-child {
    display: none;
  }
  .breadcrumb .icon:nth-last-child(2) {
    display: none;
  }
  .page-head .actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .page-head .actions .primary {
    grid-column: 1/-1;
  }
  .page-head .actions:empty {
    display: none;
  }
  .page-head:has(.robot-breadcrumb) .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .page-head:has(.robot-breadcrumb) .actions button {
    flex: 1 0 auto;
    padding-inline: 8px;
    gap: 5px;
  }
  .section {
    padding: 22px 20px;
    border-radius: 22px;
  }
  .bento {
    display: flex;
    flex-direction: column;
    gap: 17px;
  }
  .bento > .section {
    width: 100%;
    min-height: 0;
  }
  .connection-card {
    order: 0;
  }
  .recent-card {
    order: 1;
  }
  .credential-card {
    order: 2;
  }
  .config-card {
    order: 3;
  }
  .bot-heading {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
  }
  .bot-avatar {
    width: 66px;
    height: 74px;
    border-radius: 18px;
  }
  .bot-avatar .icon {
    width: 46px;
    height: 46px;
  }
  .bot-identity h2 {
    font-size: 20px;
    margin-bottom: 9px;
  }
  #connection-badge .badge {
    font-size: 14px;
    padding: 5px 11px;
  }
  .bot-actions {
    margin-top: 8px;
    width: 100%;
  }
  .bot-actions button {
    flex: 1;
  }
  .status-row {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .status-row .icon-tile {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .status-row .icon {
    width: 24px;
    height: 24px;
  }
  .status-row strong {
    font-size: 14px;
  }
  .status-row > .muted {
    font-size: 13px;
  }
  .status-row > .badge {
    font-size: var(--type-meta);
  }
  .status-updated {
    font-size: 13px;
    margin-top: 14px;
  }
  .icon-heading {
    font-size: 19px;
  }
  .icon-heading .icon-tile {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .section-head {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .section-head .text {
    font-size: 13px;
    gap: 2px;
  }
  .section-head .text .icon {
    width: 17px;
  }
  .event-row {
    position: relative;
    gap: 11px;
    padding: 16px 0;
    flex-wrap: nowrap;
  }
  .event-row .icon-tile {
    width: 38px;
    height: 42px;
    border-radius: 12px;
  }
  .event-row .icon {
    width: 24px;
    height: 24px;
  }
  .event-row h3 {
    font-size: 14px;
  }
  .event-row p {
    font-size: 13px;
  }
  .event-row > .badge {
    font-size: var(--type-meta);
    padding: 4px 6px;
    gap: 0;
    margin-left: auto;
  }
  .event-row .badge .status-dot {
    display: none;
  }
  .credential-facts > div {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .credential-facts dd {
    font-size: 13px;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .form-actions > button {
    flex: 1;
  }
  .auth-wrap {
    display: block;
    padding: 30px 20px;
  }
  .auth-brand h1 {
    margin: 23px 0 14px;
  }
  .auth-brand p {
    font-size: 15px;
  }
  .auth-panel {
    margin-top: 30px;
    padding: 24px;
  }
  .empty {
    padding: 30px 22px;
  }
  .health {
    gap: 14px 20px;
    font-size: var(--type-meta);
    margin-top: 24px;
    padding-top: 20px;
  }
  .health .service-state {
    gap: 7px;
  }
  .table-wrap {
    overflow: visible;
  }
  table,
  tbody {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    display: grid;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  td,
  td:first-child {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
  }
  td::before {
    content: attr(data-label);
    color: var(--muted);
  }
  td .badge {
    justify-self: start;
  }
}

/* Personal memory is an operating surface: policy first, metadata only. */
.memory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr);
  gap: var(--panel-gap);
  align-items: stretch;
}
.memory-layout > .section {
  min-width: 0;
  margin: 0;
}
.memory-policy .section-head {
  flex-wrap: wrap;
}
.memory-policy > .note {
  margin-bottom: 26px;
}
.memory-guide {
  grid-column: 1 / -1;
}
.memory-stats {
  margin: 22px 0;
}
.memory-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.memory-stats dt {
  color: var(--muted);
}
.memory-stats dd {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.memory-stats dd span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.memory-overview h3 {
  margin-top: 28px;
  font-size: 16px;
}
.memory-boundaries {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}
.memory-commands {
  margin: 24px 0;
}
.memory-commands > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.memory-commands dt {
  font-weight: 600;
}
.memory-commands dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.memory-commands code {
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
@media (max-width: 1100px) {
  .memory-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .memory-commands > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Tool Center follows the existing rounded, dark workspace system. */
.mcp-history td > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mcp-history td small {
  display: block;
  margin-top: 4px;
}
.mcp-history .form-actions {
  margin-top: 10px;
}
.mcp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: var(--panel-gap);
  align-items: stretch;
}
.mcp-layout .section {
  margin: 0;
  min-width: 0;
}
.mcp-connections {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
  min-width: 0;
}
.mcp-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: var(--muted);
}
.mcp-steps strong {
  color: var(--primary);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.mcp-endpoint {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
.mcp-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}
.mcp-catalog {
  display: grid;
  gap: 12px;
}
.mcp-tool {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.mcp-tool .check {
  align-items: flex-start;
}
.mcp-tool .check input {
  flex-shrink: 0;
  margin-top: 4px;
}
.mcp-tool .check span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mcp-tool-description {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin: 8px 0;
}
.mcp-tool details {
  margin-top: 12px;
}
.mcp-tool summary,
.mcp-edit summary {
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0;
}
.mcp-tool pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
  max-height: 360px;
  overflow: auto;
}
.mcp-edit {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.mcp-edit form {
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .mcp-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .mcp-toolbar .form-actions {
    width: 100%;
  }
  .mcp-connection .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

.mcp-external {
  margin-top: 24px;
}
.knowledge-area {
  margin-top: 24px;
}
.knowledge-source,
.knowledge-result {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.knowledge-source h3,
.knowledge-result h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.knowledge-source h3:focus {
  outline: none;
}
.knowledge-source .form-actions,
.knowledge-enable {
  margin-top: 18px;
}
.knowledge-enable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.knowledge-empty {
  margin: 24px 0;
  color: var(--muted);
}
.knowledge-center details {
  margin-top: 20px;
}
.knowledge-center form {
  margin-top: 16px;
}
.knowledge-center fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.knowledge-center legend {
  margin-bottom: 12px;
}
.knowledge-center .check {
  align-items: start;
}
.knowledge-center input[type='radio'] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  flex: 0 0 20px;
  accent-color: var(--primary);
}
.knowledge-preview,
.knowledge-result pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
  font: inherit;
  line-height: 1.8;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
}
@media (max-width: 600px) {
  .knowledge-enable {
    align-items: stretch;
    flex-direction: column;
  }
}
.builtin-tools .tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 0;
}
.builtin-tools .tool-switch {
  border-bottom: 1px solid var(--line);
  border-top: 0;
}
.builtin-tools .tool-scope {
  border: 0;
  padding-top: 0;
}
.builtin-tools .attachment-settings {
  margin-top: 0;
}
.tool-runtime-settings > .inline-help {
  margin-block: 20px;
}
.builtin-tools .field-pair label {
  font-size: var(--type-control);
}
@media (max-width: 600px) {
  .builtin-tools .tool-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .builtin-tools .form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
  }
  .builtin-tools .form-actions > button[data-action='tab'] {
    grid-column: 1 / -1;
  }
}

/* Contextual explanations stay beside their control, outside the form label. */
.context-help {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
}
button.help-trigger {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}
button.help-trigger:hover,
button.help-trigger[aria-expanded='true'] {
  color: var(--ink);
  background: var(--raised);
}
.help-trigger .icon {
  width: 18px;
  height: 18px;
}
.help-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(350px, calc(100vw - 24px));
  max-height: min(480px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #1a2b42;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: auto;
}
.help-popover > strong,
.help-popover > span {
  display: block;
}
.help-popover > strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.help-popover > span {
  margin-top: 8px;
}
.field-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}
.form-field {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.field-pair > .form-field {
  grid-template-rows: 1fr auto;
}
.field-heading label {
  min-width: 0;
}
h2 > .context-help {
  margin-left: 4px;
}
/* A stretched label keeps the entire tool row clickable; help stays independent. */
.tool-switch {
  position: relative;
  cursor: default;
}
.tool-switch > .tool-copy {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.tool-copy::after {
  content: '';
  position: absolute;
  inset: 0;
}
.tool-switch > span.context-help,
.tool-switch > input {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}
.tool-switch > span.context-help {
  margin-right: -4px;
}
.tool-switch:has(input:disabled) .tool-copy {
  cursor: not-allowed;
}
.inline-help {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.memory-policy .section-head + form {
  margin-top: 20px;
}
@media (pointer: coarse), (max-width: 600px) {
  button.help-trigger {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

/* Model connections and purpose routes share the console's existing form tokens. */
.model-connection-list {
  display: grid;
}
.default-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 22px;
}
.default-connection .note {
  display: block;
}
.model-connection {
  border-top: 1px solid var(--line);
}
.model-connection,
.model-add,
.model-route {
  margin-top: 0;
  padding-top: 0;
}
.model-connection > summary,
.model-add > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  min-height: 52px;
}
.model-connection > summary > span:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.model-connection summary small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.model-connection > form,
.model-add > form {
  padding: 8px 0 24px;
  max-width: 860px;
}
.model-add {
  border-top: 1px solid var(--line);
}
.model-add > summary {
  color: var(--blue);
}
.model-add > summary .chevron {
  margin-left: auto;
}
.route-group {
  margin: 28px 0 10px;
  color: var(--muted);
  font-size: 15px;
}
.model-route {
  border-top: 1px solid var(--line);
}
.model-route > summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.6fr) auto 16px;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  min-height: 80px;
}
.route-title {
  font-weight: 600;
}
.route-current {
  min-width: 0;
}
.route-current strong {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.route-current small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.route-editor {
  padding: 0 0 24px;
  max-width: 860px;
}
.route-picker {
  min-width: 0;
  margin-top: 6px;
}
.route-picker .tenant-trigger {
  grid-template-columns: minmax(0, 1fr) 16px;
  width: 100%;
  min-height: 48px;
}
.route-picker .tenant-option {
  grid-template-columns: minmax(0, 1fr) 18px;
}
.route-picker [data-picker-name] {
  flex: 1;
  text-align: left;
  overflow-wrap: anywhere;
}
.route-model-input {
  display: flex;
  align-items: center;
  gap: 12px;
}
.route-model-input input {
  min-width: 0;
  flex: 1;
}
.route-model-input button {
  flex-shrink: 0;
}
.route-catalog:empty {
  display: none;
}
.route-catalog {
  margin-top: 16px;
}
.route-result {
  color: var(--green);
}
@media (max-width: 600px) {
  .model-route > summary {
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 10px;
    padding: 16px 0;
  }
  .route-current {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .model-route > summary > .badge {
    grid-column: 2;
    grid-row: 1;
  }
  .model-route > summary > .chevron {
    grid-column: 3;
    grid-row: 1;
  }
  .route-model-input {
    flex-direction: column;
    align-items: stretch;
  }
  .default-connection {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Transport choice changes the required form, not just its descriptive copy. */
.mcp-external .provider-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mcp-external .field-pair:has(> [data-network][hidden]) {
  grid-template-columns: 1fr;
}
@media (max-width: 700px) {
  .mcp-external .provider-choices {
    grid-template-columns: 1fr;
  }
}

/* Frosted console: one atmospheric backdrop, legible surfaces, no nested blur. */
body {
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}
* {
  scrollbar-color: #a7b8d1 #f4f8ff;
  scrollbar-width: thin;
}
.section h2,
.auth-panel h2 {
  text-wrap: balance;
}
.section .section {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth-panel {
  background: var(--surface);
  border-color: var(--glass-edge);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-highlight), var(--shadow);
}
.assistant-settings .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}
.assistant-settings .icon-heading {
  font-size: 20px;
}
.assistant-settings .field-pair {
  gap: 14px;
  margin-top: 16px;
}
.assistant-settings .command-list {
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
}
.assistant-usage {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.assistant-usage .usage-facts {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
.assistant-usage .usage-facts > div {
  display: grid;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.assistant-usage > .notice-inline {
  flex-basis: 100%;
}
.assistant-save {
  justify-content: flex-end;
}
.assistant-active-model {
  overflow-wrap: anywhere;
}
.assistant-model .provider-connection {
  margin-top: 0;
}
.knowledge-area,
.mcp-external {
  margin-top: var(--panel-gap);
}
/* Grid gap owns form rhythm; fields must not add a second top margin. */
.stack > .field-pair,
.stack > details,
.stack > .scope-options,
.stack > .note {
  margin-top: 0;
}
.stack .field-pair label > input,
.stack .field-pair label > textarea,
.stack .field-pair label > select {
  margin-top: 0;
}
.stack .field-pair > label {
  grid-template-rows: 1fr auto;
}
.stack > .primary {
  justify-self: start;
}
.memory-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.memory-stats > div {
  display: grid;
  gap: 6px;
  padding: 0 0 14px;
}
.memory-overview h3 {
  margin-top: 20px;
}
.memory-commands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 12px 0 0;
}
.memory-commands > div {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}
.memory-commands dd {
  gap: 8px;
}
.enterprise-policy form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.enterprise-policy form > label:first-child,
.enterprise-policy .form-actions,
.enterprise-policy .form-error {
  grid-column: 1 / -1;
}
.enterprise-policy form > label:first-child {
  max-width: 600px;
}
.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  align-items: start;
}
.route-list .model-route > summary {
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 6px 12px;
  padding: 16px 0;
}
.route-list .route-current {
  grid-row: 2;
  grid-column: 1 / -1;
}
.route-list .model-route > summary > .badge {
  grid-column: 2;
  grid-row: 1;
}
.route-list .model-route > summary > .chevron {
  grid-column: 3;
  grid-row: 1;
}
.route-list .model-route[open] {
  grid-column: 1 / -1;
}
.route-list:has(.model-route[open]) {
  grid-template-columns: 1fr;
}
.model-connection > form,
.model-add > form,
.route-editor {
  max-width: none;
}
@media (min-width: 1101px) {
  .assistant-model {
    display: flex;
    flex-direction: column;
  }
  .assistant-model-footer {
    margin-top: auto;
    padding-top: 16px;
  }
  .assistant-usage h2 {
    font-size: 20px;
  }
}
@media (max-width: 1100px) {
  .assistant-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'hero' 'model' 'settings' 'usage' 'save';
  }
  .assistant-usage {
    display: block;
  }
  .assistant-usage .usage-facts {
    margin-top: 20px;
  }
  .assistant-usage .usage-facts > div:first-child {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 900px) {
  .route-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  :root {
    --glass-blur: 10px;
    --panel-gap: 16px;
  }
  .section {
    padding: 20px;
  }
  .section.assistant-hero {
    padding: 20px;
  }
  .memory-commands,
  .enterprise-policy form {
    grid-template-columns: 1fr;
  }
  .assistant-save {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .assistant-usage .usage-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .assistant-usage .usage-facts > div {
    display: flex;
    padding-left: 0;
    border-left: 0;
  }
  .memory-commands > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/* Opacity is a readability fallback, not a dependency on blur support. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --surface: #ffffff;
    --sidebar: #ffffff;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root {
    --surface: #ffffff;
    --sidebar: #ffffff;
    --glass-edge: #8ca5c8;
  }
  body::before {
    background: var(--bg);
  }
  .section,
  .sidebar,
  .auth-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .section.assistant-hero,
  .connection-card,
  .config-card {
    background: var(--surface);
  }
}

/* Cognitive controls share the workbench surface; no personal memory content is exposed here. */
.cognitive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
.cognitive-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.cognitive-layout .section {
  margin-block: 0;
}
.cognitive-layout .section,
.cognitive-layout form {
  min-width: 0;
}
.cognitive-readiness,
.cognitive-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.cognitive-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
}
.cognitive-job {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cognitive-job > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.cognitive-job span,
.cognitive-job code {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.group-memory-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.knowledge-policy {
  margin-block: 20px;
}
@media (max-width: 1100px) {
  .cognitive-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .cognitive-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Interaction ecosystem: shared glass surfaces, compact disclosure-first settings. */
.social-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.social-layout .section {
  min-width: 0;
  margin: 0;
}
.social-side {
  display: grid;
  gap: 24px;
}
.social-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.social-fields label {
  min-width: 0;
}
.social-fields input {
  width: 100%;
}
.social-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-toggle .tool-switch {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: 0;
}
.social-modules > details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.social-modules summary,
.social-group-state summary,
.emoji-item summary {
  cursor: pointer;
  font-weight: 650;
  padding: 8px 0;
}
.social-modules details details {
  margin-top: 12px;
}
.social-group-state {
  margin-top: 24px;
}
.social-group-state > details {
  margin: 20px 0;
}
.social-profile {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.social-id,
.social-words,
.emoji-item code {
  overflow-wrap: anywhere;
}
.social-library {
  grid-column: 1 / -1;
}
.social-upload {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.social-upload label {
  flex: 1;
  min-width: 200px;
}
.social-upload input {
  display: block;
  margin-top: 12px;
  width: 100%;
}
.social-upload .form-error,
.social-upload .note {
  flex-basis: 100%;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.emoji-item {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.emoji-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.emoji-item-body {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}
.emoji-item-body p {
  margin: 0;
  overflow-wrap: anywhere;
}
.emoji-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.emoji-actions button {
  min-height: 40px;
  padding: 8px 12px;
}
@media (max-width: 1000px) {
  .social-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .social-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .social-upload {
    align-items: stretch;
  }
  .social-upload button {
    width: 100%;
  }
}
.social-upload input::file-selector-button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-right: 12px;
  background: var(--primary);
  color: white;
  font: inherit;
  cursor: pointer;
}
.social-policy .social-fields {
  margin: 8px 0;
}
/* Trigger parameters reuse the shared controls, with dense collapsed groups rather
   than adding a ninth workspace tab or permanently showing every explanation. */
#tracking {
  margin-top: var(--panel-gap);
}
.tracking-layout .social-fields {
  margin: 0;
}
.tracking-layout .social-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}
.tracking-layout .social-modules > details {
  margin: 0;
  padding: 8px 0;
  min-width: 0;
}
.tracking-layout .social-modules > details[open] {
  grid-column: 1/-1;
  padding-bottom: 20px;
}
.tracking-layout summary {
  justify-content: space-between;
}
.tracking-layout .social-modules .social-fields {
  margin-top: 16px;
}
@media (max-width: 600px) {
  .tracking-layout .social-modules {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Platform adaptations use the existing glass sections; details stay beside their controls. */
.platform-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.platform-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.platform-tool-row .check {
  margin: 0;
  flex: 1;
}
.platform-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.platform-capability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.platform-capability strong {
  margin-right: auto;
  font-size: 14px;
}
@media (max-width: 760px) {
  .platform-tool-grid,
  .platform-capabilities {
    grid-template-columns: 1fr;
  }
}
