:root {
  --pico-font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  --spot-ink: #1f211f;
  --spot-muted: #5f635f;
  --spot-line: rgba(80, 68, 54, 0.14);
  --spot-surface: rgba(255, 255, 255, 0.82);
  --spot-hero: linear-gradient(145deg, rgba(255, 248, 239, 0.95), rgba(246, 232, 208, 0.7));
}

@media (min-width: 1024px) {
  :root {
    --pico-font-size: 100%;
  }
}

html,
body {
  color-scheme: light;
}

body {
  min-height: 100vh;
  color: var(--spot-ink);
  background:
    radial-gradient(circle at top left, rgba(250, 196, 126, 0.55), transparent 28%),
    radial-gradient(circle at right 20%, rgba(155, 197, 182, 0.3), transparent 22%),
    linear-gradient(180deg, #fff7ec 0%, #fefdf9 48%, #fbfaf6 100%);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.shell--wide-content {
  width: calc(100% - 2rem);
}

.shell--wide-content > .topbar,
.shell--wide-content > .page-chrome,
.shell--wide-content > .banner {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.brand {
  font-family: "Arial Black", "Avenir Next Condensed", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-link {
  color: var(--spot-ink);
  text-decoration: none;
}

.brand-link:hover {
  color: var(--spot-ink);
  text-decoration: none;
}

.topbar .topbar-tagline {
  font-size: 0.84rem;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: var(--spot-muted);
  text-decoration: none;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--spot-ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--spot-line);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.7rem 0.4rem 0.45rem;
  border: 1px solid var(--spot-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--spot-ink);
  box-shadow: 0 12px 28px rgba(69, 50, 18, 0.08);
  transition: 180ms ease;
}

.user-pill--link {
  text-decoration: none;
}

.user-pill--link:hover,
.user-pill--link[aria-current="page"] {
  background: rgba(255, 252, 245, 0.94);
  border-color: rgba(114, 86, 32, 0.24);
  color: var(--spot-ink);
}

.user-pill__avatar {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(236, 184, 112, 0.92), rgba(197, 147, 79, 0.88));
  color: #38240d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.user-pill__label {
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.panel,
.spot-card,
.workspace-link,
.member-card,
.record-card {
  border: 1px solid var(--spot-line);
  background: var(--spot-surface);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(69, 50, 18, 0.08);
}

.page-chrome {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--spot-muted);
  font-size: 0.9rem;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.breadcrumbs__separator {
  opacity: 0.6;
}

.breadcrumbs__link,
.breadcrumbs__current {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--spot-ink);
}

.breadcrumbs__current {
  font-weight: 600;
}

.page-heading {
  display: flex;
  position: relative;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
  padding-right: 11rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
  flex: 1 1 auto;
  min-width: 0;
}

.page-heading__actions {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
}

.page-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding-bottom: 0.1rem;
}

.page-grid {
  display: grid;
  gap: 1rem;
}

.page-shell {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: minmax(260px, 288px) minmax(0, 1fr);
  align-items: start;
}

.page-shell--single-column {
  grid-template-columns: minmax(0, 1fr);
}

.page-shell__aside,
.page-shell__main {
  display: grid;
  gap: 1rem;
}

.page-shell__main--stacked {
  grid-auto-rows: max-content;
}

.page-grid--workspaces,
.page-grid--collection,
.page-grid--account {
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1rem;
}

.workspace-grid--wide {
  grid-template-columns: minmax(0, 280px) minmax(0, 1.4fr);
}

.workspace-grid--admin {
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}

.workspace-grid--stacked {
  grid-template-columns: 1fr;
}

.panel {
  border-radius: 1.25rem;
  padding: 1.1rem;
}

.panel > header,
.spot-card > header,
.member-card > header,
.record-card > header,
.workspace-list-card > header,
.preset-card > header,
.empty-callout > header,
.assistant-block > header,
.account-summary-card > header {
  margin: 0 0 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 0.85rem 1rem;
}

.panel-header > div:first-child {
  min-width: min(100%, 16rem);
  flex: 1 1 16rem;
}

.panel-header__action {
  margin-left: auto;
}

.panel--primary {
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(255, 249, 239, 0.88));
  box-shadow: 0 22px 54px rgba(69, 50, 18, 0.12);
}

.panel--secondary {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(69, 50, 18, 0.06);
}

.panel--muted {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 18px rgba(69, 50, 18, 0.05);
}

.panel--summary {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(69, 50, 18, 0.05);
}

.page-shell__aside .panel {
  padding: 1rem;
}

.page-shell__aside .panel h2 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.page-shell__aside .panel .section-kicker {
  margin-bottom: 0.25rem;
}

.page-shell__aside .panel .panel-shortcuts {
  display: grid;
  gap: 0.5rem;
}

.page-shell__aside .panel .panel-shortcuts > a[role="button"],
.page-shell__aside .panel .panel-shortcuts > button {
  width: 100%;
  justify-content: center;
}

.summary-stack,
.summary-card-list {
  display: grid;
  gap: 0.9rem;
}

.summary-pairs {
  display: grid;
  gap: 0.2rem;
}

.summary-pairs p,
.summary-pairs strong {
  margin: 0;
}

.summary-pairs strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spot-muted);
}

.summary-pairs p:nth-child(even) {
  padding-bottom: 0.55rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid rgba(80, 68, 54, 0.08);
}

