﻿:root {
  --ink: #17142c;
  --muted: #7b7590;
  --line: rgba(0, 0, 0, 0.08);
  --primary: #0a84ff;
  --primary-dark: #0066ff;
  --soft: #f3f8ff;
  --panel: rgba(255, 255, 255, 0.92);
  --danger: #c0392b;
}

/* GPT-style student agent chat */
.layout:has(.gpts-chat-page) {
  grid-template-columns: 1fr;
}

.layout:has(.gpts-chat-page) > .sidebar,
.layout:has(.gpts-chat-page) .site-footer {
  display: none;
}

.content:has(.gpts-chat-page) {
  padding: 0;
}

.gpts-chat-page {
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  color: #1d1d1f;
  background: #fff;
}

.gpts-chat-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

.gpts-history-panel {
  padding: 16px 12px;
  border-right: 1px solid #e8e8ea;
  background: #f7f7f8;
}

.gpts-back-btn,
.gpts-new-chat,
.gpts-history-item {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1d1d1f;
  text-align: left;
  background: transparent;
}

.gpts-back-btn:hover,
.gpts-new-chat:hover,
.gpts-history-item:hover,
.gpts-history-item.active {
  background: #ececee;
}

.gpts-new-chat {
  margin-top: 10px;
  border: 1px solid #dedee2;
  background: #fff;
}

.gpts-history-title {
  margin: 22px 12px 8px;
  color: #6e6e73;
  font-size: 13px;
}

.gpts-history-item {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gpts-chat-panel {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.gpts-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-bottom: 1px solid #ededf0;
  background: #fff;
}

.gpts-topbar strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gpts-topbar-category {
  color: #86868b;
  font-size: 13px;
}

.gpts-mobile-back {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
}

.gpts-welcome {
  align-self: center;
  justify-self: center;
  width: min(860px, calc(100% - 40px));
  padding: 40px 0 120px;
  text-align: center;
}

.gpts-agent-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid #dedee2;
  border-radius: 50%;
  color: #0071e3;
  font-size: 21px;
  font-weight: 700;
  background: #fff;
}

.gpts-welcome h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0;
}

.gpts-welcome > p {
  max-width: 620px;
  margin: 14px auto 34px;
  color: #6e6e73;
  font-size: 16px;
  line-height: 1.7;
}

.gpts-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(720px, 100%);
  margin: 0 auto;
}

.gpts-suggestions button {
  min-height: 78px;
  border: 1px solid #dedee2;
  border-radius: 12px;
  padding: 16px;
  color: #343438;
  text-align: left;
  line-height: 1.45;
  background: #fff;
}

.gpts-suggestions button:hover {
  border-color: #b8b8be;
  background: #f8f8f9;
}

.gpts-messages {
  display: grid;
  align-content: start;
  gap: 24px;
  overflow-y: auto;
  padding: 34px max(24px, calc((100% - 860px) / 2)) 160px;
}

.gpts-chat-panel .bubble {
  position: relative;
  width: 100%;
  max-width: 860px;
  padding: 0;
  border-radius: 0;
  white-space: normal;
  line-height: 1.75;
}

.gpts-chat-panel .bubble.user {
  justify-self: end;
  width: auto;
  max-width: min(680px, 82%);
  padding: 11px 16px;
  border-radius: 18px;
  color: #1d1d1f;
  white-space: pre-wrap;
  background: #f1f1f3;
}

.gpts-chat-panel .bubble.assistant {
  justify-self: start;
  color: #1d1d1f;
  background: transparent;
}

.rich-message h2,
.rich-message h3,
.rich-message h4 {
  margin: 26px 0 10px;
  letter-spacing: 0;
}

.rich-message h2:first-child,
.rich-message h3:first-child,
.rich-message h4:first-child {
  margin-top: 0;
}

.rich-message h2 { font-size: 24px; }
.rich-message h3 { font-size: 20px; }
.rich-message h4 { font-size: 17px; }

.rich-message p {
  margin: 10px 0;
}

.rich-message ul {
  margin: 10px 0;
  padding-left: 24px;
}

.rich-message li {
  margin: 6px 0;
}

.rich-table-wrap {
  max-width: 100%;
  margin: 14px 0 24px;
  overflow-x: auto;
  border: 1px solid #dedee2;
  border-radius: 10px;
}

.rich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rich-table th,
.rich-table td {
  min-width: 110px;
  padding: 10px 12px;
  border-right: 1px solid #e8e8ea;
  border-bottom: 1px solid #e8e8ea;
  text-align: left;
  vertical-align: top;
}

.rich-table th {
  font-weight: 600;
  background: #f7f7f8;
}

.gpts-copy-answer {
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #6e6e73;
  font-size: 13px;
  background: transparent;
}

.gpts-copy-answer:hover {
  background: #f1f1f3;
}

.gpts-composer-wrap {
  z-index: 2;
  align-self: end;
  justify-self: center;
  width: min(860px, calc(100% - 40px));
  min-width: 0;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 8px 0 18px;
  background: #fff;
}

.gpts-chat-panel.is-empty .gpts-composer-wrap {
  margin-top: -105px;
}

.gpts-composer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 58px 38px;
  align-items: end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 64px;
  border: 1px solid #d8d8dc;
  border-radius: 22px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.gpts-file-input {
  display: none;
}

