@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');.pm-creator-dialog.glass-panel { background: #19161f; backdrop-filter: none; box-shadow: 0 24px 90px #0009; }
.pm-create-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.pm-create-tabs > span { font-size: 12px; color: #b6a9c2; margin-right: 4px; }
.pm-composition-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.pm-composition-toolbar > span { font-size: 12px; color: #c6b9d0; }
.pm-creator-dialog .template-creator-body { gap: 0 !important; }
.pm-composition-sidebar { box-sizing: border-box; min-width: 0; overflow: hidden; margin-right: 14px; transition: width .24s ease, padding .24s ease, margin .24s ease, opacity .18s ease, transform .24s ease; }
.pm-composition-sidebar > * { min-width: 326px; }
.template-creator-body.is-sidebar-collapsed > .pm-composition-sidebar { width: 0 !important; padding-right: 0 !important; margin-right: 0; border-right: 0 !important; opacity: 0; transform: translateX(-24px); pointer-events: none; visibility: hidden; }
@media (max-width: 800px) { .template-creator-body.is-sidebar-collapsed > .pm-composition-sidebar { max-height: 0; }.pm-composition-sidebar { margin-right: 0; margin-bottom: 12px; }.pm-composition-sidebar > * { min-width: 0; }.pm-composition-detail > div:first-child { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .pm-composition-sidebar { transition: none; } }
.pm-header-quota { margin-left: auto; padding: 0 12px; font-size: 11px; }
.pm-header-quota .production-account-tools { gap: 8px; }
.pm-header-quota + button { margin-left: 0 !important; }
@media (max-width: 800px) { .pm-creator-header { flex-wrap: wrap; }.pm-header-quota { order: 1; flex-basis: 100%; padding: 0; margin-left: 0; }.pm-header-quota + button { margin-left: auto !important; } }
.production-manager { max-width: 1900px; margin: auto; padding: 30px; color: var(--text-primary); }
.production-embedded { padding: 4px; }
.production-manager .production-job.production-job-with-thumbnail { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: center; }
.production-job-thumbnail { display: block; width: 78px; height: 104px; overflow: hidden; border-radius: 5px; background: #211c29; pointer-events: none; }
.production-job-thumbnail > span { display: grid; height: 100%; place-items: center; font-size: 10px; }
.production-job-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .template-creator-body { flex-direction: column; overflow-y: auto; }
  .template-creator-body > div { width: 100% !important; flex-shrink: 0 !important; overflow-y: visible !important; }
  .template-creator-body > div:last-child { flex: none !important; }
  .template-creator-body > div:last-child > div:first-child { flex-wrap: wrap; }
}
.production-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.production-eyebrow { font-size: 11px; letter-spacing: .14em; color: #bb97ed; }
.production-header h1 { font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -.035em; margin: 10px 0; }
.production-header p, .production-result-heading p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.production-button { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; border: 1px solid #383144; border-radius: 8px; padding: 11px 15px; font-size: 13px; font-weight: 600; color: #eee8f7; white-space: nowrap; }
.production-manager .secondary { background: #221c2c; color: #e2d6f4; border-color: #3c304c; }
.production-manager .secondary:hover { background: #30253d; }
.production-manager button { font-size: 12px; padding: 10px 13px; }
.production-manager a { color: #c6a7f1; }
.production-manager a.disabled { pointer-events: none; opacity: .5; }
.production-topline { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #292530; flex-wrap: wrap; }
.production-topline nav { display: flex; gap: 7px; }
.production-topline nav button { background: transparent; border-color: transparent; color: #a59eae; }
.production-topline nav button[aria-pressed=true] { background: #2d203e; color: #e7d2ff; border-color: #4d3269; }
.production-account { font-size: 12px; color: #d5b180; }
.production-account.online { color: #a3c7ad; }
.production-account-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.production-quotas { display: flex; gap: 12px; align-items: center; }
.production-quota { display: grid; grid-template-columns: 36px auto; align-items: center; gap: 3px 5px; font-size: 10px; color: #9d92a9; cursor: help; border-radius: 5px; }
.production-quota-label { grid-column: 2; grid-row: 1; }
.production-quota-countdown { grid-column: 1 / -1; font-size: 9px; line-height: 1.3; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.production-quota:focus-visible { outline: 2px solid #b68be9; outline-offset: 4px; }
.production-quota-ring { --quota-color: #9374ad; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(var(--quota-color) var(--quota-progress), #302937 0); position: relative; }
.production-quota-ring::before { content: ''; position: absolute; inset: 2px; border-radius: inherit; background: #15131c; }
.production-quota-ring strong { position: relative; color: #c8bdcf; font-size: 9px; font-weight: 500; font-variant-numeric: tabular-nums; }
.production-quota.low .production-quota-ring { --quota-color: #d49d70; }
.production-inline-button { padding: 4px 8px !important; margin-left: 9px; background: transparent; border-color: #3a3244; color: #c9c0d6; }
.production-budget { font-size: 11px; color: #928c9b; margin: 13px 0 22px; line-height: 1.6; }
.production-workspace { display: grid; grid-template-columns: 310px 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.production-workspace.reference-only { display: block; }
.production-workspace.reference-only .production-compose { max-width: 100%; }
.production-workspace.without-form { grid-template-columns: 320px minmax(0, 1fr); }
.production-compose, .production-joblist, .production-variant { border: 1px solid #2c2735; background: #15131c; border-radius: 13px; padding: 19px; }
.production-manager h2 { font-size: 17px; margin: 0 0 16px; letter-spacing: -.02em; }
.production-manager h3 { font-size: 15px; margin: 0; }
.production-manager label { display: flex; flex-direction: column; gap: 8px; margin: 15px 0; font-size: 12px; color: #cec6d7; }
.production-manager input:not([type=checkbox]):not([type=color]):not([type=radio]), .production-manager textarea, .production-manager select { width: 100%; min-width: 0; background: #0f0e15; border: 1px solid #383040; border-radius: 7px; color: #eee8f4; padding: 10px; font-size: 12px; line-height: 1.5; }
.production-reinterpretation { display: flex; gap: 14px; flex-wrap: wrap; }
.production-manager .production-reinterpret-option { flex-direction: row; align-items: center; gap: 5px; margin: 0; cursor: pointer; }
.production-reinterpret-option input { accent-color: #b28bd6; margin: 0; }
.production-manager textarea { resize: vertical; }
.production-manager input:focus-visible, .production-manager textarea:focus-visible, .production-manager select:focus-visible, .production-manager button:focus-visible, .production-manager a:focus-visible { outline: 2px solid #b68be9; outline-offset: 3px; }
.production-switch { display: flex; gap: 4px; background: #0e0d13; padding: 4px; border-radius: 8px; flex-wrap: wrap; }
.production-switch button { flex: 1; background: transparent; border-color: transparent; color: #aaa0b7; padding: 8px !important; }
.production-switch button[aria-pressed=true] { background: #352444; border-color: #4d3261; color: #f2e8ff; }
.production-form-pair { display: grid; grid-template-columns: 1fr; }
.production-manager fieldset { border: 0; padding: 0; margin: 15px 0; min-width: 0; }
.production-manager legend { font-size: 12px; margin-bottom: 10px; color: #cec6d7; }
.production-recipes { max-height: 240px; overflow-y: auto; border: 1px solid #302837; border-radius: 8px; padding: 5px; }
.production-manager .production-recipe { display: flex; flex-direction: row; align-items: start; gap: 8px; margin: 0; padding: 9px 5px; border-bottom: 1px solid #27222e; cursor: pointer; }
.production-recipe input { margin-top: 2px; accent-color: #a066d4; }
.production-recipe small { display: block; font-size: 10px; color: #93899f; margin-top: 4px; line-height: 1.5; }
.production-manager details { margin: 15px 0; font-size: 12px; line-height: 1.6; }
.production-manager summary { color: #b9a4ce; cursor: pointer; }
.production-palette { display: flex; justify-content: space-between; gap: 8px; }
.production-palette label { font-size: 10px; }
.production-palette input { width: 40px; height: 30px; border: 0; background: transparent; }
.production-submit { width: 100%; margin: 12px 0; }
.production-muted { color: #9c93a8; font-size: 12px; line-height: 1.7; }
.production-reference-thumb { display: block; max-width: 100%; max-height: 240px; object-fit: contain; margin: 15px auto; border-radius: 6px; }
.production-upload small { font-size: 10px; color: #978ba3; line-height: 1.5; }
.production-dropzone { margin: 15px 0; padding: 0 12px 12px; border: 1px dashed #4a3858; border-radius: 9px; }
.production-dropzone.dragging { background: #2b2038; border-color: #bd8ee6; }
.production-dropzone > [role=status] { display: block; font-size: 10px; overflow-wrap: anywhere; }
.production-custom-size { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.production-source-frame { position: relative; display: grid; place-items: center; }
.production-source-image { position: relative; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; overflow: hidden; }
.production-previews .production-source-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.production-source-error { position: absolute; inset: 12px; display: grid; place-items: center; font-size: 12px; color: #e8acac; background: #100e15; }
.production-source-region { position: absolute; border: 2px dashed #c5a1ef; box-sizing: border-box; pointer-events: none; }
.production-joblist { padding: 14px; }
.production-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 12px; }
.production-card-heading h2 { margin-bottom: 0; }
.production-card-heading > span { font-size: 11px; color: #b5a8c4; }
.production-manager .production-job { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 9px; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 12px 9px; margin-top: 7px; }
.production-job.selected { background: #2a1f36 !important; border-color: #65447e !important; }
.production-job:hover { background: #221b2c !important; }
.production-job strong { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.production-job small { font-size: 10px; color: #8f859b; line-height: 1.5; }
.production-state { color: #b4a2c9; font-size: 11px; }
.state-running { color: #d8b4ff; }.state-ready { color: #a2c9b2; }.state-failed,.state-needs_auth,.state-waiting_quota { color: #e1b48c; }
.production-results { min-width: 0; }
.production-result-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 10px; }
.production-result-heading h2 { font-size: 20px; margin: 8px 0; overflow-wrap: anywhere; }
.production-result-heading p { font-size: 12px; overflow-wrap: anywhere; }
.production-brief { padding: 10px 14px; background: #17121e; border-radius: 8px; }
.production-brief p { white-space: pre-wrap; overflow-wrap: anywhere; }
.production-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 17px; }
.production-variant { min-width: 0; }
.production-variant h3 { line-height: 1.5; }
.production-chip { white-space: nowrap; font-size: 10px !important; padding: 4px 7px; border-radius: 20px; background: #30233c; color: #d6b9ef !important; }
.production-chip.approved { background: #20342a; color: #b4d8c2 !important; }
.production-previews { display: grid; margin-top: 14px; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.production-previews.comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.production-previews figure { margin: 0; min-width: 0; }
.production-design-frame, .production-previews .production-source-frame { height: clamp(220px, 60dvh, 650px); min-width: 0; max-width: 100%; overflow: hidden; background: #100e15; border-radius: 8px; padding: 12px; box-sizing: border-box; }
@media (max-width: 700px) { .production-previews.comparison { grid-template-columns: minmax(0, 1fr); } }
.production-job-filters { flex-wrap: wrap; }
.production-manager .production-job-filters button { padding: 8px; flex: 1 1 auto; }
.production-manager .production-background-format { margin: 12px 0 18px; padding: 12px 14px; border: 1px solid #493852; border-radius: 8px; }
.production-background-format > div { display: flex; gap: 16px; flex-wrap: wrap; }
.production-manager .production-background-format label { display: flex; flex-direction: row; align-items: center; gap: 7px; margin: 0; cursor: pointer; }
.production-manager .production-background-format input[type=radio] { width: auto; margin: 0; accent-color: #b68be9; }
.production-background-format small { display: block; color: #b6a9c2; font-size: 11px; line-height: 1.5; margin-top: 10px; }
.production-previews figure > img { display: block; width: 100%; max-height: 650px; object-fit: contain; }
.production-previews figcaption { font-size: 10px; color: #93889f; line-height: 1.6; margin-top: 8px; }
.production-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.production-manager .production-delete { background: transparent; border-color: #65424c; color: #d5a2ad; }
.production-manager .production-delete:hover:not(:disabled) { background: rgba(248, 113, 113, 0.12); }
.production-manager .production-discard { background: transparent; border-color: rgba(248, 113, 113, 0.55); color: #f87171; }
.production-manager .production-discard:hover:not(:disabled) { background: rgba(248, 113, 113, 0.12); }
.production-delete-modal { box-sizing: border-box; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; margin: auto; padding: 24px; border: 1px solid #413247; border-radius: 14px; background: #19151f; color: #e9e1ee; box-shadow: 0 24px 80px #0008; }
.production-delete-modal::backdrop { background: #050309b8; backdrop-filter: blur(3px); }
.production-delete-modal > p { font-size: 13px; line-height: 1.7; }
.production-delete-name { font-weight: 600; overflow-wrap: anywhere; }
.production-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.production-prompt-modal { box-sizing: border-box; width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; margin: auto; padding: 22px; border: 1px solid #413247; border-radius: 14px; background: #19151f; color: #e9e1ee; box-shadow: 0 24px 80px #0008; }
.production-prompt-modal::backdrop { background: #050309c9; backdrop-filter: blur(3px); }
.production-prompt-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.production-prompt-heading h2 { margin: 5px 0 0; }
.production-prompt-note { padding: 10px 12px; border-radius: 8px; background: #261d31; color: #d6c3e8; font-size: 12px; line-height: 1.6; }
.production-prompt-list { max-height: min(62vh, 720px); overflow: auto; }
.production-prompt-list details { border-top: 1px solid #302637; padding-top: 12px; }
.production-prompt-list textarea { box-sizing: border-box; min-height: 300px; max-height: 55vh; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre; overflow: auto; resize: vertical; }
.production-prompt-list .production-actions { margin: 10px 0 4px; align-items: center; }
@media (max-width: 640px) { .production-prompt-modal { padding: 16px; } .production-prompt-list textarea { min-height: 240px; } }
.production-text-link { font-size: 11px; }
.production-warnings { color: #d8b790; padding: 10px; background: #2b221d; border-radius: 7px; }
.production-warnings summary { color: #dfbd95; }
.production-manager ul { padding-left: 19px; }
.production-transcriptions li { margin-bottom: 12px; }.production-transcriptions span { display: block; font-size: 11px; color: #a99ab7; }
.production-font-match { margin-top: 16px; padding-top: 12px; border-top: 1px solid #302637; overflow-wrap: anywhere; }
.production-font-match > strong { white-space: pre-wrap; }
.production-font-candidates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.production-font-candidate { min-width: 0; padding: 12px; background: #0f0e15; border-radius: 8px; }
.production-font-sample { display: block; font-size: 27px; line-height: 1.5; white-space: pre-wrap; margin-bottom: 10px; }
.production-font-candidate > strong { font-size: 11px; }
.production-font-candidate button { width: 100%; }
.production-revision { border-top: 1px solid #302637; padding-top: 3px; }
.production-approval { margin-top: 20px; padding-top: 5px; border-top: 1px solid #302637; }
.production-manager .production-check { flex-direction: row; align-items: start; line-height: 1.6; font-size: 11px; }
.production-check input { margin-top: 3px; accent-color: #a16bd6; }
.production-approval button { width: 100%; font-size: 11px; line-height: 1.5; }
.production-success { font-size: 11px; color: #a2ccb3; line-height: 1.7; }
.etsy-publication-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 10px 0 16px; }
.production-manager .etsy-publish-button { background: #f1641e; border: 1px solid #f1641e; color: #fff; font-weight: 700; }
.production-manager .etsy-publish-button:hover:not(:disabled) { background: #d94f12; border-color: #d94f12; color: #fff; }
.production-empty { min-height: 360px; display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; padding: 35px; border: 1px dashed #352a40; border-radius: 14px; }
.production-empty > span { color: #b48ad7; font-size: 44px; margin-bottom: 20px; }.production-empty p { color: #9d91a9; max-width: 420px; font-size: 13px; line-height: 1.8; }
.production-notice, .production-error { padding: 14px 18px; border-radius: 8px; background: #32261c; color: #e0bc96; font-size: 12px; margin-bottom: 16px; line-height: 1.7; }
.production-error { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #38212b; color: #eac2cc; }.production-error button { background: transparent; border: 0; }
@media (max-width: 1250px) { .production-manager { padding: 22px; }.production-workspace { grid-template-columns: 285px 170px minmax(0, 1fr); gap: 14px; }.production-variant { padding: 14px; } }
@media (max-width: 1000px) { .production-workspace { grid-template-columns: 290px minmax(0, 1fr); }.production-joblist { grid-column: 2; grid-row: 1; }.production-results { grid-column: 2; }.production-compose { grid-row: 1 / span 2; }.production-workspace.without-form { grid-template-columns: 210px minmax(0, 1fr); }.without-form .production-joblist { grid-column: 1; }.without-form .production-results { grid-row: 1; } }
@media (max-width: 700px) { .production-manager { padding: 16px; }.production-header { align-items: start; flex-direction: column; }.production-workspace, .production-workspace.without-form { display: flex; flex-direction: column; }.production-workspace > * { width: 100%; }.production-header h1 { font-size: 26px; }.production-joblist { max-height: 270px; overflow-y: auto; } }
.inspiration-board { padding: 5px; color: var(--text-primary); }
.inspiration-board h3 { margin: 0 0 8px; }
.inspiration-board button, .inspiration-board input, .inspiration-board select { color: var(--text-primary); background: var(--input-bg, #241b31); border: 1px solid var(--input-border, #493557); border-radius: 7px; padding: 9px 12px; font-size: 12px; }
.inspiration-board button { cursor: pointer; }
.inspiration-board button:disabled { opacity: .55; cursor: default; }
.inspiration-search, .inspiration-tabs, .inspiration-tools, .inspiration-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.inspiration-search input { flex: 1 1 260px; }
.inspiration-search button, .inspiration-tabs button[aria-pressed=true] { background: var(--accent, #7b35c4); color: #fff; }
.inspiration-tools small, .inspiration-card > small { color: var(--text-secondary); font-size: 11px; }
.inspiration-history { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.inspiration-history select { max-width: 100%; }
.inspiration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.inspiration-card { border: 1px solid var(--input-border, #493557); border-radius: 10px; padding: 10px; min-width: 0; }
.inspiration-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #19151f; border-radius: 7px; }
.inspiration-card a { color: var(--text-primary); text-decoration: none; }
.inspiration-card h4 { font-size: 12px; line-height: 1.5; margin: 9px 0; overflow-wrap: anywhere; }
.inspiration-actions button { flex: 1 1 auto; padding: 8px; }
.inspiration-shop { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; margin: 9px 0 5px; }
.inspiration-shop > span { min-width: 0; overflow-wrap: anywhere; }
.inspiration-eye { display: inline-flex; color: #bca0e5 !important; flex-shrink: 0; }
.inspiration-shop-stats { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--text-secondary); font-size: 11px; margin-bottom: 8px; }
.inspiration-price { font-size: 15px; font-weight: 700; margin: 8px 0; }
.template-catalog-overlay { position: fixed; inset: 0; z-index: 30000; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 12px; box-sizing: border-box; }
.template-catalog-overlay.template-catalog-embedded { position: relative; inset: auto; z-index: auto; flex: 1 1 0; min-height: 0; width: 100%; padding: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.template-catalog-modal.is-embedded { width: 100%; max-width: none; height: 100%; min-height: 0; padding: 12px 0 0; border: 0; border-radius: 0; background: transparent; }
.template-catalog-modal.glass-panel { width: 100%; max-width: 1560px; height: min(94vh, 1000px); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; box-sizing: border-box; overflow: hidden; color: var(--text-primary); background: #19161f; backdrop-filter: none; }
.template-catalog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.template-catalog-header h2 { margin: 0; font-size: 18px; }
.template-catalog-header p { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); }
.template-catalog-modal button, .template-catalog-modal input, .template-catalog-modal select { margin: 0; }
.template-catalog-body { display: grid; grid-template-columns: minmax(280px, 36%) minmax(0, 1fr); flex: 1; min-height: 0; gap: 16px; }
.template-catalog-list { display: flex; flex-direction: column; min-height: 0; min-width: 0; gap: 8px; }
.template-catalog-list > input { width: 100%; box-sizing: border-box; padding: 10px 12px; }
.template-catalog-count { font-size: 12px; color: var(--text-secondary); }
.template-catalog-cards { overflow-y: auto; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); align-content: start; gap: 10px; padding: 2px 5px 2px 2px; }
.template-catalog-cards > p { grid-column: 1 / -1; }
.template-catalog-card { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; padding: 8px; text-align: center; align-items: stretch; justify-content: flex-start; border: 1px solid var(--border-color, rgba(255,255,255,.15)); background: rgba(255,255,255,.035); border-radius: 9px; color: var(--text-primary); }
.template-catalog-card.is-selected { border-color: var(--accent); background: rgba(139,61,255,.16); box-shadow: 0 0 0 1px var(--accent); }
.template-catalog-thumbnail { width: 100%; aspect-ratio: 5 / 7; flex-shrink: 0; background: rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; font-size: 11px; color: var(--text-secondary); }
.template-catalog-card-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.template-catalog-card-info strong { font-size: 13px; }
.template-catalog-card-info > span { font-size: 11px; color: var(--text-secondary); }
.template-catalog-detail { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.template-catalog-detail-heading { display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; font-size: 13px; }
.template-catalog-detail-heading > span { font-size: 12px; color: var(--text-secondary); }
.template-catalog-detail-heading select { margin-left: 8px; padding: 5px 8px; }
.template-catalog-preview { flex: 1; min-height: 0; padding: 16px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: repeating-conic-gradient(#272730 0% 25%, #30303b 0% 50%) 0 0 / 20px 20px; overflow: hidden; }
.template-catalog-preview > p { padding: 10px; background: var(--app-bg); border-radius: 6px; }
.template-catalog-footer { display: flex; gap: 10px; align-items: center; flex-shrink: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.template-catalog-apply-info { flex: 0 1 auto; max-width: min(460px, 40%); margin-left: auto; text-align: right; font-size: 12px; color: var(--text-secondary); }
.template-catalog-apply-info label { display: flex; align-items: center; gap: 8px; }
.template-catalog-apply-info input { flex-shrink: 0; }
.template-catalog-footer button { white-space: nowrap; padding: 10px 16px; }
.template-catalog-apply { background: var(--accent); color: white; }
.template-catalog-modal button:disabled { opacity: .45; cursor: not-allowed; }
.template-catalog-notice { font-size: 11px; color: #f7c887; margin: 0; }
.template-catalog-modal.glass-panel.is-embedded { width: 100%; max-width: none; height: 100%; min-height: 0; padding: 4px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.template-catalog-modal.is-embedded .template-catalog-header > button { display: none; }
@media (max-width: 680px) {
  .template-catalog-modal { padding: 12px; gap: 8px; height: 96dvh; }
  .template-catalog-body { grid-template-columns: minmax(145px, 42%) minmax(0, 1fr); gap: 8px; }
  .template-catalog-card { flex-direction: column; align-items: stretch; padding: 7px; gap: 7px; }
  .template-catalog-preview { padding: 6px; }
  .template-catalog-footer { flex-wrap: wrap; justify-content: flex-end; }
  .template-catalog-apply-info { flex: 1 0 100%; max-width: none; margin-left: 0; text-align: left; }
}
.relinker-overlay { position: fixed; inset: 0; z-index: 100100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.7); }
.relinker-dialog { width: min(1200px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--bg-primary, #17141e); border: 1px solid #44364f; border-radius: 14px; box-shadow: 0 20px 90px #0008; }
.relinker-card { padding: 20px; border: 1px solid #3b3045; border-radius: 10px; margin-bottom: 20px; min-width: 0; }
.relinker-card h2 { font-size: 18px; margin: 0 0 12px; }
.relinker-card p { font-size: 13px; line-height: 1.5; }
.relinker-card summary { cursor: pointer; margin-bottom: 12px; }
.relinker-card label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; margin-bottom: 14px; }
.relinker-card input, .relinker-card select { width: 100%; min-width: 0; box-sizing: border-box; padding: 9px; color: var(--text-primary, #eee); background: #241e2d; border: 1px solid #4b3b59; border-radius: 6px; }
.relinker-card .production-check { flex-direction: row; align-items: flex-start; }
.relinker-card .production-check input { width: auto; padding: 0; margin-top: 2px; flex-shrink: 0; }
.relinker-fields, .relinker-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.relinker-pages { display: grid; gap: 12px; margin-bottom: 16px; }
.relinker-page { padding: 12px; background: #241e2d; border-radius: 8px; }
.relinker-page span { display: block; overflow-wrap: anywhere; font-size: 12px; margin-bottom: 10px; }
.relinker-job { border-top: 1px solid #3b3045; padding: 16px 0; }
.relinker-job-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.relinker-downloads { display: flex; gap: 12px; flex-wrap: wrap; }
.relinker-downloads a { display: inline-block; padding: 8px 12px; border: 1px solid #665076; border-radius: 6px; }
.relinker-url { overflow-wrap: anywhere; }
.relinker-error { color: #ffb3b3; background: #562929; border-radius: 6px; padding: 12px; }
.publish-progress { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 11px 13px; border: 1px solid #4b3b59; border-radius: 8px; background: #17131d; color: #e4d5f2; font-size: 12px; line-height: 1.5; }
.publish-progress-spinner, .publish-progress-indicator { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; border: 2px solid #9576b2; border-radius: 50%; box-sizing: border-box; }
.publish-progress-spinner { border-right-color: transparent; animation: publish-progress-spin .8s linear infinite; }
.publish-progress-indicator { background: #a7d6b1; border-color: #a7d6b1; box-shadow: inset 0 0 0 3px #17131d; }
.publish-success-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.publish-success-actions button { background: #43295b; border: 1px solid #8658b0; color: #fff; border-radius: 7px; cursor: pointer; font-weight: 600; }
@keyframes publish-progress-spin { to { transform: rotate(360deg); } }
.relinker-dialog { width: min(1560px, 100%); }
.relinker-dialog .production-header { margin-bottom: 16px; }
.relinker-dialog .production-header h1 { font-size: 20px; letter-spacing: 0; margin: 0 0 6px; }
.relinker-dialog .production-header p { font-size: 12px; }
.pm-editor-controls .pm-editor-toolbar .firebase-publish-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #f6b91a; background: linear-gradient(135deg, #ffca28, #ff9800) !important; color: #29200c !important; font-weight: 750; box-shadow: 0 3px 12px #ff980033; }
.pm-editor-controls .pm-editor-toolbar .firebase-publish-trigger:hover:not(:disabled) { background: linear-gradient(135deg, #ffd54f, #ffad18) !important; color: #211904 !important; border-color: #ffd54f; box-shadow: 0 4px 16px #ff980055; }
.firebase-publish-trigger img { width: 17px; height: 17px; flex: 0 0 17px; object-fit: contain; }
.firebase-publish-dialog { border-color: #805b1d; background: #171612; }
.firebase-publish-header { padding: 22px 24px 18px; border-bottom: 1px solid #43351c; background: linear-gradient(110deg, #2b2415, #1c1913 58%, #171612); }
.firebase-publish-title { display: flex; align-items: center; gap: 14px; }
.firebase-mark-wrap { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid #71511c; border-radius: 13px; background: #382b13; box-shadow: inset 0 0 16px #ffca2816; }
.firebase-mark { display: block; width: 26px; height: 26px; object-fit: contain; }
.firebase-eyebrow { display: block; margin-bottom: 4px; color: #f7be36; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.firebase-publish-dialog .firebase-publish-header h1 { color: #fff4d5; }
.firebase-publish-dialog .firebase-publish-header p { color: #c2b58e; }
.firebase-publish-dialog .firebase-publish-form { border-color: #564521; background: #1d1b15; }
.firebase-publish-dialog .firebase-publish-form input { border-color: #5b4b29; background: #272317; }
.firebase-publish-dialog .firebase-publish-form input:focus { border-color: #ffbd24; outline-color: #ffbd24; }
.firebase-publish-dialog .firebase-publish-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #ffb300; background: linear-gradient(135deg, #ffca28, #ff9800) !important; color: #241b07 !important; box-shadow: 0 5px 18px #ff98002b; }
.firebase-publish-dialog .firebase-publish-submit:hover:not(:disabled) { border-color: #ffd54f; background: linear-gradient(135deg, #ffdb62, #ffad18) !important; color: #211904 !important; box-shadow: 0 6px 20px #ff98004d; }
.firebase-publish-dialog .firebase-publish-submit:disabled { opacity: .55; }
.firebase-publish-submit .firebase-mark { width: 18px; height: 18px; }
.firebase-publish-dialog .publish-progress { border-color: #705722; background: #211d13; color: #f0d68e; }
.firebase-publish-dialog .publish-progress-spinner { border-color: #ffbf24; border-right-color: transparent; }
.firebase-publish-dialog .publish-progress-indicator { background: #8bc34a; border-color: #8bc34a; }
.production-embedded .production-budget { margin: 8px 0 12px; }
@media (max-width: 760px) { .relinker-fields, .relinker-columns { grid-template-columns: 1fr; } .relinker-overlay { padding: 8px; } .relinker-dialog { padding: 16px; max-height: calc(100dvh - 16px); }.firebase-publish-header { padding: 16px 0; align-items: flex-start; }.firebase-publish-title { gap: 10px; }.firebase-mark-wrap { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; } }
.etsy-seller-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.etsy-seller details { margin: 16px 0; padding: 16px; background: #241e2d; border-radius: 10px; }
.etsy-callback { display: block; padding: 12px; overflow-wrap: anywhere; background: #17141e; border-radius: 6px; user-select: all; }
.etsy-seller-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.etsy-article-state { margin: 20px 0; padding: 16px; border-left: 3px solid #b880ff; background: #241e2d; }
.etsy-form-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.etsy-form-fields legend { margin-bottom: 16px; font-weight: 600; }
.etsy-seller textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: 12px; background: #241e2d; color: #eee; border: 1px solid #4b3b59; border-radius: 6px; font: inherit; }
.etsy-mockup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.etsy-mockup { border: 1px solid #4b3b59; border-radius: 8px; padding: 10px; min-width: 0; }
.etsy-mockup.selected { border-color: #b880ff; background: #2e223b; }
.etsy-mockup img { width: 100%; height: 150px; object-fit: contain; display: block; }
.etsy-mockup .production-check { margin: 10px 0; overflow-wrap: anywhere; }
.etsy-seller .etsy-review { margin-top: 24px; }
.etsy-recovery { padding: 16px; border: 1px solid #caa259; border-radius: 8px; }
.etsy-seller small { display: block; margin-top: 20px; opacity: .7; font-size: 11px; }
.etsy-copywriter { padding: 18px; margin-bottom: 24px; border: 1px solid #775298; border-radius: 10px; background: #21192b; }
.etsy-copywriter h3, .etsy-copywriter h4 { margin: 0 0 12px; }
.etsy-copywriter .etsy-seller-actions { margin: 12px 0; }
.etsy-copy-result { border-top: 1px solid #775298; padding-top: 18px; margin-top: 18px; }
.etsy-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.etsy-tag-list > span { padding: 8px 12px; background: #352345; border: 1px solid #795493; border-radius: 8px; font-size: 13px; }
.etsy-tag-list small { display: inline; margin: 0 0 0 8px; }
.etsy-ai-fill { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.etsy-ai-fill > span, .etsy-keyword-field > small { color: #b8b1c3; font-size: 12px; }
.etsy-ai-fill > p { flex-basis: 100%; margin: 0; }
.etsy-ai-fill-button { padding: 9px 14px; border: 1px solid #8e6ab2; border-radius: 8px; background: #39264b; color: #fff; font-weight: 700; cursor: pointer; }
.etsy-ai-fill-button:hover:not(:disabled) { background: #4a3260; }
.etsy-ai-fill-button:disabled { cursor: wait; opacity: .65; }
.etsy-keyword-field { display: grid; gap: 9px; }
.etsy-keyword-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.etsy-keyword-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 11px; border: 1px solid #795493; border-radius: 999px; background: #352345; font-size: 13px; }
.etsy-keyword-pill button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #513963; color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.etsy-keyword-pill button:hover { background: #784d8d; }
.etsy-keyword-add { display: flex; align-items: center; gap: 8px; }
.etsy-keyword-add input { flex: 1; min-width: 0; }
.etsy-keyword-field > .relinker-error { margin: 0; }
@media (max-width: 600px) { .etsy-seller-heading { flex-direction: column; } }
.etsy-seller .etsy-form-section { padding: 0; background: #211c29; border: 1px solid #4b3b59; overflow: hidden; }
.etsy-form-section > summary { display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; cursor: pointer; list-style: none; }
.etsy-form-section > summary::after { content: 'Abrir ▾'; align-self: flex-end; font-size: 12px; color: #c8a6ef; margin-top: -28px; }
.etsy-form-section[open] > summary::after { content: 'Cerrar ▴'; }
.etsy-form-section > summary > span { color: #b8b1c3; font-size: 13px; padding-right: 64px; }
.etsy-section-content { padding: 8px 20px 20px; border-top: 1px solid #4b3b59; }
.etsy-attributes h3 { margin-top: 22px; }
.etsy-submit-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid #4b3b59; }
.etsy-submit-section .etsy-review { margin-top: 12px; }
.etsy-submit-feedback { margin-top: 14px; border: 1px solid #51445f; border-left-width: 4px; background: #241e2d; padding: 16px; border-radius: 8px; overflow-wrap: anywhere; }
.etsy-submit-feedback p { margin: 8px 0 0; }
.etsy-submit-feedback.success { border-color: #4aad83; background: #183328; }
.etsy-submit-feedback.failure { border-color: #d9a766; background: #392c20; }
.etsy-submit-feedback.working { border-color: #b880ff; }
.etsy-draft-link { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: underline; }
.etsy-mockup.drop-target { outline: 3px solid #c7a1ff; outline-offset: 3px; }
.etsy-mockup.dragging { opacity: .5; }
.etsy-mockup .etsy-drag-handle { cursor: grab; width: 100%; margin-top: 8px; touch-action: none; user-select: none; }
.etsy-mockup .etsy-drag-handle:active { cursor: grabbing; }
.article-step > summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; cursor: pointer; padding: 4px 0; }
.article-step-title { font-size: 20px; font-weight: 600; }
.article-step-meta { color: #c6b8d7; font-size: 14px; }
.article-step > summary::after { content: 'Abrir ▾'; color: #c8a6ef; font-size: 13px; }
.article-step[open] > summary::after { content: 'Cerrar ▴'; }
.article-step-content { margin-top: 20px; }
.article-export-history { padding-top: 16px; border-top: 1px solid #4b3b59; }
.article-export-history > summary { cursor: pointer; }
.etsy-seller .etsy-form-fields label { margin: 12px 0; }
.etsy-seller .relinker-fields { gap: 8px 16px; align-items: start; }
.etsy-seller .relinker-fields > label { margin: 8px 0; }
.etsy-seller .etsy-price-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.etsy-seller .etsy-form-section > summary { margin: 0; }
.etsy-seller .etsy-preparation-hint { color: #b8b1c3; }
.etsy-form-section > summary:focus-visible, .article-step > summary:focus-visible { outline: 2px solid #c7a1ff; outline-offset: 3px; }

.etsy-seller .etsy-dimensions-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 10px; }
.etsy-dimensions-row > label { min-width: 0; }
.etsy-dimensions-info { font-size: 13px; color: #b8b1c3; cursor: help; }
.pm-studio { position: fixed; inset: 0; z-index: 100200; color: #f0eaf6; font-family: inherit; }
.pm-studio.is-home { overflow-y: auto; background: radial-gradient(ellipse at 75% 0, #292033 0, transparent 50%), #131118; }
.pm-studio.is-section { pointer-events: none; }
.pm-studio-header { height: 64px; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #352d3e; background: #18141f; box-sizing: border-box; pointer-events: auto; }
.pm-studio-location { display: flex; align-items: center; gap: 24px; min-width: 0; }
.pm-studio-brand { font-size: 12px; letter-spacing: .1em; font-weight: 700; }
.pm-studio-brand span { color: #b3a6bf; font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.pm-studio button { font: inherit; cursor: pointer; }
.pm-studio-header button { padding: 8px 13px; border: 1px solid #493b58; border-radius: 7px; background: #251e2d; color: #e6dced; font-size: 12px; }
.pm-studio-header button:hover { background: #352644; border-color: #9b6dcc; }
.pm-studio-breadcrumb { color: #b68cdf; font-size: 12px; }
.pm-studio-breadcrumb strong { margin-left: 10px; color: #e3d8ed; font-weight: 500; }
.pm-studio-home { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 5vh, 60px) 28px 36px; }
.pm-studio-intro { margin-bottom: 30px; }
.pm-studio-intro > span { color: #b88de5; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.pm-studio-intro h1 { font-size: clamp(27px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.2; margin: 12px 0; }
.pm-studio-intro p { color: #b5a9bf; margin: 0; line-height: 1.6; font-size: 14px; }
.pm-studio-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pm-studio .pm-studio-step { min-height: 280px; display: flex; flex-direction: column; text-align: left; border: 1px solid #45374f; border-radius: 14px; background: #211b28; padding: 25px 28px; color: #f0eaf6; transition: background .15s, border-color .15s, transform .15s; }
.pm-studio .pm-studio-step:hover { border-color: #a277ce; background: #2a2034; transform: translateY(-2px); }
.pm-studio-step-top { display: flex; justify-content: space-between; align-items: center; color: #c09ce6; }
.pm-studio-step-top > span { font-size: 12px; letter-spacing: .1em; }
.pm-studio-step h2 { margin: 14px 0 8px; font-size: 22px; font-weight: 600; }
.pm-studio-step p { font-size: 13px; color: #bfb2cb; line-height: 1.65; margin: 0 0 20px; max-width: none; }
.pm-studio-step-action { display: flex; justify-content: space-between; gap: 14px; margin-top: auto; color: #d7b8f3; font-size: 12px; font-weight: 600; }
.pm-studio-canvas-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; padding: 20px 24px; border: 1px solid #36303e; border-radius: 12px; background: #18151e; }
.pm-studio-canvas-note strong { font-size: 13px; }
.pm-studio-canvas-note p { font-size: 12px; color: #b1a4bd; line-height: 1.6; margin: 6px 0 0; }
.pm-studio-canvas-note button { flex-shrink: 0; background: #342440; border: 1px solid #74528d; color: #ead6fc; border-radius: 7px; padding: 10px 14px; font-size: 12px; }
.pm-studio-canvas-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pm-studio-canvas-actions a { color: #d7b8f3; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pm-studio-canvas-actions a:hover { color: #fff; text-decoration: underline; }
.pm-studio button:focus-visible, .pm-editor-toolbar button:focus-visible { outline: 2px solid #cba5ff; outline-offset: 4px; }
/* These are full screens beneath the studio bar, never dialogs layered on the canvas. */
.pm-page-surface { inset: 64px 0 0 !important; padding: 0 !important; background: #19161f !important; backdrop-filter: none !important; align-items: stretch !important; }
.pm-page-surface > .pm-page-panel { width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; padding: 20px clamp(16px, 2vw, 36px) !important; box-shadow: none !important; box-sizing: border-box; }
.pm-page-surface .pm-page-close { display: none !important; }
.pm-editor-toolbar { display: flex; gap: 12px; align-items: center; flex-shrink: 0; min-height: 34px; }
.pm-editor-toolbar > span { color: var(--text-secondary); font-size: 12px; }
.pm-editor-toolbar button { background: #251e2d; color: #e6dced; border: 1px solid #493b58; border-radius: 7px; padding: 8px 12px; font-size: 12px; cursor: pointer; }
.pm-editor-toolbar button:last-child { margin-left: auto; border-color: #8955ba; background: #39234f; }
.pm-editor-document { border: 1px solid var(--input-border); border-radius: 9px; flex-shrink: 0; }
.pm-editor-document > summary { padding: 9px 12px; color: var(--text-secondary); font-size: 12px; cursor: pointer; }
.pm-editor-document > div { padding: 10px 12px !important; }
@media (max-width: 700px) { .pm-studio-header { padding: 0 16px; }.pm-studio-brand span { display: none; }.pm-studio-location { gap: 12px; }.pm-studio-home { padding: 28px 16px; }.pm-studio-steps { grid-template-columns: 1fr; gap: 12px; }.pm-studio .pm-studio-step { padding: 20px; }.pm-studio-canvas-note { align-items: flex-start; flex-direction: column; gap: 14px; }.pm-studio-canvas-actions { width: 100%; flex-wrap: wrap; }.pm-studio-intro h1 { font-size: 28px; } }
@media (min-width: 701px) and (max-width: 980px) { .pm-studio-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }.pm-studio .pm-step-article { grid-column: 1 / -1; min-height: 220px; } }
@media (prefers-reduced-motion: reduce) { .pm-studio .pm-studio-step { transition: none; } }
/* Shared studio surfaces. Invitation previews and the buyer's editor keep their own styles. */
:where(.pm-studio, .pm-page-panel, .pm-creator-dialog, .template-catalog-modal, .relinker-dialog, .pm-editor-controls) {
  --pm-bg: #101116;
  --pm-panel: #191a22;
  --pm-raised: #20212c;
  --pm-input: #12131a;
  --pm-border: #30313f;
  --pm-text: #eeedf4;
  --pm-muted: #abaabc;
  --pm-accent: #bd9bff;
  --pm-success: #90d9bb;
  color: var(--pm-text);
}
.pm-eyebrow { display: block; color: var(--pm-accent, #bd9bff); font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 1.5; }
.pm-heading-dot { color: var(--pm-accent); }
.pm-studio.is-home { background: radial-gradient(ellipse at 90% 0, #34224965, transparent 48%), var(--pm-bg); }
.pm-studio .pm-studio-header { background: #14151d; border-color: var(--pm-border); }
.pm-studio .pm-studio-brand { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .08em; }
.pm-studio .pm-brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 0; border: 1px solid #6d4694; border-radius: 10px; background: #38234d; color: #dec9ff; }
.pm-studio .pm-brand-subtitle { margin: 0 0 0 7px; padding-left: 18px; border-left: 1px solid var(--pm-border); color: var(--pm-muted); }
.pm-studio .pm-studio-header button, .pm-editor-controls .pm-editor-toolbar button { border-color: var(--pm-border); border-radius: 9px; background: var(--pm-raised); color: var(--pm-text); min-height: 36px; }
.pm-studio .pm-studio-header button:hover { background: #292333; border-color: #785b9a; }
.pm-studio .pm-studio-home { max-width: 1160px; padding-top: clamp(30px, 5.5vh, 66px); }
.pm-studio .pm-studio-intro { position: relative; margin-bottom: 32px; }
.pm-studio .pm-studio-intro > span { color: var(--pm-accent); font-size: 10px; letter-spacing: .19em; }
.pm-studio .pm-studio-intro h1 { font-size: clamp(34px, 4vw, 54px); font-weight: 600; line-height: 1.1; margin: 16px 0; letter-spacing: -.045em; }
.pm-studio-intro h1 em { font: inherit; color: #c9b1ee; }
.pm-studio .pm-studio-intro p { font-size: 14px; color: var(--pm-muted); }
.pm-studio .pm-studio-steps { gap: 16px; }
.pm-studio .pm-studio-step { position: relative; border-color: var(--pm-border); background: var(--pm-panel); border-radius: 16px; padding: 24px; overflow: hidden; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.pm-studio .pm-studio-step:hover { background: #22202c; border-color: #8461ab; transform: translateY(-3px); }
.pm-studio .pm-studio-step-top { align-items: center; color: var(--pm-muted); }
.pm-studio .pm-studio-step-top > span:first-child { font-size: 11px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.pm-step-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #4b3b60; background: #2c233a; border-radius: 12px; color: #c8a5ef; }
.pm-studio .pm-studio-step h2 { margin-top: 7px; font-size: 22px; letter-spacing: -.025em; }
.pm-studio .pm-studio-step p { color: var(--pm-muted); line-height: 1.6; margin-bottom: 25px; }
.pm-studio .pm-studio-step-action { padding-top: 15px; border-top: 1px solid var(--pm-border); color: #dac5fa; }
.pm-studio .pm-step-article .pm-step-icon { color: #bca6e9; }
.pm-studio .pm-studio-canvas-note { border-color: var(--pm-border); background: #15161e; border-radius: 13px; }
.pm-studio .pm-studio-canvas-note p { color: var(--pm-muted); }

/* Consistent controls across the four production screens. */
.pm-page-surface { background: #101116 !important; }
.pm-page-surface > .pm-page-panel { background: #101116 !important; --text-primary: #eeedf4; --text-secondary: #abaabc; --input-bg: #191a22; --input-border: #30313f; }
.pm-page-panel :where(button, input, select, textarea) { font-family: inherit; }
.pm-page-panel :where(button, a, input, select, textarea, summary) { transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.pm-page-panel button:not(.secondary):not(.production-delete):not(.template-catalog-card):not(.production-job):not(.etsy-drag-handle) { border-radius: 9px; }
.pm-page-panel button:disabled { opacity: .46; cursor: not-allowed; }
.pm-page-panel :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea) { border-radius: 8px; }
.pm-page-panel :where(input, select, textarea):focus-visible { outline: 2px solid #b28ce9; outline-offset: 2px; }
.pm-page-panel :where(button, a, summary):focus-visible { outline: 2px solid #c9a6ff; outline-offset: 3px; }
.pm-page-panel input[type=checkbox], .pm-page-panel input[type=radio], .pm-page-panel input[type=range] { accent-color: #a877ed; }
.pm-page-panel :where(.production-compose, .production-joblist, .production-variant, .etsy-copywriter) { border-color: var(--pm-border); background: var(--pm-panel); }
.pm-page-panel .production-topline { border-color: var(--pm-border); }
.pm-page-panel .production-switch { border: 1px solid var(--pm-border); border-radius: 10px; padding: 4px; background: var(--pm-input); }
.pm-page-panel .production-switch button[aria-pressed=true], .pm-page-panel .production-topline nav button[aria-pressed=true] { background: var(--accent-toggle-on-bg); border-color: var(--accent); color: #fff; }
.pm-page-panel .production-job.selected { background: #30223f !important; border-color: #79549d !important; }
.pm-page-panel .production-job-thumbnail { border-radius: 8px; box-shadow: 0 3px 12px #0003; }
.pm-page-panel .production-empty { background: var(--pm-panel); border-color: var(--pm-border); }
.pm-page-panel .production-notice, .pm-page-panel .production-error { border: 1px solid #6c4d36; }
.pm-page-panel.pm-creator-dialog .pm-create-tabs { gap: 5px; padding: 7px; border: 1px solid var(--pm-border); background: #171820; border-radius: 12px; }
.pm-page-panel.pm-creator-dialog .pm-create-tabs > span { padding: 0 9px; }
.pm-page-panel.pm-creator-dialog .pm-create-tabs > button { border-radius: 8px !important; }
.pm-page-panel.pm-creator-dialog .pm-create-tabs > button[aria-pressed=true] { background: var(--accent-toggle-on-bg) !important; border: 1px solid var(--accent) !important; color: #fff !important; }
.pm-page-panel .pm-composition-toolbar { padding: 8px 0; }
.pm-page-panel .template-catalog-header h2, .pm-page-panel .pm-creator-header h2 { font-size: 24px !important; letter-spacing: -.03em; }
.pm-page-panel .template-catalog-header p { line-height: 1.6; margin-top: 8px; }
.pm-page-panel .template-catalog-body { gap: 24px; }
.pm-page-panel .template-catalog-list > input { background: var(--pm-input); color: var(--pm-text); border: 1px solid #454050; border-radius: 9px; padding: 12px 14px; font-size: 13px; }
.pm-page-panel .template-catalog-list > input::placeholder { color: var(--pm-muted); }
.pm-page-panel .template-catalog-card { background: var(--pm-panel); border-color: var(--pm-border); padding: 10px; border-radius: 11px; }
.pm-page-panel .template-catalog-card:hover { border-color: #8361a8; background: #24202d; }
.pm-page-panel .template-catalog-card.is-selected { border-color: #b184ec; background: #312140; box-shadow: 0 0 0 1px #9562ca; }
.pm-page-panel .template-catalog-thumbnail { border-radius: 7px; }
.pm-page-panel .template-catalog-preview { background: #1b1c25; border: 1px solid var(--pm-border); border-radius: 14px; }
.pm-editor-controls > .glass-panel { border-color: #343341 !important; box-shadow: 0 5px 16px #0002; }
.pm-editor-controls .pm-editor-toolbar { gap: 10px; }
.pm-editor-controls .pm-editor-toolbar > span { color: var(--pm-muted); }
.pm-editor-controls .pm-editor-toolbar button:last-child { background: #43295b; border-color: #8658b0; }
.pm-editor-reference-toolbar { position: absolute; top: 20px; right: 38px; z-index: 20; display: flex; justify-content: flex-end; align-items: center; pointer-events: none; }
.pm-editor-reference-toolbar button { pointer-events: auto; }
.pm-editor-reference-toolbar button { min-height: 34px; padding: 7px 12px; border: 1px solid var(--pm-border); border-radius: 9px; background: var(--pm-raised); color: var(--pm-text); cursor: pointer; font-size: 12px; }
.pm-editor-comparison-layout { display: flex; flex: 1 1 0; width: 100%; max-width: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.pm-editor-comparison-layout:not(.is-open) > .pm-editor-canvas-shell { flex: 1 1 0 !important; width: 100% !important; min-width: 0; max-width: 100%; }
.pm-editor-comparison-layout.is-open { display: flex; align-items: stretch; gap: 14px; }
.pm-editor-reference-panel { display: flex; order: 2; flex: 1 1 0; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; padding: 12px; box-sizing: border-box; border: 1px solid var(--pm-border); border-radius: 12px; background: #191a22; color: var(--pm-text); }
.pm-editor-comparison-layout > .pm-editor-canvas-shell { order: 1; }
.pm-editor-reference-panel > strong { flex: 0 0 auto; font-size: 13px; }
.pm-editor-reference-preview { flex: 1 1 0; min-width: 0; min-height: 0; }
.pm-editor-reference-preview .production-source-frame { width: 100%; height: 100%; min-height: 0; overflow: hidden; padding: 10px; box-sizing: border-box; border: 1px solid #343341; border-radius: 8px; background: #100e15; }
.pm-editor-reference-preview .production-source-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pm-editor-controls .pm-editor-document { border-color: var(--pm-border); background: #191a22; border-radius: 10px; }

/* Article workspace: working column + persistent design reference. */
.relinker-dialog .article-page-header { max-width: 1280px; margin: 4px auto 22px; align-items: flex-start; }
.relinker-dialog .article-page-header h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.04em; margin: 8px 0; }
.relinker-dialog .article-page-header p { font-size: 13px; color: var(--pm-muted); }
.article-step-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 1280px; margin: 0 auto 24px; }
.relinker-dialog .article-step-nav > button { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 10px 14px; background: #191a22; border: 1px solid var(--pm-border); color: #d5d2e1; border-radius: 10px; font-size: 12px; }
.article-step-nav > button > span { color: #bd9bff; font-size: 11px; font-variant-numeric: tabular-nums; }
.article-step-nav > button > svg { margin-left: auto; color: #8c829e; }
.relinker-dialog .article-step-nav > button:hover { background: #292034; border-color: #74518f; }
.article-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 24px; max-width: 1280px; margin: 0 auto; }
.article-main { grid-column: 1; grid-row: 1; min-width: 0; }
.article-main > [id], .etsy-submit-section { scroll-margin-top: 16px; }
.article-main > [tabindex="-1"]:focus, .article-main .etsy-submit-section:focus { outline: 0; }
.article-main > [tabindex="-1"]:focus-visible, .article-main .etsy-submit-section:focus-visible { outline: 2px solid #bd9bff; outline-offset: 4px; }
.article-summary { grid-column: 2; grid-row: 1; position: sticky; top: 0; min-width: 0; overflow: hidden; border: 1px solid var(--pm-border); border-radius: 15px; background: var(--pm-panel); }
.article-summary-preview { height: 300px; padding: 24px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #373044, #20202a 75%); }
.article-summary-preview > div { filter: drop-shadow(0 9px 14px #0004); }
.article-summary-placeholder { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--pm-muted); text-align: center; font-size: 12px; }
.article-summary-body { padding: 22px 20px; }
.article-summary-body h2 { font-size: 20px; letter-spacing: -.025em; margin: 8px 0; }
.article-summary-caption { font-size: 12px; line-height: 1.5; color: var(--pm-muted); margin: 0; overflow-wrap: anywhere; }
.article-file-checklist { padding: 16px 0 !important; margin: 16px 0; list-style: none; border-top: 1px solid var(--pm-border); border-bottom: 1px solid var(--pm-border); }
.article-file-checklist li { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--pm-muted); font-size: 11px; }
.article-file-checklist li > svg { width: 17px; flex-shrink: 0; color: #aaa0bd; }
.article-file-checklist strong { margin-left: auto; font-size: 10px; font-weight: 500; }
.article-file-checklist strong.is-ready { color: var(--pm-success); }
.article-summary-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #cdb2f3 !important; text-decoration: none; font-size: 12px; }
.article-summary-link:hover { text-decoration: underline; }
.relinker-dialog .relinker-card { background: var(--pm-panel); border-color: var(--pm-border); border-radius: 13px; margin-bottom: 16px; padding: 22px; }
.relinker-dialog .relinker-card h2, .relinker-dialog .etsy-submit-section h3 { display: flex; align-items: center; gap: 11px; font-size: 17px; letter-spacing: -.02em; }
.article-step-number { display: inline-grid; place-items: center; flex-shrink: 0; width: 29px; height: 29px; background: #2d233c; border: 1px solid #4e3a67; border-radius: 8px; color: #c8a5ee; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.relinker-dialog .article-template-choice label { margin: 16px 0 12px; }
.relinker-dialog .article-template-choice .relinker-url { display: inline-block; margin: 0 14px 0 0; }
.relinker-dialog .article-template-choice .secondary { padding: 7px 11px; font-size: 11px; }
.relinker-dialog .article-step > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 16px; margin: 0; padding: 0; }
.article-step-title { display: flex; align-items: center; gap: 11px; color: var(--pm-text); font-size: 17px; }
.relinker-dialog .article-step > summary > .article-step-meta { grid-column: 1; color: var(--pm-muted); font-size: 11px; padding-left: 40px; }
.relinker-dialog .article-step > summary::after { grid-column: 2; grid-row: 1 / span 2; color: #c6a9eb; font-size: 11px; }
.relinker-dialog .article-export-card { background: #15161e; padding: 20px; margin: 0; }
.article-export-card > svg { color: #b99cdd; margin-bottom: 16px; }
.relinker-dialog .article-export-card h2 { font-size: 14px; }
.article-export-card p { color: var(--pm-muted); }
.relinker-dialog .article-advanced { background: transparent; margin: 24px 0; padding: 14px 18px; }
.relinker-dialog .article-advanced > summary { margin: 0; font-size: 11px; color: #aaa3b7; }
.relinker-dialog .article-export-history { margin-bottom: 0; }
.relinker-dialog .relinker-card :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea) { background: var(--pm-input); border-color: #3b3949; font-size: 12px; padding: 10px 11px; }
.relinker-dialog .relinker-card label { color: #c0bdcd; font-size: 12px; }
.relinker-dialog .secondary { background: #24232e; border-color: #3d384a; color: #d4c8e4; }
.relinker-dialog .secondary:hover:not(:disabled) { background: #30263d; border-color: #74518f; }
.relinker-dialog .etsy-seller-heading { align-items: center; gap: 12px; margin-bottom: 16px; }
.etsy-seller-heading p { margin: 5px 0 0 40px; color: var(--pm-muted); font-size: 11px !important; }
.article-connection-badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 20px; background: #362b23; color: #e6bc92; border: 1px solid #604837; font-size: 10px; }
.article-connection-badge.is-connected { color: #9cdbbf; border-color: #315344; background: #1e3029; }
.article-connection-badge::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.relinker-dialog .etsy-preparation-hint { color: var(--pm-muted); margin: 0 0 18px; font-size: 12px; }
.relinker-dialog .etsy-form-fields > legend { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #9b91aa; margin-bottom: 4px; }
.relinker-dialog .etsy-seller .etsy-form-section { background: #1c1d27; border-color: var(--pm-border); border-radius: 10px; margin: 10px 0; padding: 0; overflow: hidden; }
.relinker-dialog .etsy-form-section > summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; align-items: center; column-gap: 12px; row-gap: 3px; padding: 16px; }
.relinker-dialog .etsy-form-section > summary > .etsy-section-icon { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; background: #2a2336; border: 1px solid #443451; border-radius: 9px; color: #bda0df; padding: 0; }
.relinker-dialog .etsy-form-section > summary > strong { grid-column: 2; font-size: 12px; color: var(--pm-text); }
.relinker-dialog .etsy-form-section > summary > span:not(.etsy-section-icon) { grid-column: 2; color: var(--pm-muted); font-size: 11px; padding: 0; }
.relinker-dialog .etsy-form-section > summary::after { grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end; margin: 0; color: #bca0de; font-size: 10px; white-space: nowrap; }
.relinker-dialog .etsy-form-section[open] > summary { border-bottom: 1px solid var(--pm-border); background: #252030; }
.relinker-dialog .etsy-section-content { border: 0; padding: 10px 20px 20px; }
.relinker-dialog .etsy-attributes h3 { margin-top: 20px; font-size: 12px; font-weight: 600; }
.relinker-dialog .etsy-seller .etsy-price-row { gap: 16px; }
.relinker-dialog .etsy-seller .etsy-dimensions-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); }
.relinker-dialog .etsy-copywriter { background: #15161f; border: 1px solid #493655; padding: 18px; }
.relinker-dialog .etsy-copywriter h3 { color: #d7c1ef; }
.relinker-dialog .etsy-copywriter > p { color: var(--pm-muted); font-size: 11px; }
.relinker-dialog .etsy-description-preview { background: transparent; border: 1px solid var(--pm-border); padding: 10px 14px; }
.relinker-dialog .etsy-description-preview summary { margin: 0; font-size: 11px; }
.relinker-dialog .etsy-mockup-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.relinker-dialog .etsy-mockup { padding: 8px; border-radius: 11px; border-color: var(--pm-border); background: #13141c; }
.relinker-dialog .etsy-mockup.selected { border-color: #71518c; background: #282033; }
.relinker-dialog .etsy-mockup img { height: 175px; border-radius: 6px; background: #13131a; }
.relinker-dialog .etsy-mockup .etsy-drag-handle { padding: 7px; font-size: 10px; background: #292333; }
.relinker-dialog .etsy-mockup .production-check { font-size: 10px; margin: 10px 3px 4px; }
.relinker-dialog .etsy-mockup.drop-target { outline: 2px solid #d2adff; box-shadow: 0 0 0 5px #a870df22; }
.relinker-dialog .etsy-save-preparation { margin-top: 8px; }
.relinker-dialog .etsy-submit-section { margin-top: 24px; padding-top: 22px; border-color: var(--pm-border); }
.relinker-dialog .etsy-submit-section h3 { margin: 0; }
.etsy-renewal-note { display: flex; align-items: center; gap: 6px; color: #9bcab5; font-size: 11px !important; margin: 12px 0 0 40px; }
.relinker-dialog .etsy-submit-section .etsy-review { font-size: 11px; color: #c9c4d6; margin: 18px 0; }
.relinker-dialog .etsy-submit-button { width: 100%; min-height: 44px; font-size: 12px; border: 1px solid #a06ddd; background: #7843b7; box-shadow: 0 4px 14px #512b7833; }
.relinker-dialog .etsy-submit-button:hover:not(:disabled) { background: #8851c7; }
.relinker-dialog .etsy-submit-feedback { border-radius: 10px; border-color: #454050; background: #211f2a; padding: 15px 16px; }
.relinker-dialog .etsy-submit-feedback > strong { font-size: 12px; line-height: 1.6; }
.relinker-dialog .etsy-submit-feedback p { font-size: 11px; color: #c6bdcf; }
.relinker-dialog .etsy-submit-feedback.failure { border-color: #967142; background: #30271f; }
.relinker-dialog .etsy-submit-feedback.success { border-color: #478069; background: #1c3027; }
.relinker-dialog .etsy-submit-feedback.working { border-color: #a77ad8; background: #292035; }
.relinker-dialog .etsy-submit-feedback.pending { border-color: #786191; background: #25202e; }
.relinker-dialog .etsy-draft-link { font-size: 12px; }

@media (max-width: 1000px) {
  .article-workspace { grid-template-columns: minmax(0, 1fr) 235px; gap: 18px; }
  .article-summary-preview { height: 250px; padding: 20px; }
  .relinker-dialog .relinker-card { padding: 18px; }
  .relinker-dialog .etsy-seller .etsy-form-section { padding: 0; }
}
@media (max-width: 760px) {
  .pm-editor-comparison-layout.is-open { flex-direction: column; gap: 10px; }
  .pm-editor-reference-panel { flex: 0 1 38%; min-height: 190px; }
  .pm-editor-reference-toolbar { padding-right: 34px; }
  .article-workspace { display: flex; flex-direction: column; gap: 16px; }
  .article-main { width: 100%; }
  .article-summary { position: static; width: 100%; display: grid; grid-template-columns: 90px minmax(0, 1fr); }
  .article-summary-preview { height: 100%; min-height: 160px; padding: 12px; }
  .article-summary-body { padding: 14px; }
  .article-summary-body h2 { font-size: 16px; margin: 4px 0; }
  .article-summary-body .pm-eyebrow { font-size: 9px; }
  .article-summary-caption { font-size: 10px; }
  .article-file-checklist { margin: 10px 0; padding: 4px 0 !important; }
  .article-file-checklist li { font-size: 10px; gap: 6px; margin: 7px 0; }
  .article-summary-link { font-size: 10px; }
  .article-step-nav { gap: 5px; margin-bottom: 16px; }
  .relinker-dialog .article-step-nav > button { flex-direction: column; gap: 5px; font-size: 10px; padding: 9px 4px; }
  .article-step-nav > button > svg { display: none; }
  .relinker-dialog .article-page-header { margin-bottom: 18px; }
  .relinker-dialog .etsy-form-section > summary { grid-template-columns: 28px minmax(0, 1fr) 34px; gap: 4px 9px; padding: 13px; }
  .relinker-dialog .etsy-form-section > summary > .etsy-section-icon { width: 28px; height: 28px; }
  .relinker-dialog .etsy-section-content { padding: 8px 14px 16px; }
  .relinker-dialog .etsy-seller-heading { flex-direction: row; align-items: flex-start; }
  .article-connection-badge { padding: 5px 7px; font-size: 9px; }
  .relinker-dialog .etsy-seller-heading h2 { font-size: 15px; }
  .relinker-dialog .etsy-mockup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .relinker-dialog .etsy-mockup img { height: 140px; }
  .pm-page-panel .template-catalog-body { gap: 10px; }
  .pm-studio .pm-brand-subtitle { display: none; }
  .pm-studio .pm-studio-step { padding: 20px; }
  .pm-studio .pm-studio-intro h1 { font-size: 37px; }
  .pm-studio .pm-studio-header { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-studio .pm-studio-step, .pm-page-panel :where(button, a, input, select, textarea, summary) { transition: none; }
  .pm-studio .pm-studio-step:hover { transform: none; }
}


/* ========== Glass Form Dark Theme ========== */
:root {
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --app-bg: #0d0d12;
  --app-bg-alt: #12121a;
  --text-primary: #e8e8ed;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --accent: #8b3dff;
  --accent-hover: #7732d4;
  --accent-active: #612fac;
  /* Lila más claro (rellenos secundarios; evitar para “selected” de botón-icono) */
  --accent-soft: #c4a8ff;
  /* Estado ON / seleccionado (toolbars, toggles, alineación): lila oscuro (no gris-negro). Ver GUIA_ESTILOS_BOTONES.md */
  --accent-toggle-on-bg: #612fac;
  --accent-selected-bg: var(--accent-toggle-on-bg);
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.12);
  --input-focus: rgba(139, 61, 255, 0.5);
  /* Botón Download / Download Design (cliente y plantillamaker) */
  --download-accent: #22c55e;
  --download-accent-hover: #16a34a;
  --download-accent-active: #15803d;
  /* Upload Photo (cliente): azul */
  --upload-photo-accent: #3b82f6;
  --upload-photo-hover: #2563eb;
  --upload-photo-active: #1d4ed8;
}
* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--app-bg);
  color: var(--text-primary);
  min-height: 100vh;
}
/* Glass panel: frosted dark surface */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
}
/* Main app wrapper (dark background) */
.app-dark-wrap {
  background: var(--app-bg);
  color: var(--text-primary);
}
button {
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: none;
}
button:hover:not(:disabled) {
  background: var(--accent-hover);
}
button:active:not(:disabled) {
  background: var(--accent-active);
}
/* Botones con fondo fijado por estilo inline (p. ej. plantillamaker): mismo lila que `button:hover` / `:active`. */
button.admin-lila-interactive-hover {
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
button.admin-lila-interactive-hover:not(:disabled):hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}
button.admin-lila-interactive-hover:not(:disabled):active {
  background: var(--accent-active) !important;
  color: #fff !important;
}
button.admin-lila-interactive-hover:not(:disabled):hover img {
  opacity: 1 !important;
}
.admin-shapes-panel button:not(:disabled):hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  border-color: var(--accent-hover) !important;
}
.admin-shapes-panel button:not(:disabled):active {
  background: var(--accent-active) !important;
  color: #fff !important;
  border-color: var(--accent-active) !important;
}
.admin-shapes-panel button.admin-delete-shape-hover:not(:disabled):hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.55) !important;
}
.admin-shapes-panel button.admin-delete-shape-hover:not(:disabled):active {
  background: rgba(239, 68, 68, 0.38) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.7) !important;
}
.admin-shapes-panel .admin-shapes-stepper button:hover,
.admin-shapes-panel .admin-shapes-stepper button:active {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Upload Photo (cliente): botón tipo archivo, tono azul */
label.upload-photo-fill {
  background: var(--upload-photo-accent);
  color: white;
  transition: background 0.2s;
  box-shadow: none;
}
label.upload-photo-fill:hover {
  background: var(--upload-photo-hover);
}
label.upload-photo-fill:active {
  background: var(--upload-photo-active);
}
/* Descarga de diseño (admin + cliente): verde */
button.download-export-btn:not(:disabled) {
  background: var(--download-accent) !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none !important;
}
button.download-export-btn:not(:disabled):hover {
  background: var(--download-accent-hover) !important;
}
button.download-export-btn:not(:disabled):active {
  background: var(--download-accent-active) !important;
}
input[type="file"],
input[type="text"],
input[type="number"],
input[type="password"],
input[type="color"],
input[type="range"],
select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 8px;
  margin-top: 5px;
}
/* Admin plantillamaker — panel "Texts of the template": sin margen global en controles. */
.texts-template-panel input[type="file"],
.texts-template-panel input[type="text"],
.texts-template-panel input[type="number"],
.texts-template-panel input[type="password"],
.texts-template-panel input[type="color"],
.texts-template-panel input[type="range"],
.texts-template-panel select,
.texts-template-panel textarea {
  margin-top: 0;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 2px var(--input-focus);
}
input[type="color"] {
  padding: 2px;
  cursor: pointer;
}
input[type="range"] {
  accent-color: var(--accent);
}
/* Cliente: stepper numérico segmentado (anula bordes/márgenes globales de number) */
.client-segment-stepper-input {
  margin-top: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.client-segment-stepper-input:focus {
  box-shadow: none !important;
}
.client-segment-stepper-input::-webkit-outer-spin-button,
.client-segment-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Desplegables: opciones con fondo oscuro para que el texto se lea */
select option {
  background: var(--app-bg);
  color: var(--text-primary);
}
.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  margin: 20px auto;
  max-width: 1000px;
}
.label-editor {
  border: 1px dashed var(--glass-border);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--input-bg);
}
.flex {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
/* Canvas/invitation container: keep neutral so design is visible; esquinas rectas para ver el fondo sin recorte en arco. */
.canvas-container-neutral {
  background: #1a1a22 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border-radius: 0;
}
/* Plantillamaker: cajón derecho de herramientas del lienzo (snap, vista, alinear…). */
.admin-canvas-tools-host {
  --admin-canvas-tools-tab-w: 28px;
  position: fixed;
  top: 8px;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-height: calc(100% - 16px);
  pointer-events: none;
  transform: translateX(calc(100% - var(--admin-canvas-tools-tab-w)));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-canvas-tools-host.is-open {
  transform: translateX(0);
}
.admin-canvas-tools-tab {
  pointer-events: auto;
  flex-shrink: 0;
  width: var(--admin-canvas-tools-tab-w);
  min-height: 96px;
  margin: 12px 0 0 0;
  padding: 10px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(199, 210, 254, 0.28);
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}
.admin-canvas-tools-tab:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #fff;
}
.admin-canvas-tools-tab:active:not(:disabled) {
  background: var(--accent-active);
  color: #fff;
}
.admin-canvas-tools-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}
.admin-canvas-tools-panel {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(300px, calc(100vw - 48px));
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 8px 10px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(199, 210, 254, 0.22);
  border-right: none;
  border-radius: 10px 0 0 10px;
}
.admin-canvas-tools-host.is-open .admin-canvas-tools-panel {
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .admin-canvas-tools-host {
    transition: none;
  }
}