.summary-pairs p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.panel--disclosure {
  padding-top: 0.9rem;
}

.panel--disclosure > summary {
  list-style: none;
  cursor: pointer;
}

.panel--disclosure > summary::-webkit-details-marker {
  display: none;
}

.panel-disclosure__summary {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.panel-disclosure__summary h2,
.panel-disclosure__summary h3,
.panel-disclosure__summary p {
  margin: 0;
}

.panel-disclosure__meta {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--spot-muted);
}

.panel-disclosure__body {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.inline-disclosure {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.inline-disclosure--compact {
  margin-top: 0;
  min-width: min(100%, 18rem);
}

.inline-disclosure > summary {
  list-style: none;
}

.inline-disclosure > summary::-webkit-details-marker {
  display: none;
}

.inline-disclosure__body {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.project-file-metadata-disclosure {
  margin-top: 0.2rem;
}

.project-file-metadata-disclosure__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--spot-muted);
  cursor: pointer;
}

.project-file-metadata-disclosure__summary:hover {
  color: var(--spot-text);
}

.project-files-upload-disclosure {
  margin-top: 0.2rem;
}

.workspace-list + .inline-disclosure,
.spot-list + .inline-disclosure {
  margin-top: 1rem;
}

.spot-list,
.workspace-list,
.project-form,
.member-list,
.section-stack,
.record-list,
.index-field-list {
  display: grid;
  gap: 1rem;
}

.spot-card,
.member-card,
.record-card {
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
}

.workspace-list-card {
  border: 1px solid var(--spot-line);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(69, 50, 18, 0.06);
}

.spot-card--workflow-focus {
  border-color: rgba(56, 130, 96, 0.45);
  box-shadow: 0 18px 48px rgba(50, 92, 62, 0.12);
}

.member-card--workflow-focus,
.workspace-list-card--workflow-focus {
  border-color: rgba(56, 130, 96, 0.45);
  box-shadow: 0 18px 48px rgba(50, 92, 62, 0.12);
}

.member-card,
.record-card {
  display: grid;
  gap: 0.85rem;
}

.member-actions,
.record-head,
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.assistant-conversations-toolbar > [role="button"],
.assistant-conversations-toolbar > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0;
  min-height: 2.75rem;
}

.toolbar-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}

.panel-tools {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--spot-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.42);
}

.index-field-row,
.record-editor-grid {
  display: grid;
  gap: 0.75rem;
}

.index-field-row {
  grid-template-columns: minmax(0, 1.8fr) minmax(120px, 160px) auto;
  align-items: end;
}

.code-input,
.code-block {
  width: 100%;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
}

.code-input {
  min-height: 10rem;
}

.code-block {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
  background: rgba(40, 31, 20, 0.06);
}

.code-preview {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(40, 31, 20, 0.08);
  border-radius: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
  background: rgba(40, 31, 20, 0.06);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
}

.meta-list {
  display: grid;
  gap: 0.15rem;
}

.state-card {
  min-height: 8rem;
  display: grid;
  align-content: center;
}

.state-card--loading {
  background: rgba(247, 244, 236, 0.95);
}

.state-card--info {
  background: rgba(240, 247, 255, 0.92);
}

.compact-banner {
  margin-bottom: 0.75rem;
}

.workspace-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  color: var(--spot-ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.56);
  transition: background 180ms ease, border-color 180ms ease;
}

.workspace-link span {
  display: grid;
  gap: 0.2rem;
}

.workspace-link small {
  color: var(--spot-muted);
}

.workspace-link:hover {
  background: rgba(255, 252, 245, 0.78);
  border-color: rgba(114, 86, 32, 0.18);
}

.workspace-link[aria-current="page"] {
  background: rgba(255, 249, 239, 0.94);
  border-color: rgba(114, 86, 32, 0.28);
  box-shadow: inset 0 0 0 1px rgba(114, 86, 32, 0.08);
}

.spot-card h3,
.member-card h3,
.record-card h3 {
  margin-bottom: 0.35rem;
}

.spot-card p:last-child,
.member-card p:last-child,
.record-card p:last-child {
  margin-bottom: 0;
}

.starter-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.starter-card-header > div:first-child {
  min-width: min(100%, 16rem);
  flex: 1 1 16rem;
}

.starter-card-meta {
  margin-bottom: 0;
}

.starter-card-actions {
  margin-left: auto;
}

.meta {
  color: var(--spot-muted);
  font-size: 0.95rem;
}

.workflow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.workflow-pill--success {
  background: rgba(219, 244, 231, 0.95);
  color: #1d5a37;
}

.workflow-pill--info {
  background: rgba(229, 240, 255, 0.95);
  color: #295489;
}

.workflow-pill--warning {
  background: rgba(255, 240, 219, 0.95);
  color: #8a4c1d;
}

.assistant-home-block {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.assistant-home-queue,
.assistant-home-actions {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.assistant-home-action-item {
  display: grid;
  gap: 0.4rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--spot-line);
}

.assistant-home-action-item:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.stack {
  display: grid;
  gap: 0.35rem;
}

.banner {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--spot-line);
}

.banner__eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spot-muted);
}

.banner__body {
  display: grid;
  gap: 0.45rem;
}

.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.banner__actions > .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.banner--info {
  background: rgba(242, 248, 255, 0.85);
}

.banner--error {
  background: rgba(255, 236, 233, 0.88);
}

