/* the fonts of the panel are served by the panel itself (no request leaves for Google: the first paint never waits for a foreign server) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/static/fonts/inter-latin-400-800.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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/poppins-latin-500.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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/poppins-latin-600.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: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/poppins-latin-700.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: 'Vazirmatn'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/static/fonts/vazirmatn-arabic-400-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/static/fonts/vazirmatn-latin-400-700.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; }
/* Nikatel panel - liquid-glass look: one compact, uniform surface language.
   Tokens first, then the glass surface, then components. Class names are stable: the JS never changes for a restyle. */
:root {
  --bg: #070a17; --bg-2: #0b1026;
  --glass: linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.045) 55%, rgba(255,255,255,.03) 100%);
  --glass-hi: linear-gradient(160deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.07) 60%, rgba(255,255,255,.05) 100%);
  --panel: rgba(255,255,255,.045); --panel-2: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.12); --line-hi: rgba(167,176,255,.55); --edge: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04);
  --shadow: 0 10px 30px rgba(2,6,23,.45); --shadow-hi: 0 18px 44px rgba(2,6,23,.55), 0 0 0 1px rgba(255,255,255,.06);
  --text: #eef1ff; --mut: #97a0c3; --acc: #7c83ff; --acc-2: #38d9f5;
  --grad: linear-gradient(135deg, #7c83ff 0%, #38d9f5 100%);
  --ok: #3ddc97; --bad: #ff6b8b; --warn: #ffc44d; --unk: #6b7592;
  --r: 18px; --r-s: 12px; --row-h: 40px; --blur: blur(22px) saturate(170%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Vazirmatn", "Segoe UI", system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
/* the light behind the glass: soft colour fields that never move */
body::before, body::after { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none; }
body::before { background: radial-gradient(42% 38% at 12% 10%, rgba(124,131,255,.40), transparent 70%), radial-gradient(38% 34% at 88% 18%, rgba(56,217,245,.26), transparent 70%), radial-gradient(45% 40% at 70% 92%, rgba(255,107,139,.20), transparent 70%), radial-gradient(40% 36% at 15% 85%, rgba(61,220,151,.16), transparent 70%); filter: blur(40px); }
body::after { background: linear-gradient(180deg, rgba(7,10,23,.0), rgba(7,10,23,.55)); }
a { color: inherit; cursor: pointer; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--edge); backdrop-filter: var(--blur); cursor: pointer; font-weight: 700; transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s; }
/* buttons: a soft glow fades in on hover (no jump) */
button { position: relative; overflow: hidden; transition: filter .35s ease, box-shadow .35s ease, border-color .35s ease, transform .18s var(--ease); }
button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
button:hover { border-color: var(--line-hi); filter: brightness(1.08); box-shadow: 0 0 0 3px rgba(124,131,255,.12), 0 6px 16px rgba(0,0,0,.25); } button:hover::after { opacity: 1; }
button:active { transform: scale(.98); } button:disabled { opacity: .45; cursor: default; transform: none; filter: none; box-shadow: none; }
button.pri { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(124,131,255,.35), inset 0 1px 0 rgba(255,255,255,.35); } button.pri:hover { box-shadow: 0 0 0 3px rgba(124,131,255,.18), 0 10px 24px rgba(124,131,255,.45), inset 0 1px 0 rgba(255,255,255,.35); }
button.sm { height: 26px; padding: 0 11px; font-size: 12px; }
button.danger { color: var(--bad); border-color: rgba(255,107,139,.35); }
input, select, textarea { height: 32px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.06); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); outline: none; transition: border-color .18s, box-shadow .18s, background .18s; }
input:focus, select:focus, textarea:focus { border-color: var(--line-hi); box-shadow: 0 0 0 3px rgba(124,131,255,.18), inset 0 1px 2px rgba(0,0,0,.25); background: rgba(255,255,255,.08); }
select option { background: #0f1430; color: var(--text); }
.hidden { display: none !important; } .mut { color: var(--mut); } .mono { font-family: var(--mono); font-size: 12px; }
.err { color: var(--bad); min-height: 18px; font-size: 12px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; }

/* ---- the glass surface, shared by every box */
.glass, .card, .tile, .head, .side, .login-box, .toast, .gw-row, .gw-out, .fix, .tabs, .ob-raw, .gl-out, .detail td {
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow), var(--edge);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* (the page no longer re-animates on every refresh: the entrance is #page.enter, only when another page is opened) */
/* (the page no longer re-animates on every refresh: the entrance is #page.enter, only when another page is opened) */

/* ---- login */
.login { height: 100%; display: flex; align-items: center; justify-content: center; }
.login-box { width: 350px; padding: 28px 26px 22px; border-radius: 24px; display: grid; gap: 12px; animation: rise .4s var(--ease) both; }
.login-box label { display: grid; gap: 5px; font-size: 12px; color: var(--mut); } .login-box input { width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px; } .brand > div { display: grid; line-height: 1.15; } .brand b { font-size: 17px; letter-spacing: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } .brand small { color: var(--mut); font-size: 10.5px; letter-spacing: .3px; }
.brand .logo { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--grad); color: #fff; font-style: normal; font-weight: 800; font-size: 17px; box-shadow: 0 6px 18px rgba(124,131,255,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.brand .logo-img { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 4px 12px rgba(100,130,255,.35)); }
.login-box .brand { justify-content: center; }

/* ---- layout */
.app { display: grid; grid-template-columns: 246px 1fr; height: 100%; gap: 14px; padding: 14px; }      /* (the menu: 218 px until 1.47.0 - the end of "Tunnel manager" was cut by its edge; the owner asked for a longer one, 2026-10-14) */
.side { border-radius: 22px; padding: 16px 12px; display: flex; flex-direction: column; gap: 16px; }
/* the menu: an icon in its own column, the name, a count on the right; the open page has a glowing bar on its left */
nav { display: grid; gap: 4px; }
nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px; border-radius: 13px; font-weight: 600; color: var(--mut); border: 1px solid transparent; cursor: pointer; }
nav a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--acc-2); opacity: 0; box-shadow: 0 0 10px var(--acc-2); transition: opacity .25s ease, top .25s ease, bottom .25s ease; }
nav a .ic { flex: none; width: 24px; text-align: center; font-style: normal; font-size: 15px; line-height: 1; opacity: .75; filter: saturate(.6); border: 0; background: none; padding: 0; transition: opacity .25s ease, filter .25s ease, transform .25s var(--ease); }
nav a > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .1px; }
nav a .cnt { font-style: normal; font-size: 10.5px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--mut); background: rgba(255,255,255,.04); transition: color .25s ease, border-color .25s ease, background-color .25s ease; }
nav a .cnt:empty { display: none; }
nav a:hover { color: var(--text); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.06); transform: translateX(3px); }
nav a:hover .ic { opacity: 1; filter: none; transform: scale(1.08); }
nav a.on { color: var(--text); background: var(--glass-hi); border-color: var(--line); box-shadow: var(--edge); }
nav a.on::before { opacity: 1; top: 8px; bottom: 8px; } nav a.on .ic { opacity: 1; filter: none; } nav a.on .cnt { color: var(--text); border-color: rgba(124,131,255,.5); background: rgba(124,131,255,.16); }
.side-foot { margin-top: auto; display: grid; gap: 8px; font-size: 12px; }
.side-out { display: grid; gap: 4px; justify-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.side-out a { display: block; width: 100%; text-align: center; padding: 7px 10px; border-radius: 10px; font-weight: 700; color: var(--text); background: var(--panel-2); cursor: pointer; transition: background .2s, transform .2s; }
.side-out a:hover { background: rgba(255,120,120,.18); transform: translateY(-1px); }
.side-out #version { font-size: 11px; letter-spacing: .3px; }
.badge { display: inline-block; width: fit-content; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(255,196,77,.5); color: var(--warn); background: rgba(255,196,77,.12); font-size: 11px; font-weight: 800; }
.main { overflow-y: auto; overflow-x: hidden; padding: 4px 6px 30px 2px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; padding: 0 22px; margin-bottom: 14px; border-radius: 20px; position: sticky; top: 0; z-index: 5; }
.head h1 { margin: 0; font-size: 20px; letter-spacing: -.2px; } .head p { margin: 2px 0 0; font-size: 12px; max-width: 900px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .head-r { display: flex; align-items: center; gap: 10px; }
.page { padding: 2px; }

/* ---- components */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { padding: 14px 16px; border-radius: var(--r); position: relative; overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s, background .22s; }
.tile::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(255,255,255,.08), transparent); pointer-events: none; }
.tile:hover, .card:hover { filter: brightness(1.05); }   /* boxes only fade a little lighter on hover, never bigger or glaring */
.tile small { display: block; font-size: 10.5px; letter-spacing: .9px; text-transform: uppercase; color: var(--mut); font-weight: 700; }
.tile b { display: block; font-size: 24px; margin-top: 2px; letter-spacing: -.3px; } .tile span { font-size: 11.5px; color: var(--mut); }
.tile.ok b { color: var(--ok); } .tile.bad b { color: var(--bad); } .tile.warn b { color: var(--warn); }
.card { padding: 14px 16px; border-radius: var(--r); margin-bottom: 14px; transition: transform .22s var(--ease), box-shadow .22s, background .22s; }
.card h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: .9px; text-transform: uppercase; color: var(--mut); display: flex; align-items: center; gap: 8px; } .card h3 .sp { flex: 1; }
.tabs { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; } .tabs button { height: 28px; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; color: var(--mut); }
.tabs button:hover { color: var(--text); background: rgba(255,255,255,.07); transform: none; } .tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(124,131,255,.35); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; } .toolbar input { width: 240px; } .toolbar .sp { flex: 1; }

/* ---- tables: fixed columns, nothing moves; every row is a glass pill */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.tbl th { text-align: left; font-size: 10.5px; letter-spacing: .9px; text-transform: uppercase; color: var(--mut); padding: 0 12px 2px; font-weight: 700; }
.tbl td { height: var(--row-h); padding: 0 12px; background: rgba(255,255,255,.045); border-top: 1px solid var(--line); border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .18s, border-color .18s; }
.tbl td:first-child { border-left: 3px solid var(--unk); border-radius: 13px 0 0 13px; } .tbl td:last-child { border-right: 1px solid var(--line); border-radius: 0 13px 13px 0; text-align: right; }
.tbl tr.up td:first-child { border-left-color: var(--ok); } .tbl tr.down td:first-child { border-left-color: var(--bad); } .tbl tr.degraded td:first-child { border-left-color: var(--warn); }
.tbl tr:hover td { background: rgba(255,255,255,.08); }
.tbl .name { font-weight: 700; } .tbl .num { font-family: var(--mono); font-size: 12px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--unk); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.st.up::before, .st.online::before { background: var(--ok); box-shadow: 0 0 10px rgba(61,220,151,.6); } .st.down::before, .st.offline::before { background: var(--bad); box-shadow: 0 0 10px rgba(255,107,139,.6); } .st.degraded::before { background: var(--warn); box-shadow: 0 0 10px rgba(255,196,77,.6); }
.bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); vertical-align: middle; margin-right: 6px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; } .bar i.warn { background: var(--warn); } .bar i.bad { background: var(--bad); }
.pill { font-size: 10.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--mut); margin-left: 6px; background: rgba(255,255,255,.04); }
.pill.ok { color: var(--ok); border-color: rgba(61,220,151,.45); } .pill.err { color: var(--bad); border-color: rgba(255,107,139,.45); }
.purpose { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 0 6px; margin-left: 6px; border-radius: 4px; border: 1px solid var(--line); vertical-align: 1px; }
.purpose.lock { color: var(--ok); border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.08); } .purpose.eco { color: var(--warn); border-color: rgba(245,185,66,.45); background: rgba(245,185,66,.08); } .purpose.ai { color: #a78bfa; border-color: rgba(167,139,250,.45); background: rgba(167,139,250,.08); } .purpose.l2tp { color: #5eead4; border-color: rgba(94,234,212,.45); background: rgba(94,234,212,.08); } .purpose.onward { color: #7dd3fc; border-color: rgba(125,211,252,.45); background: rgba(125,211,252,.08); }
.detail td { background: rgba(10,14,32,.55) !important; height: auto; padding: 12px 16px; white-space: normal; border-left: 3px solid var(--line) !important; border-radius: 13px !important; box-shadow: none; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; font-size: 12px; } .kv span { color: var(--mut); } .kv b.err { color: var(--bad); }

/* ---- hover lift on the server / tunnel / config rows */
.tbl.lift tbody tr:not(.detail) { transition: transform .2s var(--ease), filter .2s; position: relative; }
.tbl.lift tbody tr:not(.detail):hover { filter: brightness(1.07); z-index: 1; }   /* no scale: a scaled row overflows the page and makes it shake */
.tbl.lift tbody tr:not(.detail):hover td { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }

/* ---- events */
.ev { display: grid; grid-template-columns: 78px 10px 70px 1fr; align-items: center; gap: 10px; min-height: 30px; padding: 3px 10px; border-radius: 10px; font-size: 12.5px; transition: background .15s; }
.ev:hover { background: rgba(255,255,255,.06); } .ev time { color: var(--mut); font-family: var(--mono); font-size: 11px; } .ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--unk); }
.ev.ok i { background: var(--ok); box-shadow: 0 0 8px rgba(61,220,151,.6); } .ev.bad i { background: var(--bad); box-shadow: 0 0 8px rgba(255,107,139,.6); } .ev.warn i { background: var(--warn); } .ev.info i { background: var(--acc-2); } .ev small { color: var(--mut); text-transform: uppercase; font-size: 10px; letter-spacing: .6px; }
.empty { padding: 18px; text-align: center; color: var(--mut); }
.toast { position: fixed; right: 18px; bottom: 18px; padding: 10px 16px; border-radius: 14px; font-weight: 700; z-index: 50; animation: rise .25s var(--ease) both; } .toast.bad { color: var(--bad); } .toast.ok { color: var(--ok); }

/* ---- forms */
.frm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.frm.one { grid-template-columns: 1fr; max-width: 380px; }
.frm label { display: flex; flex-wrap: wrap; align-content: flex-end; align-items: baseline; gap: 4px 6px; font-size: 11.5px; color: var(--mut); }   /* title and hint on one line, the field below: fields line up across the row */
.frm label > input, .frm label > select, .frm label > textarea { flex-basis: 100%; width: 100%; } .frm label.chk { flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 8px; align-self: end; height: 32px; } .frm label.chk > input { flex-basis: auto; width: auto; }
.frm input, .frm select { width: 100%; } .frm .frm-act, .frm > small { grid-column: 1 / -1; }
.frm-act { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; } .frm-act .sp { flex: 1; }
.frm label small { font-weight: 400; text-transform: none; letter-spacing: 0; }
input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; vertical-align: middle; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.05) center / 12px no-repeat; box-shadow: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
input[type=checkbox]:hover { border-color: var(--acc); background-color: rgba(255,255,255,.09); } input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
input[type=checkbox]:checked { background-color: var(--acc); border-color: var(--acc); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%2310131f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } input[type=checkbox]:indeterminate { background-color: var(--acc); border-color: var(--acc); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%2310131f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); } input[type=checkbox]:disabled { opacity: .45; cursor: not-allowed; }
html[data-mode="light"] input[type=checkbox] { border-color: rgba(20,24,40,.35); background-color: rgba(255,255,255,.8); }
code { font-family: var(--mono); font-size: 11.5px; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; } @media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } }   /* every box in a row: same width, same height */
.grid2 > .card { margin-bottom: 0; height: 100%; box-sizing: border-box; } .kv.one { grid-template-columns: 1fr; }
.set-desc { color: var(--mut); font-size: 12.5px; margin: 8px 4px 14px; }
.set-sub { margin: -6px 0 14px; } .set-sub button { height: 30px; padding: 0 13px; font-size: 12.5px; border-radius: 10px; }
/* one card per settings tab: as wide as what is in it (a form, a table), never the whole page */
.grid2.one { grid-template-columns: minmax(0, 1fr); justify-items: start; } .grid2.one > .card { grid-column: auto !important; height: auto; width: fit-content; min-width: min(100%, 560px); max-width: 100%; box-sizing: border-box; }
.set-tabs { flex-wrap: wrap; } .set-tabs button { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.subnav { margin: -4px 0 14px 2px; } .subnav .tabs { padding: 4px; border-radius: 16px; } .subnav .tabs button { height: 36px; padding: 0 16px; font-size: 13.5px; border-radius: 12px; }
nav a { height: 38px; font-size: 13.5px; }
/* configs: card grid + compact rows (the old Configs Checker displays) */
.cf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 6px; }
.cf-card { padding: 12px 14px; border-radius: 14px; cursor: pointer; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--edge); border-left: 3px solid var(--unk); transition: transform .2s var(--ease), background .2s; }
.cf-card:hover { transform: translateY(-2px) scale(1.01); filter: brightness(1.06); } .cf-card.up { border-left-color: var(--ok); } .cf-card.down { border-left-color: var(--bad); }
.cf-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .cf-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-nums { display: flex; justify-content: space-between; margin: 6px 0 4px; font-family: var(--mono); font-size: 12px; } .cf-card small { display: block; }
/* configs like the old panel: group bar, live label, inline tunnel / CDN, stat boxes */
.gbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--edge); }
.gbar .sp { flex: 1; } .gsep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.gchip { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); transition: background .2s, transform .2s; }
.gchip:hover { transform: translateY(-1px); } .gchip button { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; backdrop-filter: none; color: var(--mut); font-weight: 700; font-size: 12.5px; }
.gchip button small { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 10.5px; color: var(--mut); }
.gchip.on { background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px rgba(124,131,255,.35); } .gchip.on button, .gchip.on button small { color: #fff; } .gchip.on button small { background: rgba(255,255,255,.22); }
.gchip a { padding: 0 9px 0 2px; color: var(--mut); font-weight: 800; cursor: pointer; } .gchip a:hover { color: var(--bad); } .gchip.on a { color: rgba(255,255,255,.8); }
.nk-gbadge { margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-size: 10px; font-weight: 700; color: var(--mut); vertical-align: middle; }
.live { display: inline-block; margin-top: 2px; font-size: 10px; font-weight: 800; letter-spacing: .6px; } .live.up { color: var(--ok); } .live.down { color: var(--bad); } .live.unk { color: var(--mut); }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 7px 10px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; } .ap-row .ap-err { color: var(--bad); max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-nm { font-weight: 700; display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cf-grp { font-size: 11.5px; }
.sdot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--unk); } .sdot.up { background: var(--ok); box-shadow: 0 0 6px var(--ok); } .sdot.down { background: var(--bad); box-shadow: 0 0 6px var(--bad); }
/* the configs list is dense: one line per config */
.cf-list { border-spacing: 0 2px; } .cf-list td, .tbl.compact td { height: 27px; padding: 0 10px; font-size: 12px; } .cf-list th { padding: 0 10px 2px; } .tbl.compact { border-spacing: 0 2px; }
.cf-sub { color: var(--mut); opacity: .6; font-size: 11.5px; } td.cf-sub { overflow: hidden; text-overflow: ellipsis; } .cf-card .cf-sub { display: block; margin-top: 2px; }
.cf-list .flg { width: 17px; height: 12px; vertical-align: -1px; } .cf-list input.cf-cdn { height: 22px; font-size: 11px; max-width: 70px; border-radius: 7px; padding: 0 6px; } .cf-list .cf-acts button.sm { height: 22px; padding: 0 8px; font-size: 11px; } .cf-list .cf-grp { font-size: 11px; }
.cf-list td.mono { font-size: 11px; } .cf-list .td-type { font-size: 9.5px; padding: 0 6px; }
.addpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } @media (max-width: 640px) and (pointer: coarse) { .addpick { grid-template-columns: 1fr; } }
.addpick a { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 26px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; transition: border-color .25s, filter .25s, background .25s; }
.addpick a:hover { border-color: var(--line-hi); filter: brightness(1.08); } .addpick i { font-style: normal; font-size: 34px; } .addpick b { font-size: 15px; } .addpick small { color: var(--mut); font-size: 12px; line-height: 1.45; }
/* server rows like the old panel: Server | Status | IPv4 | GRE | RAM | CPU | Disk; a colour bar on the left, an accent sweep on hover */
.srv-list { display: grid; gap: 4px; }
.srv-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(170px, 1.2fr) 130px 100px repeat(3, minmax(110px, 1fr)); column-gap: 12px; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background-color: rgba(255,255,255,.035); background-image: linear-gradient(90deg, rgba(124,131,255,.2), rgba(124,131,255,.05) 42%, transparent 62%); background-repeat: no-repeat; background-size: 0% 100%; font-size: 12.5px; cursor: pointer; transition: background-size .4s cubic-bezier(.22,.8,.3,1), border-color .25s; }
.srv-row:hover { background-size: 100% 100%; border-color: var(--line-hi); }
.srv-row.good { box-shadow: inset 3px 0 0 var(--ok); } .srv-row.warn { box-shadow: inset 3px 0 0 var(--warn); } .srv-row.bad { box-shadow: inset 3px 0 0 var(--bad); }
.srv-th { min-height: 22px; border: 0 !important; background: none !important; cursor: default; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); box-shadow: none !important; } .srv-th:hover { background-size: 0% 100%; }
.srv-name { display: flex; align-items: center; gap: 8px; min-width: 0; } .srv-name b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .srv-name .pill { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.srv-st { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .srv-ip { font-family: var(--mono); font-size: 12px; color: var(--mut); cursor: copy; } .srv-ip:hover { color: var(--text); }
.srv-tbl { table-layout: fixed; } .srv-tbl td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar { display: flex; align-items: center; gap: 8px; } .pbar .bar { flex: 1; width: auto; min-width: 20px; margin: 0; } .pbar b { flex: none; min-width: 42px; text-align: right; font-weight: 600; }
.pcell .mchip { margin-left: 0; margin-right: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.tbl .mchip { margin-left: 0; } .mchip { padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; border: 1px solid var(--line); } .mchip.ok { color: var(--ok); border-color: rgba(52,211,153,.4); } .mchip.bad { color: var(--bad); border-color: rgba(255,107,139,.45); }
@media (max-width: 900px) { .srv-th { display: none; } .srv-row { grid-template-columns: 1fr 1fr; row-gap: 6px; padding: 10px 12px; } .srv-name, .srv-st { grid-column: 1 / -1; } }
/* core update: one row per core */
.eng-head, .eng-row { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 10px; align-items: center; padding: 8px 12px; }
.eng-head { font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); font-weight: 700; padding-bottom: 4px; }
.eng-row { border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 6px; font-size: 12.5px; } .eng-name b { display: block; } .eng-name small { font-size: 10.5px; } .eng-ver, .eng-latest { font-family: var(--mono); font-size: 12px; } .eng-st .warn { color: var(--warn); }
@media (max-width: 900px) { .eng-head { display: none; } .eng-row { grid-template-columns: 1fr 1fr; } }
/* tunnel list like the old dense table */
.td-type { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); } .td-node b { display: block; font-size: 12.5px; } .td-node span { font-size: 10.5px; }
.td-ports { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; } .td-ports i { font-style: normal; font-family: var(--mono); font-size: 10.5px; line-height: 16px; height: 18px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--line); } .td-ports i.bad { color: var(--bad); border-color: rgba(255,90,120,.5); }
.td-act { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; } .td-act button.sm { height: 26px; padding: 0 9px; font-size: 11.5px; }
.tun-tbl .st { font-size: 10.5px; letter-spacing: .5px; font-weight: 800; }
.flg { width: 20px; height: 15px; border-radius: 3px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); object-fit: cover; } .flgt { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: var(--mut); vertical-align: 1px; }
.sub-nodes { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; } .sub-nodes label { padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); }
.sub-cat { margin-bottom: 12px; } .sub-cat .ob-inbounds { max-height: none; overflow: visible; }
.modal.editing .modal-head > button.sm { display: none; }   /* a window showing an edit form: Save / Back belong to the form, nothing else in the header */ .sub-cat h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 2px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); } .sub-cat h4 small { letter-spacing: 0; text-transform: none; font-weight: 500; } .sub-cat h4 .sp { flex: 1; } .sub-cat h4 a { font-size: 11px; letter-spacing: 0; text-transform: none; cursor: pointer; } .cf-card .cf-grp { display: block; margin-top: 2px; } .cf-rf { cursor: pointer; margin-left: 4px; } .cf-rf:hover { color: var(--text); }
.cf-tun, .cf-cdn { height: 28px; padding: 0 8px; font-size: 12px; border-radius: 9px; width: 100%; max-width: 150px; } .cf-cdn { max-width: 90px; font-family: var(--mono); }
.cf-acts { display: flex; gap: 4px; align-items: center; justify-content: flex-end; white-space: nowrap; } .cf-acts button.sm { height: 26px; padding: 0 9px; font-size: 11.5px; }
.tbl td .ok { color: var(--ok); } .tbl td .warn { color: var(--warn); } .tbl td .bad { color: var(--bad); }
.cf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 8px; }
.cf-stat { text-align: center; padding: 7px 4px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.cf-stat b { display: block; font-family: var(--mono); font-size: 16px; letter-spacing: -.3px; } .cf-stat b small { font-size: 10px; margin-left: 2px; color: var(--mut); } .cf-stat span { font-size: 9.5px; letter-spacing: .7px; font-weight: 700; color: var(--mut); }
.cf-stat b.ok { color: var(--ok); } .cf-stat b.warn { color: var(--warn); } .cf-stat b.bad { color: var(--bad); }
.cf-meta { display: flex; gap: 6px; margin-bottom: 8px; } .cf-meta .cf-tun { flex: 1; max-width: none; } .cf-meta .cf-cdn { width: 90px; }
.cf-card .cf-acts { justify-content: flex-start; } .cf-card .cf-acts .sp { flex: 1; }
.cf-card .cf-top b { display: flex; align-items: center; gap: 2px; min-width: 0; } .cf-card .cf-top b .nk-gbadge { flex: none; }
/* Create tunnel: three numbered sections, engine tiles */
.frm.build { display: block; } .frm.build .bgrid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } .frm.build .bgrid label.chk { align-self: end; height: 32px; }
.badv { margin: 10px 0 4px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line); } .badv > a { cursor: pointer; font-size: 12.5px; font-weight: 700; } .badv > a:hover { color: var(--acc-2); }
.bhint { margin: 10px 0 4px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: 12px; } .bhint b { color: var(--acc-2); } .bsec { padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.bsec h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); display: flex; align-items: center; gap: 8px; }
.bsec h4 i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-size: 11px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; } .bgrid label.chk { align-self: end; }
.bkinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.bkind { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; transition: border-color .2s, background .2s; }
.bkind input { display: none; } .bkind b { font-size: 13px; } .bkind small { color: var(--mut); font-size: 11px; line-height: 1.35; } .bkind em { font-style: normal; font-size: 10px; color: var(--mut); opacity: .8; }
.bkind:hover { filter: brightness(1.06); } .bkind.on { border-color: var(--line-hi); background: var(--glass-hi); box-shadow: 0 0 0 1px var(--line-hi) inset; }
.frm.build .frm-act { flex-wrap: wrap; } .frm.build .frm-act small { flex-basis: 100%; }
.bsec.guide h4 a { font-size: 11px; text-transform: none; letter-spacing: 0; cursor: pointer; } .bsec.guide > small { display: block; margin-top: 8px; }
.bguide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.bg-row { display: grid; gap: 2px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; transition: background .2s, border-color .2s; }
.bg-row b { font-size: 12.5px; } .bg-row span { font-size: 11.5px; color: var(--acc-2); font-weight: 600; } .bg-row small { font-size: 10.5px; color: var(--mut); line-height: 1.35; }
.bg-row:hover { filter: brightness(1.06); } .bg-row.on { border-color: var(--line-hi); background: var(--glass-hi); }
.ttgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin-top: 6px; align-items: start; }   /* boxes keep their own height */
.ttg { padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); } .ttg-head { display: flex; align-items: center; gap: 5px; margin: 0 0 4px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); }
.ttk { display: flex !important; align-items: center; gap: 6px; padding: 2px 0; font-size: 12px; line-height: 1.25; white-space: nowrap; overflow: hidden; } .ttk b { flex: none; } .ttk small { font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.ob-sec .bguide { margin-top: 4px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; } .ob-sec .bg-row { padding: 7px 10px; gap: 1px; } .ob-sec .bg-row small { display: none; } .ob-sec .bg-row:hover small { display: block; }
.ob-sec > small.mut { display: block; margin-top: 8px; }
.ttg-head b { color: var(--text); } .ttg-head a { font-size: 10.5px; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); } .ttg-head a:hover { color: var(--text); }
.tbl.compact { border-spacing: 0 3px; } .tbl.compact td { height: 28px; font-size: 12px; }
/* dashboard like the old one */
.dash-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; } @media (max-width: 980px) { .dash-cols { grid-template-columns: 1fr; } }
.dash-quick { display: flex; gap: 8px; margin: -2px 0 12px; flex-wrap: wrap; } .dash-quick .dash-action { flex: 1; min-width: 180px; flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; } .dash-quick .dash-action i { margin: 0; font-size: 16px; } .dash-quick .dash-action b { font-size: 12.5px; } .dash-quick .dash-action small { display: none; }
.card.health { padding: 10px 12px; margin-bottom: 0; } .card.health .dash-row { padding: 6px 0; gap: 8px; } .card.health .dash-name { font-size: 12px; } .card.health .dash-name small { font-size: 10px; } .card.health b { font-size: 12px; }
.card.act { max-height: calc(100vh - 290px); }
.dash-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .dash-row:first-of-type { border-top: 0; }
.dash-name { flex: 1; font-weight: 700; font-size: 13.5px; } .dash-name small { display: block; font-weight: 400; font-size: 11px; color: var(--mut); margin-top: 2px; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--unk); flex: none; } .dash-dot.green { background: var(--ok); box-shadow: 0 0 10px var(--ok); } .dash-dot.yellow { background: var(--warn); box-shadow: 0 0 10px var(--warn); } .dash-dot.red { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dash-updated { margin-top: 8px; font-size: 11px; color: var(--mut); text-align: right; }
.dash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-action { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 13px; background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: transform .15s, border-color .15s; } .dash-action:hover { border-color: var(--line-hi); filter: brightness(1.06); }
.dash-action i { font-style: normal; font-size: 18px; margin-bottom: 4px; } .dash-action b { font-size: 13.5px; } .dash-action small { font-size: 11px; color: var(--mut); }
/* the look: themes, day mode, text size, animations off */
html[data-theme="gold"] { --acc: #e6b85c; --acc-2: #f6d98a; --grad: linear-gradient(135deg, #c9962e 0%, #f3d27a 100%); --line-hi: rgba(246,217,138,.6); }
html[data-theme="gold"] body::before { background: radial-gradient(42% 38% at 12% 10%, rgba(230,184,92,.35), transparent 70%), radial-gradient(38% 34% at 88% 18%, rgba(246,217,138,.2), transparent 70%), radial-gradient(45% 40% at 70% 92%, rgba(180,120,40,.18), transparent 70%); }
html[data-theme="neon"] { --bg: #040409; --acc: #ff2bd6; --acc-2: #19f5ff; --grad: linear-gradient(135deg, #ff2bd6 0%, #19f5ff 100%); --line: rgba(25,245,255,.18); --line-hi: rgba(255,43,214,.6); }
html[data-theme="neon"] body::before { background: radial-gradient(42% 38% at 12% 10%, rgba(255,43,214,.35), transparent 70%), radial-gradient(38% 34% at 88% 18%, rgba(25,245,255,.3), transparent 70%); }
html[data-theme="minimal"] { --glass: rgba(255,255,255,.03); --glass-hi: rgba(255,255,255,.06); --shadow: none; --shadow-hi: none; --blur: none; --edge: none; --grad: linear-gradient(135deg, #6b7280, #9ca3af); --acc: #9ca3af; --acc-2: #cbd5e1; }
html[data-theme="minimal"] body::before { display: none; }
html[data-mode="light"] { --bg: #eef1f8; --text: #111527; --mut: #5b6478; --glass: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.65)); --glass-hi: rgba(255,255,255,.95); --panel: rgba(255,255,255,.7); --panel-2: rgba(0,0,0,.05); --line: rgba(17,21,39,.12); --edge: inset 0 1px 0 rgba(255,255,255,.9); --shadow: 0 10px 30px rgba(17,21,39,.10); --shadow-hi: 0 18px 44px rgba(17,21,39,.16); }
html[data-mode="light"] body::after { background: none; } html[data-mode="light"] .tbl td { background: rgba(255,255,255,.72); } html[data-mode="light"] .detail td { background: rgba(255,255,255,.9) !important; } html[data-mode="light"] .gl-out, html[data-mode="light"] .fix { background: rgba(17,21,39,.06); } html[data-mode="light"] select option { background: #fff; color: #111; }
html[data-size="small"] body { font-size: 12px; } html[data-size="large"] body { font-size: 14.5px; }
html[data-anim="off"] *, html[data-anim="off"] *::before, html[data-anim="off"] *::after { animation: none !important; transition: none !important; }
#mode-btn { width: 36px; padding: 0; }
/* the glass window */
.lstep { display: grid; gap: 12px; } .lstep.hidden { display: none; } .lnk { text-align: center; font-size: 12.5px; color: var(--mut); cursor: pointer; } .lnk:hover { color: var(--text); }
.lhint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--mut); } .lhint b { color: var(--text); }
/* settings -> security */
.sec-sec { padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); } .sec-sec h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); display: flex; align-items: center; gap: 8px; } .sec-sec h4 .sp { flex: 1; }
.sec-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .sec-qr svg { width: 190px; height: 190px; background: #fff; border-radius: 12px; padding: 6px; } .sec-key { font-family: var(--mono); font-size: 14px; letter-spacing: 2px; word-break: break-all; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.sec-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 10px 0; } .sec-codes code { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); text-align: center; font-size: 13px; letter-spacing: 1px; }
.sec-url { display: block; padding: 8px 10px; margin: 8px 0; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; word-break: break-all; }
#ask .overlay { z-index: 90; align-items: center; padding: 20px; background: rgba(4,6,18,.62); backdrop-filter: blur(10px); }
#ask .modal.ask-box { width: min(360px, calc(100vw - 32px)); max-height: none; padding: 16px 18px 14px; border-radius: 18px; text-align: center; display: grid; gap: 10px; justify-items: stretch; animation: rise .22s var(--ease) both; }   /* a small box: it only asks one thing */
.ask-ic { justify-self: center; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(124,131,255,.4); } .ask-ic.bad { background: linear-gradient(135deg, #ff6b8b, #ff9a6b); box-shadow: 0 6px 16px rgba(255,107,139,.4); }
.ask-text { font-size: 13px; line-height: 1.5; white-space: pre-line; word-break: break-word; }
.ask-in { width: 100%; text-align: center; }
.ask-act { display: flex; gap: 8px; justify-content: center; margin-top: 2px; } .ask-act button { min-width: 96px; height: 32px; }
button.danger-fill { background: linear-gradient(135deg, #ff6b8b, #ff8a5c); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(255,107,139,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; background: rgba(4,6,18,.55); backdrop-filter: blur(6px); overflow: auto; animation: fade .2s var(--ease) both; }
.modal { width: min(840px, 100%); max-height: calc(100vh - 96px); display: flex; flex-direction: column; border-radius: 22px; background: var(--glass-hi); border: 1px solid rgba(255,255,255,.2); backdrop-filter: var(--blur); box-shadow: 0 30px 80px rgba(0,0,0,.5), var(--edge); animation: rise .28s var(--ease) both; }
.modal.wide { width: min(960px, 100%); }
/* balance: a window is a tall card, not a wide strip - stacked charts, two-column facts */
.modal .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; } @media (max-width: 700px) and (pointer: coarse) { .modal .charts { grid-template-columns: 1fr; } } .modal .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.modal .frm-act { margin-top: 14px; flex-wrap: wrap; gap: 6px; } .modal .ob-inbounds { margin-top: 10px; }
/* window tabs and tool groups (server / tunnel windows) */
/* monitoring tab: tiles, range switch, charts */
.mon { display: grid; gap: 10px; } .mhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .mrange button { height: 28px; padding: 0 12px; font-size: 12px; }
.mtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mtile { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); } .mtile small { display: block; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); font-weight: 700; } .mtile b { display: block; font-size: 19px; margin: 1px 0; letter-spacing: -.3px; } .mtile span { font-size: 10.5px; color: var(--mut); }
.mtile.ok b { color: var(--ok); } .mtile.warn b { color: var(--warn); } .mtile.bad b { color: var(--bad); }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; } @media (max-width: 760px) and (pointer: coarse) { .mgrid { grid-template-columns: 1fr; } }
.mcard { padding: 10px 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); box-sizing: border-box; } .mcard.mwide { grid-column: 1 / -1; }
.mcard h6 { margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); } .mval { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 700; } .mval.warn { color: var(--warn); } .mval.bad { color: var(--bad); }
.lc-wrap { position: relative; } svg.lc { width: 100%; height: auto; display: block; cursor: crosshair; } svg.lc .lg { stroke: rgba(255,255,255,.07); stroke-width: 1; } svg.lc .lt { fill: var(--mut); font-size: 9px; }
svg.lc .ll { fill: none; stroke: var(--acc-2); stroke-width: 1.6; stroke-linejoin: round; } svg.lc .la { fill: var(--acc-2); opacity: .12; stroke: none; }
svg.lc.warn .ll { stroke: var(--warn); } svg.lc.warn .la { fill: var(--warn); } svg.lc.bad .ll { stroke: var(--bad); } svg.lc.bad .la { fill: var(--bad); }
svg.lc .lc-cur { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 3; } svg.lc .lc-dot { fill: var(--text); stroke: var(--acc-2); stroke-width: 2; }
.lc-tip { position: absolute; top: -4px; transform: translateX(-50%); padding: 3px 9px; border-radius: 8px; background: rgba(8,10,24,.92); border: 1px solid var(--line-hi); font-size: 11px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; } .lc-tip.on { opacity: 1; }
.mstat { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10.5px; color: var(--mut); } .mstat b { color: var(--text); font-weight: 600; } .chart-empty { padding: 26px 0; text-align: center; font-size: 12px; }
/* info windows: every group of facts in its own box */
.iboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; align-items: stretch; }   /* two equal columns, the two boxes of a row are equally tall, a lone last box takes the full width */
.iboxes > .ibox:last-child:nth-child(odd) { grid-column: 1 / -1; } @media (max-width: 760px) and (pointer: coarse) { .iboxes { grid-template-columns: 1fr; } }
.ibox { padding: 10px 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); box-sizing: border-box; } .ibox.wide-box { margin-top: 10px; }
.iboxes > .ibox:last-child:nth-child(odd) .irow > div { white-space: nowrap; }
.ibox h5 { margin: 0 0 6px; padding-bottom: 6px; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--line); } .ibox h5 i { font-style: normal; font-size: 14px; } .ibox h5 small { margin-left: auto; text-transform: none; letter-spacing: 0; }
.irow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 12.5px; } .irow > span { color: var(--mut); flex: none; } .irow > div { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.irow + .irow { border-top: 1px solid rgba(255,255,255,.04); } .irow .td-ports { justify-content: flex-end; }
.ichips { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 0; font-size: 12.5px; }
.wtabs { margin: -2px 0 14px; } .wtabs button { height: 30px; padding: 0 14px; font-size: 12.5px; }
.wgroup { margin-bottom: 14px; } .wgroup h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); }
.wtools { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.wtool { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; transition: background .2s, border-color .2s; }
.wtool i { grid-row: 1 / 3; font-style: normal; font-size: 17px; text-align: center; } .wtool b { font-size: 12.5px; } .wtool small { font-size: 10.5px; color: var(--mut); line-height: 1.3; }
/* uniform tiles (the server's Tools tab): the same size in every group, one title line, at most two lines under it */
.wtools.uni { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 1fr; }
.wtools.uni .wtool { min-height: 62px; align-content: center; } .wtools.uni .wtool > b, .wtools.uni .wtool > small { min-width: 0; }
.wtools.uni .wtool > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wtools.uni .wtool > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wtool.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.wtool:hover { filter: brightness(1.07); border-color: var(--line-hi); } .wtool.danger { border-color: rgba(255,90,120,.4); } .wtool.danger b { color: var(--bad); }
.modal-head > b, .modal-head > span:not(.sp) { white-space: nowrap; } .modal-head button { flex: none; white-space: nowrap; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; } .modal-head .sp { flex: 1; } .modal-head .st::before { width: 10px; height: 10px; }
.modal-body { padding: 14px 18px 18px; overflow: auto; }
.tbl tr.click { cursor: pointer; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* dashboard: compact tiles; the activity box fits the page and scrolls inside */
.page .tiles .tile { padding: 10px 14px; } .page .tiles .tile b { font-size: 20px; }
.card.act { display: flex; flex-direction: column; max-height: calc(100vh - 150px); margin-bottom: 0; box-sizing: border-box; } .card.act .act-list { overflow: auto; min-height: 120px; padding-right: 4px; flex: 1; }
.card.act.big { height: calc(100vh - 150px) !important; } .card.act h3 a { font-size: 11px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; } .card.act h3 .sp { flex: 1; }
.dash-row { padding: 8px 0; } .dash-action { padding: 11px 13px; }
nav a > span:first-child { display: inline-flex; align-items: center; gap: 8px; }

/* ---- charts */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.charts > div { display: grid; gap: 2px; } .charts small { font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); font-weight: 700; }
.spark { display: block; width: 100%; height: 36px; } .spark polyline { fill: none; stroke: var(--acc-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(56,217,245,.5)); }
.spark-v { font-family: var(--mono); font-size: 12px; }
.strip { display: flex; gap: 1px; height: 14px; } .strip i { flex: 1; border-radius: 2px; background: var(--unk); } .strip i.ok { background: var(--ok); } .strip i.bad { background: var(--bad); }

.gl-out { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(5,8,20,.5); font-family: var(--mono); font-size: 12px; white-space: pre-wrap; box-shadow: none; backdrop-filter: none; }

/* ---- repairs */
.fix { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(5,8,20,.45); }
.fx-line { display: flex; gap: 8px; align-items: flex-start; padding: 3px 2px; font-size: 12.5px; line-height: 1.45; } .fx-line span { white-space: pre-wrap; }
.fx-line b { flex: 0 0 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: rgba(255,255,255,.1); }
.fx-line.ok b { background: rgba(61,220,151,.25); color: var(--ok); } .fx-line.bad b { background: rgba(255,107,139,.25); color: var(--bad); } .fx-line.plan b { background: rgba(56,217,245,.25); color: var(--acc-2); }
.fx-line.run { color: var(--mut); align-items: center; } .fx-line.run i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--acc-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- gateway / lists of rows */
.gw-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr) auto; align-items: center; gap: 10px; padding: 7px 12px; margin: 0 0 6px; border-radius: 13px; font-size: 12.5px; box-shadow: var(--edge); transition: background .18s, transform .18s var(--ease); }
.gw-row:hover { filter: brightness(1.06); }
.gw-ok { color: var(--ok); font-weight: 700; } .gw-out { margin: 0 0 12px; padding: 9px 14px; border-radius: 13px; font-size: 12.5px; box-shadow: var(--edge); } .gw-out.ok { color: var(--ok); } .gw-out.bad { color: var(--bad); }
.gw-dirty { margin-top: 6px; color: var(--warn); font-size: 12.5px; }
.ob-act { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; } .ob-act .chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.ob-raw { width: 100%; box-sizing: border-box; min-height: 60px; height: auto; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.05); color: inherit; font-family: var(--mono); font-size: 11.5px; resize: vertical; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); backdrop-filter: none; }
.card > select { width: 100%; max-width: 760px; }

/* ---- configs */
.nk-ghead { display: flex; align-items: center; gap: 8px; margin: 16px 6px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--mut); } .nk-ghead::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); } .nk-ghead span { order: 2; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; background: rgba(255,255,255,.04); } .nk-ghead b { color: var(--text); }
.ob-sec { padding: 8px 0 6px; border-top: 1px solid var(--line); } .ob-sec:first-child { border-top: 0; padding-top: 0; } .ob-sec h4 { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); } .ob-sec h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cfe-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.cfe-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 5px; font-size: 12.5px; } .cfe-row > span { color: var(--mut); font-weight: 600; } .cfe-row input, .cfe-row select { width: 100%; height: 30px; }
.ob-inbounds { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 160px; overflow: auto; padding: 6px 2px; font-size: 12.5px; } .ob-inbounds label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
@media (max-width: 900px) { .cfe-cols { grid-template-columns: 1fr; } .cfe-row { grid-template-columns: 1fr; gap: 3px; } }

/* ---- logs */
.log { padding: 6px 8px; max-height: 70vh; overflow: auto; }
.ll { display: grid; grid-template-columns: 64px 62px 96px 1fr 84px 60px; gap: 10px; align-items: start; padding: 3px 6px; border-radius: 6px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; }
.ll:hover { background: rgba(255,255,255,.06); } .ll time, .ll i, .ll small { color: var(--mut); font-style: normal; } .ll span { white-space: pre-wrap; word-break: break-word; }
.ll b { font-weight: 700; } .ll.WARNING b { color: var(--warn); } .ll.ERROR b, .ll.CRITICAL b { color: var(--bad); } .ll.DEBUG b { color: var(--unk); } .ll.INFO b { color: var(--acc-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 820px) {
  .frm { grid-template-columns: 1fr 1fr; } .ll { grid-template-columns: 56px 1fr; } .ll i, .ll small, .ll em, .ll .tk-or { display: none; }
  .app { grid-template-columns: 1fr; gap: 10px; padding: 10px; } .side { flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; border-radius: 16px; } nav { display: flex; } .side-foot { margin: 0 0 0 auto; display: flex; }
  .main { padding: 0 0 20px; } .head { height: auto; padding: 12px 14px; position: static; } .tbl th, .tbl .hide-sm { display: none; }
}
.ai-stat { margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); } .ai-stat.ok { border-color: rgba(61,220,151,.4); } .ai-stat.bad { border-color: rgba(255,107,139,.45); }
.ai-head { font-weight: 800; margin-bottom: 6px; } .ai-stat.ok .ai-head { color: var(--ok); } .ai-stat.bad .ai-head { color: var(--bad); }
.ai-grid { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 13px; }

/* ---- activity categories, event window, Arvan Radar */
.act-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; } .act-cats button { padding: 3px 11px; font-size: 12px; } .act-cats button small { opacity: .65; margin-left: 3px; } .act-cats button.on { background: var(--grad); color: #fff; border-color: transparent; }
.ev.click { cursor: pointer; } .ev.click:hover { background: rgba(255,255,255,.05); }
.card.radar { margin-top: 16px; } .rd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; margin: 6px 0 10px; } .rd-cols h4 { margin: 4px 0 6px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); }
.rd-row { display: grid; grid-template-columns: 14px minmax(110px, 1.1fr) auto minmax(120px, 1fr); align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 12.5px; } .rd-row:hover { background: rgba(255,255,255,.04); } .rd-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-sites { display: inline-flex; gap: 3px; } .rd-s { width: 9px; height: 9px; border-radius: 3px; background: var(--unk, rgba(255,255,255,.14)); } .rd-s.ok { background: var(--ok); } .rd-s.warn { background: var(--warn); } .rd-s.bad { background: var(--bad); }
.rd-strip { display: flex; gap: 1px; height: 12px; } .rd-strip i { flex: 1; border-radius: 2px; background: rgba(255,255,255,.12); } .rd-strip i.ok { background: rgba(61,220,151,.55); } .rd-strip i.warn { background: var(--warn); } .rd-strip i.bad { background: var(--bad); }
@media (max-width: 900px) { .rd-cols { grid-template-columns: 1fr; } }
/* data centres: one provider per row - marker, name (a link to its site), servers up, tunnels up, site check */
.dc-row { display: grid; grid-template-columns: 14px minmax(120px, 1.4fr) minmax(90px, auto) minmax(90px, auto) minmax(120px, 1fr); align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; font-size: 12.5px; }
.dc-row:hover { background: rgba(255,255,255,.04); } .dc-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; } .dc-name a { color: var(--text); } .dc-name a:hover { color: var(--acc-2); }
.dc-n { font-family: var(--mono); font-size: 12px; white-space: nowrap; } .dc-n small { font-family: var(--font, inherit); } .dc-site { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
@media (max-width: 760px) and (pointer: coarse) { .dc-row { grid-template-columns: 14px 1fr auto; } .dc-row .dc-n:nth-child(4), .dc-row .dc-site { grid-column: 2 / -1; padding-left: 0; } }

/* ---- fade: buttons and cards change colour smoothly when the mouse enters or leaves; frames and boxes (.card, .ibox, .modal) are left alone */
button, .sm, .wtool, .gchip, .gchip button, .tabs button, #nav a, .cf-card, .dash-action, .tile.click, .ev.click, .rd-row, tbody tr, .mchip, a.mut {
  transition: background-color .32s ease, color .32s ease, border-color .32s ease, box-shadow .32s ease, opacity .32s ease, filter .32s ease;
}

/* ---- server list: the number sits right after its own bar, columns are kept apart; a flag has a clear gap before the name */
.pbar { gap: 7px; } .pbar .bar { flex: 0 1 112px; min-width: 24px; } .pbar b { flex: none; min-width: 48px; text-align: left; }
.srv-tbl td:has(.pbar) { padding-right: 30px; }
.flg { margin-right: 4px; }

/* ---- dashboard row: health (small) | problems | activity */
.dash-cols { grid-template-columns: minmax(230px, .8fr) minmax(280px, 1fr) minmax(300px, 1.25fr); } @media (max-width: 1250px) { .dash-cols { grid-template-columns: 1fr 1fr; } .dash-cols .card.act { grid-column: 1 / -1; } } @media (max-width: 760px) and (pointer: coarse) { .dash-cols { grid-template-columns: 1fr; } }
.card.health { padding: 8px 12px; } .card.health h3 { margin: 2px 0 4px; font-size: 11px; } .card.health .dash-row { padding: 4px 0; gap: 8px; } .card.health .dash-name { font-size: 11.5px; } .card.health .dash-name small { font-size: 9.5px; margin-top: 1px; } .card.health b { font-size: 11.5px; }
.card.problems { margin-bottom: 0; overflow: auto; padding: 8px 12px; box-sizing: border-box; } .card.problems h3 { margin: 2px 0 6px; }
.pb-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--line); } .pb-row:first-of-type { border-top: 0; } .pb-t { flex: 1; min-width: 0; } .pb-t b { display: block; font-size: 12.5px; font-weight: 700; } .pb-t b .mut { font-weight: 500; font-size: 11px; margin-left: 3px; } .pb-t small { display: block; font-size: 10.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-row button.sm { flex: none; height: 24px; padding: 0 9px; font-size: 11px; } .pb-more { padding: 6px 0 2px; font-size: 11.5px; } .pb-more a { cursor: pointer; color: var(--mut); }

/* ---- the category chips of the activity box: small enough for one line */
.act-cats { flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; } .act-cats::-webkit-scrollbar { display: none; }
.act-cats button { flex: none; padding: 1px 7px; height: 22px; font-size: 10.5px; line-height: 1; border-radius: 999px; white-space: nowrap; } .act-cats button small { font-size: 9.5px; margin-left: 2px; }
.act-cats .sp { flex: 1 0 4px; }

/* ---- dashboard: the three boxes are one size; the heading stays while the list inside scrolls */
.dash-cols { align-items: stretch; }
.dash-cols > .card { height: 340px; max-height: none; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; margin-bottom: 0; }
.dash-cols > .card > h3, .dash-cols > .card > .act-cats { flex: none; }
.dash-cols .hl-list, .dash-cols .pb-list, .dash-cols .act-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.dash-cols > .card.act.big { height: calc(100vh - 150px) !important; }


/* ---- config lists: the country code as small text */
.cc { display: inline-block; min-width: 20px; margin-right: 3px; font-size: 10px; font-weight: 800; letter-spacing: .6px; color: var(--mut); vertical-align: 1px; }



/* ---- Tools window: last results */
.res-box { padding: 4px 12px; } .res-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; } .res-row:first-child { border-top: 0; } .res-row > .mut { flex: none; } .res-row > span:last-child { min-width: 0; overflow-wrap: anywhere; }


/* ---- status bar: the panel's messages (replaces the pop-up in the corner) */
/* the message bar sits right under the header and stays there while the page scrolls */
.statusbar { position: sticky; top: 80px; height: 30px; margin: -4px 0 12px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: rgba(14,16,28,.82); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--mut); font-size: 12.5px; z-index: 4; cursor: pointer; transition: color .4s ease, border-color .4s ease, box-shadow .4s ease; }
.statusbar .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--unk, rgba(255,255,255,.25)); flex: none; transition: background-color .4s ease, box-shadow .4s ease; }
.statusbar .sb-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .statusbar .sb-time { flex: none; font-family: var(--mono); font-size: 11px; opacity: .6; }
.statusbar.live { color: var(--text); border-color: rgba(124,131,255,.45); box-shadow: 0 0 18px rgba(124,131,255,.18); } .statusbar.live .sb-dot { background: var(--acc, #7c83ff); box-shadow: 0 0 10px var(--acc, #7c83ff); }
.statusbar.ok .sb-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); } .statusbar.bad .sb-dot { background: var(--bad); box-shadow: 0 0 10px var(--bad); } .statusbar.live.bad { border-color: rgba(255,107,139,.5); } .statusbar.live.ok { border-color: rgba(61,220,151,.45); }


/* ---- tunnel test: a fixed log box; smooth page entry */
.tt-log { height: 240px; overflow-y: auto; overflow-anchor: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.2); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; }
.tt-log .fx-line { margin: 0; padding: 1px 0; } .tt-logcard h3 small { font-weight: 500; text-transform: none; letter-spacing: 0; }
@keyframes pgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#page.enter > * { animation: pgIn .14s ease both; }
.main, .modal-body, .act-list, .pb-list, .hl-list { overflow-anchor: none; }



/* ---- "which tunnel for which situation": every box has the same fixed size and does not change on hover (the explanation is a tooltip) */
.ob-sec .bguide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ob-sec .bg-row { height: 78px; box-sizing: border-box; overflow: hidden; align-content: start; padding: 8px 11px; }
.ob-sec .bg-row b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; min-height: 31px; }
.ob-sec .bg-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-sec .bg-row small, .ob-sec .bg-row:hover small { display: none; }



/* ---- tunnel test: the engines as small equal tiles, every transport behind "Advanced" */
.tteng { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
.tte { display: flex; align-items: center; gap: 8px; height: 38px; box-sizing: border-box; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; } .tte b { font-size: 12px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tte small { font-size: 10.5px; }
.tte:hover { filter: brightness(1.08); } .adv-btn { cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--acc-2); text-transform: none; letter-spacing: 0; }
.tta { margin-top: 10px; display: grid; gap: 8px; } .tta-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: start; } .tta-g { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); padding-top: 6px; }
.tta-chips { display: flex; flex-wrap: wrap; gap: 6px; } .tta-chips .ttk { display: flex; align-items: center; gap: 6px; width: 170px; height: 30px; box-sizing: border-box; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tta-chips .ttk:hover { filter: brightness(1.08); }



/* ---- tunnel test, advanced list: one tidy card per engine, the chosen transports lit up */
.tta { gap: 10px; }
.tta-row { grid-template-columns: 170px 1fr; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.tta-g { padding-top: 0; font-size: 11.5px; color: var(--text); display: flex; align-items: center; gap: 8px; } .tta-g::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad); }
.tta-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.tta-chips .ttk { width: auto; height: 32px; border-radius: 10px; color: var(--mut); font-weight: 600; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.tta-chips .ttk:has(input:checked) { color: var(--text); border-color: rgba(124,131,255,.55); background: rgba(124,131,255,.14); }
.tta-chips .ttk input { flex: none; }
/* the situations: one row, every box the same size */
.ob-sec .bguide { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }



/* ---- every log is a box of fixed size with its own scrollbar: new lines come in there and the page stays where it is */
.fix { max-height: 300px; overflow-y: auto; overflow-anchor: none; }
.modal .fix, #ap-story { height: 280px; max-height: none; }
.fix::-webkit-scrollbar, .tt-log::-webkit-scrollbar, .act-list::-webkit-scrollbar { width: 8px; }
/* a tunnel with packet loss: the number is red, a lossy one (15 % or more) is tinted */
.loss { color: var(--bad); font-weight: 700; } .loss.hi { background: rgba(255,107,139,.16); padding: 1px 8px; border-radius: 999px; }
.tbl tr.lossy td { background: rgba(255,107,139,.07); }



/* ---- list rows (tunnels, servers, configs): a slow fade in and out when the mouse comes and goes */
.tbl td { transition: background-color .45s ease, border-color .45s ease; }
.tbl.lift tbody tr:not(.detail) { transition: filter .45s ease; }
.tbl.lift tbody tr:not(.detail):hover { filter: brightness(1.1); }
.tbl.lift tbody tr:not(.detail):hover td { background: rgba(124,131,255,.12); border-color: rgba(124,131,255,.28); transition-duration: .3s; }
.tbl.lift tbody tr.lossy:not(.detail):hover td { background: rgba(255,107,139,.14); border-color: rgba(255,107,139,.3); }


/* ---- a page that is loading or could not load says so (the previous page never stays on screen) */
.loading { display: flex; align-items: center; gap: 12px; padding: 40px 18px; color: var(--mut); font-weight: 600; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--acc-2, #7c83ff); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-err { display: grid; gap: 8px; justify-items: start; padding: 26px 22px; border-radius: 16px; border: 1px solid rgba(255,107,139,.35); background: rgba(255,107,139,.06); margin: 10px 0; } .page-err b { font-size: 14px; } .page-err span { color: var(--mut); font-family: var(--mono); font-size: 12px; }

/* ---- every button and clickable chip fades (colour, border, glow) when the mouse comes and goes */
button, .tabs button, .set-tabs button, .subnav .tabs button, .gchip, .gchip button, .gchip a, .wtool, .tte, .ttk, .bg-row, .dash-action, #nav a, .adv-btn, .lnk, a.mut, .mchip, .pill, .cf-card, .rd-row, .ev.click, .pb-row, .srv-row { transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, filter .3s ease, opacity .3s ease, transform .15s ease; }
button::after { transition: opacity .3s ease; }

/* ---- tunnel test, advanced list: compact rows and chips */
.tteng { gap: 6px; } .tte { height: 34px; padding: 0 10px; }
.tta { gap: 6px; } .tta-row { padding: 6px 10px; grid-template-columns: 128px 1fr; gap: 8px; border-radius: 12px; } .tta-g { font-size: 10.5px; } .tta-g::before { height: 14px; }
.tta-chips { gap: 5px; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); } .tta-chips .ttk { height: 26px; font-size: 11.5px; padding: 0 8px; border-radius: 8px; gap: 5px; } .tta-chips .ttk input { width: 13px; height: 13px; margin: 0; }

/* ---- shop bot: tabs that wrap, settings grid, texts editor, ticket thread */
.sb-tabs { flex-wrap: wrap; margin-bottom: 10px; } .sb-tabs button small { margin-left: 4px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 10px; }
.sb-top .pill { margin-right: 2px; }
/* the bot section: one size for tabs, toolbar buttons and row buttons, nothing clipped */
.sb-tabs { gap: 4px; padding: 4px; } .sb-tabs button { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.page .toolbar button, .sb-quick button { height: 32px; font-size: 12.5px; padding: 0 14px; } .page .toolbar button.sm { height: 28px; padding: 0 11px; font-size: 12px; }
/* the button rows above the lists sit in a frame of their own */
.toolbar:not(.card .toolbar):not(.modal .toolbar):not(.sub-nodes .toolbar) { padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); box-shadow: var(--edge); margin-bottom: 12px; }
.td-act { min-width: max-content; } .td-act button.sm { height: 26px; min-width: 46px; padding: 0 10px; font-size: 11.5px; }
.sb-quick h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.qa-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin: 6px 0 8px; } .qa-row label { display: grid; gap: 4px; font-size: 11.5px; color: var(--mut); min-width: 0; }
.qa-row select, .qa-row input { height: 34px; font-size: 13px; } .qa-cat { display: flex; gap: 6px; } .qa-cat select { flex: 1; min-width: 0; } .qa-cat button { height: 34px; width: 34px; padding: 0; flex: none; }
@media (max-width: 980px) { .qa-row { grid-template-columns: 1fr 1fr; } .qa-row > button { grid-column: 1 / -1; } }
.sb-grid { display: grid; grid-template-columns: 1fr; gap: 6px; } .sb-grid label { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(120px, .9fr); align-items: center; gap: 10px; font-size: 12.5px; }
.sb-grid label span small { display: block; font-size: 10.5px; } .sb-grid input, .sb-grid select { height: 30px; font-size: 12.5px; }
.sb-acts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tx-list { display: grid; gap: 6px; } .tx-row { display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: start; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.tx-row.changed { border-color: rgba(124,131,255,.45); background: rgba(124,131,255,.06); } .tx-key { display: grid; gap: 4px; font-size: 11.5px; word-break: break-all; } .tx-key a { cursor: pointer; font-size: 11px; }
.tx-row textarea { width: 100%; box-sizing: border-box; min-height: 30px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5,8,20,.4); color: var(--text); font-size: 12.5px; line-height: 1.5; resize: vertical; direction: rtl; }
.tk-msgs { display: grid; gap: 8px; max-height: 45vh; overflow: auto; padding: 4px; } .tk-msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); justify-self: start; white-space: pre-wrap; direction: rtl; text-align: right; }
.tk-msg.me { justify-self: end; background: rgba(124,131,255,.16); border-color: rgba(124,131,255,.35); } .tk-msg small { display: block; direction: ltr; text-align: left; margin-bottom: 3px; }
.sb-set .card { margin-bottom: 0; } .sb-set .grid2 { align-items: start; }

/* ---- the AI's reading of the situation */
.ai-say { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(124,131,255,.35); background: rgba(124,131,255,.08); font-size: 13.5px; line-height: 1.6; margin-bottom: 10px; }
.ap-hist { max-height: 420px; overflow: auto; }


/* ==== phones (up to 760 px): a bottom bar with icons instead of the sidebar, one column, tables that scroll sideways, full-screen windows */
@media (max-width: 760px) and (pointer: coarse) {
  html, body { height: auto; min-height: 100%; }
  .app { display: block; padding: 8px 8px calc(126px + env(safe-area-inset-bottom)); gap: 0; height: auto; }
  .main { overflow: visible; padding: 0; }
  .head { position: static; height: auto; padding: 10px 14px; margin-bottom: 10px; border-radius: 16px; } .head h1 { font-size: 17px; } .head p { white-space: normal; font-size: 11px; line-height: 1.35; } #updated { display: none; }
  /* the sidebar becomes a fixed bar at the bottom: one icon and a short word per page */
  .side { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 46; height: auto; min-height: 0; flex-direction: row; align-items: stretch; gap: 0; padding: 4px; border-radius: 18px; overflow: visible; }
  .side .brand, .side-foot { display: none; }
  #nav { display: flex; width: 100%; gap: 0; }
  #nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 52px; min-height: 52px; padding: 0 2px; margin: 0; border-radius: 14px; font-size: 10px; line-height: 1.2; color: var(--mut); text-align: center; }
  #nav a span, #nav a i { display: none; }
  #nav a::before { content: attr(data-icon); position: static; width: auto; opacity: 1; box-shadow: none; background: none; display: block; font-size: 19px; height: 24px; line-height: 24px; } #nav a::after { content: attr(data-short); display: block; font-weight: 700; letter-spacing: 0; }
  #nav a:hover { transform: none; }
  #nav a.on { color: #fff; background: var(--grad); box-shadow: 0 4px 14px rgba(124,131,255,.35); }
  .statusbar { position: sticky; top: 0; margin: 0 0 10px; height: 28px; font-size: 11.5px; padding: 0 10px; z-index: 6; } .statusbar .sb-time { display: none; }
  /* content: one column, compact */
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; } .tile { padding: 10px 12px; } .page .tiles .tile b, .tile b { font-size: 17px; } .tile span { font-size: 10.5px; }
  .subnav { margin: 0 0 10px; } .subnav .tabs { width: 100%; box-sizing: border-box; overflow-x: auto; scrollbar-width: none; } .subnav .tabs::-webkit-scrollbar { display: none; } .subnav .tabs button { height: 32px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
  .toolbar { gap: 6px; } .toolbar input { width: 100%; flex: 1 1 100%; } .toolbar button { height: 30px; padding: 0 10px; font-size: 12px; }
  .toolbar .tabs { flex: 1 1 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .toolbar .tabs::-webkit-scrollbar { display: none; } .toolbar .tabs button { flex: 0 0 auto; white-space: nowrap; }
  .frm, .frm.one { grid-template-columns: 1fr; } .frm label[style*="grid-column"] { grid-column: auto !important; }
  .grid2, .mgrid, .iboxes, .dash-cols, .rd-cols, .sb-set .grid2 { grid-template-columns: 1fr; }
  .dash-cols > .card { height: auto; max-height: 360px; } .card.health { max-height: none; }
  .card { padding: 12px; margin-bottom: 10px; border-radius: 16px; } .card h3 { flex-wrap: wrap; row-gap: 6px; }
  /* tables keep their columns and scroll sideways inside the page */
  .page { overflow-x: auto; -webkit-overflow-scrolling: touch; } .tbl { min-width: 720px; } .srv-tbl, .tun-tbl { min-width: 860px; } .cf-list { min-width: 900px; }
  .tbl td, .tbl th { padding: 0 8px; font-size: 12px; } .td-act button.sm, .cf-acts button.sm { height: 24px; padding: 0 7px; font-size: 11px; }
  /* windows fill the screen */
  .overlay { padding: 0; align-items: stretch; } .modal, .modal.wide { width: 100%; max-height: none; min-height: 100%; border-radius: 0; border: 0; } .modal-body { padding: 10px 12px 90px; }
  .modal-head { padding: 10px 12px; flex-wrap: wrap; gap: 6px; } .modal-head > b { white-space: normal; } .wtools { grid-template-columns: 1fr 1fr; } .wtool { padding: 8px 9px; }
  #ask .overlay { padding: 12px; align-items: center; } .ask-box { width: 100%; }
  .pb-row { flex-wrap: wrap; } .pb-row button.sm { margin-left: auto; }
  .act-cats { flex-wrap: wrap; overflow: visible; }
  .tteng { grid-template-columns: 1fr 1fr; } .tta-row { grid-template-columns: 1fr; gap: 4px; } .tta-chips { grid-template-columns: 1fr 1fr; }
  .ob-sec .bguide { grid-auto-columns: minmax(200px, 1fr); }
  .sb-tabs { gap: 2px; } .sb-tabs button { height: 28px; padding: 0 9px; font-size: 11.5px; } .sb-grid label { grid-template-columns: 1fr; gap: 3px; } .tx-row { grid-template-columns: 1fr; }
  .set-tabs { gap: 2px; } .set-tabs button { height: 30px; padding: 0 10px; font-size: 12px; }
  .tt-log { height: 180px; } .fix, .modal .fix, #ap-story { max-height: 220px; height: auto; }
  .login-box { width: 100%; margin: 10px; }
}
@media (max-width: 760px) and (orientation: landscape) and (pointer: coarse) { .app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } #nav a::after { display: none; } #nav a { height: 36px; min-height: 36px; } }

/* the user window of a Marzban / PasarGuard panel */
.modal.ue { max-width: 760px; }
.ue-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 12px; margin-bottom: 12px; } .ue-use, .ue-facts { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.ue-use .row2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .ue-use b { font-size: 18px; } .ue-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; } .ue-bar i { display: block; height: 100%; background: var(--grad); } .ue-bar i.warn { background: var(--warn); } .ue-bar i.bad { background: var(--bad); }
.ue-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .ue-facts div { display: grid; gap: 2px; } .ue-facts span { font-size: 10.5px; color: var(--mut); text-transform: uppercase; letter-spacing: .6px; } .ue-facts b { font-size: 12.5px; }
.ue-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ue-form .ue-note, .ue-form .ue-save { grid-column: 1 / -1; }
.ue-sub { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); } .ue-sub .ell { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.ue-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); } .ue-acts .sp { flex: 1; }
@media (max-width: 760px) and (pointer: coarse) { .ue-top, .ue-form { grid-template-columns: 1fr; } .ue-facts { grid-template-columns: 1fr 1fr; } }

/* ---- Persian: right to left, the Persian font first; technical text (addresses, code, numbers in tables, charts) stays left to right */
.lang-btn { min-width: 40px; height: 34px; padding: 0 10px; border-radius: 12px; font-weight: 800; font-size: 13px; }
.head-r { display: flex; align-items: center; gap: 8px; } .login-lang { position: absolute; top: 12px; right: 12px; } .login-box { position: relative; }
html[lang="fa"] body, html[lang="fa"] button, html[lang="fa"] input, html[lang="fa"] select, html[lang="fa"] textarea { font-family: "Vazirmatn", "Inter", system-ui, sans-serif; }
html[dir="rtl"] .mono, html[dir="rtl"] code, html[dir="rtl"] pre, html[dir="rtl"] input[type="number"], html[dir="rtl"] input[type="password"], html[dir="rtl"] input[type="url"], html[dir="rtl"] textarea.ob-raw, html[dir="rtl"] svg.lc, html[dir="rtl"] .lc-wrap, html[dir="rtl"] .num, html[dir="rtl"] .gl-out, html[dir="rtl"] .ll time, html[dir="rtl"] .login-lang { direction: ltr; unicode-bidi: plaintext; }
html[dir="rtl"] .num, html[dir="rtl"] td.num { text-align: left; }
html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea { text-align: right; }
html[dir="rtl"] nav a::before { left: auto; right: 0; } html[dir="rtl"] nav a:hover { transform: translateX(-3px); }
html[dir="rtl"] .login-lang { right: auto; left: 12px; }
html[dir="rtl"] .statusbar .sb-time { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .td-act, html[dir="rtl"] .cf-acts { justify-content: flex-start; }
html[dir="rtl"] .tbl th, html[dir="rtl"] .tbl td { text-align: right; }
html[dir="rtl"] .brand { direction: ltr; }

/* ---- AI buttons: gold glass; on hover a magic wand flicks in, sparkles pop and a light sweeps across */
.ai-btn, .ai-btn.pri { position: relative; overflow: hidden; isolation: isolate; color: #fff3cf; font-weight: 800; text-shadow: 0 1px 6px rgba(120, 70, 0, .55);
  background: linear-gradient(135deg, rgba(255, 224, 140, .42), rgba(255, 178, 48, .20) 55%, rgba(255, 214, 120, .30)); border: 1px solid rgba(255, 224, 150, .62);
  box-shadow: 0 6px 18px rgba(255, 176, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -8px 14px rgba(255, 150, 20, .14); backdrop-filter: blur(10px) saturate(1.5); -webkit-backdrop-filter: blur(10px) saturate(1.5);
  transition: padding .28s cubic-bezier(.2, .9, .3, 1.2), box-shadow .3s ease, filter .3s ease, transform .15s ease, border-color .3s ease; }
.ai-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-130%); }
.ai-btn::before { content: "🪄"; position: absolute; left: 9px; top: 50%; font-size: 14px; line-height: 1; opacity: 0; transform: translate(-16px, -30%) rotate(-50deg) scale(.6); transform-origin: 20% 90%; pointer-events: none; text-shadow: none; }
.ai-btn:hover { padding-left: 30px; border-color: rgba(255, 238, 180, .95); filter: brightness(1.12) saturate(1.1);
  box-shadow: 0 8px 26px rgba(255, 184, 56, .42), 0 0 0 1px rgba(255, 230, 160, .35), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -8px 14px rgba(255, 150, 20, .2); }
.ai-btn:hover::before { opacity: 1; animation: wand-in .55s cubic-bezier(.2, .9, .3, 1.3) forwards, wand-wave 1.1s .55s ease-in-out infinite; }
.ai-btn:hover::after { animation: ai-sweep .9s ease-out; }

@keyframes wand-in { 0% { opacity: 0; transform: translate(-16px, -30%) rotate(-50deg) scale(.6); } 60% { opacity: 1; transform: translate(2px, -52%) rotate(14deg) scale(1.15); } 100% { opacity: 1; transform: translate(0, -50%) rotate(0) scale(1); } }
@keyframes wand-wave { 0%, 100% { transform: translate(0, -50%) rotate(0); } 25% { transform: translate(0, -50%) rotate(-16deg); } 55% { transform: translate(0, -50%) rotate(10deg); } }
@keyframes ai-sweep { to { transform: translateX(130%); } }
html[dir="rtl"] .ai-btn::before { left: auto; right: 9px; transform-origin: 80% 90%; } html[dir="rtl"] .ai-btn:hover { padding-left: 14px; padding-right: 30px; }
@media (prefers-reduced-motion: reduce) { .ai-btn:hover::before, .ai-btn:hover::after { animation: none; } .ai-btn:hover::before { opacity: 1; transform: translate(0, -50%); } }

/* the Create tunnel button: bigger, with a slow fade-breathing glow and a fade-in sheen on hover */
button[onclick^="newTunnel("], button[onclick^="openBuild("] { position: relative; overflow: hidden; isolation: isolate; height: 44px; padding: 0 26px; font-size: 15px; font-weight: 800; letter-spacing: .2px; border-radius: 16px;
  animation: ct-breathe 3.6s ease-in-out infinite; transition: transform .35s ease, filter .45s ease, box-shadow .45s ease; }
button[onclick^="newTunnel("]::after, button[onclick^="openBuild("]::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 60%); transition: opacity .55s ease; }
button[onclick^="newTunnel("]:hover, button[onclick^="openBuild("]:hover { transform: translateY(-1px) scale(1.035); filter: brightness(1.1) saturate(1.08); animation-play-state: paused; box-shadow: 0 12px 34px rgba(255, 190, 70, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
button[onclick^="newTunnel("]:hover::after, button[onclick^="openBuild("]:hover::after { opacity: 1; }

@keyframes ct-breathe { 0%, 100% { box-shadow: 0 6px 18px rgba(255, 190, 70, .22); filter: brightness(1); } 50% { box-shadow: 0 8px 30px rgba(255, 190, 70, .46); filter: brightness(1.07); } }
@media (prefers-reduced-motion: reduce) { button[onclick^="newTunnel("], button[onclick^="openBuild("] { animation: none; } }

/* the sidebar signature */
.powered { text-align: center; font-size: 10.5px; letter-spacing: .6px; color: var(--mut); opacity: .75; padding: 2px 0 0; direction: ltr; }
.powered b { font-weight: 800; letter-spacing: 1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- the sidebar menu gets the wand too: it flicks in, a light sweeps across the row, the icon bounces */
@media (min-width: 761px), (pointer: fine) {
  nav a { background-image: linear-gradient(105deg, transparent 38%, rgba(255, 224, 150, .22) 50%, transparent 62%); background-repeat: no-repeat; background-size: 260% 100%; background-position: 140% 0; }
  nav a::after { content: "🪄"; position: absolute; right: 10px; top: 50%; font-size: 13px; line-height: 1; opacity: 0; transform: translate(14px, -30%) rotate(40deg) scale(.6); transform-origin: 80% 90%; pointer-events: none; }
  nav a:hover { border-color: rgba(255, 224, 150, .35); animation: nav-sweep .8s ease-out; }
  nav a:hover::after { opacity: 1; animation: nav-wand-in .5s cubic-bezier(.2, .9, .3, 1.3) forwards, nav-wand-wave 1.1s .5s ease-in-out infinite; }
  nav a:hover .ic { animation: ic-bounce .6s ease; }
  nav a:hover .cnt { opacity: 0; transition: opacity .2s ease; } nav a .cnt { transition: opacity .3s ease; }
}
@keyframes nav-sweep { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@keyframes nav-wand-in { 0% { opacity: 0; transform: translate(14px, -30%) rotate(40deg) scale(.6); } 60% { opacity: 1; transform: translate(-2px, -52%) rotate(-14deg) scale(1.15); } 100% { opacity: 1; transform: translate(0, -50%) rotate(0) scale(1); } }
@keyframes nav-wand-wave { 0%, 100% { transform: translate(0, -50%) rotate(0); } 25% { transform: translate(0, -50%) rotate(14deg); } 55% { transform: translate(0, -50%) rotate(-10deg); } }
@keyframes ic-bounce { 0%, 100% { transform: scale(1.08); } 35% { transform: scale(1.3) rotate(-8deg); } 65% { transform: scale(1.12) rotate(6deg); } }
html[dir="rtl"] nav a::after { right: auto; left: 10px; transform-origin: 20% 90%; }

/* ---- every button: a soft lift with a glow ring on hover, a press, and a ripple where you click */
button { position: relative; overflow: hidden; }
button:not(:disabled):not(.ai-btn):hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 0 3px rgba(124, 131, 255, .16); }

button.pri:not(.ai-btn):hover { box-shadow: 0 10px 26px rgba(124, 131, 255, .4), 0 0 0 3px rgba(124, 131, 255, .22); }
button.danger:hover { box-shadow: 0 6px 18px rgba(255, 90, 120, .25), 0 0 0 3px rgba(255, 90, 120, .18); }
.rpl { display: none; }
@keyframes rpl { to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rpl { display: none; } nav a:hover, nav a:hover::after, nav a:hover .ic { animation: none; } nav a:hover::after { opacity: 1; transform: translate(0, -50%); } }

/* the wand sits beside the text, not on it: the button opens a clear space for it on hover */
.ai-btn::before { left: 12px; }
.ai-btn:hover { padding-left: 42px; }
html[dir="rtl"] .ai-btn::before { left: auto; right: 12px; } html[dir="rtl"] .ai-btn:hover { padding-left: 14px; padding-right: 42px; }

/* the magic wand belongs to the AI buttons only; everything else gets a small white curtain that passes over it on hover (no click animation anywhere) */
@media (min-width: 761px), (pointer: fine) { nav a::after { content: none !important; animation: none !important; } nav a:hover .cnt { opacity: 1; } }
button:not(.ai-btn):not([onclick^="newTunnel("]):not([onclick^="openBuild("]):not(.lang-btn)::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .26) 50%, transparent 62%); transform: translateX(-130%); }
button:not(.ai-btn):not([onclick^="newTunnel("]):not([onclick^="openBuild("]):not(.lang-btn):hover::after { animation: curtain .75s ease-out; }
@keyframes curtain { to { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { button:hover::after { animation: none; } }

/* the wand is a flex item of the button: its room opens on hover and pushes the text aside, so it can never sit on top of it */
.ai-btn, .ai-btn.pri { display: inline-flex !important; align-items: center; justify-content: center; }
.ai-btn::before { position: static !important; flex: none; width: 0; margin: 0; overflow: hidden; opacity: 0; transform: rotate(-40deg) scale(.5); transform-origin: 20% 90%; transition: width .3s cubic-bezier(.2, .9, .3, 1.2), margin .3s ease, opacity .25s ease; animation: none; }
.ai-btn:hover { padding-left: revert !important; padding-right: revert !important; }
.ai-btn:hover::before { width: 16px; margin-inline-end: 6px; opacity: 1; transform: rotate(0) scale(1); animation: wand-wave2 1.1s .3s ease-in-out infinite; }
@keyframes wand-wave2 { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 55% { transform: rotate(10deg); } }
html[dir="rtl"] .ai-btn::before { right: auto !important; left: auto !important; }

/* ---- windows: they open with a soft spring from the front (blur clears, the box rises and settles, a light passes over the top edge once) */
.overlay { animation: ov-in .35s ease both; }
@keyframes ov-in { from { opacity: 0; backdrop-filter: blur(0); } to { opacity: 1; } }
.modal, #ask .modal.ask-box { transform-origin: 50% 40%; animation: win-in .52s cubic-bezier(.2, .9, .25, 1.15) both; position: relative; }
@keyframes win-in { 0% { opacity: 0; transform: perspective(900px) translateY(34px) rotateX(14deg) scale(.92); filter: blur(6px); } 55% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
.modal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 215, 130, .20) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 140% 0; animation: win-shine 1.1s .25s ease-out 1 both; }
@keyframes win-shine { to { background-position: -40% 0; } }
.modal-head { animation: win-head .5s .12s ease both; }
.modal-body { animation: win-head .55s .2s ease both; }
@keyframes win-head { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .overlay, .modal, .modal::after, .modal-head, .modal-body { animation: none !important; } }

/* ---- the task dock (minimised windows) */
#dock { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 60; display: flex; gap: 8px; max-width: calc(100vw - 24px); overflow-x: auto; padding: 4px; }
.dk { display: flex; align-items: center; gap: 9px; min-width: 190px; max-width: 320px; padding: 7px 10px; border-radius: 14px; cursor: pointer; background: var(--glass-hi); border: 1px solid var(--line); backdrop-filter: var(--blur); box-shadow: 0 10px 30px rgba(0,0,0,.4), var(--edge); animation: dk-in .35s cubic-bezier(.2,.9,.25,1.2) both; transition: border-color .2s, background .2s; }
.dk:hover { border-color: rgba(255, 190, 70, .55); }
@keyframes dk-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
.dk-ic { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; }
.dk.run .dk-ic { border: 2px solid rgba(255,255,255,.2); border-top-color: var(--acc-2); animation: spin .8s linear infinite; }
.dk.ok .dk-ic { background: rgba(61,220,151,.25); color: var(--ok); } .dk.bad .dk-ic { background: rgba(255,107,139,.25); color: var(--bad); }
.dk-t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .dk-t b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dk-t small { color: var(--mut); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-x { flex: none; padding: 0 5px; border: 0; background: none; color: var(--mut); cursor: pointer; }
@media (max-width: 700px) and (pointer: coarse) { #dock { bottom: 64px; } }

/* ---- the list of panel messages: time, a coloured dot and the whole text on the full width */
.msg-row { display: grid; grid-template-columns: 74px 12px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.msg-row:last-child { border-bottom: 0; }
.msg-row time { color: var(--mut); font: 12px ui-monospace, Consolas, monospace; padding-top: 1px; }
.msg-row i { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--mut); } .msg-row.bad i { background: var(--bad); } .msg-row.ok i { background: var(--ok); }
.msg-row span { overflow-wrap: anywhere; white-space: pre-wrap; } .msg-row.bad span { color: var(--bad); }

/* ---- DNS changes (Smart repair, next to the history): one re-pointed record per row; Restore puts the previous address back */
.ap-two { margin-bottom: 14px; }
.dns-list { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; }
.dns-row { display: grid; grid-template-columns: 64px 10px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 12.5px; }
.dns-row time { color: var(--mut); font-family: var(--mono); font-size: 11px; } .dns-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(61,220,151,.6); } .dns-row.back i { background: var(--unk); box-shadow: none; }
.dns-t { display: flex; flex-direction: column; min-width: 0; } .dns-t b, .dns-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dns-row.back { opacity: .72; }
@media (max-width: 700px) and (pointer: coarse) { .dns-row { grid-template-columns: 56px 10px minmax(0, 1fr); } .dns-row .pill, .dns-row button { grid-column: 3; justify-self: start; } }

/* ---- Create tunnel: the port check under the form (a used port stops the build; a tunnel on the same port to the same foreign server can be replaced) */
.bcheck { display: grid; gap: 6px; margin: 2px 0 8px; } .bcheck:empty { display: none; }
.bcheck .err, .bconf { padding: 7px 10px; border-radius: 10px; font-size: 12.5px; } .bcheck .err { background: rgba(255,107,139,.09); } .bconf { background: rgba(255,190,70,.09); }
.bcheck .chk { margin: 0; }

/* ---- DNS names: the tick in Create tunnel, the small form on the DNS changes box */
.bdns { padding: 7px 10px; border-radius: 10px; background: rgba(56,217,245,.06); margin: 2px 0 8px; display: grid; gap: 6px; } .bdns .chk { margin: 0; } .bdns input[name=dns_names] { width: 100%; box-sizing: border-box; }
.dns-point { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); } .dns-point input { flex: 1; min-width: 180px; } .dns-point select { max-width: 220px; }

/* ---- tunnel list: the reason under the state (the Score column is gone; the quality test stays in the Traffic cell's title) */
.td-err { display: block; font-size: 10.5px; line-height: 1.2; margin-top: 2px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- menu text in 3D: an extruded edge (stacked shadows going down-right), a soft drop shadow, and a small tilt towards the pointer */
nav { perspective: 700px; }
nav a > span { text-shadow: 0 1px 0 rgba(255,255,255,.12), 1px 2px 0 rgba(0,0,0,.55), 2px 3px 0 rgba(0,0,0,.42), 3px 4px 0 rgba(0,0,0,.30), 4px 6px 8px rgba(0,0,0,.45); transform-origin: left center; transition: transform .3s var(--ease), text-shadow .3s ease, color .25s ease; }
nav a:hover > span { transform: translateZ(14px) rotateY(-9deg) translateX(2px); text-shadow: 0 1px 0 rgba(255,255,255,.2), 1px 2px 0 rgba(0,0,0,.6), 2px 3px 0 rgba(0,0,0,.5), 3px 4px 0 rgba(0,0,0,.4), 4px 5px 0 rgba(0,0,0,.3), 6px 9px 12px rgba(0,0,0,.5); }
nav a.on > span { text-shadow: 0 1px 0 rgba(255,255,255,.25), 1px 2px 0 rgba(255,190,70,.38), 2px 3px 0 rgba(0,0,0,.55), 3px 4px 0 rgba(0,0,0,.42), 4px 6px 10px rgba(0,0,0,.5); }
:root[data-mode="light"] nav a > span { text-shadow: 0 1px 0 rgba(255,255,255,.9), 1px 2px 0 rgba(0,0,0,.18), 2px 3px 0 rgba(0,0,0,.12), 3px 5px 6px rgba(0,0,0,.18); }
:root[data-anim="off"] nav a:hover > span { transform: none; }
@media (prefers-reduced-motion: reduce) { nav a:hover > span { transform: none; } }

/* ---- Smart repair: the attention list in a fixed box (it keeps its size whether one tunnel or ten need a look; long lists scroll), the note under it in its own strip */
.ap-att { height: 230px; overflow: auto; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); box-shadow: var(--edge); display: flex; flex-direction: column; gap: 4px; }
.ap-note { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line); }

/* ---- menu text in 3D, v2: a gradient face with a clean extruded edge (drop shadows, not a black smear), and a quiet picture behind the menu */
nav a > span { text-shadow: none !important; background: linear-gradient(180deg, #ffffff 0%, #b9c0e6 55%, #8d96c4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.16)) drop-shadow(1px 2px 0 rgba(10,12,30,.65)) drop-shadow(2px 3px 0 rgba(10,12,30,.45)) drop-shadow(3px 6px 4px rgba(0,0,0,.35)); }
nav a:hover > span { transform: translateZ(18px) rotateY(-12deg) rotateX(4deg) translateX(3px); filter: drop-shadow(0 1px 0 rgba(255,255,255,.28)) drop-shadow(1px 2px 0 rgba(10,12,30,.7)) drop-shadow(2px 3px 0 rgba(10,12,30,.55)) drop-shadow(3px 4px 0 rgba(10,12,30,.4)) drop-shadow(5px 9px 7px rgba(0,0,0,.45)); }
nav a.on > span { background: linear-gradient(180deg, #fff6d8 0%, #ffd36b 50%, #d9962b 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.3)) drop-shadow(1px 2px 0 rgba(120,70,0,.7)) drop-shadow(2px 3px 0 rgba(60,30,0,.55)) drop-shadow(3px 6px 5px rgba(0,0,0,.4)); }
nav a .ic { filter: drop-shadow(1px 2px 1px rgba(0,0,0,.5)); transform: translateZ(6px); } nav a:hover .ic { transform: translateZ(16px) scale(1.12) rotate(-6deg); }
:root[data-mode="light"] nav a > span { background: linear-gradient(180deg, #2a3055, #4a5390); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(1px 2px 0 rgba(255,255,255,.7)) drop-shadow(2px 4px 3px rgba(0,0,0,.2)); }
.side { position: relative; isolation: isolate; }
.side::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; animation: side-pic 1.6s .2s ease forwards;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='700' viewBox='0 0 360 700'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%2338d9f5'/><stop offset='1' stop-color='%23ffbe46'/></linearGradient></defs><g fill='none' stroke='url(%23g)' stroke-width='1.2' opacity='.9'><path d='M40 420 L120 360 L210 410 L300 340 L330 430 L250 500 L150 480 L80 540 Z'/><path d='M120 360 L150 480 M210 410 L250 500 M300 340 L210 410 M40 420 L80 540 M150 480 L210 410'/><path d='M60 600 L140 560 L230 610 L320 570'/></g><g fill='url(%23g)'><circle cx='40' cy='420' r='4'/><circle cx='120' cy='360' r='4'/><circle cx='210' cy='410' r='5'/><circle cx='300' cy='340' r='4'/><circle cx='330' cy='430' r='3'/><circle cx='250' cy='500' r='4'/><circle cx='150' cy='480' r='4'/><circle cx='80' cy='540' r='3'/><circle cx='140' cy='560' r='3'/><circle cx='230' cy='610' r='4'/><circle cx='320' cy='570' r='3'/><circle cx='60' cy='600' r='3'/></g></svg>") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, #000 100%); }
@keyframes side-pic { to { opacity: .34; } }
@media (max-width: 900px) { .side::after { display: none; } }
:root[data-anim="off"] .side::after { animation: none; opacity: .3; }

/* ---- the sidebar footer: who made it and which version, then Sign out */
.side-card { display: grid; gap: 8px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px rgba(0,0,0,.3); }
.sc-id { display: flex; align-items: center; gap: 8px; direction: ltr; font-size: 11px; color: var(--mut); }
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; animation: sc-pulse 2.4s ease-in-out infinite; }
@keyframes sc-pulse { 50% { opacity: .35; } }
.sc-by { flex: 1; letter-spacing: .4px; } .sc-by b { font-weight: 800; letter-spacing: 1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-ver { padding: 2px 8px; border-radius: 999px; font: 700 10.5px var(--mono); color: var(--text); border: 1px solid rgba(255,190,70,.4); background: rgba(255,190,70,.12); }
.sc-out { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border-radius: 11px; font-weight: 700; color: var(--text); cursor: pointer; background: var(--panel-2); border: 1px solid var(--line); position: relative; overflow: hidden; transition: background .25s, border-color .25s, transform .25s; }
.sc-out i { font-style: normal; transition: transform .35s var(--ease); } .sc-out:hover { background: rgba(255,107,139,.16); border-color: rgba(255,107,139,.45); } .sc-out:hover i { transform: translateX(4px) rotate(-12deg); }
.side-foot .powered { display: none; }

/* ---- Sign out: the panel folds away in 3D, a light sweeps over it, the sign-in page rises */
html.bye #app { transform-origin: 50% 60%; animation: bye-app .85s cubic-bezier(.5, 0, .75, 0) forwards; }
html.bye #app .side { animation: bye-side .8s cubic-bezier(.5, 0, .75, 0) forwards; }
html.bye #app::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; background: linear-gradient(110deg, transparent 30%, rgba(255,215,130,.28) 50%, transparent 70%) no-repeat; background-size: 250% 100%; animation: bye-sweep .8s ease-in forwards; }
@keyframes bye-app { 0% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: perspective(1200px) translateY(60px) rotateX(18deg) scale(.86); filter: blur(10px) saturate(1.4); } }
@keyframes bye-side { to { transform: perspective(900px) translateX(-80px) rotateY(32deg); opacity: .2; } }
@keyframes bye-sweep { from { background-position: 140% 0; } to { background-position: -40% 0; } }

.sc-ver:empty { display: none; }


/* ---- the footer, v2: who made it and the version in a faded box above, Sign out below it */
.side-ver { display: flex; align-items: center; gap: 8px; direction: ltr; padding: 9px 11px; border-radius: 14px; font-size: 11px; color: var(--mut); border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(124,131,255,.10) 55%, rgba(255,190,70,.09) 100%); box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); animation: ver-in 1.2s .4s ease both; }
@keyframes ver-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.side-ver .sc-by { flex: 1; } .side-foot .sc-out { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .side-ver { animation: none; } }

/* ---- Add server: what to install right after adding */
.srv-extra { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(255,255,255,.025); grid-column: 1 / -1; }
.srv-extra textarea { width: 100%; box-sizing: border-box; font: 11.5px var(--mono); }
.srv-extra .x-cert { display: grid; gap: 4px; }

/* ---- the footer and menu texts: quiet until the pointer comes, then a light runs over the letters and they rise */
nav a > span { opacity: .72; transition: opacity .3s ease, transform .3s var(--ease), filter .3s ease; }
nav a:hover > span, nav a.on > span { opacity: 1; }
nav a:not(.on):hover > span { background-image: linear-gradient(100deg, #8d96c4 0%, #8d96c4 30%, #ffffff 46%, #ffe3a0 52%, #ffffff 58%, #8d96c4 74%, #8d96c4 100%); background-size: 260% 100%; animation: txt-shine 1.1s ease-out 1; }
@keyframes txt-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.side-ver { opacity: .6; transition: opacity .3s ease, transform .3s var(--ease), background-color .3s ease; cursor: default; position: relative; overflow: hidden; }
.side-ver:hover { opacity: 1; transform: translateY(-2px); }
.side-ver::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255,215,130,.25) 50%, transparent 65%) no-repeat; background-size: 260% 100%; background-position: 150% 0; }
.side-ver:hover::after { animation: ver-sweep .9s ease-out 1; } @keyframes ver-sweep { to { background-position: -50% 0; } }
.side-ver .sc-by b { transition: letter-spacing .35s var(--ease); } .side-ver:hover .sc-by b { letter-spacing: 2.2px; }
@media (prefers-reduced-motion: reduce) { nav a:not(.on):hover > span, .side-ver:hover::after { animation: none; } }

/* ---- the menu in Poppins, larger (Persian letters fall back to Vazirmatn) */
nav a { font-family: "Poppins", "Vazirmatn", "Inter", system-ui, sans-serif; font-size: 16px; height: 46px; gap: 12px; letter-spacing: .1px; }
nav a > span { font-weight: 600; } nav a.on > span { font-weight: 700; }
nav a .ic { width: 28px; font-size: 18px; } nav a .cnt { font-family: "Poppins", "Inter", sans-serif; font-size: 11.5px; }
@media (max-width: 700px) and (pointer: coarse) { nav a { font-size: 13px; height: auto; } }

/* ---- the footer in Poppins as well, on one line */
.side-ver, .sc-out, .side-foot { font-family: "Poppins", "Vazirmatn", "Inter", system-ui, sans-serif; }
.side-ver { font-size: 12px; white-space: nowrap; gap: 7px; padding: 10px 11px; }
.side-ver .sc-by { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.side-ver .sc-by b { font-weight: 700; letter-spacing: .8px; } .side-ver:hover .sc-by b { letter-spacing: 1.4px; }
.sc-ver { font-family: "Poppins", "Inter", sans-serif !important; font-weight: 600 !important; font-size: 11px !important; flex: none; }
.sc-out { font-size: 14.5px; font-weight: 600; }

/* ---- the footer text: quiet, a little brighter under the pointer; it fits on one line */
.side-ver { opacity: .38; font-size: 11px; gap: 6px; padding: 9px 9px; }
.side-ver:hover { opacity: .9; }
.side-ver .sc-by { overflow: visible; text-overflow: clip; }
.sc-ver { font-size: 10px !important; padding: 2px 6px !important; }

.ap-auto { margin: 0 8px 0 0; font-weight: 600; white-space: nowrap; }


/* ---- severity: a row is red when the tunnel/server is down or critical, yellow when it is bearable; hovering a row or a card fades it up softly */
.tbl tr.sev-red td { background: rgba(255,90,120,.10); } .tbl tr.sev-red td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tbl tr.sev-yellow td { background: rgba(255,200,70,.075); } .tbl tr.sev-yellow td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tbl tr.sev-red:hover td { background: rgba(255,90,120,.20); } .tbl tr.sev-yellow:hover td { background: rgba(255,200,70,.16); }
.tbl tr td { transition: background-color .45s ease, box-shadow .45s ease; }
.tbl tr:not(.sev-red):not(.sev-yellow):hover td { background: rgba(255,255,255,.055); }
.tile, .gw-row, .ap-row, .dns-row, .hl-row { transition: background-color .45s ease, box-shadow .45s ease, opacity .45s ease, transform .35s var(--ease); }
.tile:hover, .gw-row:hover, .ap-row:hover { background-color: rgba(255,255,255,.075); transform: translateY(-1px); }

/* ---- hovering a row or a small card makes it a little bigger (and lifts it above its neighbours) */
.tbl tr, .tile, .gw-row, .ap-row, .hl-row, .wtool, .dns-row { transition: transform .3s var(--ease), background-color .45s ease, box-shadow .45s ease; }
.tbl tbody tr:hover { transform: scale(1.012); position: relative; z-index: 3; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.tile:hover, .gw-row:hover, .ap-row:hover, .hl-row:hover, .wtool:hover, .dns-row:hover { transform: scale(1.025) !important; position: relative; z-index: 3; box-shadow: 0 12px 30px rgba(0,0,0,.38); }
:root[data-anim="off"] .tbl tbody tr:hover, :root[data-anim="off"] .tile:hover { transform: none !important; }
@media (prefers-reduced-motion: reduce) { .tbl tbody tr:hover, .tile:hover, .gw-row:hover, .ap-row:hover, .wtool:hover { transform: none !important; } }

.tf-tabs { margin: 0 0 10px; }


/* one edge bar per row: the severity colour replaces the state colour (no double bar) */
.tbl tr.sev-red td:first-child, .tbl tr.sev-yellow td:first-child { box-shadow: none; }
.tbl tr.sev-red td:first-child { border-left-color: var(--bad); } .tbl tr.sev-yellow td:first-child { border-left-color: var(--warn); }

/* ---- the footer text even quieter */
.side-ver { opacity: .22; } .side-ver:hover { opacity: .85; }
/* ---- mass disruption */
.storm-banner { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255,190,70,.5); background: rgba(255,190,70,.09); font-size: 12.5px; line-height: 1.5; }
.alert-banner { margin: 0 0 12px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255,90,90,.6); background: rgba(255,90,90,.11); font-size: 12.5px; line-height: 1.5; cursor: pointer; }
.alert-banner b { color: var(--bad, #ff6b6b); margin-right: 4px; }

/* packet loss is yellow everywhere; red is for a full outage only */
.loss { color: var(--warn); } .loss.hi { background: rgba(255,200,70,.16); }

/* ---- network disturbances (Smart repair) */
.nw-box { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255,200,70,.4); background: rgba(255,200,70,.07); display: grid; gap: 6px; font-size: 12.5px; }
.nw-row { display: flex; gap: 10px; align-items: baseline; }

/* ---- the wrench in front of a tunnel the smart repair is working on: it turns and taps */
.wrench { display: inline-block; margin-left: 8px; font-size: 14px; transform-origin: 70% 70%; animation: wrench-work 1.1s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,190,70,.6)); }
@keyframes wrench-work { 0%, 100% { transform: rotate(-28deg); } 45% { transform: rotate(22deg) translateY(1px); } 60% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .wrench { animation: none; } }

.nw-title { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--mut); }
.work-box { border-color: rgba(124,131,255,.45); background: rgba(124,131,255,.07); } .work-line { flex: 1; min-width: 0; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-box .nw-row { align-items: center; }

.work-chip { padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(124,131,255,.18); border: 1px solid rgba(124,131,255,.4); } .work-chip.watch { background: none; border-color: var(--line); font-weight: 500; }

/* ---- a server the panel is working on: connecting / installing */
.busy-chip { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--acc-2); background: rgba(56,217,245,.1); border: 1px solid rgba(56,217,245,.35); animation: busy-pulse 1.6s ease-in-out infinite; }
.busy-chip .spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--acc-2); animation: spin .8s linear infinite; }
@keyframes busy-pulse { 50% { opacity: .65; } }

/* the busy chip names what is being done, short; the whole name shows very faintly under the pointer */
.busy-detail { max-width: 46px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .75; font-weight: 600; transition: max-width .35s ease, opacity .35s ease; }
.busy-chip:hover .busy-detail { max-width: 180px; opacity: .4; }

.dup { margin-left: 6px; font-size: 10px; font-weight: 800; padding: 0 6px; border-radius: 999px; color: var(--warn, #f5c542); border: 1px solid rgba(245,197,66,.45); background: rgba(245,197,66,.10); vertical-align: 1px; cursor: help; }

/* a search box has a bar of its own: filtering hides rows at once and never redraws the buttons beside it */
.searchbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -4px 0 10px; } .searchbar input { width: 260px; height: 30px; } .searchbar[data-n]:not([data-n=""])::before { content: attr(data-n); font-size: 11.5px; color: var(--mut, #8b93a7); }
.q-hide { display: none !important; }
/* the small search of the dashboard: type a few letters, the names that start with them are listed */
.dsearch { position: relative; max-width: 420px; margin: 0 0 12px; } .dsearch input { width: 100%; height: 34px; }
.dq-list { position: absolute; z-index: 30; left: 0; right: 0; top: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel, #12151f); box-shadow: 0 12px 30px rgba(0,0,0,.45); overflow: hidden; } .dq-list:empty { display: none; }
.dq-list a { display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; } .dq-list a:hover, .dq-list a.on { background: rgba(255,255,255,.07); } .dq-list a small { margin-left: auto; color: var(--mut, #8b93a7); font-size: 11px; } .dq-list .none { padding: 8px 12px; color: var(--mut, #8b93a7); font-size: 12.5px; }
.ask-choices { flex-direction: column; align-items: stretch; } .ask-choices button { display: flex; flex-direction: column; align-items: center; gap: 2px; height: auto; padding: 9px 14px; } .ask-choices button small { font-size: 11px; font-weight: 500; opacity: .75; }

/* the filter strip (tabs + search) and the search bar of the other pages: a soft frame whose edge fades out */
.fstrip, .searchbar { border: 1px solid transparent; border-radius: 14px; padding: 6px 10px; margin: 0 0 12px; background: linear-gradient(rgba(14,17,28,.6), rgba(14,17,28,.6)) padding-box, linear-gradient(100deg, rgba(255,255,255,.20), rgba(255,255,255,.07) 55%, rgba(255,255,255,0)) border-box; box-shadow: 0 8px 26px rgba(0,0,0,.20); }
.fstrip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .fstrip .tabs { margin: 0; } .fstrip .searchbar { margin: 0 0 0 auto; padding: 0; border: 0; background: none; box-shadow: none; }
@keyframes fstripIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* every list of cards (the rows of Nodes / Tunnels / Configs, the config grid) sits on a soft backdrop: two faint colour glows over a dark glass, an edge that fades out */
.tbl.lift, .cf-grid { box-sizing: border-box; padding: 6px 10px 10px; border-radius: 18px; border: 1px solid transparent; box-shadow: 0 14px 40px rgba(0,0,0,.26);
  background: radial-gradient(760px 200px at 10% 0%, rgba(124,131,255,.11), transparent 70%) padding-box, radial-gradient(640px 180px at 96% 100%, rgba(52,211,153,.07), transparent 70%) padding-box, linear-gradient(rgba(12,15,27,.62), rgba(12,15,27,.62)) padding-box, linear-gradient(110deg, rgba(255,255,255,.18), rgba(255,255,255,.05) 55%, rgba(255,255,255,0)) border-box; }
.cf-grid { padding: 12px; }
html[data-mode="light"] .tbl.lift, html[data-mode="light"] .cf-grid { box-shadow: 0 10px 28px rgba(30,40,80,.10); background: radial-gradient(760px 200px at 10% 0%, rgba(124,131,255,.12), transparent 70%) padding-box, linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) padding-box, linear-gradient(110deg, rgba(60,70,120,.22), rgba(60,70,120,.06) 55%, rgba(60,70,120,0)) border-box; }
.toolbar .tb-search { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); display: flex; align-items: center; } .toolbar .tb-search input { width: 200px; height: 30px; }

/* the primary button (Create tunnel, Add ...): dark text on a gold that reads, a raised 3D key that grows a little on hover, sinks when pressed, with a light sweep */
button.pri:not(.ai-btn) { color: #2b1d02; font-weight: 800; letter-spacing: .2px; text-shadow: 0 1px 0 rgba(255,255,255,.38); border: 1px solid rgba(255,236,176,.6);
  background: linear-gradient(180deg, #f8e293 0%, #ebbd4d 48%, #cb982b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(120,70,0,.28), 0 3px 0 #8d6812, 0 10px 20px rgba(203,152,43,.32);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.3), box-shadow .2s, filter .25s; }
button.pri:not(.ai-btn)::before { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); opacity: 0; pointer-events: none; }
button.pri:not(.ai-btn):hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.05); border-color: rgba(255,240,190,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(120,70,0,.28), 0 5px 0 #8d6812, 0 16px 28px rgba(203,152,43,.45); }
button.pri:not(.ai-btn):hover::before { opacity: 1; animation: priSweep .9s ease; }
button.pri:not(.ai-btn):active { transform: translateY(2px) scale(1.02); box-shadow: inset 0 2px 4px rgba(120,70,0,.35), 0 1px 0 #8d6812, 0 4px 10px rgba(203,152,43,.3); transition-duration: .08s; }
button.pri:not(.ai-btn):disabled { transform: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 0 #8d6812; }
@keyframes priSweep { from { left: -70%; } to { left: 130%; } }
/* the tunnel arrow between the Iran node and the foreign node, in the colour of the tunnel's state */
.fnode { display: flex; align-items: center; gap: 9px; } .fnode .ftxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .fnode .ftxt b { display: block; }
.tun-arr { flex: none; font-size: 17px; line-height: 1; font-weight: 800; color: var(--unk, #8b93a7); margin-left: -4px; transition: color .4s, text-shadow .4s; }
.tun-arr.up { color: var(--ok); text-shadow: 0 0 10px rgba(52,211,153,.55); animation: tunFlow 2.4s ease-in-out infinite; }
.tun-arr.degraded { color: var(--warn); text-shadow: 0 0 10px rgba(251,191,36,.5); } .tun-arr.down { color: var(--bad); text-shadow: 0 0 10px rgba(255,107,139,.5); }
@keyframes tunFlow { 0%, 100% { transform: translateX(-1px); opacity: .75; } 50% { transform: translateX(2px); opacity: 1; } }
/* the sub tabs (Tunnels, Nodes) are folder tabs: they stand on the box under them, and the open one is one piece with it */
body.tabbed .subnav { margin: -4px 0 -1px 2px; position: relative; z-index: 3; }
body.tabbed .subnav .tabs { display: flex; gap: 4px; padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
body.tabbed .subnav .tabs button { height: 38px; padding: 0 20px; border-radius: 15px 15px 0 0; border: 1px solid var(--line); border-bottom: 0; background: rgba(255,255,255,.035); color: var(--mut); box-shadow: none; transform: none; }
body.tabbed .subnav .tabs button:hover { background: rgba(255,255,255,.07); color: var(--text); transform: none; box-shadow: none; }
body.tabbed .subnav .tabs button.on { height: 40px; margin-bottom: -1px; background: #1b1e2b; color: #f6dc8a; border-color: var(--line-hi, rgba(255,255,255,.22)); box-shadow: inset 0 2px 0 #e9bf55, 0 -6px 18px rgba(233,191,85,.10); }
body.tabbed #page > .toolbar:first-child { border-top-left-radius: 0; margin-top: 0; }
/* the arrow column between the Iran node and the foreign node: a big arrow in the middle of its cell */
.td-arrow { text-align: center !important; padding: 0 !important; } .td-arrow .tun-arr { font-size: 26px; margin: 0; display: inline-block; }
/* the tiles (Online / Problems / Average load / Traffic ...) sit in one soft framed box, like the toolbar and the lists */
.tiles { box-sizing: border-box; padding: 10px; border-radius: 18px; border: 1px solid transparent; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  background: linear-gradient(rgba(14,17,28,.6), rgba(14,17,28,.6)) padding-box, linear-gradient(100deg, rgba(255,255,255,.20), rgba(255,255,255,.07) 55%, rgba(255,255,255,0)) border-box; }
html[data-mode="light"] .tiles { background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) padding-box, linear-gradient(100deg, rgba(60,70,120,.22), rgba(60,70,120,.06) 55%, rgba(60,70,120,0)) border-box; }body.tabbed #page > .fstrip:first-child { border-top-left-radius: 0; margin-top: 0; }
/* ---- the info boxes (System / Resources / Access ...): one label column, one value style */
.ibox { padding: 12px 16px 10px; }
.ibox h5 { font-size: 11.5px; font-weight: 800; letter-spacing: 1px; padding-bottom: 8px; margin-bottom: 4px; }
.irow { padding: 7px 0; font-size: 13px; line-height: 1.4; gap: 16px; }
.irow > span { width: 118px; font-weight: 500; font-size: 12.5px; color: var(--mut); }
.irow > div { flex: 1; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 8px; text-align: right; }
.irow > div .mono, .irow > div code { font-size: 12.5px; font-weight: 600; }
.irow > div small, .irow > div .mut, .irow > div .pbar small { font-size: 11.5px; font-weight: 500; color: var(--mut); }
.irow > div .pbar { display: inline-flex; align-items: center; gap: 8px; } .irow > div .pbar b { font-size: 13px; font-weight: 700; }
.iboxes > .ibox:last-child:nth-child(odd) .irow > div { white-space: normal; }

/* ---- the Tools buttons (servers and tunnels): same size, an icon tile, a title and a short line */
.wgroup h4 { display: flex; align-items: center; gap: 10px; margin: 14px 2px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--mut); } .wgroup h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.wtools, .wtools.uni { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.wtool, .wtools.uni .wtool { grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; row-gap: 1px; min-height: 66px; padding: 10px 14px; border-radius: 14px; align-content: center; border: 1px solid var(--line);
  background: linear-gradient(rgba(14,17,28,.55), rgba(14,17,28,.55)) padding-box, linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 60%, rgba(255,255,255,0)) border-box; border-color: transparent; }
.wtool i { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.wtool b, .wtools.uni .wtool > b { font-size: 13px; font-weight: 700; align-self: end; } .wtool small, .wtools.uni .wtool > small { font-size: 11px; color: var(--mut); line-height: 1.3; align-self: start; }
.wtool:hover i { background: rgba(124,131,255,.18); border-color: rgba(124,131,255,.35); }
.wtool.danger i { background: rgba(255,90,120,.12); border-color: rgba(255,90,120,.3); } .wtool.danger { background: linear-gradient(rgba(40,14,22,.55), rgba(40,14,22,.55)) padding-box, linear-gradient(120deg, rgba(255,90,120,.4), rgba(255,90,120,.08) 60%, rgba(255,90,120,0)) border-box; }
/* removed tunnels: a soft box above the list with a Restore button per tunnel */
.trashbox { margin: 0 0 12px; padding: 10px 14px 6px; border-radius: 16px; border: 1px solid transparent; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  background: linear-gradient(rgba(14,17,28,.6), rgba(14,17,28,.6)) padding-box, linear-gradient(100deg, rgba(233,191,85,.4), rgba(233,191,85,.08) 55%, rgba(233,191,85,0)) border-box; }
.trashbox h5 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--mut); } .trashbox h5 small { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.trashbox .trow { display: flex; align-items: center; gap: 14px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.05); } .trashbox .tn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .trashbox .tn b { font-size: 13px; } .trashbox .tn small { font-size: 11.5px; } .trashbox .tw { font-size: 11.5px; white-space: nowrap; } .trashbox .ta { display: flex; gap: 6px; }
/* ---- Settings → Backups */
.bk-parts { display: grid; gap: 8px; margin: 4px 0 12px; }
.bk-part { display: grid; grid-template-columns: 46px minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(rgba(14,17,28,.55), rgba(14,17,28,.55)) padding-box, linear-gradient(110deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 60%, rgba(255,255,255,0)) border-box; } .bk-part.off { opacity: .55; }
.bk-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .bk-main b { font-size: 13.5px; } .bk-main small { font-size: 11.5px; } .bk-last { color: var(--text); opacity: .85; }
.bk-tg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12px; } .bk-un { font-size: 11px; cursor: pointer; text-decoration: underline; }
.bk-act { display: flex; gap: 6px; align-items: center; } a.btn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; font-size: 12px; text-decoration: none; color: inherit; }
.bk-sw { position: relative; width: 40px; height: 22px; display: inline-block; } .bk-sw input { opacity: 0; width: 0; height: 0; position: absolute; } .bk-sw span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--line); transition: background .25s; cursor: pointer; }
.bk-sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #cfd3e4; transition: transform .25s, background .25s; } .bk-sw input:checked + span { background: rgba(52,211,153,.35); } .bk-sw input:checked + span::after { transform: translateX(18px); background: var(--ok); }
.bk-sched { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 2px; border-top: 1px solid var(--line); } .bk-sched label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; } .bk-sched input[type=number] { width: 62px; height: 28px; }
.bk-files { margin-top: 4px; } .bk-more { margin-top: 10px; } .bk-more summary { cursor: pointer; color: var(--mut); font-size: 12px; } .bk-pass { margin-bottom: 10px; }
@media (max-width: 860px) { .bk-part { grid-template-columns: 46px 1fr; } .bk-tg, .bk-act { grid-column: 2; } }
/* ---- lighter: a blur behind every button, row and card made the browser repaint hundreds of layers; only the big surfaces (header, menu, windows, toasts) keep it, and the up-arrows do not move all the time */
button, .card, .tile, .gw-row, .gw-out, .fix, .tabs, .ob-raw, .gl-out, .detail td { backdrop-filter: none; -webkit-backdrop-filter: none; }
.tun-arr.up { animation: none; }

/* ---- the info boxes of a server / tunnel window: the same size, tight, so all of them are in view; the last (wide) box keeps its rows in two columns */
.modal .iboxes { gap: 8px; grid-auto-rows: 1fr; }
.modal .ibox { padding: 8px 12px 5px; }
.modal .ibox h5 { margin-bottom: 1px; padding-bottom: 5px; font-size: 11px; }
.modal .irow { padding: 3px 0; font-size: 12.5px; line-height: 1.3; gap: 12px; }
.modal .irow > span { width: 96px; }
.modal .iboxes > .ibox:last-child:nth-child(odd) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; } .modal .iboxes > .ibox:last-child:nth-child(odd) > h5 { grid-column: 1 / -1; }
.modal .iboxes > .ibox:last-child:nth-child(odd) .irow + .irow { border-top: 0; }
@media (max-width: 760px) and (pointer: coarse) { .modal .iboxes { grid-auto-rows: auto; } .modal .iboxes > .ibox:last-child:nth-child(odd) { display: block; } }
/* ---- the link between the Iran node and the foreign node: the ping over a stretched double arrow, a packet running along it (faster for a lower ping) */
.td-arrow { text-align: center !important; padding: 0 8px !important; } .tbl th.c { text-align: center; }
.tlink { --c: var(--unk, #8b93a7); display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--c); }
.tlink.up { --c: var(--ok); } .tlink.degraded { --c: var(--warn); } .tlink.down { --c: var(--bad); }
.tlink .ms { font-family: var(--mono); font-size: 12px; font-weight: 700; line-height: 1; color: var(--text); } .tlink .ms.warn { color: var(--warn); } .tlink .ms.mut { color: var(--mut); }
.tlink .wire { position: relative; display: block; width: 100%; max-width: 170px; height: 14px; }
.tlink .wire::before, .tlink .wire::after { content: ""; position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: var(--c); opacity: .85; }
.tlink .wire::before { top: 2px; } .tlink .wire::after { bottom: 2px; }
.tlink.down .wire::before, .tlink.down .wire::after { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 9px); }
.tlink .h { position: absolute; width: 0; height: 0; border: 4px solid transparent; }
.tlink .h.r { right: 0; top: -1px; border-left: 7px solid var(--c); border-right: 0; } .tlink .h.l { left: 0; bottom: -1px; border-right: 7px solid var(--c); border-left: 0; }
.tlink .pk { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 7px var(--c); opacity: 0; }
.tlink .pk.a { top: 0; left: 9px; } .tlink .pk.b { bottom: 0; left: calc(100% - 14px); }
.tlink.up .pk { opacity: 1; animation: pkRight calc(var(--ping) * 14ms + 900ms) linear infinite; }
.tlink.up .pk.b { animation-name: pkLeft; animation-delay: calc(var(--ping) * -7ms); }
.tlink .loss { font-size: 10px; line-height: 1; }
@keyframes pkRight { from { left: 9px; } to { left: calc(100% - 14px); } } @keyframes pkLeft { from { left: calc(100% - 14px); } to { left: 9px; } }
@media (prefers-reduced-motion: reduce) { .tlink.up .pk { animation: none; opacity: 0; } }

/* ---- the Tools tiles of a server / tunnel window: three equal columns, every tile the same height, the title on one line, the note on two */
.modal .wtools, .modal .wtools.uni { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.modal .wtool, .modal .wtools.uni .wtool { min-height: 68px; padding: 8px 12px; column-gap: 10px; }
.modal .wtool b, .modal .wtools.uni .wtool > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.modal .wtool small, .modal .wtools.uni .wtool > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; font-size: 11px; line-height: 1.3; }
.modal .wgroup h4 { margin: 10px 2px 6px; }
@media (max-width: 760px) and (pointer: coarse) { .modal .wtools, .modal .wtools.uni { grid-template-columns: 1fr 1fr; } }
/* ================= themes: every one sets the colours, the radius, the art behind the page and how flat or glassy the surfaces are ================= */
/* Ocean: deep water, teal and sky, faint wave lines */
html[data-theme="ocean"] { --bg: #04101c; --bg-2: #07192b; --acc: #2dd4bf; --acc-2: #38bdf8; --grad: linear-gradient(135deg, #0ea5a4 0%, #38bdf8 100%); --line: rgba(125,211,252,.16); --line-hi: rgba(45,212,191,.6); --ok: #34e0a1; }
html[data-theme="ocean"] body::before { background: radial-gradient(46% 40% at 10% 8%, rgba(45,212,191,.32), transparent 70%), radial-gradient(40% 36% at 90% 14%, rgba(56,189,248,.28), transparent 70%), radial-gradient(50% 44% at 65% 96%, rgba(14,116,144,.38), transparent 72%), repeating-linear-gradient(115deg, rgba(125,211,252,.05) 0 1px, transparent 1px 34px); }
html[data-theme="ocean"] body::after { background: linear-gradient(180deg, rgba(4,16,28,0), rgba(4,16,28,.6)); }
/* Emerald: forest greens with a dotted grid */
html[data-theme="emerald"] { --bg: #05120d; --bg-2: #0a1d15; --acc: #34d399; --acc-2: #a3e635; --grad: linear-gradient(135deg, #10b981 0%, #a3e635 100%); --line: rgba(110,231,183,.16); --line-hi: rgba(163,230,53,.55); }
html[data-theme="emerald"] body::before { background: radial-gradient(44% 40% at 12% 10%, rgba(16,185,129,.34), transparent 70%), radial-gradient(38% 34% at 88% 16%, rgba(163,230,53,.20), transparent 70%), radial-gradient(46% 42% at 72% 94%, rgba(6,95,70,.45), transparent 72%), radial-gradient(rgba(110,231,183,.10) 1px, transparent 1.4px) 0 0 / 26px 26px; }
html[data-theme="emerald"] body::after { background: linear-gradient(180deg, rgba(5,18,13,0), rgba(5,18,13,.6)); }
/* Sunset: warm rose, amber and violet */
html[data-theme="sunset"] { --bg: #140a12; --bg-2: #1e0f1b; --acc: #fb7185; --acc-2: #fbbf24; --grad: linear-gradient(135deg, #f43f5e 0%, #fb923c 55%, #fbbf24 100%); --line: rgba(253,164,175,.18); --line-hi: rgba(251,191,36,.6); }
html[data-theme="sunset"] body::before { background: radial-gradient(48% 42% at 8% 6%, rgba(244,63,94,.34), transparent 70%), radial-gradient(40% 36% at 92% 12%, rgba(251,146,60,.30), transparent 70%), radial-gradient(52% 46% at 60% 98%, rgba(124,58,237,.34), transparent 72%), radial-gradient(30% 28% at 40% 40%, rgba(251,191,36,.08), transparent 70%); }
html[data-theme="sunset"] body::after { background: linear-gradient(180deg, rgba(20,10,18,0), rgba(20,10,18,.55)); }
/* Royal: indigo and violet with a field of small stars */
html[data-theme="royal"] { --bg: #0a0716; --bg-2: #120d26; --acc: #a78bfa; --acc-2: #f0abfc; --grad: linear-gradient(135deg, #7c3aed 0%, #c084fc 55%, #f0abfc 100%); --line: rgba(196,181,253,.18); --line-hi: rgba(240,171,252,.6); }
html[data-theme="royal"] body::before { background: radial-gradient(46% 40% at 10% 8%, rgba(124,58,237,.38), transparent 70%), radial-gradient(40% 36% at 90% 14%, rgba(240,171,252,.22), transparent 70%), radial-gradient(50% 44% at 66% 96%, rgba(67,56,202,.40), transparent 72%), radial-gradient(rgba(255,255,255,.28) .7px, transparent 1.1px) 0 0 / 61px 61px, radial-gradient(rgba(196,181,253,.20) .6px, transparent 1px) 23px 31px / 47px 47px; }
html[data-theme="royal"] body::after { background: linear-gradient(180deg, rgba(10,7,22,0), rgba(10,7,22,.55)); }
/* Graphite: a quiet professional dark, thin grid, one blue accent, tighter corners */
html[data-theme="graphite"] { --bg: #0d0f12; --bg-2: #14171c; --acc: #60a5fa; --acc-2: #93c5fd; --grad: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); --line: rgba(255,255,255,.10); --line-hi: rgba(96,165,250,.6); --glass: linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.03)); --glass-hi: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.05)); --r: 14px; --r-s: 10px; --shadow: 0 8px 22px rgba(0,0,0,.5); }
html[data-theme="graphite"] body::before { background: radial-gradient(40% 34% at 14% 8%, rgba(96,165,250,.14), transparent 70%), radial-gradient(36% 32% at 88% 92%, rgba(148,163,184,.10), transparent 70%), linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 44px 44px; }
html[data-theme="graphite"] body::after { background: linear-gradient(180deg, rgba(13,15,18,0), rgba(13,15,18,.5)); }
/* Classic: the plain admin-panel look - solid surfaces, thin borders, square-ish corners, no glow, no blur, a flat blue button */
html[data-theme="classic"] { --bg: #111827; --bg-2: #1f2937; --glass: #1f2937; --glass-hi: #263244; --panel: #1f2937; --panel-2: #273244; --line: #374151; --line-hi: #3b82f6; --edge: none; --shadow: 0 1px 3px rgba(0,0,0,.45); --shadow-hi: 0 4px 12px rgba(0,0,0,.5); --blur: none;
  --text: #e5e7eb; --mut: #9ca3af; --acc: #3b82f6; --acc-2: #60a5fa; --grad: #2563eb; --ok: #22c55e; --bad: #ef4444; --warn: #f59e0b; --unk: #6b7280; --r: 8px; --r-s: 6px; }
html[data-theme="classic"] body::before, html[data-theme="classic"] body::after { display: none; }
html[data-theme="classic"] button { border-radius: 6px; box-shadow: none; background: #273244; } html[data-theme="classic"] button:hover { background: #2f3b50; box-shadow: none; filter: none; border-color: #4b5563; }
html[data-theme="classic"] button.pri:not(.ai-btn) { background: #2563eb; border: 1px solid #1d4ed8; color: #fff; text-shadow: none; box-shadow: none; transform: none !important; } html[data-theme="classic"] button.pri:not(.ai-btn):hover { background: #1d4ed8; }
html[data-theme="classic"] button.danger-fill { background: #dc2626; box-shadow: none; }
html[data-theme="classic"] .tabs { border-radius: 8px; } html[data-theme="classic"] .tabs button, html[data-theme="classic"] .subnav .tabs button { border-radius: 6px; background: transparent; } html[data-theme="classic"] .tabs button.on { background: #2563eb; color: #fff; box-shadow: none; }
html[data-theme="classic"] .tbl td { background: #1f2937; border-radius: 0 !important; border-top: 1px solid #374151; border-bottom: 0; } html[data-theme="classic"] .tbl { border-spacing: 0; } html[data-theme="classic"] .tbl tr:hover td { background: #273244; }
html[data-theme="classic"] .tbl td:first-child { border-left: 3px solid var(--unk); } html[data-theme="classic"] .tbl tr.up td:first-child { border-left-color: var(--ok); } html[data-theme="classic"] .tbl tr.down td:first-child { border-left-color: var(--bad); } html[data-theme="classic"] .tbl tr.degraded td:first-child { border-left-color: var(--warn); }
html[data-theme="classic"] .tbl.lift, html[data-theme="classic"] .cf-grid, html[data-theme="classic"] .tiles, html[data-theme="classic"] .fstrip, html[data-theme="classic"] .searchbar, html[data-theme="classic"] .trashbox, html[data-theme="classic"] .bk-part, html[data-theme="classic"] .wtool, html[data-theme="classic"] .tile { background: #1f2937; border: 1px solid #374151; box-shadow: none; }
html[data-theme="classic"] .tbl.lift, html[data-theme="classic"] .cf-grid, html[data-theme="classic"] .tiles { background: #161e2c; }
html[data-theme="classic"] .head, html[data-theme="classic"] .side, html[data-theme="classic"] .card, html[data-theme="classic"] .modal, html[data-theme="classic"] .toolbar { background: #1f2937 !important; border: 1px solid #374151; box-shadow: var(--shadow); backdrop-filter: none; }
html[data-theme="classic"] .modal { background: #1b2432 !important; } html[data-theme="classic"] .overlay { backdrop-filter: none; background: rgba(3,7,18,.7); }
html[data-theme="classic"] nav a.on { background: #2563eb; box-shadow: none; } html[data-theme="classic"] nav a > span { text-shadow: none !important; }
html[data-theme="classic"] input, html[data-theme="classic"] select, html[data-theme="classic"] textarea { background: #111827; border: 1px solid #374151; border-radius: 6px; }
html[data-theme="classic"] .tun-arr.up, html[data-theme="classic"] .tlink .pk { box-shadow: none; text-shadow: none; }
html[data-theme="classic"][data-mode="light"] { --bg: #f3f4f6; --bg-2: #ffffff; --glass: #ffffff; --glass-hi: #ffffff; --panel: #ffffff; --panel-2: #f3f4f6; --line: #d1d5db; --text: #111827; --mut: #6b7280; --shadow: 0 1px 3px rgba(0,0,0,.12); }
html[data-theme="classic"][data-mode="light"] .head, html[data-theme="classic"][data-mode="light"] .side, html[data-theme="classic"][data-mode="light"] .card, html[data-theme="classic"][data-mode="light"] .toolbar, html[data-theme="classic"][data-mode="light"] .tbl td, html[data-theme="classic"][data-mode="light"] .tile, html[data-theme="classic"][data-mode="light"] .tiles, html[data-theme="classic"][data-mode="light"] .fstrip, html[data-theme="classic"][data-mode="light"] .wtool, html[data-theme="classic"][data-mode="light"] .bk-part { background: #fff !important; border-color: #d1d5db; }
html[data-theme="classic"][data-mode="light"] .tbl.lift, html[data-theme="classic"][data-mode="light"] .cf-grid { background: #f9fafb; } html[data-theme="classic"][data-mode="light"] .tbl tr:hover td { background: #f3f4f6; }
/* the coloured themes in the daytime keep their accent and get a pale version of their art */
html[data-mode="light"][data-theme="ocean"] body::before, html[data-mode="light"][data-theme="emerald"] body::before, html[data-mode="light"][data-theme="sunset"] body::before, html[data-mode="light"][data-theme="royal"] body::before, html[data-mode="light"][data-theme="graphite"] body::before { opacity: .45; }

/* the theme picker of Settings → Appearance */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 10px; }
.tsw { display: flex; flex-direction: column; align-items: stretch; gap: 6px; height: auto; padding: 8px; border-radius: 14px; text-align: left; } .tsw i { display: block; height: 56px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(70% 90% at 18% 18%, var(--ta), transparent 70%), radial-gradient(70% 90% at 88% 85%, var(--tc), transparent 70%), var(--tb); position: relative; overflow: hidden; }
.tsw i::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 7px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.14); border-left: 3px solid var(--ta); }
.tsw.flat i { background: var(--tb); } .tsw.flat i::after { background: #273244; }
.tsw b { font-size: 12.5px; } .tsw small { font-size: 10.5px; color: var(--mut); line-height: 1.25; font-weight: 500; } .tsw.on { border-color: var(--acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 40%, transparent); }
/* ---- the dashboard: search and numbers on one line, the three cards, free slots underneath */
.dash-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; position: relative; z-index: 30; }
.dash-top .dsearch { flex: 1 1 340px; max-width: 460px; margin: 0; }
.dash-kpis { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.kpi { display: flex; align-items: center; gap: 9px; padding: 6px 15px 6px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: transform .18s, border-color .2s; } .kpi:hover { transform: translateY(-1px); border-color: var(--line-hi); }
.kpi span { display: flex; flex-direction: column; line-height: 1.15; } .kpi b { font-size: 15px; } .kpi small { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); }
.dash-free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.dash-slot { height: 92px; border-radius: 16px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--mut); font-size: 12px; opacity: .5; }
@media (max-width: 980px) { .dash-free { grid-template-columns: 1fr; } .dash-kpis { margin-left: 0; } }
.dsearch { z-index: 40; } .dq-list { background: #11162e; background: color-mix(in srgb, var(--bg) 88%, white 12%); border: 1px solid var(--line-hi, var(--line)); z-index: 60; box-shadow: 0 16px 36px rgba(0,0,0,.5); } .dq-list a { border-bottom: 1px solid rgba(255,255,255,.05); } .dq-list a:last-child { border-bottom: 0; }
/* the page buttons under a long list: a soft strip, centred */
.fstrip.pager { justify-content: center; gap: 18px; margin: 8px 0 0; padding: 6px 10px; } .fstrip.pager .sm { min-width: 96px; }
/* ---- the detail windows (server, tunnel, config) are one view without tabs: sections under thin headings, tight, with Edit / Delete in the header */
.wsec { margin-top: 12px; } .wsec > h4 { display: flex; align-items: center; gap: 10px; margin: 0 2px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--mut); } .wsec > h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.wback { margin-bottom: 8px; }
.modal .modal-body { padding-top: 12px; } .modal .wgroup { margin-bottom: 8px; } .modal .mon .mhead { margin-bottom: 6px; }
.modal-head .sm { height: 28px; }
/* the ping link is as wide as its own ping text and sits in the middle of its column (the column is centred between the Iran and the foreign node) */
.td-arrow { text-align: center !important; padding: 0 !important; }
.tlink { display: inline-flex; width: max-content; min-width: 58px; align-items: stretch; gap: 2px; margin: 0 auto; }
.tlink .ms { text-align: center; } .tlink .wire { width: 100%; max-width: none; } .tlink .loss { text-align: center; }
/* ---- the tool tiles of a window are small: an icon and a name; the explanation is the tooltip on hover */
.modal .wtools, .modal .wtools.uni { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px; }
.modal .wtool, .modal .wtools.uni .wtool { grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto; column-gap: 9px; min-height: 36px; padding: 5px 10px; border-radius: 11px; }
.modal .wtool i { grid-row: auto; width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
.modal .wtool b, .modal .wtools.uni .wtool > b { font-size: 12.5px; align-self: center; } .modal .wtool small { display: none; }
.modal .wgroup { margin-bottom: 4px; } .modal .wgroup h4 { margin: 8px 2px 5px; }
.modal .res-row { padding: 4px 0; font-size: 12.5px; }
/* Nodes: the tiles first (in their frame, the folder tabs stand on it), then the buttons joined to the list box under them as one piece */
body.tabbed #page > .tiles:first-child { border-top-left-radius: 0; margin-top: 0; }
.toolbar.joined:not(.card .toolbar) { margin-bottom: 0 !important; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.tbl.lift.joined { border-top-left-radius: 0; border-top-right-radius: 0; }
/* Tunnels: the buttons are one piece with the list box; inside it the groups (Backhaul over GRE ...) and their tables sit frameless */
.lbox { box-sizing: border-box; padding: 4px 10px 10px; border: 1px solid transparent; border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 14px 40px rgba(0,0,0,.26);
  background: radial-gradient(760px 200px at 10% 0%, rgba(124,131,255,.11), transparent 70%) padding-box, radial-gradient(640px 180px at 96% 100%, rgba(52,211,153,.07), transparent 70%) padding-box, linear-gradient(rgba(12,15,27,.62), rgba(12,15,27,.62)) padding-box, linear-gradient(110deg, rgba(255,255,255,.18), rgba(255,255,255,.05) 55%, rgba(255,255,255,0)) border-box; }
.lbox .tbl.lift { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; } .lbox .nk-ghead { margin: 8px 2px 2px; } .lbox .trashbox { margin: 8px 0 4px; }
html[data-mode="light"] .lbox { background: radial-gradient(760px 200px at 10% 0%, rgba(124,131,255,.12), transparent 70%) padding-box, linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) padding-box, linear-gradient(110deg, rgba(60,70,120,.22), rgba(60,70,120,.06) 55%, rgba(60,70,120,0)) border-box; box-shadow: 0 10px 28px rgba(30,40,80,.10); }
html[data-theme="classic"] .lbox { background: #161e2c; border: 1px solid #374151; border-top: 0; box-shadow: none; }

/* the monitoring part of a window: smaller tiles and charts, no helper text */
.modal .mon { gap: 6px; } .modal .mon .mhead small { display: none; } .modal .mrange button { height: 24px; padding: 0 10px; font-size: 11.5px; }
.modal .mtile { padding: 5px 10px; } .modal .mtile b { font-size: 16px; } .modal .mtile span { font-size: 10.5px; }
.modal .mcard { padding: 6px 10px 5px; } .modal .mcard h6 { margin-bottom: 3px; } .modal .mcard svg, .modal .mcard canvas { max-height: 110px; }
/* the ping link, twice as big, in the middle of the gap between the Iran node and the foreign node (the Iran column is narrow, its text is short; the ping column is wide) */
.tlink { min-width: 124px; gap: 3px; }
.tlink .ms { font-size: 13px; }
.tlink .wire { height: 20px; }
.tlink .wire::before, .tlink .wire::after { left: 11px; right: 11px; height: 3px; border-radius: 3px; } .tlink .wire::before { top: 3px; } .tlink .wire::after { bottom: 3px; }
.tlink .h { border-width: 6px; } .tlink .h.r { top: -1.5px; border-left-width: 10px; } .tlink .h.l { bottom: -1.5px; border-right-width: 10px; }
.tlink .pk { width: 7px; height: 7px; } .tlink .pk.a { top: 1px; left: 11px; } .tlink .pk.b { bottom: 1px; left: calc(100% - 18px); }
@keyframes pkRight { from { left: 11px; } to { left: calc(100% - 18px); } } @keyframes pkLeft { from { left: calc(100% - 18px); } to { left: 11px; } }
/* the Iran node is right-aligned and the foreign node left-aligned, so the ping arrow between them is in the exact middle of the gap whatever the widths are; the arrow is thin and faint, the ping number stays readable */
.tun-tbl td.td-node.ir { text-align: right; } .tun-tbl th.r { text-align: right; }
.tlink { min-width: 110px; }
.tlink .wire { height: 16px; opacity: .55; }
.tlink .wire::before, .tlink .wire::after { height: 2px; opacity: .6; } .tlink .wire::before { top: 2px; } .tlink .wire::after { bottom: 2px; }
.tlink .h { border-width: 4px; opacity: .7; } .tlink .h.r { top: -1px; border-left-width: 7px; } .tlink .h.l { bottom: -1px; border-right-width: 7px; }
.tlink .pk { width: 5px; height: 5px; box-shadow: 0 0 5px var(--c); opacity: .9; } .tlink .pk.a { top: 0.5px; } .tlink .pk.b { bottom: 0.5px; }
.tlink.up { --c: color-mix(in srgb, var(--ok) 70%, transparent); } .tlink .ms { opacity: 1; }
.pb-row.click { cursor: pointer; border-radius: 10px; transition: background .2s; } .pb-row.click:hover { background: rgba(255,255,255,.05); } .pb-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ue-ib { grid-column: 1 / -1; } .ue-ib > small span { font-weight: 500; } .ue-ibs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 6px; } .ue-ibp { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); } .ue-ibp > b { display: block; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); margin-bottom: 4px; } .ue-ibp .chk { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 12.5px; }

/* ---- a little life when a page opens: the rows and tiles come in one after the other (only on opening a page, never on the refreshes), and a card lifts softly under the mouse */
#page.enter .tbl tbody tr, #page.enter .tile, #page.enter .cf-card, #page.enter .dash-cols > .card, #page.enter .kpi { animation: rowIn .45s cubic-bezier(.2,.8,.2,1) both; }
#page.enter .tbl tbody tr:nth-child(1), #page.enter .tile:nth-child(1), #page.enter .kpi:nth-child(1) { animation-delay: .02s; } #page.enter .tbl tbody tr:nth-child(2), #page.enter .tile:nth-child(2), #page.enter .kpi:nth-child(2) { animation-delay: .06s; }
#page.enter .tbl tbody tr:nth-child(3), #page.enter .tile:nth-child(3), #page.enter .kpi:nth-child(3) { animation-delay: .10s; } #page.enter .tbl tbody tr:nth-child(4), #page.enter .tile:nth-child(4), #page.enter .kpi:nth-child(4) { animation-delay: .14s; }
#page.enter .tbl tbody tr:nth-child(5) { animation-delay: .18s; } #page.enter .tbl tbody tr:nth-child(6) { animation-delay: .22s; } #page.enter .tbl tbody tr:nth-child(7) { animation-delay: .26s; } #page.enter .tbl tbody tr:nth-child(8) { animation-delay: .30s; }
#page.enter .tbl tbody tr:nth-child(n+9) { animation-delay: .34s; } #page.enter .dash-cols > .card:nth-child(2) { animation-delay: .08s; } #page.enter .dash-cols > .card:nth-child(3) { animation-delay: .16s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card, .tile, .kpi, .bk-part, .wtool, .ibox { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover, .ibox:hover { box-shadow: 0 14px 36px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06); }
:root[data-anim="off"] #page.enter .tbl tbody tr, :root[data-anim="off"] #page.enter .tile, :root[data-anim="off"] #page.enter .cf-card, :root[data-anim="off"] #page.enter .dash-cols > .card, :root[data-anim="off"] #page.enter .kpi { animation: none; }
@media (prefers-reduced-motion: reduce) { #page.enter * { animation: none !important; } }
/* the packets on the ping arrow: slow and faint */
.tlink.up .pk { animation-duration: calc(var(--ping) * 45ms + 4s); opacity: .45; background: rgba(255,255,255,.75); box-shadow: 0 0 4px var(--c); }
/* ================= lightness first: no blur anywhere, small shadows, short animations, nothing that re-layouts every frame ================= */
:root { --blur: none; --shadow: 0 4px 14px rgba(2,6,23,.35); --shadow-hi: 0 8px 22px rgba(2,6,23,.45), 0 0 0 1px rgba(255,255,255,.06); --glass: linear-gradient(160deg, rgba(22,26,44,.92), rgba(16,19,34,.9)); --glass-hi: linear-gradient(160deg, rgba(28,32,52,.96), rgba(20,24,42,.95)); }
.overlay, #ask .overlay, .statusbar, .ai-btn, .ai-btn.pri, .head, .side, .modal, .toast, .card, button, .dk { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.overlay { background: rgba(4,6,18,.72); } .tbl.lift, .cf-grid, .lbox, .tiles, .fstrip, .searchbar, .toolbar:not(.card .toolbar), .trashbox, .bk-part, .wtool, .card:hover, .ibox:hover { box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.tbl.lift tbody tr:not(.detail):hover, .tbl.lift tbody tr:not(.detail) { filter: none !important; transition: none; } .tbl td { transition: background-color .15s; }
.tile:hover, .gw-row:hover, .ap-row:hover, .hl-row:hover, .wtool:hover, .dns-row:hover, .kpi:hover { transform: none !important; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
button, .tabs button, .gchip, .wtool, #nav a, .cf-card, .pill, .mchip { transition-duration: .12s; } button:hover { filter: none; }
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } } .modal, .overlay { animation-duration: .14s !important; }
/* the page-open animation: quick */
#page.enter .tbl tbody tr, #page.enter .tile, #page.enter .cf-card, #page.enter .dash-cols > .card, #page.enter .kpi { animation-duration: .16s; }
#page.enter .tbl tbody tr:nth-child(n+2), #page.enter .tile:nth-child(n+2), #page.enter .kpi:nth-child(n+2), #page.enter .dash-cols > .card:nth-child(n+2) { animation-delay: .04s; } #page.enter .tbl tbody tr:nth-child(n+5) { animation-delay: .08s; }
/* the ping arrow: a fixed width, packets moved by transform (compositor only), no change of the row colour when a tunnel is down or unstable - only the arrow says it */
.tlink { width: 112px; min-width: 112px; } .tlink .wire { width: 112px; }
.tlink .pk.a, .tlink .pk.b { left: 11px; animation-name: none; } .tlink.up .pk.a { animation: pkA calc(var(--ping) * 45ms + 4s) linear infinite; } .tlink.up .pk.b { animation: pkB calc(var(--ping) * 45ms + 4s) linear infinite; animation-delay: calc(var(--ping) * -22ms - 2s); }
@keyframes pkA { from { transform: translateX(0); } to { transform: translateX(84px); } } @keyframes pkB { from { transform: translateX(84px); } to { transform: translateX(0); } }
.tlink.degraded .wire::before, .tlink.degraded .wire::after { background: repeating-linear-gradient(90deg, var(--c) 0 12px, transparent 12px 16px); opacity: .8; }
.tlink.degraded .pk { opacity: .7; background: var(--warn); box-shadow: 0 0 6px var(--warn); } .tlink.degraded .pk.a { animation: pkA 2.2s steps(6) infinite; } .tlink.degraded .pk.b { animation: pkB 2.2s steps(6) infinite; animation-delay: -1.1s; }
.tlink.down .wire::before, .tlink.down .wire::after { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 9px); opacity: .9; } .tlink.down .pk { display: none; } .tlink.down .ms { color: var(--bad); }
.tbl tr.lossy td, .tbl.lift tbody tr.lossy:not(.detail):hover td { background: rgba(255,255,255,.045); border-color: var(--line); }
.tun-tbl tr.down td:first-child, .tun-tbl tr.degraded td:first-child, .tun-tbl tr.up td:first-child { border-left-color: var(--line); }
.modal .iboxes { grid-auto-rows: auto; align-items: start; } .modal .iboxes > .ibox:last-child:nth-child(odd) { align-content: start; }

/* the Resources box: every bar the same width in one column, the number in one column, the detail (used / total) in one column */
.modal .ibox .irow > div { flex-wrap: nowrap; justify-content: flex-end; gap: 10px; }
.modal .ibox .pbar { width: auto; flex: none; gap: 8px; } .modal .ibox .pbar .bar { flex: 0 0 96px; width: 96px; } .modal .ibox .pbar b { min-width: 52px; text-align: right; }
.modal .ibox .irow > div > small.mut { flex: 0 0 122px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the wide Access box: its rows in two tight columns, no empty height */
.modal .iboxes > .ibox:last-child:nth-child(odd) { padding-bottom: 6px; } .modal .iboxes > .ibox:last-child:nth-child(odd) .irow { padding: 3px 0; }
/* ---- the detail windows, tighter still: small info rows, the monitoring part as one compact block */
.modal .iboxes { gap: 6px; } .modal .ibox { padding: 6px 12px 4px; } .modal .ibox h5 { padding-bottom: 4px; margin-bottom: 0; font-size: 10.5px; } .modal .irow { padding: 2px 0; font-size: 12px; }
.modal .wsec { margin-top: 8px; } .modal .wsec > h4 { margin: 0 2px 4px; font-size: 10.5px; }
.modal .mon { gap: 5px; } .modal .mhead { gap: 8px; } .modal .mrange button { height: 22px; padding: 0 9px; font-size: 11px; }
.modal .mtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; } .modal .mtile { display: flex; align-items: baseline; gap: 6px; padding: 4px 9px; border-radius: 9px; } .modal .mtile small { font-size: 9.5px; letter-spacing: .6px; } .modal .mtile b { font-size: 13px; margin: 0; } .modal .mtile span { font-size: 10px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal .mcard.mwide { padding: 4px 10px 6px; } .modal .mcard.mwide h6 { margin-bottom: 2px; } .modal .strip { height: 7px; }
.modal .mgrid { gap: 6px; } .modal .mcard { padding: 4px 9px 4px; } .modal .mcard h6 { font-size: 10px; } .modal .mcard svg, .modal .mcard canvas { max-height: 84px; } .modal .mstat { font-size: 9.5px; margin-top: 1px; } .modal .chart-empty { padding: 12px 0; font-size: 11px; }
.modal .wtools, .modal .wtools.uni { gap: 5px; } .modal .wtool, .modal .wtools.uni .wtool { min-height: 32px; padding: 4px 9px; } .modal .wgroup h4 { margin: 6px 2px 4px; }
/* the diagnosis window: a steady box; the list of what was checked in two columns, the tick first, the text on one line (two at most) */
.modal .ibox.checked { max-height: none; }
.chk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; padding-top: 4px; }
.chk-row { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; font-size: 12px; line-height: 1.35; border-top: 1px solid rgba(255,255,255,.04); }
.chk-row b { flex: none; width: 16px; text-align: center; } .chk-row.ok b { color: var(--ok); } .chk-row.bad b { color: var(--bad); } .chk-row span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) and (pointer: coarse) { .chk-list { grid-template-columns: 1fr; } }
/* the server name cell shows its badges whole (network, bad route, disabled): the datacentre name is in the window, not here */
.srv-tbl td.name { overflow: visible; text-overflow: clip; } .srv-tbl td.name .pill { margin-left: 6px; }

/* ---- every list box has a fixed height and scrolls inside; its header row stays on top */
.lbox { max-height: calc(100vh - 290px); min-height: 150px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.lbox.full { margin: 0 0 10px; border-top: 1px solid transparent; border-radius: 18px; }
.lbox thead th { position: sticky; top: 0; z-index: 3; background: #11162b; background: color-mix(in srgb, var(--bg) 88%, white 12%); }
.lbox .tbl { margin: 0; } .lbox.full .tbl.lift, .lbox.full .tbl { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.lbox.full > .cf-grid { padding: 6px; background: none; border: 0; box-shadow: none; }
.lbox::-webkit-scrollbar { width: 8px; height: 8px; } .lbox::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 8px; }
@media (max-width: 760px) and (pointer: coarse) { .lbox { max-height: none; } }
html[data-mode="light"] .lbox thead th { background: #e9edf6; }
.pill.new { color: #1b1405; background: linear-gradient(180deg, #f8e293, #ebbd4d); border-color: transparent; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; font-size: 9.5px; padding: 0 7px; }

/* the list boxes never show a horizontal scrollbar that comes and goes: the table fits the box, the vertical bar keeps its place, a hovered row does not move or grow */
@media (min-width: 761px), (pointer: fine) { .lbox { overflow-x: hidden; scrollbar-gutter: stable; } }
.lbox tbody tr, .lbox tbody tr:hover { transform: none !important; } .lbox .tbl { width: 100%; max-width: 100%; }
/* the server window, rebuilt: one button bar, three equal tight boxes, aligned bars, a line of tunnels, a line of results */
.sbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding: 6px 8px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.sbar .sg { display: inline-flex; flex-wrap: wrap; gap: 4px; } .sbar .sep { width: 1px; height: 18px; margin: 0 6px; background: var(--line); }
.abtn { height: 26px; padding: 0 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; } .abtn i { font-style: normal; font-size: 13px; line-height: 1; } .abtn.danger { color: var(--bad); border-color: rgba(255,90,120,.4); }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.sbox { padding: 6px 12px 7px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); box-sizing: border-box; } .sbox h5 { margin: 0 0 3px; padding-bottom: 4px; display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--line); } .sbox h5 i { font-style: normal; font-size: 13px; }
.kv2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; font-size: 12px; } .kv2 + .kv2, .rrow + .kv2, .kv2 + .rrow { border-top: 1px solid rgba(255,255,255,.04); } .kv2 > span { flex: none; width: 84px; color: var(--mut); } .kv2 > div { flex: 1; min-width: 0; text-align: right; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kv2 > div a { font-weight: 600; }
.rrow { display: grid; grid-template-columns: 38px minmax(40px, 1fr) 44px 92px; align-items: center; gap: 8px; min-height: 22px; font-size: 12px; } .rrow + .rrow { border-top: 1px solid rgba(255,255,255,.04); } .rrow > span { color: var(--mut); } .rrow > b { text-align: right; font-weight: 700; } .rrow > small { text-align: right; color: var(--mut); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; } .rbar u { display: block; height: 100%; border-radius: 3px; background: var(--ok); text-decoration: none; } .rbar u.warn { background: var(--warn); } .rbar u.bad { background: var(--bad); }
.sline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 5px 12px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; }
.sline > small { color: var(--mut); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: 10.5px; } .sline .rc { display: inline-flex; align-items: baseline; gap: 6px; } .sline .rc small { color: var(--mut); font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; } .tchip small { color: var(--mut); } .tchip .st { width: 8px; height: 8px; border-radius: 50%; display: inline-block; padding: 0; background: var(--unk); } .tchip .st.up { background: var(--ok); } .tchip .st.down { background: var(--bad); } .tchip .st.degraded { background: var(--warn); }
@media (max-width: 900px) { .sgrid { grid-template-columns: 1fr; } }

/* the button bar is ONE row: the buttons share the width, shrink their padding and font when the window is narrow, and never wrap */
.sbar { flex-wrap: nowrap; gap: 3px; overflow: hidden; } .sbar .sg { flex: 1 1 auto; flex-wrap: nowrap; gap: 3px; min-width: 0; } .sbar .sg:last-child { flex: 0 0 auto; } .sbar .sep { flex: none; margin: 0 4px; }
.sbar .abtn { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 0 clamp(4px, .7vw, 10px); font-size: clamp(10px, .82vw, 12px); gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sbar .abtn i { font-size: clamp(10px, .85vw, 13px); }
/* the tunnels line and the last-results line are two rows of ONE box; the monitoring tiles are one row */
.slines { margin-bottom: 8px; padding: 3px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.slines .sline { margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: none; } .slines .sline + .sline { border-top: 1px solid rgba(255,255,255,.05); }
.modal .mtiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.modal .mtile { min-width: 0; overflow: hidden; } .modal .mtile b { white-space: nowrap; } .modal .mtile span { max-width: 62%; }
/* the charts of a window are small: three in a row, short, so the window needs no scrolling for them */
.modal .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.modal .mcard svg.lc { max-height: 64px; width: 100%; } .modal .mcard h6 { margin-bottom: 0; } .modal .mcard h6 .mval { font-size: 14px; } .modal .mstat { font-size: 9.5px; margin-top: 0; }
@media (max-width: 900px) { .modal .mgrid { grid-template-columns: 1fr 1fr; } }
/* a page with a list box has ONE scrollbar - the list's; the page itself does not scroll (the box is sized to end at the bottom of the window) */
@media (min-width: 761px), (pointer: fine) { .main:has(.lbox) { overflow-y: hidden; overflow: clip; min-height: 0; min-width: 0; } }      /* (clip on BOTH axes - with one axis hidden the other clip turns into hidden: a page that locks its scroll cannot be scrolled by anything, a focus or a scroll into view, so the header never goes off the top, 2026-10-21; min-height 0 and min-width 0: a box that is no scroll container any more must not grow to its content (without min-width 0 the grid column grew to the widest nowrap text: the page was 1659 px wide at 1200-1536 px and the right of it, with Add server, was out of sight); hidden stays for a browser that does not know clip) */
/* "Open in..." is a select that looks like the other buttons */
select.abtn-open { appearance: none; -webkit-appearance: none; cursor: pointer; text-align: center; text-align-last: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: inherit; font-weight: 700; } select.abtn-open option { background: #151a30; color: #eef1ff; }
/* the three boxes: the labels are short and on one line; the tunnel chips share the row */
.kv2 > span { width: 74px; white-space: nowrap; } .kv2 > div .tchip { margin-left: 8px; font-weight: 600; font-size: 11.5px; } .kv2 > div .tchip:first-child { margin-left: 0; } .kv2 > div .tchip .st { width: 7px; height: 7px; }
.kv2 > div small { font-weight: 500; }
/* Resources: one grid for every row - the label, the bar, and ONE column on the right that holds every number (the percent with its used / total beside it, the traffic, the age of the sample) */
.rrow { grid-template-columns: 52px minmax(30px, 1fr) 136px; gap: 10px; }
.rrow > em { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-style: normal; white-space: nowrap; } .rrow > em b { font-weight: 700; } .rrow > em small { color: var(--mut); font-size: 10.5px; font-weight: 500; min-width: 66px; text-align: right; }
.rrow > i:not(.rbar) { display: block; }
/* the outages card under the three charts: full width, its rows in two columns, one line each */
.modal .mgrid > .mcard:last-child:nth-child(4) { grid-column: 1 / -1; }
.modal .mcard:has(> .irow) { display: block; } .modal .mcard .irow { padding: 2px 0; font-size: 11.5px; } .modal .mcard .irow > div { text-align: right; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a cut tunnel: a red cross in the middle of its two arrows */
.tlink .xx { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-style: normal; font-weight: 900; font-size: 15px; line-height: 1; color: var(--bad); text-shadow: 0 0 3px var(--panel, #14161f), 0 0 3px var(--panel, #14161f); pointer-events: none; }

/* Tunnel test + Network advisor in one view */
.tt-bar { margin-bottom: 8px; } .tt-bar select.sm { height: 26px; font-size: 12px; max-width: 190px; } .tt-bar .sg { align-items: center; gap: 6px; }
.tt-sel { margin-bottom: 8px; } .tt-sel h5 .adv-btn { margin-left: 12px; text-transform: none; letter-spacing: 0; }
.tteng.row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .tteng.row .tte { height: 28px; padding: 0 10px; width: auto; }
.tt-sel .bguide { margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; } .tt-sel .bg-row { padding: 6px 10px; gap: 1px; } .tt-sel .bg-row b { font-size: 12px; } .tt-sel .bg-row span { font-size: 11px; }
.tt-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; }
.tt-res, .tt-two .tt-log { height: 320px; box-sizing: border-box; overflow-y: auto; overflow-anchor: none; }
.tt-two .tt-log { margin-top: 4px; } .tt-res { margin-top: 2px; } .tt-res .tbl { width: 100%; } .tt-res .tbl th { position: sticky; top: 0; background: var(--panel); z-index: 1; } .tt-res .tbl td, .tt-res .tbl th { padding: 5px 8px; font-size: 12px; }
.tt-res .tbl td.name { white-space: nowrap; } .tt-res .tbl td.name .st { display: inline-block; width: 8px; height: 8px; padding: 0; border-radius: 50%; margin-right: 7px; background: var(--bad); vertical-align: middle; } .tt-res .tbl td.name .st.up { background: var(--ok); }
.tt-use { text-align: right; white-space: nowrap; } .tt-use .sm { height: 24px; } .tt-empty { padding: 28px 12px; text-align: center; font-size: 12.5px; }
@media (max-width: 900px) { .tt-two { grid-template-columns: 1fr; } }

/* tunnel list: tighter cell padding so the name, type, status, ping and traffic are shown whole */
.tun-tbl td, .tun-tbl th { padding-left: 8px; padding-right: 8px; }

/* user inbounds: one row per protocol, click it to see its inbounds and ports */
.ue-ibs { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; align-items: start; }
.ue-ibp { padding: 0; } .ue-ibp > summary { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; cursor: pointer; list-style: none; font-size: 12px; } .ue-ibp > summary::-webkit-details-marker { display: none; }
.ue-ibp > summary::before { content: "▸"; color: var(--mut); font-size: 11px; width: 10px; } .ue-ibp[open] > summary::before { content: "▾"; }
.ue-ibp > summary b { margin: 0; display: inline; color: var(--text); } .ue-ibp > summary small { font-size: 11px; } .ue-ibp.none > summary small { color: var(--bad); }
.ue-ibp > summary a { display: none; font-size: 11px; font-weight: 700; color: var(--acc-2); cursor: pointer; } .ue-ibp[open] > summary a { display: inline; }
.ue-ibp[open] { grid-column: 1 / -1; } .ue-ibl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 12px; padding: 2px 12px 8px; border-top: 1px solid var(--line); }
.ue-ibl .chk { display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 0; } .ue-ibl .chk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ue-ibl .chk em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--acc-2); }
.tt-bar .abtn { flex: none; width: auto; min-width: 0; } .tt-bar .sg { flex: none; } .tt-bar .abtn.pri, .tt-bar .abtn.danger { padding: 0 12px; }

/* the Marzban-node certificate: its remember-tick is an ordinary tick row (it was laid out as a grid and floated over the box above) */
.srv-extra label.chk.x-cert { display: flex; align-items: center; gap: 8px; height: 28px; margin-top: 2px; } .srv-extra label.chk.x-cert.hidden { display: none; }

/* Restore window */
.bk-rnote { font-size: 12px; margin-bottom: 8px; } .bk-rlist { display: grid; gap: 4px; margin-bottom: 10px; }
.bk-rrow { display: grid; grid-template-columns: 90px 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; }
.bk-rrow .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.bk-rfile { cursor: pointer; }
/* tunnel count in the toolbar: one framed box, a dot and a number per state */
.tcount { display: inline-flex; align-items: center; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 12px; color: var(--mut); overflow: hidden; } .tcount .tc { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 100%; } .tcount .tc + .tc { border-left: 1px solid var(--line); } .tcount b { color: var(--text); font-weight: 800; } .tcount i { width: 8px; height: 8px; border-radius: 50%; background: var(--unk); } .tcount .up i { background: var(--ok); } .tcount .down i { background: var(--bad); } .tcount .unstable i { background: var(--warn); }

/* the four numbers of a panel sit in its top bar */
.pstat .tc { gap: 6px; } .pstat .tc i { display: none; } .pstat small { color: var(--mut); font-size: 11px; } .pstat .tc.click { cursor: pointer; } .pstat .tc.click:hover { background: rgba(255,255,255,.06); }
.pstat .tc { padding: 0 10px; }

/* the users list: a page holds what fits the window; numbered pages sit under it */
.pgn { min-width: 28px; height: 26px; padding: 0 8px; } .pgn.on { background: var(--grad); color: #1a1405; border-color: transparent; } .pgn-gap { color: var(--mut); padding: 0 4px; }

.pn-foot { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 4px 8px; } .pn-foot .tabs { flex: none; } .pgs { display: inline-flex; gap: 4px; align-items: center; } .pn-foot .sp { flex: 1; }
#pn-body > .toolbar { margin-bottom: 6px; }

/* users: a counter of the ticked ones and one action menu */
.pn-sel .tc a { cursor: pointer; color: var(--acc-2); font-weight: 700; } .pn-sel.on b { color: var(--acc-2); } #pn-act { height: 26px; } #pn-act:disabled { opacity: .5; }

/* users: traffic as used / left / account volume */
.trf { line-height: 1.2; } .trf-t { display: flex; gap: 12px; font-size: 12px; color: var(--mut); } .trf-t b { color: var(--text); font-family: var(--mono); font-weight: 700; } .trf-b { display: flex; align-items: center; gap: 8px; margin-top: 3px; } .trf-b .rbar { flex: 1; min-width: 40px; } .trf-b small { font-size: 10.5px; color: var(--mut); white-space: nowrap; } th small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--mut); }

/* the tick column: the box is shown whole (the cell padding used to cut it) */
.tbl td:first-child:has(> input[type=checkbox]), .tbl th:first-child:has(> input[type=checkbox]) { padding: 0 0 0 14px; overflow: visible; }

/* users and hosts: the search sits in its own box, the controls beside it never move while typing */
.pn-bars { display: flex; align-items: stretch; gap: 8px; margin: 0 0 6px; } .pn-bars .searchbar { flex: none; width: 280px; margin: 0; padding: 0 8px; justify-content: flex-start; } .pn-bars .searchbar input { width: 100%; height: 28px; } .pn-bars .toolbar { flex: 1; min-width: 0; margin: 0; } .pn-cnt { display: inline-block; min-width: 84px; white-space: nowrap; }
#pn-body > .pn-bars { margin-bottom: 6px; }

/* every search box: a small round cross at its end clears the text */
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 0 0 0 6px; border-radius: 50%; cursor: pointer; opacity: .8; background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 2.5l5 5m0-5l-5 5' stroke='%23e8ecff' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 9px no-repeat; } input[type=search]::-webkit-search-cancel-button:hover { opacity: 1; background-color: rgba(255,255,255,.28); }
html[data-mode="light"] input[type=search]::-webkit-search-cancel-button { background-color: rgba(20,24,40,.14); }

.ue-ibp > summary .ib-master { margin-right: 2px; }

/* a tick box is always a square (a table or form rule used to stretch it) */
:not(.bk-sw) > input[type=checkbox] { width: 18px; height: 18px; min-width: 18px; max-width: 18px; min-height: 18px; max-height: 18px; padding: 0; aspect-ratio: 1 / 1; }

/* users and hosts: the search box and the controls box are the same kind of box, the same height */
.pn-bars .toolbar { margin: 0; align-self: stretch; } .pn-bars .toolbar.pn-sb { flex: none; width: 280px; } .pn-bars .toolbar.pn-sb input { width: 100%; flex: 1 1 auto; height: 30px; }

/* the user window: actions bar, three boxes, the save row */
.ue-form { display: block !important; } .ue-grid { margin-bottom: 8px; align-items: stretch; } .ue-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ue-big { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 2px; } .ue-big b { font-size: 22px; } .ue-big span { color: var(--mut); font-size: 12px; }
.ue-usage .ue-bar { margin: 4px 0 4px; height: 6px; }
.kf { flex-wrap: nowrap !important; align-items: center !important; } .kf > span { flex: none; width: 84px; } .kf input, .kf select { flex: 1; min-width: 0; height: 26px; font-size: 12px; padding: 0 8px; border-radius: 8px; } .kf em { font-style: normal; color: var(--mut); font-size: 11px; }
.ue-inb .ue-ibs { max-height: 214px; overflow-y: auto; margin-top: 4px; grid-template-columns: 1fr; } .ue-inb .ue-ibp[open] { grid-column: auto; }
.ue-acts { margin-bottom: 8px; } .ue-save { margin-top: 2px; }
@media (max-width: 900px) { .ue-grid, .ue-grid.two { grid-template-columns: 1fr; } }
.ue-account .kv2 { min-height: 34px; padding: 3px 0; } .ue-account .kf input, .ue-account .kf select { height: 28px; } .ue-link { cursor: pointer; color: var(--acc-2); } .ue-link:hover { text-decoration: underline; }

.sbox { position: relative; } .copied { position: absolute; top: 6px; right: 10px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #10131f; background: var(--ok); animation: copiedIn .18s ease-out; box-shadow: 0 2px 8px rgba(0,0,0,.3); } @keyframes copiedIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* hosts: a row per port, click it to see its hosts and inbounds */
.hp-list { display: grid; gap: 6px; align-content: start; overflow-y: auto; padding-right: 2px; }
.hp { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); } .hp > summary { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; cursor: pointer; list-style: none; font-size: 12.5px; } .hp > summary::-webkit-details-marker { display: none; }
.hp > summary::before { content: "▸"; color: var(--mut); font-size: 11px; width: 10px; } .hp[open] > summary::before { content: "▾"; } .hp[open] > summary { border-bottom: 1px solid var(--line); }
.hp-port { font-family: var(--mono); font-size: 15px; min-width: 84px; } .hp-st { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); font-size: 12px; } .hp-st .st { width: 8px; height: 8px; padding: 0; border-radius: 50%; display: inline-block; background: var(--unk); } .hp-st .st.up { background: var(--ok); }
.hp > summary a { font-size: 11.5px; font-weight: 700; color: var(--acc-2); cursor: pointer; } .hp > summary a:hover { text-decoration: underline; } .hp.alloff .hp-port { color: var(--mut); }
.hp-rows { display: grid; padding: 2px 10px 6px; } .hp-row { display: grid; grid-template-columns: 24px minmax(130px, 200px) minmax(0, 1.3fr) minmax(0, 1fr) 78px auto; align-items: center; gap: 10px; min-height: 36px; font-size: 12px; } .hp-row + .hp-row { border-top: 1px solid rgba(255,255,255,.05); } .hp-row.off .name { color: var(--mut); }
.hp-row .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hp-act { display: inline-flex; gap: 4px; justify-content: flex-end; } .hp-edit { padding: 6px 0 10px; }
/* Users | Hosts tabs: a box of their own at the start of the row */
.pn-bars .toolbar.pn-tabs { flex: none; padding-left: 6px; padding-right: 6px; } .pn-tabs .tabs { margin: 0; } .pn-foot:empty { display: none; }

/* Create tunnel: layered boxes (servers, tunnel, check), a collapsible advanced box, a foot bar */
.frm.build { display: block !important; } .bld-grid { align-items: stretch; margin-bottom: 8px; }
.bf { align-items: center !important; } .bf > span { width: 64px !important; } .bf select, .bf input { flex: 1; min-width: 0; height: 28px; font-size: 12px; padding: 0 8px; border-radius: 8px; }
.bf-auto { cursor: pointer; font-size: 10.5px; font-weight: 700; color: var(--acc-2); margin-left: 4px; text-transform: none; } .bf-note { font-size: 11px; padding: 4px 0 0; line-height: 1.35; min-height: 14px; }
.bld-check .bcheck { display: grid; gap: 6px; font-size: 12px; padding-top: 4px; } .bld-check .bcheck:empty::before { content: "Pick the servers and the ports: they are checked here (is the port free, is there a tunnel to replace)."; color: var(--mut); font-size: 11.5px; line-height: 1.4; }
.bld-check .bcheck .err { font-size: 12px; line-height: 1.4; } .bld-check .bconf { padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(255,190,70,.35); background: rgba(255,190,70,.07); } .bld-check .bconf .chk { align-items: flex-start; height: auto; font-size: 12px; line-height: 1.4; }
.badv.sbox { padding-bottom: 7px; margin-bottom: 8px; } .adv-h { cursor: pointer; user-select: none; } .adv-h small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mut); } .adv-h em { font-style: normal; color: var(--mut); }
.badv .sbox, .adv-h { border-bottom: 0 !important; margin-bottom: 0 !important; } .adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; } .adv-grid label { font-size: 11px; } .adv-grid label input, .adv-grid label select { height: 28px; font-size: 12px; } .adv-grid label.chk { height: 28px; align-self: end; }
.bld-foot { margin: 0; } .bld-foot button { height: 30px; }
@media (max-width: 900px) { .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Recently removed: a slim box, one line per tunnel */
.trashbox { margin: 0 0 8px; padding: 4px 12px 2px; border-radius: 12px; } .trashbox h5 { margin: 0 0 1px; font-size: 10.5px; letter-spacing: .8px; } .trashbox h5 small { font-size: 10.5px; }
.trashbox .trow { padding: 3px 0; gap: 10px; } .trashbox .tn { flex-direction: row; align-items: baseline; gap: 10px; } .trashbox .tn b { font-size: 12px; } .trashbox .tn small { font-size: 11px; } .trashbox .tw { font-size: 11px; } .trashbox .ta button { height: 22px; padding: 0 10px; font-size: 11px; }

/* Smart repair: Working now and History side by side, the same height */
.ap-pair { margin-bottom: 8px; } .ap-pair .ap-att, .ap-pair .ap-hist { height: clamp(240px, calc(100vh - 330px), 520px); max-height: none; box-sizing: border-box; overflow: auto; }

/* ping arrows: every row has the same height and the same drawing (the packet loss sits on the ms line), the lines fade out at their tails like a trail */
.tlink .tl-top { display: flex; align-items: center; justify-content: center; gap: 6px; height: 16px; }
.tlink .tl-top .loss { font-size: 10px; font-weight: 800; line-height: 1; padding: 2px 6px; border-radius: 999px; background: rgba(255,200,70,.16); color: var(--warn); }
.tlink .wire::before { background: linear-gradient(90deg, transparent 0, var(--c) 40%); } .tlink .wire::after { background: linear-gradient(270deg, transparent 0, var(--c) 40%); }
.tlink.degraded .wire::before, .tlink.degraded .wire::after, .tlink.down .wire::before, .tlink.down .wire::after { background: repeating-linear-gradient(90deg, var(--c) 0 8px, transparent 8px 13px); }
.tlink .h { border-radius: 1px; } .tlink .pk { box-shadow: 0 0 5px var(--c); }
.tlink .tl-top .sl { font-style: normal; color: var(--mut); font-weight: 600; } .tlink .tl-top .loss.ok { background: none; color: var(--mut); padding: 0; font-weight: 700; } .tlink .tl-top { gap: 5px; }

/* Smart repair: the box of servers that are off / networks that are disturbed, full width above the two columns */
.ap-top:empty { display: none; } .ap-top { margin-bottom: 8px; } .ap-alert { margin-bottom: 8px; padding-bottom: 10px; } .ap-alert h3 { margin-bottom: 8px; }
.ap-issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 8px; }
.ap-iss { padding: 9px 12px 10px; border-radius: 14px; border: 1px solid rgba(255,200,70,.35); background: linear-gradient(rgba(255,200,70,.07), rgba(255,200,70,.03)); display: grid; gap: 5px; } .ap-iss.off { border-color: rgba(255,107,139,.45); background: linear-gradient(rgba(255,107,139,.09), rgba(255,107,139,.03)); }
.ap-ih { display: flex; align-items: center; gap: 8px; font-size: 13px; } .ap-ih .pill { margin-left: auto; font-size: 10.5px; } .ap-flag { font-size: 16px; line-height: 1; }
.ap-it { font-size: 12.5px; line-height: 1.45; } .ap-tl { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; font-size: 12px; } .ap-do { font-size: 11.5px; color: var(--mut); border-top: 1px solid rgba(255,255,255,.07); padding-top: 5px; }
.pill.warn { color: var(--warn); border-color: rgba(255,200,70,.45); }
.dup.many { color: var(--acc-2); border-color: rgba(120,160,255,.4); background: rgba(120,160,255,.09); }

/* users: a status switch, the count as a chip, the selection as one unit */
.pn-st { margin: 0; flex: none; } .pn-st button { height: 26px; padding: 0 11px; font-size: 12px; }
.pn-cnt-chip { display: inline-flex; align-items: baseline; gap: 5px; height: 26px; padding: 0 12px; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 12px; color: var(--mut); white-space: nowrap; } .pn-cnt-chip b { color: var(--text); font-weight: 800; }
.pn-reload { width: 28px; padding: 0; border-radius: 50%; }
.pn-sel.on { border-color: rgba(240,184,64,.55); background: rgba(240,184,64,.09); } .pn-sel.on .tc:first-child { color: var(--text); }
#pn-act:not(:disabled) { background: var(--grad); color: #1a1405; font-weight: 800; border-color: transparent; } #pn-act:not(:disabled) option { background: #151a30; color: #eef1ff; font-weight: 600; }
/* hosts: one aligned row per port - tick, port, count, how many are on (a bar), the inbounds it serves; no switches on the rows */
.hp > summary { display: grid; grid-template-columns: 14px 24px 96px 84px 130px 118px minmax(0, 1fr); align-items: center; gap: 10px; height: 40px; }
.hp-port { font-size: 15px; } .hp-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; } .hp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--warn); } .hp-bar i.full { background: var(--ok); } .hp.alloff .hp-bar i { background: var(--unk); }
.hp-st { color: var(--mut); font-size: 12px; white-space: nowrap; } .hp-st b { color: var(--text); font-weight: 800; }
.hp-tags { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; } .hp-tags .td-type { white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.hp > summary::before { width: auto; }
/* the head of a panel in one piece: its bar and, joined to it, the bar of Users / Hosts - one frame, thin dividers, the same control height */
.pn-top { margin-bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; border-bottom-color: var(--line) !important; box-shadow: none !important; }
#pn-body > .pn-bars { gap: 0; margin: 0 0 10px; border: 1px solid transparent; border-top: 0; border-radius: 0 0 14px 14px; align-items: stretch; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  background: linear-gradient(rgba(14,17,28,.6), rgba(14,17,28,.6)) padding-box, linear-gradient(100deg, rgba(255,255,255,.20), rgba(255,255,255,.07) 55%, rgba(255,255,255,0)) border-box; }
#pn-body > .pn-bars > .toolbar { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; padding: 7px 12px; }
#pn-body > .pn-bars > .toolbar + .toolbar { border-left: 1px solid var(--line) !important; }
#pn-body > .pn-bars .tabs { background: none; border: 0; box-shadow: none; padding: 0; } #pn-body > .pn-bars .tabs button { height: 28px; }
#pn-body > .pn-bars select, #pn-body > .pn-bars input[type=search], #pn-body > .pn-bars #pn-act { height: 30px; font-size: 12.5px; } #pn-body > .pn-bars .pn-sb { width: 260px; } #pn-body > .pn-bars .pn-sb input { height: 30px; }
html[data-theme="classic"] #pn-body > .pn-bars { background: #1f2937; border: 1px solid #374151; border-top: 0; box-shadow: none; }
/* configs: the numbers sit in the top bar and the bar of the groups is joined to it - one frame */
.cf-stats .tc.on b { color: var(--ok); } .cf-stats .tc.bad b { color: var(--bad); }
.cf-top { margin-bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; box-shadow: none !important; border-bottom-color: var(--line) !important; }
.cf-top + .gbar { margin-top: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; border-top: 0 !important; }
/* smooth scrolling: the glide is done by the wheel handler; the boxes keep their own scrolling (no native smoothing on top of it) and the overscroll does not drag the page */
.main, .lbox, .modal-body, .hp-list, .ap-att, .ap-hist, .tt-log, .tt-res, .fix, .act-list, .pb-list, .hl-list { scroll-behavior: auto; overscroll-behavior: contain; }

.dq-list .dq-go { display: inline-block; width: 14px; color: var(--acc-2); font-weight: 800; }

/* the group chips: the counts are readable boxes - light on dark chips, dark on the gold chip of the group that is open */
.gchip button small { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 6px; border-radius: 9px; background: rgba(255,255,255,.12); color: var(--text); font-size: 10.5px; font-weight: 800; line-height: 1; }
.gchip.on button, .gchip.on a { color: #1a1405; } .gchip.on button small { background: rgba(26,20,5,.2); color: #1a1405; } .gchip.on a { opacity: .75; } .gchip.on a:hover { opacity: 1; color: #6b0f1d; }
html[data-mode="light"] .gchip button small { background: rgba(20,24,40,.1); }
/* hosts: the ports in two columns; a port that is open takes the whole width */
.hp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; align-items: start; } .hp[open] { grid-column: 1 / -1; }
.hp > summary { grid-template-columns: 14px 24px 72px 70px 84px 98px minmax(0, 1fr); gap: 8px; } .hp-port { font-size: 14px; min-width: 0; } .hp-tags .td-type { max-width: 130px; }
@media (max-width: 1200px) { .hp-list { grid-template-columns: 1fr; } }
.pstat .tc.on b { color: var(--ok); } .pstat .tc.bad b { color: var(--bad); } .pstat .tc.warn b { color: var(--warn); }

/* the Gateway & outbounds tab has a colour of its own (cyan), so it is told apart from the gold of the others */
body.tabbed .subnav .tabs button[data-k="gateway"] { color: #7fd8ee; border-color: rgba(80,200,230,.3); background: rgba(80,200,230,.07); }
body.tabbed .subnav .tabs button[data-k="gateway"]:hover { background: rgba(80,200,230,.14); color: #a8e8f7; }
body.tabbed .subnav .tabs button[data-k="gateway"].on { background: #14212b; color: #8fe3f5; border-color: rgba(80,200,230,.55); box-shadow: inset 0 2px 0 #4fc8e6, 0 -6px 18px rgba(80,200,230,.12); }.subnav .tabs button[data-k="gateway"] { color: #7fd8ee; } .subnav .tabs button[data-k="gateway"].on { color: #8fe3f5; box-shadow: inset 0 2px 0 #4fc8e6; }
/* the numbers of a bar carry a coloured dot that means something: green fine, yellow take a look, red wrong, blue just information */
.pstat .tc { --d: transparent; } .pstat .tc.ok { --d: var(--ok); } .pstat .tc.warn { --d: var(--warn); } .pstat .tc.bad { --d: var(--bad); } .pstat .tc.info { --d: #6fb2ff; }
.pstat .tc::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--d); box-shadow: 0 0 6px var(--d); } .pstat .tc:not(.ok):not(.warn):not(.bad):not(.info)::before { display: none; }
.pstat .tc.ok b { color: var(--ok); } .pstat .tc.warn b { color: var(--warn); } .pstat .tc.bad b { color: var(--bad); } .pstat .tc.info b { color: var(--text); }
/* the rows of Nodes and Tunnels are cards: no buttons, a click opens the window of the row; a quiet lift and a chevron say so */
tr.clk { cursor: pointer; } tr.clk td { transition: background-color .18s, border-color .18s, transform .18s; }
.tun-tbl tbody tr.clk td, .srv-tbl tbody tr.clk td { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028)); border-top-color: rgba(255,255,255,.09); border-bottom-color: rgba(255,255,255,.05); }
.tun-tbl tbody tr.clk:hover td, .srv-tbl tbody tr.clk:hover td { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05)); border-top-color: rgba(255,255,255,.2); }
.tun-tbl tbody tr.clk:hover, .srv-tbl tbody tr.clk:hover { box-shadow: 0 6px 18px rgba(0,0,0,.28); }
tr.clk td:last-child { position: relative; } tr.clk td:last-child::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translate(-6px, -52%); font-size: 20px; line-height: 1; color: var(--mut); opacity: 0; transition: opacity .18s, transform .18s; }
tr.clk:hover td:last-child::after { opacity: .9; transform: translate(0, -52%); color: var(--acc-2); }
.tun-tbl td.name, .srv-tbl td.name { font-size: 13.5px; letter-spacing: .1px; }
/* an address copies itself when it is clicked, with a pop where it was clicked */
.ip-copy { cursor: copy; position: relative; border-radius: 8px; transition: background-color .15s, color .15s; } .ip-copy:hover { color: var(--acc-2) !important; background: rgba(255,255,255,.07); }
.ip-copy::after { content: "✓ Copied"; position: absolute; right: 4px; top: 50%; padding: 2px 8px; border-radius: 999px; font-family: var(--font, inherit); font-size: 10.5px; font-weight: 800; letter-spacing: 0; color: #10131f; background: var(--ok); box-shadow: 0 4px 12px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.7); }
.ip-copied { animation: ipFlash .6s ease-out; } .ip-copied::after { animation: ipPop 1.4s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes ipPop { 0% { opacity: 0; transform: translateY(-30%) scale(.6); } 14% { opacity: 1; transform: translateY(-50%) scale(1.08); } 24% { transform: translateY(-50%) scale(1); } 78% { opacity: 1; transform: translateY(-50%) scale(1); } 100% { opacity: 0; transform: translateY(-90%) scale(.95); } }
@keyframes ipFlash { 0% { background: rgba(61,220,151,.35); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ip-copied, .ip-copied::after { animation-duration: .01s; } }
/* flags are round badges (the same in every list); the statusbar no longer sticks, so nothing slides under it */
.flg { width: 24px !important; height: 24px !important; border-radius: 50% !important; object-fit: cover; vertical-align: -7px; box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 3px 8px rgba(0,0,0,.4) !important; margin-right: 8px !important; }
.cf-list .flg { width: 20px !important; height: 20px !important; vertical-align: -5px; margin-right: 6px !important; }
.flgt { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; margin-right: 8px; font-size: 9px; font-weight: 800; letter-spacing: 0; color: var(--mut); box-shadow: 0 0 0 2px rgba(255,255,255,.14); vertical-align: -7px; background: rgba(255,255,255,.05); }
@media (min-width: 861px) { .statusbar { position: relative; top: auto; } }
/* the two tabs of Nodes: the same round badge for both (the flag of Iran, a globe for the rest of the world) */
.tic { display: inline-block; width: 22px; height: 22px; margin-right: 9px; border-radius: 50%; vertical-align: -6px; background: center / cover no-repeat; box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 2px 6px rgba(0,0,0,.35); }
.tic-ir { background-image: url('/flags/ir.png'); } .tic-globe { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='30%25' r='80%25'%3E%3Cstop offset='0' stop-color='%2377d4ff'/%3E%3Cstop offset='1' stop-color='%231b5fb8'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1'%3E%3Cellipse cx='12' cy='12' rx='5' ry='11.2'/%3E%3Cpath d='M1 12h22M3.2 6.5h17.6M3.2 17.5h17.6'/%3E%3C/g%3E%3C/svg%3E"); }
/* a small server beside the title of Nodes: its lights blink */
.srv-anim { margin-left: 12px; vertical-align: -3px; overflow: visible; } .srv-anim rect { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.35); stroke-width: 1.2; } .srv-anim path { stroke: rgba(255,255,255,.3); stroke-width: 1.2; stroke-linecap: round; fill: none; }
.srv-anim circle { fill: var(--ok); animation: srvLed 1.6s ease-in-out infinite; } .srv-anim .l2 { fill: #ffd166; animation-duration: 2.1s; animation-delay: .3s; } .srv-anim .l3 { animation-duration: 2.7s; animation-delay: .8s; }
@keyframes srvLed { 0%, 100% { opacity: .22; } 45%, 60% { opacity: 1; filter: drop-shadow(0 0 3px currentColor); } }
@media (prefers-reduced-motion: reduce) { .srv-anim circle { animation: none; opacity: .9; } }
.pstat .tc.info b { color: #6fb2ff; }

/* animated drawings beside the page titles */
.t-anim { margin-left: 12px; vertical-align: -4px; overflow: visible; }
.tun-anim .tube { stroke: rgba(255,255,255,.34); stroke-width: 1.3; stroke-linecap: round; fill: none; } .tun-anim .nd { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.4); stroke-width: 1.3; }
.tun-anim .pk { fill: var(--ok); } .tun-anim .pk.l { fill: #6fb2ff; } .tun-anim .pk.r { animation: tunR 1.7s linear infinite; } .tun-anim .pk.l { animation: tunL 1.7s linear infinite; } .tun-anim .pk.d { animation-delay: -.85s; }
@keyframes tunR { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(24px); opacity: 0; } } @keyframes tunL { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(-24px); opacity: 0; } }
.pan-anim .win { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.38); stroke-width: 1.3; } .pan-anim .bar0 { stroke: rgba(255,255,255,.28); stroke-width: 1.2; } .pan-anim .dt { fill: rgba(255,255,255,.5); }
.pan-anim .b { fill: var(--acc-2, #f0b840); transform-box: fill-box; transform-origin: bottom; animation: panBar 1.8s ease-in-out infinite; } .pan-anim .b2 { fill: #6fb2ff; animation-delay: -.6s; } .pan-anim .b3 { fill: var(--ok); animation-delay: -1.2s; }
@keyframes panBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.bot-anim .hd { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.4); stroke-width: 1.3; } .bot-anim .ant { stroke: rgba(255,255,255,.4); stroke-width: 1.3; stroke-linecap: round; } .bot-anim .mo { stroke: rgba(255,255,255,.4); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.bot-anim .ap { fill: var(--acc-2, #f0b840); animation: botAnt 1.6s ease-in-out infinite; } .bot-anim .eye { fill: #6fb2ff; transform-box: fill-box; transform-origin: center; animation: botBlink 4s infinite; }
@keyframes botBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } } @keyframes botAnt { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.gear-anim .gear { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.42); stroke-width: 1.3; transform-origin: 15px 15px; animation: gearSpin 9s linear infinite; } @keyframes gearSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .t-anim * { animation: none !important; } }
/* what is off is shown off: grey, no hover */
button.abtn:disabled, .btn:disabled { opacity: .38; filter: grayscale(1); cursor: not-allowed; box-shadow: none; }
/* the add-server window: compact, in a grid */
.srv-form { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; align-items: end; }
.srv-form > label:nth-of-type(1), .srv-form > label:nth-of-type(2), .srv-form > label:nth-of-type(3) { grid-column: span 2; }
.srv-form > label:nth-of-type(4), .srv-form > label:nth-of-type(5) { grid-column: span 1; } .srv-form > label:nth-of-type(6) { grid-column: span 4; }
.srv-form > label.chk, .srv-form > .srv-extra, .srv-form > .frm-act, .srv-form > small { grid-column: 1 / -1; }
.srv-form label { font-size: 11px; gap: 3px 6px; } .srv-form input:not([type=checkbox]), .srv-form select { height: 30px; font-size: 12.5px; padding: 0 10px; border-radius: 9px; }
.srv-form label.chk { height: 22px; font-size: 12px; }
.srv-extra { padding: 8px 12px 9px !important; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 12px; } .srv-extra > b { grid-column: 1; font-size: 12px; } .srv-extra > small { grid-column: 2; align-self: center; text-align: right; font-size: 10.5px; }
.srv-extra label.chk { height: 24px; font-size: 12px; } .srv-extra label.chk small { display: none; } .srv-extra .x-cert { grid-column: 1 / -1; }
.srv-form .frm-act { margin-top: 2px; } .srv-form > small { font-size: 11px; line-height: 1.4; }
#modal .modal-body > .tabs:first-child { padding: 3px; } #modal .modal-body > .tabs:first-child button { height: 30px; padding: 0 16px; font-size: 12.5px; }
@media (max-width: 760px) and (pointer: coarse) { .srv-form { grid-template-columns: 1fr 1fr; } .srv-form > label:nth-of-type(n) { grid-column: span 1; } }
/* the toolbar of Servers: groups of buttons with a divider, the key as a button of the same height */
.toolbar .sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); } a.btn.tbtn { height: 34px; padding: 0 14px; font-size: 13px; }

/* the Add server window: two boxes (server, SSH), a strip of what to install, one foot bar */
.srv-form2 { display: block !important; } .srv-two { margin-bottom: 8px; align-items: stretch; }
.srv-form2 .bf > span:first-child { width: 78px !important; } .srv-form2 .chkline { display: inline-flex; align-items: center; gap: 8px; width: auto !important; flex: 1; font-size: 12px; font-weight: 500; color: var(--text); }
.srv-after { margin-bottom: 8px; } .srv-after h5 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mut); margin-left: 6px; }
.srv-opts { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 4px 0 2px; } .srv-opts label.chk { height: 26px; font-size: 12.5px; cursor: pointer; }
.srv-after .x-cert { display: grid; gap: 4px; margin-top: 6px; font-size: 11.5px; } .srv-after .x-cert.hidden { display: none; } .srv-after .x-cert textarea { width: 100%; font-family: var(--mono); font-size: 11px; }
.srv-form2 .bld-foot small { font-size: 11px; max-width: 58%; text-align: right; line-height: 1.35; }
/* a window that is redrawn in place does not fly in again */
#modal .modal { transition: min-height .2s ease; }

/* the two big buttons (Add server, Create tunnel): each has its own colour and its own movement on hover */
button.cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 20px 0 9px; border-radius: 13px; font-size: 13.5px; font-weight: 800; letter-spacing: .25px; color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.22) !important; transition: transform .2s cubic-bezier(.2,.9,.3,1.2), box-shadow .25s ease, filter .2s; }
button.cta .cta-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); font-style: normal; font-size: 16px; line-height: 1; font-weight: 700; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), background .2s; }
button.cta:active { transform: translateY(0) scale(.97) !important; }
/* Add server: emerald, a light sweeps across, the plus turns a quarter */
button.cta-server { background: linear-gradient(135deg, #17c18f 0%, #0d8f69 100%) !important; box-shadow: 0 6px 18px rgba(23,193,143,.28), inset 0 1px 0 rgba(255,255,255,.3) !important; }
button.cta-server::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-120%); }
button.cta-server:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,193,143,.4), inset 0 1px 0 rgba(255,255,255,.4) !important; } button.cta-server:hover::after { transform: translateX(120%); transition: transform .7s ease; } button.cta-server:hover .cta-ic { transform: rotate(90deg); background: rgba(255,255,255,.32); }
/* Create tunnel: violet, a ring of light pulses out, the plus turns half a turn and grows */
button.cta-tunnel { background: linear-gradient(135deg, #8576ff 0%, #4a3bd0 100%) !important; box-shadow: 0 6px 18px rgba(110,96,255,.3), inset 0 1px 0 rgba(255,255,255,.3) !important; }
button.cta-tunnel:hover { transform: scale(1.04); animation: ctaRing 1.1s ease-out infinite; } button.cta-tunnel:hover .cta-ic { transform: rotate(180deg) scale(1.12); background: rgba(255,255,255,.32); }
@keyframes ctaRing { 0% { box-shadow: 0 8px 22px rgba(110,96,255,.4), 0 0 0 0 rgba(133,118,255,.55), inset 0 1px 0 rgba(255,255,255,.4); } 100% { box-shadow: 0 8px 22px rgba(110,96,255,.4), 0 0 0 14px rgba(133,118,255,0), inset 0 1px 0 rgba(255,255,255,.4); } }
@media (prefers-reduced-motion: reduce) { button.cta, button.cta .cta-ic, button.cta-server::after { transition: none; animation: none !important; } }
/* the names of the servers: a geometric face of their own (Poppins), a little air between the letters */
.srv-tbl td.name { font-family: 'Poppins', 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14.5px; letter-spacing: .45px; } .srv-tbl td.name .pill, .srv-tbl td.name .dup { font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0; }

/* Tunnel test: one frame - the bar, the engines, the results and the log joined together and to the tab above */
.tt-frame.toolbar { margin-bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; box-shadow: none !important; border-bottom-color: var(--line) !important; }
.tt-sel { margin: 0 !important; border-radius: 0 !important; border-top: 0 !important; border-bottom-color: var(--line) !important; box-shadow: none !important; }
.tt-two { gap: 0 !important; } .tt-two > .sbox { margin: 0; border-radius: 0; border-top: 0; box-shadow: none; } .tt-two > .sbox:first-child { border-bottom-left-radius: 14px; border-right: 0; } .tt-two > .sbox:last-child { border-bottom-right-radius: 14px; }
/* Tunnel Doctor: the two cards are one frame, joined to the tab */
.ap-pair { gap: 0 !important; margin-bottom: 8px; } .ap-pair > .card { margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; } .ap-pair > .card:first-child { border-top-left-radius: 0 !important; border-bottom-left-radius: 14px !important; border-right: 0 !important; } .ap-pair > .card:last-child { border-top-right-radius: 14px !important; border-bottom-right-radius: 14px !important; }
/* Server Doctor */
.dr-head { margin-bottom: 8px; border-top-left-radius: 0 !important; } .dr-head .ap-issues { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); } .ap-fl { display: grid; gap: 4px; } .ap-it b.err { color: var(--bad); } .ap-it b.warn { color: var(--warn); } .dr-steps { display: flex; flex-wrap: wrap; gap: 6px; } .dr-fine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; }
/* an address: a modern cursor (an arrow with a small copy badge), a copy mark that fades in beside it, and a faint, light confirmation */
.ip-copy { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M4 3l15 6.2-6.1 2.2L10.6 17.6z' fill='%23ffffff' stroke='%230b0e1c' stroke-width='1.4' stroke-linejoin='round'/%3E%3Crect x='14' y='14' width='9' height='9' rx='2.2' fill='%233ddc97' stroke='%230b0e1c' stroke-width='1.2'/%3E%3Cpath d='M16.4 18.5h4.2M18.5 16.4v4.2' stroke='%230b0e1c' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 4 3, copy !important; }
.ip-copy:hover { background: rgba(169,180,255,.08) !important; color: #c9d1ff !important; }
.ip-copy::before { content: ""; position: absolute; left: -2px; top: 50%; width: 12px; height: 12px; transform: translate(-6px, -50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a9b4ff' stroke-width='1.4'%3E%3Crect x='5.5' y='5.5' width='8' height='8' rx='2'/%3E%3Cpath d='M10.5 3.5v-.2A1.8 1.8 0 0 0 8.7 1.5H3.8A1.8 1.8 0 0 0 2 3.3v4.9a1.8 1.8 0 0 0 1.8 1.8h.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none; }
.ip-copy:hover::before { opacity: .75; transform: translate(-14px, -50%); }
.td-node.ir .ip-copy:hover::before { left: auto; right: 100%; }
.ip-copy::after { padding: 1px 8px !important; font-size: 10px !important; font-weight: 600 !important; color: #8fe9c4 !important; background: rgba(61,220,151,.1) !important; box-shadow: 0 0 0 1px rgba(61,220,151,.28) inset !important; backdrop-filter: none; right: auto !important; left: 50% !important; top: 108% !important; margin-left: -34px; }
@keyframes ipPop { 0% { opacity: 0; transform: translateY(-20%) scale(.9); } 18% { opacity: .85; transform: translateY(0) scale(1); } 70% { opacity: .85; } 100% { opacity: 0; transform: translateY(40%) scale(.98); } }
.ip-copied::after { animation: ipPop 1.3s ease-out both !important; } @keyframes ipFlash { 0% { background: rgba(61,220,151,.1); } 100% { background: transparent; } }
.copied { background: rgba(61,220,151,.1) !important; color: #8fe9c4 !important; box-shadow: 0 0 0 1px rgba(61,220,151,.28) inset !important; font-weight: 600 !important; opacity: .9; }
/* Server Doctor: two boxes like Tunnel Doctor - what needs a look, and the healthy ones */
.dr-list { display: grid !important; gap: 8px; align-content: start; } .dr-list .ap-iss { margin: 0; }
.dr-ok { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 10px; align-content: start; padding: 4px 2px; }
.dr-row { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: 12px; } .dr-row b { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; letter-spacing: .3px; font-size: 12.5px; } .dr-row small { font-size: 10.5px; } .dr-row span { margin-left: auto; font-size: 11px; white-space: nowrap; } .dr-row .st { width: 8px; height: 8px; border-radius: 50%; padding: 0; background: var(--ok); display: inline-block; }
/* the users of a panel are cards like the servers and the tunnels: no buttons, a click opens the user */
.usr-tbl tbody tr.clk td { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028)); border-top-color: rgba(255,255,255,.09); border-bottom-color: rgba(255,255,255,.05); }
.usr-tbl tbody tr.clk:hover td { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05)); border-top-color: rgba(255,255,255,.2); } .usr-tbl tbody tr.clk:hover { box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.usr-tbl td.name { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; font-size: 13.5px; letter-spacing: .35px; } .usr-tbl td.trf { white-space: nowrap; overflow: visible; }
/* the Add server window: a mid-sized window, two equal boxes, a foot bar with the button and the help on one line, the same gap everywhere */
.modal.mid { width: min(820px, 100%); }
.srv-two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; margin-bottom: 8px; } .srv-form2 .sbox { margin: 0; } .srv-after { margin: 0 0 8px; }
.srv-form2 .bld-foot { flex-wrap: nowrap; gap: 12px; } .srv-form2 .bld-foot small { max-width: none !important; text-align: right; flex: 1; font-size: 11px; line-height: 1.35; }
.srv-form2 .bf-note { min-height: 0; padding-top: 5px; } .srv-form2 .kv2 { min-height: 34px; }
#modal .modal.mid .modal-body > .tabs:first-child { margin: 0 0 8px !important; }
/* the head of a panel: one even row of controls (the same height, the same gaps) */
.pn-top, #pn-body > .pn-bars > .toolbar { min-height: 46px; } .pn-top { gap: 10px; }
.pn-top select, .pn-top .pill, .pn-top .pstat, .pn-top button { height: 30px; } .pn-top .pill { display: inline-flex; align-items: center; padding: 0 12px; }
/* the users: a name with its note, a status pill, a traffic bar with its share, an expiry pill - one even card */
.usr-tbl td { height: 54px; } .usr-nm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; min-width: 0; } .usr-nm > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .usr-nm small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10.5px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spill, .epill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--mut); white-space: nowrap; }
.spill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.spill.active, .epill.ok { color: var(--ok); background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.3); } .spill.disabled { color: var(--mut); } .spill.limited, .spill.expired, .epill.bad { color: var(--bad); background: rgba(255,107,139,.1); border-color: rgba(255,107,139,.32); } .spill.on_hold, .epill.warn { color: var(--warn); background: rgba(255,200,70,.1); border-color: rgba(255,200,70,.32); }
.trf2 { display: grid; gap: 5px; min-width: 0; } .trf2-t { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; } .trf2-t b { font-family: var(--mono); font-weight: 700; color: var(--text); } .trf2-t small { color: var(--mut); font-size: 11px; }
.trf2-b { display: flex; align-items: center; gap: 10px; } .trf2-b .rbar { flex: 1; height: 5px; } .trf2-b small { font-size: 10.5px; color: var(--mut); white-space: nowrap; min-width: 92px; text-align: right; }
/* Tunnel Doctor: what it does, above the two boxes */
.ap-intro { margin-bottom: 8px; border-top-left-radius: 0 !important; padding-bottom: 12px; } .ap-intro h3 { margin-bottom: 8px; } .ap-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ap-steps > div { display: grid; gap: 3px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); } .ap-steps b { font-size: 12px; color: var(--acc-2); letter-spacing: .3px; } .ap-steps span { font-size: 12px; line-height: 1.45; color: var(--text); opacity: .85; } .ap-steps i { font-style: normal; font-weight: 700; color: var(--acc-2); }
@media (max-width: 1100px) { .ap-steps { grid-template-columns: 1fr 1fr; } } @media (max-width: 760px) and (pointer: coarse) { .ap-steps { grid-template-columns: 1fr; } }
/* Settings: every tab is a folder tab joined to the frame under it */
.set-top { margin: 0 0 -1px 2px; position: relative; z-index: 3; } .set-top .tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; backdrop-filter: none; }
.set-top .tabs button { height: 38px; padding: 0 18px; border-radius: 15px 15px 0 0; border: 1px solid var(--line); border-bottom: 0; background: rgba(255,255,255,.035); color: var(--mut); box-shadow: none; font-size: 13px; transform: none; }
.set-top .tabs button:hover { background: rgba(255,255,255,.07); color: var(--text); transform: none; box-shadow: none; }
.set-top .tabs button.on { height: 40px; margin-bottom: -1px; background: #1b1e2b; color: #f6dc8a; border-color: var(--line-hi, rgba(255,255,255,.22)); box-shadow: inset 0 2px 0 #e9bf55, 0 -6px 18px rgba(233,191,85,.10); }
.set-desc { margin: 0 !important; padding: 10px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 0 14px 0 0; background: var(--panel); font-size: 12.5px; color: var(--mut); }
.set-desc + .fstrip { margin: 0 !important; border-radius: 0 !important; border-top: 1px solid var(--line) !important; box-shadow: none !important; } .set-desc ~ .grid2 > .card:not(.hidden) { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
html[data-theme="classic"] .set-top .tabs button.on { background: #1f2937; }
/* leaving a page: the old one stays, dimmed and still, until the new one arrives */
#page.busy { opacity: .5; pointer-events: none; transition: opacity .14s ease; } #page { transition: opacity .14s ease; }

/* the side menu: line icons of one family, each with its own colour, a faint breath, brighter and livelier under the mouse */
nav a .ic { width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 0; filter: none !important; color: var(--ic, #8f98c8); } nav a .ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .62; animation: icBreath 4.4s ease-in-out infinite; transition: opacity .25s, transform .3s cubic-bezier(.2,.9,.3,1.3), filter .25s; }
nav a[data-page="dashboard"] { --ic: #93a4ff; } nav a[data-page="nodes"] { --ic: #5ee0b5; } nav a[data-page="tunnels"] { --ic: #6fb2ff; } nav a[data-page="configs"] { --ic: #ffb86b; } nav a[data-page="bot"] { --ic: #ff8fb1; } nav a[data-page="settings"] { --ic: #c3a5ff; }
nav a:nth-child(2) .ic svg { animation-delay: -.7s; } nav a:nth-child(3) .ic svg { animation-delay: -1.4s; } nav a:nth-child(4) .ic svg { animation-delay: -2.1s; } nav a:nth-child(5) .ic svg { animation-delay: -2.8s; } nav a:nth-child(6) .ic svg { animation-delay: -3.5s; }
@keyframes icBreath { 0%, 100% { opacity: .5; } 50% { opacity: .78; } }
nav a:hover .ic svg { opacity: 1; animation: none; transform: scale(1.14); filter: drop-shadow(0 0 7px var(--ic)); } nav a:hover .ic { animation: none !important; transform: none !important; }
nav a.on { --ic: #f6c453; } nav a.on .ic svg { opacity: 1; animation: none; filter: drop-shadow(0 0 6px rgba(246,196,83,.55)); }
nav a .ic .led { animation: icLed 1.8s ease-in-out infinite; } nav a .ic .led.l2 { animation-delay: -.9s; } @keyframes icLed { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
nav a:hover .ic .a1 { animation: icR .7s ease-in-out infinite alternate; } nav a:hover .ic .a2 { animation: icL .7s ease-in-out infinite alternate; } @keyframes icR { to { transform: translateX(2.5px); } } @keyframes icL { to { transform: translateX(-2.5px); } }
nav a:hover .ic .s1 { animation: icS 1s ease-in-out infinite alternate; } nav a:hover .ic .s2 { animation: icS 1s ease-in-out infinite alternate-reverse; } nav a:hover .ic .s3 { animation: icS .8s ease-in-out infinite alternate; } @keyframes icS { to { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { nav a .ic svg, nav a .ic .led, nav a:hover .ic * { animation: none !important; } }

/* the configs list: bigger type in cards of the same size, each card clearly apart from the next, easy to find by its name */
.cf-list { border-collapse: separate !important; border-spacing: 0 5px !important; }
.cf-list td { font-size: 13.5px; background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.05)) !important; border-top: 1px solid rgba(255,255,255,.14) !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
.cf-list td.name { font-size: 15.5px; font-weight: 800; letter-spacing: .15px; } .cf-list td.mono { font-size: 12.5px; } .cf-list td.num { font-size: 13px; } .cf-list .td-type { font-size: 11px; padding: 2px 9px; }
.cf-list tbody tr.click:hover td { background: linear-gradient(180deg, rgba(124,131,255,.2), rgba(124,131,255,.1)) !important; border-top-color: rgba(124,131,255,.5) !important; } .cf-list tbody tr.click:hover { box-shadow: 0 5px 16px rgba(0,0,0,.3); }
.cf-list tr td:first-child { border-left-width: 4px !important; } .cf-list th { font-size: 11px; }
/* the icon of the page you are on moves faster than the others */
nav a.on .ic svg { animation: icOn 1.5s ease-in-out infinite !important; } @keyframes icOn { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(246,196,83,.4)); } 50% { transform: scale(1.13); filter: drop-shadow(0 0 9px rgba(246,196,83,.8)); } }
nav a.on .ic .a1 { animation: icR .55s ease-in-out infinite alternate; } nav a.on .ic .a2 { animation: icL .55s ease-in-out infinite alternate; }
nav a.on .ic .led { animation: icLed .7s ease-in-out infinite; } nav a.on .ic .led.l2 { animation-delay: -.35s; }
nav a.on .ic .s1 { animation: icS .7s ease-in-out infinite alternate; } nav a.on .ic .s2 { animation: icS .7s ease-in-out infinite alternate-reverse; } nav a.on .ic .s3 { animation: icS .55s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { nav a.on .ic svg, nav a.on .ic * { animation: none !important; } }
/* users list: one fixed box down to the pager; the rows fill it (the row height is set from the script) */
.usr-tbl td { height: var(--rh, 54px); } .usr-tbl tbody td { padding-top: 0; padding-bottom: 0; }
.pgs .pgn { min-width: 40px; width: 40px; padding: 0; text-align: center; } .pgs .pgn-gap { display: inline-block; width: 24px; text-align: center; padding: 0; }
.pn-foot { min-height: 36px; box-sizing: border-box; }.cf-list .sec-tls, .sec-tls { color: #7cc4ff; font-weight: 700; } .cf-list .sec-reality, .sec-reality { color: #c9a0ff; font-weight: 700; } .sec-xtls { color: #ffb86b; font-weight: 700; }
@media (min-width: 761px), (pointer: fine) { .main:has(.usr-tbl) { padding-bottom: 0; } }

/* ===== 1.17.34: names, logo, themes (day mode, buttons, quiet moving backgrounds), server icon, hover ===== */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/unbounded-700-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; }
.brand b { font-family: 'Unbounded', 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 15.5px; letter-spacing: 3.2px; line-height: 1.05; }
.brand small { font-size: 9.5px; letter-spacing: 2.2px; text-transform: uppercase; font-weight: 600; opacity: .85; margin-top: 3px; }
.brand { gap: 12px; }
@property --lg-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.logo-orb { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.logo-orb svg { position: relative; z-index: 1; width: 36px; height: 36px; filter: drop-shadow(0 4px 12px rgba(100,130,255,.4)); animation: lgFloat 7s ease-in-out infinite; }
.logo-orb::before { content: ""; position: absolute; inset: 0; border-radius: 13px; padding: 1.6px; background: conic-gradient(from var(--lg-a), transparent 0 52%, var(--acc-2) 78%, var(--acc) 92%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: lgSpin 14s linear infinite; opacity: .9; }
.logo-orb::after { content: ""; position: absolute; inset: -5px; border-radius: 18px; background: radial-gradient(closest-side, rgba(var(--glow), .35), transparent 72%); animation: lgBreath 6s ease-in-out infinite; }
.lg-n { transform-box: fill-box; transform-origin: center; animation: lgNode 4.8s ease-in-out infinite; } .lg-n:nth-child(3) { animation-delay: 1.2s; } .lg-n:nth-child(5) { animation-delay: 2.4s; } .lg-n:nth-child(7) { animation-delay: 3.6s; }
.lg-run { animation: lgRun 5.5s linear infinite; } .lg-halo { animation: lgBreath 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lgSpin { to { --lg-a: 360deg; } } @keyframes lgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes lgBreath { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes lgNode { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } } @keyframes lgRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
:root[data-anim="off"] .logo-orb svg, :root[data-anim="off"] .logo-orb::before, :root[data-anim="off"] .logo-orb::after, :root[data-anim="off"] .lg-n, :root[data-anim="off"] .lg-run, :root[data-anim="off"] .lg-halo { animation: none; }
@media (prefers-reduced-motion: reduce) { .logo-orb svg, .logo-orb::before, .logo-orb::after, .lg-n, .lg-run, .lg-halo { animation: none; } }

/* the picture of lines and nodes in the side menu drifts very slowly */
.side::after { inset: -3%; animation: side-pic 1.6s .2s ease forwards, sideDrift 60s ease-in-out 1.8s infinite alternate; }
@keyframes sideDrift { 0% { transform: translate3d(-1.5%, 0, 0) scale(1); opacity: .34; } 50% { opacity: .46; } 100% { transform: translate3d(1.5%, -1.8%, 0) scale(1.05); opacity: .30; } }
:root[data-anim="off"] .side::after { animation: none; }

/* theme colours of the buttons: top / middle / bottom, the edge under them, the ink, the glow (r,g,b) */
:root { --pri-top: #a9adff; --pri-mid: #7c83ff; --pri-bot: #5a60e0; --pri-edge: #3b3fa8; --pri-ink: #0b0f33; --pri-rim: rgba(200,205,255,.6); --glow: 124,131,255; }
html[data-theme="ocean"] { --pri-top: #8ff3e4; --pri-mid: #2dd4bf; --pri-bot: #0e9f95; --pri-edge: #0a6b65; --pri-ink: #02211f; --pri-rim: rgba(190,255,245,.6); --glow: 45,212,191; }
html[data-theme="emerald"] { --pri-top: #9df0b8; --pri-mid: #34d399; --pri-bot: #10a371; --pri-edge: #0b6b4a; --pri-ink: #03210f; --pri-rim: rgba(200,255,220,.6); --glow: 52,211,153; }
html[data-theme="sunset"] { --pri-top: #fdba8c; --pri-mid: #fb7185; --pri-bot: #e11d48; --pri-edge: #9f1239; --pri-ink: #3b0412; --pri-rim: rgba(255,210,190,.6); --glow: 244,63,94; }
html[data-theme="royal"] { --pri-top: #dcc3ff; --pri-mid: #a78bfa; --pri-bot: #7c3aed; --pri-edge: #4c1d95; --pri-ink: #1e0a45; --pri-rim: rgba(230,215,255,.6); --glow: 124,58,237; }
html[data-theme="gold"] { --pri-top: #f8e293; --pri-mid: #ebbd4d; --pri-bot: #cb982b; --pri-edge: #8d6812; --pri-ink: #2b1d02; --pri-rim: rgba(255,236,176,.6); --glow: 230,184,92; }
html[data-theme="neon"] { --pri-top: #ff8cef; --pri-mid: #ff2bd6; --pri-bot: #b80f9e; --pri-edge: #6f0a60; --pri-ink: #ffffff; --pri-rim: rgba(255,200,245,.6); --glow: 255,43,214; }
html[data-theme="graphite"] { --pri-top: #a5cdfd; --pri-mid: #60a5fa; --pri-bot: #2f6fd8; --pri-edge: #1e4aa0; --pri-ink: #06142e; --pri-rim: rgba(205,225,255,.6); --glow: 96,165,250; }
html[data-theme="minimal"] { --pri-top: #f1f3f5; --pri-mid: #cbd5e1; --pri-bot: #94a3b8; --pri-edge: #64748b; --pri-ink: #0f172a; --pri-rim: rgba(255,255,255,.6); --glow: 156,163,175; }
button.pri:not(.ai-btn) { color: var(--pri-ink); text-shadow: 0 1px 0 rgba(255,255,255,.25); border: 1px solid var(--pri-rim); background: linear-gradient(180deg, var(--pri-top) 0%, var(--pri-mid) 48%, var(--pri-bot) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.18), 0 3px 0 var(--pri-edge), 0 10px 20px rgba(var(--glow), .30); }
button.pri:not(.ai-btn):hover { border-color: var(--pri-rim); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.18), 0 5px 0 var(--pri-edge), 0 16px 28px rgba(var(--glow), .45); }
button.pri:not(.ai-btn):active { box-shadow: inset 0 2px 4px rgba(0,0,0,.3), 0 1px 0 var(--pri-edge), 0 4px 10px rgba(var(--glow), .3); }
button.pri:not(.ai-btn):disabled { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 0 var(--pri-edge); }
button:not(.pri):not(.cta):not(.danger-fill) { border-color: color-mix(in srgb, rgb(var(--glow)) 22%, var(--line)); }
button:not(:disabled):not(.ai-btn):hover { box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 3px rgba(var(--glow), .18); }
button.pri:not(.ai-btn):not(:disabled):hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.18), 0 5px 0 var(--pri-edge), 0 16px 28px rgba(var(--glow), .45), 0 0 0 3px rgba(var(--glow), .2); }
html[data-theme="classic"] button.pri:not(.ai-btn) { background: #2563eb; border: 1px solid #1d4ed8; color: #fff; text-shadow: none; box-shadow: none; }
html[data-theme="classic"] button:not(.pri) { border-color: #374151; }

/* day mode: every theme gets a light page of its own colour (before, the dark theme colours won) */
html[data-mode="light"][data-theme] { --text: #111527; --mut: #5b6478; --glass: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.65)); --glass-hi: rgba(255,255,255,.95); --panel: rgba(255,255,255,.7); --panel-2: rgba(0,0,0,.05); --line: rgba(17,21,39,.12); --edge: inset 0 1px 0 rgba(255,255,255,.9); --shadow: 0 10px 30px rgba(17,21,39,.10); --shadow-hi: 0 18px 44px rgba(17,21,39,.16); --ok: #0f9d6b; --bad: #e0365b; --warn: #c98a07; }
html[data-mode="light"][data-theme="aurora"] { --bg: #eef1f8; --bg-2: #e4e9f6; --acc: #5b63e6; --acc-2: #0ea5c6; --grad: linear-gradient(135deg, #5b63e6 0%, #0ea5c6 100%); --line-hi: rgba(91,99,230,.55); }
html[data-mode="light"][data-theme="ocean"] { --bg: #e5f3f6; --bg-2: #d6ebf0; --acc: #0d9488; --acc-2: #0284c7; --grad: linear-gradient(135deg, #0d9488 0%, #0284c7 100%); --line-hi: rgba(13,148,136,.55); }
html[data-mode="light"][data-theme="emerald"] { --bg: #e7f4ec; --bg-2: #d8ecdf; --acc: #059669; --acc-2: #5a9a0b; --grad: linear-gradient(135deg, #059669 0%, #5a9a0b 100%); --line-hi: rgba(5,150,105,.55); }
html[data-mode="light"][data-theme="sunset"] { --bg: #fbecee; --bg-2: #f7dfe3; --acc: #e11d48; --acc-2: #ea580c; --grad: linear-gradient(135deg, #e11d48 0%, #ea580c 100%); --line-hi: rgba(225,29,72,.5); }
html[data-mode="light"][data-theme="royal"] { --bg: #efeafb; --bg-2: #e4dcf7; --acc: #7c3aed; --acc-2: #c026d3; --grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%); --line-hi: rgba(124,58,237,.5); }
html[data-mode="light"][data-theme="gold"] { --bg: #f8f1e0; --bg-2: #f0e5c9; --acc: #b7791f; --acc-2: #d4a017; --grad: linear-gradient(135deg, #b7791f 0%, #d4a017 100%); --line-hi: rgba(183,121,31,.55); }
html[data-mode="light"][data-theme="neon"] { --bg: #f1ebfb; --bg-2: #e6dcf6; --acc: #c026d3; --acc-2: #0891b2; --grad: linear-gradient(135deg, #c026d3 0%, #0891b2 100%); --line-hi: rgba(192,38,211,.5); }
html[data-mode="light"][data-theme="graphite"] { --bg: #eceff3; --bg-2: #e0e5ec; --acc: #2563eb; --acc-2: #475569; --grad: linear-gradient(135deg, #2563eb 0%, #475569 100%); --line-hi: rgba(37,99,235,.5); }
html[data-mode="light"][data-theme="minimal"] { --bg: #f2f2f3; --bg-2: #e8e8ea; --acc: #52525b; --acc-2: #71717a; --grad: linear-gradient(135deg, #52525b 0%, #71717a 100%); --line-hi: rgba(82,82,91,.5); }
html[data-mode="light"] body::before { opacity: .5; }
html[data-mode="light"] .bg-scene { opacity: .4; }

/* backgrounds: a quiet scene behind the page, very slow; only transform / opacity move */
.bg-scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-scene::before, .bg-scene::after { content: ""; position: absolute; display: none; will-change: transform, opacity; }
body::before { animation: bgDrift 80s ease-in-out infinite alternate; will-change: transform; }
@keyframes bgDrift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2.5%, 1.5%, 0) scale(1.07); } }
html[data-theme="classic"] body::before, html[data-theme="minimal"] body::before { animation: none; }
/* ocean: two slow rows of waves */
html[data-theme="ocean"] .bg-scene::before, html[data-theme="ocean"] .bg-scene::after { display: block; left: 0; bottom: 0; width: 200%; background-repeat: repeat-x; background-size: 50% 100%; }
html[data-theme="ocean"] .bg-scene::before { height: 34%; opacity: .55; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0 100 C150 40 350 40 600 100 S1050 160 1200 100 V200 H0 Z' fill='%232dd4bf' fill-opacity='.16'/></svg>"); animation: bgWave 110s linear infinite; }
html[data-theme="ocean"] .bg-scene::after { height: 28%; opacity: .6; bottom: -2%; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0 110 C200 150 400 150 600 110 S1000 70 1200 110 V200 H0 Z' fill='%2338bdf8' fill-opacity='.14'/></svg>"); animation: bgWave 70s linear infinite reverse; }
@keyframes bgWave { to { transform: translate3d(-50%, 0, 0); } }
/* emerald: soft slanted beams of light slide across */
html[data-theme="emerald"] .bg-scene::before { display: block; inset: -10% -30%; background: repeating-linear-gradient(100deg, transparent 0 150px, rgba(52,211,153,.07) 190px, transparent 240px); animation: bgBeam 140s linear infinite; }
html[data-theme="emerald"] .bg-scene::after { display: block; left: 0; right: 0; bottom: 0; height: 40%; background: radial-gradient(60% 100% at 50% 100%, rgba(16,185,129,.18), transparent 70%); animation: bgBreath 22s ease-in-out infinite; }
@keyframes bgBeam { to { transform: translate3d(480px, 0, 0); } }
@keyframes bgBreath { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
/* royal: two layers of stars that twinkle */
html[data-theme="royal"] .bg-scene::before { display: block; inset: 0; background: radial-gradient(rgba(255,255,255,.9) .8px, transparent 1.3px) 0 0 / 97px 97px, radial-gradient(rgba(196,181,253,.8) .7px, transparent 1.2px) 31px 47px / 71px 71px; animation: bgTwinkle 7s ease-in-out infinite alternate; }
html[data-theme="royal"] .bg-scene::after { display: block; inset: 0; background: radial-gradient(rgba(255,255,255,.85) 1px, transparent 1.6px) 13px 21px / 131px 131px, radial-gradient(rgba(240,171,252,.8) .8px, transparent 1.3px) 60px 9px / 83px 83px; animation: bgTwinkle 11s ease-in-out -4s infinite alternate; }
@keyframes bgTwinkle { from { opacity: .25; } to { opacity: .85; } }
/* sunset: a warm sun glows low on the horizon */
html[data-theme="sunset"] .bg-scene::before { display: block; left: 10%; right: 10%; bottom: -30%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(251,146,60,.38), rgba(244,63,94,.18) 55%, transparent 75%); animation: bgSun 26s ease-in-out infinite alternate; }
html[data-theme="sunset"] .bg-scene::after { display: block; left: -20%; right: -20%; top: 30%; height: 40%; background: linear-gradient(180deg, transparent, rgba(251,191,36,.05) 50%, transparent); animation: bgBand 60s ease-in-out infinite alternate; }
@keyframes bgSun { from { transform: scale(.95); opacity: .7; } to { transform: scale(1.12); opacity: 1; } } @keyframes bgBand { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(4%, 14%, 0); } }
/* neon: a perspective floor grid, moving toward you */
html[data-theme="neon"] .bg-scene::before { display: block; left: -30%; right: -30%; bottom: 0; height: 46%; background: linear-gradient(rgba(255,43,214,.32) 1px, transparent 1px) 0 0 / 100% 56px, linear-gradient(90deg, rgba(25,245,255,.28) 1px, transparent 1px) 0 0 / 72px 100%; -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%); transform: perspective(260px) rotateX(58deg); transform-origin: 50% 100%; animation: bgFloor 14s linear infinite; }
html[data-theme="neon"] .bg-scene::after { display: block; left: 0; right: 0; bottom: 38%; height: 2px; background: linear-gradient(90deg, transparent, rgba(25,245,255,.5), rgba(255,43,214,.5), transparent); box-shadow: 0 0 24px rgba(255,43,214,.45); opacity: .7; animation: bgBreath 9s ease-in-out infinite; }
@keyframes bgFloor { from { background-position: 0 0, 0 0; } to { background-position: 0 56px, 0 0; } }
/* gold: a slow band of light passes over, fine dust rises */
html[data-theme="gold"] .bg-scene::before { display: block; top: -10%; bottom: -10%; left: -50%; width: 45%; background: linear-gradient(100deg, transparent, rgba(246,217,138,.09), transparent); transform: skewX(-14deg); animation: bgSweep 48s ease-in-out infinite; }
html[data-theme="gold"] .bg-scene::after { display: block; left: 0; right: 0; top: -130px; bottom: 0; background: radial-gradient(rgba(246,217,138,.55) .8px, transparent 1.4px) 0 0 / 130px 130px; opacity: .35; animation: bgRise 90s linear infinite; }
@keyframes bgSweep { 0% { transform: translate3d(0, 0, 0) skewX(-14deg); } 70%, 100% { transform: translate3d(330vw, 0, 0) skewX(-14deg); } } @keyframes bgRise { to { transform: translate3d(0, 130px, 0); } }
/* graphite: a thin grid and a faint scan line */
html[data-theme="graphite"] .bg-scene::before { display: block; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(180deg, transparent, rgba(96,165,250,.06), transparent); animation: bgScan 46s linear infinite; }
@keyframes bgScan { to { transform: translate3d(0, 600%, 0); } }
:root[data-anim="off"] .bg-scene::before, :root[data-anim="off"] .bg-scene::after, :root[data-anim="off"] body::before { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .bg-scene::before, .bg-scene::after, body::before { animation: none !important; } }
@media (max-width: 760px) and (pointer: coarse) { .bg-scene { display: none; } }

/* appearance box: compact, brighter previews */
.theme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 3px 0 8px; } @media (max-width: 900px) { .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tsw { padding: 6px 6px 7px; gap: 4px; border-radius: 12px; } .tsw i { height: 42px; border-radius: 8px; filter: brightness(1.55) saturate(1.3); border-color: rgba(255,255,255,.3);
  background: radial-gradient(80% 110% at 14% 12%, var(--ta), transparent 72%), radial-gradient(80% 110% at 92% 92%, var(--tc), transparent 72%), linear-gradient(135deg, color-mix(in srgb, var(--tb) 70%, white 16%), var(--tb)); }
.tsw i::after { bottom: 5px; height: 9px; left: 6px; right: 6px; background: rgba(255,255,255,.22); } .tsw.flat i { background: var(--tb); filter: brightness(1.25); }
.tsw b { font-size: 12px; } .tsw small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-frm { grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important; align-items: end; gap: 8px 10px !important; }
.look-frm > div:first-child { grid-column: 1 / -1; } .look-frm .frm-act { margin: 0; padding: 0; gap: 8px; align-items: center; flex-wrap: nowrap; white-space: nowrap; } .look-frm label { margin: 0; } .look-frm select { height: 30px; }
@media (max-width: 760px) and (pointer: coarse) { .look-frm { grid-template-columns: 1fr 1fr !important; } }

/* the servers list: a server picture instead of the coloured edge */
.srv-tbl td:first-child, .srv-tbl tr.up td:first-child, .srv-tbl tr.down td:first-child, .srv-tbl tr.sev-red td:first-child, .srv-tbl tr.sev-yellow td:first-child, .srv-tbl tr.degraded td:first-child { border-left: 1px solid var(--line) !important; }
.srv-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 9px; vertical-align: -6px; color: var(--unk); transition: color .3s, transform .3s var(--ease, ease), filter .3s; }
.srv-ic svg { width: 100%; height: 100%; } .srv-ic .b { fill: color-mix(in srgb, currentColor 14%, transparent); stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; } .srv-ic .led { fill: currentColor; }
tr.up .srv-ic { color: var(--ok); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--ok) 55%, transparent)); } tr.down .srv-ic, tr.sev-red .srv-ic { color: var(--bad); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--bad) 55%, transparent)); } tr.sev-yellow .srv-ic { color: var(--warn); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--warn) 50%, transparent)); }
tr.up .srv-ic .led { animation: ledBlink 3.4s ease-in-out infinite; } tr.up .srv-ic .led.l2 { animation-delay: 1.1s; } tr.down .srv-ic .led { opacity: .35; }
tr.clk:hover .srv-ic { transform: scale(1.12) rotate(-4deg); } @keyframes ledBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
:root[data-anim="off"] .srv-ic .led { animation: none !important; }

/* a row grows a little under the mouse */
.lbox .cf-list tbody tr:hover, .lbox .usr-tbl tbody tr:hover, .lbox .srv-tbl tbody tr:hover, .lbox .tun-tbl tbody tr:hover { transform: scale(1.012) !important; position: relative; z-index: 4; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .16s ease, box-shadow .16s ease; }
.lbox .cf-list tbody tr:hover td, .lbox .usr-tbl tbody tr:hover td, .lbox .srv-tbl tbody tr:hover td, .lbox .tun-tbl tbody tr:hover td { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
/* Tunnel Doctor rows: one plain sentence, a "Detail" word for the rest, a button that never wraps */
.ap-row > * { flex: none; } .ap-row button { white-space: nowrap; } .ap-row .ap-why { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bad); font-size: 12.5px; max-width: none; }
.ap-row .ap-why.mut { color: var(--mut); } .ap-detail { flex: none; margin-left: -4px; font-size: 11.5px; font-weight: 700; color: var(--acc-2); cursor: pointer; text-decoration: underline dotted; } .ap-detail:hover { color: var(--acc); }
.ap-row b { white-space: nowrap; } .ap-row > .mut { white-space: nowrap; font-size: 11.5px; }

/* a foreign server: its country flag lies faded and stretched under the name */
.srv-tbl td.name { position: relative; isolation: isolate; } .srv-tbl td.name.has-flag::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--flag) center / 100% 100% no-repeat; opacity: .30; -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%); transition: opacity .3s; }
.srv-tbl tr:hover td.name.has-flag::before { opacity: .46; } html[data-mode="light"] .srv-tbl td.name.has-flag::before { opacity: .38; }

/* the "Copied" mark sits ON the address, solid green, so it is seen and never clipped by the cell */
.ip-copy::after { top: 50% !important; left: 0 !important; right: auto !important; margin: 0 !important; z-index: 6; padding: 3px 12px !important; font-size: 11.5px !important; font-weight: 800 !important; color: #052a1b !important; background: var(--ok) !important; box-shadow: 0 4px 14px rgba(0,0,0,.4) !important; transform: translateY(-50%) scale(.85); white-space: nowrap; }
.ip-copied::after { animation: ipPop2 1.5s ease-out both !important; }
@keyframes ipPop2 { 0% { opacity: 0; transform: translateY(-50%) scale(.7); } 12% { opacity: 1; transform: translateY(-50%) scale(1.06); } 20% { transform: translateY(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50%) scale(1); } }
.srv-tbl td:has(.ip-copy), .tun-tbl td:has(.ip-copy) { overflow: visible; }

/* side menu net: a real animated svg now (the old still picture is gone) */
.side::after { display: none !important; }
.side-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; border-radius: inherit; opacity: .5; -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 34%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, transparent 34%, #000 100%); }
@media (max-width: 900px) { .side-net { display: none; } }
.srv-tbl td.name.has-flag::before { opacity: .24; }

/* the flag: a short faded piece at the start of the name (not the whole cell), richer under the mouse */
.srv-tbl td.name.has-flag::before { right: auto; width: 150px; opacity: .26; -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%); transition: opacity .25s, filter .25s; }
.srv-tbl tr:hover td.name.has-flag::before { opacity: .72; filter: saturate(1.35); }
html[data-mode="light"] .srv-tbl td.name.has-flag::before { opacity: .4; } html[data-mode="light"] .srv-tbl tr:hover td.name.has-flag::before { opacity: .8; }

/* weight: nothing in the lists blinks all day (it repainted every server row), the neon floor does not repaint, the glow stays only on hover */
tr.up .srv-ic .led, tr.up .srv-ic .led.l2 { animation: none !important; }
tr.up .srv-ic, tr.down .srv-ic, tr.sev-red .srv-ic, tr.sev-yellow .srv-ic { filter: none; } tr.clk:hover .srv-ic { filter: drop-shadow(0 0 5px currentColor); }
html[data-theme="neon"] .bg-scene::before { animation: none; }

/* the highlight colour (active menu entry, active tabs) follows the theme instead of staying gold */
nav a.on > span { background: linear-gradient(180deg, var(--pri-top) 0%, var(--pri-mid) 55%, var(--pri-bot) 100%); -webkit-background-clip: text; background-clip: text; }
nav a.on { --ic: var(--pri-mid); } nav a.on .ic svg { filter: drop-shadow(0 0 6px rgba(var(--glow), .5)); }
@keyframes icOn { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(var(--glow), .4)); } 50% { transform: scale(1.13); filter: drop-shadow(0 0 9px rgba(var(--glow), .8)); } }
nav a.on > span { text-shadow: 0 1px 0 rgba(255,255,255,.2), 2px 3px 0 rgba(0,0,0,.5), 3px 5px 8px rgba(0,0,0,.4); }
body.tabbed .subnav .tabs button.on, .set-top .tabs button.on { color: var(--pri-top); box-shadow: inset 0 2px 0 var(--pri-mid), 0 -6px 18px rgba(var(--glow), .10); }
nav a.on .cnt { border-color: rgba(var(--glow), .5); background: rgba(var(--glow), .16); }
.tabs button.on { box-shadow: 0 4px 14px rgba(var(--glow), .3); } .gchip.on { box-shadow: 0 4px 14px rgba(var(--glow), .3); }

/* Mono glass: black and white frosted glass, very clean; only a few special buttons keep their own colour */
html[data-theme="mono"] { --bg: #000; --bg-2: #0a0a0a; --acc: #f4f4f5; --acc-2: #a1a1aa; --grad: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%); --line: rgba(255,255,255,.14); --line-hi: rgba(255,255,255,.55); --unk: #71717a; --mut: #a1a1aa; --text: #fafafa;
  --glass: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.035)); --glass-hi: linear-gradient(160deg, rgba(255,255,255,.17), rgba(255,255,255,.06)); --panel: rgba(255,255,255,.05); --panel-2: rgba(255,255,255,.085);
  --edge: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(255,255,255,.04); --shadow: 0 10px 30px rgba(0,0,0,.6); --shadow-hi: 0 18px 44px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  --pri-top: #ffffff; --pri-mid: #e4e4e7; --pri-bot: #a1a1aa; --pri-edge: #52525b; --pri-ink: #09090b; --pri-rim: rgba(255,255,255,.85); --glow: 255,255,255; --r: 16px; }
html[data-theme="mono"] body::before { background: radial-gradient(42% 38% at 12% 8%, rgba(255,255,255,.13), transparent 70%), radial-gradient(38% 34% at 90% 92%, rgba(255,255,255,.08), transparent 70%), radial-gradient(30% 28% at 60% 40%, rgba(255,255,255,.035), transparent 70%); }
html[data-theme="mono"] body::after { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); }
html[data-theme="mono"] .bg-scene::before { display: block; top: -10%; bottom: -10%; left: -50%; width: 34%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.07), rgba(255,255,255,.02), transparent); transform: skewX(-16deg); animation: bgSweep 52s ease-in-out infinite; }
html[data-theme="mono"] .bg-scene::after { display: block; left: -50%; top: -10%; bottom: -10%; width: 12%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.045), transparent); transform: skewX(-16deg); animation: bgSweep 52s ease-in-out -6s infinite; }
html[data-theme="mono"] .card, html[data-theme="mono"] .tiles, html[data-theme="mono"] .fstrip, html[data-theme="mono"] .toolbar, html[data-theme="mono"] .lbox { border-color: rgba(255,255,255,.16); }
html[data-theme="mono"] .modal, html[data-theme="mono"] .head { -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); }
html[data-theme="mono"] .brand b { background: linear-gradient(180deg, #ffffff, #a1a1aa); -webkit-background-clip: text; background-clip: text; }
html[data-theme="mono"] .st.up, html[data-theme="mono"] .st.online { filter: none; }
html[data-mode="light"][data-theme="mono"] { --bg: #f4f4f5; --bg-2: #e7e7ea; --acc: #18181b; --acc-2: #52525b; --grad: linear-gradient(135deg, #3f3f46 0%, #09090b 100%); --line-hi: rgba(0,0,0,.5); --glow: 0,0,0;
  --glass: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.7)); --pri-top: #52525b; --pri-mid: #27272a; --pri-bot: #09090b; --pri-edge: #000000; --pri-ink: #ffffff; --pri-rim: rgba(0,0,0,.6); }
html[data-mode="light"][data-theme="mono"] button.pri:not(.ai-btn) { text-shadow: none; }
html[data-mode="light"][data-theme="mono"] .bg-scene { opacity: .6; }

/* Iran gateway page: compact, one line per job */
.gw-card { padding: 10px 14px 12px; } .gw-card > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; } .gw-card > h3 .gw-sub { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 500; }
.gw-card > h3 .sp { flex: 1; } .gw-two { gap: 10px; align-items: stretch; } .gw-two > .gw-card { display: flex; flex-direction: column; }
.gw-card .frm { gap: 6px 10px; margin: 0; } .gw-card .frm label { gap: 3px; font-size: 11px; color: var(--mut); } .gw-card .frm select, .gw-card .frm input:not([type=checkbox]) { height: 30px; font-size: 12.5px; }
.gw-top { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto !important; align-items: end; } .gw-top .frm-act { display: flex; gap: 6px; flex-wrap: nowrap; margin: 0; padding: 0; } .gw-top .frm-act button { height: 30px; white-space: nowrap; }
.gw-add { display: grid !important; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr) auto auto !important; align-items: end; margin-top: auto !important; padding-top: 10px; border-top: 1px solid var(--line); } .gw-add .chk { height: 30px; align-self: end; display: flex; align-items: center; white-space: nowrap; } .gw-add .frm-act { margin: 0; padding: 0; } .gw-add button { height: 30px; white-space: nowrap; }
.gw-empty { padding: 6px 2px 10px; color: var(--mut); font-size: 12px; } .gw-card .gw-row { padding: 5px 8px; font-size: 12.5px; margin-bottom: 4px; }
.gw-card .ob-raw { min-height: 0; height: 52px; margin: 8px 0 6px; font-size: 11.5px; } .gw-note-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; padding: 0; } .gw-note-row input { height: 30px; } .gw-note-row button { height: 30px; white-space: nowrap; }
@media (max-width: 980px) { .gw-top, .gw-add { grid-template-columns: 1fr 1fr !important; } }
html[data-anim="off"] .bg-scene { display: none; } html[data-anim="off"] body::before { transform: none; } html[data-anim="off"] .logo-orb::before { --lg-a: 40deg; }

/* Probe card: addresses on one line, standby and buttons below, install as a thin strip */
.pr-card { padding: 10px 14px 12px; } .pr-card > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; } .pr-card > h3 .gw-sub { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 500; } .pr-card > h3 .sp { flex: 1; }
.pr-card .frm, .pr-card .pr-install { gap: 6px 10px; } .pr-card label { display: grid; gap: 3px; font-size: 11px; color: var(--mut); } .pr-card label small { font-size: 10.5px; font-weight: 500; opacity: .85; }
.pr-card select, .pr-card input:not([type=checkbox]) { height: 30px; font-size: 12.5px; } .pr-card .ob-raw { min-height: 0; height: 50px; font-size: 11.5px; resize: vertical; }
.pr-form { display: grid !important; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .9fr) !important; align-items: end; margin: 0; }
.pr-form .pr-b { grid-column: 1 / 3; } .pr-form .pr-act { grid-column: 3; display: flex; gap: 6px; justify-content: flex-end; margin: 0; padding: 0; } .pr-form .pr-act button { height: 30px; min-width: 76px; }
.pr-install { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); } .pr-ins-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } .pr-ins-row button { height: 30px; white-space: nowrap; }
@media (max-width: 980px) { .pr-form { grid-template-columns: 1fr 1fr !important; } .pr-form .pr-b, .pr-form .pr-act { grid-column: 1 / -1; } }

/* Tunnel Doctor settings: one tidy row */
.ap-set { padding: 10px 14px 12px; margin-bottom: 10px; } .ap-set > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; } .ap-set > h3 .gw-sub { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 500; }
.ap-set-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px 16px; align-items: end; margin-bottom: 6px; } .ap-set-row label { display: grid; gap: 3px; font-size: 11px; color: var(--mut); } .ap-set-row label.chk { display: flex; align-items: center; gap: 8px; height: 30px; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.ap-set-row select, .ap-set-row input:not([type=checkbox]) { height: 30px; font-size: 12.5px; } .ap-sec { display: flex; align-items: center; gap: 6px; } .ap-sec input { width: 100%; } .ap-sec em { font-style: normal; font-size: 11px; }
.ap-set-row button { height: 30px; min-width: 76px; } @media (max-width: 980px) { .ap-set-row { grid-template-columns: 1fr 1fr; } }
.pgs .pgn-gap { width: 40px; }


/* Shop bot settings: three short rows */
.sb-form { display: grid !important; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr) !important; gap: 8px 10px; align-items: end; margin: 0; }
.sb-form .sb-h { grid-column: 1; } .sb-form .sb-u { grid-column: 2; } .sb-form .sb-p { grid-column: 3; } .sb-form .sb-d { grid-column: 1 / 3; } .sb-form .sb-e { grid-column: 3 / 5; } .sb-form .sb-w { grid-column: 1 / 4; } .sb-form .sb-act { grid-column: 4; display: flex; justify-content: flex-end; margin: 0; padding: 0; } .sb-form .sb-act button { height: 30px; min-width: 76px; }
@media (max-width: 980px) { .sb-form { grid-template-columns: 1fr 1fr !important; } .sb-form > * { grid-column: auto !important; } .sb-form .sb-w { grid-column: 1 / -1 !important; } }

/* AI assistant card: the state in two short rows, the form in three */
.ai-card .ai-stat { margin: 0 0 10px; padding: 7px 12px; border-radius: 10px; font-size: 12.5px; } .ai-card .ai-head { margin: 0 0 4px; font-size: 12.5px; } .ai-card .ai-grid { grid-template-columns: repeat(3, auto minmax(0, 1fr)); gap: 3px 12px; font-size: 12px; } .ai-card .ai-stat .err { font-size: 12px; margin-bottom: 4px; }
.ai-form { display: grid !important; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) !important; gap: 8px 12px; align-items: end; margin: 0; }
.ai-form label.chk { display: flex; align-items: center; gap: 8px; height: 28px; font-size: 12.5px; color: var(--text); } .ai-form .ai-act { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; margin: 0; padding: 0; } .ai-form .ai-act button { height: 30px; }
@media (max-width: 980px) { .ai-form { grid-template-columns: 1fr !important; } .ai-card .ai-grid { grid-template-columns: auto 1fr; } }

/* Security: three rows (title + state, one sentence, buttons); effective settings as small chips */
#sec-box .sec-row { display: grid; grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 9px 12px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.sec-t { display: flex; align-items: center; gap: 8px; white-space: nowrap; } .sec-t i { font-style: normal; font-size: 15px; } .sec-t b { font-size: 13px; } .sec-d { font-size: 12px; line-height: 1.35; } .sec-a { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.sec-x { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .sec-x .sec-url { margin: 0; flex: 0 1 auto; padding: 5px 10px; } .sec-x small { font-size: 11.5px; }
@media (max-width: 980px) { #sec-box .sec-row { grid-template-columns: 1fr; } .sec-a { justify-content: flex-start; flex-wrap: wrap; } }
.eff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; margin: 10px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.eff-grid span { display: grid; gap: 1px; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); } .eff-grid em { font-style: normal; font-size: 10.5px; color: var(--mut); text-transform: uppercase; letter-spacing: .5px; } .eff-grid b { font-size: 12.5px; }

/* Security: a shield that says how protected the panel is, and three square cards */
.sec-hero { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); --sc: var(--bad); } .sec-hero.s1 { --sc: var(--warn); } .sec-hero.s2 { --sc: #9be15d; } .sec-hero.s3 { --sc: var(--ok); } .sec-hero { border-color: color-mix(in srgb, var(--sc) 45%, var(--line)); box-shadow: 0 0 22px color-mix(in srgb, var(--sc) 14%, transparent); }
.sec-shield { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); flex: none; } .sec-shield svg { width: 26px; height: 26px; }
.sec-ht { flex: 1; min-width: 0; display: grid; gap: 2px; } .sec-ht b { font-size: 14px; } .sec-ht small { font-size: 12px; }
.sec-seg { display: flex; gap: 5px; flex: none; } .sec-seg i { width: 38px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); } .sec-seg i.on { background: var(--sc); box-shadow: 0 0 8px color-mix(in srgb, var(--sc) 55%, transparent); }
.sec-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } @media (max-width: 980px) { .sec-cards { grid-template-columns: 1fr; } }
.sec-card { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); } .sec-card.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); } .sec-card.off { border-color: color-mix(in srgb, var(--bad) 32%, var(--line)); }
.sec-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); } .sec-card.ok .sec-ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); } .sec-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sec-shield svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .sec-card .sec-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sec-card .sec-t b { font-size: 13px; } .sec-card .sec-d { font-size: 12px; line-height: 1.4; color: var(--mut); min-height: 34px; } .sec-card .sec-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; } .sec-card .sec-url { margin: 0; padding: 4px 8px; font-size: 11px; }

/* Core update: one slim line per core */
.eng-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; } .eng-bar small { font-size: 11.5px; }
.eng-head, .eng-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; padding: 4px 10px; } .eng-head { padding-bottom: 2px; font-size: 10px; }
.eng-row { margin-bottom: 4px; font-size: 12px; min-height: 34px; border-radius: 10px; } .eng-name { display: flex; align-items: baseline; gap: 8px; } .eng-name b { display: inline; font-size: 12.5px; } .eng-name small { font-size: 10.5px; } .eng-ver, .eng-latest { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .eng-head { display: none; } .eng-row { grid-template-columns: 1fr 1fr; } }

/* password inside the Security card */
.pw-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px 10px; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); } .pw-h { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; } .pw-h b { font-size: 13px; } .pw-h small { font-size: 11.5px; }
.pw-form button { height: 30px; white-space: nowrap; } .pw-form .pw-o { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); } @media (max-width: 980px) { .pw-form { grid-template-columns: 1fr; } }

/* About & update: the status and the buttons on one line, the seven settings in one row */
.pr-card #about-box { margin: 0 0 8px; font-size: 12.5px; } .pr-card #about-box + .frm-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; } .pr-card #about-box + .frm-act button { height: 30px; } .pr-card #about-box + .frm-act small { flex: 1 1 260px; text-align: right; font-size: 11.5px; }
.eff-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin: 10px 0 6px; padding-top: 10px; } @media (min-width: 1100px) { .eff-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.eff-grid span { padding: 4px 9px; border-radius: 9px; } .eff-grid em { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .eff-grid b { font-size: 12px; white-space: nowrap; }

/* every theme preview in ONE row; the notes are in the tooltip */
.theme-grid { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; } @media (max-width: 1100px) { .theme-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } } @media (max-width: 600px) and (pointer: coarse) { .theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tsw { padding: 5px 5px 6px; gap: 3px; border-radius: 10px; } .tsw i { height: 34px; border-radius: 7px; } .tsw i::after { bottom: 4px; height: 7px; left: 5px; right: 5px; } .tsw b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tsw small { display: none; }
.look-frm .frm-act { grid-column: auto !important; }

/* Alerts: one card, a status strip and four sections (like Security) */
.al-hero { margin-bottom: 10px; } .al-hero .sec-shield svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.al-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .al-grid .al-wide { grid-column: 1 / -1; } @media (max-width: 980px) { .al-grid { grid-template-columns: 1fr; } }
.al-sec { align-items: flex-start; } .al-sec .sec-body { gap: 7px; } .al-sec .sec-t small { font-size: 11.5px; } .al-sec label { display: grid; gap: 3px; font-size: 11px; color: var(--mut); } .al-sec label.chk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); } .al-sec label small { font-size: 10.5px; font-weight: 500; opacity: .85; }
.al-sec input:not([type=checkbox]) { height: 30px; font-size: 12.5px; } .al-sec .sec-a { margin-top: 2px; } .al-sec .sec-a button { height: 28px; }
.al-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .al-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; } @media (max-width: 980px) { .al-rules { grid-template-columns: 1fr 1fr; } }
.al-rules label { white-space: nowrap; } .al-rules label input { width: 100%; } .al-save { align-items: center; } .al-save small { font-size: 11.5px; }
.al-win { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: end; } .al-win button { height: 30px; white-space: nowrap; } @media (max-width: 980px) { .al-win { grid-template-columns: 1fr 1fr; } }
.al-wrow { display: flex; align-items: center; gap: 12px; padding: 5px 9px; border-radius: 9px; border: 1px solid var(--line); font-size: 12px; } .al-wrow.act { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); } .al-wrow .mut { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* About & update: one card - a status strip, the cores, the settings */
.up-hero { margin-bottom: 8px; } .up-hero #about-box { margin: 0; font-size: 13px; } .up-hero .sec-ht small { font-size: 11.5px; } .up-btns { display: flex; gap: 6px; flex: none; } .up-btns button { height: 30px; white-space: nowrap; }
.up-hero .sec-shield svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.up-sec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); } .up-t { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; } .up-t b { font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase; } .up-t small { font-size: 11.5px; } .up-sec .eff-grid { margin: 0; padding: 0; border: 0; }

/* Settings: every card is as wide as the tab bar and has the same minimum height; forms flow into columns */
#page .grid2.one > .card { width: 100%; justify-self: stretch; min-height: 330px; box-sizing: border-box; }
#page .grid2.one .frm.one { max-width: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 14px; } #page .grid2.one .frm.one > .frm-act, #page .grid2.one .frm.one > label.chk, #page .grid2.one .frm.one > .ob-raw, #page .grid2.one .frm.one > small { grid-column: 1 / -1; }
.sec-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 1500px) { .sec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 760px) and (pointer: coarse) { .sec-cards { grid-template-columns: 1fr; } }
.pw-card .sec-body { gap: 6px; } .pw-card label { display: grid; gap: 2px; font-size: 11px; color: var(--mut); } .pw-card label.chk { display: flex; align-items: center; gap: 8px; font-size: 12px; } .pw-card input:not([type=checkbox]) { height: 30px; font-size: 12.5px; } .pw-card .sec-a { margin-top: 2px; }
.sec-card .sec-d { min-height: 0; }

/* Backups: the panel and the shop bot side by side, each a compact card; the schedule in one row */
.bk-card > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; } .bk-card > h3 .gw-sub { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 500; } .bk-card > h3 .sp { flex: 1; }
.bk-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; } @media (max-width: 980px) { .bk-parts { grid-template-columns: 1fr; } }
.bk-part { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding: 10px 12px; align-items: start; } .bk-part .bk-main { grid-column: 2; } .bk-part .bk-tg { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; } .bk-part .bk-act { grid-column: 1 / -1; flex-wrap: wrap; } .bk-act button, .bk-act a.btn { height: 28px; }
.bk-sched { padding: 8px 2px 4px; gap: 6px 14px; } .bk-more { margin-top: 4px; font-size: 12px; }

/* ===== 1.18: calm by default, light, Apple-like =====
   Nothing moves by itself unless the look is "Rich"; what you touch answers with a short, soft transition (transform / opacity only). */
:root { --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Vazirmatn", "Segoe UI", system-ui, sans-serif; --ease: cubic-bezier(.25, .1, .25, 1); }
body::before { filter: none; animation: none; will-change: auto; }
html:not([data-anim="rich"]) .bg-scene { display: none; }
html:not([data-anim="rich"]) :is(.logo-orb svg, .logo-orb::before, .logo-orb::after, .lg-n, .lg-run, .lg-halo, .side::after, nav a .ic svg, nav a .ic *, nav a:hover .ic *, nav a.on .ic *, .tun-arr.up, .tlink .pk, .tlink .pk.a, .tlink .pk.b, .srv-anim *, .tun-anim *, .pan-anim *, .bot-anim *, .gear-anim *, .sc-dot, .wrench, button.cta-tunnel:hover, nav a:hover::after, .ai-btn:hover::before) { animation: none !important; }
html:not([data-anim="rich"]) nav a .ic svg { opacity: .8; } html:not([data-anim="rich"]) nav a.on .ic svg { opacity: 1; filter: none; }
html[data-anim="rich"] body::before { animation: bgDrift 80s ease-in-out infinite alternate; will-change: transform; }
#page.enter .tbl tbody tr, #page.enter .tile, #page.enter .cf-card, #page.enter .dash-cols > .card, #page.enter .kpi { animation: none !important; }
button::after { display: none !important; } button:not(.ai-btn):not([onclick^="newTunnel("]):not([onclick^="openBuild("]):not(.lang-btn)::after { display: none !important; }
button:not(:disabled):not(.ai-btn):hover { transform: none; filter: none; box-shadow: none; border-color: var(--line-hi); background-color: rgba(255,255,255,.06); }
button:not(:disabled):active { transform: scale(.97); transition-duration: .08s; }
button { transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease), opacity .2s; box-shadow: none; }
button.pri:not(.ai-btn) { background: linear-gradient(180deg, var(--pri-top), var(--pri-mid)); border: 0; color: var(--pri-ink); text-shadow: none; font-weight: 700; letter-spacing: 0; box-shadow: 0 1px 2px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.4); }
button.pri:not(.ai-btn)::before { display: none; }
button.pri:not(.ai-btn):not(:disabled):hover { transform: none; filter: brightness(1.07); background: linear-gradient(180deg, var(--pri-top), var(--pri-mid)); box-shadow: 0 2px 10px rgba(var(--glow), .32), inset 0 1px 0 rgba(255,255,255,.45); }
button.pri:not(.ai-btn):disabled { box-shadow: none; }
button.cta { box-shadow: 0 1px 2px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25) !important; } button.cta-server:hover, button.cta-tunnel:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.3) !important; filter: brightness(1.06); }
button.cta-server::after, button.cta-tunnel::after { display: none !important; } button.cta:hover .cta-ic { transform: none; }
:focus-visible { outline: 2px solid rgba(var(--glow), .7); outline-offset: 2px; } button:focus-visible, input:focus-visible, select:focus-visible { outline-offset: 1px; }
.card, .sbox, .tile, .tiles, .fstrip, .toolbar:not(.card .toolbar), .lbox, .modal, .head, .side { box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tile:hover, .gw-row:hover, .ap-row:hover, .hl-row:hover, .wtool:hover, .dns-row:hover, .kpi:hover { transform: none !important; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.lbox .cf-list tbody tr:hover, .lbox .usr-tbl tbody tr:hover, .lbox .srv-tbl tbody tr:hover, .lbox .tun-tbl tbody tr:hover { transform: scale(1.008) !important; box-shadow: 0 4px 14px rgba(0,0,0,.28); transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.modal { animation-duration: .18s; } @keyframes pgIn { from { opacity: 0; } to { opacity: 1; } }
html[data-theme="neon"] .bg-scene, html[data-theme="gold"] .bg-scene { display: none; } html[data-anim="rich"][data-theme="neon"] .bg-scene, html[data-anim="rich"][data-theme="gold"] .bg-scene { display: block; }
/* Settings: the frame of every tab is as wide as the row of tabs (--set-w is measured by the script); inside it the parts sit side by side, each up to the middle */
@media (min-width: 761px), (pointer: fine) {
  #page .grid2.one { grid-template-columns: min(var(--set-w, 100%), 100%) !important; justify-content: start; }
  #page .grid2.one > .card { width: 100%; min-height: 0; }
  .sec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sec-card { flex-direction: column; gap: 8px; } .sec-card .sec-ic { width: 32px; height: 32px; } .sec-card .sec-a { margin-top: 4px; }
  .al-grid .al-wide { grid-column: auto !important; } .al-rules { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .al-win { grid-template-columns: 1fr 1fr !important; } .al-win button { grid-column: 1 / -1; }
  .up-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; align-items: start; } .up-card > h3, .up-card > .up-hero, .up-card > #about-log { grid-column: 1 / -1; } .up-card > :nth-child(4) { grid-column: 1; } .up-card > :nth-child(5) { grid-column: 2; }
  .eff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* ===== Settings, rebuilt: one frame per tab (as wide as the row of tabs), grouped lists inside like a phone's settings ===== */
#page .set-wrap { display: grid; grid-template-columns: min(var(--set-w, 100%), 100%); justify-content: start; gap: 0; }
#page .set-wrap > .card.sf { width: 100%; min-height: 0 !important; height: auto; margin: 0; padding: 12px 14px 14px; border-radius: 0 0 18px 18px; box-sizing: border-box; }
.sf > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; } .sf > h3 .sf-d { flex: 1; min-width: 0; text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 500; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sf > h3 .sp { display: none; }
.sg { columns: 1; column-gap: 10px; }      /* the groups sit one under the other, inside the frame */ .sg.one { columns: 1; } .sg > .ss { break-inside: avoid; margin: 0 0 10px; } .sg > .ss:last-child { margin-bottom: 0; }
.ss { display: block; width: 100%; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); overflow: hidden; box-shadow: none; } .ss.x { break-inside: avoid; } .ss.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.ss-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 36px; } .ss-h b { font-size: 13px; } .ss-h > small { flex: 1; min-width: 0; font-size: 11px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ss-h .pill { height: 18px; padding: 0 8px; font-size: 10.5px; display: inline-flex; align-items: center; }
.ss-ic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--acc); background: rgba(var(--glow), .14); } .ss-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ss-h.ok .ss-ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); } .ss-h.off .ss-ic { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.ss-rows { display: block; } .sr { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 5px 12px; margin: 0; border-top: 1px solid var(--line); font-size: 12.5px; cursor: default; }
.sr > span { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; } .sr > span small { font-size: 10.5px; color: var(--mut); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr > .v { flex: 0 1 300px; display: flex; justify-content: flex-end; align-items: center; min-width: 0; } .sr > .v.t { font-size: 12.5px; text-align: right; flex: 1 1 auto; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr > .v input:not([type=checkbox]), .sr > .v select { width: 100%; height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 8px; text-align: right; } .sr > .v select { text-align: left; } .sr > .v input[type=datetime-local] { font-size: 11.5px; padding: 0 6px; }
.sr.x { display: block; cursor: auto; } .sr.x > span { display: grid; gap: 1px; margin-bottom: 6px; font-size: 12.5px; } .sr.x > span small { font-size: 10.5px; color: var(--mut); } .sr.x textarea { width: 100%; min-height: 0; height: 52px; font-size: 11.5px; border-radius: 8px; resize: vertical; }
.sr.li > span { font-size: 12px; } .sr.li.act { background: color-mix(in srgb, var(--warn) 8%, transparent); } .sr code { font-size: 11px; }
.ss-a { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); } .ss-a button, .ss-a a.btn { height: 28px; padding: 0 12px; font-size: 12px; }
.ss-hero { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); --sc: var(--bad); } .ss-hero.s1 { --sc: var(--warn); } .ss-hero.s2 { --sc: #9be15d; } .ss-hero.s3 { --sc: var(--ok); }
.ss-hero { border-color: color-mix(in srgb, var(--sc) 40%, var(--line)); } .ss-hero .ss-ic { width: 30px; height: 30px; border-radius: 10px; color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); } .ss-hero .ss-ic svg { width: 18px; height: 18px; }
.ss-ht { flex: 1; min-width: 0; display: grid; gap: 1px; } .ss-ht b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ss-ht small { font-size: 11px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ss-hr { flex: none; display: flex; align-items: center; gap: 6px; } .ss-hr button { height: 28px; font-size: 12px; } .ss-hero .sec-seg i { width: 26px; height: 6px; }
input[type=checkbox].sw { appearance: none; -webkit-appearance: none; background-image: none; width: 36px; height: 21px; margin: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); position: relative; cursor: pointer; transition: background .2s var(--ease); flex: none; } input[type=checkbox].sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s var(--ease); } input[type=checkbox].sw:checked { background: var(--ok); background-image: none; } input[type=checkbox].sw:checked::after { transform: translateX(15px); } html[data-mode="light"] input[type=checkbox].sw { background: rgba(0,0,0,.18); }
.sf .theme-grid { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; margin: 0; } .sf .eff-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.sf #eng-box { padding: 8px 10px; } .sf .eng-bar { margin-bottom: 4px; } .sf .sec-codes { margin: 0; } .sf .sec-url { margin: 0; }
@media (max-width: 1200px) { .sf .theme-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .sf .eff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sr > .v.t { white-space: normal; line-height: 1.3; } .sg.one .sr > .v { flex-basis: 340px; }
.sf .sr.x .eff-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) !important; } @media (max-width: 1300px) { .sf .sr.x .eff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.sf .eff-grid span { padding: 4px 8px; } .sf .eff-grid em { font-size: 9px; } .sf .eff-grid b { font-size: 11.5px; }
/* inside a group the rows sit two per line, so nothing is left empty on a wide screen; a wide row (.x) takes the whole line */
@media (min-width: 761px), (pointer: fine) {
  .ss-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .ss-rows > .sr.x, .ss-rows > pre, .ss-rows > .sr.li, .sg.one .ss-rows > .sr:has(input[name=public_url]), .ss-rows > #eng-box { grid-column: 1 / -1; }
  .ss-rows > .sr:nth-child(even):not(.x):not(.li) { border-left: 1px solid var(--line); }
  .sr { min-height: 36px; padding: 4px 12px; } .sr > .v { flex: 0 1 230px; } .sr > .v.t { flex: 1 1 auto; }
  .ss-h { min-height: 32px; padding: 6px 12px; } .ss-a { padding: 6px 12px; } .ss-hero { padding: 6px 12px; margin-bottom: 8px; } .sg > .ss, .ss { margin-bottom: 8px; }
  #page .set-wrap > .card.sf { padding: 10px 12px 12px; } .sf > h3 { margin-bottom: 8px; }
}
/* the page header scrolls away; the rows of tabs stay locked at the top, so nothing falls behind the header */
@media (min-width: 761px), (pointer: fine) {
  .head { position: static; }
  .subnav, .set-top { position: sticky; top: 0; z-index: 7; background: var(--bg); padding-top: 4px; margin-top: -4px; }
  .subnav::before, .set-top::before { content: ""; position: absolute; left: -6px; right: -6px; top: 0; bottom: 0; z-index: -1; background: var(--bg); }
}
/* every tab's frame has the same height (the Appearance tab's); a tab with more content grows */
@media (min-width: 761px), (pointer: fine) { #page .set-wrap > .card.sf { min-height: 640px !important; } }
/* the settings frame: as wide as the row of tabs (first tab to a little past the last one), the height only what the content needs;
   the description strip and the tab bar end at the same edge; a lone row at the end of a group takes the whole line */
@media (min-width: 761px), (pointer: fine) {
  #page .set-wrap > .card.sf { min-height: 0 !important; }
  #page .set-top, #page .set-desc { width: min(var(--set-w, 100%), 100%); box-sizing: border-box; }
  .ss-rows > .sr:not(.x):not(.li):nth-child(odd):is(:last-child, :has(+ .x), :has(+ .li), :has(+ pre), :has(+ .hidden:last-child)) { grid-column: 1 / -1; border-left: 0; }
  .sf .theme-grid { gap: 5px; } .sf .tsw { padding: 4px 4px 5px; } .sf .tsw b { font-size: 10px; letter-spacing: -.1px; } .sf .tsw i { height: 30px; }
}
/* the groups do not fill the frame: each is 640 px wide (the wide ones - theme, cores, service settings - take the frame), rows one per line */
@media (min-width: 761px), (pointer: fine) {
  .sf .ss, .sf .ss-hero { width: min(100%, 640px); } .sf .ss.x { width: 100%; }
  .ss-rows { display: block; } .ss-rows > .sr { border-left: 0 !important; grid-column: auto; } .sr > .v { flex: 0 1 250px; }
}
/* a tunnel whose server is off (state unknown with a reason) is drawn cut, like a down one: red dashed wire, a cross, no packets */
.tlink.cut { --c: var(--bad); } .tlink.cut .wire::before, .tlink.cut .wire::after { background: repeating-linear-gradient(90deg, var(--c) 0 8px, transparent 8px 13px); opacity: .9; } .tlink.cut .pk { display: none; }

/* settings rows: the control sits right after its label, nothing is stretched; a group is only as wide as its content */
@media (min-width: 761px), (pointer: fine) {
  .sf .ss, .sf .ss-hero { width: fit-content; min-width: 360px; max-width: 100%; } .sf .ss.x { width: 100%; }
  .ss-h { min-height: 30px; padding: 5px 10px; } .ss-h > small { flex: 0 1 auto; }
  .sr { justify-content: flex-start; gap: 12px; min-height: 34px; padding: 3px 10px; }
  .sr > span { flex: 0 0 auto; max-width: 340px; } .sr > .v { flex: 0 0 auto; width: auto; justify-content: flex-start; }
  .sr > .v.t { flex: 0 1 auto; max-width: 560px; text-align: left; white-space: normal; }
  .sr > .v input:not([type=checkbox]), .sr > .v select { width: 230px; text-align: left; } .sr > .v input[type=number] { width: 90px; } .sr > .v input[type=datetime-local] { width: 190px; }
  .sr.x textarea { width: 560px; max-width: 100%; }
  .ss-a { justify-content: flex-start; padding: 6px 10px; gap: 6px; }
  .ss-hero { gap: 10px; padding: 6px 10px; } .ss-hero .ss-ht b, .ss-hero .ss-ht small { white-space: normal; }
}
/* a group of many short rows (numbers, passwords) shows them two per line, each column only as wide as its content */
@media (min-width: 761px), (pointer: fine) {
  .ss.two .ss-rows { display: grid; grid-template-columns: max-content max-content; } .ss.two .ss-rows > .sr:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .ss.two .ss-rows > .sr:nth-child(odd):last-child, .ss.two .ss-rows > pre { grid-column: 1 / -1; }
  .ss.two .sr > span { max-width: 260px; }
}
.st.why { text-transform: none; letter-spacing: 0; font-size: 12px; white-space: nowrap; }
/* fewer boxes: an item is one line (icon, name, state, a few words, its buttons); a flat group has no box, only its lines */
.sl { display: block; margin: 0 0 8px; } .si { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 5px 4px; border-top: 1px solid var(--line); } .sl > .si:first-child { border-top: 0; }
.si-t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; } .si-t b { font-size: 13px; } .si-t small { flex-basis: 100%; font-size: 11px; color: var(--mut); line-height: 1.3; } .si-t .pill { height: 18px; padding: 0 8px; font-size: 10.5px; display: inline-flex; align-items: center; }
.si-a { display: flex; align-items: center; gap: 6px; flex: none; } .si-a button, .si-a a.btn { height: 28px; padding: 0 12px; font-size: 12px; } .si-a select { height: 28px; width: auto; max-width: 180px; font-size: 12px; }
.si.ok .ss-ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); } .si.off .ss-ic { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.swl { display: inline-flex; align-items: center; } .si .sec-url { display: inline; padding: 1px 6px; font-size: 11px; }
.ss.flat { border: 0 !important; background: none !important; border-radius: 0 !important; width: 100% !important; min-width: 0 !important; margin: 0 0 6px !important; overflow: visible; }
.ss.flat .ss-h { padding: 6px 4px 4px; } .ss.flat .ss-rows { display: block; } .ss.flat .sr { padding: 3px 4px; } .ss.flat .ss-a { background: none; border-top: 0; padding: 4px 4px 6px; justify-content: flex-start; }
@media (min-width: 761px), (pointer: fine) { .ss.flat.two .ss-rows { display: grid; grid-template-columns: max-content max-content; } .ss.flat.two .ss-rows > .sr:nth-child(even) { border-left: 0 !important; } }
/* one box only (the password); the rest are plain lines. An item: icon, name, state, and its buttons in one column close by. */
.ss.flat { border: 0 !important; background: none !important; } .ss.flat .sr { border-top: 0 !important; } .ss.flat .ss-a { border-top: 0 !important; background: none !important; }
.ss-hero { border: 0 !important; background: none !important; padding: 4px 4px !important; } .ss-hero .ss-ht { flex: 0 1 auto; } .ss-hero .ss-hr { margin-left: 10px; }
@media (min-width: 761px), (pointer: fine) {
  .si { display: grid; grid-template-columns: 30px 190px max-content; align-items: center; gap: 10px; border-top: 0; min-height: 36px; padding: 3px 4px; width: max-content; max-width: 100%; }
  .si-t { flex-wrap: nowrap; } .si-a { justify-content: flex-start; } .si-t .pill { flex: none; }
  .sr > span small { display: none; }
}
/* the switch: a track of its own (the base checkbox style left it 22 px wide, so the knob stuck out) */
input[type=checkbox].sw { width: 38px !important; height: 22px !important; min-width: 38px !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; box-sizing: border-box; background-image: none !important; background-color: rgba(255,255,255,.18); flex: none; }
input[type=checkbox].sw::after { top: 2px !important; left: 2px !important; width: 18px !important; height: 18px !important; } input[type=checkbox].sw:checked { background-color: var(--ok) !important; } input[type=checkbox].sw:checked::after { transform: translateX(16px) !important; } input[type=checkbox].sw::before { content: none !important; }
/* the items (two-step, recovery, secret path, backups, probe install): name with its explanation underneath, the buttons in ONE column right after the text */
@media (min-width: 761px), (pointer: fine) {
  .sl { display: grid; grid-template-columns: 30px max-content max-content; column-gap: 12px; row-gap: 2px; align-items: center; justify-content: start; width: max-content; max-width: 100%; }
  .si { display: contents; } .si > * { padding: 5px 0; } .si-t { display: grid; gap: 1px; min-width: 0; } .si-n { display: flex; align-items: center; gap: 8px; } .si-t small { display: block; flex: none; font-size: 11px; color: var(--mut); line-height: 1.3; }
  .si-a { display: flex; align-items: center; gap: 6px; justify-self: start; }
}
@media (min-width: 761px), (pointer: fine) { .sl { grid-template-columns: 30px minmax(0, 340px) max-content; } .si-t small { white-space: normal; } }
/* buttons of the items: one size, in one column; the text boxes of two items */
@media (min-width: 761px), (pointer: fine) {
  .si-a button, .si-a a.btn { min-width: 124px; justify-content: center; text-align: center; } .si-a { flex-wrap: wrap; max-width: 420px; }
  .si-f { display: block; width: 100%; max-width: 340px; margin-top: 4px; font-size: 12px; height: 28px; border-radius: 8px; padding: 0 9px; } textarea.si-f { height: 52px; padding: 5px 9px; resize: none; font-family: var(--mono); font-size: 11px; line-height: 1.4; }
  .si-t .sec-url { display: inline-block; margin-top: 3px; }
}
/* Current (the old password) is set apart from New and Repeat: an amber edge, on its own line */
.sr.cur .v input { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)) !important; background: color-mix(in srgb, var(--warn) 7%, var(--panel-2)) !important; } .sr .v input.nw { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)) !important; }
@media (min-width: 761px), (pointer: fine) { .ss.two .ss-rows > .sr.cur { grid-column: 1 / -1; } }
/* the hero strip is the one boxed piece */
.ss-hero { border: 1px solid color-mix(in srgb, var(--sc) 40%, var(--line)) !important; background: var(--panel-2) !important; padding: 7px 12px !important; border-radius: 14px !important; width: fit-content; max-width: 100%; margin: 0 0 8px !important; }
/* the switch: 40 x 24, knob 20, an even 2 px gap all round */
input[type=checkbox].sw { width: 40px !important; height: 24px !important; min-width: 40px !important; } input[type=checkbox].sw::after { width: 20px !important; height: 20px !important; top: 2px !important; left: 2px !important; } input[type=checkbox].sw:checked::after { transform: translateX(16px) !important; }
/* settings rows: a fixed label column and a fixed control column, so every box lines up in columns */
@media (min-width: 761px), (pointer: fine) {
  .ss .sr:not(.x) { display: grid !important; grid-template-columns: 170px max-content; column-gap: 10px; align-items: center; justify-content: start; min-height: 36px; padding: 3px 4px; }
  .ss .sr > span { max-width: none; white-space: nowrap; } .ss .sr > .v { justify-content: flex-start; flex: none; width: auto; } .ss .sr > .v.t { max-width: 520px; white-space: normal; }
  .ss .sr > .v input:not([type=checkbox]):not([type=number]):not([type=datetime-local]), .ss .sr > .v select { width: 290px; } .ss .sr > .v input[type=number] { width: 110px; } .ss .sr > .v input[type=datetime-local] { width: 200px; }
  .ss.two .ss-rows { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 40px; justify-content: start; }
  .ss .sr:has(.sw), .ss .sr:has(.v.t), .ss .sr.cur, .ss .sr.li { grid-column: 1 / -1; }
  .ss.two .sr > .v input[type=password] { width: 200px; }
  .ss .sr.li { display: flex !important; gap: 12px; } .ss .ss-a { padding: 6px 4px 8px; }
}
@media (min-width: 761px), (pointer: fine) { .ss .sr:has(.sw) { grid-template-columns: max-content max-content !important; column-gap: 14px; } }
/* every item is ONE row: icon, name (explanation under it), its text box, its buttons - the four columns line up from row to row */
@media (min-width: 761px), (pointer: fine) {
  .sl { grid-template-columns: 30px 290px minmax(0, 330px) max-content; column-gap: 14px; row-gap: 4px; }
  .si-c { display: flex; align-items: center; gap: 6px; padding: 5px 0; min-width: 0; } .si-c .si-f { margin: 0; flex: 1 1 auto; max-width: none; width: auto; min-width: 0; height: 30px; font-size: 12.5px; }
  .si-c.pw { grid-column: 3; flex-wrap: wrap; } .si-c.pw .si-f { flex: 1 1 100%; } .si-c.pw .swl { gap: 8px; font-size: 12px; color: var(--mut); }
  .si-c .si-f.cur { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)) !important; background: color-mix(in srgb, var(--warn) 7%, var(--panel-2)) !important; } .si-c .si-f.nw { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)) !important; }
  .si-a { align-self: center; } .si-a button, .si-a a.btn { min-width: 132px; }
  form.sl { margin-top: 4px; }
}
/* categories: a small caption over its rows; every control in a row is the same size */
.sc { font-size: 10.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--mut); padding: 8px 4px 2px; } .sc:first-child { padding-top: 2px; }
@media (min-width: 761px), (pointer: fine) {
  .ss .sr > .v input:not([type=checkbox]):not([type=number]):not([type=datetime-local]), .ss .sr > .v select, .ss .sr > .v input[type=datetime-local] { width: 260px; } .ss .sr > .v input[type=number] { width: 100px; }
  .ss .sr > .v input, .ss .sr > .v select { height: 30px; border-radius: 8px; font-size: 12.5px; padding: 0 10px; text-align: left; }
  .ss .sr.x textarea { width: 430px; }
  .ss .ss-rows { display: block !important; } .ss .sr { grid-column: auto; }
}
/* the password: its name on top, the boxes in one row under it, the button under the boxes */
.pwf { display: block; margin: 8px 0 4px; } .pwf-h { display: flex; align-items: center; gap: 8px; padding: 4px 0; } .pwf-h b { font-size: 13px; } .pwf-h small { font-size: 11px; color: var(--mut); }
.pwf-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 4px 0; } .pwf-f .si-f { width: 220px; height: 30px; border-radius: 8px; font-size: 12.5px; padding: 0 10px; margin: 0; }
.pwf-f .si-f.cur { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)) !important; background: color-mix(in srgb, var(--warn) 7%, var(--panel-2)) !important; } .pwf-f .si-f.nw { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)) !important; }
.pwf-f .swl { gap: 8px; font-size: 12px; color: var(--mut); } .pwf-a { padding: 4px 0; } .pwf-a button { height: 30px; min-width: 150px; }
/* an item: icon on the left; name, explanation, and under them the text box with its buttons beside it */
@media (min-width: 761px), (pointer: fine) {
  .sl { display: block; width: auto; }
  .si { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: start; width: auto; padding: 8px 4px; border-top: 1px solid var(--line); min-height: 0; } .sl > .si:first-child { border-top: 0; }
  .si > .ss-ic { margin-top: 2px; } .si-b { min-width: 0; } .si-t { display: grid; gap: 2px; } .si-t small { white-space: normal; }
  .si-r { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .si-r .si-f { width: 320px; max-width: 100%; flex: none; height: 30px; margin: 0; }
  .si-r .si-a { display: inline-flex; gap: 6px; } .si-a button, .si-a a.btn { min-width: 0; padding: 0 14px; height: 30px; }
}
/* the switch drawn with its own knob (background), so nothing can make the knob bigger than its track */
input[type=checkbox].sw { appearance: none; -webkit-appearance: none; width: 40px !important; height: 24px !important; min-width: 40px !important; border-radius: 999px !important; border: 0 !important; padding: 0 !important; background-color: rgba(255,255,255,.2) !important; background-image: radial-gradient(circle closest-side, #fff 96%, transparent 100%) !important; background-repeat: no-repeat !important; background-size: 20px 20px !important; background-position: 2px 50% !important; transition: background-position .18s var(--ease), background-color .18s !important; box-shadow: none !important; }
input[type=checkbox].sw:checked { background-color: var(--ok) !important; background-position: calc(100% - 2px) 50% !important; }
input[type=checkbox].sw::after, input[type=checkbox].sw::before { content: none !important; display: none !important; }
html[data-mode="light"] input[type=checkbox].sw { background-color: rgba(0,0,0,.2) !important; } html[data-mode="light"] input[type=checkbox].sw:checked { background-color: var(--ok) !important; }
/* every tab like Security: a name on top, each text box UNDER its name, the buttons beside the boxes */
@media (min-width: 761px), (pointer: fine) {
  .ss.flat { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; width: 100% !important; padding: 8px 4px 10px; border-top: 1px solid var(--line) !important; } .sf > .ss.flat:first-of-type, .sf > .ss-hero + .ss.flat, .sg > .ss.flat:first-child { border-top: 0 !important; }
  .ss.flat > .ss-h { flex: 0 0 100%; padding: 0 0 2px; } .ss.flat > .ss-rows { display: contents !important; }
  .ss.flat .sc { flex: 0 0 100%; padding: 4px 0 0; }
  .ss.flat .sr:not(.x):not(.li):not(:has(.sw)):not(:has(.v.t)) { display: flex !important; flex-direction: column; align-items: flex-start; gap: 3px; width: auto; min-height: 0; padding: 0; grid-template-columns: none; }
  .ss.flat .sr:not(.x) > span { font-size: 11.5px; color: var(--mut); white-space: nowrap; }
  .ss.flat .sr:has(.sw) { flex: 0 0 auto; display: flex !important; flex-direction: row; align-items: center; gap: 10px; min-height: 30px; padding: 0; } .ss.flat .sr:has(.sw) > span { font-size: 12.5px; color: var(--text); }
  .ss.flat .sr:has(.v.t) { flex: 0 0 100%; padding: 0; min-height: 0; } .ss.flat .sr.x, .ss.flat .sr.li { flex: 0 0 100%; padding: 0; }
  .ss.flat .ss-a { padding: 0; margin: 0; align-self: flex-end; } .ss.flat .ss-a button, .ss.flat .ss-a a.btn { height: 30px; }
  .ss.flat .sr > .v input:not([type=checkbox]):not([type=number]):not([type=datetime-local]), .ss.flat .sr > .v select, .ss.flat .sr > .v input[type=datetime-local] { width: 240px; } .ss.flat .sr > .v input[type=number] { width: 96px; }
}
/* the knob floats inside its track: 16 px in a 24 px track, a clear 4 px gap all round */
input[type=checkbox].sw { background-size: 16px 16px !important; background-position: 4px 50% !important; }
input[type=checkbox].sw:checked { background-position: calc(100% - 4px) 50% !important; }
/* the password boxes: one above the other, each with a show / hide eye */
.pwf-f { flex-direction: column; align-items: flex-start; gap: 8px; } .pwi { position: relative; display: block; } .pwf-f .pwi .si-f { width: 320px; padding-right: 38px; }
.pwi .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 24px; min-width: 0; padding: 0; border: 0; border-radius: 6px; background: none; box-shadow: none; display: grid; place-items: center; color: var(--mut); cursor: pointer; } .pwi .eye:hover { color: var(--text); background: rgba(255,255,255,.08); }
.pwi .eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .pwi .eye .slash { display: none; } .pwi .eye.on .slash { display: block; }
@media (min-width: 761px), (pointer: fine) { .ss.flat .sr > .v, .sg.one .ss.flat .sr > .v { flex: 0 0 auto !important; height: auto; width: auto; } .ss.flat .sr:has(.v.t) > .v { flex: 1 1 auto !important; } }
.si-n .si-a { display: inline-flex; gap: 6px; margin-left: 10px; } .si-n .si-a button, .si-n .si-a a.btn { height: 28px; padding: 0 14px; }
/* ALL text boxes of the Security items share one column and one width */
@media (min-width: 761px), (pointer: fine) { .si-r .si-f, .pwf-f .pwi, .pwf-f .pwi .si-f { width: 340px; max-width: 100%; } .pwf-f { padding: 6px 0 2px; } .pwf-a { padding: 6px 0 0; } .si .pwf-f .si-f { height: 30px; } }
/* the switch: a track 18 px high with a knob a little bigger than the track (26 px), like a real toggle */
input[type=checkbox].sw { position: relative; width: 46px !important; height: 28px !important; min-width: 46px !important; background: none !important; background-image: none !important; border-radius: 999px !important; transition: none !important; }
input[type=checkbox].sw::before { content: "" !important; display: block !important; position: absolute; left: 0; right: 0; top: 5px; bottom: 5px; border-radius: 999px; background: rgba(255,255,255,.2); transition: background .18s; }
input[type=checkbox].sw::after { content: "" !important; display: block !important; position: absolute; top: 1px !important; left: 0 !important; width: 26px !important; height: 26px !important; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); transition: transform .18s var(--ease); }
input[type=checkbox].sw:checked { background: none !important; } input[type=checkbox].sw:checked::before { background: var(--ok); } input[type=checkbox].sw:checked::after { transform: translateX(20px) !important; }
html[data-mode="light"] input[type=checkbox].sw::before { background: rgba(0,0,0,.2); } html[data-mode="light"] input[type=checkbox].sw:checked::before { background: var(--ok); }
/* the settings frame is paler */
#page .set-wrap > .card.sf { background: rgba(255,255,255,.015) !important; border-color: rgba(255,255,255,.06) !important; box-shadow: none !important; } html[data-mode="light"] #page .set-wrap > .card.sf { background: rgba(255,255,255,.5) !important; }
.set-desc { background: rgba(255,255,255,.015) !important; border-color: rgba(255,255,255,.05) !important; }
/* the switch exactly like the reference (iOS): a 46 x 28 track, a white knob of 24 px with a 2 px gap, green when on */
input[type=checkbox].sw { width: 46px !important; height: 28px !important; min-width: 46px !important; }
input[type=checkbox].sw::before { top: 0 !important; bottom: 0 !important; background: rgba(255,255,255,.22); }
input[type=checkbox].sw::after { top: 2px !important; left: 2px !important; width: 24px !important; height: 24px !important; box-shadow: 0 2px 4px rgba(0,0,0,.35); }
input[type=checkbox].sw:checked::after { transform: translateX(18px) !important; }
/* the eye (iOS style): a thin line eye; crossed out while the password is shown; no box, no jump */
.pwi .eye { position: absolute; right: 8px; top: 0; bottom: 0; margin: auto 0; transform: none !important; width: 26px; height: 26px; border: 0; background: none !important; box-shadow: none !important; filter: none !important; color: rgba(255,255,255,.5); display: grid; place-items: center; transition: color .15s; }
.pwi .eye:hover, .pwi .eye:active, .pwi .eye:focus { transform: none !important; background: none !important; box-shadow: none !important; color: #fff; outline: 0; }
.pwi .eye svg { width: 20px; height: 20px; stroke-width: 1.5; } .pwi .eye .shut { display: none; } .pwi .eye.on .shut { display: block; } .pwi .eye.on { color: var(--ok); }
/* the frame of the settings is almost invisible */
#page .set-wrap > .card.sf { background: transparent !important; border-color: rgba(255,255,255,.035) !important; } .set-desc { background: transparent !important; border-color: transparent !important; }
.ss-hero { background: rgba(255,255,255,.02) !important; border-color: color-mix(in srgb, var(--sc) 22%, transparent) !important; } .si, .sl > .si { border-top-color: rgba(255,255,255,.05) !important; }
.si-f, .sr > .v input:not([type=checkbox]), .sr > .v select, .pwf-f .si-f { background: rgba(255,255,255,.035) !important; }
input[type=checkbox].sw { min-height: 28px !important; max-height: none !important; max-width: none !important; }
/* the switch of the reference: a long pill track (56 x 24), a slightly oval white knob (23 x 20) with a soft shadow, a green track with a glow when on, a pale grey one when off */
input[type=checkbox].sw { width: 56px !important; min-width: 56px !important; height: 24px !important; min-height: 24px !important; }
input[type=checkbox].sw::before { top: 0 !important; bottom: 0 !important; border-radius: 999px; background: rgba(255,255,255,.2); box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08); }
input[type=checkbox].sw::after { top: 2px !important; left: 2px !important; width: 23px !important; height: 20px !important; border-radius: 999px !important; background: linear-gradient(180deg, #ffffff, #f1f2f4); box-shadow: 0 2px 5px rgba(0,0,0,.35), inset 0 -1px 1px rgba(0,0,0,.06); }
input[type=checkbox].sw:checked::before { background: linear-gradient(180deg, #19d870, #09a955); box-shadow: inset 0 1px 2px rgba(0,0,0,.18), 0 0 12px rgba(25,216,112,.45); }
input[type=checkbox].sw:checked::after { transform: translateX(29px) !important; }
html[data-mode="light"] input[type=checkbox].sw::before { background: #d6d7da; box-shadow: inset 0 1px 3px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05); }
/* the spacing around the password switch and its button */
.pwf-f { gap: 10px; padding: 8px 0 4px; } .pwf-f .swl { margin-top: 6px; gap: 12px; } .pwf-a { padding: 12px 0 0; }

/* ---- buttons: soft raised kit (primary / secondary / ghost / destructive) ---- */
html body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)) {
  border-radius: 999px; border: 1px solid rgba(255,255,255,.10); color: var(--tx, #e8eaf2); font-weight: 700; letter-spacing: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  box-shadow: 0 4px 10px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.20), inset 0 -1px 2px rgba(0,0,0,.18);
  transition: background .2s ease, box-shadow .2s ease, filter .2s ease, transform .12s ease, opacity .2s;
}
html body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)):not(:disabled):hover {
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.09)); transform: none; filter: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.26), inset 0 -1px 2px rgba(0,0,0,.18);
}
html body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)):not(:disabled):active {
  transform: scale(.97); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.12));
  box-shadow: inset 0 2px 5px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.2);
}
html body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)):disabled {
  opacity: 1; color: rgba(255,255,255,.34); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.05); box-shadow: none; filter: none;
}
/* primary: the theme colour, glossy, with its own soft glow */
html body button.pri:not(.ai-btn):not(.cta) {
  color: var(--pri-ink); border: 1px solid rgba(255,255,255,.28); text-shadow: 0 1px 0 rgba(255,255,255,.22); font-weight: 800;
  background: linear-gradient(180deg, var(--pri-top) 0%, var(--pri-mid) 52%, var(--pri-bot) 100%);
  box-shadow: 0 6px 16px rgba(var(--glow), .38), 0 0 0 1px rgba(var(--glow), .35), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 6px rgba(0,0,0,.14);
}
html body button.pri:not(.ai-btn):not(.cta)::before {
  display: block; content: ""; position: absolute; left: 9%; right: 9%; top: 2px; bottom: auto; width: auto; height: 44%; border-radius: 999px; transform: none; opacity: 1; animation: none;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0)); pointer-events: none;
}
html body button.pri:not(.ai-btn):not(.cta):not(:disabled):hover {
  background: linear-gradient(180deg, var(--pri-top) 0%, var(--pri-mid) 52%, var(--pri-bot) 100%); filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 8px 20px rgba(var(--glow), .5), 0 0 0 1px rgba(var(--glow), .45), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -3px 6px rgba(0,0,0,.14);
}
html body button.pri:not(.ai-btn):not(.cta):not(:disabled):active {
  filter: brightness(.9); transform: scale(.97);
  box-shadow: 0 2px 6px rgba(var(--glow), .3), inset 0 2px 5px rgba(0,0,0,.3);
}
html body button.pri:not(.ai-btn):not(.cta):disabled { background: rgba(255,255,255,.08); color: rgba(255,255,255,.34); text-shadow: none; box-shadow: none; }
html body button.pri:not(.ai-btn):not(.cta):disabled::before { display: none; }
/* destructive */
html body button.danger:not(.ai-btn) {
  color: #ff8b97; border-color: rgba(255,90,110,.32);
  background: linear-gradient(180deg, rgba(255,90,110,.30), rgba(255,90,110,.12));
  box-shadow: 0 4px 10px rgba(255,60,90,.20), inset 0 1px 0 rgba(255,200,205,.28), inset 0 -1px 2px rgba(0,0,0,.14);
}
html body button.danger:not(.ai-btn):not(:disabled):hover { background: linear-gradient(180deg, rgba(255,90,110,.42), rgba(255,90,110,.2)); box-shadow: 0 6px 14px rgba(255,60,90,.3), inset 0 1px 0 rgba(255,200,205,.34); }
html body button.danger-fill { color: #fff; border: 1px solid rgba(255,255,255,.25); background: linear-gradient(180deg, #ff6b78 0%, #f23c4f 55%, #d82339 100%); box-shadow: 0 6px 16px rgba(240,60,80,.4), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.14); }
/* button with an icon */
button .bi { display: inline-grid; place-items: center; margin-right: 6px; } button .bi svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button:has(> .bi) { display: inline-flex; align-items: center; justify-content: center; }
/* light mode: white raised pills */
html[data-mode="light"] body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(.pri):not(.danger):not(.danger-fill):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)) {
  color: #1c1f2a; border-color: rgba(20,24,40,.07); background: linear-gradient(180deg, #ffffff, #eceef3);
  box-shadow: 0 3px 8px rgba(30,40,70,.14), inset 0 1px 0 #fff, inset 0 -1px 1px rgba(30,40,70,.06);
}
html[data-mode="light"] body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(.pri):not(.danger):not(.danger-fill):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)):not(:disabled):hover { background: linear-gradient(180deg, #ffffff, #e2e5ec); box-shadow: 0 5px 12px rgba(30,40,70,.18), inset 0 1px 0 #fff; }
html[data-mode="light"] body button:disabled:not(.pri) { color: rgba(20,24,40,.35); background: rgba(20,24,40,.05); }
html[data-mode="light"] body button.danger:not(.ai-btn) { color: #c81e36; background: linear-gradient(180deg, rgba(255,90,110,.22), rgba(255,90,110,.08)); }

/* ---- theme: Soft (white raised surfaces, blue glossy buttons) ---- */
html[data-theme="soft"] { --bg: #0e1424; --bg-2: #141c32; --acc: #4da3ff; --acc-2: #9cc7ff; --grad: linear-gradient(135deg, #5aa9ff 0%, #0a7cff 100%); --line-hi: rgba(77,163,255,.55); --pri-top: #5eb0ff; --pri-mid: #0a7cff; --pri-bot: #0062e6; --pri-edge: #0050c0; --pri-ink: #ffffff; --pri-rim: rgba(180,215,255,.6); --glow: 10,124,255; }
html[data-theme="soft"] body::before { background: radial-gradient(50% 40% at 12% 6%, rgba(77,163,255,.14), transparent 70%), radial-gradient(40% 36% at 92% 94%, rgba(120,150,255,.08), transparent 70%); }
html[data-mode="light"][data-theme="soft"] { --bg: #e8edf7; --bg-2: #f3f6fc; --text: #14182a; --mut: #5d6785; --glass: linear-gradient(180deg, #ffffff, #f1f4fa); --glass-hi: #fff; --panel: rgba(255,255,255,.82); --panel-2: rgba(60,80,130,.05); --line: rgba(60,80,130,.12); --line-hi: rgba(10,124,255,.45); --edge: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(60,80,130,.05); --shadow: 0 8px 22px rgba(60,80,130,.13); --shadow-hi: 0 14px 34px rgba(60,80,130,.18); }
html[data-mode="light"][data-theme="soft"] body::before { background: radial-gradient(60% 50% at 8% 0%, rgba(255,255,255,.95), transparent 70%), radial-gradient(50% 45% at 96% 100%, rgba(120,170,255,.24), transparent 70%); }
html[data-mode="light"][data-theme="soft"] body::after { background: none; }
html[data-mode="light"][data-theme="soft"] .card, html[data-mode="light"][data-theme="soft"] .tiles, html[data-mode="light"][data-theme="soft"] .fstrip, html[data-mode="light"][data-theme="soft"] .toolbar, html[data-mode="light"][data-theme="soft"] .lbox, html[data-mode="light"][data-theme="soft"] .modal { background: linear-gradient(180deg, #ffffff, #f4f6fb); border-color: rgba(255,255,255,.9); box-shadow: 0 8px 22px rgba(60,80,130,.12), inset 0 1px 0 #fff; }
html[data-mode="light"][data-theme="soft"] input:not([type=checkbox]):not([type=radio]), html[data-mode="light"][data-theme="soft"] select, html[data-mode="light"][data-theme="soft"] textarea { background: linear-gradient(180deg, #f1f4fa, #ffffff); border: 1px solid rgba(60,80,130,.10); box-shadow: inset 0 1px 3px rgba(60,80,130,.14); color: #14182a; }
html[data-mode="light"][data-theme="soft"] input:focus, html[data-mode="light"][data-theme="soft"] select:focus, html[data-mode="light"][data-theme="soft"] textarea:focus { border-color: #0a7cff; box-shadow: 0 0 0 3px rgba(10,124,255,.18), inset 0 1px 3px rgba(60,80,130,.10); outline: none; }
html[data-theme="soft"] button.pri:not(.ai-btn):not(.cta) { text-shadow: 0 1px 1px rgba(0,40,120,.35); }
html[data-mode="light"][data-theme="soft"] .brand b { background: linear-gradient(180deg, #2b8cff, #0a5fd6); -webkit-background-clip: text; background-clip: text; }

/* ---- settings: row cards (icon tile, title + sentence, fields with labels on top, buttons at the right) ---- */
html body #page .sf .hidden { display: none !important; }
html body #page .sf .sg, html body #page .sf .sl { display: flex !important; flex-direction: column; gap: 10px; width: 100% !important; grid-template-columns: none !important; margin: 0 0 10px; padding: 0; }
html body #page .sf .ss, html body #page .sf .si, html body #page .sf .ss-hero {
  display: grid !important; box-sizing: border-box; width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important;
  padding: 14px 18px !important; border: 1px solid rgba(255,255,255,.07) !important; border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
/* a group: header on top, fields in a row, buttons at the right of the row */
html body #page .sf .ss { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: end; }
html body #page .sf .ss > .ss-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 !important; min-height: 0 !important; background: none !important; border: 0 !important; }
html body #page .sf .ss > .ss-h b { font-size: 15px; font-weight: 700; }
html body #page .sf .ss > .ss-rows { grid-column: 1; display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; min-width: 0; }
html body #page .sf .ss > .ss-a { grid-column: 2; display: flex; align-items: center; gap: 10px; padding: 0 !important; background: none !important; border: 0 !important; align-self: end; flex-wrap: wrap; justify-content: flex-end; }
html body #page .sf .ss.x > .ss-rows, html body #page .sf .ss.flat > .ss-rows { display: flex !important; }
html body #page .sf .ss .sr { display: flex !important; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; flex: 1 1 180px; min-width: 150px; max-width: 100%; padding: 0 !important; border: 0 !important; background: none !important; }
html body #page .sf .ss .sr > span { font-size: 12.5px; color: var(--mut); font-weight: 500; white-space: normal; }
html body #page .sf .ss .sr > .v { width: 100%; flex: 0 0 auto !important; min-width: 0; }
html body #page .sf .ss .sr > .v input:not([type=checkbox]), html body #page .sf .ss .sr > .v select, html body #page .sf .ss .sr > .v textarea, html body #page .sf .ss .sr.x textarea { width: 100% !important; max-width: none !important; height: 40px; box-sizing: border-box; border-radius: 14px; padding: 0 14px; font-size: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18) !important; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
html body #page .sf .ss .sr.x textarea { height: auto; padding: 10px 14px; }
html body #page .sf .ss .sr.x, html body #page .sf .ss .sc, html body #page .sf .ss pre.gl-out { flex: 1 1 100%; }
html body #page .sf .ss .sc { padding: 2px 0 0; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); }
html body #page .sf .ss .sr:has(> .v > input.sw) { flex-direction: row; align-items: center; flex: 0 0 auto; min-width: 0; gap: 14px; }
html body #page .sf .ss .sr:has(> .v > input.sw) > span { font-size: 14px; color: var(--text); }
html body #page .sf .ss .sr:has(> .v > input.sw) > .v { width: auto; }
html body #page .sf .ss .sr.li { flex-direction: row; align-items: center; justify-content: space-between; flex: 1 1 100%; }
html body #page .sf .ss .sr.t { flex: 0 1 auto; }
/* icon tile */
html body #page .sf .ss-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; background: color-mix(in srgb, var(--acc, #7c83ff) 18%, rgba(255,255,255,.04)); display: grid; place-items: center; }
html body #page .sf .ss-ic svg { width: 19px; height: 19px; }
html body #page .sf .si.ok .ss-ic, html body #page .sf .ss-h.ok .ss-ic { background: color-mix(in srgb, var(--ok) 16%, rgba(255,255,255,.03)); }
html body #page .sf .si.off .ss-ic, html body #page .sf .ss-h.off .ss-ic { background: color-mix(in srgb, var(--bad) 16%, rgba(255,255,255,.03)); }
/* an item: tile | title + sentence (+ field row) | control | chevron */
html body #page .sf .si { grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
html body #page .sf .si.chev { grid-template-columns: 38px minmax(0, 1fr) auto 14px; }
html body #page .sf .si > .si-b { display: grid; gap: 10px; min-width: 0; }
html body #page .sf .si-t { display: grid; gap: 2px; min-width: 0; }
html body #page .sf .si-n { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html body #page .sf .si-t b { font-size: 15px; font-weight: 700; }
html body #page .sf .si-t small { font-size: 13px; color: var(--mut); white-space: normal; line-height: 1.4; }
html body #page .sf .si-r { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; margin: 0; }
html body #page .sf .si-r .si-f { flex: 1 1 auto; width: auto !important; max-width: none !important; min-width: 0; margin: 0; height: 40px; border-radius: 14px; padding: 0 14px; font-size: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18) !important; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
html body #page .sf .si-a { display: flex; align-items: center; gap: 10px; flex: none; margin: 0; }
html body #page .sf .si-x { grid-column: 3; justify-self: end; }
html body #page .sf .si.chev::after { content: ""; grid-column: 4; width: 8px; height: 8px; border-right: 2px solid var(--mut); border-top: 2px solid var(--mut); transform: rotate(45deg); opacity: .7; justify-self: end; margin-right: 3px; }
html body #page .sf .si.chev:has(.si-r)::after { align-self: start; margin-top: 18px; }
/* the password card: name on the left, the three boxes on the right */
html body #page .sf .si.pw { grid-template-columns: 38px minmax(150px, 1fr) minmax(280px, 1.7fr); align-items: start; }
html body #page .sf .si.pw .pwf-f { display: grid !important; gap: 8px; padding: 0 !important; margin: 0; }
html body #page .sf .pwi { position: relative; display: block; width: 100% !important; }
html body #page .sf .pwf-f .pwi .si-f { width: 100% !important; max-width: none !important; height: 40px; border-radius: 14px; padding: 0 44px 0 42px; font-size: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18) !important; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
html body #page .sf .pwi .pwl { position: absolute; left: 14px; top: 0; bottom: 0; display: grid; place-items: center; color: var(--mut); pointer-events: none; }
html body #page .sf .pwi .pwl svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* sign out of other devices: switch on the left, the button on the right */
html body #page .sf .si.so { grid-template-columns: 56px minmax(0, 1fr) auto; }
html body #page .sf .si.so > input.sw { margin: 0; }
/* the status strip */
html body #page .sf .ss-hero { grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
html body #page .sf .ss-hero .ss-ht { display: grid; gap: 2px; }
html body #page .sf .ss-hero .ss-ht b { font-size: 15px; font-weight: 700; white-space: normal; }
html body #page .sf .ss-hero .ss-ht small { font-size: 13px; color: var(--mut); white-space: normal; }
/* buttons in the settings: one size */
html body #page .sf button:not(.eye):not(.tsw) { height: 38px; padding: 0 22px; font-size: 14px; }
html body #page .sf a.btn { height: 38px; padding: 0 22px; font-size: 14px; }
@media (max-width: 760px) and (pointer: coarse) {
  html body #page .sf .ss, html body #page .sf .si, html body #page .sf .ss-hero { padding: 12px 14px !important; border-radius: 16px !important; }
  html body #page .sf .ss { grid-template-columns: minmax(0, 1fr); }
  html body #page .sf .ss > .ss-rows, html body #page .sf .ss > .ss-a { grid-column: 1; }
  html body #page .sf .ss > .ss-a { justify-content: stretch; } html body #page .sf .ss > .ss-a button { flex: 1 1 auto; }
  html body #page .sf .ss .sr { flex: 1 1 100%; }
  html body #page .sf .si, html body #page .sf .si.chev, html body #page .sf .si.so { grid-template-columns: 38px minmax(0, 1fr); row-gap: 10px; }
  html body #page .sf .si.so { grid-template-columns: 56px minmax(0, 1fr); }
  html body #page .sf .si-x { grid-column: 1 / -1; justify-self: stretch; } html body #page .sf .si-x button { width: 100%; }
  html body #page .sf .si.chev::after { display: none; }
  html body #page .sf .si-r { flex-wrap: wrap; } html body #page .sf .si-r .si-f { flex: 1 1 100%; }
  html body #page .sf .si.pw { grid-template-columns: 38px minmax(0, 1fr); } html body #page .sf .si.pw .pwf-f { grid-column: 1 / -1; }
  html body #page .sf .ss-hero { grid-template-columns: 38px minmax(0, 1fr); } html body #page .sf .ss-hero .ss-hr { display: none; }
}
html[data-mode="light"] body #page .sf .ss, html[data-mode="light"] body #page .sf .si, html[data-mode="light"] body #page .sf .ss-hero { border-color: rgba(60,80,130,.12) !important; background: linear-gradient(180deg, #ffffff, #f4f6fb) !important; box-shadow: 0 2px 8px rgba(60,80,130,.08) !important; }
html[data-mode="light"] body #page .sf .ss .sr > .v input:not([type=checkbox]), html[data-mode="light"] body #page .sf .ss .sr > .v select, html[data-mode="light"] body #page .sf .si-r .si-f, html[data-mode="light"] body #page .sf .pwf-f .pwi .si-f { background: linear-gradient(180deg, #f1f4fa, #ffffff) !important; border-color: rgba(60,80,130,.12); box-shadow: inset 0 1px 3px rgba(60,80,130,.14); }
html body #page .sf .ss-hero.ss-hero { margin-bottom: 10px !important; }
html body #page .sf .pwf-f .pwi .si-f.si-f, html body #page .sf .pwf-f .pwi .si-f.cur, html body #page .sf .pwf-f .pwi .si-f.nw { border: 1px solid rgba(255,255,255,.08) !important; }
html[data-mode="light"] body #page .sf .pwf-f .pwi .si-f.si-f { border-color: rgba(60,80,130,.12) !important; }
html body #page .sf #eng-box { display: block !important; flex: 1 1 100%; width: 100%; }
html body #page .sf #eng-box .eng-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: 100%; margin-bottom: 8px; }

/* ---- the reference look: blue primary, outlined tabs, icon fields, backup cards ---- */
html[data-theme="aurora"] { --acc: #4da3ff; --acc-2: #38d9f5; --grad: linear-gradient(135deg, #5aa9ff 0%, #0a7cff 100%); --line-hi: rgba(77,163,255,.55); --pri-top: #5eb0ff; --pri-mid: #0a7cff; --pri-bot: #0062e6; --pri-edge: #0050c0; --pri-ink: #ffffff; --pri-rim: rgba(180,215,255,.6); --glow: 10,124,255; }
html[data-theme="aurora"] button.pri:not(.ai-btn):not(.cta) { text-shadow: 0 1px 1px rgba(0,40,120,.35); }
@media (min-width: 761px), (pointer: fine) {
  html body #page .set-top .set-tabs { display: flex; flex-wrap: nowrap; gap: 8px; padding: 6px; border: 1px solid rgba(255,255,255,.07); border-radius: 22px; background: rgba(255,255,255,.02); }
  html body #page .set-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; font-size: 14px; font-weight: 600; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); box-shadow: none; color: var(--text); }
  html body #page .set-tabs button:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
  html body #page .set-tabs button.on { color: #4da3ff; border-color: rgba(47,139,255,.75); background: linear-gradient(180deg, rgba(10,124,255,.2), rgba(10,124,255,.06)); box-shadow: 0 0 0 1px rgba(47,139,255,.22), inset 0 -2px 0 #2f8bff; }
  html body #page .set-tabs .ti { display: inline-grid; place-items: center; } html body #page .set-tabs .ti svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
}
.ti svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sf .bi { display: inline-grid; place-items: center; margin-right: 7px; } .sf .bi svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html body #page .sf button:not(.tsw), html body #page .sf a.btn { display: inline-flex; align-items: center; justify-content: center; }
/* a header with a sentence under the title */
.ss-hb { display: grid; gap: 2px; min-width: 0; } .ss-h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .ss-hb small { font-size: 13px; color: var(--mut); }
html body #page .sf .ss > .ss-h:has(.ss-hb) { align-items: center; }
/* captions get a divider above them */
html body #page .sf .ss .sc { border-top: 1px solid rgba(255,255,255,.06); padding-top: 14px; margin-top: 2px; }
html body #page .sf .ss .ss-rows > .sc:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
/* fields with a small icon in front, selects with an icon and a thin chevron */
.fic, .sic { position: relative; display: block; width: 100%; }
.fic .fi-i { position: absolute; left: 14px; top: 0; bottom: 0; display: grid; place-items: center; color: var(--mut); pointer-events: none; }
.sic > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--mut); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.fic .fi-i svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html body #page .sf .fic input { padding-left: 42px !important; } html body #page .sf .fic.pwi input { padding-right: 44px !important; }
html body #page .sf .sic select { padding-left: 44px !important; }
html body #page .sf select { appearance: none; -webkit-appearance: none; }
html body #page .sf .ss .sr > .v select, html body #page .sf .sic select, html body #page .sf .si-a select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4bad0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 15px !important; padding-right: 38px !important; }
html body #page .sf .si-a .sic { width: 210px; } html body #page .sf .si-a select { height: 40px; border-radius: 14px; font-size: 14px; border: 1px solid rgba(255,255,255,.08); background-color: rgba(0,0,0,.18); }
html body #page .sf .si-r .pwi { flex: 1 1 auto; min-width: 0; width: auto !important; }
/* a backup card: switch and buttons on the first line, the state under them */
html body #page .sf .si.bp { align-items: start; }
.bp-r { display: grid; gap: 10px; justify-items: end; } .bp-a { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.bp-s { display: flex; align-items: center; gap: 14px; color: var(--mut); font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
.bp-l { display: inline-flex; align-items: center; } .bp-s .bi svg { width: 14px; height: 14px; }
.bp-s .pill { display: inline-flex; align-items: center; border-color: rgba(47,139,255,.5); color: #6db3ff; background: rgba(10,124,255,.08); }
.bp-s a.mut { display: inline-flex; align-items: center; cursor: pointer; }
@media (max-width: 760px) and (pointer: coarse) { html body #page .sf .si.bp { grid-template-columns: 38px minmax(0, 1fr); } html body #page .sf .si.bp .bp-r { grid-column: 1 / -1; justify-items: start; } .bp-a, .bp-s { justify-content: flex-start; } }

html body #page .sf .sf-act { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 6px; }
html body #page .sf .ss .sr.sw2 { display: grid !important; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 14px; row-gap: 6px; flex: 1 1 280px; }
html body #page .sf .ss .sr.sw2 > span { font-size: 14px; color: var(--text); } html body #page .sf .ss .sr.sw2 > small { grid-column: 1 / -1; color: var(--mut); font-size: 13px; }
html body #page .sf .ss .sc.sub { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); padding-top: 14px; }
html body #page .sf .ss .sc.sub b { font-weight: 700; } html body #page .sf .ss .sc.sub .ss-ic { width: 32px; height: 32px; border-radius: 10px; }
html body #page .sf .ss .ss-rows > .sc.sub:first-child { padding-top: 0; }
html body #page .set-tabs button { white-space: nowrap; }
html body #page .set-top { overflow-x: auto; scrollbar-width: none; } html body #page .set-top::-webkit-scrollbar { display: none; }
@media ((min-width: 761px) or (pointer: fine)) and (max-width: 1180px) { html body #page .set-tabs button { padding: 0 11px; gap: 6px; font-size: 13px; } }
html body #page .set-tabs button { flex: 0 0 auto; }
html body #page .set-tabs button { display: inline-flex; align-items: center; gap: 6px; }

html body #page .sf .theme-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1200px) { html body #page .sf .theme-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) and (pointer: coarse) { html body #page .sf .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html body #page .sf .tsw { padding: 8px 8px 9px; gap: 7px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
html body #page .sf .tsw i { height: 40px; border-radius: 10px; } html body #page .sf .tsw i::after { bottom: 6px; height: 8px; left: 8px; right: 8px; border-radius: 99px; }
html body #page .sf .tsw b { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
html body #page .sf .tsw.on { border: 2px solid #2f8bff; padding: 7px 7px 8px; box-shadow: 0 0 0 3px rgba(47,139,255,.18); background: rgba(47,139,255,.07); }

/* ---- side menu like the reference: coloured line icons, a chevron at the right, a blue active item with a bar ---- */
@media (min-width: 761px), (pointer: fine) {
  nav#nav a { position: relative; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px 0 14px; border-radius: 14px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; }
  nav#nav a[data-page="dashboard"] { --ic: #9aa4c0; } nav#nav a[data-page="nodes"] { --ic: #4da3ff; } nav#nav a[data-page="tunnels"] { --ic: #38bdf8; } nav#nav a[data-page="configs"] { --ic: #ffa94d; } nav#nav a[data-page="bot"] { --ic: #ff7a9c; } nav#nav a[data-page="settings"] { --ic: #b57cff; }
  nav#nav a .ic { display: inline-grid; place-items: center; color: var(--ic); } nav#nav a .ic svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  nav#nav a:not([data-page="dashboard"])::after { content: "" !important; display: block !important; position: static !important; margin-left: auto; flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) !important; opacity: .5 !important; background: none; inset: auto; animation: none !important; }
  nav#nav a.on { color: #4da3ff; border-color: rgba(47,139,255,.55); background: linear-gradient(180deg, rgba(10,124,255,.18), rgba(10,124,255,.06)); box-shadow: 0 0 20px rgba(10,124,255,.2), inset 0 0 0 1px rgba(47,139,255,.1); }
  nav#nav a.on .ic { color: #4da3ff; }
  nav#nav a.on::before { content: ""; position: absolute; left: -9px; top: 9px; bottom: 9px; width: 4px; border-radius: 4px; background: #2f8bff; box-shadow: 0 0 10px rgba(47,139,255,.8); }
}

/* ---- every tab bar and every "add" button in the reference style ---- */
@media (min-width: 761px), (pointer: fine) {
  html body #page .tabs:not(.set-tabs) { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: none; }
  html body #page .tabs:not(.set-tabs) button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; font-size: 14px; font-weight: 600; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); box-shadow: none; color: var(--text); }
  html body #page .tabs:not(.set-tabs) button:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
  html body #page .tabs:not(.set-tabs) button.on { color: #4da3ff; border-color: rgba(47,139,255,.75); background: linear-gradient(180deg, rgba(10,124,255,.2), rgba(10,124,255,.06)); box-shadow: 0 0 0 1px rgba(47,139,255,.22), inset 0 -2px 0 #2f8bff; }
}
html body button.cta-server, html body button.cta-tunnel { color: #fff !important; text-shadow: 0 1px 1px rgba(0,40,120,.35); background: linear-gradient(180deg, #5eb0ff 0%, #0a7cff 52%, #0062e6 100%) !important; border: 1px solid rgba(255,255,255,.28) !important; box-shadow: 0 6px 16px rgba(10,124,255,.38), 0 0 0 1px rgba(10,124,255,.35), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 6px rgba(0,0,0,.14) !important; border-radius: 999px !important; }
html body button.cta-server:hover, html body button.cta-tunnel:hover { filter: brightness(1.08); transform: none; animation: none; }
html body button.cta .cta-ic { background: rgba(255,255,255,.2); }

/* ---- one toolbar row like the reference (the chips and the search shrink; below 1300 px it wraps again) ---- */
@media (min-width: 1650px) {
  html body #page .toolbar.joined { flex-wrap: nowrap; gap: 8px; align-items: center; }
  html body #page .toolbar.joined > button, html body #page .toolbar.joined > a.btn { height: 38px; padding: 0 14px; font-size: 13px; white-space: nowrap; flex: none; }
  html body #page .toolbar.joined > .sep { display: none; }
  html body #page .toolbar.joined .nd-stats, html body #page .toolbar.joined .tcount { gap: 6px; flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; }
  html body #page .toolbar.joined .tc { padding: 0 9px; font-size: 12px; white-space: nowrap; }
  html body #page .toolbar.joined .sp { flex: 1 1 0; min-width: 0; }
  html body #page .toolbar.joined .tabs { flex: none; }
  html body #page .toolbar.joined .tabs button { height: 36px; padding: 0 14px; font-size: 13px; }
  html body #page .toolbar.joined .tb-search { flex: 0 1 170px; min-width: 110px; }
}
html body #page .tb-search { position: relative; display: block; }
html body #page .tb-search::before { content: ""; position: absolute; left: 13px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4bad0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat; pointer-events: none; }
html body #page .tb-search input { width: 100%; height: 38px; border-radius: 14px; padding: 0 12px 0 38px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); }
html body #page .sf .sf-act { align-self: stretch !important; width: 100% !important; justify-content: flex-end !important; margin-left: 0; margin-right: 0; }
html body #page .sf form.sl { align-items: stretch !important; }
html body nav#nav a, html body nav#nav a span, html body nav#nav a.on span { text-shadow: none !important; }

/* ---- Tunnel Doctor: six cards with an icon tile and a blue title, like the reference ---- */
html body #page .ap-intro > h3 { font-size: 12.5px; letter-spacing: .7px; text-transform: uppercase; color: var(--mut); font-weight: 700; }
html body #page .ap-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html body #page .ap-steps > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; padding: 14px 16px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); }
html body #page .ap-steps > div::before { content: ""; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; background-repeat: no-repeat; background-position: center; background-size: 22px; background-color: rgba(77,163,255,.14); }
html body #page .ap-steps > div > b { grid-column: 2; color: #4da3ff; font-size: 15px; font-weight: 700; }
html body #page .ap-steps > div > span { grid-column: 2; color: var(--text); font-size: 13.5px; line-height: 1.45; opacity: .86; }
html body #page .ap-steps > div:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234da3ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); } html body #page .ap-steps > div:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234da3ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12a7 7 0 1 1-2.1-5'/%3E%3Cpath d='M19 4v4h-4'/%3E%3C/svg%3E"); }
html body #page .ap-steps > div:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9f4a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6.5a4 4 0 0 0-5 5L4 17l3 3 5.5-5.5a4 4 0 0 0 5-5l-2.5 2.5-2.5-.5-.5-2.5z'/%3E%3C/svg%3E"); background-color: rgba(255,159,74,.14); } html body #page .ap-steps > div:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20v-9M12 20V5M18 20v-7' stroke-width='3'/%3E%3C/svg%3E"); background-color: rgba(52,211,153,.14); }
html body #page .ap-steps > div:nth-child(5)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4c0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); background-color: rgba(154,164,192,.14); } html body #page .ap-steps > div:nth-child(6)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3.5' width='14' height='17' rx='2.4'/%3E%3Cpath d='M8.5 8.5h7M8.5 12h7M8.5 15.5h4'/%3E%3C/svg%3E"); background-color: rgba(167,139,250,.16); }
@media (max-width: 1100px) { html body #page .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 700px) and (pointer: coarse) { html body #page .ap-steps { grid-template-columns: 1fr; } }
/* the check box: a blue rounded square with a tick */
html body input[type=checkbox]:not(.sw) { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; min-width: 20px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(0,0,0,.2); display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle; transition: background .15s, border-color .15s; }
html body input[type=checkbox]:not(.sw):checked { background: #1f8bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; border-color: #5eb0ff; box-shadow: 0 0 10px rgba(31,139,255,.4); }
html body input[type=checkbox]:not(.sw):disabled { opacity: .5; cursor: default; }
html body #page .ap-set-row { display: flex !important; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
html body #page .ap-set-row > label { display: grid; gap: 6px; font-size: 12.5px; color: var(--mut); }
html body #page .ap-set-row > label.chk { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); height: 40px; }
html body #page .ap-set-row select { min-width: 270px; height: 40px; border-radius: 14px; }
html body #page .ap-set-row input[type=number] { height: 40px; border-radius: 14px; width: 110px; }
html body #page .ap-set-row > button { margin-left: auto; height: 40px; }

/* ---- the server window like the reference ---- */
.sbox > h5 { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: #4da3ff; font-weight: 700; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sbox > h5 > i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(154,164,192,.16); color: #b4bad0; font-style: normal; }
.sbox > h5 > i svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sbox[data-b="resources"] > h5 > i { background: #1f8bff; color: #fff; } .sbox[data-b="access"] > h5 > i { background: rgba(255,159,74,.9); color: #fff; }
.sbox .kv2, .sbox .rrow { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); } .sbox .kv2:last-child, .sbox .rrow:last-child { border-bottom: 0; }
.sbox .kv2 > span, .sbox .rrow > span { color: var(--mut); }
html body .modal .sbar .abtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; font-size: 13.5px; }
html body .modal .sbar .abtn .bi svg { width: 16px; height: 16px; } html body .modal .sbar .abtn.danger { color: #ff8b97; }
html body .modal .sbar .abtn-open { height: 38px; border-radius: 999px; padding: 0 14px; }
.mh-ip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; } .mh-ip::after { content: ""; width: 13px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 0 1 2-2h8'/%3E%3C/svg%3E") center/contain no-repeat; }
.modal .flg { border-radius: 4px; margin-right: 4px; }
.mcard > h6 { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .7px; font-size: 12.5px; color: #4da3ff; }
.mcard > h6 .mc-ic { display: inline-grid; place-items: center; } .mcard > h6 .mc-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mcard > h6 .mval { margin-left: auto; font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 600; }
.mcard[data-c="blue"] .ll { stroke: #4da3ff; } .mcard[data-c="blue"] .la { fill: rgba(77,163,255,.2); }
.mcard[data-c="purple"] .ll { stroke: #c084fc; } .mcard[data-c="purple"] .la { fill: rgba(192,132,252,.18); }
.mcard[data-c="green"] .ll { stroke: #22d36b; } .mcard[data-c="green"] .la { fill: rgba(34,211,107,.18); }
.mcard[data-c="orange"] .ll { stroke: #ffa11f; } .mcard[data-c="orange"] .la { fill: rgba(255,161,31,.18); }
.mcard[data-c="cyan"] .ll { stroke: #38bdf8; } .mcard[data-c="cyan"] .la { fill: rgba(56,189,248,.2); }
.mcard[data-c="green"] > h6, .mcard[data-c="orange"] > h6, .mcard[data-c="cyan"] > h6, .mcard[data-c="purple"] > h6 { color: #4da3ff; }
.mtile { border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.025); } .mtile > small { color: #4da3ff; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; } .mtile > b { font-size: 20px; }
.mrange { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 3px; gap: 2px; } .mrange button { height: 30px !important; border-radius: 9px !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 14px !important; } .mrange button.on { background: #1f8bff !important; color: #fff !important; }
.modal.wide { border: 1px solid rgba(47,139,255,.55); box-shadow: 0 0 0 1px rgba(47,139,255,.18), 0 30px 80px rgba(0,0,0,.6); }
html body .modal .sbar { display: flex !important; flex-wrap: wrap; gap: 10px; align-items: center; }
html body .modal .sbar .sg { display: flex !important; gap: 10px; flex: 0 0 auto !important; width: auto !important; }
html body .modal .sbar .sg:last-of-type { margin-left: auto; }
html body .modal .sbar .sep { display: none; }
html body .modal .sbar .abtn { flex: 0 0 auto !important; width: auto !important; min-width: 0; }

/* ================= HANDOFF LAYER: the approved macOS-style design (DESIGN-HANDOFF.md) =================
   tokens: window #0f1626, title bar #151d31, card #172034, card border rgba(130,160,255,.10), input #0b1120, divider .07,
   text #f2f5fb / #9aa4b8, label blue #5aa9ff, green #30d158, orange #ff9f0a, red #ff453a, accent #0a84ff.
   Applied to the default theme at night; the other themes keep their colours and only take the shapes. */
/* the switch: 50 x 30 track, 24 px thumb, on = #30d158 (every theme) */
html body input[type=checkbox].sw { width: 50px !important; min-width: 50px !important; max-width: 50px !important; height: 30px !important; min-height: 30px !important; max-height: 30px !important; }
html body input[type=checkbox].sw::before { border-radius: 15px !important; background: rgba(120,128,150,.45) !important; box-shadow: none !important; top: 0 !important; bottom: 0 !important; }
html body input[type=checkbox].sw:checked::before { background: #30d158 !important; box-shadow: none !important; }
html body input[type=checkbox].sw::after { top: 3px !important; left: 3px !important; width: 24px !important; height: 24px !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 2px 4px rgba(0,0,0,.35) !important; }
html body input[type=checkbox].sw:checked::after { transform: translateX(20px) !important; }
/* chart colours of the handoff */
.mcard[data-c="blue"] .ll { stroke: #4da3ff; } .mcard[data-c="blue"] .la { fill: rgba(77,163,255,.16); }
.mcard[data-c="purple"] .ll { stroke: #bf8cff; } .mcard[data-c="purple"] .la { fill: rgba(191,140,255,.16); }
.mcard[data-c="green"] .ll { stroke: #32d74b; } .mcard[data-c="green"] .la { fill: rgba(50,215,75,.16); }
.mcard[data-c="orange"] .ll { stroke: #ff9f0a; } .mcard[data-c="orange"] .la { fill: rgba(255,159,10,.16); }
.mcard[data-c="cyan"] .ll { stroke: #64d2ff; } .mcard[data-c="cyan"] .la { fill: rgba(100,210,255,.16); }
/* the menu colours of the handoff */
nav#nav a[data-page="dashboard"] { --ic: #8b93a7; } nav#nav a[data-page="nodes"] { --ic: #4da3ff; } nav#nav a[data-page="tunnels"] { --ic: #3aa6b9; } nav#nav a[data-page="configs"] { --ic: #d99a52; } nav#nav a[data-page="bot"] { --ic: #d0607f; } nav#nav a[data-page="settings"] { --ic: #9b72e0; }

/* ---- default theme, night ---- */
html[data-theme="aurora"]:not([data-mode="light"]) { --pri-top: #0a84ff; --pri-mid: #0a84ff; --pri-bot: #0a84ff; --pri-ink: #fff; --glow: 10,132,255; --acc: #5aa9ff; --text: #f2f5fb; --mut: #9aa4b8; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; }
html[data-theme="aurora"]:not([data-mode="light"]) body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; }
/* buttons: grey, radius 8 (10 and taller in the settings); the main one a flat #0a84ff with a soft shadow */
html[data-theme="aurora"]:not([data-mode="light"]) body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)) { border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); box-shadow: none; color: #f2f5fb; font-weight: 500; }
html[data-theme="aurora"]:not([data-mode="light"]) body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)):not(:disabled):hover { background: rgba(255,255,255,.16); box-shadow: none; }
html[data-theme="aurora"]:not([data-mode="light"]) body button:where(:not(.tsw):not(.eye):not(.lang-btn):not(.ai-btn):not(.cta):not(:is(.tabs,.set-tabs,.subnav,#nav,.gchip,.mtabs) *)):not(:disabled):active { background: rgba(255,255,255,.22); box-shadow: none; }
html[data-theme="aurora"]:not([data-mode="light"]) body button.pri:not(.ai-btn):not(.cta), html[data-theme="aurora"]:not([data-mode="light"]) body button.cta-server, html[data-theme="aurora"]:not([data-mode="light"]) body button.cta-tunnel { background: #0a84ff !important; background-image: none !important; border: 0 !important; border-radius: 8px !important; color: #fff !important; text-shadow: none !important; font-weight: 600 !important; box-shadow: 0 4px 14px rgba(10,132,255,.35) !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body button.pri:not(.ai-btn):not(.cta)::before { display: none !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body button.pri:not(.ai-btn):not(.cta):not(:disabled):hover, html[data-theme="aurora"]:not([data-mode="light"]) body button.cta-server:hover, html[data-theme="aurora"]:not([data-mode="light"]) body button.cta-tunnel:hover { filter: brightness(1.12); background: #0a84ff !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body button.pri:disabled { background: rgba(255,255,255,.08) !important; box-shadow: none !important; color: rgba(255,255,255,.34) !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body button.danger:not(.ai-btn) { color: #ff6961; background: rgba(255,69,58,.14); border: 1px solid rgba(255,69,58,.28); box-shadow: none; }
html[data-theme="aurora"]:not([data-mode="light"]) body button.danger:not(.ai-btn):not(:disabled):hover { background: rgba(255,69,58,.26); }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf button:not(.eye):not(.tsw), html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf a.btn { height: 40px; padding: 0 20px; font-size: 14px; font-weight: 600; border-radius: 10px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf button.pri:not(.eye):not(.tsw) { border-radius: 10px !important; }
/* settings: cards, tiles, fields, tabs */
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .si, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-hero { background: #172034 !important; border: 1px solid rgba(130,160,255,.10) !important; border-radius: 14px !important; padding: 14px 20px !important; box-shadow: none !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-ic { width: 40px; height: 40px; border-radius: 11px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .si-t b, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss > .ss-h b, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-hero .ss-ht b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .si-t small, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-hero .ss-ht small, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-hb small { font-size: 13px; color: #9aa4b8; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr > .v input:not([type=checkbox]), html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr > .v select, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .si-r .si-f, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .pwf-f .pwi .si-f, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .sic select { background-color: #0b1120 !important; border: 1px solid rgba(255,255,255,.07) !important; border-radius: 10px !important; box-shadow: none !important; height: 40px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .frame-h3, html[data-theme="aurora"]:not([data-mode="light"]) body #page .set-desc { color: #9aa4b8; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf > h3 { color: #5aa9ff; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
@media (min-width: 761px), (pointer: fine) {
  html[data-theme="aurora"]:not([data-mode="light"]) body #page .set-top .set-tabs { padding: 0; border: 0; background: none; border-radius: 0; gap: 8px; }
  html[data-theme="aurora"]:not([data-mode="light"]) body #page .set-tabs button { height: 40px; padding: 0 18px; gap: 9px; font-size: 14px; font-weight: 500; border-radius: 12px; color: #e6eaf3; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); box-shadow: none; }
  html[data-theme="aurora"]:not([data-mode="light"]) body #page .set-tabs button:hover { background: rgba(255,255,255,.09); }
  html[data-theme="aurora"]:not([data-mode="light"]) body #page .set-tabs button.on { color: #5aa9ff; font-weight: 600; background: rgba(10,132,255,.14); border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.15); }
  html[data-theme="aurora"]:not([data-mode="light"]) body #page .tabs:not(.set-tabs) button { height: 40px; border-radius: 12px; font-weight: 500; color: #e6eaf3; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); box-shadow: none; }
  html[data-theme="aurora"]:not([data-mode="light"]) body #page .tabs:not(.set-tabs) button.on { color: #5aa9ff; font-weight: 600; background: rgba(10,132,255,.14); border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.15); }
}
/* the menu */
@media (min-width: 761px), (pointer: fine) {
  html[data-theme="aurora"]:not([data-mode="light"]) nav#nav a { color: #a9b0c4; border-radius: 14px; }
  html[data-theme="aurora"]:not([data-mode="light"]) nav#nav a.on { color: #3b8cff; background: rgba(10,132,255,.16); border-color: rgba(10,132,255,.55); box-shadow: 0 6px 20px rgba(10,132,255,.18); }
  html[data-theme="aurora"]:not([data-mode="light"]) nav#nav a.on .ic { color: #3b8cff; }
  html[data-theme="aurora"]:not([data-mode="light"]) nav#nav a.on::before { background: #2f8bff; box-shadow: 0 0 10px rgba(47,139,255,.7); }
}
/* windows: window #0f1626, title bar #151d31, cards #172034 */
html[data-theme="aurora"]:not([data-mode="light"]) body .modal.wide { background: #0f1626; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 .5px rgba(0,0,0,.7); }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal.wide > .mh, html[data-theme="aurora"]:not([data-mode="light"]) body .modal.wide > header, html[data-theme="aurora"]:not([data-mode="light"]) body .modal.wide .modal-head { background: #151d31; border-bottom: 1px solid rgba(0,0,0,.55); }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox, html[data-theme="aurora"]:not([data-mode="light"]) body .modal .mcard { background: #172034; border: 1px solid rgba(130,160,255,.10); border-radius: 12px; box-shadow: none; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .mtile { background: #172034; border: 1px solid rgba(130,160,255,.10); border-radius: 10px; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox > h5, html[data-theme="aurora"]:not([data-mode="light"]) body .modal .mcard > h6, html[data-theme="aurora"]:not([data-mode="light"]) body .modal .wsec > h4, html[data-theme="aurora"]:not([data-mode="light"]) body .modal .mtile > small { color: #5aa9ff; font-size: 12px; font-weight: 600; letter-spacing: .07em; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox .kv2, html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox .rrow { min-height: 32px; border-bottom: 0; border-top: 1px solid rgba(255,255,255,.07); padding: 0; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox > h5 + .kv2, html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox > h5 + .rrow { border-top: 1px solid rgba(255,255,255,.07); }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox > h5 { border-bottom: 0; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox > h5 > i { width: 22px; height: 22px; border-radius: 6px; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbox > h5 > i svg { width: 14px; height: 14px; color: #fff; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .mrange { background: rgba(118,128,160,.2); border: 0; border-radius: 8px; padding: 2px; gap: 2px; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .mrange button { border-radius: 6px !important; background: none !important; border: 0 !important; color: #c7cfdf; height: 28px !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .mrange button.on { background: #0a84ff !important; color: #fff !important; font-weight: 600; }
html[data-theme="aurora"]:not([data-mode="light"]) body .modal .sbar .abtn { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
/* the tunnel window: icon tiles per box and the coloured icons of the action row */
.sbox[data-b="servers"] > h5 > i { background: #5b6b8c; } .sbox[data-b="status"] > h5 > i { background: #30d158; } .sbox[data-b="link"] > h5 > i { background: #0a84ff; }
.sbar .abtn[data-t="Health"] .bi { color: #30d158; } .sbar .abtn[data-t="Restart"] .bi { color: #5aa9ff; } .sbar .abtn[data-t="Quality"] .bi { color: #bf8cff; } .sbar .abtn[data-t="Mute alerts"] .bi { color: #ff9f0a; }
.sbar .abtn[data-t="Rebuild"] .bi { color: #32d74b; } .sbar .abtn[data-t="History"] .bi { color: #9aa4b8; }
.sbar .abtn .bi { margin-right: 0; } .sbar .abtn { gap: 7px; }

.sbox[data-b="config"] > h5 > i { background: #30b0c7; } .sbox[data-b="speed"] > h5 > i { background: #ff9f0a; }
html body .modal .sbar.cfbar { flex-wrap: nowrap; } html body .modal .sbar.cfbar .abtn { flex: 1 1 0 !important; justify-content: center; }
.sbar .abtn[data-t="Speed test"] .bi { color: #ff9f0a; } .sbar .abtn[data-t="Ping now"] .bi { color: #5aa9ff; } .sbar .abtn[data-t="Copy link"] .bi { color: #9aa4b8; }
.sbar.cfbar .abtn .bi svg, .sbar .abtn .bi svg { stroke-width: 1.5; }

/* ---- Alerts screen of handoff 2: group cards (header, fields 44 px radius 12 with the label on top, pill buttons 44 px) ---- */
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss { padding: 16px 20px 18px !important; row-gap: 14px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss > .ss-h { gap: 14px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .ss-ic { background: #22314f; color: #5aa9ff; width: 40px; height: 40px; border-radius: 11px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss > .ss-h.ok .ss-ic { background: #173a2a; color: #30d158; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss > .ss-h.off .ss-ic { background: #3a1f26; color: #ff6b81; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-hero.s3 .ss-ic { background: #173a2a; color: #30d158; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-hero.s2 .ss-ic { background: #3a2f1d; color: #ff9f0a; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-hero.s1 .ss-ic { background: #3a2f1d; color: #ff9f0a; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss-hero.s0 .ss-ic { background: #3a1f26; color: #ff6b81; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr { gap: 8px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr > span { font-size: 13px; color: #9aa4b8; font-weight: 400; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr > .v input:not([type=checkbox]), html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr > .v select, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .fic input, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sic select { height: 44px !important; border-radius: 12px !important; font-size: 15px !important; padding-left: 16px; background-color: #0b1120 !important; border: 1px solid rgba(255,255,255,.07) !important; color: #f2f5fb; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .fic input { padding-left: 44px !important; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sic select { padding-left: 44px !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr:has(> .v > input.sw) { height: 44px; align-items: center; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr:has(> .v > input.sw) > span { font-size: 14px; font-weight: 500; color: #f2f5fb; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss > .ss-a button, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .ss-a a.btn, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sf-act button { height: 44px; padding: 0 22px; font-size: 14px; font-weight: 600; border-radius: 22px !important; border: 1px solid rgba(255,255,255,.1); }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss > .ss-a button.pri, html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .sf-act button.pri { padding: 0 28px; border: 0 !important; border-radius: 22px !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .sf-act button { height: 44px; border-radius: 22px !important; padding: 0 22px; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .sf-act button.pri { padding: 0 28px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr.li { height: 40px; border-top: 1px solid rgba(255,255,255,.07) !important; font-size: 13px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .ss .sr.li a.mut { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 12px; color: #ff6961; background: rgba(255,69,58,.1); border: 1px solid rgba(255,69,58,.25); border-radius: 8px; }
/* the pills of the handoff: 12 px, radius 11, tinted */
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .pill { font-size: 12px; font-weight: 500; padding: 1px 12px; border-radius: 11px; line-height: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: #9aa4b8; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .pill.ok { color: #5ee07f; background: rgba(48,209,88,.08); border-color: rgba(48,209,88,.4); }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .pill.err { color: #ff6b81; background: rgba(255,69,58,.08); border-color: rgba(255,69,58,.4); }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .sf .pill.warn { color: #ffb340; background: rgba(255,159,10,.08); border-color: rgba(255,159,10,.4); }

/* Tunnel Doctor: the log (History) sits at the top right, under the settings; Working now takes the whole left column */
@media (min-width: 1000px) {
  html body #page .ap-pair { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; align-items: start; gap: 16px; }
  html body #page .ap-pair > .card:first-child { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; }
  html body #page .ap-pair > .ap-set { grid-column: 2; grid-row: 1; }
  html body #page .ap-pair > .ap-histcard { grid-column: 2; grid-row: 2; margin: 0; }
  html body #page .ap-pair > .ap-histcard .ap-hist { max-height: 340px; overflow: auto; }
}

/* ---- users: instead of the coloured line at the left of a row, a small tile with a person icon in the colour of the status ---- */
html body .usr-tbl tbody tr td:first-child, html body .usr-tbl tbody tr.up td:first-child, html body .usr-tbl tbody tr.down td:first-child { border-left: 0 !important; box-shadow: none !important; }
.usr-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.usr-av { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-style: normal; background: rgba(154,164,192,.14); color: #9aa4b8; }
.usr-av svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.usr-av.active { background: rgba(48,209,88,.14); color: #30d158; } .usr-av.limited { background: rgba(255,159,10,.14); color: #ff9f0a; }
.usr-av.expired { background: rgba(255,69,58,.14); color: #ff6b81; } .usr-av.on_hold { background: rgba(90,169,255,.14); color: #5aa9ff; }
/* Tunnel Doctor: the header controls of Working now are one joined group, and the log box and its note are one piece */
html body #page .ap-pair > .card:first-child > h3 { display: flex; align-items: center; gap: 0; }
html body #page .ap-pair > .card:first-child > h3 > .sp { flex: 1; }
html body #page .ap-pair > .card:first-child > h3 > .ap-auto, html body #page .ap-pair > .card:first-child > h3 > button, html body #page .ap-pair > .card:first-child > h3 > .pill { height: 34px; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 -1px; padding: 0 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 0; background: rgba(255,255,255,.05); box-shadow: none; text-transform: none; letter-spacing: 0; font-size: 13px; }
html body #page .ap-pair > .card:first-child > h3 > .ap-auto { border-radius: 10px 0 0 10px; margin-left: 0; }
html body #page .ap-pair > .card:first-child > h3 > .pill { border-radius: 0 10px 10px 0; }
html body #page .ap-pair > .card:first-child .ap-att { border-radius: 12px 12px 0 0 !important; border: 1px solid rgba(255,255,255,.08) !important; border-bottom: 0 !important; background: rgba(255,255,255,.03) !important; margin-bottom: 0 !important; }
html body #page .ap-pair > .card:first-child .ap-note { display: block; margin: 0 !important; padding: 10px 14px; border: 1px solid rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.06); border-radius: 0 0 12px 12px; background: rgba(255,255,255,.03); }
html body #page .ap-set-row { padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.03); align-items: flex-end; }

/* the Expires column: the header and the cells start at the same place, a little left of the edge; the pill with the date beside it */
html body .usr-tbl thead th:last-child, html body .usr-tbl tbody td:last-child { text-align: left !important; padding-left: 36px !important; padding-right: 12px !important; }
.exp-c { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.exp-d { color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---- Tunnel Doctor without a page scroll ---- */
@media (min-width: 1000px) {
  html body #page:has(.ap-pair) { display: flex; flex-direction: column; height: var(--ap-h, auto); overflow: hidden; gap: 12px; }
  html body #page:has(.ap-pair) > * { flex: none; margin-top: 0; margin-bottom: 0; }
  html body #page:has(.ap-pair) > .ap-pair { flex: 1 1 0; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  html body #page .ap-intro { padding: 10px 12px 12px; } html body #page .ap-steps { gap: 8px; } html body #page .ap-steps > div { padding: 10px 14px; row-gap: 2px; } html body #page .ap-steps > div > span { font-size: 13px; line-height: 1.4; }
  html body #page .ap-pair > .card:first-child { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  html body #page .ap-pair > .card:first-child .ap-att { flex: 1 1 0; min-height: 0; overflow: auto; }
  html body #page .ap-pair > .ap-histcard { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  html body #page .ap-pair > .ap-histcard .ap-hist { flex: 1 1 0; min-height: 0; max-height: none !important; overflow: auto; }
}

/* ---- every window and question opens the same soft way: a short fade and a small rise, no blur, no tilt, no spring, nothing that changes the rendering at the end (that was the little jump) ---- */
html body .overlay { animation: ov-soft .2s ease-out both; }
@keyframes ov-soft { from { opacity: 0; } to { opacity: 1; } }
html body .modal, html body #ask .modal.ask-box { animation: win-soft .26s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 30%; will-change: opacity, transform; filter: none; }
@keyframes win-soft { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
html body .modal::after { display: none; }
html body .modal-head, html body .modal-body { animation: none; }
html body .toast { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { html body .overlay, html body .modal { animation: none !important; } }
html body #page .sg:not(:is(.sf) *) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ---- the Configs page of the design: a toolbar card with pill buttons, the group row, the list as rows of cards ---- */
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top { background: #172034; border: 1px solid rgba(130,160,255,.10); border-radius: 12px; padding: 10px 14px; min-height: 52px; gap: 10px; align-items: center; box-shadow: none; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top > button { height: 34px; padding: 0 16px; border-radius: 17px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); display: inline-flex; align-items: center; gap: 7px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top > button.danger { color: #ff6961; background: rgba(255,69,58,.12); border-color: rgba(255,69,58,.28); }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top > button .bi { margin: 0; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top > button .bi svg { width: 13px; height: 13px; stroke-width: 1.8; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top > button[data-t="Ping all"] .bi { color: #5aa9ff; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top > button[data-t="Test all"] .bi { color: #ff9f0a; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top .tcount { gap: 6px; margin-left: 6px; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top .tc { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border-radius: 15px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); font-size: 13px; color: #9aa4b8; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top .tc b { color: #f2f5fb; font-weight: 700; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top .tabs { background: rgba(118,128,160,.2); border: 0; border-radius: 18px; padding: 2px; gap: 2px; flex-wrap: nowrap; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top .tabs button { height: 30px; padding: 0 16px; border-radius: 16px; border: 0; background: transparent; color: #c7cfdf; font-size: 13px; font-weight: 500; box-shadow: none; display: inline-flex; align-items: center; gap: 7px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top .tabs button.on { color: #5aa9ff; font-weight: 600; background: rgba(10,132,255,.16); box-shadow: inset 0 0 0 1px #0a84ff; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top .tabs .bi { margin: 0; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .toolbar.cf-top .tabs .bi svg { width: 14px; height: 14px; stroke-width: 1.6; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .gbar .gchip { height: 32px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); color: #d3d9e6; display: inline-flex; align-items: center; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .gbar .gchip.on { background: #0a84ff; border-color: transparent; color: #fff; box-shadow: 0 2px 8px rgba(10,132,255,.35); }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .gbar .gchip > button { height: 100%; border: 0; background: transparent; box-shadow: none; color: inherit; font-size: 13px; font-weight: 600; padding: 0 10px 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 16px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .gbar .gchip small { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: rgba(255,255,255,.10); } html[data-theme="aurora"]:not([data-mode="light"]) body #page .gbar .gchip.on small { background: rgba(0,0,0,.25); }
html[data-theme="aurora"]:not([data-mode="light"]) body #page .gbar > .sm { height: 30px; padding: 0 16px; border-radius: 15px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .gbar .bi { margin: 0; } html[data-theme="aurora"]:not([data-mode="light"]) body #page .gbar .bi svg { width: 13px; height: 13px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list { border-collapse: separate; border-spacing: 0 4px; background: transparent; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list thead th { background: rgba(255,255,255,.04); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #9aa4b8; height: 30px; padding: 0 14px; border: 0; text-transform: uppercase; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list thead th:first-child { border-radius: 8px 0 0 8px; } html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list thead th:last-child { border-radius: 0 8px 8px 0; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list tbody td { background: #172034 !important; border-top: 1px solid rgba(130,160,255,.10) !important; border-bottom: 1px solid rgba(130,160,255,.10) !important; height: 52px; padding: 0 14px; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list tbody td:first-child { border-left: 1px solid rgba(130,160,255,.10) !important; border-radius: 10px 0 0 10px; } html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list tbody td:last-child { border-right: 1px solid rgba(130,160,255,.10) !important; border-radius: 0 10px 10px 0; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list tbody tr:hover td { background: #1c2740 !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list tbody tr.down td { background: rgba(255,69,58,.06) !important; border-color: rgba(255,69,58,.2) !important; }
html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list .cf-acts button, html[data-theme="aurora"]:not([data-mode="light"]) body #page table.cf-list td:last-child button { height: 30px; padding: 0 16px; border-radius: 15px; font-size: 12.5px; font-weight: 600; }

/* ---- Shop bot page from Shop.dc.html: services + four numbers, grouped navigation, needs attention, Telegram + panels, bot log ---- */
body #page .sb-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 12px; margin-bottom: 12px; }
body #page .sb-card { background: #172034; border: 1px solid rgba(130,160,255,.10); border-radius: 14px; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: none; }
body #page .sb-lab { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #5aa9ff; }
body #page .sb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body #page .sb-chip { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; border-radius: 14px; cursor: default; box-shadow: none; }
body #page .sb-chip i { width: 7px; height: 7px; border-radius: 4px; flex: none; }
body #page .sb-chip.ok { color: #5ee07f; background: rgba(48,209,88,.12); border: 1px solid rgba(48,209,88,.30); } body #page .sb-chip.ok i { background: #30d158; }
body #page .sb-chip.off { color: #ff6b81; background: rgba(255,69,58,.12); border: 1px solid rgba(255,69,58,.30); cursor: pointer; } body #page .sb-chip.off i { background: #ff453a; }
body #page .sb-chip[onclick] { cursor: pointer; } body #page .sb-chip:hover { filter: brightness(1.2); }
body #page .sb-start { margin-left: 4px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.18); font-weight: 600; }
body #page .sb-stat4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body #page .sb-stat { gap: 4px; } body #page .sb-sv { display: flex; align-items: baseline; gap: 6px; }
body #page .sb-sv b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } body #page .sb-sv em { font-style: normal; font-size: 13px; color: #9aa4b8; }
body #page .sb-ss { font-size: 12.5px; color: #9aa4b8; font-variant-numeric: tabular-nums; }
body #page .sb-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
body #page .sb-ng { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
body #page .sb-gl { padding-left: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #5aa9ff; }
body #page .sb-gbox { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; }
body #page .sb-nt { height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; border-radius: 10px; color: #d3d9e6; background: transparent; border: 1px solid transparent; box-shadow: none; }
body #page .sb-nt .ti { color: var(--ic); } body #page .sb-nt .ti svg { width: 16px; height: 16px; }
body #page .sb-nt:hover { background: rgba(255,255,255,.08); }
body #page .sb-nt.on { font-weight: 600; color: #5aa9ff; background: rgba(10,132,255,.16); border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.14); } body #page .sb-nt.on .ti { color: #5aa9ff; }
body #page .sb-nt small { min-width: 16px; height: 16px; padding: 0 5px; box-sizing: border-box; border-radius: 8px; background: #ff9f0a; color: #1a1205; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
body #page .sb-ch { display: flex; align-items: center; gap: 10px; }
body #page .sb-ci svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; } body #page .sb-ci { display: inline-grid; place-items: center; }
body #page .sb-count { display: none; min-width: 20px; height: 20px; box-sizing: border-box; padding: 0 6px; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #ffb340; background: rgba(255,159,10,.16); border: 1px solid rgba(255,159,10,.5); border-radius: 10px; } body #page .sb-count.on { display: inline-flex; }
body #page .sb-ar { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; box-sizing: border-box; }
body #page .sb-ar + .sb-ar { border-top: 1px solid rgba(255,255,255,.07); }
body #page .sb-ar .ss-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(10,132,255,.14); color: #5aa9ff; }
body #page .sb-ar.warn .ss-ic { background: rgba(255,159,10,.14); color: #ff9f0a; } body #page .sb-ar.bad .ss-ic { background: rgba(255,69,58,.14); color: #ff6b81; } body #page .sb-ar.ok .ss-ic { background: rgba(48,209,88,.14); color: #30d158; }
body #page .sb-ar .si-t { display: grid; gap: 3px; min-width: 0; } body #page .sb-ar .si-t b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; } body #page .sb-ar .si-t small { font-size: 13px; line-height: 1.4; color: #aeb7ca; white-space: normal; }
body #page .sb-ar .si-a { display: flex; align-items: center; gap: 8px; }
body #page .sb-btn { height: 38px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #f2f5fb; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); border-radius: 19px; box-shadow: none; }
body #page .sb-btn.pri { background: #0a84ff; border: 0; color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(10,132,255,.35); } body #page .sb-btn.red { background: #ff453a; border: 0; color: #fff; font-weight: 600; }
body #page .sb-btn.sm { height: 28px; padding: 0 14px; font-size: 13px; border-radius: 14px; margin-left: auto; } body #page .sb-btn .bi { margin: 0; } body #page .sb-btn .bi svg { width: 15px; height: 15px; }
body #page .sb-busy { height: 38px; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #9cc8ff; background: rgba(10,132,255,.14); border: 1px solid rgba(10,132,255,.4); border-radius: 19px; }
body #page .sb-busy .spin { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
body #page .sb-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin: 12px 0; }
body #page .sb-whs { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; } body #page .sb-whs i { width: 7px; height: 7px; border-radius: 4px; }
body #page .sb-whs.ok { color: #5ee07f; } body #page .sb-whs.ok i { background: #30d158; } body #page .sb-whs.warn { color: #ffb340; } body #page .sb-whs.warn i { background: #ff9f0a; } body #page .sb-whs.bad { color: #ff6b81; } body #page .sb-whs.bad i { background: #ff453a; }
body #page .sb-tgrid { display: grid; grid-template-columns: 170px minmax(0, 1fr) 130px; gap: 14px; align-items: start; }
body #page .sb-kv { display: flex; flex-direction: column; gap: 4px; min-width: 0; } body #page .sb-kv > span:first-child { font-size: 12.5px; color: #9aa4b8; } body #page .sb-kv small { font-size: 12.5px; color: #9aa4b8; }
body #page .sb-v { display: flex; align-items: center; gap: 6px; min-width: 0; } body #page .sb-v b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #page .sb-v .mono, body #page .sb-prow .mono, body #page .sb-bk .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; color: #d3d9e6; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body #page .sb-pn { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
body #page .sb-cp { flex: none; height: 24px; padding: 0 10px; font-size: 12px; font-weight: 500; border-radius: 12px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); color: #c7cfdf; opacity: .45; box-shadow: none; }
body #page .sb-kv:hover .sb-cp, body #page .sb-prow:hover .sb-cp, body #page .sb-cp:focus-visible, body #page .sb-cp.on { opacity: 1; } body #page .sb-cp.on { color: #5ee07f; }
body #page .sb-prow { height: 44px; box-sizing: border-box; padding: 0 8px 0 14px; display: flex; align-items: center; gap: 12px; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; }
body #page .sb-prow b { font-size: 14px; font-weight: 600; } body #page .sb-prow .mono { margin-left: auto; font-size: 13px; color: #c7cfdf; }
body #page .sb-lchip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; font-size: 12.5px; border-radius: 12px; } body #page .sb-lchip i { width: 6px; height: 6px; border-radius: 3px; }
body #page .sb-lchip.ok { color: #5ee07f; background: rgba(48,209,88,.12); border: 1px solid rgba(48,209,88,.30); } body #page .sb-lchip.ok i { background: #30d158; }
body #page .sb-lchip.warn { color: #ffb340; background: rgba(255,159,10,.12); border: 1px solid rgba(255,159,10,.35); } body #page .sb-lchip.warn i { background: #ff9f0a; }
body #page .sb-right { margin-left: auto; font-size: 12.5px; color: #9aa4b8; }
body #page .sb-bks { display: flex; flex-wrap: wrap; gap: 8px; }
body #page .sb-bk { height: 32px; box-sizing: border-box; padding: 0 12px; display: inline-flex; align-items: center; gap: 10px; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; } body #page .sb-bk b { font-size: 13px; font-weight: 500; } body #page .sb-bk .mono { font-size: 12px; color: #9aa4b8; }
body #page .sb-logd summary { cursor: pointer; color: #9aa4b8; font-size: 13px; padding: 2px 0; } body #page .sb-logd pre { margin: 8px 0 0; max-height: 260px; overflow: auto; }
@media (max-width: 1100px) { body #page .sb-head, body #page .sb-two { grid-template-columns: 1fr; } body #page .sb-stat4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } body #page .sb-tgrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) and (pointer: coarse) { body #page .sb-ar { grid-template-columns: 40px minmax(0, 1fr); } body #page .sb-ar .si-a { grid-column: 1 / -1; flex-wrap: wrap; } body #page .sb-gbox { flex-wrap: wrap; } }
html[data-mode="light"] body #page .sb-card { background: #fff; border-color: rgba(60,80,130,.14); } html[data-mode="light"] body #page .sb-gbox { background: rgba(60,80,130,.05); border-color: rgba(60,80,130,.12); } html[data-mode="light"] body #page .sb-nt { color: #1c1f2a; }
html[data-mode="light"] body #page .sb-prow, html[data-mode="light"] body #page .sb-bk { background: #f1f4fa; border-color: rgba(60,80,130,.12); } html[data-mode="light"] body #page .sb-btn { color: #1c1f2a; background: rgba(60,80,130,.06); border-color: rgba(60,80,130,.14); } html[data-mode="light"] body #page .sb-btn.pri, html[data-mode="light"] body #page .sb-btn.red { color: #fff; }
body #page .sb-plist { display: flex; flex-direction: column; gap: 8px; max-height: 232px; overflow: auto; padding-right: 2px; }

body #page .sb-ar { grid-template-columns: 40px minmax(0, 1fr) auto; } body #page .sb-ar:has(.sb-x) { grid-template-columns: 40px minmax(0, 1fr) auto 28px; }
body #page .sb-x { width: 28px; height: 28px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; color: #9aa4b8; background: transparent; border: 0; box-shadow: none; } body #page .sb-x svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; } body #page .sb-x:hover { background: rgba(255,255,255,.10); color: #f2f5fb; }
body #page .sb-link { margin-left: auto; padding: 0 8px; height: 24px; font-size: 12.5px; color: #5aa9ff; background: transparent; border: 0; box-shadow: none; }
@media (max-width: 760px) and (pointer: coarse) { body #page .sb-ar:has(.sb-x) { grid-template-columns: 40px minmax(0, 1fr) 28px; } body #page .sb-ar:has(.sb-x) .si-a { grid-column: 1 / -1; } }

body #page .sb-plist { max-height: 188px; }
body #page .sb-pc { min-width: 20px; height: 20px; padding: 0 7px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #9aa4b8; background: rgba(255,255,255,.07); border-radius: 10px; }
body #page .sb-ptype { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); border-radius: 12px; }
body #page .sb-prow .mono { margin-left: 0; flex: 1; }
body #page .sb-pn2 { height: 22px; padding: 0 9px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: #c7cfdf; background: rgba(255,255,255,.08); border-radius: 11px; cursor: help; }

body #page .sb-pa-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 12px; margin-bottom: 12px; }
body #page .sb-pst { gap: 4px; } body #page .sb-padd { gap: 8px; }
body #page .sb-padd input { height: 36px; border-radius: 12px; }
body #page .sb-pres { display: flex; flex-direction: column; gap: 6px; } body #page .sb-pres:empty { display: none; }
body #page .sb-pr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; font-size: 13px; }
body #page .sb-disc { display: inline-flex; align-items: center; gap: 4px; } body #page .sb-disc input { width: 64px; height: 30px; border-radius: 9px; text-align: center; } body #page .sb-disc em { font-style: normal; color: #9aa4b8; }
@media (max-width: 1100px) { body #page .sb-pa-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Payments tab from Payments.dc.html ---- */
body #page .sb-ptool { flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; flex-wrap: wrap; }
body #page .sb-ptabs { display: flex; gap: 6px; flex-wrap: wrap; }
body #page .sb-ptab { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #e6eaf3; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; box-shadow: none; }
body #page .sb-ptab span { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; border-radius: 10px; color: #9aa4b8; background: rgba(255,255,255,.07); font-variant-numeric: tabular-nums; }
body #page .sb-ptab.on { font-weight: 600; color: #5aa9ff; background: rgba(10,132,255,.14); border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.15); } body #page .sb-ptab.on span { color: #9cc8ff; background: rgba(10,132,255,.22); }
body #page .sb-psearch { position: relative; display: flex; align-items: center; margin-left: 6px; } body #page .sb-psearch i { position: absolute; left: 12px; pointer-events: none; color: #8791a8; display: grid; } body #page .sb-psearch svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
body #page .sb-psearch input { width: 290px; height: 38px; box-sizing: border-box; padding: 0 12px 0 34px; font-size: 14px; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; }
body #page .sb-pager { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; } body #page .sb-pager small { font-size: 13px; color: #9aa4b8; font-variant-numeric: tabular-nums; }
body #page .sb-pager button { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 16px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.08); box-shadow: none; } body #page .sb-pager button:disabled { color: #5b667c; background: rgba(255,255,255,.03); } body #page .sb-pager svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body #page .sb-ptable { padding: 0; gap: 0; overflow: hidden; overflow-x: auto; }
body #page .sb-phead, body #page .sb-prow2 { display: grid; grid-template-columns: 78px minmax(200px, 1fr) 130px 170px 190px 150px minmax(290px, auto); column-gap: 14px; align-items: center; padding: 0 14px; min-width: 1220px; box-sizing: border-box; }
body #page .sb-phead { height: 38px; background: #121a2c; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8791a8; } body #page .r { text-align: right; justify-self: end; }
body #page .sb-prows { max-height: calc(100vh - 430px); min-height: 220px; overflow-y: auto; min-width: 1220px; }
body #page .sb-prow2 { height: 56px; border-bottom: 1px solid rgba(255,255,255,.07); } body #page .sb-prow2:hover { background: rgba(255,255,255,.035); }
body #page .sb-prow2.ask-ok { background: rgba(10,132,255,.07); } body #page .sb-prow2.ask-no { background: rgba(255,69,58,.07); }
body #page .sb-prow2 > .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; font-weight: 600; color: #c7cfdf; }
body #page .sb-pu, body #page .sb-pt, body #page .sb-pd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body #page .sb-pu b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; } body #page .sb-pu small, body #page .sb-pd small { font-size: 12.5px; color: #8791a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
body #page .sb-pa b { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; } body #page .sb-pa em { font-style: normal; font-size: 12.5px; color: #9aa4b8; }
body #page .sb-pt b { font-size: 14px; font-weight: 400; color: #e6eaf3; } body #page .sb-pt small { font-size: 11.5px; color: #8791a8; } body #page .sb-pd b { font-size: 14px; font-weight: 400; color: #e6eaf3; font-variant-numeric: tabular-nums; }
body #page .sb-pc2 { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; font-size: 12.5px; font-weight: 500; border-radius: 12px; white-space: nowrap; }
body #page .sb-pc2.warn { color: #ffd60a; background: rgba(255,214,10,.10); border: 1px solid rgba(255,214,10,.32); } body #page .sb-pc2.wait { color: #aeb7ca; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
body #page .sb-pc2.ok { color: #5ee07f; background: rgba(48,209,88,.12); border: 1px solid rgba(48,209,88,.30); } body #page .sb-pc2.bad { color: #ff6b81; background: rgba(255,69,58,.12); border: 1px solid rgba(255,69,58,.30); }
body #page .sb-pact { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
body #page .sb-btn.sm0 { height: 32px; padding: 0 16px 0 12px; font-size: 13.5px; border-radius: 16px; gap: 6px; } body #page .sb-btn.sm0 svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body #page .sb-btn.dec { color: #ff6b81; background: rgba(255,69,58,.14); border: 1px solid rgba(255,69,58,.28); font-weight: 500; }
body #page .sb-pask { font-size: 13px; color: #ffb3bd; white-space: nowrap; } body #page .sb-why { width: 230px; height: 32px; border-radius: 16px; padding: 0 12px; font-size: 13px; }
body #page .sb-pdone { font-size: 13px; color: #8791a8; }
body #page .sb-pempty { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9aa4b8; font-size: 14px; } body #page .sb-pempty i { width: 44px; height: 44px; border-radius: 13px; background: rgba(48,209,88,.12); color: #30d158; display: grid; place-items: center; } body #page .sb-pempty svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

body #page .sb-prows { max-height: none; min-height: 0; overflow: hidden; }
body #page .sb-pu b, body #page .sb-pu small { text-align: left; unicode-bidi: plaintext; direction: ltr; }
body #page .sb-pfoot { height: 52px; box-sizing: border-box; padding: 0 14px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.07); min-width: 1220px; }
body #page .sb-pfoot .pgbar { display: flex; align-items: center; gap: 12px; width: 100%; } body #page .sb-pfoot .pgbar .sp { flex: 1; } body #page .sb-pfoot .pgs { display: inline-flex; align-items: center; gap: 4px; }

body #page .sb-prow2 { height: var(--prh, 56px); }
/* the shop bot cards: a little smaller, and each one grows slightly under the mouse */
body #page .sb-card { padding: 9px 14px 11px; gap: 7px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
body #page .sb-card:not(.sb-ptable):not(.sb-ptool):hover { transform: scale(1.025); border-color: rgba(10,132,255,.38); box-shadow: 0 10px 26px rgba(0,0,0,.38); position: relative; z-index: 3; }
body #page .sb-card.sb-attn:hover, body #page .sb-card.sb-log:hover, body #page .sb-two > .sb-card:hover { transform: scale(1.008); }
body #page .sb-sv b { font-size: 21px; } body #page .sb-stat { gap: 3px; } body #page .sb-svc .sb-chips { gap: 6px; } body #page .sb-chip { height: 26px; }
body #page .sb-head, body #page .sb-stat4, body #page .sb-two, body #page .sb-pa-top { gap: 10px; } body #page .sb-nav { margin-bottom: 10px; } body #page .sb-head { margin-bottom: 10px; }
body #page .sb-ar { min-height: 56px; } body #page .sb-ar .ss-ic { width: 36px; height: 36px; }
body #page:has(.sb-head) { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { body #page .sb-card { transition: none; } body #page .sb-card:hover { transform: none !important; } }

/* ---- shop bot: the fixed box under the tabs, the Orders and Plans lists (like Payments), the Add-plan window (Plans.dc.html) ---- */
body #page #sb-body.fit { box-sizing: border-box; overflow-x: hidden; overflow-y: auto; padding: 14px; background: #111a2d; border: 1px solid rgba(130,160,255,.10); border-radius: 14px; }
body #page #sb-body.fit.self { padding: 0; background: none; border: 0; overflow: hidden; }
body #page #sb-body.fit > :last-child { margin-bottom: 0; }
body #page .sb-lh, body #page .sb-lr { display: grid; grid-template-columns: var(--cols); column-gap: 12px; align-items: center; padding: 0 14px; min-width: var(--minw, 1100px); box-sizing: border-box; }
body #page .sb-lh { height: 38px; background: #121a2c; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8791a8; }
body #page .sb-lrows { min-width: var(--minw, 1100px); overflow: hidden; }
body #page .sb-lr { height: var(--prh, 52px); border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13.5px; color: #e6eaf3; transition: background .4s; }
body #page .sb-lr:hover { background: rgba(255,255,255,.035); } body #page .sb-lr.ask-no { background: rgba(255,69,58,.07); } body #page .sb-lr.flash { background: rgba(48,209,88,.12); }
body #page .sb-lr > span { min-width: 0; } body #page .sb-lr > .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; font-weight: 600; color: #c7cfdf; }
body #page .sb-cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c7cfdf; } body #page .sb-lr .sb-cut .mut { color: #6f7a91; }
body #page #pl-rows .sb-pu b { cursor: default; }
body #page .sb-ptable .sb-pfoot { min-width: var(--minw, 1100px); }
body #page .sb-ract { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
body #page .sb-sel { height: 38px; max-width: 220px; box-sizing: border-box; padding: 0 32px 0 12px; font-size: 14px; color: #f2f5fb; background: #0b1120 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239aa4b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; -webkit-appearance: none; appearance: none; color-scheme: dark; text-overflow: ellipsis; cursor: pointer; }
body #page .sb-tog { position: relative; width: 40px; height: 24px; min-width: 40px; padding: 0; border: 0; border-radius: 12px; background: rgba(255,255,255,.2); box-shadow: none; cursor: pointer; transition: background .2s; }
body #page .sb-tog.on, body #page .sb-tog.on:hover { background: #30d158; }
body #page .sb-tog > i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s; pointer-events: none; } body #page .sb-tog.on > i { transform: translateX(16px); }
body #page .sb-swc { display: inline-flex; align-items: center; gap: 8px; } body #page .sb-swc em { min-width: 24px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #8791a8; } body #page .sb-swc em.ok { color: #5ee07f; } body #page .sb-tog:hover { background: rgba(255,255,255,.3); }
body #page .sb-btn.red.sm0 { color: #fff; background: #ff453a; border: 0; font-weight: 600; } body #page .sb-btn.pri.sm0 { gap: 6px; }
body #page .sb-pask { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body #page .sb-pempty { height: 100%; min-height: 160px; }

body .modal.plan-add { width: min(680px, 100%); } body .modal.plan-add .modal-body { padding: 16px 20px 18px; }
body .qp { display: flex; flex-direction: column; gap: 14px; margin: 0; } body .qp-sub { margin: 0; font-size: 13px; color: #9aa4b8; }
body .qp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; } body .qp-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; } body .qp-f > label { font-size: 13px; color: #9aa4b8; }
body .qp-row { display: flex; gap: 8px; } body .qp-row .qp-sw { flex: 1; min-width: 0; }
body .qp-sw { position: relative; display: flex; align-items: center; } body .qp-sw > svg { position: absolute; right: 14px; width: 12px; height: 12px; stroke: #9aa4b8; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
body .modal .qp-sel, body .modal .qp-in { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; font-size: 14.5px; color: #f2f5fb; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; color-scheme: dark; }
body .modal .qp-sel { padding-right: 36px; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; cursor: pointer; }
body .modal .qp-in.bad { border-color: #ff453a; box-shadow: 0 0 0 3px rgba(255,69,58,.18); }
body .modal .qp-plus { flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: #f2f5fb; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); border-radius: 22px; }
body .qp-plus svg, body .qp-pri svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
body .qp-newcat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: #121a2c; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; font-size: 13px; color: #9aa4b8; }
body .modal .qp-newcat .qp-in { width: auto; flex: 1 1 160px; height: 36px; border-radius: 10px; font-size: 14px; }
body .modal .qp-pri { height: 44px; padding: 0 26px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #fff; background: #0a84ff; border: 0; border-radius: 22px; box-shadow: 0 6px 18px rgba(10,132,255,.35); }
body .modal .qp-pri.sm { height: 34px; padding: 0 18px; font-size: 13.5px; border-radius: 17px; box-shadow: none; } body .modal .qp-pri:hover { background: #0a84ff; filter: brightness(1.12); }
body .modal .qp-ghost { height: 34px; padding: 0 16px; font-size: 13.5px; font-weight: 500; color: #f2f5fb; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); border-radius: 17px; }
body .qp-prev { min-height: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: #9aa4b8; }
body .qp-prev b { height: 26px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: #f2f5fb; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; }
body .qp-prev #qp-ptxt { color: #c7cfdf; font-variant-numeric: tabular-nums; } body .qp-prev #qp-err { font-weight: 500; color: #ff6b81; }
body .qp-hint { font-size: 12.5px; color: #8791a8; } body .qp-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 760px) and (pointer: coarse) { body .qp-grid { grid-template-columns: 1fr; } body #page .sb-sel { max-width: none; } body #page .sb-ract { margin-left: 0; } }

/* the light mode of the lists, toolbars and the Add-plan window */
html[data-mode="light"] body #page #sb-body.fit { background: #eef2f9; border-color: rgba(60,80,130,.14); } html[data-mode="light"] body #page #sb-body.fit.self { background: none; }
html[data-mode="light"] body #page .sb-lh, html[data-mode="light"] body #page .sb-phead { background: #eef2f9; border-color: rgba(60,80,130,.14); color: #5b667c; }
html[data-mode="light"] body #page .sb-lr, html[data-mode="light"] body #page .sb-prow2 { color: #1c1f2a; border-color: rgba(60,80,130,.12); } html[data-mode="light"] body #page .sb-lr:hover, html[data-mode="light"] body #page .sb-prow2:hover { background: rgba(60,80,130,.05); }
html[data-mode="light"] body #page .sb-cut { color: #3a4358; } html[data-mode="light"] body #page .sb-ptab, html[data-mode="light"] body #page .sb-sel, html[data-mode="light"] body #page .sb-psearch input { color: #1c1f2a; background-color: #fff; border-color: rgba(60,80,130,.18); color-scheme: light; }
html[data-mode="light"] body #page .sb-ptab.on { color: #0a62c9; background: rgba(10,132,255,.12); } html[data-mode="light"] body #page .sb-tog { background: rgba(60,80,130,.25); }
html[data-mode="light"] body .modal .qp-sel, html[data-mode="light"] body .modal .qp-in, html[data-mode="light"] body .qp-prev b { color: #1c1f2a; background-color: #fff; border-color: rgba(60,80,130,.18); color-scheme: light; }
html[data-mode="light"] body .modal .qp-plus, html[data-mode="light"] body .modal .qp-ghost { color: #1c1f2a; background: rgba(60,80,130,.07); border-color: rgba(60,80,130,.16); } html[data-mode="light"] body .qp-newcat { background: #eef2f9; border-color: rgba(60,80,130,.14); }

/* ---- lower cards in the shop bot: only the height shrinks, the text keeps its size ---- */
body #page .sb-card { padding: 7px 14px 8px; gap: 5px; }
body #page .sb-ptool { padding: 7px 12px; margin-bottom: 10px; gap: 8px; }
body #page .sb-ptab { height: 32px; padding: 0 12px; } body #page .sb-ptab span { height: 18px; }
body #page .sb-psearch input, body #page .sb-sel { height: 32px; }
body #page .sb-btn.sm0 { height: 28px; padding: 0 14px 0 11px; }
body #page .sb-lh, body #page .sb-phead { height: 30px; }
body #page .sb-lr { height: var(--prh, 44px); } body #page .sb-prow2 { height: var(--prh, 46px); }
body #page .sb-pfoot { height: 44px; } body #page .sb-pfoot .pgn { height: 28px; min-width: 28px; }
body #page .sb-pager button { width: 28px; height: 28px; }
body #page .sb-stat { gap: 2px; } body #page .sb-svc .sb-chips { gap: 5px; } body #page .sb-chip { height: 24px; }
body #page .sb-ar { min-height: 48px; } body #page .sb-ar .ss-ic { width: 32px; height: 32px; }
body #page .sb-nt { height: 34px; } body #page .sb-nav { margin-bottom: 8px; } body #page .sb-head { margin-bottom: 8px; gap: 8px; }
body #page .sb-pa-top { gap: 8px; margin-bottom: 8px; } body #page .sb-pst { gap: 2px; }
body #page .sb-hint { font-size: 13.5px; color: #9aa4b8; }
html[data-mode="light"] body #page .sb-hint { color: #5b667c; }

/* ---- toolbars: the filters, search and hints sit at the right, the Add button at the left ---- */
body #page .sb-ptool { justify-content: flex-end; }
body #page .sb-ptool > .sb-btn.pri:first-child, body #page .sb-ptool > .sb-ract { order: -1; margin: 0 auto 0 0; }
body #page .sb-ptool > .sb-pager { margin-left: 0; }
body #page .sb-psearch { margin-left: 0; }

/* ---- lists: the extra cells (until / tags, copy, used bar), dim rows ---- */
body #page .sb-lr.dim { opacity: .72; }
body #page .sb-until { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-variant-numeric: tabular-nums; color: #e6eaf3; } body #page .sb-until .mut { color: #8791a8; }
body #page .sb-tag { height: 20px; padding: 0 8px; display: inline-flex; align-items: center; font-style: normal; font-size: 11.5px; font-weight: 600; border-radius: 10px; white-space: nowrap; }
body #page .sb-tag.bad { color: #ff6b81; background: rgba(255,69,58,.12); border: 1px solid rgba(255,69,58,.30); } body #page .sb-tag.warn { color: #ffd60a; background: rgba(255,214,10,.10); border: 1px solid rgba(255,214,10,.32); }
body #page .sb-tag.ok { color: #5ee07f; background: rgba(48,209,88,.12); border: 1px solid rgba(48,209,88,.30); } body #page .sb-tag.mutd { color: #aeb7ca; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
body #page .sb-gc { display: flex; align-items: center; gap: 8px; min-width: 0; } body #page .sb-gc .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; letter-spacing: .02em; }
body #page .sb-lr .sb-cp { opacity: .5; transition: opacity .15s; } body #page .sb-lr:hover .sb-cp, body #page .sb-lr .sb-cp.on, body #page .sb-lr .sb-cp:focus-visible { opacity: 1; }
body #page .sb-bar { display: block; width: 56px; height: 4px; margin-top: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; } body #page .sb-bar i { display: block; height: 100%; background: #0a84ff; }
body #page .sb-ct { font-size: 15px; font-weight: 600; }
/* the partner finder: its answers float over the list instead of pushing it down */
body #page .sb-padd { position: relative; } body #page .sb-pres { position: absolute; left: 10px; right: 10px; top: calc(100% - 4px); z-index: 30; padding: 6px; background: #121a2c; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.5); } body #page .sb-pres:empty { display: none; }

/* ---- windows: sections, three columns, checkbox button, text areas (Plans / Discounts / Gift codes designs) ---- */
body .modal.cat-add { width: min(560px, 100%); } body .modal.dc-edit { width: min(800px, 100%); } body .modal.plan-edit { width: min(1040px, 100%); }
body .qp-grid.one { grid-template-columns: 1fr; } body .qp-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .qp-sec { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #5aa9ff; margin-top: 2px; }
body .qp-sec + .qp-grid { margin-top: -4px; }
body .modal .qp-in.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; } body .modal .qp-in:disabled, body .modal .qp-sel:disabled { opacity: .45; }
body .modal .qp-ta { width: 100%; box-sizing: border-box; padding: 11px 14px; font-size: 14.5px; line-height: 1.5; color: #f2f5fb; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; resize: vertical; color-scheme: dark; } body .modal .qp-ta.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px; color: #d3d9e6; } body .modal .qp-ta.bad { border-color: #ff453a; box-shadow: 0 0 0 3px rgba(255,69,58,.18); }
body .qp-f label small { font-size: 12.5px; color: #8791a8; font-weight: 400; } body .qp-f label code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; color: #c7cfdf; }
body .modal .qp-chk { height: 44px; padding: 0; display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #f2f5fb; background: transparent; border: 0; box-shadow: none; text-align: left; }
body .modal .qp-chk > span { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #0b1120; border: 1px solid rgba(255,255,255,.2); } body .modal .qp-chk > span.on { background: #0a84ff; border-color: #0a84ff; } body .qp-chk svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body .qp-prev .qp-chk { margin-right: 6px; }
body .qp-lerr { display: flex; align-items: center; gap: 16px; } body .qp-act:has(.qp-lerr) { justify-content: flex-start; }
body .modal.plan-edit .qp-in, body .modal.plan-edit .qp-sel { height: 46px; font-size: 15px; border-radius: 14px; } body .modal.plan-edit .qp-pri { height: 46px; padding: 0 34px; font-size: 16px; border-radius: 23px; }
@media (max-width: 760px) and (pointer: coarse) { body .qp-grid.three { grid-template-columns: 1fr; } }
html[data-mode="light"] body .modal .qp-ta { color: #1c1f2a; background: #fff; border-color: rgba(60,80,130,.18); color-scheme: light; } html[data-mode="light"] body .modal .qp-chk { color: #1c1f2a; } html[data-mode="light"] body .modal .qp-chk > span:not(.on) { background: #fff; border-color: rgba(60,80,130,.3); }

/* ---- columns: a header and its cells start at the same place, whatever script the text is in ---- */
body #page .sb-lr > span, body #page .sb-lh > span, body #page .sb-prow2 > span, body #page .sb-phead > span { text-align: left; }
body #page .sb-lr > span.r, body #page .sb-lh > span.r, body #page .sb-prow2 > span.r, body #page .sb-phead > span.r { text-align: right; }
body #page .sb-cut { text-align: left; unicode-bidi: plaintext; }
body #page .sb-sub { display: flex; align-items: baseline; gap: 6px; direction: ltr; unicode-bidi: normal; } body #page .sb-sub > b { flex: none; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; font-weight: 600; color: #aeb7ca; cursor: default; }
body #page .sb-sub > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the flag under a server name is a shorter piece: it is stretched less */
.srv-tbl td.name.has-flag::before { width: 104px; }

/* ---- shop bot: settings groups, texts, tools, the partner bar ---- */
body #page #sb-body.fit.self { display: flex; flex-direction: column; } body #page #sb-body.self > .sb-ptool, body #page #sb-body.self > .sb-ptable { flex: none; }
body #page .sb-mini { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #9aa4b8; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; white-space: nowrap; } body #page .sb-mini b { font-size: 15px; font-weight: 600; color: #f2f5fb; font-variant-numeric: tabular-nums; } body #page .sb-mini em { font-style: normal; font-size: 12px; color: #9aa4b8; }
body .pa-resbox { height: 244px; display: flex; flex-direction: column; gap: 6px; overflow: hidden auto; }
body .pa-resbox .sb-pr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; font-size: 13.5px; } body .pa-resbox .sb-pr small { color: #8791a8; }
body #page .sb-ptab .chg, body #page .sb-btn .chg { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: #0b1120; background: #5aa9ff; border-radius: 9px; margin-left: 6px; } body #page .sb-btn .chg:empty { display: none; }
body #page .sb-btn.quiet { opacity: .6; }
body #page .sb-stbox { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px 14px 14px; gap: 10px; }
body #page .st-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; } body #page .st-t { display: flex; align-items: baseline; gap: 12px; min-width: 0; } body #page .st-t b { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #5aa9ff; white-space: nowrap; } body #page .st-t small { font-size: 12.5px; color: #8791a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body #page .st-act { display: inline-flex; align-items: center; gap: 8px; flex: none; } body #page .st-act small { font-size: 13px; color: #9cc8ff; } body #page .st-act .sb-btn:disabled { opacity: .45; cursor: default; }
body #page .st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px 12px; }
body #page .st-it { min-height: 48px; box-sizing: border-box; padding: 5px 10px 5px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; background: #121a2c; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; transition: border-color .15s, background .15s; } body #page .st-it:hover { border-color: rgba(255,255,255,.14); } body #page .st-it.chg { border-color: #0a84ff; background: rgba(10,132,255,.08); }
body #page .st-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; } body #page .st-l b { font-size: 13.5px; font-weight: 500; color: #e6eaf3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } body #page .st-l small { font-size: 12px; color: #8791a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body #page .st-in { width: 150px; height: 32px; box-sizing: border-box; padding: 0 10px; font-size: 13.5px; color: #f2f5fb; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; } body #page .st-in.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }
body #page .st-ta { width: 100%; box-sizing: border-box; height: calc(var(--prh, 80px) - 14px); margin: 7px 0; padding: 8px 12px; font-size: 14px; line-height: 1.45; color: #f2f5fb; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; resize: none; } body #page .st-ta.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
body #page .sb-sqlbox { padding: 8px 12px 10px; margin-bottom: 10px; flex: none; } body #page .sb-sqlbox .st-ta { height: 74px; margin: 0; resize: vertical; } body #page .sb-sqlact { display: flex; align-items: center; gap: 12px; }
body #page .sb-menu { position: relative; } body #page .sb-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; } body #page .sb-menu summary::-webkit-details-marker { display: none; } body #page .sb-menu summary svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body #page .sb-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; padding: 6px; display: flex; flex-direction: column; background: #121a2c; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.5); } body #page .sb-pop button { height: 34px; padding: 0 12px; text-align: left; font-size: 13.5px; color: #e6eaf3; background: transparent; border: 0; border-radius: 8px; box-shadow: none; } body #page .sb-pop button:hover { background: rgba(255,255,255,.08); }
body #page .sb-tool { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; } body #page .sb-tool.free { overflow: auto; gap: 10px; } body #page .sb-tool > .sb-card { flex: none; } body #page .sb-tool .sb-two { margin: 0; align-items: start; }
body #page .sb-p { margin: 4px 0; font-size: 13.5px; line-height: 1.5; color: #aeb7ca; } body #page .sb-bad { color: #ff6b81; } body #page .sb-ract-r { margin-left: auto; } body #page .sb-mrow { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
body #page .sb-frow { display: grid; grid-template-columns: minmax(120px, 1fr) 90px 150px; gap: 12px; align-items: center; min-height: 34px; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13.5px; } body #page .sb-frow.sb-fh { min-height: 28px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8791a8; } body #page .sb-frow .r { text-align: right; }
body #page .sb-tpc { padding: 8px 14px 10px; } body #page .tp-list { display: flex; flex-direction: column; } body #page .tp-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 42px; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; } body #page .tp-row.ask-no { background: rgba(255,69,58,.07); } body #page .tp-row .sb-pask { grid-column: 2; }
body #page .sb-srow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 150px; gap: 12px; align-items: center; height: 36px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; } body #page .sb-srow small { color: #8791a8; } body #page .sb-srow .sb-pa { text-align: right; }
html[data-mode="light"] body #page .sb-mini, html[data-mode="light"] body #page .st-in, html[data-mode="light"] body #page .st-ta { color: #1c1f2a; background: #fff; border-color: rgba(60,80,130,.18); } html[data-mode="light"] body #page .st-it { background: #f1f4fa; border-color: rgba(60,80,130,.12); } html[data-mode="light"] body #page .st-l b { color: #1c1f2a; } html[data-mode="light"] body #page .sb-mini b { color: #1c1f2a; } html[data-mode="light"] body #page .sb-pop { background: #fff; } html[data-mode="light"] body #page .sb-pop button { color: #1c1f2a; }

/* settings, compact: one-line cells (the hint is in the tooltip), the rest behind an arrow */
body #page .st-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 10px; }
body #page .st-it { min-height: 38px; padding: 3px 8px 3px 12px; gap: 8px; } body #page .st-it > b { font-size: 13.5px; font-weight: 500; color: #e6eaf3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body #page .st-in { width: 120px; height: 30px; }
body #page .st-more { align-self: flex-start; height: 30px; padding: 0 12px 0 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #9cc8ff; background: rgba(10,132,255,.10); border: 1px solid rgba(10,132,255,.28); border-radius: 15px; box-shadow: none; } body #page .st-more:hover { background: rgba(10,132,255,.18); } body #page .st-more:disabled { color: #9aa4b8; background: transparent; border-color: transparent; cursor: default; }
body #page .st-more svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; } body #page .st-more.open svg { transform: rotate(180deg); } body #page .st-more small { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; display: inline-grid; place-items: center; font-size: 11.5px; color: #9aa4b8; background: rgba(255,255,255,.08); border-radius: 9px; } body #page .st-more .chg { margin-left: 0; }
body #page .st-t small { display: none; } body #page .st-head { min-height: 32px; }

/* ---- windows: server, cron box, switches inside a window ---- */
body .qp-grid.three .span2 { grid-column: span 2; }
body .modal.cr-box { width: min(980px, 100%); }
body .cr-list { display: flex; flex-direction: column; gap: 8px; }
body .cr-job { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 6px; background: #121a2c; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; transition: border-color .15s; } body .cr-job.on { border-color: rgba(48,209,88,.4); }
body .cr-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; } body .cr-h .qp-chk { height: 34px; } body .cr-h .qp-chk b { font-size: 15px; font-weight: 600; }
body .modal .cr-sch { width: 230px; flex: none; } body .modal .cr-sch .qp-sel { height: 36px; font-size: 14px; }
body .cr-d { margin: 0; font-size: 13px; color: #9aa4b8; }
body .cr-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 10px; } body .cr-set:empty { display: none; }
body .cr-s { min-height: 36px; padding: 2px 8px 2px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; } body .cr-s.chg { border-color: #0a84ff; background: rgba(10,132,255,.08); }
body .cr-s > b { font-size: 13.5px; font-weight: 500; color: #e6eaf3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .cr-in { width: 120px; height: 28px; box-sizing: border-box; padding: 0 10px; font-size: 13.5px; color: #f2f5fb; background: #121a2c; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
body .cr-btns { display: inline-flex; gap: 10px; } body .modal .qp-ghost.cr-stop { color: #ff6b81; background: rgba(255,69,58,.14); border-color: rgba(255,69,58,.28); }
body .modal .sb-swc { display: inline-flex; align-items: center; gap: 8px; } body .modal .sb-swc em { min-width: 24px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #8791a8; } body .modal .sb-swc em.ok { color: #5ee07f; }
body .modal .sb-tog { position: relative; width: 40px; height: 24px; min-width: 40px; padding: 0; border: 0; border-radius: 12px; background: rgba(255,255,255,.2); box-shadow: none; cursor: pointer; transition: background .2s; } body .modal .sb-tog.on, body .modal .sb-tog.on:hover { background: #30d158; }
body .modal .sb-tog > i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s; pointer-events: none; } body .modal .sb-tog.on > i { transform: translateX(16px); }
html[data-mode="light"] body .cr-job { background: #eef2f9; border-color: rgba(60,80,130,.14); } html[data-mode="light"] body .cr-s { background: #fff; border-color: rgba(60,80,130,.14); } html[data-mode="light"] body .cr-s > b { color: #1c1f2a; } html[data-mode="light"] body .cr-in { color: #1c1f2a; background: #f1f4fa; border-color: rgba(60,80,130,.18); }
@media (max-width: 760px) and (pointer: coarse) { body .qp-grid.three .span2 { grid-column: auto; } body .modal .cr-sch { width: 100%; } body .cr-h { flex-wrap: wrap; } }

/* ---- settings on one page: the groups side by side, each with its own arrow ---- */
body #page .st-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(470px, 100%), 1fr)); gap: 10px 12px; align-items: start; }
body #page .st-sec { padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
body #page .st-sh { display: flex; align-items: center; gap: 8px; min-height: 30px; } body #page .st-sh b { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #5aa9ff; white-space: nowrap; } body #page .st-sh .sp { flex: 1; }
body #page .st-sec .st-grid { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 6px 8px; }
body #page .st-sec .st-it { min-height: 40px; padding: 2px 8px 2px 10px; } body #page .st-sec .st-it > b { white-space: normal; line-height: 1.15; font-size: 13px; }
body #page .st-sec .st-in { width: 92px; } body #page .st-sh .st-more { align-self: auto; height: 26px; }
body #page .sb-ptool > .sb-btn:disabled { opacity: .45; cursor: default; }
html[data-mode="light"] body #page .st-sec { background: rgba(60,80,130,.04); border-color: rgba(60,80,130,.12); }

/* ---- one user: a smaller window, the payments in a small scrolling box, the discount edited in place ---- */
body .modal.user-box { width: min(860px, 100%); } body .modal.user-box .modal-body { padding: 10px 14px 14px; }
body .user-box .ugrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; align-items: start; }
body .user-box .ibox { padding: 6px 12px 8px; } body .user-box .ibox h5 { margin-bottom: 2px; padding-bottom: 5px; } body .user-box .irow { padding: 2px 0; font-size: 13px; line-height: 1.3; min-height: 26px; align-items: center; }
body .user-box .iscroll { max-height: 118px; overflow-y: auto; overflow-x: hidden; padding-right: 4px; } body .user-box .ie { padding: 4px 0; font-size: 13px; }
body .user-box .uacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 4px; }
body .modal .ua { height: 36px; padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: #f2f5fb; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); border-radius: 18px; white-space: nowrap; } body .modal .ua:hover { background: rgba(255,255,255,.16); } body .modal .ua i { font-style: normal; font-size: 14px; } body .modal .ua.danger { color: #ff6b81; background: rgba(255,69,58,.14); border-color: rgba(255,69,58,.28); }
body .user-box .sb-disc { display: inline-flex; align-items: center; gap: 4px; } body .user-box .sb-disc input { width: 64px; height: 28px; box-sizing: border-box; padding: 0 6px; text-align: center; font-size: 13.5px; color: #f2f5fb; background: #0b1120; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; } body .user-box .sb-disc em { font-style: normal; color: #9aa4b8; }
html[data-mode="light"] body .user-box .sb-disc input { color: #1c1f2a; background: #fff; border-color: rgba(60,80,130,.2); } html[data-mode="light"] body .modal .ua { color: #1c1f2a; background: rgba(60,80,130,.07); border-color: rgba(60,80,130,.16); }
@media (max-width: 760px) and (pointer: coarse) { body .user-box .ugrid { grid-template-columns: 1fr; } body .user-box .uacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* settings: the groups flow into columns of equal height (4 on a wide window), so the whole page fits without a scroll */
body #page .st-secs { display: block; columns: 280px 4; column-gap: 12px; }
body #page .st-sec { break-inside: avoid; margin: 0 0 10px; }
body #page .st-sec .st-grid { grid-template-columns: minmax(0, 1fr); }

/* the list card has no padding of its own (the rows touch its edges), and the plans toolbar fits one line */
body #page .sb-card.sb-ptable { padding: 0; gap: 0; }
body #page .sb-pltool .sb-psearch input { width: 190px; } body #page .sb-pltool .sb-sel { max-width: 165px; }

/* the plans grouped by category */
body #page .sb-lr.sb-gh { background: rgba(10,132,255,.08); border-bottom-color: rgba(10,132,255,.22); } body #page .sb-lr.sb-gh:hover { background: rgba(10,132,255,.08); }
body #page .sb-gt { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; letter-spacing: .03em; color: #5aa9ff; text-align: left; } body #page .sb-gt small { min-width: 20px; height: 20px; padding: 0 7px; box-sizing: border-box; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; color: #9cc8ff; background: rgba(10,132,255,.2); border-radius: 10px; }

/* the status strip of the shop bot: lower - the label above, the number and its note on one line; the services in one row */
body #page .sb-stat { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 0; padding: 6px 14px 7px; } body #page .sb-stat .sb-lab { flex: 0 0 100%; }
body #page .sb-stat .sb-sv b { font-size: 20px; line-height: 1.2; } body #page .sb-stat .sb-ss { font-size: 13px; }
body #page .sb-svc { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 6px 14px; } body #page .sb-svc .sb-chips { flex-wrap: wrap; gap: 5px; }
body #page .sb-head { gap: 8px; margin-bottom: 8px; } body #page .sb-stat4 { gap: 8px; }

/* the services in one row at the left corner; the numbers take the rest */
body #page .sb-head { grid-template-columns: max-content minmax(0, 1fr); }
body #page .sb-svc { flex-wrap: nowrap; justify-content: flex-start; } body #page .sb-svc .sb-lab { flex: none; } body #page .sb-svc .sb-chips { flex-wrap: nowrap; }
@media (max-width: 1200px) { body #page .sb-head { grid-template-columns: 1fr; } body #page .sb-svc, body #page .sb-svc .sb-chips { flex-wrap: wrap; } }

/* the inbound picker of the Edit plan window */
body .pe-box { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow-y: auto; padding: 10px 12px; background: #0b1120; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; }
body .pe-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; } body .pe-gh b { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #5aa9ff; } body .pe-gh small { font-size: 12px; color: #8791a8; } body .pe-gh .sp { flex: 1; }
body .pe-lk { height: 22px; padding: 0 8px; font-size: 12px; color: #9cc8ff; background: transparent; border: 0; border-radius: 11px; } body .pe-lk:hover { background: rgba(10,132,255,.16); }
body .pe-chs { display: flex; flex-wrap: wrap; gap: 6px; }
body .pe-ch { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #c7cfdf; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 15px; } body .pe-ch small { font-size: 11.5px; color: #8791a8; } body .pe-ch:hover { background: rgba(255,255,255,.10); }
body .pe-ch.on { color: #fff; background: rgba(10,132,255,.35); border-color: #0a84ff; } body .pe-ch.on small { color: #cfe4ff; }
body .pe-note { padding: 10px 12px; font-size: 13px; color: #ffd60a; background: rgba(255,214,10,.08); border: 1px solid rgba(255,214,10,.25); border-radius: 12px; }
body .pe-adv > summary { cursor: pointer; font-size: 13px; color: #9aa4b8; padding: 4px 0; } body .pe-adv[open] > summary { margin-bottom: 6px; }
body .pe-pick .qp-chk { margin-top: 6px; }
html[data-mode="light"] body .pe-box { background: #fff; border-color: rgba(60,80,130,.18); } html[data-mode="light"] body .pe-ch { color: #1c1f2a; background: rgba(60,80,130,.07); border-color: rgba(60,80,130,.16); } html[data-mode="light"] body .pe-ch.on { color: #0a62c9; background: rgba(10,132,255,.15); }

/* ---- Tunnels → DNS · IP switch ---- */
.dns-intro .ap-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dns-recs { display: flex; flex-direction: column; gap: 6px; }
.dns-rec { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(200px, 1.6fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.dns-rec.mine { border-color: rgba(10,132,255,.35); } .dns-rec > b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-ips { display: flex; flex-wrap: wrap; gap: 6px 12px; } .dns-ip { display: inline-flex; align-items: center; gap: 6px; } .dns-ip .mono { font-size: 12.5px; }
.dns-act { display: inline-flex; align-items: center; gap: 6px; } .dns-act select { max-width: 220px; }
.lic-top { display: flex; flex-direction: column; gap: 8px; width: 100%; } .lic-feats { display: flex; flex-wrap: wrap; gap: 6px; } .lic-form { width: 100%; margin-top: 10px; } .lic-form textarea { width: 100%; min-height: 56px; }
@media (max-width: 1100px) { .dns-intro .ap-steps { grid-template-columns: 1fr 1fr; } .dns-rec { grid-template-columns: 1fr; } }

/* ---- a phone: every shop bot list row is a card of two columns (no header row, no sideways scroll); the fixed box is already off below 760 px ---- */
@media (max-width: 760px) and (pointer: coarse) {
  body #page .sb-lh { display: none; }
  body #page .sb-lrows, body #page .sb-ptable .sb-pfoot, body #page .sb-lh, body #page .sb-lr { min-width: 0; }
  body #page .sb-lr { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; height: auto; min-height: 0; padding: 9px 12px; row-gap: 5px; column-gap: 10px; }
  body #page .sb-lr > span, body #page .sb-lr > .mono, body #page .sb-lr > b { overflow: hidden; text-overflow: ellipsis; }
  body #page .sb-lr > .sb-pact, body #page .sb-lr > .sb-pask, body #page .sb-lr > .sb-pu, body #page .sb-lr > .sb-pt { grid-column: 1 / -1 !important; }
  body #page .sb-lr > span.r { text-align: left; }
  body #page .sb-lr .sb-pact { justify-content: flex-end; flex-wrap: wrap; }
  body #page .sb-ptool { flex-wrap: wrap; } body #page .sb-ptool .sb-psearch { flex: 1 1 100%; }
  body #page .sb-ptool .sb-psearch input { width: 100%; }
  body #page .sb-card.sb-ptable { overflow: hidden; }
  body #page .sb-pfoot { height: auto; min-height: 44px; flex-wrap: wrap; row-gap: 6px; padding: 6px 10px; }
  body #page .sb-sgrid, body #page .sb-sgrid.cols { columns: 1 !important; grid-template-columns: 1fr !important; }
  body #page .sb-stat4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body #page .sb-nav { overflow-x: auto; scrollbar-width: none; } body #page .sb-nav::-webkit-scrollbar { display: none; }
  body #page .srv-tbl, body #page .tn-list, body #page .cfg-grid { min-width: 0; }
  body .modal.plan-add, body .modal.plan-edit, body .modal.cat-add, body .modal.dc-edit, body .modal.cr-box, body .modal.user-box { width: 100%; }
}

/* ---- a phone, continued: the Payments / Orders rows (sb-prow2) fold the same way, and every cell carries the name of its column ---- */
@media (max-width: 760px) and (pointer: coarse) {
  body #page .sb-phead { display: none; }
  body #page .sb-prows, body #page .sb-prow2 { min-width: 0; }
  body #page .sb-prow2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; height: auto; min-height: 0; padding: 9px 12px; row-gap: 5px; column-gap: 10px; align-items: start; }
  body #page .sb-prow2 > .sb-pact, body #page .sb-prow2 > .sb-pask { grid-column: 1 / -1 !important; }
  body #page .sb-lr > [data-h]:not([data-h=""])::before, body #page .sb-prow2 > [data-h]:not([data-h=""])::before { content: attr(data-h); display: block; font-size: 10px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: #8791a8; margin-bottom: 1px; white-space: nowrap; }
  body #page .sb-lr > span, body #page .sb-prow2 > span { align-self: start; }
  body #page .sb-lr > .sb-pact, body #page .sb-prow2 > .sb-pact { padding-top: 2px; }
  body #page .sb-lr > .mono { font-size: 12.5px; }
  html[data-mode="light"] body #page .sb-lr > [data-h]::before, html[data-mode="light"] body #page .sb-prow2 > [data-h]::before { color: #5b667c; }
}

/* ---- the server window: the certificate box of "Marzban node" is always there (dimmed), so ticking the box does not resize the window; no entrance when the window only changes its content ---- */
body .srv-after .x-cert.off { opacity: .38; pointer-events: none; } body .srv-after .x-cert.hidden { display: grid; }
body .srv-after label.chk.x-cert.off { display: flex; }
body .overlay[style*="animation:none"], body .overlay[style*="animation:none"] .modal { animation: none !important; }

/* ---- a question box (SSH password, confirm, prompt) over a window: three blurred layers stacked (page > window > question) made the browser drop the list behind from the picture; while a question is open the layers below it stop blurring and the question itself is a plain dim layer ---- */
body #ask .overlay, body #ask .modal.ask-box { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body #ask .overlay { background: rgba(4,6,18,.66) !important; }
body #ask .modal.ask-box { background: #141b2e !important; }
body:has(#ask .overlay) #modal .overlay, body:has(#ask .overlay) #modal .modal { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-mode="light"] body #ask .modal.ask-box { background: #ffffff !important; } html[data-mode="light"] body #ask .overlay { background: rgba(60,70,100,.35) !important; }

/* the question box over a window: the window already dims the page (72 %), a second dim layer left the list at ~9 % - it looked gone. Over a window the question adds almost no dimming (the window under it is just kept visible). */
body:has(#modal .overlay) #ask .overlay { background: rgba(4,6,18,.18) !important; }
html[data-mode="light"] body:has(#modal .overlay) #ask .overlay { background: rgba(60,70,100,.12) !important; }

/* ---- windows without backdrop blur: blurring the page behind a window (and a window behind a question) made some browsers/GPUs drop the list behind it from the picture while a window or a question was open. The dim layer is enough; the window is solid. ---- */
body .overlay, body .overlay .modal, body #ask .overlay, body #ask .modal.ask-box { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body #modal .overlay { background: rgba(4,6,18,.62) !important; }
body #modal .modal:not(.ask-box) { background: #0f1626 !important; }
html[data-mode="light"] body #modal .overlay { background: rgba(60,70,100,.40) !important; }
html[data-mode="light"] body #modal .modal:not(.ask-box) { background: #f4f6fb !important; }

/* ---- the question box, redone: the password field has a lock, an eye (show / hide) and a generator; the same dark field in both modes; no browser autofill colour ---- */
body #ask .modal.ask-box { width: min(420px, calc(100vw - 32px)); padding: 20px 22px 16px; gap: 12px; border-radius: 20px; text-align: left; }
body #ask .ask-box .ask-ic { width: 40px; height: 40px; font-size: 18px; justify-self: start; }
body #ask .ask-box .ask-text { font-size: 14px; line-height: 1.5; }
body #ask .ask-field { position: relative; display: flex; align-items: center; height: 44px; border-radius: 12px; background: #0b1120; border: 1px solid rgba(255,255,255,.12); transition: border-color .18s, box-shadow .18s; }
body #ask .ask-field:focus-within { border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.22); }
body #ask .ask-field input.ask-in { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent !important; box-shadow: none; text-align: left; padding: 0 8px 0 12px; font-size: 15px; color: #f2f5fb; -webkit-text-fill-color: #f2f5fb; caret-color: #0a84ff; letter-spacing: .04em; }
body #ask .ask-field.pw input.ask-in { padding-left: 4px; } body #ask .ask-field input.ask-in:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #0b1120 inset; -webkit-text-fill-color: #f2f5fb; }
body #ask .ask-field.shown input.ask-in { letter-spacing: .02em; font-family: var(--mono); font-size: 14px; }
body #ask .ask-lk { display: grid; place-items: center; width: 38px; color: #8791a8; } body #ask .ask-lk svg { width: 16px; height: 16px; }
body #ask .ask-eye { width: 34px; height: 34px; min-width: 34px; padding: 0; margin-right: 2px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; box-shadow: none; color: #9aa4b8; }
body #ask .ask-eye:hover { background: rgba(255,255,255,.08); color: #f2f5fb; filter: none; }
body #ask .ask-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body #ask .ask-eye .eye-x { opacity: 1; } body #ask .ask-field.shown .ask-eye .eye-x { opacity: 0; } body #ask .ask-field:not(.shown) .ask-eye .eye-x { opacity: 0; }
body #ask .ask-field.shown .ask-eye .eye-x { opacity: 1; }
body #ask .ask-gen { height: 28px; min-width: 0; padding: 0 11px; margin-right: 8px; border-radius: 14px; font-size: 12px; font-weight: 600; color: #7ab8ff; background: rgba(10,132,255,.14); border: 1px solid rgba(10,132,255,.3); box-shadow: none; }
body #ask .ask-gen:hover { background: rgba(10,132,255,.24); filter: none; }
body #ask .ask-hint { font-size: 12px; color: #8791a8; margin-top: -4px; }
body #ask .ask-box .ask-act { justify-content: flex-end; margin-top: 4px; } body #ask .ask-box .ask-act button { height: 36px; border-radius: 18px; min-width: 96px; }
html[data-mode="light"] body #ask .ask-field { background: #fff; border-color: rgba(60,80,130,.22); }
html[data-mode="light"] body #ask .ask-field input.ask-in { color: #1c1f2a; -webkit-text-fill-color: #1c1f2a; } html[data-mode="light"] body #ask .ask-field input.ask-in:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: #1c1f2a; }
html[data-mode="light"] body #ask .ask-eye { color: #5b667c; } html[data-mode="light"] body #ask .ask-eye:hover { background: rgba(60,80,130,.08); color: #1c1f2a; }
html[data-mode="light"] body #ask .ask-lk { color: #5b667c; } html[data-mode="light"] body #ask .ask-hint { color: #5b667c; } html[data-mode="light"] body #ask .ask-gen { color: #0a62c9; }
body #ask .ask-lk svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the day theme: a switch that is On is green, Off is grey (the grey rule of the day theme was stronger than the green of .on) */
html[data-mode="light"] body #page .sb-tog.on, html[data-mode="light"] body #page .sb-tog.on:hover { background: #30d158; }
html[data-mode="light"] body #page .sb-tog:not(.on):hover { background: rgba(60,80,130,.38); }
html[data-mode="light"] body #page .sb-swc em.ok { color: #1f9d45; }

/* ---- Dashboard.dc.html: Expand = the activity alone, over the whole width; the footer of the activity says how many of how many and loads more ---- */
body #page .dash-cols.exp { grid-template-columns: minmax(0, 1fr); } body #page .dash-cols.exp > .card:not(.act) { display: none; }
body #page .dash-cols > .card.act.big { height: calc(100vh - 190px) !important; }
body #page .act-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 6px 2px; font-size: 12.5px; color: #8791a8; border-top: 1px solid rgba(255,255,255,.06); font-variant-numeric: tabular-nums; }
body #page .act-foot button { height: 28px; padding: 0 14px; font-size: 12.5px; font-weight: 500; }
html[data-mode="light"] body #page .act-foot { color: #5b667c; border-color: rgba(60,80,130,.14); }

/* ---- Tunnels -> DNS · IP switch, compact: the four steps in one row, small cards, the records in a box of their own with fixed columns ---- */
html body #page .dns-intro { padding: 8px 12px 10px; }
html body #page .dns-intro h3 { margin: 0 0 6px; }
html body #page .dns-intro .ap-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html body #page .dns-intro .ap-steps > div { grid-template-columns: 26px minmax(0, 1fr); column-gap: 9px; row-gap: 1px; padding: 8px 10px; border-radius: 12px; }
html body #page .dns-intro .ap-steps > div::before { width: 26px; height: 26px; border-radius: 8px; background-size: 15px; }
html body #page .dns-intro .ap-steps > div > b { font-size: 12.5px; }
html body #page .dns-intro .ap-steps > div > span { font-size: 11.5px; line-height: 1.35; }
@media (max-width: 1300px) { html body #page .dns-intro .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 700px) and (pointer: coarse) { html body #page .dns-intro .ap-steps { grid-template-columns: 1fr; } }
body #page .dns-recs { max-height: calc(100vh - 430px); min-height: 220px; overflow-y: auto; gap: 3px; padding-right: 4px; }
body #page .dns-rec { grid-template-columns: minmax(200px, 1fr) minmax(220px, 1.2fr) auto; gap: 10px; min-height: 36px; padding: 3px 10px; border-radius: 10px; }
body #page .dns-rec > b { font-size: 13px; } body #page .dns-ip .mono { font-size: 12px; } body #page .dns-ip .pill { height: 18px; font-size: 10.5px; padding: 0 7px; }
body #page .dns-act select { height: 28px; max-width: 230px; font-size: 12.5px; } body #page .dns-act button { height: 28px; padding: 0 12px; }
body #page .dns-recs + .empty, body #page .card:has(> .dns-recs) > h3 { gap: 10px; } body #page .card:has(> .dns-recs) > h3 .tb-search input { height: 28px; width: 190px; font-size: 12.5px; }
body #page .card:has(> .dns-recs) { padding: 8px 12px 10px; }
@media (max-width: 760px) and (pointer: coarse) { body #page .dns-rec { grid-template-columns: 1fr; } body #page .dns-recs { max-height: none; } }
body #page .dns-ip { white-space: nowrap; } body #page .dns-ip .pill { white-space: nowrap; } body #page .dns-rec > b { overflow: hidden; text-overflow: ellipsis; }

/* the records of one domain together, under a small header with the domain and how many */
body #page .dns-dom { display: flex; align-items: center; gap: 8px; padding: 10px 6px 3px; position: sticky; top: 0; z-index: 2; background: #101828; } body #page .dns-dom:first-child { padding-top: 2px; }
body #page .dns-dom b { font-size: 12.5px; font-weight: 700; color: #4da3ff; letter-spacing: .02em; } body #page .dns-dom .pill { height: 18px; font-size: 10.5px; }
html[data-mode="light"] body #page .dns-dom { background: #eef2f9; } html[data-mode="light"] body #page .dns-dom b { color: #0a62c9; }
body #page .dns-rec > b { padding-left: 8px; font-weight: 600; }

/* the domains as drawers: the header shows the domain, how many records and how many are on this panel; a click opens its records */
body #page .dns-recs { gap: 4px; }
body #page .dns-g { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); overflow: hidden; }
body #page button.dns-dom { position: static; width: 100%; height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; font-weight: 600; }
body #page button.dns-dom::after { display: none; } body #page button.dns-dom:hover { background: rgba(255,255,255,.05); filter: none; box-shadow: none; }
body #page .dns-chev { width: 8px; height: 8px; border-right: 2px solid #8791a8; border-bottom: 2px solid #8791a8; transform: rotate(-45deg); transition: transform .18s; flex: none; margin: 0 4px 0 2px; }
body #page .dns-g.open .dns-chev, body #page .dns-g.q-open .dns-chev { transform: rotate(45deg); }
body #page .dns-body { display: none; padding: 2px 8px 8px; flex-direction: column; gap: 3px; border-top: 1px solid rgba(255,255,255,.06); }
body #page .dns-g.open .dns-body, body #page .dns-g.q-open .dns-body { display: flex; }
html[data-mode="light"] body #page .dns-g { border-color: rgba(60,80,130,.16); background: rgba(255,255,255,.55); } html[data-mode="light"] body #page .dns-chev { border-color: #5b667c; }

/* ---- DNS · IP switch (the page redone like Servers / Tunnels): one box under the toolbar; the domains are drawers of a table ---- */
body #page .dns-tbl td { height: 38px; padding-top: 3px; padding-bottom: 3px; } body #page .dns-tbl td.name { font-weight: 600; padding-left: 26px; }
body #page .dns-tbl tr.dr-dom td { height: 40px; padding-left: 12px; background: linear-gradient(180deg, rgba(77,163,255,.10), rgba(77,163,255,.04)); border-top-color: rgba(77,163,255,.22); }
body #page .dns-tbl tr.dr-dom td > * { vertical-align: middle; } body #page .dns-tbl tr.dr-dom b { margin: 0 10px 0 4px; font-size: 13.5px; color: #4da3ff; }
body #page .dns-tbl tr.dr-dom .pill { height: 20px; font-size: 11px; margin-right: 6px; }
body #page .dr-g:not(.open):not(.q-open) tr.dr-rec { display: none; }
body #page .dr-chev { display: inline-block; width: 7px; height: 7px; border-right: 2px solid #8791a8; border-bottom: 2px solid #8791a8; transform: rotate(-45deg); transition: transform .18s; margin-right: 6px; vertical-align: middle; }
body #page .dr-g.open .dr-chev, body #page .dr-g.q-open .dr-chev { transform: rotate(45deg); }
body #page .dns-tbl select.sm { width: 100%; max-width: 100%; height: 28px; font-size: 12.5px; } body #page .dns-tbl td .mchip { white-space: nowrap; }
body #page .dns-tbl td.mono { font-size: 12.5px; }
body #page .dns-pane { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 240px); overflow-y: auto; padding-right: 4px; }
body #page .dns-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } @media (max-width: 1000px) { body #page .dns-two { grid-template-columns: 1fr; } }
body #page .dns-pane .card { margin: 0; padding: 10px 14px 12px; } body #page .dns-pane .card h3 { margin: 0 0 8px; }
body #page .dns-warn { border-color: rgba(255,196,77,.35); background: linear-gradient(180deg, rgba(255,196,77,.08), rgba(255,196,77,.02)); }
body #page .dns-pane .frm { display: grid; gap: 8px; } body #page .dns-pane .frm label { display: grid; gap: 4px; font-size: 12.5px; }
html[data-mode="light"] body #page .dns-tbl tr.dr-dom td { background: linear-gradient(180deg, rgba(10,98,201,.10), rgba(10,98,201,.04)); } html[data-mode="light"] body #page .dns-tbl tr.dr-dom b { color: #0a62c9; }
@media (max-width: 760px) and (pointer: coarse) { body #page .dns-tbl { min-width: 0; } }
body #page .dns-tbl tr.dr-dom td { text-align: left !important; justify-content: flex-start; } body #page .dns-tbl tbody + tbody tr.dr-dom td { border-top: 1px solid rgba(77,163,255,.22); }

/* ---- Tunnel Doctor: ONE bar (the switch, the delay, how far, Save, the AI buttons, the count) and under it the list and the history side by side; the six steps are a closed drawer ---- */
body #page .ap-bar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 8px 14px; margin: 0 0 10px; }
body #page .ap-bar label.chk { display: inline-flex; align-items: center; gap: 8px; height: 34px; font-size: 13.5px; color: var(--text); white-space: nowrap; }
body #page .ap-bar .ap-f { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mut); white-space: nowrap; }
body #page .ap-bar select { height: 34px; min-width: 250px; max-width: 330px; font-size: 13px; border-radius: 12px; } body #page .ap-bar input[type=number] { height: 34px; width: 74px; border-radius: 12px; font-size: 13px; }
body #page .ap-bar .ap-sec { display: inline-flex; align-items: center; gap: 6px; } body #page .ap-bar .ap-sec em { font-style: normal; font-size: 12px; }
body #page .ap-bar button { height: 34px; } body #page .ap-bar button.sm { height: 30px; } body #page .ap-bar .sp { flex: 1; }
body #page .ap-pair2 { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: stretch; margin-bottom: 8px; }
body #page .ap-pair2 > .card { margin: 0; display: flex; flex-direction: column; min-width: 0; }
body #page .ap-pair2 .ap-att, body #page .ap-pair2 .ap-hist { flex: 1; min-height: 240px; max-height: calc(100vh - 370px); overflow-y: auto; }
@media (max-width: 1100px) { body #page .ap-pair2 { grid-template-columns: 1fr; } body #page .ap-bar select { min-width: 0; width: 100%; max-width: none; } }
body #page details.ap-intro { padding: 8px 14px; margin: 0 0 10px; } body #page details.ap-intro > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: var(--mut); list-style-position: inside; }
body #page details.ap-intro[open] > summary { margin-bottom: 8px; }
body #page details.ap-intro .ap-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body #page details.ap-intro .ap-steps > div { grid-template-columns: 26px minmax(0, 1fr); padding: 8px 10px; column-gap: 9px; border-radius: 12px; }
body #page details.ap-intro .ap-steps > div::before { width: 26px; height: 26px; border-radius: 8px; background-size: 15px; }
body #page details.ap-intro .ap-steps > div > b { font-size: 12.5px; } body #page details.ap-intro .ap-steps > div > span { font-size: 11.5px; line-height: 1.35; }

/* ---- Settings frames: the boxes inside a frame (the update card, License, Tunnel cores, Service settings) are the same distance apart, 12 px - they touched each other before ---- */
html body #page .sf > .ss, html body #page .sf > .ss-hero { margin: 0 0 12px !important; } html body #page .sf > .ss:last-child { margin-bottom: 0 !important; }
html body#page-x, html body #page .sf > .ss-hero.ss-hero.ss-hero { margin-bottom: 12px !important; }

/* the domain chooser of the DNS toolbar */
body #page .dns-dsel { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mut); white-space: nowrap; } body #page .dns-dsel select { height: 32px; min-width: 210px; max-width: 280px; font-size: 13px; font-weight: 600; border-radius: 12px; }
body #page .dns-tbl td.name { padding-left: 12px; }

/* ---- Tunnel Doctor: CPU on the cores ---- */
body #page .ap-bal { padding: 8px 14px 10px; margin: 0 0 10px; } body #page .ap-bal h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; } body #page .ap-bal h3 .sp { flex: 1; }
body #page .ap-bal select { height: 28px; font-size: 12.5px; } body #page .ap-bal .chk { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
body #page .bal-row { display: flex; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
body #page .bal-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; width: 74px; padding: 2px; border-radius: 6px; background: rgba(255,255,255,.05); } body #page .bal-bars i { flex: 1; background: #30d158; border-radius: 2px; min-height: 2px; } body #page .bal-bars i.warn { background: #ffcf3a; } body #page .bal-bars i.bad { background: #ff5c7a; }
body #page .bal-row .ap-why { flex: 1; min-width: 200px; }
body #page .dns-tbl td.dr-act { white-space: nowrap; } body #page .dns-tbl td.dr-act button + button { margin-left: 4px; padding: 0 9px; }

/* ---- DNS table like ArvanCloud's own: Type · Name · Value · TTL · Cloud · edit / delete ---- */
body #page .dns-tbl td { height: 44px; } body #page .dns-tbl td.name { padding-left: 12px; font-weight: 600; }
body #page .dns-tbl .tybadge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #c7cfdf; }
body #page .tybadge.arvan { background: rgba(10,132,255,.16); color: #7ab8ff; } body #page .tybadge.cloudflare { background: rgba(255,153,0,.16); color: #ffb454; }
body #page .dns-tbl td.val { white-space: normal; line-height: 1.5; } body #page .dns-tbl td.val .mono { font-size: 12.5px; } body #page .mchip.port { background: rgba(20,184,166,.14); color: #5eead4; border-color: rgba(20,184,166,.3); }
body #page .dns-tbl tr.ro td { opacity: .72; }
body #page .dns-tbl td.cl { white-space: nowrap; } body #page .dns-tbl .cl-ic { display: inline-grid; place-items: center; width: 30px; height: 28px; margin-right: 10px; border-radius: 8px; background: rgba(255,255,255,.06); color: #8791a8; vertical-align: middle; } body #page .dns-tbl .cl-ic.on { background: rgba(20,184,166,.18); color: #2dd4bf; }
body #page .dns-tbl .sb-swc { vertical-align: middle; }
body #page .dns-tbl td.dr-act { text-align: right; white-space: nowrap; } body #page .dns-tbl td.dr-act .ic { width: 30px; height: 30px; padding: 0; border-radius: 8px; background: transparent; border-color: transparent; box-shadow: none; font-size: 15px; } body #page .dns-tbl td.dr-act .ic:hover { background: rgba(255,255,255,.08); } body #page .dns-tbl td.dr-act .ic.danger { color: #ff6b81; }
body #page .dns-tbl td.ty { padding-left: 12px; }
html[data-mode="light"] body #page .dns-tbl .tybadge { background: rgba(60,80,130,.1); color: #3a4358; } html[data-mode="light"] body #page .dns-tbl .cl-ic { background: rgba(60,80,130,.08); }
/* the public demo pill: small, top centre, never in the way of a click */
#demo-pill { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 9000; padding: 3px 12px; border-radius: 999px; font-size: 11.5px; line-height: 1.6; white-space: nowrap;
  background: color-mix(in srgb, var(--accent, #4f8cff) 16%, var(--card, #fff)); color: var(--text, #222); border: 1px solid color-mix(in srgb, var(--accent, #4f8cff) 40%, transparent); pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
#demo-pill b { font-weight: 700; }
@media (max-width: 640px) and (pointer: coarse) { #demo-pill { font-size: 10.5px; padding: 2px 9px; top: 3px; } }
/* panel outbounds in ONE compact box: the outbounds in two columns, the add row in one line, rules and backups folded (no page scroll) */
.ob-one { padding: 10px 12px; }
.ob-one > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; flex-wrap: nowrap; }
.ob-note { font-size: 11px; line-height: 1.3; font-weight: 400; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
.ob-it { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 8px 3px 11px; border-radius: 11px; box-shadow: var(--edge); font-size: 12.5px; min-width: 0; }
.ob-it > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ob-it .pill { font-size: 10.5px; padding: 0 7px; }
.ob-add { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ob-add input:not([type=checkbox]) { height: 30px; min-width: 0; }
.ob-add #pn-ob-uri { flex: 1 1 auto; } .ob-add #pn-ob-tag { flex: 0 0 150px; }
.ob-add .chk { white-space: nowrap; margin: 0; }
.ob-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; margin-top: 8px; align-items: start; }
.ob-more details { border-radius: 11px; box-shadow: var(--edge); padding: 0 10px; }
.ob-more summary { cursor: pointer; padding: 6px 0; font-size: 12.5px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.ob-more summary::-webkit-details-marker { display: none; }
.ob-more summary::before { content: "›"; display: inline-block; transition: transform .15s; opacity: .7; }
.ob-more details[open] summary::before { transform: rotate(90deg); }
.ob-more details[open] { max-height: 190px; overflow: auto; }
.ob-line { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.ob-line .ob-bo { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.ob-h { margin: 10px 0 6px; }
@media (max-width: 760px) and (pointer: coarse) { .ob-grid, .ob-more { grid-template-columns: 1fr; } .ob-note { display: none; } .ob-add { flex-wrap: wrap; } }
/* the add / edit window of a panel */
.modal.narrow { width: min(560px, 94vw); }
.pn-win { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.pn-win .chk, .pn-win .frm-act { grid-column: 1 / -1; }
@media (max-width: 560px) and (pointer: coarse) { .pn-win { grid-template-columns: 1fr; } }
/* the connection of a panel (Add / Edit): the two ways to give it a credential, what is kept now, the hint under the fields */
.pn-win .pn-wide { grid-column: 1 / -1; }
.pn-win[data-mode="key"] .pn-login, .pn-win[data-mode="login"] .pn-key { display: none; }
.pn-win .pn-mode { justify-self: start; }
.pn-win .pn-hint { display: block; font-size: 11.5px; line-height: 1.5; color: var(--mut); margin-top: -4px; } .pn-win .pn-hint b, .pn-win .pn-hint i { color: var(--text); font-style: normal; font-weight: 600; }
.pn-conn { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.pn-conn .pn-conn-t { flex: 1 1 240px; min-width: 0; display: grid; gap: 3px; font-size: 12.5px; } .pn-conn .pn-conn-t small { font-size: 11px; line-height: 1.45; color: var(--mut); } .pn-conn .pill { margin-left: 8px; }
.pn-conn > button { flex: none; }
.pn-top .pn-auth, .pn-bar .pn-auth { cursor: pointer; white-space: nowrap; }
html[data-mode="light"] .pn-conn { background: rgba(30,50,100,.04); }
html body #modal .pn-win .pn-mode { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
html body #modal .pn-win .pn-mode button { height: 28px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; color: var(--mut); font-size: 12.5px; font-weight: 600; box-shadow: none; }
html body #modal .pn-win .pn-mode button.on { background: rgba(10,132,255,.2); color: #8cc4ff; box-shadow: inset 0 0 0 1px rgba(10,132,255,.7); }
html[data-mode="light"] body #modal .pn-win .pn-mode { background: rgba(30,50,100,.05); border-color: rgba(30,50,100,.14); }
html[data-mode="light"] body #modal .pn-win .pn-mode button.on { background: #e3edff; color: #0b3a8c; box-shadow: inset 0 0 0 1px #6f9ee8; }
/* the analyst tab of the Tunnel Doctor: one box, its own tabs, the list scrolls inside */
.ana-card { padding: 10px 12px; }
.ana-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ana-head select { height: 30px; }
.ana-body { max-height: calc(100vh - 330px); min-height: 220px; overflow: auto; }
.ana-tbl { width: 100%; font-size: 12.5px; } .ana-tbl th { position: sticky; top: 0; z-index: 1; background: var(--card, rgba(20,24,36,.96)); }
.ana-tbl td { padding: 5px 8px; } .ana-tbl small { font-size: 11px; } .ana-note { max-width: 340px; font-size: 11.5px; }
.ana-sub { margin: 12px 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.ana-v { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.07); }
.ana-v.stable, .ana-v.light { color: #32d74b; } .ana-v.watch, .ana-v.ok { color: #ffd60a; } .ana-v.chronic, .ana-v.busy { color: #ff6b6b; }
.ana-v.idle, .ana-v.redundant { color: #64d2ff; background: rgba(100,210,255,.12); }
.ana-list { display: grid; gap: 4px; }
.ana-line { display: grid; grid-template-columns: minmax(110px, 170px) minmax(130px, 220px) 1fr; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 11px; box-shadow: var(--edge); font-size: 12.5px; }
.ana-line.high { border-left: 3px solid #ff6b6b; } .ana-line.watch { border-left: 3px solid #ffd60a; }
.bad-t { color: #ff6b6b; }
/* the history: the result of each problem in one word; the CPU card: a message that says "fine" is not red */
.hist-res { font-weight: 700; text-transform: none; letter-spacing: 0; }
.hist-res.ok { color: #32d74b; } .hist-res.bad { color: #ff6b6b; } .hist-res.run { color: #ffd60a; }
body #page .bal-row .ap-why.good { color: #32d74b; } body #page .bal-row .ap-why.calm { color: var(--mut, #8b93a7); }
.ana-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ana-why td { padding-top: 0 !important; border-top: 0 !important; } .ana-why small { color: var(--mut, #8b93a7); line-height: 1.5; }
.ana-act { white-space: nowrap; text-align: right; } .ana-act .sm { margin-left: 4px; }
.ok-t { color: #32d74b; }
/* API tokens (Settings -> Security) */
.tok-list { display: grid; gap: 4px; width: 100%; }
.tok-row { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 9px; box-shadow: var(--edge); font-size: 12.5px; flex-wrap: wrap; }
.tok-row code { font-family: var(--mono); font-size: 11.5px; opacity: .85; } .tok-row small { flex: 1; }
.tok-show { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 12px; border-radius: 11px; box-shadow: var(--edge); }
.tok-show code { font-family: var(--mono); font-size: 13px; word-break: break-all; flex: 1; }

/* ---- UI round 2026-10-13: messages inside the open window, text boxes brighter, one search box everywhere, the install colour, the add-server window */
:root { --text-in: #ffffff; }
html[data-mode="light"] { --text-in: #0b0f1e; }
input, select, textarea { color: var(--text-in); }
input::placeholder, textarea::placeholder { color: var(--mut); opacity: .85; }
textarea { line-height: 1.45; }

/* a window shows the outcome of what was done in it, at its top; the status bar at the back only keeps the history */
.modal-msg { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; line-height: 1.4; border: 1px solid var(--line); background: rgba(255,255,255,.06); animation: rise .2s var(--ease) both; }
.modal-msg.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.modal-msg.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.modal-msg time { margin-left: auto; font: 11px var(--mono); opacity: .6; }

/* the search box: the magnifier at 12 px, the text at 36 px, a soft ring when focused - the same everywhere */
.tb-search, .searchbar, .dsearch { position: relative; }
html body #page .tb-search::before, html body #page .searchbar::before, html body #page .dsearch::before { content: ""; position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none; opacity: .8; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4bad0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat; z-index: 1; }
html body #page .toolbar .tb-search::before { left: 24px; }          /* this one has a 12 px separator on its left */
html body #page input[type=search] { padding: 0 10px 0 36px; height: 32px; border-radius: 12px; font-size: 13px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.18); color: var(--text-in); }
html body #page .toolbar .tb-search input { width: 220px; height: 32px; padding-left: 36px; }
html body #page .pn-bars .searchbar input, html body #page .dsearch input { padding-left: 36px; }
html body #page input[type=search]:focus { border-color: rgba(124,131,255,.65); box-shadow: 0 0 0 3px rgba(124,131,255,.18); background: rgba(0,0,0,.26); }
html body #page .sb-psearch i { left: 12px; } html body #page .sb-psearch input { padding-left: 36px; border-radius: 12px; }
html[data-mode="light"] body #page input[type=search] { background: rgba(255,255,255,.9); border-color: rgba(17,21,39,.14); }

/* a server the panel is connecting to or installing on: its own colour, not the green / yellow / red of health */
.tbl tr.sev-blue td { background: rgba(124,131,255,.10); } .tbl tr.sev-blue:hover td { background: rgba(124,131,255,.18); }
.tbl tr.sev-blue td:first-child { border-left-color: var(--acc); }
tr.sev-blue .srv-ic { color: var(--acc); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--acc) 55%, transparent)); }
.tbl tr.sev-blue .st { color: var(--acc); }

/* the add-server window: the certificate box only when Marzban node is ticked; the "remember" switch on one line; where the server is */
.srv-after .x-cert.off { display: none; }
.srv-after .x-cert-save { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; cursor: pointer; } .srv-after .x-cert-save.off { display: none; }
.srv-where { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-height: 32px; font-size: 12.5px; }
.srv-where .pill { font-weight: 700; } .srv-where a { font-size: 11.5px; color: var(--mut); cursor: pointer; text-decoration: underline dotted; } .srv-where a:hover { color: var(--text); }
.gre-none { color: var(--mut); font-size: 11.5px; cursor: pointer; } .gre-none:hover { color: var(--text); }
.srv-where { flex-wrap: wrap; white-space: normal; line-height: 1.3; } .srv-where .mut { font-size: 11.5px; }
#ap-story.fix { height: 300px; }

.srv-form2 .kf > .srv-where { flex: 1 1 auto; width: auto !important; min-width: 0; }
#modal input[type=search] { padding: 0 10px 0 36px; height: 32px; border-radius: 12px; color: var(--text-in); }

/* the Tunnel Doctor's one box with two lists: In progress / Finished - plain words, big result */
.ap-tasks { padding: 8px 12px 12px; }
.ap-ttabs { display: flex; gap: 8px; margin: 0 0 10px; padding: 3px; width: max-content; border-radius: 14px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.ap-ttabs button { height: 32px; padding: 0 16px; border-radius: 11px; border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--mut); cursor: pointer; }
.ap-ttabs button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(124,131,255,.35); } .ap-ttabs .cnt { font-style: normal; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 11px; }
.ap-tasks .ap-att, .ap-tasks .ap-hist { display: grid; gap: 8px; align-content: start; max-height: calc(100vh - 360px); min-height: 200px; overflow: auto; padding-right: 2px; }
.tk { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-left-width: 4px; }
.tk.ok { border-left-color: var(--ok); } .tk.bad { border-left-color: var(--bad); } .tk.run { border-left-color: var(--warn); }
.tk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .tk-head b { font-size: 14px; } .tk-head time { margin-left: auto; font-size: 11.5px; color: var(--mut); }
.tk-res { font-weight: 800; font-size: 13px; } .tk.ok .tk-res { color: var(--ok); } .tk.bad .tk-res { color: var(--bad); } .tk.run .tk-res { color: var(--warn); }
.tk-line { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 2px 0; font-size: 13px; line-height: 1.45; } .tk-line em { font-style: normal; color: var(--mut); font-size: 12px; }
.tk-why { grid-template-columns: auto 1fr; align-items: start; margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 12.5px; }
.tk-or { padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; background: rgba(255,255,255,.1); }
.tk-or.o-outside { color: #64d2ff; } .tk-or.o-server { color: #ffd60a; } .tk-or.o-panel { color: #ff9fb3; }
.tk-more { display: inline-block; margin-top: 4px; font-size: 11.5px; cursor: pointer; }
.tk-empty { display: grid; gap: 6px; padding: 24px 18px; text-align: center; border-radius: 14px; border: 1px dashed var(--line); } .tk-empty b { font-size: 14px; } .tk-empty span { color: var(--mut); font-size: 13px; line-height: 1.5; }

/* the server window: ONE text style. Labels 13/500 grey; values 13/600 in the same font (no monospace, no 900 / 700 mix); the second part of a value
   (units, "4 cores", "2d ago", the provider's name) 12/500 grey; the tiles: caption 11 caps, number 18/700, note 12 grey - nothing is cut with "…" */
#modal .kv2, #modal .rrow { font-size: 13px; min-height: 31px; }
#modal .kv2 > span:first-child, #modal .rrow > span:first-child { font-size: 13px; font-weight: 500; color: var(--mut); }
#modal .kv2 > div, #modal .kv2 > div *, #modal .rrow em, #modal .rrow em b { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0; }
#modal .kv2 > div, #modal .kv2 > div b, #modal .kv2 > div strong, #modal .kv2 > div a, #modal .kv2 > div .mono, #modal .rrow em b { font-size: 13px; font-weight: 600; }
#modal .kv2 > div small, #modal .kv2 > div .mut, #modal .kv2 > div .pill, #modal .rrow em small { font-size: 12px; font-weight: 500; color: var(--mut); }
#modal .kv2 > div .gw-ok, #modal .kv2 > div .err, #modal .kv2 > div .warn { font-size: 13px; font-weight: 600; }
#modal .kv2 > div { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
#modal .rrow em { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-style: normal; min-width: 0; }
#modal .mtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr) minmax(0, 1.5fr); grid-auto-flow: row; grid-auto-columns: auto; gap: 8px; }
#modal .mtile { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "cap note" "val val"; align-items: baseline; column-gap: 8px; row-gap: 1px; min-width: 0; padding: 7px 12px 8px; border-radius: 12px; }
#modal .mtile small { grid-area: cap; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--acc-2); white-space: nowrap; margin: 0; }
#modal .mtile span { grid-area: note; justify-self: end; font-size: 12px; font-weight: 500; color: var(--mut); white-space: nowrap; margin: 0; overflow: visible; text-overflow: clip; }
#modal .mtile b { grid-area: val; font-size: 18px; font-weight: 700; line-height: 1.25; margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { #modal .mtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }#modal .mcard h6 { font-size: 11px; font-weight: 700; letter-spacing: .6px; } #modal .mcard .mval { font-size: 15px; font-weight: 700; }
#modal .mstat { font-size: 11.5px; } #modal .mstat b { font-weight: 600; }

/* a window never changes size by itself: no animated min-height (it grew from 0 every time a tab changed), and a message laid over the window's top, out of its flow */
html body #modal .modal { transition: none !important; }
.modal-body { position: relative; }
.modal-msg-wrap { position: sticky; top: 0; height: 0; z-index: 30; overflow: visible; }
.modal-msg-wrap .modal-msg { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 9px 12px 9px 14px; box-shadow: 0 10px 28px rgba(0,0,0,.45); background: #121a2e; }
.modal-msg-wrap .modal-msg.ok { background: color-mix(in srgb, var(--ok) 20%, #0f1530); } .modal-msg-wrap .modal-msg.bad { background: color-mix(in srgb, var(--bad) 20%, #0f1530); }
.modal-msg .mm-x { margin-left: 8px; flex: none; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: inherit; font-size: 16px; line-height: 20px; cursor: pointer; }
.modal-msg .mm-x:hover { background: rgba(255,255,255,.28); }
.modal-msg time { margin-left: auto; }
html[data-mode="light"] .modal-msg-wrap .modal-msg { background: #fff; }
#modal .mtile { column-gap: 6px; padding-left: 10px; padding-right: 10px; } #modal .mtile small { letter-spacing: .4px; }

/* the log page: a summary on top (where the problems are), the origin of every warning in its line */
.log-sum { margin-bottom: 10px; padding: 10px 14px 12px; }
.log-sum h3 { margin: 0 0 8px; font-size: 14px; }
.ls-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ls-chip { display: inline-flex; align-items: baseline; gap: 8px; height: 34px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-size: 12.5px; }
.ls-chip b { font-size: 16px; } .ls-chip span { color: var(--mut); } .ls-chip.on { border-color: rgba(124,131,255,.7); background: rgba(124,131,255,.16); }
.ls-chip.o-panel b { color: #ff9fb3; } .ls-chip.o-server b { color: #ffd60a; } .ls-chip.o-outside b { color: #64d2ff; }
.ls-list { display: grid; gap: 4px; }
.ls-row { display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 9px; font-size: 12.5px; box-shadow: var(--edge); }
.ls-n { font-weight: 800; text-align: right; } .ls-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ls-h { grid-column: 3 / -1; font-size: 11.5px; line-height: 1.35; }
.ll .tk-or { margin: 0 6px; align-self: center; font-size: 10px; }

.ll i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll em { display: block; }

/* the Doctor lists: small cards, one tight block each (a success is shown like a failure, only green) */
.ap-tasks .tk { padding: 5px 12px 6px; border-radius: 11px; }
.ap-tasks .tk-head { gap: 8px; margin-bottom: 1px; } .ap-tasks .tk-head b { font-size: 13px; } .ap-tasks .tk-res { font-size: 12px; } .ap-tasks .tk-head time { font-size: 11px; }
.ap-tasks .tk-head .tk-more { margin: 0 0 0 4px; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.ap-tasks .tk-line { grid-template-columns: 84px 1fr; gap: 8px; padding: 0; font-size: 12px; line-height: 1.35; } .ap-tasks .tk-line em { font-size: 11px; }
.ap-tasks .tk-why { grid-template-columns: auto 1fr; margin-top: 3px; padding: 3px 8px; font-size: 11.5px; } .ap-tasks .tk-or { padding: 0 7px; font-size: 10px; }
.ap-tasks .tk .fix { margin-top: 4px; }

/* the on / off of a server: green when the panel checks it, grey when it does not */
.sbar .abtn.onoff.on { color: var(--ok); border-color: rgba(48,209,88,.45); } .sbar .abtn.onoff.on i { color: var(--ok); }
.sbar .abtn.onoff.off { color: var(--mut); background: rgba(255,255,255,.04); } .sbar .abtn.onoff.off i { color: var(--mut); }

/* servers list: the four tabs with their counts, the POWER cell in every row, the turned-off row, the question under a row */
.srv-tabs button { display: inline-flex; align-items: center; gap: 8px; } .srv-tabs .cnt { font-style: normal; min-width: 18px; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--mut); }
.srv-tabs button.on .cnt { background: rgba(10,132,255,.25); color: #9cc8ff; }
.srv-tbl .td-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; } .srv-tbl .td-pow { display: inline-flex; align-items: center; gap: 6px; }
.srv-tbl .td-pow .sm { height: 28px; border-radius: 14px; padding: 0 14px; white-space: nowrap; } .srv-tbl .td-pow .pow-on { box-shadow: 0 3px 10px rgba(10,132,255,.3); }
.srv-tbl tr.srv-off { opacity: .8; } .srv-tbl td.off-note { color: var(--mut); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-tbl tr.ask > td { background: rgba(255,69,58,.07); } .srv-tbl tr.ask-row > td { padding: 6px 14px 8px 56px; font-size: 12.5px; color: #ffb3bd; background: rgba(255,69,58,.07); }
.statusbar .sb-undo { margin-left: 10px; height: 24px; padding: 0 12px; font-size: 12px; font-weight: 700; border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: inherit; }
.srv-tbl .gre-bad { cursor: pointer; margin-left: 6px; }

/* the small tags after a server name (GRE, NEW, disabled, duplicate ...): one size, one shape, soft and dim; the row lights them when the pointer is on it */
html body .srv-tbl td.name .pill { height: 18px; margin: 0 0 0 8px; padding: 0 8px; display: inline-flex; align-items: center; box-sizing: border-box; vertical-align: middle; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; line-height: 1; border-radius: 9px; text-transform: none; white-space: nowrap; box-shadow: none; opacity: .5; transition: opacity .15s ease; color: #aeb7ca; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
html body .srv-tbl td.name .pill.new { color: #ffd24a; background: rgba(255,210,74,.12); border-color: rgba(255,210,74,.3); }
html body .srv-tbl td.name .pill.err { color: #ff8a9b; background: rgba(255,69,58,.12); border-color: rgba(255,69,58,.32); }
html body .srv-tbl td.name .pill.warn { color: #ffd60a; background: rgba(255,214,10,.1); border-color: rgba(255,214,10,.28); }
html body .srv-tbl tr:hover td.name .pill, html body .srv-tbl tr.ask td.name .pill { opacity: 1; }

/* the enable / disable switch next to the server name in its window */
.srv-sw { margin-left: 8px; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px 0 6px; border-radius: 13px; cursor: pointer; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 11.5px; font-weight: 700; color: var(--mut); user-select: none; }
.srv-sw input { position: absolute; opacity: 0; pointer-events: none; }
.srv-sw i { position: relative; width: 28px; height: 16px; border-radius: 8px; background: rgba(255,255,255,.18); transition: background .18s; } .srv-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .18s; }
.srv-sw.on { color: #5ee07f; border-color: rgba(48,209,88,.38); } .srv-sw.on i { background: #30d158; } .srv-sw.on i::after { transform: translateX(12px); }
.srv-sw:focus-within { outline: 2px solid #5aa9ff; outline-offset: 2px; }
/* the note of a disabled row: a soft chip inside the card, breathing slowly like something asleep */
.srv-tbl td.off-note { padding-left: 14px; }
.off-chip { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 12px 0 8px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: #8f9ab0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 6px, rgba(255,255,255,.015) 6px 12px); border: 1px dashed rgba(255,255,255,.16); animation: offBreath 3.6s ease-in-out infinite; }
.off-chip i { font-style: normal; font-size: 13px; opacity: .85; }
@keyframes offBreath { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
tr:hover .off-chip { animation-play-state: paused; opacity: 1; color: #c7cfdf; }
@media (prefers-reduced-motion: reduce) { .off-chip { animation: none; } }

/* servers list: the bars are long and aligned (they fill the cell, the number has its own fixed column); nothing sits at the end of a card, only an arrow when the pointer is on it */
html body .srv-tbl td:has(.pbar) { padding-right: 18px; }
html body .srv-tbl .pbar { gap: 10px; } html body .srv-tbl .pbar .bar { flex: 1 1 auto; max-width: none; min-width: 40px; height: 6px; } html body .srv-tbl .pbar b { flex: none; width: 46px; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.srv-tbl td:last-child { position: relative; overflow: visible; }
.srv-tbl td:last-child::after { content: "›"; position: absolute; right: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 18px; line-height: 1; padding-bottom: 2px; color: #fff; background: rgba(10,132,255,.85); box-shadow: 0 3px 10px rgba(10,132,255,.35); opacity: 0; transform: translateX(-6px); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
.srv-tbl tr.clk:hover td:last-child::after { opacity: 1; transform: none; }
.srv-tbl tr.ask-row td:last-child::after { content: none; }

/* the Issues column: whatever is wrong with a server, as small tags (empty dash when it is fine) */
.srv-tbl td.iss-cell { display: table-cell; white-space: nowrap; overflow: hidden; text-overflow: clip; } .srv-tbl td.iss-cell > * { vertical-align: middle; }
html body .srv-tbl td.iss-cell .pill { height: 20px; margin: 0 6px 0 0; padding: 0 9px; display: inline-flex; align-items: center; box-sizing: border-box; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1; border-radius: 10px; text-transform: none; box-shadow: none; color: #aeb7ca; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
html body .srv-tbl td.iss-cell .pill.err { color: #ff8a9b; background: rgba(255,69,58,.13); border-color: rgba(255,69,58,.34); }
html body .srv-tbl td.iss-cell .pill.warn { color: #ffd60a; background: rgba(255,214,10,.1); border-color: rgba(255,214,10,.3); }
html body .srv-tbl td.iss-cell .pill.off { color: #8f9ab0; }
.srv-tbl .iss-ok { opacity: .4; } .srv-tbl td.iss-cell .busy-chip { margin: 0; }

/* ---- the server window, after the operator's design: a header in three groups, and three tidy boxes (System, Resources, Access & status) ---- */
#modal .modal-head { align-items: center; gap: 8px; }
#modal .mh-who { display: inline-flex; align-items: center; gap: 12px; min-width: 0; } #modal .mh-who .st { flex: none; }
#modal .mh-txt { display: grid; gap: 2px; min-width: 0; } #modal .mh-txt > b { font-size: 17px; font-weight: 700; line-height: 1.15; }
#modal .mh-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mut); white-space: nowrap; } #modal .mh-meta i { font-style: normal; opacity: .5; } #modal .mh-meta .mh-ip { font-size: 12px; }
#modal .modal-head > .sp { flex: 1; }
#modal .modal-head .sm, #modal .modal-head .srv-sw { height: 34px; box-sizing: border-box; display: inline-flex; align-items: center; margin: 0; }
#modal .modal-head .srv-sw { padding: 0 14px 0 8px; font-size: 12.5px; }
#modal .mh-sep { flex: none; width: 1px; height: 22px; margin: 0 6px; background: rgba(255,255,255,.14); }
#modal .modal-head > .min-btn { width: 34px; padding: 0; justify-content: center; }
#modal .sbox[data-b="system"], #modal .sbox[data-b="resources"], #modal .sbox[data-b="access"] { padding: 12px 16px 8px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); }
#modal .sbox[data-b] > h5 { margin: 0 0 4px; padding: 0 0 10px; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #5aa9ff; border-bottom: 1px solid rgba(255,255,255,.08); }
#modal .sbox[data-b] > h5 > i { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
#modal .sbox[data-b="system"] > h5 > i { background: #0a84ff; } #modal .sbox[data-b="resources"] > h5 > i { background: #7d6bff; } #modal .sbox[data-b="access"] > h5 > i { background: #30c36b; }
#modal .sbox[data-b] > h5 > i svg { width: 16px; height: 16px; }
#modal .sbox[data-b] .kv2, #modal .sbox[data-b] .rrow { min-height: 38px; padding: 4px 0; border: 0; border-top: 1px solid rgba(255,255,255,.06); }
#modal .sbox[data-b] > h5 + .kv2, #modal .sbox[data-b] > h5 + .rrow { border-top: 0; }
#modal .sbox[data-b] .kv2 > span:first-child, #modal .sbox[data-b] .rrow > span:first-child { width: 96px; flex: none; font-size: 13.5px; font-weight: 500; color: #98a3ba; }
#modal .sbox[data-b] .kv2 > div { gap: 8px; font-size: 13.5px; }
#modal .sbox[data-b] .rrow { grid-template-columns: 56px minmax(40px, 1fr) 118px; gap: 14px; }
#modal .sbox[data-b] .rrow > .rbar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; display: block; } #modal .sbox[data-b] .rrow > .rbar > u { display: block; height: 100%; border-radius: 4px; text-decoration: none; }
#modal .rrow.r-cpu u { background: #30d158; } #modal .rrow.r-ram u { background: #0a84ff; } #modal .rrow.r-swap u { background: #bf5af2; } #modal .rrow.r-disk u { background: #ffb02e; }
#modal .rrow u.warn { background: #ff9f0a !important; } #modal .rrow u.bad { background: #ff453a !important; }
#modal .sbox[data-b] .rrow > em { display: grid; justify-items: end; gap: 0; line-height: 1.2; } #modal .sbox[data-b] .rrow > em b { font-size: 13.5px; } #modal .sbox[data-b] .rrow > em small { min-width: 0; font-size: 11.5px; }
#modal .sbox[data-b] .rrow > em .trf + .trf { margin-left: 12px; } #modal .sbox[data-b] .rrow > em:has(.trf) { display: flex; justify-content: flex-end; }
#modal .kv2 a.cp { flex: none; display: inline-flex; color: var(--mut); cursor: pointer; } #modal .kv2 a.cp:hover { color: #fff; }
#modal .kv2 a.ext { display: inline-flex; align-items: center; gap: 8px; color: #e6eaf3; font-weight: 600; text-decoration: none; } #modal .kv2 a.ext:hover { color: #5aa9ff; } #modal .kv2 .ic-ext { flex: none; color: var(--mut); }
#modal .kv2 .dotc { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5b667c; } #modal .kv2 .dotc.ok { background: #30d158; box-shadow: 0 0 8px rgba(48,209,88,.55); } #modal .kv2 .dotc.bad { background: #ff453a; box-shadow: 0 0 8px rgba(255,69,58,.5); }
#modal .kv2 .prov-site { display: inline-flex; align-items: center; gap: 10px; text-align: left; } #modal .kv2 .prov-site .two { display: grid; gap: 1px; line-height: 1.25; } #modal .kv2 .prov-site .two small { font-size: 11.5px; }
/* the little round tick / cross badge of a check row (<i class="chk ok">): ONLY that - a label.chk (a tick with its words, a pill, a switch) in a row of a window was squeezed into this 18 px circle too and its switch was drawn over the next one (the owner, 2026-10-16: "fix the size of my switches so they do not overlap") */
#modal .kv2 i.chk { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; color: #08210f; } #modal .kv2 i.chk.ok { background: #30d158; } #modal .kv2 i.chk.bad { background: #ff453a; color: #fff; }

/* the server window has ONE size from the first moment: the whole height the screen allows, the body scrolls inside */
#modal .modal.srvwin .modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; } #modal .modal.srvwin .wsec { min-height: 357px; }      /* the charts area has its final height before the charts arrive: the window is the same size from the first moment, with no empty space under it */
/* the strip for the message, between the header and the buttons: always there (so nothing moves when a message comes), empty most of the time */
#modal .modal.srvwin > .hmsg { display: flex; position: static; transform: none; z-index: auto; width: auto; max-width: none; flex: none; margin: 8px 22px 0; height: 30px; background: transparent; border-color: transparent; box-shadow: none; }
#modal .modal.srvwin > .hmsg:not(:empty) { background: #1b2438; border-color: rgba(255,255,255,.16); } #modal .modal.srvwin > .hmsg.ok:not(:empty) { background: rgba(48,209,88,.12); border-color: rgba(48,209,88,.45); } #modal .modal.srvwin > .hmsg.bad:not(:empty) { background: rgba(255,69,58,.13); border-color: rgba(255,69,58,.5); } #modal .modal.srvwin > .hmsg.info:not(:empty) { background: rgba(10,132,255,.12); border-color: rgba(10,132,255,.45); }
#modal .modal.srvwin > .hmsg > span { flex: 1 1 auto; }
@media (max-width: 760px) and (pointer: coarse) { #modal .modal.srvwin { height: 100%; } }
/* the small message in the header of a window: one line between the name and the buttons; a click opens the whole text under the header */
#modal .modal { position: relative; }
.hmsg { display: none; position: absolute; z-index: 6; top: -15px; left: 50%; transform: translateX(-50%); width: max-content; align-items: center; gap: 8px; max-width: min(520px, 80%); min-width: 0; height: 28px; box-sizing: border-box; padding: 0 6px 0 14px; border-radius: 14px; font-size: 12px; font-weight: 600; background: #1b2438; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.hmsg:not(:empty) { display: inline-flex; } .hmsg > span { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; } .hmsg > time { flex: none; font-size: 10.5px; opacity: .6; font-weight: 500; }
.hmsg .mm-x { flex: none; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.12); color: inherit; line-height: 1; }
.hmsg.ok { color: #5ee07f; border-color: rgba(48,209,88,.5); } .hmsg.bad { color: #ff8a9b; border-color: rgba(255,69,58,.55); } .hmsg.info { color: #9cc8ff; border-color: rgba(10,132,255,.5); }
.hmsg.open > span { position: fixed; z-index: 30; top: 60px; left: 50%; transform: translateX(-50%); width: min(560px, 90vw); max-width: none; white-space: normal; padding: 10px 14px; border-radius: 12px; background: #1b2438; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 12px 34px rgba(0,0,0,.5); color: #f2f5fb; }

/* the three boxes of the server window, tighter: smaller rows, the detail of a bar on the same line */
#modal .sbox[data-b="system"], #modal .sbox[data-b="resources"], #modal .sbox[data-b="access"] { padding: 9px 14px 5px; border-radius: 14px; }
#modal .sbox[data-b] > h5 { padding: 0 0 7px; gap: 9px; font-size: 14px; } #modal .sbox[data-b] > h5 > i { width: 24px; height: 24px; border-radius: 7px; } #modal .sbox[data-b] > h5 > i svg { width: 14px; height: 14px; }
#modal .sbox[data-b] .kv2, #modal .sbox[data-b] .rrow { min-height: 28px; padding: 1px 0; }
#modal .sbox[data-b] .kv2 > span:first-child, #modal .sbox[data-b] .rrow > span:first-child { font-size: 13px; } #modal .sbox[data-b] .kv2 > div, #modal .sbox[data-b] .kv2 > div b, #modal .sbox[data-b] .kv2 > div a { font-size: 13px; }
#modal .sbox[data-b] .rrow { grid-template-columns: 48px minmax(40px, 1fr) 150px; gap: 10px; }
#modal .sbox[data-b] .rrow > em { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; } #modal .sbox[data-b] .rrow > em b { font-size: 13px; } #modal .sbox[data-b] .rrow > em small { font-size: 11px; min-width: 0; }
#modal .sbox[data-b] .rrow > .rbar { height: 7px; }
#modal .kv2 .prov-site .two { display: flex; align-items: baseline; gap: 7px; } #modal .kv2 .prov-site { gap: 8px; }

/* a disabled server in the list: slate and striped, readable, never red or yellow */
html body .srv-tbl tr.srv-off { opacity: 1; }
html body .srv-tbl tr.srv-off td { background: repeating-linear-gradient(135deg, rgba(130,145,180,.13) 0 8px, rgba(130,145,180,.06) 8px 16px) !important; border-color: rgba(140,155,190,.28) !important; }
html body .srv-tbl tr.srv-off td.name { color: #c3cce0; } html body .srv-tbl tr.srv-off td.name .srv-ic { color: #8493b3; opacity: 1; }
html body .srv-tbl tr.srv-off td.name.has-flag::before { filter: grayscale(1); opacity: .2 !important; }
.srv-tbl .st.dis { color: #b4bfd6; font-weight: 600; letter-spacing: .02em; }
/* the console of a server: questions to click */
.con2 { display: grid; gap: 12px; } .con-top { display: grid; gap: 3px; } .con-top b { font-size: 15px; } .con-top small { color: var(--mut); font-size: 12.5px; }
.con-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.con-tile { display: grid; grid-template-columns: 26px 1fr; grid-template-areas: "i b" "i s"; column-gap: 9px; row-gap: 1px; align-items: center; text-align: left; padding: 9px 11px; border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); color: inherit; font: inherit; }
.con-tile:hover { background: rgba(255,255,255,.09); border-color: rgba(10,132,255,.5); } .con-tile.on { background: rgba(10,132,255,.16); border-color: #0a84ff; }
.con-tile i { grid-area: i; font-style: normal; font-size: 20px; text-align: center; } .con-tile b { grid-area: b; font-size: 12.5px; font-weight: 700; } .con-tile small { grid-area: s; font-size: 11px; color: var(--mut); line-height: 1.3; }
.con-res { border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); overflow: hidden; } .con-res.bad { border-color: rgba(255,69,58,.45); }
.con-rh { display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.con-res pre { margin: 0; min-height: 230px; max-height: 330px; overflow: auto; padding: 10px 14px; font-size: 12px; line-height: 1.5; border: 0; background: transparent; }
.con-adv summary { cursor: pointer; font-size: 12.5px; color: var(--mut); padding: 4px 2px; } .con-adv[open] summary { color: var(--fg); }
@media (max-width: 1100px) { .con-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the Install view */
.ins2 { display: grid; gap: 12px; } .ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ins-card { display: grid; align-content: start; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.ins-h { display: flex; align-items: center; gap: 10px; } .ins-h i { font-style: normal; font-size: 22px; } .ins-h b { font-size: 14.5px; }
.ins-card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--mut); } .ins-card textarea { width: 100%; box-sizing: border-box; font: 11px/1.4 var(--mono); border-radius: 10px; }
.ins-b { display: flex; justify-content: flex-end; } .ins-b .sm { height: 32px; padding: 0 20px; border-radius: 16px; }
@media (max-width: 900px) { .ins-grid { grid-template-columns: 1fr; } }

/* the enable / disable switch: no frame, no focus ring, the height of the buttons beside it */
#modal .modal-head .srv-sw { border: 0; outline: 0; background: transparent; box-shadow: none; padding: 0 12px 0 2px; height: 34px; } .srv-sw:focus-within { outline: 0; } .srv-sw.on { border: 0; }
.srv-sw i { transition: background .25s ease; } .srv-sw i::after { transition: transform .25s cubic-bezier(.3, 1.2, .5, 1); } .srv-sw b { transition: color .25s ease; }
.srv-sw[data-busy] { opacity: .85; }

/* the log box: one fixed size, the list scrolls inside */
#modal .modal.logwin { height: min(640px, calc(100vh - 96px)); } #modal .modal.logwin .modal-body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#modal .lg-tabs { flex: none; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; } #modal .lg-tabs .sp { flex: 1; } #modal .lg-tabs button { display: inline-flex; align-items: center; gap: 7px; }
#modal .lg-tabs .cnt { font-style: normal; min-width: 18px; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--mut); }
#modal .lg-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 4px; }

/* the enable / disable switch at the size of the design: a 48 x 28 track with a 24 px knob */
#modal .modal-head .srv-sw { gap: 10px; padding: 0 12px 0 0; font-size: 13px; }
.srv-sw i { width: 48px; height: 28px; border-radius: 14px; background: #4b5468; }
.srv-sw i::after { top: 2px; left: 2px; width: 24px; height: 24px; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.srv-sw.on i { background: #30d158; } .srv-sw.on i::after { transform: translateX(20px); }

/* the arrow that shows at the end of a card under the pointer: soft, not a bright button */
.srv-tbl td:last-child::after { background: rgba(120,160,230,.16); color: rgba(200,218,255,.8); box-shadow: none; border: 1px solid rgba(140,175,240,.22); }
.srv-tbl tr.clk:hover td:last-child::after { opacity: .85; }

/* the console tiles: six questions in two tidy rows (they are plain boxes, not buttons, so no button style gets in the way) */
.con2 .con-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.con2 .con-tile { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "i b" "i s"; column-gap: 12px; row-gap: 2px; align-items: center; height: auto; min-height: 62px; padding: 10px 14px; border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); text-align: left; box-sizing: border-box; }
.con2 .con-tile i { grid-area: i; font-style: normal; font-size: 24px; text-align: center; line-height: 1; } .con2 .con-tile b { grid-area: b; font-size: 13.5px; font-weight: 700; line-height: 1.2; } .con2 .con-tile small { grid-area: s; font-size: 12px; color: var(--mut); line-height: 1.3; }
.con2 .con-tile:hover { background: rgba(255,255,255,.09); border-color: rgba(10,132,255,.5); } .con2 .con-tile.on { background: rgba(10,132,255,.16); border-color: #0a84ff; } .con2 .con-tile:focus-visible { outline: 2px solid #5aa9ff; outline-offset: 2px; }
.ins-card input { width: 100%; box-sizing: border-box; height: 34px; } .ins-card .ins-cert { width: 100%; box-sizing: border-box; font: 11px/1.4 var(--mono); border-radius: 10px; } .ins-b { gap: 8px; }

/* every view of the server window (details, console, install, edit) has the size of the details view */
#modal .modal.srvwin { min-height: min(776px, calc(100vh - 96px)); }

/* the Install view, redone: one block for the two panel nodes (a switch between Marzban and PasarGuard), then one row per tool with its buttons - no long texts */
.ins3 { display: grid; gap: 12px; padding-top: 4px; }
.ins-node { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.ins-seg { justify-self: start; } .ins-pane { display: grid; gap: 10px; } .ins-pane.hidden { display: none; }
.ins-pane textarea, .ins-pane input, .ins-pane .ins-cert { width: 100%; box-sizing: border-box; border-radius: 10px; } .ins-pane textarea, .ins-pane .ins-cert { font: 11.5px/1.4 var(--mono); } .ins-pane input { height: 36px; }
.ins-act { display: flex; align-items: center; gap: 8px; } .ins-act .sp { flex: 1; } .ins-act .sm, .ins-row .sm { height: 32px; padding: 0 18px; border-radius: 16px; }
.ins-rows { display: grid; gap: 8px; }
.ins-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.ins-row > i { font-style: normal; font-size: 20px; width: 26px; text-align: center; } .ins-row > b { font-size: 14px; } .ins-row .sp { flex: 1; } .ins-row .sm:disabled { opacity: .4; cursor: default; }

.ins-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ins-node .ins-h { margin-bottom: 2px; }
.ins-node textarea, .ins-node input, .ins-node .ins-cert { width: 100%; box-sizing: border-box; border-radius: 10px; } .ins-node textarea, .ins-node .ins-cert { font: 11.5px/1.4 var(--mono); } .ins-node input { height: 36px; }
@media (max-width: 900px) { .ins-two { grid-template-columns: 1fr; } }

/* switching Iran / Foreign: the rows come in softly, the page does not jump */
@keyframes rowSoft { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.srv-tbl.fx-in tbody tr { animation: rowSoft .22s ease both; } @media (prefers-reduced-motion: reduce) { .srv-tbl.fx-in tbody tr { animation: none; } }
/* the count in the tabs of the tunnel list: the same chip as in the servers list */
.tf-tabs button { display: inline-flex; align-items: center; gap: 8px; } .tf-tabs .cnt { font-style: normal; min-width: 18px; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--mut); } .tf-tabs button.on .cnt { background: rgba(10,132,255,.25); color: #9cc8ff; }

/* the bar above the servers list, rebuilt: two rows (the buttons and the numbers, then the tabs and the search) - nothing sticks out */
.srv-bar { display: grid; gap: 10px; align-items: stretch; }
.srv-bar .sb-r1, .srv-bar .sb-r2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.srv-bar .sb-r2 > .sp { flex: 1; } .srv-bar .sb-r2 > :last-child:not(.sp):not(.tabs) { flex: 0 1 320px; min-width: 180px; max-width: 100%; }
.ca-run { display: inline-flex; align-items: center; gap: 10px; } .ca-run .sm { display: inline-flex; align-items: center; gap: 8px; } .ca-stop { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #ff8a9b; text-decoration: underline; text-underline-offset: 3px; }

/* the bar above the servers list: ONE row (buttons, numbers, tabs, search); the search box takes what is left and shrinks, it never sticks out. Only a narrow window wraps it. */
html body #page .toolbar.srv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; overflow: visible; }
html body #page .srv-bar .sb-r1 { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; flex: 0 0 auto; }
html body #page .srv-bar .sb-r2 { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; flex: 1 1 360px; min-width: 0; justify-content: flex-end; }
html body #page .srv-bar .sb-r2 > .sp { display: none; }
html body #page .srv-bar .srv-tabs { flex: none; }
html body #page .srv-bar .tb-search { flex: 1 1 150px; min-width: 120px; max-width: 260px; margin: 0; padding-left: 0; border-left: 0; }
html body #page .srv-bar .tb-search input { width: 100%; min-width: 0; box-sizing: border-box; height: 38px; padding-left: 38px; }
html body #page .srv-bar .tb-search::before { left: 13px; }
html body #page .srv-bar .nd-stats { flex: none; }

/* the form for several servers: the textarea row stands on its own line, like a field of the one-server form */
.srv-form2 .kv2.kf-top { flex-direction: column; align-items: stretch; gap: 6px; } .srv-form2 .kv2.kf-top > span { width: auto; }
.srv-form2 .kf textarea { width: 100%; box-sizing: border-box; min-height: 150px; border-radius: 10px; font: 12.5px/1.5 var(--mono); resize: vertical; }

/* ---- the Install view, after the design: bigger buttons with icons, outlined icon boxes, a dot in the state chip ---- */
.ins3 { gap: 14px; } .ins-two { gap: 14px; }
.ins-node { gap: 14px; padding: 18px 20px; border-radius: 18px; } .ins-h { display: flex; align-items: center; gap: 14px; } .ins-h b { font-size: 16px; }
.ins-sq { width: 34px; height: 34px; border-radius: 9px; display: inline-block; } .ins-sq.mz { background: #2f6df0; } .ins-sq.pg { background: #8a52f0; }
.ins-field { display: flex; align-items: stretch; gap: 8px; } .ins-field textarea, .ins-field input { flex: 1 1 auto; min-width: 0; margin: 0; border-radius: 12px; }
.ins-field input { height: 46px; padding: 0 16px; } .ins-field textarea { min-height: 78px; padding: 10px 14px; }
.ins-mini { flex: none; width: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #c9d2e6; } .ins-mini:hover { background: rgba(255,255,255,.1); } .ins-field input + .ins-mini { height: 46px; }
.ins-act { display: flex; align-items: center; gap: 10px; } .ins-act .sp { flex: 1; }
.ins-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 13px; font-size: 14.5px; font-weight: 700; cursor: pointer; color: #e8edf8; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.ins-btn:hover:not(:disabled) { background: rgba(255,255,255,.12); } .ins-btn.pri { color: #fff; background: #1a7bff; border-color: #1a7bff; box-shadow: 0 6px 18px rgba(26,123,255,.28); } .ins-btn.pri:hover:not(:disabled) { background: #3b8cff; }
.ins-btn.danger { color: #ffb3bd; background: rgba(255,69,58,.22); border-color: rgba(255,69,58,.5); } .ins-btn.danger:hover:not(:disabled) { background: rgba(255,69,58,.32); } .ins-btn:disabled { opacity: .42; cursor: default; box-shadow: none; }
.ins-svg { flex: none; }
.ins-rows { gap: 12px; } .ins-row { gap: 16px; min-height: 76px; padding: 12px 20px; border-radius: 18px; } .ins-row > b { font-size: 16px; }
.ins-ico { flex: none; width: 52px; height: 52px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #dfe6f5; } .ins-ico .ins-svg { width: 24px; height: 24px; }
.ins-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 15px; font-size: 14px; font-weight: 600; } .ins-chip i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; }
.ins-chip.ok { color: #30d158; background: rgba(48,209,88,.12); border: 1px solid rgba(48,209,88,.35); } .ins-chip.off { color: #98a3ba; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); } .ins-chip.off i { display: none; }
.ins-node .ins-cert { margin: 0; }

/* the Tunnel Doctor, calmer: one slim bar (a switch, Settings folded away), ONE box with four tabs, a card says one thing and keeps the rest under "details" */
.ap-bar2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; } .ap-bar2 .ap-sw { height: 36px; padding: 0 12px 0 2px; font-size: 14px; color: var(--fg); }
.ap-bar2 .ap-sw.on b { color: #5ee07f; } .ap-bar2 .ap-sw:not(.on) b { color: var(--mut); }
.ap-bar2 .ap-set { display: none; align-items: center; gap: 12px; } .ap-bar2.open .ap-set { display: flex; } .ap-bar2 .ap-f { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mut); } .ap-bar2 .ap-sp { width: 84px; }
.ap-bar2 .sp { flex: 1; }
.ap-tasks .tk-one { padding: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: #c9d2e6; } .ap-tasks .tk.ok .tk-one { color: #b5e8c4; }
.ap-tasks .tk .fix { margin-top: 6px; } .ap-tasks .tk-head .tk-or { margin-left: 4px; }
.ap-tasks .tk-empty { padding: 28px 18px; } .ap-tasks .tk-empty b { font-size: 14px; color: var(--mut); }
.ap-tasks #ap-t-cpu > .card { margin: 0; border: 0; background: transparent; padding: 0; box-shadow: none; }

/* ================= ONE DESIGN FOR EVERY BOX (after the "Add a plan to the bot" window) =================
   the same surface, the same line, the same corner for a window, a card and a box; the same dark field with the label above it; the same two kinds of button.
   It is the last layer of this file, so it wins over the older looks of the separate pages. The light mode keeps its own colours. */
html:not([data-mode="light"]) { --u-modal: #0f1626; --u-card: #131b2d; --u-field: #0b1120; --u-line: rgba(255,255,255,.1); --u-line2: rgba(255,255,255,.07); --u-r: 18px; --u-blue: #0a84ff; }
html:not([data-mode="light"]) body #modal .modal { background: var(--u-modal); border: 1px solid rgba(255,255,255,.12); border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.55); backdrop-filter: none; -webkit-backdrop-filter: none; }
html:not([data-mode="light"]) body #modal .modal-head { background: transparent; border-bottom: 1px solid var(--u-line2); }
html:not([data-mode="light"]) body #page .card, html:not([data-mode="light"]) body #modal .card, html:not([data-mode="light"]) body .sbox, html:not([data-mode="light"]) body .ibox, html:not([data-mode="light"]) body .wsec .mcard { background: var(--u-card); border: 1px solid var(--u-line); border-radius: var(--u-r); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html:not([data-mode="light"]) body .card > h3, html:not([data-mode="light"]) body .sbox > h5 { border-color: var(--u-line2); }
/* the fields: dark, a soft line, a big corner; the label stays above in the muted colour */
html:not([data-mode="light"]) body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not(.ask-in):not([type="search"]), html:not([data-mode="light"]) body select, html:not([data-mode="light"]) body textarea { background: var(--u-field); border: 1px solid var(--u-line2); border-radius: 14px; color: #f2f5fb; }
html:not([data-mode="light"]) body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="search"]):not(.ins-field input), html:not([data-mode="light"]) body select { min-height: 38px; padding-left: 14px; padding-right: 14px; }
html:not([data-mode="light"]) body textarea { padding: 10px 14px; }
html:not([data-mode="light"]) body input:focus, html:not([data-mode="light"]) body select:focus, html:not([data-mode="light"]) body textarea:focus { outline: 0; border-color: var(--u-blue); box-shadow: 0 0 0 3px rgba(10,132,255,.2); }
html:not([data-mode="light"]) body label > span:first-child, html:not([data-mode="light"]) body .frm > label { color: #9aa4b8; }
/* the buttons of a window and of a card: a blue pill with a glow for the main thing, a dark pill for the rest, a red tint for a dangerous one */
html:not([data-mode="light"]) body #modal button.pri, html:not([data-mode="light"]) body .card button.pri, html:not([data-mode="light"]) body button.pri { background: var(--u-blue); border: 1px solid var(--u-blue); color: #fff; font-weight: 700; border-radius: 999px; box-shadow: 0 8px 22px rgba(10,132,255,.32); }
html:not([data-mode="light"]) body #modal button.pri:hover, html:not([data-mode="light"]) body button.pri:hover { filter: brightness(1.1); }
html:not([data-mode="light"]) body #modal button:not(.pri):not(.danger):not(.sm):not(.min-btn):not(.mm-x), html:not([data-mode="light"]) body .frm-act button:not(.pri):not(.danger) { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); color: #eef2fb; border-radius: 999px; font-weight: 600; }
html:not([data-mode="light"]) body button.danger { color: #ffb3bd; background: rgba(255,69,58,.16); border: 1px solid rgba(255,69,58,.45); border-radius: 999px; }

/* the log of the Create tunnel window: ONE box of a fixed size at the bottom of the window, always there (it says what it is for while empty); the build and the test write into it */
#modal .bld-log { position: sticky; bottom: 0; z-index: 3; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 40px; max-height: 40px; margin: 12px 0 0; padding: 6px 14px; overflow: hidden; cursor: pointer; border-radius: 16px; background: #0b1120; border: 1px solid rgba(255,255,255,.1); }
#modal .bld-log:empty::before { content: "Messages and the progress of the build and the test show here."; color: var(--mut); font-size: 13px; }
#modal .bld-log.hidden { display: flex; }
/* 1.69.45 - the log of the Create window is ONE row: the last step (cut with …) and a small spinner while it works; a click opens the whole log (it grows, scrolls inside 40 % of the screen) and a second click closes it */
#modal .bld-log .fx-line { display: none; }
#modal .bld-log .fx-line:not(.run):not(:has(~ .fx-line:not(.run))) { display: flex; flex: 1 1 auto; min-width: 0; padding: 0; }
#modal .bld-log .fx-line:not(.run):not(:has(~ .fx-line:not(.run))) span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#modal .bld-log .fx-line.run { display: flex; flex: none; padding: 0; font-size: 0; }
#modal .bld-log .fx-line.run:only-child { font-size: 13px; }
#modal .bld-log.open { display: block; max-height: 40vh; overflow: auto; }
#modal .bld-log.open .fx-line { display: flex; }
#modal .bld-log.open .fx-line.run { font-size: 12.5px; }
#modal .bld-log.open .fx-line span { white-space: pre-wrap; overflow: visible; text-overflow: clip; }
/* the end of a tunnel row (the owner, 2026-10-17): the soft "›" arrow is gone; the row ends with the "⋯" button of the server list (labKebab) - the same menu as in the tunnel window */
.tun-tbl td:last-child { position: relative; overflow: visible; padding-right: 10px; }

/* ================= THEME "Calm slate" (Settings → Look) =================
   the look of the tunnel window design: flat boxes, slate icon chips, ONE soft blue for bars, charts and the timeline, white numbers, flat buttons with a small corner, no glow.
   Only what is red or amber because it is a problem keeps its colour. */
html[data-theme="calm"] { --bg: #0b1020; --bg-2: #0f1628; --acc: #7aa7f0; --acc-2: #a9c4f5; --grad: linear-gradient(135deg, #4a78c9 0%, #7aa7f0 100%); --line: rgba(255,255,255,.09); --line-hi: rgba(122,167,240,.55); --r: 14px; --r-s: 10px; --shadow: 0 8px 22px rgba(0,0,0,.45); --glow: 122,167,240; }
html[data-theme="calm"] body::before { background: radial-gradient(38% 30% at 12% 6%, rgba(122,167,240,.08), transparent 70%); }
html[data-theme="calm"] body #modal .modal { background: #0d1322; border-color: rgba(255,255,255,.1); box-shadow: 0 26px 70px rgba(0,0,0,.55); border-radius: 22px; }
/* buttons: flat, a small corner, a thin line */
html[data-theme="calm"] body #modal button.sm, html[data-theme="calm"] body #modal .abtn, html[data-theme="calm"] body #modal .wtool, html[data-theme="calm"] body #modal .sbar button, html[data-theme="calm"] body #page .toolbar button:not(.cta):not(.pri), html[data-theme="calm"] body #page .toolbar .tbtn { border-radius: 10px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); box-shadow: none; color: #e6ebf7; font-weight: 600; }
html[data-theme="calm"] body #modal button.sm:hover:not(:disabled), html[data-theme="calm"] body #modal .abtn:hover:not(:disabled) { background: rgba(255,255,255,.085); }
html[data-theme="calm"] body #modal .abtn:disabled, html[data-theme="calm"] body #modal button.sm:disabled { opacity: .38; }
html[data-theme="calm"] body button.pri, html[data-theme="calm"] body #modal button.pri, html[data-theme="calm"] body .card button.pri { border-radius: 10px; background: #3d78e0; border-color: #3d78e0; box-shadow: none; color: #fff; }
html[data-theme="calm"] body button.danger, html[data-theme="calm"] body #modal button.danger { border-radius: 10px; color: #ffb3bd; background: rgba(255,69,58,.14); border: 1px solid rgba(255,69,58,.4); box-shadow: none; }
html[data-theme="calm"] body .cta { border-radius: 10px; background: #3d78e0; box-shadow: none; }
html[data-theme="calm"] body #modal .modal-head .sm { border-radius: 10px; }
/* the boxes and their headings: a slate chip for the icon, the title in the soft blue */
html[data-theme="calm"] body .sbox, html[data-theme="calm"] body #page .card, html[data-theme="calm"] body #modal .card, html[data-theme="calm"] body .mcard, html[data-theme="calm"] body .mtile { background: #111a2d; border-color: rgba(255,255,255,.08); border-radius: 14px; }
html[data-theme="calm"] body .sbox[data-b] > h5, html[data-theme="calm"] body .sbox > h5 { color: #8fb4f5; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
html[data-theme="calm"] body .sbox[data-b] > h5 > i, html[data-theme="calm"] body .sbox > h5 > i { background: #2c3855 !important; color: #b9c8e8 !important; border-radius: 8px; }
html[data-theme="calm"] body .kv2 > span:first-child, html[data-theme="calm"] body .rrow > span:first-child { color: #93a0ba; }
/* bars, charts, the timeline: one soft blue */
html[data-theme="calm"] body #modal .rrow.r-cpu u, html[data-theme="calm"] body #modal .rrow.r-ram u, html[data-theme="calm"] body #modal .rrow.r-swap u, html[data-theme="calm"] body #modal .rrow.r-disk u, html[data-theme="calm"] body .pbar .bar i { background: #7ab0ff; }
html[data-theme="calm"] body #modal .rrow u.warn, html[data-theme="calm"] body .pbar .bar i.warn { background: #f0a73a !important; } html[data-theme="calm"] body #modal .rrow u.bad, html[data-theme="calm"] body .pbar .bar i.bad { background: #ff5a52 !important; }
html[data-theme="calm"] body .mcard .ll, html[data-theme="calm"] body .mcard[data-c] .ll { stroke: #7aa7f0; } html[data-theme="calm"] body .mcard .la, html[data-theme="calm"] body .mcard[data-c] .la { fill: rgba(122,167,240,.12); }
html[data-theme="calm"] body .mcard h6, html[data-theme="calm"] body .mcard h6 .mc-ic { color: #8fb4f5; }
html[data-theme="calm"] body .mtile b, html[data-theme="calm"] body .mtile.ok b, html[data-theme="calm"] body .mtile.warn b { color: #f2f5fb; } html[data-theme="calm"] body .mtile.bad b { color: #ff8a82; }
html[data-theme="calm"] body .mtile small { color: #8fb4f5; }
html[data-theme="calm"] body .strip i.ok { background: #5b88d8; } html[data-theme="calm"] body .strip i { background: rgba(255,255,255,.16); } html[data-theme="calm"] body .strip i.bad { background: #ff5a52; }
/* the range tabs: the selected one is slate, not a bright button; the labels are quiet */
html[data-theme="calm"] body #modal .tabs { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); box-shadow: none; }
html[data-theme="calm"] body #modal .tabs button.on, html[data-theme="calm"] body .srv-tabs button.on, html[data-theme="calm"] body .tf-tabs button.on { background: #44547a; color: #fff; box-shadow: none; border-color: transparent; }
html[data-theme="calm"] body .wsec > h4 { color: #8fa0c0; }
/* a list of outages: the time and the length in the normal colour, the reason muted */
html[data-theme="calm"] body #modal .wsec .err, html[data-theme="calm"] body #modal .mcard .err { color: #98a3ba; }
html[data-theme="calm"] body #modal .switch i, html[data-theme="calm"] body .srv-sw.on i { background: #4f86e8; }

/* Tunnels → Best today */
.bt-wrap { display: grid; gap: 12px; } .bt-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; } .bt-bar .sp { flex: 1; } .bt-up { font-size: 12.5px; }
.bt-pods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bt-pod { display: grid; justify-items: start; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--u-card, #131b2d); border: 1px solid rgba(255,255,255,.1); } .bt-pod.p1 { border-color: rgba(240,190,70,.45); background: linear-gradient(160deg, rgba(240,190,70,.09), transparent 60%), var(--u-card, #131b2d); }
.bt-m { font-size: 26px; line-height: 1; } .bt-pod b { font-size: 16px; } .bt-pod small { color: var(--mut); font-size: 12.5px; }
.bt-s { font-size: 34px; font-weight: 800; line-height: 1.1; margin-top: 4px; } .bt-s em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--mut); margin-left: 6px; } .bt-s.ok { color: #5ee07f; } .bt-s.mid { color: #f0b94a; } .bt-s.low { color: #ff8a82; }
.bt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .bt-chips span { padding: 3px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.07); color: #d3dbee; }
.bt-list { padding: 8px 10px 10px; display: grid; gap: 4px; }
.bt-row { display: grid; grid-template-columns: 34px minmax(220px, 2.2fr) minmax(150px, 1.4fr) 0.8fr 0.8fr 0.8fr 0.7fr 0.7fr; gap: 12px; align-items: center; min-height: 46px; padding: 4px 12px; border-radius: 12px; font-size: 13px; background: rgba(255,255,255,.03); font-variant-numeric: tabular-nums; }
.bt-row.dim { opacity: .6; } .bt-head { min-height: 30px; background: transparent; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.bt-pl { font-weight: 800; color: var(--mut); text-align: center; } .bt-nm { display: flex; align-items: center; gap: 8px; min-width: 0; } .bt-nm b { font-size: 14px; } .bt-nm small { color: var(--mut); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bt-bf { font-size: 10.5px; }
.bt-sc { display: flex; align-items: center; gap: 10px; } .bt-bar { } .bt-sc .bt-bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; display: block; } .bt-sc .bt-bar u { display: block; height: 100%; border-radius: 4px; text-decoration: none; } .bt-sc .bt-bar u.ok { background: #30d158; } .bt-sc .bt-bar u.mid { background: #f0b94a; } .bt-sc .bt-bar u.low { background: #ff5a52; } .bt-sc b { width: 28px; text-align: right; }
@media (max-width: 1000px) { .bt-pods { grid-template-columns: 1fr; } }


/* ================= LESS COLOUR =================
   the emoji of buttons and tabs are drawn as plain text glyphs (one tone, no colour) where the system font has them; the tab icons that stay colour are greyed;
   the tabs of a page are the quiet kind: an underline under the chosen one, no coloured pill */
html body button, html body .pill, html body .tabs, html body h3, html body h4, html body h5, html body .ins-row, html body .cta, html body label { font-variant-emoji: text; }
.tab-ic { display: inline-block; filter: grayscale(1) brightness(1.35) contrast(.95); opacity: .85; margin-right: 2px; }
html body #subnav .tic { filter: grayscale(1) brightness(1.15); opacity: .85; }
html body #subnav .tabs.sub-tabs { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; box-shadow: none; padding: 0; gap: 4px; }
html body #subnav .tabs.sub-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; padding: 12px 18px 11px; margin-bottom: -1px; font-size: 14px; font-weight: 600; color: #98a3ba; transform: none; }
html body #subnav .tabs.sub-tabs button:hover { color: #d7deee; background: rgba(255,255,255,.03); }
html body #subnav .tabs.sub-tabs button.on { color: #f2f5fb; border-bottom-color: #4a8bf0; background: rgba(74,139,240,.07); box-shadow: none; }
html body #subnav .tabs.sub-tabs button.on::before, html body #subnav .tabs.sub-tabs button::after { content: none; }
/* the AI buttons and the gold ones: the plain button */
html body .ai-btn, html body button.ai-btn { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); color: #e6ebf7; box-shadow: none; }
html body .ai-btn::before, html body .ai-btn::after { content: none; }
/* the icon chip of every box title is slate, the bars are one soft blue, the charts one blue, the numbers white (a problem stays red or amber) */
html body .sbox[data-b] > h5 > i, html body .sbox > h5 > i { background: #2c3855; color: #b9c8e8; }
html body #modal .rrow.r-cpu u, html body #modal .rrow.r-ram u, html body #modal .rrow.r-swap u, html body #modal .rrow.r-disk u { background: #7ab0ff; }
html body .mcard .ll, html body .mcard[data-c] .ll { stroke: #7aa7f0; } html body .mcard .la, html body .mcard[data-c] .la { fill: rgba(122,167,240,.12); }
html body .mtile b, html body .mtile.ok b, html body .mtile.warn b { color: #f2f5fb; } html body .mtile.bad b { color: #ff8a82; }
html body .strip i.ok { background: #5b88d8; }

/* Best today inside the Doctor's box: the bar of its own, the bar of a score is a ".bt-track" (not the old toolbar class) */
.bt-top { display: flex; align-items: center; gap: 12px; } .bt-top .sp { flex: 1; }
.bt-sc .bt-track { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; display: block; font-style: normal; } .bt-sc .bt-track u { display: block; height: 100%; border-radius: 4px; text-decoration: none; } .bt-sc .bt-track u.ok { background: #5b9cf0; } .bt-sc .bt-track u.mid { background: #f0b94a; } .bt-sc .bt-track u.low { background: #ff5a52; }
.bt-s.ok { color: #f2f5fb; } .bt-list { padding: 0; }

/* the DNS records: the port has a column of its own, the name of the server beside an address is faint until the pointer is on the row */
.dns-tbl .dns-port { font-size: 13px; }
html body .dns-tbl .mchip.srvtag { opacity: .45; background: transparent; border-color: rgba(255,255,255,.14); color: #aab4c9; transition: opacity .15s ease; } html body .dns-tbl tr:hover .mchip.srvtag { opacity: .95; }

/* the DNS records: the port sits next to the address, bigger, in an oval of petrol blue */
.dns-tbl .dns-port { padding-left: 4px; }
.dns-tbl .port-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 28px; padding: 0 14px; border-radius: 999px; font-family: var(--mono); font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #c6edf5; background: #14505f; border: 1px solid #1f7186; box-shadow: inset 0 0 0 1px rgba(120,220,240,.08); }
/* the DNS bar is built like the bar of the servers and the tunnels: one row, buttons and numbers, then the domain, the tabs and the search */
html body #page .srv-bar .dns-dsel { flex: none; }

/* the header of the Analyst: ONE row (the tabs, the numbers, the range, the time of the ranking) in the style of the servers bar */
html body .ana-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } html body .ana-head .bt-up { margin-left: auto; font-size: 12.5px; white-space: nowrap; } html body .ana-head .sp { flex: 0 0 0; }
/* the podium and the list, compact: a podium card is ONE short block (medal, name and route, score, the three small numbers) */
.bt-wrap { gap: 8px; } .bt-pods { gap: 8px; }
html body .bt-pod { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "m b s" "m r c"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 8px 14px; border-radius: 12px; }
.bt-pod .bt-m { grid-area: m; font-size: 22px; } .bt-pod > b { grid-area: b; font-size: 14px; } .bt-pod > small { grid-area: r; font-size: 11.5px; } .bt-pod .bt-s { grid-area: s; font-size: 24px; margin: 0; text-align: right; } .bt-pod .bt-s em { font-size: 11px; margin-left: 3px; } .bt-pod .bt-chips { grid-area: c; margin: 0; justify-content: flex-end; gap: 4px; } .bt-pod .bt-chips span { padding: 1px 8px; font-size: 11px; }
.bt-row { min-height: 36px; padding: 2px 10px; border-radius: 9px; gap: 10px; font-size: 12.5px; } .bt-head { min-height: 24px; } .bt-list { gap: 2px; }

/* the tunnel window has the size of the full window from the first moment: the charts and the outages come into the room that is kept for them, nothing grows */
#modal .modal.tunwin { min-height: min(804px, calc(100vh - 96px)); }

/* the bars of the servers, the tunnels and the DNS: the same sizes and the same space between the parts; a bar that does not fit goes to a second row instead of squeezing */
html body #page .srv-bar .sb-r2 { flex: 1 1 auto; min-width: max-content; }
html body #page .srv-bar { gap: 10px 14px; }
html body #page .srv-bar .sb-r1, html body #page .srv-bar .sb-r2 { gap: 10px; }
html body #page .srv-bar .cta, html body #page .srv-bar .dns-dsel select, html body #page .srv-bar .tb-search input { height: 38px; box-sizing: border-box; }
html body #page .srv-bar .srv-tabs button { height: 38px; padding: 0 16px; }
html body #page .srv-bar .dns-dsel { display: inline-flex; align-items: center; gap: 8px; margin: 0; } html body #page .srv-bar .dns-dsel select { min-width: 170px; }
html body #page .srv-bar .nd-stats .tc { white-space: nowrap; }

#modal .bld-foot .ins-none, #modal .bld-foot button.hidden { display: none; } #modal .bld-foot button:disabled { opacity: .45; cursor: default; }

/* the port of a DNS record: smaller, and right next to the address */
.dns-tbl .dns-port { padding-left: 0; } .dns-tbl .port-pill { min-width: 46px; height: 22px; padding: 0 10px; font-size: 12.5px; font-weight: 700; }
/* the DNS bar: ONE row (the buttons and numbers, the domain, the tabs, the search); the numbers are small */
html body #page .srv-bar .nd-stats .tc { padding: 0 8px; font-size: 12px; }
html body #page .srv-bar .nd-stats .tc b { font-size: 12.5px; }
html body #page .srv-bar .sb-r1 { flex: 0 1 auto; } html body #page .srv-bar .sb-r2 { flex: 1 1 0; min-width: 0; }
html body #page .srv-bar .sb-r2 .srv-tabs { flex: none; }
@media (max-width: 1700px) { html body #page .srv-bar .nd-stats .tc:nth-child(n+4) { display: none; } }

/* the list of suggestions under a field (DNS names): the design of the boxes, not the browser's own popup */
.sugg-wrap { position: relative; display: block; } .sugg-wrap > input { width: 100%; box-sizing: border-box; }
.sugg { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 252px; overflow: auto; padding: 6px; border-radius: 14px; background: #0f1626; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.sugg.hidden { display: none; }
.sg-i { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px; } .sg-i b { font-weight: 600; color: #eef2fb; } .sg-i small { color: #8f9ab0; font-size: 12px; }
.sg-i:hover, .sg-i.on { background: rgba(10,132,255,.16); } .sg-none { padding: 10px 12px; color: var(--mut); font-size: 13px; }
#modal .dns-point .sugg-wrap { flex: 1; }

/* the check boxes of the forms are switches after the design: a dark track with a light knob, blue with a soft glow when on (the check boxes that SELECT rows of a list stay boxes) */
html body label.chk input[type="checkbox"]:not(#nk-x), html body .chkline input[type="checkbox"]:not(#nk-x), html body .bdns input[type="checkbox"]:not(#nk-x), html body .x-cert-save input[type="checkbox"]:not(#nk-x), html body .srv-opts input[type="checkbox"]:not(#nk-x), html body .srv-form2 input[type="checkbox"]:not(#nk-x) {
  -webkit-appearance: none !important; appearance: none !important; flex: none; position: relative; box-sizing: border-box; width: 40px !important; min-width: 40px !important; max-width: 40px !important; height: 24px !important; min-height: 24px !important; padding: 0 !important; margin: 0 12px 0 0 !important;
  border-radius: 12px !important; border: 1px solid rgba(255,255,255,.14) !important; background: linear-gradient(180deg, #2b3246, #353d53) !important; background-image: linear-gradient(180deg, #2b3246, #353d53) !important; cursor: pointer; vertical-align: middle; box-shadow: inset 0 1px 2px rgba(0,0,0,.35) !important; transition: background .2s ease, box-shadow .2s ease, border-color .2s ease; }
html body label.chk input[type="checkbox"]:not(#nk-x)::after, html body .chkline input[type="checkbox"]:not(#nk-x)::after, html body .bdns input[type="checkbox"]:not(#nk-x)::after, html body .x-cert-save input[type="checkbox"]:not(#nk-x)::after, html body .srv-opts input[type="checkbox"]:not(#nk-x)::after, html body .srv-form2 input[type="checkbox"]:not(#nk-x)::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #ffffff, #cdd5ea); box-shadow: 0 1px 3px rgba(0,0,0,.45); transition: transform .22s cubic-bezier(.3, 1.2, .5, 1); }
html body label.chk input[type="checkbox"]:not(#nk-x):checked, html body .chkline input[type="checkbox"]:not(#nk-x):checked, html body .bdns input[type="checkbox"]:not(#nk-x):checked, html body .x-cert-save input[type="checkbox"]:not(#nk-x):checked, html body .srv-opts input[type="checkbox"]:not(#nk-x):checked, html body .srv-form2 input[type="checkbox"]:not(#nk-x):checked { background: linear-gradient(180deg, #2f8dff, #0a74f4) !important; background-image: linear-gradient(180deg, #2f8dff, #0a74f4) !important; border-color: rgba(120,185,255,.7) !important; box-shadow: 0 0 10px rgba(10,132,255,.5), inset 0 1px 1px rgba(255,255,255,.25) !important; }
html body label.chk input[type="checkbox"]:not(#nk-x):checked::after, html body .chkline input[type="checkbox"]:not(#nk-x):checked::after, html body .bdns input[type="checkbox"]:not(#nk-x):checked::after, html body .x-cert-save input[type="checkbox"]:not(#nk-x):checked::after, html body .srv-opts input[type="checkbox"]:not(#nk-x):checked::after, html body .srv-form2 input[type="checkbox"]:not(#nk-x):checked::after { transform: translateX(16px); }
html body label.chk input[type="checkbox"]:not(#nk-x):disabled, html body .srv-form2 input[type="checkbox"]:not(#nk-x):disabled { opacity: .45; cursor: default; }
html body label.chk input[type="checkbox"]:not(#nk-x):focus-visible, html body .srv-form2 input[type="checkbox"]:not(#nk-x):focus-visible { outline: 2px solid #5aa9ff; outline-offset: 2px; }
html body label.chk, html body .chkline { display: inline-flex; align-items: center; gap: 4px; }

html body label.chk input[type="checkbox"], html body .chkline input[type="checkbox"], html body .bdns input[type="checkbox"] { margin-right: 12px !important; }

/* ================= SOFT SWITCHING =================
   a page, a tab, a box or a header that changes comes in over a fraction of a second (no jump, nothing flashes); everything is switched off for those who ask for less motion */
@keyframes softIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes softFade { from { opacity: 0; } to { opacity: 1; } }
#page.soft-in { animation: softIn .24s cubic-bezier(.22, .8, .3, 1) both; }
.ap-tbody:not(.hidden), .ana-body, .bt-wrap, .set-pane, .ins-node, .con-res, .cf-grid, .dr-pair, .tbl.fx-in { animation: softFade .22s ease both; }
html body .tabs button, html body #subnav button, html body .srv-tabs button, html body .tf-tabs button, html body button.sm, html body .abtn, html body .con-tile, html body .ins-btn, html body .pill, html body .cnt { transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease; }
html body .card, html body .sbox, html body .mcard, html body .mtile, html body .ins-row, html body .ins-node, html body .tk, html body .bt-pod, html body .bt-row { transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease; }
html body #subnav .tabs.sub-tabs button { transition: color .18s ease, background-color .18s ease, border-color .22s ease; }
html body #modal .modal-body > *, html body #modal .modal-head { animation: softFade .18s ease both; }
@media (prefers-reduced-motion: reduce) { #page.soft-in, .ap-tbody:not(.hidden), .ana-body, .bt-wrap, .set-pane, .ins-node, .con-res, .cf-grid, .dr-pair, #modal .modal-body > *, #modal .modal-head { animation: none; } html body * { transition-duration: .01ms !important; } }

/* the list of configs after the design: ONE flat table, a thin line between the rows (the tunnel list keeps its cards) */
html body #page .cf-list { border-collapse: collapse; border-spacing: 0; }
html body #page .cf-list thead th { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8791a8; }
html body #page .cf-list tbody tr, html body #page .lbox .cf-list tbody tr:hover { background: transparent; box-shadow: none; transform: none !important; border-radius: 0; }
html body #page .cf-list tbody tr td, html body #page .cf-list tbody tr.clk td { background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; border-radius: 0 !important; }
html body #page .cf-list tbody tr:hover td { background: rgba(255,255,255,.035) !important; }
html body #page .cf-list .td-type { display: inline-flex; padding: 2px 10px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }

/* ================= ONE TONE FOR THE ICONS =================
   the icons of the side menu, of the shop bot menu and of the settings tabs are one soft blue-grey (the chosen one is brighter); colour is kept only where it says a state */
html body #nav a .ic svg, html body #nav a .ic svg * { stroke: #8f9fc0 !important; color: #8f9fc0 !important; }
html body #nav a:hover .ic svg, html body #nav a:hover .ic svg *, html body #nav a.on .ic svg, html body #nav a.on .ic svg *, html body #nav a.active .ic svg, html body #nav a.active .ic svg * { stroke: #d6e3ff !important; color: #d6e3ff !important; }
html body .sb-nt .ti, html body .sb-nt .ti svg, html body .sb-nt .ti svg * { color: #93a3c4 !important; stroke: #93a3c4 !important; }
html body .sb-nt.on .ti, html body .sb-nt.on .ti svg, html body .sb-nt.on .ti svg *, html body .sb-nt:hover .ti { color: #dbe6ff !important; stroke: #dbe6ff !important; }
html body .set-tabs button i, html body .set-tabs button svg, html body .set-tabs button svg * { color: #93a3c4; stroke: #93a3c4; }
html body .sb-gbox .sb-nt { background: rgba(255,255,255,.035); }

/* the tabs of the Settings are the quiet kind too (an underline under the chosen one) */
html body #page .set-tabs:not(.tf-tabs):not(#nk-x) { background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 4px; }
html body #page .set-tabs:not(.tf-tabs):not(#nk-x) button { background: transparent !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; box-shadow: none !important; padding: 11px 16px 10px !important; margin-bottom: -1px; font-weight: 600; color: #98a3ba; }
html body #page .set-tabs:not(.tf-tabs):not(#nk-x) button:hover { color: #d7deee; background: rgba(255,255,255,.03); }
html body #page .set-tabs:not(.tf-tabs):not(#nk-x) button.on { color: #f2f5fb; border-bottom: 2px solid #4a8bf0 !important; background: rgba(74,139,240,.07) !important; }

/* the type tag of a tunnel: one soft tone per type (the only thing that tells the types apart in the one table) */
html body #page .tun-tbl .td-type.ty-backhaul { background: rgba(122,167,240,.2); border-color: rgba(122,167,240,.4); color: #cfe0ff; }
html body #page .tun-tbl .td-type.ty-backpack { background: rgba(80,200,190,.2); border-color: rgba(80,200,190,.4); color: #c5f1ec; }
html body #page .tun-tbl .td-type.ty-paqet { background: rgba(170,140,240,.22); border-color: rgba(170,140,240,.42); color: #e2d7ff; }
html body #page .tun-tbl .td-type.ty-chisel { background: rgba(230,180,90,.2); border-color: rgba(230,180,90,.4); color: #fbe6bd; }
html body #page .tun-tbl .td-type.ty-gre { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }

/* the tunnel window: the message strip sits under the header, like in the server window */
#modal .modal.tunwin > .hmsg { display: flex; position: static; transform: none; z-index: auto; width: auto; max-width: none; flex: none; margin: 8px 22px 0; height: 30px; background: transparent; border-color: transparent; box-shadow: none; }
#modal .modal.tunwin > .hmsg:not(:empty) { background: #1b2438; border-color: rgba(255,255,255,.16); } #modal .modal.tunwin > .hmsg.ok:not(:empty) { background: rgba(48,209,88,.12); border-color: rgba(48,209,88,.45); } #modal .modal.tunwin > .hmsg.bad:not(:empty) { background: rgba(255,69,58,.13); border-color: rgba(255,69,58,.5); } #modal .modal.tunwin > .hmsg.info:not(:empty) { background: rgba(10,132,255,.12); border-color: rgba(10,132,255,.45); }
#modal .modal.tunwin > .hmsg > span { flex: 1 1 auto; }
#modal .modal.tunwin .modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
/* the faint "new" tag of a tunnel built in the last 24 hours */
html body #page .tun-tbl .newtag { margin-left: 8px; padding: 0 6px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; color: rgba(150,205,255,.75); background: rgba(90,169,255,.1); border: 1px solid rgba(90,169,255,.22); }

/* server window header: the flag is a round badge with the status light on its corner; the address is a small chip, then the chips of the panels the server is a node of. The line never goes under the switch: it is cut with "…" */
#modal .mh-who { gap: 14px; }
#modal .mh-flag { position: relative; flex: none; width: 44px; height: 44px; }
#modal .mh-flag .flg { display: block; width: 44px !important; height: 44px !important; margin: 0 !important; vertical-align: 0; border-radius: 50% !important; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 0 4px rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.45) !important; }
#modal .mh-flag .flgt { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 12px; }
#modal .mh-flag .st { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #121a2b; box-sizing: border-box; }
#modal .mh-txt > b { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
#modal .mh-meta { gap: 8px; }
#modal .mh-meta .mh-ip { padding: 1px 9px; border-radius: 7px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #b9c4dc; font-size: 11.5px; }
#modal .mh-who { flex: 0 1 auto; } #modal .mh-txt { grid-template-columns: minmax(0, 1fr); } #modal .mh-txt > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#modal .mh-meta { min-width: 0; overflow: hidden; } #modal .mh-meta > .mh-ip { flex: none; }
#modal .mh-meta > .mchip { flex: 0 1 auto; min-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Access & status: smaller values so the SSH address, the provider and the country fit in one line each */
#modal .sbox[data-b="access"] .kv2 > div { display: block !important; text-align: right; max-width: 74%; font-size: 11.5px !important; }
#modal .sbox[data-b="access"] .kv2 { min-width: 0; } #modal .sbox[data-b="access"] .kv2 > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#modal .sbox[data-b="access"] .kv2 .mono { font-size: 11px !important; } #modal .sbox[data-b="access"] .cty { font-size: 11.5px; letter-spacing: .04em; }

/* every box like the boxes of the dashboard: a small quiet title, no colour tile; icons and emoji in one grey tone */
html body .sbox > h5, html body #modal .sbox[data-b] > h5 { font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .09em !important; text-transform: uppercase !important; color: #aeb7ca !important; gap: 8px !important; padding-bottom: 8px !important; }
html body .sbox > h5 > i, html body #modal .sbox[data-b] > h5 > i, html body #modal .sbox[data-b="system"] > h5 > i, html body #modal .sbox[data-b="resources"] > h5 > i, html body #modal .sbox[data-b="access"] > h5 > i { width: auto !important; height: auto !important; background: transparent !important; box-shadow: none !important; color: #8d99b3 !important; font-style: normal; filter: grayscale(1) brightness(1.1); opacity: .85; }
html body #modal .sbox[data-b] > h5 > i svg { width: 14px !important; height: 14px !important; }
html body .con-tile i, html body .abtn .bi, html body .wtools i, html body .tool i { filter: grayscale(1) brightness(1.15); opacity: .85; }
html body .con-tile.on { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); } html body .con-tile:hover { border-color: rgba(255,255,255,.22); }

/* Resources box: the percent and the detail of CPU, RAM, Swap and Disk each sit in their own column, so the numbers stand exactly above each other */
html body #modal .sbox[data-b="resources"] .rrow { grid-template-columns: 52px minmax(30px, 1fr) 168px; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em { display: grid !important; grid-template-columns: 50px 110px; column-gap: 8px; justify-content: end; align-items: baseline; justify-items: start; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > b { text-align: right; justify-self: end; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > small { text-align: left; white-space: nowrap; }

/* the boxes of the server and tunnel windows after the reference: a title with ONE soft-blue tile, long bars, the percent and the detail in two columns with a thin line between, traffic with a green down and a pink up arrow */
html body #modal .sbox[data-b] > h5 { font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: #cfdcf5 !important; gap: 12px !important; padding-bottom: 12px !important; }
html body #modal .sbox[data-b] > h5 > i, html body #modal .sbox[data-b="system"] > h5 > i, html body #modal .sbox[data-b="resources"] > h5 > i, html body #modal .sbox[data-b="access"] > h5 > i { width: 28px !important; height: 28px !important; border-radius: 8px !important; display: inline-flex !important; align-items: center; justify-content: center; background: #a9c3f2 !important; color: #17233d !important; filter: none; opacity: 1; }
html body #modal .sbox[data-b] > h5 > i svg { width: 16px !important; height: 16px !important; }
html body #modal .sbox[data-b="resources"] .rrow { grid-template-columns: 56px minmax(60px, 1fr) 190px; gap: 14px; min-height: 40px; }
html body #modal .sbox[data-b="resources"] .rrow > .rbar { height: 10px; border-radius: 999px; } html body #modal .sbox[data-b="resources"] .rrow > .rbar > u { border-radius: 999px; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em { grid-template-columns: 62px 1fr; column-gap: 0; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > b { font-size: 16px; font-weight: 700; color: #fff; padding-right: 12px; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > small { align-self: stretch; display: flex; align-items: center; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); font-size: 12px; }
html body #modal .sbox[data-b="resources"] .rrow > em:has(.trf) { gap: 0; } html body #modal .sbox[data-b="resources"] .rrow > em .trf { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #fff; }
html body #modal .sbox[data-b="resources"] .rrow > em .trf + .trf { margin-left: 0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14); } html body #modal .sbox[data-b="resources"] .rrow > em .trf:first-child { padding-right: 14px; }
html body #modal .sbox[data-b="resources"] .ta { font-style: normal; font-size: 16px; font-weight: 700; } html body #modal .sbox[data-b="resources"] .ta.d { color: #4fd98a; } html body #modal .sbox[data-b="resources"] .ta.u { color: #ff7a8c; }

/* the three boxes of the server window, tidy: every row has the same height in all three boxes (the rows stand side by side), nothing spills out of a box, the bars take the room that is left */
html body #modal .sbox[data-b="system"] .kv2, html body #modal .sbox[data-b="access"] .kv2, html body #modal .sbox[data-b="resources"] .rrow { height: 38px !important; min-height: 38px !important; max-height: 38px; padding: 0 !important; box-sizing: border-box; font-size: 13px; }
html body #modal .sbox[data-b="system"] .kv2 > span:first-child, html body #modal .sbox[data-b="access"] .kv2 > span:first-child, html body #modal .sbox[data-b="resources"] .rrow > span:first-child { width: 88px; flex: none; font-size: 13px; color: #98a3ba; }
html body #modal .sbox[data-b="resources"] .rrow { grid-template-columns: 40px minmax(36px, 1fr) 150px; gap: 10px; }
html body #modal .sbox[data-b="resources"] .rrow > span:first-child { width: auto; }
html body #modal .sbox[data-b="resources"] .rrow > .rbar { height: 8px; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em { grid-template-columns: 46px 104px; justify-content: end; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > b { font-size: 14.5px; padding-right: 8px; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > small { padding-left: 10px; font-size: 11px; height: 20px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html body #modal .sbox[data-b="resources"] .rrow:not([class*=" r-"]) > i { display: none; }
html body #modal .sbox[data-b="resources"] .rrow:not([class*=" r-"]) { grid-template-columns: 100px 1fr; } html body #modal .sbox[data-b="resources"] .rrow > span:first-child { white-space: nowrap; }
html body #modal .sbox[data-b="resources"] .rrow:not([class*=" r-"]) > em { justify-self: end; min-width: 0; }
html body #modal .sbox[data-b="resources"] .rrow > em .trf { font-size: 13.5px; } html body #modal .sbox[data-b="resources"] .ta { font-size: 14px; }
html body #modal .sbox[data-b="resources"] .rrow > em:has(.trf) > b, html body #modal .sbox[data-b="resources"] .rrow:not([class*=" r-"]) > em > b { display: inline-flex; align-items: center; font-size: 13.5px; }

/* tighter: the three boxes of the server window, and the range tabs + the five number cards in ONE row */
html body #modal .sbox[data-b="system"], html body #modal .sbox[data-b="resources"], html body #modal .sbox[data-b="access"] { padding: 9px 14px 4px !important; }
html body #modal .sbox[data-b] > h5 { font-size: 14px !important; padding-bottom: 8px !important; gap: 10px !important; }
html body #modal .sbox[data-b] > h5 > i, html body #modal .sbox[data-b="system"] > h5 > i, html body #modal .sbox[data-b="resources"] > h5 > i, html body #modal .sbox[data-b="access"] > h5 > i { width: 24px !important; height: 24px !important; border-radius: 7px !important; }
html body #modal .sbox[data-b] > h5 > i svg { width: 14px !important; height: 14px !important; }
html body #modal .sbox[data-b="system"] .kv2, html body #modal .sbox[data-b="access"] .kv2, html body #modal .sbox[data-b="resources"] .rrow { height: 31px !important; min-height: 31px !important; max-height: 31px; font-size: 12.5px; }
html body #modal .sbox[data-b="system"] .kv2 > span:first-child, html body #modal .sbox[data-b="access"] .kv2 > span:first-child, html body #modal .sbox[data-b="resources"] .rrow > span:first-child { font-size: 12.5px; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > b { font-size: 13.5px; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > small { font-size: 10.5px; }
html body #modal .sbox[data-b="resources"] .rrow > em .trf { font-size: 12.5px; } html body #modal .sbox[data-b="resources"] .ta { font-size: 13px; }
html body #modal .sbox[data-b="resources"] .rrow > em:has(.trf) > b, html body #modal .sbox[data-b="resources"] .rrow:not([class*=" r-"]) > em > b { font-size: 12.5px; }
html body #modal .srvwin .mon { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
html body #modal .srvwin .mon > .mhead { grid-column: 1; grid-row: 1; margin: 0; } html body #modal .srvwin .mon > .mhead > small { display: none; }
html body #modal .srvwin .mon > .mtiles { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; }
html body #modal .srvwin .mon > .mgrid { grid-column: 1 / -1; grid-row: 2; }
html body #modal .srvwin .mtiles > * { padding: 5px 10px !important; min-width: 0; border-radius: 12px; } html body #modal .srvwin .mtiles > * b, html body #modal .srvwin .mtiles > * strong { font-size: 15px; }
html body #modal .modal.srvwin .wsec { min-height: 300px; }

/* the five number cards in one row: they must fit */
html body #modal .srvwin .mtile { column-gap: 4px; padding: 5px 8px !important; } html body #modal .srvwin .mtile small { font-size: 10px; letter-spacing: .2px; } html body #modal .srvwin .mtile span { font-size: 10.5px; } html body #modal .srvwin .mtile b { font-size: 15px; }
/* the Install view, quiet like the rest: neutral tiles, flat buttons, no glow, no gloss, no colour but one soft blue on the main button */
html body .ins-sq { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.1); box-shadow: none !important; }
html body .ins-sq.mz::before { content: "M"; } html body .ins-sq.pg::before { content: "P"; } html body .ins-sq::before { font-size: 12px; font-weight: 700; color: #9fb0cf; }
html body .ins-h { gap: 10px; } html body .ins-h > b, html body .ins-row > b { font-size: 14px; font-weight: 600; color: #cfdcf5; }
html body .ins-node { display: flex; flex-direction: column; } html body .ins-node .ins-act { margin-top: auto; }
html body .ins-btn { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; gap: 8px; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #d5deef !important; box-shadow: none !important; text-shadow: none !important; }
html body .ins-btn::before, html body .ins-btn::after { display: none !important; }
html body .ins-btn:hover:not(:disabled) { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.2) !important; }
html body .ins-btn.pri { background: rgba(122,176,255,.14) !important; border-color: rgba(122,176,255,.38) !important; color: #d6e5ff !important; }
html body .ins-btn.pri:hover:not(:disabled) { background: rgba(122,176,255,.22) !important; }
html body .ins-btn.danger { color: #e6b0b0 !important; border-color: rgba(255,130,130,.26) !important; background: rgba(255,255,255,.05) !important; }
html body .ins-btn:disabled { opacity: .4; }
html body .ins-mini { box-shadow: none !important; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important; }
html body .ins-chip.ok, html body .ins-chip.off { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #b9c6dc !important; box-shadow: none !important; font-weight: 600; }
html body .ins-chip.ok i { background: #4fd98a; box-shadow: none; }
html body .ins-row, html body .ins-node { box-shadow: none !important; }

/* flags in grey, in colour only under the pointer (a row, a card, the window header) */
html body .srv-tbl td.name.has-flag::before { filter: grayscale(1) !important; opacity: .3 !important; transition: opacity .3s, filter .3s; }
html body .srv-tbl tr:hover td.name.has-flag::before { filter: none !important; opacity: .72 !important; }
html body .srv-tbl tr.srv-off td.name.has-flag::before { filter: grayscale(1) !important; opacity: .2 !important; }
html body .flg { filter: grayscale(1); transition: filter .25s ease; }
html body tr:hover .flg, html body .mh-who:hover .flg, html body .sbox:hover .flg, html body [class*="card"]:hover .flg, html body .ip-row:hover .flg, html body li:hover .flg, html body .kv2:hover .flg { filter: none; }
/* the on / off switch: blue like every other switch */
html body .srv-sw.on i { background: #4c8dff !important; } html body .srv-sw.on, html body .srv-sw.on b { color: #9cc4ff !important; } html body .srv-sw.on { border-color: rgba(76,141,255,.4); }
/* Access & status: every value is one small size, one line, and a long one ends with ... instead of being cut */
html body #modal .sbox[data-b="access"] .kv2 > div { display: flex !important; align-items: center; justify-content: flex-end; gap: 6px; max-width: 80%; min-width: 0; overflow: hidden; font-size: 11.5px !important; }
html body #modal .sbox[data-b="access"] .kv2 > div * { font-size: 11.5px !important; }
html body #modal .sbox[data-b="access"] .kv2 > div > b, html body #modal .sbox[data-b="access"] .kv2 > div > span, html body #modal .sbox[data-b="access"] .kv2 > div > small, html body #modal .sbox[data-b="access"] .kv2 > div > a.ext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #modal .sbox[data-b="access"] .kv2 > div > a.ext { display: block; flex: 0 1 auto; } html body #modal .sbox[data-b="access"] .kv2 .prov-site { gap: 6px; min-width: 0; } html body #modal .sbox[data-b="access"] .kv2 .prov-site .two { min-width: 0; }
html body #modal .sbox[data-b="access"] .kv2 .ic-ext { width: 12px; height: 12px; flex: none; } html body #modal .sbox[data-b="access"] .kv2 i.chk { width: 15px; height: 15px; flex: none; font-size: 9px !important; }
html body #modal .sbox[data-b="access"] .kv2 > div > .cp, html body #modal .sbox[data-b="access"] .kv2 > div > a.cp { flex: none; }
html body #modal .sbox[data-b="access"] .kv2 .prov-site { max-width: 100%; overflow: hidden; } html body #modal .sbox[data-b="access"] .kv2 .prov-site .two { display: flex; gap: 6px; align-items: baseline; overflow: hidden; } html body #modal .sbox[data-b="access"] .kv2 .prov-site .two > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* smaller type for the numbers of a server, so it does not look crowded */
html body #modal .sbox[data-b] > h5 { font-size: 13.5px !important; }
html body #modal .sbox[data-b="system"] .kv2, html body #modal .sbox[data-b="access"] .kv2, html body #modal .sbox[data-b="resources"] .rrow { height: 29px !important; min-height: 29px !important; max-height: 29px; font-size: 12px; }
html body #modal .sbox[data-b="system"] .kv2 > span:first-child, html body #modal .sbox[data-b="access"] .kv2 > span:first-child, html body #modal .sbox[data-b="resources"] .rrow > span:first-child { font-size: 12px; }
html body #modal .sbox[data-b="system"] .kv2 > div, html body #modal .sbox[data-b="system"] .kv2 > div * { font-size: 11.5px !important; font-weight: 600; }
html body #modal .sbox[data-b="access"] .kv2 > div, html body #modal .sbox[data-b="access"] .kv2 > div * { font-weight: 600; }
html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > b { font-size: 12.5px; } html body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > small { font-size: 10px; }
html body #modal .sbox[data-b="resources"] .rrow > em .trf, html body #modal .sbox[data-b="resources"] .rrow > em:has(.trf) > b, html body #modal .sbox[data-b="resources"] .rrow:not([class*=" r-"]) > em > b { font-size: 11.5px; } html body #modal .sbox[data-b="resources"] .ta { font-size: 12px; }
html body #modal .srvwin .mtile small { font-size: 9.5px; } html body #modal .srvwin .mtile span { font-size: 10px; } html body #modal .srvwin .mtile b { font-size: 14px; } html body #modal .srvwin .mtile { overflow: hidden; }
html body #modal .srvwin .mcard h6 { font-size: 11px; } html body #modal .srvwin .mcard .mval { font-size: 15px; } html body #modal .srvwin .mstat { font-size: 11px; } html body #modal .srvwin .mstat b { font-size: 11.5px; }
html body #modal .srvwin .mhead .tabs button, html body #modal .srvwin .mhead button { font-size: 12.5px; }

/* the tunnel window like the server window: the range tabs and the number cards in ONE row, smaller type */
html body #modal .tunwin .mon { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
html body #modal .tunwin .mon > .mhead { grid-column: 1; grid-row: 1; margin: 0; } html body #modal .tunwin .mon > .mhead > small { display: none; }
html body #modal .tunwin .mon > .mtiles { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
html body #modal .tunwin .mon > .mcard.mwide, html body #modal .tunwin .mon > .mgrid { grid-column: 1 / -1; }
html body #modal .tunwin .mtile { column-gap: 4px; padding: 5px 9px !important; min-width: 0; overflow: hidden; } html body #modal .tunwin .mtile small { font-size: 9.5px; letter-spacing: .2px; } html body #modal .tunwin .mtile span { font-size: 10px; } html body #modal .tunwin .mtile b { font-size: 14px; }
html body #modal .tunwin .mcard h6 { font-size: 11px; } html body #modal .tunwin .mcard .mval { font-size: 15px; } html body #modal .tunwin .mstat { font-size: 11px; } html body #modal .tunwin .mstat b { font-size: 11.5px; }
html body #modal .tunwin .sbox[data-b] .kv2 { height: 29px; min-height: 29px; padding: 0; box-sizing: border-box; font-size: 12px; }
html body #modal .tunwin .sbox[data-b] .kv2 > span:first-child { font-size: 12px; } html body #modal .tunwin .sbox[data-b] .kv2 > div, html body #modal .tunwin .sbox[data-b] .kv2 > div * { font-size: 11.5px !important; font-weight: 600; }
html body #modal .tunwin .sbox[data-b] { padding: 9px 14px 4px; } html body #modal .tunwin .sbox[data-b] > h5 { font-size: 13.5px !important; }

/* the history of a tunnel inside its window: one compact line per entry, all columns aligned */
html body #modal .th-list { display: grid; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
html body #modal .th-row { display: grid; grid-template-columns: 104px 10px 74px minmax(0, 1fr); align-items: center; gap: 10px; height: 30px; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; min-width: 0; }
html body #modal .th-row:hover { background: rgba(255,255,255,.035); }
html body #modal .th-row > time { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; color: #8d99b3; white-space: nowrap; }
html body #modal .th-row > i { width: 7px; height: 7px; border-radius: 50%; background: #4fd98a; } html body #modal .th-row.bad > i { background: #ff7a8c; }
html body #modal .th-row > b { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #aeb7ca; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #modal .th-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d5deef; }
html body #modal .th-row.bad > span { color: #ffb4bd; }
html body #modal .wback { display: flex; align-items: center; gap: 10px; } html body #modal .wback > b { font-size: 13.5px; font-weight: 600; color: #cfdcf5; margin-left: 0 !important; }

/* "Copied": small and faint, on the address (a row) or in a corner of the box */
html body .ip-copy::after { padding: 0 7px !important; font-size: 9.5px !important; font-weight: 500 !important; letter-spacing: .02em; color: rgba(190,235,215,.8) !important; background: rgba(61,220,151,.1) !important; box-shadow: 0 0 0 1px rgba(61,220,151,.2) inset !important; line-height: 16px; backdrop-filter: none; }
html body .copied { padding: 0 8px !important; font-size: 9.5px !important; font-weight: 500 !important; line-height: 16px; letter-spacing: .02em; top: 8px; right: 12px; color: rgba(190,235,215,.8) !important; background: rgba(61,220,151,.1) !important; box-shadow: 0 0 0 1px rgba(61,220,151,.2) inset !important; opacity: .85; }
/* a muted tunnel: a line across the bell */
html body .abtn.is-muted .bi { position: relative; opacity: .8; }
html body .abtn.is-muted .bi::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.6px; border-radius: 1px; background: #ff7a8c; transform: rotate(-42deg); box-shadow: 0 0 0 1px rgba(17,24,40,.8); }
html body .abtn.is-muted { color: #c8d2e6; }

/* Settings like the Install view: flat quiet buttons (no glow, no gloss), one soft blue for the main one, blue switches, neutral icon tiles, tighter controls; only colours and sizes change, the layout of every card stays */
html body #page .sf button:not(.eye):not(.mini) { height: 32px !important; min-height: 32px; padding: 0 14px !important; border-radius: 10px !important; font-size: 12.5px !important; font-weight: 600 !important; gap: 7px; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #d5deef !important; box-shadow: none !important; text-shadow: none !important; }
html body #page .sf button:not(.eye):not(.mini)::before, html body #page .sf button:not(.eye):not(.mini)::after { display: none !important; }
html body #page .sf button:not(.eye):not(.mini):hover:not(:disabled) { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.2) !important; }
html body #page .sf button.pri:not(.eye) { background: rgba(122,176,255,.14) !important; border-color: rgba(122,176,255,.38) !important; color: #d6e5ff !important; }
html body #page .sf button.pri:not(.eye):hover:not(:disabled) { background: rgba(122,176,255,.22) !important; }
html body #page .sf button.danger:not(.eye), html body #page .sf button.bad:not(.eye) { color: #e6b0b0 !important; border-color: rgba(255,130,130,.26) !important; }
html body #page .sf button:disabled { opacity: .45; }
html body #page .sf button.eye { box-shadow: none !important; background: rgba(255,255,255,.05) !important; border: 0 !important; }
html body #page .sf input:not([type=checkbox]):not([type=radio]), html body #page .sf select, html body #page .sf textarea { font-size: 13px !important; border-radius: 10px !important; }
html body #page .sf input:not([type=checkbox]):not([type=radio]):not(.sw), html body #page .sf select { height: 34px !important; min-height: 34px; }
html body #page .sf label, html body #page .sf .sr > span { font-size: 12.5px; }
html body #page .sf input[type=checkbox].sw:checked::before { background: #4c8dff !important; }
html body #page .sf .ss-ic, html body #page .sf .ss-ic[class] { background: rgba(255,255,255,.07) !important; color: #9fb0cf !important; box-shadow: none !important; border: 1px solid rgba(255,255,255,.08); }
html body #page .sf .ss-ht > b { font-size: 14.5px; } html body #page .sf .ss-ht > small { font-size: 12px; }
html body #page .sf .pill.ok, html body #page .sf .pill.err, html body #page .sf .pill.warn { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.14) !important; color: #b9c6dc !important; box-shadow: none !important; }

/* the header bar of the lists (Servers, Tunnels, DNS, Configs): a soft glass strip with rounded ends, fine column dividers, quiet capitals */
html body #page .tbl.lift thead th { height: 34px; padding-top: 0; padding-bottom: 0; font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .11em !important; text-transform: uppercase; color: #9aa6bf !important; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.028)) !important; border: 0 !important; border-top: 1px solid rgba(255,255,255,.09) !important; border-bottom: 1px solid rgba(255,255,255,.05) !important; position: relative; white-space: nowrap; }
html body #page .tbl.lift thead th:first-child { border-radius: 12px 0 0 12px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.08) !important; }
html body #page .tbl.lift thead th:last-child { border-radius: 0 12px 12px 0; border-right: 1px solid rgba(255,255,255,.08) !important; }
html body #page .tbl.lift thead th + th::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: rgba(255,255,255,.07); }


/* the bar above the Servers / Tunnels lists, rebuilt: actions on the left, the counters, then the filter tabs and the search on the right - the search never leaves the bar */
html body #page .toolbar.joined { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.08); border-bottom: 0; }
html body #page .toolbar.joined > button { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #d5deef; box-shadow: none; text-shadow: none; }
html body #page .toolbar.joined > button::before, html body #page .toolbar.joined > button::after { display: none; }
html body #page .toolbar.joined > button:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
html body #page .toolbar.joined > button.cta { background: rgba(122,176,255,.16); border-color: rgba(122,176,255,.42); color: #d9e7ff; gap: 8px; }
html body #page .toolbar.joined > button.cta:hover:not(:disabled) { background: rgba(122,176,255,.26); }
html body #page .toolbar.joined > button.cta .cta-ic { width: 18px; height: 18px; border-radius: 50%; background: rgba(122,176,255,.3); color: #fff; font-size: 14px; line-height: 18px; display: inline-grid; place-items: center; box-shadow: none; }
html body #page .toolbar.joined .tcount { display: inline-flex; align-items: center; gap: 0; height: 34px; padding: 0 4px; border-radius: 10px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.07); }
html body #page .toolbar.joined .tcount .tc { padding: 0 10px; font-size: 12px; background: transparent; border: 0; box-shadow: none; } html body #page .toolbar.joined .tcount .tc + .tc { border-left: 1px solid rgba(255,255,255,.08); border-radius: 0; }
html body #page .toolbar.joined .tabs { height: 34px; padding: 2px; border-radius: 11px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.07); flex: none; }
html body #page .toolbar.joined .tabs button { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; }
html body #page .toolbar.joined .tb-search { flex: 0 1 200px; min-width: 96px; max-width: 220px; margin: 0; padding: 0; border: 0; position: relative; }
html body #page .toolbar.joined .tb-search::before { left: 12px; width: 14px; height: 14px; }
html body #page .toolbar.joined .tb-search input { width: 100%; min-width: 0; height: 34px; box-sizing: border-box; padding: 0 12px 0 34px; border-radius: 10px; font-size: 12.5px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.1); }

/* the DNS bar: two clean groups - (Add record + the numbers) and (domain, tabs, search) - side by side when there is room, the second under the first when there is not; nothing overlaps */
html body #page .toolbar.joined.srv-bar { flex-wrap: wrap; row-gap: 8px; column-gap: 10px; }
html body #page .srv-bar .sb-r1 { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; }
html body #page .srv-bar .sb-r1 .tcount { flex: 0 0 auto; flex-wrap: nowrap; overflow: visible; }
html body #page .srv-bar .sb-r1 .tcount .tc { white-space: nowrap; flex: none; }
html body #page .srv-bar .sb-r2 { flex: 1 1 auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; margin-left: auto; }
html body #page .srv-bar .sb-r2 > .tabs { flex: none; } html body #page .srv-bar .sb-r2 > .tb-search { flex: 0 1 200px; }
html body #page .srv-bar .sb-r2 > .dns-dsel { flex: 0 1 220px; min-width: 130px; } html body #page .srv-bar .dns-dsel select { width: 100%; height: 34px; border-radius: 10px; font-size: 12.5px; }
html body #page .srv-bar .dns-renew { flex: none; white-space: nowrap; font-size: 11px; }

/* the header of a list stays at the top while the rows scroll under it; it is a little lighter and solid, so the rows never show through */
html body #page .tbl.lift thead th { position: sticky !important; top: 0; z-index: 8; background: linear-gradient(180deg, #27314a, #1e273c) !important; box-shadow: 0 8px 14px -8px rgba(0,0,0,.7); }

/* the status tags of Settings: red when an important protection is off, green when it is on, amber for a warning */
html body #page .sf .pill.err { color: #ff8a98 !important; background: rgba(255,90,100,.12) !important; border-color: rgba(255,90,100,.45) !important; }
html body #page .sf .pill.ok { color: #6fe3a0 !important; background: rgba(52,211,130,.12) !important; border-color: rgba(52,211,130,.4) !important; }
html body #page .sf .pill.warn { color: #f4c06a !important; background: rgba(240,167,58,.12) !important; border-color: rgba(240,167,58,.4) !important; }
html body #page .sf > h3 > .pill.err, html body #page .card.sf h3 span.pill.err { color: #ff8a98 !important; background: rgba(255,90,100,.12) !important; border-color: rgba(255,90,100,.45) !important; }
html body #page .sf > h3 > .pill.ok, html body #page .card.sf h3 span.pill.ok { color: #6fe3a0 !important; background: rgba(52,211,130,.12) !important; border-color: rgba(52,211,130,.4) !important; }

/* the logo: bigger and sharper, and it moves in EVERY animation mode (calm, off, rich; also when the system asks for less motion - it is small and slow) */
html body aside.side .logo-orb { width: 50px; height: 50px; }
html body aside.side .logo-orb svg { width: 44px; height: 44px; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 3px 10px rgba(100,130,255,.45)); animation: lgFloat 7s ease-in-out infinite !important; }
html body aside.side .logo-orb::before { inset: 0; border-radius: 16px; animation: lgSpin 14s linear infinite !important; }
html body aside.side .logo-orb::after { inset: -6px; border-radius: 20px; animation: lgBreath 6s ease-in-out infinite !important; }
html body aside.side .logo-orb .lg-n { animation: lgNode 4.8s ease-in-out infinite !important; } html body aside.side .logo-orb .lg-n:nth-child(3) { animation-delay: 1.2s !important; } html body aside.side .logo-orb .lg-n:nth-child(5) { animation-delay: 2.4s !important; } html body aside.side .logo-orb .lg-n:nth-child(7) { animation-delay: 3.6s !important; }
html body aside.side .logo-orb .lg-run { animation: lgRun 5.5s linear infinite !important; } html body aside.side .logo-orb .lg-halo { animation: lgBreath 6s ease-in-out infinite !important; }
html[data-anim="off"] aside.side .logo-orb::before { --lg-a: 0deg; }

/* the theme cards in two tidy rows (7 + 6), the names never cut */
html body #page .theme-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
html body #page .theme-grid .tsw { min-width: 0; width: auto; height: auto; min-height: 66px; padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
html body #page .theme-grid .tsw b { max-width: 100%; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the logo, calmer: the ring and the glow around it stand still; inside, the dots drift slowly */
html body aside.side .logo-orb svg { animation: none !important; }
html body aside.side .logo-orb::before { animation: none !important; --lg-a: 215deg; opacity: .85; }
html body aside.side .logo-orb::after { animation: none !important; opacity: .7; }
html body aside.side .logo-orb .lg-halo { animation: none !important; opacity: .9; }
html body aside.side .logo-orb .lg-n { transform-box: fill-box; transform-origin: center; animation: lgNode 7s ease-in-out infinite !important; }
html body aside.side .logo-orb .lg-n:nth-child(2) { animation-delay: 1.7s !important; } html body aside.side .logo-orb .lg-n:nth-child(3) { animation-delay: 3.5s !important; } html body aside.side .logo-orb .lg-n:nth-child(4) { animation-delay: 5.2s !important; }
html body aside.side .logo-orb .lg-run { animation: lgRun 10s linear infinite !important; }

/* the story of Fix / Rebuild in a tunnel window floats over the bottom of the window instead of pushing the content down: nothing moves when it opens or grows */
html body #modal .tunwin .modal-body { position: relative; }
html body #modal .tunwin .fix[id^="fix-"]:not(.hidden) { position: absolute; left: 18px; right: 18px; bottom: 16px; max-height: 230px; overflow: auto; z-index: 6; padding: 10px 14px; border-radius: 12px; background: #131b2e; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 34px rgba(0,0,0,.55); }
/* addresses: an engineering look - a fixed-width face, tabular figures, calm weight and colour, nothing bold */
html body #page .srv-tbl td:nth-child(4), html body #page .ip-copy, html body #page .tun-tbl .ip-copy { font-family: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Roboto Mono", ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "zero", "tnum"; font-size: 12.5px; font-weight: 500; letter-spacing: .01em; color: #c3cde2; }
html body #page .srv-tbl td:nth-child(4) .mono, html body #page .srv-tbl td:nth-child(4) span { font: inherit; color: inherit; }
html body #page .srv-tbl td:nth-child(4):hover, html body #page .ip-copy:hover { color: #e6eeff; }

/* the Shop bot entry: its name stays in the menu, switched off until the other sections are finished */
html body nav a.nav-off { opacity: .38; filter: grayscale(1); pointer-events: none; cursor: default; }
html body nav a.nav-off::before, html body nav a.nav-off::after { display: none !important; }

/* the three boxes of a tunnel window: every value fits on its line (the GRE pair, the long names) - tighter label column, smaller figures, fixed-width numbers */
html body #modal .tunwin .sbox[data-b] .kv2 { gap: 8px; }
html body #modal .tunwin .sbox[data-b] .kv2 > span:first-child { width: auto !important; flex: none; font-size: 11.5px; }
html body #modal .tunwin .sbox[data-b] .kv2 > div { flex: 1 1 auto; min-width: 0; justify-content: flex-end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
html body #modal .tunwin .sbox[data-b="link"] .kv2 > div, html body #modal .tunwin .sbox[data-b="link"] .kv2 > div * { font-size: 11px !important; }
html body #modal .tunwin .sbox[data-b="servers"] .kv2 > div small.mono { font-size: 10.5px !important; }

/* the box "Times the tunnel was down": a small table - when, how long, why */
html body #modal .mout h6 { margin-bottom: 4px; }
html body #modal .mout-h, html body #modal .mout-r { display: grid; grid-template-columns: 120px 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0 4px; }
html body #modal .mout-h { height: 24px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7f8aa6; border-bottom: 1px solid rgba(255,255,255,.07); }
html body #modal .mout-r { height: 29px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
html body #modal .mout-r > time { font-family: var(--mono, ui-monospace, monospace); font-size: 11.5px; color: #aeb7ca; white-space: nowrap; }
html body #modal .mout-r > b { font-size: 12px; font-weight: 600; color: #e6ecf8; } html body #modal .mout-r.now > b { color: #ff8a98; }
html body #modal .mout-r > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9a3a9; }

/* DNS records: every second card a little lighter, so the rows are easy to follow */
html body #page .dns-tbl tbody tr.dr-rec:nth-child(odd) td { background: rgba(255,255,255,.026) !important; }
html body #page .dns-tbl tbody tr.dr-rec:nth-child(even) td { background: rgba(120,150,210,.075) !important; }
html body #page .dns-tbl tbody tr.dr-rec:hover td { background: rgba(255,255,255,.1) !important; }

/* the addresses of the DNS records: the same face and size as the addresses of the server list */
html body #page .dns-tbl td.val, html body #page .dns-tbl td.val .mono { font-family: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Roboto Mono", ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "zero", "tnum"; font-size: 12.5px; font-weight: 500; letter-spacing: .01em; color: #c3cde2; }
html body #page .dns-tbl td.val .mchip { font-family: var(--font, inherit); font-size: 10.5px; font-weight: 600; letter-spacing: 0; padding: 0 8px; line-height: 17px; }
html body #page .dns-tbl td.dns-port { font-family: var(--font, inherit); font-size: inherit; }

/* the record form (make / edit), rebuilt: one compact grid - account, domain, TTL / name, cloud / address, port / server, origin protocol / preview and Save */
html body #modal .modal.plan-add { width: min(660px, 94vw); max-width: 94vw; }
html body #modal .qp2-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 12px; }
html body #modal .qp2 .c2 { grid-column: span 2; } html body #modal .qp2 .c3 { grid-column: span 3; } html body #modal .qp2 .c4 { grid-column: span 4; }
html body #modal .qp2 .qp-f { display: grid; gap: 5px; align-content: start; min-width: 0; } html body #modal .qp2 .qp-f > label { font-size: 11.5px; font-weight: 600; color: #98a3ba; letter-spacing: .02em; }
html body #modal .qp2 .qp-f > label small { font-weight: 400; color: #7f8aa6; }
html body #modal .qp2 .qp-in, html body #modal .qp2 .qp-sel { height: 36px; min-height: 36px; font-size: 13px; border-radius: 10px; box-sizing: border-box; }
html body #modal .qp2 .qp-sw { height: 36px; border-radius: 10px; } html body #modal .qp2 .qp-sw .qp-sel { height: 34px; padding-top: 0; padding-bottom: 0; }
html body #modal .qp2-name { display: flex; align-items: stretch; height: 36px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.22); }
html body #modal .qp2-name .qp-in { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 0; background: transparent; height: 100%; }
html body #modal .qp2-suf { flex: none; display: grid; place-items: center; padding: 0 12px; font-size: 12px; color: #98a3ba; background: rgba(255,255,255,.05); border-left: 1px solid rgba(255,255,255,.08); font-family: var(--mono, ui-monospace, monospace); }
html body #modal .qp2-cloud { height: 36px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: #d5deef; cursor: pointer; }
html body #modal .qp2-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
html body #modal .qp2-foot .qp-prev { flex: 1 1 auto; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #modal .qp2-foot .qp-pri { flex: none; height: 36px; padding: 0 22px; font-size: 13px; border-radius: 10px; background: rgba(122,176,255,.16) !important; border: 1px solid rgba(122,176,255,.42) !important; color: #d9e7ff !important; box-shadow: none !important; }
@media (max-width: 560px) and (pointer: coarse) { html body #modal .qp2 .c2, html body #modal .qp2 .c3, html body #modal .qp2 .c4 { grid-column: span 6; } }

/* tunnels: every second card a little lighter, like the DNS records */
html body #page .tun-tbl tbody tr:nth-child(odd) td { background: rgba(255,255,255,.026) !important; }
html body #page .tun-tbl tbody tr:nth-child(even) td { background: rgba(120,150,210,.075) !important; }
html body #page .tun-tbl tbody tr:hover td { background: rgba(255,255,255,.1) !important; }

/* the DNS bar: an accounts row on top (switch between the accounts, add another), and ONE row under it (add a record, the numbers, domain, tabs, search) */
html body #page .toolbar.joined.dns-bar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; }
html body #page .dns-bar .dns-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
html body #page .dns-bar .dns-r.dns-main { flex-wrap: nowrap; } @media (max-width: 1500px) { html body #page .dns-bar .dns-r.dns-main { flex-wrap: wrap; } }
html body #page .dns-bar .dns-main .sp { flex: 1 1 0; min-width: 8px; }
html body #page .dns-bar .dns-accbar { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
html body #page .dns-bar .dns-lab { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8d99b3; margin-right: 4px; }
html body #page .dns-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: #cdd7ea; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); cursor: pointer; box-shadow: none; transition: background .18s, border-color .18s; }
html body #page .dns-chip small { font-size: 10.5px; font-weight: 500; color: #8d99b3; }
html body #page .dns-chip:hover { background: rgba(255,255,255,.09); }
html body #page .dns-chip.on { background: rgba(122,176,255,.16); border-color: rgba(122,176,255,.45); color: #e2edff; } html body #page .dns-chip.on small { color: #a9c3f2; }
html body #page .dns-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #5b667c; } html body #page .dns-chip .dot.ok { background: #4fd98a; } html body #page .dns-chip .dot.bad { background: #ff7a8c; }
html body #page .dns-bar .dns-main .dns-dsel { flex: 0 1 230px; min-width: 130px; } html body #page .dns-bar .dns-main .tb-search { flex: 0 1 190px; min-width: 96px; }

/* the DNS bar, calmer: Add record and the domain chooser side by side, three quiet numbers without lights, then the tabs and the search */
html body #page .dns-bar .dns-main > .cta { white-space: nowrap; flex: none; } html body #page .dns-bar .dns-main > .sep { display: none; }
html body #page .dns-bar .dns-stats { display: inline-flex; align-items: center; height: 34px; padding: 0 4px; border-radius: 10px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.07); flex: none; }
html body #page .dns-bar .dns-stat { padding: 0 11px; font-size: 12px; color: #98a3ba; white-space: nowrap; } html body #page .dns-bar .dns-stat + .dns-stat { border-left: 1px solid rgba(255,255,255,.08); } html body #page .dns-bar .dns-stat b { margin-left: 3px; font-size: 12.5px; font-weight: 700; color: #e6ecf8; }
html body #page .dns-bar .dns-dsel { position: relative; display: inline-flex; align-items: center; flex: 0 1 260px; min-width: 170px; height: 38px; padding: 0; border-radius: 12px; background: rgba(122,176,255,.08); border: 1px solid rgba(122,176,255,.3); }
html body #page .dns-bar .dns-dsel > span { display: none; }
html body #page .dns-bar .dns-dsel::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fc0f2' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.2 3 14.8 0 18M12 3c-3 3.2-3 14.8 0 18'/%3E%3C/svg%3E") center/contain no-repeat; pointer-events: none; }
html body #page .dns-bar .dns-dsel select { width: 100%; height: 36px; padding: 0 34px 0 38px; border: 0; background: transparent; color: #e6eeff; font-size: 13.5px; font-weight: 600; border-radius: 12px; cursor: pointer; }
html body #page .dns-bar .dns-dsel:hover { background: rgba(122,176,255,.14); border-color: rgba(122,176,255,.5); }

/* the foot of the side menu, rebuilt: a status light, "Powered by" over the name, and the version in its own chip that never mixes with the text (a longer number only shortens the name) */
html body aside.side .side-ver { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 9px 11px !important; border-radius: 14px !important; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)) !important; border: 1px solid rgba(255,255,255,.08) !important; box-shadow: none !important; animation: none !important; }
html body aside.side .side-ver::before, html body aside.side .side-ver::after { display: none !important; }
html body aside.side .side-ver .sc-dot { position: static !important; width: 8px; height: 8px; border-radius: 50%; background: #4fd98a !important; box-shadow: 0 0 0 3px rgba(79,217,138,.16) !important; animation: none !important; flex: none; }
html body aside.side .side-ver .sc-by { display: grid; gap: 1px; min-width: 0; font-size: 9.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #7f8aa6; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body aside.side .side-ver .sc-by b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: none; color: #dfe7f7; }
html body aside.side .side-ver .sc-ver { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; padding: 3px 9px !important; border-radius: 999px !important; color: #cfe0ff !important; background: rgba(122,176,255,.12) !important; border: 1px solid rgba(122,176,255,.3) !important; box-shadow: none !important; margin: 0 !important; }

/* the "times the tunnel was down" box has ONE fixed size: header + the last three lines, so the window never needs a scrollbar for it (the full list is in History) */
html body #modal .tunwin .mout { min-height: 136px; max-height: 136px; overflow: hidden; }
html body #modal .tunwin .mout .chart-empty { min-height: 80px; display: grid; place-items: center; }
/* the tunnel window fits its content: tighter charts so nothing has to scroll */
html body #modal .tunwin .modal-body { overflow-y: auto; overscroll-behavior: contain; }
html body #modal .tunwin .mgrid .lc-wrap svg { max-height: 104px; width: 100%; }
html body #modal .tunwin .mcard.mwide { padding-top: 6px; padding-bottom: 6px; }
html body #modal .tunwin .mout { min-height: 126px; max-height: 126px; } html body #modal .tunwin .mgrid .lc-wrap svg { max-height: 96px; }

/* the outage box: ONE fixed size; only its list scrolls (the window itself does not) */
html body #modal .tunwin .mout { min-height: 158px; max-height: 158px; height: 158px; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; }
html body #modal .tunwin .mout > h6, html body #modal .tunwin .mout > .mout-h { flex: none; }
html body #modal .tunwin .mout-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
html body #modal .tunwin .mgrid .lc-wrap svg { max-height: 74px; } html body #modal .tunwin .mgrid .mcard { padding-top: 7px; padding-bottom: 7px; }

/* the themes: ALL of them in ONE row; every card has a small picture of the theme (its page colour, a side bar, a title bar in the accent colour, a second accent, a card) and its name under it */
html body #page .theme-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1250px) { html body #page .theme-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
html body #page .theme-grid .tsw { position: relative; min-width: 0; width: auto; height: auto; min-height: 0; padding: 7px 7px 8px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 7px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
html body #page .theme-grid .tsw:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); transform: translateY(-1px); }
html body #page .theme-grid .tsw.on { border-color: var(--ta); background: rgba(255,255,255,.07); box-shadow: 0 0 0 1px var(--ta), 0 8px 20px -10px var(--ta); }
html body #page .theme-grid .tsw > i { display: block !important; width: 100% !important; height: 58px !important; min-height: 0; margin: 0 !important; border-radius: 9px !important; border: 1px solid rgba(255,255,255,.16) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 10px -4px rgba(0,0,0,.5) !important; position: relative; overflow: hidden; animation: none !important; transform: none !important;
  background:
    radial-gradient(circle at 10px 9px, var(--ta) 0 2.6px, transparent 3.4px),
    linear-gradient(var(--ta), var(--ta)) 78% 11px / 32% 5px no-repeat,
    linear-gradient(var(--tc), var(--tc)) 78% 22px / 22% 4px no-repeat,
    linear-gradient(rgba(128,128,128,.22), rgba(128,128,128,.22)) 78% 36px / 58% 16px no-repeat,
    linear-gradient(rgba(128,128,128,.2), rgba(128,128,128,.2)) 5px 19px / 18% 32px no-repeat,
    var(--tb) !important; }
html body #page .theme-grid .tsw > i::before { content: ""; position: absolute; left: 6px; top: 25px; width: 16px; height: 3px; border-radius: 2px; background: var(--ta); opacity: .9; box-shadow: 0 7px 0 -0px rgba(128,128,128,.45), 0 14px 0 0 rgba(128,128,128,.35); }
html body #page .theme-grid .tsw > i::after { content: ""; position: absolute; right: 9px; bottom: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
html body #page .theme-grid .tsw.flat > i { border-radius: 4px !important; }
html body #page .theme-grid .tsw > b { display: block; max-width: 100%; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: #cdd7ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #page .theme-grid .tsw.on > b { color: #fff; }

/* servers: every second card a little lighter, like the tunnels and the DNS records (the flag stays on top of the card colour) */
html body #page .srv-tbl:not(.dns-tbl) tbody tr:nth-child(odd) td { background: rgba(255,255,255,.026) !important; }
html body #page .srv-tbl:not(.dns-tbl) tbody tr:nth-child(even) td { background: rgba(120,150,210,.075) !important; }
html body #page .srv-tbl:not(.dns-tbl) tbody tr:hover td { background: rgba(255,255,255,.1) !important; }

html body #page .theme-grid { display: grid !important; grid-template-columns: repeat(13, minmax(0, 1fr)) !important; gap: 8px !important; }
@media (max-width: 1250px) { html body #page .theme-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; } }
html body #page .theme-grid .tsw { width: auto !important; height: auto !important; min-height: 0 !important; max-width: none !important; padding: 7px 7px 8px !important; display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 7px !important; border-radius: 14px !important; }
html body #page .theme-grid .tsw > b { display: block !important; position: static !important; transform: none !important; text-align: center !important; font-size: 11.5px !important; }

/* the theme cards are buttons inside Settings: win over the flat-button rule of Settings */
html body #page .sf .theme-grid button.tsw:not(.eye):not(.mini) { height: auto !important; min-height: 0 !important; padding: 7px 7px 8px !important; gap: 7px !important; border-radius: 14px !important; background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.09) !important; box-shadow: none !important; font-size: 11.5px !important; }
html body #page .sf .theme-grid button.tsw:not(.eye):not(.mini):hover:not(:disabled) { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.2) !important; }
html body #page .sf .theme-grid button.tsw.on:not(.eye):not(.mini) { border-color: var(--ta) !important; background: rgba(255,255,255,.07) !important; box-shadow: 0 0 0 1px var(--ta), 0 8px 20px -10px var(--ta) !important; }
html body #page .sf .theme-grid button.tsw::before, html body #page .sf .theme-grid button.tsw::after { display: none !important; }
html body #page .theme-grid .tsw > b { font-size: 10.5px !important; letter-spacing: 0 !important; }
html body #page .sf .theme-grid button.tsw:not(.eye):not(.mini) { padding: 6px 5px 7px !important; }

/* the domain chooser shows the cloud of the provider (ArvanCloud teal, Cloudflare orange) instead of a globe */
html body #page .dns-bar .dns-dsel[data-prov="arvan"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a4.5 4.5 0 01-.6-8.96A6 6 0 0117.8 8.6 4.7 4.7 0 0117 18H7z' fill='%2318c5b0' fill-opacity='.28' stroke='%2318c5b0' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; width: 18px; height: 18px; }
html body #page .dns-bar .dns-dsel[data-prov="cloudflare"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a4.5 4.5 0 01-.6-8.96A6 6 0 0117.8 8.6 4.7 4.7 0 0117 18H7z' fill='%23f6821f' fill-opacity='.3' stroke='%23f6821f' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; width: 18px; height: 18px; }

/* the record form: the type beside the name, the CDN switch like the other switches */
html body #modal .qp2 .c1 { grid-column: span 1; }
html body #modal .qp2 .qp-f.c1 .qp-sw .qp-sel { padding-left: 10px; padding-right: 26px; }
html body #modal .qp2-cloud { gap: 12px; } html body #modal .qp2-cloud input.sw { flex: none; }

/* the ArvanCloud mark (a dot and a slanted bar) instead of the cloud / globe, in the Arvan green */
html body #page .dns-bar .dns-dsel[data-prov="arvan"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.2' cy='17.6' r='2.5' fill='%2322d3b0'/%3E%3Cpath d='M11.4 4.6L16.8 19' stroke='%2322d3b0' stroke-width='3.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat; width: 18px; height: 18px; }

/* the account chips, redone: the provider mark, the name, the number of domains in a small pill, and a status light on the right */
html body #page .dns-chip { height: 36px; padding: 0 12px 0 10px; gap: 9px; border-radius: 12px; font-size: 13px; letter-spacing: .01em; background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.11); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; }
html body #page .dns-chip:hover { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.2); }
html body #page .dns-chip.on { background: linear-gradient(180deg, rgba(122,176,255,.26), rgba(122,176,255,.12)); border-color: rgba(122,176,255,.6); color: #fff; box-shadow: 0 0 0 1px rgba(122,176,255,.25), 0 8px 18px -10px rgba(122,176,255,.7); }
html body #page .dns-chip .pv { flex: none; width: 18px; height: 18px; border-radius: 6px; background: center/contain no-repeat; }
html body #page .dns-chip .pv-arvan { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.2' cy='17.6' r='2.5' fill='%2322d3b0'/%3E%3Cpath d='M11.4 4.6L16.8 19' stroke='%2322d3b0' stroke-width='3.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
html body #page .dns-chip .pv-cloudflare { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a4.5 4.5 0 01-.6-8.96A6 6 0 0117.8 8.6 4.7 4.7 0 0117 18H7z' fill='%23f6821f' fill-opacity='.3' stroke='%23f6821f' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html body #page .dns-chip .pv-all { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb4d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='13' height='13' rx='3'/%3E%3Cpath d='M8 20h10a3 3 0 003-3V9'/%3E%3C/svg%3E"); }
html body #page .dns-chip .cnt { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: #aeb7ca; background: rgba(255,255,255,.08); }
html body #page .dns-chip.on .cnt { color: #fff; background: rgba(122,176,255,.35); }
html body #page .dns-chip .dot { flex: none; width: 7px; height: 7px; margin-left: 1px; box-shadow: 0 0 0 3px rgba(255,255,255,.05); } html body #page .dns-chip .dot.ok { box-shadow: 0 0 0 3px rgba(79,217,138,.16); } html body #page .dns-chip .dot.bad { box-shadow: 0 0 0 3px rgba(255,122,140,.18); }
html body #modal input[type=checkbox].sw:checked::before { background: #4c8dff !important; }

html body #modal .qp2 .qp-in:disabled { opacity: .45; cursor: not-allowed; }
/* the ArvanCloud mark in a dark teal tile, with a soft green gradient (the chooser and the account chips) */
html body #page .dns-bar .dns-dsel[data-prov="arvan"]::before, html body #page .dns-chip .pv-arvan { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2342f2cb'/%3E%3Cstop offset='1' stop-color='%2312b39d'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23163f45'/%3E%3Cstop offset='1' stop-color='%230b2227'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='7' fill='url(%23t)'/%3E%3Crect x='.5' y='.5' width='23' height='23' rx='6.5' fill='none' stroke='%23ffffff' stroke-opacity='.16'/%3E%3Ccircle cx='7.3' cy='16.9' r='2.5' fill='url(%23g)'/%3E%3Cpath d='M12.2 6.3L16.3 17.6' stroke='url(%23g)' stroke-width='3.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat !important; border-radius: 0; box-shadow: 0 3px 8px -3px rgba(18,179,157,.6); }
html body #page .dns-bar .dns-dsel[data-prov="arvan"]::before { width: 20px; height: 20px; border-radius: 6px; }

/* ===== DAY MODE for the new look: every colour of the layers above that was written for the dark page gets its day colour (dark text on white / pale blue, soft blue accents) ===== */
html[data-theme="calm"][data-mode="light"] { --bg: #eef2f9; --bg-2: #e6ecf7; --acc: #2f6fe0; --acc-2: #1d4fb5; --grad: linear-gradient(135deg, #2f6fe0 0%, #5b95ee 100%); --line: rgba(30,50,100,.14); --line-hi: rgba(47,111,224,.5); --shadow: 0 8px 22px rgba(30,50,100,.12); --glow: 47,111,224; --text: #14213d; --mut: #5b6b8c; }
html[data-theme="calm"][data-mode="light"] body::before { background: radial-gradient(38% 30% at 12% 6%, rgba(47,111,224,.07), transparent 70%); }
html[data-mode="light"] body { color: #14213d; }
html[data-mode="light"] body #modal .modal { background: #ffffff; border-color: rgba(30,50,100,.14); box-shadow: 0 26px 70px rgba(30,50,100,.22); }
html[data-mode="light"] body #modal .modal-head b, html[data-mode="light"] body #modal .modal-head { color: #14213d; }
/* boxes, cards, number cards */
html[data-mode="light"] body .sbox, html[data-mode="light"] body #page .card, html[data-mode="light"] body #modal .card, html[data-mode="light"] body .mcard, html[data-mode="light"] body .mtile, html[data-mode="light"] body #modal .sbox[data-b="system"], html[data-mode="light"] body #modal .sbox[data-b="resources"], html[data-mode="light"] body #modal .sbox[data-b="access"] { background: #f6f9fe !important; border-color: rgba(30,50,100,.12) !important; box-shadow: none; }
html[data-mode="light"] body #page .card { background: #ffffff !important; }
html[data-mode="light"] body #modal .sbox[data-b] > h5, html[data-mode="light"] body .sbox > h5 { color: #1d2a4a !important; }
html[data-mode="light"] body #modal .sbox[data-b] > h5 > i, html[data-mode="light"] body .sbox > h5 > i { background: #dbe7fb !important; color: #2a4a8a !important; }
html[data-mode="light"] body .kv2 > span:first-child, html[data-mode="light"] body .rrow > span:first-child, html[data-mode="light"] body #modal .sbox[data-b] .kv2 > span:first-child { color: #5b6b8c !important; }
html[data-mode="light"] body .kv2 > div, html[data-mode="light"] body .kv2 > div *, html[data-mode="light"] body #modal .sbox[data-b] .kv2 > div, html[data-mode="light"] body #modal .sbox[data-b] .kv2 > div * { color: #14213d; }
html[data-mode="light"] body .kv2 .mut, html[data-mode="light"] body .kv2 small.mut { color: #6a7898 !important; }
html[data-mode="light"] body .kv2, html[data-mode="light"] body .rrow, html[data-mode="light"] body #modal .sbox[data-b] > h5 { border-color: rgba(30,50,100,.09) !important; }
html[data-mode="light"] body #modal .rrow > .rbar, html[data-mode="light"] body .rbar { background: rgba(30,50,100,.12) !important; }
html[data-mode="light"] body #modal .rrow.r-cpu u, html[data-mode="light"] body #modal .rrow.r-ram u, html[data-mode="light"] body #modal .rrow.r-swap u, html[data-mode="light"] body #modal .rrow.r-disk u, html[data-mode="light"] body .pbar .bar i { background: #3b7be8; }
html[data-mode="light"] body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > b, html[data-mode="light"] body #modal .sbox[data-b="resources"] .rrow > em .trf, html[data-mode="light"] body #modal .sbox[data-b="resources"] .rrow > em > b { color: #14213d !important; }
html[data-mode="light"] body #modal .sbox[data-b="resources"] .rrow[class*=" r-"] > em > small { color: #5b6b8c; border-color: rgba(30,50,100,.16) !important; }
html[data-mode="light"] body #modal .sbox[data-b="resources"] .rrow > em .trf + .trf { border-color: rgba(30,50,100,.16); }
html[data-mode="light"] body #modal .sbox[data-b="resources"] .ta.d { color: #1a9b58; } html[data-mode="light"] body #modal .sbox[data-b="resources"] .ta.u { color: #d4304a; }
/* charts and the number cards */
html[data-mode="light"] body .mcard .ll, html[data-mode="light"] body .mcard[data-c] .ll { stroke: #2f6fe0; } html[data-mode="light"] body .mcard .la, html[data-mode="light"] body .mcard[data-c] .la { fill: rgba(47,111,224,.14); }
html[data-mode="light"] body .mcard h6, html[data-mode="light"] body .mcard h6 .mc-ic { color: #2a4a8a; }
html[data-mode="light"] body .mcard .mval, html[data-mode="light"] body .mstat b, html[data-mode="light"] body .mtile b { color: #14213d !important; }
html[data-mode="light"] body .mtile.bad b { color: #c92a3a !important; } html[data-mode="light"] body .mtile.warn b { color: #b86a00 !important; }
html[data-mode="light"] body .mtile small, html[data-mode="light"] body .srvwin .mtile small, html[data-mode="light"] body .tunwin .mtile small { color: #2a4a8a !important; }
html[data-mode="light"] body .mtile span, html[data-mode="light"] body .mstat, html[data-mode="light"] body .mstat span { color: #5b6b8c !important; }
html[data-mode="light"] body svg.lc .lt { fill: #6a7898; } html[data-mode="light"] body svg.lc .lg { stroke: rgba(30,50,100,.14); }
html[data-mode="light"] body .strip i { background: rgba(30,50,100,.16); } html[data-mode="light"] body .strip i.ok { background: #4a86ee; } html[data-mode="light"] body .strip i.bad { background: #e0485a; }
html[data-mode="light"] body .wsec > h4 { color: #5b6b8c; }
/* tabs, switches */
html[data-mode="light"] body #modal .tabs, html[data-mode="light"] body #page .toolbar .tabs, html[data-mode="light"] body #page .dns-bar .tabs { background: rgba(30,50,100,.05) !important; border-color: rgba(30,50,100,.12) !important; }
html[data-mode="light"] body #modal .tabs button, html[data-mode="light"] body #page .toolbar .tabs button { color: #34456b; }
html[data-mode="light"] body #modal .tabs button.on, html[data-mode="light"] body .srv-tabs button.on, html[data-mode="light"] body .tf-tabs button.on, html[data-mode="light"] body #page .toolbar .tabs button.on { background: #ffffff !important; color: #1456c8 !important; border-color: #a9c5f3 !important; box-shadow: 0 1px 3px rgba(30,50,100,.12) !important; }
html[data-mode="light"] body .tabs button .cnt { background: rgba(30,50,100,.08); color: #34456b; } html[data-mode="light"] body .tabs button.on .cnt { background: #dbe7fb; color: #1456c8; }
/* buttons */
html[data-mode="light"] body #modal button.sm, html[data-mode="light"] body #modal .abtn, html[data-mode="light"] body #modal .wtool, html[data-mode="light"] body #modal .sbar button, html[data-mode="light"] body #page .toolbar button:not(.cta):not(.pri), html[data-mode="light"] body #page .toolbar .tbtn, html[data-mode="light"] body #page .toolbar.joined > button { background: rgba(30,50,100,.05) !important; border: 1px solid rgba(30,50,100,.16) !important; color: #24304d !important; box-shadow: none !important; }
html[data-mode="light"] body #modal button.sm:hover:not(:disabled), html[data-mode="light"] body #modal .abtn:hover:not(:disabled), html[data-mode="light"] body #page .toolbar.joined > button:hover:not(:disabled) { background: rgba(30,50,100,.1) !important; }
html[data-mode="light"] body #page .toolbar.joined > button.cta, html[data-mode="light"] body #page .toolbar button.cta { background: #2f6fe0 !important; border-color: #2f6fe0 !important; color: #fff !important; } html[data-mode="light"] body #page .toolbar.joined > button.cta .cta-ic { background: rgba(255,255,255,.28) !important; color: #fff; }
html[data-mode="light"] body button.pri, html[data-mode="light"] body #modal button.pri { background: #2f6fe0; border-color: #2f6fe0; color: #fff; }
html[data-mode="light"] body button.danger, html[data-mode="light"] body #modal button.danger { color: #b4232f !important; background: rgba(220,50,60,.07) !important; border: 1px solid rgba(220,50,60,.35) !important; }
html[data-mode="light"] body #modal .modal-head .sm { color: #24304d; }
html[data-mode="light"] body #modal .abtn.is-muted .bi::after { box-shadow: 0 0 0 1px #fff; }
/* the message strip of a window */
html[data-mode="light"] body #modal .modal.srvwin > .hmsg:not(:empty), html[data-mode="light"] body #modal .modal.tunwin > .hmsg:not(:empty) { background: #f1f5fc; border-color: rgba(30,50,100,.16); }
html[data-mode="light"] body #modal .modal.srvwin > .hmsg.ok:not(:empty), html[data-mode="light"] body #modal .modal.tunwin > .hmsg.ok:not(:empty) { background: #e6f6ec; border-color: rgba(26,150,80,.4); } html[data-mode="light"] body #modal .modal.srvwin > .hmsg.bad:not(:empty), html[data-mode="light"] body #modal .modal.tunwin > .hmsg.bad:not(:empty) { background: #fdecee; border-color: rgba(200,40,60,.4); } html[data-mode="light"] body #modal .modal.srvwin > .hmsg.info:not(:empty), html[data-mode="light"] body #modal .modal.tunwin > .hmsg.info:not(:empty) { background: #e8f0fe; border-color: rgba(47,111,224,.4); }
html[data-mode="light"] body .hmsg { background: #fff; box-shadow: 0 6px 18px rgba(30,50,100,.18); } html[data-mode="light"] body .hmsg.ok { color: #1a7f45; } html[data-mode="light"] body .hmsg.bad { color: #b4232f; } html[data-mode="light"] body .hmsg.info { color: #1456c8; }
html[data-mode="light"] body .hmsg .mm-x { background: rgba(30,50,100,.1); }
html[data-mode="light"] body #modal .mm-x { color: #34456b; }/* the page: bars, chips, lists */
html[data-mode="light"] body .statusbar { background: #f1f5fc !important; color: #34456b !important; border-color: rgba(30,50,100,.12) !important; } html[data-mode="light"] body .statusbar .sb-text, html[data-mode="light"] body .statusbar .sb-time { color: #34456b !important; } html[data-mode="light"] body .statusbar.live .sb-text { color: #14213d !important; } html[data-mode="light"] body .statusbar.ok .sb-text { color: #1a7f45 !important; } html[data-mode="light"] body .statusbar.bad .sb-text { color: #b4232f !important; }
html[data-mode="light"] body #page .toolbar.joined { background: linear-gradient(180deg, #ffffff, #f3f6fc) !important; border-color: rgba(30,50,100,.14) !important; }
html[data-mode="light"] body #page .toolbar.joined .tcount, html[data-mode="light"] body #page .dns-bar .dns-stats { background: rgba(30,50,100,.05) !important; border-color: rgba(30,50,100,.12) !important; }
html[data-mode="light"] body #page .toolbar.joined .tcount .tc { color: #34456b; } html[data-mode="light"] body #page .toolbar.joined .tcount .tc b { color: #14213d; }
html[data-mode="light"] body #page .dns-bar .dns-stat { color: #5b6b8c; } html[data-mode="light"] body #page .dns-bar .dns-stat b { color: #14213d; } html[data-mode="light"] body #page .dns-bar .dns-stat + .dns-stat { border-color: rgba(30,50,100,.12); }
html[data-mode="light"] body #page .toolbar.joined .tb-search input { background: #fff !important; border-color: rgba(30,50,100,.18) !important; color: #14213d !important; } html[data-mode="light"] body #page .toolbar.joined .tb-search input::placeholder { color: #7a88a6; }
html[data-mode="light"] body #page .dns-bar .dns-accbar { border-color: rgba(30,50,100,.1); } html[data-mode="light"] body #page .dns-bar .dns-lab { color: #5b6b8c; }
html[data-mode="light"] body #page .dns-chip { background: #ffffff; border-color: rgba(30,50,100,.16); color: #24304d; box-shadow: none; }
html[data-mode="light"] body #page .dns-chip:hover { background: #f1f5fc; border-color: rgba(30,50,100,.28); }
html[data-mode="light"] body #page .dns-chip.on { background: #e3edff; border-color: #7fa9ee; color: #0b3a8c; box-shadow: 0 0 0 1px rgba(47,111,224,.18), 0 6px 14px -8px rgba(47,111,224,.5); }
html[data-mode="light"] body #page .dns-chip .cnt { background: rgba(30,50,100,.09); color: #34456b; } html[data-mode="light"] body #page .dns-chip.on .cnt { background: #bcd5fb; color: #0b3a8c; }
html[data-mode="light"] body #page .dns-chip .pv-all { filter: brightness(.55) saturate(1.4); }
html[data-mode="light"] body #page .dns-bar .dns-dsel { background: #e8f0fe; border-color: #9bbcf3; } html[data-mode="light"] body #page .dns-bar .dns-dsel:hover { background: #dbe8fd; border-color: #6f9cea; }
html[data-mode="light"] body #page .dns-bar .dns-dsel select { color: #0b3a8c; } html[data-mode="light"] body #page .dns-bar .dns-dsel select option { color: #14213d; background: #fff; }
/* the list header and the rows */
html[data-mode="light"] body #page .tbl.lift thead th { background: linear-gradient(180deg, #e9effa, #dfe8f7) !important; color: #4a5a7e !important; border-top-color: rgba(30,50,100,.14) !important; border-bottom-color: rgba(30,50,100,.1) !important; box-shadow: 0 8px 14px -10px rgba(30,50,100,.35); }
html[data-mode="light"] body #page .tbl.lift thead th:first-child { border-left-color: rgba(30,50,100,.14) !important; } html[data-mode="light"] body #page .tbl.lift thead th:last-child { border-right-color: rgba(30,50,100,.14) !important; } html[data-mode="light"] body #page .tbl.lift thead th + th::before { background: rgba(30,50,100,.14); }
html[data-mode="light"] body #page .dns-tbl tbody tr.dr-rec:nth-child(odd) td, html[data-mode="light"] body #page .tun-tbl tbody tr:nth-child(odd) td, html[data-mode="light"] body #page .srv-tbl:not(.dns-tbl) tbody tr:nth-child(odd) td { background: #ffffff !important; }
html[data-mode="light"] body #page .dns-tbl tbody tr.dr-rec:nth-child(even) td, html[data-mode="light"] body #page .tun-tbl tbody tr:nth-child(even) td, html[data-mode="light"] body #page .srv-tbl:not(.dns-tbl) tbody tr:nth-child(even) td { background: #eef3fc !important; }
html[data-mode="light"] body #page .dns-tbl tbody tr.dr-rec:hover td, html[data-mode="light"] body #page .tun-tbl tbody tr:hover td, html[data-mode="light"] body #page .srv-tbl:not(.dns-tbl) tbody tr:hover td { background: #e1ebfb !important; }
html[data-mode="light"] body #page .tbl td, html[data-mode="light"] body #page .tbl td b { color: #14213d; } html[data-mode="light"] body #page .tbl td.mut, html[data-mode="light"] body #page .tbl td .mut, html[data-mode="light"] body #page .tbl td small.mut { color: #6a7898 !important; }
html[data-mode="light"] body #page .srv-tbl td:nth-child(4), html[data-mode="light"] body #page .ip-copy, html[data-mode="light"] body #page .tun-tbl .ip-copy, html[data-mode="light"] body #page .dns-tbl td.val, html[data-mode="light"] body #page .dns-tbl td.val .mono { color: #2a3656 !important; }
html[data-mode="light"] body #page .dns-tbl td.val .mchip { color: #4a5a7e; background: rgba(30,50,100,.06); border-color: rgba(30,50,100,.14); }
html[data-mode="light"] body #page .tun-tbl .td-type { color: #24304d; border-color: rgba(30,50,100,.2); background: rgba(30,50,100,.06); }
html[data-mode="light"] body #page .tun-tbl .td-type.ty-backhaul { background: rgba(60,110,230,.14); border-color: rgba(60,110,230,.4); color: #1a3f8f; } html[data-mode="light"] body #page .tun-tbl .td-type.ty-backpack { background: rgba(20,150,140,.14); border-color: rgba(20,150,140,.4); color: #0b5d57; } html[data-mode="light"] body #page .tun-tbl .td-type.ty-paqet { background: rgba(130,90,220,.14); border-color: rgba(130,90,220,.4); color: #4a2a9a; } html[data-mode="light"] body #page .tun-tbl .td-type.ty-chisel { background: rgba(220,150,30,.16); border-color: rgba(220,150,30,.45); color: #7a4b00; } html[data-mode="light"] body #page .tun-tbl .td-type.ty-gre { background: rgba(30,50,100,.07); border-color: rgba(30,50,100,.2); color: #34456b; }
html[data-mode="light"] body #page .tun-tbl .newtag { color: #1a52b8; background: #e3edff; border-color: #9bbcf3; }
html[data-mode="light"] body #page .tun-tbl .st, html[data-mode="light"] body #page .srv-tbl .st { color: #14213d; }
html[data-mode="light"] body #page .tun-tbl .td-node b { color: #14213d; }
html[data-mode="light"] body #page .trashbox { background: #fff7e8; border-color: rgba(190,130,20,.35); } html[data-mode="light"] body #page .trashbox, html[data-mode="light"] body #page .trashbox b { color: #5a3c00; }
/* the foot of the side menu */
html[data-mode="light"] body aside.side .side-ver { background: linear-gradient(180deg, #ffffff, #f3f6fc) !important; border-color: rgba(30,50,100,.14) !important; }
html[data-mode="light"] body aside.side .side-ver .sc-by { color: #6a7898; } html[data-mode="light"] body aside.side .side-ver .sc-by b { color: #14213d; }
html[data-mode="light"] body aside.side .side-ver .sc-ver { color: #1a4fb4 !important; background: #e3edff !important; border-color: #9bbcf3 !important; }
html[data-mode="light"] body nav a.nav-off { opacity: .45; }
/* settings, install, forms */
html[data-mode="light"] body #page .sf button:not(.eye):not(.mini) { background: rgba(30,50,100,.05) !important; border: 1px solid rgba(30,50,100,.16) !important; color: #24304d !important; }
html[data-mode="light"] body #page .sf button:not(.eye):not(.mini):hover:not(:disabled) { background: rgba(30,50,100,.1) !important; }
html[data-mode="light"] body #page .sf button.pri:not(.eye) { background: #e3edff !important; border-color: #7fa9ee !important; color: #0b3a8c !important; } html[data-mode="light"] body #page .sf button.pri:not(.eye):hover:not(:disabled) { background: #d3e3fd !important; }
html[data-mode="light"] body #page .sf button.danger:not(.eye), html[data-mode="light"] body #page .sf button.bad:not(.eye) { color: #b4232f !important; border-color: rgba(220,50,60,.35) !important; }
html[data-mode="light"] body #page .sf .ss-ic, html[data-mode="light"] body #page .sf .ss-ic[class] { background: #e6edf9 !important; color: #2a4a8a !important; border-color: rgba(30,50,100,.12); }
html[data-mode="light"] body #page .sf .pill.err { color: #b4232f !important; background: #fdecee !important; border-color: rgba(200,40,60,.4) !important; } html[data-mode="light"] body #page .sf .pill.ok { color: #1a7f45 !important; background: #e6f6ec !important; border-color: rgba(26,150,80,.4) !important; } html[data-mode="light"] body #page .sf .pill.warn { color: #8a5a00 !important; background: #fff3dc !important; border-color: rgba(200,140,20,.45) !important; }
html[data-mode="light"] body #page .sf > h3 > .pill.err, html[data-mode="light"] body #page .card.sf h3 span.pill.err { color: #b4232f !important; background: #fdecee !important; border-color: rgba(200,40,60,.4) !important; } html[data-mode="light"] body #page .sf > h3 > .pill.ok, html[data-mode="light"] body #page .card.sf h3 span.pill.ok { color: #1a7f45 !important; background: #e6f6ec !important; border-color: rgba(26,150,80,.4) !important; }
html[data-mode="light"] body .ins-sq { background: #e6edf9 !important; border-color: rgba(30,50,100,.14); } html[data-mode="light"] body .ins-sq::before { color: #2a4a8a; }
html[data-mode="light"] body .ins-h > b, html[data-mode="light"] body .ins-row > b { color: #14213d; }
html[data-mode="light"] body .ins-btn { background: rgba(30,50,100,.05) !important; border: 1px solid rgba(30,50,100,.16) !important; color: #24304d !important; } html[data-mode="light"] body .ins-btn:hover:not(:disabled) { background: rgba(30,50,100,.1) !important; } html[data-mode="light"] body .ins-btn.pri { background: #e3edff !important; border-color: #7fa9ee !important; color: #0b3a8c !important; } html[data-mode="light"] body .ins-btn.danger { color: #b4232f !important; border-color: rgba(220,50,60,.35) !important; }
html[data-mode="light"] body .ins-chip.ok, html[data-mode="light"] body .ins-chip.off { background: rgba(30,50,100,.05) !important; border-color: rgba(30,50,100,.16) !important; color: #34456b !important; }
html[data-mode="light"] body .ins-mini { background: rgba(30,50,100,.05) !important; border-color: rgba(30,50,100,.16) !important; }
html[data-mode="light"] body #modal .qp2 .qp-f > label { color: #5b6b8c; } html[data-mode="light"] body #modal .qp2 .qp-f > label small { color: #7a88a6; }
html[data-mode="light"] body #modal .qp2 .qp-in, html[data-mode="light"] body #modal .qp2 .qp-sel { background: #ffffff; border-color: rgba(30,50,100,.18); color: #14213d; } html[data-mode="light"] body #modal .qp2 .qp-sw { background: #ffffff; border-color: rgba(30,50,100,.18); }
html[data-mode="light"] body #modal .qp2-name { background: #fff; border-color: rgba(30,50,100,.18); } html[data-mode="light"] body #modal .qp2-name .qp-in { background: transparent; border: 0; } html[data-mode="light"] body #modal .qp2-suf { background: #eef2f9; color: #5b6b8c; border-color: rgba(30,50,100,.12); }
html[data-mode="light"] body #modal .qp2-cloud { color: #24304d; } html[data-mode="light"] body #modal .qp2-foot { border-color: rgba(30,50,100,.1); } html[data-mode="light"] body #modal .qp2-foot .qp-pri { background: #e3edff !important; border-color: #7fa9ee !important; color: #0b3a8c !important; }
html[data-mode="light"] body #modal .qp-prev, html[data-mode="light"] body #modal .qp-prev b { color: #14213d; }
/* history and outage lists */
html[data-mode="light"] body #modal .mout-h { color: #5b6b8c; border-color: rgba(30,50,100,.12); } html[data-mode="light"] body #modal .mout-r { border-color: rgba(30,50,100,.08); } html[data-mode="light"] body #modal .mout-r > time { color: #4a5a7e; } html[data-mode="light"] body #modal .mout-r > b { color: #14213d; } html[data-mode="light"] body #modal .mout-r.now > b { color: #c92a3a; } html[data-mode="light"] body #modal .mout-r > span { color: #9a4b57; }
html[data-mode="light"] body #modal .th-list { border-color: rgba(30,50,100,.12); } html[data-mode="light"] body #modal .th-row { border-color: rgba(30,50,100,.08); } html[data-mode="light"] body #modal .th-row:hover { background: rgba(30,50,100,.04); } html[data-mode="light"] body #modal .th-row > time { color: #5b6b8c; } html[data-mode="light"] body #modal .th-row > b { color: #4a5a7e; } html[data-mode="light"] body #modal .th-row > span { color: #14213d; } html[data-mode="light"] body #modal .th-row.bad > span { color: #b4232f; }
html[data-mode="light"] body #modal .wback > b { color: #14213d; }
html[data-mode="light"] body #modal .tunwin .fix[id^="fix-"]:not(.hidden) { background: #fff; border-color: rgba(30,50,100,.16); box-shadow: 0 14px 34px rgba(30,50,100,.22); }
/* the console, the logo ring and the theme cards */
html[data-mode="light"] body .con-tile { background: #f6f9fe; border-color: rgba(30,50,100,.14); } html[data-mode="light"] body .con-tile b { color: #14213d; } html[data-mode="light"] body .con-tile small { color: #5b6b8c; } html[data-mode="light"] body .con-tile.on { background: #e3edff; border-color: #7fa9ee; } html[data-mode="light"] body .con-tile:hover { border-color: rgba(30,50,100,.3); }
html[data-mode="light"] body .con-res, html[data-mode="light"] body .con-res pre { background: #f6f9fe; color: #14213d; }
html[data-mode="light"] body #page .theme-grid .tsw > b { color: #34456b !important; } html[data-mode="light"] body #page .theme-grid .tsw.on > b { color: #0b3a8c !important; }
html[data-mode="light"] body #page .sf .theme-grid button.tsw:not(.eye):not(.mini) { background: #ffffff !important; border-color: rgba(30,50,100,.14) !important; } html[data-mode="light"] body #page .sf .theme-grid button.tsw.on:not(.eye):not(.mini) { background: #f1f6ff !important; }
html[data-mode="light"] body .srv-sw b { color: #34456b; } html[data-mode="light"] body .srv-sw.on b { color: #1456c8 !important; }
html[data-mode="light"] body #modal input[type=checkbox].sw:not(:checked)::before { background: rgba(30,50,100,.22); }/* day mode, round 2: the top tabs, badges and small pills */
html[data-mode="light"] body .tabs button, html[data-mode="light"] body .set-tabs button, html[data-mode="light"] body .srv-tabs button, html[data-mode="light"] body .tf-tabs button { color: #4a5a7e; }
html[data-mode="light"] body .tabs button.on, html[data-mode="light"] body .set-tabs button.on, html[data-mode="light"] body .srv-tabs button.on, html[data-mode="light"] body .tf-tabs button.on, html[data-mode="light"] body #page .tabs button.on { background: #ffffff !important; color: #1456c8 !important; border-color: #a9c5f3 !important; box-shadow: 0 1px 3px rgba(30,50,100,.12) !important; }
html[data-mode="light"] body .tabs button:hover:not(.on) { color: #14213d; background: rgba(30,50,100,.05); }
html[data-mode="light"] body .badge, html[data-mode="light"] body span.badge { color: #8a5a00 !important; background: #fff3dc !important; border-color: rgba(200,140,20,.45) !important; }
html[data-mode="light"] body .mchip.ok { color: #0b7a4f; } html[data-mode="light"] body .mchip.warn { color: #8a5a00; } html[data-mode="light"] body .mchip.bad { color: #b4232f; }
html[data-mode="light"] body .pill.err { color: #b4232f !important; background: #fdecee !important; border-color: rgba(200,40,60,.4) !important; } html[data-mode="light"] body .pill.ok { color: #1a7f45; } html[data-mode="light"] body .pill.warn { color: #8a5a00; }
html[data-mode="light"] body .cta .cta-ic { background: rgba(255,255,255,.28); color: #fff; box-shadow: none; }
html[data-mode="light"] body #page .toolbar.joined > button.cta .cta-ic { background: rgba(255,255,255,.3) !important; }/* day mode, round 3: the underlined tabs (page and Settings), the port pills */
html[data-mode="light"] body #subnav .tabs.sub-tabs { border-bottom-color: rgba(30,50,100,.14); }
html[data-mode="light"] body #subnav .tabs.sub-tabs button { color: #5b6b8c; }
html[data-mode="light"] body #subnav .tabs.sub-tabs button:hover { color: #14213d; background: rgba(30,50,100,.04); }
html[data-mode="light"] body #subnav .tabs.sub-tabs button.on { color: #1456c8; border-bottom-color: #2f6fe0; background: rgba(47,111,224,.08); }
html[data-mode="light"] body #page .set-tabs:not(.tf-tabs):not(#nk-x) { border-bottom-color: rgba(30,50,100,.14) !important; }
html[data-mode="light"] body #page .set-tabs:not(.tf-tabs):not(#nk-x) button { color: #5b6b8c; }
html[data-mode="light"] body #page .set-tabs:not(.tf-tabs):not(#nk-x) button:hover { color: #14213d; background: rgba(30,50,100,.04); }
html[data-mode="light"] body #page .set-tabs:not(.tf-tabs):not(#nk-x) button.on { color: #1456c8 !important; border-bottom: 2px solid #2f6fe0 !important; background: rgba(47,111,224,.08) !important; }
html[data-mode="light"] body #page .set-tabs:not(.tf-tabs):not(#nk-x) button.on .cnt, html[data-mode="light"] body #subnav .tabs.sub-tabs button.on .cnt { background: #dbe7fb; color: #1456c8; }
html[data-mode="light"] body .tab-ic, html[data-mode="light"] body #subnav .tic { filter: grayscale(1) brightness(.55); opacity: .8; }
html[data-mode="light"] body .dns-tbl .port-pill { color: #0b5d57; background: #d4eeec; border-color: #8fcfcc; }
html[data-mode="light"] body #page .td-ports i, html[data-mode="light"] body #page .tun-tbl .td-ports i { color: #24304d; background: rgba(30,50,100,.07); border-color: rgba(30,50,100,.18); } html[data-mode="light"] body #page .td-ports i.bad { color: #b4232f; background: #fdecee; border-color: rgba(200,40,60,.4); }
html[data-mode="light"] body #page .tybadge { color: #24304d; background: rgba(30,50,100,.08); }
html[data-mode="light"] body .ai-btn, html[data-mode="light"] body button.ai-btn { background: rgba(30,50,100,.05); border-color: rgba(30,50,100,.16); color: #24304d; }/* day mode, round 4: the Doctor tabs, the dashboard filter chips, the Panels / Configs numbers and pills, the small plus marks */
html[data-mode="light"] body .ap-ttabs button, html[data-mode="light"] body .act-cats button { color: #4a5a7e; }
html[data-mode="light"] body .ap-ttabs button.on, html[data-mode="light"] body .act-cats button.on { color: #1456c8 !important; background: #e3edff !important; border-color: #9bbcf3 !important; box-shadow: none !important; }
html[data-mode="light"] body .ap-ttabs button.on small, html[data-mode="light"] body .act-cats button.on small, html[data-mode="light"] body .ap-ttabs button.on .cnt, html[data-mode="light"] body .act-cats button.on .cnt { color: #1456c8 !important; background: #cfe0fc !important; }
html[data-mode="light"] body .tc b, html[data-mode="light"] body .tc.info b { color: #14213d; } html[data-mode="light"] body .tc.info b { color: #1456c8; } html[data-mode="light"] body .tc.ok b { color: #0b7a4f; }
html[data-mode="light"] body .spill.active, html[data-mode="light"] body .epill.ok, html[data-mode="light"] body .tc.ok { color: #0b7a4f; }
html[data-mode="light"] body .exp-c, html[data-mode="light"] body .pgs .pgn { color: #34456b; } html[data-mode="light"] body .pgs .pgn:disabled { color: rgba(30,50,100,.4); }
html[data-mode="light"] body #page .toolbar .cta-ic { background: rgba(47,111,224,.22); color: #1a52b8; }
html[data-mode="light"] body #page .toolbar.joined > button.cta .cta-ic { background: rgba(0,0,0,.18) !important; color: #fff; }/* "Add" (a server, a panel, an account) is ONE button everywhere: the round blue plus of the Servers page (cta cta-server ico). In a bar of boxes (panels, accounts) it is the height of the boxes; the first panel's button has its name. */
html body #page .pn-add, html body #page .dns-add { flex: none; }
html body #page .pn-bar .cta, html body #page .dns-accbar .cta { height: 36px; box-sizing: border-box; }
html body #page .pn-bar .cta.ico, html body #page .dns-accbar .cta.ico { width: 36px; min-width: 36px; }
/* the faint cross of an account / panel box (CDN accounts, Panels): at the right end of the box, nearly invisible; it takes the account off the list when pressed (after a confirmation) and turns red under the pointer */
html body #page .dns-cw { position: relative; display: inline-flex; align-items: center; }
html body #page .dns-cw > .dns-chip { padding-right: 34px; }
/* "Add" is only a plus: a round button (accounts, panels, servers) */
html body button.cta.ico, html body #page .toolbar.joined > button.cta.ico { width: 38px; min-width: 38px; padding: 0; gap: 0; justify-content: center; }
/* the same faint cross at the end of a server's box */
/* the provider marks (ArvanCloud: a dot and a thick slanted bar in the green tile; Cloudflare: the two-tone orange cloud in a dark tile), used in the chooser, the account chips and the Add account form */
html body .pv-arvan, html body #page .dns-chip .pv-arvan { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2342f2cb'/%3E%3Cstop offset='1' stop-color='%2312b39d'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23163f45'/%3E%3Cstop offset='1' stop-color='%230b2227'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='7' fill='url(%23t)'/%3E%3Crect x='.5' y='.5' width='23' height='23' rx='6.5' fill='none' stroke='%23fff' stroke-opacity='.14'/%3E%3Ccircle cx='7' cy='16.6' r='2.7' fill='url(%23g)'/%3E%3Cpath d='M12.4 6.6L16.9 17.6' stroke='url(%23g)' stroke-width='4.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat !important; border-radius: 6px; }
html body .pv-cloudflare, html body #page .dns-chip .pv-cloudflare { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232b1b10'/%3E%3Cstop offset='1' stop-color='%23150d07'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='7' fill='url(%23t)'/%3E%3Crect x='.5' y='.5' width='23' height='23' rx='6.5' fill='none' stroke='%23fff' stroke-opacity='.14'/%3E%3Cg fill='%23f6821f'%3E%3Ccircle cx='9.4' cy='11.6' r='3.1'/%3E%3Ccircle cx='13.3' cy='10.2' r='4'/%3E%3Crect x='4.3' y='12.4' width='13' height='4.4' rx='2.2'/%3E%3C/g%3E%3Cg fill='%23fbad41'%3E%3Ccircle cx='17.6' cy='13.2' r='2.3'/%3E%3Crect x='15.2' y='13.6' width='5.2' height='3.2' rx='1.6'/%3E%3C/g%3E%3Cpath d='M4.6 16.8H20.2' stroke='%23150d07' stroke-width='.7' opacity='.55'/%3E%3C/svg%3E") center/contain no-repeat !important; border-radius: 6px; }
html body #page .dns-bar .dns-dsel[data-prov="arvan"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2342f2cb'/%3E%3Cstop offset='1' stop-color='%2312b39d'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23163f45'/%3E%3Cstop offset='1' stop-color='%230b2227'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='7' fill='url(%23t)'/%3E%3Crect x='.5' y='.5' width='23' height='23' rx='6.5' fill='none' stroke='%23fff' stroke-opacity='.14'/%3E%3Ccircle cx='7' cy='16.6' r='2.7' fill='url(%23g)'/%3E%3Cpath d='M12.4 6.6L16.9 17.6' stroke='url(%23g)' stroke-width='4.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat !important; width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
html body #page .dns-bar .dns-dsel[data-prov="cloudflare"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232b1b10'/%3E%3Cstop offset='1' stop-color='%23150d07'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='7' fill='url(%23t)'/%3E%3Crect x='.5' y='.5' width='23' height='23' rx='6.5' fill='none' stroke='%23fff' stroke-opacity='.14'/%3E%3Cg fill='%23f6821f'%3E%3Ccircle cx='9.4' cy='11.6' r='3.1'/%3E%3Ccircle cx='13.3' cy='10.2' r='4'/%3E%3Crect x='4.3' y='12.4' width='13' height='4.4' rx='2.2'/%3E%3C/g%3E%3Cg fill='%23fbad41'%3E%3Ccircle cx='17.6' cy='13.2' r='2.3'/%3E%3Crect x='15.2' y='13.6' width='5.2' height='3.2' rx='1.6'/%3E%3C/g%3E%3Cpath d='M4.6 16.8H20.2' stroke='%23150d07' stroke-width='.7' opacity='.55'/%3E%3C/svg%3E") center/contain no-repeat !important; width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
html body .pv { display: inline-block; flex: none; width: 20px; height: 20px; }
/* the provider choice of "Add account": two cards with the logos */
html body #modal .prov-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html body #modal .prov-pick button { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #d5deef; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none; transition: background .18s, border-color .18s; }
html body #modal .prov-pick button .pv { width: 26px; height: 26px; }
html body #modal .prov-pick button:hover { background: rgba(255,255,255,.08); }
html body #modal .prov-pick button.on { background: rgba(122,176,255,.16); border-color: rgba(122,176,255,.6); color: #fff; box-shadow: 0 0 0 1px rgba(122,176,255,.25); }
html[data-mode="light"] body #modal .prov-pick button { background: #fff; border-color: rgba(30,50,100,.16); color: #24304d; } html[data-mode="light"] body #modal .prov-pick button:hover { background: #f1f5fc; } html[data-mode="light"] body #modal .prov-pick button.on { background: #e3edff; border-color: #7fa9ee; color: #0b3a8c; box-shadow: 0 0 0 1px rgba(47,111,224,.2); }
/* the DNS records: smaller cards, the names a little smaller and in proportion to the rest of the card */
html body #page .dns-tbl tbody tr.dr-rec td { padding-top: 5px; padding-bottom: 5px; height: 42px; }
html body #page .dns-tbl td.name { font-size: 14px !important; font-weight: 700; letter-spacing: .005em; }
html body #page .dns-tbl td .tybadge { font-size: 11px; padding: 2px 9px; }
html body #page .dns-tbl td.mut { font-size: 12.5px; }
html body #page .dns-tbl .port-pill { height: 20px; min-width: 42px; font-size: 12px; }
html body #page .dns-tbl td.val, html body #page .dns-tbl td.val .mono { font-size: 12px; }
html body #page .dns-tbl .cl-ic { width: 26px; height: 26px; }
html body #page .dns-tbl .dr-act .ic { transform: scale(.9); }/* day mode: the small animated icons beside the page titles (servers, tunnels, panels, settings, shop bot) drawn in dark slate and soft blue instead of white */
html[data-mode="light"] body .srv-anim rect { fill: rgba(47,111,224,.1); stroke: #5b78b8; } html[data-mode="light"] body .srv-anim path { stroke: #7f93bf; } html[data-mode="light"] body .srv-anim circle { fill: #159a5e; } html[data-mode="light"] body .srv-anim .l2 { fill: #e0980a; }
html[data-mode="light"] body .tun-anim .tube { stroke: #7f9ad6; stroke-width: 1.6; } html[data-mode="light"] body .tun-anim .nd { fill: #dce8fb; stroke: #3a5aa0; stroke-width: 1.6; } html[data-mode="light"] body .tun-anim .pk { fill: #159a5e; } html[data-mode="light"] body .tun-anim .pk.l { fill: #2f6fe0; }
html[data-mode="light"] body .pan-anim .win { fill: rgba(47,111,224,.08); stroke: #3a5aa0; stroke-width: 1.6; } html[data-mode="light"] body .pan-anim .bar0 { stroke: #5b78b8; } html[data-mode="light"] body .pan-anim .dt { fill: #3a5aa0; } html[data-mode="light"] body .pan-anim .b { fill: #d58b00; } html[data-mode="light"] body .pan-anim .b2 { fill: #2f6fe0; } html[data-mode="light"] body .pan-anim .b3 { fill: #159a5e; }
html[data-mode="light"] body .bot-anim .hd { fill: rgba(47,111,224,.08); stroke: #3a5aa0; stroke-width: 1.6; } html[data-mode="light"] body .bot-anim .ant, html[data-mode="light"] body .bot-anim .mo { stroke: #3a5aa0; } html[data-mode="light"] body .bot-anim .ap { fill: #d58b00; } html[data-mode="light"] body .bot-anim .eye { fill: #2f6fe0; }
html[data-mode="light"] body .gear-anim .gear { fill: rgba(47,111,224,.12); stroke: #3a5aa0; stroke-width: 1.6; }
html[data-mode="light"] body .head h1 .t-anim, html[data-mode="light"] body #title .t-anim { opacity: 1; }html body #page .dns-tbl .port-pill { height: 22px; min-width: 46px; padding: 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }

/* ---- the left menu: groups like the sidebar of PasarGuard itself (the owner, 2026-10-14; roadmap #102). A group is a head (a page) with its sections - the tabs of the page: Servers (Foreign, Iran),
   Tunnels, Panel (Users, Hosts, Access, Core, Admins, Panel settings), Settings - on a thin line under it; the little arrow opens and closes them (web/app.js navGroup). Only the fluid layout in a wide
   window draws a group so: while a group is open its tabs are in the menu and the bar under the header is not drawn. In the rail (under 1180 px), on a phone and in the old layout a group is its head
   alone: the bar under the header has the tabs. The menu scrolls when the window is short, and the bottom bar of a phone scrolls sideways (every item keeps a hand-sized width) */
nav#nav { min-height: 0; overflow-y: auto; scrollbar-width: none; } nav#nav::-webkit-scrollbar { display: none; }
html body nav#nav a, html body nav#nav a:hover, html body nav#nav a.on:hover { transform: none !important; }      /* the card of an item keeps its size and its place when the mouse is over it (it slid 3 px to the right, under the edge of the menu, and the arrow of a group stayed behind) */
@media not ((max-width: 760px) and (pointer: coarse)) { .side { max-height: calc(100vh - 28px); min-height: 0; } }      /* a short window: the menu scrolls inside the side bar, the sign-out stays in view */
nav#nav .nav-g, nav#nav .nav-gh, nav#nav .nav-sub { display: contents; } nav#nav .nav-tg { display: none; }      /* (the default: the wrappers are not there) */
nav#nav .nav-g .nav-sub { display: none; }      /* (the tabs of a page are in the bar under the header, except in a wide window) */
@media (min-width: 1181px) {
  html[data-fluid][data-navsub="1"] #subnav { display: none; }      /* the open page has its tabs in the menu */
  html[data-fluid] nav#nav, html[data-fluid] nav#nav .nav-g { grid-template-columns: minmax(0, 1fr); }      /* the column is as wide as the menu, never as wide as its longest label (the menu was one track of 214 px in a box of 192: the end of "Tunnel manager" was cut by the edge) */
  html[data-fluid] nav#nav .nav-g { display: grid; gap: 4px; }
  html[data-fluid] nav#nav .nav-gh { display: block; position: relative; }
  html[data-fluid] body nav#nav .nav-gh > a { padding-right: 44px; }
  html[data-fluid] body nav#nav .nav-gh > a::after { content: none !important; display: none !important; }      /* the arrow of the head is the button, not the chevron of the other items */
  html[data-fluid] nav#nav .nav-tg { display: grid; place-items: center; position: absolute; right: 7px; top: 50%; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--mut); cursor: pointer; }
  html[data-fluid] nav#nav .nav-tg::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .2s ease, opacity .2s ease; }
  html[data-fluid] nav#nav .nav-g[data-open="1"] .nav-tg::before { transform: translateY(-2px) rotate(135deg); }
  html[data-fluid] nav#nav .nav-tg:hover { background: rgba(255,255,255,.08); color: var(--text); } html[data-fluid] nav#nav .nav-tg:hover::before { opacity: 1; }
  html[data-fluid] nav#nav .nav-tg:focus-visible { outline: 2px solid rgba(47,139,255,.7); outline-offset: 1px; }
  html[data-fluid] nav#nav .nav-g .nav-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0 0 2px 16px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.14); }
  html[data-fluid] nav#nav .nav-g[data-open="0"] .nav-sub { display: none; }
  html[data-fluid] body nav#nav .nav-sub a { height: 40px; min-width: 0; padding: 0 8px; gap: 8px; font-size: 13.5px; border-radius: 12px; }
  html[data-fluid] body nav#nav .nav-sub a::after { content: none !important; display: none !important; }      /* a section has no chevron: only the head opens something */
  html[data-fluid] nav#nav .nav-sub a .ic { flex: none; width: 22px; height: 22px; } html[data-fluid] nav#nav .nav-sub a .ic svg { width: 19px; height: 19px; }
  html[data-fluid] nav#nav .nav-g.has-on > .nav-gh > a:not(.on) { color: var(--text); background: rgba(255,255,255,.05); }      /* the open page is one of the sections: the head says so while the group is closed */
  html[data-fluid] body nav#nav .nav-g.has-on[data-open="1"] > .nav-gh > a.on { color: var(--text); border-color: transparent; background: rgba(255,255,255,.05); box-shadow: none; }      /* the head of a "tabs" group while one of its tabs is the open one: the tab is the blue one */
  html[data-fluid] body nav#nav .nav-g.has-on[data-open="1"] > .nav-gh > a.on::before { display: none; }
  html[data-fluid] body nav#nav .nav-g.has-on[data-open="1"] > .nav-gh > a.on .ic { color: var(--ic); }
  html[data-mode="light"][data-fluid] nav#nav .nav-g .nav-sub { border-left-color: rgba(30,50,100,.18); }
  html[data-mode="light"][data-fluid] nav#nav .nav-tg:hover { background: rgba(30,50,100,.08); }
  html[data-mode="light"][data-fluid] nav#nav .nav-g.has-on > .nav-gh > a:not(.on), html[data-mode="light"][data-fluid] body nav#nav .nav-g.has-on[data-open="1"] > .nav-gh > a.on { background: rgba(30,50,100,.06); }
  html[dir="rtl"][data-fluid] nav#nav .nav-tg { right: auto; left: 7px; }
  html[dir="rtl"][data-fluid] body nav#nav .nav-gh > a { padding-right: 14px; padding-left: 44px; }
  html[dir="rtl"][data-fluid] nav#nav .nav-g .nav-sub { margin: 0 16px 2px 0; padding: 0 6px 0 0; border-left: 0; border-right: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 760px) and (pointer: coarse) {
  #nav { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; } #nav::-webkit-scrollbar { display: none; }
  #nav a { flex: 0 0 auto; min-width: 64px; }
}
/* a page of the PasarGuard group has one tab: the strip is not drawn, an empty bar takes no room */
.pn-bars:empty { display: none; }
/* the line of PasarGuard nodes under the buttons of a server window: one row for every node (the panel, its state, a button to the Node view), or the offer to make the server one */
.pg-nline { display: grid; gap: 6px; margin: 0 0 8px; }
.pg-nl { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; padding: 6px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); font-size: 12.5px; }
.pg-nl > * { flex: none; } .pg-nl > small { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pg-nl > .sp { flex: 1 1 0; min-width: 0; } .pg-nl > .mchip { flex: 0 1 auto; min-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-nl b { font-size: 12.5px; font-weight: 600; white-space: nowrap; } .pg-nl.off { opacity: .85; } .pg-nl .sm { height: 28px; }
#modal .pg-nl .dotc { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5b667c; } #modal .pg-nl .dotc.ok { background: #30d158; box-shadow: 0 0 8px rgba(48,209,88,.55); } #modal .pg-nl .dotc.bad { background: #ff453a; box-shadow: 0 0 8px rgba(255,69,58,.5); }
html[data-mode="light"] .pg-nl { background: #f6f9fe; border-color: rgba(30,50,100,.12); }
/* the error box of a form */
html body #modal .qp-err { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,90,100,.1); border: 1px solid rgba(255,90,100,.4); color: #ffb3bd; font-size: 13px; line-height: 1.45; animation: qpErrIn .18s ease-out; }
html body #modal .qp-err > i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: rgba(255,90,100,.3); color: #fff; margin-top: 1px; }
html body #modal .qp-err > span { min-width: 0; overflow-wrap: anywhere; }
@keyframes qpErrIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
html[data-mode="light"] body #modal .qp-err { background: #fdecee; border-color: rgba(200,40,60,.4); color: #9b1c2a; } html[data-mode="light"] body #modal .qp-err > i { background: #d4304a; color: #fff; }/* the list of DNS names in Create tunnel: the provider mark, the name, the address and the account on one line; it scrolls inside */
html body .sugg { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
html body .sugg .sg-i { display: flex; align-items: center; gap: 10px; }
html body .sugg .sg-i .pv { width: 18px; height: 18px; flex: none; }
html body .sugg .sg-i > b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .sugg .sg-i > small.mono { flex: none; opacity: .75; }
html body .sugg .sg-i > .sg-acc { margin-left: auto; flex: none; font-size: 11px; opacity: .6; }
/* ---- 1.36: the Tunnel Doctor in three modes - the mode cards, the two settings, the suggestions, the ledger of moves ---- */
html body #page .ap-modes { padding: 10px 12px 10px; margin: 0 0 10px; }
html body #page .ap-mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body #page .ap-mode { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; gap: 10px; min-height: 60px; height: auto; padding: 8px 10px 8px 9px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); box-shadow: none; text-align: left; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 500; cursor: pointer; overflow: visible; }
html body #page .ap-mode:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); transform: none; }
html body #page .ap-mode.on { border-color: #4da3ff; background: rgba(77,163,255,.09); box-shadow: 0 0 0 1px rgba(77,163,255,.45) inset; }
html body #page .ap-mode.locked { opacity: .55; cursor: default; } html body #page .ap-mode:disabled { cursor: default; }
html body #page .ap-mode .ap-mi { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 17px; font-style: normal; filter: grayscale(1); opacity: .8; }
html body #page .ap-mode.on .ap-mi { filter: none; opacity: 1; background: rgba(77,163,255,.16); }
html body #page .ap-mode .ap-mt { display: grid; gap: 2px; min-width: 0; }
html body #page .ap-mode .ap-mt b { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } html body #page .ap-mode.on .ap-mt b { color: #7cbcff; }
html body #page .ap-mode .ap-mt small { font-size: 11.5px; line-height: 1.35; color: var(--mut); white-space: normal; font-weight: 500; }
html body #page .ap-mode .ap-mchk { font-style: normal; font-weight: 800; color: #4da3ff; font-size: 14px; text-align: center; }
html body #page .ap-cfg { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
html body #page .ap-cfg .ap-f { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mut); white-space: nowrap; }
html body #page .ap-cfg input[type=number] { width: 62px; height: 28px; border-radius: 9px; font-size: 12.5px; text-align: center; }
html body #page .ap-cfg button { height: 28px; } html body #page .ap-cfg .sp { flex: 1; } html body #page .ap-cfg .pill { height: 24px; display: inline-flex; align-items: center; }
@media (max-width: 1000px) { html body #page .ap-mgrid { grid-template-columns: 1fr; } }
/* the suggestions: a yellow box at the top of "In progress" */
html body #page .sug-box { margin: 0 0 10px; } html body #page .sug-box .ap-row { margin: 0; background: rgba(0,0,0,.14); border-color: rgba(255,255,255,.07); }
html body #page .sug-box .nw-title small { font-weight: 500; text-transform: none; letter-spacing: 0; }
html body #page .ap-sug .ap-ft { white-space: nowrap; color: var(--mut); } html body #page .ap-sug .ap-ft em { font-style: normal; color: var(--text); font-weight: 600; }
html body #page .ap-sug .ap-why { color: var(--mut); } html body #page .ap-sug time { font-size: 11px; color: var(--mut); white-space: nowrap; }
/* the ledger of moves: one line each, zebra, the way back at the right */
html body #page .mv-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 8px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 12.5px; }
html body #page .mv-bar .mv-plan { display: inline-flex; align-items: center; gap: 8px; } html body #page .mv-bar select { height: 28px; font-size: 12.5px; border-radius: 9px; min-width: 120px; } html body #page .mv-bar button { height: 28px; }
html body #page .mv-bar .sp { flex: 1; } html body #page .mv-bar > small { font-size: 11.5px; }
html body #page .mv-list { display: grid; gap: 4px; max-height: calc(100vh - 420px); min-height: 160px; overflow: auto; }
html body #page .mv-row { display: grid; grid-template-columns: 64px 78px minmax(90px, .8fr) minmax(130px, auto) minmax(0, 1.5fr) 52px 70px auto; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.025); font-size: 12.5px; }
html body #page .mv-row:nth-child(even) { background: rgba(255,255,255,.05); }
html body #page .mv-row.bad { border-color: rgba(255,107,139,.35); } html body #page .mv-row.back { opacity: .7; }
html body #page .mv-row time { font-size: 11px; color: var(--mut); white-space: nowrap; }
html body #page .mv-row .mv-k { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
html body #page .mv-row .mv-k.k-down { color: #ff8da1; } html body #page .mv-row .mv-k.k-resources { color: #ffcf3a; } html body #page .mv-row .mv-k.k-return { color: #5ee07f; }
html body #page .mv-row .mv-t { display: flex; flex-wrap: wrap; gap: 4px 8px; min-width: 0; } html body #page .mv-row .mv-t .tchip { font-weight: 600; font-size: 12px; }
html body #page .mv-row .mv-ft { white-space: nowrap; color: var(--mut); } html body #page .mv-row .mv-ft em { font-style: normal; color: var(--text); font-weight: 600; }
html body #page .mv-row .mv-why { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
html body #page .mv-row .mv-dns { font-size: 11.5px; white-space: nowrap; text-align: right; } html body #page .mv-row .pill { justify-self: start; }
html body #page .mv-row .mv-act { display: inline-flex; gap: 6px; justify-content: flex-end; } html body #page .mv-row .mv-act button { height: 24px; padding: 0 9px; font-size: 11.5px; white-space: nowrap; }
@media (max-width: 1100px) { html body #page .mv-row { grid-template-columns: 64px 78px minmax(90px, 1fr) auto; } html body #page .mv-row .mv-why, html body #page .mv-row .mv-dns { display: none; } html body #page .mv-row .pill { grid-column: 1 / span 2; } html body #page .mv-row .mv-act { grid-column: 3 / span 2; } }
/* the CPU cores live under the Analyst now */
html body #page .ap-tasks #ap-t-ana > .card.ap-bal { margin: 12px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
/* day mode */
html[data-mode="light"] body #page .ap-mode { background: #fff; border-color: #d7deea; } html[data-mode="light"] body #page .ap-mode:hover { background: #f6f8fc; border-color: #c2cce0; }
html[data-mode="light"] body #page .ap-mode.on { background: #e3edff; border-color: #9bbcf3; box-shadow: none; } html[data-mode="light"] body #page .ap-mode.on .ap-mt b { color: #1456c8; } html[data-mode="light"] body #page .ap-mode .ap-mchk { color: #1456c8; }
html[data-mode="light"] body #page .ap-mode .ap-mi { background: #eef2f8; } html[data-mode="light"] body #page .ap-mode.on .ap-mi { background: #cfe0fc; }
html[data-mode="light"] body #page .mv-bar, html[data-mode="light"] body #page .mv-row { background: #f6f8fc; } html[data-mode="light"] body #page .mv-row:nth-child(even) { background: #eef2f8; }
html[data-mode="light"] body #page .sug-box .ap-row { background: #fff; border-color: #e3d9b8; }
html[data-mode="light"] body #page .mv-row .mv-k.k-down { color: #c0304f; } html[data-mode="light"] body #page .mv-row .mv-k.k-resources { color: #9a6b00; } html[data-mode="light"] body #page .mv-row .mv-k.k-return { color: #1f8a3c; }
/* 1.36.1: each setting sits in the card of its mode (the tunnel's waiting time in "Fix tunnels", the server's in "Fix + move"); the Fix all / Explain buttons moved beside the tabs */
html body #page .ap-mode { grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: start; min-height: 0; padding: 9px 10px 9px 9px; }
html body #page .ap-mode .ap-mi { margin-top: 1px; } html body #page .ap-mode .ap-mchk { margin-top: 8px; }
html body #page .ap-mode.dis { cursor: default; } html body #page .ap-mode.dis:hover { background: rgba(255,255,255,.03); border-color: var(--line); }
html body #page .ap-mode .ap-cf { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.1); font-size: 11.5px; color: var(--mut); cursor: default; }
html body #page .ap-mode .ap-cf input { width: 54px; height: 24px; border-radius: 8px; font-size: 12px; text-align: center; padding: 0 4px; } html body #page .ap-mode .ap-cf input:disabled { opacity: .55; }
html body #page .ap-mode.on .ap-cf { color: var(--text); border-top-color: rgba(77,163,255,.3); }
html body #page .ap-thead { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; } html body #page .ap-thead .ap-ttabs { margin: 0; } html body #page .ap-thead .sp { flex: 1; }
html body #page .ap-tacts { display: inline-flex; align-items: center; gap: 8px; } html body #page .ap-tacts .pill { height: 24px; display: inline-flex; align-items: center; } html body #page .ap-tacts button { height: 28px; }
html[data-mode="light"] body #page .ap-mode .ap-cf { border-top-color: #d7deea; } html[data-mode="light"] body #page .ap-mode.dis:hover { background: #fff; border-color: #d7deea; }
/* ---- 1.36.2: the Analyst's tables look like the tunnel / server lists (lifted header, zebra), the CPU cores are a tab of it; the number fields of the mode cards; the Doctor's lists in the day theme ---- */
html body #page .ana-tbl { border-spacing: 0 4px; } html body #page .ana-tbl td { height: 34px; padding: 0 10px; font-size: 12.5px; } html body #page .ana-tbl th { position: sticky; top: 0; z-index: 1; }
html body #page .ana-tbl tbody tr:nth-child(odd) td { background: rgba(255,255,255,.026); }
html body #page .ana-tbl .ana-why td { height: auto; padding: 0 10px 6px; white-space: normal; background: transparent; border: 0; }
html body #page .ana-bar { margin: 0 0 8px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 12.5px; } html body #page .ana-bar .chk { font-size: 12.5px; text-transform: none; letter-spacing: 0; }
html body #page .ana-bar select { height: 28px; font-size: 12.5px; border-radius: 9px; } html body #page .ana-bar button { height: 28px; }
html body #page .ap-bal-list { display: grid; gap: 4px; } html body #page .ap-bal-list .ap-row { margin: 0; min-height: 38px; border-color: transparent; background: rgba(255,255,255,.025); } html body #page .ap-bal-list .ap-row:nth-child(even) { background: rgba(255,255,255,.05); }
/* the number fields inside the mode cards: a small fixed box, centred figures, no spinner */
html body #page .ap-mode .ap-cf input[type=number] { -moz-appearance: textfield; appearance: textfield; width: 58px; height: 26px; padding: 0 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.28); color: var(--text); font-weight: 600; font-size: 12.5px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
html body #page .ap-mode .ap-cf input::-webkit-outer-spin-button, html body #page .ap-mode .ap-cf input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body #page .ap-mode .ap-cf input:focus { outline: 0; border-color: #4da3ff; box-shadow: 0 0 0 2px rgba(77,163,255,.25); }
html body #page .ap-mode .ap-cf span { font-weight: 500; } html body #page .ap-mode .ap-cf input:disabled { opacity: .5; }
/* day theme: the Finished list's lines, Best today's pods and rows, the verdict chips, the Analyst's tables, the cores */
html[data-mode="light"] body #page .ap-tasks .tk-one { color: #3a4a6e; } html[data-mode="light"] body #page .ap-tasks .tk.ok .tk-one { color: #1f6b3a; } html[data-mode="light"] body #page .ap-tasks .tk-line span { color: #3a4a6e; } html[data-mode="light"] body #page .ap-tasks .tk .fx-line span { color: #3a4a6e; }
html[data-mode="light"] body #page .bt-pod { background: #fff; border-color: #d7deea; } html[data-mode="light"] body #page .bt-pod.p1 { background: linear-gradient(160deg, rgba(240,190,70,.16), transparent 60%), #fff; border-color: #e9cf8a; }
html[data-mode="light"] body #page .bt-pod > b, html[data-mode="light"] body #page .bt-pod .bt-s, html[data-mode="light"] body #page .bt-s.ok { color: #14213d; } html[data-mode="light"] body #page .bt-pod .bt-s em { color: #6a7898; }
html[data-mode="light"] body #page .bt-chips span { background: #eef2f8; color: #3a4a6e; }
html[data-mode="light"] body #page .bt-row { background: #f6f8fc; color: #14213d; } html[data-mode="light"] body #page .bt-row:nth-child(even) { background: #eef2f8; } html[data-mode="light"] body #page .bt-row.bt-head { background: transparent; color: #4a5a7e; }
html[data-mode="light"] body #page .bt-sc .bt-track { background: #dfe5ef; } html[data-mode="light"] body #page .bt-row .bt-nm b { color: #14213d; }
html[data-mode="light"] body #page .ana-v { background: #eef2f8; } html[data-mode="light"] body #page .ana-v.stable, html[data-mode="light"] body #page .ana-v.light { color: #1f8a3c; background: #e3f5e8; } html[data-mode="light"] body #page .ana-v.watch, html[data-mode="light"] body #page .ana-v.ok { color: #9a6b00; background: #fbf1d6; } html[data-mode="light"] body #page .ana-v.chronic, html[data-mode="light"] body #page .ana-v.busy { color: #c0304f; background: #fde6ea; } html[data-mode="light"] body #page .ana-v.idle, html[data-mode="light"] body #page .ana-v.redundant { color: #0b6e94; background: #dff3fb; }
html[data-mode="light"] body #page .ana-line { background: #f6f8fc; box-shadow: none; border: 1px solid #e3e8f1; color: #14213d; }
html[data-mode="light"] body #page .ana-tbl th { background: #eef2f8; color: #4a5a7e; } html[data-mode="light"] body #page .ana-tbl tbody tr:nth-child(odd) td { background: #f6f8fc; } html[data-mode="light"] body #page .ana-tbl .ana-why td { background: transparent; }
html[data-mode="light"] body #page .ana-bar { background: #f6f8fc; border-color: #d7deea; color: #14213d; }
html[data-mode="light"] body #page .ap-bal-list .ap-row { background: #f6f8fc; } html[data-mode="light"] body #page .ap-bal-list .ap-row:nth-child(even) { background: #eef2f8; } html[data-mode="light"] body #page .bal-bars { background: #e3e8f1; }
html[data-mode="light"] body #page .ap-mode .ap-cf input[type=number] { background: #fff; border-color: #c2cce0; color: #14213d; box-shadow: inset 0 1px 2px rgba(30,50,100,.08); }
html[data-mode="light"] body #page .mv-row .mv-ft em, html[data-mode="light"] body #page .ap-sug .ap-ft em, html[data-mode="light"] body #page .mv-row .mv-t .tchip { color: #14213d; }
/* day theme, the servers list: the bars get a visible track and keep their level colours; the flag behind the name is a faint tint, not a grey smear */
html[data-mode="light"] body #page .pbar .bar { background: rgba(30,50,100,.13) !important; }
html[data-mode="light"] body .pbar .bar i { background: #3b7be8 !important; } html[data-mode="light"] body .pbar .bar i.warn { background: #e0a030 !important; } html[data-mode="light"] body .pbar .bar i.bad { background: #e0485a !important; }
html[data-mode="light"] body #page .srv-tbl td.name.has-flag::before { opacity: .16 !important; filter: grayscale(1) !important; } html[data-mode="light"] body #page .srv-tbl tr:hover td.name.has-flag::before { opacity: .55 !important; filter: none !important; }
html[data-mode="light"] body #page .srv-tbl tr.srv-off td.name.has-flag::before { opacity: .1 !important; }
/* the side menu: flat labels - no ghost (the stacked drop-shadows and the tilted hover of the old 3D look), in both themes */
html body nav#nav a > span, html body nav#nav a:hover > span, html body nav#nav a.on > span { filter: none !important; transform: none !important; }
html[data-mode="light"] body nav#nav a > span { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: #2a3055 !important; opacity: 1 !important; }
html[data-mode="light"] body nav#nav a.on > span { color: #1456c8 !important; } html[data-mode="light"] body nav#nav a.nav-off > span { color: #8a93ad !important; }
html[data-mode="light"] body nav#nav a .ic, html[data-mode="light"] body nav#nav a .ic svg, html[data-mode="light"] body nav#nav a:hover .ic svg, html[data-mode="light"] body nav#nav a.on .ic svg { filter: none !important; }
/* day theme, the side menu's icons: slate, full strength; the open page's icon blue; the switched-off entry stays faded */
html[data-mode="light"] body nav#nav a .ic { --ic: #4a5a7e; color: #4a5a7e !important; opacity: 1 !important; }
html[data-mode="light"] body nav#nav a .ic svg { opacity: .92 !important; stroke: #4a5a7e; }
html[data-mode="light"] body nav#nav a:hover .ic, html[data-mode="light"] body nav#nav a:hover .ic svg { color: #1456c8 !important; stroke: #1456c8; opacity: 1 !important; }
html[data-mode="light"] body nav#nav a.on .ic { --ic: #1456c8; color: #1456c8 !important; } html[data-mode="light"] body nav#nav a.on .ic svg { stroke: #1456c8; opacity: 1 !important; }
html[data-mode="light"] body nav#nav a .ic .led { fill: currentColor; }
html[data-mode="light"] body nav#nav a.nav-off .ic, html[data-mode="light"] body nav#nav a.nav-off .ic svg { color: #8a93ad !important; stroke: #8a93ad; }
html[data-mode="light"] body nav#nav a .ic svg, html[data-mode="light"] body nav#nav a .ic svg * { stroke: #4a5a7e !important; color: #4a5a7e !important; }
html[data-mode="light"] body nav#nav a:hover .ic svg, html[data-mode="light"] body nav#nav a:hover .ic svg *, html[data-mode="light"] body nav#nav a.on .ic svg, html[data-mode="light"] body nav#nav a.on .ic svg *, html[data-mode="light"] body nav#nav a.active .ic svg, html[data-mode="light"] body nav#nav a.active .ic svg * { stroke: #1456c8 !important; color: #1456c8 !important; }
html[data-mode="light"] body nav#nav a.nav-off .ic svg, html[data-mode="light"] body nav#nav a.nav-off .ic svg * { stroke: #a4acc2 !important; color: #a4acc2 !important; }
/* ---- 1.37: Panels -> All panels (accounts over every panel) ---- */
html body #page .pa-box { max-height: calc(100vh - 250px); min-height: 160px; overflow: auto; margin: 0 0 6px; }
html body #page .pa-tbl { table-layout: fixed; } html body #page .pa-tbl td { height: 46px; }
html body #page .pa-tbl td.pa-ch { white-space: normal; overflow: hidden; line-height: 1; padding-top: 4px; padding-bottom: 4px; }
html body #page .pa-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; margin: 2px 6px 2px 0; padding: 0 9px 0 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); font-size: 11.5px; font-weight: 600; color: #d5deef; }
html body #page .pa-dot { width: 7px; height: 7px; border-radius: 50%; background: #8a93ad; } html body #page .pa-dot.ok { background: #30d158; } html body #page .pa-dot.bad { background: #ff5a52; }
html body #page .pa-foot { display: block; margin: 4px 2px 0; }
html body #modal .pa-ms { display: grid; gap: 6px; margin: 0 0 10px; } html body #modal .pa-m { margin: 0; gap: 10px; flex-wrap: wrap; } html body #modal .pa-m .sp { flex: 1; }
html body #modal .pa-add { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; padding: 8px 10px; border-radius: 12px; border: 1px dashed var(--line); } html body #modal .pa-add select, html body #modal .pa-add input { height: 30px; font-size: 12.5px; border-radius: 9px; } html body #modal .pa-add input { flex: 1; min-width: 160px; }
html[data-mode="light"] body #page .pa-chip { background: #fff; border-color: #c2cce0; color: #24304d; } html[data-mode="light"] body #page .pa-dot { background: #a4acc2; } html[data-mode="light"] body #page .pa-dot.ok { background: #1f9d4a; } html[data-mode="light"] body #page .pa-dot.bad { background: #e0485a; }
html body #modal form.pa-add { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 10px; } html body #modal form.pa-add > span { flex: none; white-space: nowrap; } html body #modal form.pa-add select { flex: 0 0 170px; width: 170px; min-width: 0; } html body #modal form.pa-add input { flex: 1 1 auto; width: auto; min-width: 0; } html body #modal form.pa-add button { flex: none; width: auto; }
html body #modal form.pa-add { flex-wrap: wrap; } html body #modal form.pa-add input { flex: 1 1 180px; min-width: 150px; }

/* ---- 1.38: Panels -> Outbound (the pool of exits, the Iran servers that carry it, the forwards) ---- */
html body #page .ob2-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 10px; padding: 8px 12px; }
html body #page .ob2-top .sp { flex: 1; } html body #page .ob2-top button { height: 32px; } html body #page .ob2-top .pill { height: 26px; display: inline-flex; align-items: center; }
html body #page .ob2-modes button { min-width: 96px; }
html body #page .ob2-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: stretch; }
html body #page .ob2-card { display: flex; flex-direction: column; height: calc(100vh - 290px); min-height: 380px; margin: 0; padding: 10px 12px 12px; }
html body #page .ob2-card > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; } html body #page .ob2-card > h3 .sp { flex: 1; } html body #page .ob2-card > h3 .sm { text-transform: none; letter-spacing: 0; }
html body #page .ob2-list { flex: 1 1 0; min-height: 0; overflow: auto; display: grid; gap: 4px; align-content: start; padding-right: 2px; }
html body #page .ob2-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 12.5px; }
html body #page .ob2-row:nth-child(even) { background: rgba(255,255,255,.055); } html body #page .ob2-row.off { opacity: .55; }
html body #page .ob2-row > button.sm { flex: none; height: 24px; padding: 0 9px; font-size: 11.5px; }
html body #page .ob2-nm { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; } html body #page .ob2-nm b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } html body #page .ob2-nm small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #page .ob2-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8a93ad; } html body #page .ob2-dot.ok { background: #30d158; } html body #page .ob2-dot.warn { background: #ffcf3a; } html body #page .ob2-dot.bad { background: #ff5a52; }
html body #page .ob2-ex { flex: none; width: 110px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } html body #page .ob2-ms { flex: none; width: 58px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
html body #page .ob2-sw { margin: 0; flex: none; padding: 0; width: 38px; height: 22px; background: transparent; border: 0; }
html body #page .ob2-pick { flex: none; display: inline-flex; align-items: center; gap: 8px; min-width: 96px; } html body #page .ob2-pick b { font-size: 13px; }
html body #page .ob2-ago { flex: none; width: 64px; font-size: 11px; white-space: nowrap; }
html body #page .ob2-port { flex: none; width: 62px; color: #7cbcff; font-size: 12.5px; font-weight: 600; }
html body #page .ob2-add { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; } html body #page .ob2-add textarea { flex: 1; min-height: 56px; max-height: 96px; resize: vertical; font-size: 12px; border-radius: 10px; }
html body #page .ob2-add.one { align-items: center; } html body #page .ob2-add.one input { height: 30px; font-size: 12.5px; border-radius: 9px; flex: 1; min-width: 0; } html body #page .ob2-add.one input[type=number] { flex: 0 0 84px; } html body #page .ob2-add button { height: 30px; }
html body #page .ob2-res { display: grid; gap: 2px; margin-top: 6px; font-size: 11.5px; max-height: 70px; overflow: auto; } html body #page .ob2-res span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #page .ob2-note { display: block; margin-top: 8px; line-height: 1.4; }
html body #modal .ob2-sgs { display: grid; gap: 10px; max-height: 52vh; overflow: auto; margin: 0 0 8px; } html body #modal .ob2-sg { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
html body #modal .ob2-sg h5 { margin: 0 0 6px; font-size: 13px; } html body #modal .ob2-sgl { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 4px 0; } html body #modal .ob2-sgl > b { flex: none; width: 52px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--mut); }
html body #modal .ob2-sgl .chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; } html body #modal .ob2-sgl .chk small { font-size: 11px; }
@media (max-width: 1250px) { html body #page .ob2-grid { grid-template-columns: 1fr; } html body #page .ob2-card { height: auto; min-height: 0; } html body #page .ob2-list { max-height: 320px; } }
html[data-mode="light"] body #page .ob2-row { background: #f6f8fc; } html[data-mode="light"] body #page .ob2-row:nth-child(even) { background: #eef2f8; }
html[data-mode="light"] body #page .ob2-dot { background: #a4acc2; } html[data-mode="light"] body #page .ob2-dot.ok { background: #1f9d4a; } html[data-mode="light"] body #page .ob2-dot.warn { background: #d99a00; } html[data-mode="light"] body #page .ob2-dot.bad { background: #e0485a; }
html[data-mode="light"] body #page .ob2-port { color: #1456c8; } html[data-mode="light"] body #modal .ob2-sg { background: #f6f8fc; border-color: #d7deea; }
html body #page .ob2-srv { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n p" "h a"; align-items: center; gap: 2px 10px; min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
html body #page .ob2-srv .ob2-pick { grid-area: n; min-width: 0; } html body #page .ob2-srv .pill { grid-area: p; justify-self: end; white-space: nowrap; font-size: 11px; height: 22px; display: inline-flex; align-items: center; }
html body #page .ob2-srv .ob2-h { grid-area: h; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; } html body #page .ob2-srv > button.sm, html body #page .ob2-srv > span:last-child { grid-area: a; justify-self: end; }
html body #page .ob2-top .ob2-tabs { margin-right: 4px; } html body #page .ob2-top .sep { height: 22px; width: 1px; background: var(--line); }
html body #page .ob2-usr { padding: 4px 8px 8px; margin: 0 0 8px; max-height: calc(100vh - 300px); overflow: auto; } html body #page .ob2-usr .tbl td { height: 42px; } html body #page .ob2-usr td.name small { display: block; font-size: 11px; }
html body #page .ob2-relay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 10px; padding: 8px 12px; } html body #page .ob2-relay .sp { flex: 1; } html body #page .ob2-relay .ob2-rt { font-size: 11.5px; max-width: 560px; line-height: 1.35; }
html body #page .ob2-relay select { height: 28px; font-size: 12.5px; border-radius: 9px; max-width: 220px; } html body #page .ob2-relay > button.sm { height: 28px; }
html body #page .ob2-hub { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 12px; } html body #page .ob2-hub b { font-weight: 600; } html body #page .ob2-hub small { color: var(--mut); } html body #page .ob2-hub button.sm { height: 20px; width: 20px; padding: 0; border-radius: 50%; font-size: 10px; }
html body #page .ob2-um { margin: 0 0 10px; }
html[data-mode="light"] body #page .ob2-hub { background: #fff; border-color: #c2cce0; }
html body #page .ob2-card > h3 { flex-wrap: nowrap; white-space: nowrap; } html body #page .ob2-card > h3 .sm { flex: none; padding: 0 9px; font-size: 11.5px; } html body #page .ob2-card > h3 .pill { flex: none; }

/* ---- 1.40: Outbound in four steps ---- */
html body #page .ob3 { display: grid; gap: 10px; max-width: 1000px; margin: 0 auto; }
html body #page .ob3-step { margin: 0; padding: 10px 14px 12px; }
html body #page .ob3-step > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; text-transform: none; letter-spacing: 0; font-size: 14px; } html body #page .ob3-step > h3 .sp { flex: 1; }
html body #page .ob3-step > h3 b { font-size: 14px; font-weight: 700; color: var(--text); } html body #page .ob3-step > h3 small { font-size: 12px; }
html body #page .ob3-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(77,163,255,.18); color: #7cbcff; font-style: normal; font-weight: 800; font-size: 12.5px; flex: none; }
html body #page .ob3-list { flex: none; max-height: 200px; min-height: 0; } html body #page .ob3-empty { padding: 10px 4px; font-size: 12.5px; }
html body #page .ob3-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
html body #page .ob3-tile { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; font-size: 12.5px; }
html body #page .ob3-tile.on { border-color: rgba(77,163,255,.55); background: rgba(77,163,255,.09); } html body #page .ob3-tile b { font-weight: 600; }
html body #page .ob3-tile .pill, html body #page .ob3-tile small { margin-left: auto; font-size: 11px; white-space: nowrap; }
html body #page .ob3-hint { display: block; margin-top: 8px; line-height: 1.4; }
html body #page .ob3-relay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 12.5px; } html body #page .ob3-relay select { height: 28px; border-radius: 9px; font-size: 12.5px; max-width: 240px; } html body #page .ob3-relay button.sm { height: 28px; }
html body #page .ob3-go { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0; padding: 12px 14px; } html body #page .ob3-go .sp { flex: 1; }
html body #page .ob3-start { height: 42px; padding: 0 34px; font-size: 15px; border-radius: 12px; } html body #page .ob3-gohint { font-size: 11.5px; max-width: 540px; line-height: 1.4; }
html body #page .ob3-adv { margin: 0; padding: 8px 14px 10px; } html body #page .ob3-adv summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--mut); }
html body #page .ob3-advrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 6px; font-size: 12.5px; } html body #page .ob3-advrow .sp { flex: 1; }
html[data-mode="light"] body #page .ob3-tile { background: #f6f8fc; } html[data-mode="light"] body #page .ob3-tile.on { background: #e3edff; border-color: #9bbcf3; } html[data-mode="light"] body #page .ob3-n { background: #dbe7fb; color: #1456c8; }
/* ---- 1.41: one action on every panel of an account, the merged link */
html body #modal .pa-act { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
html body #modal .pa-act select.sm { height: 30px; font-size: 12.5px; border-radius: 9px; width: auto; min-width: 190px; }
html body #modal #pa-link .tok-show { margin: 4px 0 6px; padding: 6px 8px; gap: 8px; }
html body #modal #pa-link .tok-show input { flex: 1 1 auto; min-width: 0; height: 30px; font-size: 12px; border-radius: 9px; }
html body #modal #pa-link a { cursor: pointer; text-decoration: underline; }
html body #modal .pa-nps { display: grid; gap: 6px; margin: 4px 0 10px; }
html body #modal .pa-np { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; box-shadow: var(--edge); } html body #modal .pa-np select { margin-left: auto; height: 28px; font-size: 12px; border-radius: 8px; width: auto; min-width: 120px; }
html body #modal .pa-np { width: 100%; box-sizing: border-box; } html body #modal .pa-np b { flex: 1 1 auto; white-space: nowrap; }
html body #modal .pa-np small { flex: none; }
/* ---- 1.40: Outbound in one page: the labels of the choice, the ports box, the addresses for the CDN */
html body #page .ob3-lbl { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 5px; font-size: 12.5px; } html body #page .ob3-lbl b { font-size: 12.5px; font-weight: 700; } html body #page .ob3-lbl:first-of-type { margin-top: 2px; }
html body #page .ob3-ports { margin-bottom: 0; } html body #page .ob3-ports input { flex: 1 1 220px; max-width: 380px; }
html body #page .ob3-relay { margin-top: 10px; }
html body #page .ob3-path .ob3-addr { display: inline-flex; align-items: center; gap: 8px; min-width: 230px; } html body #page .ob3-path .ob3-addr b { font-size: 13px; }
html body #page .ob3-adv + .ob3-adv { margin-top: -6px; } html body #page .ob3-adv summary small { font-weight: 400; margin-left: 6px; }
html body #page .ob3-tiles { position: relative; max-height: 184px; overflow-y: auto; padding-right: 2px; } html body #page .ob3-tile { position: relative; }
/* ---- 1.40.1: Outbound in the Tunnels section, full width: the steps side by side, the server lists like the Servers page */
html body #page .ob4 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: start; }
html body #page .ob4-col { display: grid; gap: 12px; align-content: start; min-width: 0; } html body #page .ob4-wide { grid-column: 1 / -1; display: grid; gap: 12px; }
html body #page .ob4 .ob3-step, html body #page .ob4 .ob3-adv { margin: 0; }
html body #page .ob4-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
html body #page .ob4-box.lbox { height: 300px; max-height: none; min-height: 0; margin: 0; } html body #page .ob4-pbox.lbox { max-height: 280px; margin: 0; }
html body #page .ob4-box tbody tr.sel td { background: rgba(77,163,255,.10); } html body #page .ob4 .lbox td, html body #page .ob4 .lbox th { padding-left: 8px; padding-right: 8px; font-size: 12.5px; } html body #page .ob4 .lbox td.name b { font-weight: 600; }
html body #page .ob4 .lbox .srv-sw { margin: 0; }
html body #page .ob4-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin-top: 10px; } html body #page .ob4-ports { flex: 1 1 280px; min-width: 0; } html body #page .ob4-ports .ob3-lbl { margin-top: 0; }
html body #page .ob4-go { display: flex; align-items: center; gap: 10px; } html body #page .ob4-go .ob3-start { height: 40px; padding: 0 30px; }
html body #page .ob4 .ob3-list { max-height: 230px; }
@media (max-width: 1280px) { html body #page .ob4 { grid-template-columns: minmax(0, 1fr); } html body #page .ob4-two { grid-template-columns: minmax(0, 1fr); } }
html body #page .ob4 .lbox td.name { white-space: nowrap; } html body #page .ob4 .lbox td.name .ob2-dot { margin-left: 8px; vertical-align: middle; } html body #page .ob4 .lbox td.name .pill { margin-left: 8px; }
html body #page .ob4 .lbox td { padding-top: 5px; padding-bottom: 5px; }
html body #page .ob3-path .ob3-addr, html body #page .ob4 .ob3-addr { min-width: 0; } html body #page .ob4 .ob3-addr { display: inline-flex; align-items: center; gap: 8px; } html body #page .ob4 .ob3-addr .ob2-dot { flex: none; }
html body #page .ob4 .lbox td, html body #page .ob4 .lbox th { text-align: left; }
/* ---- 1.40.2: Outbound as in the reference picture: panes with a search and a filter, sortable lists, a divider, the ports row, bars with icons */
html body #page .ob4 svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; } html body #page .ob4 svg.fill { fill: currentColor; stroke: none; }
html body #page .ob5-two { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: stretch; }
html body #page .ob5-pane { min-width: 0; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.022); }
html body #page .ob5-ph { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13px; } html body #page .ob5-ph b { font-size: 14.5px; font-weight: 700; color: var(--text); }
html body #page .ob5-pi, html body #page .ob5-lbl > i { display: grid; place-items: center; width: 28px; height: 28px; font-size: 22px; color: #6db3ff; }
html body #page .ob5-search { position: relative; display: flex; align-items: center; height: 38px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.2); }
html body #page .ob5-search > i { position: absolute; left: 12px; font-size: 16px; color: var(--mut); pointer-events: none; display: grid; }
html body #page .ob5-search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 8px 0 36px; border: 0; background: none; box-shadow: none; outline: 0; font-size: 13px; color: var(--text); }
html body #page .ob5-search button { flex: none; width: 38px; height: 100%; display: grid; place-items: center; border: 0; border-radius: 0 12px 12px 0; background: none; box-shadow: none; color: var(--mut); font-size: 17px; cursor: pointer; padding: 0; } html body #page .ob5-search button:hover, html body #page .ob5-search button.on { color: #6db3ff; }
html body #page .ob5-cb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; border: 1.6px solid rgba(255,255,255,.38); border-radius: 5px; background: transparent; cursor: pointer; display: inline-grid; place-content: center; vertical-align: middle; padding: 0; box-shadow: none; }
html body #page .ob5-cb:checked { background: #3b8bff; border-color: #3b8bff; } html body #page .ob5-cb:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); } html body #page .ob5-cb:disabled { opacity: .45; cursor: default; }
html[data-mode="light"] body #page .ob5-cb { border-color: rgba(30,40,80,.4); }
html body #page .ob4 .lbox th.srt { cursor: pointer; user-select: none; white-space: nowrap; } html body #page .ob4 .lbox th.srt i { display: inline-grid; vertical-align: middle; margin-left: 6px; font-size: 13px; opacity: .6; }
html body #page .ob4 .lbox td.name .ob2-dot { margin: 0 10px 0 0; } html body #page .ob5-none { text-align: center; padding: 18px 8px; }
html body #page .ob5-dots { text-align: right; } html body #page .ob5-more { width: 30px; height: 26px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--mut); cursor: pointer; padding: 0; font-size: 18px; } html body #page .ob5-more:hover { background: rgba(255,255,255,.07); color: var(--text); }
html body #page .ob5-div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; } html body #page .ob5-div span { flex: 1; width: 1px; background: var(--line); }
html body #page .ob5-div i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); color: var(--mut); font-size: 15px; background: rgba(255,255,255,.03); }
html body #page .ob5-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
html body #page .ob5-lbl { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 12.5px; } html body #page .ob5-lbl b { font-size: 14px; font-weight: 700; color: var(--text); }
html body #page .ob5-ports { display: flex; gap: 10px; align-items: center; } html body #page .ob5-ports input { flex: 1 1 auto; min-width: 0; height: 40px; border-radius: 12px; } html body #page .ob5-ports button { height: 40px; border-radius: 20px; padding: 0 18px; white-space: nowrap; }
html body #page .ob4-go button { display: inline-flex; align-items: center; gap: 8px; height: 40px; border-radius: 20px; } html body #page .ob4-go .ob5-bi { display: grid; font-size: 15px; }
html body #page .ob5-paste { position: relative; } html body #page .ob5-paste textarea { width: 100%; box-sizing: border-box; min-height: 118px; padding: 14px 16px 56px; border-radius: 14px; resize: vertical; font-size: 13px; line-height: 1.6; }
html body #page .ob5-paste button { position: absolute; right: 10px; bottom: 12px; height: 36px; padding: 0 18px; border-radius: 18px; }
html body #page .ob5-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(77,163,255,.2); background: rgba(77,163,255,.07); font-size: 13px; line-height: 1.5; } html body #page .ob5-note i { display: grid; font-size: 18px; color: #5aa8ff; margin-top: 1px; }
html body #page .ob5-bar { margin: 0; padding: 0; border-radius: 16px; } html body #page .ob5-bar > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; cursor: pointer; font-size: 14px; } html body #page .ob5-bar > summary::-webkit-details-marker { display: none; }
html body #page .ob5-bar > summary b { font-weight: 700; color: var(--text); } html body #page .ob5-bar > summary small { font-size: 12px; }
html body #page .ob5-chev { display: grid; font-size: 14px; color: var(--mut); } html body #page .ob5-chev svg { transition: transform .15s; } html body #page .ob5-bar[open] > summary .ob5-chev svg { transform: rotate(90deg); }
html body #page .ob5-bar > summary .ob5-bi { display: grid; font-size: 18px; color: var(--mut); } html body #page .ob5-bbody { padding: 2px 16px 14px; }
html body .ob5-menu { position: fixed; z-index: 400; min-width: 210px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #151c2e; box-shadow: 0 14px 34px rgba(0,0,0,.5); } html body .ob5-menu button { display: block; width: 100%; height: 32px; padding: 0 10px; text-align: left; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--text); font-size: 12.5px; cursor: pointer; } html body .ob5-menu button:hover { background: rgba(255,255,255,.08); } html body .ob5-menu button.danger { color: #ff7b7b; }
html[data-mode="light"] body .ob5-menu { background: #fff; } html[data-mode="light"] body #page .ob5-pane { background: #f7f9fd; } html[data-mode="light"] body #page .ob5-search { background: #fff; }
@media (max-width: 1280px) { html body #page .ob5-two { grid-template-columns: minmax(0, 1fr); gap: 12px; } html body #page .ob5-div { display: none; } }
@media (min-width: 1281px) and (max-width: 1799px) { html body #page .ob4 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
html body #page .ob5-pane { padding: 10px; } html body #page .ob4 .lbox td, html body #page .ob4 .lbox th { padding-left: 6px; padding-right: 6px; }
html body #page .ob5-copy { flex: none; width: 28px; height: 26px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--mut); cursor: pointer; padding: 0; font-size: 15px; } html body #page .ob5-copy:hover { background: rgba(255,255,255,.08); color: var(--text); }
html body #page .ob4 .ob3-step > h3 { flex-wrap: nowrap; min-width: 0; } html body #page .ob4 .ob3-step > h3 b { white-space: nowrap; } html body #page .ob4 .ob3-step > h3 small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #page .ob4 .ob3-step > h3 .pill { flex: none; } html body #page .ob4 .ob3-addr b { font-size: 12.5px; }
/* the switches: one small fixed size everywhere on the page (the global switch is 48 x 28, far too big for a list row) */
html body #page .ob2-sw { margin: 0; flex: none; padding: 0; width: 34px; height: 20px; min-width: 34px; background: transparent; border: 0; box-shadow: none; }
html body #page .ob2-sw i { width: 34px; height: 20px; border-radius: 10px; } html body #page .ob2-sw i::after { top: 2px; left: 2px; width: 16px; height: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.4); } html body #page .ob2-sw.on i::after { transform: translateX(14px); }
html body #page .ob3-n svg { font-size: 14px; }
/* the left column carries the steps 1 and 3, the relay and the two bars; below 1280 px the cards stack in the order of the steps */
@media (max-width: 1280px) { html body #page .ob4-col { display: contents; } html body #page .ob4-s1 { order: 1; } html body #page .ob4-s2 { order: 2; } html body #page .ob4-s3 { order: 3; } html body #page .ob4-s4 { order: 4; } html body #page .ob4 .ob5-bar { order: 5; } }
/* both columns end on the same line: the left one stretches its step 3 card to the height of the right one */
@media (min-width: 1281px) { html body #page .ob4 { align-items: stretch; } html body #page .ob4-left { display: flex; flex-direction: column; } html body #page .ob4-left > .ob4-s3 { flex: 1 1 auto; } }
html body #page .ob5-relay { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; } html body #page .ob5-relay > b { font-size: 12.5px; color: var(--mut); font-weight: 600; }
@media (max-width: 1280px) { html body #page .ob4-s4 { order: 4; } }
html body #page .ob4-box.lbox { height: 400px; }
/* the paste box: one line */
html body #page .ob5-paste textarea { min-height: 44px; height: 44px; padding: 11px 104px 0 14px; line-height: 22px; border-radius: 12px; resize: none; overflow-y: auto; white-space: pre; overflow-x: hidden; }
html body #page .ob5-paste button { bottom: auto; top: 6px; right: 6px; height: 32px; padding: 0 16px; border-radius: 16px; }
/* step 3 is a box of a fixed size (the height the left column has left); a long list scrolls inside it */
@media (min-width: 1281px) {
  html body #page .ob4-left > .ob4-s3 { flex: 1 1 0; min-height: 150px; overflow: hidden; display: flex; flex-direction: column; }
  html body #page .ob4-s3 > .ob4-pbox.lbox { flex: 1 1 0; min-height: 0; max-height: none; height: auto; margin: 0 0 8px; }
  html body #page .ob4-s3 > .ob5-note { flex: none; } html body #page .ob4-s3 > .ob3-hint { flex: none; }
}
/* the switches as in the reference picture: a blue pill with a white knob when on, a dark slate pill when off */
html body #page .ob2-sw { width: 40px; min-width: 40px; height: 22px; }
html body #page .ob2-sw i { width: 40px; height: 22px; border-radius: 11px; background: #35405a !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); transition: background .18s, box-shadow .18s; }
html body #page .ob2-sw i::after { top: 2px; left: 2px; width: 18px; height: 18px; background: linear-gradient(180deg, #fff, #dde5f6); box-shadow: 0 1px 3px rgba(0,0,0,.38); }
html body #page .ob2-sw.on i { background: linear-gradient(180deg, #2f9dff, #0a7cf5) !important; box-shadow: 0 0 0 1px rgba(10,124,245,.55), 0 0 9px rgba(10,132,255,.42); }
html body #page .ob2-sw.on i::after { transform: translateX(18px); }
html[data-mode="light"] body #page .ob2-sw i { background: #c3cde0 !important; box-shadow: inset 0 0 0 1px rgba(30,40,80,.12); }
/* a page with list boxes locks the scroll of the page (.main:has(.lbox)); this one has bars that open, so its page scrolls */
@media (min-width: 761px), (pointer: fine) { html body .main:has(.ob4) { overflow-y: auto; } }
/* the switch in the first cell sits clear of the row's rounded left edge, so it is never cut */
html body #page .ob4 .lbox td:first-child, html body #page .ob4 .lbox th:first-child { padding-left: 16px; padding-right: 6px; overflow: visible; }
html body #page .ob4 .lbox .ob2-sw { display: inline-flex; vertical-align: middle; }
html body #page .ob5-line { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; padding: 8px 14px; min-height: 0; } html body #page .ob5-line > b { font-size: 14px; font-weight: 700; color: var(--text); flex: none; } html body #page .ob5-line > .ob3-n { flex: none; }
html body #page .ob5-line select { flex: 1 1 100px; min-width: 0; max-width: none; height: 32px; border-radius: 10px; font-size: 12.5px; } html body #page .ob5-line .pill, html body #page .ob5-line .ob2-hub { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } html body #page .ob5-line button { flex: none; }
/* a tab that is switched off for now (the same look as the Shop bot in the menu) */
html body .sub-tabs button.sub-off { opacity: .38; filter: grayscale(1); pointer-events: none; cursor: default; }
/* TLS copies of the hosts (roadmap #93) */
html body #modal .tls-opts { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 10px; } html body #modal .tls-opts label { display: grid; gap: 4px; font-size: 12px; } html body #modal .tls-opts input, html body #modal .tls-opts select { height: 32px; min-width: 110px; }
html body #modal .tls-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; } html body #modal .tls-box { max-height: 340px; margin: 0 0 10px; } html body #modal .tls-box td, html body #modal .tls-box th { font-size: 12.5px; }
html body #modal .frm-act .sp { flex: 1; } html body #modal .frm-act a { cursor: pointer; text-decoration: underline; font-size: 12.5px; }
html body #page .pn-st-sel { height: 32px; min-width: 150px; border-radius: 10px; }
/* one row on top: the chips, the facts and the buttons of the panel; the list controls sit right under it */
html body #page .dns-bar .dns-r.pn-one { flex-wrap: wrap; width: 100%; padding-bottom: 0; border-bottom: 0; } html body #page .pn-bar .dns-stats { display: inline-flex; gap: 10px; align-items: center; }
html body #page .pn-bar .dns-stat { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: 12px; } html body #page .pn-bar .dns-stat.ok b { color: #4fd98a; } html body #page .pn-bar .dns-stat.bad b { color: #ff7a8c; } html body #page .pn-bar .dns-stat[onclick] { cursor: pointer; }
html body #page .pn-bar > .dns-r button:not(.dns-chip) { height: 32px; }
/* the buttons that act on the ticked rows */
html body #page .pn-acts { display: inline-flex; gap: 6px; align-items: center; } html body #page .pn-actbtn { height: 32px; padding: 0 14px; border-radius: 10px; font-weight: 600; } html body #page .pn-actbtn:disabled { opacity: .38; cursor: default; } html body #page .pn-actbtn:not(:disabled) { background: rgba(77,163,255,.18); border-color: rgba(77,163,255,.5); color: #cfe3ff; }
/* tighter, so that each of the two rows stays ONE row on a laptop width */
html body #page .pn-bar .dns-chip small { display: none; } html body #page .pn-bar .dns-r.pn-one { gap: 8px; } html body #page .pn-bar .dns-stat { padding: 0 8px; }
html body #page .pn-acts { display: none; } html body #page .pn-acts.on { display: inline-flex; }      /* the buttons that act on the ticked rows appear as soon as one is ticked */
html body #page #pn-uq, html body #page #pn-hq { width: 190px; min-width: 0; } html body #page .pn-st-sel { min-width: 120px; }
/* the switches also follow the real state of their box (a list that ticks its boxes by script needs no class): the same look as the Outbound page */
html body #page .ob2-sw:has(input:checked) i { background: linear-gradient(180deg, #2f9dff, #0a7cf5) !important; box-shadow: 0 0 0 1px rgba(10,124,245,.55), 0 0 9px rgba(10,132,255,.42); }
html body #page .ob2-sw:has(input:checked) i::after { transform: translateX(18px); }
html body #page .ob2-sw:has(input:disabled) { opacity: .45; }
html body #page .usr-tbl .ob2-sw, html body #page .hp-row .ob2-sw, html body #page .hp .ob2-sw { vertical-align: middle; }
html body #page .hp-row > .ob2-sw { margin-right: 6px; } html body #page summary > .ob2-sw { margin-right: 8px; }
/* the boxes that SELECT rows (users, hosts) are checkboxes, not switches: a rounded square, dark when empty, blue with a white tick when ticked, a dash when only some of a group are ticked */
html body :is(#page, #modal) input.ck[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; display: inline-block; vertical-align: middle; width: 20px; height: 20px; min-width: 20px; max-width: 20px; min-height: 20px; max-height: 20px; margin: 0; padding: 0; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.3); background: #1f2638 center / 14px no-repeat; box-shadow: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
html body :is(#page, #modal) input.ck[type=checkbox]:hover { border-color: #6fb2ff; background-color: #263047; }
html body :is(#page, #modal) input.ck[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47,157,255,.35); }
html body :is(#page, #modal) input.ck[type=checkbox]:checked { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(180deg, #3aa4ff, #0a7cf5); border-color: #5eb0ff; box-shadow: 0 0 0 1px rgba(10,124,245,.45), 0 2px 8px rgba(10,132,255,.42); }
html body :is(#page, #modal) input.ck[type=checkbox]:indeterminate { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(180deg, #3aa4ff, #0a7cf5); border-color: #5eb0ff; box-shadow: 0 0 0 1px rgba(10,124,245,.45), 0 2px 8px rgba(10,132,255,.42); }
html body :is(#page, #modal) input.ck[type=checkbox]:disabled { opacity: .45; cursor: default; }
html body #page .hp-row > input.ck { margin-right: 8px; } html body #page summary > input.ck { margin-right: 10px; }
html[data-mode="light"] body :is(#page, #modal) input.ck[type=checkbox]:not(:checked):not(:indeterminate) { background-color: #fff; border-color: rgba(30,50,100,.38); }
html[data-mode="light"] body :is(#page, #modal) input.ck[type=checkbox]:not(:checked):not(:indeterminate):hover { background-color: #eef4ff; border-color: #2f7fe0; }
/* the faint cross that takes an account / panel (the right end of its box) or a server (the end of its row) off the list: nearly invisible, red under the pointer.
   A plain <button> inherits the strong rules of the toolbars (height, border, colour), so these are written to win over them */
html body #page .dns-bar .dns-r .dns-cw > button.dns-x, html body #page .srv-tbl .td-act > button.row-x { display: inline-grid !important; place-items: center; box-sizing: border-box; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important; color: rgba(205,215,234,.3) !important; cursor: pointer; overflow: visible !important; transition: color .15s, background .15s; }
html body #page .dns-bar .dns-r .dns-cw > button.dns-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 20px !important; height: 20px !important; }
html body #page .srv-tbl .td-act > button.row-x { position: relative; flex: none; width: 24px !important; height: 24px !important; margin-left: 4px !important; }
html body #page button.dns-x svg, html body #page button.row-x svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
html body #page .dns-bar .dns-r .dns-cw > button.dns-x:hover, html body #page .dns-bar .dns-r .dns-cw > button.dns-x:focus-visible, html body #page .srv-tbl .td-act > button.row-x:hover, html body #page .srv-tbl .td-act > button.row-x:focus-visible { color: #ff7a8c !important; background: rgba(255,122,140,.16) !important; outline: none; }
html[data-mode="light"] body #page .dns-bar .dns-r .dns-cw > button.dns-x, html[data-mode="light"] body #page .srv-tbl .td-act > button.row-x { color: rgba(30,50,100,.3) !important; }
html[data-mode="light"] body #page .dns-bar .dns-r .dns-cw > button.dns-x:hover, html[data-mode="light"] body #page .srv-tbl .td-act > button.row-x:hover { color: #d4304a !important; background: rgba(212,48,74,.12) !important; }
/* 1.53.0 - the top of the Panel page (the owner, 2026-10-15: "everything in ONE row; only switch between the PasarGuard panels; edit and add only from General; rebuild it compact").
   Outside General it is ONE bar: the PasarGuard panels, then - in the same row - what the tab has (its tab buttons, search, filters, buttons: pnFuse moves them into #pn-ctl). In General: the bar of the panel (chips, +, facts, icon buttons)
   and under it ONE row with the tab buttons and the range of the Usage tab. Every bar is a card of its own (nothing is joined to a strip any more). */
html body #page .pn-top { margin-bottom: 8px !important; border-radius: 14px !important; border-bottom-color: var(--line) !important; box-shadow: none !important; }
html body #page #pn-body > .pn-bars { margin: 0 0 8px; border-top: 1px solid transparent; border-radius: 14px; }
html body #page .pn-bar.pn-pick .pn-one { flex-wrap: nowrap; } html body #page .pn-bar.pn-pick .pn-chips { flex: 0 0 auto; min-width: 0; max-width: 46%; }      /* the panels keep their size, what the tab has wraps under them */
html body #page .pn-ctl { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; margin-left: 2px; padding-left: 12px; border-left: 1px solid var(--line); }      /* what does not fit in the row wraps under it: nothing is cut off */
html body #page .pn-ctl:empty { display: none; }
html body #page .pn-ctl > .toolbar { display: contents !important; }
html body #page .pn-ctl .sp { flex: 1 1 0; min-width: 0; }
html body #page .pn-ctl .tabs { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; flex: none; } html body #page .pn-ctl .tabs button { height: 28px; }
html body #page .pn-ctl select, html body #page .pn-ctl input[type=search], html body #page .pn-ctl .pn-actbtn, html body #page .pn-ctl .sm { height: 30px; font-size: 12.5px; }
html body #page .pn-ctl select { flex: 0 1 auto; min-width: 0; max-width: 100%; } html body #page .pn-ctl .pn-st-sel { min-width: 110px; }
html body #page .pn-ctl input[type=search], html body #page .pn-ctl #pn-uq, html body #page .pn-ctl #pn-hq { flex: 1 1 150px; width: auto; min-width: 90px; max-width: 300px; }
html body #page .pn-ctl .pn-cnt { min-width: 0; }
html body #page .pg-usage-sep { flex: none; width: 1px; height: 20px; margin: 0 2px; background: var(--line); }
html body #page .pg-usage .pg-bar .tabs { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; flex: none; } html body #page .pg-usage .pg-bar .tabs button { height: 28px; }
html body #page .pn-facts button .bt { display: none; } html body #page .pn-facts button { padding: 0 10px; }
html[data-fluid] body #page .pn-ctl { flex: 1 1 100%; flex-wrap: wrap; margin-left: 0; padding-left: 0; border-left: 0; }
nav#nav a[hidden] { display: none !important; }      /* a section that is hidden for now (the Shop bot, 1.53.3) */
/* (1.69.290) the small tag of a foreign server whose node does not answer from outside (services/pathprobe.py) */
.lay-c { display: inline-block; margin-right: 10px; white-space: nowrap; }
.lay-c.err b { color: var(--err, #d64545); }
.srv-tag { display: inline-block; margin-left: 7px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .3px; line-height: 16px; color: #fff; background: #c0392b; cursor: help; vertical-align: middle; white-space: nowrap; }
.td-type.sb-live { color: var(--warn); border-color: rgba(255,196,77,.5); background: rgba(255,196,77,.12); } .mut.sb-sm { color: var(--warn); }      /* (the list: the users are on the standby)  */
