:root {
  --bg: #1b1c1f;
  --chrome: #232428;
  --chrome-2: #2c2d32;
  --line: #37393f;
  --text: #dcdee3;
  --muted: #8d919a;
  --accent: #1f7aff;
  --accent-soft: #5a9cff;
  --canvas: #3b3d43;
  --on-accent: #fff;   /* text on an accent fill */
  --sel: var(--accent); /* selection / point color on the canvas */
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font: 12.5px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
body { display: flex; flex-direction: column; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
#topbar {
  height: 42px; flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px;
  background: var(--chrome); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 7px; font-weight: 650; color: #fff; margin-right: 4px; }
.brand svg { color: var(--accent-soft); }
.group { display: flex; align-items: center; gap: 2px; padding-right: 10px; border-right: 1px solid var(--line); }
.spacer { flex: 1; }
button {
  font: inherit; color: var(--text);
  background: transparent; border: 1px solid transparent; border-radius: 5px;
  padding: 4px 9px; cursor: pointer;
}
button:hover { background: var(--chrome-2); border-color: var(--line); }
button:active { background: #36383e; }
button:disabled { opacity: .35; cursor: default; background: transparent; border-color: transparent; }
button.icon { padding: 4px 7px; min-width: 28px; display: inline-flex; align-items: center; justify-content: center; }
.help-btn { font-weight: 700; border-color: var(--line); border-radius: 50%; width: 26px; height: 26px; min-width: 0; padding: 0; }
.toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 0 4px; }
.toggle input { accent-color: var(--accent); }
.zoom { display: flex; align-items: center; gap: 2px; }
#zoomLabel { min-width: 50px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- main area ---------- */
#main { flex: 1; display: flex; min-height: 0; }
#toolbar {
  width: 46px; flex: none;
  background: var(--chrome); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0;
}
#toolbar button { width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; }
#toolbar button svg { width: 20px; height: 20px; }
#toolbar button.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tb-sep { width: 22px; height: 1px; background: var(--line); margin: 4px 0; }

#stage { flex: 1; position: relative; overflow: hidden; background: var(--canvas); touch-action: none; }
#art, #overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#overlay { pointer-events: none; }
#board { fill: #fff; stroke: rgba(0, 0, 0, .35); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- overlay: outlines, points, handles ---------- */
#overlay .ol-active { fill: none; stroke: var(--sel); stroke-width: 1.25; }
#overlay .ol-sel { fill: none; stroke: var(--sel); stroke-width: 1; }
#overlay .ol-hover { fill: none; stroke: var(--sel); stroke-width: 2; }
#overlay .hnode { fill: #fff; stroke: var(--sel); stroke-width: 1.25; }
#overlay .bbox { fill: none; stroke: var(--sel); stroke-width: 1; }
#overlay .bh { fill: #fff; stroke: var(--sel); stroke-width: 1.25; }
#overlay .hl-halo { stroke: rgba(255, 255, 255, .9); stroke-width: 3; }
#overlay .hl { stroke: #23874a; stroke-width: 1.25; }
#overlay .knob { fill: #23874a; stroke: #fff; stroke-width: 1.5; }
#overlay .node { fill: #fff; stroke: var(--sel); stroke-width: 1.5; }
#overlay .node.sel { fill: var(--sel); stroke: #fff; }
#overlay .ring { fill: none; stroke: var(--sel); stroke-width: 2; opacity: .5; }
#overlay .pen-preview { fill: none; stroke: var(--sel); stroke-width: 1.25; opacity: .85; }
#overlay .cw { fill: #fff; stroke: #ff7a00; stroke-width: 2.5; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5)); }
#overlay .cw-dot { fill: #ff7a00; }
#overlay .cw-line { stroke: #ff7a00; stroke-width: 1.5; stroke-dasharray: 3 2; }
#overlay .cw-target { fill: none; stroke: #ff7a00; stroke-width: 2; }
#overlay .marquee { fill: rgba(31, 122, 255, .08); stroke: var(--sel); stroke-width: 1; stroke-dasharray: 4 3; }

#hud {
  position: absolute; z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  background: rgba(20, 21, 24, .92); color: #fff; border: 1px solid var(--accent);
  border-radius: 5px; padding: 3px 8px; font-size: 12.5px; font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35); white-space: nowrap;
}
#hud .f { display: flex; align-items: center; gap: 3px; }
#hud b { font-weight: 500; color: #9cc2ff; }
#hud i { font-style: normal; color: #aab; }
#hud.editing { pointer-events: auto; }
#hud input {
  width: 64px; font: inherit; color: #fff; background: #000; border: 1px solid var(--accent);
  border-radius: 3px; padding: 1px 5px; text-align: right; outline: none;
  -webkit-user-select: text; user-select: text;
}

