:root {
  --paper: #f0e6d0;
  --paper-warm: #e8d8bc;
  --paper-deep: #dccba8;
  --ink: #1c140e;
  --ink-mid: #4a3828;
  --ink-light: #7a6250;
  --line: rgba(140, 100, 65, 0.24);
  --red: #b8301a;
  --green: #2c6142;
  --blue: #1e4878;
  --brown: #7a4820;
  --wash-red: rgba(184, 48, 26, 0.07);
  --wash-green: rgba(44, 97, 66, 0.08);
  --wash-blue: rgba(30, 72, 120, 0.08);
  --wash-brown: rgba(122, 72, 32, 0.08);
  --shadow: 0 2px 14px rgba(60, 30, 10, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(160, 110, 60, 0.035) 30px),
    repeating-linear-gradient(90deg, transparent, transparent 29px, rgba(160, 110, 60, 0.025) 30px);
}

button,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

.huiwen-strip {
  height: 12px;
  background: var(--red);
  position: relative;
  overflow: hidden;
}

.huiwen-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 5px,
    rgba(255, 255, 255, 0.16) 5px,
    rgba(255, 255, 255, 0.16) 6px,
    transparent 6px,
    transparent 12px
  );
}

.kg-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  height: 98px;
  padding: 22px 48px 18px;
  border-bottom: 1.5px solid var(--paper-deep);
  background: linear-gradient(180deg, rgba(240, 230, 208, 1), rgba(240, 230, 208, 0));
}

.kg-header h1 {
  margin: 0 0 5px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
}

.kg-header p {
  margin: 0;
  color: var(--ink-light);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
}

.formula {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 250, 240, 0.68);
  color: var(--ink-mid);
  font-size: 13px;
  letter-spacing: 1px;
}

.formula strong {
  display: flex;
  min-width: 44px;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  line-height: 1;
}

.formula em {
  margin-top: 5px;
  color: var(--ink-light);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 1px;
}

.f-red {
  color: var(--red);
}

.f-green {
  color: var(--green);
}

.f-blue {
  color: var(--blue);
}

.f-brown {
  color: var(--brown);
}

.version {
  margin-left: auto;
  align-self: flex-start;
  padding-top: 7px;
  color: var(--ink-light);
  font-size: 10px;
  letter-spacing: 2px;
}

.kg-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 68px 260px minmax(0, 1fr) 280px;
  height: calc(100vh - 110px);
}

.dim-tabs {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-right: 1px solid var(--line);
  background: rgba(232, 216, 188, 0.42);
}

.dim-tab {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.dim-tab:first-child {
  border-top: 0;
}

.dim-tab:hover,
.dim-tab.active {
  background: rgba(255, 250, 240, 0.72);
}

.dim-tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}

.dim-tab:nth-child(2).active::before,
.dim-tab:nth-child(5).active::before {
  background: var(--green);
}

.dim-tab:nth-child(3).active::before,
.dim-tab:nth-child(6).active::before {
  background: var(--blue);
}

.dim-tab:nth-child(4).active::before {
  background: var(--brown);
}

.dim-tab strong {
  font-size: 23px;
  line-height: 1;
}

.dim-tab span {
  color: var(--ink-mid);
  font-size: 10px;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
}

.control-panel,
.result-panel {
  overflow-y: hidden;
  border-right: 1px solid var(--line);
}

.control-panel {
  padding: 18px 14px;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-head span,
.canvas-head span {
  color: var(--ink-light);
  font-size: 9px;
  letter-spacing: 3px;
}

.panel-head h2 {
  margin: 7px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.step-list {
  display: none;
}

.step-card {
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 252, 244, 0.62);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover,
.step-card.active {
  transform: translateY(-1px);
  background: rgba(255, 252, 244, 0.96);
  box-shadow: var(--shadow);
}

.step-card.active {
  border-color: rgba(184, 48, 26, 0.3);
}

.step-card strong {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
}

.step-card span {
  display: block;
  margin-top: 3px;
  color: var(--ink-light);
  font-size: 8px;
}

.field-form {
  display: grid;
  gap: 8px;
}

.field-form label {
  display: grid;
  gap: 5px;
}

.field-form label span {
  color: var(--ink-mid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

select {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.86);
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  height: 10px;
  margin: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    to right,
    #a98772 0 var(--range-progress, 60%),
    #f2e8df var(--range-progress, 60%) 100%
  );
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  width: 0;
  height: 10px;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

input[type="range"]::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: #a98772;
}

input[type="range"]::-moz-range-thumb {
  width: 0;
  height: 10px;
  border: 0;
  background: transparent;
}

.range-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}

.range-field span {
  grid-column: 1 / -1;
}

.range-field b {
  justify-self: end;
  color: #302d2b;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.run-button {
  width: 100%;
  height: 34px;
  margin-top: 10px;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: #fffaf0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 2px;
}

.canvas-panel {
  display: grid;
  min-width: 0;
  grid-template-rows: 62px minmax(0, 1fr) 42px;
}

.canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}

