
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Sora:wght@500;700;800&display=swap");

:root {
  --bg: #fff8f2;
  --bg-soft: #fff3e8;
  --panel: rgba(255,255,255,.9);
  --panel-strong: rgba(255,255,255,.96);
  --line: #efd3b7;
  --text: #32271d;
  --muted: #806b58;
  --accent: #ff8d2f;
  --accent-strong: #f26700;
  --accent-soft: #ffe6d0;
  --success: #1f8f63;
  --error: #d84d42;
  --warn: #bf770d;
  --shadow: 0 10px 24px rgba(180,110,42,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255,163,78,.16), transparent 20%),
    radial-gradient(circle at bottom left, rgba(255,220,188,.18), transparent 24%),
    linear-gradient(180deg, #fff8f2 0%, #fffdfb 100%);
}
.shell { width: min(1380px, calc(100vw - 28px)); margin: 10px auto 28px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(140deg, rgba(255,249,243,.96) 0%, rgba(255,241,223,.94) 100%);
  box-shadow: 0 10px 24px rgba(180,110,42,.08);
}
.topbar-left {
  min-width: 0;
  flex: 1;
}
.brand-kicker { color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.brand-title {
  margin-top: 6px; color: var(--accent-strong); font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(22px, 2.7vw, 36px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar p, .card p, .auth-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.75; }
.topbar-right, .actions, .badge-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.topbar-right { flex-shrink: 0; align-self: flex-start; }
.admin-anchor { display: flex; align-items: center; }
.admin-menu {
  position: relative;
}
.admin-menu > summary {
  list-style: none;
  cursor: pointer;
}
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, calc(100vw - 40px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  z-index: 20;
}
.card-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.chip {
  display: inline-flex; align-items: center; padding: 9px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 800;
}
.chip-button {
  border: none;
  cursor: pointer;
  font: inherit;
}
.status { min-height: 22px; font-size: 14px; }
.page { display: grid; gap: 16px; margin-top: 16px; }
.auth-stage, .workspace {
  border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow);
}
.auth-stage { min-height: 62vh; display: flex; align-items: center; justify-content: center; padding: 28px; }
.auth-card {
  width: min(560px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--panel-strong); box-shadow: var(--shadow);
}
.auth-card h2, .card h2, .card h3 { margin: 0; }
.auth-card h2 { font-size: 28px; }
.workspace { padding: 18px; }
.workspace-shell { display: grid; grid-template-columns: 370px minmax(0,1fr); gap: 16px; align-items: start; }
.workspace-side, .workspace-main { display: grid; gap: 16px; min-width: 0; }
.sticky { position: sticky; top: 12px; }
#summary .card { position: sticky; top: 12px; z-index: 5; }
.card {
  border: 1px solid var(--line); border-radius: 22px; background: var(--panel-strong); box-shadow: var(--shadow);
  padding: 20px;
}
.section-kicker {
  margin-bottom: 8px; color: var(--accent-strong); font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.card h2 { font-size: 24px; }
.field { margin-top: 14px; }
.field label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.field input, .field select, .button-primary, .button-secondary, .role-select {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.95); color: var(--text); font: inherit;
}
.password-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}
.password-wrap input {
  width: 100%;
}
.password-toggle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.password-toggle:hover {
  border-color: rgba(255,141,47,.52);
}
.password-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.field input:focus, .field select:focus, .role-select:focus {
  outline: 3px solid rgba(255,141,47,.14); border-color: rgba(255,141,47,.52);
}
.helper { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.button-primary {
  margin-top: 16px; border: none; background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 14px 28px rgba(242,103,0,.18);
}
.button-primary:disabled { opacity: .68; cursor: wait; }
.button-secondary { width: auto; background: #fff; cursor: pointer; }
.button-secondary:hover { border-color: rgba(255,141,47,.52); color: var(--accent-strong); }
.compact-select {
  width: auto;
  min-width: 170px;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  color: var(--text);
  font: inherit;
}
.compact-select:focus {
  outline: 3px solid rgba(255,141,47,.14);
  border-color: rgba(255,141,47,.52);
}
.section-top, .history-top, .user-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.summary-item, .history-item, .user-item { border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); }
.summary-item { padding: 12px; }
.summary-item span, .meta { display: block; color: var(--muted); font-size: 12px; }
.history-list, .user-list { display: grid; gap: 10px; margin-top: 16px; }
.history-item, .user-item { padding: 14px; }
.history-title, .user-title { font-size: 15px; font-weight: 700; }
.history-preview {
  margin-top: 10px; padding: 12px; border-radius: 14px; background: #fffdfa; border: 1px solid #f0dfcf;
  white-space: pre-wrap; word-break: break-word; line-height: 1.72; font-size: 13px; max-height: 180px; overflow: auto;
}
pre {
  margin: 16px 0 0; padding: 18px; border-radius: 18px; border: 1px solid #f0dfcf; background: #fffaf4;
  color: #36291d; white-space: pre-wrap; word-break: break-word; line-height: 1.78; font-size: 14px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  max-height: none;
  overflow: visible;
}
.user-card-shell {
  text-align: left;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.user-email {
  margin-top: 12px;
}
.user-badges-centered,
.cleanup-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.user-badges-centered {
  flex-wrap: wrap;
}
.cleanup-row {
  display: grid;
  grid-template-columns: minmax(0, 118px) auto minmax(0, 118px) auto;
  column-gap: 8px;
  row-gap: 8px;
}
.cleanup-date {
  min-width: 0;
  width: 100%;
  padding: 9px 30px 9px 10px;
  font-size: 13px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.cleanup-date::-webkit-calendar-picker-indicator {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  transform: scale(.82);
  transform-origin: center;
  cursor: pointer;
}
.cleanup-separator {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  justify-self: center;
}
.cleanup-row .button-secondary {
  padding: 10px 12px;
  white-space: nowrap;
  min-width: 82px;
  margin-top: 0;
}
.combo-field {
  position: relative;
}
.combo-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}
.combo-toggle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 16px;
}
.combo-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 280px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: 0 12px 24px rgba(180,110,42,.10);
  z-index: 30;
  scrollbar-gutter: stable;
}
.combo-group {
  padding: 8px 10px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.combo-filters {
  display: flex;
  gap: 8px;
  padding: 10px;
  position: sticky;
  top: 0;
  background: var(--panel-strong);
  z-index: 2;
  border-bottom: 1px solid rgba(239,211,183,.65);
  pointer-events: auto;
}
.combo-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  pointer-events: auto;
  user-select: none;
}
.combo-filter.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(255,141,47,.45);
}
.combo-option {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
}
.combo-option:hover {
  background: var(--bg-soft);
}
.prompt-card pre {
  margin-top: 0;
}
.prompt-scroll {
  margin-top: 16px;
  max-height: min(64vh, calc(100vh - 320px));
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  scrollbar-gutter: stable;
  contain: content;
  padding: 0 2px 22px 0;
}
.helper-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.image-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(239,211,183,.8);
  background: #fff;
}
.image-card .actions {
  margin-top: 10px;
  justify-content: flex-start;
}
.image-card .button-secondary {
  text-decoration: none;
}
#user-card {
  min-height: 390px;
}
#summary .card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.history-details {
  margin-top: 10px;
}
.history-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 700;
}
.history-preview {
  margin-top: 10px;
}
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
@media (max-width: 980px) {
  .workspace-shell { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  #summary .card { position: static; }
}
@media (max-width: 640px) {
  .shell { width: min(100vw - 14px, 100%); margin-top: 8px; }
  .topbar, .auth-stage, .auth-card, .workspace, .card { border-radius: 18px; }
  .row, .summary-grid { grid-template-columns: 1fr; }
  .section-top, .history-top, .user-top, .topbar { flex-direction: column; align-items: flex-start; }
}

/* Premium SaaS redesign override */
:root {
  --bg: #f5f7fa;
  --bg-soft: #fff7ed;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, .08);
  --success: #16a34a;
  --error: #dc2626;
  --warn: #d97706;
  --shadow: 0 20px 60px rgba(15, 23, 42, .08);
  --ease: cubic-bezier(.4, 0, .2, 1);
}
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f7fa;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100%;
  background: #f5f7fa;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, select, .card, .option-card, .combo-option, .combo-filter, .chip {
  transition: all .25s var(--ease);
}
.shell {
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
}
.page {
  min-height: 0;
  display: grid;
  gap: 0;
  margin-top: 0;
}
.topbar {
  min-height: 104px;
  padding: 20px 28px;
  border: 0;
  border-bottom: 1px solid rgba(229, 231, 235, .86);
  border-radius: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  box-shadow: none;
}
.brand-title {
  color: var(--accent);
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(27px, 3.2vw, 46px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
}
.brand-kicker {
  color: #8b7b71;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}
.auth-stage {
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, .12), transparent 22%),
    radial-gradient(circle at 86% 8%, rgba(251, 146, 60, .10), transparent 24%),
    #f5f7fa;
}
.auth-card {
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid #fed7aa;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.workspace {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.workspace-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  grid-template-columns: none;
  align-items: stretch;
  gap: 0;
}
.workspace-side {
  flex: 0 0 396px;
  width: 396px;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border-right: 1px solid rgba(229, 231, 235, .9);
  box-shadow: 16px 0 46px rgba(15, 23, 42, .045);
}
.workspace-main {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background-color: #f5f7fa;
  background-image:
    radial-gradient(circle, rgba(17, 24, 39, .075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, 0));
  background-size: 22px 22px, 100% 360px;
}
.sticky,
#summary .card {
  position: static;
  top: auto;
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  padding: 20px;
}
.workspace-side .card {
  box-shadow: none;
  border-color: rgba(229, 231, 235, .9);
}
.section-kicker {
  color: var(--accent);
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.card h2,
.auth-card h2 {
  color: #111827;
  font-weight: 800;
  letter-spacing: -.025em;
}
.field {
  margin-top: 28px;
}
.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}
.field input,
.field select,
.button-primary,
.button-secondary,
.role-select,
.compact-select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1f2937;
  outline: none;
}
.field input:focus,
.field select:focus,
.role-select:focus,
.compact-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .14);
}
.helper {
  color: #9ca3af;
  font-size: 12px;
}
.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.option-grid-two {
  grid-template-columns: 1fr 1fr;
}
.option-card {
  position: relative;
  min-height: 74px;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  color: #6b7280;
  text-align: left;
  cursor: pointer;
}
.option-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}
.option-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(249, 115, 22, .12);
}
.option-card strong {
  display: block;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}
