:root {
  --ink: #292722;
  --muted: #777066;
  --paper: #f7f3eb;
  --paper-deep: #ece4d7;
  --panel: rgba(255, 253, 248, 0.94);
  --line: #d9d0c2;
  --line-strong: #bdb3a4;
  --accent: #d85f3e;
  --accent-dark: #a94129;
  --accent-soft: #f5d7c9;
  --teal: #3c8179;
  --teal-soft: #d5ebe6;
  --gold: #c49638;
  --danger: #b7423c;
  --shadow: 0 12px 32px rgba(59, 48, 34, 0.12);
  --sidebar-width: 286px;
  --inspector-width: 326px;
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper-deep);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 1100px; height: 100%; overflow: hidden; }
body {
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.7), transparent 28%),
    linear-gradient(135deg, #eee6d9, #e8dfd1);
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(60, 129, 121, 0.28);
  outline-offset: 1px;
}

[hidden] { display: none !important; }

.app-shell { height: 100vh; display: grid; grid-template-rows: 72px minmax(0, 1fr); }

.topbar {
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 18px;
  background: rgba(250, 247, 240, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(65, 51, 31, 0.07);
  backdrop-filter: blur(14px);
}

.brand-block { display: flex; align-items: center; gap: 12px; min-width: 265px; }
.brand-block h1 { margin: 0; font-size: 18px; line-height: 1.1; letter-spacing: -0.025em; }
.brand-block p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.brand-mark { position: relative; width: 42px; height: 42px; }
.brand-mark span { position: absolute; display: block; width: 26px; height: 29px; border: 1px solid rgba(75,61,43,.22); box-shadow: 2px 3px 5px rgba(50,39,26,.14); }
.brand-mark span:nth-child(1) { left: 3px; top: 8px; background: #efb057; transform: rotate(-12deg); }
.brand-mark span:nth-child(2) { left: 12px; top: 5px; background: #e77d62; transform: rotate(6deg); }
.brand-mark span:nth-child(3) { left: 9px; top: 10px; background: #f7e6c3; transform: rotate(-1deg); }
.brand-mark::after { content: ""; position: absolute; left: 20px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 0 #fff; }

.top-actions { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.divider { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }

.button, .icon-button, .round-button, .mini-button, .small-action {
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.button:hover, .icon-button:hover, .round-button:hover, .mini-button:hover, .small-action:hover {
  transform: translateY(-1px);
  border-color: #9e9282;
  box-shadow: 0 4px 10px rgba(50,40,28,.08);
}
.button:disabled, .icon-button:disabled, .round-button:disabled, .mini-button:disabled, .small-action:disabled {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}
.button { min-height: 36px; border-radius: 9px; padding: 8px 13px; font-weight: 700; font-size: 12px; }
.button.primary { color: #fff; border-color: var(--accent-dark); background: linear-gradient(#df6b48, #c95032); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 4px 12px rgba(170,65,38,.18); }
.button.primary:hover { background: linear-gradient(#e67451, #bd472c); }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.full-width { width: 100%; }
.button.export-button { min-height: 46px; font-size: 14px; }
.button-icon { font-size: 16px; margin-right: 3px; }
.icon-button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; font-weight: 900; background: #fffdf8; }

.workspace { min-height: 0; display: grid; grid-template-columns: var(--sidebar-width) minmax(470px, 1fr) var(--inspector-width); }
.sidebar { min-height: 0; background: var(--panel); backdrop-filter: blur(13px); }
.left-sidebar { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.right-sidebar { border-left: 1px solid var(--line); display: grid; grid-template-rows: 48px minmax(0, 1fr); }

.project-card { padding: 18px 18px 15px; border-bottom: 1px solid var(--line); background: linear-gradient(150deg, rgba(255,255,255,.75), rgba(247,240,228,.8)); }
.project-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.eyebrow { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.project-card h2 { margin: 6px 0 5px; max-width: 230px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; letter-spacing: -.02em; }
.project-meta { display: flex; gap: 12px; color: var(--muted); font-size: 11px; }
.status-row { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9b0a3; box-shadow: 0 0 0 3px rgba(185,176,163,.16); }
.status-dot.online { background: #4d9a74; box-shadow: 0 0 0 3px rgba(77,154,116,.15); }
.status-dot.warning { background: #d59a35; box-shadow: 0 0 0 3px rgba(213,154,53,.16); }
.status-dot.error { background: #bf5149; box-shadow: 0 0 0 3px rgba(191,81,73,.15); }

.panel-section { padding: 15px 12px; border-bottom: 1px solid var(--line); }
.layer-panel-section { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.compact-section { padding-bottom: 18px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 5px 10px; }
.section-heading.small { padding-bottom: 8px; }
.section-heading h3 { margin: 3px 0 0; font-size: 13px; }
.section-tools { display: flex; gap: 5px; }
.mini-button { width: 26px; height: 26px; border-radius: 7px; padding: 0; display: grid; place-items: center; font-weight: 800; }

.layer-tree { min-height: 0; overflow: auto; padding: 2px 1px 12px; scrollbar-width: thin; }
.empty-list { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.6; }
.layer-branch { list-style: none; padding: 0; margin: 0; }
.layer-branch .layer-branch { margin-left: 14px; padding-left: 6px; border-left: 1px dashed #d8cdbd; }
.layer-node { margin: 2px 0; }
.layer-row {
  min-height: 31px;
  display: grid;
  grid-template-columns: 22px 22px minmax(0,1fr) auto;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}
.layer-row:hover { background: rgba(226,216,200,.36); }
.layer-row.selected { background: var(--accent-soft); border-color: rgba(200,83,49,.25); }
.layer-row.marker-row { color: #9b5848; background: rgba(216,95,62,.035); }
.layer-row.muted { opacity: .54; }
.layer-expander { width: 20px; height: 20px; border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0; }
.layer-expander.placeholder { pointer-events: none; }
.layer-visibility { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid #b9ad9c; border-radius: 5px; background: #fff; cursor: pointer; position: relative; }
.layer-visibility:checked::after { content: ""; position: absolute; inset: 3px; border-radius: 2px; background: var(--teal); }
.layer-label { display: flex; min-width: 0; align-items: center; gap: 6px; font-size: 11px; }
.layer-label-icon { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; background: #efe8dc; color: #776c5f; }
.layer-label-icon.group { background: #f0dba7; color: #7b5f22; }
.layer-label-icon.joint { background: #f0c8bc; color: #a2412b; }
.layer-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.layer-badges { display: flex; gap: 3px; }
.tiny-badge { min-width: 18px; height: 17px; padding: 0 4px; border-radius: 5px; display: grid; place-items: center; font-size: 8px; font-weight: 900; color: #745f42; background: #eee3cf; }
.tiny-badge.joint { color: #9d3e29; background: #f6d6ca; }
.tiny-badge.joint-hidden { color: #8d8173; background: #e8e0d5; text-decoration: line-through; opacity: .72; }
button.tiny-badge { border: 0; cursor: pointer; font: inherit; }
button.tiny-badge:hover { transform: translateY(-1px); filter: brightness(.97); }
.tiny-badge.motion { color: #2e746b; background: #d7ebe7; }

.toggle-line { display: flex; align-items: center; gap: 9px; padding: 6px 5px; color: #5f594f; font-size: 11px; cursor: pointer; }
.toggle-line input, .micro-toggle input { accent-color: var(--teal); }
.joint-visibility-tools { margin: 6px 0 10px 24px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.45); }
.joint-visibility-summary { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.toggle-line.boxed { padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.55); }

.stage-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: 48px minmax(0, 1fr) 34px; background: #ded7cc; }
.stage-toolbar { display: grid; grid-template-columns: auto minmax(120px,1fr) auto; align-items: center; gap: 15px; padding: 6px 12px; background: rgba(249,246,239,.92); border-bottom: 1px solid var(--line); }
.transport-controls, .zoom-controls { display: flex; align-items: center; gap: 6px; }
.round-button { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; border-color: var(--accent-dark); background: var(--accent); font-size: 12px; font-weight: 900; }
.round-button.secondary { color: var(--ink); border-color: var(--line-strong); background: #fffdf8; }
.time-readout { min-width: 52px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.scrub-wrap input { width: 100%; accent-color: var(--accent); }
.zoom-controls input { width: 90px; accent-color: var(--teal); }
#zoomLabel { min-width: 36px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.fit-button { min-height: 28px; padding: 5px 8px; font-size: 10px; }

.stage-scroll { position: relative; overflow: auto; display: grid; place-items: center; padding: 48px; background:
  radial-gradient(circle at center, rgba(255,255,255,.42), transparent 58%),
  linear-gradient(45deg, rgba(0,0,0,.025) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.025) 75%),
  linear-gradient(45deg, rgba(0,0,0,.025) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.025) 75%);
  background-size: auto, 24px 24px, 24px 24px;
  background-position: center, 0 0, 12px 12px;
}
.stage-empty { max-width: 450px; text-align: center; color: var(--muted); }
.stage-empty h2 { margin: 20px 0 7px; color: var(--ink); font-size: 21px; }
.stage-empty p { margin: 0 auto 18px; max-width: 390px; font-size: 12px; line-height: 1.6; }
.empty-illustration { position: relative; width: 150px; height: 125px; margin: 0 auto; }
.paper-piece { position: absolute; border: 1px solid rgba(65,50,33,.15); box-shadow: 7px 9px 13px rgba(68,51,30,.16); }
.piece-a { width: 76px; height: 94px; left: 20px; top: 18px; background: #d8a44e; transform: rotate(-13deg); border-radius: 38px 38px 14px 14px; }
.piece-b { width: 72px; height: 70px; left: 61px; top: 28px; background: #e17759; transform: rotate(10deg); border-radius: 35px 35px 18px 18px; }
.piece-c { width: 55px; height: 42px; left: 49px; top: 4px; background: #f2dfb7; transform: rotate(-2deg); border-radius: 50%; }
.pin { position: absolute; width: 10px; height: 10px; left: 75px; top: 51px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(255,255,255,.7); }

.canvas-wrap { position: relative; flex: none; padding: 0; box-shadow: 0 18px 45px rgba(47,36,22,.18); line-height: 0; }
.canvas-wrap.checker { background-color: #fff; background-image: linear-gradient(45deg,#e9e5de 25%,transparent 25%),linear-gradient(-45deg,#e9e5de 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9e5de 75%),linear-gradient(-45deg,transparent 75%,#e9e5de 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; }
#stageCanvas { display: block; cursor: default; image-rendering: auto; }
#stageCanvas.placing-joint { cursor: crosshair; }
.joint-placement-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); line-height: 1.2; white-space: nowrap; border-radius: 999px; padding: 9px 14px; color: #fff; background: rgba(41,39,34,.9); box-shadow: 0 8px 22px rgba(0,0,0,.2); font-size: 11px; font-weight: 700; pointer-events: none; }
.stage-statusbar { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-top: 1px solid #c9c0b4; background: #ebe5dc; color: #6d655b; font-size: 10px; }
.status-pills { display: flex; gap: 6px; }
.status-pill { border: 1px solid #c9bfb1; border-radius: 999px; padding: 3px 7px; background: rgba(255,255,255,.48); font-size: 8px; font-weight: 900; letter-spacing: .05em; }

.inspector-tabs { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); background: rgba(246,241,232,.8); }
.inspector-tab { border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); font-weight: 800; font-size: 11px; }
.inspector-tab:last-child { border-right: 0; }
.inspector-tab.active { color: var(--accent-dark); background: #fffdf8; box-shadow: inset 0 -3px var(--accent); }
.inspector-body { min-height: 0; overflow: auto; scrollbar-width: thin; }
.inspector-panel { display: none; padding: 15px; }
.inspector-panel.active { display: block; }
.inspector-empty { padding: 70px 22px; text-align: center; color: var(--muted); }
.inspector-empty-icon { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #eee6d8; color: #8b7d6a; font-size: 23px; }
.inspector-empty h3 { margin: 0 0 7px; color: var(--ink); font-size: 15px; }
.inspector-empty p { margin: 0; font-size: 11px; line-height: 1.6; }
.selected-summary { display: flex; align-items: center; gap: 11px; padding: 4px 2px 13px; }
.selected-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #eee4d3; color: #7b6b57; font-size: 18px; }
.selected-copy { min-width: 0; flex: 1; }
.name-input { width: 100%; margin-top: 3px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink); font-weight: 800; font-size: 15px; }
.name-input:hover, .name-input:focus { border-bottom-color: var(--line-strong); outline: none; }
.selected-path { margin-top: 4px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }
.inline-actions { display: grid; gap: 6px; }
.inline-actions.four { grid-template-columns: repeat(4,1fr); margin-bottom: 12px; }
.inline-actions.three { grid-template-columns: repeat(3,1fr); }
.inline-actions.two { grid-template-columns: repeat(2,1fr); }
.compact-actions { gap: 5px; }
.layer-order-actions { margin-bottom: 6px; }
.settings-copy-actions { margin-bottom: 12px; }
.motion-copy-actions { margin-top: 12px; }
.small-action { min-height: 30px; border-radius: 7px; padding: 5px 6px; font-size: 9px; font-weight: 800; }
.small-action.accent { color: #a43f28; background: #f8dfd5; border-color: #e5aa98; }
.small-action.danger { color: var(--danger); }

.inspector-group { margin: 0 -15px; padding: 15px; border-top: 1px solid var(--line); }
.inspector-group:last-child { border-bottom: 1px solid var(--line); }
.group-title, .group-title-row { margin-bottom: 11px; font-size: 11px; font-weight: 900; }
.group-title-row { display: flex; align-items: center; justify-content: space-between; }
.group-title-row .group-title { margin: 0; }
.badge { border-radius: 999px; padding: 4px 7px; color: #776c5f; background: #eae2d6; font-size: 8px; font-weight: 900; }
.badge.active { color: #9b3d26; background: #f4d3c7; }
.micro-toggle { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
.field { margin: 9px 0; }
.field > span { color: #5f594f; font-size: 10px; font-weight: 700; }
.field.stacked { display: grid; gap: 6px; }
.field.stacked input, .field.stacked select, .color-control input[type="text"] {
  width: 100%; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: rgba(255,255,255,.78); color: var(--ink); font-size: 11px;
}
.field.stacked small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.field.toggle-field { display: flex; align-items: center; justify-content: space-between; }
.field.toggle-field input { accent-color: var(--teal); }
.field.range-field { display: grid; grid-template-columns: 74px minmax(0,1fr) 42px; align-items: center; gap: 7px; }
.field.range-field input { width: 100%; accent-color: var(--teal); }
.field.range-field output { text-align: right; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.field-grid { display: grid; gap: 8px; }
.field-grid.two { grid-template-columns: repeat(2,1fr); }
.helper-text { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.panel-intro { padding: 5px 2px 14px; }
.panel-intro h3 { margin: 4px 0 6px; font-size: 18px; }
.panel-intro p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.color-control { display: grid; grid-template-columns: 42px 1fr; gap: 7px; }
.color-control input[type="color"] { width: 42px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; }

.project-file-actions { display: grid; gap: 7px; margin-bottom: 9px; }
.spaced-button { margin-top: 7px; }
.replacement-target { margin-bottom: 9px; padding: 9px 10px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.48); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.replacement-target.ready { border-style: solid; border-color: #a8c9c4; color: #285f58; background: #e4f1ee; }
.replacement-result { margin-top: 10px; padding: 9px 10px; border-radius: 8px; color: #4d554f; background: #e7efe9; font-size: 9px; line-height: 1.55; }
.project-detail-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font-size: 9px; }
.project-detail-grid span { color: var(--muted); }
.project-detail-grid strong { color: #2f6d65; font-size: 9px; }
.layer-only-action { margin-top: 9px; }
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 13px; }
.format-card { position: relative; display: grid; gap: 3px; min-height: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.55); cursor: pointer; }
.format-card input { position: absolute; opacity: 0; pointer-events: none; }
.format-card strong { font-size: 11px; }
.format-card small { color: var(--muted); font-size: 8px; }
.format-card.selected { border-color: var(--accent); background: #f8e0d7; box-shadow: inset 0 0 0 1px rgba(216,95,62,.15); }
.export-estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0; }
.export-estimate > div { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f3eee6; }
.export-estimate span, .export-estimate strong { display: block; }
.export-estimate span { color: var(--muted); font-size: 8px; }
.export-estimate strong { margin-top: 4px; font-size: 11px; }
.export-progress { margin-top: 10px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e4dbce; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .15s linear; }
.export-progress span { display: block; margin-top: 6px; color: var(--muted); text-align: center; font-size: 9px; }

.busy-overlay, .modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(44,39,32,.34); backdrop-filter: blur(3px); }
.busy-card { min-width: 280px; display: grid; justify-items: center; gap: 8px; padding: 26px; border: 1px solid rgba(255,255,255,.5); border-radius: 16px; background: #fffaf2; box-shadow: var(--shadow); }
.busy-card strong { font-size: 14px; }
.busy-card span { color: var(--muted); font-size: 10px; }
.spinner { width: 30px; height: 30px; border: 3px solid #eadfd1; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal { width: min(700px, calc(100vw - 60px)); max-height: calc(100vh - 60px); overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 17px; background: #fffaf2; box-shadow: 0 25px 75px rgba(33,25,16,.28); }
.small-modal { width: min(470px, calc(100vw - 60px)); }
.modal-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); background: rgba(255,250,242,.94); backdrop-filter: blur(10px); }
.modal-header h2 { margin: 4px 0 0; font-size: 18px; }
.modal-content { padding: 20px; color: #595249; font-size: 11px; line-height: 1.7; }
.guide-content { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide-content section { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.58); }
.guide-content h3 { margin: 0 0 7px; color: var(--ink); font-size: 12px; }
.guide-content p { margin: 0; }
code, .command-box { border-radius: 5px; background: #eee6da; color: #8f3e2b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
code { padding: 1px 4px; }
.command-box { margin: 13px 0; padding: 12px; border: 1px solid #d7c9b8; font-size: 12px; user-select: all; }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: grid; gap: 8px; width: min(340px, calc(100vw - 36px)); }
.toast { padding: 12px 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 11px; color: #fff; background: rgba(42,39,34,.93); box-shadow: 0 12px 30px rgba(0,0,0,.2); animation: toast-in .22s ease both; font-size: 10px; line-height: 1.5; }
.toast.success { background: rgba(47,118,94,.95); }
.toast.warning { background: rgba(166,105,34,.96); }
.toast.error { background: rgba(160,57,48,.96); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1280px) {
  :root { --sidebar-width: 260px; --inspector-width: 300px; }
  .topbar { gap: 10px; }
  .brand-block { min-width: 240px; }
  .button { padding-inline: 10px; }
  .stage-scroll { padding: 34px; }
}

.version-tag {
  display: inline-flex;
  vertical-align: 2px;
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #2e746b;
  background: #d7ebe7;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.stage-scroll.drop-active::after {
  content: "프로젝트, ZIP 또는 이미지 파일을 놓으세요";
  position: absolute;
  inset: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 3px dashed var(--teal);
  border-radius: 18px;
  color: #245f58;
  background: rgba(225, 243, 239, .9);
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.format-card.unavailable { cursor: not-allowed; }