.canvas-actions {
  display: flex;
  gap: 8px;
}

.canvas-actions button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.72);
  color: var(--ink-mid);
  cursor: pointer;
  font-size: 12px;
}

.canvas-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 32px;
}

.stage-controls {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.upload-box,
.palette-panel,
.prompt-box,
.vessel-picker {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 252, 244, 0.58);
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
}

.upload-box span,
.palette-panel > span,
.prompt-box span {
  color: var(--ink-mid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.upload-box button,
.minor-button,
.scheme-inputbar button,
.report-button,
.robot-button {
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: #fffaf0;
  cursor: pointer;
}

.upload-box button {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
}

.prompt-box {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.prompt-box textarea,
.scheme-inputbar input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.9);
  color: var(--ink);
  resize: none;
}

.prompt-box textarea {
  min-height: 56px;
  padding: 7px;
  font-size: 12px;
}

.palette-panel {
  padding: 8px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.8);
  cursor: pointer;
}

.swatch i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 1px solid rgba(28, 20, 14, 0.24);
  border-radius: 50%;
  background: var(--swatch);
}

.swatch b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.minor-button {
  height: 30px;
  font-size: 12px;
  letter-spacing: 1px;
}

.vessel-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
}

.vessel-picker button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 76px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.72);
  cursor: pointer;
  font-size: 11px;
}

.vessel-picker svg {
  width: 38px;
  height: 46px;
}

.vessel-picker path {
  fill: rgba(255, 252, 244, 0.82);
  stroke: var(--ink-mid);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.vessel-picker button.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(44, 97, 66, 0.08);
}

.vessel-picker button.active path {
  stroke: var(--green);
}

.control-panel,
.result-panel,
.canvas-stage,
.canvas-foot {
  scrollbar-width: none;
}

.control-panel::-webkit-scrollbar,
.result-panel::-webkit-scrollbar,
.canvas-stage::-webkit-scrollbar,
.canvas-foot::-webkit-scrollbar {
  display: none;
}

.artboard {
  position: relative;
  width: min(900px, 92%);
  aspect-ratio: 1.62;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(rgba(255, 252, 244, 0.88), rgba(255, 252, 244, 0.88)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(122, 98, 80, 0.08) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(122, 98, 80, 0.06) 28px);
  box-shadow: var(--shadow);
}

.artboard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 46px;
}

.canvas-extra {
  position: absolute;
  inset: 42px;
  z-index: 4;
  pointer-events: none;
}

.show-export .canvas-extra {
  inset: 14px 22px 22px;
}

.show-scheme .canvas-extra {
  inset: 24px 32px 40px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 46px;
  gap: 10px;
}

.show-scheme #artwork,
.show-vessel #artwork,
.show-export #artwork {
  opacity: 0.14;
}

.scheme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  height: auto;
  min-height: 0;
  pointer-events: auto;
}

.scheme-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 252, 244, 0.86);
  cursor: pointer;
}

.scheme-card.active {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.scheme-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.scheme-card span {
  padding: 7px 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-mid);
  font-size: 12px;
  text-align: center;
}

.scheme-inputbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 62px;
  gap: 8px;
  align-items: center;
  margin-top: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 252, 244, 0.92);
  pointer-events: auto;
}

.color-card-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 252, 244, 0.9);
  pointer-events: auto;
}

.color-card-title {
  color: var(--ink-mid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.color-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  min-height: 0;
}

.color-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  height: 28px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.78);
  cursor: pointer;
}

.color-card.active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(184, 48, 26, 0.22);
}

.color-card i {
  width: 22px;
  height: 20px;
  border: 1px solid rgba(28, 20, 14, 0.25);
  background: var(--swatch);
}

