/*
 * 槿榕 AI · First studio workspace
 *
 * A deliberately quiet workspace skin.  The generation, wallet and history
 * DOM remains unchanged; this file only restores the compact first-version
 * composition and gives it a dependable light/dark surface system.
 */

body.jr-authenticated {
  --simple-bg: #eef1f5;
  --simple-bg-2: #f7f9fb;
  --simple-surface: rgba(255, 255, 255, .90);
  --simple-surface-strong: rgba(255, 255, 255, .97);
  --simple-surface-soft: rgba(247, 249, 252, .88);
  --simple-line: rgba(26, 40, 63, .10);
  --simple-line-strong: rgba(26, 40, 63, .16);
  --simple-text: #172033;
  --simple-muted: #768095;
  --simple-faint: #a0a9b8;
  --simple-brand: #4764c8;
  --simple-brand-strong: #3955b4;
  --simple-brand-soft: rgba(71, 100, 200, .10);
  --simple-positive: #198966;
  --simple-shadow: 0 14px 38px rgba(41, 55, 78, .09), 0 2px 7px rgba(41, 55, 78, .05);
  --simple-shadow-soft: 0 7px 20px rgba(41, 55, 78, .06);
  --simple-highlight: inset 0 1px 0 rgba(255, 255, 255, .80);
}

:root[data-theme="dark"] body.jr-authenticated {
  --simple-bg: #11151d;
  --simple-bg-2: #171c26;
  --simple-surface: rgba(28, 34, 45, .90);
  --simple-surface-strong: rgba(31, 38, 50, .97);
  --simple-surface-soft: rgba(24, 30, 40, .88);
  --simple-line: rgba(223, 232, 250, .11);
  --simple-line-strong: rgba(223, 232, 250, .18);
  --simple-text: #eef2fb;
  --simple-muted: #a2acbe;
  --simple-faint: #778298;
  --simple-brand: #8fa9ff;
  --simple-brand-strong: #9cb4ff;
  --simple-brand-soft: rgba(143, 169, 255, .13);
  --simple-positive: #6bd0ae;
  --simple-shadow: 0 20px 46px rgba(0, 0, 0, .25), 0 2px 8px rgba(0, 0, 0, .16);
  --simple-shadow-soft: 0 9px 22px rgba(0, 0, 0, .18);
  --simple-highlight: inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* The first-version board is a calm app surface, not a cinematic landing
   page.  Keep the old ambient layer in the DOM for compatibility, but make it
   a quiet background so it never competes with the composer. */
body.jr-authenticated,
body.jr-authenticated #app,
body.jr-authenticated #app.show {
  background: var(--simple-bg) !important;
  color: var(--simple-text) !important;
}

body.jr-authenticated::before,
body.jr-authenticated .tech-bg,
body.jr-authenticated .tech-orb,
body.jr-authenticated .workspace-stage-primary,
body.jr-authenticated .workspace-stage-progress,
body.jr-authenticated .workspace-stage-toolbar,
body.jr-authenticated .workspace-stage-media,
body.jr-authenticated .workspace-stage-empty,
body.jr-authenticated .workspace-stage-surface,
body.jr-authenticated .workspace-stage-backdrop {
  display: none !important;
}

body.jr-authenticated #app,
body.jr-authenticated #app.show {
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.jr-authenticated header {
  position: relative !important;
  z-index: 40 !important;
  display: flex !important;
  width: min(calc(100% - 28px), 1760px) !important;
  height: 68px !important;
  min-height: 68px !important;
  margin: 14px auto 12px !important;
  padding: 0 16px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 22px !important;
  background: var(--simple-surface) !important;
  box-shadow: var(--simple-shadow), var(--simple-highlight) !important;
  backdrop-filter: blur(22px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
}

body.jr-authenticated .logo-wrap { gap: 10px !important; }
body.jr-authenticated .logo-img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(40, 56, 78, .10) !important;
}
body.jr-authenticated .logo-main { color: var(--simple-text) !important; font-size: 17px !important; font-weight: 760 !important; }
body.jr-authenticated .logo-sub { color: var(--simple-faint) !important; font-size: 9px !important; letter-spacing: .12em !important; }
body.jr-authenticated .hd-right { gap: 8px !important; }

