/* sylo — the suite's look (root.css): #0A0C0F ground, #DFE3E4 headings,
   #9FA3A4 body, #2E9ACD for active items. Fonts are root's self-hosted OFL
   files (fonts/ links to root/fonts). */
@font-face { font-family: "Paper Mono"; src: url("../../fonts/PaperMono-Variable.v1.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/Inter-cyrillic-ext.v20.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/Inter-cyrillic.v20.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/Inter-greek-ext.v20.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/Inter-greek.v20.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/Inter-vietnamese.v20.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/Inter-latin-ext.v20.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/Inter-latin.v20.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../../fonts/Sora-latin-ext.v17.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../../fonts/Sora-latin.v17.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: dark;
  --c-900: #DFE3E4; --c-700: #C2C6C7; --c-500: #9FA3A4; --c-300: #6E7375;
  --c-200: #2A3036; --c-100: #1D2228; --c-50: #14181D; --c-near: #0A0C0F;
  --surface: #101418; --surface-2: #14191E; --text-strong: #FFFFFF;
  --c-accent: #2E9ACD; --c-accent-light: #4FB0DD; --c-accent-bg: rgba(46, 154, 205, .10);
  --c-success: #4ADE80; --c-warn: #FBBF24; --c-error: #F87171;
  --c-success-bg: rgba(74, 222, 128, .12); --c-warn-bg: rgba(251, 191, 36, .12); --c-error-bg: rgba(248, 113, 113, .12);
  --f-sans: "Inter", system-ui, -apple-system, sans-serif;
  --f-display: "Objektiv Mk1", "Sora", "Inter", system-ui, sans-serif;
  --f-mono: "Paper Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --space-xs: .5rem; --space-sm: 1rem; --space-md: 2rem; --space-lg: 4rem;
  --radius: 8px; --radius-lg: 12px; --nav-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale }
body { background: var(--c-near); color: var(--c-500); font-family: var(--f-sans); line-height: 1.6; font-size: .9375rem; min-height: 100vh; display: flex; flex-direction: column }
a { color: inherit; text-decoration: none; transition: color .2s }
a:hover { color: var(--c-accent) }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px }
.mono { font-family: var(--f-mono); font-size: .92em }
.skip { position: absolute; left: -9999px; top: 0 }
.skip:focus { left: 1rem; top: .5rem; z-index: 100; background: var(--surface); padding: .4rem .8rem; border-radius: 6px }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--c-100) 1px, transparent 1px), linear-gradient(90deg, var(--c-100) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 80%); opacity: .35 }

/* ── header ── */
.nav { position: sticky; top: 0; z-index: 50; min-height: var(--nav-h); border-bottom: 1px solid var(--c-100); background: rgba(10, 12, 15, .86); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px) }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); min-height: var(--nav-h); display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap }
.brand-wrap { position: relative }
.brand-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: 4px 8px; border-radius: 6px; border: 0; background: none; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -.015em; color: var(--c-900); white-space: nowrap }
.brand-toggle:hover { background: var(--c-50) }
.brand-mark { width: 22px; height: 22px; display: block; border-radius: 50% }
.bt-page { color: var(--c-900); font-weight: 600 }
.caret { display: inline-flex; color: var(--c-300); transition: transform .2s }
.brand-toggle[aria-expanded="true"] .caret { transform: rotate(180deg) }
.brand-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; background: var(--surface); border: 1px solid var(--c-100); border-radius: 8px; padding: 6px; min-width: 280px; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 2px; max-height: calc(100dvh - var(--nav-h) - 12px); overflow-y: auto; overscroll-behavior: contain }
.bm-item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name current" "host host" "desc desc"; gap: 2px 8px; padding: 8px 10px; border-radius: 6px; color: var(--c-900) }
a.bm-item:hover { background: var(--c-50); color: var(--c-900) }
.bm-item.current { background: var(--c-accent-bg) }
.bm-item.current .bm-name { color: var(--c-accent) }
.bm-name { grid-area: name; font-family: var(--f-display); font-weight: 700; font-size: .9rem }
.bm-host { grid-area: host; font-family: var(--f-mono); font-size: .72rem; color: var(--c-500) }
.bm-desc { grid-area: desc; font-size: .8rem; color: var(--c-700) }
.bm-current { grid-area: current; font-size: .75rem; color: var(--c-accent); align-self: center; font-weight: 600 }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap }
.site-nav a { padding: .35rem .7rem; border-radius: 6px; font-size: .875rem; color: var(--c-500) }
.site-nav a:hover { color: var(--c-900); background: var(--c-50) }
.site-nav a[aria-current="page"] { color: var(--c-accent); background: var(--c-accent-bg) }
.net { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--c-500); margin-left: auto; white-space: nowrap }
.net-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-warn) }
.net-dot[data-state="live"] { background: var(--c-success) }
.net-dot[data-state="down"] { background: var(--c-error) }
.wallet { display: flex; align-items: center; gap: .5rem }
.addr { font-family: var(--f-mono); font-size: .82rem; background: var(--surface-2); border: 1px solid var(--c-200); border-radius: 6px; padding: 2px 8px; color: var(--c-900); white-space: nowrap }

