:root {
  --bg: #0f1217;
  --bg-main: radial-gradient(circle at 20% 0%, #1a2030 0%, #0f1217 40%) fixed;
  --panel: #171b22;
  --panel-2: #1d2330;
  --border: #2a3343;
  --border-soft: rgba(42, 51, 67, 0.7);
  --text: #e8edf5;
  --text-heading: #dbe5f5;
  --text-subtle: #b8c8e4;
  --muted: #98a6bd;
  --primary: #2f7dff;
  --warning: #d28b19;
  --danger: #cf4343;
  --success: #1a9e4a;
  --chip: #253047;
  --top-shell-bg: rgba(23, 27, 34, 0.92);
  --brand-gradient: linear-gradient(135deg, #2f7dff, #58c7ff);
  --upload-chip-icon: #a8c8ff;
  --btn-base-bg: #2a3343;
  --btn-secondary-bg: #273246;
  --btn-secondary-border: #34425e;
  --btn-secondary-text: #e8edf5;
  --btn-primary-bg: linear-gradient(135deg, #2f7dff, #4667ff);
  --btn-success-bg: linear-gradient(135deg, #26b357, #158c43);
  --tab-active-bg: #29354a;
  --tab-active-border: #4f6d99;
  --code-text: #bfe4ff;
  --surface-faint: rgba(255, 255, 255, 0.01);
  --surface-1: #1a2230;
  --surface-2: #293e62;
  --surface-3: #0f141d;
  --surface-4: #141b27;
  --surface-5: #171d27;
  --surface-6: #121720;
  --surface-7: #151b25;
  --surface-8: #121a24;
  --surface-9: #1e2632;
  --surface-preview: #0d1118;
  --surface-code: #0b1017;
  --surface-toolbar: rgba(23, 27, 34, 0.92);
  --surface-sticky: rgba(15, 19, 27, 0.94);
  --surface-table: rgba(23, 27, 34, 0.95);
  --surface-footer: rgba(23, 27, 34, 0.82);
  --overlay: rgba(7, 10, 15, 0.66);
  --overlay-soft: rgba(20, 34, 59, 0.22);
  --table-head-text: #b6c5dd;
  --table-head-bg: #171d27;
  --table-row-border: rgba(42, 51, 67, 0.65);
  --table-row-hover: rgba(255, 255, 255, 0.02);
  --table-row-issues: rgba(242, 165, 26, 0.045);
  --table-row-issues-hover: rgba(242, 165, 26, 0.08);
  --table-row-error: rgba(207, 67, 67, 0.07);
  --table-row-error-hover: rgba(207, 67, 67, 0.1);
  --input-bg: #0f141d;
  --input-text: #e8edf5;
  --input-border: #2a3343;
  --input-placeholder: #98a6bd;
  --control-bg: #1a2230;
  --control-bg-2: #141b27;
  --control-hover: #25395b;
  --control-border: #33435f;
  --control-text: #cfdbef;
  --control-text-strong: #f0f6ff;
  --toggle-bg: #1a2230;
  --toggle-icon-bg: #293e62;
  --top-select-bg: #0f141d;
  --top-credits: #c8d6ef;
  --upload-drop-border: #37517d;
  --upload-drop-border-active: #58c7ff;
  --upload-drop-bg: linear-gradient(180deg, rgba(47, 125, 255, 0.1), rgba(47, 125, 255, 0.02));
  --upload-drop-bg-active: rgba(88, 199, 255, 0.1);
  --upload-icon: #9dc2ff;
  --status-pending-text: #d4dcef;
  --status-processing-text: #ffe49f;
  --status-processing-bg: #342b16;
  --status-processing-border: #66512b;
  --status-generated-text: #b7cbff;
  --status-generated-bg: #202c43;
  --status-generated-border: #324a78;
  --status-ready-text: #c7f1d9;
  --status-ready-bg: #173226;
  --status-ready-border: #2a684b;
  --status-error-text: #ffbaba;
  --status-error-bg: #3a1c22;
  --status-error-border: #7a2d37;
  --issues-text: #ffd79a;
  --issues-bg: #322817;
  --issues-border: #655033;
  --issues-error-text: #ffbaba;
  --issues-error-bg: #371a1f;
  --issues-error-border: #7a2d37;
  --link: #b9c8e4;
  --link-hover: #dce8ff;
  --progress-panel-border: #3e5a89;
  --progress-panel-bg: linear-gradient(180deg, rgba(28, 40, 58, 0.95), rgba(21, 30, 43, 0.95));
  --progress-title: #ecf3ff;
  --progress-phase-border: #496799;
  --progress-phase-bg: #23334d;
  --progress-phase-text: #d8e8ff;
  --progress-text: #cfe0fb;
  --progress-track-bg: #182334;
  --progress-track-border: #2f4465;
  --progress-fill-bg: linear-gradient(90deg, #3f84ff, #53b9ff);
  --progress-meta: #afc2e4;
  --progress-close-bg: #1a2740;
  --progress-close-hover: #25395b;
  --progress-close-border: #496799;
  --progress-close-text: #d6e8ff;
  --op-status-text: #dbe5f5;
  --op-status-bg: #1b2432;
  --op-busy-border: #5b6f95;
  --op-busy-bg: #1f2a3b;
  --op-busy-text: #d6e8ff;
  --op-success-border: #2f6a4b;
  --op-success-bg: #162d22;
  --op-success-text: #c9f4da;
  --op-error-border: #7a2d37;
  --op-error-bg: #351b21;
  --op-error-text: #ffc9c9;
  --auth-tab-bg: #1a2230;
  --auth-tab-bg-active: #273a5b;
  --auth-tab-border-active: #4e73a8;
  --auth-eye: #c4d5f1;
  --auth-eye-hover: #e2eeff;
  --auth-link: #a9bde4;
  --auth-link-hover: #dbe8ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}
[data-theme="light"] {
  --bg: #edf2fb;
  --bg-main: linear-gradient(180deg, #f7f9fe 0%, #edf2fb 100%) fixed;
  --panel: #ffffff;
  --panel-2: #f5f8ff;
  --border: #d6dfef;
  --border-soft: rgba(214, 223, 239, 0.9);
  --text: #1b2432;
  --text-heading: #2f405d;
  --text-subtle: #5f6f89;
  --muted: #5f6f89;
  --primary: #2f7dff;
  --warning: #2f7dff;
  --danger: #cf4343;
  --success: #1a9e4a;
  --chip: #e8eefb;
  --top-shell-bg: #ffffff;
  --brand-gradient: linear-gradient(135deg, #2f7dff, #58c7ff);
  --upload-chip-icon: #4f6da8;
  --btn-base-bg: #2a3343;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: #cad8f0;
  --btn-secondary-text: #1b2432;
  --btn-primary-bg: linear-gradient(135deg, #2f7dff, #4667ff);
  --btn-success-bg: linear-gradient(135deg, #26b357, #158c43);
  --tab-active-bg: #dfe9ff;
  --tab-active-border: #9eb8ec;
  --code-text: #2f4a78;
  --surface-faint: #fbfdff;
  --surface-1: #edf3ff;
  --surface-2: #ffd470;
  --surface-3: #ffffff;
  --surface-4: #ffffff;
  --surface-5: #f1f5ff;
  --surface-6: #ffffff;
  --surface-7: #ffffff;
  --surface-8: #f5f8ff;
  --surface-9: #ffffff;
  --surface-preview: #f6f9ff;
  --surface-code: #f5f8ff;
  --surface-toolbar: #ffffff;
  --surface-sticky: #f5f8ff;
  --surface-table: #ffffff;
  --surface-footer: #ffffff;
  --overlay: rgba(20, 34, 59, 0.22);
  --overlay-soft: rgba(20, 34, 59, 0.22);
  --table-head-text: #41526d;
  --table-head-bg: #f1f5ff;
  --table-row-border: rgba(214, 223, 239, 0.95);
  --table-row-hover: rgba(47, 125, 255, 0.04);
  --table-row-issues: rgba(242, 165, 26, 0.06);
  --table-row-issues-hover: rgba(242, 165, 26, 0.12);
  --table-row-error: rgba(207, 67, 67, 0.08);
  --table-row-error-hover: rgba(207, 67, 67, 0.12);
  --input-bg: #ffffff;
  --input-text: #1b2432;
  --input-border: #bfd0eb;
  --input-placeholder: #8395b4;
  --control-bg: #f8faff;
  --control-bg-2: #ffffff;
  --control-hover: #f2f6ff;
  --control-border: #cad8f0;
  --control-text: #31435e;
  --control-text-strong: #1f3150;
  --toggle-bg: #f5f8ff;
  --toggle-icon-bg: #ffd470;
  --top-select-bg: #ffffff;
  --top-credits: #5f6f89;
  --upload-drop-border: #9eb8ec;
  --upload-drop-border-active: #2f7dff;
  --upload-drop-bg: linear-gradient(180deg, rgba(47, 125, 255, 0.08), rgba(47, 125, 255, 0.02));
  --upload-drop-bg-active: rgba(47, 125, 255, 0.12);
  --upload-icon: #5f81c4;
  --status-pending-text: #4f6385;
  --status-processing-text: #7a5b19;
  --status-processing-bg: #fff1d9;
  --status-processing-border: #e5be79;
  --status-generated-text: #1f4b9a;
  --status-generated-bg: #e6efff;
  --status-generated-border: #b8cefb;
  --status-ready-text: #1f7a4f;
  --status-ready-bg: #e5f6ee;
  --status-ready-border: #b8e2cb;
  --status-error-text: #8b2434;
  --status-error-bg: #ffe6e6;
  --status-error-border: #e4a5ad;
  --issues-text: #7a4c12;
  --issues-bg: #fff1d9;
  --issues-border: #e5be79;
  --issues-error-text: #8b2434;
  --issues-error-bg: #ffe6e6;
  --issues-error-border: #e4a5ad;
  --link: #3e567d;
  --link-hover: #25406b;
  --progress-panel-border: #bfd0eb;
  --progress-panel-bg: #f7faff;
  --progress-title: #2f405d;
  --progress-phase-border: #c6d6ef;
  --progress-phase-bg: #e9f0ff;
  --progress-phase-text: #2d4b77;
  --progress-text: #4d6590;
  --progress-track-bg: #e4ecfb;
  --progress-track-border: #cad8f0;
  --progress-fill-bg: linear-gradient(90deg, #3f84ff, #53b9ff);
  --progress-meta: #4d6590;
  --progress-close-bg: #ffffff;
  --progress-close-hover: #f2f6ff;
  --progress-close-border: #cad8f0;
  --progress-close-text: #2a3f63;
  --op-status-text: #2f405d;
  --op-status-bg: #f5f8ff;
  --op-busy-border: #bfd0eb;
  --op-busy-bg: #edf3ff;
  --op-busy-text: #2f4a78;
  --op-success-border: #b8e2cb;
  --op-success-bg: #e5f6ee;
  --op-success-text: #1f7a4f;
  --op-error-border: #e4a5ad;
  --op-error-bg: #ffe6e6;
  --op-error-text: #8b2434;
  --auth-tab-bg: #f6f9ff;
  --auth-tab-bg-active: #dfe9ff;
  --auth-tab-border-active: #9eb8ec;
  --auth-eye: #5d7398;
  --auth-eye-hover: #2f4a78;
  --auth-link: #4d6590;
  --auth-link-hover: #2f4a78;
  --shadow: 0 12px 24px rgba(20, 38, 70, 0.08);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
.hidden { display: none !important; }
body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text);
  font: 14px/1.4 "Segoe UI", system-ui, sans-serif;
}
.app-shell { min-height: 100vh; display: block; }
.brand { display: flex; gap: 8px; align-items: center; margin-bottom: 0; }
.brand-home-link { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand-badge {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-gradient); font-weight: 700;
}
.brand-title { font-size: 17px; font-weight: 700; }
.brand-icon { display: block; object-fit: cover; padding: 0; }
.brand-version-btn {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-8) 72%, transparent);
  color: var(--text-subtle);
  padding: 2px 8px;
  font: inherit;
  font-size: 11px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.brand-version-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border-soft));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-8));
  color: var(--text-heading);
}
.brand-version-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 72%, white);
  outline-offset: 2px;
}
#appVersionBadge { color: inherit; font-variant-numeric: tabular-nums; }
.top-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--top-shell-bg);
  box-shadow: var(--shadow);
  padding: 8px 12px;
  margin-bottom: 12px;
}
.top-shell-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.top-meta-flat { border: 0; background: transparent; }
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 64px;
  height: 30px;
  padding: 3px;
  background: var(--toggle-bg);
  cursor: pointer;
  overflow: hidden;
}
.theme-toggle-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  line-height: 1;
  transition: opacity 0.2s ease;
  user-select: none;
  pointer-events: none;
  font-weight: 700;
}
.theme-toggle-side-left {
  left: 8px;
  opacity: 0;
  color: #f4c542;
  font-size: 15px;
  text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.15);
}
.theme-toggle-side-right {
  right: 8px;
  opacity: 1;
  color: #d9e5ff;
}
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  z-index: 1;
}
.theme-toggle.is-light .theme-toggle-thumb {
  transform: translateX(34px);
}
.theme-toggle.is-light .theme-toggle-side-left {
  opacity: 1;
}
.theme-toggle.is-light .theme-toggle-side-right {
  opacity: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.top-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--top-select-bg);
  color: var(--text);
  padding: 5px 7px;
}
.top-credits {
  color: var(--top-credits);
  font-size: 12px;
  padding: 0 4px;
}
.top-credits-btn {
  padding: 6px 8px;
  border-radius: 10px;
}
.top-plan-btn {
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--text-heading);
  font-weight: 700;
}
.top-storage {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}
.top-storage:hover { background: var(--control-hover); color: var(--text); }
.top-storage-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-storage.warn {
  border-color: color-mix(in srgb, var(--warning) 60%, var(--border) 40%);
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 10%, transparent 90%);
}
.top-storage.danger {
  border-color: color-mix(in srgb, var(--danger) 62%, var(--border) 38%);
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent 90%);
}
.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.user-display-name {
  max-width: 180px;
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 600;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-display-name:hover {
  color: var(--text);
}
.user-display-name:focus-visible {
  outline: 1px solid var(--primary-soft);
  outline-offset: 2px;
  border-radius: 8px;
}
.user-avatar-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0;
  line-height: 0;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}