body.jr-authenticated .hd-right > .badge,
body.jr-authenticated .hd-right > .lang-toggle,
body.jr-authenticated .hd-right > .jr-theme-toggle,
body.jr-authenticated .model-switch-button {
  min-height: 40px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 999px !important;
  background: var(--simple-surface-strong) !important;
  color: var(--simple-muted) !important;
  box-shadow: var(--simple-highlight) !important;
}

body.jr-authenticated .hd-right > .badge,
body.jr-authenticated .hd-right > .lang-toggle,
body.jr-authenticated .hd-right > .jr-theme-toggle {
  min-width: 42px !important;
  padding: 8px 12px !important;
}

body.jr-authenticated .hd-right > .badge:hover,
body.jr-authenticated .hd-right > .lang-toggle:hover,
body.jr-authenticated .hd-right > .jr-theme-toggle:hover,
body.jr-authenticated .model-switch-button:hover {
  border-color: rgba(71, 100, 200, .24) !important;
  color: var(--simple-text) !important;
  background: var(--simple-brand-soft) !important;
}

body.jr-authenticated .jr-theme-toggle svg { width: 19px !important; height: 19px !important; }
body.jr-authenticated #acct-badge {
  order: 1 !important;
  min-width: 174px !important;
  padding-inline: 14px !important;
  color: var(--simple-text) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
  text-align: left !important;
}
body.jr-authenticated #acct-badge::before { color: var(--simple-positive) !important; }
body.jr-authenticated #lang-toggle { order: 2 !important; }
body.jr-authenticated header .jr-theme-toggle { order: 3 !important; }
body.jr-authenticated .workspace-model-segmented { order: 4 !important; }
body.jr-authenticated #model-switcher { order: 5 !important; }

body.jr-authenticated .workspace-model-segmented {
  min-height: 40px !important;
  padding: 3px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 999px !important;
  background: var(--simple-surface-soft) !important;
}
body.jr-authenticated .workspace-model-segmented button {
  min-height: 32px !important;
  padding: 6px 13px !important;
  border-radius: 999px !important;
  color: var(--simple-muted) !important;
  font-size: 11px !important;
}
body.jr-authenticated .workspace-model-segmented button.active {
  background: var(--simple-brand-soft) !important;
  color: var(--simple-brand-strong) !important;
  box-shadow: inset 0 0 0 1px rgba(71, 100, 200, .16) !important;
}

/* Three-column first version: rail / creator + tasks / inspector. */
body.jr-authenticated .layout.jr-workspace {
  display: grid !important;
  width: min(calc(100% - 28px), 1760px) !important;
  height: calc(100dvh - 110px) !important;
  min-height: 520px !important;
  margin: 0 auto 14px !important;
  grid-template-columns: 74px minmax(0, 1fr) minmax(300px, 338px) !important;
  gap: 12px !important;
  overflow: visible !important;
}

body.jr-authenticated .workspace-rail,
body.jr-authenticated .workspace-main > .panel-left,
body.jr-authenticated .workspace-main > .panel-right,
body.jr-authenticated .workspace-inspector {
  min-width: 0 !important;
  min-height: 0 !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 22px !important;
  background: var(--simple-surface) !important;
  box-shadow: var(--simple-shadow-soft), var(--simple-highlight) !important;
  backdrop-filter: blur(16px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.05) !important;
}

body.jr-authenticated .workspace-rail {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 8px !important;
  overflow: hidden !important;
}
body.jr-authenticated .workspace-rail-spacer { flex: 1 1 auto !important; }
body.jr-authenticated .workspace-rail-button {
  width: 56px !important;
  min-height: 68px !important;
  padding: 8px 4px !important;
  border-radius: 16px !important;
  color: var(--simple-muted) !important;
}
body.jr-authenticated .workspace-rail-button strong {
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 10px !important;
  color: inherit !important;
  font-size: 15px !important;
  line-height: 30px !important;
}
body.jr-authenticated .workspace-rail-button span { margin-top: 5px !important; font-size: 11px !important; }
body.jr-authenticated .workspace-rail-button:hover { background: var(--simple-brand-soft) !important; color: var(--simple-text) !important; }
body.jr-authenticated .workspace-rail-button.active {
  background: var(--simple-brand-soft) !important;
  color: var(--simple-brand-strong) !important;
  box-shadow: inset 0 0 0 1px rgba(71, 100, 200, .14) !important;
}

