:root {
  color-scheme: light;
  --ink: #211935;
  --muted: #665d76;
  --purple: #533ce8;
  --purple-dark: #442dcc;
  --lavender: #eeebff;
  --paper: #f7f7fb;
  --line: #e5e0ee;
  --night: #241951;
  --lime: #e6ffaf;
  --white: #fff;
  --heading: 'Space Grotesk Variable', Arial, sans-serif;
  --body: 'Manrope Variable', 'Manrope', Arial, sans-serif;
  font: 14px/1.55 var(--body);
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 650; line-height: 1.14; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -.065em; }
h2 { font-size: 1.5rem; letter-spacing: -.047em; }
h3 { font-size: 1.18rem; letter-spacing: -.025em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
img, svg { display: block; }
:focus-visible { outline: 3px solid #7762fb; outline-offset: 3px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.btn, .icon-btn, .text-btn {
  align-items: center; display: inline-flex; justify-content: center; gap: .6rem; min-height: 42px;
  border: 1px solid transparent; border-radius: 9px; font-weight: 750; padding: .55rem .95rem; white-space: nowrap;
}
.btn svg, .icon-btn svg, .text-btn svg { flex: none; }
.primary { color: white; background: var(--purple); }
.primary:hover:not(:disabled) { background: var(--purple-dark); }
.secondary { border-color: #dcd5e8; background: white; color: var(--ink); }
.secondary:hover:not(:disabled) { border-color: #a899d7; background: #f9f7ff; }
.quiet, .icon-btn, .text-btn { background: transparent; color: var(--purple-dark); }
.quiet:hover:not(:disabled), .icon-btn:hover, .text-btn:hover { background: var(--lavender); }
.small { min-height: 36px; font-size: .85rem; padding-inline: .72rem; }
.icon-btn { width: 42px; padding: 0; }
.wide { width: 100%; }
.lime { background: var(--lime); color: #241951; }
.lime:hover { background: #d8f68f; }
.danger { color: #a32955; }
.text-link, .crumb { display: inline-flex; align-items: center; gap: .5rem; color: var(--purple-dark); font-weight: 750; }
.text-link:hover, .crumb:hover { text-decoration: underline; text-underline-offset: .3em; }
.splash { min-height: 80vh; display: grid; place-content: center; gap: 1em; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--heading); font-size: 1.3rem; line-height: 1.1; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { background: var(--purple); color: white; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; }
.brand-studio { display: block; color: var(--muted); margin-top: .15rem; font: 700 .68rem var(--body); letter-spacing: .02em; }

.field { display: grid; gap: .42rem; min-width: 0; font-weight: 720; }
.field > small, form > small { color: var(--muted); font-size: .83rem; font-weight: 550; }
input:not([type=checkbox]):not([type=color]), select, textarea {
  width: 100%; min-width: 0; color: var(--ink); background: #fff; padding: .62rem .72rem;
  border: 1px solid #dcd5e8; border-radius: 8px; min-height: 42px;
}
input::placeholder, textarea::placeholder { color: #806f91; }
input[readonly] { background: var(--paper) !important; }
input[type=checkbox] { accent-color: var(--purple); width: 17px; height: 17px; flex: none; }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; color: var(--muted); font-size: .88rem; }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 45px !important; }
.password-input .icon-btn { position: absolute; color: var(--muted); right: 2px; top: 1px; }
.form-error { font-size: .9rem; color: #9c234d; background: #fff1f6; border-radius: 8px; padding: .65rem .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
form { display: grid; gap: .95rem; }
form > button[type=submit] { justify-self: start; }
.auth-page { display: grid; grid-template-columns: minmax(395px, .92fr) minmax(0, 1.08fr); min-height: 100svh; background: white; }
.auth-main { position: relative; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(1.4rem, 4vw, 4rem); }
.auth-brand { justify-self: start; }
.auth-content { align-self: center; justify-self: center; width: min(100%, 380px); padding: 2.5rem 0; }
.auth-content h1 { font-size: clamp(2.55rem, 5vw, 4rem); }
.auth-copy { color: var(--muted); font-size: 1rem; margin: .65rem 0 1.85rem; max-width: 32ch; }
.auth-content .field > input, .auth-content .password-input > input { min-height: 47px; }
.auth-content .password-input .icon-btn { top: 3px; }
.auth-content form > .primary { min-height: 49px; justify-content: space-between; padding: 0 1rem; }
.auth-content .forgot { justify-self: end; margin-top: -.36rem; font-weight: 750; font-size: .9rem; color: var(--purple-dark); }
.auth-divider { display: flex; gap: 1em; align-items: center; margin: 1.15rem 0; color: var(--muted); font-size: .82rem; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.auth-switch { margin-top: 1.4rem; font-size: .92rem; color: var(--muted); }
.auth-switch a { color: var(--purple-dark); font-weight: 800; display: inline-flex; align-items: center; gap: .4em; }
.auth-switch a:hover, .forgot:hover { text-decoration: underline; }
.auth-footer { color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; font-size: .77rem; font-weight: 700; }
.code-actions { display: flex; justify-content: space-between; gap: .6rem; margin-top: .8rem; }

.auth-aside { position: relative; margin: 14px 14px 14px 0; background: var(--night); color: white; border-radius: 24px; overflow: hidden; display: grid; place-items: center; }
.auth-aside-content { width: min(85%, 515px); padding: 2rem 0 3.2rem; }
.auth-aside-copy { position: relative; margin: .25rem 0 0 .5rem; }
.auth-aside-copy h2 { color: #f7f5ff; font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.085em; }
.auth-aside-copy p { margin-top: .95rem; font-size: clamp(.96rem, 1.3vw, 1.12rem); color: #dad2fc; max-width: 33ch; }
.print-art { aspect-ratio: 1.25; position: relative; isolation: isolate; container-type: inline-size; min-width: 0; }
.art-lines { position: absolute; inset: 5% -5% 0; opacity: .35; background-image: linear-gradient(#8f7ad489 1px, transparent 1px), linear-gradient(90deg, #8f7ad489 1px, transparent 1px); background-size: 11% 14%; mask-image: radial-gradient(ellipse at center, #000 34%, transparent 73%); }
.art-cross { position: absolute; font: 1.6rem var(--heading); color: #a898ff; }
.cross-top { top: 10%; left: 12%; }.cross-bottom { right: 10%; bottom: 13%; }
.sample-card { position: absolute; width: 61%; aspect-ratio: 1.59; overflow: hidden; box-shadow: 0 12px 24px #1004285c; border-radius: 4cqw; font-family: var(--heading); }
.card-back { top: 11%; right: 11%; background: var(--lime); color: #272047; transform: rotate(12deg); padding: 4.8cqw; }
.sample-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(#8279b7 1px, transparent 1px), linear-gradient(90deg, #8279b7 1px, transparent 1px); background-size: 3.5cqw 3.5cqw; mask-image: linear-gradient(100deg, transparent 30%, #000); }
.sample-orbit { position: absolute; right: 7%; top: 15%; width: 36%; height: 65%; border-radius: 48%; border: 1px solid #726799; box-shadow: inset 0 0 0 2cqw #e6ffaf, inset 0 0 0 calc(2cqw + 1px) #726799; transform: rotate(35deg); }
.sample-org { font-size: 3.5cqw; font-weight: 700; line-height: 1.08; position: relative; display: block; }
.sample-footer { position: absolute; left: 8%; bottom: 13%; font-size: 1.55cqw; letter-spacing: .12em; }
.card-front { z-index: 1; left: 11%; top: 37%; transform: rotate(-10deg); background: #7053f4; color: #fff; padding: 4.4cqw; }
.card-wave { position: absolute; width: 67%; height: 145%; border: 1px solid #aa99ff; outline: 1px solid #aa99ff; outline-offset: 1.2cqw; border-radius: 44%; right: -32%; top: 8%; transform: rotate(36deg); }
.sample-brand { display: flex; align-items: center; gap: 1.05cqw; position: relative; font-size: 3.2cqw; font-weight: 700; border-bottom: 1px solid #beaffd; padding-bottom: 1.3cqw; }
.sample-brand > span:first-child { color: #e6ffaf; font-size: 4cqw; }
.sample-id { margin-left: auto; font-size: 1.55cqw; letter-spacing: .05em; }
.sample-person { margin-top: 2.4cqw; display: flex; gap: 2.5cqw; align-items: end; position: relative; }
.sample-person strong { font-size: 5.3cqw; line-height: .96; letter-spacing: -.04em; }
.sample-person div > span { display: block; font-size: 1.6cqw; margin-top: .7cqw; }
.avatar-art { position: relative; overflow: hidden; width: 12cqw; height: 13cqw; background: #d5c6ff; border-radius: 2cqw 2cqw 1cqw 1cqw; }
.avatar-art i { background: #4a2e96; border-radius: 47% 47% 43% 43%; position: absolute; width: 5cqw; height: 5.7cqw; left: 3.5cqw; top: 2.3cqw; }
.avatar-art b { background: #4a2e96; border-radius: 50% 50% 0 0; position: absolute; width: 10cqw; height: 7cqw; left: 1cqw; top: 8.1cqw; }
.sample-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 1.25cqw; color: #fff; margin-top: 2.1cqw; letter-spacing: .12em; position: relative; }
.barcode { width: 22%; height: 2.2cqw; opacity: .9; background: repeating-linear-gradient(90deg,#fff 0 1px,transparent 1px 2px,#fff 2px 4px,transparent 4px 6px,#fff 6px 7px,transparent 7px 10px); }

.app-shell { --sidebar: 225px; --bar: 70px; min-height: 100svh; }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 12; padding: 1.2rem; }
.app-brand { margin: .6rem 0 2.4rem .28rem; align-self: flex-start; }
.sidebar nav { display: grid; gap: .32rem; overflow-y: auto; }
.sidebar nav a { display: flex; align-items: center; min-height: 45px; gap: .76rem; padding: .48rem .75rem; border-radius: 9px; font-weight: 740; color: #4d435e; }
.sidebar nav a:hover { background: #f7f5ff; color: var(--purple-dark); }
.sidebar nav a[aria-current] { background: var(--lavender); color: #4932c9; }
.nav-section { border-top: 1px solid var(--line); margin-top: 1rem; padding: 1rem .72rem .28rem; font-size: .8rem; font-weight: 800; color: var(--muted); }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--line); padding: .9rem 3em .2rem .3rem; position: relative; min-width: 0; }
.sidebar-footer strong, .sidebar-footer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer small { color: var(--muted); }
.sidebar-footer .icon-btn { position: absolute; right: 0; top: .7rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; height: var(--bar); margin-left: var(--sidebar); background: #fff; z-index: 11; border-bottom: 1px solid var(--line); padding: 0 clamp(1rem, 3vw, 2.75rem); gap: 1rem; }
.topbar-start, .topbar-end, .topbar-scope { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.topbar-scope { color: var(--muted); font-weight: 700; overflow: hidden; white-space: nowrap; }
.topbar-end { justify-content: flex-end; }
.workspace-trigger { max-width: min(300px, 51vw); padding: .27rem .6rem .27rem .35rem; white-space: nowrap; }
.workspace-trigger > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.workspace-avatar, .account-avatar { display: grid; place-items: center; flex: none; background: var(--lavender); color: var(--purple-dark); font-weight: 850; }
.workspace-avatar { width: 29px; height: 29px; border-radius: 6px; }
.account-avatar { width: 38px; height: 38px; border-radius: 50%; background: #e2f6e7; color: #186452; }
.workspace-switch { position: relative; }
.workspace-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 265px; max-width: 85vw; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px #2715471f; border-radius: 12px; padding: .48rem; max-height: 65vh; overflow: auto; }
.workspace-menu strong { display: block; padding: .5rem; font-size: .78rem; color: var(--muted); }
.workspace-menu button { width: 100%; border: 0; border-radius: 7px; background: transparent; color: var(--ink); display: flex; align-items: center; gap: .5em; padding: .56rem; text-align: left; }
.workspace-menu button:hover { background: var(--lavender); }
.workspace-menu button span { flex: 1; overflow-wrap: anywhere; }
.workspace-menu button small { color: var(--muted); }
.workspace-menu-footer { border-top: 1px solid var(--line); margin-top: .45rem; padding-top: .25rem; }
.nav-toggle, .sidebar-overlay { display: none; }
#workspace-page { margin-left: var(--sidebar); padding: 2.3rem clamp(1rem, 3vw, 2.75rem) 3rem; }
#page-content, #announcements { max-width: 1580px; margin-inline: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.65rem; }
.page-heading p { color: var(--muted); margin-top: .45rem; }
.loading { color: var(--muted); padding: 2rem 0; }
.workspace-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; border-radius: 18px; background: var(--night); color: white; margin: 0 0 2.1rem; padding: 2.05rem 2.3rem; }
.workspace-hero > div:first-child { position: relative; z-index: 2; }
.workspace-hero h2 { font-size: clamp(2.3rem, 4.4vw, 4.85rem); letter-spacing: -.085em; }
.hero-kicker { display: inline-flex; align-items: center; gap: .4rem; color: #e0d9ff; font-size: .83rem; font-weight: 800; margin-bottom: .8rem; }
.workspace-hero p { color: #ddd5fb; max-width: 39ch; margin: .65rem 0 1.25rem; }
.workspace-hero .print-art { align-self: center; width: min(100%, 430px); justify-self: center; margin-block: -3.6rem -2.8rem; }
.workspace-hero .card-back { top: 10%; }
.workspace-hero .card-front { top: 33%; }
.readonly-note { align-items: center; display: inline-flex; gap: .45rem; color: var(--lime); }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: .8em; margin-bottom: 1.05rem; }
.library-heading p { color: var(--muted); margin-top: .3rem; font-size: .91rem; }
.project-search { position: relative; width: min(100%, 245px); }
.project-search svg { position: absolute; left: .75rem; top: .9rem; color: var(--muted); }
.project-search input { padding-left: 2.45rem !important; }
.empty-state { display: grid; justify-items: center; gap: .52rem; text-align: center; padding: 2rem 1.2rem; min-height: 190px; align-content: center; background: #fff; border: 1px dashed #d7cce8; border-radius: 14px; }
.empty-state p { color: var(--muted); margin-bottom: .45rem; }
.empty-icon { background: var(--lavender); color: var(--purple-dark); display: grid; place-items: center; border-radius: 13px; width: 48px; height: 48px; margin-bottom: .35rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .9rem; }
.project-entry { position: relative; min-width: 0; }
.project-tile { display: block; height: 100%; position: relative; background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.project-tile:hover { border-color: #9d88e7; }
.project-tile > div:nth-child(2) { padding: .95rem; overflow-wrap: anywhere; }
.project-tile p, .project-tile small { color: var(--muted); margin-top: .2rem; }
.project-thumb { display: grid; height: 92px; place-items: center; color: #7755d6; background: repeating-linear-gradient(135deg,#f5f1ff 0 12px,#f1ecff 12px 13px); }
.tile-arrow { color: var(--purple-dark); background: white; border-radius: 6px; position: absolute; top: .65rem; right: .65rem; padding: .3rem; }
.project-entry > button.tile-arrow { background: white; }
.project-actions { position: fixed; z-index: 40; min-width: 9rem; padding: .3rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 5px 18px #33245426; }
.project-actions > :is(a, button) { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .65rem; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.project-actions > :is(a, button):is(:hover, :focus-visible) { background: var(--lavender); }

.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 14px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 1.12rem; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 1.17rem; overflow-wrap: anywhere; }
.panel-header p { color: var(--muted); font-size: .85rem; margin: .22rem 0 0; overflow-wrap: anywhere; }
.detail-panel { margin-bottom: 1rem; }
.panel-content { padding: 1.1rem 1.12rem; }
.panel-content > .btn + * { margin-top: .8rem; }
.panel-content > .list + .btn { margin-top: .9rem; }
.status-label { background: #f2edff; color: #513989; font-size: .77rem; font-weight: 800; padding: .25rem .55rem; border-radius: 6px; white-space: nowrap; }
.status-label.green { color: #13604a; background: #e4f6ed; }
.inline-notice { display: flex; gap: .6rem; align-items: center; border: 1px solid #ddd1f9; background: #f1ebff; color: #422b74; font-size: .87rem; font-weight: 660; border-radius: 10px; padding: .66rem .85rem; margin-bottom: .9rem; }
.inline-notice svg { flex: none; }.inline-notice.warning { border-color: #ebd8aa; background: #fff5da; color: #683f0e; }
.inline-notice a { text-decoration: underline; margin-left: auto; }
.inline-notice button { margin-left: auto; }
.list { display: grid; }
.list-row { min-height: 56px; padding: .66rem 0; display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line); }
.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-icon { width: 36px; height: 36px; display: grid; flex: none; place-items: center; color: var(--purple-dark); background: var(--lavender); border-radius: 8px; }
.list-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list-main small { display: block; color: var(--muted); }
.list-main strong > small { display: inline; }
.list-main .status-label { display: inline-block; margin-left: .3rem; }
.settings-grid, .subscription-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.inline-setting { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.plan-card { background: var(--night); border-radius: 14px; color: white; padding: 1.5rem; margin-bottom: 1rem; }
.plan-card .plan-price { color: var(--lime); font: 650 clamp(2rem, 4vw, 3.7rem)/1 var(--heading); letter-spacing: -.06em; }
.plan-price span { color: #e9e1ff; font: 600 .9rem var(--body); }
.plan-card p { margin-top: .7rem; color: #e4dcff; }
.plan-card ul { display: grid; gap: .75rem; list-style: none; padding: 0; margin-bottom: 0; }
.plan-card li { display: flex; align-items: center; gap: .5rem; }.plan-card li svg { color: var(--lime); }
.admin-search { display: flex; align-items: end; gap: .75rem; margin: .1rem 0 1rem; flex-wrap: wrap; }
.admin-search .field { min-width: min(200px, 100%); }
.admin-search .form-error { flex-basis: 100%; }
.studio-heading { margin-bottom: 1.3rem; }
.crumb { margin-bottom: .62rem; }
.studio-title { margin: 0; }
.studio-title h1 input { border: 0 !important; background: transparent !important; width: 100%; font-family: var(--heading); letter-spacing: inherit; font-weight: inherit; padding: .06em .12em !important; margin-left: -.12em; }
.studio-title h1 input:hover { background: #fff !important; }
.studio-title > div:first-child { flex: 1; min-width: 0; }
.studio-actions, .download-actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.studio-grid { display: grid; grid-template-columns: minmax(390px, 1.4fr) minmax(330px, 1fr); align-items: start; gap: 1rem; }
.studio-right { display: grid; gap: 1rem; min-width: 0; }
.field-shelf { padding: .75rem .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; max-height: 120px; overflow: auto; min-height: 57px; }
.field-shelf .muted { font-size: .8rem; }
.chip { background: #f0ebff; color: #4c36a0; border: 1px solid #dfd6fa; border-radius: 6px; display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 800; padding: .3rem .49rem; overflow-wrap: anywhere; max-width: 100%; }
.chip:hover { background: #e4dbff; }
.text-chip { color: #1c5a4b; background: #e6f8ee; border-color: #ccebdc; }
.text-chip:hover { background: #d7f3e4; }
.canvas-stage, .preview-stage, .batch-focus > div:first-child { background-color: #f4f1fa; background-image: radial-gradient(#b9abd8 1px, transparent 1px); background-size: 15px 15px; padding: clamp(.65rem, 2vw, 1.7rem); }
.canvas-stage { display: grid; place-items: center; overflow: hidden; }
.card-canvas { width: min(100%, calc(440px * var(--aspect))); position: relative; container-type: inline-size; background: white; box-shadow: 0 5px 20px #3d275644; }
.card-canvas > svg, .mini-card > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas-layer { position: absolute; outline: 1px dashed transparent; min-height: 1.35em; line-height: 1.35; cursor: grab; touch-action: none; user-select: none; overflow: visible; }
.canvas-layer:hover { outline-color: #8c76ff; }
.canvas-layer.active { outline: 1px solid #b4a6ff; box-shadow: 0 0 0 1px #513cc0; }
.canvas-layer > span:first-child, .mini-card > span { display: block; white-space: nowrap; overflow: hidden; }
.resize-handle { position: absolute; cursor: ew-resize; z-index: 2; width: 17px; height: 17px; border: 2px solid #684ce8; background: white; border-radius: 3px; right: -10px; bottom: -9px; }
.design-footer { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: .5rem .75rem; align-items: center; }
.theme-picker { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .86rem; }
.swatch { width: 25px; height: 25px; border-radius: 7px; border: 1px solid #b7a9d3; background: #fff; }
.swatch[aria-pressed=true] { outline: 2px solid var(--purple); outline-offset: 1px; }
.swatch.violet { background: #26174f; }.swatch.mint { background: #dff8db; }
.property-empty { padding: 1rem; color: var(--muted); font-size: .86rem; }
.inspector { display: grid; gap: .68rem; padding: .75rem; }
.inspector-top { display: flex; justify-content: space-between; align-items: center; }
.inspector-top .icon-btn { min-height: 31px; width: 34px; }
.inspector-row { display: flex; align-items: end; gap: .55rem; flex-wrap: wrap; }
.inspector-row .field { font-size: .78rem; }
.inspector-row input, .inspector-row select { min-height: 36px !important; }
.inspector-row input[type=number] { width: 66px !important; }
.text-toggles { display: flex; gap: .25rem; }.text-toggles .icon-btn { min-height: 36px; width: 33px; border-color: var(--line); }
.text-toggles .icon-btn[aria-pressed=true] { background: var(--lavender); border-color: #b8a5fa; }
.color-field input { width: 38px; border-radius: 6px; border: 1px solid var(--line); background: white; }
.data-empty { display: grid; justify-items: center; gap: .55rem; text-align: center; color: var(--muted); padding: 1.65rem .9rem; }
.data-empty svg { color: var(--purple); }.data-empty strong { color: var(--ink); }.data-empty p { max-width: 33ch; margin: 0 auto; font-size: .88rem; }
.sheet-toolbar { display: flex; align-items: center; gap: .65rem; padding: .58rem .8rem; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.sheet-toolbar select { min-height: 33px; padding: .28rem .55rem; }
.table-scroll { overflow: auto; max-height: 310px; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: .81rem; }
.data-table thead th { position: sticky; top: 0; color: #4c3e66; background: #f7f3ff; z-index: 1; }
.data-table th, .data-table td { padding: .4rem .5rem; border-bottom: 1px solid #eee9f3; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.data-table tbody th { padding: .12rem .4rem; }
.data-table tr.active-row { background: #ece8ff; }
.row-select { display: block; border: 0; background: none; color: var(--purple-dark); width: 34px; min-height: 28px; border-radius: 5px; font-weight: 850; }
.row-select:hover { background: #d9cff9; }
.pagination { padding: .42rem .55rem; display: flex; align-items: center; justify-content: space-between; gap: .25rem; font-size: .8rem; color: var(--muted); }
.preview-stage { padding: .85rem; border-radius: 0 0 14px 14px; }
.mini-card { width: 100%; position: relative; overflow: hidden; background: white; container-type: inline-size; box-shadow: 0 2px 7px #39225a24; }
.mini-card > span { position: absolute; line-height: 1.35; }
.download-actions select { width: auto; min-height: 36px; font-size: .85rem; padding-block: .35rem; }
.batch-focus > div:first-child { display: grid; place-items: center; }
.batch-focus .mini-card { width: min(100%, 520px); }
.preview-controls { display: flex; align-items: center; gap: .65rem; justify-content: center; padding: .68rem; color: var(--muted); text-align: center; }
.preview-controls span { font-weight: 800; color: var(--ink); }.preview-controls small { display: block; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(155px, 100%), 1fr)); gap: .85rem; padding: .7rem 1rem 1rem; }
.batch-item { padding: .42rem; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.batch-item:hover, .batch-item.selected { border-color: var(--purple); background: #f7f4ff; }
.batch-item > span { display: block; font-size: .81rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .45rem; }
.export-progress { padding: .54rem 1rem; background: var(--lavender); color: var(--purple-dark); }
dialog { width: min(500px, calc(100% - 1.8rem)); border: 1px solid var(--line); border-radius: 15px; color: var(--ink); padding: 1.25rem; max-height: 90svh; overflow: auto; }
dialog::backdrop { background: #24195178; }
dialog header, dialog footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
dialog footer { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: .7rem; }
#notifications { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 30; max-width: min(420px, calc(100% - 2.5rem)); }
.toast { display: flex; align-items: center; gap: .6rem; color: white; background: #1d564b; padding: .8rem 1rem; border-radius: 10px; box-shadow: 0 3px 18px #33245422; }
.toast svg { flex: none; }.toast.error { background: #8a2753; }
@media (max-width: 1180px) {
  .app-shell { --sidebar: 195px; }
  .sidebar { padding: 1rem .7rem; }
}
@media (max-width: 1010px) {
  .studio-grid { grid-template-columns: minmax(0,1fr); }
  .studio-right { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .workspace-hero { padding: 1.6rem; }
}
@media (max-width: 760px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-main { min-height: 100svh; }
  .auth-aside { display: none; }
  .app-shell { --sidebar: 0px; --bar: 58px; }
  .sidebar { visibility: hidden; transform: translateX(-102%); width: 235px; }
  .sidebar.sidebar-open { visibility: visible; transform: translateX(0); }
  .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 10; background: #271b4c66; border: 0; }
  .sidebar.sidebar-open { top: var(--bar); }
  .nav-toggle { display: inline-flex; }
  .topbar { padding: 0 .85rem; }
  .topbar-scope { display: none; }
  #workspace-page { padding: 1.25rem .9rem 2rem; }
  .workspace-hero { padding: 1.25rem; }
  .settings-grid, .subscription-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .auth-main { padding: 1.3rem; }
  .workspace-hero { grid-template-columns: minmax(0, 1fr); }
  .workspace-hero .print-art { position: absolute; width: 210px; right: -58px; top: 64%; transform: translateY(-50%); opacity: .37; }
  .workspace-hero h2 { font-size: 2.45rem; }
  .workspace-hero p { max-width: 29ch; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .studio-actions, .download-actions { justify-content: flex-start; }
  .studio-right { grid-template-columns: minmax(0,1fr); }
  .batch-panel .panel-header { flex-wrap: wrap; }
  .library-heading { align-items: stretch; flex-wrap: wrap; }
  .list-row { gap: .5rem; flex-wrap: wrap; }
  .list-main { min-width: 130px; }
  .inline-notice { flex-wrap: wrap; }
  .inline-notice button, .inline-notice a { margin-left: 0; }
}

.shape-options { border: 0; margin: 0; padding: 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.shape-options legend { padding: 0 0 .65rem; font-weight: 700; }
.shape-options label { position: relative; flex: 1 1 6rem; cursor: pointer; }
.shape-options input { position: absolute; opacity: 0; }
.shape-options span { min-height: 72px; display: grid; place-content: center; justify-items: center; gap: .4rem; padding: .55rem; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.shape-options input:checked + span { border-color: #7860da; background: #f1ecff; color: #513cc0; }
.shape-options input:focus-visible + span { outline: 2px solid #7860da; outline-offset: 2px; }
.shape-layer { min-height: 0; }
.shape-layer > svg, .mini-shape > svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.shape-layer .resize-handle { cursor: nwse-resize; }
.mini-shape { position: absolute; }
.inspector-actions { display: flex; align-items: center; flex-wrap: wrap; }

.editor-history { display: flex; gap: .35rem; align-items: center; }
.shortcut-list { margin: 0; display: grid; gap: .6rem; }
.shortcut-list > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .8rem; }
.shortcut-list dt { min-width: 9.5rem; }
.shortcut-list dd { margin: 0; }
.shortcut-list kbd { display: inline-block; background: #f2eeff; color: #513cc0; border-radius: 4px; padding: .18rem .4rem; }

.code-content, .code-content > svg { width: 100%; height: 100%; pointer-events: none; }
.code-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #f1ecff; color: #513cc0; font-size: clamp(.55rem, 2.4cqw, .9rem); text-align: center; overflow: hidden; }
.code-composer { display: grid; gap: .55rem; }
.code-composer textarea { font-family: ui-monospace, monospace; resize: vertical; }
#code-help, #code-status { margin: 0; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
#code-status { font-weight: 650; }

#code-field-drop { display: inline-flex; align-items: center; gap: .25rem; border: 1px dashed #8676ca; border-radius: 6px; padding: .3rem .45rem; color: #513cc0; font-size: .8rem; }
#code-field-drop > svg { pointer-events: none; }
#code-field-drop.code-drop-active, #code-value.code-drop-active { background: #efe9ff; outline: 2px solid #8676ca; outline-offset: -1px; }

.photo-frame { position: absolute; display: grid; place-items: center; overflow: hidden; background: #f1ecff; color: #513cc0; pointer-events: none; }
.photo-frame.round { border-radius: 50%; }
.photo-frame > .photo-placeholder { width: 100%; height: 100%; }
.photo-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
