@font-face { font-family: Manrope; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --blue: #0054A8; --blue-bright: #1E9BFF; --sky: #85CFFA; --blue-soft: #E8F2FC;
  --navy: #10233E; --ink: #1C2633; --muted: #5F6E80; --faint: #8C99A8;
  --bg: #F1F2F4; --card: #FFFFFF; --line: #E2E6EB; --line-strong: #CBD2DA;
  --ok: #1B7F4B; --ok-bg: #E4F4EA; --warn: #9A5B00; --warn-bg: #FFF1CF; --bad: #B3261E; --bad-bg: #FCE8E6;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 35, 62, .05), 0 6px 20px rgba(16, 35, 62, .06);
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 24px;
  background: #fff; border-bottom: 1px solid var(--line); }
.brand img { height: 38px; display: block; }
.product { display: flex; flex-direction: column; line-height: 1.2; padding-left: 20px; border-left: 1px solid var(--line); }
.product .kicker { font-size: 9.5px; letter-spacing: .16em; color: var(--muted); }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--navy); white-space: nowrap; line-height: 1.15; }
.wordmark span { color: var(--blue); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.org { font-size: 13px; color: var(--muted); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.engine { font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px;
  background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.engine::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1FB76A; }
.engine.replay { background: #EEF0F3; color: var(--muted); }
.engine.replay::before { background: var(--faint); }
.btn { white-space: nowrap; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; background: var(--blue); color: #fff; transition: background .15s; }
.btn:hover { background: #00478f; }
.btn.ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }

.steps { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 0; }
.steps li { display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 9px; border-radius: 99px; font-size: 13.5px; font-weight: 700;
  color: var(--faint); background: #F4F5F7; transition: all .25s; }
.steps li .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.steps li small { font: 500 11.5px/1 var(--mono); color: inherit; opacity: .85; white-space: nowrap; }
.steps li { white-space: nowrap; }
.steps li.active { background: var(--blue-soft); color: var(--blue); }
.steps li.active .dot { box-shadow: none; border: 2.5px solid var(--sky); border-top-color: var(--blue); animation: spin .8s linear infinite; }
.steps li.done { background: var(--blue); color: #fff; }
.steps li.done .dot { background: #fff; color: var(--blue); box-shadow: none; }
.steps .arrow { color: var(--sky); font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- home ---- */
.home { max-width: 1240px; margin: 0 auto; padding: 44px 32px 56px; display: flex; flex-direction: column; gap: 48px;
  background-image: radial-gradient(rgba(0, 84, 168, .11) 1px, transparent 1px); background-size: 22px 22px; background-position: 0 0; }
.hero { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; color: var(--navy); margin: 12px 0 16px; text-wrap: balance; }
.hero h1 em, h2 em { font-style: normal; color: var(--blue); }
.lead { font-size: 17px; color: var(--muted); max-width: 640px; }
.hero-mascot { width: 380px; filter: drop-shadow(0 18px 28px rgba(0, 84, 168, .18)); }
.drop { margin-top: 26px; display: flex; align-items: center; gap: 18px; padding: 22px 24px; max-width: 640px; cursor: pointer;
  background: #fff; border: 2px dashed var(--sky); border-radius: var(--radius); transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop small { color: var(--muted); font-weight: 500; }
.drop-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.error { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 600; max-width: 640px; }
h2 { font-size: 26px; letter-spacing: -.02em; font-weight: 800; color: var(--navy); margin: 6px 0 18px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pack { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pack h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.pack p { font-size: 13.5px; color: var(--muted); flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: #F1F3F6; color: var(--muted); text-transform: uppercase; }
.chip.pdf { background: #FDECEA; color: #A2362C; } .chip.jpg, .chip.png { background: #E8F2FC; color: var(--blue); }
.pack-actions { display: flex; gap: 8px; align-items: center; }
.flow { display: flex; align-items: stretch; gap: 12px; }
.flow i { align-self: center; font-style: normal; font-weight: 800; font-size: 22px; color: var(--blue-bright); }
.flow-card { flex: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.flow-card b { font-size: 18px; font-weight: 800; color: var(--navy); }
.flow-card span { font-size: 13.5px; color: var(--muted); }
.flow-card.accent { background: var(--blue); } .flow-card.accent b { color: #fff; } .flow-card.accent span { color: #D5E6F7; }
.fine { font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---- workspace ---- */
.work { display: grid; grid-template-columns: 300px minmax(380px, 1fr) minmax(520px, 44%); gap: 16px; height: calc(100vh - 64px); padding: 16px; }
.work > * { min-height: 0; overflow: auto; border-radius: var(--radius); }
.list { display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.list-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; }
.list-head img { width: 62px; height: 62px; object-fit: contain; }
.list-head b { display: block; font-weight: 800; color: var(--navy); line-height: 1.25; }
.list-head small { color: var(--muted); font-size: 12.5px; }
.doc-card { width: 100%; text-align: left; display: flex; gap: 12px; padding: 10px; background: #fff; border: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.doc-card.fresh { animation: rise .4s ease both; }
.doc-card:hover { box-shadow: inset 0 0 0 1.5px var(--sky); }
.doc-card.sel { box-shadow: inset 0 0 0 2px var(--blue), var(--shadow); }
.doc-card .thumb { width: 54px; height: 72px; flex: none; border-radius: 6px; overflow: hidden; background: #E9ECF0; box-shadow: 0 0 0 1px var(--line); position: relative; }
.doc-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doc-card .thumb .pp { position: absolute; right: 2px; bottom: 2px; font: 700 10px/1 var(--mono); background: var(--navy); color: #fff; padding: 2px 4px; border-radius: 4px; }
.doc-card .meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.doc-card .id { font: 700 10.5px/1 var(--mono); color: var(--faint); letter-spacing: .05em; }
.doc-card b { font-size: 13.5px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.doc-card small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-card .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; margin-top: 3px; }
.doc-card .amt { font-weight: 800; font-size: 13px; }
.summary-card { align-items: center; }
.summary-card small { display: block; font-size: 12px; color: var(--muted); white-space: normal; }
.summary-card:disabled { opacity: .6; cursor: default; }
.sum-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap;
  background: #EEF0F3; color: var(--muted); }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.busy::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--sky); border-top-color: var(--blue); animation: spin .8s linear infinite; }

.viewer { background: #DDE1E6; display: flex; flex-direction: column; }
.viewer-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); font-size: 13px; }
.viewer-bar b { font-weight: 800; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-bar .sp { flex: 1; }
.pages { padding: 18px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.sheet { position: relative; width: 100%; max-width: 860px; background: #fff; box-shadow: 0 4px 22px rgba(16, 35, 62, .2); border-radius: 3px; overflow: hidden; }
.sheet img { display: block; width: 100%; }
.sheet.scanning::after { content: ""; position: absolute; left: 0; right: 0; height: 90px; top: -90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(30, 155, 255, .28) 85%, var(--blue-bright)); animation: scan 1.9s linear infinite; }
@keyframes scan { to { top: 100%; } }

.panel { display: flex; flex-direction: column; gap: 12px; padding-right: 2px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.card.fresh { animation: rise .4s ease both; }
.card > header { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px 10px; }
.card > header h3 { font-size: 16px; font-weight: 800; color: var(--navy); }
.card > header .n { font: 700 12px/1 var(--mono); color: var(--blue); }
.card > header .src { margin-left: auto; font-size: 12px; color: var(--faint); text-align: right; }
.card .body { padding: 0 18px 16px; }
.title-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.title-card h2 { font-size: 21px; margin: 0; line-height: 1.2; }
.title-card .line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verdict { font-size: 14px; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 5px 12px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 700; color: var(--ink); }
dl.kv dd small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
table.t th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  padding: 7px 8px; background: #F4F5F7; }
table.t th:first-child { border-radius: 8px 0 0 8px; } table.t th:last-child { border-radius: 0 8px 8px 0; }
table.t td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
table.t td small { display: block; color: var(--muted); font-size: 12px; }
table.t tfoot td { font-weight: 800; border-bottom: 0; padding: 4px 8px; }
.acct { font: 700 14px/1.2 var(--mono); color: var(--blue); }
.checks { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13.5px; align-items: start; }
.check .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--ok-bg); color: var(--ok); }
.check.fail .ic { background: var(--bad-bg); color: var(--bad); } .check.warn .ic { background: var(--warn-bg); color: var(--warn); }
.check small { color: var(--muted); } .check.fail small { color: var(--bad); font-weight: 600; } .check.warn small { color: var(--warn); font-weight: 600; }
.note { margin-top: 12px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; background: var(--warn-bg); color: #5E3A00; }
.note.bad { background: var(--bad-bg); color: #7A1B15; } .note.info { background: var(--blue-soft); color: #0B3C73; }
.note b { font-weight: 800; }
.rows { display: flex; flex-direction: column; }
.rowi { display: grid; grid-template-columns: 148px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.rowi:last-child { border-bottom: 0; padding-bottom: 0; }
.rowi .l { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.rowi .l b { font-weight: 800; color: var(--navy); }
.rowi p { color: var(--ink); }
.norm { display: inline-block; margin-top: 4px; font: 600 11.5px/1.3 var(--mono); color: var(--muted); background: #F1F3F6; padding: 3px 7px; border-radius: 6px; }
.link { color: var(--blue); font-weight: 800; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
ol.next { margin: 0; padding-left: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 5px; }
.skel { height: 14px; border-radius: 7px; margin: 9px 0; background: linear-gradient(90deg, #EEF0F3 25%, #F8F9FA 50%, #EEF0F3 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.waiting { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding-bottom: 4px; }

/* ---- summary ---- */
.work.summary { grid-template-columns: 300px 1fr; }
.work.summary .viewer { display: none; }
.sum-hero { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.sum-hero img { width: 108px; }
.sum-hero h2 { margin: 2px 0 4px; }
.sum-hero p { color: var(--muted); }
.sum-hero .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; }
.tile small { display: block; font-size: 12.5px; color: var(--muted); }
.tile b { display: block; font-size: 25px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.25; }
.tile.warn b { color: var(--warn); } .tile.blue b { color: var(--blue); }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; align-items: start; }
.docchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.docchip { font: 700 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); border: 0; }
.docchip:hover { background: var(--sky); }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(7, 32, 59, .55); display: grid; place-items: center; padding: 32px; }
.modal-box { background: #fff; border-radius: var(--radius); width: min(900px, 100%); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-box header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-box #modalBody { padding: 16px 18px; overflow: auto; }
pre.json { margin: 12px 0 0; padding: 14px; border-radius: 10px; background: var(--navy); color: #D9E8F7; font: 12.5px/1.5 var(--mono); overflow: auto; max-height: 52vh; white-space: pre-wrap; }
.fatal { margin: auto; max-width: 560px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 24px; }
.fatal img { width: 200px; }

@media (max-width: 1640px) { .org { display: none; } .steps li { padding-right: 11px; } }
@media (max-width: 1280px) {
  .work { grid-template-columns: 250px minmax(300px, 1fr) minmax(460px, 46%); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .org { display: none; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; } .hero-mascot { display: none; } .packs { grid-template-columns: 1fr; }
  .flow { flex-direction: column; } .flow i { transform: rotate(90deg); }
  .work, .work.summary { grid-template-columns: 1fr; height: auto; } .steps small { display: none; } .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

details.more { margin-top: 8px; font-size: 13.5px; } details.more summary { cursor: pointer; color: var(--blue); font-weight: 700; } details.more dl { margin-top: 8px; }

h4.sub { margin: 16px 0 0; font-size: 13.5px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
table.t tr.pend td { background: #FFFBF0; }
table.t tr.pend .acct { color: var(--warn); }
.wait { display: block; margin-top: 4px; font-size: 12.5px; color: var(--warn); }
.reason { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.opts { margin-top: 4px; }
.opt { margin-top: 8px; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.opt.on { box-shadow: inset 0 0 0 1.5px var(--ok); background: #F6FBF8; }
.opt-head { display: flex; align-items: center; gap: 8px; }
.opt-head b { font-weight: 800; color: var(--navy); }
.opt code { display: block; margin: 6px 0 4px; font: 600 12.5px/1.45 var(--mono); color: var(--blue); }
.opt p { color: var(--muted); }
.tile small + b + small { margin-top: 2px; }

.steps li.stopped { background: var(--bad-bg); color: var(--bad); }
.steps li.stopped .dot { box-shadow: none; background: #fff; color: var(--bad); }

.check.note .ic { background: var(--blue-soft); color: var(--blue); } .check.note small { color: var(--muted); }

.summary-card.ready { box-shadow: inset 0 0 0 2px var(--blue-bright); animation: ready 1.6s ease-in-out 3; }
.summary-card.ready .sum-icon { background: var(--blue-bright); }
@keyframes ready { 50% { box-shadow: inset 0 0 0 2px var(--blue-bright), 0 0 0 6px rgba(30, 155, 255, .22); } }

button.tile { font: inherit; color: inherit; text-align: left; border: 0; cursor: pointer; transition: box-shadow .15s, transform .15s; }
button.tile:hover { box-shadow: inset 0 0 0 1.5px var(--blue-bright), var(--shadow); transform: translateY(-1px); }
button.tile::after { content: "докладніше →"; display: block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--blue); opacity: 0; transition: opacity .15s; }
button.tile:hover::after, button.tile:focus-visible::after { opacity: 1; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--blue-soft); }
.card.flash { animation: flash 1.2s ease; }
@keyframes flash { 30% { box-shadow: inset 0 0 0 2px var(--blue-bright), 0 0 0 6px rgba(30, 155, 255, .2); } }

.user { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.user a { color: var(--blue); font-weight: 700; }
@media (max-width: 1640px) { .user #userName { display: none; } }

.rowi.click { cursor: pointer; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.rowi.click:hover { background: var(--blue-soft); }

/* A strip of the page's own colour, so nothing scrolls into view behind the button. */
.backbar { position: sticky; top: 0; z-index: 3; flex: none; background: var(--bg); padding: 2px 0 10px; margin-bottom: -12px; }
.back { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 38px;
  padding: 0 18px; border: 0; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1;
  box-shadow: 0 3px 10px rgba(16, 35, 62, .22); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back:hover { background: var(--blue); }
.back span { font-size: 16px; line-height: 1; }

.panel .card { scroll-margin-top: 54px; }

/* The product's own name stands out wherever the page speaks about itself. */
.product-name { font-weight: 800; color: var(--blue); }
.lead .product-name { background: linear-gradient(transparent 62%, var(--sky) 62%); padding: 0 2px; }

/* the way back: one step, or the whole trail */
.backbar { display: flex; align-items: flex-start; gap: 8px; }
.trail-btn { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 99px; background: #fff; color: var(--navy); font-weight: 700; font-size: 13px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); white-space: nowrap; }
.trail-btn:hover, .trail-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.trail { position: absolute; top: 46px; left: 0; z-index: 5; width: min(440px, 100%); background: #fff; border-radius: var(--radius); padding: 14px 14px 10px;
  box-shadow: 0 12px 34px rgba(16, 35, 62, .22), inset 0 0 0 1px var(--line); animation: rise .18s ease both; }
.trail .kicker { font-size: 10.5px; margin-bottom: 8px; padding-left: 4px; }
.trail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.trail ol::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.trail li, .trail li button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; position: relative; }
.trail li.here { padding: 7px 6px; }
.trail li button { border: 0; background: none; padding: 7px 6px; border-radius: 10px; }
.trail li button:hover { background: var(--blue-soft); }
.trail .mark { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 10.5px/1 var(--mono);
  background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--sky); position: relative; z-index: 1; }
.trail .mark.sum { font: 800 15px/1 Manrope, sans-serif; }
.trail li.here .mark { background: var(--blue); color: #fff; box-shadow: none; }
.trail b { display: block; font-size: 13.5px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.trail small { font-size: 12px; color: var(--muted); }
.trail li.here small { color: var(--blue); font-weight: 700; }