.gpts-attach-btn,
.gpts-send-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}

.gpts-image-btn {
  flex: 0 0 auto;
  min-width: 58px;
  height: 38px;
  border: 1px solid #d9e9ff;
  border-radius: 8px;
  background: #eef6ff;
  color: #0788ff;
  font-weight: 700;
  cursor: pointer;
}

.gpts-image-btn:hover {
  background: #e1f0ff;
}

.gpts-image-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

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

.gpts-answer-actions .gpts-copy-answer {
  margin-top: 0;
}

.gpts-direct-image {
  border: 0;
  border-radius: 8px;
  background: #0788ff;
  color: #fff;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.gpts-direct-image:hover {
  background: #0079e8;
}

.gpts-attach-btn {
  color: #1d1d1f;
  background: transparent;
}

.gpts-attach-btn:hover {
  background: #f1f1f3;
}

.gpts-send-btn {
  color: #fff;
  background: #1d1d1f;
}

.gpts-send-btn:disabled {
  opacity: 0.42;
}

.gpts-composer textarea {
  width: 100%;
  min-height: 38px;
  max-height: 150px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 8px 2px 5px;
  color: #1d1d1f;
  line-height: 1.45;
  background: transparent;
}

.gpts-file-help,
.gpts-upload-status {
  min-height: 18px;
  margin-top: 6px;
  color: #86868b;
  font-size: 12px;
  text-align: center;
}

.gpts-upload-status:empty {
  display: none;
}

.gpts-attachment-list {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 0 2px 8px;
}

.gpts-attachment-list:empty {
  display: none;
}

.gpts-attachment {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  max-width: 230px;
  height: 52px;
  border: 1px solid #dedee2;
  border-radius: 10px;
  padding: 7px 30px 7px 8px;
  background: #fff;
}

.gpts-attachment img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.gpts-attachment > button {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #6e6e73;
  background: #f1f1f3;
}

.gpts-file-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 6px;
  color: #0071e3;
  font-size: 10px;
  font-weight: 700;
  background: #eaf4ff;
}

.gpts-file-name {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .gpts-chat-shell {
    grid-template-columns: 1fr;
  }

  .gpts-history-panel {
    display: none;
  }

  .gpts-mobile-back {
    display: grid;
    place-items: center;
  }

  .gpts-topbar-category {
    display: none;
  }

  .gpts-welcome {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  .gpts-suggestions {
    grid-template-columns: 1fr;
  }

  .gpts-suggestions button {
    min-height: 58px;
  }

  .gpts-messages {
    padding: 24px 16px 150px;
  }

  .gpts-composer-wrap {
    width: calc(100% - 24px);
    padding-bottom: 10px;
  }

  .gpts-composer {
    grid-template-columns: 36px minmax(0, 1fr) 52px 36px;
    gap: 5px;
    padding: 9px;
  }

  .gpts-image-btn {
    min-width: 52px;
    padding: 0 6px;
  }

  .gpts-file-help {
    display: none;
  }
}

/* Apple H5 visual refresh */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --primary: #0071e3;
  --primary-dark: #005bbd;
  --soft: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.78);
  --danger: #ff3b30;
  --apple-purple: #00a3ff;
  --apple-green: #34c759;
  --apple-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

body {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 113, 227, 0.12), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(0, 163, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfbfd, #f5f5f7 42%, #f5f5f7);
}

.login-card,
.sidebar,
.page-panel,
.site-footer,
.agent-card,
.info-card,
.history-panel,
.chat-panel,
.workflow-hero,
.system-card,
.workflow-nav,
.workflow-card,
.clean-upload-card,
.ultra-clean-agent .clean-agent-title,
.ultra-clean-agent .clean-extra,
.ultra-simple-head,
.ultra-simple-agent .clean-upload-card,
.ultra-simple-agent .document-box,
.ultra-simple-agent .clean-extra,
.ultra-simple-result,
.ultra-simple-empty,
.simple-step-card,
.workflow-empty,
.workflow-result,
.plan-review-card,
.table,
.document-preview-item {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--apple-shadow);
  backdrop-filter: blur(22px);
}

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

.sidebar {
  padding: 22px 16px;
  border-right-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.62);
}

.logo {
  padding-bottom: 24px;
}

.logo strong {
  font-size: 19px;
  letter-spacing: 0;
}

.nav {
  gap: 8px;
}

.nav button {
  min-height: 48px;
  border-radius: 15px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav button:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.nav button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--apple-purple));
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.2);
}

.content {
  padding: 30px;
}

.topbar h1,
.workflow-title h2,
.clean-agent-title h2,
.ultra-simple-head h2,
.workflow-hero h2 {
  letter-spacing: 0;
  font-weight: 850;
}

.topbar h1 {
  font-size: 30px;
}

.page-panel {
  min-height: calc(100vh - 100px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.56);
}