body.jr-authenticated .workspace-main {
  display: grid !important;
  grid-template-rows: clamp(320px, 49vh, 420px) minmax(220px, 1fr) !important;
  gap: 12px !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
body.jr-authenticated .workspace-main > .panel-left { grid-row: 1 !important; }
body.jr-authenticated .workspace-main > .panel-right { grid-row: 2 !important; }
body.jr-authenticated .workspace-main > .panel-left::before { display: none !important; }

/* Composer */
body.jr-authenticated .workspace-main > .panel-left {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
body.jr-authenticated .workspace-main > .panel-left .panel-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 58px !important;
  padding: 14px 20px 10px !important;
  border-bottom: 1px solid var(--simple-line) !important;
  background: transparent !important;
}
body.jr-authenticated .workspace-main > .panel-left .panel-title span {
  color: var(--simple-text) !important;
  font-size: 18px !important;
  font-weight: 760 !important;
}
body.jr-authenticated .workspace-main > .panel-left .panel-title small {
  padding: 7px 12px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 999px !important;
  background: var(--simple-surface-strong) !important;
  color: var(--simple-muted) !important;
  font-size: 10px !important;
}
body.jr-authenticated .workspace-main > .panel-left .form-body {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 14px 20px 22px !important;
  overflow-y: auto !important;
}
body.jr-authenticated .workspace-main .creator-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3px !important;
  margin-bottom: 14px !important;
  padding: 3px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 16px !important;
  background: var(--simple-surface-soft) !important;
}
body.jr-authenticated .workspace-main .creator-tab {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: var(--simple-muted) !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}
body.jr-authenticated .workspace-main .creator-tab.active {
  background: var(--simple-surface-strong) !important;
  color: var(--simple-brand-strong) !important;
  box-shadow: var(--simple-shadow-soft) !important;
}
body.jr-authenticated .workspace-main .field { margin-bottom: 15px !important; }
body.jr-authenticated .workspace-main .field > label,
body.jr-authenticated .workspace-main .prompt-label-row label {
  color: var(--simple-text) !important;
  font-size: 12px !important;
  font-weight: 710 !important;
}
body.jr-authenticated .workspace-main .prompt-label-row { margin-bottom: 8px !important; }
body.jr-authenticated .workspace-main .prompt-count { color: var(--simple-faint) !important; font-size: 11px !important; }
body.jr-authenticated .workspace-main textarea.prompt-box {
  min-height: 134px !important;
  max-height: 180px !important;
  padding: 14px 15px 34px !important;
  border: 1px solid var(--simple-line-strong) !important;
  border-radius: 16px !important;
  background: var(--simple-surface-strong) !important;
  color: var(--simple-text) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  box-shadow: inset 0 1px 2px rgba(15, 25, 45, .03) !important;
}
body.jr-authenticated .workspace-main textarea.prompt-box::placeholder { color: var(--simple-faint) !important; }
body.jr-authenticated .workspace-main textarea.prompt-box:focus {
  border-color: rgba(71, 100, 200, .42) !important;
  box-shadow: 0 0 0 4px rgba(71, 100, 200, .10) !important;
}
body.jr-authenticated .workspace-main .prompt-draft { color: var(--simple-muted) !important; }
body.jr-authenticated .workspace-main .prompt-draft .saved-dot { background: var(--simple-positive) !important; }
body.jr-authenticated .workspace-main .prompt-examples,
body.jr-authenticated .workspace-main .prompt-controls { gap: 7px !important; margin-top: 9px !important; }
body.jr-authenticated .workspace-main .prompt-examples {
  display: flex !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
body.jr-authenticated .workspace-main .prompt-examples::-webkit-scrollbar { display: none !important; }
body.jr-authenticated .workspace-main .quick-chip {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 999px !important;
  background: var(--simple-surface-strong) !important;
  color: var(--simple-muted) !important;
  font-size: 11px !important;
}
body.jr-authenticated .workspace-main .quick-chip:hover,
body.jr-authenticated .workspace-main .quick-chip.active {
  border-color: rgba(71, 100, 200, .25) !important;
  background: var(--simple-brand-soft) !important;
  color: var(--simple-brand-strong) !important;
}
body.jr-authenticated .workspace-main .material-section { margin-bottom: 14px !important; }
body.jr-authenticated .workspace-main .material-head { color: var(--simple-muted) !important; }
body.jr-authenticated .workspace-main .upload-card {
  min-height: 100px !important;
  border-color: var(--simple-line) !important;
  border-radius: 14px !important;
  background: var(--simple-surface-soft) !important;
}
body.jr-authenticated .workspace-main .workspace-prompt-actions,
body.jr-authenticated .workspace-main .workspace-prompt-summary {
  margin-top: 12px !important;
}
body.jr-authenticated .workspace-main .workspace-prompt-actions {
  display: block !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.jr-authenticated .workspace-main .workspace-prompt-summary {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  color: var(--simple-muted) !important;
}
body.jr-authenticated .workspace-main .workspace-prompt-summary span {
  padding: 5px 9px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 999px !important;
  background: var(--simple-surface-soft) !important;
  font-size: 10px !important;
}

/* Recent generations */
body.jr-authenticated .workspace-main > .panel-right {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: var(--simple-surface) !important;
}
body.jr-authenticated .workspace-main > .panel-right::before,
body.jr-authenticated .workspace-main > .panel-right::after { display: none !important; }
body.jr-authenticated .result-head {
  display: flex !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--simple-line) !important;
  background: transparent !important;
}
body.jr-authenticated .result-title h2 { color: var(--simple-text) !important; font-size: 16px !important; }
body.jr-authenticated .result-tabs {
  gap: 2px !important;
  margin-left: 14px !important;
  padding: 3px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 999px !important;
  background: var(--simple-surface-soft) !important;
}
body.jr-authenticated .result-tab {
  min-height: 30px !important;
  padding: 5px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--simple-muted) !important;
  font-size: 10px !important;
}
body.jr-authenticated .result-tab.active { background: var(--simple-surface-strong) !important; color: var(--simple-text) !important; box-shadow: var(--simple-shadow-soft) !important; }
body.jr-authenticated .conc-badge { margin-left: auto !important; color: var(--simple-muted) !important; }
body.jr-authenticated .result-scroll { flex: 1 !important; padding: 18px !important; background: transparent !important; overflow-y: auto !important; }
body.jr-authenticated .idle-hint { max-width: 520px !important; color: var(--simple-muted) !important; }
body.jr-authenticated .idle-hint .ih-ico {
  width: 68px !important;
  height: 68px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 18px !important;
  background: var(--simple-surface-strong) !important;
  color: var(--simple-brand) !important;
  box-shadow: var(--simple-shadow-soft) !important;
  animation: none !important;
}
body.jr-authenticated .idle-hint h3 { color: var(--simple-text) !important; font-size: 17px !important; }
body.jr-authenticated .idle-hint p { color: var(--simple-muted) !important; line-height: 1.7 !important; }
body.jr-authenticated .idle-steps span {
  border-color: var(--simple-line) !important;
  background: var(--simple-surface-soft) !important;
  color: var(--simple-muted) !important;
}

