@font-face {
    font-family: "Open Sans";
    src: url("/assets/fonts/opensans/opensans-latin-variable.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --page: #101921;
    --shell: #131f28;
    --panel: #182630;
    --surface: #1d2c37;
    --line: #3e5261;
    --text: #f3f6f8;
    --muted: #b7c7d2;
    --accent: #ffda30;
    --link: #ffe06a;
    --pink: #ed5683;
    --green: #91e9b3;
    --font: "Open Sans", system-ui, sans-serif;
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 1rem/1.6 var(--font); }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
p { margin: 0; color: var(--muted); }
h1, h2, h3, h4, ul, ol, dl { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; overflow-wrap: break-word; }
code { font: .9em/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.wrap { width: min(100% - clamp(28px, 7vw, 100px), 1250px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 12px; padding: 10px 15px; transform: translateY(-150%); color: #161a20; background: var(--accent); border-radius: 8px; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { transform: none; }

.site-bar { background: #111b23; border-bottom: 1px solid #30424e; }
.bar-inner, .foot-inner { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; object-fit: contain; }
.site-links, .foot-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 3vw, 30px); }
.site-links a, .site-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .91rem; font-weight: 600; text-decoration: none; }
.site-links a:hover, .site-foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.button, .text-button, .inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
}
.button { padding: 10px 16px; }
.button-primary { color: #161d22; background: var(--accent); }
.button-primary:hover { background: #ffe676; }
.button-outline { color: var(--text); background: var(--panel); border-color: var(--line); }
.button-outline:hover { border-color: var(--muted); background: var(--surface); }
.button:disabled { opacity: .55; cursor: default; }
.text-button, .inline-link { justify-content: flex-start; padding: 5px 0; border: 0; background: transparent; color: var(--link); text-align: start; }
.text-button:hover, .inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.introduction { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: clamp(28px, 6vw, 69px) 0 clamp(25px, 4vw, 43px); }
.introduction h1 { font-size: clamp(2rem, 4.5vw, 3.55rem); font-weight: 800; letter-spacing: -.048em; }
.introduction p { max-width: 650px; margin-top: 10px; font-size: clamp(.96rem, 2vw, 1.12rem); }
.introduction > .button { flex: 0 0 auto; margin-bottom: 2px; }

.workspace { display: grid; grid-template-columns: 216px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--shell); box-shadow: 0 20px 55px #080d1455; }
.workspace-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 22px 15px; border-right: 1px solid var(--line); border-radius: 19px 0 0 19px; background: #14202a; }
.workspace-label { display: flex; align-items: center; gap: 10px; padding-inline: 3px; }
.workspace-label strong { display: block; font-size: .87rem; line-height: 1.35; }
.workspace-label div > span, .workspace-tip { color: var(--muted); font-size: .77rem; }
.workspace-mark { display: grid; min-width: 34px; height: 34px; place-items: center; border-radius: 8px; background: var(--pink); color: #17202a; font-size: 1.15rem; font-weight: 800; }
.workspace-nav { display: grid; gap: 4px; }
.workspace-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 11px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-weight: 650; font-size: .87rem; text-decoration: none; }
.workspace-nav a:hover { background: var(--panel); color: var(--text); }
.workspace-nav a[aria-current="location"] { background: #292b25; border-color: #675a2b; color: var(--link); }
.workspace-tip { margin-top: auto; padding: 11px 9px 0; border-top: 1px solid var(--line); }
.workspace-main { min-width: 0; padding: clamp(14px, 3.1vw, 32px); }
.workspace-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #344957; }
.workspace-top .text-button { padding-inline: 5px; font-size: .81rem; }
.demo-state, .status { display: inline-flex; align-items: center; gap: 7px; border-radius: 7px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.demo-state { color: var(--muted); font-size: .81rem; }
.demo-state > span, .status::before, .timeline-mark { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.demo-state > span { color: var(--pink); }
.view { min-width: 0; padding-top: 18px; }
.view + .view { margin-top: 20px; border-top: 1px dashed var(--line); }
.view-head { margin-bottom: 19px; }
.view-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.03em; }
.view-head p { margin-top: 4px; font-size: .92rem; }
.view-with-filter { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px 15px; }
.sample-select { display: grid; gap: 4px; min-width: min(100%, 200px); color: var(--muted); font-size: .8rem; }
.sample-select select { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--panel); color: var(--text); font-size: .87rem; }
.services, .overview-row, .tool-grid { display: grid; align-items: stretch; gap: 13px; }
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.overview-row, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service, .card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.service { display: flex; flex-direction: column; padding: 15px; text-decoration: none; }
.service:hover { border-color: var(--accent); background: var(--surface); }
.service-kind { color: var(--muted); font-size: .82rem; }
.service strong { margin: 4px 0 9px; font-size: clamp(1.05rem, 2vw, 1.4rem); }
.service-link { margin-top: auto; color: var(--link); font-size: .78rem; font-weight: 650; }
.card { padding: clamp(14px, 2.2vw, 21px); }
.view > .card + .card, .view > .card + .overview-row { margin-top: 13px; }
.view > .inline-link { margin-top: 8px; }
.card h3 { color: var(--text); font-size: 1rem; }
.card p { margin-top: 5px; font-size: .87rem; }
.card-heading, .record { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.record { align-items: center; margin-top: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.record:last-child { border: 0; }
.record > div { min-width: 0; overflow-wrap: anywhere; }
.record strong, .record small { display: block; }
.record strong { font-size: .87rem; }
.record small { color: var(--muted); font-size: .76rem; }
.status { padding: 4px 8px; background: #1b3b32; color: var(--green); font-size: .72rem; }
.status::before { content: ""; }
.status-pending, .status-stopped { background: #3e3424; color: #ffe2a0; }
.timeline, .data-list { list-style: none; padding: 0; }
.timeline { margin-top: 11px; margin-bottom: 5px; }
.timeline li { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; font-size: .88rem; color: var(--muted); }
.timeline-mark { color: #8caabe; }
.data-list { margin-top: 8px; }
.data-list li { padding: 4px 0; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.details { display: grid; gap: 10px; margin: 14px 0 7px; }
.details-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); }
.details > div { min-width: 0; padding: 9px 10px; border-radius: 7px; background: #14212b; }
.details dt { color: var(--muted); font-size: .76rem; }
.details dd { margin: 2px 0 0; font-size: .88rem; font-weight: 650; overflow-wrap: anywhere; }
.metric { color: var(--link); font-size: 1.4rem; }
.chart { display: flex; align-items: end; gap: clamp(3px, 1vw, 11px); height: 100px; margin-top: 12px; padding: 0 4px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 24px, #46607049 24px 25px); }
.chart i { flex: 1; height: var(--bar); min-height: 2px; border-radius: 4px 4px 0 0; background: #ea7092; }
.chart i:last-child { background: var(--accent); }
.chart[data-offline] i { height: 2px; background: #82939f; }
.axis { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: .74rem; }
.tool-grid { margin-top: 16px; }
.tool { min-width: 0; padding: 12px; border-radius: 8px; background: var(--surface); }
.tool h4 { font-size: .92rem; }
.tool .text-button { min-height: 44px; font-size: .82rem; }
.announcement:not(:empty) { margin-top: 16px; padding: 10px 12px; border: 1px solid #547e68; border-radius: 8px; background: #213529; color: #a6edbf; font-size: .88rem; }
.below { max-width: 810px; padding-block: 28px 32px; }
.below h2 { margin-bottom: 6px; font-size: 1.25rem; }
.below p { font-size: .94rem; }
.site-foot { border-top: 1px solid #354955; }

dialog {
    width: min(100% - 32px, 470px);
    max-height: min(90dvh, 640px);
    padding: 0;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
    color: var(--text);
}
dialog::backdrop { background: #070a10bb; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 17px 11px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.18rem; }
.icon-button { flex: 0 0 44px; padding: 0; color: var(--text); background: transparent; font-size: 1.6rem; }
.icon-button:hover { border-color: var(--line); }
#dialog-form { padding: 15px 17px 18px; }
#dialog-fields { display: grid; gap: 12px; }
#dialog-fields label { display: grid; gap: 3px; color: var(--text); font-size: .88rem; }
#dialog-fields label small { color: var(--muted); }
#dialog-fields input { min-height: 44px; min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid #6d8597; border-radius: 8px; background: #13202a; color: var(--text); }
#dialog-fields pre { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #101923; color: var(--green); font: .86rem/1.6 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
#dialog-fields ul, #dialog-fields ol { padding-inline-start: 22px; }
.dialog-actions { justify-content: flex-end; margin-top: 18px; }

@media (max-width: 969px) {
    .workspace { grid-template-columns: 173px minmax(0, 1fr); }
    .workspace-side { padding-inline: 11px; }
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .site-links { display: none; }
    .bar-inner { min-height: 60px; }
    .introduction { flex-direction: column; align-items: start; gap: 15px; }
    .workspace { grid-template-columns: minmax(0, 1fr); }
    .workspace-side { padding: 13px 13px 10px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 19px 19px 0 0; }
    .workspace-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .workspace-nav a { justify-content: center; padding: 6px 3px; line-height: 1.3; text-align: center; }
    .workspace-tip { display: none; }
}
@media (max-width: 460px) {
    .overview-row, .tool-grid { grid-template-columns: minmax(0, 1fr); }
    .service { padding: 11px; }
    .workspace-nav a { font-size: .79rem; }
    .record strong { font-size: .81rem; }
    .details-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-inner, .foot-inner nav { gap: 12px; }
}