/* ── buttons and fields ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1.15rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: all .2s; background: none; color: var(--c-900); white-space: nowrap }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default }
.btn.waiting { opacity: 1; cursor: progress }
.btn-primary { background: var(--c-900); color: var(--c-near) }
.btn-primary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--text-strong) }
.btn-outline { border-color: var(--c-200); background: transparent }
.btn-outline:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--c-500) }
.btn-ghost { color: var(--c-500) }
.btn-ghost:hover:not(:disabled) { color: var(--c-900); background: var(--c-50) }
.btn-danger { border-color: rgba(248, 113, 113, .4); color: var(--c-error) }
.btn-danger:hover:not(:disabled) { background: var(--c-error-bg) }
.btn-sm { padding: .35rem .75rem; font-size: .8125rem }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem }
.btn img { border-radius: 4px }
.field { display: grid; gap: .3rem }
.field > span { font-size: .8125rem; color: var(--c-700); font-weight: 500 }
.field small, .hint { font-size: .78rem; color: var(--c-500) }
input[type="text"], input[type="search"], input[type="datetime-local"], input[type="number"], select, textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--c-200); border-radius: 6px; padding: .5rem .65rem; color: var(--c-900); font-size: .875rem }
textarea { font-family: var(--f-mono); font-size: .8rem; min-height: 8rem; resize: vertical }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-accent) }
input[aria-invalid="true"] { border-color: var(--c-error) }
.check { display: inline-flex; gap: .5rem; align-items: flex-start; font-size: .875rem; color: var(--c-700); cursor: pointer }
.check input { margin-top: .3rem }
.form-grid { display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center }
.problems { display: grid; gap: .25rem; font-size: .8125rem; color: var(--c-error); list-style: none }
.warnings { display: grid; gap: .25rem; font-size: .8125rem; color: var(--c-warn); list-style: none }

/* ── layout ── */
main { flex: 1; padding-bottom: var(--space-lg) }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); width: 100% }
.hero { padding: var(--space-lg) 0 var(--space-md) }
h1, h2, h3 { font-family: var(--f-display); color: var(--c-900); font-weight: 600 }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.9px }
h2 { font-size: 1.35rem; letter-spacing: -.4px }
h3 { font-size: 1.05rem }
.lead { margin-top: var(--space-sm); max-width: 66ch; font-size: 1.05rem; line-height: 1.65 }
.section { padding: var(--space-md) 0 0 }
.section-head { display: flex; align-items: baseline; gap: var(--space-sm); margin-bottom: var(--space-sm); flex-wrap: wrap }
.section-head .num { font-family: var(--f-mono); font-size: .8rem; color: var(--c-accent); font-weight: 600 }
.section-head .aside { margin-left: auto }
.panel { background: var(--surface); border: 1px solid var(--c-100); border-radius: var(--radius-lg); padding: var(--space-md); display: grid; gap: var(--space-sm) }
.panel + .panel { margin-top: var(--space-sm) }
.muted { color: var(--c-500) }
.fine { font-size: .8125rem; color: var(--c-500) }
.error-text { color: var(--c-error) }
.ok-text { color: var(--c-success) }
.inline-link { color: var(--c-900); text-decoration: underline; text-decoration-color: var(--c-300); text-underline-offset: 2px }
.inline-link:hover { color: var(--c-accent); text-decoration-color: currentColor }
.noscript { padding: var(--space-md) 0 }
.empty { padding: var(--space-md); text-align: center; color: var(--c-500); border: 1px dashed var(--c-200); border-radius: var(--radius-lg) }

/* ── drop zone ── */
.drop { border: 1px dashed var(--c-200); border-radius: var(--radius-lg); padding: var(--space-md); text-align: center; display: grid; gap: .5rem; justify-items: center; cursor: pointer; transition: border-color .2s, background .2s }
.drop:hover, .drop.over { border-color: var(--c-accent); background: var(--c-accent-bg) }
.drop strong { color: var(--c-900); font-weight: 600 }
.progress { width: 100%; height: 4px; background: var(--c-100); border-radius: 2px; overflow: hidden }
.progress > i { display: block; height: 100%; background: var(--c-accent); width: 0 }