/* Inspector */
body.jr-authenticated .workspace-inspector {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: var(--simple-surface) !important;
}
body.jr-authenticated .workspace-inspector-header {
  min-height: 68px !important;
  padding: 16px 16px 13px !important;
  border-bottom: 1px solid var(--simple-line) !important;
}
body.jr-authenticated .workspace-inspector-title b { color: var(--simple-text) !important; font-size: 16px !important; }
body.jr-authenticated .workspace-inspector-title span { color: var(--simple-muted) !important; font-size: 10px !important; }
body.jr-authenticated .workspace-inspector-scroll { padding: 12px 13px !important; overflow-y: auto !important; }
body.jr-authenticated .workspace-inspector .section-divider {
  justify-content: flex-start !important;
  margin: 2px 2px 10px !important;
  color: var(--simple-muted) !important;
  font-size: 11px !important;
}
body.jr-authenticated .workspace-inspector .section-divider::before,
body.jr-authenticated .workspace-inspector .section-divider::after { display: none !important; }
body.jr-authenticated .workspace-inspector .settings-block {
  margin: 0 0 10px !important;
  padding: 12px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 16px !important;
  background: var(--simple-surface-soft) !important;
  box-shadow: none !important;
}
body.jr-authenticated .workspace-inspector .settings-title,
body.jr-authenticated .workspace-inspector .workspace-inspector-creative-field > label { color: var(--simple-muted) !important; font-size: 11px !important; }
body.jr-authenticated .workspace-inspector .choice-row { gap: 6px !important; }
body.jr-authenticated .workspace-inspector .choice-btn {
  min-height: 38px !important;
  padding: 7px 8px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 12px !important;
  background: var(--simple-surface-strong) !important;
  color: var(--simple-muted) !important;
  font-size: 11px !important;
}
body.jr-authenticated .workspace-inspector .choice-btn.active {
  border-color: rgba(25, 137, 102, .28) !important;
  background: rgba(25, 137, 102, .10) !important;
  color: var(--simple-positive) !important;
  box-shadow: inset 0 0 0 1px rgba(25, 137, 102, .08) !important;
}
body.jr-authenticated .workspace-inspector .advanced-toggle {
  color: var(--simple-text) !important;
  border-color: var(--simple-line) !important;
  background: var(--simple-surface-soft) !important;
}
body.jr-authenticated .inspector-actions {
  padding: 12px 13px 14px !important;
  border-top: 1px solid var(--simple-line) !important;
  background: var(--simple-surface) !important;
}
body.jr-authenticated .inspector-actions .cost-card {
  min-height: 70px !important;
  margin-bottom: 10px !important;
  border: 1px solid rgba(25, 137, 102, .20) !important;
  border-radius: 16px !important;
  background: rgba(25, 137, 102, .08) !important;
  box-shadow: none !important;
}
body.jr-authenticated .inspector-actions .cost-copy b { color: var(--simple-positive) !important; font-size: 12px !important; }
body.jr-authenticated .inspector-actions .cost-copy span { color: var(--simple-muted) !important; font-size: 10px !important; }
body.jr-authenticated .inspector-actions .cost-balance { color: var(--simple-positive) !important; font-size: 11px !important; }
body.jr-authenticated .inspector-actions .submit-btn {
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--simple-brand) !important;
  box-shadow: 0 12px 24px rgba(71, 100, 200, .22), inset 0 1px 0 rgba(255, 255, 255, .20) !important;
}
body.jr-authenticated .inspector-actions .submit-btn:hover:not(:disabled) { background: var(--simple-brand-strong) !important; }
body.jr-authenticated .inspector-actions .submit-sub { color: var(--simple-muted) !important; }