.option-card small {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.45;
}
.option-index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
}
.option-card.active .option-index {
  background: var(--accent);
  color: #fff;
}
.option-check {
  position: absolute;
  top: 9px;
  right: 10px;
  display: none;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.option-card.active .option-check {
  display: grid;
}
.button-primary {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 30px;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(249, 115, 22, .28);
}
.button-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(249, 115, 22, .4);
}
.button-primary:active {
  transform: scale(.97);
}
.button-secondary {
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
}
.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.password-toggle,
.combo-toggle {
  width: 48px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--accent);
}
.password-toggle:hover,
.combo-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .10);
}
.chip {
  min-height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}
.cleanup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.cleanup-date {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 8px 28px 8px 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cleanup-date::-webkit-calendar-picker-indicator {
  width: 13px;
  height: 13px;
  margin-left: 2px;
  transform: scale(.78);
}
.combo-menu {
  max-height: 320px;
  border-color: #e5e7eb;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 80;
}
.combo-filters {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}
.combo-filter {
  border-color: #e5e7eb;
  color: #6b7280;
}
.combo-filter:hover,
.combo-filter.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.combo-option:hover {
  background: #f9fafb;
  color: var(--accent);
}
#summary .card {
  min-height: 390px;
}
.summary-item,
.history-item,
.user-item {
  background: #fff;
  border-color: #e5e7eb;
}
.prompt-card {
  border-color: rgba(249, 115, 22, .25);
}
.prompt-scroll {
  max-height: calc(100vh - 430px);
  min-height: 280px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0 0 76px;
  contain: none;
}
pre {
  margin: 0;
  padding: 20px 22px 96px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
}
.empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(249, 115, 22, .32);
  color: #6b7280;
  background:
    radial-gradient(circle at 50% 40%, rgba(249, 115, 22, .08), transparent 28%),
    rgba(255, 255, 255, .78);
}
@media (max-width: 1100px) {
  html, body {
    overflow: auto;
  }
  .shell {
    height: auto;
    min-height: 100vh;
  }
  .workspace {
    overflow: visible;
  }
  .workspace-shell {
    display: grid;
    height: auto;
  }
  .workspace-side,
  .workspace-main {
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .workspace-side {
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .prompt-scroll {
    max-height: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .topbar-right,
  .section-top,
  .history-top,
  .user-top {
    justify-content: flex-start;
  }
  .brand-title {
    white-space: normal;
  }
  .workspace-side,
  .workspace-main {
    padding: 16px;
  }
  .option-grid-two,
  .summary-grid,
  .row,
  .cleanup-row {
    grid-template-columns: 1fr;
  }
  .cleanup-separator {
    display: none;
  }
}

/* Floating island refinement for a Linear/Figma-like SaaS workspace */
html, body {
  overflow: auto;
  background: #f5f7fa !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
body {
  min-height: 100vh;
  color: #1f2937;
}
.shell {
  width: min(1400px, calc(100vw - 48px));
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 24px;
  background: transparent;
  overflow: visible;
}
.page {
  min-height: 0;
  overflow: visible;
}
.topbar {
  min-height: auto;
  padding: 26px 32px 28px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, .04), 0 2px 8px -2px rgba(0, 0, 0, .02);
  overflow: visible;
}
.topbar-left,
.brand-title {
  overflow: visible;
}
.brand-title {
  color: #f97316;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: clamp(30px, 3.35vw, 50px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
  white-space: normal;
  text-overflow: clip;
  padding-bottom: 4px;
}
.brand-kicker,
.section-kicker {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: .18em;
}
.topbar p,
.card p,
.auth-card p {
  font-weight: 400;
  color: #6b7280;
}
.workspace {
  overflow: visible;
}
.workspace-shell {
  height: calc(100vh - 194px);
  min-height: 650px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow: visible;
}
.workspace-side,
.workspace-main {
  height: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, .04), 0 2px 8px -2px rgba(0, 0, 0, .02);
}
.workspace-side {
  flex: 0 0 450px;
  width: 450px;
  min-width: 400px;
  max-width: 600px;
  resize: horizontal;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  gap: 14px;
  border-right: 1px solid #e5e7eb;
}
.workspace-main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  padding: 22px;
  background-color: rgba(255, 255, 255, .9);
  background-image:
    radial-gradient(circle, rgba(17, 24, 39, .065) 1px, transparent 1px),
    linear-gradient(180deg, rgba(249, 250, 251, .92), rgba(255, 255, 255, .72));
  background-size: 22px 22px, 100% 100%;
}
.workspace-side,
.workspace-main,
.prompt-scroll,
.combo-menu,
.history-preview {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.workspace-side:hover,
.workspace-main:hover,
.prompt-scroll:hover,
.combo-menu:hover,
.history-preview:hover {
  scrollbar-color: rgba(156, 163, 175, .45) transparent;
}
.workspace-side::-webkit-scrollbar,
.workspace-main::-webkit-scrollbar,
.prompt-scroll::-webkit-scrollbar,
.combo-menu::-webkit-scrollbar,
.history-preview::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.workspace-side::-webkit-scrollbar-thumb,
.workspace-main::-webkit-scrollbar-thumb,
.prompt-scroll::-webkit-scrollbar-thumb,
.combo-menu::-webkit-scrollbar-thumb,
.history-preview::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.workspace-side:hover::-webkit-scrollbar-thumb,
.workspace-main:hover::-webkit-scrollbar-thumb,
.prompt-scroll:hover::-webkit-scrollbar-thumb,
.combo-menu:hover::-webkit-scrollbar-thumb,
.history-preview:hover::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, .45);
}
.card {
  border-color: #e5e7eb;
  border-radius: 16px;
  box-shadow: none;
  padding: 16px;
}
.workspace-main > .card,
.workspace-main #summary .card,
.workspace-main #output .card,
.workspace-main #history .card {
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, .04), 0 2px 8px -2px rgba(0, 0, 0, .02);
}
.card h2,
.auth-card h2 {
  font-weight: 600;
}
.field {
  margin-top: 16px;
}
.field label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.helper {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.55;
}
.field input,
.field select,
.button-primary,
.button-secondary,
.role-select,
.compact-select,
.password-toggle,
.combo-toggle,
.chip,
.summary-item,
.history-item,
.user-item {
  border-radius: 8px;
  border-color: #e5e7eb;
}
.field input:focus,
.field select:focus,
.role-select:focus,
.compact-select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
}
.option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.option-card {
  min-height: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border-color: #e5e7eb;
}
.option-card strong {
  font-size: 13px;
  font-weight: 600;
}
.option-card small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}
.option-index {
  width: 18px;
  height: 18px;
  margin-bottom: 6px;
  font-size: 10px;
}
.option-check {
  top: 7px;
  right: 8px;
  width: 16px;
  height: 16px;
}
.button-primary {
  margin-top: 20px;
  min-height: 46px;
  border-radius: 8px;
  background: #f97316;
}
.button-primary:hover {
  box-shadow: 0 4px 14px rgba(249, 115, 22, .34);
}
.button-secondary {
  min-height: 38px;
  border-radius: 8px;
}
#user-card,
#summary .card {
  min-height: 330px;
}
.user-card-shell {
  min-height: 298px;
}
.user-badges-centered {
  gap: 8px;
  margin-top: 12px;
}
.cleanup-row {
  grid-template-columns: minmax(0, 148px) auto minmax(0, 148px) auto;
  gap: 8px;
  overflow: visible;
  position: relative;
  z-index: 20;
}
.cleanup-date {
  height: 38px;
  min-width: 148px;
  padding: 8px 30px 8px 10px;
  font-size: 13px;
}
.cleanup-date::-webkit-calendar-picker-indicator {
  width: 12px;
  height: 12px;
  transform: scale(.72);
}
.combo-field,
.combo-input-wrap,
.field,
.card {
  overflow: visible;
}
.workspace-side {
  overflow-y: auto;
  overflow-x: visible;
}
.combo-menu {
  z-index: 9999;
  max-height: 300px;
  border-color: #e5e7eb;
}
.prompt-scroll {
  max-height: calc(100vh - 410px);
  min-height: 300px;
  border-radius: 12px;
  border-color: #e5e7eb;
  padding-bottom: 92px;
}
pre {
  padding-bottom: 120px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 400;
}