.btn.user-avatar-btn {
  padding: 0;
}
.user-avatar-img {
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-avatar-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.upload-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--upload-drop-border);
  background: var(--upload-drop-bg);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 210px;
}
.upload-chip.drag { border-color: var(--upload-drop-border-active); background: var(--upload-drop-bg-active); }
.upload-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--upload-chip-icon);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.upload-chip-title { display: block; font-weight: 700; color: var(--text); }
.upload-chip-sub { display: block; font-size: 11px; color: var(--muted); }
.upload-workspace {
  margin: 0 0 14px;
}
.upload-workspace.legacy-upload {
  display: none !important;
}
.upload-drop-wide {
  min-height: 190px;
  padding: 18px;
  gap: 8px;
}
.upload-hint {
  color: var(--muted);
  font-size: 12px;
}
.op-status {
  margin: 0 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 12px;
  color: var(--op-status-text);
  background: var(--op-status-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.op-status-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.op-status-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  flex: 0 0 auto;
  animation: op-status-spin 0.8s linear infinite;
}
.op-status.hidden { display: none; }
.op-status-close {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  width: 24px;
  height: 24px;
  line-height: 1;
  cursor: pointer;
}
.op-status-close:hover {
  background: var(--control-hover);
}
.op-status.op-busy {
  border-color: var(--op-busy-border);
  background: var(--op-busy-bg);
  color: var(--op-busy-text);
}
.op-status.op-success {
  border-color: var(--op-success-border);
  background: var(--op-success-bg);
  color: var(--op-success-text);
}
.op-status.op-error {
  border-color: var(--op-error-border);
  background: var(--op-error-bg);
  color: var(--op-error-text);
}
.op-status.op-storage-warning {
  border-color: var(--progress-phase-border);
  background: var(--progress-panel-bg);
  color: var(--progress-text);
}
.op-status.op-storage-warning.warn {
  border-color: var(--op-busy-border);
  background: var(--op-busy-bg);
  color: var(--op-busy-text);
}
.op-status.op-storage-warning.danger {
  border-color: var(--op-error-border);
  background: var(--op-error-bg);
  color: var(--op-error-text);
}
@keyframes op-status-spin {
  to { transform: rotate(360deg); }
}
.upload-progress-panel {
  margin: 0 0 12px;
  border-radius: 12px;
  border: 1px solid var(--progress-panel-border);
  background: var(--progress-panel-bg);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.upload-progress-panel.hidden { display: none; }
.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.upload-progress-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.upload-progress-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--progress-title);
}
.upload-progress-phase {
  font-size: 11px;
  border: 1px solid var(--progress-phase-border);
  background: var(--progress-phase-bg);
  color: var(--progress-phase-text);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.upload-progress-text {
  font-size: 12px;
  color: var(--progress-text);
  margin-bottom: 8px;
}
.upload-progress-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--progress-track-bg);
  border: 1px solid var(--progress-track-border);
  overflow: hidden;
}
.upload-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--progress-fill-bg);
  transition: width .35s ease-out;
}
.upload-progress-bar-fill.is-indeterminate {
  width: 42% !important;
  transition: none;
  animation: upload-progress-indeterminate 2.4s ease-in-out infinite;
}
.upload-progress-meta {
  margin-top: 7px;
  font-size: 12px;
  color: var(--progress-meta);
}
.export-artifacts-list {
  margin-top: 8px;
  border-top: 1px solid var(--progress-track-border);
  padding-top: 8px;
}
.export-artifacts-list.hidden { display: none; }
.export-artifacts-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--progress-title);
  margin-bottom: 5px;
}
.export-artifacts-rows {
  display: grid;
  gap: 0;
  border: 1px solid var(--progress-track-border);
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--progress-track-bg) 40%, transparent);
}
.export-artifact-row {
  display: grid;
  grid-template-columns: minmax(220px, 42ch) 70px auto;
  justify-content: start;
  align-items: center;
  column-gap: 10px;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 12px;
  border-bottom: 1px solid var(--progress-track-border);
}
.export-artifact-row:last-child {
  border-bottom: 0;
}
.export-artifact-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--progress-text);
}
.export-artifact-size {
  min-width: 0;
  text-align: right;
  color: var(--progress-meta);
}
@media (max-width: 760px) {
  .export-artifact-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 3px;
  }
  .export-artifact-name {
    grid-column: 1 / -1;
  }
  .export-artifact-size {
    text-align: left;
  }
}
.upload-progress-close {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid var(--progress-close-border);
  background: var(--progress-close-bg);
  color: var(--progress-close-text);
  cursor: pointer;
  line-height: 1;
  font-size: 13px;
}
.upload-progress-close:hover {
  background: var(--progress-close-hover);
}
.upload-progress-close:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.upload-progress-close:disabled:hover {
  background: var(--progress-close-bg);
}
@keyframes upload-progress-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}
.workspace-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 14px;
}
.workspace-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.workspace-panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.workspace-panel-title {
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: .02em;
}
.workspace-panel.is-collapsed .workspace-row { display: none; }
.workspace-panel.is-collapsed { padding-bottom: 10px; }
.workspace-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 10px;
  align-items: stretch;
}
.workspace-col {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-faint);
  padding: 9px 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.workspace-upload-col {
  grid-column: span 1;
}
.workspace-job-col {
  width: auto;
  max-width: 100%;
}
.workspace-upload-drop {
  min-height: 104px;
  height: 100%;
}
.compact {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}
.side-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.section-title {
  color: var(--text-heading); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-head .section-title { margin: 0; }
.section-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.job-head-row {
  justify-content: space-between;
  width: 100%;
}
.job-head-actions {
  justify-content: flex-end;
}
.job-toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr) auto;
  width: 100%;
  margin-top: 10px;
}
.job-toolbar-name-row {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}
.job-toolbar-name-label {
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.job-toolbar-name-input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
}
.job-toolbar-select {
  width: auto;
  min-width: 0;
  max-width: none;
}
.new-job-form-grid .job-toolbar-select,
.new-job-form-grid .job-toolbar-name-input {
  width: 100%;
  max-width: none;
}
.new-job-form-grid .settings-hint {
  align-self: center;
}
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 8px;
}
.radio-row input {
  margin-top: 2px;
}
.job-toolbar-new-btn {
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
}
.job-create-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.job-status-text {
  font-weight: 500;
}
.job-status-text.is-failed {
  font-weight: 700;
  color: var(--text-heading);
}
.btn {
  border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; cursor: pointer;
  color: white; background: var(--btn-base-bg); font-weight: 600;
  transition: transform .08s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { opacity: .95; }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[disabled],
.icon-btn:disabled,
.icon-btn[disabled] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.btn:disabled:hover,
.btn[disabled]:hover,
.icon-btn:disabled:hover,
.icon-btn[disabled]:hover {
  opacity: 0.5;
}
.btn:disabled:active,
.btn[disabled]:active,
.icon-btn:disabled:active,
.icon-btn[disabled]:active {
  transform: none;
}
.btn-full { width: 100%; }
.btn-primary { background: var(--btn-primary-bg); }
.btn-secondary { background: var(--btn-secondary-bg); border-color: var(--btn-secondary-border); color: var(--btn-secondary-text); }
.btn-warning { background: var(--btn-primary-bg); }
.btn-success { background: var(--btn-success-bg); }
.btn-danger {
  background: transparent;
  border-color: var(--op-error-border);
  color: var(--op-error-text);
}
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.job-info { margin-top: 10px; }
.job-info .muted { color: var(--muted); }
.job-info, .health-banner {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.upload-drop {
  display: grid; place-items: center; min-height: 130px; border: 2px dashed var(--upload-drop-border); border-radius: 14px;
  background: var(--upload-drop-bg); text-align: center; cursor: pointer; padding: 12px;
}
.upload-drop.drag { border-color: var(--upload-drop-border-active); background: var(--upload-drop-bg-active); }
.upload-icon { font-size: 28px; font-weight: 700; color: var(--upload-icon); }
.upload-title { font-weight: 700; }
.upload-sub { color: var(--muted); font-size: 12px; }
.workspace-upload-drop {
  min-height: 104px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  place-items: center stretch;
  text-align: center;
  padding: 10px 14px;
}
.workspace-upload-drop .upload-copy {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}
.workspace-upload-drop .upload-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.workspace-upload-drop .upload-icon {
  font-size: 20px;
  line-height: 1;
}
.workspace-upload-drop .upload-action {
  display: grid;
  justify-items: center;
  gap: 6px;
  white-space: nowrap;
}
.workspace-upload-drop .upload-hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.health-banner {
  border-radius: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.main { padding: 16px; min-width: 0; max-width: 1800px; margin: 0 auto; }
.main-header {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 10px;
}
.main-header h1 { margin: 0; font-size: 22px; line-height: 1.15; color: var(--text-heading); }
.main-header p { margin: 6px 0 0; color: var(--muted); max-width: 680px; }
.guest-welcome {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
}
.guest-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.82fr) minmax(280px, 0.82fr);
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary) 18%, transparent) 0%, transparent 52%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--primary) 10%, transparent) 0%, transparent 56%),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}
.guest-hero-content {
  display: grid;
  gap: 12px;
  align-content: start;
}
.guest-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.guest-title {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 50px);
  line-height: 1.02;
  color: var(--text-heading);
  max-width: 18ch;
}
.guest-title-line {
  display: block;
}
.guest-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 54ch;
}
.guest-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guest-microcopy {
  color: var(--text-subtle);
  font-size: 12px;
}
.guest-proof-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guest-proof-pill {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface-faint);
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
}
.guest-hero-side {
  display: grid;
  gap: 12px;
  align-content: start;
  grid-column: 2 / 4;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guest-hero-stack {
  display: grid;
  gap: 12px;
}
.guest-side-panel {
  margin: 0;
}
.guest-output-panel {
  display: grid;
  align-content: start;
}
.guest-hero-shot,
.guest-mini-shot,
.guest-video-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface-8);
  display: grid;
  gap: 6px;
}
.guest-hero-shot-single {
  padding: 12px;
}
.guest-carousel-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.guest-carousel-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.guest-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border));
  background: color-mix(in srgb, var(--surface-8) 80%, transparent);
  cursor: pointer;
  padding: 0;
}
.guest-carousel-dot.is-active {
  background: var(--primary);
  border-color: var(--primary);
}
.guest-hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.guest-video-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.guest-video-thumb {
  position: relative;
}
.guest-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(9, 14, 23, 0.52);
  padding: 8px 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.guest-video-title {
  color: var(--text-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.guest-video-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.guest-media-placeholder {
  border: 1px dashed var(--border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-8) 90%, var(--primary) 10%), var(--surface-faint));
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 6px;
  padding: 8px;
}
.guest-media-image {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-3);
}
.guest-hero-shot .guest-media-image {
  height: 320px;
}
.guest-mini-shot .guest-media-image {
  height: 108px;
}
.guest-video-card .guest-media-image {
  height: 116px;
}
.guest-flow-card .guest-media-image,
.guest-card .guest-media-image {
  height: 150px;
}
.guest-prompt-card .guest-media-image {
  height: 194px;
}
.guest-media-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.guest-media-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  max-width: none;
  text-align: left;
}
.guest-flow-section,
.guest-result,
.guest-pricing,
.guest-proof,
.guest-faq,
.guest-story-section,
.guest-final-cta {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}
.guest-proof {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-8) 88%, transparent), var(--panel));
}
.guest-overview-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.guest-overview-row > .guest-proof,
.guest-overview-row > .guest-flow-section,
.guest-overview-row > .guest-demo {
  margin: 0;
}
.guest-preview-panel,
.guest-demo-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}
.guest-preview-shot,
.guest-demo-media-panel {
  height: 100%;
  align-content: start;
}
.guest-preview-shot .guest-media-image,
.guest-demo-media-panel .guest-media-image {
  height: 320px;
}
.guest-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guest-flow-step {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-8);
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
}
.guest-flow-step-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text-heading);
  font-size: 12px;
  font-weight: 800;
}
.guest-flow-step h3 {
  margin: 0;
  color: var(--text-heading);
  font-size: 16px;
}
.guest-flow-step p {
  margin: 0;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.guest-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guest-flow-card,
.guest-card,
.guest-prompt-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-8);
  padding: 12px;
  display: grid;
  gap: 9px;
}
.guest-flow-card h3,
.guest-card h3,
.guest-prompt-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text-heading);
}
.guest-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.guest-card-more {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-faint);
  padding: 8px 10px;
}
.guest-card-more summary {
  cursor: pointer;
  color: var(--text-subtle);
  font-weight: 700;
  font-size: 12px;
}
.guest-card-more p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.guest-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guest-result-grid-vertical {
  grid-template-columns: 1fr;
}
.guest-result-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guest-sample-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 12px;
}
.guest-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guest-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.guest-section-head h2 {
  margin: 0;
  color: var(--text-heading);
  font-size: 18px;
}
.guest-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.guest-pricing-flat-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.guest-pricing-grid .pricing-card,
.guest-pricing-flat-row .pricing-card {
  background: var(--surface-8);
  padding-top: 22px;
}
.pricing-plan-group {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 2px;
}
.guest-demo {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}
.guest-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  align-items: start;
}
.guest-demo-media {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 42%),
    var(--surface-8);
  padding: 10px;
  overflow: hidden;
}
.guest-demo-media .guest-media-image {
  height: 320px;
}
.guest-demo-overlay {
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.12), rgba(10, 15, 24, 0.62));
}
.guest-demo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(10, 15, 24, 0.42);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  text-transform: uppercase;
}
.guest-demo-play {
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(9, 14, 23, 0.6);
  color: #ffffff;
  padding: 12px 18px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: not-allowed;
}
.guest-demo-meta {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.guest-demo-copy {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-8);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.guest-demo-copy h3 {
  margin: 0;
  color: var(--text-heading);
  font-size: 18px;
}
.guest-demo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.guest-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guest-placeholder {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.guest-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.guest-logo-pill {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-8);
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
}
.guest-logo-pill-brand {
  min-height: 52px;
  min-width: 172px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.guest-logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 34px;
}
.guest-logo-etsy .guest-logo-image {
  height: 30px;
}
.guest-logo-adobe .guest-logo-image,
.guest-logo-shutterstock .guest-logo-image {
  height: 32px;
}
.guest-proof-inline .guest-section-head {
  margin-bottom: 10px;
}
.guest-faq details {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-faint);
  padding: 10px 12px;
}
.guest-faq details + details {
  margin-top: 8px;
}
.guest-faq summary {
  cursor: pointer;
  color: var(--text-heading);
  font-weight: 600;
}
.guest-faq p {
  margin: 8px 0 0;
  color: var(--muted);
}
.guest-final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 80% -10%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 45%),
    var(--panel);
}
.guest-final-cta h2 {
  margin: 0 0 4px;
  color: var(--text-heading);
}
.guest-final-cta p {
  margin: 0 0 12px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-end;
}
.header-actions-buttons {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.selection-action-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.selection-action-bar .btn {
  min-width: 196px;
}
.export-profile-select {
  min-width: 180px;
}
.batch-sticky {
  position: sticky;
  top: 8px;
  z-index: 22;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-sticky);
  padding: 10px;
  margin-bottom: 10px;
}
.toolbar {
  background: var(--surface-toolbar);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 0;
  backdrop-filter: blur(4px);
}
.toolbar-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.toolbar-right-actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.toolbar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border-soft);
  padding-top: 8px;
}
.toolbar-meta .quick-chips-context,
.toolbar-meta .quick-chips-selection {
  flex: 1 1 auto;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--border); background: transparent; color: var(--text);
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.tab.active { background: var(--tab-active-bg); border-color: var(--tab-active-border); }
.quick-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.quick-chips-context { justify-content: flex-start; }
.quick-chips-selection { justify-content: flex-end; }
.table-search-wrap {
  position: relative;
  min-width: 230px;
}
.table-search {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  padding: 8px 34px 8px 12px;
}
.table-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  padding: 0;
}
.table-search-clear:hover {
  background: var(--control-hover);
  color: var(--text);
}
.table-select {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--control-bg-2);
  color: var(--text);
  padding: 8px 12px;
}
.pagination-info {
  color: var(--muted);
  font-size: 12px;
  padding: 0 4px;
}
.pager-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}
.page-jump-select {
  min-width: 76px;
  text-align: center;
}
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-faint);
  color: var(--muted);
  font-size: 12px;
  opacity: 0.9;
  max-width: 260px;
}
.quick-chip strong { color: var(--text-subtle); font-weight: 600; }
.quick-chip .chip-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-table);
  overflow: auto;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 450px);
}
.items-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.global-auth-lock {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.global-auth-lock.hidden { display: none; }
.global-auth-lock-title {
  color: var(--text-heading);
  font-weight: 700;
  font-size: 14px;
}
.global-auth-lock-sub {
  color: var(--muted);
  font-size: 12px;
}
.lock-badge {
  display: none;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 700;
  color: var(--issues-text);
  border: 1px solid var(--issues-border);
  background: var(--issues-bg);
  padding: 3px 8px;
  border-radius: 999px;
}
body.auth-locked .lock-badge { display: inline-flex; align-items: center; }
body.auth-locked .auth-guard {
  cursor: pointer;
}
body.auth-locked .auth-guard > * {
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.08);
  opacity: 0.6;
}
body.auth-locked .auth-guard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--overlay-soft);
  pointer-events: none;
  z-index: 18;
}
.items-table thead th {
  text-align: left; font-size: 12px; color: var(--table-head-text); padding: 12px 10px; border-bottom: 1px solid var(--border); background: var(--table-head-bg);
  position: sticky; top: 0; z-index: 5;
}
.items-table tbody td {
  border-bottom: 1px solid var(--table-row-border); padding: 10px; vertical-align: top;
}
.items-table tbody tr:hover { background: var(--table-row-hover); }
.items-table tbody tr.row-has-issues { background: var(--table-row-issues); }
.items-table tbody tr.row-has-issues:hover { background: var(--table-row-issues-hover); }
.items-table tbody tr.row-error { background: var(--table-row-error); }
.items-table tbody tr.row-error:hover { background: var(--table-row-error-hover); }
.items-table tbody tr.admin-row-selected { background: var(--table-row-hover); outline: 1px solid var(--primary-soft); }
.items-table tbody tr.admin-row-selected:hover { background: var(--table-row-hover); }
.sel-col { width: 48px; }
.items-table th:nth-child(2), .items-table td:nth-child(2) { width: 104px; }
.items-table th:nth-child(3), .items-table td:nth-child(3) { width: 190px; }
.items-table th:nth-child(4), .items-table td:nth-child(4) { width: 132px; }
.items-table th:nth-child(5), .items-table td:nth-child(5) { width: 210px; }
.items-table th:nth-child(6), .items-table td:nth-child(6) { width: 320px; }
.items-table th:nth-child(7), .items-table td:nth-child(7) { width: 240px; }
.items-table th:nth-child(8), .items-table td:nth-child(8) { width: 240px; }
.items-table th:nth-child(9), .items-table td:nth-child(9) { width: 110px; }
.empty-row { text-align: center; padding: 30px !important; color: var(--muted); }
.preview-thumb {
  width: 74px;
  height: 64px;
  object-fit: contain;
  object-position: center center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-preview);
  display: block;
}
.items-preview-popover {
  position: fixed;
  z-index: 80;
  width: min(360px, 32vw);
  min-width: 260px;
  max-width: 360px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 18px 44px rgba(7, 12, 20, 0.28);
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.items-preview-popover.hidden {
  display: none;
}
.items-preview-popover-img {
  display: block;
  width: 100%;
  max-height: min(360px, 52vh);
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  background: var(--surface-preview);
}
.status-chip {
  display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border); background: var(--chip);
}
.status-pending { color: var(--status-pending-text); }
.status-processing { color: var(--status-processing-text); background: var(--status-processing-bg); border-color: var(--status-processing-border); }
.status-generated { color: var(--status-generated-text); background: var(--status-generated-bg); border-color: var(--status-generated-border); }
.status-ready { color: var(--status-ready-text); background: var(--status-ready-bg); border-color: var(--status-ready-border); }
.status-error { color: var(--status-error-text); background: var(--status-error-bg); border-color: var(--status-error-border); }
.status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.generation-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-8);
  color: var(--text-subtle);
}
.cell-title { font-weight: 600; margin-bottom: 4px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.truncate {
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.items-table-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  cursor: pointer;
}
.items-table-sort-btn:hover {
  color: var(--primary);
}
.items-table-sort-btn[data-sort-direction="asc"],
.items-table-sort-btn[data-sort-direction="desc"] {
  color: var(--primary);
}
.items-table-sort-arrow {
  width: 10px;
  min-width: 10px;
  height: 12px;
  position: relative;
  opacity: 0.32;
}
.items-table-sort-arrow::before,
.items-table-sort-arrow::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  font-size: 10px;
}
.items-table-sort-arrow::before {
  content: "▲";
  top: -1px;
}
.items-table-sort-arrow::after {
  content: "▼";
  bottom: -1px;
}
.items-table-sort-btn[data-sort-direction="asc"] .items-table-sort-arrow,
.items-table-sort-btn[data-sort-direction="desc"] .items-table-sort-arrow {
  opacity: 1;
}
.items-table-sort-btn[data-sort-direction="asc"] .items-table-sort-arrow::after,
.items-table-sort-btn[data-sort-direction="desc"] .items-table-sort-arrow::before {
  opacity: 0.25;
}
[data-items-col="shop_section"] .truncate,
[data-items-col="short_title"] .truncate,
[data-items-col="title"] .truncate,
[data-items-col="tags"] .truncate,
[data-items-col="extra_tags"] .truncate {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-actions-kebab {
  align-items: center;
  justify-content: flex-start;
}
.table-actions-kebab [data-role="open-editor"],
.table-actions-kebab .kebab-trigger,
.table-actions-kebab .kebab-item {
  cursor: pointer;
}
.kebab-menu {
  position: relative;
}
.kebab-menu > summary {
  list-style: none;
  min-width: 34px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  font-size: 16px;
  line-height: 1;
}
.kebab-menu > summary::-webkit-details-marker {
  display: none;
}
.kebab-menu > summary::marker {
  content: "";
}
.kebab-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--panel);
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 30;
}
.kebab-menu.is-floating > .kebab-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  max-width: min(220px, calc(100vw - 16px));
  z-index: 120;
}
.kebab-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 12px;
  border-radius: 8px;
  padding: 7px 8px;
  cursor: pointer;
}
.kebab-item:hover {
  background: var(--surface-faint);
}
.kebab-item.debug {
  color: color-mix(in srgb, var(--primary) 78%, var(--text) 22%);
  font-weight: 600;
}
.kebab-item.debug:hover {
  background: color-mix(in srgb, var(--primary) 12%, var(--panel) 88%);
}
.kebab-item.danger {
  color: var(--danger);
}
.kebab-item.danger:hover {
  background: color-mix(in srgb, var(--danger) 12%, var(--panel) 88%);
}
.kebab-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 2px 0;
}
.btn-xs { padding: 6px 8px; border-radius: 8px; font-size: 12px; }
.issues-pill {
  display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 11px;
  border: 1px solid var(--issues-border); background: var(--issues-bg); color: var(--issues-text);
}
.issues-pill.error {
  border-color: var(--issues-error-border);
  background: var(--issues-error-bg);
  color: var(--issues-error-text);
}
.drawer {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 18px;
}
.drawer.hidden { display: none; }
.drawer-card {
  width: min(980px, 94vw);
  max-height: 92vh;
  background: var(--surface-6);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.editor-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 31;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background: var(--surface-sticky);
  color: var(--text-heading);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}
