/* Mai atelier: neutral gallery surfaces, acid-yellow actions, readable controls. */
:root {
  --ink: #202124;
  --paper: #f5f5f6;
  --muted: #62636a;
  --line: #dedee2;
  --lime: #e4fa75;
  --green: #343638;
  --green-2: #50545b;
  --shadow: 0 20px 60px #17181c12;
  font-size: 16px;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { line-height: 1.5; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, input, select { min-height: 44px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #536bd3; outline-offset: 3px; }
input:focus, textarea:focus, select:focus { border-color: #777985; box-shadow: 0 0 0 3px #536bd31a; }
label { color: var(--ink); font-size: .875rem; }
input, select, textarea { background: #fafafa; font-size: 1rem; }
button:disabled { cursor: not-allowed; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 30; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.app-shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { background: #202124; color: #f7f7f8; padding: 28px 18px; border: 0; }
.sidebar-brand { gap: 12px; padding-bottom: 30px; }
.sidebar-brand b { font-size: 1.5rem; letter-spacing: -.05em; }
.sidebar-brand small { color: #b3b4ba; font-size: .75rem; }
.brand-mark.small { background: var(--lime); color: #202124; flex-shrink: 0; }
.new-thread { background: var(--lime); color: #202124; font-size: .875rem; border-radius: 12px; }
.new-thread span { color: inherit; }
.nav-label { color: #a4a5ad; font-size: .75rem; letter-spacing: .06em; }
.conversation-item { color: #c3c4cb; font-size: .875rem; }
.conversation-item:hover, .conversation-item.active { color: white; background: #35363c; }
.sidebar .quiet-button { color: #c8c9d0; font-size: .875rem; padding: 12px 10px; }
.sidebar .quiet-button:hover { background: #35363c; }
.account-button { color: white; border-color: #42434a; font-size: .875rem; }
.account-button small { color: #b3b4ba; font-size: .75rem; }
.workspace { padding: 0 32px 48px; }
.workspace-header { min-height: 92px; }
.workspace-header h2 { font-size: 1.125rem; font-weight: 600; }
.eyebrow.dark { font-size: .75rem; letter-spacing: .1em; color: var(--muted); }
.status-pill { font-size: .875rem; color: var(--muted); padding: 8px; }
.header-actions .quiet-button { font-size: .875rem; background: white; }
.workspace-shortcuts { display: flex; gap: 8px; padding: 12px 0; position: sticky; top: 0; background: var(--paper); z-index: 3; border-bottom: 1px solid var(--line); }
.workspace-shortcuts a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 9px 16px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: .875rem; }
.workspace-shortcuts a:first-child { background: var(--ink); color: white; }
.workspace-shortcuts a:hover { background: #e8e8ec; color: var(--ink); }
.workspace-shortcuts span { font-size: .75rem; opacity: .65; font-variant-numeric: tabular-nums; }
.studio-intro { padding: 24px 0; align-items: flex-end; }
.studio-kicker { font-size: .75rem; letter-spacing: .12em; color: var(--muted); }
.studio-intro h1 { font-size: clamp(1.75rem, 2.5vw, 2.625rem); letter-spacing: -.04em; margin-top: 6px; font-weight: 500; }
.studio-intro i { color: var(--ink); text-decoration: underline; text-decoration-color: #c3de45; text-decoration-thickness: 5px; text-underline-offset: 8px; }
.studio-intro > p { font-size: .875rem; color: var(--muted); margin-bottom: 4px; }
.studio-layout { grid-template-columns: minmax(310px, 360px) minmax(0, 1fr); gap: 24px; }
.creative-panel { background: white; padding: 24px; gap: 16px; border-radius: 18px; }
.step-heading { gap: 10px; }
.step-heading span { color: #5d5f67; font-family: inherit; font-style: normal; font-size: .75rem; }
.step-heading h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.upload-zone { min-height: 150px; padding: 16px; text-align: center; border: 1px dashed #aaaeb8; background: #f6f6f8; border-radius: 12px; }
.upload-zone:hover, .upload-zone.dragging { background: #f5f9e5; border-color: #747f36; }
.upload-symbol { color: var(--ink); line-height: 1; font-size: 2rem; }
.upload-zone strong { font-size: 1rem; }
.upload-zone small { color: var(--muted); font-size: .75rem; }
.source-thumb button { min-height: 28px; width: 28px; height: 28px; }
.mode-picker span { padding: 14px 10px; font-size: .875rem; border-radius: 10px; }
.mode-picker small { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.mode-picker input:checked + span { border-color: #555b3e; background: #f4f9de; box-shadow: inset 0 0 0 1px #555b3e; }
.creative-panel input, .creative-panel textarea, .creative-panel select { font-size: 1rem; background: #fafafa; line-height: 1.6; }
.creative-panel textarea::placeholder { color: #72747d; }
.mood-chips { gap: 6px; }
.mood-chips button { font-size: .875rem; color: #555760; border-color: var(--line); padding: 7px 10px; }
.mood-chips button:hover { color: var(--ink); background: #f1f5de; }
.creative-details { border-color: var(--line); }
.creative-details summary { color: #555760; font-size: .875rem; min-height: 30px; }
.creative-details label { font-size: .875rem; font-weight: 500; }
.field-hint, .creative-panel .field-hint { color: var(--muted); font-size: .75rem; line-height: 1.7; text-align: left; }
.generate-button { font-size: 1rem; font-weight: 600; background: var(--lime); color: #202124; min-height: 52px; }
.generate-button:hover { background: #d5eb65; }
.form-error { font-size: .875rem; }
.form-error:empty { display: none; }
.canvas-panel { background: #eeeef1; border-color: var(--line); border-radius: 18px; }
.canvas-heading { color: var(--ink); font-size: .875rem; letter-spacing: .04em; padding: 22px 24px; }
.canvas-heading span:last-child { font-size: .75rem; color: var(--muted); }
.product-review { margin-bottom: 0; padding: 0 24px 24px; }
.product-review > p { color: var(--muted); }
.product-card { background: white; border-color: var(--line); }
.product-card .image-preview-trigger { background: #f8f8fa; }
.product-card input[type=checkbox] { min-height: 22px; accent-color: #202124; }
.product-source-links button { border-color: var(--line); }
.artwork-empty { position: relative; min-height: 370px; overflow: hidden; background: #eeeef1; display: flex; align-items: flex-end; justify-content: flex-start; padding: 32px; }
.atelier-monogram { position: absolute; right: 16px; top: 0; color: #d4d5dc; font-size: clamp(110px, 16vw, 240px); font-weight: 800; line-height: 1; letter-spacing: -.1em; transform: rotate(-10deg); user-select: none; }
.atelier-monogram > span { color: #daddc8; }
.atelier-monogram i { font-size: .4em; font-style: normal; color: #a6b454; vertical-align: top; letter-spacing: 0; }
.empty-copy { position: relative; z-index: 1; text-align: left; }
.empty-copy > span { color: var(--muted); font-size: .75rem; letter-spacing: .12em; }
.empty-copy h2 { color: var(--ink); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.45; font-weight: 500; }
.empty-copy p { font-size: .875rem; color: var(--muted); line-height: 1.8; }
.canvas-footer { padding: 16px 24px; color: var(--muted); font-size: .75rem; border-color: var(--line); }
.artwork-card { background: white; }
.artwork-card figcaption { font-size: .875rem; color: var(--muted); }
.artwork-card a { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; color: var(--ink); }
.workspace-grid { gap: 24px; }
.conversation-panel, .activity-panel { border-color: var(--line); background: white; border-radius: 18px; }
.assistant-heading h3, .activity-heading h3 { font-size: 1rem; }
.assistant-heading span, .activity-heading span { font-size: .875rem; color: var(--muted); }
.message-bubble { font-size: 1rem; background: #f0f0f3; }
.message time { font-size: .75rem; color: var(--muted); }
.quick-actions button { min-width: 0; }
.quick-actions b { font-size: .875rem; }
.quick-actions small { font-size: .75rem; }
.quick-actions button > span { color: var(--ink); background: #f2f5e7; }
.composer-note, .job-meta, .job-status, .metric-grid small { font-size: .75rem; color: var(--muted); }
.metric-grid div { background: #f3f3f5; }
.job-top b, .job-actions button { font-size: .875rem; }
.job-top { flex-wrap: wrap; }
.empty-state { color: var(--muted); font-size: .875rem; }
.onboarding { background: #f4f6ea; border-color: #e0e4d0; }
.onboarding b, .onboarding button { font-size: .875rem; }
.onboarding p { font-size: .75rem; }
.modal { max-height: calc(100dvh - 32px); overflow: auto; }
.modal-copy, .risk-note { font-size: .875rem; }
.icon-button { width: 44px; height: 44px; flex-shrink: 0; }
.auth-view { max-width: 1300px; }
.auth-story h1 { font-weight: 600; letter-spacing: -.04em; }
.auth-story h1 em { color: var(--ink); text-decoration: underline; text-decoration-color: #c3de45; text-underline-offset: 10px; }
.auth-story .eyebrow { color: var(--muted); font-size: .75rem; }
.trust-row span { background: white; color: var(--muted); border-color: var(--line); font-size: .875rem; }
.auth-card { background: white; border-radius: 22px; }
.auth-tabs { background: #f0f0f3; }
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .workspace { padding: 0 20px 32px; }
  .studio-layout { grid-template-columns: minmax(290px, 330px) minmax(0, 1fr); gap: 16px; }
  .creative-panel { padding: 18px; }
  .studio-intro > p { display: none; }
  .workspace-grid { grid-template-columns: 1fr; }
  .activity-panel { position: static; max-height: none; }
  .workspace-shortcuts a { gap: 12px; padding: 9px 12px; }
}
@media (max-width: 960px) {
  .studio-layout { grid-template-columns: 1fr; }
  .workspace-shortcuts span { display: none; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 16px; gap: 12px; }
  .sidebar-brand { padding: 0; }
  .sidebar-brand b { font-size: 1.25rem; }
  .sidebar-brand small { font-size: .75rem; }
  .sidebar nav { display: none; }
  .sidebar-bottom { border-color: #42434a; flex-wrap: wrap; gap: 4px; }
  .sidebar .quiet-button { font-size: .875rem; padding: 8px; }
  .new-thread { padding: 10px; }
  .workspace { padding: 0 14px 32px; }
  .workspace-header { min-height: auto; padding: 18px 0; gap: 12px; flex-wrap: wrap; }
  .header-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .workspace-shortcuts { gap: 4px; justify-content: space-between; }
  .workspace-shortcuts a { font-size: .875rem; padding: 8px; gap: 0; }
  .studio-intro { padding: 20px 0; }
  .studio-intro h1 { font-size: 1.75rem; }
  .creative-panel { padding: 20px; }
  .canvas-heading, .product-review, .canvas-footer { padding-left: 18px; padding-right: 18px; }
  .artwork-empty { min-height: 310px; padding: 24px; }
  .atelier-monogram { font-size: 160px; }
  .workspace-grid { gap: 16px; padding-top: 16px; }
  .message { max-width: 95%; }
  .assistant-heading { flex-wrap: wrap; gap: 8px; }
  .toast { left: 16px; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
