:root {
    color-scheme: dark;
    --fb-bg: #070a0c;
    --fb-bg2: #0d1215;
    --fb-panel: #11181d;
    --fb-text: #f5f7f8;
    --fb-muted: #a4aeb4;
    --fb-accent: #f0b428;
    --fb-accent2: #ffd765;
    --fb-line: rgb(255 255 255 / 14%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fb-bg); color: var(--fb-text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover, summary:hover { color: var(--fb-accent2); }
:focus-visible { outline: 2px solid var(--fb-accent2); outline-offset: 4px; }
.fb-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.fb-header { border-bottom: 1px solid var(--fb-line); background: var(--fb-bg2); }
.fb-top, .fb-top nav, .fb-user, .page-title, .section-title, .license-top, .license-meta, .actions, .inline, .search, .pager {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.fb-top { min-height: 82px; justify-content: space-between; }
.fb-top nav { margin-inline-end: auto; gap: 24px; font-size: 13px; font-weight: 750; }
.fb-logo img { display: block; width: 165px; height: auto; max-width: 100%; }
.fb-user { color: var(--fb-muted); font-size: 13px; }
main { padding-block: 40px 64px; }
.page-title, .section-title, .license-top { justify-content: space-between; }
.page-title { margin-bottom: 26px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(35px, 6vw, 66px); font-weight: 680; }
h1 em { color: var(--fb-accent); font-style: normal; }
h2 { margin: 0 0 16px; font-size: 25px; }
h3 { margin: 0; font-size: 19px; }
p, ol { color: var(--fb-muted); }
.panel { min-width: 0; padding: clamp(17px, 3vw, 28px); border: 1px solid var(--fb-line); border-radius: 21px; background: var(--fb-panel); }
.cards { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; }
.result, .licenses, .advanced, .help .panel + .panel { margin-top: 18px; }
.result { margin: 0 0 18px; border-color: rgb(240 180 40 / 50%); }
.login-layout { min-height: calc(100svh - 83px); display: grid; grid-template-columns: 1fr minmax(300px, 440px); align-items: center; gap: 30px; }
.login-intro p { font-size: 20px; }
.stack, .fields { display: grid; gap: 13px; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; color: var(--fb-text); background: var(--fb-bg2); border: 1px solid var(--fb-line); border-radius: 9px; padding: 9px 11px; font: inherit; }
textarea, .code, .ref, pre { font-family: ui-monospace, Consolas, monospace; }
pre { overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fb-muted); }
input::placeholder { color: var(--fb-muted); }
button, .button { display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; min-height: 42px; padding: 8px 17px; border-radius: 999px; border: 1px solid transparent; color: #080a0b; background: var(--fb-accent); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
button:hover, .button:hover { color: #080a0b; background: var(--fb-accent2); }
.secondary { color: var(--fb-text); background: transparent; border-color: var(--fb-line); }
.secondary:hover { color: var(--fb-accent2); background: var(--fb-bg2); border-color: var(--fb-accent); }
.alert { color: #ffbbad; }
.section-title { margin-bottom: 12px; }
.section-title h2 { margin: 0; }
.search { flex-wrap: nowrap; }
.search input { min-width: 230px; }
.license { padding-block: 17px; border-top: 1px solid var(--fb-line); }
.license-top p { margin: 4px 0; overflow-wrap: anywhere; }
.license-meta { color: var(--fb-muted); font-size: 13px; gap: 10px; }
.state { padding: 2px 9px; border: 1px solid var(--fb-line); border-radius: 999px; }
.state.active { color: var(--fb-accent2); }
summary { cursor: pointer; font-weight: 750; }
.portfolio, .replace, .records { margin-top: 10px; }
.replace form, .advanced form { margin-block: 10px; }
.replace form { max-width: 580px; }
.inline { align-items: end; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.ref { font-size: 13px; overflow-wrap: anywhere; }
.help .panel { max-width: 940px; }
.help li { margin-bottom: 6px; }
#mfa-qr { width: max-content; max-width: 100%; padding: 23px; background: #fff; }
#mfa-qr img, #mfa-qr canvas { max-width: 100%; height: auto; }
@media (max-width: 760px) {
    .cards, .login-layout { grid-template-columns: 1fr; }
    .login-layout { min-height: auto; }
    .fb-wrap { width: calc(100% - 28px); }
    .fb-top { padding-block: 12px; }
    .fb-user span { display: none; }
    .search { width: 100%; }
    .search input { min-width: 0; }
}
@media (max-width: 380px) {
    .fields { grid-template-columns: 1fr; }
    .fb-logo img { width: 128px; }
}
