:root {
  --bg: #f4f7f6;
  --bg-soft: #edf2f0;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #e7efec;
  --border: #d9e2de;
  --border-strong: #bdcbc5;
  --text: #17221e;
  --text-soft: #3c4d47;
  --text-muted: #66766f;
  --accent: #087866;
  --accent-2: #056d5d;
  --accent-3: #b85f38;
  --warm: #a96f18;
  --good: #147a55;
  --bad: #c43f50;
  --grad: #087866;
  --surface-tint: #e7f4f0;
  --surface-warm: #fff2e9;
  --surface-info: #eaf3fa;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 18px 48px rgba(37, 61, 52, .11);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* { letter-spacing: 0 !important; }
html { background: var(--bg); }
body.site-body,
body.studio-body,
body.editor-body,
body.admin-body {
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text);
}
body.site-body::before,
body.studio-body::before,
body.editor-body::before,
body.admin-body::before { display: none !important; }

body.site-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.site-body textarea,
body.site-body select,
body.studio-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.studio-body textarea,
body.studio-body select,
body.editor-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.editor-body textarea,
body.editor-body select,
body.admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.admin-body textarea,
body.admin-body select {
  border-color: var(--border);
  background-color: #f7faf9;
  color: var(--text);
  color-scheme: light;
}
body.site-body input:disabled,
body.site-body textarea:disabled,
body.site-body select:disabled,
body.studio-body input:disabled,
body.studio-body textarea:disabled,
body.studio-body select:disabled,
body.editor-body input:disabled,
body.editor-body textarea:disabled,
body.editor-body select:disabled,
body.admin-body input:disabled,
body.admin-body textarea:disabled,
body.admin-body select:disabled {
  color: #8b9792;
  background-color: #edf1ef;
  opacity: 1;
}