.banner--actionable {
  box-shadow: 0 12px 28px rgba(40, 55, 88, 0.08);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: #7a5d30;
  margin-bottom: 0.4rem;
}

.danger-button {
  border-color: rgba(170, 63, 35, 0.32);
  color: #8f3521;
}

.danger-button:hover,
.danger-button:focus-visible {
  border-color: rgba(170, 63, 35, 0.42);
  background: rgba(255, 243, 239, 0.92);
}

.summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.summary-card {
  min-height: 100%;
}

.summary-grid--project-home {
  gap: 0.55rem;
}

.summary-card--compact {
  padding: 0.72rem 0.78rem;
  gap: 0.45rem;
}

.summary-card--compact > div {
  display: grid;
  gap: 0.2rem;
}

.summary-card--compact strong,
.summary-card--compact p {
  margin: 0;
}

.runtime-meta-grid {
  gap: 0.35rem 0.8rem;
  margin-bottom: 0.9rem;
}

.runtime-reference {
  margin-top: 0.35rem;
}

.runtime-reference summary {
  font-weight: 700;
}

.runtime-two-column {
  align-items: start;
}

.runtime-list-panel,
.runtime-detail-panel {
  min-height: 100%;
}

.runtime-audit-payload {
  margin-top: 0.55rem;
}

.panel-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0 1rem;
}

.record-selection-toolbar > .toolbar-row:last-child {
  gap: 0.75rem;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6530;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-nav a,
.section-nav button {
  white-space: nowrap;
}

.panel-shortcuts .meta {
  margin: 0;
}

.toolbar-row--start {
  justify-content: flex-start;
}

.empty-callout {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(114, 86, 32, 0.26);
  border-radius: 1rem;
  background: rgba(255, 252, 246, 0.82);
}

.empty-callout h3,
.empty-callout p {
  margin: 0;
}

.empty-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

a[role="button"] {
  text-decoration: none;
}

.empty-callout__actions > a[role="button"],
.empty-callout__actions > button {
  margin-bottom: 0;
}

.panel-section {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(80, 68, 54, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.54);
}

.panel-section > header {
  display: grid;
  gap: 0.2rem;
}

.panel-section > header h3,
.panel-section > header p {
  margin: 0;
}

.form-cluster {
  display: grid;
  gap: 0.85rem;
}

.form-cluster--dense {
  gap: 0.65rem;
}

.field-hint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.shortcut-link {
  white-space: nowrap;
}

.focus-ring-target {
  outline: 3px solid rgba(74, 122, 201, 0.22);
  outline-offset: 6px;
  animation: spotPulse 1.4s ease;
}

@keyframes spotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 122, 201, 0.18);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(74, 122, 201, 0);
  }
}

@media (max-width: 980px) {
  .page-shell,
  .page-grid--workspaces,
  .page-grid--collection,
  .workspace-grid,
  .workspace-grid--wide,
  .workspace-grid--admin,
  .workspace-grid--stacked,
  .index-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-link,
  .member-actions,
  .record-head,
  .toolbar-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.preset-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.preset-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--spot-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.preset-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.preset-card--active {
  border-color: rgba(164, 113, 66, 0.38);
  background: rgba(255, 248, 237, 0.92);
}
.record-filter-list {
  display: grid;
  gap: 0.85rem;
}

.record-filter-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: end;
  padding: 0.9rem;
  border: 1px solid var(--spot-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.preset-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.preset-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--spot-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}
.collection-subsection {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.collection-subsection > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.collection-subsection > summary::-webkit-details-marker {
  display: none;
}

.integration-settings-disclosure > summary {
  list-style: none;
}

.integration-settings-disclosure > summary::-webkit-details-marker {
  display: none;
}

.integration-settings-disclosure__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.integration-settings-disclosure__summary strong,
.integration-settings-disclosure__summary p {
  margin: 0;
}

.integration-settings-disclosure__status {
  display: grid;
  gap: 0.15rem;
  margin-left: auto;
  justify-items: end;
  text-align: right;
  align-self: flex-start;
  align-content: start;
}

.integration-settings-disclosure__status > strong {
  display: block;
  min-height: 1.3rem;
  line-height: 1.2;
}

.integration-settings-disclosure__status > .meta {
  min-height: 2.5rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .integration-settings-disclosure__summary {
    flex-direction: column;
  }

  .integration-settings-disclosure__status {
    justify-items: end;
    text-align: right;
  }

  .integration-settings-disclosure__status > .meta {
    min-height: 0;
  }
}

.collection-section-primary {
  order: 1;
}

.collection-section-secondary {
  order: 2;
}

.record-selection-toolbar {
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--spot-line);
  border-bottom: 1px solid var(--spot-line);
}

.record-card--selected,
.workspace-list-card--selected {
  border-color: rgba(74, 122, 201, 0.32);
  box-shadow: 0 18px 48px rgba(54, 76, 124, 0.12);
}

.record-title-row {
  display: grid;
  gap: 0.35rem;
}

.record-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.record-selector input {
  margin: 0;
}
.page-grid--assistant {
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}

.page-grid--assistant-section {
  grid-template-columns: minmax(0, 1fr);
}

.page-grid--account {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.workspace-grid--assistant {
  grid-template-columns: minmax(0, 1fr);
}

.assistant-chat-panel {
  gap: 0.9rem;
}

.assistant-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
}

.assistant-chat-head strong {
  font-size: 1rem;
}

.assistant-thread,
.assistant-block-list {
  display: grid;
  gap: 1rem;
}

#assistant-workspace-overview-panel {
  order: 1;
}