.editor-nav-left { left: 18px; }
.editor-nav-right { right: 18px; }
.editor-nav:disabled {
  opacity: 0.45;
  cursor: default;
}
.drawer-header, .drawer-footer {
  padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.drawer-footer { border-bottom: 0; border-top: 1px solid var(--border); justify-content: flex-end; }
.drawer-title { font-size: 18px; font-weight: 700; }
.drawer-sub { color: var(--muted); font-size: 12px; }
.editor-drawer-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 12px;
}
.editor-drawer-left {
  min-width: max-content;
}
.editor-drawer-center {
  min-width: 0;
  text-align: center;
}
.editor-file-name {
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor-drawer-right {
  justify-self: end;
  text-align: right;
}
.editor-position {
  font-variant-numeric: tabular-nums;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-9); color: var(--text); cursor: pointer; font-size: 20px;
}
.drawer-body { overflow: auto; padding: 14px; display: grid; gap: 12px; min-width: 0; }
.drawer-body > * { min-width: 0; }
.editor-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.editor-top-fields {
  display: grid;
  gap: 12px;
}
.preview-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-preview);
  height: clamp(260px, 34vh, 380px);
  position: relative;
  overflow: hidden;
}
.preview-panel.is-loading::after,
.preview-panel.is-error::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-preview) 84%, transparent);
  font-size: 13px;
  text-align: center;
  content: "Loading preview...";
}
.preview-panel.is-error::after {
  content: "Preview unavailable";
}
.preview-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.preview-panel img.is-loading {
  opacity: 0;
}
#editorPreview {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.field-group { min-width: 0; }
.field-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.field-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.field-group-head label { margin-bottom: 0; }
.field-group input, .field-group select, .field-group textarea, .modal-body input, .modal-body select, .modal-body textarea {
  width: 100%; max-width: 100%; min-width: 0; border-radius: 10px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--input-text); padding: 10px; font: inherit;
}
.field-group input::placeholder,
.field-group textarea::placeholder,
.modal-body input::placeholder,
.modal-body textarea::placeholder,
.table-search::placeholder {
  color: var(--input-placeholder);
}
.field-group textarea { resize: vertical; }
.editor-inline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  justify-items: stretch;
}
.stocks-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stocks-category-dreamstime-grid {
  margin-top: 10px;
}
.editor-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.editor-compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.editor-inline-grid > label {
  margin: 0;
  width: 100%;
  min-width: 0;
}
.attr-field {
  display: block !important;
  width: 100%;
  min-width: 0;
}
.attr-field > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-heading);
}
.attr-field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.category-readonly {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface-8);
  color: var(--text-heading);
  padding: 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-readonly.is-empty {
  color: var(--muted);
  font-weight: 500;
}
.editor-inline-grid + .editor-inline-grid {
  margin-top: 10px;
}
.etsy-attrs-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.etsy-room-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.etsy-subject-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.etsy-holiday-shop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ghost-label {
  visibility: hidden;
}
.inline-checkbox {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  padding: 10px;
  min-height: 42px;
}
.inline-checkbox input {
  width: auto !important;
  margin: 0;
}
.compact-checkbox {
  justify-content: flex-start;
  gap: 8px;
}
.compact-input-field {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.compact-input-title {
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
}
.compact-input-field input {
  width: 100%;
  min-width: 0;
}
.product-type-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-8);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.product-type-pill.frame-tv {
  border-color: var(--op-success-border);
  background: var(--op-success-bg);
  color: var(--op-success-text);
}
.drawer-sub.frame-tv {
  color: var(--op-success-text);
}
.counter { color: var(--muted); font-size: 12px; margin-top: 4px; }
.counter .warning,
.counter.warning {
  color: var(--op-error-text);
  font-weight: 700;
}
.code-box {
  margin: 0; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-code);
  color: var(--code-text); font-size: 12px; overflow: auto; max-height: 220px; max-width: 100%; white-space: pre-wrap; word-break: break-word;
}
.issues-list { margin: 0; padding-left: 16px; color: var(--text); }
.issues-list li { margin-bottom: 4px; }
.issues-summary {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: var(--muted);
}
.issues-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-8);
  padding: 10px;
}
.issues-group.has-issues {
  border-color: var(--issues-border);
  background: var(--issues-bg);
}
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(2px); }
#confirmModal { z-index: 80; }
#profileUnsavedModal { z-index: 70; }
.modal-card {
  position: relative; width: min(860px, 95vw); background: var(--surface-7); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.settings-modal-card {
  width: min(1040px, 96vw);
  height: min(84vh, 820px);
  display: flex;
  flex-direction: column;
}
.settings-modal-card .modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.about-modal-card {
  width: min(840px, 94vw);
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
}
.about-modal-body {
  display: grid;
  gap: 16px;
  overflow: auto;
}
.about-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-8) 92%, transparent), color-mix(in srgb, var(--surface-1) 86%, transparent));
}
.about-brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
}
.about-kicker {
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-title {
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.15;
  color: var(--text-heading);
}
.about-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.about-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.about-summary-card,
.about-resource-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-8);
}
.about-summary-card span {
  color: var(--muted);
  font-size: 12px;
}
.about-summary-card strong {
  color: var(--text-heading);
  font-size: 14px;
}
.about-section {
  display: grid;
  gap: 10px;
}
.about-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}
.about-list li {
  line-height: 1.45;
}
.about-list-code code {
  color: var(--code-text);
  font-family: Consolas, "Courier New", monospace;
}
.about-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.about-resource-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}
.about-resource-text,
.about-section-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.about-resource-card .btn {
  justify-self: start;
}
.profile-modal-card {
  width: min(1220px, 96vw);
  height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
}
.profile-modal-card .modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.account-modal-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 0;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid var(--border-soft);
  background: var(--surface-faint);
  overflow-y: auto;
}
.account-nav-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: var(--text-subtle);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.account-nav-btn:hover { background: var(--control-hover); color: var(--text); }
.account-nav-btn.active {
  background: var(--tab-active);
  color: var(--text-heading);
  box-shadow: inset 2px 0 0 var(--primary);
}
.account-nav-logout {
  width: 100%;
  margin-top: auto;
  padding: 12px 10px 8px;
  border: 0;
  border-top: 1px solid var(--border-soft);
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.account-nav-logout:hover {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}
.account-content {
  min-width: 0;
  overflow: auto;
  padding: 18px;
}
.account-section { min-width: 0; }
.account-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.account-section-head h2 { margin: 0; color: var(--text-heading); font-size: 18px; }
.account-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.account-info-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-faint);
}
.account-info-card span, .account-info-card small { color: var(--muted); font-size: 12px; }
.account-info-card strong { color: var(--text-heading); font-size: 16px; overflow-wrap: anywhere; }
.account-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.account-preferences-grid { display: grid; gap: 12px; max-width: 640px; }
.account-preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
.account-preference-row > div { display: grid; gap: 3px; }
.account-preference-row span { color: var(--muted); font-size: 12px; }
.account-link-list { display: grid; justify-items: start; gap: 12px; }
.account-history-wrap { max-height: 420px; overflow: auto; }
.account-footer-note { color: var(--muted); font-size: 12px; }
.account-footer-actions { display: flex; gap: 8px; }
.account-modal-card .modal-footer { justify-content: space-between; }
.account-section[data-account-section="billing"] .pricing-plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.account-section[data-account-section="billing"] .pricing-section-subscription {
  grid-column: 1 / 3;
  grid-template-rows: auto auto 1fr;
}
.account-section[data-account-section="billing"] .pricing-section-credit-topup {
  grid-column: 3;
  grid-row: 1;
  grid-template-rows: auto auto 1fr;
  align-self: stretch;
}
.account-section[data-account-section="billing"] .pricing-plans.has-free-plan .pricing-section-subscription { grid-column: 2 / 4; }
.account-section[data-account-section="billing"] .pricing-plans.has-free-plan .pricing-section-credit-topup {
  grid-column: 1 / -1;
  grid-row: auto;
}
.account-section[data-account-section="billing"] .pricing-section-grid,
.account-section[data-account-section="billing"] .pricing-card { height: 100%; }
.account-section[data-account-section="billing"] .pricing-topup-card { min-height: 100%; }
}
.profile-account-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}
.profile-account-row > label {
  margin: 0;
}
.profile-balance-field {
  display: grid;
  gap: 6px;
  margin: 0;
}
.profile-balance-label {
  font-weight: 600;
  color: var(--text-heading);
}
.profile-modal-card .modal-footer {
  justify-content: flex-end;
}
.account-modal-card .modal-footer { justify-content: space-between; }
.profile-modal-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile-dirty-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--issues-border);
  border-radius: 999px;
  background: var(--issues-bg);
  color: var(--issues-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
#profileCreditsBalance {
  margin: 0;
}
.profile-modal-card .section-table-head {
  margin-top: 12px;
}
.profile-avatar-card {
  margin-top: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface-faint);
  padding: 10px;
}
.profile-avatar-head {
  color: var(--text-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.profile-avatar-row {
  display: grid;
  grid-template-columns: 96px minmax(320px, 1fr) max-content;
  gap: 10px;
  align-items: center;
}
.profile-avatar-preview-wrap {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.profile-avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-preview-fallback {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text-subtle);
}
.profile-avatar-drop {
  min-height: 110px;
  padding: 10px;
}
.profile-avatar-drop .upload-title {
  font-size: 13px;
}
.profile-avatar-actions {
  display: flex;
  justify-content: flex-end;
}
.profile-storage-integrity {
  margin-top: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-faint);
  padding: 10px;
}
.profile-storage-integrity-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.profile-storage-integrity-head .profile-avatar-head {
  margin-bottom: 4px;
}
.profile-storage-grace {
  display: grid;
  gap: 4px;
  min-width: 130px;
  margin: 0;
}
.profile-storage-integrity-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.profile-storage-audit-status {
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .profile-storage-integrity-head {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-storage-grace {
    min-width: 0;
  }
}
.admin-modal-card {
  width: min(1520px, 98vw);
  height: min(90vh, 920px);
  display: flex;
  flex-direction: column;
}
.admin-modal-card .modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.admin-shell {
  display: grid;
  gap: 12px;
}
.admin-runtime-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.admin-system-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-system-summary-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-system-summary-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-heading);
}
.admin-token-actions {
  display: inline-flex;
  align-items: end;
  gap: 8px;
  flex-wrap: nowrap;
}
.admin-token-actions .btn {
  white-space: nowrap;
}
.admin-scope-select {
  min-width: 170px;
  width: 170px;
  flex: 0 0 170px;
}
#adminEventsKind,
#adminArchiveKind {
  min-width: 98px;
  width: 98px;
  flex: 0 0 98px;
}
.admin-shell .section-head .section-actions {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.admin-shell .section-actions .btn {
  white-space: nowrap;
}
.admin-credits-row {
  grid-template-columns: 130px minmax(220px, 360px) max-content;
  justify-content: start;
}
.admin-credits-row #adminAdjustCreditsBtn {
  width: 96px;
  min-width: 96px;
  justify-self: start;
}
.admin-loadmore-row {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.admin-table-wrap {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.admin-table-wrap-users { max-height: 250px; }
.admin-table-wrap-jobs { max-height: 250px; }
.admin-table-wrap-events { max-height: 240px; }
.admin-table-wrap-archive { max-height: 220px; }
.admin-table-wrap .items-table {
  margin: 0;
}
.admin-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--table-head-bg);
}
.admin-table {
  width: 100%;
  table-layout: fixed;
}
.admin-table th,
.admin-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-events-table th,
.admin-events-table td {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}
.admin-provider-mode-card {
  margin-bottom: 8px;
  min-width: 0;
}
.admin-provider-mode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 10px;
}
.admin-provider-mode-meta {
  margin-top: 8px;
  margin-bottom: 0;
  text-align: left;
}
.admin-retention-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
  gap: 10px;
  margin-bottom: 10px;
  align-items: end;
}
.admin-inline-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}
.admin-btn-narrow {
  min-width: 92px;
  width: 92px;
}
.admin-provider-models-table th:nth-child(1),
.admin-provider-models-table td:nth-child(1) {
  width: 16%;
}
.admin-provider-models-table th:nth-child(2),
.admin-provider-models-table td:nth-child(2) {
  width: 22%;
}
.admin-provider-models-table th:nth-child(3),
.admin-provider-models-table td:nth-child(3) {
  width: 14%;
}
.admin-provider-models-table th:nth-child(4),
.admin-provider-models-table td:nth-child(4) {
  width: 30%;
}
.admin-provider-models-table th:nth-child(5),
.admin-provider-models-table td:nth-child(5) {
  width: 18%;
}
.generation-pricing-table th:nth-child(1),
.generation-pricing-table td:nth-child(1) {
  width: 28%;
}
.generation-pricing-table th:nth-child(2),
.generation-pricing-table td:nth-child(2) {
  width: 28%;
}
.generation-pricing-table th:nth-child(3),
.generation-pricing-table td:nth-child(3) {
  width: 30%;
  min-width: 18ch;
}
.generation-pricing-table th:nth-child(4),
.generation-pricing-table td:nth-child(4) {
  width: 14%;
  min-width: 10ch;
}
.generation-pricing-table tbody tr.current-row {
  background: rgba(47, 125, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 255, 0.28);
}
.generation-pricing-table tbody tr.current-row:hover {
  background: rgba(47, 125, 255, 0.16);
}
.generation-pricing-table tbody tr.current-row td {
  font-weight: 600;
}
.admin-provider-models-footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.admin-provider-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 12px;
  align-items: stretch;
}
.admin-provider-config-card {
  display: flex;
  flex-direction: column;
}
.admin-provider-models-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.admin-provider-pricing-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.admin-provider-models-main .admin-table-wrap {
  height: 288px;
  max-height: 288px;
}
.admin-provider-pricing-wrap {
  max-height: 260px;
}
.admin-provider-pricing-meta {
  margin: 0;
  overflow-wrap: anywhere;
}
.admin-provider-pricing-meta a {
  color: inherit;
}
.admin-provider-pricing-wrap {
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.admin-provider-pricing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-provider-pricing-table th:nth-child(1),
.admin-provider-pricing-table td:nth-child(1) { width: 38%; }
.admin-provider-pricing-table th:nth-child(2),
.admin-provider-pricing-table td:nth-child(2) { width: 31%; }
.admin-provider-pricing-table th:nth-child(3),
.admin-provider-pricing-table td:nth-child(3) { width: 31%; }
.admin-provider-pricing-table td:nth-child(2),
.admin-provider-pricing-table td:nth-child(3) {
  text-align: right;
}
@media (max-width: 1260px) {
  .admin-runtime-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-system-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-provider-config-grid {
    grid-template-columns: 1fr;
  }
}
#adminProviderModelsSaveBtn {
  min-width: 112px;
  white-space: nowrap;
}
#adminRefreshBtn {
  min-width: 112px;
  white-space: nowrap;
}
.admin-users-table th:nth-child(1), .admin-users-table td:nth-child(1) { width: 19%; }
.admin-users-table th:nth-child(2), .admin-users-table td:nth-child(2) { width: 10%; }
.admin-users-table th:nth-child(3), .admin-users-table td:nth-child(3) { width: 8%; text-align: right; }
.admin-users-table th:nth-child(4), .admin-users-table td:nth-child(4) { width: 12%; text-align: center; }
.admin-users-table th:nth-child(5), .admin-users-table td:nth-child(5) { width: 7%; text-align: center; }
.admin-users-table th:nth-child(6), .admin-users-table td:nth-child(6) { width: 9%; text-align: center; }
.admin-users-table th:nth-child(7), .admin-users-table td:nth-child(7) { width: 14%; }
.admin-users-table th:nth-child(8), .admin-users-table td:nth-child(8) { width: 8%; text-align: center; }
.admin-users-table th:nth-child(9), .admin-users-table td:nth-child(9) { width: 13%; text-align: center; }
.admin-users-table td .btn + .btn { margin-left: 6px; }
.admin-users-table td:nth-child(9) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.admin-cell-link {
  min-width: 0;
  width: 100%;
}
.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.admin-user-actions .btn {
  white-space: nowrap;
}
.admin-reset-request-status {
  cursor: pointer;
  user-select: none;
}
.admin-reset-request-status.is-open {
  color: var(--success);
  font-weight: 700;
}
.admin-reset-request-status.is-none {
  color: var(--muted);
}
.admin-jobs-table th:nth-child(1), .admin-jobs-table td:nth-child(1) { width: 17%; }
.admin-jobs-table th:nth-child(2), .admin-jobs-table td:nth-child(2) { width: 7%; }
.admin-jobs-table th:nth-child(3), .admin-jobs-table td:nth-child(3) { width: 10%; }
.admin-jobs-table th:nth-child(4), .admin-jobs-table td:nth-child(4) { width: 8%; }
.admin-jobs-table th:nth-child(5), .admin-jobs-table td:nth-child(5) { width: 10%; }
.admin-jobs-table th:nth-child(6), .admin-jobs-table td:nth-child(6) { width: 11%; }
.admin-jobs-table th:nth-child(7), .admin-jobs-table td:nth-child(7) { width: 8%; }
.admin-jobs-table th:nth-child(8), .admin-jobs-table td:nth-child(8) { width: 9%; }
.admin-jobs-table th:nth-child(9), .admin-jobs-table td:nth-child(9) { width: 20%; }
.admin-jobs-table td:nth-child(8) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.admin-jobs-table td:nth-child(9) .table-actions {
  min-width: 150px;
}
.admin-job-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.admin-job-flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.2;
  border: 1px solid transparent;
}
.admin-job-flag-stale {
  color: #ffd67a;
  border-color: rgba(255, 214, 122, 0.35);
  background: rgba(255, 214, 122, 0.12);
}
.admin-job-flag-reserved {
  color: #8ec5ff;
  border-color: rgba(142, 197, 255, 0.35);
  background: rgba(142, 197, 255, 0.12);
}
.admin-datetime-cell {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.admin-datetime-date {
  font-variant-numeric: tabular-nums;
}
.admin-datetime-time {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.admin-provider-cell {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.admin-provider-cell-model {
  overflow-wrap: anywhere;
}
.admin-provider-cell-mode {
  color: var(--muted);
  font-size: 11px;
}
.admin-events-table th:nth-child(1), .admin-events-table td:nth-child(1) { width: 6%; }
.admin-events-table th:nth-child(2), .admin-events-table td:nth-child(2) { width: 12%; }
.admin-events-table th:nth-child(3), .admin-events-table td:nth-child(3) { width: 12%; }
.admin-events-table th:nth-child(4), .admin-events-table td:nth-child(4) { width: 12%; }
.admin-events-table th:nth-child(5), .admin-events-table td:nth-child(5) { width: 10%; }
.admin-events-table th:nth-child(6), .admin-events-table td:nth-child(6) { width: 7%; text-align: right; }
.admin-events-table th:nth-child(7), .admin-events-table td:nth-child(7) { width: 7%; text-align: right; }
.admin-events-table th:nth-child(8), .admin-events-table td:nth-child(8) { width: 7%; text-align: right; }
.admin-events-table th:nth-child(9), .admin-events-table td:nth-child(9) { width: 6%; }
.admin-events-table th:nth-child(10), .admin-events-table td:nth-child(10) { width: 10%; }
.admin-events-table th:nth-child(11), .admin-events-table td:nth-child(11) { width: 6%; }
.admin-events-table th:nth-child(12), .admin-events-table td:nth-child(12) { width: 8%; }
.admin-archive-table th:nth-child(1), .admin-archive-table td:nth-child(1) { width: 10%; }
.admin-archive-table th,
.admin-archive-table td {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}
.admin-archive-table th:nth-child(2), .admin-archive-table td:nth-child(2) { width: 13%; }
.admin-archive-table th:nth-child(3), .admin-archive-table td:nth-child(3) { width: 7%; }
.admin-archive-table th:nth-child(4), .admin-archive-table td:nth-child(4) { width: 8%; }
.admin-archive-table th:nth-child(5), .admin-archive-table td:nth-child(5) { width: 9%; }
.admin-archive-table th:nth-child(6), .admin-archive-table td:nth-child(6) { width: 8%; }
.admin-archive-table th:nth-child(7), .admin-archive-table td:nth-child(7) { width: 11%; }
.admin-archive-table th:nth-child(8), .admin-archive-table td:nth-child(8) { width: 8%; }
.admin-archive-table th:nth-child(9), .admin-archive-table td:nth-child(9) { width: 7%; text-align: right; }
.admin-archive-table th:nth-child(10), .admin-archive-table td:nth-child(10) { width: 8%; text-align: right; }
.admin-archive-table th:nth-child(11), .admin-archive-table td:nth-child(11) { width: 11%; }
.profile-credits-table {
  table-layout: fixed;
  width: 100%;
}
.profile-credits-table td,
.profile-credits-table th {
  white-space: nowrap;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-credits-table th:nth-child(1), .profile-credits-table td:nth-child(1) { width: 25%; }
.profile-credits-table th:nth-child(2), .profile-credits-table td:nth-child(2) { width: 23%; }
.profile-credits-table th:nth-child(3), .profile-credits-table td:nth-child(3) { width: 10%; text-align: right; white-space: nowrap; }
.profile-credits-table th:nth-child(4), .profile-credits-table td:nth-child(4) { width: 14%; text-align: right; white-space: nowrap; }
.profile-credits-table th:nth-child(5), .profile-credits-table td:nth-child(5) { width: 28%; }
.pricing-account-summary {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-8);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: center;
}
.pricing-account-metric {
  display: grid;
  gap: 2px;
}
.pricing-account-metric span,
.pricing-account-metric small {
  color: var(--muted);
  font-size: 12px;
}
.pricing-account-metric strong {
  color: var(--text-heading);
  font-size: 18px;
}
.pricing-card.current {
  border-color: var(--success);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 32%, transparent);
}
.pricing-badge-current {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--success) 55%, transparent);
  background: color-mix(in srgb, var(--success) 18%, var(--surface-8));
  color: var(--text-heading);
  font-size: 11px;
  font-weight: 700;
}
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
  align-items: start;
}
.pricing-section {
  display: grid;
  gap: 10px;
}
.pricing-section-free {
  grid-column: 1;
}
.pricing-section-subscription {
  grid-column: 2;
}
.pricing-section-credit-topup {
  grid-column: 1 / -1;
}
.pricing-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
}
.pricing-section-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.pricing-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: stretch;
  padding-top: 6px;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-8);
  padding: 14px 12px 12px;
  display: grid;
  gap: 6px;
  align-content: start;
  position: relative;
  min-height: 100%;
}
.pricing-card.free-compact {
  background: color-mix(in srgb, var(--surface-8) 85%, var(--surface-3));
  border-style: dashed;
  opacity: 0.95;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}