.color-card span {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.color-card b,
.color-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-card b {
  color: var(--ink);
  font-size: 10px;
}

.color-card em {
  color: var(--ink-light);
  font-size: 8px;
  font-style: normal;
}

.scheme-inputbar span {
  color: var(--ink-light);
  font-size: 11px;
}

.scheme-inputbar input {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.scheme-inputbar button {
  height: 30px;
}

.report-button,
.robot-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  height: 36px;
  padding: 0 14px;
  pointer-events: auto;
  font-weight: 700;
  letter-spacing: 1px;
}

.report-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.report-annotations svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.report-annotations circle {
  fill: rgba(255, 250, 240, 0.18);
  stroke: #f04b43;
  stroke-width: 5;
}

.report-annotations line {
  stroke: #f04b43;
  stroke-width: 5;
  stroke-linecap: round;
}

.report-label {
  position: absolute;
  min-width: 74px;
  padding: 5px 8px;
  border: 1px solid rgba(240, 75, 67, 0.65);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.92);
  color: #f04b43;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.label-distance {
  left: 30%;
  top: 35%;
}

.label-curve {
  left: 63%;
  top: 50%;
}

.compare-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  height: 100%;
  pointer-events: auto;
}

.vessel-generated-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  height: 100%;
  pointer-events: auto;
}

.compare-board > div,
.vessel-generated-board > div {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.compare-board strong,
.vessel-generated-board strong {
  color: var(--ink-mid);
  font-size: 13px;
  letter-spacing: 2px;
  text-align: center;
}

.vase-preview,
.flat-preview,
.rhino-preview,
.effect-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 252, 244, 0.78);
}

.vase-preview {
  clip-path: polygon(38% 0, 62% 0, 70% 18%, 82% 40%, 78% 100%, 22% 100%, 18% 40%, 30% 18%);
}

.vase-preview img,
.flat-preview img,
.rhino-preview img,
.effect-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.rhino-preview img {
  padding: 0;
  object-fit: contain;
  background: #a0a7ad;
}

.flat-preview.compact {
  padding: 0;
}

.flat-preview.compact img {
  padding: 12px;
}

.effect-preview {
  background: #111;
}

.effect-preview img {
  padding: 0;
  object-fit: contain;
}

.export-preview {
  position: relative;
  display: block;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: transparent;
  pointer-events: auto;
}

.export-preview strong {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 0;
  right: 0;
  color: var(--ink-mid);
  font-size: 13px;
  letter-spacing: 2px;
  text-align: center;
}

.export-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #8d9195;
}

.export-stack {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.export-stack span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.88);
  color: var(--ink-mid);
  font-size: 12px;
}

.corner-mark {
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-color: var(--red);
}

.top-left {
  top: 14px;
  left: 14px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.bottom-right {
  right: 14px;
  bottom: 14px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.graph-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.graph-layer path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-dasharray: 9 7;
  opacity: 0;
}

.graph-layer circle {
  fill: var(--paper);
  stroke: var(--blue);
  stroke-width: 2.5;
  opacity: 0;
}

.show-graph .graph-layer path,
.show-graph .graph-layer circle {
  opacity: 1;
}

.canvas-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 7px 24px;
  border-top: 1px solid var(--line);
}

.canvas-foot span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 244, 0.64);
  color: var(--ink-mid);
  font-size: 11px;
}

.result-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  border-right: 0;
  border-left: 1px solid var(--line);
  background: rgba(232, 216, 188, 0.22);
}

.result-symbol {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 54px;
  line-height: 1;
  text-align: center;
}

.result-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: 3px;
  text-align: center;
}

.result-panel p {
  margin: 0 auto 22px;
  max-width: 220px;
  color: var(--ink-mid);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.result-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.result-panel div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.result-panel dt {
  color: var(--ink-light);
}

.result-panel dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 3px;
  background: var(--ink);
  color: #fffaf0;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  body {
    overflow: auto;
  }

  .kg-header {
    height: auto;
    flex-wrap: wrap;
    padding: 18px;
  }

  .formula {
    overflow-x: auto;
  }

  .version {
    margin-left: 0;
  }

  .kg-layout {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    height: auto;
    min-height: calc(100vh - 110px);
  }

  .control-panel {
    grid-column: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .canvas-panel {
    grid-column: 1 / -1;
    min-height: 620px;
  }

  .result-panel {
    grid-column: 1 / -1;
    min-height: 280px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .dim-tabs {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .kg-header h1 {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .formula {
    width: 100%;
    gap: 8px;
  }

  .kg-layout {
    grid-template-columns: 1fr;
  }

  .dim-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-row: auto;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dim-tab {
    min-height: 64px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .dim-tab:first-child {
    border-left: 0;
  }

  .dim-tab span {
    writing-mode: horizontal-tb;
  }

  .control-panel,
  .canvas-panel,
  .result-panel {
    grid-column: 1;
  }

  .canvas-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .canvas-stage {
    padding: 18px;
  }

  .artboard {
    width: 100%;
    min-height: 360px;
  }
}