#assistant-thread-panel {
  order: 2;
}

#assistant-inbox-panel {
  order: 3;
}

#assistant-work-items-panel {
  order: 4;
}

#assistant-review-queue-panel {
  order: 5;
}

#assistant-intent-telemetry-panel {
  order: 5;
}

.assistant-secondary-panel {
  order: 6;
}

.runtime-telemetry-events {
  margin-top: 0.75rem;
}

.runtime-telemetry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0.35rem;
}

.runtime-telemetry-badges .workflow-pill {
  margin-bottom: 0;
}

.assistant-conversation-intro {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.assistant-conversation-intro h2,
.assistant-conversation-intro p {
  margin: 0;
}

.workspace-link-list-item {
  position: relative;
}

.thread-row-menu {
  margin: 0;
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
}

.thread-row-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(116, 103, 88, 0.64);
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  opacity: 1;
  transition: opacity 140ms ease;
}

.thread-row-menu__toggle:hover,
.thread-row-menu__toggle:focus-visible {
  color: rgba(88, 72, 44, 0.9);
  background: transparent;
  box-shadow: none;
  outline: none;
}

.thread-row-menu__toggle svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.thread-row-menu__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  transition: opacity 140ms ease;
}

.thread-row-menu--open .thread-row-menu__actions,
.thread-row-menu:focus-within .thread-row-menu__actions,
.workspace-link-list-item:hover .thread-row-menu__actions {
  opacity: 1;
  pointer-events: auto;
}

.thread-row-menu--open .thread-row-menu__toggle,
.thread-row-menu:focus-within .thread-row-menu__toggle,
.workspace-link-list-item:hover .thread-row-menu__toggle {
  opacity: 0;
  pointer-events: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 999px;
}

.workspace-link-list-item .workspace-link {
  padding-right: 3.6rem;
}

.icon-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.page-help-popover {
  position: relative;
  display: inline-block;
}

.page-help-popover > summary {
  list-style: none;
}

.page-help-popover > summary::-webkit-details-marker {
  display: none;
}

.page-help-popover__summary {
  color: rgba(78, 65, 49, 0.82);
  border-color: rgba(130, 108, 76, 0.24);
  background: rgba(255, 252, 246, 0.92);
  font-weight: 700;
  font-size: 0.96rem;
}

.page-help-popover__summary:hover,
.page-help-popover__summary:focus-visible,
.page-help-popover[open] .page-help-popover__summary {
  color: rgba(78, 65, 49, 0.96);
  border-color: rgba(130, 108, 76, 0.36);
  background: rgba(255, 250, 240, 0.98);
}

.page-help-popover__content {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 12;
  width: min(24rem, calc(100vw - 3rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(130, 108, 76, 0.2);
  border-radius: 0.95rem;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 18px 36px rgba(66, 49, 25, 0.12);
}

.page-help-popover__content h3 {
  margin-bottom: 0.4rem;
}

.page-help-popover__content .meta {
  margin-bottom: 0.55rem;
}

.page-help-popover--global {
  position: relative;
}

.page-help-popover__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 108, 76, 0.18);
  background: rgba(255, 252, 246, 0.72);
  color: rgba(92, 77, 58, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
}

.page-help-popover__trigger:hover,
.page-help-popover__trigger:focus-visible,
.page-help-popover--global[open] .page-help-popover__trigger {
  color: rgba(78, 65, 49, 0.9);
  border-color: rgba(130, 108, 76, 0.28);
  background: rgba(255, 250, 240, 0.9);
}

@media (max-width: 720px) {
  .page-heading {
    padding-right: 0;
  }

  .page-heading__actions {
    position: static;
    margin-left: auto;
  }
}

.assistant-message-form__tip {
  margin: 0;
}

.account-shell {
  display: grid;
  gap: 1rem;
}

.account-inline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.45rem;
  color: rgba(87, 73, 56, 0.8);
  font-size: 0.92rem;
}

.account-inline-summary__item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(80, 68, 54, 0.08);
  line-height: 1.25;
}

.account-inline-summary__item strong {
  font-size: 0.93rem;
  color: rgba(50, 39, 26, 0.92);
}

.account-section-heading {
  margin: 0.4rem 0 0.9rem;
}

.account-section-heading h3 {
  margin: 0;
}

.account-summary-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.account-summary-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(80, 68, 54, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
}

.account-section {
  display: grid;
  gap: 0.85rem;
}

.account-section h3,
.account-section p {
  margin: 0;
}

.account-section > summary {
  cursor: pointer;
  font-weight: 700;
}

.auth-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-mode-tabs--account {
  margin-bottom: 0.25rem;
}

.assistant-workspace-tabs {
  margin-top: 1rem;
}

.assistant-section-nav {
  margin-top: -0.75rem;
  margin-bottom: 0.2rem;
}

.page-grid--assistant > .assistant-section-nav {
  grid-column: 1 / -1;
}

.assistant-section-nav--subtle {
  gap: 0.35rem;
  padding-bottom: 0;
}

.assistant-section-nav--subtle .auth-mode-tab {
  font-size: 0.88rem;
  border-color: rgba(80, 68, 54, 0.08);
  background: rgba(255, 255, 255, 0.46);
}