.pricing-card-disabled {
  opacity: 0.9;
  background: color-mix(in srgb, var(--surface-8) 92%, var(--surface-3));
}
.pricing-topup-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-8);
  padding: 16px 14px;
  display: grid;
  gap: 10px;
  max-width: none;
  min-height: 100%;
  align-content: start;
}
.pricing-topup-card .btn {
  margin-top: auto;
}
.pricing-topup-input-wrap {
  display: grid;
  gap: 6px;
}
.pricing-topup-estimate {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.pricing-topup-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
}
.pricing-topup-meta {
  color: var(--muted);
  font-size: 12px;
}
.admin-user-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-user-summary-item {
  display: grid;
  gap: 4px;
}
.admin-user-summary-item strong {
  color: var(--text-heading);
}
.pricing-badge-popular {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--primary) 22%, var(--surface-8));
  color: var(--text-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pricing-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}
.pricing-plan-subtitle {
  font-size: 12px;
  color: var(--muted);
  min-height: 32px;
  line-height: 1.35;
}
.pricing-plan-price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.pricing-plan-credits {
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 600;
}
.pricing-plan-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}
.pricing-includes-title {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subtle);
}
.pricing-card .btn {
  margin-top: auto;
}
.pricing-includes-list {
  margin: 0 0 8px 16px;
  padding: 0;
  display: grid;
  gap: 4px;
  color: var(--text);
  font-size: 12px;
}
.pricing-includes-list.compact {
  gap: 3px;
  margin-bottom: 6px;
}
.pricing-includes-list li {
  line-height: 1.35;
}
.jobs-modal-card {
  width: min(1240px, 97vw);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
}
.jobs-modal-card .modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.jobs-table td, .jobs-table th { white-space: nowrap; }
.jobs-table th:nth-child(1), .jobs-table td:nth-child(1) { width: 150px; }
.jobs-table th:nth-child(2), .jobs-table td:nth-child(2) { width: 132px; }
.jobs-table th:nth-child(3), .jobs-table td:nth-child(3) { width: 108px; }
.jobs-table th:nth-child(4), .jobs-table td:nth-child(4) { width: 132px; }
.jobs-table th:nth-child(6), .jobs-table td:nth-child(6) { width: 112px; }
.jobs-table th:nth-child(7), .jobs-table td:nth-child(7) { width: 96px; }
.jobs-table th:nth-child(8), .jobs-table td:nth-child(8) { width: 272px; }
.jobs-name-cell {
  max-width: 150px;
  width: 150px;
  overflow: hidden;
}
.jobs-name {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}
.jobs-created-cell { min-width: 132px; width: 132px; }
.jobs-created-date,
.jobs-created-time {
  display: block;
  line-height: 1.2;
}
.jobs-created-time {
  font-size: 12px;
}
.jobs-items-cell {
  white-space: nowrap;
}
.jobs-size-cell {
  min-width: 112px !important;
  width: 112px !important;
  max-width: 112px;
}
.jobs-inline-progress,
.jobs-size-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  white-space: nowrap;
}
.jobs-inline-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  border-top-color: currentColor;
  border-right-color: transparent;
  flex: 0 0 auto;
  vertical-align: -2px;
  animation: op-status-spin 0.75s linear infinite;
}
.jobs-table td:nth-child(8) {
  min-width: 272px;
}
.jobs-table td:nth-child(8) .table-actions {
  flex-wrap: nowrap;
  align-items: center;
}
.jobs-table td:nth-child(8) .btn,
.jobs-table td:nth-child(8) .issues-pill {
  flex: 0 0 auto;
}
.job-archive-btn {
  min-width: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.job-archive-btn .mini-spinner {
  position: absolute;
  left: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0;
  flex: 0 0 auto;
}
.job-archive-btn.is-loading .mini-spinner {
  opacity: 1;
  animation: op-status-spin .7s linear infinite;
}
.job-archive-btn.is-loading span:last-child {
  padding-left: 12px;
}
.job-archive-badge {
  min-width: 76px;
  text-align: center;
}
.jobs-platform-cell {
  min-width: 108px;
  width: 108px;
}
.jobs-variant-cell {
  min-width: 132px;
  width: 132px;
}
.jobs-row-current {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.confirm-modal-card { width: min(520px, 92vw); }
.dreamstime-categories-modal-card {
  width: min(760px, 94vw);
  max-height: 86vh;
}
.dreamstime-categories-body {
  display: grid;
  gap: 12px;
  min-height: 0;
}
.dreamstime-category-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dreamstime-category-slot {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-8);
  color: var(--text);
  text-align: left;
  padding: 10px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dreamstime-category-slot.is-active {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--btn-primary-bg) 18%, transparent);
}
.dreamstime-category-slot-label {
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dreamstime-category-slot-value {
  min-height: 34px;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dreamstime-category-slot-value.is-empty {
  color: var(--muted);
  font-weight: 500;
}
.dreamstime-category-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.dreamstime-category-options-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-8);
  max-height: min(44vh, 430px);
  overflow: auto;
  padding: 4px;
}
.dreamstime-category-option {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
}
.dreamstime-category-option:hover {
  background: color-mix(in srgb, var(--btn-primary-bg) 8%, transparent);
}
.dreamstime-category-option.is-selected {
  background: color-mix(in srgb, var(--btn-primary-bg) 14%, transparent);
  color: var(--text-heading);
  font-weight: 700;
}
.dreamstime-category-option-badge {
  flex: 0 0 auto;
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 700;
}
.confirm-generation-layout {
  display: grid;
  gap: 14px;
}
.confirm-generation-loading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 210px;
  padding: 12px 2px;
}
.confirm-generation-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: op-status-spin 0.8s linear infinite;
}
.confirm-generation-loading-copy {
  display: grid;
  gap: 4px;
}
.confirm-generation-loading-copy strong {
  color: var(--text-heading);
  font-size: 14px;
}
.confirm-generation-loading-copy span {
  color: var(--muted);
  font-size: 12px;
}
.confirm-generation-skeleton {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.confirm-generation-skeleton span {
  min-height: 58px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: linear-gradient(90deg, var(--surface-8) 25%, var(--surface-4) 50%, var(--surface-8) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.confirm-generation-skeleton span:nth-child(4),
.confirm-generation-skeleton span:nth-child(5) {
  grid-column: span 1;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.confirm-generation-mode-field {
  display: grid;
  gap: 8px;
}
.confirm-generation-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.confirm-generation-summary-grid-meta {
  position: relative;
}
.confirm-generation-summary-grid-meta .confirm-generation-summary-item:last-child {
  padding-right: 62px;
}
.confirm-generation-summary-grid-pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.confirm-generation-summary-grid-balance {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.confirm-generation-summary-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border-soft);
  background: var(--surface-8);
  border-radius: 12px;
  padding: 10px 12px;
}
.confirm-generation-summary-item span {
  color: var(--muted);
  font-size: 12px;
}
.confirm-generation-summary-item strong {
  color: var(--text-heading);
  font-size: 14px;
}
.confirm-generation-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}
.confirm-generation-settings {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-8);
  border-radius: 12px;
  padding: 10px 12px;
}
.confirm-generation-settings-title {
  color: var(--muted);
  font-size: 12px;
}
.confirm-generation-scope {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-8);
  border-radius: 12px;
  padding: 10px 12px;
}
.confirm-generation-scope-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
}
.confirm-generation-scope-option.is-selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.confirm-generation-scope-option input {
  margin-top: 2px;
}
.confirm-generation-scope-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.confirm-generation-scope-option strong {
  color: var(--text-heading);
  font-size: 13px;
}
.confirm-generation-scope-option small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.confirm-generation-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: center;
}
.confirm-generation-checkbox {
  min-height: 34px;
}
.confirm-generation-checkbox.is-disabled {
  color: var(--muted);
}
.confirm-generation-compact-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}
.confirm-generation-inline-field,
.confirm-generation-readonly-field {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  color: var(--text);
  font-size: 13px;
  justify-self: start;
}
.confirm-generation-inline-field span,
.confirm-generation-readonly-field span {
  color: var(--muted);
  font-size: 12px;
}
.confirm-generation-inline-field input {
  width: 72px;
  min-height: 30px;
  padding: 5px 8px;
}
.confirm-generation-readonly-field strong {
  color: var(--text-heading);
  font-size: 13px;
}
.confirm-generation-warnings {
  display: grid;
  gap: 8px;
}
.confirm-generation-warning {
  border: 1px solid var(--issues-border);
  background: var(--issues-bg);
  color: var(--issues-text);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.45;
}
.modal-header, .modal-footer {
  padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between;
}
.modal-footer { border-bottom: 0; border-top: 1px solid var(--border); }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-sub { color: var(--muted); font-size: 12px; }
#confirmModal .modal-header { align-items: flex-start; }
#confirmMessage {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  margin-top: 8px;
}
.export-confirm-layout {
  display: grid;
  gap: 12px;
}
.export-confirm-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.export-target-list {
  display: grid;
  gap: 6px;
}
.export-target-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 132px;
  column-gap: 8px;
  align-items: center;
}
.export-target-row.export-sub-option {
  margin-left: 26px;
}
.export-target-group {
  display: grid;
  gap: 2px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 10px;
  padding: 6px 10px;
}
.export-target-group .export-target-row {
  border-color: transparent;
  background: transparent;
  padding: 4px 0;
}
.export-target-group .export-target-row.export-sub-option {
  padding: 4px 0;
}
.export-target-label,
.export-target-meta {
  color: var(--text-heading);
}
.export-target-row:has(input:not(:checked)) .export-target-label,
.export-target-row:has(input:not(:checked)) .export-target-meta {
  color: var(--muted);
}
.export-target-row:has(input:disabled) .export-target-label,
.export-target-row:has(input:disabled) .export-target-meta,
.export-target-row:has(input:disabled) + .export-target-help {
  color: var(--muted);
  opacity: 0.72;
}
.export-target-meta {
  text-align: right;
  white-space: nowrap;
}
.export-target-help {
  margin: -1px 0 4px 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.export-confirm-note {
  color: var(--muted);
}
.modal-body { padding: 14px 16px; }
@media (max-width: 640px) {
  .confirm-generation-summary-grid {
    grid-template-columns: 1fr;
  }
  .confirm-generation-summary-grid-pricing,
  .confirm-generation-summary-grid-balance {
    grid-template-columns: 1fr;
  }
  .confirm-generation-settings-grid {
    grid-template-columns: 1fr;
  }
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-summary-grid,
  .about-resource-grid {
    grid-template-columns: 1fr;
  }
  .export-target-row {
    grid-template-columns: auto 1fr;
    row-gap: 2px;
  }
  .export-target-meta {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }
  .export-target-help {
    margin-left: 26px;
  }
}
.settings-shell {
  display: grid;
  grid-template-columns: 184px 1fr;
  gap: 14px;
  height: 100%;
  max-height: none;
}
.settings-rail {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-8);
  padding: 8px 6px;
  display: grid;
  gap: 2px;
  align-content: start;
  overflow: auto;
}
.settings-rail-group-title {
  color: color-mix(in srgb, var(--muted) 88%, var(--text-heading));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 10px 8px;
  margin-top: 4px;
  position: relative;
}
.settings-rail-group-title::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  border-bottom: 1px solid var(--border-soft);
}
.settings-rail-btn {
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--control-text);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.settings-rail-btn:hover {
  background: color-mix(in srgb, var(--control-hover) 65%, transparent);
}
.settings-rail-btn.active {
  background: var(--tab-active-bg);
  border-left-color: var(--primary);
  color: var(--control-text-strong);
}
.settings-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-8);
  padding: 12px;
  min-height: 0;
  height: 100%;
  overflow: auto;
}
.settings-section {
  display: none;
}
.settings-section.active {
  display: block;
}
.settings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.settings-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0;
}
.settings-section-sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.status-inline,
.modal-inline-status,
.auth-inline-status {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-faint);
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}
.modal-inline-status {
  position: sticky;
  top: 0;
  z-index: 4;
}
.status-inline > span,
.modal-inline-status > span,
.auth-inline-status > span {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.status-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.status-inline.success,
.modal-inline-status.success,
.auth-inline-status.success {
  border-color: var(--op-success-border);
  background: var(--op-success-bg);
  color: var(--op-success-text);
}
.status-inline.error,
.modal-inline-status.error,
.auth-inline-status.error {
  border-color: var(--op-error-border);
  background: var(--op-error-bg);
  color: var(--op-error-text);
}
.source-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-faint);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.source-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-heading);
  font-weight: 700;
}
.source-header input {
  width: auto !important;
}
.source-title {
  font-size: 14px;
  line-height: 1.2;
}
.source-fields {
  margin-left: 22px;
}
.staging-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-faint);
}
.staging-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-heading);
}
.staging-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--op-error-border);
  background: var(--op-error-bg);
  color: var(--op-error-text);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.staging-badge.ready {
  border-color: var(--op-success-border);
  background: var(--op-success-bg);
  color: var(--op-success-text);
}
.staging-meta {
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.path-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.path-browse-btn {
  min-width: 34px;
  padding: 6px 8px;
  line-height: 1;
  font-size: 15px;
}
.source-status-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.source-status-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.source-status-field {
  margin: 0;
}
.source-card.disabled {
  opacity: 0.62;
}
.source-card.disabled .source-fields {
  pointer-events: none;
}
.theme-registry-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}
.theme-registry-table td {
  vertical-align: top;
}
.theme-registry-table th:first-child,
.theme-registry-table td:first-child {
  width: 22%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-registry-table th:nth-child(2),
.theme-registry-table td:nth-child(2) {
  width: 68%;
}
.theme-registry-table th:last-child,
.theme-registry-table td:last-child {
  width: 10%;
}
.theme-registry-keywords-input {
  width: 100%;
  min-width: 0;
  resize: vertical;
  min-height: 48px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { color: var(--text-heading); font-weight: 600; font-size: 13px; }
.form-grid .full-span { grid-column: 1 / -1; }
.parallel-generation-settings {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 10px;
  padding: 10px;
}
.parallel-generation-settings .checkbox-line {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
}
.parallel-workers-input {
  flex: 0 0 74px;
  max-width: 74px;
  min-width: 74px;
}
.parallel-workers-input:disabled {
  background: var(--surface-muted);
  border-color: var(--border-soft);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}
.parallel-workers-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.generation-limits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.generation-limits-grid label { min-width: 0; }
.settings-linked-group {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--surface-faint);
}
.settings-linked-group .full-span {
  grid-column: 1 / -1;
}
.settings-inline-toggle-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-inline-toggle-field .checkbox-line {
  margin: 0;
  white-space: nowrap;
}
.settings-inline-toggle-field input[type="text"] {
  flex: 1 1 auto;
  min-width: 180px;
}
.settings-linked-group.disabled {
  opacity: 0.62;
}
.settings-linked-group.disabled input,
.settings-linked-group.disabled select,
.settings-linked-group.disabled textarea,
.settings-linked-group.disabled button {
  cursor: not-allowed;
}
.form-grid-spacer {
  min-height: 0;
}
.section-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-faint);
  padding: 10px;
  overflow-x: auto;
}
.section-table-scroll {
  max-height: 258px;
  overflow-y: auto;
  overflow-x: auto;
}
.section-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.section-table-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
}
.section-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.section-table th,
.section-table td {
  border-bottom: 1px solid var(--border-soft);
  padding: 6px;
  vertical-align: middle;
  font-size: 12px;
  overflow: hidden;
}
.section-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-faint);
}
.section-table th:last-child,
.section-table td:last-child {
  width: 25px;
  min-width: 25px;
  max-width: 25px;
  white-space: nowrap;
}
.section-table th:nth-child(1),
.section-table td:nth-child(1) {
  width: 25%;
}
.section-table th:nth-child(2),
.section-table td:nth-child(2) {
  width: 15%;
}
.section-table th:nth-child(3),
.section-table td:nth-child(3) {
  width: 20%;
}
.section-table th:nth-child(4),
.section-table td:nth-child(4) {
  width: 30%;
}
.section-table input[type=\"text\"] {
  width: 100%;
  min-width: 0;
}
.section-table input[data-role=\"etsy-section-id\"] {
  width: 10ch;
  min-width: 10ch;
  max-width: 10ch;
}
.section-preview-url {
  color: var(--muted);
  font-family: var(--mono-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);
  font-size: 11px;
  white-space: normal;
  word-break: break-all;
}
.section-description-preview {
  display: block;
  width: 100%;
  min-width: 136px;
  min-height: 34px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}