.site-footer {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.primary-btn,
.workflow-actions .primary-btn,
.ultra-simple-actions .primary-btn {
  min-height: 46px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.24);
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.ghost-btn,
.upload-button,
.suggestions button,
.category-tabs button,
.video-action-btn {
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.ghost-btn {
  min-height: 42px;
}

.category-tabs button.active {
  background: var(--primary);
}

.tag {
  color: var(--primary);
  background: rgba(0, 113, 227, 0.1);
}

.agent-card,
.info-card,
.system-card {
  border-radius: 26px;
}

.agent-art {
  border-radius: 22px;
  background:
    radial-gradient(circle at 26% 30%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, rgba(0, 113, 227, 0.18), rgba(255, 255, 255, 0.86) 48%, rgba(0, 163, 255, 0.14));
}

.workflow-hero {
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 163, 255, 0.11), transparent 30%),
    rgba(255, 255, 255, 0.74);
}

.workflow-hero h2 {
  font-size: 32px;
}

.workflow-layout {
  grid-template-columns: 270px 1fr;
}

.workflow-nav,
.workflow-card {
  border-radius: 28px;
}

.workflow-nav {
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.workflow-nav button {
  min-height: 62px;
  border-radius: 18px;
  background: rgba(245, 245, 247, 0.82);
}

.workflow-nav button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--apple-purple));
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.2);
}

.workflow-nav button.active small {
  color: rgba(255, 255, 255, 0.76);
}

.workflow-nav button span {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--apple-purple));
}

.workflow-nav button.active span {
  color: var(--primary);
  background: #fff;
}

.workflow-card {
  padding: 26px;
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 113, 227, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.84);
}

.workflow-title h2,
.clean-agent-title h2,
.ultra-simple-head h2 {
  font-size: 34px;
}

.field input,
.field textarea,
.field select,
.composer textarea,
.model-select select,
.table-input,
.plan-confirm-field select {
  border-color: var(--line);
  border-radius: 18px;
  background: #fbfbfd;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.composer textarea:focus {
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.1);
}

.clean-upload-card,
.workflow-image-box,
.workflow-document-box,
.communication-upload,
.simple-step-card {
  border-radius: 22px;
  background: #fbfbfd;
}

.workflow-image-box,
.workflow-document-box,
.communication-upload {
  border-style: dashed;
}

.upload-button {
  color: var(--primary);
}

.ultra-simple-grid {
  gap: 16px;
}

.simple-step-card {
  min-height: 206px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.simple-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

.simple-step-head strong {
  font-size: 21px;
}

.workflow-result {
  border-radius: 24px;
  background: #fbfbfd;
}

.result-head {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
}

.result-body {
  padding: 20px;
  color: #3d3d42;
}

.response-time,
.workflow-status,
.simple-step-status,
.model-select,
.workflow-empty,
.workflow-nav button small,
.workflow-hero p,
.system-card p,
.agent-card p,
.info-card p {
  color: var(--muted);
}

.bubble.user {
  background: var(--primary);
}

.bubble.assistant {
  background: #f5f5f7;
}

.table th {
  background: #f5f5f7;
}

.site-footer a,
.video-link,
.video-action-btn {
  color: var(--primary);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 18px;
  }

  .page-panel {
    border-radius: 26px;
    padding: 20px;
  }

  .workflow-title h2,
  .clean-agent-title h2,
  .ultra-simple-head h2,
  .workflow-hero h2 {
    font-size: 28px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(243, 232, 255, 0.88), rgba(255, 255, 255, 0.94) 26%, rgba(250, 246, 255, 0.96)),
    #fff;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 70px rgba(10, 132, 255, 0.14);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #0a84ff, #00a3ff);
}

.login-card h1 {
  margin: 18px 0 8px;
  font-size: 28px;
}

.login-card p,
.muted {
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #6bbcff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.08);
}

.primary-btn {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #007aff);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.25);
}

.ghost-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.danger-btn {
  color: #fff;
  background: var(--danger);
}

.error {
  margin-top: 14px;
  color: var(--danger);
  font-weight: 700;
}

.layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  border-right: 1px solid rgba(236, 231, 248, 0.72);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
}

.logo strong {
  display: block;
  font-size: 20px;
}