/* ---------- panel ---------- */
#panel { width: 236px; overflow-x: hidden; flex: none; background: var(--chrome); border-left: 1px solid var(--line); overflow-y: auto; }
#panel section { padding: 12px 12px 14px; border-bottom: 1px solid var(--line); }
#panel section.off { opacity: .45; }
#panel h3 {
  margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
}
#panel h3 span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.row:last-child { margin-bottom: 0; }
.row > label:first-child { width: 54px; flex: none; color: var(--muted); }
.row.btns { margin-top: 10px; }
.row.btns button { flex: 1; border-color: var(--line); background: var(--chrome-2); }
.chk { display: flex; align-items: center; gap: 4px; color: var(--muted); cursor: pointer; }
.chk input { accent-color: var(--accent); margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding-left: 7px; }
.field:focus-within { border-color: var(--accent); }
.field span { color: var(--muted); width: 12px; flex: none; font-size: 11px; }
input.num, select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; width: 100%; min-width: 0;
  -webkit-user-select: text; user-select: text;
}
input.num:focus, select:focus { outline: none; border-color: var(--accent); }
.field input { border: 0; background: transparent; }
input:disabled { opacity: .5; }
.swatch { width: 38px; height: 24px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); position: relative; overflow: hidden; }
.swatch:hover { border-color: var(--muted); background: var(--bg); }
.swatch i { display: block; width: 100%; height: 100%; border-radius: 3px; }
.swatch.is-none i { opacity: .25; }
.swatch.is-none::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; background: #ff4d4d; transform: rotate(-32deg); }

/* ---------- color picker ---------- */
.cp {
  position: fixed; z-index: 30; width: 452px;
  background: var(--chrome); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  padding: 12px 14px;
}
.cp-head { margin: -12px -14px 10px; padding: 10px 10px 8px 14px; display: flex; align-items: center; justify-content: space-between; cursor: move; border-radius: 10px 10px 0 0; }
.cp-head:hover { background: rgba(255, 255, 255, .03); }
.cp-reset { color: var(--muted); padding: 3px; min-width: 0; }
.cp-reset:hover { color: #fff; }
.cp-pal-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cp-pal-label { color: var(--muted); font-size: 11.5px; line-height: 14px; flex: none; }
.cp-pal { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.pchip.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.cp-act-l { color: var(--muted); font-size: 11.5px; }
.cp-act { width: auto; padding: 3px 4px; }
.cp-title { font-weight: 650; color: #fff; }
.cp-body { display: flex; gap: 12px; }
.cp-sv { position: relative; width: 236px; height: 236px; border-radius: 4px; cursor: crosshair; flex: none; touch-action: none; }
.cp-sv-w, .cp-sv-k { position: absolute; inset: 0; border-radius: 4px; pointer-events: none; }
.cp-sv-w { background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
.cp-sv-k { background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)); }
.cp-dot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); pointer-events: none;
}
.cp-hue {
  position: relative; width: 20px; height: 236px; flex: none; border-radius: 4px; cursor: ns-resize; touch-action: none;
  background: linear-gradient(to top, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%);
}
.cp-hue-mark {
  position: absolute; left: -4px; right: -4px; height: 6px; margin-top: -3px; pointer-events: none;
  border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}
