:root { --page-bg: #f5efd7; --ink: #24211d; --muted: #615a4d; --rule: #b7b3a8; --active: #e52e25; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--page-bg); }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; font-size: 13px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
button { cursor: pointer; border: 0; background: transparent; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; }
button:hover, a:hover { background: var(--ink); color: #fff; }
button:disabled { opacity: .35; cursor: default; }
button:disabled:hover { background: transparent; color: inherit; }
svg.lucide { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.6; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--rule); border-radius: 0; background: #fff9; min-height: 30px; padding: 5px 6px; }
input[type="color"] { padding: 2px; }
input[type="range"] { padding: 0; accent-color: var(--ink); }
textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
label { display: grid; gap: 5px; font-size: 10px; font-weight: 700; min-width: 0; }
label input, label select, label textarea { font-size: 12px; font-weight: 400; }
[hidden] { display: none !important; }
.mixer-shell { width: calc(100% - 48px); max-width: 1900px; height: calc(100dvh - 28px); min-height: 640px; margin: 14px auto; display: flex; flex-direction: column; }
.project-header { position: relative; gap: 7px; margin-bottom: 12px; padding-top: 4px; }
.project-header .sqk-back { position: absolute; left: 0; top: 4px; width: 68px; }
.project-header .project-date { padding-left: 90px; min-height: 20px; font-size: 10px; }
.project-header .project-rule { margin-left: 90px; border-top-width: 1px; }
.project-header h1 { margin-left: 90px; font-size: 36px; line-height: 1; }
.navigation { display: flex; align-items: center; border-block: 1px solid var(--ink); flex-shrink: 0; }
.navigation a { text-decoration: none; color: inherit; padding: 12px; font-size: 11px; font-weight: 700; border-right: 1px solid var(--rule); }
.navigation a[aria-current] { background: var(--ink); color: var(--page-bg); }
.navigation button { border-left: 1px solid var(--rule); font-size: 11px; }
.save-state { margin-left: auto; padding: 0 12px; font-size: 10px; color: var(--muted); }
.canvas-toolbar { display: grid; grid-template-columns: minmax(130px, 1fr) 170px 85px 85px 55px 38px; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--ink); }
.workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr) 270px; flex: 1; min-height: 0; }
.layers-panel, .inspector { min-width: 0; overflow-y: auto; }
.layers-panel { border-right: 1px solid var(--rule); }
.inspector { border-left: 1px solid var(--rule); }
.section-heading { display: flex; justify-content: space-between; align-items: center; min-height: 40px; border-bottom: 1px solid var(--rule); padding: 0 10px; }
h2, h3 { margin: 0; font-size: 11px; text-transform: uppercase; }
h3 { padding: 10px 0 3px; border-top: 1px solid var(--rule); }
.section-heading span { color: var(--muted); font-size: 10px; }
.icon-button { width: 34px; min-height: 34px; padding: 6px; flex-shrink: 0; }
#layer-list { list-style: none; margin: 0; padding: 0; }
.layer-row { display: flex; border-bottom: 1px solid var(--rule); min-width: 0; }
.layer-row.selected { background: #fff; box-shadow: inset 3px 0 var(--active); }
.layer-select { flex: 1; min-width: 0; display: block; padding: 12px 10px; text-align: left; }
.layer-select strong, .layer-select small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-select strong { font-size: 12px; margin-bottom: 5px; }
.layer-select small { font-size: 10px; opacity: .65; }
.layer-row .icon-button { align-self: center; }
.layer-actions { display: flex; border-bottom: 1px solid var(--rule); }
.library-label { margin: 18px 10px 6px; }
.wide-button { width: 100%; font-size: 11px; }
.stage { position: relative; min-height: 0; min-width: 0; background: #dce1e2; display: flex; align-items: center; justify-content: center; padding: 22px 24px 40px; overflow: hidden; }
#artboard-wrap { flex: none; box-shadow: 0 2px 10px #0002; }
#artboard { display: block; width: 100%; height: 100%; touch-action: none; overflow: hidden; }
#artboard [data-layer-id] { cursor: move; }
.selection-box { fill: transparent; stroke: #e52e25; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.stage-footer { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; color: #465053; font-size: 10px; }
#font-status { text-align: right; }
#layer-fields { display: grid; gap: 10px; padding: 12px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.export-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border-block: 1px solid var(--ink); padding: 10px 0; flex-shrink: 0; }
#notice { margin-right: auto; color: var(--muted); font-size: 11px; max-width: 36%; }
.export-bar > label { display: flex; align-items: center; gap: 8px; }
.check-label { white-space: nowrap; }
.check-label input { width: 16px; min-height: 16px; accent-color: var(--ink); }
.primary { background: var(--ink); color: #fff; min-height: 42px; padding-inline: 18px; }
.primary:hover { background: var(--active); }
@media (max-width: 1100px) { .workspace { grid-template-columns: 165px minmax(0, 1fr) 235px; } .mixer-shell { width: calc(100% - 24px); } .stage { padding-inline: 12px; } }
@media (max-width: 780px) {
  .mixer-shell { height: auto; min-height: 100dvh; }
  .navigation { flex-wrap: wrap; }
  .save-state { display: none; }
  .navigation button { font-size: 10px; padding-inline: 8px; }
  .canvas-toolbar { grid-template-columns: 1fr 1fr 55px 38px; }
  .project-name { grid-column: span 2; }
  .canvas-toolbar label:nth-child(2) { grid-column: span 2; }
  .workspace { grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr); }
  .stage { grid-column: 1 / -1; grid-row: 1; height: 55dvh; min-height: 300px; }
  .layers-panel, .inspector { max-height: 650px; }
  .inspector { border-left: 0; }
  .export-bar { gap: 10px; }
  #notice { max-width: 100%; flex-basis: 100%; }
  .export-bar > label:first-of-type { flex: 1 0 100%; }
  .export-bar > label:first-of-type select { flex: 1; }
  .export-bar .primary { margin-left: auto; }
  .project-header h1 { font-size: 30px; }
}
