:root {
  --paper: #f8f7f3;
  --surface: #fffefa;
  --ink: #303d35;
  --muted: #85877c;
  --line: #e4e3da;
  --green: #315d50;
  --soft-green: #e8eee7;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  padding: 8px 13px;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
button:hover {
  background: #efeee6;
  border-color: #c9cec0;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #698f79;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #254a3e;
  border-color: #254a3e;
}
.secondary {
  background: #e9eee6;
  border-color: #d8dfd2;
  color: #315744;
}
.text-button {
  background: transparent;
  border-color: transparent;
}
.danger-text {
  color: #a25848;
  background: transparent;
}
.square {
  padding: 4px 12px;
  font-size: 22px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #7e8376;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.9px;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #75876b;
  border-radius: 50%;
  color: var(--green);
  font-size: 24px;
  position: relative;
  font-style: italic;
}
.brand-mark:after {
  content: "";
  position: absolute;
  width: 35px;
  height: 1px;
  background: #75876b;
  top: 15px;
  left: -3px;
}
.public-header {
  height: 88px;
  margin: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.language {
  font-size: 10px;
  letter-spacing: 0.12em;
  background: transparent;
  padding: 5px 9px;
  border-color: #d8dbcf;
}
.library-page {
  max-width: 1440px;
  padding: 0 6%;
  margin: auto;
}
.intro {
  padding: 83px 0 72px;
  max-width: 800px;
}
.intro h1 {
  font-size: clamp(40px, 4.3vw, 65px);
  margin: 19px 0 20px;
  letter-spacing: -1.9px;
}
.intro p {
  font-size: 15px;
  color: #7d8174;
  max-width: 530px;
  line-height: 1.8;
}
.section-label {
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-label span:last-child {
  color: #9c9e90;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 28px;
  padding: 27px 0 70px;
}
.timeline-card {
  border: 1px solid #dedfd4;
  border-radius: 7px;
  overflow: hidden;
  display: block;
  background: var(--surface);
  color: var(--ink);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px #354d3010;
}
.card-art {
  height: 225px;
  background: #eaece0;
  position: relative;
  overflow: hidden;
}
.card-number {
  position: absolute;
  top: 20px;
  left: 23px;
  font: italic 16px var(--serif);
  color: #6e7c5f;
}
.art-band {
  position: absolute;
  left: -20px;
  right: -30px;
  height: 17px;
  transform: rotate(-8deg);
  border-radius: 40%;
}
.band-a {
  top: 78px;
  background: linear-gradient(90deg, #a7af8c, #80946e);
  left: -80px;
  right: 35%;
}
.band-b {
  top: 118px;
  background: #c3af7d;
  transform: rotate(7deg);
  left: 25%;
}
.band-c {
  top: 146px;
  background: #829a95;
  transform: rotate(-5deg);
}
.band-d {
  top: 98px;
  background: #a7a2b3;
  transform: rotate(-14deg);
  left: 50%;
}
.art-line {
  position: absolute;
  top: 54px;
  bottom: 40px;
  width: 1px;
  background: #6f7a5b44;
  left: 61%;
}
.art-year {
  position: absolute;
  bottom: 17px;
  left: 22px;
  color: #7b836b;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.art-year.end {
  left: auto;
  right: 22px;
}
.card-body {
  padding: 26px 28px;
}
.card-body .eyebrow {
  font-size: 9px;
}
.card-body .eyebrow span {
  color: #a0a38f;
  letter-spacing: 0.08em;
}
.card-body h2 {
  font-size: 30px;
  margin: 16px 0 12px;
}
.card-body p {
  font-size: 13px;
  color: #85887b;
  line-height: 1.8;
  max-width: 620px;
  min-height: 46px;
}
.card-link {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}
.card-link span {
  font-size: 19px;
}
.art-1 {
  filter: hue-rotate(28deg);
}
.art-2 {
  filter: hue-rotate(-28deg);
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  color: #8c9082;
  font-size: 11px;
}
footer span:first-child {
  font-size: 9px;
  letter-spacing: 0.18em;
}
.empty-state {
  padding: 70px 0;
  color: var(--muted);
}
.login-wrap {
  max-width: 410px;
  margin: 12vh auto;
  padding: 25px;
}
.login-wrap h1 {
  font-size: 45px;
  margin: 20px 0;
}
.login-wrap p {
  color: var(--muted);
}
label {
  display: block;
}
input,
select,
textarea {
  border: 1px solid #dedfd5;
  background: #fffefa;
  border-radius: 4px;
  padding: 8px 10px;
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
input[type="color"] {
  height: 35px;
  padding: 4px;
  width: 100%;
}
.login-wrap label {
  margin: 20px 0;
}
.login-wrap label > span {
  display: block;
  margin-bottom: 7px;
}
.login-wrap button {
  width: 100%;
  margin-top: 10px;
}
.error {
  color: #a44e3e !important;
}
.editor-header {
  height: 66px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 28px;
}
.editor-header .brand {
  font-size: 25px;
}
.editor-header .header-right {
  margin-left: auto;
  gap: 15px;
}
.workspace-label {
  font-size: 9px;
  font-weight: 500;
  color: #9b9d8e;
  letter-spacing: 0.14em;
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.editor-header #save-status {
  font-size: 11px;
  color: #8d927f;
}
.editor-header #save-status.dirty:before {
  content: "•";
  margin-right: 6px;
  color: #b39b5b;
}
.editor-header .text-button {
  font-size: 11px;
}
.project-toolbar {
  height: 67px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  background: #faf9f5;
}
.project-picker {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}
.project-picker select {
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 22px;
  max-width: 430px;
  padding-left: 0;
}
.project-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-actions button {
  font-size: 11px;
  padding: 8px 15px;
}
.badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9b987f;
  background: #efedde;
  border: 1px solid #e4e1ca;
  border-radius: 3px;
  padding: 3px 7px;
  margin-right: 9px;
}
.badge.published {
  background: #e9eee6;
  color: #52734f;
  border-color: #d4dfcf;
}
.editor-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 270px;
  height: calc(100dvh - 133px);
  min-height: 450px;
}
.layers-panel {
  border-right: 1px solid var(--line);
  background: #f9f8f4;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-title {
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #989b8c;
  padding: 20px 20px 14px;
  display: flex;
  justify-content: space-between;
}
.panel-title span:last-child {
  font-size: 10px;
  font-weight: 400;
}
.layer-tabs {
  display: flex;
  margin: 0 15px 12px;
  border-bottom: 1px solid var(--line);
}
.layer-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 11px;
  padding: 9px 9px;
  color: #8c8e80;
  flex: 1;
}
.layer-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.layer-list {
  overflow-y: auto;
  min-height: 90px;
  flex: 1;
  padding: 3px 9px;
}
.layer-row {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  padding: 12px 9px;
  gap: 10px;
  margin-bottom: 4px;
  border-radius: 5px;
  white-space: normal;
}
.layer-row.selected {
  background: #eaf0e6;
  border-color: #d9e1d1;
}
.layer-swatch {
  height: 24px;
  width: 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.layer-detail {
  display: block;
  min-width: 0;
  flex: 1;
}
.layer-detail strong {
  font-size: 11px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.layer-detail small {
  display: block;
  font-size: 9px;
  color: #989b8c;
  margin-top: 3px;
}
.layer-index {
  font-size: 8px;
  color: #aeb09f;
}
.overlay-swatch {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}
.empty-layers {
  padding: 15px 10px;
  font-size: 11px;
}
.add-controls {
  padding: 13px 15px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.add-controls button {
  font-size: 10px;
  padding: 7px 9px;
  background: transparent;
  border-style: dashed;
}
.add-controls .add-layer {
  width: 100%;
}
.sidebar-bottom {
  padding: 15px;
  border-top: 1px solid var(--line);
}
.sidebar-bottom button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 11px;
  padding: 8px 4px;
  color: #7a8270;
}
.workbench {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #eeeee7;
  min-width: 0;
  min-height: 0;
}
.canvas-toolbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #dedfd4;
  flex-shrink: 0;
  gap: 12px;
}
.canvas-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #8e9484;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  height: 5px;
  width: 5px;
  background: #8b9e7b;
  border-radius: 100%;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.zoom-controls button {
  border-color: transparent;
  background: transparent;
  padding: 4px 7px;
  font-size: 12px;
}
.zoom-controls span {
  font-size: 10px;
  color: #898e7f;
  min-width: 32px;
  text-align: center;
}
.zoom-controls .divider {
  border-left: 1px solid #d4d9cb;
  width: 1px;
  height: 16px;
  min-width: 1px;
  margin: 0 5px;
}
.canvas-viewport {
  position: relative;
  overflow: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  background-image: radial-gradient(#b8bbaa77 0.65px, transparent 0.65px);
  background-size: 16px 16px;
  padding: 40px 32px 60px;
  scrollbar-color: #c6cbbb transparent;
  scrollbar-width: thin;
}
.canvas-viewport #canvas {
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  touch-action: none;
}
.canvas-viewport svg {
  display: block;
  background: #faf8f2;
  box-shadow: 0 3px 16px #3c4b3410;
  max-width: none;
}
.canvas-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  font-size: 9px;
  color: #9da18f;
  border-top: 1px solid #dedfd4;
  min-height: 39px;
  flex-shrink: 0;
}
.canvas-footer span:first-child {
  white-space: nowrap;
  color: #7d8470;
}
.inspector-panel {
  border-left: 1px solid var(--line);
  background: #faf9f5;
  overflow-y: auto;
  scrollbar-width: thin;
}
.inspector-panel > .panel-title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.inspector-panel #inspector {
  padding: 22px 20px;
}
.inspector-panel h2 {
  font-size: 23px;
  margin: 7px 0 24px;
  overflow-wrap: anywhere;
}
.field {
  margin: 0 0 17px;
}
.field > span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #777f6d;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  font-size: 11px;
}
.field small,
.field-note {
  font-size: 10px;
  line-height: 1.7;
  color: #a1a28e;
  display: block;
  margin: 7px 0 17px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-pair .field {
  min-width: 0;
}
.field-pair .field > span {
  font-size: 9px;
}
.field-pair + .field-note {
  margin-top: -8px;
}
.inspector-divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.element-actions {
  display: flex;
  gap: 8px;
}
.element-actions button {
  font-size: 11px;
}
.inspector-panel .danger-text {
  font-size: 11px;
  display: block;
  margin-top: 8px;
}
.public-link {
  font-size: 11px;
  display: block;
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.empty-inspector {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.inspector-image {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #eeeee6;
  margin-bottom: 12px;
  border-radius: 4px;
}
#change-image {
  font-size: 11px;
  margin-bottom: 15px;
}
#empty-canvas {
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  pointer-events: none;
}
#empty-canvas h2 {
  font-size: 34px;
  color: #6e7e66;
}
#empty-canvas p {
  color: #8b9480;
}
.subtle {
  color: var(--muted);
}
.preview .editor-layout {
  grid-template-columns: minmax(0, 1fr);
}
.preview .layers-panel,
.preview .inspector-panel {
  display: none;
}
.preview .canvas-footer {
  justify-content: center;
}
.busy .editor-layout,
.busy .project-toolbar,
.busy #logout {
  pointer-events: none;
}
.busy #save-status {
  color: var(--green);
}
#viewer {
  padding: 50px 5% 25px;
}
.viewer-intro {
  max-width: 840px;
}
.back-link {
  font-size: 11px;
  color: #8b927f;
}
.viewer-intro h1 {
  font-size: 46px;
  letter-spacing: -1px;
  margin: 23px 0 15px;
}
.viewer-intro p {
  color: #8a8f7d;
  font-size: 13px;
  line-height: 1.8;
}
.viewer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding: 15px 0;
}
.public-canvas {
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 65vh;
  min-height: 390px;
  background-color: #eeeee6;
}
.public-canvas #canvas,
.preview #canvas {
  touch-action: pan-x pan-y;
}
.viewer-hint {
  font-size: 10px;
  color: #999e8a;
  margin-top: 17px;
}
dialog {
  border: 1px solid #dedfd4;
  border-radius: 10px;
  padding: 35px;
  width: min(600px, calc(100vw - 40px));
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px #27362230;
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #25352766;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 31px;
  margin: 15px 0;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: #929682;
}
dialog .dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  padding: 5px 9px;
  background: transparent;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.dialog-actions button {
  font-size: 12px;
}
.export-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.export-options button {
  font-size: 12px;
  padding: 13px;
}
.print-dimensions {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #8f9481;
}
.print-dimensions strong {
  font-weight: 500;
  color: var(--ink);
}
.upload-button {
  display: inline-block;
  background: var(--green);
  color: white;
  border-radius: 5px;
  padding: 9px 15px;
  cursor: pointer;
  font-size: 12px;
  margin: 10px 0 20px;
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.media-card {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
  min-width: 0;
  background: var(--surface);
}
.media-card img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #efeee6;
  margin-bottom: 12px;
}
.media-card strong {
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.media-card small {
  color: var(--muted);
  font-size: 9px;
}
.media-card > div {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.media-card button {
  font-size: 10px;
  padding: 5px 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #315d50;
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  box-shadow: 0 8px 30px #27362230;
  z-index: 100;
  max-width: 90vw;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #8a4d3b;
  color: white !important;
}
#print-area {
  display: none;
}
@media (min-width: 1600px) {
  .editor-layout {
    grid-template-columns: 255px minmax(0, 1fr) 290px;
  }
  .layer-detail strong {
    font-size: 12px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 12px;
  }
  .inspector-panel #inspector {
    padding: 24px;
  }
}
@media (max-width: 1100px) {
  .editor-layout {
    grid-template-columns: 190px minmax(0, 1fr) 235px;
  }
  .editor-header {
    padding: 0 18px;
  }
  .project-toolbar {
    padding: 0 15px;
  }
  .workspace-label {
    display: none;
  }
  .layer-detail strong {
    font-size: 10px;
  }
  .project-picker select {
    max-width: 270px;
    font-size: 19px;
  }
  .canvas-label {
    display: none;
  }
  .canvas-toolbar {
    justify-content: flex-end;
    padding: 0 10px;
  }
  .canvas-footer span:last-child {
    display: none;
  }
  .inspector-panel #inspector {
    padding: 18px 15px;
  }
  .layer-row {
    gap: 7px;
    padding: 10px 6px;
  }
  .project-actions button {
    padding: 7px 11px;
  }
  .badge {
    margin-right: 2px;
  }
}
@media (max-width: 760px) {
  .public-header {
    height: 75px;
  }
  .public-header .eyebrow {
    display: none;
  }
  .intro {
    padding: 55px 0 40px;
  }
  .intro h1 {
    letter-spacing: -1.5px;
  }
  .intro p {
    font-size: 14px;
  }
  .gallery {
    padding-bottom: 40px;
  }
  .card-body {
    padding: 22px;
  }
  .card-body h2 {
    font-size: 28px;
  }
  footer {
    gap: 20px;
    align-items: start;
  }
  footer span:last-child {
    text-align: right;
    max-width: 180px;
    font-size: 10px;
  }
  .editor-header {
    height: 58px;
    padding: 0 14px;
  }
  .editor-header .brand {
    font-size: 23px;
  }
  .editor-header .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 21px;
  }
  .editor-header .brand-mark:after {
    width: 29px;
    top: 12px;
  }
  .editor-header .header-right {
    gap: 6px;
  }
  .editor-header #save-status {
    max-width: 100px;
    font-size: 9px;
  }
  .editor-header #logout {
    font-size: 10px;
    padding: 5px;
  }
  .project-toolbar {
    height: auto;
    min-height: 95px;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .project-picker {
    width: 100%;
  }
  .project-picker select {
    max-width: none;
    flex: 1;
    width: 100%;
    font-size: 20px;
  }
  .project-picker .square {
    font-size: 18px;
  }
  .project-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }
  .project-actions .badge {
    margin-right: auto;
    font-size: 8px;
  }
  .project-actions button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .editor-layout {
    height: calc(100dvh - 161px);
    grid-template-columns: 135px minmax(0, 1fr);
    grid-template-rows: minmax(260px, 1fr) 270px;
    min-height: 560px;
  }
  .layers-panel {
    grid-row: 1 / 3;
  }
  .inspector-panel {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .inspector-panel > .panel-title {
    padding: 12px 15px;
  }
  .inspector-panel #inspector {
    padding: 15px;
  }
  .inspector-panel h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .layer-tabs {
    margin: 0 5px 10px;
  }
  .layer-tabs button {
    font-size: 8px;
    padding: 8px 3px;
  }
  .panel-title {
    font-size: 8px;
    padding: 15px 10px;
  }
  .layer-list {
    padding: 0 4px;
  }
  .layer-row {
    gap: 6px;
  }
  .layer-index {
    display: none;
  }
  .layer-detail strong {
    font-size: 9px;
  }
  .layer-detail small {
    font-size: 8px;
  }
  .layer-swatch {
    width: 4px;
    height: 20px;
  }
  .overlay-swatch {
    width: 17px;
    font-size: 10px;
  }
  .add-controls {
    padding: 10px 6px;
    gap: 5px;
  }
  .add-controls button {
    font-size: 9px;
    padding: 5px;
    white-space: normal;
    flex: 1;
  }
  .sidebar-bottom {
    padding: 10px 6px;
  }
  .sidebar-bottom button {
    font-size: 9px;
    white-space: normal;
    padding: 9px 3px;
  }
  .canvas-toolbar {
    height: 42px;
  }
  .zoom-controls {
    gap: 1px;
  }
  .zoom-controls button {
    padding: 3px 5px;
    font-size: 11px;
  }
  .zoom-controls .divider {
    margin: 0 3px;
  }
  .canvas-viewport {
    padding: 25px 15px 40px;
  }
  .canvas-footer {
    padding: 8px 10px;
    min-height: 28px;
  }
  .preview .editor-layout {
    display: flex;
  }
  .preview .workbench {
    flex: 1;
  }
  .viewer-intro h1 {
    font-size: 35px;
  }
  .public-canvas {
    min-height: 300px;
  }
  #viewer {
    padding-top: 30px;
  }
  .viewer-hint {
    font-size: 9px;
  }
  dialog {
    padding: 28px 22px;
  }
  dialog h2 {
    font-size: 26px;
    margin-top: 25px;
  }
  .export-options {
    grid-template-columns: 1fr;
  }
  .print-dimensions {
    flex-direction: column;
    gap: 5px;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  #empty-canvas h2 {
    font-size: 23px;
  }
  #empty-canvas p {
    font-size: 10px;
    padding: 0 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > #print-area {
    display: block !important;
  }
  #print-area svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  body {
    margin: 0;
    background: white;
  }
}