.logo span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav button {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.nav button.active {
  color: var(--primary);
  background: #eaf4ff;
  box-shadow: inset 4px 0 0 var(--primary);
}

.nav .num {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.sidebar-footer {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  display: grid;
  gap: 10px;
}

.content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.topbar p {
  margin: 8px 0 0;
}

.page-panel {
  min-height: calc(100vh - 92px);
  padding: 30px;
  border: 1px solid rgba(236, 231, 248, 0.72);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(10, 132, 255, 0.08);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: auto;
  padding: 16px 18px;
  border: 1px solid rgba(236, 231, 248, 0.72);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.site-footer-brand {
  color: var(--ink);
  font-weight: 800;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer-note {
  width: 100%;
  font-size: 13px;
}

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

.board-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agent-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.08);
}

.agent-art {
  height: 132px;
  margin: -6px -6px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 36%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(135deg, #e8f4ff, #ffffff 44%, #e5f4ff);
  overflow: hidden;
}

.agent-art::after {
  content: "";
  display: block;
  width: 120px;
  height: 120px;
  margin: 28px auto 0;
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(180deg, #2a2338 0 42%, #111 42%);
  opacity: 0.9;
}

.agent-card h2,
.info-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.agent-card p,
.info-card p {
  min-height: 52px;
  margin: 0 0 18px;
  line-height: 1.7;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  background: #eaf4ff;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
}

.category-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: var(--primary);
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #fbfdff;
}

.chat-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  min-height: calc(100vh - 152px);
}

.history-panel,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.history-panel {
  padding: 20px;
}

.history-item {
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  background: #faf8ff;
}

.history-item.active {
  color: var(--primary);
  background: #f0eaff;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
}

.chat-header {
  padding: 24px 28px 14px;
}

.chat-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 28px 18px;
}

.suggestions button {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 800;
  background: #fff;
}

.messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.bubble {
  max-width: min(760px, 86%);
  padding: 15px 16px;
  border-radius: 18px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.bubble.user {
  justify-self: end;
  color: #fff;
  background: var(--primary);
}

.bubble.assistant {
  justify-self: start;
  background: #f7f5fb;
}

.image-bubble {
  padding: 10px;
}

.image-bubble img {
  display: block;
  width: min(520px, 100%);
  border-radius: 14px;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.composer-upload {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.composer-upload input {
  max-width: 320px;
}

.image-hint {
  color: var(--muted);
}

.image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-preview-item {
  position: relative;
  width: 84px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-preview-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 14, 38, 0.74);
  cursor: pointer;
  font-size: 18px;
  line-height: 20px;
}

.composer textarea {
  min-height: 52px;
  max-height: 140px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.runtime-item {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.runtime-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.runtime-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
}

.admin-agent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-agent-hero h2 {
  margin: 0 0 8px;
}

.admin-agent-warning {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  color: #8a1f14;
  background: rgba(255, 241, 240, 0.82);
}

.admin-agent-warning strong {
  font-size: 16px;
}

.admin-agent-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-agent-sidebar,
.admin-agent-editor {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
}

.admin-agent-sidebar {
  position: sticky;
  top: 18px;
}

.admin-agent-editor {
  display: grid;
  gap: 14px;
}

.admin-agent-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-agent-section-title {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.admin-agent-section-title h3 {
  margin: 0;
  font-size: 20px;
}

.admin-agent-section-title p {
  margin: 0;
}

.prompt-field textarea,
.knowledge-field textarea {
  min-height: 260px;
  font-size: 15px;
  line-height: 1.75;
}

.knowledge-field textarea {
  min-height: 320px;
}

.knowledge-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-agent-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.danger-btn {
  border-color: rgba(217, 45, 32, 0.24) !important;
  color: #d92d20 !important;
  background: rgba(217, 45, 32, 0.08) !important;
}

.danger-btn:hover {
  background: rgba(217, 45, 32, 0.14) !important;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.table th,
.table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  background: #fbfdff;
}

.backup-table {
  margin-top: 14px;
}

.user-table {
  min-width: 980px;
}

.table-input {
  width: 100%;
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}

.table-action {
  padding: 9px 14px;
  white-space: nowrap;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.compact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.agent-admin-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.agent-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.agent-admin-row strong {
  display: block;
  margin-bottom: 4px;
}

.workflow-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.96)),
    #fff;
}

.workflow-hero h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.workflow-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.system-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(42, 35, 56, 0.06);
}

.system-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.system-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-page {
  padding: 22px;
}

.whole-command {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.whole-command-top,
.whole-intake-panel,
.whole-flow-card,
.whole-queue,
.whole-admin-bridge {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px);
}

.whole-command-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.whole-command-top h2 {
  margin: 8px 0 8px;
  font-size: 30px;
  letter-spacing: 0;
  font-weight: 850;
}

.whole-command-top p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.whole-top-actions {
  margin: 0;
  justify-content: flex-end;
}

.whole-project-editor {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.whole-project-editor.show {
  display: grid;
}

.whole-project-editor label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.whole-project-editor input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  outline: none;
}

.whole-project-editor input:focus {
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.08);
}

.whole-intake-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 560px;
  gap: 18px;
  padding: 22px;
}

.whole-intake-panel h3,
.whole-flow-card h3,
.whole-queue h3,
.whole-admin-bridge h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0;
  font-weight: 850;
}

.whole-intake-panel p,
.whole-flow-card p,
.whole-admin-bridge p {
  margin: 0;
  line-height: 1.7;
}

.whole-upload-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.whole-upload-card {
  display: grid;
  align-content: center;
  cursor: pointer;
  min-height: 126px;
  width: 100%;
  border: 1.5px dashed rgba(10, 132, 255, 0.26);
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  background: #fff;
}

.whole-upload-card:hover {
  border-color: rgba(10, 132, 255, 0.48);
  background: #f8fbff;
}

.whole-upload-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.whole-upload-card span {
  color: var(--muted);
  line-height: 1.5;
}

.whole-upload-card input[type="file"] {
  display: none;
}

.whole-file-list,
.whole-image-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}

.whole-file-item,
.whole-image-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
}

.whole-file-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whole-file-item button,
.whole-image-item button {
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  color: #d92d20;
  background: rgba(217, 45, 32, 0.08);
  font-weight: 800;
}

.whole-image-item {
  grid-template-columns: 72px 1fr auto;
}

.whole-image-item img {
  width: 72px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef3f8;
}

.whole-image-item::after {
  content: "平面户型图";
  color: var(--muted);
  font-weight: 800;
}

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

.whole-flow-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 230px;
  padding: 20px;
}

.whole-step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--apple-purple));
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.whole-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
}

.whole-queue,
.whole-admin-bridge {
  padding: 20px;
}

.whole-result-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
}