.section-description-preview.is-empty {
  color: var(--muted);
}
.section-actions-cell {
  text-align: right;
  white-space: nowrap;
}
.checkbox-line {
  grid-column: 1 / -1; display: flex !important; gap: 8px; align-items: center;
  border: 1px solid var(--input-border); background: var(--input-bg); border-radius: 10px; padding: 10px;
}
.checkbox-line input { width: auto !important; }
.checkbox-line.export-target-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 132px;
  column-gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.checkbox-line.export-target-row.export-sub-option {
  grid-template-columns: auto minmax(0, 1fr) 132px;
}
@media (max-width: 640px) {
  .checkbox-line.export-target-row,
  .checkbox-line.export-target-row.export-sub-option {
    grid-template-columns: auto 1fr;
    row-gap: 2px;
  }
  .checkbox-line.export-target-row .export-target-meta {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }
  .export-target-help {
    margin-left: 26px;
  }
}
.export-option-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 10px;
  padding: 6px 10px;
}
.export-option-group .checkbox-line {
  border-color: transparent;
  background: transparent;
  padding: 4px 0;
}
.checkbox-line.export-sub-option {
  margin-left: 28px;
  border-color: transparent;
  background: transparent;
  padding: 4px 10px;
}
.export-option-group .checkbox-line.export-sub-option {
  padding: 4px 0;
}
.checkbox-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.checkbox-chip {
  display: flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
}
.checkbox-chip input { width: auto !important; }
.settings-defaults-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.settings-compact-field {
  align-items: center;
}
.settings-compact-field .compact-input-title {
  width: 96px;
  min-width: 96px;
}
.settings-compact-field input {
  text-align: right;
}
#setEtsyDefaultPrice,
#setEtsyDefaultQuantity {
  text-align: right;
}
#fieldPrice,
#fieldQuantity {
  text-align: right;
}
.settings-compact-check {
  min-height: 42px;
}
.app-footer {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-footer);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 18px;
}
.footer-col {
  min-width: 0;
}
.footer-brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-link {
  display: block;
  color: var(--link);
  text-decoration: none;
  margin-bottom: 6px;
}
.footer-link:hover {
  color: var(--link-hover);
}
.footer-link-button {
  width: auto;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  padding: 0;
  cursor: pointer;
}
.footer-muted {
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-copy {
  grid-column: 1 / -1;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  font-size: 12px;
  text-align: center;
}
.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(460px, calc(100vw - 24px));
}
.cookie-consent-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.cookie-consent-title {
  color: var(--text-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.cookie-consent-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-consent-details {
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}
.cookie-consent-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  color: var(--muted);
}
.cookie-consent-option strong {
  color: var(--text-heading);
}
.cookie-consent-option.disabled {
  opacity: 0.78;
}
.cookie-consent-details-actions {
  display: flex;
  justify-content: flex-end;
}
.auth-modal-card {
  width: min(760px, 95vw);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
}
.auth-entry-shell {
  display: contents;
}
.auth-entry-visual {
  display: none;
}
.auth-brand-row {
  display: none;
}
.auth-switch-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-switch-line .auth-tab {
  flex: 0 0 auto;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch-line .auth-tab:hover {
  color: var(--auth-link-hover);
}
.auth-google-fallback {
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-google-mark {
  flex: 0 0 18px;
}
body.public-auth-entry {
  overflow: hidden;
}
html.public-auth-pending body {
  background: #f3f6fb;
}
html.public-auth-pending .app-shell {
  visibility: hidden;
}
html.public-auth-pending #authModal.hidden {
  display: grid !important;
}
body.public-auth-entry #authModal {
  padding: 24px;
  background: #f3f6fb;
}
body.public-auth-entry #authModal .modal-backdrop {
  display: none;
}
body.public-auth-entry .auth-entry-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(390px, 0.84fr) minmax(430px, 1.16fr);
  overflow: hidden;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 76px rgba(18, 41, 72, 0.16);
}
body.public-auth-entry .auth-modal-card {
  width: auto;
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
body.public-auth-entry .auth-modal-card .modal-header {
  align-items: flex-start;
	padding: 22px 30px 10px;
  border-bottom: 0;
}
body.public-auth-entry .auth-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
	margin-bottom: 24px;
  color: #122947;
  font-size: 18px;
  font-weight: 750;
}
.auth-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2f6df6;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.auth-brand-icon { display: block; object-fit: cover; padding: 0; }
body.public-auth-entry .auth-modal-card .modal-title {
  color: #102744;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 720;
}
body.public-auth-entry .auth-modal-card .modal-sub {
  margin-top: 8px;
  color: #5e718b;
  font-size: 14px;
}
body.public-auth-entry .auth-modal-card .modal-body {
	padding: 0 30px 20px;
}
body.public-auth-entry .auth-form {
	gap: 8px;
}
body.public-auth-entry .auth-hero-sub {
  font-size: 13px;
}
body.public-auth-entry .auth-provider-stack {
  margin-top: 4px;
}
body.public-auth-entry .auth-entry-visual {
  min-width: 0;
	display: block;
	padding: 0;
  overflow: hidden;
	background: #dcecff;
}
.auth-entry-visual-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.auth-modal-card .modal-body {
  overflow: auto;
}
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border) 66%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--panel) 88%), color-mix(in srgb, var(--surface-faint) 78%, var(--panel) 22%));
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.verify-banner.hidden {
  display: none;
}
.verify-banner-copy {
  display: grid;
  gap: 4px;
}
.verify-banner-title {
  color: var(--text-heading);
  font-weight: 700;
}
.verify-banner-sub {
  color: var(--muted);
  font-size: 13px;
}
.verify-banner-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.auth-hero-block {
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
}
.auth-kicker {
  display: none;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 74%, var(--text) 26%);
  background: color-mix(in srgb, var(--primary) 11%, var(--panel) 89%);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border) 76%);
}
.auth-hero-title {
  display: none;
}
.auth-hero-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.auth-provider-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.auth-google-shell {
  min-height: 42px;
}
.auth-google-gis {
  display: flex;
  justify-content: center;
}
.auth-google-fallback.hidden {
  display: none;
}
.auth-provider-meta {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.auth-legal-lite {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.auth-legal-link {
  color: var(--text-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.auth-legal-link:hover {
  color: var(--primary);
}
.auth-divider {
  position: relative;
  text-align: center;
}
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border-soft);
}
.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface-6);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.auth-tabs.auth-switch-line {
  display: flex;
  grid-template-columns: none;
  margin-bottom: 0;
}
.auth-tab {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--auth-tab-bg);
  color: var(--text);
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 700;
}
.auth-tab.active {
  background: var(--auth-tab-bg-active);
  border-color: var(--auth-tab-border-active);
}
.auth-form {
  display: grid;
  gap: 10px;
}
.auth-form.hidden { display: none; }
.auth-form-signup {
  grid-template-columns: 1fr;
  gap: 10px;
}
.auth-signup-main {
  display: grid;
  gap: 10px;
}
.auth-signup-footer {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.auth-turnstile {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-turnstile.hidden {
  display: none;
}
.auth-email-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: -2px;
}
.auth-consent-list {
  display: grid;
  gap: 8px;
  padding: 2px 0;
}
.auth-consent-row {
  display: flex;
  align-items: flex-start;
  padding: 0;
  cursor: pointer;
}
.auth-consent-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-consent-copy input {
  width: 15px !important;
  height: 15px;
  min-width: 15px;
  flex: 0 0 15px;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}
.auth-consent-copy input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 36%, transparent);
  outline-offset: 2px;
}
.auth-consent-text {
  display: grid;
  gap: 3px;
}
.auth-consent-title {
  color: var(--text-heading);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.auth-consent-optional {
  color: var(--muted);
  font-weight: 400;
}
.auth-signup-cta[disabled],
#authSignUpSubmitBtn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}
.verify-email-modal-card {
  width: min(540px, 94vw);
}
.password-reset-modal-card {
  width: min(540px, 94vw);
}
.password-reset-modal-body {
  display: grid;
  gap: 12px;
}
.password-reset-panel {
  display: grid;
  gap: 10px;
}
.password-reset-panel.hidden {
  display: none;
}
.password-reset-summary-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-faint);
  padding: 12px;
  display: grid;
  gap: 4px;
}
.password-reset-summary-label {
  color: var(--muted);
  font-size: 12px;
}
.password-reset-summary-value {
  color: var(--text-heading);
  font-weight: 700;
  word-break: break-word;
}
.password-reset-summary-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.password-reset-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.verify-email-modal-body {
  display: grid;
  gap: 12px;
}
.verify-email-summary-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-faint);
  padding: 12px;
  display: grid;
  gap: 4px;
}
.verify-email-summary-label {
  color: var(--muted);
  font-size: 12px;
}
.verify-email-summary-value {
  color: var(--text-heading);
  font-weight: 700;
  word-break: break-word;
}
.verify-email-summary-meta,
.verify-email-change-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.verify-email-actions,
.verify-email-change-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.verify-email-change-fields {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.verify-email-change-fields.hidden {
  display: none;
}
.modal-inline-status-close {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  width: 22px;
  height: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: auto;
}
.modal-inline-status-close:hover {
  background: var(--control-hover);
}
.examples-errors-modal-card {
  width: min(980px, 96vw);
}
.item-debug-modal-card {
  width: min(1200px, 98vw);
}
.item-debug-modal-body {
  display: grid;
  gap: 10px;
  max-height: 74vh;
  overflow: auto;
}
.item-debug-modal-body textarea {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  min-height: 72px;
  white-space: pre;
}
.helper-command-modal-card {
  width: min(760px, 94vw);
}
.helper-command-modal-card textarea {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}
.examples-errors-table {
  table-layout: fixed;
  width: 100%;
}
.examples-errors-table th:nth-child(1) {
  width: 62%;
}
.examples-errors-table th:nth-child(2) {
  width: 38%;
}
.examples-errors-table td {
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: top;
  overflow: hidden;
}
.examples-errors-table .examples-error-path-cell,
.examples-errors-table .examples-error-message-cell {
  width: auto;
}
.examples-errors-table .examples-error-path-content,
.examples-errors-table .examples-error-message-content {
  display: block;
  white-space: normal !important;
}
.examples-errors-table .examples-error-path-content {
  overflow-wrap: normal;
  word-break: normal;
}
.auth-input-wrap {
  position: relative;
}
.auth-input-wrap input {
  padding-right: 44px;
}
.auth-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--auth-eye);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.auth-eye-btn:hover {
  color: var(--auth-eye-hover);
}
.auth-eye-icon-img {
  width: 18px;
  height: 18px;
  display: block;
}
.auth-link {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--auth-link);
  text-decoration: none;
  font-size: 12px;
  margin-top: -2px;
  cursor: pointer;
}
.auth-link:hover {
  color: var(--auth-link-hover);
}
.auth-password-hint {
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
@media (max-width: 1180px) {
  .workspace-row { grid-template-columns: 1fr; }
  .workspace-upload-drop {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .workspace-upload-drop .upload-action {
    justify-items: center;
    white-space: normal;
  }
  .guest-hero { grid-template-columns: 1fr; }
  .guest-hero-side {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .guest-overview-row { grid-template-columns: 1fr; }
  .guest-flow-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guest-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-result-grid { grid-template-columns: 1fr; }
  .guest-result-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-demo-grid { grid-template-columns: 1fr; }
  .guest-story-grid { grid-template-columns: 1fr; }
  .pricing-plans,
  .guest-pricing-grid { grid-template-columns: 1fr; }
  .guest-pricing-flat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-section-free,
  .pricing-section-subscription,
  .pricing-section-credit-topup { grid-column: 1; }
  .account-section[data-account-section="billing"] .pricing-plans { grid-template-columns: 1fr; }
  .account-section[data-account-section="billing"] .pricing-section-subscription,
  .account-section[data-account-section="billing"] .pricing-section-credit-topup,
  .account-section[data-account-section="billing"] .pricing-plans.has-free-plan .pricing-section-subscription,
  .account-section[data-account-section="billing"] .pricing-plans.has-free-plan .pricing-section-credit-topup {
    grid-column: 1;
    grid-row: auto;
  }
  .pricing-account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-account-summary .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .main-header { flex-direction: column; }
  .header-actions { align-items: flex-start; }
  .header-actions-buttons { justify-content: flex-start; }
  .selection-action-bar { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .top-shell { flex-direction: column; align-items: stretch; }
  .top-shell-right { justify-content: flex-start; }
  .upload-chip { width: 100%; }
  .top-meta { width: 100%; justify-content: flex-start; }
  .app-footer { grid-template-columns: 1fr; }
  .batch-sticky { position: static; }
  .toolbar-main { flex-direction: column; align-items: stretch; }
  .toolbar-right-actions { align-items: flex-start; margin-left: 0; }
  .toolbar-meta { flex-direction: column; align-items: flex-start; }
  .quick-chips-context { justify-content: flex-start; }
  .quick-chips-selection { justify-content: flex-start; }
  .verify-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-account-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-balance-field {
    grid-column: 1 / -1;
  }
  .profile-avatar-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .profile-avatar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 860px) {
  .account-modal-body { grid-template-columns: 1fr; }
  .account-nav {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .account-nav-btn { width: auto; white-space: nowrap; }
  .account-nav-btn.active { box-shadow: inset 0 -2px 0 var(--primary); }
  .account-nav-logout {
    position: sticky;
    right: 0;
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: auto;
    padding: 9px 10px;
    border-top: 0;
    border-left: 1px solid var(--border-soft);
    background: var(--surface-faint);
    white-space: nowrap;
  }
  .pricing-account-summary {
    grid-template-columns: 1fr;
  }
  .pricing-account-summary .btn {
    grid-column: 1;
  }
  body.public-auth-entry #authModal {
    padding: 12px;
  }
  body.public-auth-entry .auth-entry-shell {
    display: block;
    max-width: 560px;
    max-height: calc(100vh - 24px);
  }
  body.public-auth-entry .auth-modal-card {
    max-height: calc(100vh - 24px);
  }
  body.public-auth-entry .auth-entry-visual {
    display: none;
  }
  body.public-auth-entry .auth-modal-card .modal-header {
    padding: 22px 22px 12px;
  }
  body.public-auth-entry .auth-modal-card .modal-body {
    padding: 0 22px 24px;
  }
  body.public-auth-entry .auth-brand-row {
    margin-bottom: 24px;
  }
  body.public-auth-entry .auth-modal-card .modal-title {
    font-size: 27px;
  }
  .auth-modal-card {
    width: min(620px, 95vw);
  }
  .auth-form-signup {
    grid-template-columns: 1fr;
  }
  .guest-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .guest-hero-gallery { grid-template-columns: 1fr; }
  .guest-video-card { grid-template-columns: 1fr; }
  .guest-flow-strip { grid-template-columns: 1fr; }
  .guest-flow-grid { grid-template-columns: 1fr; }
  .guest-result-grid-compact { grid-template-columns: 1fr; }
  .guest-pricing-flat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-hero-shot .guest-media-image,
  .guest-demo-media-panel .guest-media-image { height: 220px; }
  .guest-mini-shot .guest-media-image,
  .guest-video-card .guest-media-image { height: 122px; }
  .guest-flow-card .guest-media-image,
  .guest-card .guest-media-image { height: 128px; }
  .guest-prompt-card .guest-media-image { height: 168px; }
  .verify-email-actions,
  .verify-email-change-actions,
  .password-reset-actions,
  .verify-banner-actions {
    width: 100%;
  }
  .verify-email-actions .btn,
  .verify-email-change-actions .btn,
  .password-reset-actions .btn,
  .verify-banner-actions .btn {
    width: 100%;
  }
  .editor-nav { display: none; }
  .editor-drawer-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title close"
      "meta meta"
      "pos pos";
    row-gap: 4px;
  }
  .editor-drawer-left { grid-area: title; }
  .editor-drawer-center {
    grid-area: meta;
    text-align: left;
  }
  .editor-drawer-right {
    grid-area: pos;
    justify-self: start;
    text-align: left;
  }
  #closeDrawerBtn { grid-area: close; }
  .editor-top-grid { grid-template-columns: 1fr; }
  .editor-inline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-defaults-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-left { width: 100%; }
  .table-wrap { max-height: none; }
  .items-table thead { display: none; }
  .items-table, .items-table tbody, .items-table tr, .items-table td { display: block; width: 100%; }
  .items-table tr { border-bottom: 1px solid var(--border); padding: 8px; }
  .items-table td { border: 0; padding: 6px 0; }
  .table-actions { margin-top: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .parallel-generation-settings {
    flex-wrap: wrap;
  }
  .parallel-generation-settings .checkbox-line {
    flex-basis: 100%;
  }
  .generation-limits-grid { grid-template-columns: 1fr; }
  .settings-linked-group { grid-template-columns: 1fr; }
  .settings-inline-toggle-field {
    flex-direction: column;
    align-items: stretch;
  }
  .settings-inline-toggle-field .checkbox-line {
    white-space: normal;
  }
  .form-grid-spacer { display: none; }
  .checkbox-pair { grid-template-columns: 1fr; }
  .settings-modal-card { height: min(88vh, 920px); }
  .settings-shell { grid-template-columns: 1fr; }
  .settings-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-rail-group-title { grid-column: 1 / -1; }
  .theme-registry-toolbar {
    grid-template-columns: 1fr;
  }
  .admin-modal-card {
    width: min(1000px, 98vw);
    height: min(92vh, 980px);
  }
  .theme-registry-keywords-input {
    min-width: 0;
  }
  .admin-provider-mode-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .admin-retention-top-row {
    grid-template-columns: 1fr;
  }
  .admin-runtime-cards {
    grid-template-columns: 1fr;
  }
  .admin-system-summary-grid {
    grid-template-columns: 1fr;
  }
  .admin-provider-models-footer {
    justify-content: flex-end;
  }
}
@media (max-width: 720px) {
  .account-content { padding: 14px; }
  .account-info-grid, .profile-account-row { grid-template-columns: 1fr; }
  .account-modal-card .modal-footer { align-items: stretch; flex-direction: column; }
  .account-footer-actions { justify-content: flex-end; }
  body.public-auth-entry.cookie-consent-visible #authModal {
    align-items: flex-start;
    padding-bottom: calc(var(--cookie-consent-height, 0px) + 24px);
  }
  body.public-auth-entry.cookie-consent-visible .auth-entry-shell,
  body.public-auth-entry.cookie-consent-visible .auth-modal-card {
    max-height: calc(100vh - var(--cookie-consent-height, 0px) - 36px);
  }
}
@media (max-width: 560px) {
  .guest-pricing-flat-row { grid-template-columns: 1fr; }
  .guest-hero { padding: 14px; }
  .guest-title { font-size: 27px; }
  .guest-cta-row .btn {
    width: 100%;
  }
  .guest-carousel-controls {
    grid-template-columns: 1fr;
  }
  .guest-media-placeholder {
    padding: 7px;
  }
  .guest-hero-shot .guest-media-image,
  .guest-demo-media-panel .guest-media-image,
  .guest-mini-shot .guest-media-image,
  .guest-video-card .guest-media-image,
  .guest-flow-card .guest-media-image,
  .guest-card .guest-media-image { height: 118px; }
  .guest-prompt-card .guest-media-image { height: 150px; }
  .guest-proof-mini {
    flex-direction: column;
    align-items: flex-start;
  }
  .guest-pricing,
  .guest-flow-section,
  .guest-result,
  .guest-proof,
  .guest-demo,
  .guest-faq,
  .guest-final-cta {
    padding: 12px;
  }
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .cookie-consent-actions .btn {
    width: 100%;
  }
  .editor-inline-grid { grid-template-columns: 1fr; }
  .editor-meta-grid { grid-template-columns: 1fr; }
  .editor-compact-grid { grid-template-columns: 1fr; }
  .settings-defaults-inline { grid-template-columns: 1fr; }
  .profile-account-row { grid-template-columns: 1fr; }
  .profile-balance-field { grid-column: auto; }
  .profile-avatar-row { grid-template-columns: 1fr; }
  .profile-avatar-preview-wrap {
    width: 76px;
    height: 76px;
  }
}
