:root {
  --ink: #17171b;
  --muted: #6e6a79;
  --line: #e8e5ee;
  --panel: rgba(255, 255, 255, 0.94);
  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --cyan: #22d3ee;
  --lime: #c7f463;
  --danger: #d83b5a;
  --shadow: 0 24px 70px rgba(43, 32, 70, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7f6fa;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-width: 960px; overflow: hidden; }
button, input { font: inherit; }
button, select, input { outline: none; }
button { color: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(124,58,237,.28); outline-offset: 2px; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; background: #f7f6fa; }
.topbar {
  height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 22px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  position: relative; z-index: 10; backdrop-filter: blur(18px); box-shadow: 0 2px 18px rgba(35,25,60,.05);
}
.brand { border: 0; background: transparent; display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; cursor: pointer; justify-self: start; }
.brand-mark { width: 29px; height: 28px; position: relative; display: inline-block; }
.brand-mark span { width: 21px; height: 9px; border-radius: 4px; position: absolute; left: 4px; transform: skewY(-24deg); box-shadow: 0 3px 6px rgba(54,25,120,.18); }
.brand-mark span:nth-child(1) { top: 1px; background: var(--cyan); }
.brand-mark span:nth-child(2) { top: 9px; background: #a78bfa; }
.brand-mark span:nth-child(3) { top: 17px; background: var(--purple); }
.beta { font-size: 9px; letter-spacing: .12em; border: 1px solid #d7d1e4; color: #6d647c; padding: 3px 5px; border-radius: 5px; }
.topbar-center { font-size: 13px; color: var(--muted); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.primary-button, .secondary-button, .hero-button, .toolbar-button, .icon-button, .square-button, .text-button { border: 0; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s; }
.primary-button { background: linear-gradient(135deg, var(--purple), #8b5cf6); color: white; padding: 11px 18px; border-radius: 11px; font-weight: 800; box-shadow: 0 8px 22px rgba(124,58,237,.25); }
.secondary-button { background: white; border: 1px solid #ddd7e8; padding: 9px 14px; border-radius: 10px; font-weight: 700; }
.primary-button:hover, .hero-button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124,58,237,.32); }
button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.icon-button { width: 36px; height: 36px; border-radius: 9px; background: transparent; font-size: 20px; }
.icon-button:not(:disabled):hover, .toolbar-button:hover { background: #f1eef7; }

.welcome-view {
  min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 5vw; padding: 7vh 8vw 9vh; position: relative; overflow: hidden;
  background: radial-gradient(circle at 10% 80%, rgba(34,211,238,.15), transparent 24%), radial-gradient(circle at 88% 18%, rgba(124,58,237,.14), transparent 27%), #fbfaff;
}
.welcome-copy { max-width: 660px; position: relative; z-index: 2; }
.eyebrow, .eyebrow-small { color: var(--purple); font-weight: 800; letter-spacing: .14em; font-size: 11px; }
.welcome-copy h1 { font-size: clamp(52px, 5vw, 82px); line-height: .98; letter-spacing: -.055em; margin: 20px 0 25px; }
.welcome-copy h1 span { color: var(--purple); }
.welcome-copy p { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 590px; }
.hero-button { margin-top: 18px; padding: 15px 21px; border-radius: 14px; background: var(--ink); color: white; font-weight: 800; font-size: 16px; display: flex; gap: 24px; align-items: center; }
.privacy-note { margin-top: 24px; color: #7d7788; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.privacy-note span { color: #25b55f; }
.split-options { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.split-options label { display: grid; gap: 6px; min-width: 150px; color: #7d7788; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.split-options select { border: 1px solid #e4e0ec; border-radius: 10px; background: rgba(255,255,255,.86); color: var(--ink); padding: 10px 28px 10px 11px; font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; }
.credit-note { margin-top: 12px; color: #918a9d; font-size: 12px; }
.fast-mode-note { margin-top: 24px; color: #6e6679; font-size: 12px; display: flex; align-items: center; gap: 7px; }
.fast-mode-note span { color: #f59e0b; font-size: 16px; }
.welcome-orb { position: absolute; border-radius: 999px; filter: blur(1px); opacity: .55; }
.orb-one { width: 250px; height: 250px; right: -90px; bottom: -80px; background: #a78bfa; }
.orb-two { width: 120px; height: 120px; left: 42%; top: 9%; background: #baf3ff; }
.hero-visual { height: min(660px, 67vh); position: relative; perspective: 1000px; z-index: 1; }
.layer-card { position: absolute; width: 70%; height: 68%; left: 14%; top: 12%; border-radius: 28px; border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow); transform-style: preserve-3d; overflow: hidden; }
.layer-card > span { position: absolute; top: 18px; right: 18px; border-radius: 999px; padding: 6px 10px; font-size: 9px; font-weight: 900; letter-spacing: .12em; background: rgba(255,255,255,.76); }
.layer-back { background: linear-gradient(135deg,#261152,#4322a8); transform: translate(-55px,45px) rotateY(7deg) rotateZ(-7deg); }
.layer-middle { background: linear-gradient(135deg,rgba(34,211,238,.9),rgba(93,44,190,.8)); transform: translate(-17px,18px) rotateY(4deg) rotateZ(-3deg); opacity: .86; }
.layer-front { background: #f4f0ff; transform: translate(24px,-10px) rotateY(-7deg) rotateZ(3deg); }
.layer-front strong { position: absolute; left: 10%; top: 18%; font-size: clamp(40px,4.2vw,72px); line-height: .85; letter-spacing: -.08em; z-index: 5; }
.sample-sun { position: absolute; right: 5%; top: 5%; width: 180px; height: 180px; border-radius: 50%; background: var(--lime); }
.sample-hill { position: absolute; border-radius: 50% 50% 0 0; bottom: -20%; }
.hill-one { width: 115%; height: 48%; left: -25%; background: var(--purple); transform: rotate(8deg); }
.hill-two { width: 100%; height: 32%; right: -38%; background: #22d3ee; transform: rotate(-12deg); }

.editor-view { height: calc(100vh - 68px); display: grid; grid-template-columns: 285px minmax(480px, 1fr) 300px; gap: 0; }
.download-panel { position: fixed; z-index: 20; right: 18px; top: 82px; width: 330px; padding: 0 16px 16px; border-radius: 16px; box-shadow: 0 18px 45px rgba(35,25,60,.2); }
.download-heading { height: 54px; margin: 0 -16px 18px; padding: 0 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.download-heading button { border: 0; background: transparent; font-size: 27px; cursor: pointer; }
.download-field { display: grid; gap: 8px; margin: 0 0 18px; color: #5f586a; font-size: 12px; font-weight: 700; }
.download-field small { color: #888191; font-weight: 500; }
.download-field select { height: 40px; border: 1px solid #d8d2e2; border-radius: 10px; background: white; padding: 0 10px; }
.download-field input[type=range] { width: 100%; accent-color: var(--purple); }
.download-switch { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; color: #5f586a; font-size: 12px; font-weight: 700; }
.download-switch input { width: 38px; height: 21px; accent-color: var(--purple); }
.download-now { width: 100%; border: 0; border-radius: 11px; padding: 12px; background: linear-gradient(135deg,var(--purple),#9b5cff); color: white; font-weight: 800; cursor: pointer; }
.panel { background: var(--panel); }
.layers-panel, .properties-panel { padding: 22px 18px; overflow: hidden; display: flex; flex-direction: column; }
.layers-panel { border-right: 1px solid var(--line); }
.properties-panel { border-left: 1px solid var(--line); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.03em; }
.panel-heading.compact { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.eyebrow-small { font-size: 9px; }
.square-button { width: 36px; height: 36px; border-radius: 10px; background: #f0ebff; color: var(--purple); font-size: 23px; }
.layer-hint { font-size: 11px; color: #958fa0; margin: 18px 0 12px; }
.layer-list { overflow: auto; display: flex; flex-direction: column-reverse; gap: 8px; padding-right: 2px; }
.layer-item { min-height: 64px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; cursor: pointer; background: white; transition: border-color .16s, box-shadow .16s, transform .16s; }
.layer-item:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(55,35,90,.08); }
.layer-item:hover { border-color: #c9baf3; }
.layer-item.selected { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(124,58,237,.11); background: #faf8ff; }
.layer-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 12px 12px; border: 1px solid #eee; }
.layer-meta { overflow: hidden; }
.layer-name { font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-kind { font-size: 10px; color: #918b9a; margin-top: 3px; }
.group-badge { display: inline-block; margin-left: 4px; padding: 2px 5px; border-radius: 5px; background: #eee8ff; color: var(--purple); font-size: 9px; font-weight: 800; }
.layer-item:has(.group-badge) { border-left: 3px solid #a78bfa; background: linear-gradient(90deg,#fbf9ff,#fff); }
.visibility-button { border: 0; background: transparent; width: 26px; height: 26px; border-radius: 7px; cursor: pointer; color: #766e81; display: grid; place-items: center; flex: 0 0 26px; }
.visibility-button:hover { background: #eeeaf5; }
.visibility-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.layer-tools { display: flex; align-items: center; gap: 2px; }
.layer-download { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #766e81; font-size: 18px; cursor: pointer; }
.layer-download:hover { background: #eeeaf5; color: var(--purple); }
.layers-footer { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.text-button { background: transparent; font-weight: 700; color: #625b6e; padding: 7px; }
.text-button.danger { color: var(--danger); }
.text-button.full { width: 100%; }

.stage-panel { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 25%, #f7f5fb, #eceaf0 66%); }
.export-bar { min-height: 48px; margin: 14px 18px 0; padding: 7px 10px; border-radius: 13px; display: flex; align-items: center; gap: 16px; box-shadow: 0 5px 20px rgba(30,20,60,.07); }
.export-label { color: #77717e; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.export-formats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.export-format { border: 1px solid #e1dce9; background: #fff; color: #5d5669; border-radius: 8px; padding: 7px 11px; font-size: 11px; font-weight: 800; cursor: pointer; transition: border-color .16s, color .16s, background .16s, transform .16s; }
.export-format:not(:disabled):hover { border-color: var(--purple); color: var(--purple); background: #faf8ff; transform: translateY(-1px); }
.export-format:disabled { opacity: .4; cursor: not-allowed; }
.canvas-toolbar { height: 52px; margin: 14px 18px 0; border-radius: 13px; box-shadow: 0 5px 20px rgba(30,20,60,.07); padding: 7px 9px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.toolbar-group { display: flex; align-items: center; gap: 5px; }
.toolbar-group #zoomLabel { min-width: 44px; text-align: center; font-size: 12px; color: #67616f; }
.toolbar-button { padding: 8px 10px; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 700; }
.canvas-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 34px 34px 48px; }
.ruler { position: absolute; z-index: 3; pointer-events: none; color: #817a8d; font-size: 9px; background-color: rgba(255,255,255,.82); }
.ruler-top { left: 34px; right: 34px; top: 0; height: 22px; border-bottom: 1px solid #d8d2e0; background-image: repeating-linear-gradient(90deg, transparent 0 49px, #c7c0d0 49px 50px); }
.ruler-left { top: 22px; bottom: 34px; left: 0; width: 22px; border-right: 1px solid #d8d2e0; background-image: repeating-linear-gradient(0deg, transparent 0 49px, #c7c0d0 49px 50px); }
.ruler span { position: absolute; color: #817a8d; font-size: 9px; font-weight: 600; }
.ruler-top span { top: 3px; transform: translateX(-50%); }
.ruler-left span { left: 3px; transform: translateY(-50%); writing-mode: vertical-rl; }
.canvas-wrap { box-shadow: 0 24px 55px rgba(25,20,36,.20); line-height: 0; background: white; transform-origin: center; }
#editorCanvas { display: block; max-width: none; max-height: none; touch-action: none; cursor: grab; background: white; }
#editorCanvas:active { cursor: grabbing; }
#editorCanvas.pan-mode { cursor: grab; }
.stage-help { position: absolute; bottom: 16px; font-size: 11px; color: #77717e; }

.empty-properties { display: grid; place-items: center; align-content: center; text-align: center; flex: 1; color: #938c9c; padding: 30px; }
.empty-properties p { line-height: 1.5; font-size: 13px; }
.empty-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: #f0edf5; color: #877c97; }
.properties-form { padding-top: 20px; overflow: auto; }
.properties-form label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; font-size: 11px; font-weight: 700; color: #777080; }
.properties-form input[type="text"], .properties-form input[type="number"], .properties-form select { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: #fbfafc; color: var(--ink); }
.properties-form input:focus { outline: 2px solid rgba(124,58,237,.18); border-color: var(--purple); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.aspect-lock { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fbfafc; color: #6d6478; font-size: 11px; font-weight: 700; cursor: pointer; margin: -5px 0 15px; }
.aspect-lock:hover { border-color: var(--purple); color: var(--purple); }
.range-field > span { display: flex; justify-content: space-between; }
.range-field output { color: var(--purple); }
input[type="range"] { accent-color: var(--purple); }
.property-actions { border-top: 1px solid var(--line); padding-top: 17px; }
.full { width: 100%; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(39,31,55,.53); backdrop-filter: blur(7px); z-index: 30; display: grid; place-items: center; padding: 38px; }
.picker-modal { width: min(1180px, 92vw); min-height: 580px; border-radius: 25px; background: white; box-shadow: var(--shadow); padding: 34px 38px 28px; position: relative; }
.modal-close { position: absolute; right: -48px; top: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: white; font-size: 28px; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.back-button { border: 0; background: transparent; cursor: pointer; display: flex; gap: 9px; padding: 0; color: #645f6b; }
.picker-modal h2 { font-size: 28px; letter-spacing: -.03em; margin: 22px 0 5px; }
.picker-modal > p { color: #827c88; font-size: 13px; margin: 0 0 24px; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.media-card { border: 1px solid var(--line); min-height: 280px; border-radius: 16px; overflow: hidden; background: white; cursor: pointer; padding: 0; text-align: left; position: relative; }
.media-card:hover { border-color: var(--purple); box-shadow: 0 10px 25px rgba(92,50,170,.12); transform: translateY(-2px); }
.upload-card { display: grid; place-items: center; align-content: center; gap: 7px; text-align: center; color: #615a69; background: #f8f7fa; border-style: dashed; }
.upload-icon { font-size: 32px; color: var(--purple); }
.upload-card small { color: #9a94a0; }
.sample-card > span:last-child { position: absolute; left: 14px; bottom: 12px; right: 14px; font-weight: 700; font-size: 12px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); }
.visual-sample { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.visual-sample b { font-size: 42px; line-height: .9; }
.visual-sample i { font-style: normal; letter-spacing: .14em; font-size: 13px; margin-top: 8px; }

@media (max-width: 1180px) {
  .editor-view { grid-template-columns: 240px minmax(420px, 1fr) 270px; }
  .layers-panel, .properties-panel { padding-left: 12px; padding-right: 12px; }
  .topbar-center { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.sample-poster { background: linear-gradient(145deg,#d9ff64 0 45%,#6c2edd 45% 100%); color: #141414; }
.sample-poster b { transform: rotate(-7deg); }
.sample-coffee { background: radial-gradient(circle at 50% 50%,#f7c97f 0 24%,transparent 25%), linear-gradient(145deg,#2c140a,#7c3e16); color: #fff1d6; }
.sample-coffee b { font-family: Georgia, serif; font-size: 48px; }
.sample-sale { background: linear-gradient(135deg,#ff476f,#ff8b36); color: white; }
.sample-sale b { font-size: 62px; text-shadow: 5px 5px 0 rgba(72,10,91,.45); }
.compatibility-row { margin-top: 22px; display: flex; gap: 24px; color: #7d7684; font-size: 11px; }
.compatibility-row span::first-letter { color: #26a45a; }
.media-grid.dragging { outline: 3px solid rgba(124,58,237,.25); outline-offset: 8px; border-radius: 16px; }

.processing-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(249,248,252,.88); backdrop-filter: blur(14px); display: grid; place-items: center; }
.processing-card { width: min(450px, calc(100vw - 36px)); text-align: center; }
.processing-card h2 { font-size: 27px; margin: 13px 0 7px; }
.processing-card p { color: var(--muted); font-size: 13px; }
.processing-visual { width: 210px; height: 170px; position: relative; margin: 0 auto 24px; perspective: 700px; }
.mini-layer { position: absolute; width: 145px; height: 98px; border-radius: 15px; left: 32px; top: 32px; border: 1px solid rgba(255,255,255,.6); box-shadow: 0 14px 30px rgba(42,26,83,.16); }
.mini-a { background: #6d28d9; transform: translateY(30px) rotateX(56deg) rotateZ(-6deg); }
.mini-b { background: #22d3ee; transform: translateY(10px) rotateX(56deg) rotateZ(2deg); }
.mini-c { background: #d7ff68; transform: translateY(-10px) rotateX(56deg) rotateZ(-2deg); }
.scan-line { position: absolute; width: 185px; height: 2px; background: linear-gradient(90deg,transparent,#fff,transparent); left: 13px; top: 50px; z-index: 4; box-shadow: 0 0 18px #fff; animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(75px); opacity: 1; } }
.progress-track { height: 7px; border-radius: 99px; background: #e8e3f0; overflow: hidden; margin-top: 25px; }
.progress-bar { height: 100%; width: 8%; background: linear-gradient(90deg,var(--cyan),var(--purple)); border-radius: inherit; transition: width .5s ease; }
.processing-steps { margin-top: 12px; display: flex; justify-content: space-between; color: #9a93a1; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.processing-steps .active { color: var(--purple); font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%,20px); opacity: 0; z-index: 70; background: #1d1a23; color: white; padding: 11px 16px; border-radius: 10px; font-size: 12px; pointer-events: none; transition: .25s ease; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1200px) {
  .editor-view { grid-template-columns: 245px minmax(430px,1fr) 270px; }
  .welcome-view { padding-left: 5vw; padding-right: 5vw; }
}
/* Persistent processing feedback remains separate from short editor notifications. */
.processing-elapsed { color: #655b78; font-size: 13px; min-height: 22px; }
.processing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.processing-card [hidden], .pending-job-banner[hidden] { display: none !important; }
.pending-job-banner { position: fixed; z-index: 70; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; width: min(620px, calc(100% - 32px)); padding: 16px 20px; background: #fff; color: #29213c; border: 1px solid #d9c9ff; border-radius: 16px; box-shadow: 0 12px 40px #2a16402b; }
.pending-job-banner span { flex: 1; font-size: 14px; }

#openArtworkLibrary{margin-top:18px}.artwork-import{display:flex;align-items:center;gap:16px;padding:18px;margin:18px 0;border:1px solid #d9c9ff;border-radius:16px;background:#fff}.artwork-import[hidden]{display:none}.artwork-import img{width:90px;height:120px;object-fit:contain}.artwork-import p{font-size:13px;margin:8px 0;line-height:1.5}.artwork-library{width:min(660px,calc(100% - 32px));max-height:85vh;overflow:auto;border:0;border-radius:20px;padding:24px;color:#29213c}.artwork-library::backdrop{background:#20152c88;backdrop-filter:blur(5px)}.artwork-library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.artwork-item{display:flex;align-items:center;gap:16px;width:100%;padding:12px;margin-top:12px;background:#faf8ff;border:1px solid #e4dcf0;border-radius:12px;text-align:left;cursor:pointer}.artwork-item:hover{border-color:#803dff}.artwork-item img{width:60px;height:80px;object-fit:contain}.artwork-library p{font-size:14px}.artwork-import .primary-button{white-space:normal}@media(max-width:600px){.artwork-import{flex-direction:column;align-items:stretch}.artwork-import img{align-self:center}}

/* Shared studio identity with the Finalizador de Estampas. */
:root{--ink:#1e293b;--muted:#748093;--line:#e5e9ef;--purple:#087f8c;--purple-deep:#066471;font-family:'Segoe UI',system-ui,sans-serif;background:#f5f7fa}
body{min-width:0;overflow:auto;background:#f5f7fa}a{text-decoration:none;color:inherit}button,input,select{font:inherit}.app-shell{margin-left:228px;background:#f5f7fa}.topbar{height:72px;padding:0 30px;border-color:#e5e9ef;box-shadow:none;background:#fff;grid-template-columns:1fr auto 1fr;gap:16px}.studio-breadcrumb{font-size:12px;color:#748093;white-space:nowrap}.studio-breadcrumb span{padding:0 13px;color:#bdc8d8}.topbar-center{font-size:11px;max-width:350px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-actions{gap:8px}.primary-button{background:#087f8c;box-shadow:none;border-radius:8px;font-weight:700;font-size:12px;min-height:40px}.primary-button:hover{background:#066471;box-shadow:0 5px 16px #087f8c22;transform:translateY(-1px)}.secondary-button{font-size:12px;border-color:#d9e2ed;border-radius:8px;font-weight:600;min-height:38px}.eyebrow{color:#087f8c;font-size:10px;letter-spacing:.16em}
.studio-sidebar{position:fixed;inset:0 auto 0 0;width:228px;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e5e9ef;padding:30px 16px 22px;z-index:15}.studio-sidebar .brand{padding:0 7px;margin-bottom:38px;font-size:16px;gap:9px;white-space:nowrap}.studio-sidebar .brand-mark{flex-shrink:0}.studio-sidebar .brand-mark span:nth-child(1){background:#27bacc}.studio-sidebar .brand-mark span:nth-child(2){background:#49a4b8}.studio-sidebar .brand-mark span:nth-child(3){background:#7856d6}.studio-nav-label{font-size:10px;letter-spacing:.16em;font-weight:600;color:#8a96a7;margin:0 10px 13px}.studio-nav-item{display:flex;align-items:center;gap:12px;border-radius:9px;padding:14px 11px;color:#748093;font-size:12px;font-weight:600;margin-bottom:4px}.studio-nav-item>span:first-child{font-size:23px;line-height:1;width:20px;text-align:center;flex-shrink:0}.studio-nav-item small{display:block;font-size:9px;font-weight:400;margin-top:3px;color:#748093}.studio-nav-item.active{background:#e8f6f4;color:#087f8c}.studio-nav-item:hover{background:#f0f6f7}.studio-divider{height:1px;background:#e5e9ef;margin:24px 7px}.studio-artwork-list{overflow:auto;min-height:0;flex:1}.studio-artwork-list>p{font-size:11px;line-height:1.7;color:#8b97a7;padding:0 10px}.studio-artwork-item{display:flex;gap:10px;align-items:center;width:100%;padding:10px 8px;border:1px solid transparent;background:transparent;text-align:left;border-radius:8px;cursor:pointer;margin-bottom:4px}.studio-artwork-item:hover,.studio-artwork-item.selected{background:#f0f5f8;border-color:#e7edf4}.studio-artwork-item img{width:33px;height:43px;object-fit:contain;border-radius:3px;background:#f0f3f6;flex-shrink:0}.studio-artwork-item>span{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-artwork-item small{display:block;font-size:9px;color:#8a96a7;margin-top:4px;font-weight:400}.studio-sidebar-footer{border-top:1px solid #e5e9ef;margin:18px 7px 0;padding-top:20px;display:flex;gap:9px;align-items:flex-start;color:#748093;font-size:10px}.studio-sidebar-footer i{width:6px;height:6px;border-radius:50%;background:#2bb79b;margin-top:4px}.studio-sidebar-footer small{font-size:9px;display:block;color:#99a2ae;margin-top:6px}
.welcome-view.studio-workspace{display:block;padding:30px;min-height:calc(100vh - 72px);overflow:visible;background:#f5f7fa}.studio-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.studio-heading h1{font-size:28px;letter-spacing:-.04em;line-height:1.2;margin:12px 0 9px;font-weight:750}.studio-heading p{font-size:12px;color:#748093;line-height:1.6;margin:0}.studio-model-badge{font-size:10px;color:#7856d6;border:1px solid #e3d9ff;background:#f6f2ff;padding:7px 12px;border-radius:999px;white-space:nowrap}.studio-workflow{display:flex;align-items:center;gap:12px;margin:29px 0;color:#9aa6b6;font-size:10px}.studio-workflow span{display:flex;align-items:center;gap:8px}.studio-workflow b{font-size:10px;border:1px solid #dbe3ed;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-weight:500}.studio-workflow .current{color:#087f8c}.studio-workflow .current b{background:#087f8c;color:#fff;border-color:#087f8c}.studio-workflow i{height:1px;width:38px;background:#dbe3ed}.studio-workbench{display:grid;grid-template-columns:282px minmax(0,1fr);gap:24px;align-items:start}.studio-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 6px 24px #22354c03}.studio-settings{padding:24px 21px}.studio-settings h2{font-size:14px;letter-spacing:-.01em;margin:0 0 8px}.studio-kicker{font-size:8px;letter-spacing:.15em;color:#9aa6b6;margin:0 0 24px}.studio-field{display:grid;gap:8px;font-size:11px;color:#56657a}.studio-field input{width:100%;height:39px;border:1px solid #d8e1ec;border-radius:7px;padding:0 11px;font-size:12px;color:#28374c;background:#fff}.studio-upload{margin-top:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;text-align:center;min-height:183px;border:1px dashed #a6d6df;border-radius:9px;background:#f6fbfc;cursor:pointer;color:#75879c;padding:16px}.studio-upload:hover,.studio-upload.dragging{background:#eaf7f8;border-color:#087f8c}.studio-upload-icon{font-size:28px;color:#087f8c;line-height:1.4}.studio-upload strong{font-size:12px;color:#284253}.studio-upload span:not(.studio-upload-icon){font-size:10px}.studio-upload small{font-size:9px;color:#9aa6b6}.studio-or{display:flex;align-items:center;justify-content:center;font-size:9px;color:#9aa6b6;margin:17px 0 12px}.studio-settings #openArtworkLibrary{width:100%;margin:0;font-size:11px;padding:10px 7px}.studio-mode{display:flex;gap:12px;margin-bottom:22px;align-items:flex-start}.studio-mode-icon{font-size:25px;color:#087f8c}.studio-mode strong{font-size:11px}.studio-mode p{font-size:10px;color:#8b97a7;line-height:1.6;margin:5px 0 0}.studio-separate{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 15px}.studio-credit-note{color:#9aa6b6;font-size:9px;line-height:1.7;margin:12px 0 0}.studio-examples{width:100%;background:none;border:0;color:#6f8094;font-size:10px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;margin-top:20px;padding:7px}.studio-preview-column{min-width:0}.studio-preview-toolbar{height:31px;margin-bottom:9px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.studio-preview-toolbar strong{font-size:12px}.studio-preview-toolbar>span{color:#8c9aab;font-size:10px}.studio-empty{min-height:510px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px}.studio-empty h2{font-size:19px;letter-spacing:-.025em;margin:26px 0 10px}.studio-empty p{font-size:12px;line-height:1.8;color:#8b97a7;max-width:290px;margin:0}.studio-empty-layers{position:relative;width:100px;height:75px}.studio-empty-layers i{position:absolute;width:77px;height:47px;border-radius:10px;left:12px;background:#7856d6;transform:skewY(-12deg);bottom:0}.studio-empty-layers i:nth-child(2){bottom:14px;background:#31bccb}.studio-empty-layers i:nth-child(3){bottom:28px;background:#d6ef96}.studio-format-tags{display:flex;gap:8px;margin-top:22px}.studio-format-tags span{font-size:9px;color:#96a2b3;border:1px solid #e7edf3;border-radius:5px;padding:4px 9px}.artwork-import.studio-card{display:block;margin:0;padding:0;border-color:#e2e8f0;overflow:hidden}.studio-preview-header{height:48px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #eaf0f5}.studio-preview-header strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-preview-header>span{font-size:8px;letter-spacing:.1em;color:#9aa6b6;white-space:nowrap}.studio-image-stage{height:510px;padding:24px;display:flex;align-items:center;justify-content:center;background-color:#f9fbfc;background-image:linear-gradient(45deg,#edf1f4 25%,transparent 25%),linear-gradient(-45deg,#edf1f4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf1f4 75%),linear-gradient(-45deg,transparent 75%,#edf1f4 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.studio-image-stage #artworkPreview{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 12px 35px #23354c14;border-radius:0}.studio-preview-footer{padding:12px 17px;display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#8f9cad;border-top:1px solid #eaf0f5}.studio-tip{margin-top:18px;display:flex;align-items:flex-start;gap:12px;background:#eff7f7;border:1px solid #e1eeef;border-radius:10px;padding:18px 20px}.studio-tip>span{color:#087f8c;font-size:22px}.studio-tip strong{font-size:11px;color:#365b66}.studio-tip p{font-size:10px;color:#7e929e;line-height:1.7;margin:5px 0 0}
body.studio-editor{overflow:hidden;min-width:960px}.studio-editor .studio-sidebar{width:72px;padding:26px 10px}.studio-editor .app-shell{margin-left:72px}.studio-editor .studio-sidebar .brand{padding:0;margin:0 auto 30px}.studio-editor .studio-sidebar .brand>span:last-child,.studio-editor .studio-nav-label,.studio-editor .studio-nav-item>span:last-child,.studio-editor .studio-artwork-list,.studio-editor .studio-sidebar-footer,.studio-editor .studio-divider{display:none}.studio-editor .studio-nav-item{padding:12px;justify-content:center}.studio-editor .editor-view{height:calc(100vh - 72px);grid-template-columns:250px minmax(360px,1fr) 280px}.studio-editor .topbar{padding:0 18px}.studio-editor .studio-breadcrumb{font-size:11px}
@media(min-width:1750px){.studio-workbench{grid-template-columns:300px minmax(0,1fr);gap:28px}.studio-image-stage{height:610px}.studio-empty{min-height:610px}}
@media(max-width:1250px){.studio-sidebar{width:194px;padding-left:10px;padding-right:10px}.app-shell{margin-left:194px}.studio-sidebar .brand{font-size:14px;gap:6px}.welcome-view.studio-workspace{padding:24px 20px}.studio-workbench{grid-template-columns:245px minmax(0,1fr);gap:18px}.studio-settings{padding:20px 17px}.studio-heading h1{font-size:24px}.studio-model-badge{display:none}.topbar{padding:0 20px}.topbar-center{max-width:180px}.studio-image-stage{height:460px}.studio-empty{min-height:460px}}
@media(max-width:950px){.studio-sidebar{width:64px;padding:26px 9px}.app-shell{margin-left:64px}.studio-sidebar .brand{padding:0;margin:0 auto 30px}.studio-sidebar .brand>span:last-child,.studio-nav-label,.studio-nav-item>span:last-child,.studio-artwork-list,.studio-sidebar-footer,.studio-divider{display:none}.studio-nav-item{padding:12px;justify-content:center}.studio-workbench{grid-template-columns:235px minmax(0,1fr);gap:16px}.studio-preview-header{padding:0 12px}.studio-preview-header>span{display:none}.studio-image-stage{height:420px;padding:15px}.studio-preview-footer{flex-wrap:wrap}.studio-heading h1{font-size:23px}}
@media(max-width:640px){.studio-sidebar{display:none}.app-shell{margin-left:0}.topbar{height:61px;padding:0 16px;grid-template-columns:1fr auto}.studio-breadcrumb{font-size:11px}.topbar-center{display:none}.topbar-actions{gap:4px}.topbar-actions .icon-button{display:none}.topbar-actions .primary-button{display:none}.welcome-view.studio-workspace{padding:24px 16px;min-height:calc(100vh - 61px)}.studio-workbench{grid-template-columns:1fr;gap:20px}.studio-settings{padding:21px}.studio-heading h1{font-size:25px}.studio-heading p{font-size:11px}.studio-workflow{gap:7px;margin:24px 0;font-size:9px}.studio-workflow b{width:19px;height:19px}.studio-workflow i{width:15px}.studio-workflow span{gap:5px}.studio-upload{min-height:140px}.studio-mode{margin-bottom:18px}.studio-image-stage{height:420px}.studio-empty{min-height:320px}.studio-preview-toolbar{margin-bottom:4px}.studio-tip{padding:15px}.artwork-import.studio-card{display:block}.studio-preview-footer{font-size:9px}.studio-credit-note{font-size:10px}.studio-examples{font-size:11px}.studio-upload small{font-size:10px}.studio-upload span:not(.studio-upload-icon){font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.studio-nav-item>svg,.studio-mode>svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}.studio-mode>svg{color:#087f8c;margin-top:2px}

.project-save-status{font-size:9px;color:#8392a5;white-space:nowrap}.saved-projects-sidebar{max-height:29vh;overflow:auto;margin:0 0 22px}.saved-projects-sidebar .studio-nav-label{margin-top:0}#savedProjectsList>p{font-size:10px;color:#94a0b0;line-height:1.7;padding:0 10px}.saved-project-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 8px;margin:4px 0;border:1px solid transparent;background:#fff;text-align:left;border-radius:8px;cursor:pointer}.saved-project-item:hover{background:#edf6f7;border-color:#dbe9ed}.saved-project-item img{width:42px;height:48px;object-fit:contain;background:#f2f5f8;border-radius:4px;flex-shrink:0}.saved-project-item>span{font-size:11px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-project-item small{display:block;color:#8f9cad;font-size:9px;font-weight:400;margin-top:5px}#projectsDialogList .saved-project-item{border-color:#e4eaf1;padding:14px}#projectsDialogList .saved-project-item img{width:68px;height:72px}#projectsDialogList>p{font-size:12px;color:#8a96a7}.save-project-dialog{max-width:500px}.save-project-dialog .studio-field{margin-top:22px}.save-project-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#saveProjectError{background:#fff1f2;color:#a53448;border-radius:8px;padding:12px;font-size:12px}.studio-editor .saved-projects-sidebar{display:none}.studio-editor .topbar{grid-template-columns:auto minmax(80px,1fr) auto}.studio-editor .topbar-center{max-width:none;text-align:center}.studio-editor .topbar-actions{flex-wrap:nowrap}#saveProjectButton{white-space:nowrap}@media(max-width:1250px){.project-save-status{display:none}.studio-editor .studio-breadcrumb{display:none}.studio-editor .topbar{grid-template-columns:minmax(80px,1fr) auto}}@media(max-width:950px){.saved-projects-sidebar{display:none}.studio-workspace~.topbar .topbar-center{display:none}}@media(max-width:640px){.topbar:not(.studio-editor .topbar) #saveProjectButton{display:none}.topbar-actions #openProjectsButton{font-size:11px;padding:7px 10px}.studio-breadcrumb{font-size:10px}.project-save-status{display:none}}

.managed-entry{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:2px;margin-bottom:5px}.managed-entry>.saved-project-item,.managed-entry>.studio-artwork-item,.managed-entry>.artwork-item{min-width:0;margin:0}.entry-options{border:0;border-radius:7px;background:transparent;color:#74849a;min-height:32px;font-size:22px;line-height:1;cursor:pointer;padding:0 3px}.entry-options:hover,.entry-options[aria-expanded=true]{background:#eaf3f5;color:#087f8c}.entry-menu{grid-column:1/-1;display:flex;gap:7px;padding:5px 6px 10px}.entry-menu button{flex:1;min-height:32px;border:1px solid #dce5ee;border-radius:7px;background:#fff;font-size:10px;font-weight:600;cursor:pointer;padding:6px 9px}.entry-menu .entry-edit{color:#087f8c;background:#f2faf9}.entry-menu .entry-delete{color:#b33e55;background:#fff7f8;border-color:#f2dce2}.entry-menu button:hover{filter:brightness(.97)}#artworkLibraryItems .managed-entry,#projectsDialogList .managed-entry{grid-template-columns:minmax(0,1fr) 36px;margin-top:12px}#artworkLibraryItems .entry-menu button,#projectsDialogList .entry-menu button{font-size:12px;min-height:38px}.managed-entry>.studio-artwork-item>span,.managed-entry>.saved-project-item>span{min-width:0}.managed-entry>.saved-project-item img{width:33px;height:43px}

/* Keep saved projects accessible while editing. */
.studio-editor .studio-sidebar{width:220px;padding:26px 12px;min-height:0}
.studio-editor .app-shell{margin-left:220px}
.studio-editor .studio-sidebar .brand{margin:0 5px 25px;gap:9px;font-size:14px}
.studio-editor .studio-sidebar .brand>span:last-child{display:inline}
.studio-editor .studio-nav-item{justify-content:flex-start;gap:10px;padding:12px 9px}
.studio-editor .studio-nav-item>span:last-child{display:block;font-size:11px}
.studio-editor .saved-projects-sidebar{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;overflow:hidden;margin:24px 0 0;border-top:1px solid #e5e9ef;padding-top:22px}
.studio-editor .saved-projects-sidebar .studio-nav-label{display:block;flex-shrink:0}
.studio-editor #savedProjectsList{overflow:auto;min-height:0;padding-right:3px}
@media(max-width:1250px){
 .studio-editor .studio-sidebar{width:190px;padding-left:9px;padding-right:9px}
 .studio-editor .studio-sidebar .brand{font-size:12px}
 .studio-editor .app-shell{margin-left:190px}
 .studio-editor .editor-view{grid-template-columns:210px minmax(280px,1fr) 250px}
}

/* Compact illustrated guide, consistent with the Finalizer. */
.studio-heading>div:first-child{flex:1;min-width:0}.layers-how{flex:.9;max-width:600px;min-width:430px;padding:11px 16px 13px;border:1px solid #dbeae9;border-radius:16px;background:radial-gradient(ellipse at 18% 35%,#d9f3ed80,transparent 45%),radial-gradient(ellipse at 85% 20%,#eee8fb80,transparent 50%),linear-gradient(120deg,#f6fcfb,#fdfdff);box-shadow:0 3px 15px #24485504}.layers-how-intro{display:flex;justify-content:space-between;gap:12px;font-size:8px;letter-spacing:.15em;color:#45858a;font-weight:650}.layers-how-intro>span:last-child{letter-spacing:0;font-size:9px;color:#8a94a5;font-weight:400}.layers-how-art{display:block;width:100%;height:76px;margin:2px 0 3px;overflow:visible;stroke:none}.layers-how-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}.layers-how-steps li{display:flex;gap:7px;align-items:flex-start;justify-content:center}.layers-how-steps b{display:grid;place-items:center;width:18px;height:18px;flex-shrink:0;border-radius:6px;background:#e0f1ef;color:#087f8c;font-size:9px}.layers-how-steps li>span{font-size:11px;font-weight:650;color:#254457;line-height:1.5}.layers-how-steps small{display:block;font-size:9px;font-weight:400;color:#8496a5;margin-top:2px}
@media(max-width:1250px){.studio-heading:has(.layers-how){flex-wrap:wrap}.layers-how{flex-basis:100%;min-width:0;max-width:600px;margin-left:auto}}
@media(max-width:640px){.layers-how{padding:13px 10px;border-radius:12px}.layers-how-intro{font-size:7px;letter-spacing:.09em}.layers-how-art{height:auto;margin:8px 0}.layers-how-steps{gap:5px}.layers-how-steps li{gap:4px}.layers-how-steps b{width:15px;height:15px;font-size:8px;border-radius:5px}.layers-how-steps li>span{font-size:9px}.layers-how-steps small{font-size:8px;line-height:1.5;max-width:80px}}

.transparency-settings{margin:18px 0 0;border-top:1px solid #e5e9ef;padding-top:15px}.transparency-field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#526477;margin-bottom:13px}.transparency-field select{width:100%;border:1px solid #dfe5ee;border-radius:8px;background:#fafbfd;padding:10px;color:#24394b;font:inherit}.transparency-hint{font-size:9px;color:#8494a5;line-height:1.6;margin:8px 0 0}.gradient-preview{height:18px;border-radius:5px;border:1px solid #e0e8ed;background-color:#f5f8fa}

.shadow-settings{margin:18px 0;border-top:1px solid #e5e9ef;padding-top:15px}.shadow-toggle,.shadow-color{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#526477;font-size:11px;margin-bottom:12px}.shadow-toggle input{width:17px;height:17px;accent-color:#087f8c}.shadow-color input{width:52px;height:33px;border:1px solid #dfe5ee;border-radius:7px;background:#fafbfd;padding:3px;cursor:pointer}

.canvas-toolbar{height:auto;min-height:52px;flex-wrap:wrap;gap:6px}.canvas-toolbar>.toolbar-group:first-child{flex:1;min-width:0;flex-wrap:wrap}.effect-tool-button{white-space:nowrap}.effect-tool-button.has-effect{background:#e5f4f1;color:#087f8c}.effect-tool-button[aria-expanded=true]{background:#d9eeeb;color:#087f8c;box-shadow:inset 0 0 0 1px #90c8c7}
.effect-tool-panel{position:fixed;inset:auto;margin:0;width:300px;max-width:calc(100vw - 24px);max-height:calc(100vh - 120px);padding:18px;border:1px solid #dde7ed;border-radius:13px;background:#fff;color:#24394b;box-shadow:0 14px 45px #19374b26;overflow:auto}.effect-tool-panel::backdrop{background:transparent}.effect-tool-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.effect-tool-heading h3{font-size:14px;margin:0}.effect-close{width:28px;height:28px;border:0;background:#f1f5f7;border-radius:7px;color:#647789;font-size:19px;cursor:pointer}.effect-tool-panel .transparency-settings,.effect-tool-panel .shadow-settings{border:0;margin:0;padding:0}.effect-tool-panel .shadow-toggle,.effect-tool-panel .shadow-color{flex-direction:row;align-items:center}.effect-tool-panel .range-field input[type=range]{width:100%;accent-color:#087f8c}.effect-tool-panel .range-field output{color:#087f8c}.remove-tool-effect{width:100%;border:1px solid #ebdce1;border-radius:8px;background:#fff7f8;color:#a84459;padding:10px;font-size:11px;cursor:pointer;margin-top:9px}.remove-tool-effect:disabled{opacity:.45;cursor:default}

.ruler{pointer-events:auto;touch-action:none;user-select:none;overflow:hidden}.ruler-top{cursor:row-resize}.ruler-left{cursor:col-resize}.ruler span{pointer-events:none;white-space:nowrap}.guide-layer{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}.reference-guide{position:absolute;pointer-events:auto;touch-action:none;outline:none}.reference-guide.vertical{top:22px;bottom:0;width:9px;transform:translateX(-4px);cursor:col-resize}.reference-guide.horizontal{left:22px;right:0;height:9px;transform:translateY(-4px);cursor:row-resize}.reference-guide:before{content:'';position:absolute;pointer-events:none}.reference-guide.vertical:before{left:4px;top:0;bottom:0;border-left:1px dashed #00a7b5}.reference-guide.horizontal:before{top:4px;left:0;right:0;border-top:1px dashed #00a7b5}.reference-guide:focus:before,.reference-guide:hover:before{border-color:#006a82;border-style:solid}.reference-guide:after{content:attr(data-label);position:absolute;display:none;font-size:10px;line-height:1.4;white-space:nowrap;padding:3px 6px;border-radius:5px;background:#087f8c;color:#fff;pointer-events:none}.reference-guide.vertical:after{left:9px;top:10px}.reference-guide.horizontal:after{left:10px;top:9px}.reference-guide:hover:after,.reference-guide:focus:after{display:block}

.eraser-cursor{position:absolute;z-index:4;border:1px solid #fff;box-shadow:0 0 0 1px #183e4dcc;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.eraser-mask-status{font-size:11px;color:#526c7b;margin:17px 0 11px}.eraser-finish{margin-top:12px}#eraserToolButton[aria-pressed=true]{background:#d9eeeb;color:#087f8c;box-shadow:inset 0 0 0 1px #90c8c7}.eraser-mask-badge{font-size:8px;color:#087f8c;background:#e2f2ef;padding:2px 5px;border-radius:4px;margin-left:4px}

.canvas-viewport.erasing .reference-guide{pointer-events:none}#editorCanvas:focus{outline:none}
#selectionToolButton[aria-pressed="true"] { color: #007f8e; background: #d9f0ef; box-shadow: inset 0 0 0 1px #8acbce; }
#selectionMarquee { position: absolute; pointer-events: none; z-index: 4; border: 1px solid #008a9b; background: rgba(0,138,155,.12); }

#selectionToolButton { display: inline-flex; align-items: center; gap: 5px; }

/* Collapsible project and artwork history, shared visual pattern across modules. */
.history-section{position:relative;min-width:0;flex-shrink:0}
.history-accordion{min-width:0;flex:0 1 auto;margin:0 0 14px;overflow:visible}
.history-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:10px 7px;color:#74849b;font-size:10px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;cursor:pointer;list-style:none;border-radius:7px;user-select:none}
.history-accordion>summary::-webkit-details-marker{display:none}
.history-accordion>summary::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s;flex-shrink:0;margin-right:3px}
.history-accordion[open]>summary::after{transform:rotate(45deg)}
.history-accordion>summary:hover{background:#eff7f7;color:#07818e}
.history-accordion>summary:focus-visible{outline:2px solid #07818e;outline-offset:2px}
.history-section .history-accordion>summary{padding-right:39px}
.history-new{position:absolute;right:2px;top:3px;width:30px;height:30px;margin:0}
.history-accordion-body{min-width:0;max-height:30vh;overflow-y:auto;overflow-x:hidden;padding-top:5px;scrollbar-width:thin}
.history-accordion:not([open])>.history-accordion-body{display:none!important}
.history-accordion .project-list,.history-accordion .studio-artwork-list,.history-accordion #savedProjectsList{max-height:none!important;overflow:visible!important;margin:0;min-width:0;flex:none}
.history-accordion .history-entry{min-width:0;max-width:100%}
.history-accordion .history-open{min-width:0;max-width:100%}
@media(max-width:950px){.history-section,.history-accordion{display:none!important}}

.studio-sidebar #savedProjectsSidebar.history-accordion,.studio-editor .studio-sidebar #savedProjectsSidebar.history-accordion{display:block;flex:0 1 auto;min-height:0;max-height:none;overflow:visible;margin:0 0 14px;padding:0;border:0}
.studio-editor .artwork-accordion{display:none}
@media(max-width:950px){.studio-sidebar #savedProjectsSidebar.history-accordion,.studio-editor .studio-sidebar #savedProjectsSidebar.history-accordion{display:none!important}}