.whole-result-row.active {
  border-color: rgba(10, 132, 255, 0.3);
  background: #eaf4ff;
}

.whole-result-row span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: var(--primary);
}

.whole-result-row small {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.whole-agent-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.whole-agent-list span {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.whole-admin-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

.whole-admin-strip span {
  line-height: 1.6;
}

.whole-command-notice {
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--muted);
  background: rgba(234, 244, 255, 0.75);
  line-height: 1.6;
  font-weight: 750;
}

.whole-command-notice.show {
  color: var(--primary);
  border-color: rgba(10, 132, 255, 0.32);
  background: #eaf4ff;
}

.whole-results-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
}

.whole-results-empty {
  min-height: 118px;
  align-content: center;
}

.whole-results-empty strong,
.whole-results-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
}

.whole-results-empty p,
.whole-results-head p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.whole-result-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.whole-result-card.has-result {
  border-color: rgba(10, 132, 255, 0.2);
}

.whole-result-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.whole-result-card .tag {
  margin-bottom: 8px;
}

.whole-result-card .result-body {
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(10, 132, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.whole-result-card .workflow-status {
  min-height: 20px;
}

.workflow-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.workflow-nav,
.workflow-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.workflow-nav {
  align-self: start;
  padding: 18px;
}

.workflow-nav h2 {
  margin: 0 0 8px;
}

.workflow-nav button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 10px;
  width: 100%;
  margin-top: 10px;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  text-align: left;
  background: #fbfdff;
}

.workflow-nav button.active {
  border-color: rgba(10, 132, 255, 0.28);
  color: var(--primary);
  background: #eaf4ff;
}

.workflow-nav button span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: var(--primary);
}

.workflow-nav button small {
  color: var(--muted);
  line-height: 1.4;
}

.compact-workflow-nav {
  gap: 12px;
}

.compact-workflow-nav > p {
  display: none;
}

.compact-workflow-nav button {
  min-height: 72px;
  align-items: center;
}

.workflow-card {
  padding: 24px;
}

.workflow-title h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.workflow-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.clean-agent-card {
  padding: 26px;
}

