:root {
  --ink: #17211b;
  --muted: #667169;
  --line: #dfe4df;
  --paper: #f4f5f1;
  --white: #ffffff;
  --green: #1f5c3f;
  --green-2: #2e7b57;
  --lime: #d7ef7d;
  --orange: #dd7a47;
  --shadow: 0 24px 70px rgba(23, 33, 27, .13);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 999px; filter: blur(70px); opacity: .42; pointer-events: none; }
.ambient-one { width: 380px; height: 380px; background: #dfef9c; top: -130px; left: 36%; }
.ambient-two { width: 440px; height: 440px; background: #b9d9c6; right: -180px; bottom: -170px; }

.auth-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: 7vw; align-items: center; max-width: 1240px; margin: auto; padding: 7vw 48px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.brand-mark { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 16px; background: var(--ink); color: var(--lime); font-size: 25px; box-shadow: 0 10px 30px rgba(23,33,27,.2); }
.brand-mark.small { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; }
.eyebrow { margin: 46px 0 14px; font-size: 11px; letter-spacing: .2em; font-weight: 800; color: var(--green-2); }
.eyebrow.dark { margin: 0 0 6px; color: #6e776f; }
.auth-story h1 { font-size: clamp(44px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.06em; margin: 0; max-width: 790px; }
.auth-story h1 em { color: var(--green-2); font-style: normal; }
.auth-lead { max-width: 640px; font-size: 18px; line-height: 1.8; color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.trust-row span { padding: 10px 13px; border: 1px solid rgba(31,92,63,.18); border-radius: 999px; color: #425149; font-size: 13px; background: rgba(255,255,255,.42); }
.auth-card { background: rgba(255,255,255,.84); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.8); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #edf0eb; padding: 4px; border-radius: 13px; margin-bottom: 26px; }
.auth-tab { border: 0; background: transparent; padding: 11px; border-radius: 10px; color: var(--muted); font-weight: 700; }
.auth-tab.active { background: white; color: var(--ink); box-shadow: 0 4px 12px rgba(23,33,27,.08); }
.auth-form, .modal form { display: grid; gap: 17px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; color: #354139; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; color: var(--ink); padding: 12px 13px; outline: none; transition: .18s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(46,123,87,.1); }
textarea { resize: vertical; }
.primary-button, .secondary-button, .quiet-button { border-radius: 12px; padding: 11px 16px; font-weight: 800; border: 0; }
.primary-button { background: var(--ink); color: white; box-shadow: 0 8px 22px rgba(23,33,27,.16); }
.primary-button:hover { background: var(--green); transform: translateY(-1px); }
.secondary-button { color: var(--green); background: #e7f0e9; }
.quiet-button { color: #536057; background: #edf0ec; }
.full { width: 100%; }
.form-error { min-height: 18px; margin: 0; color: #b6463c; font-size: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { background: var(--ink); color: white; padding: 22px 16px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 7px 22px; }
.sidebar-brand > span:last-child { display: grid; }
.sidebar-brand b { font-size: 19px; }
.sidebar-brand small { color: #9eaaa2; font-size: 11px; }
.new-thread { width: 100%; border: 1px solid #3d4a42; background: #253129; color: white; padding: 12px; border-radius: 12px; text-align: left; font-weight: 700; }
.new-thread span { color: var(--lime); margin-right: 8px; }
.nav-label { margin: 25px 10px 10px; color: #849088; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.conversation-list { display: grid; gap: 4px; overflow: auto; }
.conversation-item { width: 100%; background: transparent; color: #bdc6c0; border: 0; border-radius: 10px; padding: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item:hover, .conversation-item.active { background: #2a372f; color: white; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 8px; }
.sidebar .quiet-button { background: #2a372f; color: #d7ded9; text-align: left; }
.account-button { border: 0; background: transparent; color: white; display: flex; align-items: center; gap: 10px; padding: 9px 7px; text-align: left; }
.account-button > span:last-child { display: grid; }
.account-button small { color: #8e9b92; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 900; }

.workspace { min-width: 0; padding: 0 28px 28px; }
.workspace-header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.workspace-header h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; color: #526158; background: white; border: 1px solid var(--line); padding: 9px 12px; border-radius: 999px; font-size: 12px; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #9ca59f; }
.status-pill.online i { background: #40b77a; box-shadow: 0 0 0 4px rgba(64,183,122,.12); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding-top: 24px; }
.conversation-panel, .activity-panel { background: rgba(255,255,255,.72); border: 1px solid rgba(220,226,220,.9); border-radius: 20px; }
.conversation-panel { min-height: calc(100vh - 150px); display: flex; flex-direction: column; padding: 22px; }
.activity-panel { align-self: start; padding: 18px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.onboarding { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 15px; border-radius: 15px; background: #eef4e8; border: 1px solid #dce9d0; }
.onboarding-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; font-weight: 900; }
.onboarding p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.message-list { flex: 1; padding: 18px 4px; display: flex; flex-direction: column; gap: 16px; }
.message { max-width: 78%; display: grid; gap: 5px; }
.message.user { align-self: flex-end; }
.message.system, .message.assistant { align-self: flex-start; }
.message-bubble { padding: 12px 14px; border-radius: 15px 15px 15px 4px; background: #edf0ec; line-height: 1.65; font-size: 14px; white-space: pre-wrap; }
.message.user .message-bubble { background: var(--ink); color: white; border-radius: 15px 15px 4px 15px; }
.message time { color: #929b95; font-size: 10px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 14px; }
.quick-actions button { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 13px; text-align: left; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; }
.quick-actions button > span { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #edf4e8; color: var(--green); font-weight: 900; }
.quick-actions b { font-size: 12px; }
.quick-actions small { color: var(--muted); margin-top: 3px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; padding: 8px; }
.composer textarea { border: 0; box-shadow: none; background: transparent; min-height: 52px; }
.composer button { align-self: end; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--ink); color: var(--lime); font-size: 20px; }
.composer-note { color: #929b95; font-size: 10px; margin: 7px 8px 0; }
.schedule-checkbox { display: flex; align-items: center; gap: 10px; }
.schedule-checkbox input { width: auto; accent-color: #26352d; }
#schedule-list { max-height: 52vh; overflow: auto; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric-grid div { background: #f1f3ef; padding: 12px; border-radius: 12px; display: grid; gap: 7px; }
.metric-grid small { color: var(--muted); font-size: 10px; }
.metric-grid b { font-size: 22px; }
.activity-heading { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 11px; }
.activity-heading h3 { margin: 0; font-size: 15px; }
.activity-heading span { color: var(--muted); font-size: 11px; }
.job-list { display: grid; gap: 9px; }
.job-card { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 12px; }
.job-top { display: flex; justify-content: space-between; gap: 8px; }
.job-top b { font-size: 12px; line-height: 1.5; }
.job-status { font-size: 9px; padding: 4px 7px; height: fit-content; border-radius: 999px; background: #edf0ec; color: #5d6a61; white-space: nowrap; }
.job-status.running { color: #11643e; background: #e2f4e9; }
.job-status.awaiting_approval { color: #9b552f; background: #fff0e3; }
.job-status.succeeded { color: #326749; background: #e6f1e8; }
.job-status.failed { color: #a64239; background: #fde9e7; }
.job-meta { margin: 7px 0; color: var(--muted); font-size: 10px; }
.progress { height: 5px; background: #edf0ec; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green-2); }
.progress .p-0 { width: 0; } .progress .p-10 { width: 10%; } .progress .p-20 { width: 20%; }
.progress .p-30 { width: 30%; } .progress .p-40 { width: 40%; } .progress .p-50 { width: 50%; }
.progress .p-60 { width: 60%; } .progress .p-70 { width: 70%; } .progress .p-80 { width: 80%; }
.progress .p-90 { width: 90%; } .progress .p-100 { width: 100%; }
.job-actions { display: flex; gap: 6px; margin-top: 9px; }
.job-actions button { border: 0; border-radius: 8px; padding: 7px 9px; font-size: 10px; font-weight: 800; }
.approve { background: var(--ink); color: white; }
.reject { background: #f3e8e5; color: #a64239; }
.empty-state { padding: 30px 15px; text-align: center; color: #8b958e; font-size: 12px; }

.modal { width: min(590px, calc(100vw - 32px)); border: 0; border-radius: 22px; padding: 24px; box-shadow: var(--shadow); color: var(--ink); }
.modal.compact { width: min(500px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(16,25,19,.48); backdrop-filter: blur(5px); }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.modal-heading h3 { margin: 0; font-size: 22px; }
.icon-button { border: 0; background: #edf0ec; width: 34px; height: 34px; border-radius: 10px; font-size: 21px; color: var(--muted); }
.field-group { background: #f4f6f2; padding: 14px; border-radius: 14px; display: grid; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.field-hint, .modal-copy { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.risk-note { color: #94502d; background: #fff0e2; border: 1px solid #f2d8c1; border-radius: 12px; padding: 11px; font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.credential-result { padding: 14px; border: 1px solid #dce8dd; background: #f0f6ef; border-radius: 14px; margin-top: 14px; }
.credential-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.credential-result p { font-size: 11px; color: var(--muted); }
.credential-list { display: grid; gap: 7px; margin-top: 16px; }
.credential-row { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #f3f5f1; border-radius: 10px; font-size: 11px; }
.credential-row button { border: 0; color: #a64239; background: transparent; font-weight: 800; }
.result-modal { width: min(900px, calc(100vw - 32px)); }
.result-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; max-height: 65vh; overflow: auto; }
.result-card { margin: 0; padding: 8px; border-radius: 13px; background: #eff2ed; }
.result-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 9px; background: white; }
.result-card figcaption { color: var(--muted); font-size: 10px; margin-top: 7px; word-break: break-all; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: white; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; z-index: 10; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
code { font-family: ui-monospace, Consolas, monospace; background: #e6ebe5; padding: 2px 5px; border-radius: 5px; }

/* Editorial studio: quiet chrome, generous image space, one primary action. */
:root { --ink: #262824; --paper: #f7f7f2; --line: #e3e3d9; --muted: #828477; --lime: #d4ef92; --green: #424b34; --green-2: #64764c; }
body { background: var(--paper); }
.ambient { display: none; }
.app-shell { grid-template-columns: 214px minmax(0, 1fr); }
.sidebar { background: #efefe7; color: var(--ink); border-right: 1px solid var(--line); padding: 28px 18px; }
.sidebar-brand { padding: 0 0 34px; }
.sidebar-brand b { font-size: 22px; letter-spacing: -.06em; }
.sidebar-brand small { color: #8d8e82; font-size: 9px; margin-top: 6px; }
.brand-mark.small { color: var(--ink); background: var(--lime); font-family: Georgia, serif; border-radius: 50%; font-size: 26px; box-shadow: none; }
.new-thread { background: #262824; border: 0; font-size: 12px; border-radius: 9px; }
.conversation-item { font-size: 12px; color: #858779; }
.conversation-item:hover, .conversation-item.active { background: #e2e5d5; color: #30352a; }
.sidebar .quiet-button { background: transparent; color: #717466; font-size: 11px; font-weight: 500; }
.account-button { color: var(--ink); font-size: 11px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 10px; }
.workspace { max-width: 1740px; width: 100%; margin: 0 auto; padding: 0 38px 40px; }
.workspace-header { min-height: 87px; }
.workspace-header h2 { font-size: 16px; font-weight: 500; }
.eyebrow.dark { font-size: 8px; letter-spacing: .22em; margin-bottom: 8px; }
.status-pill { font-size: 10px; background: transparent; border: none; }
.header-actions .quiet-button { font-size: 11px; border: 1px solid var(--line); background: transparent; font-weight: 500; }
.studio-intro { display: flex; align-items: center; justify-content: space-between; padding: 34px 0 27px; gap: 20px; }
.studio-kicker { font-size: 9px; color: #8c9181; letter-spacing: .2em; }
.studio-intro h1 { font-size: clamp(26px, 2.8vw, 43px); font-weight: 400; letter-spacing: -.055em; margin: 12px 0 0; }
.studio-intro i { font-style: normal; color: #818965; }
.studio-intro > p { color: #96998a; font-size: 11px; line-height: 1.9; }
.studio-layout { display: grid; grid-template-columns: 328px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.creative-panel { background: #fffefa; border: 1px solid var(--line); padding: 23px; border-radius: 15px; display: flex; flex-direction: column; gap: 13px; }
.step-heading { display: flex; align-items: center; gap: 9px; margin: 4px 0 0; }
.step-heading:not(:first-child) { margin-top: 8px; }
.step-heading span { color: #a5a58f; font-size: 9px; font-family: Georgia, serif; font-style: italic; }
.step-heading h3 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.upload-zone { border: 1px dashed #c9ceba; background: #f6f7ee; border-radius: 10px; min-height: 133px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragging { background: #edf3dc; border-color: #8f9d75; }
.upload-symbol { font-size: 24px; font-weight: 300; color: #7b8969; }
.upload-zone strong { font-weight: 500; font-size: 11px; }
.upload-zone small { font-size: 8px; font-weight: 400; color: #999d8e; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-zone:focus-within { outline: 2px solid #748956; outline-offset: 3px; }
.source-images { display: flex; gap: 8px; }
.source-images:empty { display: none; }
.source-thumb { position: relative; width: 72px; height: 72px; }
.source-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.source-thumb button { position: absolute; right: -4px; top: -4px; border: 0; border-radius: 50%; width: 20px; height: 20px; color: white; background: var(--ink); }
.mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-picker label { position: relative; }
.mode-picker input { position: absolute; opacity: 0; width: 1px; }
.mode-picker span { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 13px 10px; font-size: 11px; font-weight: 500; cursor: pointer; }
.mode-picker small { display: block; margin-top: 6px; font-size: 8px; color: #949887; font-weight: 400; }
.mode-picker input:checked + span { background: #f0f4e7; border-color: #a3b387; }
.mode-picker input:focus-visible + span { outline: 2px solid #70804d; }
.creative-panel input, .creative-panel textarea, .creative-panel select { border-radius: 8px; background: #fafbf6; font-size: 11px; line-height: 1.8; }
.creative-panel textarea::placeholder { color: #a1a493; }
.mood-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mood-chips button { border: 1px solid #e5e6dc; border-radius: 20px; background: transparent; color: #848a72; padding: 5px 9px; font-size: 9px; }
.mood-chips button:hover { background: #eaf1d7; }
.creative-details { border-top: 1px solid #eeeee6; padding-top: 12px; }
.creative-details summary { font-size: 10px; color: #939880; cursor: pointer; }
.creative-details[open] summary { margin-bottom: 12px; }
.creative-details label { font-size: 10px; font-weight: 400; }
.creative-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.generate-button { background: var(--lime); color: #303629; box-shadow: none; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 500; padding: 15px; margin-top: auto; }
.generate-button:hover { background: #c5e483; }
button:disabled { cursor: wait; opacity: .55; }
.creative-panel .field-hint { text-align: center; font-size: 9px; color: #a1a490; }
.canvas-panel { display: flex; flex-direction: column; background: #f0f1e8; border: 1px solid #e5e7db; border-radius: 15px; min-width: 0; overflow: hidden; }
.canvas-heading, .canvas-footer { display: flex; justify-content: space-between; gap: 12px; padding: 21px 25px; color: #9ca28a; font-size: 8px; letter-spacing: .12em; }
.canvas-heading { border-bottom: 1px solid #e4e7d7; }
.canvas-footer { margin-top: auto; border-top: 1px solid #e4e7d7; padding: 17px 25px; letter-spacing: .05em; }
.artwork-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-height: 490px; padding: 35px 24px; background: radial-gradient(ellipse at 52% 42%, #e5ead6 0, #f0f1e8 66%); }
.art-sculpture { position: relative; width: 230px; height: 195px; margin-bottom: 28px; }
.sculpture-ring { position: absolute; width: 153px; height: 153px; border: 32px solid #c0cba4; border-radius: 50%; left: 49px; top: 0; transform: rotate(-22deg) skew(-12deg); box-shadow: inset 8px 10px 14px #9fab8870, 15px 18px 30px #53623221; background: transparent; }
.sculpture-ball { position: absolute; width: 75px; height: 75px; background: radial-gradient(circle at 30% 22%, #f6f5e3, #dcdfbf 52%, #a6b08d); border-radius: 50%; bottom: 24px; left: 13px; box-shadow: 12px 16px 18px #52623926; z-index: 2; }
.sculpture-plinth { position: absolute; width: 220px; height: 45px; background: linear-gradient(140deg,#e0e4cd,#c4cdb0); bottom: 0; left: 0; transform: skew(-17deg); box-shadow: 20px 25px 35px #3449221c; border-radius: 4px; }
.empty-copy { text-align: center; z-index: 1; }
.empty-copy > span { color: #96a07e; font-size: 8px; letter-spacing: .24em; }
.empty-copy h2 { font-size: 25px; font-weight: 400; letter-spacing: -.04em; line-height: 1.55; margin: 16px 0 13px; color: #737e5e; }
.empty-copy p { color: #a0a78f; line-height: 1.85; font-size: 10px; }
.art-caption { font-size: 8px; color: #aeb59e; margin-top: 25px; }
.artwork-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding: 18px; }
.artwork-card { margin: 0; border-radius: 10px; overflow: hidden; background: #fffefa; border: 1px solid var(--line); }
.artwork-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #eaece2; }
.artwork-card figcaption { padding: 13px; display: flex; justify-content: space-between; gap: 10px; color: #8b9478; font-size: 10px; }
.artwork-card a { color: #536140; text-decoration: none; }
.workspace-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
.conversation-panel, .activity-panel { background: #fffefa; border-color: var(--line); border-radius: 14px; }
.conversation-panel { min-height: 340px; padding: 22px; }
.assistant-heading { display: flex; align-items: center; gap: 12px; }
.assistant-heading h3 { font-size: 13px; font-weight: 500; margin: 0; }
.assistant-heading span { font-size: 10px; color: #a2a48f; }
.message-list { max-height: 420px; overflow: auto; }
.message-bubble { background: #f2f3eb; font-size: 12px; }
.quick-actions { grid-template-columns: 1fr; }
.quick-actions button { display: none; }
.activity-panel { position: static; max-height: 560px; }
.metric-grid b { font-size: 18px; }
.onboarding { margin-top: 14px; }
.onboarding b { font-size: 11px; font-weight: 500; }
.onboarding p { font-size: 10px; }
.onboarding button { font-size: 10px; }
.auth-card { box-shadow: 0 24px 80px #3639260b; background: #fffefa; border: 1px solid var(--line); border-radius: 18px; }
.auth-story h1 { font-weight: 400; line-height: 1.25; }
.auth-story h1 em { color: #8b9972; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid #788b50; outline-offset: 3px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 175px minmax(0, 1fr); }
  .workspace { padding: 0 20px 30px; }
  .studio-layout { grid-template-columns: 285px minmax(0, 1fr); gap: 14px; }
  .creative-panel { padding: 18px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .activity-panel { position: static; max-height: none; }
  .activity-panel { order: 0; }
}
@media (max-width: 760px) {
  .auth-view { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; }
  .auth-story h1 { font-size: 42px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; min-height: auto; height: auto; padding: 12px; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .sidebar-brand { padding: 0; }
  .new-thread { width: auto; align-self: center; }
  .sidebar nav { grid-column: 1 / -1; }
  .nav-label { display: none; }
  .conversation-list { display: flex; gap: 7px; overflow-x: auto; }
  .conversation-item { width: auto; flex: 0 0 auto; max-width: 180px; }
  .sidebar-bottom { position: static; grid-column: 1 / -1; display: flex; align-items: center; border-top: 1px solid var(--line); padding-top: 7px; }
  .sidebar .quiet-button { display: block; padding: 6px 9px; }
  .account-button { border: 0; padding: 0; margin: 0 0 0 auto; }
  .account-button > span:last-child { display: none; }
  .workspace { padding: 0 12px 20px; }
  .workspace-header { align-items: flex-start; padding: 18px 0; }
  .header-actions { flex-direction: column; align-items: flex-end; }
  .workspace-grid { padding-top: 12px; gap: 12px; }
  .studio-intro { padding: 23px 2px; }
  .studio-intro > p { display: none; }
  .studio-intro h1 { font-size: 30px; }
  .studio-layout { grid-template-columns: 1fr; }
  .artwork-empty { min-height: 390px; }
  .creative-panel { padding: 21px; }
  .creative-panel input, .creative-panel textarea, .creative-panel select { font-size: 16px; }
  .artwork-gallery { padding: 12px; gap: 10px; }
  .canvas-heading, .canvas-footer { padding: 16px; }
  .canvas-footer span:last-child { display: none; }
  .conversation-panel { min-height: 340px; padding: 18px; }
  .quick-actions { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .credential-actions { grid-template-columns: 1fr; }
  .onboarding { grid-template-columns: auto 1fr; }
  .onboarding button { grid-column: 1 / 3; }
}