/* Final prompt workspace fixes */
.prompt-card .section-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}
.prompt-card .section-top > div:first-child {
  min-width: 0;
}
.prompt-card .section-top p {
  overflow-wrap: anywhere;
}
.prompt-card .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 380px;
}
.prompt-card .button-secondary {
  width: auto;
  min-width: 112px;
  max-width: none;
  padding: 9px 14px;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  line-height: 1.2;
}
.prompt-card .prompt-scroll {
  margin-top: 14px;
  min-height: 0;
  max-height: calc(100vh - 360px);
  padding: 0;
}
.prompt-card pre {
  padding: 16px 18px 28px;
}
@media (max-width: 900px) {
  .prompt-card .section-top {
    grid-template-columns: 1fr;
  }
  .prompt-card .actions {
    min-width: 0;
    justify-content: flex-start;
  }
}
@media (max-width: 1100px) {
  .shell {
    width: min(100vw - 24px, 100%);
    padding: 12px 0;
  }
  .workspace-shell {
    height: auto;
    min-height: 0;
  }
  .workspace-side {
    resize: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    flex-basis: auto;
  }
}

/* Final three-column output dashboard and lightbox */
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans SC", sans-serif !important;
  background-color: #f5f7fa;
  background-image: radial-gradient(circle, rgba(17, 24, 39, .055) 1px, transparent 1px);
  background-size: 18px 18px;
}
.shell {
  width: min(1680px, calc(100vw - 48px));
  height: 100vh;
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}
.topbar {
  flex: none;
  padding: 18px 22px 20px;
  border-color: #e5e7eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 24px -4px rgba(0,0,0,.04), 0 2px 8px -2px rgba(0,0,0,.02);
  overflow: visible;
}
.brand-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans SC", sans-serif !important;
  line-height: 1.18;
  padding-bottom: 3px;
  overflow: visible;
  text-overflow: clip;
}
.page,
.workspace,
.workspace-shell {
  min-height: 0;
}
.page {
  margin-top: 0;
}
.workspace {
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.workspace-shell {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(380px, 410px) minmax(0, 1.72fr) minmax(300px, 330px);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
}
.workspace-side,
.workspace-main,
.workspace-output {
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 4px 24px -4px rgba(0,0,0,.04), 0 2px 8px -2px rgba(0,0,0,.02);
}
.workspace-side {
  position: static;
  width: auto;
  max-width: none;
  min-width: 0;
  resize: none;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 16px;
}
.workspace-main {
  flex: 1 1 auto;
  padding: 26px 30px 88px;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow-y: auto;
}
.workspace-output {
  padding: 22px 24px 30px;
  scrollbar-gutter: stable;
}
.workspace-side::-webkit-scrollbar,
.workspace-main::-webkit-scrollbar,
.workspace-output::-webkit-scrollbar,
.prompt-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.workspace-side::-webkit-scrollbar-thumb,
.workspace-main::-webkit-scrollbar-thumb,
.workspace-output::-webkit-scrollbar-thumb,
.prompt-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.workspace-side:hover::-webkit-scrollbar-thumb,
.workspace-main:hover::-webkit-scrollbar-thumb,
.workspace-output:hover::-webkit-scrollbar-thumb,
.prompt-scroll:hover::-webkit-scrollbar-thumb {
  background: rgba(156,163,175,.35);
}
#summary .card {
  position: static;
}
.prompt-card .prompt-scroll {
  max-height: none !important;
  min-height: 0;
  overflow: visible;
  padding: 0;
}
.prompt-card pre {
  margin-top: 14px;
  padding: 24px 28px 42px;
  border-radius: 12px;
  border-color: #e5e7eb;
  background: #fffaf4;
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.prompt-card .actions {
  min-width: 0;
}
.image-output-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.image-output-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.image-output-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.02em;
}
.image-output-head p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.74;
  padding-right: 6px;
  word-break: break-word;
}
.image-output-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 247, 237, .92), rgba(255, 255, 255, .98));
}
.image-output-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.toolbar-secondary-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff;
  color: #f97316;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.toolbar-secondary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(249,115,22,.08);
  box-shadow: 0 10px 24px rgba(255,115,22,.12);
}
.toolbar-secondary-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
.toolbar-primary-btn {
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: #ff7316;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.toolbar-primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255,115,22,.24);
}
.toolbar-primary-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}
.icon-tool-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.icon-tool-btn:hover:not(:disabled),
.icon-tool-btn.is-copied {
  border-color: rgba(249,115,22,.38);
  background: rgba(249,115,22,.08);
  color: #f97316;
  transform: translateY(-1px);
}
.icon-tool-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
.toolbar-helper-text {
  flex: 1 0 100%;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}