.clean-agent-title {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.clean-agent-title h2 {
  margin: 0;
  font-size: 28px;
}

.clean-agent-title p {
  margin: 0;
  line-height: 1.7;
}

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

.clean-extra {
  margin-top: 14px;
}

.clean-upload-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.clean-upload-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.clean-upload-card p {
  margin: 0 0 12px;
}

.clean-preview-list {
  margin-top: 10px;
}

.ultra-clean-agent {
  display: grid;
  gap: 18px;
}

.ultra-clean-agent .clean-agent-title {
  margin-bottom: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.ultra-clean-agent .clean-agent-title .tag {
  width: fit-content;
}

.ultra-clean-agent .clean-agent-title p:empty,
.ultra-clean-agent .clean-form-grid {
  display: none;
}

.ultra-clean-agent .clean-extra {
  margin-top: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.ultra-clean-agent .clean-extra label {
  font-size: 17px;
}

.ultra-clean-agent .clean-extra textarea {
  min-height: 96px;
}

.ultra-clean-agent .workflow-actions {
  margin-top: 0;
}

.ultra-simple-agent {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.ultra-simple-head {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.ultra-simple-head .tag {
  width: fit-content;
}

.ultra-simple-head h2 {
  margin: 0;
  font-size: 28px;
}

.ultra-simple-head p {
  margin: 0;
}

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

.ultra-simple-agent .clean-upload-card,
.ultra-simple-agent .document-box,
.ultra-simple-agent .clean-extra,
.ultra-simple-result,
.ultra-simple-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.ultra-simple-agent .clean-extra {
  padding: 18px;
}

.ultra-simple-agent .clean-extra textarea {
  min-height: 88px;
}

.ultra-simple-actions {
  margin-top: 0;
}

.simple-step-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.simple-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.simple-step-head strong {
  font-size: 20px;
}

.simple-step-status {
  color: var(--muted);
  font-size: 14px;
}

.simple-step-card p {
  margin: 0;
  line-height: 1.6;
}

.simple-extra-step {
  min-height: auto;
}

.simple-extra-step textarea {
  min-height: 94px;
  resize: vertical;
}

.simple-step-card .upload-button {
  width: fit-content;
}

.workflow-extra {
  margin-top: 8px;
}

.communication-upload {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

.upload-button input {
  display: none;
}

.workflow-image-box,
.workflow-document-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.workflow-image-box p,
.workflow-document-box p {
  margin: 6px 0 0;
}

.design-render-card .workflow-title {
  margin-bottom: 18px;
}

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

.design-render-card .compact-upload-box {
  margin-top: 0;
  min-height: 210px;
  background: #fff;
  border-style: solid;
}

.design-render-card .compact-upload-box .image-preview-item {
  width: 132px;
  border-radius: 16px;
}

.design-render-card .field {
  margin-top: 16px;
}

.simple-extra-field {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.simple-extra-field summary {
  padding: 12px 14px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.simple-extra-field .field {
  margin: 0;
  padding: 0 14px 14px;
}

.plan-confirm-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f3f8ff);
}

.plan-confirm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.plan-confirm-head strong {
  font-size: 18px;
}

.plan-confirm-head span,
.plan-confirm-rules span {
  color: var(--muted);
}

.plan-confirm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.plan-confirm-field {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.plan-confirm-field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.plan-confirm-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 132, 255, 0.08);
  line-height: 1.7;
}

.plan-review-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(10, 132, 255, 0.28);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(10, 40, 90, 0.08);
}

.plan-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.plan-review-head strong {
  font-size: 18px;
}

.plan-review-head span {
  color: var(--muted);
}

.plan-review-card pre {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fbfdff;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.8;
  font-family: inherit;
}

@media (max-width: 860px) {
  .design-render-grid {
    grid-template-columns: 1fr;
  }

  .plan-confirm-grid {
    grid-template-columns: 1fr;
  }
}

.document-preview-list {
  display: grid;
  gap: 10px;
}

.document-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.document-preview-item strong,
.document-preview-item small {
  display: block;
}

.document-preview-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.document-preview-item button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 14, 38, 0.74);
  cursor: pointer;
  font-size: 18px;
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.workflow-status {
  min-height: 24px;
}

.model-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.model-select select {
  height: 38px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.gpts-model-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0 0 8px;
}

.gpts-model-row .model-select {
  width: min(300px, 100%);
}

.workflow-empty,
.workflow-result {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.workflow-empty {
  padding: 18px;
  color: var(--muted);
}

.workflow-result {
  overflow: hidden;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.result-body {
  padding: 18px;
  white-space: pre-wrap;
  line-height: 1.8;
}

.response-time {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.workflow-generated-image {
  display: block;
  width: min(720px, 100%);
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.video-bubble video {
  display: block;
  width: min(720px, 100%);
  border-radius: 16px;
  background: #111;
}

.video-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 700;
}

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

.video-actions .video-link {
  margin-top: 0;
}

.video-action-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--primary);
  font-weight: 700;
  background: #fff;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-footer {
    position: static;
    margin-top: 20px;
  }

  .cards,
  .board-cards,
  .system-grid,
  .chat-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

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

  .workflow-hero,
  .workflow-layout,
  .workflow-form-grid {
    grid-template-columns: 1fr;
  }

  .workflow-hero {
    align-items: start;
  }

  .content {
    padding: 16px;
  }

  .site-footer {
    padding: 14px 16px;
  }

  .page-panel {
    padding: 18px;
    border-radius: 22px;
  }
}

/* Apple H5 final overrides: keep this block last. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --primary: #0071e3;
  --primary-dark: #005bbd;
  --soft: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.78);
  --danger: #ff3b30;
  --apple-purple: #00a3ff;
  --apple-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

body {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 113, 227, 0.12), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(0, 163, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfbfd, #f5f5f7 42%, #f5f5f7);
}

.sidebar,
.page-panel,
.site-footer,
.agent-card,
.info-card,
.history-panel,
.chat-panel,
.workflow-hero,
.system-card,
.workflow-nav,
.workflow-card,
.clean-upload-card,
.ultra-clean-agent .clean-agent-title,
.ultra-clean-agent .clean-extra,
.ultra-simple-head,
.ultra-simple-agent .clean-upload-card,
.ultra-simple-agent .document-box,
.ultra-simple-agent .clean-extra,
.ultra-simple-result,
.ultra-simple-empty,
.simple-step-card,
.workflow-empty,
.workflow-result,
.plan-review-card,
.document-preview-item {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--apple-shadow);
  backdrop-filter: blur(22px);
}

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

.sidebar {
  padding: 22px 16px;
  border-right-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.62);
}

.nav button {
  min-height: 48px;
  border-radius: 15px;
}

.nav button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--apple-purple));
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.2);
}

.content {
  padding: 30px;
}

.topbar h1,
.workflow-title h2,
.clean-agent-title h2,
.ultra-simple-head h2,
.workflow-hero h2 {
  letter-spacing: 0;
  font-weight: 850;
}

.page-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.56);
}

.primary-btn,
.workflow-actions .primary-btn,
.ultra-simple-actions .primary-btn {
  min-height: 46px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.24);
}

.ghost-btn,
.upload-button,
.suggestions button,
.category-tabs button,
.video-action-btn {
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.category-tabs button.active {
  background: var(--primary);
}

.tag {
  color: var(--primary);
  background: rgba(0, 113, 227, 0.1);
}

.workflow-hero {
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 163, 255, 0.11), transparent 30%),
    rgba(255, 255, 255, 0.74);
}

.workflow-layout {
  grid-template-columns: 270px 1fr;
}

.workflow-nav,
.workflow-card {
  border-radius: 28px;
}

.workflow-nav button {
  min-height: 62px;
  border-radius: 18px;
  background: rgba(245, 245, 247, 0.82);
}

.workflow-nav button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--apple-purple));
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.2);
}

.workflow-nav button.active small {
  color: rgba(255, 255, 255, 0.76);
}

.workflow-nav button span {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--apple-purple));
}

.workflow-nav button.active span {
  color: var(--primary);
  background: #fff;
}

.workflow-card {
  padding: 26px;
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 113, 227, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.84);
}

.workflow-title h2,
.clean-agent-title h2,
.ultra-simple-head h2 {
  font-size: 34px;
}

.field input,
.field textarea,
.field select,
.composer textarea,
.model-select select,
.table-input,
.plan-confirm-field select {
  border-color: var(--line);
  border-radius: 18px;
  background: #fbfbfd;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.composer textarea:focus {
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.1);
}

.clean-upload-card,
.workflow-image-box,
.workflow-document-box,
.communication-upload,
.simple-step-card {
  border-radius: 22px;
  background: #fbfbfd;
}

.workflow-image-box,
.workflow-document-box,
.communication-upload {
  border-style: dashed;
}

.upload-button,
.site-footer a,
.video-link,
.video-action-btn {
  color: var(--primary);
}

.simple-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

.workflow-result {
  border-radius: 24px;
  background: #fbfbfd;
}

.result-head {
  background: rgba(255, 255, 255, 0.82);
}

.bubble.user {
  background: var(--primary);
}

.bubble.assistant,
.table th {
  background: #f5f5f7;
}

@media (max-width: 980px) {
  .layout,
  .workflow-layout,
  .whole-intake-panel,
  .whole-lower-grid {
    grid-template-columns: 1fr;
  }

  .whole-command-top {
    display: grid;
  }

  .whole-project-editor,
  .whole-flow-grid,
  .whole-upload-cards,
  .admin-agent-hero,
  .admin-agent-shell,
  .admin-agent-basic-grid {
    grid-template-columns: 1fr;
  }

  .admin-agent-sidebar,
  .admin-agent-actions {
    position: static;
  }

  .content {
    padding: 18px;
  }

  .page-panel {
    border-radius: 26px;
    padding: 20px;
  }

  .workflow-title h2,
  .clean-agent-title h2,
  .ultra-simple-head h2,
  .workflow-hero h2 {
    font-size: 28px;
  }
}

/* Tech blue correction: remove blue-purple tint. */
:root {
  --primary: #0a84ff;
  --primary-dark: #0066ff;
  --apple-purple: #00a3ff;
  --tech-blue: #00a3ff;
  --tech-blue-soft: rgba(10, 132, 255, 0.1);
  --tech-blue-line: rgba(10, 132, 255, 0.22);
}

body {
  background:
    radial-gradient(circle at 14% 8%, rgba(10, 132, 255, 0.14), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(0, 163, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfdff, #f5f8fc 42%, #f5f8fc);
}

.brand-mark,
.nav button.active,
.primary-btn,
.workflow-nav button.active,
.workflow-nav button span,
.category-tabs button.active,
.bubble.user {
  background: linear-gradient(135deg, #0a84ff, #00a3ff) !important;
}

.primary-btn,
.workflow-actions .primary-btn,
.ultra-simple-actions .primary-btn {
  background: linear-gradient(135deg, #0a84ff, #007aff) !important;
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.24);
}

.primary-btn:hover {
  background: #0066ff !important;
}

.nav button.active,
.workflow-nav button.active {
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.22);
}

.workflow-nav button.active span {
  color: #0a84ff;
  background: #fff !important;
}

.tag,
.nav button.active + .tag {
  color: #0a84ff;
  background: rgba(10, 132, 255, 0.1);
}

.workflow-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 163, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.74);
}

.agent-art {
  background:
    radial-gradient(circle at 26% 30%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, rgba(10, 132, 255, 0.18), rgba(255, 255, 255, 0.86) 48%, rgba(0, 163, 255, 0.14));
}

.workflow-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(10, 132, 255, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.86);
}

.workflow-nav button.active,
.workflow-nav button.active small {
  color: #fff;
}

.ghost-btn,
.upload-button,
.video-action-btn,
.site-footer a,
.video-link,
.category-tabs button.active,
.workflow-nav button.active {
  border-color: transparent;
}

.upload-button,
.site-footer a,
.video-link,
.video-action-btn,
.tag,
.category-tabs button:not(.active):hover {
  color: #0a84ff;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.composer textarea:focus {
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.1);
}

.workflow-nav button.active,
.nav button.active {
  color: #fff;
}

.brand-mark,
.login-card .brand-mark {
  background: linear-gradient(135deg, #0a84ff, #00a3ff) !important;
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.22);
}

button.primary-btn,
.primary-btn,
.workflow-actions button.primary-btn,
.ultra-simple-actions button.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #0a84ff, #007aff) !important;
}

