/* Mic Rotation - velvet plum and stage-light amber: a karaoke-room marquee, LED energy columns from teal (slow) to hot pink (belter). */
:root {
  --bg: #f7f2ee; --bg2: #efe6e0; --card: #fffcfa; --ink: #22162b; --muted: #6a5c72; --line: #e3d6d9; --line2: #d3c1c7;
  --plum: #3b1a4a; --plum2: #5a2a6e; --amber: #f2a93b; --amber-ink: #3b1a00; --accent: #b0306a; --accent-ink: #ffffff;
  --e1: #2f9c9a; --e2: #6fae7a; --e3: #d9b13b; --e4: #ec7b3e; --e5: #d93a78;
  --fix: #c8323f; --fix-bg: #fbe3e5; --warn: #b9770e; --warn-bg: #fcf0d8; --ok: #2a8a5a; --ok-bg: #e2f3ea; --info: #5f6b86; --info-bg: #ebedf3;
  --duet: #7a4fd0; --group: #1d88c9; --curtain: #b0306a;
  --shadow: 0 1px 2px rgba(34, 22, 43, .06), 0 8px 22px rgba(34, 22, 43, .07);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  --bg: #150d1b; --bg2: #1d1226; --card: #21152b; --ink: #f3e9f2; --muted: #b5a3bb; --line: #3a2a45; --line2: #4c3858;
  --plum: #0e0813; --plum2: #2a173a; --amber: #f5b553; --amber-ink: #2a1600; --accent: #ec5e98; --accent-ink: #1a0712;
  --e1: #3fbab6; --e2: #86c690; --e3: #e9c454; --e4: #f59157; --e5: #f0558f;
  --fix: #ff6b77; --fix-bg: #3a1820; --warn: #f0b04a; --warn-bg: #36270f; --ok: #5ccf94; --ok-bg: #143023; --info: #a9b3cc; --info-bg: #262a38;
  --duet: #a983ff; --group: #4fb3f0; --curtain: #ec5e98;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .86em; background: var(--bg2); padding: 1px 5px; border-radius: 4px; word-break: break-word; }
.hidden { display: none !important; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.warn { color: var(--warn); }
.mono { font-family: var(--mono); }

/* Header: a marquee strip of bulbs under a velvet bar. */
.bar { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--plum); color: #f8eef6; position: relative; flex-wrap: wrap; }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: radial-gradient(circle at 6px 3px, var(--amber) 2.2px, transparent 2.8px) 0 0 / 14px 6px repeat-x, var(--plum2); }
.back { color: #e8d4ea; text-decoration: none; font-size: 13px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: .01em; }
.logo { width: 28px; height: 28px; }
.lg-a { fill: #3fbab6; } .lg-b { fill: #f5b553; } .lg-c { fill: #f0558f; }
.lg-line { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.session { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.pill:hover { border-color: var(--accent); }
.pill.solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill.ghost { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .3); cursor: default; }
.pill.tiny { padding: 2px 9px; font-size: 12px; }
.pill.big { padding: 10px 22px; font-size: 15px; font-weight: 600; }
.pill:disabled { opacity: .5; cursor: not-allowed; }
.bar .pill { background: rgba(255, 255, 255, .08); color: #f8eef6; border-color: rgba(255, 255, 255, .25); }
.bar .pill.solid { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 16px 40px; }
.hero { padding: 18px 0 8px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent); margin: 0 0 6px; font-weight: 600; }
.hero h1 { font-size: clamp(26px, 4.4vw, 42px); line-height: 1.12; margin: 0 0 10px; letter-spacing: -.01em; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--amber) 55%, transparent) 62%); }
.lede { max-width: 760px; color: var(--muted); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 13px; color: var(--muted); }
.chip { border: 1px dashed var(--line2); background: var(--card); color: var(--ink); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { border-style: solid; border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); margin-top: 16px; min-width: 0; }
.card h2 { font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.card h3 { font-size: 14px; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stepno { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--plum2); color: #fff; font-size: 13px; }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.two .card { margin-top: 0; }
.drop { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--bg2); }
.drop.over { border-color: var(--accent); }
textarea, input[type="text"], input[type="number"], input[type="time"], select { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; }
textarea { font-family: var(--mono); font-size: 13px; resize: vertical; }
.drop-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.filebtn { font-size: 13px; color: var(--accent); cursor: pointer; text-decoration: underline; }
.filebtn input { display: none; }
.f { display: block; font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.f input, .f select, .f textarea { margin-top: 4px; font-weight: 400; }
.opt { font-weight: 400; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.notes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.notes li { padding: 7px 10px; border-radius: 8px; font-size: 13px; background: var(--info-bg); border-left: 3px solid var(--info); }
.notes li.warn { background: var(--warn-bg); border-left-color: var(--warn); color: var(--ink); }
.notes li.fix { background: var(--fix-bg); border-left-color: var(--fix); }
.notes li.ok { background: var(--ok-bg); border-left-color: var(--ok); }
.notes li.none { background: transparent; border-left-color: var(--line2); color: var(--muted); }

/* The energy curve. */
.disp-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.disp-top h2 { margin: 0; }
.tabs { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.tab { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; padding: 5px 14px; cursor: pointer; }
.tab.on { background: var(--plum2); color: #fff; }
.tab:disabled { opacity: .45; cursor: not-allowed; }
.verdict-tag { margin-left: auto; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--info-bg); }
.verdict-tag:empty { display: none; }
.v-keep { background: var(--ok-bg); color: var(--ok); }
.v-reshuffle { background: var(--warn-bg); color: var(--warn); }
.v-rebuild { background: var(--fix-bg); color: var(--fix); }
.curvebox { overflow-x: auto; border-radius: 12px; margin-top: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--plum2) 9%, var(--card)), var(--card)); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.curvebox svg { display: block; }
.curvebox .empty { padding: 30px; color: var(--muted); text-align: center; margin: 0; }
.curve .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.curve .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.curve .overrun { fill: var(--fix); fill-opacity: .1; }
.curve .curtain { stroke: var(--curtain); stroke-width: 2; stroke-dasharray: 5 3; }
.curve .curtain-t { fill: var(--curtain); font-weight: 600; }
.curve .led { fill-opacity: .9; }
.curve .led.e1 { fill: var(--e1); } .curve .led.e2 { fill: var(--e2); } .curve .led.e3 { fill: var(--e3); } .curve .led.e4 { fill: var(--e4); } .curve .led.e5 { fill: var(--e5); }
.curve .led.est { fill-opacity: .38; stroke: var(--muted); stroke-dasharray: 2 2; stroke-width: 1; }
.curve .tline.t-duet { fill: var(--duet); } .curve .tline.t-group { fill: var(--group); }
.curve .fx-fix { fill: var(--fix); } .curve .fx-warn { fill: var(--warn); }
.curve .role { font-size: 10px; font-weight: 700; fill: var(--ink); font-family: var(--font); }
.curve .sid { fill: var(--muted); font-size: 10px; font-family: var(--mono); }
.curve .who { fill: var(--ink); font-size: 11px; font-weight: 600; font-family: var(--font); }
.curve .who.newbie { fill: var(--accent); text-decoration: underline; }
.curve .eline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-opacity: .75; }
.curve .edot { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.curve .slot { cursor: default; outline: none; }
.curve .slot:focus .led, .curve .slot:hover .led { fill-opacity: 1; }
.curve .slot.flash .led { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { fill-opacity: .2; } }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 10px 0 0; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.legend .sw.e1 { background: var(--e1); } .legend .sw.e3 { background: var(--e3); } .legend .sw.e5 { background: var(--e5); }
.legend .sw.est { background: transparent; border: 1px dashed var(--muted); }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend .dot.fx-fix { background: var(--fix); } .legend .dot.fx-warn { background: var(--warn); }
.legend .ln { width: 18px; height: 3px; display: inline-block; }
.legend .ln.t-duet { background: var(--duet); } .legend .ln.t-group { background: var(--group); }
.legend .ln.curtain { background: repeating-linear-gradient(90deg, var(--curtain) 0 5px, transparent 5px 8px); }

.setgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 6px; }
.setlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 26px 46px 1fr auto; gap: 8px; align-items: start; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.srow.has-fix { box-shadow: inset 3px 0 0 var(--fix); }
.srow.has-warn { box-shadow: inset 3px 0 0 var(--warn); }
.srow.cut { opacity: .55; }
.srow.cut .song { text-decoration: line-through; }
.spos { font-weight: 700; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.sclock { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.smain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.tag.newbie { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.tag.t-duet { color: var(--duet); } .tag.t-group { color: var(--group); }
.tag.role { background: var(--plum2); color: #fff; }
.tag.r-peak { background: var(--e5); } .tag.r-breather { background: var(--e1); } .tag.r-singalong { background: var(--group); } .tag.r-closer, .tag.r-opener { background: var(--amber); color: var(--amber-ink); }
.was { font-size: 11px; color: var(--muted); font-style: italic; }
.song { font-size: 14px; overflow-wrap: anywhere; }
.why { font-size: 12px; color: var(--muted); }
.why.warn { color: var(--warn); }
.flagline { font-size: 12px; }
.flagline.lv-fix { color: var(--fix); } .flagline.lv-warn { color: var(--warn); }
.sside { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pips { display: inline-flex; gap: 2px; }
.pips i { width: 7px; height: 12px; border-radius: 2px; background: var(--line); display: inline-block; }
.pips i.on.e1 { background: var(--e1); } .pips i.on.e2 { background: var(--e2); } .pips i.on.e3 { background: var(--e3); } .pips i.on.e4 { background: var(--e4); } .pips i.on.e5 { background: var(--e5); }
.pips.est i.on { opacity: .45; }
.slen { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.setlist .cue { list-style: none; padding: 6px 8px 6px 34px; font-size: 13px; font-style: italic; color: var(--ink); background: color-mix(in srgb, var(--amber) 14%, transparent); border-bottom: 1px solid var(--line); }
.cue-mic { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-ink); background: var(--amber); padding: 1px 6px; border-radius: 4px; }
.sidecol h3:first-child { margin-top: 0; }
.cbar { position: relative; height: 14px; background: var(--bg2); border-radius: 7px; overflow: visible; }
.cfill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--e1), var(--e3)); }
.cfill.over { background: linear-gradient(90deg, var(--e3), var(--fix)); }
.cmark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--curtain); }
.clockbox p { margin: 6px 0 0; }
.turns { display: grid; gap: 4px; }
.trow { display: grid; grid-template-columns: minmax(60px, 110px) 1fr 22px; gap: 8px; align-items: center; font-size: 13px; }
.tlab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbar { height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.tfill { height: 100%; background: var(--plum2); border-radius: 4px; }
:root[data-theme="dark"] .tfill { background: var(--accent); }
.tfill.zero { background: transparent; }
.tnum { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.readflags { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.readflags li { padding: 6px 8px; border-radius: 8px; background: var(--info-bg); }
.readflags li.lv-fix { background: var(--fix-bg); } .readflags li.lv-warn { background: var(--warn-bg); } .readflags li.ok { background: var(--ok-bg); } .readflags li.none { background: transparent; color: var(--muted); }
.readflags .lv { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; background: var(--card); }
.lv-fix .lv { color: var(--fix); } .lv-warn .lv { color: var(--warn); } .lv-info .lv { color: var(--info); }
.rules { margin-top: 14px; font-size: 13px; color: var(--muted); }
.rules summary { cursor: pointer; color: var(--ink); }
.rules ul { padding-left: 18px; }

.ask .gate { background: var(--warn-bg); padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.runrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ptitle { font-weight: 600; margin: 0 0 6px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; font-size: 14px; }
.step { color: var(--muted); }
.step.done { color: var(--ok); } .step.active { color: var(--ink); font-weight: 600; }
.step-ic { font-family: var(--mono); display: inline-block; width: 14px; }
.raw { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; max-height: 360px; overflow: auto; background: var(--bg2); padding: 10px; border-radius: 8px; }
.result { border-top: 4px solid var(--accent); }
.rhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rhead h2 { margin: 0; }
.stamp { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; padding: 5px 10px; border-radius: 6px; border: 2px solid currentColor; transform: rotate(-2deg); background: var(--info-bg); }
.summary { font-size: 15px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cutlist, .cuelist, .lines-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cutlist li, .cuelist li { padding: 8px 10px; border-radius: 8px; background: var(--bg2); }
.cutlist li p, .cuelist li p { margin: 3px 0 0; }
.cutlist li.none, .cuelist li.none, .lines-plain li.none { background: transparent; color: var(--muted); padding: 0; }
.cue-before { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.lines-plain li::before { content: "- "; color: var(--muted); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.hist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.hrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg2); border-radius: 8px; flex-wrap: wrap; }
.hinfo { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hist li.none { color: var(--muted); font-size: 13px; }
.foot { max-width: 1120px; margin: 0 auto; padding: 10px 16px 40px; font-size: 13px; color: var(--muted); }
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 10px 14px; border-radius: 10px; background: var(--plum); color: #fff; box-shadow: var(--shadow); font-size: 14px; transition: opacity .5s; }
.toast.err { background: var(--fix); }
.toast.gone { opacity: 0; }
.toast a { color: #fff; font-weight: 600; }

@media (max-width: 860px) {
  .two, .setgrid, .twocol { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 .f:first-child { grid-column: 1 / -1; }
  .srow { grid-template-columns: 22px 40px 1fr; }
  .sside { grid-column: 3; flex-direction: row; align-items: center; gap: 8px; }
  .verdict-tag { margin-left: 0; }
  .bar { padding: 10px 12px; }
  .card { padding: 14px; }
}

/* Docs pages: api.html and tokens.html. */
.doc { max-width: 900px; margin: 0 auto; padding: 24px 16px 48px; }
.doc h1 { font-size: 2rem; line-height: 1.2; }
.doc h2 { font-size: 1.35rem; margin-top: 32px; display: block; }
.doc h3 { font-size: 1.05rem; margin-top: 22px; display: block; }
.doc pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; font: .8rem/1.45 var(--mono); max-width: 100%; }
.doc pre code { background: none; border: none; padding: 0; white-space: pre; }
.doc table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td code { white-space: normal; }
.codegroup .tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 0; border: 0; padding: 0; background: none; border-radius: 0; }
.codegroup .tab { font-size: .8rem; padding: 4px 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 6px 6px 0 0; }
.codegroup .tab.active { background: var(--plum2); color: #fff; border-color: var(--plum2); }
.codegroup pre { margin-top: 0; border-top-left-radius: 0; }
.statebox { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--card); }
.tokenrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tokenbox { font-family: var(--mono); font-size: 13px; background: var(--bg2); padding: 8px 12px; border-radius: 8px; overflow-wrap: anywhere; flex: 1; }

@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; }
  .mapfoot { grid-template-columns: 1fr; }
  .twocol { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .zonecols { grid-template-columns: 1fr; }
  .heat { grid-template-columns: 1fr; }
  .card { padding: 14px 14px; }
  .verdict-tag { margin-left: 0; }
  .bar .back { display: none; }
}

/* Print: the running order, the curve, the booking clock and the host cues on paper by the mic - light colours always,
 * every input, button and account control left off. */
@media print {
  :root, :root[data-theme="dark"] {
--bg: #f7f2ee; --bg2: #efe6e0; --card: #fffcfa; --ink: #22162b; --muted: #6a5c72; --line: #e3d6d9; --line2: #d3c1c7;
  --plum: #3b1a4a; --plum2: #5a2a6e; --amber: #f2a93b; --amber-ink: #3b1a00; --accent: #b0306a; --accent-ink: #ffffff;
  --e1: #2f9c9a; --e2: #6fae7a; --e3: #d9b13b; --e4: #ec7b3e; --e5: #d93a78;
  --fix: #c8323f; --fix-bg: #fbe3e5; --warn: #b9770e; --warn-bg: #fcf0d8; --ok: #2a8a5a; --ok-bg: #e2f3ea; --info: #5f6b86; --info-bg: #ebedf3;
  --duet: #7a4fd0; --group: #1d88c9; --curtain: #b0306a;
  --shadow: 0 1px 2px rgba(34, 22, 43, .06), 0 8px 22px rgba(34, 22, 43, .07);
    --shadow: none;
  }
  body { background: #fff; color: #000; }
  .bar, .hero, .two, #parseNotes, #askBox, #progressPanel, #how, #rawResult, .exports, .history, .foot, .toasts, .tabs, details.rules, #copyCues, .disp-top .verdict-tag { display: none !important; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; page-break-inside: avoid; margin-top: 8px; }
  .curvesec, #result { break-inside: auto; page-break-inside: auto; }
  .curvebox { overflow: visible !important; }
  .setlist li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
