/* GoodBoss Studio: a shared visual system for every merchant and admin surface. */
:root {
  --ink: #1b2028; --ink-soft: #535d6b; --muted: #667180;
  --line: #e1e5eb; --line-soft: #eef0f3; --surface: #fff;
  --surface-soft: #f7f8fa; --canvas: #f6f7f9;
  --green: #252c37; --green-dark: #171c25; --green-light: #edf0f5;
  --blue: #315acc; --focus: #4168d4; --shadow: 0 12px 38px #1720320c;
  --sidebar: 224px; --topbar: 68px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; color-scheme: light;
}
html, body { background: var(--canvas); color: var(--ink); }
body { font-size: 14px; line-height: 1.6; }
html, body { min-width: 0; }
.auth-topbar { z-index: 2; }
h1, h2, h3, p { overflow-wrap: break-word; }
button { transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #4168d44d; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px #4168d414; outline: none; }
input, select, textarea { accent-color: var(--blue); }
input::placeholder, textarea::placeholder { color: #858c98; opacity: 1; }
button svg, .button svg { stroke-width: 1.7; }
.primary-button, .secondary-button, .danger-button, .text-button, .ws-button { min-height: 42px; font-size: 13px; font-weight: 600; border-radius: 8px; letter-spacing: 0; }
.primary-button { background: var(--green-dark); border: 1px solid var(--green-dark); color: #fff; box-shadow: 0 1px 2px #10182c14; }
.primary-button:hover:not(:disabled) { background: #303a49; border-color: #303a49; transform: none; box-shadow: 0 2px 5px #10182c1a; }
.secondary-button { background: #fff; border-color: #d8dee7; color: #343d49; box-shadow: 0 1px 2px #10182c05; }
.secondary-button:hover:not(:disabled) { background: #f6f7f9; border-color: #bac4d1; transform: none; }
.text-button, .inline-link { color: #3c526e; }
.text-button:hover { background: #edf1f7; }
.icon-button { min-width: 36px; min-height: 36px; border-radius: 8px; color: #667180; }
.icon-button:hover { background: #edf0f5; color: var(--ink); }
button:disabled { cursor: not-allowed; }
.field, .ws-field { font-size: 13px; font-weight: 500; color: #343d49; gap: 8px; }
.field input:not([type="checkbox"]), .field select, .field textarea, .ws-field input, .ws-field select { min-height: 44px; border: 1px solid #dbe0e7; border-radius: 8px; background-color: #fff; color: var(--ink); font-size: 14px; box-shadow: 0 1px 2px #111e3403; }
.field textarea { padding: 13px 14px; line-height: 1.8; resize: vertical; }
.field input:not([type="checkbox"]), .field select { padding: 10px 12px; }
.input-wrap input:not([type="checkbox"]) { padding-left: 41px; }
.input-wrap > svg { color: #8992a0; width: 17px; height: 17px; }
.field small, .field-hint, .char-count, .ws-char-count { color: #727c89; font-size: 12px; font-weight: 400; line-height: 1.6; }
.field-grid { gap: 16px; }
.segmented { padding: 4px; gap: 4px; background: #f0f2f5; border: 1px solid #e8ebef; border-radius: 9px; }
.segmented button { min-height: 38px; padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #626d7c; }
.segmented button.active { color: #222b38; background: #fff; box-shadow: 0 1px 3px #111e3412; }
.eyebrow, .ws-kicker { color: #727b89; font-size: 10px; font-weight: 600; letter-spacing: .14em; }

/* An editorial welcome, with a real product example instead of decorative claims. */
.auth-view { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); min-height: 100svh; background: #fff; padding: 0; }
.auth-brand { display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: 48px clamp(40px, 6vw, 104px) 30px; min-height: 100svh; background: #1c232c; color: #fff; overflow: hidden; }
.auth-brand::before, .auth-brand::after { content: none; }
.auth-brand-lockup { gap: 13px; position: relative; z-index: 1; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: #fff; color: #202a38; font-size: 29px; font-weight: 750; font-family: Arial, sans-serif; letter-spacing: -.08em; line-height: 1; box-shadow: none; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: none; display: none; }
.brand-name { color: #fff; font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -.045em; }
.brand-name span { color: #bdc8d7; }
.brand-region { color: #a9b5c5; font-size: 11px; margin-top: 5px; }
.auth-promise { position: relative; z-index: 1; max-width: 570px; margin: clamp(55px, 10vh, 110px) 0 38px; }
.auth-promise .eyebrow { color: #b4c0d1; font-size: 11px; letter-spacing: .13em; margin-bottom: 20px; }
.auth-promise h1 { color: #fff; max-width: 510px; font-size: clamp(36px, 3.8vw, 59px); font-weight: 600; line-height: 1.38; letter-spacing: -.05em; margin: 0 0 23px; text-wrap: balance; }
.auth-promise > p:not(.eyebrow) { color: #b6c1d0; font-size: 15px; line-height: 1.95; max-width: 430px; margin: 0; }
.auth-product-preview { width: 100%; max-width: 485px; margin: 0; padding: 25px 0 22px; background: transparent; border: 0; border-top: 1px solid #ffffff2b; border-bottom: 1px solid #ffffff2b; border-radius: 0; box-shadow: none; transform: none; }
.preview-topline { display: flex; color: #aebbcf; gap: 8px; font-size: 10px; letter-spacing: .04em; }
.preview-dot { background: #c6d7b1; box-shadow: none; width: 5px; height: 5px; }
.preview-stars { color: #e0d0a4; margin-left: auto; font-size: 12px; letter-spacing: .16em; }
.auth-product-preview blockquote { padding: 0; margin: 20px 0; color: #fff; font-size: 20px; font-weight: 500; line-height: 1.65; border: 0; }
.preview-response { gap: 12px; padding: 0; background: transparent; border: 0; border-radius: 0; align-items: flex-start; }
.preview-spark { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 6px; background: #ffffff14; color: #cdd8e5; }
.preview-spark svg { width: 15px; height: 15px; }
.preview-response p { color: #c2cbd8; font-size: 13px; line-height: 1.95; margin: 0; }
.preview-caption { color: #8494aa; font-size: 11px; margin: 17px 0 0 40px; }
.auth-capabilities { margin-top: 28px; gap: 24px; color: #bac5d3; }
.auth-capabilities span { padding: 0; border: 0; background: none; gap: 7px; font-size: 11px; }
.auth-capabilities b { font-weight: 400; }
.auth-capabilities svg { color: #9facbf; width: 15px; height: 15px; }
.auth-brand .auth-contact-panel { width: 100%; max-width: 485px; margin-top: 30px; padding: 0; border: 0; background: none; }
.auth-brand .contact-surface-heading { color: #bac5d3; }
.auth-brand .contact-surface-heading strong { font-size: 11px; font-weight: 400; }
.auth-foot { margin: auto 0 0; padding-top: 36px; color: #8493a9; font-size: 10px; letter-spacing: .01em; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 75px 48px 48px; min-height: 100svh; background: #fff; }
.auth-topbar { top: 31px; right: 34px; }
.auth-topbar .language-switch { border: 1px solid #e1e5eb; padding: 7px 12px; border-radius: 7px; font-size: 12px; min-height: 36px; }
.auth-form-wrap { width: 100%; max-width: 374px; }
.auth-heading h2 { color: #1d2531; margin: 0 0 10px; font-size: 30px; font-weight: 650; letter-spacing: -.04em; }
.auth-heading p { color: #77808e; font-size: 13px; line-height: 1.75; }
.auth-tabs { margin: 29px 0 28px; }
.auth-form { gap: 20px; }
.auth-form .field { font-size: 13px; }
.auth-form input:not([type="checkbox"]) { height: 47px; }
.auth-form .primary-button { min-height: 47px; margin-top: 4px; }
.auth-form .checkbox-row { color: #6b7482; font-size: 12px; gap: 9px; }
.captcha-row { grid-template-columns: minmax(0, 1fr) 126px; gap: 12px; }
.captcha-box { height: 47px; border: 1px solid #dbe0e7; border-radius: 8px; background: #f5f6f8; }
.auth-reassurance { margin-top: 22px; color: #9199a5; font-size: 11px; line-height: 1.6; }
.auth-reassurance svg { width: 14px; height: 14px; }
.registration-notice { border-color: #e1e5eb; background: #f7f8fa; color: #596575; border-radius: 8px; }
.registration-notice summary { font-size: 12px; }
.registration-notice li { font-size: 12px; line-height: 1.7; }

/* Persistent navigation stays quiet, while the current task gets the space. */
.sidebar { width: var(--sidebar); background: #fff; border-right: 1px solid #e3e7ed; padding: 0 13px; box-shadow: none; }
.sidebar-brand { height: 85px; padding: 22px 10px; gap: 10px; border-bottom: 0; }
.sidebar-brand .brand-mark { width: 33px; height: 33px; border-radius: 8px; background: #202936; color: #fff; font-size: 24px; }
.sidebar-brand strong { color: #1f2835; font-size: 16px; letter-spacing: -.035em; }
.sidebar-brand > div > span { color: #8a93a0; font-size: 10px; margin-top: 2px; }
.main-nav { padding: 8px 0; }
.nav-label { color: #9aA1ac; font-size: 10px; font-weight: 500; padding: 16px 13px 8px; letter-spacing: .08em; }
.main-nav .nav-item { min-height: 42px; margin: 3px 0; padding: 11px 13px; border-radius: 7px; color: #67717f; font-size: 13px; font-weight: 450; gap: 11px; }
.main-nav .nav-item > svg { width: 18px; height: 18px; color: #788290; stroke-width: 1.7; }
.main-nav .nav-item:hover { color: var(--ink); background: #f7f8fa; }
.main-nav .nav-item.active { color: #263249; background: #edf1f7; font-weight: 650; box-shadow: none; }
.main-nav .nav-item.active > svg { color: #415c88; }
.nav-item.active::before { content: none; }
.nav-badge { display: none; }
.sidebar-bottom { border-top-color: #ebedf2; padding: 18px 3px 16px; }
.credit-mini { background: #f7f8fa; border: 1px solid #eef0f4; padding: 13px; border-radius: 9px; }
.credit-mini > div > span { color: #7a8492; font-size: 10px; }
.credit-mini strong { font-size: 22px; font-weight: 600; color: #253044; letter-spacing: -.04em; }
.credit-mini .icon-button { min-width: 28px; min-height: 28px; width: 28px; height: 28px; border: 1px solid #dde2ea; background: #fff; }
.profile-button { min-height: 62px; padding: 12px 8px 0; gap: 10px; }
.avatar, .topbar-avatar { background: #e9edf4; color: #596c89; border: 1px solid #e2e7ef; border-radius: 50%; }
.profile-copy strong { font-size: 12px; color: #334055; }
.profile-copy small { font-size: 10px; color: #8d95a2; }
.topbar { height: var(--topbar); padding: 0 34px; background: #fffffff7; border-bottom: 1px solid #e5e8ee; box-shadow: none; gap: 12px; }
.breadcrumb { color: #959daa; font-size: 12px; gap: 10px; }
.breadcrumb strong { color: #5d6878; font-weight: 500; }
.breadcrumb svg { width: 12px; height: 12px; color: #b0b7c1; }
.topbar-actions { gap: 13px; align-items: center; }
.language-pill { min-height: 33px; padding: 7px 9px; color: #6a7482; font-size: 11px; background: none; border: 1px solid #e5e8ef; border-radius: 6px; }
.language-pill svg { width: 14px; height: 14px; }
.topbar-avatar { width: 31px; height: 31px; font-size: 10px; }
.app-contact-dock, .app-view:not(.simple-merchant) .app-contact-dock:not([open]) { position: relative; inset: auto; z-index: 35; max-width: none; min-width: 0; min-height: 0; width: auto; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.app-contact-dock > summary { min-height: 33px; padding: 7px 8px; gap: 6px; color: #7a8390; }
.app-contact-dock .contact-surface-heading strong { font-size: 11px; font-weight: 400; }
.app-contact-dock .contact-surface-heading > svg { width: 15px; height: 15px; }
.app-contact-dock:not([open]) > summary > div, .app-contact-dock:not([open]) > summary .support-chevron { position: static; width: auto; height: auto; clip-path: none; overflow: visible; padding: 0; }
.app-contact-dock[open] { width: auto; inset: auto; box-shadow: none; }
.app-contact-dock[open] .site-contact-links { position: absolute; top: calc(100% + 12px); right: 0; display: grid; width: 305px; max-width: calc(100vw - 30px); max-height: min(480px, 65svh); gap: 8px; padding: 12px; border: 1px solid #e0e5ee; border-radius: 10px; box-shadow: 0 14px 40px #1b283326; background: #fff; overflow: auto; }
.app-contact-dock .site-contact-item { color: #344258; background: #f6f8fb; border-color: #e5eaf2; border-radius: 7px; }

/* Shared page and editor surfaces: useful density, no nested decorative cards. */
.page-content, .app-view:not(.hidden) .page-content { width: 100%; max-width: 1510px; margin: 0 auto; padding: 36px 36px 64px; }
.page-heading { margin-bottom: 30px; gap: 20px; align-items: flex-end; }
.page-heading .eyebrow { margin: 0 0 10px; color: #7e8997; font-size: 10px; }
.page-heading h1, .simple-merchant #page-studio .page-heading h1 { color: #202834; font-size: 29px; line-height: 1.4; font-weight: 600; letter-spacing: -.035em; margin: 0 0 10px; }
.page-heading p:not(.eyebrow) { color: #7c8592; font-size: 13px; max-width: 650px; line-height: 1.8; }
.cost-pill { flex-shrink: 0; min-height: 30px; padding: 5px 0; border: 0; background: transparent; color: #7f8996; font-size: 11px; gap: 6px; white-space: nowrap; }
.cost-pill svg { width: 14px; height: 14px; color: #96a0ae; }
.studio-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.article-studio-layout { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 24px; align-items: start; }
.image-studio-layout { grid-template-columns: minmax(360px, .88fr) minmax(0, 1.12fr); gap: 24px; }
.studio-input, .studio-result, .article-source-panel, .article-result-panel, .panel, .ws-card { min-width: 0; border: 1px solid #e2e6ec; border-radius: 12px; background: #fff; box-shadow: 0 2px 3px #19263d02; }
.studio-input, .studio-result, .article-source-panel, .article-result-panel { padding: 25px; }
.studio-result, .article-result-panel { min-height: 420px; position: static; }
.section-title-row { gap: 11px; margin-bottom: 23px; align-items: flex-start; }
.step-number { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 6px; border: 1px solid #e3e7ee; background: #f8f9fb; color: #7b879a; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.section-title-row h2, .result-title h2 { color: #303b4b; font-size: 15px; line-height: 1.7; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.section-title-row p, .result-title p { color: #8b93a0; font-size: 12px; line-height: 1.7; margin: 4px 0 0; }
.input-tabs { margin-bottom: 18px; }
.upload-zone { min-height: 177px; border: 1px dashed #ccd4df; border-radius: 9px; background: #fafbfc; padding: 25px 16px; color: #627189; gap: 9px; }
.upload-zone:hover, .upload-zone.dragover { background: #f2f5fa; border-color: #6b86b5; }
.upload-icon { width: 40px; height: 40px; border: 1px solid #e4e9f2; border-radius: 9px; background: #f0f3f8; color: #8494ad; }
.upload-icon svg { width: 20px; height: 20px; }
.upload-zone strong { color: #627086; font-size: 13px; font-weight: 500; }
.upload-zone small { max-width: 285px; color: #8c96a4; font-size: 11px; line-height: 1.7; }
.article-upload-zone { min-height: 145px; }
.article-upload-item { border-color: #e3e7ef; background: #f9fafc; border-radius: 8px; }
.studio-options, .analysis-details { border: 1px solid #e5e9ef; background: #fafbfc; border-radius: 8px; }
.studio-options summary, .analysis-details summary { padding: 12px 13px; font-size: 12px; font-weight: 500; color: #6f7c8e; }
.generate-actions { gap: 10px; }
.generate-actions .generate-button { min-height: 46px; font-size: 13px; }
.generate-actions .generate-button + .generate-button { color: #35465f; border-color: #d8e0ec; background: #f8fafc; }
.generate-actions .generate-button + .generate-button:hover { background: #edf2fa; }
.article-generate-button { min-height: 47px; margin-top: 22px; font-size: 13px; }
.result-header { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #edf0f4; align-items: flex-start; gap: 10px; }
.status-pill { min-height: 23px; padding: 4px 8px; border: 1px solid #e6eaf0; border-radius: 5px; background: #f7f9fb; color: #8b96a5; font-size: 10px; font-weight: 400; }
.status-pill.ready { background: #f7f9fb; color: #7b8797; }
.status-pill > span { background: #94a2b8; width: 4px; height: 4px; box-shadow: none; }
.result-empty, .article-result-panel .result-empty { min-height: 320px; padding: 35px 22px; }
.result-empty > span { width: 49px; height: 49px; background: #f2f5f9; border: 1px solid #e7ecf4; color: #98a6ba; border-radius: 12px; }
.result-empty > span svg { width: 23px; height: 23px; }
.result-empty h3 { font-size: 16px; font-weight: 500; color: #617087; line-height: 1.6; }
.result-empty p { font-size: 12px; line-height: 1.8; color: #9099a7; max-width: 300px; }
.result-editor textarea, .article-result-output textarea, .ws-result-body textarea { font-size: 16px; line-height: 1.95; color: #344158; }
.article-result-output { gap: 19px; }
.article-result-output #generated-article-title { font-size: 20px; font-weight: 600; border-color: transparent; padding-left: 0; box-shadow: none; }
.article-result-output #generated-article-deck { background: #f8f9fb; border-color: #edf0f5; color: #69758a; }
.article-result-output #generated-article-body { border: 0; border-radius: 0; padding: 5px 0; box-shadow: none; min-height: 420px; }
.article-result-output #generated-article-body:focus { outline: 2px solid #4168d433; outline-offset: 6px; }
.article-result-actions, .result-actions { border-top-color: #e9edf3; gap: 9px; flex-wrap: wrap; }
.article-hashtags span, .tag { color: #697c98; background: #eef3fa; border-radius: 5px; }
.result-loading { min-height: 320px; }
.result-loading h3 { font-size: 16px; font-weight: 500; color: #607188; }
.result-loading p { font-size: 12px; color: #8b96a5; }
.ai-loader { color: #6f85a7; border-color: #e8edf5; background: #f4f7fb; box-shadow: none; }
.loading-line { background: #edf1f7; }
.loading-line > span { background: #7d91b3; }
.result-error { border-color: #f2e2dd; background: #fffaf8; border-radius: 9px; }
.generated-image-card { border-color: #e0e6ef; border-radius: 9px; background: #f7f9fc; }
.history-meta-grid > div { background: #f8fafc; border-color: #e7ecf3; border-radius: 7px; }
.history-meta-grid strong { color: #4f6078; }
.history-meta-grid span { color: #8491a3; }

/* Purpose-led image studio and a true aspect-ratio planning canvas. */
.creative-direction-heading { margin-bottom: 24px; }
.creative-field-label { display: block; color: #455269; font-size: 12px; font-weight: 500; margin-bottom: 9px; }
.creative-purpose-list { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 23px; }
.creative-purpose-list button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; padding: 8px 10px; border: 1px solid #e2e7ef; border-radius: 6px; color: #758297; background: #fff; font-size: 11px; font-weight: 500; }
.creative-purpose-list button svg { width: 14px; height: 14px; }
.creative-purpose-list button:hover { border-color: #b6c3d8; background: #f7f9fc; }
.creative-purpose-list button[aria-pressed="true"] { background: #293548; border-color: #293548; color: #fff; }
.creative-purpose-list button:disabled { opacity: .6; }
.creative-brief-field { gap: 9px; }
.creative-brief-field textarea { min-height: 155px; background: #fcfdfe; font-size: 13px; line-height: 1.9; }
.creative-brief-field .label-row { align-items: center; }
.creative-character-count { color: #9da5b2; font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; }
.creative-character-count b { font-weight: 400; color: #78869b; }
.creative-brief-field small { color: #96a0af; font-size: 11px; }
.creative-example-row { display: flex; gap: 10px; align-items: center; margin: 5px 0 21px; }
.creative-example-row .text-button { min-height: 33px; padding: 5px 0; font-size: 11px; gap: 5px; white-space: nowrap; }
.creative-example-row .text-button svg { width: 13px; height: 13px; }
.creative-example-row > span { font-size: 10px; color: #a1a8b4; line-height: 1.7; }
.creative-confirm { padding: 13px; border: 1px solid #e9dfcd; background: #fffaf1; border-radius: 8px; margin-bottom: 17px; }
.creative-confirm p { font-size: 12px; color: #8b7250; margin: 0 0 11px; }
.creative-confirm button { min-height: 34px; font-size: 11px; padding: 7px 11px; margin-right: 5px; }
.creative-reference-panel { border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; margin-bottom: 20px; }
.creative-reference-panel summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 54px; list-style: none; cursor: pointer; }
.creative-reference-panel summary::-webkit-details-marker { display: none; }
.creative-reference-panel summary > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.creative-reference-panel summary svg { width: 15px; height: 15px; color: #8896ac; }
.creative-reference-panel summary strong { color: #5d6a7e; font-size: 12px; font-weight: 500; }
.creative-reference-panel summary small { font-size: 10px; color: #9ba4b2; }
.creative-reference-panel[open] summary > svg { transform: rotate(45deg); }
.creative-reference-panel .upload-zone { margin: 0 0 15px; }
.creative-reference-panel .article-upload-list { padding-bottom: 10px; }
.creative-format-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.creative-format-heading > strong { font-size: 12px; color: #5d6a7f; font-weight: 500; }
.creative-format-shortcuts { display: flex; gap: 2px; flex-wrap: wrap; }
.creative-format-shortcuts button { border: 0; background: transparent; color: #8996aa; font-size: 10px; min-height: 30px; padding: 6px; border-radius: 5px; }
.creative-format-shortcuts button:hover, .creative-format-shortcuts button[aria-pressed="true"] { color: #486285; background: #eff3f9; }
.image-settings-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; }
.image-settings-grid .field { font-size: 11px; color: #8a95a6; }
.image-settings-grid .field select { font-size: 12px; min-height: 40px; color: #586b87; }
.image-model-field[hidden], #image-purpose[hidden] { display: none !important; }
.creative-automatic-note { display: flex; align-items: center; gap: 6px; margin-top: 19px; color: #8b98aa; font-size: 10px; }
.creative-automatic-note svg { width: 13px; height: 13px; }
#page-image #generate-image { margin-top: 10px; }
#image-result-panel { padding: 24px; position: sticky; top: 88px; scroll-margin-top: 85px; }
#image-result-empty { display: block; padding: 0; min-height: 0; }
.creative-preview-canvas { display: flex; flex-direction: column; align-items: center; justify-content: center; container-type: inline-size; min-height: 316px; padding: 28px 35px 18px; border-radius: 8px; background: #f1f3f6; overflow: hidden; }
.creative-artboard { display: flex; position: relative; flex-direction: column; justify-content: space-between; --artboard-edge: min(267px, 100cqw); width: calc(var(--artboard-edge) * var(--artboard-width-factor, 1)); height: calc(var(--artboard-edge) * var(--artboard-height-factor, 1)); flex-shrink: 0; aspect-ratio: 1; padding: 22px; border: 1px solid #e0e4eb; background: #fff; box-shadow: 0 7px 20px #3a455b08; overflow: hidden; transition: width 180ms ease; }
.creative-artboard::after { content: ""; position: absolute; width: 57%; aspect-ratio: 1; border: 1px solid #e3e8f0; border-radius: 50%; top: -14%; right: -16%; }
.creative-artboard-mark { color: #536784; font-size: 28px; letter-spacing: -.085em; font-weight: 700; line-height: 1; font-family: Arial, sans-serif; }
.creative-artboard-line { position: absolute; left: 22px; bottom: 68px; width: 30px; height: 2px; background: #afbf98; }
.creative-artboard-caption { margin-top: auto; padding-top: 20px; font-size: 16px; color: #61718a; font-weight: 650; letter-spacing: -.025em; line-height: 1.18; text-align: left; }
#creative-ratio-label { position: absolute; top: 22px; right: 18px; color: #b0b9c7; font-size: 9px; line-height: 1.2; }
.creative-preview-canvas .creative-preview-note { color: #a4adbb; font-size: 10px; margin: 14px 0 0; text-align: center; }
.creative-preview-caption { text-align: center; padding: 19px 10px 20px; }
.creative-preview-caption h3 { color: #62738d; margin: 0 0 7px; font-size: 15px; font-weight: 500; }
.creative-preview-caption p { color: #96a1b0; font-size: 11px; line-height: 1.9; margin: 0 auto; max-width: 330px; }
.creative-planner { padding: 16px 0 0; border-top: 1px solid #edf0f5; text-align: left; }
.creative-planner > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 10px; color: #96a1b1; }
.creative-planner strong { padding: 3px 6px; border-radius: 4px; color: #798ba5; background: #f1f5fa; font-size: 10px; font-weight: 400; }
.creative-planner #creative-brief-preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; max-width: none; margin: 10px 0 0; color: #8291a6; font-size: 11px; line-height: 1.85; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.creative-quality-note { display: flex; gap: 7px; align-items: flex-start; margin: 16px 0 0; color: #8c99ad; font-size: 11px; line-height: 1.8; }
.creative-quality-note svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; }

/* Content management and administration use the same component vocabulary. */
.metric, .quick-start, .setup-progress, .knowledge-card, .plan-card { background: #fff; border-color: #e3e7ef; border-radius: 10px; box-shadow: none; }
.metric { padding: 22px; }
.metric-top { color: #8a95a6; font-size: 12px; }
.metric-top svg { color: #99a8bd; }
.metric > strong { font-size: 33px; color: #2a3649; font-weight: 550; }
.metric p { color: #8d98a8; font-size: 11px; }
.metric .positive { color: #5b876e; }
.quick-start h2, .setup-progress h2 { color: #445570; }
.quick-start p, .setup-progress p { color: #8190a7; }
.section-icon { background: #eef3fa; color: #778ead; border: 1px solid #e1e8f3; border-radius: 9px; }
.panel-heading { padding: 22px; border-bottom-color: #eef1f5; }
.panel-heading h2 { color: #405069; font-size: 16px; }
.panel-heading p { color: #8b97a9; font-size: 12px; }
.table-wrap { max-width: 100%; overflow: auto; border-radius: 9px; border-color: #e5eaf2; }
table th { background: #f8fafc; color: #8190a6; font-size: 11px; font-weight: 500; border-color: #e8edf5; }
table td { font-size: 12px; line-height: 1.7; border-color: #eef1f6; padding-top: 17px; padding-bottom: 17px; }
table tbody tr:hover { background: #fafbfe; }
.history-toolbar, .admin-toolbar { border-color: #e4eaf2; background: #fff; border-radius: 9px; }
.history-toolbar .search-box, .search-box { border-color: #dfe6ef; border-radius: 7px; background: #fff; }
.search-box input { font-size: 13px; color: #536780; }
.admin-tabs { border-color: #e5eaf2; background: transparent; padding: 0 0 12px; border-radius: 0; gap: 5px; flex-wrap: wrap; }
.admin-tabs > button { font-size: 12px; border-radius: 6px; min-height: 38px; color: #8190a7; }
.admin-tabs > button.active { color: #344967; background: #eaf0f8; }
.settings-card, .admin-stat, .site-settings-preview { border-color: #e2e8f2; background: #fff; border-radius: 10px; box-shadow: none; }
.ws-heading-mark { display: none; }
.ws-tabs { margin: 0 0 26px; padding: 0; border: 0; border-bottom: 1px solid #e2e7ef; border-radius: 0; background: transparent; gap: 26px; }
.ws-tabs > button { flex: 0 1 auto; position: relative; min-height: 47px; border-radius: 0; background: transparent; color: #8793a5; font-size: 13px; font-weight: 450; padding: 9px 0 15px; }
.ws-tabs > button.active { color: #334660; background: transparent; box-shadow: none; font-weight: 600; }
.ws-tabs > button.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: #536e98; }
.ws-tabs > button svg { width: 16px; height: 16px; }
.ws-card { padding: 23px; }
.ws-card h2 { color: #43556f; font-size: 16px; }
.ws-card h3 { color: #475d7a; }
.ws-muted, .ws-period, .ws-section-header p { color: #8b98ab; font-size: 12px; }
.ws-section-header h2 { color: #3a4e6b; font-size: 20px; }
.ws-count, .ws-kind { color: #6f86a6; background: #eff4fb; border-radius: 5px; font-size: 11px; font-weight: 500; }
.ws-review-row { border-color: #e2e9f3; background: #fbfcfe; border-radius: 8px; }
.ws-review-row label { color: #8192ab; font-size: 11px; font-weight: 500; }
.ws-review-row textarea { color: #546b8a; font-size: 14px; }
.ws-submit-box { background: #f7f9fc; border-color: #e2e8f3; border-radius: 8px; padding: 18px; }
.ws-submit-box strong { color: #3e5474; font-size: 29px; }
.ws-submit-box > div > span, .ws-submit-box p { color: #8595ad; font-size: 11px; }
.ws-batch-choice { background: #f8fafd; color: #617899; }
.ws-batch-choice.active { background: #eff4fb; border-color: #cedbed; }
.ws-batch-choice small { color: #9aa7bc; }
.ws-batch-choice b { color: #6983a7; }
.ws-result-item { border-color: #e0e8f3; border-radius: 8px; }
.ws-original-review { background: #f5f8fd; color: #8295b2; }
.ws-inline-editor, .ws-capture-editor { background: #f7f9fd; border-color: #e0e8f5; }
.ws-task-icon, .ws-item-number { background: #eff4fb; color: #7f96b7; border-radius: 7px; }
.ws-empty { min-height: 180px; }
.ws-empty p, .empty-state { color: #99a5b8; font-size: 12px; }
.ws-empty > svg { color: #a4b5ce; width: 29px; height: 29px; }
.ws-empty h3 { color: #748ba9; }
.ws-period-picker { border-color: #dee7f4; border-radius: 7px; }
.ws-period-picker button { color: #7b90b0; font-size: 12px; }
.ws-period-picker button[aria-pressed="true"] { background: #3a506f; }
.ws-metric > svg { color: #93a9c8; }
#history-mark-panel { background: #f8fafe; border-color: #e0e8f5; border-radius: 10px; }
#history-mark-form input:not([type="checkbox"]), #history-mark-form select, #history-mark-form textarea { border-color: #dce5f3; border-radius: 7px; color: #586f91; }
#history-mark-feedback { color: #597fa2; }
.modal-backdrop { background: #131c2b73; backdrop-filter: blur(3px); }
.modal { border: 1px solid #e0e7f2; border-radius: 13px; box-shadow: 0 22px 80px #12213729; }
.modal-header { padding: 23px 25px; border-bottom-color: #edf1f7; }
.modal-header h2 { font-size: 19px; color: #3b5070; }
.modal-body { padding: 25px; }
.toast { border: 1px solid #dce6f3; border-radius: 9px; box-shadow: 0 6px 25px #152b4d19; font-size: 13px; }
.generation-task-dock { background: #f4f7fc; color: #647fa3; border-bottom-color: #e1e9f6; }
.generation-task-dock-heading strong { font-size: 12px; }
.generation-task-item { border-color: #dbe6f6; background: #fff; }

/* Secondary text remains readable; subtle borders do the visual de-emphasis. */
.app-view .page-heading p:not(.eyebrow), .app-view .section-title-row p,
.app-view .result-title p, .app-view .result-empty p, .app-view .upload-zone small,
.app-view .field small, .app-view .field-hint, .app-view .cost-pill,
.creative-example-row > span, .creative-brief-field small,
.creative-reference-panel summary small, .creative-automatic-note,
.creative-preview-caption p, .creative-planner #creative-brief-preview,
.creative-quality-note, .creative-planner > div,
.ws-muted, .ws-period, .ws-section-header p, .ws-empty p,
.ws-submit-box p, .ws-submit-box > div > span, .ws-batch-choice small,
.metric p, .empty-state { color: #657185; }
.creative-purpose-list button, .creative-format-shortcuts button,
.creative-reference-panel summary strong, .image-settings-grid .field,
.creative-character-count, .creative-character-count b { color: #596b84; }
.creative-purpose-list button[aria-pressed="true"] { color: #fff; }
.creative-artboard { text-align: left; }
.creative-artboard-mark { align-self: flex-start; }
.creative-artboard-caption { width: 100%; }
#sidebar-name { color: #38465c; font-size: 12px; }
#sidebar-role { color: #758299; font-size: 11px; }
#topbar-avatar { font-size: 11px; white-space: nowrap; line-height: 1; letter-spacing: 0; }
.app-view .ws-tabs > button, .app-view .main-nav .nav-item { font-size: 14px; }
.app-view .main-nav .nav-item.active { color: #263249; }

@media (min-width: 1500px) {
  .image-studio-layout { grid-template-columns: minmax(380px, .82fr) minmax(0, 1.18fr); }
  .creative-preview-canvas { min-height: 382px; }
  .creative-artboard { --artboard-edge: min(318px, 100cqw); padding: 28px; }
  .creative-artboard-line { left: 28px; }
}
@media (min-width: 821px) and (max-width: 1150px) {
  :root { --sidebar: 198px; }
  .sidebar-brand { padding-inline: 4px; gap: 7px; }
  .sidebar-brand strong { font-size: 14px; }
  .page-content, .app-view:not(.hidden) .page-content { padding: 28px 24px 52px; }
  .studio-layout, .article-studio-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-result, .article-result-panel { min-height: 0; }
  #image-result-panel { position: static; }
  .auth-brand { padding: 37px 38px 25px; }
  .auth-panel { padding-inline: 32px; }
  .auth-promise { margin-top: 70px; }
  .auth-promise h1 { font-size: 38px; }
  .auth-capabilities { gap: 13px; flex-wrap: wrap; }
  .page-heading h1, .simple-merchant #page-studio .page-heading h1 { font-size: 27px; }
}
@media (max-width: 820px) {
  :root { --topbar: 60px; }
  .auth-view { display: block; background: #fff; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100svh; padding: 37px 25px 30px; justify-content: flex-start; background: #fff; }
  .auth-form-wrap { max-width: 405px; }
  .auth-topbar { top: 31px; right: 24px; }
  .auth-topbar .language-switch { padding: 5px 8px; border: 0; min-height: 34px; }
  .mobile-brand { display: block; margin: 0 0 55px !important; min-height: 38px; padding-left: 45px; color: #29364b !important; font-size: 19px !important; letter-spacing: -.04em; }
  .mobile-brand::before { content: "G"; width: 34px; height: 34px; top: 1px; border-radius: 8px; background: #263348; color: #fff; font-family: Arial, sans-serif; font-size: 25px; font-weight: 700; }
  .mobile-brand span { font-size: 9px; color: #96a1b2; margin-top: 3px; }
  .auth-heading h2 { font-size: 29px; }
  .auth-heading p { font-size: 13px; color: #909baa; }
  .auth-tabs { margin: 26px 0 27px; }
  .auth-form { gap: 19px; }
  .auth-form .field { font-size: 13px; }
  .auth-form input:not([type="checkbox"]), .auth-form .captcha-box { height: 49px; }
  .auth-form .primary-button { min-height: 49px; }
  .auth-form .checkbox-row { font-size: 12px; }
  .auth-reassurance { font-size: 11px; margin-top: 24px; }
  .mobile-auth-contact { display: block; width: 100%; max-width: 405px; margin-top: 31px; padding: 20px 0 0; border-color: #e9edf4; }
  .mobile-auth-contact summary { justify-content: center; color: #92a0b3; }
  .mobile-auth-contact .contact-surface-heading strong { font-size: 12px; }
  .sidebar { width: min(282px, calc(100vw - 48px)); z-index: 70; }
  .sidebar-scrim { z-index: 65; background: #15253d70; backdrop-filter: blur(2px); }
  .sidebar-brand { height: 80px; }
  .main-nav .nav-item { min-height: 46px; font-size: 14px; }
  .topbar { height: 60px; padding: 0 14px; gap: 9px; }
  .topbar-actions { gap: 6px; }
  .topbar-avatar { width: 29px; height: 29px; flex: 0 0 29px; }
  .breadcrumb { min-width: 0; margin-right: auto; font-size: 12px; }
  .breadcrumb strong { color: #657a99; }
  .breadcrumb > span, .breadcrumb > svg { display: none; }
  .language-pill { min-height: 32px; padding: 6px; font-size: 10px; border: 0; }
  .language-pill > svg { display: none; }
  .app-contact-dock > summary { min-height: 32px; padding: 6px; }
  .app-contact-dock > summary > div, .app-contact-dock:not([open]) > summary > div, .app-contact-dock > summary .support-chevron, .app-contact-dock:not([open]) > summary .support-chevron { display: none; }
  .app-contact-dock[open] .site-contact-links { right: -58px; top: calc(100% + 13px); }
  .notification-button { display: none; }
  .page-content, .app-view:not(.hidden) .page-content { padding: 25px 17px calc(92px + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 22px; align-items: flex-start; gap: 11px; }
  .page-heading h1, .simple-merchant #page-studio .page-heading h1 { font-size: 24px; line-height: 1.45; margin-bottom: 8px; }
  .page-heading .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .page-heading p:not(.eyebrow) { font-size: 12px; line-height: 1.85; }
  .cost-pill { font-size: 10px; min-height: 20px; padding: 0; }
  .studio-layout, .article-studio-layout, .image-studio-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .studio-input, .studio-result, .article-source-panel, .article-result-panel { padding: 20px; border-radius: 11px; }
  .studio-result, .article-result-panel { position: static; min-height: 0; }
  .section-title-row { margin-bottom: 21px; }
  .section-title-row h2, .result-title h2 { font-size: 15px; }
  .section-title-row p, .result-title p { font-size: 12px; }
  .field { font-size: 13px; }
  .field small, .field-hint, .char-count, .ws-char-count { font-size: 12px; }
  input:not([type="checkbox"]):not([type="range"]), select, textarea,
  .field input:not([type="checkbox"]), .field select, .field textarea,
  .ws-field input, .ws-field select, .ws-review-row textarea, .ws-result-body textarea,
  #history-mark-form input:not([type="checkbox"]), #history-mark-form select, #history-mark-form textarea { font-size: 16px; }
  .field input:not([type="checkbox"]), .field select, .ws-field input, .ws-field select { min-height: 46px; }
  .upload-zone { min-height: 160px; padding: 24px 12px; }
  .upload-zone strong { font-size: 13px; }
  .upload-zone small { font-size: 11px; }
  .result-empty, .article-result-panel .result-empty { min-height: 205px; padding: 27px 12px; }
  .result-empty h3 { font-size: 15px; }
  .result-empty p { font-size: 12px; }
  .generate-actions { grid-template-columns: 1fr; }
  .generate-actions .generate-button, .article-generate-button { min-height: 48px; font-size: 14px; }
  .article-result-output #generated-article-title { font-size: 20px; }
  .article-result-output #generated-article-body { min-height: 350px; }
  .creative-purpose-list { gap: 7px; margin-bottom: 22px; }
  .creative-purpose-list button { min-height: 39px; padding: 8px 10px; font-size: 12px; }
  .creative-field-label { font-size: 12px; }
  .creative-brief-field textarea { min-height: 176px; }
  .creative-brief-field small { font-size: 12px; }
  .creative-example-row { display: block; margin: 5px 0 17px; }
  .creative-example-row .text-button { min-height: 40px; font-size: 12px; }
  .creative-example-row > span { display: block; font-size: 11px; }
  .creative-reference-panel summary { min-height: 56px; }
  .creative-reference-panel summary strong { font-size: 13px; }
  .creative-reference-panel summary small { font-size: 11px; }
  .creative-format-heading > strong { font-size: 13px; }
  .creative-format-shortcuts button { min-height: 36px; font-size: 11px; }
  .image-settings-grid .field { font-size: 12px; }
  .image-settings-grid .field select { font-size: 16px; min-height: 46px; }
  .creative-automatic-note { font-size: 11px; margin-top: 19px; }
  #image-result-panel { position: static; top: auto; padding: 20px; }
  #image-result-empty { padding: 0; }
  .creative-preview-canvas { min-height: 250px; padding: 22px 28px 16px; }
  .creative-artboard { --artboard-edge: min(216px, 100cqw); padding: 20px; }
  .creative-preview-caption { padding-bottom: 15px; }
  .creative-preview-caption p, .creative-planner #creative-brief-preview { font-size: 12px; }
  .creative-quality-note { font-size: 12px; }
  .creative-confirm button { min-height: 40px; font-size: 12px; }
  .mobile-bottom-nav { display: grid; position: fixed; z-index: 50; inset: auto 0 0; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #e3e9f2; background: #fffffff7; backdrop-filter: blur(16px); box-shadow: none; }
  .mobile-bottom-nav .nav-item { position: relative; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; min-width: 0; min-height: 48px; margin: 0; padding: 5px 2px; color: #9aa8bc; border-radius: 0; font-size: 10px; line-height: 1.5; }
  .mobile-bottom-nav .nav-item.active { color: #425f8a; background: transparent; }
  .mobile-bottom-nav .nav-item > svg { width: 20px; height: 20px; stroke-width: 1.7; }
  .mobile-bottom-nav .nav-item.active::after { content: ""; position: absolute; top: -6px; left: 25%; right: 25%; height: 2px; background: #617ca6; border-radius: 0 0 2px 2px; }
  .ws-tabs { gap: 20px; overflow-x: auto; overflow-y: hidden; margin-bottom: 21px; scrollbar-width: thin; }
  .ws-tabs > button { flex-shrink: 0; min-height: 44px; font-size: 12px; gap: 6px; }
  .ws-card { padding: 19px; }
  .ws-card h2 { font-size: 16px; }
  .ws-section-header { flex-wrap: wrap; margin-bottom: 20px; }
  .ws-section-header p, .ws-muted, .ws-period { font-size: 12px; }
  .ws-button { min-height: 43px; font-size: 12px; }
  .ws-batch-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ws-review-row { padding: 13px; }
  .ws-review-row label { font-size: 12px; }
  .ws-submit-box p, .ws-submit-box > div > span { font-size: 12px; }
  .ws-draft-grid { grid-template-columns: 1fr; }
  .ws-empty p, .empty-state { font-size: 12px; }
  .ws-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .ws-task { padding: 17px; grid-template-columns: 1fr; }
  .ws-task .ws-actions { margin-left: 55px; }
  .ws-task-title h3 { font-size: 14px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
  .admin-tabs > button { flex-shrink: 0; font-size: 12px; }
  .metric { padding: 18px; }
  .metric > strong { font-size: 29px; }
  .panel-heading { padding: 19px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100svh - 24px); border-radius: 12px; }
  .modal-header { padding: 20px; }
  .modal-body { padding: 20px; }
  .toast-root { inset: calc(var(--topbar) + 10px) 12px auto; width: auto; }
  #history-mark-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .page-heading { flex-direction: column; }
  .captcha-row { grid-template-columns: minmax(0, 1fr) 115px; }
  .auth-form .field-grid { grid-template-columns: 1fr; }
  .image-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-options-grid { grid-template-columns: 1fr; }
  .result-header { flex-wrap: wrap; }
}
@media (max-width: 359px) {
  .auth-panel { padding-inline: 18px; }
  .auth-topbar { right: 16px; }
  .mobile-brand { font-size: 17px !important; padding-left: 40px; }
  .mobile-brand span { font-size: 8px; }
  .page-content, .app-view:not(.hidden) .page-content { padding-inline: 12px; }
  .studio-input, .studio-result, .article-source-panel, .article-result-panel, #image-result-panel { padding: 16px; }
  .creative-purpose-list button { padding-inline: 8px; font-size: 11px; }
  .creative-format-heading { display: block; }
  .creative-format-shortcuts { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.creative-service-status { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0; padding:12px 14px; border:1px solid #e3d5b7; background:#fffaf0; border-radius:10px; color:#715b32; font-size:13px; }
.creative-service-status .text-button { flex-shrink:0; }