/* GPT-style agent editor */
.admin-gpts-root {
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid #dedee2;
  border-radius: 14px;
  background: #fff;
}

.admin-gpts-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 12px 18px;
  border-bottom: 1px solid #e8e8ea;
}

.admin-gpts-topbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-gpts-select {
  min-width: 210px;
  height: 42px;
  border: 1px solid #dedee2;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
}

.admin-gpts-top-actions {
  justify-content: flex-end;
}

.admin-gpts-status {
  max-width: 320px;
  color: #6e6e73;
  font-size: 13px;
}

.admin-gpts-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 480px;
  max-width: calc(50% - 30px);
  margin: 16px 0 14px;
  padding: 0 24px;
  text-align: center;
}

.admin-gpts-tabs span,
.admin-gpts-tabs strong {
  padding: 11px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.admin-gpts-tabs strong {
  border-color: #1d1d1f;
}

.admin-gpts-layout {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(430px, 1fr);
  min-height: 760px;
  border-top: 1px solid #e8e8ea;
}

.admin-gpts-config {
  display: grid;
  align-content: start;
  gap: 4px;
  max-height: 920px;
  overflow-y: auto;
  padding: 18px 26px 34px;
  border-right: 1px solid #e8e8ea;
}

.admin-config-section {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid #ededf0;
}

.admin-config-section h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.admin-config-section > p {
  margin: -3px 0 2px;
  font-size: 13px;
}

.admin-config-section textarea,
.admin-config-section input,
.admin-config-section select {
  border: 1px solid #dedee2;
  border-radius: 9px;
  background: #fff;
}

.admin-config-section > textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  line-height: 1.65;
}

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

