:root {
  color-scheme: light;
  --ink: #263028;
  --ink-soft: #4d5b50;
  --muted: #788176;
  --line: #e8e7de;
  --paper: #fbfaf6;
  --white: #fff;
  --sage: #eef2e8;
  --green: #556e58;
  --green-dark: #344b3b;
  --peach: #f4e6d7;
  --accent: #c77d56;
  --shadow: 0 20px 70px rgba(44, 49, 39, .065);
  font-family: Avenir, "Avenir Next", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
svg { flex: 0 0 auto; }
::selection { background: #dce7d4; color: var(--ink); }
:focus-visible { outline: 3px solid #b4c5a6; outline-offset: 3px; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
.site-shell main { flex: 1; }
.wrap, .header-inner, .footer-inner { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: relative; z-index: 10; background: rgba(251, 250, 246, .93); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; min-height: 88px; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 25px; line-height: .9; letter-spacing: -.06em; white-space: nowrap; }
.brand > span:last-child { display: grid; }
.brand small { margin-top: 6px; color: var(--green); font: 800 9px/1 ui-sans-serif, sans-serif; letter-spacing: .28em; }
.brand-dot { color: var(--accent); }
.brand-mark { display: block; position: relative; width: 42px; height: 42px; border-radius: 13px; background: var(--green-dark); box-shadow: 0 7px 15px rgba(52, 75, 59, .16); overflow: hidden; }
.brand-mark span { position: absolute; display: block; border-radius: 50%; background: #d9e7d2; }
.brand-mark span:nth-child(1) { width: 13px; height: 13px; top: 8px; left: 14px; }
.brand-mark span:nth-child(2) { width: 27px; height: 22px; top: 22px; left: 8px; border-radius: 47% 47% 20% 20%; }
.brand-mark span:nth-child(3) { width: 8px; height: 8px; top: 4px; right: 3px; background: #deb995; }
.header-note { margin-left: auto; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; align-self: stretch; gap: 30px; margin-inline: auto; }
.nav-link { position: relative; border: 0; background: transparent; color: var(--muted); padding: 0 1px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .18s; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.user-pill { display: flex; align-items: center; gap: 6px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.icon-button, .text-button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink-soft); }
.icon-button { width: 35px; height: 35px; border-radius: 50%; background: #f1f2ea; }
.icon-button:hover { background: #e6ebdf; }
.text-button { padding: 6px 0; font-size: 12px; font-weight: 700; }
.text-button:hover { color: var(--accent); }

.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 11px 19px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; line-height: 1.2; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { background: var(--green-dark); color: #fff; box-shadow: 0 7px 20px rgba(52, 75, 59, .17); }
.button-primary:hover:not(:disabled) { background: #263e2e; box-shadow: 0 10px 24px rgba(52, 75, 59, .23); }
.button-primary:disabled { background: #adb9a9; box-shadow: none; }
.button-quiet { background: #fff; border-color: var(--line); color: var(--ink); }
.button-quiet:hover { border-color: #ced8ca; box-shadow: 0 7px 18px rgba(44, 49, 39, .06); }
.button-small { min-height: 37px; padding: 8px 13px; font-size: 11px; border-color: #d5ddd1; background: #fff; color: var(--green-dark); }
.button-small:hover:not(:disabled) { background: #f2f5f0; }
.button-full { width: 100%; }
.eyebrow, .card-kicker { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .23em; }
.eyebrow-line { width: 30px; height: 1px; background: var(--accent); }

.auth-layout { min-height: min(760px, calc(100vh - 165px)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .75fr); align-items: center; gap: clamp(50px, 9vw, 130px); padding-block: 70px 100px; }
.auth-story { position: relative; padding-block: 35px; }
.auth-story h1, .page-intro h1 { max-width: 620px; margin: 24px 0 24px; font-size: clamp(44px, 5.5vw, 76px); line-height: 1.04; letter-spacing: -.065em; font-weight: 650; }
.auth-story h1 em, .page-intro h1 em { color: var(--accent); font: italic 400 1.02em Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.auth-story > p { max-width: 465px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.hero-art { position: relative; height: 255px; width: min(460px, 100%); margin-top: 27px; background: radial-gradient(circle at 50% 100%, #e1e8d9 0 22%, transparent 65%), linear-gradient(125deg, #f9efe6, #f3f5ec); border: 1px solid #eeeae1; border-radius: 34px; overflow: hidden; }
.hero-orbit { position: absolute; border: 1px solid rgba(111, 130, 102, .18); border-radius: 50%; transform: rotate(-18deg); }
.hero-orbit-one { width: 340px; height: 140px; left: 55px; top: 64px; }
.hero-orbit-two { width: 500px; height: 240px; left: -10px; top: 19px; }
.hero-sculpture { position: absolute; left: 50%; top: 34px; width: 150px; height: 230px; transform: translateX(-50%); filter: drop-shadow(13px 13px 14px rgba(76, 86, 73, .17)); }
.sculpture-head, .sculpture-body { position: absolute; display: block; background: linear-gradient(120deg, #e8cdb7 0, #f4e5d4 42%, #d9b99c 100%); }
.sculpture-head { width: 77px; height: 92px; left: 36px; top: 0; border-radius: 45% 45% 42% 42%; box-shadow: inset -13px -6px 17px rgba(147, 112, 90, .12); }
.sculpture-body { width: 136px; height: 134px; left: 7px; top: 81px; border-radius: 46% 46% 8% 8%; }
.hero-spark { position: absolute; color: #ba946e; font-family: Georgia, serif; }
.hero-spark-one { top: 43px; left: 74px; font-size: 44px; }
.hero-spark-two { right: 70px; bottom: 45px; font-size: 30px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 25px; color: var(--muted); font-size: 11px; font-weight: 700; }
.trust-line span { display: flex; align-items: center; gap: 7px; }
.trust-line svg { color: var(--green); }
.auth-card, .admin-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card { padding: clamp(29px, 4vw, 52px); }
.auth-card h2, .admin-card h2 { margin: 16px 0 9px; font-size: 31px; line-height: 1.18; letter-spacing: -.05em; font-weight: 650; }
.auth-card > p, .admin-card > p { margin: 0 0 30px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.stack-form { display: grid; gap: 17px; }
.stack-form label, .prepare-form label, .inline-field { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.stack-form input, .stack-form select, .prepare-form input, .prepare-form select, .inline-field input, .inline-field select { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #dadfd5; border-radius: 9px; outline: 0; background: #fff; color: var(--ink); font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.stack-form input:focus, .stack-form select:focus, .prepare-form input:focus, .prepare-form select:focus, .inline-field input:focus, .inline-field select:focus { border-color: #92aa8d; box-shadow: 0 0 0 3px rgba(146, 170, 141, .18); }
.stack-form input::placeholder { color: #a4aca2; }
.stack-form label small { color: var(--muted); font-weight: 500; }
.stack-form .button { margin-top: 5px; }
.auth-footnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-footnote svg { color: var(--green); }

.workspace { padding-block: 58px 100px; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.page-intro h1 { margin: 18px 0 10px; font-size: clamp(42px, 5vw, 67px); }
.page-intro p { max-width: 610px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.page-intro > .button, .intro-actions { flex: 0 0 auto; margin-bottom: 6px; }
.intro-actions { display: flex; gap: 10px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 326px; align-items: start; gap: 28px; }
.studio-main { display: grid; gap: 24px; }
.studio-section { padding: clamp(26px, 3.7vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 5px 30px rgba(44, 49, 39, .025); }
.section-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 27px; }
.step-number { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; background: var(--sage); color: var(--green); font: 800 12px ui-sans-serif, sans-serif; }
.section-heading h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.045em; font-weight: 700; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.mode-card { display: flex; align-items: center; gap: 12px; min-height: 94px; width: 100%; padding: 16px; border: 1.5px solid #e5e8df; border-radius: 13px; background: #fff; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.mode-card:hover { transform: translateY(-2px); border-color: #b7c7b0; }
.mode-card.selected { border-color: var(--green); background: #f7faf5; }
.mode-icon { display: grid; place-items: center; position: relative; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; background: var(--sage); color: var(--green); }
.mode-icon-alt { background: #f7ede5; color: #b77956; }
.mode-icon span { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.mode-card strong, .mode-card small { display: block; }
.mode-card strong { margin-bottom: 4px; font-size: 13px; }
.mode-card small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.radio-mark { flex: 0 0 16px; width: 16px; height: 16px; margin-left: auto; border: 1.5px solid #bbc6b8; border-radius: 50%; }
.mode-card.selected .radio-mark { border: 5px solid var(--green); background: #fff; }
.upload-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.upload-grid-multi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upload-slot { position: relative; display: flex; align-items: center; gap: 15px; min-height: 144px; padding: 18px; border: 1.5px dashed #cbd6c7; border-radius: 13px; background: #fafcf8; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; overflow: hidden; }
.upload-slot:hover, .upload-slot.drag-over { border-color: var(--green); background: #f3f8ef; transform: translateY(-2px); }
.upload-slot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-empty-icon { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border: 1px solid #dce5d6; border-radius: 12px; background: #fff; color: var(--green); }
.upload-caption { min-width: 0; display: grid; gap: 4px; }
.upload-caption strong { font-size: 12px; }
.upload-caption small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-change { display: flex; align-items: center; gap: 4px; margin-top: 9px; color: var(--green); font-size: 11px; font-weight: 800; }
.upload-preview { flex: 0 0 86px; width: 86px; height: 95px; border-radius: 9px; background: #e8e4dc; overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-grid-multi .upload-slot { min-height: 178px; flex-direction: column; align-items: flex-start; gap: 13px; padding: 15px; }
.upload-grid-multi .upload-preview { width: 100%; height: 95px; flex-basis: 95px; }
.upload-grid-multi .upload-empty-icon { width: 100%; height: 71px; flex-basis: 71px; }
.helper-line { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.helper-line svg { color: var(--green); }
.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.style-card { position: relative; display: grid; align-content: start; gap: 5px; min-height: 182px; padding: 9px 9px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.style-card:hover { transform: translateY(-3px); border-color: #bfccb9; box-shadow: 0 9px 18px rgba(44, 49, 39, .07); }
.style-card.selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(85, 110, 88, .09); }
.style-art { display: grid; place-items: center; height: 93px; margin-bottom: 5px; border-radius: 8px; font: 58px/1 Georgia, serif; }
.style-art span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .32); color: rgba(69, 78, 62, .62); }
.tone-sand { background: linear-gradient(140deg, #f0e5d4, #e5dfcd); }
.tone-peach { background: linear-gradient(140deg, #f4d6bc, #f7e9d8); }
.tone-rose { background: linear-gradient(140deg, #f1d8d8, #f7e8e0); }
.tone-lavender { background: linear-gradient(140deg, #ded9ea, #efe7e3); }
.tone-sage { background: linear-gradient(140deg, #dbe4d5, #eff0e2); }
.tone-mint { background: linear-gradient(140deg, #d6eee7, #eef6ec); }
.style-card strong { font-size: 12px; }
.style-card small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.style-check { display: none; place-items: center; position: absolute; top: 14px; right: 14px; width: 21px; height: 21px; border-radius: 50%; background: var(--green); color: #fff; }
.style-card.selected .style-check { display: grid; }
.prompt-field { display: grid; gap: 7px; margin-top: 23px; color: var(--ink); }
.prompt-field > strong, .base-picker > div > strong { font-size: 13px; }
.prompt-field > span, .base-picker p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.prompt-field textarea { width: 100%; min-height: 124px; padding: 13px 14px; border: 1px solid #d4decf; border-radius: 11px; background: #fbfcfa; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.55; resize: vertical; }
.prompt-field textarea:focus { border-color: var(--green); outline: 2px solid rgba(85, 110, 88, .16); }
.prompt-field textarea::placeholder { color: #9aa69b; }
.prompt-field small { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.prompt-field small > :last-child { white-space: nowrap; }
.base-picker { margin-top: 23px; padding-top: 21px; border-top: 1px solid var(--line); }
.base-picker p { margin: 5px 0 13px; }
.base-options { display: flex; flex-wrap: wrap; gap: 8px; }
.base-option { min-height: 39px; padding: 8px 14px; border: 1px solid #d7dfd3; border-radius: 9px; background: #fff; color: var(--ink-soft); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.base-option:hover { border-color: var(--green); }
.base-option.selected { border-color: var(--green); background: #edf4eb; color: var(--green-dark); }
.privacy-panel { display: flex; align-items: flex-start; gap: 14px; padding: 18px 19px; margin-bottom: 18px; border: 1px solid #dfe9d9; border-radius: 12px; background: #f6f9f3; }
.privacy-panel svg { color: var(--green); }
.privacy-panel strong { font-size: 12px; }
.privacy-panel p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.check-line { display: flex; align-items: flex-start; gap: 11px; margin: 12px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; cursor: pointer; }
.check-line input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--green); cursor: pointer; }
.check-line a { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 2px; color: var(--green-dark); text-decoration-color: #a8bca3; text-underline-offset: 3px; font-weight: 700; }
.check-line a:hover { color: var(--accent); }
.studio-aside { position: sticky; top: 24px; }
.summary-card { padding: 26px; border: 1px solid #dfe6d8; border-radius: 20px; background: linear-gradient(162deg, #f4f8f1, #eaf1e7); box-shadow: 0 12px 32px rgba(57, 80, 56, .07); }
.summary-card h3 { margin: 13px 0 8px; font-size: 22px; letter-spacing: -.045em; }
.summary-visual { display: grid; place-items: center; height: 155px; margin: 17px 0; border: 1px solid rgba(85, 110, 88, .08); border-radius: 14px; background: radial-gradient(circle at 50% 100%, #d2dfcd, transparent 58%), rgba(255, 255, 255, .48); }
.summary-orb { display: grid; place-items: center; width: 105px; height: 105px; border-radius: 50%; background: linear-gradient(135deg, #d6c0a7, #f8e9d4); box-shadow: 12px 16px 23px rgba(63, 76, 53, .12), inset -15px -12px 20px rgba(136, 103, 73, .1); font: 76px/1 Georgia, serif; color: #9f7b63; }
.summary-card dl { margin: 15px 0; }
.summary-card dl div { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(85, 110, 88, .12); }
.summary-card dt { color: var(--muted); font-size: 11px; }
.summary-card dd { margin: 0; color: var(--ink); font-size: 11px; font-weight: 800; text-align: right; }
.summary-note { margin: 20px 0 14px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.summary-small { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

.job-list { display: grid; gap: 17px; }
.job-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 270px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 6px 29px rgba(44, 49, 39, .035); overflow: hidden; }
.job-image { position: relative; min-height: 270px; background: linear-gradient(145deg, #ebeee4, #f4e7da); overflow: hidden; }
.job-image img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.job-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #a3b19d; }
.job-placeholder::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(130deg, #d5c1aa, #f7e8d6); box-shadow: 13px 18px 22px rgba(74, 91, 72, .12); }
.job-placeholder span { position: relative; font: 90px/1 Georgia, serif; color: rgba(255, 255, 255, .85); }
.job-content { padding: 27px 30px; min-width: 0; }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.job-number { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .19em; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 100px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-ready { background: #eaf4e7; color: #427044; }
.status-pending { background: #f9eee0; color: #a66e33; }
.status-error { background: #fbe8e4; color: #a55248; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.job-content h3 { margin: 14px 0 7px; font-size: 24px; letter-spacing: -.045em; }
.job-date { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 11px; }
.job-description { margin: 16px 0 13px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.job-prompt { margin-top: 16px; padding: 11px 13px; border-radius: 9px; background: #f7f9f5; }
.job-prompt strong { color: var(--green-dark); font-size: 10px; }
.job-prompt p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.concept-views { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.concept-views > strong { font-size: 11px; }
.concept-views > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin-top: 10px; }
.concept-views a { display: grid; gap: 5px; color: var(--ink-soft); font-size: 10px; text-decoration: none; }
.concept-views img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.concept-views a:hover img { border-color: var(--green); }
.viewer-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 18px; }
.viewer-launch small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.progress-bar { display: block; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 100px; background: #edf0e8; overflow: hidden; }
.progress-bar::-webkit-progress-bar { border-radius: 100px; background: #edf0e8; }
.progress-bar::-webkit-progress-value { border-radius: 100px; background: var(--green); }
.progress-bar::-moz-progress-bar { border-radius: 100px; background: var(--green); }
.progress-label { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.job-approval { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.job-approval .check-line { margin: 0; }
.download-group { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.download-group > span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.download-group > div { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.download-link { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 7px 12px; border: 1px solid #d6e1d3; border-radius: 8px; color: var(--green-dark); background: #f8fbf7; font-size: 11px; font-weight: 850; text-decoration: none; }
.download-link:hover { background: #e9f3e7; }
.prepare-form, .base-form { display: grid; grid-template-columns: minmax(170px, 1fr) 105px 128px auto; align-items: end; gap: 10px; margin-top: 17px; padding: 16px; border: 1px solid #e4e8df; border-radius: 11px; background: #fafcf8; }
.prepare-heading { align-self: center; display: grid; gap: 4px; }
.prepare-heading strong { font-size: 11px; }
.prepare-heading small { max-width: 260px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.prepare-form label, .base-form label { font-size: 10px; }
.prepare-form input, .prepare-form select, .base-form input { height: 37px; padding-inline: 8px; font-size: 11px; }
.base-form { margin-top: 10px; background: #f8f6f2; }
.viewer-open { overflow: hidden; }
.viewer-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(24, 31, 25, .7); }
.viewer-panel { display: flex; flex-direction: column; width: min(920px, 100%); max-height: min(92vh, 900px); padding: 20px; border-radius: 19px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.viewer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.viewer-header h2 { margin: 5px 0; font-size: 24px; }
.viewer-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.viewer-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: #f0f3ec; color: var(--green-dark); cursor: pointer; }
.viewer-viewport { flex: 1 1 auto; position: relative; height: min(60vh, 580px); min-height: 250px; margin-top: 15px; border-radius: 11px; background: radial-gradient(circle at 50% 55%, #fbfcf9, #dfe7db); overflow: hidden; }
.viewer-stage { position: relative; width: 100%; height: 100%; }
.viewer-canvas { display: block; width: 100%; height: 100%; }
.viewer-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--ink-soft); font-size: 12px; text-align: center; pointer-events: none; }
.viewer-status.is-hidden { display: none; }
.viewer-toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 14px; }
.viewer-toolbar button { padding: 8px 12px; border: 1px solid #d7dfd3; border-radius: 8px; background: #f8faf6; color: var(--green-dark); font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.viewer-toolbar button:hover, .viewer-toolbar button:focus-visible { border-color: var(--green); background: #edf4eb; }
.delete-button { display: block; margin: 16px 0 0 auto; padding: 5px 0; border: 0; background: transparent; color: #9a665f; font-size: 10px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.delete-button:hover:not(:disabled) { color: #7d3935; }
.delete-button:disabled { opacity: .55; }
.empty-state { display: grid; justify-items: center; padding: 80px 24px; border: 1px dashed #d5ddd1; border-radius: 22px; background: #fff; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 25px; background: #edf2e9; color: var(--green); font: 67px/1 Georgia, serif; }
.empty-state h2 { margin: 22px 0 5px; font-size: 26px; letter-spacing: -.045em; }
.empty-state p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }

.admin-grid { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); align-items: start; gap: 23px; }
.admin-card { padding: 30px; }
.admin-card h2 { font-size: 25px; }
.user-list { display: grid; }
.user-row { display: grid; grid-template-columns: 38px minmax(90px, 1fr) 105px 95px 75px 78px; align-items: center; gap: 11px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--sage); color: var(--green); font-size: 14px; font-weight: 900; }
.user-identity { min-width: 0; display: grid; gap: 3px; }
.user-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.user-identity small { color: var(--muted); font-size: 10px; }
.inline-field { font-size: 9px; }
.inline-field input, .inline-field select { height: 35px; padding: 0 7px; font-size: 11px; }
.toggle-field { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.toggle-field input { accent-color: var(--green); }
.account-wrap { max-width: 760px; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #f7f6f0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 68px; color: var(--muted); font-size: 10px; }
.footer-inner > span:first-child { color: var(--ink-soft); font-weight: 800; text-transform: lowercase; }
.footer-inner a { display: inline-flex; align-items: center; gap: 5px; color: var(--green-dark); text-decoration: none; font-weight: 800; }
.footer-inner a:hover { text-decoration: underline; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(450px, calc(100vw - 40px)); padding: 15px 16px; border: 1px solid #efceca; border-radius: 11px; background: #fff7f5; color: #8e443d; box-shadow: 0 15px 50px rgba(44, 49, 39, .15); font-size: 12px; font-weight: 700; line-height: 1.5; }
.toast-success { border-color: #cee1ca; background: #f4fbf2; color: #426548; }
.toast button { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(0, 0, 0, .05); color: inherit; }
.loading-screen, .loading-error { display: grid; place-content: center; justify-items: center; min-height: 80vh; gap: 13px; padding: 30px; text-align: center; color: var(--ink-soft); }
.loading-mark { color: var(--green); font: 70px/1 Georgia, serif; animation: pulse 1.8s ease-in-out infinite; }
.loading-error h1 { margin: 7px 0 0; }
.loading-error p { max-width: 390px; margin: 0 0 10px; }
.config-page { display: grid; justify-items: start; align-content: center; min-height: min(700px, 75vh); max-width: 660px; padding-block: 80px; }
.config-icon { display: grid; place-items: center; width: 65px; height: 65px; margin-bottom: 32px; border-radius: 17px; background: var(--sage); color: var(--green); }
.config-page h1 { margin: 20px 0 12px; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; letter-spacing: -.06em; }
.config-page p { margin: 0 0 28px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.config-page .config-alert { margin-bottom: 15px; padding: 12px 15px; border: 1px solid #ead5c4; border-radius: 9px; background: #fff8f1; color: #815938; font-size: 12px; font-weight: 700; line-height: 1.5; }
.config-page code { padding: 2px 5px; border-radius: 4px; background: #eef1e9; color: var(--green-dark); font-size: .95em; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.88); } }

@media (max-width: 1120px) {
  .header-inner { gap: 25px; }
  .site-nav { gap: 18px; }
  .studio-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 19px; }
  .style-grid { gap: 7px; }
  .style-card { padding: 7px; }
  .prepare-form, .base-form { grid-template-columns: 1fr 105px 128px; }
  .prepare-heading { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .wrap, .header-inner, .footer-inner { width: min(100% - 36px, 760px); }
  .header-inner { flex-wrap: wrap; min-height: 76px; padding-block: 13px; row-gap: 12px; }
  .site-nav { order: 3; width: 100%; height: 32px; justify-content: center; margin: 0; }
  .nav-link.is-active::after { bottom: -7px; }
  .auth-layout { grid-template-columns: 1fr; max-width: 700px; gap: 25px; padding-block: 40px 70px; }
  .auth-story { padding: 0; }
  .auth-story h1 { max-width: 680px; }
  .hero-art { height: 190px; margin-top: 16px; }
  .hero-sculpture { transform: translateX(-50%) scale(.77); transform-origin: top center; }
  .auth-card { width: min(100%, 520px); margin-inline: auto; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-aside { position: static; }
  .summary-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
  .summary-card .card-kicker, .summary-card h3, .summary-card .summary-note, .summary-card .button, .summary-card .summary-small { grid-column: 1 / -1; }
  .summary-visual { height: 140px; }
  .summary-card dl { align-self: center; }
  .admin-grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 200px minmax(0, 1fr); }
  .job-image, .job-image img { min-height: 240px; }
}

@media (max-width: 620px) {
  .wrap, .header-inner, .footer-inner { width: calc(100% - 28px); }
  .header-inner { gap: 8px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark span:nth-child(1) { left: 11px; }
  .brand-mark span:nth-child(2) { left: 5px; }
  .header-actions { gap: 8px; }
  .user-pill { max-width: 92px; font-size: 10px; }
  .header-note { display: none; }
  .text-button { font-size: 10px; }
  .site-nav { justify-content: space-around; }
  .nav-link { font-size: 11px; }
  .auth-layout { padding-block: 38px 65px; }
  .auth-story h1, .page-intro h1 { font-size: clamp(39px, 11vw, 55px); }
  .auth-story > p { font-size: 14px; }
  .hero-art { height: 158px; }
  .hero-sculpture { top: 20px; transform: translateX(-50%) scale(.62); }
  .trust-line { gap: 12px; font-size: 10px; }
  .auth-card { padding: 25px 20px; }
  .workspace { padding-block: 35px 65px; }
  .page-intro { align-items: flex-start; flex-direction: column; margin-bottom: 28px; gap: 17px; }
  .page-intro h1 { margin-top: 15px; }
  .page-intro .button { margin: 0; }
  .intro-actions { width: 100%; flex-wrap: wrap; margin: 0; }
  .studio-section { padding: 22px 17px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 21px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 76px; }
  .upload-grid-multi { grid-template-columns: 1fr; }
  .upload-grid-multi .upload-slot { min-height: 105px; flex-direction: row; align-items: center; }
  .upload-grid-multi .upload-empty-icon { width: 58px; height: 58px; flex-basis: 58px; }
  .upload-grid-multi .upload-preview { width: 72px; height: 72px; flex-basis: 72px; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .style-card { min-height: 156px; padding: 8px; }
  .style-art { height: 77px; }
  .style-art span { width: 58px; height: 58px; font-size: 47px; }
  .summary-card { display: block; padding: 22px; }
  .summary-visual { height: 110px; }
  .summary-orb { width: 80px; height: 80px; font-size: 60px; }
  .job-card { grid-template-columns: 1fr; }
  .job-image, .job-image img { height: 170px; min-height: 170px; }
  .job-placeholder::before { width: 90px; height: 90px; }
  .job-placeholder span { font-size: 65px; }
  .job-content { padding: 20px; }
  .job-content h3 { font-size: 21px; }
  .prepare-form, .base-form { grid-template-columns: 1fr 1fr; }
  .prepare-heading { grid-column: 1 / -1; }
  .prepare-form .button, .base-form .button { grid-column: 1 / -1; }
  .viewer-overlay { padding: 8px; }
  .viewer-panel { padding: 13px; max-height: 98vh; }
  .viewer-viewport { height: min(53vh, 460px); min-height: 220px; }
  .viewer-toolbar { gap: 5px; }
  .viewer-toolbar button { flex: 1 1 27%; padding: 8px 5px; }
  .admin-card { padding: 22px 18px; }
  .user-row { grid-template-columns: 36px minmax(0, 1fr) 70px; gap: 10px; }
  .user-row .inline-field { grid-column: span 1; }
  .user-row .inline-field:nth-of-type(2) { grid-column: 2; }
  .user-row .toggle-field { grid-column: 3; }
  .user-row .button { grid-column: 2 / -1; }
  .footer-inner { justify-content: center; min-height: 80px; flex-wrap: wrap; column-gap: 16px; row-gap: 2px; padding-block: 15px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
