@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-VariableFont_wdth,wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/Lexend-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("fonts/Merriweather-VariableFont_opsz,wdth,wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat"; src: url("fonts/RedHat-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("fonts/RobotoMono-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("fonts/ShantellSans-VariableFont_BNCE,INFM,SPAC,wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Xmind"; src: url("fonts/Xmind-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657083;
  --line: #ccd3dd;
  --panel: #f4f6f8;
  --canvas: #e8ecf1;
  --board: #ffffff;
  --grid-line: #e5e7eb;
  --accent: #0f766e;
  --accent-soft: #d3eee9;
  --control: #fbfcfd;
  --shadow: 0 12px 32px rgba(23, 32, 51, .14);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  user-select: none;
  -webkit-user-select: none;
}

body[data-theme=dark] {
  color-scheme: dark;
  --ink: #e7edf7;
  --muted: #9aa7ba;
  --line: #303948;
  --panel: #1f2631;
  --canvas: #121820;
  --board: #18202a;
  --grid-line: #2d3745;
  --accent: #2dd4bf;
  --accent-soft: #123c39;
  --control: #252e3b;
  --shadow: 0 16px 40px rgba(0, 0, 0, .32);
}

body[data-color-theme=red] {
  --accent: #ef4444;
  --accent-soft: #fee2e2;
}

body[data-color-theme=orange] {
  --accent: #f97316;
  --accent-soft: #ffedd5;
}

body[data-color-theme=amber] {
  --accent: #d97706;
  --accent-soft: #fef3c7;
}

body[data-color-theme=green] {
  --accent: #15803d;
  --accent-soft: #dcfce7;
}

body[data-color-theme=blue] {
  --accent: #2563eb;
  --accent-soft: #dbeafe;
}

body[data-color-theme=purple] {
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
}

body[data-color-theme=pink] {
  --accent: #db2777;
  --accent-soft: #fce7f3;
}

body[data-theme=dark][data-color-theme=red] {
  --accent: #ef4444;
  --accent-soft: #451a1a;
}

body[data-theme=dark][data-color-theme=orange] {
  --accent: #f97316;
  --accent-soft: #431407;
}

body[data-theme=dark][data-color-theme=amber] {
  --accent: #f59e0b;
  --accent-soft: #422d0b;
}

body[data-theme=dark][data-color-theme=green] {
  --accent: #22c55e;
  --accent-soft: #102f1b;
}

body[data-theme=dark][data-color-theme=blue] {
  --accent: #3b82f6;
  --accent-soft: #172554;
}

body[data-theme=dark][data-color-theme=purple] {
  --accent: #8b5cf6;
  --accent-soft: #2e1a58;
}

body[data-theme=dark][data-color-theme=pink] {
  --accent: #ec4899;
  --accent-soft: #4a1533;
}

.app-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  height: 100%;
  min-width: 760px;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 14px 8px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.divider {
  width: 36px;
  height: 1px;
  margin: 6px 0;
  background: var(--line);
}

.tool-button,
.command-button {
  border: 1px solid var(--line);
  background: var(--control);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.tool-button {
  display: grid;
  width: 54px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.tool-button:hover,
.tool-button.active,
.command-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.ti {
  font-size: 18px;
  line-height: 1;
}

.tool-button .ti {
  font-size: 22px;
}

.tool-button:disabled { cursor: not-allowed; opacity: .35; }
.tool-button:disabled:hover { border-color: var(--line); background: var(--control); }
.pixel-mode #canvas .shape-node { cursor: crosshair; }
.pixel-mode .shape-node.selected { filter: none; }

.workspace {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 36px;
  min-width: 0;
}

.topbar,
.statusbar {
  display: flex;
  align-items: center;
  background: var(--panel);
}

.topbar {
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.controls,
.topbar-actions,
.line-menu,
.align-menu,
.layer-controls,
.group-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.layer-controls,
.group-controls {
  gap: 4px;
  padding-inline: 8px;
}

.layer-controls { border-inline: 1px solid var(--line); }
.group-controls { border-right: 1px solid var(--line); }

.align-controls {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 6px;
}

.field {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.field.stacked {
  align-items: stretch;
  flex-direction: column;
  gap: 5px;
}

.row-field { justify-content: space-between; }

.field input[type=color] {
  width: 38px;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--control);
}

.settings-panel .field input[type=color] {
  width: 100%;
  height: 34px;
}

.field.compact input,
.field.compact select,
.settings-panel input[type=number] {
  width: 56px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: var(--control);
  color: var(--ink);
}

.field.compact select {
  width: 124px;
}

.settings-panel input[type=number] {
  width: 100%;
  height: 34px;
}

input[type=checkbox] { accent-color: var(--accent); }

select,
.command-button {
  height: 34px;
  border-radius: 7px;
}

select {
  border: 1px solid var(--line);
  padding: 0 8px;
  background: var(--control);
  color: var(--ink);
}

.command-button {
  min-width: 56px;
  padding: 0 12px;
  font-weight: 700;
}

.command-button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.command-button:disabled:hover {
  border-color: var(--line);
  background: var(--control);
  color: var(--ink);
}

.download-menu,
.line-menu,
.align-menu,
.settings-menu,
.instances-menu {
  position: relative;
}

.icon-command {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-only {
  display: grid;
  min-width: 38px;
  padding: 0;
  place-items: center;
}

.download-panel,
.line-panel,
.align-panel,
.settings-panel,
.instances-panel,
.context-menu {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-panel,
.line-panel,
.align-panel,
.settings-panel,
.instances-panel {
  right: 0;
  top: calc(100% + 8px);
  width: 180px;
  padding: 12px;
}

.transform-menu { position: relative; }
.transform-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 228px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.transform-panel[hidden] { display: none; }
.transform-panel input,
.line-panel input {
  min-width: 0;
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: var(--control);
  color: var(--ink);
}
.transform-panel input:disabled { opacity: .45; }
.line-panel { width: 180px; }
.line-panel input,
.line-panel select { width: 100%; height: 34px; }
.line-panel input[type=checkbox] { width: auto; height: auto; padding: 0; }
.align-panel { width: auto; }
.settings-panel { width: 210px; }

.download-panel,
.line-panel,
.align-panel,
.settings-panel {
  z-index: 30;
}

.instances-panel {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  width: 300px;
  padding: 10px;
  border-radius: 0;
  border-right: 0;
  max-height: none;
  grid-template-rows: auto minmax(0, 1fr);
}

.download-panel[hidden],
.line-panel[hidden],
.align-panel[hidden],
.settings-panel[hidden],
.instances-panel[hidden],
.context-menu[hidden] {
  display: none;
}

.panel-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.instances-list {
  display: grid;
  align-content: start;
  gap: 1px;
  min-height: 48px;
  overflow: auto;
}

.instance-row {
  display: grid;
  grid-template-columns: 24px 26px minmax(0, 1fr) 24px;
  gap: 5px;
  align-items: center;
  min-height: 30px;
  padding: 3px 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  padding-left: calc(4px + var(--depth, 0) * 14px);
}

.instance-row:hover,
.instance-row.active {
  border-color: #f97316;
  background: rgba(249, 115, 22, .1);
}

.instance-preview {
  width: 26px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--control);
}

.instance-preview.selected-preview {
  border-color: #f97316;
  box-shadow: 0 0 0 1px #f97316 inset;
}

.instance-folder {
  display: grid;
  width: 26px;
  height: 22px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
}

.instance-folder.selected-preview {
  border-color: #f97316;
  color: #f97316;
}

.instance-name {
  min-width: 0;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.instance-delete {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.instance-disclosure {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.instance-delete:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.empty-instances {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.context-menu {
  width: 220px;
  padding: 6px;
  gap: 2px;
.topbar
}
.context-menu button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.context-menu button:hover { background: var(--accent-soft); }

.download-actions .command-button {
  width: 100%;
  margin-bottom: 8px;
}

.download-actions .command-button:last-child {
  margin-bottom: 0;
}

.download-actions .command-button i {
  margin-right: 4px;
  color: var(--muted);
}

.canvas-stage {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--board);
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.grid-bg {
  opacity: 1;
  pointer-events: none;
}

.grid-bg.hidden { opacity: 0; }

.text-editor {
  position: fixed;
  z-index: 20;
  box-sizing: border-box;
  border: 1px solid var(--accent);
  border-radius: 4px;
  outline: 2px solid rgba(15, 118, 110, .18);
  background: transparent;
  caret-color: currentColor;
  font-family: Inter, system-ui, sans-serif;
  padding: 0 4px;
}

.shape-node {
  cursor: move;
  vector-effect: non-scaling-stroke;
}

.shape-node.selected { filter: drop-shadow(0 0 .2rem rgba(15, 118, 110, .35)); }

.shape-node.instance-highlight,
.instance-highlight {
  filter: drop-shadow(0 0 .35rem rgba(249, 115, 22, .85));
  stroke: #f97316;
}

.selection-box {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.group-edit-box {
  fill: none;
  stroke: #f97316;
  stroke-width: 2;
  stroke-dasharray: 8 5;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.marquee-box {
  fill: rgba(15, 118, 110, .1);
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.snap-guide {
  stroke: #f97316;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.resize-handle,
.rotate-handle {
  fill: var(--control);
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.resize-handle { cursor: nwse-resize; }
.resize-handle[data-handle=e],
.resize-handle[data-handle=w] { cursor: ew-resize; }
.resize-handle[data-handle=n],
.resize-handle[data-handle=s] { cursor: ns-resize; }

.rotate-handle { cursor: grab; }

.rotate-stem {
  stroke: var(--accent);
  stroke-width: 1.5;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.statusbar {
  justify-content: space-between;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .topbar {
    min-height: 100px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .workspace { grid-template-rows: auto minmax(0, 1fr) 36px; }
  .topbar-actions { margin-left: auto; }
}

@media (max-width: 820px) {
  .app-shell {
    min-width: 0;
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .toolbar { padding-inline: 4px; }
  .tool-button { width: 50px; }
}

.font-field select { width: 136px; }
.text-style-controls, .weight-split { display: flex; align-items: center; gap: 4px; }
.weight-menu { position: relative; }
.weight-split { gap: 0; }
.weight-split #boldBtn { border-radius: 7px 0 0 7px; }
.weight-arrow { display: grid; place-items: center; width: 24px; min-width: 24px; padding: 0; border-left: 0; border-radius: 0 7px 7px 0; }
.weight-arrow .ti { font-size: 13px; }
.text-style-controls button[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); }
.text-style-controls button[aria-pressed=mixed] { background: var(--accent-soft); border-style: dashed; }
.weight-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: 228px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 100px); overflow: auto; padding: 14px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--panel); box-shadow: var(--shadow); }
.weight-panel[hidden] { display: none; }
.weight-title { font-size: 13px; font-weight: 600; }
.weight-presets { display: grid; gap: 2px; }
.weight-presets button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 30px; padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.weight-presets button span:last-child { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.weight-presets button:hover { background: var(--accent-soft); }
.weight-exact { border-top: 1px solid var(--line); padding-top: 12px; }
.weight-exact input { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; color: var(--ink); background: var(--control); font: inherit; }
.text-style-controls button:focus-visible, .weight-panel input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.color-trigger { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 38px; height: 30px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--control); color: var(--ink); cursor: pointer; font: inherit; }
.color-trigger-chip { display: block; width: 100%; height: 100%; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.3); }
.color-trigger-value { display: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.settings-panel .color-trigger { width: 100%; height: 34px; padding: 5px 9px; }
.settings-panel .color-trigger-chip { width: 22px; }
.settings-panel .color-trigger-value { display: block; }
.color-trigger:hover { border-color: var(--accent); }
.color-trigger:focus-visible, .color-picker :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.color-picker { position: fixed; z-index: 150; width: min(280px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto; display: grid; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--panel); box-shadow: 0 16px 48px rgba(0,0,0,.24); font-size: 12px; }
.color-picker[hidden] { display: none; }
.color-picker-heading { display: flex; align-items: center; justify-content: space-between; }
.color-picker-heading strong { font-size: 13px; font-weight: 600; }
.color-picker-close { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.color-picker-close:hover { background: var(--accent-soft); color: var(--ink); }
.color-picker-sv { position: relative; height: 160px; border-radius: 9px; background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); cursor: crosshair; touch-action: none; }
.color-picker-cursor { position: absolute; width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 2px 5px rgba(0,0,0,.25); pointer-events: none; }
.color-picker-hue-label { display: grid; gap: 10px; color: var(--muted); }
.color-picker-hue { appearance: none; width: 100%; height: 12px; margin: 0; border-radius: 20px; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; }
.color-picker-hue::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border: 3px solid var(--control); border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px #64748b; }
.color-picker-hue::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--control); border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px #64748b; }
.color-picker-hex-label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.color-picker-preview { width: 32px; height: 32px; flex-shrink: 0; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.3); }
.color-picker-hex { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--control); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; text-transform: uppercase; user-select: text; }
.color-picker-hex[aria-invalid=true] { border-color: #ef4444; }
.color-picker-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); }
.color-picker-swatch { width: 100%; aspect-ratio: 1; border: 1px solid rgba(128,128,128,.3); border-radius: 6px; cursor: pointer; }
.color-picker-swatch[aria-pressed=true] { outline: 2px solid var(--accent); outline-offset: 2px; }
.color-picker-recents { display: grid; gap: 10px; }
.color-picker-section-title { color: var(--muted); font-size: 11px; }
.color-picker-recent-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; }
.color-picker-recent-empty { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.settings-panel { position: fixed; inset: 0; z-index: 100; width: auto; padding: 24px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0; background: rgba(4, 10, 20, .6); backdrop-filter: blur(5px); box-shadow: none; }
.settings-dialog { width: min(640px, 100%); max-height: 100%; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.settings-header { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.settings-header h1 { margin: 0; font-size: 24px; letter-spacing: -.6px; }
.settings-header p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.export-dialog { width: min(620px, 100%); }
.export-overlay [hidden] { display: none; }
.export-format { display: flex; align-items: center; gap: 14px; height: auto; min-height: 76px; padding: 16px; text-align: left; }
.export-format > .ti { font-size: 26px; color: var(--accent); }
.export-format > span { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.export-format small { font-size: 11px; font-weight: 400; color: var(--muted); }
.export-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.export-message { margin: 0; font-size: 13px; color: var(--ink); }
.export-message:empty { display: none; }
.export-dimensions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--control); font-size: 13px; }
.export-dimensions > span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.export-dimensions strong { font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 600; }
.settings-content { display: grid; gap: 24px; padding: 24px 28px 28px; }
.settings-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.settings-section h2 { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; }
.settings-section .row-field { grid-column: 1 / -1; min-height: 28px; color: var(--ink); }
.settings-label { display: inline-flex; align-items: center; gap: 8px; }
.settings-label > .ti { flex: 0 0 18px; font-size: 17px; color: var(--muted); }
.settings-section input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; }
.settings-section select { width: 100%; }
@media (max-width: 520px) { .settings-panel { padding: 12px; } .settings-header { padding: 20px; } .settings-content { padding: 20px; } .settings-section { grid-template-columns: minmax(0, 1fr); } .font-field select { width: 110px; } }