.admin-capability-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  font-size: 14px;
}

.admin-capability-grid input {
  width: 18px;
  height: 18px;
}

.admin-upload-knowledge {
  display: inline-flex;
  width: max-content;
  min-height: 40px;
  align-items: center;
  border: 1px solid #cfcfd4;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  background: #fff;
}

.admin-upload-knowledge input {
  display: none;
}

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

.admin-knowledge-file {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border: 1px solid #dedee2;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.admin-file-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #0071e3;
  font-size: 10px;
  font-weight: 700;
  background: #eaf4ff;
}

.admin-knowledge-file strong,
.admin-knowledge-file small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-knowledge-file small {
  margin-top: 3px;
  color: #86868b;
}

.admin-knowledge-file button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #6e6e73;
  font-size: 19px;
  background: #f1f1f3;
}

.admin-extra-settings {
  border-top: 1px solid #ededf0;
  padding-top: 10px;
}

.admin-extra-settings summary {
  cursor: pointer;
  color: #444448;
  font-size: 14px;
}

.admin-extra-settings textarea,
.admin-extra-settings .field {
  width: 100%;
  margin-top: 10px;
}

.admin-gpts-preview {
  position: sticky;
  top: 0;
  display: flex;
  min-width: 0;
  height: 760px;
  flex-direction: column;
  align-items: center;
  padding: 30px 38px;
  text-align: center;
  background: #fff;
}

.admin-preview-label {
  align-self: flex-start;
  font-size: 18px;
  font-weight: 600;
}

.admin-preview-agent-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-top: 50px;
  place-items: center;
  border: 1px solid #dedee2;
  border-radius: 50%;
  color: #0071e3;
  font-size: 20px;
  background: #fff;
}

.admin-gpts-preview h2 {
  margin: 18px 0 8px;
  font-size: 25px;
  letter-spacing: 0;
}

.admin-gpts-preview > p {
  max-width: 580px;
  margin: 0;
  color: #6e6e73;
  line-height: 1.6;
}

.admin-preview-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 50px;
}

.admin-preview-suggestions button {
  min-height: 78px;
  border: 1px solid #dedee2;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  background: #fff;
}

.admin-preview-composer {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 66px;
  margin-top: auto;
  border: 1px solid #d8d8dc;
  border-radius: 22px;
  padding: 10px 14px;
  text-align: left;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.admin-preview-file-input {
  display: none;
}

.admin-preview-upload-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.admin-preview-upload-btn:hover {
  color: #0788ff;
}

.admin-preview-attachments {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 10px;
}

.admin-preview-attachment {
  max-width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
}

.admin-preview-attachment > span {
  color: #0788ff;
  font-size: 12px;
  font-weight: 700;
}

.admin-preview-attachment > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.admin-preview-attachment > button {
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.admin-preview-composer b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1d1d1f;
}

.admin-other-title {
  margin: 34px 0 16px;
}

.admin-other-title h2,
.admin-other-title p {
  margin: 0 0 6px;
}

@media (max-width: 1180px) {
  .admin-gpts-layout {
    grid-template-columns: 1fr;
  }

  .admin-gpts-config {
    max-height: none;
    border-right: 0;
  }

  .admin-gpts-preview {
    position: static;
    height: 680px;
    border-top: 1px solid #e8e8ea;
  }

  .admin-gpts-tabs {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .admin-gpts-topbar,
  .admin-gpts-topbar > div {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-gpts-select {
    width: 100%;
    min-width: 0;
  }

  .admin-gpts-tabs {
    width: 100%;
  }

  .admin-gpts-config,
  .admin-gpts-preview {
    padding: 18px;
  }

  .admin-preview-suggestions,
  .admin-capability-grid,
  .admin-agent-basic-grid {
    grid-template-columns: 1fr;
  }
}

.gpts-generate-ppt {
  border: 1px solid #d9cdbb;
  border-radius: 7px;
  padding: 7px 12px;
  background: #f7f2ea;
  color: #2f2b25;
  font-weight: 700;
  cursor: pointer;
}

.gpts-generate-ppt:hover {
  border-color: #9b8568;
  background: #eee5d8;
}

.pptx-bubble {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(720px, 100%);
  padding: 16px;
  border: 1px solid #e1d7c8;
  border-radius: 8px;
  background: #fffdf9;
}

.pptx-file-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 7px;
  background: #b94b2f;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.pptx-file-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.pptx-file-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pptx-file-info span {
  color: #6f665b;
  font-size: 13px;
}

.pptx-download-link {
  border-radius: 7px;
  padding: 10px 14px;
  background: #1d1a16;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pptx-bubble {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .pptx-file-icon {
    width: 42px;
    height: 42px;
  }

  .pptx-download-link {
    grid-column: 1 / -1;
    text-align: center;
  }
}


.admin-only-field > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.admin-only-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