.output-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.output-image-card {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.output-image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
.output-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
}
.output-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.output-thumb:hover img {
  transform: scale(1.03);
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  background: rgba(0,0,0,.22);
  opacity: 0;
  transition: opacity .25s cubic-bezier(.4,0,.2,1);
}
.output-thumb:hover .thumb-overlay {
  opacity: 1;
}
.output-image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}
.mini-link {
  border: none;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(249,115,22,.08);
  color: #f97316;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.mini-link:hover,
.mini-link.is-copied {
  background: #f97316;
  color: #fff;
}
.image-empty {
  min-height: 260px;
  border: 1px dashed rgba(249,115,22,.35);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(249,115,22,.08), transparent 28%),
    #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: #9ca3af;
  padding: 24px;
}
.image-empty div {
  color: #f97316;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.image-empty p {
  margin: 0;
  max-width: 280px;
  padding: 0 4px;
  line-height: 1.74;
}
.lightbox.hidden {
  display: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-dialog {
  display: grid;
  justify-items: center;
  gap: 16px;
  transform: scale(.95);
  transition: transform .22s ease;
}
.lightbox.is-open .lightbox-dialog {
  transform: scale(1);
}
.lightbox-image {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.lightbox-close:hover {
  background: rgba(255,255,255,.22);
  transform: rotate(4deg) scale(1.04);
}
.lightbox-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.lightbox-action {
  min-width: 132px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff7316;
  border-radius: 10px;
  background: #ff7316;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.lightbox-action.secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
}
.lightbox-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255,115,22,.28);
}
.lightbox-action.is-copied {
  background: #16a34a;
  border-color: #16a34a;
}
@media (max-width: 1300px) {
  html,
  body {
    overflow: auto;
  }
  .shell {
    height: auto;
    min-height: 100vh;
  }
  .workspace-shell {
    height: auto;
    overflow: visible;
    grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
  }
  .workspace-output {
    grid-column: 1 / -1;
    min-height: 360px;
  }
}
@media (max-width: 900px) {
  .shell {
    width: min(100vw - 24px, 100%);
    padding: 12px 0;
  }
  .workspace-shell {
    grid-template-columns: 1fr;
  }
  .workspace-side,
  .workspace-main,
  .workspace-output {
    height: auto;
    max-height: none;
  }
}
/* Studio parity refinements: shared title and sticky status card */
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.studio-logo,
.image-side-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #fff;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 16px 28px -18px rgba(249, 115, 22, 0.9);
}
.studio-brand-copy {
  min-width: 0;
}
.studio-topbar .brand-kicker {
  margin: 0 0 5px;
  color: #f97316;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.studio-title-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #111827;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.2;
}
.studio-title-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-title-divider {
  color: #d1d5db;
  font-weight: 600;
}
.studio-view-title {
  color: #f97316;
  font-size: 0.98rem;
  font-weight: 900;
  white-space: nowrap;
}
.image-sticky-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -14px 16px;
  padding: 14px 14px 14px;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
  box-shadow: 0 16px 24px -24px rgba(15, 23, 42, 0.45);
}
.image-status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 13px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 18px -12px rgba(15, 23, 42, 0.28);
}
.image-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12);
}
.image-status-card span:not(.image-status-dot) {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}
.image-status-card strong {
  display: block;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.35;
}
.image-status-card[data-kind="error"] .image-status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
}
.image-status-card[data-kind="warn"] .image-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.14);
}
.image-status-card[data-kind="error"] strong {
  color: #dc2626;
}
.image-status-card[data-kind="warn"] strong {
  color: #c2410c;
}
.workspace-side {
  padding-top: 0;
}
body.is-embedded .studio-topbar {
  display: none;
}
body.is-embedded .shell {
  margin-top: 0;
}
body.is-embedded .page {
  margin-top: 0;
}
body.is-embedded .image-sticky-header {
  padding-top: 14px;
}
@media (max-width: 760px) {
  .studio-topbar {
    padding: 18px 16px;
    align-items: flex-start;
  }
  .studio-title-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .image-sticky-header {
    margin: 0 -8px 14px;
    padding: 16px 8px 12px;
  }
}

.prompt-card .section-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.prompt-card .section-top > div:first-child,
.prompt-card .section-top h2,
.prompt-card .section-top p {
  min-width: 0;
}

.prompt-card .actions {
  min-width: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.prompt-card .actions .button-secondary {
  white-space: nowrap;
}

.prompt-card .section-kicker,
.prompt-card h2,
.prompt-card p,
.prompt-card pre {
  overflow-wrap: anywhere;
}

.prompt-card h2 {
  margin-top: 6px;
  line-height: 1.26;
}

.prompt-scroll {
  overflow-y: auto;
  padding-bottom: 28px;
}

.prompt-card pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.workspace-main {
  padding-bottom: 32px;
}

.cleanup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cleanup-date-wrap {
  position: relative;
  flex: 0 1 126px;
  min-width: 118px;
}

.cleanup-date {
  width: 100%;
  min-width: 0;
  padding-right: 34px;
}

.cleanup-date::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 8px;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.cleanup-row .button-secondary {
  width: auto;
  min-width: 88px;
}