body.jr-authenticated .site-icp-footer {
  position: fixed !important;
  z-index: 12 !important;
  right: 0 !important;
  bottom: max(5px, env(safe-area-inset-bottom)) !important;
  left: 0 !important;
  color: var(--simple-faint) !important;
  font-size: 10px !important;
  text-align: center !important;
  pointer-events: none !important;
}
body.jr-authenticated .site-icp-footer a { color: inherit !important; pointer-events: auto !important; }

/* Compact mobile version: stack the creator and task list, then open the
   inspector as the existing bottom sheet. */
@media (max-width: 1100px) {
  body.jr-authenticated #app,
  body.jr-authenticated #app.show { height: auto !important; min-height: 100dvh !important; overflow: visible !important; }
  body.jr-authenticated header {
    width: calc(100% - 20px) !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 10px auto !important;
    padding: 0 10px !important;
    border-radius: 18px !important;
  }
  body.jr-authenticated .logo-img { width: 34px !important; height: 34px !important; border-radius: 10px !important; }
  body.jr-authenticated .logo-main { font-size: 14px !important; }
  body.jr-authenticated .logo-sub { display: none !important; }
  body.jr-authenticated #acct-badge { min-width: 42px !important; width: 42px !important; padding: 8px !important; overflow: hidden !important; text-indent: -999px !important; }
  body.jr-authenticated #acct-badge::after { content: "✦"; display: block; text-indent: 0; color: var(--simple-positive); }
  body.jr-authenticated .workspace-model-segmented { display: none !important; }
  body.jr-authenticated #model-switcher { display: block !important; }
  body.jr-authenticated .model-switch-button { min-height: 38px !important; padding: 7px 10px !important; font-size: 10px !important; }
  body.jr-authenticated .layout.jr-workspace {
    display: block !important;
    width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto calc(86px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
  }
  body.jr-authenticated .workspace-rail { display: none !important; }
  body.jr-authenticated .workspace-main { display: grid !important; grid-template-rows: auto auto !important; gap: 10px !important; }
  body.jr-authenticated .workspace-main > .panel-left,
  body.jr-authenticated .workspace-main > .panel-right { min-height: 0 !important; max-height: none !important; }
  body.jr-authenticated .workspace-main > .panel-left .panel-title { min-height: 52px !important; padding: 12px 14px 8px !important; }
  body.jr-authenticated .workspace-main > .panel-left .panel-title span { font-size: 16px !important; }
  body.jr-authenticated .workspace-main > .panel-left .form-body { padding: 12px 14px 16px !important; max-height: none !important; }
  body.jr-authenticated .workspace-main .creator-tabs { margin-bottom: 12px !important; }
  body.jr-authenticated .workspace-main textarea.prompt-box { min-height: 150px !important; }
  body.jr-authenticated .result-head { flex-wrap: wrap !important; min-height: 96px !important; padding: 12px 14px !important; }
  body.jr-authenticated .result-tabs { order: 3 !important; width: 100% !important; margin: 5px 0 0 !important; justify-content: space-between !important; }
  body.jr-authenticated .result-tab { flex: 1 1 auto !important; }
  body.jr-authenticated .result-scroll { min-height: 300px !important; padding: 20px 14px !important; }
  body.jr-authenticated .workspace-inspector {
    position: fixed !important;
    z-index: 2200 !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    max-height: min(82dvh, 680px) !important;
    border-radius: 24px !important;
    background: var(--simple-surface-strong) !important;
    box-shadow: var(--simple-shadow), var(--simple-highlight) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(calc(100% + 20px)) !important;
  }
  body.jr-authenticated .workspace-inspector.open { visibility: visible !important; opacity: 1 !important; transform: none !important; }
  body.jr-authenticated .mobile-parameter-trigger {
    position: fixed !important;
    z-index: 1800 !important;
    right: 16px !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 46px !important;
    padding: 10px 15px !important;
    border: 1px solid rgba(71, 100, 200, .24) !important;
    border-radius: 999px !important;
    background: var(--simple-brand) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(71, 100, 200, .24) !important;
  }
  body.jr-authenticated .mobile-bottom-nav {
    position: fixed !important;
    z-index: 1700 !important;
    right: 10px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    min-height: 58px !important;
    padding: 5px !important;
    border: 1px solid var(--simple-line) !important;
    border-radius: 20px !important;
    background: var(--simple-surface) !important;
    box-shadow: var(--simple-shadow-soft), var(--simple-highlight) !important;
    backdrop-filter: blur(18px) saturate(1.1) !important;
  }
  body.jr-authenticated .mobile-bottom-nav .workspace-rail-button { width: auto !important; min-height: 46px !important; border-radius: 13px !important; }
  body.jr-authenticated .mobile-bottom-nav .workspace-rail-button strong { font-size: 12px !important; }
  body.jr-authenticated .mobile-bottom-nav .workspace-rail-button span { font-size: 9px !important; }
  body.jr-authenticated .inspector-scrim { z-index: 2190 !important; background: rgba(7, 11, 18, .34) !important; }
  body.jr-authenticated .site-icp-footer { position: static !important; margin: -72px 0 0 !important; padding: 0 0 8px !important; }
}

@media (max-width: 560px) {
  body.jr-authenticated .hd-right { gap: 5px !important; }
  body.jr-authenticated .hd-right > .lang-toggle,
  body.jr-authenticated .hd-right > .jr-theme-toggle { min-width: 36px !important; padding: 7px 9px !important; }
  body.jr-authenticated .model-switch-button { max-width: 96px !important; overflow: hidden !important; white-space: nowrap !important; }
  body.jr-authenticated .model-switch-button #active-model-badge { display: inline-block !important; max-width: 48px !important; overflow: hidden !important; text-overflow: ellipsis !important; vertical-align: middle !important; }
  body.jr-authenticated .workspace-main .panel-title small { display: none !important; }
  body.jr-authenticated .result-scroll { min-height: 270px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.jr-authenticated *,
  body.jr-authenticated *::before,
  body.jr-authenticated *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.jr-authenticated header,
  body.jr-authenticated .workspace-rail,
  body.jr-authenticated .workspace-main > .panel-left,
  body.jr-authenticated .workspace-main > .panel-right,
  body.jr-authenticated .workspace-inspector,
  body.jr-authenticated .mobile-bottom-nav {
    background: var(--simple-surface-strong) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
