@font-face {
  font-family: Inter;
  src: url("inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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+2116,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --ink: #172642;
  --sub: #364868;
  --mute: #485a77;
  --accent: #294b91;
  --focus: #315ec0;
  --paper: #f7f9fe;
  --line: #c7d3e7;
  --radius: 22px;
  --glass-fill: rgb(244 248 255 / 70%);
  --glass-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #7b8dae35, 0 12px 32px -22px #233f7680;
  --art: url("frost-studio.webp");
  /* Luminosity keeps the reflections and depth of the original glass sculpture. */
  --studio-tone: linear-gradient(113deg, #768bab 4%, #587cae 41%, #325da5 68%, #6776ac 100%);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #eaf0fa;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: radial-gradient(ellipse at 0 10%, #d6e4fa, transparent 40%), radial-gradient(ellipse at 100% 4%, #e4e5f9, transparent 50%), #eaf0fa; }
a { color: var(--accent); }
h1, h2, p, ul { margin: 0; }
h1, h2 { text-wrap: balance; font-weight: 590; line-height: 1.12; }
h1 { font-size: clamp(32px, 3.35vw, 49px); letter-spacing: -.062em; }
h2 { font-size: 20px; letter-spacing: -.035em; }
small { font-size: 12px; }
[hidden] { display: none !important; }
.filter-bank { position: absolute; pointer-events: none; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.glass {
  background-color: var(--glass-fill);
  border: 1px solid rgb(255 255 255 / 90%);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.21);
  backdrop-filter: blur(18px) saturate(1.21);
}
/* The baked edge map follows Nordify's radial refraction profile. The text is on its own layer. */
.condition::before, .navigation a[aria-current]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 1px #ffffffd9, inset 0 -1px 1px #657fa755;
  backdrop-filter: url("#rim-optics");
  z-index: -1;
}
.app { max-width: 1550px; margin: auto; min-height: 100svh; display: grid; grid-template-columns: 202px minmax(0, 1fr); align-items: start; gap: clamp(24px, 3.6vw, 64px); padding: 24px clamp(20px, 3vw, 48px); }
.rail { position: sticky; top: 24px; height: calc(100svh - 48px); min-height: 455px; max-height: 1180px; border-radius: 26px; padding: 23px 12px 14px; display: flex; flex-direction: column; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 25px; letter-spacing: -.06em; font-weight: 650; }
.rail > .wordmark { margin-inline: 7px; }
.mark { flex: none; width: 37px; height: 37px; background: url("mark.svg") center/contain no-repeat; }
.navigation { margin-top: 48px; display: grid; gap: 6px; }
.navigation a, .logout { min-height: 45px; display: flex; gap: 12px; align-items: center; border-radius: 15px; padding: 9px 14px; font-weight: 540; color: var(--sub); text-decoration: none; }
.navigation a:hover, .logout:hover { background: #f7faffbd; color: var(--ink); }
.navigation a[aria-current] { isolation: isolate; position: relative; background: #d2e3ffc9; box-shadow: 0 2px 6px #414f8219; color: #213f7d; }
.rail-foot { display: grid; gap: 12px; margin-top: auto; }
.identity { display: flex; align-items: center; gap: 10px; padding: 12px 6px 16px; border-bottom: 1px solid var(--line); }
.avatar, .section-symbol, .login-symbol, .glyph { display: inline-grid; place-items: center; flex: none; color: var(--accent); background: #e4ecfa; }
.avatar { width: 32px; height: 32px; border-radius: 10px; }
.identity strong, .identity small { display: block; }
.identity strong { font-weight: 600; font-size: 13px; }
.identity small, .endpoint, .count, .stamp, td { font-variant-numeric: tabular-nums; }
.identity small { color: var(--mute); font-size: 11px; }
.workspace { padding: 27px 0 40px; min-width: 0; }
.page-head, .card-heading, .entry-mast, .host-tag, .country, .condition, .stamp, .flow-label, .save { display: flex; align-items: center; }
.page-head { justify-content: space-between; gap: 14px; margin-bottom: 25px; }
.stamp { font-size: 12px; gap: 7px; color: var(--sub); white-space: nowrap; }
.stamp .icon { width: 15px; height: 15px; }
.metrics, .summary-grid, .fields { display: grid; gap: 18px; }
.metrics { grid-template-columns: minmax(0, 1.65fr) minmax(245px, .85fr); margin-bottom: 20px; }
.node-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 245px; padding: clamp(22px, 2.6vw, 42px); border: 1px solid #ffffffd9; border-radius: var(--radius); background: #dce5f3 var(--art) 50% 51% / cover no-repeat; overflow: hidden; box-shadow: var(--glass-shadow); }
.node-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #edf3ffdd 0%, #edf3ffb8 26%, #edf3ff0a 65%); }
.node-copy { max-width: 100%; }
.country, .host-tag { gap: 8px; color: #314564; font-size: 13px; font-weight: 550; }
.flag { display: inline-block; flex: none; width: 18px; height: 13px; border-radius: 3px; background: linear-gradient(#272c30 0 33.3%, #c64f50 33.3% 66.7%, #e6b859 66.7%); box-shadow: 0 0 0 1px #283b3a1a; }
.node-copy h2 { font-size: clamp(30px, 3.25vw, 50px); font-weight: 560; letter-spacing: -.065em; margin: 12px 0 3px; }
.endpoint { font: 13px/1.5 ui-monospace, Consolas, monospace; color: #3a5277; }
.condition { position: relative; isolation: isolate; width: fit-content; margin-top: 24px; padding: 7px 13px; gap: 8px; font-size: 12px; font-weight: 600; border-radius: 99px; color: #284371; background-color: #f3f8ffbd; }
.light, .badge::before { width: 6px; height: 6px; border-radius: 50%; background: #288362; flex: none; }
.light.warn { background: #a65a18; }
.card { min-width: 0; border: 1px solid #ffffffed; border-radius: var(--radius); padding: clamp(19px, 2vw, 30px); background: rgb(250 252 252 / 87%); box-shadow: 0 2px 3px #475a830a, 0 10px 32px -24px #4058814b; }
.card-heading { gap: 10px; margin-bottom: 19px; }
.section-symbol { width: 31px; height: 31px; border-radius: 10px; }
.section-symbol .icon { width: 18px; height: 18px; }
.count { margin-left: auto; font-size: 12px; color: #435674; font-weight: 600; background: #e6edf8; padding: 3px 9px; border-radius: 10px; }
.traffic { display: flex; flex-direction: column; background: linear-gradient(137deg, #ffffffeb, #e7edf6f0); }
.traffic .card-heading { margin-bottom: 14px; }
.traffic .section-symbol { background: #e3e8f4; color: #535e88; }
.transfers { flex: 1; display: grid; gap: 10px; }
.transfer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.transfer + .transfer { border-top: 1px solid var(--line); padding-top: 8px; }
.transfer strong { font-size: clamp(22px, 2.3vw, 36px); font-weight: 540; white-space: nowrap; line-height: 1.15; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.transfer strong small { font-size: .47em; letter-spacing: -.02em; color: var(--sub); }
.traffic > small { color: var(--mute); margin-top: 17px; }
.flow-label { gap: 3px; color: var(--sub); font-size: 12px; }
.flow-label .icon { width: 16px; height: 16px; }
.summary-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .profile-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 11px 0; }
.check-list li { justify-content: space-between; }
.check-name { font-weight: 510; }
.check-name small { font-size: 11px; color: var(--mute); margin-left: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 540; white-space: nowrap; }
.badge::before { content: ""; }
.badge.ok { color: #216448; }
.badge.bad, .danger { color: #923b41; }
.badge.bad::before { background: #ad4149; }
.badge.neutral { color: var(--mute); }
.badge.neutral::before { background: #78888c; }
.tablebox { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: right; border-top: 1px solid var(--line); padding: 13px 2px; white-space: nowrap; }
thead th { font-weight: 510; font-size: 12px; color: var(--mute); }
th:first-child { text-align: left; }
tbody th { font: 580 13px/1.5 ui-monospace, Consolas, monospace; }
td small { font-size: inherit; }
button, input, textarea, .button { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; text-decoration: none; font-weight: 565; }
button .icon { width: 17px; height: 17px; }
.logout { background: transparent; justify-content: start; width: 100%; }
.primary, .button { color: #fff; background: var(--accent); box-shadow: inset 0 1px 0 #e1efff35, 0 3px 8px #18377332; }
.primary:hover, .button:hover { background: #1d3876; }
.quiet, .danger { background: #f3f6fc; border-color: #bfcde3; color: var(--accent); }
.danger { background: #fff7f6; color: #923b41; border-color: #e4ccc9; }
.quiet:hover, .danger:hover { border-color: currentColor; }
button:disabled { opacity: .62; cursor: wait; }
:where(a, button, input, textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
label { display: block; font-size: 14px; font-weight: 590; margin: 0 0 6px; }
input:not([type=hidden]), textarea { display: block; width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #9aaccb; border-radius: 12px; color: var(--ink); background: #ffffffd9; font-size: 16px; }
textarea { font: 14px/1.6 ui-monospace, Consolas, monospace; resize: vertical; min-height: 138px; }
.alert { padding: 12px 15px; margin-bottom: 17px; border-radius: 13px; }
.alert.ok { color: #205b44; background: #e0eee5; }
.alert.bad { color: #8e363f; background: #f9e9e9; }
.alert a { color: inherit; }
.glyph { min-width: 38px; height: 38px; border-radius: 11px; font: 600 12px/1 ui-monospace, monospace; }
.profile-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-name small, .add-form small { display: block; color: var(--mute); }
.actions, .route-test form { display: flex; gap: 6px; }
.actions { flex-wrap: wrap; }
.profile-open { background: #f3f6fc; border-color: #bfcde3; color: var(--accent); box-shadow: none; }
.profile-open:hover { background: #e1eafa; }
.profiles-back { display: inline-block; padding-block: 8px; margin-bottom: 8px; }
.profile-view { display: grid; gap: 18px; max-width: 880px; }
.pac-address-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pac-address-row input { flex: 1 1 275px; font-family: ui-monospace, Consolas, monospace; }
#pac-copy-status:empty { display: none; }
.pac-steps { padding-inline-start: 22px; margin-block: 16px; }
.pac-steps li + li { margin-top: 6px; }
.pac-source { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 8px; }
.pac-source summary { cursor: pointer; font-weight: 560; padding-block: 9px; }
.pac-source summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pac-source pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, Consolas, monospace; }
.profile-fields { margin: 0; }
.profile-fields > div { display: grid; grid-template-columns: minmax(125px, .45fr) minmax(0, 1fr); gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; }
.profile-fields dt { color: var(--mute); }
.profile-fields dd { margin: 0; overflow-wrap: anywhere; font: 14px/1.55 ui-monospace, Consolas, monospace; }
.secret-card form { margin-top: 16px; }
.secret-card pre { margin: 16px 0 0; border: 1px solid var(--line); padding: 15px; border-radius: 12px; background: #f0f4fc; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 ui-monospace, Consolas, monospace; }
.secret-card [role=status]:empty { margin: 0; }
@media (max-width: 550px) {
  .profile-fields > div { grid-template-columns: 1fr; gap: 4px; }
}
@media print {
  .secret-card { display: none; }
}
.add-form { margin: 17px 0; }
.add-form small { margin: 6px 0 14px; }
.profile-row:first-of-type { margin-top: 17px; }
.route-test, .rules .helper { margin-bottom: 18px; }
.route-test form { max-width: 600px; margin-top: 14px; }
.fields { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.fields > div { display: flex; flex-direction: column; }
.fields textarea { margin-top: auto; }
.helper, .field-help, .muted, output { color: var(--mute); font-size: 14px; }
.helper { margin-top: 8px; }
.field-help { margin-bottom: 11px; }
.save { gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.route-test output:not(:empty) { display: block; margin-top: 10px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; background: white; padding: 10px; color: var(--ink); }
.entry { min-height: 100svh; padding: 0 clamp(22px, 6vw, 100px); background: var(--art) 55% center/cover no-repeat, var(--studio-tone) center/cover no-repeat; background-blend-mode: luminosity, normal; background-color: #e5ebf8; }
.entry-frame { max-width: 1450px; margin: auto; min-height: 100svh; display: flex; flex-direction: column; }
.entry-mast { justify-content: space-between; padding: 30px 0; gap: 16px; }
.host-tag { background: #f7faffb8; border: 1px solid #ffffffba; border-radius: 99px; padding: 6px 12px; }
.entry-body { flex: 1; display: flex; align-items: center; padding: 36px 0 clamp(60px, 10vh, 130px); }
.login-form { width: min(422px, 100%); padding: clamp(24px, 3.3vw, 46px); border-radius: 30px; background-color: rgb(244 248 255 / 68%); box-shadow: inset 0 1px 2px #fff, inset 0 -1px 1px #687da633, 0 25px 70px -35px #243b7173; }
.login-symbol { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(140deg,#fafdff,#c9dbf8); box-shadow: inset 0 1px #fff,0 2px 3px #374f7924; margin-bottom: 19px; }
.login-symbol .icon { width: 24px; height: 24px; }
.login-form h1 { font-size: clamp(30px, 3.15vw, 44px); }
.lead { margin: 8px 0 25px; color: var(--sub); }
.login-form label:not(:first-child) { margin-top: 16px; }
.password-box { position: relative; }
.password-box input { padding-right: 50px; }
.reveal { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); min-width: 44px; padding: 0; color: var(--sub); background: transparent; }
.reveal[aria-pressed=false] .icon:last-child, .reveal[aria-pressed=true] .icon:first-child { display: none; }
.wide { width: 100%; justify-content: space-between; margin-top: 22px; }
.login-page { min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.login-page .button { margin-top: 16px; }
@media (max-width: 1180px) and (min-width: 851px) {
  .app { grid-template-columns: 174px minmax(0, 1fr); gap: 20px; padding-inline: 18px; }
  .metrics { grid-template-columns: minmax(0, 1.45fr) minmax(216px, .85fr); }
  .transfer { flex-wrap: wrap; }
  .node-hero { min-height: 228px; }
  .summary-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .app { display: block; padding: 0 clamp(15px, 4vw, 36px); }
  .rail { position: static; height: auto; min-height: 0; max-height: none; padding: 17px 0; display: flex; flex-direction: row; justify-content: space-between; align-items: center; border: 0; border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .rail > .wordmark { margin: 0; }
  .rail-foot { display: flex; margin: 0; }
  .identity { display: none; }
  .logout { background: #ffffff73; border: 1px solid #fff; border-radius: 22px; font-size: 13px; gap: 6px; }
  .navigation { position: fixed; z-index: 10; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(430px, calc(100% - 20px)); margin: 0; padding: 5px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; border: 1px solid #ffffffed; border-radius: 27px; background: #eaf0fbc9; backdrop-filter: blur(18px) saturate(1.28); -webkit-backdrop-filter: blur(18px) saturate(1.28); box-shadow: inset 0 1px 1px #fff, 0 6px 25px #34467835; }
  .navigation a { min-height: 48px; padding: 4px 0; flex-direction: column; gap: 1px; justify-content: center; font-size: 11px; border-radius: 22px; }
  .navigation .icon { width: 18px; height: 18px; }
  .workspace { padding: 14px 0 calc(96px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 18px; }
}
@media (max-width: 650px) {
  :root { --art: url("frost-studio-small.webp"); --radius: 19px; }
  .metrics, .summary-grid, .fields { grid-template-columns: 1fr; gap: 14px; }
  .metrics { margin-bottom: 14px; }
  .node-hero { min-height: 190px; background-position: 55% 50%; }
  .node-hero::before { background: linear-gradient(90deg,#e7effbee,#e7effba6 42%,#e7effb00 73%); }
  .node-copy h2 { font-size: 33px; }
  .transfers { grid-template-columns: 1fr 1fr; gap: 13px; }
  .transfer { display: grid; gap: 5px; }
  .transfer + .transfer { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 15px; }
  .transfer strong { font-size: 29px; }
  .traffic > small { margin-top: 12px; }
  .stamp { font-size: 11px; }
  .page-head { align-items: flex-start; flex-wrap: wrap; gap: 7px; }
  .check-name small { display: block; margin-left: 0; }
  .actions { margin-left: auto; }
  .profile-row { flex-wrap: wrap; }
  .entry { padding: 0 16px; background-size: auto min(76svh, 650px), 100% min(76svh, 650px); background-position: 65% top, center top; }
  .entry-mast { padding: 18px 3px; }
  .entry-body { align-items: flex-start; justify-content: center; padding: clamp(105px, 22svh, 205px) 0 30px; }
  .login-form { background-color: #f3f7ffdf; border-radius: 25px; }
  .login-symbol { margin-bottom: 13px; }
  .host-tag { font-size: 11px; }
}
@media (max-width: 360px) {
  .page-head { display: grid; }
  .entry-body { padding-top: 76px; }
  .profile-row .actions { width: 100%; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass, .navigation, .login-form, .card, .condition { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: #f5f8ff; }
  .navigation a[aria-current]::before, .condition::before { backdrop-filter: none; }
  .node-hero::before { background: linear-gradient(90deg,#f1f6ff 0 45%,#f1f6ff1a 80%); }
  :root { --mute: #2d4165; --line: #a1b1cb; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .navigation a { transition: background-color .16s ease, box-shadow .16s ease; }
}
@media (forced-colors: active) {
  .card, .glass, .navigation, .node-hero { border: 1px solid CanvasText; background: Canvas; }
  .navigation a[aria-current] { outline: 2px solid Highlight; }
  .badge::before, .light { background: CanvasText; }
  .node-hero::before, .condition::before, .navigation a::before { display: none; }
}

.flag{background:#00abc2;color:#ffdf63}.flag::after{content:'☀';display:grid;place-items:center;line-height:1}