/* ── records and rows ── */
.list { display: grid; gap: .5rem }
.row { background: var(--surface); border: 1px solid var(--c-100); border-radius: var(--radius); padding: .85rem 1rem; display: grid; gap: .45rem }
.row-head { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap }
.row-title { color: var(--c-900); font-weight: 600; word-break: break-all }
.row-meta { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--c-500) }
.row details summary { cursor: pointer; font-size: .8125rem; color: var(--c-700) }
.row details[open] summary { margin-bottom: .5rem }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: 1px 8px; border-radius: 999px; font-size: .72rem; border: 1px solid var(--c-200); color: var(--c-700); white-space: nowrap }
.chip.ok { border-color: rgba(74, 222, 128, .35); color: var(--c-success) }
.chip.warn { border-color: rgba(251, 191, 36, .35); color: var(--c-warn) }
.chip.bad { border-color: rgba(248, 113, 113, .35); color: var(--c-error) }
.chip.accent { border-color: rgba(46, 154, 205, .4); color: var(--c-accent) }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; font-size: .8125rem }
.kv dt { color: var(--c-500) }
.kv dd { color: var(--c-900); word-break: break-all }
table.versions { width: 100%; border-collapse: collapse; font-size: .8rem }
table.versions th, table.versions td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--c-100) }
table.versions th { color: var(--c-500); font-weight: 500 }
table.versions td { color: var(--c-700) }
.copy { border: 0; background: none; color: var(--c-500); cursor: pointer; font-size: .75rem; padding: 0 .25rem }
.copy:hover { color: var(--c-accent) }
.result { border-radius: var(--radius); padding: var(--space-sm); display: grid; gap: .35rem }
.result.ok { background: var(--c-success-bg); border: 1px solid rgba(74, 222, 128, .3) }
.result.bad { background: var(--c-error-bg); border: 1px solid rgba(248, 113, 113, .3) }
.result.warn { background: var(--c-warn-bg); border: 1px solid rgba(251, 191, 36, .3) }
.result strong { color: var(--c-900) }
.calls { display: grid; gap: .25rem; max-height: 18rem; overflow-y: auto; padding: .5rem; border: 1px solid var(--c-100); border-radius: 6px; background: var(--surface-2) }
.calls .group { font-size: .75rem; color: var(--c-300); margin-top: .35rem; text-transform: uppercase; letter-spacing: .06em }
.calls .check { display: flex; font-size: .8rem; padding: .1rem 0 }
.calls details { margin-top: .5rem }
.calls details summary { cursor: pointer; font-size: .8125rem }

/* ── signing ── */
.consent { margin: auto; max-width: 560px; width: calc(100% - 2rem); background: var(--surface); color: var(--c-500); border: 1px solid var(--c-200); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: 0 16px 48px rgba(0, 0, 0, .6) }
.consent::backdrop { background: rgba(0, 0, 0, .65) }
.consent .body { display: grid; gap: var(--space-sm); margin-top: var(--space-sm) }
.consent .raw { font-family: var(--f-mono); font-size: .72rem; word-break: break-all; color: var(--c-500); background: var(--surface-2); border-radius: 6px; padding: .5rem }
.consent .actions { margin-top: var(--space-sm); justify-content: flex-end }
.activity { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; width: min(420px, calc(100% - 2rem)); background: var(--surface); border: 1px solid var(--c-200); border-radius: var(--radius-lg); padding: var(--space-sm); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); display: grid; gap: .4rem; font-size: .8125rem }
.activity .title { color: var(--c-900); font-weight: 600 }
.activity .state[data-kind="ok"] { color: var(--c-success) }
.activity .state[data-kind="bad"] { color: var(--c-error) }
.activity .state[data-kind="wait"] { color: var(--c-accent) }

footer { border-top: 1px solid var(--c-100); padding: var(--space-md) 0; color: var(--c-500); font-size: .8125rem }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); display: grid; gap: .5rem }

@media (max-width: 760px) {
  .nav-inner, .container, .footer-inner { padding: 0 1rem }
  .nav-inner { padding-top: .5rem; padding-bottom: .5rem }
  .net { margin-left: 0 }
  .hide-mobile { display: none !important }
  .panel { padding: var(--space-sm) }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}