.assistant-section-nav--subtle .auth-mode-tab:hover {
  border-color: rgba(114, 86, 32, 0.18);
  background: rgba(255, 252, 245, 0.78);
}

.assistant-section-nav--subtle .auth-mode-tab--active,
.assistant-section-nav--subtle .auth-mode-tab[aria-selected="true"] {
  border-color: rgba(160, 110, 37, 0.34);
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.98), rgba(247, 231, 202, 0.95));
  box-shadow: 0 12px 24px rgba(122, 84, 27, 0.14);
  color: #4a3111;
  font-weight: 700;
}

.assistant-thread-composer {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.6rem;
  padding-top: 0;
}

.assistant-thread-composer__status {
  gap: 0.75rem;
}

.assistant-inline-banner {
  margin-bottom: 0;
}

.assistant-message-form__icon-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.75rem;
  min-width: 2.75rem;
  max-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  align-self: end;
}

.project-files-upload__icon-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.75rem;
  min-width: 2.75rem;
  max-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
}

.assistant-message-form__toolbar,
.project-files-upload__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.assistant-message-form__attachments,
.project-files-upload__attachments {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.assistant-message-form__attach-button,
.project-files-upload__attach-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid rgba(80, 68, 54, 0.16);
  border-color: rgba(80, 68, 54, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(79, 68, 56, 0.82);
  box-shadow: 0 4px 14px rgba(69, 50, 18, 0.04);
  cursor: pointer;
  text-decoration: none;
}

.assistant-message-form__attach-button:hover,
.assistant-message-form__attach-button:focus-visible,
.project-files-upload__attach-button:hover,
.project-files-upload__attach-button:focus-visible {
  border-color: rgba(80, 68, 54, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--spot-ink);
}

.assistant-message-form__icon-button--disabled,
.project-files-upload__icon-button--disabled {
  opacity: 0.55;
}

.assistant-message-form__file-input,
.project-files-upload__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.assistant-message-form__badge,
.project-files-upload__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  background: rgba(160, 110, 37, 0.14);
  border: 1px solid rgba(160, 110, 37, 0.24);
  color: #6b4310;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.assistant-message-form__selected-files,
.project-files-upload__selected-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.assistant-message-form__selected-file,
.project-files-upload__selected-file {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0 0.35rem 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 68, 54, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.assistant-message-form__selected-file-copy,
.project-files-upload__selected-file-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.assistant-message-form__selected-file-copy strong,
.assistant-message-form__selected-file-copy span,
.project-files-upload__selected-file-copy strong,
.project-files-upload__selected-file-copy span {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-message-form__selected-file-copy strong,
.project-files-upload__selected-file-copy strong {
  font-size: 0.9rem;
}

.assistant-message-form__selected-file-copy span,
.project-files-upload__selected-file-copy span {
  color: var(--spot-muted);
  font-size: 0.8rem;
}

.assistant-message-form__remove-file,
.project-files-upload__remove-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  place-self: center;
  width: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 0.82rem;
  vertical-align: middle;
}

.project-files-upload__tip {
  margin: 0;
}

.assistant-thread-composer textarea {
  min-height: 96px;
  margin: 0;
}

.upload-dropzone {
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.upload-dropzone--active {
  box-shadow: 0 0 0 2px rgba(160, 110, 37, 0.18);
}

.upload-dropzone--active .assistant-message-form__attach-button,
.upload-dropzone--active .project-files-upload__attach-button,
.upload-dropzone--active > summary.secondary.outline {
  border-color: rgba(160, 110, 37, 0.36);
  background: rgba(255, 251, 244, 0.96);
  color: var(--spot-ink);
}

.assistant-section-stack {
  display: grid;
  gap: 0.9rem;
}

.assistant-section-stack > .panel {
  padding: 1rem 1.05rem;
}

.assistant-section-stack > .panel > header h2 {
  font-size: 1.1rem;
}

.assistant-run-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.assistant-run-summary__card {
  display: grid;
  gap: 0.15rem;
}

.auth-mode-tab {
  border-color: rgba(80, 68, 54, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--spot-muted);
  box-shadow: none;
  transition: 180ms ease;
}

.auth-mode-tab:hover {
  border-color: rgba(114, 86, 32, 0.24);
  background: rgba(255, 252, 245, 0.92);
  color: var(--spot-ink);
}

.auth-mode-tab--active,
.auth-mode-tab[aria-selected="true"],
.auth-mode-tab[aria-pressed="true"] {
  border-color: rgba(160, 110, 37, 0.34);
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.98), rgba(247, 231, 202, 0.95));
  color: #4a3111;
  box-shadow: 0 12px 24px rgba(122, 84, 27, 0.14);
  font-weight: 700;
}

.helper-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
}

.assistant-message {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--spot-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.assistant-message--assistant {
  background: rgba(244, 248, 255, 0.92);
}

.assistant-message--user {
  background: rgba(255, 251, 244, 0.95);
}

.assistant-message--streaming {
  border-color: rgba(97, 138, 212, 0.36);
  box-shadow: 0 8px 24px rgba(80, 111, 165, 0.08);
}

.assistant-message-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.assistant-message-body {
  display: grid;
  gap: 0.9rem;
}

.assistant-stream-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(97, 138, 212, 0.26);
  border-radius: 999px;
  background: rgba(235, 243, 255, 0.82);
}

