/* Числата: a statistical bulletin in Plotly's visual language.
   Light theme only. Colours come from Plotly's defaults: plot area #E5ECF6,
   ink #2a3f5f and the ten-colour colorway used by the charts. */
:root {
  --paper: #ffffff;
  --page: #f6f8fb;
  --ink: #1d2c45;
  --ink-2: #2a3f5f;
  --muted: #5d6f88;
  --faint: #8a99ae;
  --rule: #dfe5ee;
  --rule-2: #c4cedc;
  --plot: #E5ECF6;
  --hover: #f1f5fb;
  --c1: #636EFA; --c2: #EF553B; --c3: #00CC96; --c4: #AB63FA; --c5: #FFA15A;
  --c6: #19D3F3; --c7: #FF6692; --c8: #B6E880; --c9: #FF97FF; --c10: #FECB52;
  --link: #3f4bd9;
  --up: #00875f;
  --down: #d23f22;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --colorway: linear-gradient(90deg,
    var(--c1) 0 10%, var(--c2) 0 20%, var(--c3) 0 30%, var(--c4) 0 40%, var(--c5) 0 50%,
    var(--c6) 0 60%, var(--c7) 0 70%, var(--c8) 0 80%, var(--c9) 0 90%, var(--c10) 0 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15.5px/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 30%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
b, strong { font-weight: 700; }

/* masthead */
header { background: var(--ink-2); color: #fff; }
header::after { content: ""; display: block; height: 4px; background: var(--colorway); }
.bar-in, .foot-in, main { max-width: 1140px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: flex; align-items: center; gap: .55rem; white-space: nowrap; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.brand em { font-style: normal; color: #aab3ff; }
.brand small { font-family: var(--sans); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); background: var(--c10); padding: 1px 6px; border-radius: 2px; }
/* the logo is a tiny bar chart in the colorway */
.logo {
  display: inline-block; width: 21px; height: 18px; font-size: 0; color: transparent;
  background:
    linear-gradient(var(--c1), var(--c1)) 0 100% / 4px 45% no-repeat,
    linear-gradient(var(--c3), var(--c3)) 6px 100% / 4px 70% no-repeat,
    linear-gradient(var(--c2), var(--c2)) 12px 100% / 4px 100% no-repeat,
    linear-gradient(var(--c5), var(--c5)) 18px 100% / 3px 85% no-repeat;
}
nav { display: flex; flex-wrap: wrap; gap: 0; margin-left: auto; }
nav a { color: #d5ddea; text-decoration: none; font-weight: 600; font-size: .88rem; padding: .45rem .7rem; border-bottom: 2px solid transparent; }
nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .45); }
nav a.on { color: #fff; border-bottom-color: var(--c10); }

/* type */
main { padding-top: 2rem; padding-bottom: 3.5rem; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.85rem); line-height: 1.12; letter-spacing: -.015em; margin: .15rem 0 .8rem; }
h1 small { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-left: .4rem; text-transform: uppercase; vertical-align: middle; }
h2 {
  font-size: 1.35rem; line-height: 1.25; margin: 2.8rem 0 1rem; padding-top: .6rem;
  border-top: 1px solid var(--ink);
}
.lead { font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.lead b { color: var(--ink); }
.crumbs { margin: 0; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.crumbs a { color: var(--muted); }
.small { font-size: .84rem; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.cols > section { min-width: 0; }

/* front page: the headline figure, set like a bulletin's lede */
.hero {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 2.5rem; align-items: stretch;
  padding: 0 0 2rem; margin-bottom: .5rem; border-bottom: 1px solid var(--rule);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.eyebrow { margin: 0 0 .3rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--c1); }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; }
.btn { display: inline-block; padding: .55rem 1rem; border-radius: 2px; font-weight: 700; font-size: .92rem; text-decoration: none; background: var(--ink-2); color: #fff; border: 1px solid var(--ink-2); }
.btn:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--ink-2); background: var(--hover); }
.hero-stat {
  display: flex; flex-direction: column; justify-content: center; gap: .2rem;
  padding: 1.4rem 1.6rem 1.3rem; border-left: 4px solid var(--c1);
  /* the plot-area tint with white gridlines, as on the charts */
  background: linear-gradient(#fff 1px, transparent 1px) 0 1.4rem / 100% 2.2rem, var(--plot);
}
.hero-stat > span:first-child { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.hero-stat b { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.hero-stat .up { align-self: flex-start; margin-top: .35rem; padding: 1px 8px; background: #fff; color: var(--up); font-weight: 700; font-size: .9rem; border-left: 3px solid var(--c3); }
.hero-stat .fine { font-size: .76rem; color: var(--muted); margin-top: .3rem; }

/* KPI tiles: a dashboard row, each keyed to a colorway colour */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 1.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tile {
  --k: var(--c1);
  display: block; padding: 1rem 1.2rem 1.05rem; color: var(--muted); font-size: .88rem; line-height: 1.45;
  text-decoration: none; border-left: 1px solid var(--rule); position: relative;
}
.tile:first-child { border-left: 0; }
.tile::before { content: ""; position: absolute; left: 1.2rem; top: -1px; width: 2.2rem; height: 3px; background: var(--k); }
.tile:first-child::before { left: 0; }
.tile:first-child { padding-left: 0; }
.tile:nth-child(2) { --k: var(--c2); }
.tile:nth-child(3) { --k: var(--c3); }
.tile:nth-child(4) { --k: var(--c4); }
.tile b { display: block; font-family: var(--serif); font-size: 2rem; letter-spacing: -.01em; color: var(--ink); line-height: 1.15; margin: .35rem 0 .2rem; }
.tile small { display: block; margin-top: .45rem; font-size: .78rem; color: var(--faint); }
a.tile { color: var(--muted); }
a.tile:hover { background: var(--hover); }
a.tile:hover b { color: var(--link); }

/* charts */
figure.plot { margin: 0 0 1.5rem; padding: 0; }
svg.chart { width: 100%; height: auto; display: block; font-family: var(--sans); font-size: 12px; fill: var(--ink-2); overflow: visible; }
svg.chart .grid { stroke: #fff; stroke-width: 1; }
svg.chart .grid.base { stroke-width: 2; }
svg.chart .ax { font-size: 12px; font-weight: 600; fill: var(--muted); }
svg.chart .dot { stroke: #fff; stroke-width: 1.5; }
svg.chart .last { font-weight: 700; font-size: 13px; }
svg.chart .hv .hit { fill: transparent; pointer-events: all; }
svg.chart .hv .spike, svg.chart .hv .mk, svg.chart .hv .xl, svg.chart .hv .xt,
svg.chart .hv .yl, svg.chart .hv .yt { opacity: 0; pointer-events: none; }
svg.chart .hv .spike { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
svg.chart .hv .mk { stroke: #fff; stroke-width: 1.5; }
svg.chart .hv .xl { fill: var(--ink-2); }
svg.chart .hv .xt, svg.chart .hv .yt { fill: #fff; font-weight: 600; font-size: 11.5px; }
svg.chart .hv:hover > * { opacity: 1; }
svg.chart:hover .last { opacity: .25; }
svg.chart.narrow { display: none; font-size: 11px; }
svg.chart.narrow .last { font-size: 11.5px; }
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; margin: 0 0 .6rem; font-size: .84rem; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; min-width: 0; }
.key i { flex: none; display: inline-block; position: relative; width: 22px; height: 2px; background: var(--c); vertical-align: middle; margin-right: .45rem; top: -1px; }
.key i::after { content: ""; position: absolute; left: 7px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* tables: data tables, not cards */
table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 0 0 1rem; }
th, td { padding: .48rem .7rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
th {
  color: var(--muted); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 2px solid var(--ink-2); padding-top: .3rem; padding-bottom: .4rem; vertical-align: bottom; white-space: nowrap;
}
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tr:hover td { background: var(--hover); }
td { overflow-wrap: break-word; hyphens: auto; }
td a { font-weight: 600; }
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
td.n b { color: var(--ink); }
td.up { color: var(--up); }
td.down { color: var(--down); }
tr.total td { font-weight: 700; border-top: 1px solid var(--ink-2); border-bottom: 0; background: var(--page); }
td.gap { text-align: center; color: var(--faint); letter-spacing: .3em; }
.scroll { overflow-x: auto; margin: 0 0 1rem; }
.scroll table { margin: 0; }
table.rank td.n:first-child { color: var(--faint); width: 2.2rem; text-align: left; font-size: .82rem; }
/* heat cells: a tint of the colorway blue, --h from 0 to 1 */
td.heat { background: color-mix(in srgb, var(--c1) calc(var(--h, 0) * 34%), #fff); }
td.heat:last-child { padding-right: .5rem; }
tr:hover td.heat { background: color-mix(in srgb, var(--c1) calc(var(--h, 0) * 34% + 5%), #fff); }

/* inline bars, Plotly-style: flat, on a plot-area track */
.bar-h { width: 22%; min-width: 90px; }
td.bar-h {
  padding-left: .9rem;
  background: linear-gradient(var(--plot), var(--plot)) .9rem 50% / calc(100% - 1.6rem) .7rem no-repeat;
}
tr:hover td.bar-h { background: linear-gradient(var(--plot), var(--plot)) .9rem 50% / calc(100% - 1.6rem) .7rem no-repeat, var(--hover); }
.bar { display: block; height: .7rem; background: var(--c1); }
.bar.med { height: .35rem; background: var(--faint); margin-top: 2px; }
table.rank tr:hover .bar:not(.med) { background: var(--ink-2); }

/* callouts */
.note {
  background: #fff7ee; border-left: 4px solid var(--c5); padding: .9rem 1.2rem; margin: 1.75rem 0; color: var(--ink-2);
}
.note b:first-child { color: var(--ink); }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--plot); padding: 0 .3rem; border-radius: 2px; font-size: .86em; color: var(--ink-2); }
table.data { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .76rem; }
table.data th { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .74rem; }
table.data td { white-space: nowrap; }
ul { padding-left: 1.2rem; }
li { margin: .4rem 0; }
li::marker { color: var(--c1); }

/* footer */
footer { background: var(--page); }
footer::before { content: ""; display: block; height: 3px; background: var(--colorway); }
.foot-in { padding-top: 1.5rem; padding-bottom: 2.2rem; font-size: .84rem; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-bottom: .4rem; }
.foot-in p:last-child { max-width: 80ch; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .cols, .hero { grid-template-columns: 1fr; }
  .hero { gap: 1.4rem; padding-bottom: 1.4rem; }
  .hero-stat { padding: 1.1rem 1.2rem; }
  .hide-s { display: none; }
  svg.chart.wide { display: none; }
  svg.chart.narrow { display: block; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile:first-child { padding: .85rem .8rem; font-size: .82rem; border-bottom: 1px solid var(--rule); }
  .tile:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tile::before { left: .8rem; }
  .tile:nth-child(odd)::before { left: 0; }
  .tiles > :nth-last-child(-n+2):nth-child(odd), .tiles > :last-child { border-bottom: 0; }
  .tile b { font-size: 1.45rem; }
  .tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bar-in, .foot-in, main { padding-left: 1rem; padding-right: 1rem; }
  .bar-in { padding-bottom: 0; }
  nav { margin-left: -.55rem; }
  nav a { padding: .35rem .55rem; font-size: .84rem; }
  main { padding-top: 1.4rem; }
  h2 { font-size: 1.2rem; margin-top: 2.2rem; }
  th, td { padding: .45rem .4rem; }
  table { font-size: .86rem; }
  table.rank th, table.rank td { padding: .42rem .3rem; }
  table.rank { font-size: .82rem; }
  th { letter-spacing: .03em; font-size: .66rem; white-space: normal; }
}
.swatch { display: inline-block; width: .8rem; height: .7rem; background: var(--c1); vertical-align: -1px; margin: 0 .1rem 0 .2rem; }
.swatch.med { background: var(--faint); height: .35rem; vertical-align: 1px; }

/* API pages: forms, code, pricing */
main.narrow { max-width: 760px; }
.form { display: grid; gap: .5rem; max-width: 30rem; margin: 1.2rem 0; }
.form label { font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.form label.check { font-weight: 400; display: flex; gap: .5rem; align-items: baseline; }
.form input[type=email], .form input[type=password], .form input[type=text] {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--paper); color: var(--ink); width: 100%;
}
.form input:focus { outline: 2px solid var(--c1); outline-offset: 0; border-color: var(--c1); }
.form .btn, form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
pre { background: var(--plot); color: var(--ink); padding: .8rem 1rem; border-radius: 2px; overflow-x: auto; font: .85rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
pre.key { font-size: 1rem; font-weight: 700; border-left: 4px solid var(--c3); user-select: all; white-space: pre-wrap; word-break: break-all; }
.note.error { border-left-color: var(--down); background: color-mix(in srgb, var(--down) 8%, var(--paper)); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.2rem 0; }
.plan { border: 1px solid var(--rule-2); border-top: 4px solid var(--c1); padding: 1rem 1.2rem; }
.plan.paid { border-top-color: var(--c3); }
.plan h3 { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.plan .price { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); margin: .2rem 0 .4rem; }
.plan .price small { font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: .4rem 0 1rem; padding-left: 1.1rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* cross tables: compact numeric matrices with letter/number column headers */
table.matrix { font-size: .82rem; }
table.matrix th.n, table.matrix td.n { padding-left: .35rem; padding-right: .35rem; }
table.matrix td:first-child { white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.kid { display: inline-block; min-width: 1.3em; font-weight: 700; color: var(--muted); font-size: .8em; }
table.legend td { padding-top: .25rem; padding-bottom: .25rem; }

/* home page: what's here */
.explore { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 1rem 0 2rem; }
.explore .card { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; background: var(--paper); color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.5; border-top: 3px solid var(--k, var(--c1)); }
.explore .card:nth-child(2) { --k: var(--c2); } .explore .card:nth-child(3) { --k: var(--c3); }
.explore .card:nth-child(4) { --k: var(--c4); } .explore .card:nth-child(5) { --k: var(--c5); }
.explore .card:nth-child(6) { --k: var(--c6); } .explore .card:nth-child(7) { --k: var(--c7); }
.explore .card:nth-child(8) { --k: var(--c8); } .explore .card:nth-child(9) { --k: var(--c9); }
.explore .card:hover { background: var(--hover); }
.explore .card b { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.explore .card em { font-style: normal; font-weight: 700; color: var(--link); margin-top: auto; padding-top: .3rem; }
.explore .tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.explore .card.new .tag { color: var(--c5); }
.explore .card.dark { background: var(--ink-2); color: #dfe6f2; }
.explore .card.dark b, .explore .card.dark em { color: #fff; }
.explore .card.dark .tag { color: #9fb0cc; }
.explore .card.dark:hover { background: var(--ink); }
@media (min-width: 1000px) {
  .explore { grid-template-columns: repeat(4, 1fr); }
  .explore .card.dark { grid-column: span 3; }
  .explore .card.dark.one { grid-column: auto; }
}

/* home page: how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 1rem 0 2rem; }
.steps > div { background: var(--paper); padding: 1rem 1.1rem; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.steps b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: .35rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.explore.topics .card:nth-child(8) { --k: var(--c8); }

/* second row of links inside a section (Заплати и труд) */
.subnav { background: rgba(255, 255, 255, .07); border-top: 1px solid rgba(255, 255, 255, .1); }
.subnav .bar-in { display: flex; flex-wrap: wrap; gap: 0; padding-top: 0; padding-bottom: 0; }
.subnav a { color: #c3cee0; text-decoration: none; font-size: .82rem; font-weight: 600; padding: .4rem .65rem; border-bottom: 2px solid transparent; }
.subnav a:first-child { padding-left: 0; color: #fff; }
.subnav a:hover { color: #fff; }
.subnav a.on { color: #fff; border-bottom-color: var(--c3); }
@media (max-width: 760px) { .subnav a { padding: .35rem .45rem; font-size: .78rem; } }

/* chart builder (konstruktor.html) and embedded charts (vgradi.html) */
.builder { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; margin-top: 1.5rem; align-items: start; }
.k-controls { position: sticky; top: .8rem; max-height: calc(100vh - 1.6rem); overflow-y: auto; padding-right: .3rem; }
.k-field { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .9rem; }
.k-field select, .k-field input, .k-field textarea, .k-dim select {
  display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; padding: .4rem .5rem;
  font: 400 .9rem/1.35 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0;
  background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; }
.k-field select:focus, .k-field input:focus, .k-field textarea:focus, .k-dim select:focus { outline: 2px solid var(--c1); outline-offset: 0; border-color: var(--c1); }
.k-dim { border: 0; border-top: 1px solid var(--rule); margin: 0 0 .9rem; padding: .5rem 0 0; min-width: 0; }
.k-dim legend { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 .4rem 0 0; }
.k-dim > label { display: block; font-size: .9rem; }
.k-cmp { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--link); margin-left: .3rem; font-size: .82rem; cursor: pointer; }
.k-find { width: 100%; box-sizing: border-box; margin: .3rem 0; padding: .3rem .5rem; font: .88rem var(--sans); border: 1px solid var(--rule-2); border-radius: 2px; }
.k-quick { margin: .1rem 0 .3rem; font-size: .8rem; color: var(--muted); }
.k-list { max-height: 15rem; overflow-y: auto; border: 1px solid var(--rule); padding: .3rem .5rem; background: #fff; }
.k-list label { display: block; font-size: .88rem; line-height: 1.35; padding: .15rem 0; cursor: pointer; }
.k-list label[hidden] { display: none; }
.k-period { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.builder [hidden] { display: none !important; }
.k-period:has(.k-field[hidden]) { grid-template-columns: 1fr; }
.k-chart { position: relative; min-height: 200px; }
.k-chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.k-tip { position: absolute; z-index: 2; pointer-events: none; background: #fff; border: 1px solid var(--rule-2); box-shadow: 0 2px 8px rgba(29, 44, 69, .14); padding: .4rem .6rem; font-size: .8rem; line-height: 1.4; max-width: 280px; }
.k-tip b { display: block; color: var(--ink); }
.k-tip span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-tip i { display: inline-block; width: 10px; height: 3px; margin-right: 5px; vertical-align: middle; }
.k-tip em { font-style: normal; font-weight: 700; color: var(--ink); }
.k-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.k-actions .btn, .k-copy .btn { cursor: pointer; font-family: var(--sans); }
.k-copy { display: flex; gap: .5rem; align-items: stretch; margin-top: .25rem; }
.k-copy input, .k-copy textarea { margin-top: 0 !important; font-family: ui-monospace, monospace !important; font-size: .8rem !important; }
.k-out h2 { margin-top: 1.6rem; }
body.embed { margin: 0; padding: 0; background: #fff; }
body.embed .k-chart { min-height: 120px; }
.embed-foot { margin: .2rem 8px 0; font-size: .78rem; }
@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .k-controls { position: static; max-height: none; overflow: visible; }
}