.cp-side { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-sw { height: 64px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.cp-sw > div { flex: 1; }
.cp-cur { cursor: pointer; }
.cp-swl { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin: 3px 1px 10px; }
.cp-fields { display: grid; grid-template-columns: 14px 1fr 12px 14px 1fr 4px; gap: 6px 4px; align-items: center; }
.cp-fields label { color: var(--muted); font-size: 11.5px; }
.cp-fields i { font-style: normal; color: var(--muted); font-size: 11px; }
.cp input {
  font: inherit; font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; width: 100%; min-width: 0;
  -webkit-user-select: text; user-select: text;
}
.cp input:focus { outline: none; border-color: var(--accent); }
.cp-hex { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.cp-hex span { color: var(--muted); width: 14px; }
.cp-hex input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.cp-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.cp-foot .cp-ok { background: var(--accent); border-color: var(--accent); color: var(--on-accent); min-width: 70px; }
.cp-foot .cp-ok:hover { background: #3a8cff; }
.cp-foot .cp-cancel { border-color: var(--line); min-width: 70px; }

/* ---------- status bar ---------- */
#statusbar {
  height: 26px; flex: none;
  display: flex; align-items: center; gap: 14px; padding: 0 12px;
  background: var(--chrome); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden;
}
#toolName { color: var(--text); font-weight: 600; }
#hint { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#styleTarget { min-width: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }

#coords { font-variant-numeric: tabular-nums; }

/* ---------- help ---------- */
.modal { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; }
.modal .box {
  background: var(--chrome); border: 1px solid var(--line); border-radius: 10px;
  width: min(980px, 94vw); max-height: 88vh; overflow: auto; padding: 16px 22px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  -webkit-user-select: text; user-select: text;
}
.box-head { display: flex; align-items: center; justify-content: space-between; }
.box h2 { margin: 0; font-size: 16px; color: #fff; }
.note { color: var(--muted); margin: 6px 0 14px; max-width: 760px; }
.cols { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 28px; }
.box h4 { margin: 14px 0 8px; font-size: 12px; color: #fff; }
.box h4:first-child { margin-top: 0; }
dl { margin: 0; display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 6px 12px; }
dt { color: var(--text); }
dd { margin: 0; color: var(--muted); }
/* Keys (⌘, ⇧, Esc, P…) read at the same size as the text around them */
kbd {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1em; font-weight: 600; line-height: 1.3;
  display: inline-block; min-width: 1.5em; text-align: center; vertical-align: baseline;
  background: var(--bg); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  padding: 0 .35em; margin: 0 1px; color: var(--text);
}
.help-body, #helpNav { font-size: 13.5px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

#dropHint {
  position: fixed; inset: 12px; z-index: 20; pointer-events: none;
  border: 2px dashed var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
}
#dropHint span {
  padding: 14px 26px; border: 1px solid var(--accent); border-radius: 8px;
  background: var(--chrome); color: var(--text); font-size: 17px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

/* ---------- saved palette ---------- */
.pal-row { align-items: flex-start; }
.pal-row > label:first-child { line-height: 14px; }
.palette { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; min-width: 0; padding-top: 1px; }
.pchip, .padd { width: 19px; height: 12px; padding: 0; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .25); box-sizing: border-box; line-height: 0; vertical-align: top; }
.pchip:hover { border-color: #fff; transform: scale(1.15); }
.padd { display: flex; align-items: center; justify-content: center; font-size: 0; line-height: 0; color: var(--muted); border: 1px dashed var(--muted); background: transparent; }
.padd:hover { color: #fff; border-color: #fff; background: transparent; }
.padd.off { opacity: .35; cursor: default; }
.padd.off:hover { color: var(--muted); border-color: var(--muted); }
.tip { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
code { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }

/* ---------- text ---------- */
#textEditor {
  position: absolute; z-index: 3; margin: 0; padding: 0; border: 0; outline: 1px dashed var(--accent); outline-offset: 2px;
  background: transparent; white-space: pre; min-width: 2px; cursor: text;
  -webkit-user-select: text; user-select: text; caret-color: var(--accent);
}
#textEditor::selection, #textEditor *::selection { background: rgba(31, 122, 255, .3); }
#overlay .txsel { fill: rgba(31, 122, 255, .28); }
.fontbtn { flex: 1; min-width: 0; text-align: left; border: 1px solid var(--line); background: var(--bg); padding: 4px 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fontbtn:hover { border-color: var(--muted); background: var(--bg); }
#fontStyle { flex: 1; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.seg button { flex: 1; border: 0; border-radius: 0; padding: 3px 0; display: flex; align-items: center; justify-content: center; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button svg { width: 15px; height: 15px; }
.seg button.on { background: var(--accent); color: var(--on-accent); }

/* font browser */
.fb {
  position: fixed; z-index: 30; width: 340px; display: flex; flex-direction: column;
  background: var(--chrome); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.fb-head { padding: 10px 10px 6px; }
.fb-search { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; -webkit-user-select: text; user-select: text; }
.fb-search:focus { outline: none; border-color: var(--accent); }
.fb-cats { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px; }
.fb-cats button { font-size: 11.5px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.fb-cats button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fb-list { height: 380px; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.fb-sec { padding: 8px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.fb-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; text-align: left; border: 0; border-radius: 0; padding: 6px 12px; }
.fb-row:hover { background: var(--chrome-2); }
.fb-row.on { background: rgba(31, 122, 255, .18); }
.fb-name { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fb-try .fb-name { font-size: 14px; font-family: inherit !important; color: var(--accent-soft); }
.fb-tag { font-size: 10.5px; color: var(--muted); flex: none; }
.fb-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.fb-load { border: 1px solid var(--line); background: var(--chrome-2); }
.fb-msg { color: var(--muted); font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- palette drag + context menu ---------- */
.pchip-ghost { position: fixed; z-index: 40; width: 22px; height: 15px; border-radius: 3px; border: 1px solid #fff; pointer-events: none; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); transform: translate(-50%, -50%); }
.swatch.drop { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.ctxmenu { position: fixed; z-index: 50; min-width: 170px; padding: 4px; background: var(--chrome); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.ctxmenu button { display: block; width: 100%; text-align: left; padding: 5px 10px; border: 0; border-radius: 4px; }
.ctxmenu button:hover { background: var(--accent); color: var(--on-accent); }
.ctxmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

/* ---------- align ---------- */
.alignbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-bottom: 6px; }
.alignbar button { padding: 3px 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--bg); }
.alignbar button svg { width: 16px; height: 16px; }
.alignbar button:disabled { opacity: .3; }
.toggle-row { display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; margin-top: 8px; }
.toggle-row input { accent-color: var(--accent); margin: 0; }

/* ---------- sidebar sections: header buttons, minimize, drag ---------- */
#panel > section > h3 { cursor: grab; user-select: none; }
#panel > section > h3 > span:not(.sec-btns) { margin-left: auto; margin-right: 6px; }
.sec-btns { display: flex; gap: 1px; opacity: .45; }
#panel > section > h3:hover .sec-btns { opacity: 1; }
.sec-btns button { padding: 2px 3px; min-width: 0; border: 0; color: var(--muted); }
.sec-btns button:hover { color: var(--text); background: var(--chrome-2); }
#panel > section.min .sbody { display: none; }
#panel > section.min > h3 { margin-bottom: 0; }
#panel > section.min .sec-min svg { transform: rotate(-90deg); }
#panel > section.closed { display: none; }
#panel > section.dragging { opacity: .5; }
#panel { position: relative; }
.sec-marker { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--accent); pointer-events: none; z-index: 5; }

/* ---------- fields with units ---------- */
.field i.u { font-style: normal; color: var(--muted); font-size: 10.5px; padding-right: 7px; flex: none; }
.op-row > label:first-child { font-size: 11px; }
.op-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.field.op { width: 66px; flex: none; padding-left: 4px; }

/* ---------- layers ---------- */
.ly-list { position: relative; max-height: 260px; min-height: 60px; overflow-y: auto; margin: -2px -12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.ly-row { display: flex; align-items: center; gap: 4px; height: 28px; padding-right: 4px; border-bottom: 1px solid var(--line); cursor: default; }
.ly-row:hover { background: var(--chrome-2); }
.ly-row.sel { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.ly-row.insel { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ly-row.hid .ly-thumb, .ly-row.hid .ly-name { opacity: .4; }
.ly-row.drop-into { outline: 2px solid var(--accent); outline-offset: -2px; }
.ly-row button { padding: 0; min-width: 0; border: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.ly-row button svg { width: 14px; height: 14px; }
.ly-row button:hover { color: var(--text); background: transparent; }
.ly-eye { margin-left: 4px; }
.ly-foot button.icon { padding: 3px 5px; }
.ly-foot button svg { width: 22px; height: 22px; }
#lyEyeAll svg, #lyLockAll svg { width: 21px; height: 21px; }
.ly-eye.off { color: var(--muted); opacity: .6; }
.ly-ind { width: calc(var(--d) * 14px); flex: none; }
.ly-caret svg { transition: transform .1s; }
.ly-caret.open svg { transform: rotate(90deg); }
.ly-caret-sp { width: 22px; flex: none; }
.ly-thumb { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 3px; color: #555; }
.ly-row.group .ly-thumb { background: transparent; border-color: transparent; color: var(--muted); }
.ly-thumb svg { width: 16px; height: 16px; }
.ly-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.ly-rename { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--accent); border-radius: 3px; padding: 1px 4px; user-select: text; }
.ly-lock.on { color: var(--text); }
.ly-marker { position: absolute; right: 0; height: 2px; background: var(--accent); pointer-events: none; }
.ly-foot { display: flex; justify-content: flex-end; gap: 2px; padding-top: 6px; }

/* ---------- color drag ---------- */
.pchip-ghost.none { background: var(--bg); }
.pchip-ghost.none::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: #ff4d4d; transform: rotate(-30deg); }
.palette.drop { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.palette.nodrop { outline: 2px dashed #ff4d4d; outline-offset: 3px; border-radius: 3px; }

/* ---------- settings ---------- */
.settings-box { width: min(520px, 94vw); }
.set-grid { display: grid; grid-template-columns: 120px 1fr; gap: 12px 14px; align-items: center; }
.set-grid > label { color: var(--muted); }
.set-pair { display: flex; gap: 8px; align-items: center; }
.set-pair .field { flex: 1; }
.set-foot { display: flex; align-items: center; margin-top: 18px; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); min-width: 80px; }

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  --bg: #ffffff; --chrome: #f3f4f6; --chrome-2: #e7e9ee; --line: #d5d8de; --text: #1d1f24; --muted: #697080;
  --accent: #1f6fe5; --accent-soft: #4a8ef0; --canvas: #c9ccd3;
}
:root[data-theme="light"] .brand, :root[data-theme="light"] .box h2, :root[data-theme="light"] .box h4, :root[data-theme="light"] .cp-title { color: var(--text); }
:root[data-theme="light"] #hud { background: rgba(255, 255, 255, .96); color: var(--text); }
:root[data-theme="light"] #hud b { color: var(--accent); }
:root[data-theme="light"] button:active { background: var(--chrome-2); }

/* ---------- Codify Werkz theme (from the Codify style guide) ----------
   Same layout as Dark; what's blue there is amber here, with navy text on amber.
   The canvas markings (selection, points) stay Codify blue. */
:root[data-theme="codify"] {
  --bg: #020F1B; --chrome: #071828; --chrome-2: #0A1F32; --line: rgba(51, 175, 252, .16); --text: #F0F6FC; --muted: #7290A5;
  --accent: #FF9F1C; --accent-soft: #FFB347; --canvas: #041322; --on-accent: #020F1B; --sel: #33AFFC;
}
:root[data-theme="codify"] * { border-radius: 0 !important; }
:root[data-theme="codify"] .cp-dot, :root[data-theme="codify"] .help-btn { border-radius: 50% !important; }
:root[data-theme="codify"] #panel > section > h3::before { content: ""; width: 4px; height: 14px; background: #33AFFC; box-shadow: 0 0 8px rgba(51, 175, 252, .5); margin-right: 8px; flex: none; align-self: center; }
:root[data-theme="codify"] #panel > section > h3 { justify-content: flex-start; }
:root[data-theme="codify"] input.num, :root[data-theme="codify"] select, :root[data-theme="codify"] .field, :root[data-theme="codify"] .swatch { border-color: rgba(51, 175, 252, .32); background: #0A1F32; }
:root[data-theme="codify"] .field input { background: transparent; }
:root[data-theme="codify"] button:hover { background: #0A1F32; border-color: rgba(51, 175, 252, .32); }
:root[data-theme="codify"] #toolbar button.active:hover, :root[data-theme="codify"] .seg button.on:hover { background: #FFB347; }
:root[data-theme="codify"] .row.btns button { clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
:root[data-theme="codify"] button.primary:hover, :root[data-theme="codify"] .cp-foot .cp-ok:hover { background: #FFB347; border-color: #FFB347; }
:root[data-theme="codify"] .ctxmenu button:hover { background: #FF9F1C; }
:root[data-theme="codify"] :focus-visible { outline: 2px solid #00D4FF; outline-offset: 2px; }
/* text boxes light up their whole box (like Dark), in amber — no extra ring on the inner text */
:root[data-theme="codify"] input:focus-visible, :root[data-theme="codify"] select:focus-visible, :root[data-theme="codify"] textarea:focus-visible { outline: none; }
:root[data-theme="codify"] .field:focus-within, :root[data-theme="codify"] input.num:focus, :root[data-theme="codify"] select:focus { border-color: var(--accent); }
:root[data-theme="codify"] #board { fill: #EAF0F5; }
:root[data-theme="codify"] #hud { border-color: #FF9F1C; }
:root[data-theme="codify"] #hud b { color: #FFB347; }

/* ---------- major titles: Orbitron on every scheme ---------- */
.brand span, .box h2, .cp-title { font-family: 'Orbitron', 'Eurostile', system-ui, sans-serif; }
.brand span { font-weight: 900; letter-spacing: .04em; font-size: 13px; }
.box h2 { font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.cp-title { font-weight: 700; letter-spacing: .04em; font-size: 12px; }
.cp-act-l { white-space: nowrap; }
#dropHint.bad { border-color: #e5484d; background: rgba(229, 72, 77, .14); }
#dropHint.bad span { border-color: #e5484d; color: #ff8a8d; }
:root[data-theme="light"] #dropHint.bad span { color: #c62a2f; }
#hud .v.typed { color: #ffd27a; }
#hud input.bad { border-color: #e5484d; color: #ff8a8d; }
input.scrub:not(:focus) { cursor: ns-resize; }
body.scrubbing, body.scrubbing * { cursor: ns-resize !important; user-select: none !important; }

/* ---------- snapping guides ---------- */
#overlay .sg { stroke: #ff2fb4; stroke-width: 1; }
#overlay .sg-x { stroke: #ff2fb4; stroke-width: 1.5; fill: none; }
#overlay .sg-pt { fill: none; stroke: #ff2fb4; stroke-width: 2; }
#overlay .sg-mid { stroke: #ff2fb4; stroke-width: 1; stroke-dasharray: 3 3; }
#overlay .sg-m { fill: #ff2fb4; }
#overlay .sg.sg-on, #overlay .sg-mid.sg-on, #overlay .sg-grid.sg-on { stroke-width: 3; stroke-dasharray: none; opacity: 1; }
#overlay .sg-gap { stroke: #ff5c8a; stroke-width: 1.5; fill: none; }
#overlay .sg-grid { stroke: #ff2fb4; stroke-width: 1; opacity: .6; }

/* ---------- toolbar grid button + flyout ---------- */
.tb-spacer { flex: 1; }
#toolbar .tb-toggle { position: relative; color: var(--muted); }
#toolbar .tb-toggle.on { color: var(--text); background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.tb-hold { position: absolute; right: 2px; bottom: 2px; width: 0; height: 0; border-left: 4px solid transparent; border-bottom: 4px solid currentColor; opacity: .7; }
.flyout { position: fixed; z-index: 35; width: 220px; padding: 10px 12px; background: var(--chrome); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.flyout .fly-head { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; }
.flyout .chk { margin-bottom: 8px; color: var(--text); }
.flyout .row > label:first-child { width: 40px; }

/* ---------- draggable popups ---------- */
.drag-handle { cursor: move; user-select: none; }
.settings-box { width: min(420px, 94vw) !important; }
.set-grid { grid-template-columns: 96px 1fr !important; }
.fb-title { padding: 8px 12px 0; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

/* ---------- help ---------- */
.help-box { width: min(860px, 94vw); height: min(620px, 88vh); display: flex; flex-direction: column; padding-bottom: 14px; }
.help-cols { display: flex; gap: 18px; min-height: 0; flex: 1; margin-top: 12px; }
.help-side { width: 210px; flex: none; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
#helpSearch { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; -webkit-user-select: text; user-select: text; }
#helpSearch:focus { outline: none; border-color: var(--accent); }
#helpNav { overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
#helpNav button { text-align: left; border-radius: 5px; padding: 6px 9px; display: flex; align-items: center; gap: 6px; }
#helpNav button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
#helpNav button.dim { opacity: .35; }
#helpNav button kbd { margin-left: auto; }
#helpNav .cnt { margin-left: auto; font-size: 11px; color: var(--muted); }
.help-body { flex: 1; overflow-y: auto; min-width: 0; padding-right: 6px; }
.help-body h4:first-child { margin-top: 0; }
.help-body dl { grid-template-columns: minmax(0, 38%) 1fr; }
#toast { position: fixed; left: 50%; bottom: 46px; transform: translate(-50%, 10px); z-index: 60; padding: 7px 14px; border-radius: 6px;
  background: var(--chrome); color: var(--text); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.ctxmenu { min-width: 210px; }
.ctxmenu button { display: flex; align-items: center; gap: 6px; }
.ctxmenu button .mk { width: 12px; flex: none; color: #f5b301; }
.ctxmenu button:hover .mk { color: inherit; }
.ctxmenu button .lb { flex: 1; }
.ctxmenu button .ky { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 18px; }
.ctxmenu button:hover .ky { color: inherit; }
.ctxmenu button:disabled { opacity: .4; background: transparent; color: var(--text); }
.flyout .fly-sep { border-top: 1px solid var(--line); margin: 2px 0 8px; }
.flyout #snapKinds .chk { display: flex; margin-bottom: 6px; }
.flyout .chk input:disabled + * , .flyout .chk:has(input:disabled) { opacity: .45; }
.flyout .fly-key { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.flyout .chk { display: flex; align-items: center; gap: 6px; }
.flyout .fly-tip { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
#snapFly { width: 240px; }
.help-body h4 { font-size: 15px; margin-bottom: 10px; }
.flipbtns { display: flex; gap: 6px; }
.flipbtns button { flex: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--bg); padding: 3px 0; }

/* ---------- keyboard shortcut editor ---------- */
.keys-box { width: min(580px, 94vw) !important; height: min(680px, 88vh); display: flex; flex-direction: column; }
#keysSearch { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; margin-bottom: 8px; -webkit-user-select: text; user-select: text; }
#keysSearch:focus { outline: none; border-color: var(--accent); }
.keys-list { flex: 1; overflow-y: auto; min-height: 0; font-size: 13.5px; padding-right: 6px; }
.keys-list h4 { margin: 16px 0 6px; }
.krow { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 5px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.klabel { flex: 1; min-width: 0; color: var(--text); }
.krow.custom .klabel::after { content: ' •'; color: var(--accent); }
.ktype { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.kkeys { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.kchip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.kchip .kk { border: 0; background: transparent; padding: 2px 4px; font-size: 15px; }
.kchip .kk kbd { font-size: 15px; }
.kchip .kk:hover kbd { border-color: var(--accent); }
.kchip .kx { border: 0; background: transparent; color: var(--muted); padding: 2px 7px 2px 3px; font-size: 15px; }
.kchip .kx:hover { color: var(--text); }
.kchip.warn { border-color: #e0a030; }
.kwarn { font-style: normal; font-weight: 700; color: #e0a030; }
.kchip.rec { padding: 4px 10px; border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.knone { color: var(--muted); font-style: italic; }
.kadd { padding: 2px 9px; font-size: 15px; }
.kreset { padding: 2px 8px; font-size: 12px; }
.kask { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 4px 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.krow.fixed kbd { font-size: 15px; }
.krow:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.kkeys { flex: none; max-width: 62%; }
#fontBtn.mixed { font-style: italic; color: var(--muted); }

/* ---------- font tags ---------- */
.fb-row { position: relative; }
.fb-tagbtn { flex: none; display: inline-flex; color: var(--muted); padding: 2px 3px; border-radius: 4px; opacity: 0; align-self: center; }
.fb-row:hover .fb-tagbtn { opacity: 1; }
.fb-tagbtn:hover { color: var(--text); background: var(--bg); }
.fb-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; margin-left: auto; }
.fb-tags { border: 1px solid var(--line); background: var(--chrome-2); }
.tagpop { position: fixed; z-index: 41; width: 290px; background: var(--chrome); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.tp-body { padding: 8px 12px 4px; display: flex; flex-direction: column; gap: 8px; }
.tp-lab { font-size: 11.5px; color: var(--muted); }
.tp-font, .tp-add { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; -webkit-user-select: text; user-select: text; }
.tp-font:focus, .tp-add:focus { outline: none; border-color: var(--accent); }
.tp-preview { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 190px; overflow-y: auto; }
.tp-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; padding: 2px 2px 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.tp-chip.own { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.tp-chip button { border: 0; background: transparent; color: inherit; padding: 0 6px; font-size: 14px; line-height: 1; }
.tp-chip button:hover { color: var(--text); }
.tp-none { color: var(--muted); font-style: italic; }
.tp-note { margin: 0; font-size: 11.5px; color: var(--muted); }

/* favorites */
.fb-star, .fb-tagbtn { flex: none; display: inline-flex; color: var(--muted); padding: 2px 3px; border-radius: 4px; opacity: 0; align-self: center; }
.fb-star svg, .fontico svg, .tp-fav svg { fill: none; }
.fb-row:hover .fb-star, .fb-row.kb .fb-star, .fb-row:hover .fb-tagbtn, .fb-row.kb .fb-tagbtn { opacity: 1; }
.fb-star:hover, .fb-tagbtn:hover { color: var(--text); background: var(--bg); }
.fb-star.on { opacity: 1; color: #f5b301; }
.fb-star.on svg, .fontico.on svg, .tp-fav.on svg { fill: currentColor; }
.fontico.on, .tp-fav.on { color: #f5b301; }
.fontico { flex: none; padding: 4px 5px; }
.fontico svg { width: 17px; height: 17px; }
.fb-row.kb { background: var(--chrome-2); box-shadow: inset 3px 0 0 var(--accent); }
.tp-prow { display: flex; align-items: center; gap: 6px; }
.tp-prow .tp-preview { flex: 1; min-width: 0; }
.tp-fav svg { width: 19px; height: 19px; }

/* ---------- menu bar ---------- */
#menubar { gap: 0; }
#menubar button { padding: 4px 10px; border: 0; background: transparent; }
#menubar button:hover, #menubar button.open { background: var(--chrome-2); }
#menubar button.open { color: var(--text); }
.ctxmenu.menudrop { min-width: 240px; }
#statusbar #zoomLabel { min-width: 0; margin-right: 14px; }

/* combine (merge / cut / intersect / exclude) */
.combbar { display: flex; gap: 3px; }
.combbar button { flex: 1 1 auto; min-width: 0; }
.combbar button { display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.combbar button.dis { opacity: .35; }
.combbar button svg { width: 20px; height: 20px; }
.combbar button:disabled { opacity: .35; }

#cutOrder { color: var(--muted); }
.set-text { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; box-sizing: border-box; }
.set-text:focus { outline: none; border-color: var(--accent); }
.fontico-row { margin-top: -2px; gap: 4px; }

/* Codify Werkz: Save / OK buttons with cut corners (top-left, bottom-right) */
:root[data-theme="codify"] button.primary, :root[data-theme="codify"] .cp-foot .cp-ok { border-radius: 0; padding-left: 16px; padding-right: 16px; clip-path: polygon(10px 0, 100% 0, 100% 55%, calc(100% - 10px) 100%, 0 100%, 0 45%); }
/* small popups (name, are you sure) */
.dlg-box { width: min(380px, 92vw) !important; }
.dlg-in { display: flex; align-items: center; gap: 6px; margin: 4px 0 4px; }
.dlg-in span { color: var(--muted); }
.dlg-choices { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.dlg-check { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.set-pad { margin-top: 6px; }
.set-pad > span { width: auto; margin-right: 4px; }
#lyLockAll svg * { opacity: 1; }

/* Convert to paths: as one shape · by word · by letter */
.convbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.convbtns button { display: flex; align-items: center; justify-content: center; padding: 4px 0; }
.convbtns button svg { width: 56px; height: 19px; flex: none; }
.convbtns button { min-width: 0; overflow: hidden; }

/* sidebar buttons all get the same dark fill and border as the align buttons */
.combbar button, .convbtns button, .ly-foot button.icon, .fontico { border: 1px solid var(--line); background: var(--bg); }
.combbar button:hover:not(:disabled), .convbtns button:hover:not(:disabled), .ly-foot button.icon:hover:not(:disabled), .fontico:hover:not(:disabled) { border-color: var(--muted); }
.ly-foot { gap: 4px; }
#alignInfo, #combineInfo, #nodeInfo, #textTarget { display: none !important; }
.ly-empty { padding: 8px; margin: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; }

/* isolated editing */
#art .iso-dim { fill: rgba(205, 208, 214, .62); pointer-events: none; }
#isoBadge { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 5px 14px; border-radius: 99px;
  background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.3); pointer-events: none; }
#isoBadge span { font-weight: 400; opacity: .85; }

/* saved documents */
.sv-box { width: min(560px, 94vw) !important; max-height: 80vh; display: flex; flex-direction: column; }
.sv-list { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.sv-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.sv-row.cur { border-color: var(--accent); }
.sv-thumb { width: 64px; height: 48px; flex: none; background: #fff; border-radius: 3px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sv-thumb img { max-width: 100%; max-height: 100%; }
.sv-info { flex: 1; min-width: 0; }
.sv-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 600; }
.sv-date { font-size: 11.5px; color: var(--muted); }
.sv-row button { flex: none; }
.sv-row .sv-open { min-width: 0; }

/* settings tabs */
.set-tabs { display: flex; gap: 2px; margin: 4px 0 14px; border-bottom: 1px solid var(--line); }
.set-tabs button { border: 0; border-radius: 6px 6px 0 0; background: transparent; color: var(--muted); padding: 6px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.set-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.set-tabs button:hover { color: var(--text); background: transparent; }
.settings-box .set-grid { min-height: 230px; align-content: start; }
.set-grid[hidden] { display: none !important; }

/* document name in the top bar */
#docName { display: flex; align-items: center; gap: 6px; max-width: 260px; min-width: 0; margin-right: 10px; padding: 3px 8px; border-radius: 5px; color: var(--text); cursor: default; user-select: none; }
#docName:hover { background: var(--chrome-2); }
#docName .dn-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#docName .dn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; display: none; }
#docName.mod .dn-dot { display: block; }
#docName .dn-input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 6px; width: 200px; outline: none; }
.set-ver { color: var(--muted); font-size: 11.5px; margin-right: 12px; }

/* ---------- accounts: sign-in screen (only on the server) ---------- */
#acctGate, .acct-links { display: none; }
.acct-locked #acctGate { display: flex; position: fixed; inset: 42px 0 0 0; z-index: 30; align-items: center; justify-content: center; background: var(--canvas); padding: 16px; }
.acct-locked .acct-links { display: flex; gap: 18px; margin-left: auto; padding-right: 8px; }
.acct-locked #topbar > :not(.brand):not(.acct-links) { display: none !important; }
.acct-locked #main, .acct-locked #statusbar { visibility: hidden; }
.acct-links a { color: var(--text); text-decoration: none; font-size: 13px; }
.acct-links a:hover { color: var(--accent-soft); }
.acct-box { width: 380px; max-width: 100%; background: var(--chrome); border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px 24px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.acct-box h2 { margin: 0 0 6px; font-size: 20px; }
.acct-box .note { margin: 0 0 18px; }
.acct-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.acct-box .set-text { padding: 9px 10px; font-size: 15px; }
.acct-code { letter-spacing: 8px; font-size: 22px !important; text-align: center; font-variant-numeric: tabular-nums; }
.acct-upd { margin: 12px 0 0; }
.acct-err { min-height: 18px; margin: 10px 0 6px; color: #f0646a; font-size: 13px; }
.acct-go { width: 100%; padding: 9px; font-size: 14px; }
.acct-alt { display: flex; justify-content: space-between; margin-top: 14px; }
.acct-link { background: none; border: 0; padding: 0; color: var(--accent-soft); font: inherit; font-size: 13px; cursor: pointer; }
.acct-link:hover { text-decoration: underline; background: none; }
.acct-btn span { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