.assistant-stream-indicator--inline {
  padding: 0.45rem 0.7rem;
  border-radius: 0.85rem;
  background: rgba(235, 243, 255, 0.68);
}

.assistant-stream-indicator__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.assistant-stream-indicator__dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(72, 104, 166, 0.82);
  animation: assistant-stream-pulse 1.2s ease-in-out infinite;
}

.assistant-stream-indicator__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.assistant-stream-indicator__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.assistant-stream-indicator__label {
  color: rgba(46, 68, 108, 0.92);
  font-weight: 600;
  line-height: 1.35;
}

@keyframes assistant-stream-pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.assistant-block {
  padding: 0.9rem 1rem;
  border: 1px solid var(--spot-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.assistant-block h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.25;
  font-weight: 700;
}

.assistant-block > h3,
.assistant-block > header {
  margin-bottom: 0.72rem;
}

.assistant-block--metric strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
}

.assistant-block--notice {
  font-weight: 600;
}

.assistant-block--warning {
  background: rgba(255, 243, 224, 0.95);
}

.assistant-block--info {
  background: rgba(240, 247, 255, 0.95);
}

.assistant-block--success {
  background: rgba(240, 249, 241, 0.95);
}

.assistant-block--draft {
  display: grid;
  gap: 0.7rem;
}

.assistant-block--chart {
  display: grid;
  gap: 0.85rem;
}

.assistant-chart__meta {
  margin: -0.25rem 0 0;
  color: rgba(72, 88, 114, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
}

.assistant-chart {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(129, 148, 179, 0.24);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.94) 38%, rgba(236, 242, 251, 0.94)),
    linear-gradient(180deg, rgba(246, 249, 255, 0.94), rgba(238, 243, 251, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.assistant-chart__overview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding: 0.8rem 0.8rem 0;
}

.assistant-chart__stat {
  display: grid;
  gap: 0.08rem;
  min-width: 4.8rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(129, 148, 179, 0.18);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.58);
}

