/* Orange Studio: warm paper, botanical ink, and restrained editorial details.
   Keep the established functional styles in styles.css / experience.css. */
:root {
  --paper: #f5f3ed;
  --surface: #fffefb;
  --line: #e0ddd3;
  --studio-forest: #293d32;
  --studio-shadow: 0 12px 32px rgba(40, 49, 35, .045);
}

/* Decoration stays quiet and never competes with controls. */
.ambient-geometry-field, .ambient-geometry-dialog-field { opacity: .14; }
.required-interaction.is-required-pending,
.required-choice.is-required-complete,
.production-stepper button.active span,
.required-primary-action { animation: none; }
.required-primary-action::after, .product-upload-zone.required-interaction::after { animation: none; opacity: 0; }
.primary-button, .secondary-button, .field input, .field textarea, .field select { border-radius: 6px; }
.required-primary-action { background: var(--signal-orange-deep) !important; box-shadow: 0 4px 12px #b9411414; }
.primary-button { box-shadow: 0 3px 8px #202d2410; }
.studio-icon { display: block; width: 24px; height: 24px; flex: none; }
.nav-icon, .nav-item.active .nav-icon { width: 20px; height: 20px; color: #a3ad9f; background: none; }
.nav-icon .studio-icon { width: 20px; height: 20px; }
.nav-item.active .nav-icon { color: #ff9a69; }
.nav-item { border-radius: 7px; }
.brand-mark { border-radius: 10px 10px 10px 2px; }
.sidebar { background: #233029; }
.sidebar-foot { border-color: #ffffff20; }
.sidebar-foot p:last-child, .nav-item small { color: #a0aa9e; }
.sidebar-foot::before { content: ''; display: block; width: 38px; height: 3px; margin-bottom: 18px; background: #da9a6d; }
.topbar { background: #f5f3edf5; }

/* The entry page pairs a composed still life with a quiet, readable form area. */
.auth-layout:not(.admin-login) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.auth-layout:not(.admin-login) .auth-story {
  padding: 48px clamp(28px, 3.5vw, 64px) 36px;
  background: radial-gradient(ellipse at 40% 55%, #374b3a 0, transparent 64%), #24352c;
}
.auth-layout:not(.admin-login) .auth-story::before { content: ''; right: -170px; top: -220px; bottom: auto; width: 520px; height: 520px; border: 1px solid #d1dbc117; border-radius: 50%; }
.auth-layout:not(.admin-login) .auth-story > .section-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 30px; color: #efe8d7; font-size: 14px; letter-spacing: .12em; }
.auth-layout:not(.admin-login) .auth-story > .section-kicker::before { content: '橙'; display: grid; place-items: center; width: 32px; height: 32px; color: #fff7e9; background: #cf6b3c; border-radius: 8px 8px 8px 2px; font-size: 16px; }
.auth-layout:not(.admin-login) .auth-story h1 { margin: 0; font-size: clamp(38px, 3.6vw, 56px); line-height: 1.22; letter-spacing: -.04em; font-weight: 650; }
.auth-layout:not(.admin-login) .auth-promise { margin-top: 16px; color: #f0eddf; font-size: 19px; font-weight: 500; }
.auth-layout:not(.admin-login) .auth-promise em { color: #f3ae7f; }
.auth-layout:not(.admin-login) .auth-lead { max-width: 33em; color: #b8c3b6; font-size: 13px; line-height: 1.85; }
.auth-layout:not(.admin-login) .auth-lead em { color: #e5c8a6; }
.studio-composition { width: 100%; margin: 20px 0 8px; }
.studio-composition img { width: 100%; height: auto; }
.studio-composition figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 16px; color: #ced4c5; font-size: 11px; letter-spacing: .06em; border-bottom: 1px solid #ced4c526; }
.studio-composition figcaption span:last-child { color: #a5b29f; font-size: 10px; }
.auth-layout:not(.admin-login) .auth-counter { margin-top: 10px; padding-top: 0; border: 0; color: #bdc8b8; font-size: 11px; }
.auth-layout:not(.admin-login) .auth-counter strong { margin: 0 4px; color: #f0b78c; font-size: 19px; }
.auth-layout:not(.admin-login) .auth-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; max-width: none; margin-top: 14px; padding-top: 0; border: 0; }
.auth-layout:not(.admin-login) .auth-price > span { color: #c2caba; font-family: inherit; font-size: 11px; }
.auth-layout:not(.admin-login) .auth-price strong { margin: 0; font-size: 22px; }
.auth-layout:not(.admin-login) .auth-price strong small { color: #e4b48b; font-size: 10px; }
.auth-layout:not(.admin-login) .auth-price p { flex-basis: 100%; margin: 0; color: #aebba7; font-size: 11px; }
.auth-layout:not(.admin-login) .auth-panels { gap: 22px 18px; padding: 44px clamp(24px, 3vw, 52px); background: var(--paper); }
.auth-entry-heading { grid-column: 1 / -1; padding: 0 2px 12px; }
.auth-entry-heading .section-kicker { margin: 0 0 12px; font-size: 11px; letter-spacing: .14em; }
.auth-entry-heading h2 { margin: 0; font-size: clamp(25px, 2.2vw, 34px); font-weight: 600; letter-spacing: -.04em; }
.auth-entry-heading p { margin: 12px 0 0; color: #777b70; font-size: 13px; line-height: 1.7; }
.auth-layout:not(.admin-login) .auth-panel { padding: 26px 24px 14px; border-radius: 12px; box-shadow: var(--studio-shadow); }
.auth-layout:not(.admin-login) .auth-register { border-top: 3px solid #d67b4f; padding-top: 24px; }
.auth-layout:not(.admin-login) .auth-panel > header { flex-direction: column; gap: 14px; margin-bottom: 24px; }
.auth-layout:not(.admin-login) .auth-panel > header > span { min-width: 0; min-height: 23px; padding: 2px 8px; color: #737968; border: 1px solid #e2e3d8; background: #f5f6f0; font-size: 10px; border-radius: 4px; }
.auth-layout:not(.admin-login) .auth-register > header > span { color: #ab5732; border-color: #f1ddcd; background: #fff3e8; }
.auth-layout:not(.admin-login) .auth-panel h2 { font-size: 22px; font-weight: 600; }
.auth-layout:not(.admin-login) .auth-panel header p { margin-top: 8px; min-height: 36px; color: #777a70; font-size: 11px; line-height: 1.7; }
.auth-layout:not(.admin-login) .auth-panel .field input { background: #fbfbf7; border-color: #dedfd4; border-radius: 5px; }
.auth-layout:not(.admin-login) .auth-panel .field input:focus { border-color: #b97b52; background: #fff; }
.auth-layout:not(.admin-login) .auth-panel .primary-button { background: var(--studio-forest); border-color: var(--studio-forest); }
.auth-layout:not(.admin-login) .auth-panel .primary-button:hover { background: #3c5342; border-color: #3c5342; }
.auth-story-actions { display: none; }

/* A small visual on the hero and a consistent set of tool signatures. */
.home-hero { overflow: hidden; grid-template-columns: minmax(0, 1fr) 300px; background: #27392e; border-color: #354d3a; border-radius: 14px; box-shadow: var(--studio-shadow); }
.home-hero > div { padding: clamp(32px, 3.5vw, 54px); }
.home-hero h1 { font-weight: 600; line-height: 1.2; }
.home-hero > div > p { font-size: 14px; color: #c1cbbd; }
.home-hero > aside { position: relative; align-content: start; padding: 24px 28px; background: #ffffff04; border-color: #cbd7bb26; }
.home-composition { width: calc(100% + 40px); max-width: none; height: auto; margin: -8px -20px 14px; }
.home-hero > aside strong { margin-top: 7px; font-size: 38px; color: #f5b38c; }
.home-hero > aside p { font-size: 12px; }
.home-hero > aside .home-recharge-link { position: absolute; right: 28px; bottom: 25px; }
.home-tool-grid { gap: 12px; }
.home-tool-card { position: relative; min-height: 166px; padding: 20px; border-radius: 9px; background: var(--surface); box-shadow: 0 3px 12px #28312303; }
.home-tool-card::after { content: '↗'; position: absolute; right: 16px; top: 17px; color: #adb2a6; font-size: 15px; transition: color .18s ease; }
.home-tool-card:hover { border-color: #b9c2ac; box-shadow: var(--studio-shadow); }
.home-tool-card:hover::after { color: var(--orange-dark); }
.tool-illustration { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; color: #63775c; background: #eff2e9; border-radius: 10px 10px 10px 3px; }
.home-tool-card:nth-child(3n + 1) .tool-illustration { color: #b56c3f; background: #fbf0e5; }
.home-tool-card:nth-child(3n + 2) .tool-illustration { color: #657d7c; background: #edf2ef; }
.home-tool-card small { color: #72776a; line-height: 1.75; }
.home-tool-card em { padding-top: 12px; color: #66735e; }
.workspace-summary, .first-run-checklist, .empty-panel, .recent-work-card { border-radius: 10px; }
.first-run-checklist { border-color: #d8ddce; }
.first-run-checklist ol li > span { border-radius: 50%; }
.section-heading h2 { font-weight: 600; }
.image-tools-index > .section-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.image-tool-form { min-width: 0; border-radius: 12px; }
.image-tool-form fieldset { min-inline-size: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.image-tool-form .hero-actions { flex-wrap: wrap; }
.canvas-preset-cards label { position: relative; }
.canvas-preset-cards input[type="radio"] { width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
.canvas-preset-card { grid-template-rows: 88px auto auto auto; border-radius: 8px; }
.canvas-preset-frame { width: 48px; align-self: center; background: linear-gradient(140deg, #f1e9db, #e4d8c1); border-color: #b8b499; border-radius: 3px; box-shadow: 3px 4px 0 #ddd6c24d; }
.canvas-preset-frame[data-aspect="1:1"] { aspect-ratio: 1 / 1; }
.canvas-preset-frame[data-aspect="3:4"] { aspect-ratio: 3 / 4; }
.canvas-preset-frame[data-aspect="9:16"] { aspect-ratio: 9 / 16; }
.home-secondary-tools { border-radius: 12px; }

@media (min-width: 1101px) and (max-width: 1280px) {
  .auth-layout:not(.admin-login) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .auth-layout:not(.admin-login) .auth-panels { padding-inline: 24px; gap: 20px 12px; }
  .auth-layout:not(.admin-login) .auth-panel { padding-inline: 20px; }
  .home-hero { grid-template-columns: minmax(0, 1fr) 240px; }
  .home-tool-card { padding: 16px; }
}
@media (max-width: 1100px) {
  .auth-layout:not(.admin-login) { grid-template-columns: 1fr; }
  .auth-layout:not(.admin-login) .auth-story { padding: 36px 40px; }
  .auth-layout:not(.admin-login) .auth-story > .section-kicker { margin-bottom: 22px; }
  .auth-layout:not(.admin-login) .auth-story h1,
  .auth-layout:not(.admin-login) .auth-promise,
  .auth-layout:not(.admin-login) .auth-lead { max-width: 52%; }
  .studio-composition { position: absolute; right: 20px; top: 65px; width: 43%; margin: 0; }
  .studio-composition figcaption { padding-inline: 12px; font-size: 10px; }
  .studio-composition figcaption span:last-child { display: none; }
  .auth-layout:not(.admin-login) .auth-counter { margin-top: 26px; }
  .auth-layout:not(.admin-login) .auth-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 40px; }
  .auth-story-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
  .auth-story-actions button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; padding: 0 14px; color: #f5efdf; background: #ffffff08; border: 1px solid #d0dbc244; border-radius: 5px; cursor: pointer; font-size: 12px; }
  .auth-story-actions button:hover { background: #ffffff14; }
  .auth-story-actions button span { color: #efb78b; }
}
@media (max-width: 760px) {
  .auth-layout:not(.admin-login) .auth-story { padding: 30px 24px 28px; }
  .auth-layout:not(.admin-login) .auth-story > .section-kicker { margin-bottom: 28px; font-size: 12px; }
  .auth-layout:not(.admin-login) .auth-story h1 { max-width: none; font-size: 40px; }
  .auth-layout:not(.admin-login) .auth-promise { max-width: none; font-size: 17px; }
  .auth-layout:not(.admin-login) .auth-lead { max-width: none; font-size: 12px; }
  .studio-composition { position: relative; top: auto; right: auto; width: min(100%, 460px); margin: 14px auto 8px; }
  .studio-composition figcaption { padding-inline: 0; }
  .studio-composition figcaption span:last-child { display: inline; }
  .auth-layout:not(.admin-login) .auth-counter { margin-top: 12px; font-size: 10px; }
  .auth-layout:not(.admin-login) .auth-panels { grid-template-columns: minmax(0, 1fr); padding: 32px 20px; gap: 20px; }
  .auth-entry-heading { padding-bottom: 4px; }
  .auth-entry-heading h2 { font-size: 25px; }
  .auth-layout:not(.admin-login) .auth-panel { padding: 24px 22px 12px; }
  .auth-layout:not(.admin-login) .auth-panel > header { gap: 12px; margin-bottom: 18px; }
  .auth-layout:not(.admin-login) .auth-panel header p { min-height: 0; }
  .home-hero { grid-template-columns: 1fr; border-radius: 10px; }
  .home-hero > div { padding: 30px 24px; }
  .home-hero > aside { min-height: 176px; padding: 22px 24px; padding-right: 47%; border-top: 1px solid #cbd7bb26; border-left: 0; }
  .home-composition { position: absolute; top: 20px; right: 8px; width: 44%; margin: 0; }
  .home-hero > aside .home-recharge-link { position: static; }
  .home-hero > aside strong { font-size: 32px; }
  .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-tool-card { min-height: 160px; padding: 16px; }
  .home-tool-card b { font-size: 13px; }
  .home-tool-card small { font-size: 11px; }
  .tool-illustration { width: 36px; height: 36px; }
  .hero-actions { gap: 10px; }
  .image-tool-form { padding: 18px; }
  .canvas-preset-card { grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; justify-items: start; text-align: left; }
  .canvas-preset-frame { grid-row: 1 / 4; }
}
