/* Reference alignment: verified Toolzz workspace screenshots, 2026-11-05.
   Agentia branding and existing API behavior remain independent. */
:root {
  color-scheme: light;
  --bg: #f8f9fb;
  --surface: #fff;
  --line: #e7e8eb;
  --text: #202124;
  --muted: #71757d;
  --accent: #111;
  --gold: #756128;
  --green: #179b5b;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  background: var(--bg);
}
button,
.button {
  background: #fff;
  color: #24262b;
  border-color: #dedfe3;
  border-radius: 6px;
  box-shadow: none;
}
button:hover,
.button:hover {
  background: #f2f3f5;
}
.primary {
  color: #fff;
  background: #111;
  border-color: #111;
}
.primary:hover {
  background: #2c2c2c;
  border-color: #2c2c2c;
}
.quiet {
  background: transparent;
}
a {
  color: #333;
}
.shell {
  grid-template-columns: 240px minmax(0, 1fr);
}
.sidebar {
  width: 240px;
  padding: 16px 12px 12px;
  background: #fff;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 6px;
  margin-bottom: 18px;
}
.sidebar .brand {
  margin: 0;
  gap: 10px;
  font-size: 16px;
  letter-spacing: 0;
  flex: 1;
  white-space: nowrap;
}
.brandmark {
  background: #3d1029;
  border: 0;
  color: #fd2b90;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  width: 31px;
  height: 32px;
}
.collapse-nav {
  padding: 3px;
  width: 22px;
  height: 26px;
  border-radius: 50%;
  border-color: #e5e5e5;
  font-size: 21px;
  line-height: 18px;
}
.create-ai {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  font-size: 13px;
  margin: 0 2px 12px;
}
.nav {
  gap: 2px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  color: #60646c;
  border-radius: 5px;
  min-height: 38px;
}
.nav button.active {
  color: #202124;
  background: #f1f2f4;
  box-shadow: inset 2px 0 #30343a;
}
.nav button:hover {
  background: #f5f5f6;
}
.nav svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.navlabel {
  font-size: 10px;
  padding: 18px 12px 8px;
  color: #92969d;
  letter-spacing: 0.8px;
}
.sidebarfooter {
  padding: 12px 0 0;
  margin-top: 10px;
  position: relative;
}
.account-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px;
  gap: 8px;
  border: 0;
  text-align: left;
  font-size: 12px;
}
.account-trigger > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.account-trigger b,
.account-trigger small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-trigger small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.avatar {
  color: #fff;
  background: #252629;
  margin: 0;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.account-options {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 216px;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px #0002;
  z-index: 8;
}
.account-options button {
  text-align: left;
  border: 0;
  padding: 10px;
}
.topbar {
  height: 60px;
  padding: 0 28px;
  background: #fff;
}
.topbar b {
  font-size: 14px;
  font-weight: 600;
}
.help-button {
  border: 0;
  padding: 7px 10px;
  font-size: 12px;
}
.content {
  max-width: none;
  padding: 28px 32px;
}
.heading {
  margin-bottom: 22px;
  gap: 16px;
}
.heading .eyebrow {
  display: none;
}
.heading h1 {
  margin: 0 0 7px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.heading p {
  margin: 0;
  font-size: 13px;
}
.card,
.metric {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  box-shadow: none;
}
.card {
  padding: 20px;
}
.metric {
  padding: 20px;
}
.hero {
  background: #fff;
  border-color: var(--line);
  border-radius: 8px;
  padding: 22px;
}
.orb {
  display: none;
}
.hero h2 {
  font-size: 20px;
}
.tag {
  color: #555b65;
  background: #f0f1f4;
  border-radius: 4px;
}
.tag.green {
  color: #16814c;
  background: #eaf9f0;
}
.tag.gold {
  color: #806525;
  background: #fff7dc;
}
.letter {
  background: #f3f4f6;
  color: #34383f;
  border-color: #e4e6ea;
  border-radius: 7px;
}
.agentcard {
  min-height: 210px;
}
.row {
  background: #fff;
  border-radius: 6px;
  padding: 14px 16px;
}
.notice {
  background: #fffdf6;
  border-color: #e9e4d2;
  color: #6e603b;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 12px;
}
.empty {
  background: #fff;
  border-color: #e0e2e6;
  border-radius: 7px;
}
input,
textarea,
select {
  color: #23262b;
  background: #fff;
  border: 1px solid #dedfe3;
  border-radius: 5px;
  padding: 10px 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #447dff33;
  border-color: #6a8de3;
}
.field label {
  color: #3e4249;
  font-size: 12px;
}
.error,
.danger {
  color: #b12b34;
}
.status {
  color: #148752;
}
pre {
  color: #303640;
  background: #f6f7f9;
  border-color: #dedfe3;
}
dialog {
  background: #fff;
  border-color: #e3e3e7;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 90px #0002;
}
dialog::backdrop {
  background: #0006;
  backdrop-filter: none;
}
dialog h2 {
  font-size: 18px;
  font-weight: 600;
}
#toast {
  color: #fff;
  background: #202124;
  border-radius: 6px;
}
.bar {
  background: #454c58;
}
.auth {
  display: block;
  padding: 48px 20px;
  background: #fff;
}
.authstory {
  display: block;
  padding: 0;
  border: 0;
  background: none;
}
.authstory .brand {
  justify-content: center;
  margin: 0 0 24px;
  font-size: 23px;
}
.authstory > div:not(.brand),
.authstory > small {
  display: none;
}
.authbox {
  margin: 0 auto;
  padding: 24px;
  max-width: 420px;
}
.authbox .eyebrow {
  display: none;
}
.authbox h2 {
  text-align: center;
  font-size: 24px;
}
.authbox .sub {
  text-align: center;
}
.chatlayout {
  border-radius: 6px;
}
.threads {
  background: #101418;
  color: #fff;
}
.thread {
  color: #fff;
}
.thread:hover {
  background: #ffffff12;
}
.chatpane {
  background: #fff;
}
.bubble {
  background: #f7f7f8;
  color: #23262b;
  border-color: #f2f2f4;
  border-radius: 5px;
}
.bubble.user {
  background: #202428;
  color: #fff;
  border-color: #202428;
}
.bubble.user small {
  color: #cfd3d8;
}
.composer {
  background: #fff;
}
.checklist-welcome {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 6px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.checklist-welcome h1 {
  font-size: 20px;
  margin: 0 0 7px;
}
.checklist-welcome p {
  margin: 0;
  color: #777c84;
  font-size: 12px;
}
.checklist-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.checklist-progress small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.checklist-progress > strong {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #35ba73;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
}
.mission {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 20px;
}
.mission-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.mission-title > span {
  display: grid;
  place-items: center;
  background: #333b42;
  color: #fff;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 12px;
}
.mission-title h2 {
  margin: 0 0 4px;
  font-size: 14px;
}
.mission-title small {
  font-size: 10px;
  color: var(--muted);
}
.mission-task {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f1f3;
}
.mission-task:last-child {
  border: 0;
}
.mission-task b {
  font-size: 12px;
  font-weight: 500;
}
.mission-task small {
  display: block;
  font-size: 11px;
  color: #82868e;
  margin-top: 5px;
  line-height: 1.4;
}
.mission-task button {
  font-size: 11px;
  padding: 6px 9px;
}
.task-status {
  color: #a6abb1;
  font-size: 17px;
}
.task-status.done {
  color: #22ad69;
}
.onboarding-aside h2 {
  font-size: 14px;
  margin: 4px 0 14px;
}
.tutorial-cover {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 180px;
  background: #eef0f3;
  border: 1px solid #e3e5e8;
  border-radius: 7px;
  padding: 24px;
  margin-bottom: 26px;
}
.tutorial-cover > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #212429;
  color: white;
  border-radius: 10px;
}
.tutorial-cover b {
  font-size: 14px;
}
.tutorial-cover button {
  font-size: 12px;
}
.onboarding-aside > button {
  display: block;
  text-align: left;
  border: 0;
  padding: 10px 0;
  font-size: 12px;
  width: 100%;
  background: transparent;
}
.onboarding-aside > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.creation-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.creation-options button {
  text-align: left;
  padding: 18px;
  border-color: #dedfe5;
}
.creation-options b,
.creation-options span {
  display: block;
}
.creation-options span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.agent-editor {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8f9fb;
  overflow: auto;
}
.agent-editor > .eyebrow {
  display: none;
}
.agent-editor > h2 {
  min-height: 62px;
  padding: 21px 62px;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.agent-editor > .close {
  position: absolute;
  left: 16px;
  top: 12px;
  float: none;
  z-index: 2;
  border: 0;
  padding: 7px 10px;
}
.agent-editor .editor-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 16px 20px;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.agent-editor .editor-tabs button {
  border: 0;
  border-radius: 20px;
  padding: 8px 18px;
  color: #777e87;
  font-size: 12px;
}
.agent-editor .editor-tabs .active {
  background: #111;
  color: #fff;
}
.agent-editor #agent-form {
  width: min(700px, calc(100% - 32px));
  margin: 24px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.agent-editor .editor-footer {
  position: fixed;
  right: 20px;
  top: 11px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: 4;
  background: #fff;
}
.agent-editor .editor-footer button {
  padding: 8px 14px;
  font-size: 12px;
}
.agent-editor .agent-preview {
  box-shadow: none;
  border-radius: 7px;
}
.agent-editor .preview-message {
  background: #f5f5f7;
  color: #30343a;
}
@media (min-width: 761px) {
  .shell.sidebar-collapsed {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .sidebar-collapsed .sidebar {
    width: 68px;
    padding: 14px 8px;
  }
  .sidebar-collapsed .sidebar .brand > span:not(.brandmark),
  .sidebar-collapsed .nav button > span,
  .sidebar-collapsed .navlabel,
  .sidebar-collapsed .create-ai > span,
  .sidebar-collapsed .account-trigger > span:not(.avatar) {
    display: none;
  }
  .sidebar-collapsed .sidebar-brand {
    flex-direction: column;
    margin-bottom: 8px;
  }
  .sidebar-collapsed .nav button {
    justify-content: center;
    padding: 10px;
  }
  .sidebar-collapsed .create-ai {
    padding: 8px;
  }
  .sidebar-collapsed .account-options {
    left: 55px;
    bottom: 0;
  }
}
@media (max-width: 1100px) {
  .onboarding-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .onboarding-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .onboarding-aside > h2 {
    grid-column: 1/-1;
  }
  .tutorial-cover {
    margin: 0;
  }
}
@media (max-width: 760px) {
  .sidebar-brand .navclose {
    margin: 0;
    padding: 3px 7px;
  }
  .collapse-nav {
    display: none;
  }
  .topbar {
    height: 56px;
    padding: 0 16px;
  }
  .content {
    padding: 22px 16px;
  }
  .heading h1 {
    font-size: 21px;
  }
  .checklist-welcome {
    align-items: flex-start;
    gap: 12px;
  }
  .checklist-welcome h1 {
    font-size: 18px;
  }
  .checklist-progress {
    gap: 7px;
  }
  .checklist-progress > div {
    display: none;
  }
  .checklist-progress > strong {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }
  .mission-title {
    padding: 13px 12px;
  }
  .mission-task {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
  }
  .mission-task button[data-task-help] {
    grid-column: 2;
    justify-self: start;
  }
  .mission-task small {
    font-size: 10px;
  }
  .onboarding-aside {
    display: block;
  }
  .onboarding-aside h2 {
    margin-top: 24px;
  }
  .agent-editor > h2 {
    padding-left: 52px;
    font-size: 13px;
  }
  .agent-editor .editor-footer {
    right: 10px;
    top: 12px;
    gap: 5px;
  }
  .agent-editor .editor-footer button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .agent-editor .editor-tabs {
    gap: 8px;
    padding: 14px 10px;
  }
  .agent-editor .editor-tabs button {
    padding: 8px 14px;
  }
  .agent-editor #agent-form {
    padding: 15px;
    margin: 16px auto;
  }
}

* {
  box-sizing: border-box;
}
:root {
  font-size: 14px;
}
.metric label,
.metric small {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.card h2 {
  font-size: 15px;
  font-weight: 600;
}
.card p,
.sub {
  font-size: 13px;
}
.tag {
  font-size: 10px;
}
.empty strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.empty {
  font-size: 13px;
  color: var(--muted);
}
.hint,
.row small,
.listrow small,
.thread small {
  font-size: 11px;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.letter {
  font-size: 20px;
}
.bubble {
  font-size: 13px;
}
.bubble small {
  font-size: 10px;
  color: var(--muted);
}
.sectionhead > span,
.loading {
  color: var(--muted);
}
.error {
  font-size: 12px;
}
pre {
  font-size: 11px;
}
button,
input,
textarea,
select {
  font: inherit;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .sidebar.open {
    box-shadow: 0 0 0 100vw #0006;
  }
}
button,
.button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dedfe3;
}
.primary {
  border-color: #111;
}
.quiet {
  border-color: transparent;
}
.nav button {
  border: 0;
}
.sidebar {
  border-right: 1px solid var(--line);
}
.topbar {
  border-bottom: 1px solid var(--line);
}
.avatar {
  border-radius: 50%;
}
.row {
  border: 1px solid var(--line);
}

/* Dimensions and surfaces confirmed against the authenticated reference. */
@media (min-width: 761px) {
  .sidebar {
    background: #f5faff;
  }
  .shell > main {
    margin: 8px 8px 8px 0;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    min-width: 0;
  }
  .nav button.active {
    background: #fff;
    box-shadow: none;
  }
  .agent-editor > h2 {
    min-height: 72px;
    padding-top: 25px;
  }
  .agent-editor .editor-footer {
    top: 17px;
  }
  .agent-editor .editor-tabs {
    padding: 14px 20px;
    gap: 38px;
  }
  .agent-editor .editor-tabs button {
    border: 1px solid #edf0f4;
    min-height: 40px;
    padding: 8px 22px;
  }
  .agent-editor #agent-form {
    width: min(660px, calc(100% - 40px));
    margin-top: 24px;
    padding: 24px;
  }
}
.agent-editor {
  background: #f5faff;
}
.editor-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -24px -24px 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.editor-section-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.editor-section-head p {
  margin: 5px 0 0;
  color: #94979e;
  font-size: 13px;
}
.section-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e1e5eb;
  border-radius: 6px;
  font-size: 25px;
  color: #565e6b;
  flex-shrink: 0;
}
.agentcard {
  min-height: 210px;
  border: 1px solid #e1e5eb;
  box-shadow: none;
  border-radius: 8px;
}
.agentcard .letter {
  border-radius: 50%;
  background: #191c21;
  color: white;
}
.agentcard h2 {
  margin-top: 22px;
}
.agentcard p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .editor-section-head {
    margin: -20px -20px 20px;
    padding: 18px 20px;
  }
  .editor-section-head h3 {
    font-size: 16px;
  }
}
/* Grid tracks must shrink below their longest label on narrow screens. */
.grid > *,
.formgrid > *,
.twocol > *,
.actions > *,
.heading > * {
  min-width: 0;
}
.agentcard p {
  white-space: normal;
  overflow-wrap: anywhere;
}
.card,
.row,
.notice,
.hint {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .grid,
  .twocol {
    grid-template-columns: minmax(0, 1fr);
  }
  .heading {
    flex-wrap: wrap;
  }
  .row {
    flex-wrap: wrap;
  }
  .actions {
    flex-wrap: wrap;
  }
}
/* Catalogs and document management share the reference's compact panel rhythm. */
.nav button {
  background: transparent;
}
.nav button.active {
  background: #fff;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.data-table th {
  background: #f8fafc;
  padding: 15px 16px;
  color: #78808d;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.data-table td {
  padding: 16px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.data-table tr:hover td {
  background: #fafbfc;
}
.table-count {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin: 14px 0;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.filter-tabs button {
  border: 0;
  color: #747c88;
  background: transparent;
}
.filter-tabs button[aria-pressed="true"] {
  color: #111;
  background: #f2f4f7;
}
.dataset-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.folder-panel {
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.folder-panel h2 {
  margin: 0 0 20px;
  font-size: 16px;
}
.folder-item {
  display: flex;
  align-items: center;
  min-width: 0;
}
.folder-item > .quiet {
  padding: 6px;
  flex-shrink: 0;
}
.folder-choice {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 8px;
  gap: 7px;
  border: 0;
  background: transparent;
  font-size: 12px;
  text-align: left;
  min-width: 0;
}
.folder-choice.active {
  background: #f2f4f7;
}
.folder-choice span {
  overflow-wrap: anywhere;
  flex: 1;
}
.folder-choice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dataset-files {
  min-width: 0;
}
.dataset-files > h2 {
  margin-top: 28px;
  font-size: 17px;
}
.upload-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 20px;
  margin-bottom: 24px;
  background: #f9fbfd;
  border: 1px dashed #d5dce5;
  border-radius: 8px;
}
.upload-panel h2 {
  margin: 0 0 6px;
  font-size: 17px;
}
.upload-panel p {
  margin: 0 0 8px;
  font-size: 13px;
}
.upload-panel small {
  color: var(--muted);
}
.upload-symbol {
  font-size: 28px;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 8px;
}
.upload-panel > div {
  flex: 1;
  min-width: 0;
}
.function-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.function-catalog button {
  padding: 24px;
  align-items: flex-start;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.function-catalog small {
  line-height: 1.6;
  color: var(--muted);
}
.catalog-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 24px;
  margin-bottom: 12px;
}
.image-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.image-upload-grid input {
  max-width: 100%;
  font-size: 12px;
}
.image-upload-grid small {
  color: var(--muted);
}
#preview-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.preview-user {
  align-self: flex-end;
  margin-left: 20%;
}
.agent-editor [hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .dataset-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 16px;
  }
  .upload-panel {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .dataset-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .folder-panel {
    max-height: 260px;
    overflow: auto;
  }
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tr + tr {
    border-top: 3px solid #edf0f4;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    padding: 10px 14px;
  }
  .data-table td:before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    min-width: 75px;
    flex-shrink: 0;
  }
  .function-catalog,
  .image-upload-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .upload-panel {
    padding: 20px 16px;
    gap: 12px;
  }
}
.topbar-tools,
#workspace-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar #crumb {
  font-size: 20px;
  font-weight: 600;
}
.content > .heading > div > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.content > .heading {
  min-height: 0;
  margin-bottom: 22px;
}
.topbar {
  min-height: 78px;
  height: auto;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.topbar > div:first-child {
  min-width: 0;
}
#workspace-actions > .primary {
  border-radius: 22px;
}
@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 64px;
    padding: 14px 16px;
  }
  .topbar #crumb {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .topbar-tools {
    gap: 5px;
    flex-wrap: wrap;
  }
  #workspace-actions button {
    padding: 8px 12px;
    font-size: 12px;
  }
  .topbar-tools .help-button {
    padding: 6px;
  }
  .topbar-tools .help-button span {
    display: none;
  }
}
@media (max-width: 760px) {
  .upload-panel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }
  .upload-panel .upload-symbol {
    padding: 8px 10px;
    text-align: center;
  }
  .upload-panel > button {
    grid-column: 1/-1;
    width: 100%;
  }
}