.assistant-chart__stat strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.assistant-chart__stat span {
  color: rgba(72, 88, 114, 0.86);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assistant-chart__reset {
  margin-left: auto;
}

.assistant-chart__frame {
  position: relative;
}

.assistant-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.assistant-chart__svg text {
  font-family: inherit;
}

.assistant-chart__grid {
  stroke: rgba(133, 148, 177, 0.24);
  stroke-width: 1;
}

.assistant-chart__axis-label {
  fill: rgba(83, 95, 118, 0.82);
  font-size: 12px;
}

.assistant-chart__axis-label--x {
  text-anchor: middle;
}

.assistant-chart__value-label {
  fill: rgba(26, 37, 56, 0.92);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
}

.assistant-chart__bar {
  fill: var(--assistant-chart-color, rgba(76, 120, 168, 0.92));
  transition: opacity 140ms ease, transform 140ms ease;
  transform-origin: center bottom;
}

.assistant-chart__area {
  fill: rgba(76, 120, 168, 0.14);
}

.assistant-chart__line {
  fill: none;
  stroke: rgba(76, 120, 168, 0.96);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 140ms ease;
}

.assistant-chart__point {
  fill: var(--assistant-chart-color, rgba(249, 115, 22, 0.96));
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.5;
  transition: opacity 140ms ease, transform 140ms ease;
}

.assistant-chart__pie-layout {
  display: grid;
  gap: 0.8rem;
  padding: 0.75rem;
}

.assistant-chart__svg--pie {
  min-height: 15rem;
}

.assistant-chart__legend {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-chart__legend li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.assistant-chart__legend--toggleable {
  padding: 0 0.75rem 0.75rem;
}

.assistant-chart__legend-button {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(129, 148, 179, 0.16);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.52);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.assistant-chart__legend-button:hover,
.assistant-chart__legend-button:focus-visible,
.assistant-chart__legend-button.is-active {
  border-color: rgba(77, 112, 177, 0.32);
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

.assistant-chart__legend-button.is-muted {
  opacity: 0.55;
}

.assistant-chart__legend-swatch {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--assistant-chart-color, rgba(76, 120, 168, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.assistant-chart__legend-copy {
  display: grid;
  gap: 0.12rem;
}

.assistant-chart__legend-copy strong {
  font-size: 0.92rem;
}

.assistant-chart__legend-copy span {
  color: rgba(72, 88, 114, 0.88);
  font-size: 0.82rem;
}

.assistant-chart__interactive-target {
  cursor: pointer;
  outline: none;
}

.assistant-chart__interactive-target.is-hidden,
.assistant-chart [data-chart-label-index].is-hidden,
.assistant-chart [data-chart-axis-index].is-hidden {
  opacity: 0;
  pointer-events: none;
}

.assistant-chart__interactive-target.is-active,
.assistant-chart__interactive-target:hover,
.assistant-chart__interactive-target:focus-visible {
  opacity: 1;
}

.assistant-chart__bar.is-active,
.assistant-chart__bar:hover,
.assistant-chart__bar:focus-visible,
.assistant-chart__point.is-active {
  transform: translateY(-2px);
}

.assistant-chart__point-hit {
  fill: transparent;
}

.assistant-chart__pie-segment {
  transition: opacity 140ms ease, transform 140ms ease;
  transform-origin: center;
}

.assistant-chart__pie-segment.is-active,
.assistant-chart__pie-segment:hover,
.assistant-chart__pie-segment:focus-visible {
  transform: scale(1.02);
}

.assistant-chart__tooltip {
  position: absolute;
  z-index: 2;
  min-width: 8.5rem;
  max-width: min(18rem, calc(100% - 1.5rem));
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(34, 51, 84, 0.18);
  border-radius: 0.8rem;
  background: rgba(21, 31, 48, 0.94);
  color: rgba(245, 248, 255, 0.98);
  box-shadow: 0 16px 36px rgba(20, 32, 53, 0.18);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 0.7rem));
}

.assistant-chart__tooltip strong,
.assistant-chart__tooltip span {
  display: block;
}

.assistant-chart__tooltip strong {
  font-size: 0.82rem;
}

.assistant-chart__tooltip span {
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: rgba(213, 223, 240, 0.94);
}

.assistant-action-previews {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.assistant-list--draft {
  display: grid;
  gap: 0.55rem;
}

.assistant-list__item--missing .assistant-list__pair strong,
.assistant-list__item--missing strong {
  color: rgba(150, 72, 18, 0.95);
}

.assistant-list__item--missing .assistant-list__pair span,
.assistant-list__item--missing .meta {
  font-weight: 600;
}

.assistant-list__summary,
.assistant-list__candidate {
  display: grid;
  gap: 0.15rem;
}

.assistant-list__candidate strong {
  color: rgba(64, 52, 38, 0.86);
}

.assistant-block__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(122, 84, 27, 0.82);
}

.assistant-draft-actions {
  margin-top: 0.15rem;
}

.assistant-list__pair {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
}

.assistant-list__item--attachment-image {
  display: grid;
  gap: 0.7rem;
}

.assistant-attachment-preview {
  display: block;
  width: min(100%, 28rem);
  overflow: hidden;
  border: 1px solid rgba(129, 148, 179, 0.28);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(238, 243, 251, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.assistant-attachment-preview--button {
  padding: 0;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.assistant-attachment-preview--button:hover,
.assistant-attachment-preview--button:focus-visible {
  border-color: rgba(79, 115, 181, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 24px rgba(70, 97, 150, 0.12);
  transform: translateY(-1px);
}

.assistant-attachment-preview img {
  display: block;
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(191, 203, 222, 0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(191, 203, 222, 0.18) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(191, 203, 222, 0.18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(191, 203, 222, 0.18) 75%);
  background-position: 0 0, 0 0.5rem, 0.5rem -0.5rem, -0.5rem 0;
  background-size: 1rem 1rem;
}

.assistant-attachment-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(35, 82, 138, 0.96);
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.assistant-attachment-link:hover,
.assistant-attachment-link:focus-visible {
  color: rgba(24, 62, 108, 0.96);
}

.assistant-table-wrap {
  overflow-x: auto;
}

.assistant-table {
  width: 100%;
  margin: 0;
  font-size: 0.92rem;
}

@media (min-width: 880px) {
  .assistant-chart__pie-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 1fr);
    align-items: center;
  }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.collection-table {
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}

.collection-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(253, 250, 244, 0.98);
  backdrop-filter: blur(10px);
}

.collection-table th,
.collection-table td {
  vertical-align: top;
  white-space: nowrap;
  max-width: 420px;
}

.collection-table th button {
  margin: 0;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.collection-table td {
  background: rgba(255, 255, 255, 0.76);
}

.collection-grid-table td,
.collection-grid-table th {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.collection-grid-table .form-cluster--dense {
  gap: 0.25rem;
}

<<<<<<< ours
<<<<<<< ours
<<<<<<< ours
.collection-grid-table .field-hint-row {
  gap: 0.35rem;
}

.collection-grid-table .field-hint-row .meta,
.collection-grid-table .field-hint-row .shortcut-link {
  font-size: 0.72rem;
  line-height: 1.1;
}

.collection-grid-table .collection-grid-record-meta-time {
  font-size: 0.76rem;
  line-height: 1.1;
}

=======
>>>>>>> theirs
=======
>>>>>>> theirs
=======
>>>>>>> theirs
.collection-grid-table [data-record-editor-field] {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.collection-grid-table [data-record-field-input] {
  margin: 0;
}

.collection-grid-table input[data-record-field-input],
.collection-grid-table select[data-record-field-input] {
  height: 2.1rem;
  min-height: 2.1rem;
  margin-bottom: 0;
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
  line-height: 1.2;
}

.collection-table__sticky {
  position: sticky;
  z-index: 1;
  background: rgba(253, 250, 244, 0.98);
}

.collection-table td.collection-table__sticky,
.collection-table th.collection-table__sticky {
  box-shadow: 1px 0 0 rgba(80, 68, 54, 0.08);
}

.collection-table tbody tr:hover td {
  background: rgba(255, 251, 244, 0.96);
}

.collection-table__row--active td {
  background: rgba(255, 246, 228, 0.98);
}

.collection-table__row--dirty td {
  background: rgba(255, 249, 237, 0.96);
}

.collection-table__row--invalid td {
  background: rgba(255, 241, 238, 0.96);
}

.collection-table__row--new td {
  background: rgba(250, 247, 240, 0.98);
}

.collection-table__cell--dirty {
  box-shadow: inset 0 0 0 1px rgba(176, 124, 22, 0.28);
}

.collection-table__cell--invalid {
  box-shadow: inset 0 0 0 1px rgba(180, 76, 50, 0.34);
}

.collection-table td.collection-table__cell--dirty input,
.collection-table td.collection-table__cell--dirty select {
  border-color: rgba(176, 124, 22, 0.5);
  background: rgba(255, 252, 245, 0.98);
}

.collection-table td.collection-table__cell--invalid input,
.collection-table td.collection-table__cell--invalid select {
  border-color: rgba(180, 76, 50, 0.6);
  background: rgba(255, 247, 245, 0.98);
}

.collection-grid-column-tools {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.3rem;
}

.collection-grid-column-tools .secondary {
  margin: 0;
  padding: 0.18rem 0.38rem;
  min-width: 2rem;
}

.collection-grid-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
}

.collection-table td.collection-grid-row-actions-cell {
  vertical-align: middle;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.collection-table td.collection-grid-row-actions-cell .collection-grid-row-actions {
  display: flex;
  justify-content: center;
}

.collection-grid-row-actions .icon-button {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
}

.summary-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-bottom: 1rem;
}

.summary-strip__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(80, 68, 54, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}

.summary-strip__item strong {
  font-size: 1.05rem;
}

.record-tools-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.record-tools-row--secondary {
  margin-top: 1rem;
}

.record-tools-row > details {
  min-width: 0;
}

.collection-grid-wrap {
  margin-top: 0.35rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 68, 54, 0.12);
  background: rgba(255, 248, 237, 0.95);
  font-size: 0.76rem;
  color: rgba(80, 68, 54, 0.86);
}

.integration-recipient-editor {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.integration-recipient-editor__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2rem;
}

.integration-recipient-chip {
  gap: 0.4rem;
  padding-right: 0.18rem;
}

.integration-recipient-chip__remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.1rem 0.22rem;
  border-radius: 999px;
  cursor: pointer;
}

.integration-recipient-chip__remove:hover {
  background: rgba(80, 68, 54, 0.08);
}

.integration-delivery-list {
  display: grid;
  gap: 0.65rem;
}

.integration-delivery-list .member-card {
  gap: 0.35rem;
}

.relation-preview-popover {
  position: relative;
}

.relation-preview-popover > summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: rgba(80, 68, 54, 0.86);
}

.relation-preview-popover[open] {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(80, 68, 54, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 252, 248, 0.98);
}

.collection-subsection--preview {
  border: 1px solid rgba(80, 68, 54, 0.08);
  border-radius: 1rem;
  padding: 0.85rem;
  background: rgba(255, 250, 244, 0.82);
}

.collection-preview-row--excluded {
  opacity: 0.72;
}

.collection-preview-row--excluded summary {
  text-decoration: line-through;
}

.collection-relation-drawer {
  margin-top: 1rem;
  border: 1px solid rgba(80, 68, 54, 0.12);
  background: rgba(255, 251, 244, 0.96);
}

.collection-relation-drawer__editor {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(80, 68, 54, 0.08);
}

.collection-record-detail-panel {
  position: relative;
  margin-top: 1rem;
  border: 1px solid rgba(80, 68, 54, 0.12);
  box-shadow: 0 18px 44px rgba(80, 68, 54, 0.12);
}

.detail-tab-row {
  flex-wrap: wrap;
}

.preset-card--compact {
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
}

.assistant-trace {
  border-top: 1px solid var(--spot-line);
  padding-top: 0.75rem;
}

.assistant-trace-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(80, 68, 54, 0.08);
}

.assistant-trace-item:last-child {
  border-bottom: 0;
}

.review-queue-list {
  display: grid;
  gap: 0.85rem;
}

.review-queue-meta {
  display: grid;
  gap: 0.35rem;
}

.compact-form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: start;
}

.record-list--compact .record-card {
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
}

.record-list--compact details > summary {
  font-size: 0.95rem;
}

.assistant-home-block > header {
  display: grid;
  gap: 0.2rem;
}

.assistant-home-block > header h3,
.assistant-home-block > header p {
  margin: 0;
}

@media (max-width: 980px) {
  .page-grid--assistant,
  .workspace-grid--assistant,
  .page-grid--account,
  .page-shell {
    grid-template-columns: 1fr;
  }
}


.schema-builder-list {
  display: grid;
  gap: 0.85rem;
}

.schema-builder-row {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.9rem;
  border: 1px solid var(--spot-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.schema-builder-row__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
}

.schema-builder-row__header strong {
  display: block;
  margin-bottom: 0.1rem;
}

.schema-builder-row__header .meta {
  margin: 0;
}

.schema-builder-row__main,
.schema-builder-row__advanced {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
}

.schema-builder-row__advanced {
  padding-top: 0.2rem;
}

.schema-builder-advanced {
  margin-top: 0.1rem;
}

.schema-builder-row__advanced .schema-builder-textarea textarea {
  min-height: 8.5rem;
}

.schema-builder-toggle {
  display: grid;
  gap: 0.45rem;
  align-self: stretch;
}

.schema-builder-toggle input {
  margin: 0;
  justify-self: start;
}

@media (max-width: 980px) {
  .summary-grid,
  .compact-form-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 1rem, 1180px);
  }
}

@media (min-width: 981px) {
  .summary-grid--project-home {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .assistant-message-head,
  .banner__actions,
  .empty-callout__actions,
  .panel-shortcuts,
  .panel-disclosure__summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-filter-row,
  .schema-builder-row,
  .toolbar-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 0.95rem;
  }

  .collection-record-detail-panel {
    position: static;
  }
}
