/* The combo builder page. palette.css (generated by the site build from the
   atlas's palette) defines the colour variables; everything here reuses
   them so the builder reads as part of the same site. The extra tokens
   are mixed from the palette, so they follow the theme with it. */

:root {
  color-scheme: dark;
  --ghost: color-mix(in srgb, var(--muted) 32%, var(--panel));
  --sel: color-mix(in srgb, var(--shard) 16%, var(--panel));
  /* The same-skill highlight: a ring around the chips, a tint on the bars. */
  --same-ring: color-mix(in srgb, var(--shard) 55%, transparent);
  --same-fill: color-mix(in srgb, var(--win-skill) 55%, var(--shard));
  --same-flow: color-mix(in srgb, var(--primed) 60%, var(--shard));
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; } }
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 "IBM Plex Sans", system-ui, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--shard); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
h2 {
  font: 700 17px/1 Rajdhani, "IBM Plex Sans", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.mono { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: 12px; }
.prob { color: var(--spend); font-size: 12.5px; }
.ok { color: var(--muted); font-size: 12.5px; }
.h {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.btn {
  background: var(--lane);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 10px;
  color: var(--ink);
}
.btn:hover:not(:disabled) { border-color: var(--win-skill-edge); }
.btn.small { padding: 2px 8px; font-size: 12px; }
.btn.copied { border-color: var(--shard); color: var(--shard); }
.btn.danger:hover:not(:disabled) { border-color: var(--spend); color: var(--spend); }

/* Top bar. */
.top {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.brand {
  font: 700 20px/1 Rajdhani, "IBM Plex Sans", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand .accent { color: var(--shard); }
.fields { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin: 0; }
.speedfields { display: contents; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field .lbl {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.field select, .field input {
  background: var(--lane);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
  color: var(--ink);
  height: 28px;
  line-height: 1.3;
  min-width: 0;
}
.field input.num {
  width: 72px;
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}
/* Room for the `unknown` placeholder of a class whose cap the data does not carry. */
.field input#gaugeMax { width: 92px; }
.top .grow { flex: 1; }
.top .links { display: flex; gap: 14px; font-size: 12.5px; white-space: nowrap; }
.status { color: var(--muted); font-size: 12.5px; padding: 0 4px; }
.status.error { color: var(--spend); }

/* The Skills panel: the Prime or the base form of each Prime skill of a
   Succession combo, collapsed to its one-line head by default. */
.skills .head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  line-height: 20px;
}
.skills .head:hover .chev { border-color: var(--shard); }
.skills .head .title {
  font: 700 17px/20px Rajdhani, "IBM Plex Sans", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.skills .head .chev {
  margin-left: auto;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}
.skills.open .head .chev { transform: translateY(2px) rotate(225deg); }
.skills .body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
  align-items: start;
  gap: 6px 20px;
  padding: 2px 16px 14px;
}
.skills .row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.skills .seg {
  display: inline-flex;
  max-width: 100%;
  background: var(--lane);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.skills .opt {
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 3px 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}
.skills .opt:last-child { border-right: 0; }
.skills .opt:hover:not(.on) { color: var(--ink); }
.skills .opt.on {
  background: var(--sel);
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 0 -2px 0 var(--shard);
}
.skills .opt:focus-visible { outline-offset: -2px; }
.skills .row .hint { font-size: 11.5px; }
@media (max-width: 1100px) { .skills .body { grid-template-columns: 1fr; } }
.banner {
  background: var(--panel);
  border: 1px solid var(--spend);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  padding: 8px 12px;
}

/* Combo strip. */
.strip {
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px 5px 8px;
  cursor: pointer;
  user-select: none;
  position: relative;
  touch-action: none;
}
.chip:hover { border-color: var(--win-skill-edge); }
.chip .n { color: var(--muted); font: 500 11px "IBM Plex Mono", monospace; }
.chip .name { font-weight: 500; white-space: nowrap; }
.chip .key {
  font: 500 11px "IBM Plex Mono", monospace;
  color: var(--shard);
  border: 1px solid var(--win-skill-edge);
  border-radius: 3px;
  padding: 0 5px;
  white-space: nowrap;
}
.chip .key.after { border-style: dashed; }
.chip .flow { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chip.range { background: var(--sel); border-color: var(--shard); border-style: dashed; }
.chip.sel { background: var(--sel); border-color: var(--shard); border-style: solid; box-shadow: 0 0 0 1px var(--shard) inset; }
.chip.warn { border-color: var(--spend); }
.chip.warn.sel { box-shadow: 0 0 0 1px var(--spend) inset; border-color: var(--spend); }
.chip.wait { border-style: dashed; color: var(--muted); }
.chip.excluded { opacity: 0.55; }
.chip.excluded.sel { opacity: 0.8; }
/* The other chips of the hovered or focused skill. */
.chip.same { outline: 2px solid var(--same-ring); outline-offset: 1px; }
.chip.same:focus-visible { outline: 2px solid var(--shard); outline-offset: 2px; }
.chip.dragging { opacity: 0.45; }
.chip.drop-before::before, .chip.drop-after::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--shard);
  border-radius: 1px;
}
.chip.drop-before::before { left: -5px; }
.chip.drop-after::after { right: -5px; }
.chip .x {
  display: none;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0 0 0 2px;
  line-height: 1;
  font-size: 14px;
}
.chip:hover .x, .chip.sel .x { display: inline-block; }
.chip .x:hover { color: var(--spend); }
.sep { color: var(--muted); font-size: 13px; }
.chip.add { background: transparent; border-style: dashed; color: var(--muted); }
.chip.add:hover { color: var(--ink); }
.strip .tools { margin-left: auto; display: flex; gap: 6px; }
.strip .tools .loopbtn { border-color: var(--shard); color: var(--shard); }
.strip .empty { color: var(--muted); font-size: 13px; }
/* A loop: its chips in one bracket, the count and the cross under it. */
.strip.has-loops { padding-bottom: 24px; row-gap: 18px; }
.loop {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 5px 5px;
  margin: 0 1px;
  border-bottom: 2px solid var(--shard);
  min-width: 0;
}
.loop::before, .loop::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 2px;
  height: 9px;
  background: var(--shard);
}
.loop::before { left: 0; }
.loop::after { right: 0; }
.looptag {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.looptag .cnt {
  border: 0;
  background: none;
  padding: 0 2px;
  font: 600 11.5px "IBM Plex Mono", monospace;
  color: var(--shard);
  line-height: 1.2;
}
.looptag .cnt:hover { text-decoration: underline; }
.looptag .x {
  border: 0;
  background: none;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}
.looptag .x:hover { color: var(--spend); }

/* The add popover. */
.popover {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: 400px;
  max-width: calc(100vw - 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: default;
  text-align: left;
  color: var(--ink);
}
.popover.right { left: auto; right: 0; }
.popover input {
  width: 100%;
  background: var(--lane);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 9px;
  color: var(--ink);
}
.popover .rows { max-height: 56vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.popover .r {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.popover .r:hover, .popover .r.on { background: var(--sel); }
.popover .r .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popover .r .k { font: 11px "IBM Plex Mono", monospace; color: var(--muted); white-space: nowrap; flex: none; }
.popover .r .k b { color: var(--shard); font-weight: 500; }
.popover .r .k .cd { color: var(--spend); }
.popover .r.passive { cursor: default; color: var(--muted); flex-wrap: wrap; row-gap: 1px; }
.popover .r.passive:hover { background: none; }
.popover .r.passive .k { white-space: normal; flex: 1 1 100%; }
.popover .r .k .why { font-style: italic; }
.popover .grp { padding: 6px 8px 2px; }
.popover .grp.common { color: var(--muted); }
.popover .none { color: var(--muted); font-size: 12.5px; padding: 6px 8px; }

/* Inspector. */
.insp {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  border-top: 1px solid var(--line-soft);
}
.insp > div {
  padding: 10px 16px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.insp > div:last-child { border-right: 0; }
.insp .big { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.insp .big .key {
  font: 500 12px "IBM Plex Mono", monospace;
  color: var(--shard);
  border: 1px solid var(--win-skill-edge);
  border-radius: 3px;
  padding: 0 5px;
}
.insp .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.insp .row select, .insp .row input {
  background: var(--lane);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--ink);
  height: 26px;
  line-height: 1.3;
  min-width: 0;
  max-width: 100%;
}
.insp .row input.num {
  width: 64px;
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.insp .row select { flex: 1; }
.insp .row.looprow { row-gap: 4px; }
.insp .row.looprow input.num { width: 52px; }
.insp .row.scriptrow input.num { width: 56px; }
.insp .row .chk { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.insp .row .chk input { margin: 0; accent-color: var(--shard); height: auto; }
.insp .placeholder { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.nudge { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.nudge button { background: var(--lane); border: 0; padding: 2px 8px; color: var(--ink); }
.nudge button + button { border-left: 1px solid var(--line); }
.nudge button:hover:not(:disabled) { color: var(--shard); }
.insp .problems { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 1100px) { .insp { grid-template-columns: 1fr 1fr; } .insp > div:nth-child(2) { border-right: 0; } }

/* Track. */
.track { padding: 12px 16px 14px; }
.track .head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.track .head .fit { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }
.zoom { display: flex; align-items: center; gap: 8px; }
.zoom input { width: 110px; accent-color: var(--link); margin: 0; }
.trackwrap { overflow-x: auto; overflow-y: hidden; min-width: 0; }
.trackwrap svg { display: block; }
.trackwrap .empty { padding: 26px 0 18px; color: var(--muted); font-size: 13px; text-align: center; }
.track svg text { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; fill: var(--muted); font-size: 10px; }
.track svg text.sans { font-family: "IBM Plex Sans", system-ui, sans-serif; }
.track .rowlabel { fill: var(--muted); font-size: 11px; }
.track .rulertext { fill: var(--muted); font-size: 10.5px; }
.track .rulerframe { fill: var(--muted); font-size: 9px; }
.track .grid { stroke: var(--line-soft); }
.track .rowsep { stroke: var(--line); }
.track .band { fill: var(--shard); fill-opacity: 0.05; }
.track .band.cur { fill-opacity: 0.09; }
.track .iterrule { stroke: var(--shard); stroke-width: 1; stroke-dasharray: 5 3; stroke-opacity: 0.75; }
.track .iterlabel { fill: var(--shard); font-size: 10px; font-weight: 600; }
.track .ghost { fill: url(#hatch); stroke: var(--ghost); stroke-width: 0.5; }
.track .hatchline { stroke: var(--ghost); }
.track .stage { fill: var(--win-skill); stroke: var(--win-skill-edge); stroke-width: 1; cursor: pointer; }
.track .stage.flow { fill: var(--primed); fill-opacity: 0.55; stroke: var(--primed); }
.track .stage.sel { stroke: var(--shard); stroke-width: 2; }
.track .stage.warn { stroke: var(--spend); }
.track .stage.excluded, .track .wait.excluded { opacity: 0.4; }
.track .stage.same { fill: var(--same-fill); }
.track .stage.flow.same { fill: var(--same-flow); fill-opacity: 0.7; }
.track .stagesep { stroke: var(--panel); stroke-width: 1.5; }
.track .guessedend { stroke: var(--win-skill-edge); stroke-width: 2; stroke-dasharray: 2 2; }
.track .wait { fill: none; stroke: var(--muted); stroke-dasharray: 3 3; cursor: pointer; }
.track .wait.sel { stroke: var(--shard); stroke-width: 1.5; }
.track .label { fill: var(--ink); font-size: 11.5px; font-weight: 500; }
.track .label.sel { fill: var(--shard); font-weight: 600; }
.track .label.flow { fill: var(--primed); }
.track .label.wait { fill: var(--muted); font-weight: 400; }
.track .label.same { fill: var(--shard); }
.track .dmg { fill: var(--hit); font-size: 10px; }
.track .cancel { stroke: var(--spend); stroke-width: 1.5; }
.track .hit { fill: var(--hit); stroke: var(--hit); stroke-width: 1.2; }
.track .hit.miss { fill: none; }
.track .capline { stroke: var(--line); stroke-dasharray: 2 3; }
.track .gaugefill { fill: var(--shard); fill-opacity: 0.18; }
.track .gaugeline { fill: none; stroke: var(--shard); stroke-width: 1.5; }
.track .spend { fill: var(--spend); font-size: 9.5px; }
.track .cap { fill: var(--muted); font-size: 9px; }
.track .speedfill { fill: var(--primed); }
.track .speedline { stroke: var(--primed); }
.track .speedmark { fill: var(--primed); }
.track .buff { fill: var(--shard); }
.track .buff.target { fill: var(--hit); fill-opacity: 0.9; }
.track .buff.addon { fill: var(--primed); }
.track .buffname { fill: var(--muted); font-size: 10.5px; }
.track .uptime { fill: var(--ink); font-size: 10px; }
.track .grab { fill: transparent; cursor: ew-resize; }
.track .handle { fill: var(--shard); cursor: ew-resize; }
.track .handle.active { fill: var(--link); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 8px; }
.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--win-skill);
  border: 1px solid var(--win-skill-edge);
}
.legend .g::before { background: repeating-linear-gradient(135deg, var(--ghost) 0 2px, transparent 2px 4px); border-color: var(--ghost); }
.legend .hh::before { background: var(--hit); border-color: var(--hit); transform: rotate(45deg); width: 8px; height: 8px; border-radius: 1px; }
.legend .c::before { background: var(--spend); border-color: var(--spend); width: 2px; }
.legend .w::before { background: transparent; border: 1px dashed var(--muted); }
.legend .i::before { background: transparent; border: 0; border-left: 2px dashed var(--shard); border-radius: 0; width: 2px; }
.legend .a::before { background: var(--primed); border-color: var(--primed); height: 4px; }
.legend .b::before { background: var(--shard); border-color: var(--shard); height: 4px; }
.legend .t::before { background: var(--hit); border-color: var(--hit); height: 4px; }

/* Stats line. */
.stats { display: flex; flex-wrap: wrap; padding: 4px 4px 0; }
.stats > div { flex: 1; padding: 10px 14px; border-right: 1px solid var(--line-soft); min-width: 0; }
.stats > div:last-child, .stats > div[data-stat=problems] { border-right: 0; }
.stats > .opts { flex: none; display: flex; align-items: center; border-left: 1px solid var(--line-soft); }
.stats .chk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.stats .chk input { margin: 0; accent-color: var(--shard); }
.stats.excluded .chk { color: var(--ink); }
.stats > .loops {
  flex: 1 1 100%;
  border-top: 1px solid var(--line-soft);
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats .loopline { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stats .loopline .h { width: 150px; flex: none; }
.stats .loopline .it {
  font: 12px "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stats .loopline .it b { color: var(--shard); font-weight: 600; margin-right: 2px; }
.stats .loopline .it b::after { content: ":"; }
.stats .loopline .it.bad, .stats .loopline .it .pb { color: var(--spend); }
.stats .v {
  font: 500 20px/1.2 "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats .v small { font-size: 12px; color: var(--muted); margin-left: 4px; font-family: "IBM Plex Sans", system-ui, sans-serif; }
/* The speed cell: one line per speed kind, wrapping between the value and
   its unit rather than truncating (two kinds on Sorceress, Maehwa, Musa). */
.stats .v.speed { white-space: normal; overflow: visible; text-overflow: clip; }
.stats .v.speed small { white-space: nowrap; }
.stats .v.speed + .v.speed { margin-top: 2px; }
.stats .bad .v { color: var(--spend); }
.stats .note, .stats .sub { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .stats { flex-wrap: wrap; } .stats > div { flex: 1 1 30%; } }

/* Next. */
.next { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.next .grp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.next .grp .h { width: 150px; flex: none; }
.next .none { color: var(--muted); font-size: 13px; }
.sug {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  background: var(--chip);
  border: 1px solid var(--line);
  border-left: 3px solid var(--win-skill-edge);
  border-radius: 5px;
  padding: 3px 9px;
  color: var(--ink);
  text-align: left;
}
.sug:hover { border-color: var(--win-skill-edge); }
.sug .k { font: 500 11px "IBM Plex Mono", monospace; color: var(--shard); }
.sug .f { font: 11px "IBM Plex Mono", monospace; color: var(--muted); }
.sug .f .pb { color: var(--spend); }
.sug.cd { border-left-color: var(--spend); }
.sug.neu { border-left-color: var(--line); }
.sug.quick { border-left-color: var(--win-generic-edge); }
.sug.more { border-left-color: var(--line); color: var(--muted); font-size: 12px; }

/* Breakdown. */
.bd { padding: 12px 16px; display: flex; gap: 16px; align-items: center; }
.bd pre {
  margin: 0;
  flex: 1;
  min-width: 0;
  font: 13px/1.6 "IBM Plex Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bd .empty { color: var(--muted); font-family: "IBM Plex Sans", system-ui, sans-serif; }
.bd .btn { flex: none; }

/* Timing sheet card (only with `?script=1`). */
.export { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.export .head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.export .head h2 { align-self: center; }
.export .head .hint { flex: 1 1 320px; min-width: 0; max-width: 72ch; align-self: center; }
.export .head .btn { align-self: flex-end; height: 28px; }
.export .note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.export .note .sweepnote { color: var(--ink); }
.export textarea.script {
  display: block;
  width: 100%;
  resize: vertical;
  background: var(--lane);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  font: 12.5px/1.5 "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  white-space: pre;
  overflow: auto;
  min-height: 72px;
  max-height: 480px;
}
.export textarea.script::placeholder { color: var(--muted); font-family: "IBM Plex Sans", system-ui, sans-serif; }

footer { color: var(--muted); font-size: 12px; max-width: 80ch; padding: 0 4px; }

.tip {
  position: fixed;
  z-index: 10;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
  display: none;
}
.tip .mono { color: var(--muted); font-size: 11px; }
.tip div:empty { height: 7px; }