a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { border-radius: 7px; }
button, a, input, textarea, select, summary {
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, opacity .16s ease, transform .16s ease, box-shadow .16s ease;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
}
input::placeholder, textarea::placeholder { color: #7b8984; opacity: 1; }
::selection { color: #fff; background: var(--accent); }
* { scrollbar-color: #b6c3be transparent; }
*::-webkit-scrollbar-thumb { background: #b6c3be !important; }

.btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn {
  min-height: 40px;
  border-radius: 7px !important;
  box-shadow: none !important;
}
.btn-primary,
.primary-btn {
  border: 1px solid var(--accent) !important;
  background: var(--accent) !important;
  color: #fff !important;
}
.btn-primary:hover,
.primary-btn:hover { border-color: #066a5a !important; background: #066a5a !important; opacity: 1 !important; box-shadow: 0 7px 18px rgba(8, 120, 102, .2) !important; }
.btn-soft,
.btn-secondary,
.secondary-btn {
  border-color: var(--border) !important;
  background: #fff !important;
  color: var(--text-soft) !important;
}
.btn-soft:hover,
.btn-secondary:hover,
.secondary-btn:hover { border-color: var(--border-strong) !important; background: var(--bg-hover) !important; color: var(--text) !important; }
.btn-ghost,
.ghost-btn { border-color: var(--border) !important; background: transparent !important; }
.icon-btn { min-width: 40px; min-height: 40px; border-radius: 7px !important; }

/* Shared public navigation */
.site-body .container { width: min(1240px, calc(100% - 48px)); }
.site-body .section-head h1,
.site-body .section-head h2,
.site-body .copy-header h1,
.site-body .project-info h3,
.site-body .tool-card h3 { color: var(--text) !important; }
.site-body .nav {
  min-height: 64px;
  border-color: var(--border);
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 1px 0 rgba(23, 34, 30, .03);
  backdrop-filter: saturate(120%) blur(18px);
}
.site-body .nav-inner { height: 64px; gap: 18px; }
.site-body .brand { color: var(--text); font-size: 16px; }
.site-body .brand-mark,
.studio-body .brand-mark,
.editor-body .editor-brand-mark,
.admin-body .sidebar .brand .mark {
  border-radius: 7px !important;
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.site-body .brand-mark svg,
.studio-body .brand-mark svg,
.editor-body .editor-brand-mark svg,
.admin-body .sidebar .brand .mark svg { color: #fff !important; }
.site-body .grad-text { background: none !important; color: var(--accent-2) !important; }
.site-body .nav-links { gap: 2px; }
.site-body .nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: #53645d;
  font-size: 13px;
}
.site-body .nav-links a:hover { background: #edf3f0; color: var(--text); }
.site-body .nav-links a.active { background: var(--surface-tint); color: var(--accent-2); }
.site-body .nav-user { gap: 7px; }
.site-body .nav-user-main {
  min-height: 38px;
  padding: 3px 8px 3px 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
}
.site-body .nav-user-main:hover { border-color: var(--border); background: #f3f7f5; }
.site-body .avatar { width: 30px; height: 30px; }
.site-body .nav-wallet {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f7f9f8;
}
.site-body .nav-wallet strong { color: var(--text); }
.site-body .nav-admin-link {
  min-height: 38px;
  border-color: rgba(79, 209, 181, .26);
  border-radius: 7px;
  background: var(--surface-tint);
  color: var(--accent);
}
.site-body .nav-admin-link:hover { border-color: rgba(8, 120, 102, .45); background: #dcefe9; }
.site-body .nav-account-menu summary {
  width: 38px;
  height: 38px;
  border-color: var(--border);
  border-radius: 7px;
  background: #f7f9f8;
}
.site-body .nav-account-panel {
  width: 210px;
  border-color: var(--border-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37, 61, 52, .16);
}
.site-body .nav-account-panel > a,
.site-body .nav-account-panel > button { border-radius: 5px; }
.site-body .nav-account-panel > a:hover,
.site-body .nav-account-panel > button:hover { background: #edf4f1; }
.site-body .account-mode-btn.active { background: var(--accent) !important; color: #fff; }
.site-body .nav-dropdown { top: 64px; border-color: var(--border); background: #fff; }
.site-body .hamburger-btn { width: 40px; height: 40px; border-radius: 7px; }

/* Homepage */
.home-main { overflow: hidden; }
.workbench-hero {
  position: relative;
  isolation: isolate;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: #f8fbfa;
}
.workbench-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 34%;
  background: #e2f2ed;
}
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr);
  gap: 64px;
  align-items: center;
  min-height: 570px;
  padding-top: 42px;
  padding-bottom: 42px;
}
.workbench-intro { min-width: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.workbench-intro h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 52px;
  font-weight: 740;
  line-height: 1.12;
}
.workbench-lead {
  max-width: 650px;
  margin: 20px 0 28px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}
.site-body .workbench-prompt {
  display: block;
  width: min(680px, 100%);
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(38, 76, 64, .12);
}
.site-body .workbench-prompt:focus-within { border-color: rgba(8, 120, 102, .7); box-shadow: 0 0 0 3px rgba(8, 120, 102, .1), 0 18px 45px rgba(38, 76, 64, .12); }
.workbench-prompt > label {
  display: block;
  padding: 14px 16px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}
.site-body .workbench-prompt textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 11px 16px 16px;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: vertical;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px;
  line-height: 1.65;
}
.prompt-actions {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 16px;
  border-top: 1px solid var(--border);
  background: #f4f8f6;
}
.prompt-actions > span { color: var(--text-muted); font-size: 12px; }
.site-body .workbench-prompt .gen-go {
  min-width: 132px;
  min-height: 42px;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  font-weight: 750;
}
.site-body .workbench-prompt .gen-go:hover { border-color: #066a5a; background: #066a5a; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(8, 120, 102, .2); }
.site-body .workbench-prompt .gen-go svg { width: 17px; height: 17px; }
.quick-launch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.quick-launch a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-soft);
  background: #fff;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(42, 67, 58, .05);
}
.quick-launch a:hover { border-color: #9fc7bb; background: var(--surface-tint); color: var(--accent-2); transform: translateY(-1px); }
.quick-launch svg { width: 16px; height: 16px; color: var(--accent); }
.quick-launch a:nth-child(2) svg { color: var(--accent-3); }
.quick-launch a:nth-child(3) svg { color: #397fb0; }
.quick-launch a:nth-child(4) svg { color: #795fa8; }

.workbench-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(38, 76, 64, .16);
}
.workbench-preview > header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
}
.workbench-preview > header > div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.workbench-preview > header a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}
.workbench-preview > header a:hover,
.text-link:hover { color: var(--accent); }
.workbench-preview > header svg,
.text-link svg { width: 15px; height: 15px; }
.preview-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #17221e;
}
.preview-media video,
.preview-media img { width: 100%; height: 100%; object-fit: cover; }
.preview-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(7, 10, 9, .72);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  color: #fff;
}
.preview-play svg { width: 18px; height: 18px; margin-left: 2px; }
.preview-media:hover .preview-play { transform: translate(-50%, -50%) scale(1.06); background: rgba(7, 10, 9, .9); }
.preview-empty > div {
  position: absolute;
  inset: auto 16px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(8, 11, 10, .76);
  color: #d7ddda;
  font-size: 12px;
  backdrop-filter: blur(10px);
}
.preview-empty > div svg { width: 17px; height: 17px; }
.preview-meta {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
}
.preview-meta > div { min-width: 0; }
.preview-meta strong,
.preview-meta span { display: block; }
.preview-meta strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.preview-meta div > span { margin-top: 3px; color: var(--text-muted); font-size: 11px; }
.preview-duration { flex: none; color: var(--text-soft); font-size: 12px; }
.workbench-stats {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}
.workbench-stats span { white-space: nowrap; }
.workbench-stats strong { margin-right: 5px; color: var(--text); font-size: 14px; }
.workbench-stats a { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--text-soft); }
.workbench-stats a:hover { color: var(--accent-2); }
.workbench-stats svg { width: 15px; height: 15px; }

.workflow-section,
.capability-section,
.home-recent { padding: 76px 0; }
.workflow-section { background: #fff; }
.workflow-head { align-items: flex-end; margin-bottom: 34px; }
.workflow-head h2,
.capability-copy h2,
.home-recent .section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px !important;
  font-weight: 700;
  line-height: 1.25;
}
.workflow-head > p { max-width: 460px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.7; text-align: right; }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.home-main .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workflow-step {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px;
  border-right: 1px solid var(--border);
}
.workflow-step::after {
  content: "";
  position: absolute;
  left: 22px;
  top: -1px;
  width: 42px;
  height: 3px;
  background: var(--accent);
}
.workflow-step:nth-child(2)::after { background: var(--accent-3); }
.workflow-step:nth-child(3)::after { background: #397fb0; }
.workflow-step:nth-child(4)::after { background: #cf6454; }
.workflow-step:nth-child(5)::after { background: #795fa8; }
.workflow-step:last-child { border-right: 0; }
.workflow-step:hover { background: #f5f9f7; }
.workflow-step > svg { width: 23px; height: 23px; margin: 23px 0 15px; color: var(--accent-2); }
.workflow-step:nth-child(2) > svg { color: var(--accent-3); }
.workflow-step:nth-child(3) > svg { color: #79b9e8; }
.workflow-step:nth-child(4) > svg { color: #ef9c86; }
.step-number { color: #70817a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.workflow-step strong { color: var(--text); font-size: 15px; }
.workflow-step small { margin-top: 6px; color: var(--text-muted); font-size: 12px; line-height: 1.55; }

.capability-section { border-top: 1px solid var(--border); background: #edf4f1; }
.capability-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(440px, 1.3fr); gap: 90px; align-items: start; }
.capability-copy > p:not(.section-label) { max-width: 430px; margin: 16px 0 24px; color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.capability-list { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 14px 38px rgba(38, 76, 64, .08); }
.capability-list > a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.capability-list > a:last-child { border-bottom: 0; }
.capability-list > a:hover { background: #f7faf9; }
.capability-list > a > span { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #cce2db; border-radius: 7px; background: var(--surface-tint); color: var(--accent); }
.capability-list > a:nth-child(2) > span { border-color: #d6e2ee; background: var(--surface-info); color: #397fb0; }
.capability-list > a:nth-child(3) > span { border-color: #f0d7c7; background: var(--surface-warm); color: var(--accent-3); }
.capability-list > a > span svg { width: 19px; height: 19px; }
.capability-list > a > div { min-width: 0; }
.capability-list strong,
.capability-list small { display: block; }
.capability-list strong { font-size: 14px; }
.capability-list small { margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.capability-list > a > svg { width: 17px; height: 17px; color: #77867f; }

.site-body .home-recent { border-top: 1px solid var(--border); background: #f8faf9; }
.site-body .home-recent .section-head { align-items: flex-end; margin-bottom: 26px; }
.site-body .home-recent .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.site-body .home-recent .vcard {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(38, 76, 64, .08);
}
.site-body .home-recent .vcard:hover { border-color: #aecac1; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(38, 76, 64, .13); }
.site-body .home-recent .vthumb { border-radius: 0; background: #17221e; }
.site-body .home-recent .vmeta { padding: 13px 14px 15px; }
.site-body .home-recent .vmeta h3 {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Other public pages */
.site-body .section { padding: 54px 0; }
.site-body .copy-box,
.site-body .tool-card,
.site-body .project-card,
.site-body .copy-item,
.site-body .empty,
.site-body .detail-player,
.site-body .prompt-box,
.site-body .auth-card,
.site-body .project-create-card,
.site-body .wallet-modal-card {
  border-color: var(--border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 12px 34px rgba(38, 76, 64, .09) !important;
}
.site-body .tool-card:hover,
.site-body .project-card:hover { border-color: var(--border-strong) !important; transform: translateY(-2px); }
.site-body .tool-icon { border-radius: 7px; background: var(--surface-tint); color: var(--accent); box-shadow: none; }
.site-body .cat-pill { border-radius: 7px; background: #fff; }
.site-body .cat-pill.active { border-color: rgba(8, 120, 102, .38); background: var(--surface-tint); color: var(--accent); box-shadow: none; }
.site-body .tab-row button.active { border-bottom-color: var(--accent); color: var(--accent) !important; }
.site-body .project-cover-empty { background: #e8efec !important; }
.site-body .footer { border-color: var(--border); background: #fff; }
.site-body .footer-inner { padding: 28px 0 18px; }

/* Studio */
.studio-body .app-shell,
.studio-body .workspace { background: var(--bg) !important; }
.studio-body .sidebar {
  width: 216px;
  border-color: var(--border);
  background: #fff !important;
  box-shadow: 8px 0 28px rgba(38, 76, 64, .05) !important;
}
.studio-body .brand-block { min-height: 64px; border-color: var(--border); }
.studio-body .side-nav { padding: 12px 10px; }
.studio-body .nav-item { min-height: 42px; border-radius: 6px; color: var(--text-muted); }
.studio-body .nav-item:hover { background: #f0f5f3; color: var(--text); }
.studio-body .nav-item.active {
  background: var(--surface-tint) !important;
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent) !important;
}
.studio-body .sidebar-bottom { border-color: var(--border); }
.studio-body .workspace { padding: 24px 28px 48px; }
.studio-body .topbar {
  min-height: 52px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(38, 76, 64, .06) !important;
}
.studio-body .topbar .eyebrow,
.studio-body .kicker { color: var(--accent-2); text-transform: none; }
.studio-body .balance-pill { border-radius: 7px; background: #fff !important; box-shadow: 0 4px 14px rgba(38, 76, 64, .06); }
.studio-body .account-mode-btn.active { background: var(--accent) !important; color: #fff; }
.studio-body .studio-grid { grid-template-columns: minmax(500px, 1fr) minmax(340px, 420px); gap: 18px; }
.studio-body .composer-column,
.studio-body .preview-column,
.studio-body .history-item,
.studio-body .shot-card,
.studio-body .modal-card {
  border-color: var(--border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 12px 32px rgba(38, 76, 64, .08) !important;
}
.studio-body .preview-column { position: sticky; top: 24px; }
.studio-body .prompt-input,
.studio-body .prompt-composite,
.studio-body .select,
.studio-body .auth-form input { border-color: var(--border); border-radius: 7px; background: #f7faf9 !important; }
.studio-body .prompt-composite:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 120, 102, .1); }
.studio-body .upload-slot { border-radius: 7px; background: #f7faf9 !important; }
.studio-body .upload-slot:hover { border-color: var(--accent); box-shadow: none !important; }
.studio-body .preview-content { border-color: var(--border); border-radius: 7px; background: #f5f8f7 !important; }
.studio-body .history-filters { border-radius: 7px; background: #f1f5f3 !important; }
.studio-body .history-filter { border-radius: 5px; }
.studio-body .history-filter.active { background: #fff; box-shadow: 0 2px 8px rgba(38, 76, 64, .08); }
.studio-body .history-kind { color: var(--accent); background: var(--surface-tint); }
.studio-body .auth-screen { background: #eef4f1 !important; }
.studio-body .auth-screen::before { display: none; }
.studio-body .auth-card { border-radius: 8px; background: #fff; box-shadow: var(--shadow); }

/* Project editor */
.editor-body .editor-shell,
.editor-body .editor-main { background: var(--bg) !important; }
.editor-body .editor-sidebar,
.editor-body .editor-topbar,
.editor-body .editor-footer,
.editor-body .editor-fixed-header {
  border-color: var(--border);
  background: #fff !important;
}
.editor-body .editor-sidebar { box-shadow: 8px 0 28px rgba(38, 76, 64, .05); }
.editor-body .shot-list-item { border-radius: 7px; background: #f7faf9; }
.editor-body .shot-list-item.active { border-color: #a7cbc0; background: var(--surface-tint) !important; color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.editor-body .editor-tabs { border-radius: 7px; background: #f1f5f3; }
.editor-body .editor-tabs .tab { border-radius: 5px; }
.editor-body .editor-tabs .tab.active { background: #fff !important; color: var(--accent); box-shadow: 0 2px 8px rgba(38, 76, 64, .09); }
.editor-body .shot-card,
.editor-body .asset-card,
.editor-body .asset-empty,
.editor-body .modal {
  border-color: var(--border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 10px 28px rgba(38, 76, 64, .08) !important;
}
.editor-body .shot-card.selected,
.editor-body .asset-card.selected { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(8, 120, 102, .09), 0 10px 28px rgba(38, 76, 64, .08) !important; }
.editor-body .shot-prompt,
.editor-body .shot-controls select,
.editor-body select,
.editor-body .field input,
.editor-body .field textarea,
.editor-body .field select,
.editor-body .prompt-edit-text,
.editor-body .editor-footer input,
.editor-body .model-picker-trigger { border-color: var(--border); border-radius: 7px; background: #f7faf9 !important; }
.editor-body .model-picker-menu,
.editor-body .mention-menu { border-color: var(--border-strong); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.editor-body .model-picker-group-title { background: #fff; color: var(--accent); }
.editor-body .model-picker-option:hover,
.editor-body .model-picker-option.selected { background: var(--surface-tint); }
.editor-body .asset-thumb,
.editor-body .asset-thumb-placeholder { background: #e8efec !important; }
.editor-body .editor-admin-link { border-color: rgba(8, 120, 102, .25); background: var(--surface-tint); color: var(--accent); }

/* Admin */
.admin-body .admin-shell,
.admin-body .main { background: var(--bg) !important; }
.admin-body .sidebar { width: 224px; border-color: var(--border); background: #fff !important; box-shadow: 8px 0 28px rgba(38, 76, 64, .05); }
.admin-body .sidebar .brand { min-height: 64px; border-color: var(--border); }
.admin-body .side-nav { padding: 12px 10px; gap: 3px; }
.admin-body .side-nav a { min-height: 42px; border-radius: 6px; color: var(--text-muted); transition: color .14s ease, background-color .14s ease, box-shadow .14s ease; }
.admin-body .side-nav a:hover { background: #f0f5f3; color: var(--text); }
.admin-body .side-nav a.active { background: var(--surface-tint) !important; color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.admin-body .sidebar .foot { border-color: var(--border); }
.admin-body .main { padding: 28px 32px 52px; }
.admin-body .panel,
.admin-body .stat-card,
.admin-body .model-toolbar,
.admin-body .pricing-stat,
.admin-body .pricing-batch-panel,
.admin-body .group-card {
  border-color: var(--border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 10px 28px rgba(38, 76, 64, .07) !important;
}
.admin-body .stat-card { min-height: 118px; }
.admin-body .panel-head { border-color: var(--border); }
.admin-body th,
.admin-body .model-table th,
.admin-body .pricing-table th { background: #f3f6f5 !important; color: var(--text-muted); }
.admin-body tbody tr:hover td,
.admin-body .pricing-table tbody tr:hover td { background: #f1f7f4 !important; }
.admin-body .model-search,
.admin-body .model-filter-select,
.admin-body .task-filter-search,
.admin-body .task-filter-options select,
.admin-body .field input,
.admin-body .field textarea,
.admin-body .field select,
.admin-body .admin-filter-input,
.admin-body .admin-filter-select,
.admin-body .admin-inline-input,
.admin-body .admin-inline-select,
.admin-body .pricing-batch-value {
  border-color: var(--border) !important;
  border-radius: 7px;
  background: #f7faf9 !important;
}
.admin-body .model-search input,
.admin-body .model-billing-select,
.admin-body .model-billing-input,
.admin-body .pricing-edit-form select,
.admin-body .pricing-edit-form input {
  background: transparent !important;
  color: var(--text) !important;
}
.admin-body .task-filter-bar,
.admin-body .admin-inline-form { border-color: var(--border); border-radius: 8px; background: #fff; }
.admin-body .task-overview-item { border-color: var(--border); background: #fff; box-shadow: 0 5px 16px rgba(38, 76, 64, .05); }
.admin-body .task-overview-item:hover,
.admin-body .task-overview-item.is-active { border-color: rgba(8, 120, 102, .45); background: var(--surface-tint); }
.admin-body .task-id,
.admin-body .table-result-link,
.admin-body .redeem-code { color: var(--accent-2); }
.admin-body .task-item[open] > .task-summary { background: #f0f7f4; }
.admin-body .task-progress-track > span,
.admin-body .progress > span { background: var(--accent); }
.admin-body .modal { border-color: var(--border-strong); border-radius: 8px; background: #fff !important; box-shadow: var(--shadow); }
.admin-body .provider-tag,
.admin-body .pill,
.admin-body .billing-mode-tag { border-radius: 5px; }

@media (max-width: 1120px) {
  .site-body .hamburger-btn { display: inline-flex; margin-left: auto; }
  .site-body .nav-links { display: none; }
  .site-body .nav-spacer { display: none; }
  .workbench-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr); gap: 34px; }
  .workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow-step:nth-child(3) { border-right: 0; }
  .workflow-step:nth-child(n+4) { border-top: 1px solid var(--border); }
  .site-body .home-recent .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-body .container { width: min(100% - 32px, 720px); }
  .site-body .nav-inner { width: calc(100% - 32px); }
  .site-body .nav-wallet,
  .site-body .nav-admin-link,
  .site-body .nav-name { display: none; }
  .site-body .nav-dropdown.open { display: block; }
  .workbench-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; padding-bottom: 38px; }
  .workbench-intro h1 { max-width: 620px; font-size: 44px; }
  .workbench-preview { display: none; }
  .workflow-head { align-items: flex-start; flex-direction: column; }
  .workflow-head > p { text-align: left; }
  .capability-layout { grid-template-columns: 1fr; gap: 38px; }
  .site-body .home-recent .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-body .admin-shell,
  .studio-body .app-shell { display: block; }
  .admin-body .sidebar,
  .studio-body .sidebar {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 58px;
    position: sticky;
    top: 0;
    z-index: 80;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .admin-body .sidebar .brand,
  .studio-body .brand-block {
    min-height: 58px;
    padding: 10px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }
  .admin-body .side-nav,
  .studio-body .side-nav {
    flex: 1;
    flex-direction: row;
    gap: 4px;
    padding: 8px;
    overflow-x: auto;
  }
  .admin-body .side-nav a,
  .studio-body .nav-item { min-height: 38px; flex: 0 0 auto; white-space: nowrap; }
  .admin-body .sidebar .foot,
  .studio-body .sidebar-bottom { display: none; }
  .admin-body .main,
  .studio-body .workspace { padding: 20px 18px 42px; }
  .studio-body .studio-grid { grid-template-columns: 1fr; }
  .studio-body .preview-column { position: static; }
}

@media (max-width: 860px) {
  .editor-body .editor-sidebar {
    width: 100%;
    min-width: 0;
    height: 60px;
    padding: 8px 10px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .editor-body .editor-brand { min-height: 40px; flex: none; }
  .editor-body .editor-brand strong,
  .editor-body .editor-sidebar-title { display: none; }
  .editor-body .editor-back {
    display: grid;
    width: 40px;
    min-height: 40px;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0;
  }
  .editor-body .editor-back::before { content: "←"; font-size: 17px; }
  .editor-body .editor-admin-link {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    flex: none;
    font-size: 0;
  }
  .editor-body .editor-admin-link svg { width: 17px; height: 17px; }
  .editor-body .shot-list-scroll {
    flex: 1;
    min-width: 0;
    height: 42px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .editor-body .shot-list { flex-direction: row; gap: 6px; }
  .editor-body .shot-list-item { min-width: 150px; min-height: 40px; padding: 8px; }
  .editor-body .shot-list-scroll #add-shot { width: auto; min-width: 106px; min-height: 40px; }
}

@media (max-width: 720px) {
  .site-body .home-recent .section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-body .container { width: calc(100% - 28px); }
  .site-body .nav-inner { width: calc(100% - 28px); gap: 8px; }
  .site-body .brand { font-size: 15px; }
  .site-body .nav-user-main { display: none; }
  .workbench-grid { gap: 30px; padding-top: 36px; }
  .workbench-intro h1 { font-size: 36px; line-height: 1.18; }
  .workbench-lead { margin-top: 16px; font-size: 14px; }
  .prompt-actions { align-items: stretch; flex-direction: column; }
  .prompt-actions > span { padding: 2px 2px 0; }
  .site-body .workbench-prompt .gen-go { width: 100%; min-height: 44px; }
  .quick-launch { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-launch a { justify-content: center; }
  .workbench-stats { gap: 14px 20px; flex-wrap: wrap; padding: 14px 0; }
  .workbench-stats a { width: 100%; margin-left: 0; }
  .workflow-section,
  .capability-section,
  .home-recent { padding: 56px 0; }
  .workflow-head h2,
  .capability-copy h2,
  .home-recent .section-head h2 { font-size: 24px !important; }
  .workflow-steps { grid-template-columns: 1fr; }
  .home-main .workflow-steps { grid-template-columns: 1fr; }
  .workflow-step { min-height: 132px; padding: 19px 16px; border-right: 0; border-top: 1px solid var(--border); }
  .workflow-step:first-child { border-top: 0; }
  .workflow-step > svg { margin: 14px 0 10px; }
  .site-body .home-recent .grid { grid-template-columns: 1fr; }
  .admin-body .sidebar .brand span,
  .studio-body .brand-block > div:last-child { display: none; }
  .admin-body .sidebar .brand,
  .studio-body .brand-block { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
