:root {
  color-scheme: light;
  --ink: #252731;
  --muted: #82848d;
  --line: #e8e8ee;
  --rose: #c64b81;
  --rose-soft: #fbedf3;
  --surface: #fff;
  --stage: #f5f6f9;
  --teal: #408478;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 33px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #f7f7fa;
  border-color: #d5d5df;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button[aria-pressed="true"],
button.active {
  color: #a73569;
  background: var(--rose-soft);
  border-color: #edb9ce;
}
button.primary {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
  font-weight: 600;
}
button.primary:hover {
  background: #ae396d;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 8px 10px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input[type="checkbox"],
input[type="range"] {
  accent-color: var(--rose);
}
input[type="range"] {
  width: 100%;
  height: 14px;
  margin: 10px 0;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.015em;
}
p {
  line-height: 1.7;
  color: #686a74;
}
small,
.fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}
.workbench-header {
  height: 65px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 215px;
}
.studio-brand strong {
  font-size: 16px;
  display: block;
  letter-spacing: 0.01em;
}
.studio-brand small {
  font-size: 9px;
  letter-spacing: 0.6px;
  display: block;
  margin-top: 3px;
}
.studio-brand small span {
  margin: 0 5px;
  color: #bfc1c8;
}
.studio-mark {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 3px;
  transform: rotate(-5deg);
}
.studio-mark i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #e88eb4;
}
.studio-mark i:nth-child(2) {
  background: #b5dcd1;
}
.studio-mark i:nth-child(3) {
  background: #ced2ec;
}
.studio-mark i:nth-child(4) {
  background: #f1c97d;
}
.studio-nav {
  display: flex;
  gap: 5px;
  align-self: stretch;
  align-items: center;
}
.studio-nav button {
  border: 0;
  background: transparent;
  font-weight: 600;
  padding: 9px 15px;
}
.studio-nav button.active {
  background: var(--rose-soft);
  color: var(--rose);
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.ai-link {
  display: flex;
  gap: 7px;
  color: #747681;
}
.language-link {
  font-size: 11px;
}
.account-link {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-bar {
  height: 62px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}
.document-title {
  min-width: 0;
  width: 290px;
}
.document-title input#board-title {
  font-size: 14px;
  font-weight: 600;
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
}
.document-title > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
  align-items: center;
}
.document-actions #undo,
.document-actions #redo {
  font-size: 22px;
  width: 33px;
  padding: 0;
}
.toolbar-divider {
  height: 21px;
  border-left: 1px solid var(--line);
  margin: 0 6px;
}
.document-actions .primary {
  padding: 8px 16px;
  margin-left: 3px;
}
.studio-layout {
  height: calc(100dvh - 127px);
  min-height: 450px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 222px;
}
.panel {
  overflow: auto;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #dddde5 transparent;
}
.left-panel {
  border-right: 1px solid var(--line);
}
.right-panel {
  border-left: 1px solid var(--line);
}
.panel section {
  padding: 17px 16px;
  border-bottom: 1px solid #efeff4;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  gap: 8px;
}
.section-heading h2 {
  margin: 0;
}
.panel h2 {
  margin-bottom: 12px;
}
.icon-button {
  width: 25px;
  min-height: 25px;
  height: 25px;
  padding: 0;
  font-size: 14px;
}
.start-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
}
.start-actions button {
  font-size: 11px;
  padding: 8px 5px;
}
.start-actions span {
  font-size: 17px;
  color: #7d808a;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 15px;
}
.tool-grid button {
  justify-content: flex-start;
  font-size: 11px;
  padding: 8px 10px;
  gap: 9px;
  height: 35px;
}
.tool-grid svg {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.small-label {
  display: flex;
  justify-content: space-between;
  color: #737580;
  font-size: 11px;
}
.small-label output {
  color: var(--ink);
  font-weight: 700;
}
.brush-presets {
  display: flex;
  gap: 3px;
}
.brush-presets button {
  padding: 4px;
  min-height: 25px;
  flex: 1;
  font-size: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #656772;
  margin-top: 11px;
  line-height: 1.5;
}
.check input {
  margin: 0;
  flex-shrink: 0;
}
.inline-checks {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: #858590;
  margin-top: 12px;
  flex-wrap: wrap;
}
.inline-checks label {
  display: flex;
  align-items: center;
  gap: 3px;
}
.inline-checks input {
  margin: 0;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  max-height: 214px;
  overflow: auto;
  margin: 10px 0 12px;
  padding: 2px;
  scrollbar-width: thin;
}
.swatch {
  aspect-ratio: 1;
  min-height: 26px;
  border: 1px solid #00000015;
  border-radius: 5px;
  padding: 0;
  font-size: 8px;
  font-weight: 600;
  color: var(--swatch-ink) !important;
  background: var(--swatch) !important;
  box-shadow: inset 0 0 0 1px #ffffff22;
}
.swatch[aria-pressed="true"] {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
  border: 1px solid #fff;
}
.selected-code {
  font-size: 10px;
  color: #62646f;
}
.full-width {
  width: 100%;
  margin-top: 7px;
  font-size: 11px;
  justify-content: space-between;
}
.full-width span:last-child {
  color: #93949e;
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.size-grid button {
  font-size: 11px;
  padding: 6px;
}
.panel .fine {
  margin-top: 9px;
  margin-bottom: 6px;
}
.canvas-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--stage);
}
.canvas-topbar {
  min-height: 51px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 17px;
  border-bottom: 1px solid var(--line);
  background: #fafafd;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px;
  background: #eeeff3;
}
.segmented button {
  border: 0;
  min-height: 27px;
  padding: 5px 10px;
  font-size: 10px;
  background: transparent;
}
.segmented button[aria-pressed="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #24243c12;
}
.canvas-topbar .check {
  margin: 0;
}
.text-button {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
  padding: 6px;
}
.canvas-topbar .text-button {
  margin-left: auto;
}
.canvas-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
  overscroll-behavior: contain;
  background-color: #f6f7fa;
  background-image:
    linear-gradient(45deg, #edeff3 25%, transparent 25%),
    linear-gradient(-45deg, #edeff3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edeff3 75%),
    linear-gradient(-45deg, transparent 75%, #edeff3 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
}
.canvas-stage {
  min-width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  box-sizing: border-box;
  width: max-content;
  height: max-content;
  position: relative;
}
.canvas-stage canvas {
  display: block;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 3px 20px #3034470e;
  touch-action: none;
  cursor: crosshair;
}
.canvas-status {
  height: 40px;
  min-height: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #83858e;
  background: #fafafd;
}
.zoom-controls {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.zoom-controls button {
  min-height: 25px;
  padding: 3px 7px;
  font-size: 10px;
}
.zoom-controls output {
  width: 40px;
  text-align: center;
  color: #5d606c;
}
.count-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  align-items: baseline;
  margin-bottom: 11px;
}
.count-summary strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -1px;
}
.count-summary b {
  font-size: 13px;
}
.count-summary span {
  font-size: 11px;
  color: var(--muted);
}
#used-colors {
  max-height: 240px;
  overflow: auto;
  scrollbar-width: thin;
  margin: 12px 0;
}
.used-color {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border: 0;
  padding: 5px 3px;
  min-height: 29px;
  font-size: 10px;
  background: transparent;
}
.used-color > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.color-dot {
  display: inline-block;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid #00000012;
}
.layer-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 5px 0;
  background: #fff;
  padding: 6px;
}
.layer-row.active {
  background: #fdf2f7;
  border-color: #edbfd2;
}
.layer-main {
  display: flex;
  align-items: center;
  gap: 5px;
}
.layer-main button {
  padding: 3px;
  min-height: 24px;
  border: 0;
  background: transparent;
  font-size: 10px;
}
.layer-main .layer-name {
  flex: 1;
  justify-content: flex-start;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.layer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 2px;
}
.layer-actions button {
  border: 0;
  background: transparent;
  padding: 2px 5px;
  min-height: 21px;
  font-size: 10px;
  color: #8a8290;
}
#progress-tiles {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(var(--columns, 4), 1fr);
}
#progress-tiles button {
  min-height: 23px;
  padding: 3px 0;
  font-size: 9px;
}
#progress-tiles button[aria-pressed="true"] {
  background: #e7f2ee;
  border-color: #a7cbbf;
  color: #367e66;
}
#progress-count {
  float: right;
  color: #8b8d98;
  font-size: 10px;
  font-weight: 400;
}
.mobile-panel {
  display: none;
}
.gallery-view {
  max-width: 1380px;
  margin: auto;
  padding: 46px 50px 70px;
}
.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--rose);
  font-weight: 650;
}
.gallery-heading h1 {
  font-size: 33px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.gallery-heading p {
  font-size: 13px;
}
.gallery-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin: 35px 0 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}
#gallery-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
#gallery-tabs button {
  border: 0;
  font-size: 11px;
  padding: 7px 12px;
}
.gallery-search {
  display: flex;
  gap: 8px;
}
.gallery-search input {
  width: 195px !important;
}
.gallery-search select {
  width: 105px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
}
.work-card {
  min-width: 0;
}
.card-image {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border: 1px solid #eeeaf0;
  border-radius: 12px;
  overflow: hidden;
  padding: 17px;
  background: #f7f5f8;
}
.card-image:hover {
  background: #f3eff5;
  border-color: #e2c2d2;
}
.work-card:nth-child(4n + 2) .card-image {
  background: #f0f5f3;
}
.work-card:nth-child(4n + 3) .card-image {
  background: #f7f4ec;
}
.work-card:nth-child(4n + 4) .card-image {
  background: #f1f2f8;
}
.card-image canvas,
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.work-card h3 {
  font-size: 13px;
  margin: 13px 2px 6px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: #99929c;
  margin: 0 2px;
  gap: 6px;
}
.card-description {
  font-size: 11px;
  margin: 8px 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-card .withdraw {
  margin-top: 10px;
  font-size: 10px;
  padding: 4px 7px;
  min-height: 27px;
}
.empty-state {
  text-align: center;
  padding: 90px 25px;
  color: #8e8994;
  font-size: 14px;
}
.load-more {
  display: flex;
  margin: 36px auto 0;
  padding: 9px 30px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 22px 90px #24203033;
  max-width: calc(100vw - 32px);
  width: 580px;
  padding: 25px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #24233155;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-heading h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1.5;
}
.dialog-heading button {
  border: 0;
  width: 30px;
  padding: 0;
  font-size: 22px;
  min-height: 30px;
  color: #9a949e;
}
dialog > p {
  font-size: 12px;
  margin-bottom: 18px;
}
dialog label:not(.check) {
  display: block;
  font-size: 12px;
  color: #72707a;
  margin: 13px 0;
}
dialog label > input:not([type="checkbox"]),
dialog label > select,
dialog label > textarea {
  display: block;
  margin-top: 6px;
}
dialog .primary {
  margin-top: 16px;
}
#import-dialog {
  width: 1120px;
}
.import-layout {
  display: grid;
  grid-template-columns: 1fr 205px;
  gap: 25px;
}
.file-drop {
  min-height: 260px;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px dashed #d9c7d4;
  background: #fbf7fa;
  gap: 15px;
}
.file-drop > span {
  font-size: 38px;
  color: #c27398;
}
.file-drop strong {
  font-size: 13px;
}
.import-settings label:first-child {
  margin-top: 0;
}
#crop-canvas {
  width: 100%;
  display: block;
  touch-action: none;
  border: 1px solid var(--line);
  background: #f2f2f5;
}
#crop-reset {
  font-size: 10px;
  margin-top: 7px;
}
.export-options {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.export-options button {
  min-height: 52px;
  justify-content: space-between;
  padding: 12px 16px;
}
.export-options button > span:last-child {
  font-size: 20px;
  color: var(--rose);
}
.consent {
  margin: 20px 0;
  align-items: flex-start;
  font-size: 12px;
}
.consent input {
  margin-top: 2px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 25px;
}
#detail-dialog {
  width: 820px;
}
#detail-canvas {
  width: 100%;
  background: #f7f5f8;
  image-rendering: pixelated;
}
.detail-layout p {
  font-size: 12px;
  margin-bottom: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.detail-actions button {
  font-size: 11px;
}
.dialog-toolbar {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
#inventory-list {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  max-height: 350px;
  overflow: auto;
  padding: 4px;
}
#inventory-list label {
  margin: 0;
  position: relative;
  aspect-ratio: 1;
}
#inventory-list input {
  position: absolute;
  opacity: 0;
}
#inventory-list .swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 9px;
  opacity: 0.3;
  cursor: pointer;
}
#inventory-list input:checked + .swatch {
  opacity: 1;
  outline: 2px solid var(--rose);
  outline-offset: -2px;
}
#inventory-list input:focus-visible + .swatch {
  outline: 3px solid var(--ink);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: min(600px, 90vw);
  border: 1px solid #49404b;
  border-radius: 9px;
  padding: 12px 20px;
  background: #322e38;
  color: white;
  font-size: 12px;
  box-shadow: 0 8px 30px #24203022;
  line-height: 1.6;
}
#utility-description {
  white-space: pre-line;
}
#utility-input,
#utility-select {
  margin-bottom: 10px;
}
#utility-dialog {
  width: 470px;
}
#utility-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
#utility-submit {
  align-self: flex-end;
  min-width: 85px;
}
@media (min-width: 1600px) {
  .studio-layout {
    grid-template-columns: 250px minmax(0, 1fr) 240px;
  }
  .panel section {
    padding: 18px 20px;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .canvas-topbar {
    padding: 10px 24px;
  }
}
@media (max-width: 1100px) {
  .studio-layout {
    grid-template-columns: 210px minmax(0, 1fr) 195px;
  }
  .panel section {
    padding: 14px 12px;
  }
  .workbench-header {
    gap: 15px;
    padding: 0 16px;
  }
  .studio-brand {
    min-width: 190px;
  }
  .studio-nav button {
    padding: 8px 10px;
  }
  .header-right {
    gap: 12px;
  }
  .canvas-topbar {
    gap: 8px;
    padding: 8px;
  }
  .canvas-topbar .text-button {
    display: none;
  }
  .gallery-view {
    padding: 32px 26px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .canvas-stage {
    padding: 25px;
  }
}
@media (max-width: 800px) {
  .workbench-header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 13px 16px 0;
    gap: 12px;
  }
  .studio-brand {
    min-width: 0;
  }
  .studio-brand strong {
    font-size: 15px;
  }
  .header-right {
    gap: 14px;
    font-size: 11px;
  }
  .header-right > button {
    font-size: 10px;
    padding: 5px 8px;
  }
  .studio-nav {
    order: 3;
    width: 100%;
    height: 42px;
    justify-content: center;
    border-top: 1px solid var(--line);
  }
  .studio-nav button {
    flex: 1;
    border-radius: 0;
    height: 40px;
  }
  .document-bar {
    height: 59px;
    padding: 0 10px;
    gap: 8px;
  }
  .document-title {
    width: 145px;
    flex: 1;
  }
  .document-title input#board-title {
    font-size: 12px;
  }
  .document-title > span {
    font-size: 8px;
  }
  .document-actions {
    gap: 4px;
  }
  .document-actions button {
    font-size: 10px;
    padding: 6px;
  }
  .document-actions #undo,
  .document-actions #redo {
    width: 26px;
    min-height: 28px;
    font-size: 20px;
  }
  .document-actions .primary {
    padding: 7px 8px;
  }
  .document-actions .primary span {
    display: none;
  }
  .toolbar-divider {
    display: none;
  }
  .document-actions #cloud-save {
    display: none;
  }
  .mobile-panel {
    display: inline-flex;
    min-height: 29px;
    padding: 4px 7px;
  }
  .studio-layout {
    display: block;
    height: calc(100dvh - 170px);
    min-height: 320px;
    position: relative;
  }
  .canvas-column {
    height: 100%;
  }
  .panel {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 232px;
    z-index: 15;
    box-shadow: 0 10px 30px #25233d1c;
  }
  .left-panel {
    left: 0;
  }
  .right-panel {
    right: 0;
  }
  .panel.open {
    display: block;
  }
  .canvas-topbar {
    min-height: 44px;
    padding: 7px 10px;
    gap: 12px;
  }
  .canvas-topbar .check {
    font-size: 10px;
  }
  .canvas-status {
    padding: 0 8px;
    gap: 7px;
    font-size: 9px;
  }
  .canvas-status #cursor-info {
    display: none;
  }
  .canvas-stage {
    padding: 22px;
  }
  .gallery-view {
    padding: 30px 18px;
  }
  .gallery-heading h1 {
    font-size: 25px;
  }
  .gallery-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .gallery-heading .primary {
    font-size: 10px;
    padding: 7px;
    white-space: nowrap;
  }
  .gallery-heading p {
    font-size: 12px;
  }
  .gallery-filters {
    flex-wrap: wrap;
    margin-top: 25px;
    gap: 12px;
  }
  .gallery-search {
    width: 100%;
  }
  .gallery-search input {
    width: auto !important;
    flex: 1;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 13px;
  }
  .card-image {
    padding: 9px;
    border-radius: 9px;
  }
  .work-card h3 {
    font-size: 12px;
    margin-top: 10px;
  }
  .card-meta {
    font-size: 9px;
  }
  .import-layout {
    grid-template-columns: 1fr;
  }
  .import-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .import-settings label:first-child {
    margin-top: 13px;
  }
  .import-settings .primary {
    grid-column: 1/-1;
  }
  .file-drop {
    min-height: 180px;
  }
  dialog {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 17px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout canvas {
    max-height: 43dvh;
    object-fit: contain;
  }
  .detail-layout p {
    margin-bottom: 8px;
  }
  .detail-layout .primary {
    margin-top: 6px;
  }
  #inventory-list {
    grid-template-columns: repeat(8, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.import-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.import-comparison h3 { font-size: 12px; margin: 0 0 10px; }
.import-preview-frame { aspect-ratio: 1; display: grid; place-items: center; background: repeating-conic-gradient(#f0eef2 0% 25%, #faf9fb 0% 50%) 0 0 / 16px 16px; border: 1px solid var(--line); }
.import-preview-frame p { padding: 20px; color: var(--muted); text-align: center; font-size: 12px; }
#import-preview { width: 100%; image-rendering: pixelated; }
#change-image { font-size: 10px; margin-top: 7px; }
#import-preview-count { margin-top: 10px; }
#import-dialog .import-settings .primary { width: 100%; margin-top: 10px; }
