/* Lab (web/lab.js): the new Servers design - a profile first, tabs All | Iran | Foreign | PasarGuard, the cards and icons of the old Servers list with the new columns, one "⋯" menu in place of
   many buttons, a window of three sections. Everything here is named lab-*; the colours are the tokens of the theme, so every theme and both modes follow. */
.lab-root { display: grid; }      /* (not ".lab": the fluid layer hides every ".lab" - the little label words of the old chips - on a narrow window) */
/* the bar is ONE row at every width: it never wraps. As its box narrows (the box, not the window: the side bar may be a menu or a rail) the chips go one by one, then lose their words, then go; the buttons keep their icons; the search gets smaller, then goes */
.lab-bar { container: labbar / inline-size; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--panel-2); box-shadow: var(--edge); overflow: hidden; }
.lab-bar > * { flex: none; }
.lab-sp { flex: 1 1 0 !important; min-width: 0; }
.lab-bar button { height: 30px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.lab-bar .tb-search { flex: 0 1 150px; min-width: 96px; display: block; position: relative; margin: 0; padding: 0; border: 0; }
html body #page .lab-bar .tb-search input { width: 100%; height: 30px; border-radius: 12px; }
.lab-kinds { flex: 0 1 auto !important; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lab-kinds button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 10px; }
.lab-kinds .cnt, .lab-addtabs .cnt { font-style: normal; font-size: 10.5px; font-weight: 700; min-width: 17px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--mut); text-align: center; }
.lab-kinds button.on .cnt, .lab-addtabs button.on .cnt { background: rgba(255,255,255,.22); color: #fff; }
.lab-stats { display: inline-flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.lab-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; white-space: nowrap; }
.lab-chip > span { color: var(--mut); }
.lab-chip.ok b { color: var(--ok); } .lab-chip.warn b { color: var(--warn); } .lab-chip.bad b { color: var(--bad); }
.lab-ic { font-size: 14px; line-height: 1; }
@container labbar (max-width: 1160px) { .lab-chip.c-cpu { display: none; } }
@container labbar (max-width: 1075px) { .lab-chip.c-tun { display: none; } }
@container labbar (max-width: 900px) { .lab-kinds .cnt { display: none; } }
@container labbar (max-width: 815px) { .lab-chip > span { display: none; } .lab-chip::before { content: attr(data-ic); font-size: 11px; color: var(--mut); } .lab-chip { padding: 0 9px; gap: 4px; } }
@container labbar (max-width: 730px) { .lab-lb { display: none; } .lab-bar .lab-add { padding: 0 11px; } }
@container labbar (max-width: 630px) { .lab-stats { display: none; } }
@container labbar (max-width: 540px) { .lab-bar .tb-search { display: none; } }
@media (max-width: 760px) and (pointer: coarse) { .lab-bar { overflow-x: auto; scrollbar-width: none; } }

/* the list: the table of the old Servers list (srv-tbl: its cards, the flag over the name, the server with its two lights, the fluid layer) - here only what is IN the columns is new */
.lab-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 14px; text-align: center; }
html body #page .lab-tbl td { height: 48px; }
html body #page .srv-tbl.lab-tbl td.lab-ld { font-family: inherit; font-variant-numeric: normal; font-feature-settings: normal; font-size: inherit; font-weight: inherit; letter-spacing: normal; color: inherit; }      /* (the old list kept the address in its fourth column: here it is the load) */
html body #page .lab-tbl td:last-child::after { content: none !important; }      /* (no "›" over the "⋯" at the end of a card) */
.lab-tbl td.name { overflow: hidden; }
.lab-nmw { display: flex; align-items: center; min-width: 0; }
.lab-nmw .srv-ic { flex: none; vertical-align: baseline; }
.lab-nm { min-width: 0; display: grid; line-height: 1.3; }
.lab-nm b { font-size: 14px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-nm b .pill { vertical-align: 1px; }
html body .lab-tbl td.name .lab-nm small { color: var(--mut); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-serves { overflow: hidden; }
.lab-serves .mchip { display: inline-block; max-width: 100%; vertical-align: middle; margin: 0 5px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.lab-stw { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.lab-sub { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lab-st { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-st i { display: none; flex: none; } .lab-st.busy i { display: inline-block; }
.lab-st.ok { background: rgba(61,220,151,.14); color: var(--ok); } .lab-st.warn { background: rgba(255,196,77,.14); color: var(--warn); } .lab-st.bad { background: rgba(255,107,139,.14); color: var(--bad); } .lab-st.busy { background: rgba(124,131,255,.14); color: var(--acc); } .lab-st.off { color: var(--mut); }
.lab-st em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.22); color: var(--mut); }
.lab-strip { display: inline-flex; gap: 1px; height: 8px; }
.lab-strip i { flex: none; width: 4px; height: 8px; border-radius: 1px; background: rgba(255,255,255,.09); }
.lab-strip .c2 { background: #4d87f2; } .lab-strip .c1 { background: var(--warn); opacity: .9; } .lab-strip .c0 { background: var(--bad); opacity: .9; } .lab-strip .cn { background: #2b3858; }
.lab-ldw { display: grid; gap: 2px; min-width: 0; font-size: 12px; }
.lab-cpu { display: flex; align-items: center; gap: 8px; } .lab-cpu .bar { flex: 0 1 56px; width: auto; min-width: 24px; margin: 0; } .lab-cpu b { font-weight: 700; font-size: 12px; }
.lab-ldw small { color: var(--mut); font-size: 11px; white-space: nowrap; }
.lab-ldw .warn, .lab-cpu .warn { color: var(--warn); } .lab-ldw .bad, .lab-cpu .bad { color: var(--bad); }
.lab-trf { color: var(--mut); font-size: 12px; } .lab-trf .trf { margin-right: 9px; }
.lab-tbl .td-act { justify-content: flex-end; }

/* the first start (no profile yet) and the choice of what to add */
.lab-first { display: grid; place-items: center; padding: 26px 0; }
.lab-first-card { width: min(640px, 100%); padding: 22px 24px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow), var(--edge); }
.lab-first-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 10px; } .lab-first-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lab-first h2 { margin: 0 0 6px; font-size: 18px; } .lab-first p { margin: 0 0 14px; color: var(--mut); font-size: 13px; line-height: 1.5; }
.lab-choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lab-card { min-height: 118px; padding: 14px 14px 12px; display: grid; grid-template-rows: 30px auto 1fr; justify-items: start; align-content: start; gap: 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); box-shadow: var(--edge); cursor: pointer; text-align: left; transition: border-color .2s, background-color .2s, transform .15s; }
.lab-card:active { transform: scale(.985); } .lab-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lab-card i { font-style: normal; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); font-size: 15px; overflow: hidden; } .lab-card i .flg { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; } .lab-card i svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--acc); }
.lab-card b { font-size: 14px; } .lab-card small { color: var(--mut); font-size: 11.5px; line-height: 1.4; }
.lab-card .lab-have { display: block; margin-top: 3px; font-style: normal; font-weight: 700; color: var(--acc); }
.lab-card.off { opacity: .55; } .lab-card.off:hover { border-color: var(--line); } .lab-card.off .lab-have { color: var(--mut); }      /* (the option of a node while no PasarGuard panel is connected: grey, and a click says why) */ .lab-first p.lab-first-note { margin: 12px 0 0; font-size: 12px; }
.lab-card:hover { border-color: var(--line-hi); }
.lab-pfwin { width: min(500px, 80vw); } .lab-pfwin.lab-wide { width: min(640px, 82vw); }
.lab-lead { margin: 0 0 10px; font-size: 13px; }
.lab-pf { display: grid; gap: 10px; }
.lab-pf label { display: grid; gap: 4px; font-size: 12px; color: var(--mut); } .lab-pf label input { width: 100%; color: var(--text); } .lab-pf label small { font-weight: 400; }
.lab-pf .lab-chk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); } .lab-pf .lab-chk input { width: auto; height: auto; }
.lab-pf-row { display: grid; gap: 6px; font-size: 12px; color: var(--mut); }
.lab-pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lab-pf-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.lab-addtabs { margin: 0 0 12px; } .lab-addtabs button { display: inline-flex; align-items: center; gap: 7px; } .lab-addtabs .lb-s { display: none; }
html:not([data-mode="light"]) body #modal .lab-addtabs button.on, html:not([data-mode="light"]) body #modal .lab-auth button.on, html:not([data-mode="light"]) body #modal .lab-sec button.on { background: var(--grad) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 4px 14px rgba(124,131,255,.35) !important; }      /* (the open tab inside a window: the rules of a window's buttons had flattened it, so the open one could not be told from the others) */
.lab-auth { margin: 0; width: max-content; max-width: 100%; }
.lab-conn { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 14px; margin-top: 4px; } .lab-conn > summary { cursor: pointer; padding: 11px 0; font-weight: 700; font-size: 13px; list-style: none; } .lab-conn > summary::-webkit-details-marker { display: none; } .lab-conn[open] { padding-bottom: 14px; } .lab-conn[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.lab-panels { display: grid; gap: 8px; margin-bottom: 8px; }
.lab-panel { min-height: 44px; padding: 8px 14px; display: grid; grid-template-columns: minmax(80px, auto) minmax(0, 1fr) auto; align-items: center; gap: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; text-align: left; transition: border-color .2s; }
.lab-panel:hover { border-color: var(--line-hi); } .lab-panel:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lab-panel b { font-size: 13.5px; } .lab-panel small { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lab-panel .mchip { margin: 0; }

/* adding servers or nodes that exist */
.lab-pick-q { width: 100%; margin-bottom: 10px; }
.lab-pick-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; } .lab-pick-bar .lab-pick-q { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; }
.lab-all { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; color: var(--text); } .lab-all input { width: auto; height: auto; margin: 0; }
.lab-pick-list { max-height: min(44vh, 360px); overflow: auto; display: grid; align-content: start; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.lab-pick-row { display: grid; grid-template-columns: 18px 24px minmax(80px, 1fr) minmax(0, 1.3fr) minmax(0, .9fr) auto; align-items: center; gap: 10px; padding: 6px 12px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px; }
.lab-pick-row:last-child { border-bottom: 0; } .lab-pick-row:hover { background: rgba(255,255,255,.05); } .lab-pick-row input { height: auto; margin: 0; }
.lab-pick-row .mono, .lab-pick-row .mut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lab-pick-row .mchip, .lab-pick-row .pill { margin: 0; }
.lab-pick-row.off { opacity: .55; cursor: default; }
.lab-node-row { grid-template-columns: 18px 24px minmax(80px, 1fr) minmax(0, 1.3fr) auto auto; }
.lab-fl { flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); }
.lab-fl .flg { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; } .lab-fl small { font-size: 9.5px; color: var(--mut); font-weight: 800; }
.lab-nodeic { background: rgba(124,131,255,.2); color: var(--acc); } .lab-nodeic svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the window: the sections of a server, the node window */
.lab-sec { margin: 0 0 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lab-sec button { position: relative; padding: 0 16px; }
.lab-sec-dot { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.lab-sec button.on .lab-sec-dot { background: #fff; }
.lab-ban { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.lab-ban .lb-i { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 800; background: rgba(255,255,255,.08); color: var(--mut); }
.lab-ban .lb-t { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; } .lab-ban .lb-t > div { color: var(--mut); font-size: 12.5px; } .lab-ban .lb-t > div.err { color: var(--bad); }
.lab-ban .lb-a { flex: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.lab-ban.ok { border-color: rgba(61,220,151,.35); } .lab-ban.ok .lb-i { background: rgba(61,220,151,.18); color: var(--ok); }
.lab-ban.warn { border-color: rgba(255,196,77,.4); } .lab-ban.warn .lb-i { background: rgba(255,196,77,.18); color: var(--warn); }
.lab-ban.bad { border-color: rgba(255,107,139,.45); } .lab-ban.bad .lb-i { background: rgba(255,107,139,.18); color: var(--bad); }
.lab-upbox { margin-bottom: 8px; } .lab-upbox h5 small { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; }
.lab-ups-row { display: flex; gap: 2px; height: 22px; } .lab-ups-row i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: rgba(255,255,255,.09); }
.lab-ups-row .c2 { background: #4d87f2; } .lab-ups-row .c1 { background: var(--warn); } .lab-ups-row .c0 { background: var(--bad); } .lab-ups-row .cn { background: #2b3858; }
.lab-ups-x { display: flex; justify-content: space-between; margin-top: 4px; color: var(--mut); font-size: 10.5px; }
.lab-ins { margin-top: 8px; } .lab-ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .lab-ins .sbox h5 small { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; }
.lab-bars { display: flex; align-items: flex-end; gap: 2px; height: 66px; padding-top: 6px; } .lab-bars i { flex: 1 1 0; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--acc); opacity: .7; } .lab-bars i:hover { opacity: 1; }
.lab-bars-x { display: flex; justify-content: space-between; margin-top: 3px; color: var(--mut); font-size: 10.5px; }
html body #modal .lab-body .np > .wback { display: none !important; }
html body #modal .lab-body .np .np-bar { display: none !important; }      /* the eight buttons of the Node view are in its "⋯" menu here */
@media (max-width: 700px) { .lab-ins-grid { grid-template-columns: minmax(0, 1fr); } .lab-ban { flex-wrap: wrap; } .lab-ban .lb-a { flex: 1 1 100%; justify-content: flex-start; } .lab-pf-two { grid-template-columns: 1fr; } .lab-choose { grid-template-columns: minmax(0, 1fr); } .lab-card { min-height: 0; grid-template-rows: auto; grid-template-columns: 30px 1fr; column-gap: 12px; } .lab-card i { grid-row: 1 / 3; } .lab-pfwin, .lab-pfwin.lab-wide { width: 100%; }
  .lab-addtabs { display: flex; } .lab-addtabs button { flex: 0 1 auto; white-space: nowrap; padding: 0 12px; } .lab-addtabs .lb-f { display: none; } .lab-addtabs .lb-s { display: inline; }      /* (the three tabs of the add flow are one row: short names) */
  .lab-pick-row { grid-template-columns: 18px 24px minmax(0, 1fr); row-gap: 0; padding: 7px 12px; } .lab-pick-row > input, .lab-pick-row > .lab-fl { grid-row: 1 / 3; align-self: center; } .lab-pick-row > b, .lab-pick-row > .mono { grid-column: 3; } .lab-pick-row > .mono { font-size: 11px; } .lab-pick-row > .mut:not(.mono), .lab-pick-row > .pill, .lab-pick-row > .mchip { display: none; }      /* (a server: its name and, under it, its address - the information is not hidden on a phone) */ }

/* ONE "⋯" button in place of many buttons: on a card, in the header of a window, and over the Node view; its menu is a small dark box of plain words, in two columns when it is long, the dangerous item last and red */
html body .lab-kb, html body #modal .lab-kb { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: rgba(255,255,255,.07); color: var(--mut); box-shadow: none; backdrop-filter: none; flex: none; overflow: visible; }
html body .lab-kb:hover, html body .lab-kb[aria-expanded="true"], html body #modal .lab-kb:hover, html body #modal .lab-kb[aria-expanded="true"] { background: rgba(255,255,255,.14); color: var(--text); border-color: var(--line); box-shadow: none; filter: none; }
.lab-kb::after { display: none; }
.lab-kb svg { display: block; }
.lab-nodebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 0 2px; font-size: 12px; }
.lab-menu { position: fixed; z-index: 70; min-width: 172px; max-width: calc(100vw - 16px); overflow: auto; padding: 4px; display: block; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #22232a; box-shadow: 0 18px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.25); animation: fade .12s var(--ease) both; scrollbar-width: thin; }
.lab-menu.two { min-width: 340px; }
.lab-mcol { display: grid; align-content: start; min-width: 0; }
.lab-mg + .lab-mg { margin-top: 3px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,.08); }
.lab-mi { display: block; width: 100%; height: auto; min-height: 0; padding: 4px 10px; border: 0; border-radius: 7px; background: transparent; box-shadow: none; backdrop-filter: none; color: #f1f2f6; font-size: 12.5px; font-weight: 500; line-height: 1.4; text-align: left; white-space: nowrap; overflow: visible; }
.lab-mi::after { display: none; }
.lab-mi:hover:not(:disabled), .lab-mi:focus-visible { background: rgba(255,255,255,.09); filter: none; box-shadow: none; outline: none; }
.lab-mi:disabled { opacity: .38; cursor: default; }
.lab-mi.danger { color: #ff5f78; }
.lab-mi.danger:hover:not(:disabled) { background: rgba(255,95,120,.12); }
.lab-mgrp { display: block; padding: 4px 10px 1px; color: #8b93ad; font-size: 9.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; line-height: 1.3; }
html[data-mode="light"] .lab-menu { background: #fff; border-color: rgba(30,50,100,.16); box-shadow: 0 14px 40px rgba(30,50,100,.22); }
html[data-mode="light"] .lab-mi { color: #1b2540; } html[data-mode="light"] .lab-mi:hover:not(:disabled) { background: rgba(30,50,100,.08); } html[data-mode="light"] .lab-mi.danger { color: #d1354f; }
html[data-mode="light"] .lab-mg + .lab-mg { border-color: rgba(30,50,100,.12); } html[data-mode="light"] .lab-kb { background: rgba(30,50,100,.07); }

/* the menu of the page: "Add profile" is the first item of the Lab group (an action, not a tab: drawn in the accent colour, never "open"), the Panel item is grey (and says why) until a PasarGuard profile exists */
.nav-sub a.nav-act, .nav-sub a.nav-act .ic, .tabs button.sub-act { color: var(--acc); } .nav-sub a.nav-act > span, .tabs button.sub-act { font-weight: 700; }
/* Add profile is the LAST item of the Lab list and has no arrow: it is written "+ Add profile" - the + stands in front of its name, where the icon of the other items stands (the owner: "+ Add profile") */
html body nav#nav .nav-sub a.nav-act .nav-plus { font-size: 21px; font-weight: 600; line-height: 1; color: var(--acc); }
html body nav a.nav-lock { opacity: .42; filter: grayscale(1); cursor: pointer; }
html body nav a.nav-lock:hover { opacity: .65; }
html body nav a.nav-lock::before, html body nav a.nav-lock::after { display: none !important; }
html body nav a.nav-lock > span::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 7px; vertical-align: -1px; 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' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E") center/contain no-repeat; }
html[data-mode="light"] body nav a.nav-lock { opacity: .5; }
.lab-addtabs button.off { opacity: .55; } .lab-tagp { margin-left: 7px; font-size: 10px; vertical-align: 1px; }
.lab-mbody { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); gap: 0 6px; }
.lab-mtop { display: flex; gap: 4px; padding: 2px 2px 5px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.1); } .lab-mtop .lab-mi.lab-mr { flex: 1 1 0; width: auto; text-align: center; padding: 5px 8px; background: rgba(255,255,255,.07); font-weight: 600; }
.lab-logo { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-right: 6px; } .nav-sub .ic .lab-logo { width: 19px; height: 19px; margin: 0; } .srv-ic .lab-logo { width: 26px; height: 26px; margin: 0; vertical-align: middle; }
.lab-kinds .lab-plus { min-width: 30px; padding: 0 10px; font-weight: 700; font-size: 16px; color: var(--acc); }
.lab-kinds .lab-plus.lab-ed { font-size: 13px; min-width: 28px; color: var(--mut); }
.lab-menu.flat { min-width: 250px; } .lab-menu.flat .lab-mi { display: flex; align-items: center; gap: 13px; padding: 7px 12px; font-size: 13.5px; } .lab-mic { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; } .lab-mic svg { width: 19px; height: 19px; fill: none; stroke: #8fa6ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .lab-mi.danger .lab-mic svg { stroke: #ff6f86; } .lab-menu.flat .lab-mg + .lab-mg { margin-top: 4px; padding-top: 4px; }
/* the choice of the profile (category): a segmented control like macOS - a soft grey track, the open segment raised - and the icon buttons beside it */
.lab-ksw { display: inline-flex; align-items: center; gap: 8px; flex: none; }
html body #page .tabs.lab-kinds { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; border: 0; background: rgba(118,118,140,.24); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07); }
html body #page .tabs.lab-kinds > button { height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent !important; box-shadow: none !important; color: var(--text); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transform: none; }
html body #page .tabs.lab-kinds > button.on { background: rgba(255,255,255,.2) !important; box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 0 .5px rgba(255,255,255,.14) !important; color: #fff; font-weight: 600; }
html body #page .tabs.lab-kinds > button:not(.on):hover { background: rgba(255,255,255,.08) !important; }
html body #page .tabs.lab-kinds .cnt { background: transparent; color: var(--mut); font-size: 11px; min-width: 0; padding: 0; }
.lab-tabact { display: inline-flex; gap: 4px; }
html body #page .lab-tabact .lab-ib { width: 28px; height: 28px; min-height: 0; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: rgba(118,118,140,.24); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07); color: var(--text); transform: none; }
html body #page .lab-tabact .lab-ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body #page .lab-tabact .lab-ib:hover { background: rgba(255,255,255,.16); } html body #page .lab-tabact .lab-ib.danger:hover { color: #ff6f86; }
.nav-sub a.nav-act .ic svg { stroke: currentColor; }
.lab-gre { display: inline-block; margin-left: 6px; padding: 0 5px; height: 15px; line-height: 15px; border-radius: 999px; font-size: 8.5px; font-weight: 800; letter-spacing: .4px; vertical-align: middle; } .lab-gre.ok { background: rgba(52,211,153,.16); color: #34d399; } .lab-gre.warn { background: rgba(251,191,36,.16); color: #fbbf24; } .lab-gre.bad { background: rgba(255,95,120,.16); color: #ff6f86; }
.lab-pfwin.lab-xwide { width: min(900px, 92vw); } .lab-pfwin.lab-xwide .srv-form2 { margin: 0; }
.lab-sec button.off { opacity: .4; cursor: not-allowed; }
.lab-ip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--mut); }      /* the IP column (1.53.2: it took the place of the state column) */
.lab-first-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-width: 420px; } .lab-first-form input { width: 100%; height: 38px; }      /* the first page asks the name of the profile in its own card */
/* 1.54.7 - the Add a server window fits its box (the owner's picture: the SSH box ran off the right edge): two columns while there is room, one when not; long lines wrap */
html body #modal .srv-form2 { max-width: 100%; overflow-x: hidden; } html body #modal .srv-form2 .srv-two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)) !important; }
html body #modal .srv-form2 .sbox, html body #modal .srv-form2 .kv2, html body #modal .srv-form2 .bf { min-width: 0; } html body #modal .srv-form2 .bf-note, html body #modal .srv-form2 .bld-foot small, html body #modal .srv-form2 .srv-after small { white-space: normal; overflow-wrap: anywhere; }
html body #modal .srv-form2 .srv-opts { flex-wrap: wrap; row-gap: 8px; } html body #modal .srv-form2 .bld-foot { flex-wrap: wrap; }

/* 1.55.4 - move a server to another profile: the list in the window of "Move to profile…", and the tab a row is dragged over */
html body #modal .lab-mv-list { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
html body #modal .lab-mv { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 12px; text-align: left; border-radius: 10px; font-size: 13px; } html body #modal .lab-mv > span { flex: 1; } html body #modal .lab-mv i { font-style: normal; font-size: 11px; color: var(--mut); }
html body #modal .lab-mv.on { border-color: rgba(120,170,255,.45); background: rgba(77,163,255,.16); } html body #modal .lab-mv.new { justify-content: center; border-style: dashed; color: var(--acc-2); }
html body #page .lab-tbl tbody tr[draggable="true"] { cursor: grab; } html body.lab-dragging #page .lab-tbl tbody tr { cursor: grabbing; }
html body.lab-dragging #page .lab-kinds button { outline: 1px dashed rgba(120,170,255,.55); outline-offset: -2px; }
html body #page .lab-kinds button.drop { outline: 2px solid var(--acc); outline-offset: -2px; background: rgba(77,163,255,.28); color: #fff; }
/* 1.55.5 - the Add profile box: a small card, a big field, the suggested tags as chips */
html body .lab-np { display: flex; flex-direction: column; gap: 10px; min-width: 0; text-align: left; }
html body .lab-np .lab-np-l { font-size: 13px; font-weight: 650; color: var(--text); } html body .lab-np .lab-np-l small { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: var(--mut); }
html body .lab-np .lab-np-in { width: 100%; height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
html body .lab-np .lab-np-sug { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } html body .lab-np .lab-np-sug > small { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--mut); }
html body .lab-np .lab-np-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html body .lab-np .lab-np-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; } html body .lab-np .lab-np-chip .lab-logo { width: 14px; height: 14px; }
html body .lab-np .lab-pf-act { display: flex; gap: 8px; margin-top: 4px; }
/* 1.55.6 - a confirm box with a tick (delete a node: also from the PasarGuard panel itself) */
html body #ask .ask-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; }
html body #ask .ask-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #ff6577; } html body #ask .ask-check span { font-size: 13px; font-weight: 600; color: var(--text); } html body #ask .ask-check small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 400; line-height: 1.35; color: var(--mut); }
html body #ask .ask-check:has(input:checked) { border-color: rgba(255,101,119,.55); background: rgba(214,48,70,.14); }
/* 1.55.8 - the suggested tags, calmer: ONE quiet row (the label, then small outline pills of one height; no gloss, no wrapping) */
html body .lab-np .lab-np-sug { flex-wrap: nowrap; gap: 12px; margin-top: 2px; } html body .lab-np .lab-np-sug > small { flex: none; font-size: 10.5px; letter-spacing: .8px; }
html body .lab-np .lab-np-chips { flex-wrap: wrap; gap: 6px; min-width: 0; }      /* (nowrap + hidden cut the last suggestion, PasarGuard, in a window of 420 px) */
html body .lab-np .lab-np-chip.ghost { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; box-shadow: none; font-size: 12px; font-weight: 500; color: var(--mut); white-space: nowrap; }
html body .lab-np .lab-np-chip.ghost:hover { color: var(--text); border-color: rgba(120,170,255,.5); background: rgba(77,163,255,.10); }
html body .lab-np .lab-np-chip.ghost .lab-logo { width: 13px; height: 13px; margin: 0; opacity: .85; }
/* 1.55.11 - the traffic column: drawn arrows (green down, pink up) and numbers in the same font and weight as the rest of the row */
html body #page .lab-tbl td.lab-trf { color: var(--text); font-size: 12.5px; white-space: nowrap; }
html body #page .lab-tbl .lab-trf .trf { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .1px; line-height: 1; }
html body #page .lab-tbl .lab-trf .trf:last-child { margin-right: 0; }
html body #page .lab-tbl .lab-trf .ta { display: inline-flex; width: 12px; height: 12px; font-style: normal; } html body #page .lab-tbl .lab-trf .ta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body #page .lab-tbl .lab-trf .ta.d { color: var(--ok); } html body #page .lab-tbl .lab-trf .ta.u { color: #ff7a8c; }
/* 1.55.14 - the link of the update card: what changed in the new version */
html body .ss-ht .about-notes { font-size: 12.5px; color: var(--acc-2); text-decoration: none; } html body .ss-ht .about-notes:hover { text-decoration: underline; }
/* 1.55.15 - Add a server: a small window, three light sections (server / SSH login / install after), the button in the foot */
html body #modal .lab-pfwin.lab-xwide { width: min(640px, 94vw); }
html body #modal .srv-f3 { display: flex !important; flex-direction: column; gap: 18px; max-width: 100%; }
html body #modal .srv-f3 .f3-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
html body #modal .srv-f3 .f3-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); } html body #modal .srv-f3 .f3-h::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 3; }
html body #modal .srv-f3 .f3-h small { order: 2; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
html body #modal .srv-f3 .f3-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } html body #modal .srv-f3 .f3-g3 { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1.6fr); gap: 10px; }
html body #modal .srv-f3 label.f3 { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11.5px; color: var(--mut); }
html body #modal .srv-f3 label.f3 input:not([type=checkbox]), html body #modal .srv-f3 label.f3 select { width: 100%; height: 38px; min-width: 0; box-sizing: border-box; font-size: 13.5px; }
html body #modal .srv-f3 .f3-where { display: flex; align-items: center; gap: 8px; min-height: 18px; margin-top: -4px; font-size: 11.5px; color: var(--mut); } html body #modal .srv-f3 .f3-where .srv-where { display: inline-flex; align-items: center; gap: 8px; }
html body #modal .srv-f3 .f3-note { margin: -2px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--mut); }
html body #modal .srv-f3 .f3-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 2px 0; }
html body #modal .srv-f3 .x-pg { display: flex; flex-direction: column; gap: 10px; margin: 0; } html body #modal .srv-f3 .x-pg.off { display: none; }
html body #modal .srv-f3 .x-pg-auto { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid rgba(61,220,151,.32); border-radius: 12px; background: rgba(61,220,151,.07); font-size: 12.5px; line-height: 1.45; } html body #modal .srv-f3 .x-pg-auto i { flex: none; font-style: normal; font-weight: 700; color: var(--ok); }
html body #modal .srv-f3 .x-pg-more > summary { margin: 0 0 8px; font-size: 12px; color: var(--mut); cursor: pointer; } html body #modal .srv-f3 .x-pg-more .x-pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html body #modal .srv-f3 .f3-foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); } html body #modal .srv-f3 .f3-foot .sp { flex: 1; }
@media (max-width: 560px) { html body #modal .srv-f3 .f3-g2, html body #modal .srv-f3 .f3-g3, html body #modal .srv-f3 .x-pg-more .x-pg-grid { grid-template-columns: minmax(0, 1fr); } }
html body #modal .srv-f3 label.f3 { flex-wrap: nowrap; align-content: normal; align-items: stretch; }
html body #modal .srv-f3 label.f3 > input, html body #modal .srv-f3 label.f3 > select { flex: 0 0 auto; }
html body #modal .modal.keep:has(.srv-f3) { width: min(700px, 96vw); }
html body #modal .lab-pfwin.lab-xwide { width: 100%; max-width: 640px; margin: 0 auto; }
/* 1.55.16 - the update card shows only a percentage while it runs */
html body .ss-ht .about-bar { display: block; width: min(360px, 100%); height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(255,255,255,.10); overflow: hidden; } html body .ss-ht .about-bar u { display: block; height: 100%; border-radius: 3px; background: var(--acc); text-decoration: none; transition: width .6s; }
/* 1.55.17 - the menus like a MacBook's (the owner): small rows, a soft dark glass, the row under the pointer in the accent colour, a small grey name for each group, a thin line between the groups */
html body .lab-menu.lab-menu { min-width: 196px; padding: 5px; border-radius: 10px; border: 1px solid rgba(255,255,255,.13); background: rgba(40,40,46,.86); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 0 .5px rgba(0,0,0,.7); }
html body .lab-menu.lab-menu.flat { min-width: 204px; }
html body .lab-menu.lab-menu .lab-mi, html body .lab-menu.lab-menu.flat .lab-mi { display: flex; align-items: center; gap: 8px; min-height: 22px; padding: 2px 8px; border-radius: 5px; font-size: 12.5px; font-weight: 400; line-height: 1.3; color: #f4f4f7; }
html body .lab-menu.lab-menu .lab-mic { width: 15px; height: 15px; } html body .lab-menu.lab-menu .lab-mic svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; opacity: .72; }
html body .lab-menu.lab-menu .lab-mi:hover:not(:disabled), html body .lab-menu.lab-menu .lab-mi:focus-visible { background: #1b6ef3; color: #fff; } html body .lab-menu.lab-menu .lab-mi:hover:not(:disabled) .lab-mic svg { opacity: 1; }
html body .lab-menu.lab-menu .lab-mi.danger { background: transparent; color: #ff6b6b; } html body .lab-menu.lab-menu .lab-mi.danger .lab-mic svg { stroke: currentColor; } html body .lab-menu.lab-menu .lab-mi.danger:hover:not(:disabled) { background: #d83b3b; color: #fff; }
html body .lab-menu.lab-menu .lab-mg + .lab-mg, html body .lab-menu.lab-menu.flat .lab-mg + .lab-mg { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.12); }
html body .lab-menu.lab-menu .lab-mgrp { padding: 3px 8px 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .1px; text-transform: none; color: rgba(255,255,255,.42); }
html[data-mode="light"] body .lab-menu.lab-menu { background: rgba(248,248,250,.92); border-color: rgba(0,0,0,.12); } html[data-mode="light"] body .lab-menu.lab-menu .lab-mi { color: #1b2540; } html[data-mode="light"] body .lab-menu.lab-menu .lab-mgrp { color: rgba(0,0,0,.42); } html[data-mode="light"] body .lab-menu.lab-menu .lab-mi:hover:not(:disabled) { color: #fff; }
html body #modal .srv-f3 [hidden] { display: none !important; }
html body #modal .srv-f3 select[name=tag] { width: 100%; height: 38px; box-sizing: border-box; font-size: 13.5px; }
/* 1.55.21 - the steps of an install on the row of the server */
html body #page .lab-tbl .lab-busy { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; font-size: 11.5px; line-height: 1.3; color: var(--acc-2); white-space: normal; } html body #page .lab-tbl .lab-busy .spin { flex: none; }
/* 1.55.23 - "All" is not an item of the Servers menu: hidden from the first paint (labNavSync keeps it hidden) */
html body #nav a[data-page="nodes"][data-sub="lab"] { display: none !important; }
/* 1.56.2 - an address in the IP column is copied by a click (the old list did it) */
html body #page .lab-tbl td.lab-ip.ip-copy { border-radius: 0; } html body #page .lab-tbl td.lab-ip.ip-copy:hover { background: transparent; }      /* (the old list's mark: .ip-copy / .ip-copied of app.css - the pill "Copied" pops at the right of the address) */
/* 1.56.5 - the picture before a profile: an emoji (a globe for Foreign, one for any name of his own) and the flag of Iran, the size of the logos */
html body .lab-emoji { display: inline-block; width: 16px; margin-right: 6px; font-size: 13px; line-height: 1; text-align: center; vertical-align: -1px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; } html body .lab-logo.lab-flag { border-radius: 2px; object-fit: cover; }
html body .nav-sub .ic .lab-emoji { width: auto; margin: 0; font-size: 16px; vertical-align: middle; }
/* 1.56.6 - the pictures of the profiles are not coloured (the owner): the flag of Iran and the emoji are grey like the logos */
html body .lab-logo.lab-flag, html body .lab-emoji { filter: grayscale(1) brightness(1.15); opacity: .92; }
/* 1.56.15 - the address says Copied in its own cell */
html body #page .lab-tbl td.lab-ip.lab-ip-done { color: var(--ok) !important; font-weight: 700; text-decoration: none; }
/* 1.56.16 - the bar of the update like a MacBook's: thin, round, it grows smoothly and a soft light runs along it */
html body .ss-ht .about-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); }
html body .ss-ht .about-bar u { position: relative; border-radius: 999px; background: linear-gradient(90deg, #5aa9ff, #8ec5ff); transition: width .35s linear; overflow: hidden; }
html body .ss-ht .about-bar u::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: aboutShine 1.6s ease-in-out infinite; }
@keyframes aboutShine { to { transform: translateX(100%); } }
html body .ss-ht #about-box .mut { font-variant-numeric: tabular-nums; }
/* 1.56.22/24 - the icon of a server is never coloured: white in the dark theme, dark in the light one; its status is ONE small round lamp on its corner (the owner: "not in a circle, a lamp like the dots of up / down / unstable"): green when it is well, yellow with a problem, red when it is cut, blue while the panel works on it */
html body #page .srv-ic { position: relative; color: var(--text) !important; filter: none !important; transform: none; }
html[data-mode="light"] body #page .srv-ic { color: #1b2540 !important; }
html body #page .srv-ic > * { position: relative; z-index: 1; }
html body #page .srv-ic .b { stroke: currentColor !important; fill: color-mix(in srgb, currentColor 10%, transparent) !important; }
html body #page .srv-ic .led { fill: currentColor !important; animation: none !important; opacity: 1 !important; }
html body #page .srv-ic img.lab-logo { filter: grayscale(1) brightness(1.5); }
html[data-mode="light"] body #page .srv-ic img.lab-logo { filter: brightness(0) opacity(.85); }
html body #page tr[data-lamp="ok"] { --lamp: #3ddc97; } html body #page tr[data-lamp="busy"] { --lamp: #4da3ff; } html body #page tr[data-lamp="warn"] { --lamp: #ffc44d; }      /* the lamp follows the server itself (labLampTone in lab.js), not the faults of the way to it */
html body #page tr[data-lamp="bad"] { --lamp: #ff6b8b; } html body #page tr[data-lamp="off"] { --lamp: #5e6a86; }
html body #page .toolbar.joined { align-items: center; }
html body #page .toolbar.joined .tf-tabs { align-self: center; display: inline-flex; align-items: center; height: 36px; margin: 0; }
html body #page .toolbar.joined .tf-tabs button { height: 28px; line-height: 28px; }
html body #page .toolbar.joined .tb-search { align-self: center; display: inline-flex; align-items: center; height: 36px; margin: 0; }
html body #page .toolbar.joined .tb-search input { height: 36px; box-sizing: border-box; margin: 0; }
/* 1.56.23 - (1) a fixed box (.fx-box, fitted to the window by fxFit): the tunnels, every tab of the DNS page, the box of the Doctor; the list scrolls inside, the box never shrinks to its content;
   (2) without a tunnel the toolbar of the tunnels is switched off; (3) the bar of the load: bigger, finer, the blue of the kit's slider (amber when busy, red when overloaded) */
html body #page .fx-box { height: calc(100vh - 290px); min-height: 360px; max-height: none; box-sizing: border-box; }
html body #page .lbox.dns-box > .card, html body #page .lbox.dns-box > .dns-pane { background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
html body #page .lbox.dns-box .dns-pane { max-height: none; overflow: visible; }
html body #page .card.ap-tasks.fx-box { display: flex; flex-direction: column; }
html body #page .ap-tasks.fx-box > .ap-thead { flex: none; }
html body #page .ap-tasks.fx-box > .ap-tbody:not(.hidden) { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
html body #page .ap-tasks.fx-box .ap-att, html body #page .ap-tasks.fx-box .ap-hist { max-height: none; min-height: 0; overflow: visible; }
html body #page .toolbar.is-empty :is(.tf-tabs, .tb-search) { opacity: .45; pointer-events: none; }
html body #page .toolbar button:disabled, html body #page .srv-tabs button:disabled { opacity: .45; cursor: not-allowed; pointer-events: auto; }
html body #page :is(.lab-cpu, .pbar) .bar { height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05); }
html body #page .lab-cpu .bar { flex: 0 1 96px; min-width: 40px; } html body #page .lab-cpu b { font-size: 13px; }
html body #page :is(.lab-cpu, .pbar) .bar i { min-width: 4px; border-radius: 999px; background: linear-gradient(90deg, #0a62ff, #4aa8ff) !important; box-shadow: 0 0 9px rgba(10,132,255,.55), inset 0 1px 0 rgba(255,255,255,.32); }
html body #page :is(.lab-cpu, .pbar) .bar i.warn { background: linear-gradient(90deg, #f09a22, #ffc44d) !important; box-shadow: 0 0 9px rgba(255,170,50,.5), inset 0 1px 0 rgba(255,255,255,.32); }
html body #page :is(.lab-cpu, .pbar) .bar i.bad { background: linear-gradient(90deg, #e8384f, #ff6b8b) !important; box-shadow: 0 0 9px rgba(255,90,110,.5), inset 0 1px 0 rgba(255,255,255,.28); }
html body #page :is(.lab-cpu, .pbar) .bar i[style*="width:0%"] { min-width: 0; box-shadow: none; }
html[data-mode="light"] body #page :is(.lab-cpu, .pbar) .bar { background: rgba(30,50,100,.13) !important; box-shadow: inset 0 1px 2px rgba(30,50,100,.25); }

/* 1.56.23 - the Serves column is gone: the address stands next to the name, the profile (the tag) has its own column, and what the panel is doing with a server is written under its name */
html body #page .lab-tbl td.lab-prof { overflow: hidden; }
html body #page .lab-tbl .lab-tagc { display: inline-flex; align-items: center; max-width: 100%; height: 24px; padding: 0 10px; margin: 0; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); white-space: nowrap; }
html body #page .lab-tbl .lab-tagc > span { overflow: hidden; text-overflow: ellipsis; }
html body #page .lab-tbl .lab-tagc .lab-logo { width: 14px; height: 14px; margin: 0 6px 0 0; flex: none; vertical-align: middle; }
html body #page .lab-tbl .lab-tagc .lab-emoji { width: auto; margin: 0 6px 0 0; font-size: 12px; flex: none; }
html[data-mode="light"] body #page .lab-tbl .lab-tagc { background: rgba(30,50,100,.07); }
html[data-mode="light"] body #page .lab-tbl .lab-tagc img.lab-logo:not(.lab-flag) { filter: brightness(0) opacity(.8); }
html body #page .lab-tbl .lab-nm small .lab-busy { max-width: 100%; overflow: hidden; white-space: nowrap; font-family: "Inter", system-ui, -apple-system, sans-serif; }
html body #page .lab-tbl .lab-nm small .lab-busy > span:last-child { overflow: hidden; text-overflow: ellipsis; }

/* 1.56.26 - the tabs of the profiles are a box that gives way (the owner: "make it a fixed thing; as the room runs short, the boxes of the profiles get shorter and their names with them"): the tabs shrink, a name that does not fit ends with "...", and the buttons beside them (add, sync, rename, delete) always stay in view */
html body #page .lab-bar .lab-ksw { flex: 0 1 auto; min-width: 0; }
html body #page .lab-bar .lab-tabact { flex: none; }
html body #page .tabs.lab-kinds { flex: 0 1 auto !important; min-width: 0; overflow-x: auto; }
html body #page .tabs.lab-kinds > button { flex: 0 1 auto; min-width: 46px; max-width: 190px; overflow: hidden; }
html body #page .tabs.lab-kinds > button[data-k="any"] { flex: none; }
html body #page .tabs.lab-kinds .lab-kn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #page .tabs.lab-kinds > button .lab-logo, html body #page .tabs.lab-kinds > button .lab-emoji, html body #page .tabs.lab-kinds > button .cnt { flex: none; }
/* 1.56.27 - (1) the icon and the name of a row stand a little to the right, and the lamp is behind the icon (above); (2) the flyout of a menu: an item with a submenu shows a chevron and opens its own small menu beside it ("Move to profile" lists the profiles) */
html body #page .lab-tbl td.name .lab-nmw { margin-left: 12px; }
.lab-mi.has-sub .lab-chev { margin-left: auto; padding-left: 16px; opacity: .6; font-size: 16px; line-height: 1; }
html body .lab-menu.lab-menu .lab-mi.has-sub.open { background: #1b6ef3; color: #fff; }
html body .lab-menu.lab-submenu { z-index: 71; min-width: 176px; }
html body .lab-submenu .lab-mi .lab-mt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html body .lab-submenu .lab-mi .lab-ck { margin-left: auto; padding-left: 14px; color: #6cb2ff; font-size: 12px; }
html body .lab-submenu .lab-mi:hover .lab-ck { color: #fff; }
html body .lab-menu .lab-mic .lab-logo { width: 15px; height: 15px; margin: 0; vertical-align: middle; filter: grayscale(1) brightness(1.3); }
html body .lab-menu .lab-mic .lab-emoji { width: auto; margin: 0; font-size: 13px; filter: grayscale(1) brightness(1.15); }
html[data-mode="light"] body .lab-menu .lab-mic img.lab-logo:not(.lab-flag) { filter: brightness(0) opacity(.8); }
/* 1.57.1 - the row like the owner's drawing: a lamp of its own at the left, the flag and the icon, the name with its provider under it | the address with a globe | a small chart of the CPU with the number, a thin bar and RAM / Disk | the traffic in two lines | the menu and a chevron */
html body #page .lab-tbl td { height: 56px; }
html body #page .lab-tbl :is(td.lab-pb, td.lab-ip, td.lab-ld, td.lab-trf, td.lab-act) { position: relative; }
html body #page .lab-tbl :is(td.lab-pb, td.lab-ip, td.lab-ld, td.lab-trf, td.lab-act)::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(255,255,255,.09); pointer-events: none; }
html[data-mode="light"] body #page .lab-tbl :is(td.lab-pb, td.lab-ip, td.lab-ld, td.lab-trf, td.lab-act)::before { background: rgba(30,50,100,.14); }
html body #page .lab-lamp { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--lamp, #5e6a86); box-shadow: 0 0 10px color-mix(in srgb, var(--lamp, transparent) 55%, transparent); transition: background .3s, box-shadow .3s; }
html body #page tr[data-lamp="off"] .lab-lamp { box-shadow: none; opacity: .75; }
html body #page .lab-tbl td.name .lab-tagc { height: 20px; margin-left: 8px; padding: 0 8px; font-size: 11px; vertical-align: 1px; }
html body #page .lab-tbl td.name .lab-tagc .lab-logo { width: 12px; height: 12px; margin-right: 5px; } html body #page .lab-tbl td.name .lab-tagc .lab-emoji { font-size: 11px; margin-right: 5px; }
html body #page .lab-tbl td.lab-ip { font-size: 13.5px; white-space: nowrap; }
html body #page .lab-ip .lab-glb { display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: middle; color: var(--mut); }
html body #page .lab-ip .lab-glb svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
html body #page .lab-tbl .lab-ldw { display: flex; align-items: center; gap: 14px; min-width: 0; }
html body #page .lab-ldx { display: grid; gap: 3px; min-width: 0; }
html body #page .lab-ldx .lab-cpu { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
html body #page .lab-ldx .lab-cpu b { order: -1; font-size: 14px; font-weight: 700; line-height: 1; }
html body #page .lab-ldx .lab-cpu .bar { flex: none; width: 100%; max-width: 128px; min-width: 0; height: 6px; margin: 0; }
html body #page .lab-tbl .lab-trf .trf { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; line-height: 1.1; }
html body #page .lab-tbl .lab-trf .ta { width: 20px; height: 20px; } html body #page .lab-tbl .lab-trf .ta svg { width: 20px; height: 20px; stroke-width: 2.2; }
html body #page .lab-trf .tv { display: grid; gap: 1px; } html body #page .lab-trf .tv b { font-size: 15px; font-weight: 700; } html body #page .lab-trf .tv small { font-size: 11px; font-weight: 400; color: var(--mut); }
html body #page .lab-tbl .td-act { gap: 8px; }
html body #page .lab-tbl .lab-kb { width: 38px; height: 38px; border-radius: 11px; }
/* 1.57.3 - (1) the flag behind a name fades on BOTH sides; (2) "Add server" is the button of the UI kit sheet (Button with Icon): the blue of the primary button, a line plus, no sweep of light; there is no Check button any more */
html body #page .lab-bar button.lab-add { height: 34px; padding: 0 16px 0 13px; gap: 8px; border-radius: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: .1px; text-shadow: none; }
html body #page .lab-bar button.lab-add::before, html body #page .lab-bar button.lab-add::after { content: none !important; display: none !important; }
html body #page .lab-bar button.lab-add .lab-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: 0; }
html body #page .lab-bar button.lab-add .lab-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* 1.57.4/5 - the bar of a page (Tunnels, DNS ...) in the kit's own look (the owner: "these buttons and this row: this style"): the primary button = the flat blue of "Connect" with a LINE plus (no gloss, no circle); the others = the dark card of "Settings"; the counters = the chip; All / Problems = the segmented control with the lifted open segment; Search = the text field with the blue ring */
html body #page .toolbar.joined :is(button.cta, button.pri) { border-radius: 11px !important; background-image: linear-gradient(180deg, #1a74ff 0%, #0a5cf2 100%) !important; border: 1px solid rgba(120, 180, 255, .42) !important; box-shadow: 0 2px 10px rgba(10, 98, 255, .38) !important; text-shadow: none !important; font-weight: 600; letter-spacing: .1px; }
html body #page .toolbar.joined :is(button.cta, button.pri)::before, html body #page .toolbar.joined :is(button.cta, button.pri)::after { content: none !important; display: none !important; }
html body #page .toolbar.joined .cta-ic { background: none !important; box-shadow: none !important; border: 0 !important; font-size: 0 !important; color: inherit !important; display: inline-grid; place-items: center; }
html body #page .toolbar.joined .cta-ic::before { content: "" !important; display: block !important; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
html body #page .toolbar.joined button:not(.cta):not(.pri):not(.danger):not(.del):not(.ghost):not([class*="tab"]):not([role="tab"]):not(.lab-kb):not(.dns-chip):not(.dns-x) { background-image: linear-gradient(180deg, #1d2335, #171c2c) !important; background-color: #1a2032 !important; border: 1px solid rgba(255, 255, 255, .11) !important; border-radius: 11px !important; color: #e8ebf7 !important; font-weight: 500; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important; }
html body #page .toolbar.joined button:not(.cta):not(.pri):not(.danger):not(.del):not(.ghost):not([class*="tab"]):not([role="tab"]):not(.lab-kb):not(.dns-chip):not(.dns-x):not(:disabled):hover { background-color: #212a40 !important; border-color: rgba(255, 255, 255, .2) !important; }
html body #page .toolbar.joined .tcount { background: rgba(255, 255, 255, .04) !important; border: 1px solid var(--uk-line) !important; border-radius: 11px !important; }
html body #page .toolbar.joined .tcount .tc + .tc { border-left: 1px solid var(--uk-line) !important; }
html body #page .toolbar.joined .tabs { background: #151a2b !important; border: 1px solid var(--uk-line) !important; border-radius: 11px !important; padding: 3px; gap: 2px; }
html body #page .toolbar.joined .tabs button { background: transparent !important; border: 0 !important; border-radius: 8px !important; color: #b6bfd6 !important; box-shadow: none !important; font-weight: 500; }
html body #page .toolbar.joined .tabs button:hover { color: #fff !important; background: rgba(255, 255, 255, .06) !important; }
html body #page .toolbar.joined .tabs button.on { background: #2d3f68 !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .4) !important; }
html body #page .toolbar.joined .tabs button .cnt { background: rgba(255, 255, 255, .1) !important; color: inherit; }
html body #page :is(.toolbar.joined, .lab-bar) .tb-search input { background-color: #0f1424 !important; border: 1px solid var(--uk-line) !important; border-radius: 11px !important; color: var(--uk-text) !important; }
html body #page :is(.toolbar.joined, .lab-bar) .tb-search input:focus { border-color: var(--uk-blue) !important; box-shadow: 0 0 0 3px var(--uk-ring) !important; }
html[data-mode="light"] body #page .toolbar.joined button:not(.cta):not(.pri):not(.danger):not(.del):not(.ghost):not([class*="tab"]):not([role="tab"]):not(.lab-kb):not(.dns-chip):not(.dns-x) { background-image: none !important; background-color: #fff !important; border-color: rgba(30, 50, 100, .16) !important; color: #1b2540 !important; box-shadow: 0 1px 2px rgba(30, 50, 100, .08) !important; }
html[data-mode="light"] body #page .toolbar.joined .tcount { background: #fff !important; border-color: rgba(30, 50, 100, .16) !important; }
html[data-mode="light"] body #page .toolbar.joined .tabs { background: #eef2fa !important; border-color: rgba(30, 50, 100, .14) !important; }
html[data-mode="light"] body #page .toolbar.joined .tabs button { color: #4a5a7e !important; } html[data-mode="light"] body #page .toolbar.joined .tabs button.on { background: #fff !important; color: #14213d !important; box-shadow: 0 1px 3px rgba(30, 50, 100, .18), inset 0 0 0 1px rgba(47, 111, 224, .35) !important; }
html[data-mode="light"] body #page :is(.toolbar.joined, .lab-bar) .tb-search input { background-color: #fff !important; border-color: rgba(30, 50, 100, .16) !important; color: #14213d !important; }

/* 1.57.5 - the Panel bar in the kit's look ("like a MacBook" = the sheet): the panels are tags (the open one is the lifted segment, a faint cross), "add" is the icon button of the sheet (a slate rounded square, blue when pointed at), the facts are chips; and the box of the panels is fixed: many panels never push the rest out of the page, they scroll inside it */
html body #page .pn-bar .dns-stat, html body #page .pn-bar .pn-auth, html body #page .pn-bar .pn-facts .pill { border-radius: 11px; }
/* 1.57.8 - (1) the flag behind a name keeps its own proportions (it was stretched), fades on all four sides, is grey and turns to its colours when the row is pointed at; (2) the tabs of a panel keep ONE size when chosen and the open one is lifted and blue (the owner: "so the user knows he is in Usage"); (3) the windows are in the kit's look ("like a MacBook" = the sheet): dark wells with a soft blue ring, square header buttons, the flat blue primary */
html body #page .lab-tbl tr:hover td.name.has-flag::before { opacity: .4 !important; filter: none !important; }
html body #page .lab-tbl tr.srv-off td.name.has-flag::before { opacity: .12 !important; filter: grayscale(1) !important; }
html body :is(#page, #pn-body) :is(.pn-bars, .pn-tabs, #pn-ctl, .pg-bar) .tabs button { box-sizing: border-box; border: 1px solid transparent; font-weight: 600 !important; }
html body :is(#page, #pn-body) :is(.pn-bars, .pn-tabs, #pn-ctl, .pg-bar) .tabs button.on { background: #2d3f68 !important; border-color: rgba(120, 170, 255, .5) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .4) !important; }
html[data-mode="light"] body :is(#page, #pn-body) :is(.pn-bars, .pn-tabs, #pn-ctl, .pg-bar) .tabs button.on { background: #e3edff !important; border-color: #9bbcf3 !important; color: #1456c8 !important; box-shadow: inset 0 0 0 1px rgba(47, 111, 224, .35) !important; }
html body #modal :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea) { background-color: #0f1424 !important; border: 1px solid rgba(255, 255, 255, .10) !important; border-radius: 12px !important; color: #e8ebf7; outline: none !important; box-shadow: none; }
html body #modal :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea):focus { border-color: #1f7bff !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, .30) !important; }
html body #modal input[type=number]::-webkit-inner-spin-button, html body #modal input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } html body #modal input[type=number] { -moz-appearance: textfield; appearance: textfield; }
html body #modal .modal-head > button { border-radius: 11px !important; background-image: linear-gradient(180deg, #1d2335, #171c2c) !important; background-color: #1a2032 !important; border: 1px solid rgba(255, 255, 255, .12) !important; color: #e8ebf7 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important; }
html body #modal button.pri { border-radius: 11px !important; background-image: linear-gradient(180deg, #1a74ff 0%, #0a5cf2 100%) !important; border: 1px solid rgba(120, 180, 255, .42) !important; box-shadow: 0 2px 10px rgba(10, 98, 255, .38) !important; text-shadow: none !important; font-weight: 600; }
html body #modal button.pri::before, html body #modal button.pri::after { content: none !important; display: none !important; }
html[data-mode="light"] body #modal :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea) { background-color: #fff !important; border-color: rgba(30, 50, 100, .18) !important; color: #14213d; }
html[data-mode="light"] body #modal .modal-head > button { background-image: none !important; background-color: #fff !important; border-color: rgba(30, 50, 100, .16) !important; color: #1b2540 !important; }
/* 1.57.9 - the load of a row stands in the MIDDLE of its column, the bar is longer and looks like the owner's drawing: a thick round bar, a flat soft blue (amber / red when busy) on a slate track, no glow */
html body #page .lab-tbl th.lab-ld, html body #page .lab-tbl td.lab-ld { text-align: center; }
html body #page .lab-tbl .lab-ldw { justify-content: center; }
html body #page .lab-ldx { justify-items: center; text-align: center; }
html body #page .lab-ldx .lab-cpu { align-items: center; width: 100%; }
html body #page .lab-ldx .lab-cpu .bar { max-width: 170px; height: 9px; }
html body #page :is(.lab-cpu, .pbar) .bar { background: #2a3350 !important; box-shadow: none; }
html body #page :is(.lab-cpu, .pbar) .bar i { min-width: 8px; background: #66a3ff !important; box-shadow: none; }
html body #page :is(.lab-cpu, .pbar) .bar i.warn { background: #f5b94a !important; box-shadow: none; } html body #page :is(.lab-cpu, .pbar) .bar i.bad { background: #ff6b81 !important; box-shadow: none; }
html body #page :is(.lab-cpu, .pbar) .bar i[style*="width:0%"] { min-width: 0; }
html[data-mode="light"] body #page :is(.lab-cpu, .pbar) .bar { background: rgba(30, 50, 100, .13) !important; }
/* 1.57.10 - the icon and the name stand close to their lamp (the Status column is a fixed 80 px) */
html body #page .lab-tbl td.name .lab-nmw { margin-left: 2px; }
/* 1.57.12 - (1) the lamp column is just the lamp (no word over it), so the names stand close to it; (2) the two rows of the Panel page - the panels and the tabs - are one surface of the kit: the same dark card, the same light edge, the same corners and height */
html body #page :is(.pn-top.pn-bar, #pn-body .pg-bar, #pn-body > .pn-bars > .toolbar) { background: #141a2b !important; border: 1px solid var(--uk-line) !important; border-radius: 14px !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important; min-height: 52px; box-sizing: border-box; }
html[data-mode="light"] body #page :is(.pn-top.pn-bar, #pn-body .pg-bar, #pn-body > .pn-bars > .toolbar) { background: #fff !important; border-color: rgba(30, 50, 100, .14) !important; box-shadow: 0 1px 2px rgba(30, 50, 100, .06) !important; }
/* 1.57.12 - the buttons of the Doctor page ("make their size and style like a MacBook and alike"): the two rows of tabs and the range are the same segmented track (36 px, radius 11, 28 px buttons, the open one lifted and blue), the icons are quiet, Explain is a kit button and the chips have the kit's corners */
html body #page :is(.ap-ttabs, .ana-head .tabs, .bt-range) { display: inline-flex; align-items: center; gap: 2px; height: 36px; box-sizing: border-box; margin: 0; padding: 3px; width: auto; border-radius: 11px; background: #151a2b; border: 1px solid var(--uk-line); box-shadow: none; }
html body #page :is(.ap-ttabs, .ana-head .tabs, .bt-range) button { height: 28px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; background: transparent !important; box-shadow: none !important; color: #b6bfd6; font-size: 13px; font-weight: 600; line-height: 1; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; }
html body #page :is(.ap-ttabs, .ana-head .tabs, .bt-range) button:hover { color: #fff; background: rgba(255, 255, 255, .06) !important; }
html body #page :is(.ap-ttabs, .ana-head .tabs, .bt-range) button.on { background: #2d3f68 !important; border-color: rgba(120, 170, 255, .5); color: #fff; box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .4) !important; }
html body #page :is(.ap-ttabs, .ana-head .tabs, .bt-range) button .cnt { background: rgba(255, 255, 255, .12); color: inherit; }
html body #page .ap-ttabs .tab-ic { font-style: normal; margin: 0; }
html body #page .ap-thead button:not([data-k]) { height: 32px; border-radius: 11px; font-size: 13px; font-weight: 600; }
html body #page .ap-thead .pill { height: 28px; display: inline-flex; align-items: center; border-radius: 11px; }
html[data-mode="light"] body #page :is(.ap-ttabs, .ana-head .tabs, .bt-range) { background: #eef2fa; border-color: rgba(30, 50, 100, .14); }
html[data-mode="light"] body #page :is(.ap-ttabs, .ana-head .tabs, .bt-range) button { color: #4a5a7e; } html[data-mode="light"] body #page :is(.ap-ttabs, .ana-head .tabs, .bt-range) button.on { background: #fff !important; color: #14213d; box-shadow: 0 1px 3px rgba(30, 50, 100, .18), inset 0 0 0 1px rgba(47, 111, 224, .35) !important; }
/* 1.57.13 - the geometry of a Lab row, in three numbers (the owner: "the distance from the lamp exact and engineered, checked with a test"): the lamp is INSIDE the name cell, --lab-pad from its left edge, --lab-dot wide; the icon starts --lab-gap after the lamp (the cell's left padding is pad + dot + gap, the icon has no other margin); the flag sits under the icon and fades on all four sides, and when the row is pointed at the text and the icon get a shadow so they stay readable */
html body #page .lab-tbl { --lab-pad: 16px; --lab-dot: 14px; --lab-gap: 20px; --lab-icon: 26px; --lab-start: calc(var(--lab-pad) + var(--lab-dot) + var(--lab-gap)); }
html body #page .lab-tbl td.name, html body #page .lab-tbl th:first-child { padding-left: var(--lab-start); }
html body #page .lab-tbl td.name .lab-lamp { position: absolute; left: var(--lab-pad); top: 50%; width: var(--lab-dot); height: var(--lab-dot); margin: calc(var(--lab-dot) / -2) 0 0; }
html body #page .lab-tbl td.name .lab-nmw { margin-left: 0; }
html body #page .lab-tbl td.name .srv-ic { width: var(--lab-icon); height: var(--lab-icon); }
html body #page .lab-tbl td.name.has-flag::before { left: calc(var(--lab-start) - 30px); right: auto; width: 110px; background-size: cover; background-position: center; background-repeat: no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 58%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 34%, #000 66%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 58%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 34%, #000 66%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; opacity: .24 !important; filter: grayscale(1) !important; transition: opacity .3s, filter .3s; }
html body #page .lab-tbl tr:hover td.name .lab-nm b, html body #page .lab-tbl tr:hover td.name .lab-nm small { text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 8px rgba(0, 0, 0, .55); }
html body #page .lab-tbl tr:hover td.name .srv-ic > svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85)); }
html body #page .lab-tbl tr:hover td.name .srv-ic img.lab-logo { filter: grayscale(1) brightness(1.5) drop-shadow(0 1px 2px rgba(0, 0, 0, .85)); }
html[data-mode="light"] body #page .lab-tbl tr:hover td.name :is(.lab-nm b, .lab-nm small) { text-shadow: none; }
/* 1.57.13 - the bar of the panels is the bar of the profiles (the owner: "like the Profile section, no edit button, a locked box"): the same segmented control, the same + and bin icon buttons; the box has ONE fixed height and the panels scroll inside it, they never push the facts out of the page */
html body #page .pn-bar { height: 56px; box-sizing: border-box; overflow: hidden; }
html body #page .pn-bar.pn-pick { height: auto; min-height: 56px; }      /* (Users / Configs / Admins: the tools beside the panels wrap to a second row at 768 px - a bar fixed at 56 px was drawn over by the table; the bar of General stays fixed) */
html body #page .pn-bar .pn-ksw { flex: 0 1 auto; min-width: 0; max-width: 100%; }
html body #page .pn-bar .pn-seg { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
html body #page .pn-bar .pn-seg::-webkit-scrollbar { display: none; }
html body #page .pn-bar .pn-seg > button { flex: 0 0 auto; }
html body #page .pn-bar .pn-seg i.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--unk, #5e6a86); } html body #page .pn-bar .pn-seg i.dot.ok { background: var(--ok); } html body #page .pn-bar .pn-seg i.dot.bad { background: var(--bad); }
/* 1.57.13 - the column "Traffic used": the bytes a server (or a node) has carried, value over unit, the same two arrows as the speed */
html body #page .lab-tbl td.lab-used .tv small { font-size: 11px; }
/* 1.57.13 - the problems of a server as tags after its name (the kit's Warning and Error chips): GRE x, Filtered, Offline, CPU 91 % ... - the lamp ignores the way to the server, these tags say it */
html body #page .lab-tbl td.lab-pb .lab-iss { display: inline-flex; align-items: center; gap: 3px; height: 18px; margin: 2px 4px 2px 0; padding: 0 7px; border: 1px solid; border-radius: 9px; font-size: 10.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
html body #page .lab-tbl td.lab-pb .lab-iss svg { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html body #page .lab-tbl td.lab-pb .lab-iss.bad { color: #ff8a9b; background: rgba(255, 107, 129, .14); border-color: rgba(255, 107, 129, .4); }
html body #page .lab-tbl td.lab-pb .lab-iss.warn { color: #f5b94a; background: rgba(245, 185, 74, .14); border-color: rgba(245, 185, 74, .4); }
html body #page .lab-tbl td.lab-pb .lab-iss.more { color: var(--mut); background: rgba(255, 255, 255, .06); border-color: var(--uk-line); }
html[data-mode="light"] body #page .lab-tbl td.lab-pb .lab-iss.bad { color: #c0213b; background: #ffe7ec; } html[data-mode="light"] body #page .lab-tbl td.lab-pb .lab-iss.warn { color: #9a6200; background: #fff3d6; }
/* 1.57.15 - the arrows of the traffic columns have the colour of the small text under the load ("RAM 35 % · Disk 33 %"), the kit's muted text colour (the owner) */
html body #page .lab-tbl .lab-trf .ta.d, html body #page .lab-tbl .lab-trf .ta.u { color: var(--mut); }
html body #page .lab-tbl td.lab-pb { padding-left: 16px; }      /* the problems have a column of their own, a clear step away from the name (1.57.16) */

/* 1.57.18 - the boxes of the Panel bar: 28 px segment buttons and icon buttons inside the 36 px track (the old rule of the bar made them 32 px, so they stuck out of the track) */
html body #page .pn-bar .pn-ksw .pn-seg { height: 36px; box-sizing: border-box; align-items: center; }
html body #page .pn-bar .pn-ksw .pn-seg > button { height: 28px; min-height: 0; padding: 0 12px; box-sizing: border-box; }
html body #page .pn-bar .pn-ksw .lab-tabact { align-items: center; gap: 6px; }
html body #page .pn-bar .pn-ksw .lab-tabact .lab-ib { width: 28px; height: 28px; min-height: 0; }
/* 1.57.18 - the banner of a server window is ONE slim row (the owner: "instead of this big box a more compact thing in one row"): the icon, the title, what is wrong (cut with ... when it is long, the whole text in the tooltip) and the buttons at the end */
html body .lab-ban { align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; box-sizing: border-box; border-radius: 12px; flex-wrap: nowrap; }
html body .lab-ban .lb-i { width: 22px; height: 22px; font-size: 12px; }
html body .lab-ban .lb-t { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
html body .lab-ban .lb-t > b { flex: none; font-size: 13px; font-weight: 650; }
html body .lab-ban .lb-t > .lb-m { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: var(--mut); } html body .lab-ban .lb-t > .lb-m.err { color: var(--bad); }
html body .lab-ban .lb-a { flex-wrap: nowrap; gap: 6px; } html body .lab-ban .lb-a button { height: 28px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { html body .lab-ban { flex-wrap: wrap; } html body .lab-ban .lb-t { white-space: normal; flex-wrap: wrap; } }
/* 1.57.21 - smaller type and arrows in the two traffic columns (the owner): numbers 13 px, units 10 px, arrows 14 px */
html body #page .lab-tbl .lab-trf .trf { gap: 6px; margin-right: 14px; }
html body #page .lab-tbl .lab-trf .ta { width: 14px; height: 14px; } html body #page .lab-tbl .lab-trf .ta svg { width: 14px; height: 14px; stroke-width: 2; }
html body #page .lab-trf .tv b { font-size: 13px; } html body #page .lab-trf .tv small, html body #page .lab-tbl td.lab-used .tv small { font-size: 10px; }
/* 1.57.22 - the load of a row is smaller (the owner): the number 12 px, the bar 120 px x 6 px, the line under it 10 px */
html body #page .lab-ldx .lab-cpu b { font-size: 12px; }
html body #page .lab-ldx .lab-cpu .bar { max-width: 120px; height: 6px; }
html body #page .lab-ldw small { font-size: 10px; }
/* 1.57.23 - "API key / token | Sign in once" (Add and Edit panel): the kit's segmented control, the chosen one lifted and blue (the owner: "their colour must differ when I choose") */
html body #modal .tabs.pn-mode { display: inline-flex; align-items: center; gap: 2px; height: 36px; box-sizing: border-box; padding: 3px; border-radius: 11px; background: #151a2b; border: 1px solid var(--uk-line); }
html body #modal .tabs.pn-mode button { height: 28px; padding: 0 14px; box-sizing: border-box; border: 1px solid transparent !important; border-radius: 8px !important; background: transparent !important; box-shadow: none !important; color: #b6bfd6 !important; font-size: 13px; font-weight: 600; }
html body #modal .tabs.pn-mode button:hover { color: #fff !important; background: rgba(255, 255, 255, .06) !important; }
html body #modal .tabs.pn-mode button.on { background: #2d3f68 !important; border-color: rgba(120, 170, 255, .5) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .4) !important; }
html[data-mode="light"] body #modal .tabs.pn-mode { background: #eef2fa; border-color: rgba(30, 50, 100, .14); } html[data-mode="light"] body #modal .tabs.pn-mode button { color: #4a5a7e !important; } html[data-mode="light"] body #modal .tabs.pn-mode button.on { background: #fff !important; color: #14213d !important; box-shadow: 0 1px 3px rgba(30, 50, 100, .18), inset 0 0 0 1px rgba(47, 111, 224, .35) !important; }
/* 1.57.28 - the empty Panel page is ONE card of a fixed size (fitted to the window by fxFit): an icon, a title, a line and the way to add a panel */
html body #page .pn-first { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 24px; text-align: center; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, #181e30, #141a2b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
html body #page .pn-first-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(77, 135, 242, .14); color: #8db4ff; } html body #page .pn-first-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html body #page .pn-first h2 { margin: 4px 0 0; font-size: 18px; font-weight: 650; color: var(--text); } html body #page .pn-first p { margin: 0 0 6px; max-width: 420px; font-size: 13px; line-height: 1.5; }
html body #page .pn-bar .pn-none { font-size: 13px; }
html[data-mode="light"] body #page .pn-first { background: #fff; border-color: rgba(30, 50, 100, .14); box-shadow: 0 1px 2px rgba(30, 50, 100, .06); } html[data-mode="light"] body #page .pn-first h2 { color: #14213d; }
/* 1.57.30 - (1) the switch of the kit (the owner's picture): off = a dark slate pill with a light knob, on = the blue pill with a soft glow, the knob slides; one look in pages AND windows (the "Add the rest" switch of the user window had the old grey one, its knob off the middle); (2) the Activity box of the user window has ONE fixed height; (3) Cancel and Save stand at the foot of the user window, at the right (Save last), in a bar that stays in view */
html body :is(#page, #modal) label.ob2-sw { position: relative; display: inline-flex; align-items: center; flex: none; width: 40px; min-width: 40px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: none; cursor: pointer; }
html body :is(#page, #modal) label.ob2-sw i { display: block; position: relative; width: 40px; height: 24px; border-radius: 12px; background: linear-gradient(180deg, #313a56, #252c44) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 2px rgba(0, 0, 0, .4); transition: background .22s, box-shadow .22s; }
html body :is(#page, #modal) label.ob2-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #fff, #d3dbf0); box-shadow: 0 1px 3px rgba(0, 0, 0, .45); transition: transform .25s cubic-bezier(.3, 1.2, .5, 1); }
html body :is(#page, #modal) label.ob2-sw.on i, html body :is(#page, #modal) label.ob2-sw:has(input:checked) i { background: linear-gradient(180deg, #2f9dff, #0a6cf0) !important; box-shadow: 0 0 0 1px rgba(10, 124, 245, .55), 0 0 10px rgba(10, 132, 255, .45); }
html body :is(#page, #modal) label.ob2-sw.on i::after, html body :is(#page, #modal) label.ob2-sw:has(input:checked) i::after { transform: translateX(16px); }
html body :is(#page, #modal) label.ob2-sw:focus-within { outline: 2px solid rgba(90, 169, 255, .6); outline-offset: 2px; }
html[data-mode="light"] body :is(#page, #modal) label.ob2-sw i { background: #c3cde0 !important; box-shadow: inset 0 0 0 1px rgba(30, 40, 80, .12); }
html[data-mode="light"] body :is(#page, #modal) label.ob2-sw.on i, html[data-mode="light"] body :is(#page, #modal) label.ob2-sw:has(input:checked) i { background: linear-gradient(180deg, #2f9dff, #0a6cf0) !important; }
html body #modal .pgu #pgu-actbody { height: 150px; max-height: none; overflow: auto; }
html body #modal .ue .pu-save { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 14px 0 0; padding: 12px 2px 4px; background: #0f1626; border-top: 1px solid var(--uk-line); }
html body #modal .ue .pu-save button { height: 36px; padding: 0 20px; border-radius: 11px; font-size: 13px; font-weight: 600; }

/* 1.57.31 - the roles window and its sisters (API key, admin) are COMPACT: rows of 30 px, sections close together, the limits never stick out of their card (the label wraps instead), the rights are one list that scrolls with the window (no second scroll box, no white corner), Cancel + Save stand at the foot of the window, to the right, in a bar that stays in view; the Close button has a gap between the cross and its word; the admins and keys lists show a face (emoji) where the coloured strip was */
html body #modal .pg-admin-win .modal-body { overflow-x: hidden; }
html body #modal .pg-admin-form2 .pg-admin-cols, html body #modal .pg-admin-form2 .pg-admin-cols > div { gap: 8px; }
html body #modal .pg-admin-form2 .sbox { padding: 2px 12px 6px; }
html body #modal .pg-admin-form2 .sbox > h5 { min-height: 0; height: 24px; margin: 0 0 2px; }
html body #modal .pg-admin-form2 .kf { min-height: 30px; padding: 1px 0; }
html body #modal .pg-admin-form2 .kf input, html body #modal .pg-admin-form2 .kf select { height: 26px; }
html body #modal .pg-admin-form2 .pg-admin-sw { min-height: 28px; }
html body #modal .pg-roles-form .pg-roles-lim { gap: 0 14px; }
html body #modal .pg-roles-form .pg-roles-lim .kf { min-width: 0; gap: 8px; }
html body #modal .pg-roles-form .pg-roles-lim .kf > span:first-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.15; }
html body #modal .pg-roles-form .pg-roles-lim input { width: 80px; }
html body #modal .pg-roles-form .pg-roles-h { margin: 4px 0 0; }
html body #modal .pg-roles-form .pg-roles-pick label.chk { height: 28px; }
html body #modal .pg-admin-permwrap { max-height: none; overflow: visible; margin-top: 8px; padding-right: 0; }
html body #modal .pg-admin-perm { gap: 8px; }
html body #modal .pg-admin-res label { min-height: 24px; }
html body #modal .pg-admin-res select { height: 22px; }
html body #modal .pg-admin-form2 .frm-act { position: sticky; bottom: 0; z-index: 3; display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: center; gap: 10px; margin: 8px 0 0; padding: 10px 2px 4px; background: #0f1626; border-top: 1px solid var(--uk-line); }
html body #modal .pg-admin-form2 .frm-act button { height: 36px; padding: 0 20px; border-radius: 11px; font-size: 13px; font-weight: 600; }
html body #modal .modal-head button > .bt { margin-left: 6px; }
html body #page .pg-admin-box .tbl tbody tr td:first-child { border-left: 0 !important; box-shadow: none !important; }
html body #page .pg-admin-nm .pg-admin-emo { flex: none; font-style: normal; font-size: 17px; line-height: 1; margin-right: 8px; }
html[data-mode="light"] body #modal :is(.pg-admin-form2 .frm-act, .ue .pu-save) { background: #f7f9fd; }

/* 1.57.33 - no panel yet: the sections of the Panel that need one are dim and quiet (the owner, 2026-10-16) */
html body nav a.nav-nopanel { opacity: .38; filter: grayscale(1); pointer-events: none; cursor: default; }
html body nav a.nav-nopanel::before, html body nav a.nav-nopanel::after { display: none !important; }
html[data-mode="light"] body nav a.nav-nopanel { opacity: .45; }

/* 1.57.43 - the kit menu of a select or a field with a list (nkDd in app.js), after the owner's picture: a dark card with big round corners, the groups in spaced capitals with a line between them, every item a little picture tile + the name + its note under it, thin lines between the items; the chosen one on a soft blue ground with a blue tick at the right */
html body .nk-dd { position: fixed; z-index: 100000; box-sizing: border-box; overflow: auto; padding: 8px 10px 10px; border-radius: 22px; background: #0f1829; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 64px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(0, 0, 0, .7); scrollbar-width: thin; scrollbar-color: #3a4766 transparent; opacity: 0; transform: translateY(-4px) scale(.985); transition: opacity .14s ease, transform .14s ease; }
html body .nk-dd.open { opacity: 1; transform: none; }
html body .nk-dd .nk-dd-g { padding: 12px 10px 6px; font-size: 12.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: #8793b3; }
html body .nk-dd .nk-dd-g:first-child { padding-top: 8px; } html body .nk-dd .nk-dd-g:not(:first-child) { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 16px; }
html body .nk-dd .nk-dd-i { display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 100%; min-height: 54px; margin: 0; padding: 7px 12px 7px 8px; border: 1px solid transparent; border-bottom-color: rgba(255, 255, 255, .06); border-radius: 0; background: transparent; box-shadow: none; color: #eef2fb; font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; }
html body .nk-dd .nk-dd-i.noic { min-height: 40px; padding-left: 12px; }
html body .nk-dd .nk-dd-i:hover:not([disabled]), html body .nk-dd .nk-dd-i.hl:not([disabled]) { background: rgba(255, 255, 255, .05); border-radius: 12px; }
html body .nk-dd .nk-dd-i.on { background: rgba(70, 120, 230, .18); border-color: rgba(100, 150, 255, .22); border-radius: 12px; }
html body .nk-dd .nk-dd-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: #1a2236; color: #d3dbef; font-style: normal; }
html body .nk-dd .nk-dd-ic.blue { color: #4f9bff; } html body .nk-dd .nk-dd-ic.violet { color: #8f86f7; } html body .nk-dd .nk-dd-i.on .nk-dd-ic { background: #23407a; color: #6fa8ff; }
html body .nk-dd .nk-dd-ic svg, html body .nk-dd .nk-dd-ck { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; } html body .nk-dd .nk-dd-ic svg { width: 21px; height: 21px; }
html body .nk-dd .nk-dd-tx { display: grid; gap: 1px; flex: 1 1 auto; min-width: 0; }
html body .nk-dd .nk-dd-t { font-size: 15px; font-weight: 500; line-height: 1.25; color: #f1f4fc; }
html body .nk-dd .nk-dd-n { font-size: 13.5px; font-weight: 400; line-height: 1.3; color: #9aa6c4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .nk-dd .nk-dd-star { display: inline-block; vertical-align: -2px; margin-left: 4px; font-style: normal; color: #4f9bff; } html body .nk-dd .nk-dd-star svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
html body .nk-dd .nk-dd-ck { width: 20px; height: 20px; stroke-width: 2.4; color: #4f9bff; visibility: hidden; } html body .nk-dd .nk-dd-i.on .nk-dd-ck { visibility: visible; }
html body .nk-dd .nk-dd-i[disabled] { opacity: .4; cursor: default; }
html[data-mode="light"] body .nk-dd { background: #fff; border-color: rgba(30, 50, 100, .16); box-shadow: 0 18px 48px rgba(30, 50, 100, .22); }
html[data-mode="light"] body .nk-dd .nk-dd-i, html[data-mode="light"] body .nk-dd .nk-dd-t { color: #1b2540; } html[data-mode="light"] body .nk-dd :is(.nk-dd-g, .nk-dd-n) { color: #6b7896; } html[data-mode="light"] body .nk-dd .nk-dd-ic { background: #f1f4fa; color: #3d4b70; }
@media (prefers-reduced-motion: reduce) { html body .nk-dd { transition: none; } }
/* 1.57.33 - the page area keeps ONE width whether the page needs a scrollbar or not (a page without one shifted everything 10 px to the right - the owner, 2026-10-16: "the page jumps when I switch"); the why line under a verdict of a story */
@media (min-width: 761px), (pointer: fine) { html body .main { scrollbar-gutter: stable; } }
html body .fx-line .fx-why { display: block; margin-top: 3px; font-style: normal; font-weight: 400; line-height: 1.4; color: var(--mut); }

/* 1.57.35 - between the tabs of the Panel the tab that was open stays, dimmed, until the new one has its data (no spinner) */
html body #page #pn-body.pn-busy > :not(.pn-bars) { opacity: .45; pointer-events: none; transition: opacity .12s; }

/* 1.57.36 - a tab of Settings that is switched off (Shop bot): grey, nothing happens on it */
html body #page .set-tabs button.sub-off { opacity: .38; filter: grayscale(1); pointer-events: none; cursor: default; box-shadow: none !important; }

/* 1.57.38 - Settings → About & update after the owner's design picture: four boxes of ONE fixed size (this panel, its license, the tunnel cores, the PasarGuard panels and nodes) and a strip of the facts of the service under them; what is longer scrolls inside its box; the buttons of the password card (Settings → Security) */
html body #page .sf[data-name="About & update"] { background: none; border: 0; box-shadow: none; padding: 0; }
html body #page .sf[data-name="About & update"] > h3 { display: none; }
html body #page .abt-wrap { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
html body #page .abt-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 156px 316px; gap: 12px; }
@media (max-width: 1000px) { html body #page .abt-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: minmax(232px, auto); } html body #page .abt-wrap.fx-box { height: auto !important; } }
html body #page .abt-card { display: flex; flex-direction: column; min-height: 0; box-sizing: border-box; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--uk-line); background: linear-gradient(180deg, #111a2e, #0e1626); }
html body #page .abt-ch { display: flex; align-items: flex-start; gap: 14px; flex: none; }
html body #page .abt-ti { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; background: #1a2036; border: 1px solid var(--uk-line); color: #8fb4ff; font-style: normal; }
html body #page .abt-ti.ok { color: #3ddc97; } html body #page .abt-ti.sm { width: 38px; height: 38px; border-radius: 11px; color: #e3e9f8; }
html body #page .abt-ti svg, html body #page .abt-fi svg, html body #page .abt-chev svg, html body #page .abt-copy svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html body #page .abt-ti svg { width: 24px; height: 24px; } html body #page .abt-ti.sm svg { width: 20px; height: 20px; }
html body #page .abt-ct { flex: 1 1 auto; min-width: 0; }
html body #page .abt-t1 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 28px; }
html body #page .abt-t1 b { font-size: 16px; font-weight: 700; color: var(--text); }
html body #page .abt-ct small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--mut); }
html body #page .abt-cb { flex: 1 1 auto; min-height: 0; margin-top: 12px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
html body #page .abt-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .08); color: #3ddc97; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
html body #page .abt-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
html body #page .abt-pill.warn { color: #ffb84d; border-color: rgba(255, 184, 77, .45); background: rgba(255, 184, 77, .08); }
html body #page .abt-pill.busy { color: #7aa7f0; border-color: rgba(122, 167, 240, .45); background: rgba(122, 167, 240, .08); }
html body #page .abt-row { display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 100%; height: 56px; padding: 0 14px 0 9px; border-radius: 13px; border: 1px solid var(--uk-line); background: #0f1626; box-shadow: none; color: var(--text); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
html body #page .abt-row b { flex: 1 1 auto; font-weight: 600; } html body #page .abt-row:hover { border-color: rgba(120, 170, 255, .45); background: #131d33; } html body #page .abt-row:disabled { opacity: .55; cursor: default; }
html body #page .abt-chev { display: grid; place-items: center; color: #8f9bbd; font-style: normal; } html body #page .abt-chev svg { width: 18px; height: 18px; stroke-width: 2; }
html body #page .abt-line:empty { display: none; } html body #page .abt-line { margin: 0 0 10px; font-size: 12.5px; }
html body #page .abt-card .lic-feats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
html body #page .abt-card .lic-feats .pill { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 12.5px; }
html body #page .abt-iid { display: flex; align-items: center; gap: 12px; box-sizing: border-box; padding: 7px 8px 7px 14px; border-radius: 12px; border: 1px solid var(--uk-line); background: #0f1626; color: var(--mut); font-size: 13px; }
html body #page .abt-iid code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 5px 10px; border-radius: 8px; background: #151d31; color: var(--text); font-size: 13px; }
html body #page .abt-copy { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: transparent; box-shadow: none; color: #8f9bbd; cursor: pointer; }
html body #page .abt-copy:hover { color: #fff; background: rgba(255, 255, 255, .08); } html body #page .abt-copy svg { width: 17px; height: 17px; }
html body #page .abt-note { display: block; margin-top: 8px; font-size: 12.5px; }
html body #page .abt-card .lic-form { margin-top: 10px; }
/* the cores */
/* PasarGuard */
html body #page .abt-pg #pgu-box { display: grid; gap: 10px; }
html body #page .abt-pg .ss-hero { display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: auto; max-width: none; margin: 0 !important; padding: 10px 12px !important; border-radius: 13px !important; border: 1px solid var(--uk-line) !important; background: #0f1626 !important; }
html body #page .abt-pg .ss-hero .ss-ic { width: 38px; height: 38px; border-radius: 11px; }
html body #page .abt-pg .pgu-row { min-height: 30px; font-size: 12px; gap: 8px; } html body #page .abt-pg .pgu-row.pgu-hd { min-height: 24px; } html body #page .abt-pg .pgu-row button { height: 24px; font-size: 11.5px; }
html body #page .abt-pg .ss { margin: 0; }
/* the facts of the service */
html body #page .abt-foot { flex: none; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: thin; box-sizing: border-box; padding: 9px 8px; border-radius: 14px; border: 1px solid var(--uk-line); background: linear-gradient(180deg, #111a2e, #0e1626); }
html body #page .abt-foot > span { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 9px; } html body #page .abt-foot > span + span { border-left: 1px solid var(--uk-line); }
html body #page .abt-fi { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: #1a2036; border: 1px solid var(--uk-line); color: #aab4d0; font-style: normal; } html body #page .abt-fi svg { width: 15px; height: 15px; }
html body #page .abt-fv { display: grid; gap: 1px; padding: 0; } html body #page .abt-fv em { font-style: normal; font-size: 10.5px; color: var(--mut); white-space: nowrap; } html body #page .abt-fv b { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
html[data-mode="light"] body #page :is(.abt-card, .abt-foot) { background: #fff; border-color: rgba(30, 50, 100, .14); } html[data-mode="light"] body #page :is(.abt-ti, .abt-fi, .abt-row, .abt-iid) { background: #f3f6fc; border-color: rgba(30, 50, 100, .16); }
/* the buttons under the password boxes (Settings → Security) */
html body #page .pwf-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
html body #page .pwf-btns button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; height: 46px; padding: 0 20px; border-radius: 14px; font-size: 15px; font-weight: 600; }
html body #page .pwf-btns .pwf-out { background: #0f1626; border: 1px solid var(--uk-line); box-shadow: none; color: var(--text); }
html body #page .pwf-btns .pwf-out:hover { border-color: rgba(120, 170, 255, .45); background: #131d33; }
html body #page .pwf-btns .pwf-out svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[data-mode="light"] body #page .pwf-btns .pwf-out { background: #f3f6fc; border-color: rgba(30, 50, 100, .16); }
/* 1.57.50 - Sign out of other devices is a button that stays pressed: pressed = the other devices are signed out after the password changes (the owner, 2026-10-16) */
html body #page .pwf-btns .pwf-out .lk-c { display: none; } html body #page .pwf-btns .pwf-out.on .lk-c { display: inline; } html body #page .pwf-btns .pwf-out.on .lk-o { display: none; }
html body #page .pwf-btns .pwf-out.on { background: #1c2f57; border-color: rgba(120, 170, 255, .55); color: #fff; }
html[data-mode="light"] body #page .pwf-btns .pwf-out.on { background: #e3edff; border-color: rgba(20, 86, 200, .5); color: #1456c8; }
/* 1.57.39 - the password boxes start under the title, at the left, and end where the row above ends (the owner, 2026-10-16) */
html body #page .si.pw .si-b { min-width: 0; flex: 1 1 auto; }
html body #page .si.pw .pwf-f { align-items: stretch; width: 100%; padding: 8px 0 0; }
html body #page .si.pw .pwf-f .pwi, html body #page .si.pw .pwf-f .pwi .si-f { width: 100%; max-width: none; box-sizing: border-box; }
html body #page .si.pw { grid-template-columns: 38px minmax(0, 1fr); }      /* (two columns: the icon and the body - the third, empty one made the body as narrow as its text) */

html body #page .abt-foot .abt-copy { width: 26px; height: 26px; margin-left: 2px; } html body #page .abt-foot .abt-copy svg { width: 15px; height: 15px; }      /* (one row, always: a narrow window scrolls it sideways - the owner, 2026-10-16) */
html body #page .si.pw .si-b { padding-right: 46px; }      /* (the rows above keep the room of their chevron: the boxes end where those rows end) */
html body #page .abt-foot > span:nth-last-child(2) { flex: 0 1 auto; min-width: 0; } html body #page .abt-foot > span:nth-last-child(2) .abt-fv { min-width: 0; } html body #page .abt-foot #abt-env { display: block; overflow: hidden; text-overflow: ellipsis; }

/* 1.57.40 - Settings → Backups: the backup password is a switch row under the list, the schedule is ONE compact row (the owner, 2026-10-16) */
html body #page .bpw-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--uk-line); border-radius: 12px; background: #0f1626; }
html body #page .bpw-form.hidden { display: none; } html body #page .bpw-form .si-f, html body #page .bpw-form .pwi { flex: 1 1 260px; min-width: 0; height: 32px; } html body #page .bpw-form .pwi .si-f { width: 100%; max-width: none; }
html body #page .bpw-form button { height: 32px; } html body #page .bpw-form small { flex: 1 0 100%; font-size: 11.5px; }
html body #page .sf form.ss.bk-sched { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; padding: 10px 14px; }
html body #page .sf .ss.bk-sched .ss-h { align-self: center; flex: 0 0 auto; width: auto; margin: 0 10px 0 0; min-height: 0; } html body #page .sf .ss.bk-sched .ss-h .ss-ic { width: 28px; height: 28px; }
html body #page .sf .ss.bk-sched .ss-rows { display: contents; }
html body #page .sf .ss.bk-sched .sr { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; flex: 0 0 auto; width: auto; min-width: 0; max-width: none; min-height: 0; padding: 0; margin: 0; border: 0; background: none; }
html body #page .sf .ss.bk-sched .sr.hidden { display: none !important; }
html body #page .sf .ss.bk-sched .sr > span { font-size: 11px; color: var(--mut); }
html body #page .sf .ss.bk-sched .sr > .v { width: auto; flex: none; }
html body #page .sf .ss.bk-sched .sr > .v :is(input:not([type=checkbox]), select) { width: 112px; height: 30px; min-height: 0; padding: 0 10px; font-size: 12.5px; box-sizing: border-box; }
html body #page .sf .ss.bk-sched .sr:nth-last-of-type(1) > .v select { width: 150px; }
html body #page .sf .ss.bk-sched .ss-a { margin: 0 0 0 auto; padding: 0; } html body #page .sf .ss.bk-sched .ss-a button { height: 30px; }

/* 1.57.41 - Settings → API → Telegram bot: one compact row with its buttons (the rules, the daily report and the maintenance windows open small windows) */
html body #page .sf .ss.api-tg .sr:nth-of-type(1) > .v input { width: 230px; } html body #page .sf .ss.api-tg .sr:nth-of-type(2) > .v input { width: 150px; }
html body #page .sf .ss.api-tg .ss-a { display: flex; flex-wrap: wrap; gap: 6px; }
html body #modal .alerts-win .ap-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--uk-line); font-size: 12.5px; } html body #modal .alerts-win .ap-row > a { margin-left: auto; cursor: pointer; }

/* 1.57.42 - a text field with a list that opens as the kit menu (the model of the AI assistant) */
html body #page .nk-combo { position: relative; display: block; width: 100%; }
html body #page .nk-combo > input { width: 100%; box-sizing: border-box; padding-right: 38px; }
html body #page .sf .nk-combo .nk-combo-b { position: absolute; top: 3px; right: 3px; bottom: 3px; display: grid !important; place-items: center; width: 30px; min-width: 30px; height: auto; min-height: 0; padding: 0 !important; border: 0; border-radius: 8px; background: transparent !important; box-shadow: none; color: #8f9bbd; cursor: pointer; }
html body #page .sf .nk-combo .nk-combo-b:hover { color: #fff; background: rgba(255, 255, 255, .08) !important; }
html body #page .sf .nk-combo .nk-combo-b svg { flex: none; width: 16px; min-width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 1.57.45 - the facts of the service: only the ones of use to the user, smaller (the owner, 2026-10-16) */
html body #page .abt-foot { padding: 6px 8px; justify-content: flex-start; gap: 0; } html body #page .abt-foot > span { gap: 7px; padding: 0 14px; }
html body #page .abt-fi { width: 24px; height: 24px; border-radius: 8px; } html body #page .abt-fi svg { width: 13px; height: 13px; }
html body #page .abt-fv em { font-size: 10px; } html body #page .abt-fv b { font-size: 11.5px; }


/* 1.57.47 - Create tunnel waits for the second server: dim and quiet until then (the owner, 2026-10-16) */
html body #page .toolbar.joined button.cta:disabled { opacity: .4; filter: saturate(.3); box-shadow: none !important; cursor: default; }
/* 1.57.50 - the frame of every Settings tab is ONE height, and a taller one (the owner, 2026-10-16: "fix the sizes, they got mixed up - the frame they are in must be longer"): at least 760 px whatever the tab holds (a tab with more grows); About & update has its four boxes in it (rows 276 px and the rest) and never gets lower than 760 px (data-fxmin) */
@media (min-width: 761px), (pointer: fine) { html body #page .set-wrap > .card.sf { min-height: 760px !important; } }
/* 1.57.50 (2) - About & update: the left boxes are a little wider (the cores table has room for its five columns), the text under the name of this panel runs the whole width of its box, the count of a core (1/1) stays in its tooltip */
html body #page .abt-ds { display: block; flex: none; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--mut); }
/* 1.57.51 - About & update like the owner's picture of 1.57.34: the frame is as wide as it was with eight tabs (880 px: the four boxes are two equal columns again, the top row 232 px), nothing behind the boxes limits them */
/* 1.57.51 (2) - About & update: no extra descriptions, the cards inside the boxes smaller and closer (the owner, 2026-10-16) */
html body #page .abt-ds, html body #page .abt-note { display: none; }
html body #page .abt-card { padding: 12px 14px; }
html body #page .abt-ti { width: 40px; height: 40px; border-radius: 12px; } html body #page .abt-ti svg { width: 21px; height: 21px; }
html body #page .abt-t1 { min-height: 24px; } html body #page .abt-t1 b { font-size: 15px; }
html body #page .abt-cb { margin-top: 8px; }
html body #page .abt-row { height: 44px; border-radius: 11px; font-size: 13.5px; } html body #page .abt-row .abt-ti.sm { width: 30px; height: 30px; border-radius: 9px; } html body #page .abt-row .abt-ti.sm svg { width: 17px; height: 17px; }
html body #page .abt-card .lic-feats { gap: 6px; margin: 0 0 8px; } html body #page .abt-card .lic-feats .pill { height: 24px; padding: 0 10px; font-size: 12px; }
html body #page .abt-iid { padding: 5px 6px 5px 12px; border-radius: 10px; } html body #page .abt-iid code { padding: 3px 8px; font-size: 12.5px; } html body #page .abt-copy { width: 26px; height: 26px; }
html body #page .abt-pg #pgu-box { display: grid; gap: 6px; align-content: start; }
html body #page .pgu-top { display: flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: 42px; padding: 5px 8px; border-radius: 11px; border: 1px solid var(--uk-line); background: #131b2e; }
html body #page .pgu-ti { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #1a2036; color: #3ddc97; font-style: normal; } html body #page .pgu-top.warn .pgu-ti { color: #ffb84d; } html body #page .pgu-top.mut .pgu-ti { color: #8f9bbd; } html body #page .pgu-ti svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body #page .pgu-tt { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.25; } html body #page .pgu-tt b { font-size: 13px; font-weight: 600; } html body #page .pgu-tt small { font-size: 11px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #page .pgu-top button { flex: none; height: 26px; }
html body #page .pgu-cap { display: flex; align-items: center; gap: 8px; margin: 4px 2px 0; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); font-weight: 700; } html body #page .pgu-cap button { height: 24px; font-size: 11.5px; text-transform: none; letter-spacing: 0; }
html body #page .pgu-prow { display: flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 34px; padding: 3px 8px 3px 10px; border-radius: 10px; border: 1px solid var(--uk-line); background: #131b2e; font-size: 12.5px; } html body #page .pgu-prow b { font-weight: 600; } html body #page .pgu-prow small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } html body #page .pgu-prow button { flex: none; height: 24px; font-size: 11.5px; }
html body #page .pgu-none { padding: 2px 4px; font-size: 12px; }
html[data-mode="light"] body #page :is(.pgu-top, .pgu-prow) { background: #f3f6fc; border-color: rgba(30, 50, 100, .14); }
/* 1.59.0 - Settings → Api & Key: every connection is ONE box (the owner, 2026-10-16: "put each part in a box so it is more orderly"): a head - the tile, the name with its state, the buttons on the right - and under it its fields, each with its name above it; the AIs are rows of one box (a tile, the name and its state, the key and the model, and whether it is the one in use); the rows of a list (tokens, accounts, panels) under their head */
html body #page .ab-list { display: grid; gap: 12px; }
html body #page .ab { box-sizing: border-box; margin: 0; border-radius: 16px; border: 1px solid var(--uk-line); background: var(--uk-surface); overflow: hidden; }
html body #page .ab-h { display: flex; align-items: center; gap: 12px; min-height: 62px; box-sizing: border-box; margin: 0; padding: 12px 16px; }
html body #page .ab-h > .ss-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: #1a2036; border: 1px solid var(--uk-line); color: #aab4d0; font-style: normal; } html body #page .ab-h > .ss-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html body #page .ab-t { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; line-height: 1.3; } html body #page .ab-n { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } html body #page .ab-n b { font-size: 14.5px; font-weight: 650; color: var(--uk-text); }
html body #page .ab-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--uk-mut); }
html body #page .ab-ctl { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
html body #page .ab-ctl :is(.sm, a.btn) { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; } html body #page .ab .bi svg { width: 14px; height: 14px; }
html body #page .ab-b { display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--uk-line); } html body #page .ab-b.flush { gap: 0; padding: 0; } html body #page .ab-b[hidden] { display: none; }
html body #page .ab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 14px; }
html body #page .abf { display: grid; align-content: start; gap: 6px; margin: 0; min-width: 0; } html body #page .abf > span:first-child { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--uk-mut); } html body #page .ab-grid > .ab-wide { grid-column: 1 / -1; }
html body #page .ab-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } html body #page .ab-btns > button { height: 32px; font-size: 12px; }
html body #page .ab-row.tg-bad { display: grid; gap: 5px; margin: 0 0 12px; padding: 10px 13px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bad) 42%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); font-size: 12.5px; line-height: 1.45; }          /* (1.69.252: Telegram refuses the bot - said in red over the fields of its box, with what to do) */
html body #page .ab-make { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } html body #page .ab-make > .si-f { flex: 1 1 260px; min-width: 0; } html body #page .ab-make > select { flex: 0 0 110px; } html body #page .ab-make > button { flex: none; height: 36px; padding: 0 16px; }
html body #page .ab :is(input:not([type=checkbox]), select) { height: 36px; box-sizing: border-box; border-radius: 10px; font-size: 13px; } html body #page .ab textarea { box-sizing: border-box; min-height: 56px; padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; resize: vertical; }
html body #page .ab .fic input { padding-left: 38px !important; } html body #page .ab .sic select { padding-left: 38px !important; } html body #page .ab :is(.fic, .sic, .fic input, .sic select, .nk-combo, .nk-combo input) { width: 100%; max-width: none; box-sizing: border-box; } html body #page .ab .nk-combo { display: block; }
html body #page .ab-sw { display: inline-flex; align-items: center; gap: 8px; height: 36px; }
html body #page .ab-li { display: flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: 42px; padding: 4px 8px 4px 12px; border-radius: 10px; border: 1px solid var(--uk-line); background: var(--uk-field); } html body #page .ab-b > .ab-li + .ab-li { margin-top: -6px; } html body #page .ab-ln { display: flex; flex: 1 1 auto; align-items: baseline; gap: 8px; min-width: 0; } html body #page .ab-ln b { font-size: 13px; font-weight: 600; } html body #page .ab-ln small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--uk-mut); } html body #page .ab-li .sm { flex: none; height: 28px; font-size: 12px; }
html body #page .ab .tok-list { display: grid; gap: 6px; } html body #page .ab .tok-row { display: flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 40px; padding: 4px 8px 4px 12px; border-radius: 10px; border: 1px solid var(--uk-line); background: var(--uk-field); font-size: 12.5px; } html body #page .ab .tok-row small { margin-right: auto; } html body #page .ab .tok-row code { font-size: 11.5px; } html body #page .ab .tok-row .sm { height: 28px; font-size: 12px; }
html body #page .ab-b > #api-box:empty { display: none; }
/* the AI rows */
html body #page .aim-list { display: grid; }
html body #page .aim { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; margin: 0; padding: 14px 16px; border-top: 1px solid var(--uk-line); } html body #page .aim:first-child { border-top: 0; }
html body #page .aim.on { background: linear-gradient(90deg, rgba(31, 123, 255, .10), transparent 65%); }
html body #page .aim-i, html body .lab-menu .aim-mono { display: grid; place-items: center; flex: none; width: 38px; height: 38px; box-sizing: border-box; border-radius: 11px; font-style: normal; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); }
html body .lab-menu .aim-mono { width: 22px; height: 22px; border-radius: 7px; font-size: 9.5px; }
html body #page .aim-t { display: grid; gap: 2px; min-width: 0; line-height: 1.3; } html body #page .aim-n { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } html body #page .aim-n b { font-size: 14px; font-weight: 650; color: var(--uk-text); }
html body #page .aim-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--uk-mut); } html body #page .aim-t small.err { color: var(--uk-red); }
html body #page .aim-a { display: flex; align-items: center; justify-content: flex-end; gap: 6px; } html body #page .aim-a .sm { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; }
html body #page .aim-use { padding: 0 8px; font-size: 12px; font-weight: 650; white-space: nowrap; color: #6db3ff; }
html body #page .aim-f { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } html body #page .aim-f > .fic { flex: 1 1 220px; min-width: 0; } html body #page .aim-f > button { flex: none; height: 36px; padding: 0 18px; }
html body #page .nk-combo-b.busy { opacity: .45; cursor: progress; }
/* 1.69.160 - an AI folds: its head always shows, its key and model open under it (the owner, 2026-10-31) */
html body #page .aim:not(.open) .aim-f { display: none; }
html body #page .aim-i, html body #page .aim-t { cursor: pointer; }
html body #page .sf button.aim-ch:not(.eye):not(.mini) { display: grid !important; place-items: center; flex: none; width: 28px; min-width: 28px; height: 28px !important; min-height: 28px !important; margin-inline-start: auto; padding: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; box-shadow: none; color: var(--uk-mut) !important; cursor: pointer; }
html body #page .sf button.aim-ch:not(.eye):not(.mini):hover:not(:disabled) { color: var(--uk-text) !important; background: color-mix(in srgb, var(--uk-text) 9%, transparent) !important; }
/* the arrow of the model list sits flat at the right end of its box, as in the other forms (the rule of .sf .nk-combo-b is beaten by the generic button rule for the border and the height) */
html body #page .sf .aim-f .nk-combo .nk-combo-b:not(.eye):not(.mini) { position: absolute; top: 3px; right: 3px; bottom: 3px; display: grid !important; place-items: center; width: 28px; min-width: 28px; height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; box-shadow: none; color: var(--uk-mut) !important; cursor: pointer; }
html body #page .sf .aim-f .nk-combo .nk-combo-b:not(.eye):not(.mini):hover:not(:disabled) { color: var(--uk-text) !important; background: color-mix(in srgb, var(--uk-text) 9%, transparent) !important; }
html body #page .sf .aim-f .nk-combo .nk-combo-b svg { flex: none; width: 15px; min-width: 15px; height: 15px; }
html body #page .aim-ch svg { flex: none; width: 18px; min-width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
html body #page .aim.open .aim-ch svg { transform: rotate(180deg); }
html body #page .aim.open .aim-f { animation: aim-in .16s ease-out; }
@keyframes aim-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body #page .aim.open .aim-f { animation: none; } html body #page .aim-ch svg { transition: none; } }
/* 1.69.164 - the switch under the Tunnel cores: the Doctor keeps them up to date (the owner, 2026-10-31) */
html body #page .eng-auto { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--uk-line); }
html body #page .eng-auto-t { display: grid; gap: 2px; min-width: 0; line-height: 1.35; } html body #page .eng-auto-t b { font-size: 13.5px; font-weight: 650; color: var(--uk-text); } html body #page .eng-auto-t small { font-size: 12px; }
@media (max-width: 640px) { html body #page .aim { grid-template-columns: 38px minmax(0, 1fr); } html body #page .aim-a { grid-column: 1 / -1; justify-content: flex-start; } html body #page .aim-f { grid-column: 1 / -1; } html body #page .ab-h { flex-wrap: wrap; } html body #page .ab-ctl { flex: 1 1 100%; justify-content: flex-start; } }
html[data-mode="light"] body #page .ab-h > .ss-ic { background: #f3f6fc; border-color: rgba(30, 50, 100, .14); color: #4a5b86; } html[data-mode="light"] body #page .aim-use { color: #1456c8; }
/* 1.57.51 (4) - the cores and the PasarGuard panels / nodes each sit in ONE box of a fixed size, the list scrolls inside it (the owner, 2026-10-16) */
html body #page #eng-box, html body #page .abt-pg .abt-cb { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
/* 1.69.201 - that box clips what is painted outside it, and a switch sits flush at its edge: the glow of a switch (a 1 px ring and a 10 px blur) was cut off in a straight line, so it looked boxed (the owner, 2026-11-04, with a picture of the nightly switch: it went into a box, on the right of the button). The box takes the room out of the card's own padding (11 px on the sides, 10 px below), so nothing moves and nothing is cut. */
html body #page #eng-box, html body #page .abt-pg .abt-cb { margin-left: -11px; margin-right: -11px; margin-bottom: -10px; padding: 0 11px 10px; }
html body #page .abt-pg #pgu-box { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; min-height: 0; }
html body #page :is(.eng-list, .pgu-list) { flex: 1 1 auto; min-height: 0; box-sizing: border-box; padding: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid var(--uk-line); border-radius: 12px; background: #0b1220; }
html body #page .pgu-list { display: grid; align-content: start; gap: 6px; }
html[data-mode="light"] body #page :is(.eng-list, .pgu-list) { background: #f3f6fc; border-color: rgba(30, 50, 100, .14); }
/* 1.57.51 (5) - the buttons of the PasarGuard lists have ONE size: Update and Xray of a node are the same 58 x 24 box, Update… of a panel is 66 x 24 (the owner, 2026-10-16: "fix the size of the xray / update buttons") */
html body #page .abt-pg .pgu-a { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
html body #page .abt-pg .pgu-a .sm, html body #page .abt-pg .pgu-a button { flex: none; box-sizing: border-box; width: 58px; height: 24px; padding: 0; border-radius: 8px; font-size: 11.5px; line-height: 1; }
html body #page .abt-pg .pgu-prow > button { flex: none; box-sizing: border-box; width: 66px; height: 24px; padding: 0; border-radius: 8px; font-size: 11.5px; line-height: 1; }
/* 1.57.53 - the cards of the kit menu stand apart: a gap between them, each one a rounded card (the owner, 2026-10-16: "fix the space between the cards") */
html body .nk-dd .nk-dd-i { margin: 0 0 6px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: #141c2f; }
html body .nk-dd .nk-dd-i:last-child, html body .nk-dd .nk-dd-i:has(+ .nk-dd-g) { margin-bottom: 0; }
html body .nk-dd .nk-dd-i:hover:not([disabled]), html body .nk-dd .nk-dd-i.hl:not([disabled]) { background: #1a2338; border-color: rgba(255, 255, 255, .12); }
html body .nk-dd .nk-dd-i.on { background: rgba(70, 120, 230, .20); border-color: rgba(100, 150, 255, .35); }
html[data-mode="light"] body .nk-dd .nk-dd-i { background: #f4f7fd; border-color: rgba(30, 50, 100, .10); } html[data-mode="light"] body .nk-dd .nk-dd-i:hover:not([disabled]), html[data-mode="light"] body .nk-dd .nk-dd-i.hl:not([disabled]) { background: #e9effb; } html[data-mode="light"] body .nk-dd .nk-dd-i.on { background: #e3edff; border-color: rgba(20, 86, 200, .35); }
/* a very faint colour on a tunnel-type card by the scenario it answers (the owner, 2026-11-02: slight, so the list stays uniform): a 3px inset left bar + a ~5% tint, no layout shift. green = clean route, blue = Iran dials out (fast), amber = foreign dials in / Backhaul over another link, red = both ways hard-blocked / last resort. */
html body .nk-dd .nk-dd-i.sc-green { box-shadow: inset 3px 0 0 #3f8a6e, inset 0 0 0 200px rgba(63, 138, 110, .05); }
html body .nk-dd .nk-dd-i.sc-blue { box-shadow: inset 3px 0 0 #4f7fd0, inset 0 0 0 200px rgba(79, 127, 208, .05); }
html body .nk-dd .nk-dd-i.sc-amber { box-shadow: inset 3px 0 0 #b5884a, inset 0 0 0 200px rgba(181, 136, 74, .055); }
html body .nk-dd .nk-dd-i.sc-red { box-shadow: inset 3px 0 0 #b35f54, inset 0 0 0 200px rgba(179, 95, 84, .055); }
html[data-mode="light"] body .nk-dd .nk-dd-i.sc-green { box-shadow: inset 3px 0 0 #3f8a6e, inset 0 0 0 200px rgba(63, 138, 110, .07); } html[data-mode="light"] body .nk-dd .nk-dd-i.sc-blue { box-shadow: inset 3px 0 0 #4f7fd0, inset 0 0 0 200px rgba(79, 127, 208, .07); } html[data-mode="light"] body .nk-dd .nk-dd-i.sc-amber { box-shadow: inset 3px 0 0 #b5884a, inset 0 0 0 200px rgba(181, 136, 74, .08); } html[data-mode="light"] body .nk-dd .nk-dd-i.sc-red { box-shadow: inset 3px 0 0 #b35f54, inset 0 0 0 200px rgba(179, 95, 84, .08); }
/* 1.57.53 - the window of a tunnel is built like the window of a server (the owner, 2026-10-16): the same size, the avatar with the state, the tabs, the banner, the boxes, the strip; ONE "⋯" menu in place of the row of buttons */
html body #modal .modal.srvwin.tunwin { min-height: min(776px, calc(100vh - 96px)); }
html body #modal .mh-flag.mh-tun { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #1d2745, #131b30); color: #9fc0ff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 4px rgba(255, 255, 255, .05), 0 6px 16px rgba(0, 0, 0, .45); }
html body #modal .mh-tic { display: grid; place-items: center; font-style: normal; } html body #modal .mh-tic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[data-mode="light"] body #modal .mh-flag.mh-tun { background: linear-gradient(180deg, #eef3fd, #dde7fa); color: #2f5fc4; box-shadow: 0 0 0 1px rgba(30, 50, 100, .18), 0 0 0 4px rgba(30, 50, 100, .05); }
/* 1.57.54 - the Dashboard in the look of the kit (the owner, 2026-10-16: "redesign the dashboard", and a first-run card that asks the API keys first): slim number chips, three boxes of ONE size with rounded rows, the getting-started card on top; the empty "free space" slots are gone */
html body #page .dash-top { align-items: center; gap: 12px; margin-bottom: 12px; }
html body #page .dash-kpis { gap: 8px; }
html body #page .kpi { height: 44px; box-sizing: border-box; padding: 0 16px 0 12px; border-radius: 13px; border: 1px solid var(--uk-line); background: linear-gradient(180deg, #131b30, #0f1627); box-shadow: none; }
html body #page .kpi b { font-size: 15.5px; font-weight: 650; } html body #page .kpi small { font-size: 10px; letter-spacing: .5px; }
html body #page .dash-cols { gap: 12px; }
html body #page .dash-cols > .card { height: 376px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--uk-line); background: linear-gradient(180deg, #111a2e, #0e1626); box-shadow: none; }
html body #page .dash-cols > .card > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--uk-text); }
html body #page .dash-cols .hl-list, html body #page .dash-cols .pb-list { display: grid; align-content: start; gap: 6px; padding-right: 2px; }
html body #page .dash-cols .dash-row, html body #page .dash-cols .pb-row { box-sizing: border-box; min-height: 44px; margin: 0; padding: 6px 12px; gap: 10px; border: 1px solid var(--uk-line); border-radius: 12px; background: #131b2e; }
html body #page .dash-cols .dash-row:first-of-type, html body #page .dash-cols .pb-row:first-of-type { border-top: 1px solid var(--uk-line); }
html body #page .dash-cols .dash-name { font-size: 12.5px; font-weight: 600; } html body #page .dash-cols .dash-name small { font-size: 11px; font-weight: 400; }
html body #page .dash-cols .pb-row.click:hover { background: #18223a; }
html body #page .dash-cols .act-list { padding-right: 2px; }
html body #page .dash-cols .ev { border-radius: 10px; }
html[data-mode="light"] body #page .kpi { background: #fff; border-color: rgba(30, 50, 100, .14); } html[data-mode="light"] body #page .dash-cols > .card { background: #fff; border-color: rgba(30, 50, 100, .14); } html[data-mode="light"] body #page .dash-cols :is(.dash-row, .pb-row) { background: #f4f7fd; border-color: rgba(30, 50, 100, .12); }
/* the getting-started card */
html body #page .dash-setup { box-sizing: border-box; margin: 0 0 12px; padding: 12px 14px 14px; border-radius: 16px; border: 1px solid rgba(77, 140, 255, .35); background: linear-gradient(180deg, #121c36, #0e1628); box-shadow: 0 0 0 1px rgba(77, 140, 255, .06), 0 14px 36px rgba(0, 0, 0, .28); }
html body #page .dash-setup.shut { padding-bottom: 12px; }
html body #page .su-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html body #page .su-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(77, 140, 255, .18); border: 1px solid rgba(77, 140, 255, .4); color: #8fb6ff; font-style: normal; } html body #page .su-ic svg, html body #page .su-t svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body #page .su-ht { display: grid; line-height: 1.25; } html body #page .su-ht b { font-size: 14.5px; font-weight: 650; } html body #page .su-ht small { font-size: 11.5px; color: var(--uk-mut); }
html body #page .su-bar { display: block; flex: 0 1 220px; min-width: 90px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .09); overflow: hidden; } html body #page .su-bar u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2f8bff, #55d6a4); transition: width .4s ease; }
html body #page .su-h .sm { height: 30px; font-size: 12px; }
html body #page .su-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: start; margin-top: 12px; }
html body #page .su-i { display: flex; gap: 10px; box-sizing: border-box; min-width: 0; padding: 10px 11px; border-radius: 13px; border: 1px solid var(--uk-line); background: #131b2e; }
html body #page .su-t { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #1a2036; border: 1px solid var(--uk-line); color: #aab4d0; }
html body #page .su-i.done { opacity: .8; } html body #page .su-i.done .su-t { background: rgba(61, 220, 151, .14); border-color: rgba(61, 220, 151, .4); color: #3ddc97; }
html body #page .su-b { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; align-content: start; } html body #page .su-b b { font-size: 13px; font-weight: 650; } html body #page .su-b small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--uk-mut); }
html body #page .su-a { margin-top: 6px; } html body #page .su-a .sm { height: 28px; font-size: 12px; }
html body #page .su-f { display: grid; gap: 6px; } html body #page .su-f input { height: 30px; box-sizing: border-box; border-radius: 9px; font-size: 12px; } html body #page .su-f .sm { justify-self: start; }
@media (max-width: 1250px) { html body #page .su-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { html body #page .su-grid { grid-template-columns: minmax(0, 1fr); } }
html[data-mode="light"] body #page .dash-setup { background: #f4f8ff; border-color: rgba(20, 86, 200, .35); box-shadow: none; } html[data-mode="light"] body #page :is(.su-i, .su-t) { background: #fff; border-color: rgba(30, 50, 100, .14); } html[data-mode="light"] body #page .su-ic { color: #1456c8; background: #e3edff; }

/* 1.57.55 - the health box of the Dashboard: the line under a name is ONE line that is cut with an ellipsis (the whole text is its tooltip) - a long list of stale jobs was three lines high and ran over the row below */
html body #page .dash-cols .dash-name { min-width: 0; } html body #page .dash-cols .dash-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #page .abt-foot > button.abt-diag { flex: none; margin-left: 10px; height: 28px; }

/* 1.58.0 - adding a server does not move the page (the owner, 2026-10-16: "when you add a server the page jumps several times"): the empty page is a BOX of the same kind and size as the list (the first row changes nothing around it), the chips of the bar have a room of their own for their numbers (a 0/1 that becomes 1/1, a dash that becomes 4% shift nothing), a server that was never read says so on its row, and the rows are rewritten where they stand */
.lab-box0 { display: grid; place-items: center; }
.lab-chip b { display: inline-block; min-width: var(--cw, 3ch); text-align: left; font-variant-numeric: tabular-nums; }
.lab-chip.c-on b, .lab-chip.c-tun b { --cw: 5ch; } .lab-chip.c-cpu b { --cw: 4ch; } .lab-chip.c-pb b { --cw: 2ch; }
.lab-nm small .lab-busy { max-width: 100%; }
html body #page .tabs.lab-kinds .cnt { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }      /* (the count of a tab: a 0 that becomes a 1 - or a 9 that becomes 10 - does not move the search box beside the tabs) */

/* 1.59.0 - Backups: ONE box, one piece, a grouped list in the MacBook style (the owner: "make it a box and one piece, unified"): the rows - the panel, the backup password, the schedule - with a hairline between them; the tile, the name with its line of help on the left, the controls on the right */
html body #page .bk1 { border: 1px solid var(--uk-line); border-radius: 18px; background: var(--uk-surface); overflow: hidden; }
html body #page .bk1 .bk1-r { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; min-height: 58px; margin: 0; padding: 12px 16px; box-sizing: border-box; border-top: 1px solid var(--uk-line); background: none; }
html body #page .bk1 > .bk1-r:first-child { border-top: 0; }
html body #page .bk1 .bk1-r.hidden { display: none !important; }
html body #page .bk1 .bk1-r > .ss-ic { width: 36px; height: 36px; margin: 0; }
html body #page .bk1 .bk1-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html body #page .bk1 .bk1-n { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } html body #page .bk1 .bk1-n b { font-size: 14px; font-weight: 650; color: var(--uk-text); }
html body #page .bk1 .bk1-t small { font-size: 12px; line-height: 1.35; color: var(--uk-mut); }
html body #page .bk1 .bk1-s { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--uk-mut); } html body #page .bk1 .bk1-l { display: inline-flex; align-items: center; gap: 5px; } html body #page .bk1 .bk1-s .bi svg { width: 14px; height: 14px; }
html body #page .bk1 .bk1-s a.mut { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
html body #page .bk1 .bk1-a { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 10px; }
html body #page .bk1 .bk1-a .sm { height: 32px; }
html body #page .bk1 .bpw-form { margin: 0; padding: 10px 16px 12px 66px; border: 0; border-top: 1px solid var(--uk-line); border-radius: 0; background: rgba(255, 255, 255, .02); }
html body #page .bk1 .bpw-form.hidden { display: none; }
html body #page .bk1 .bk1-sc { display: block; margin: 0; padding: 0; }
html body #page .bk1 .bk1-f { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 16px 8px 66px; min-height: 48px; cursor: default; }
html body #page .bk1 .bk1-f > span:first-child { font-size: 13.5px; color: var(--uk-text); }
html body #page .bk1 .bk1-c { display: flex; align-items: center; justify-content: flex-end; gap: 8px; } html body #page .bk1 .bk1-c em { font-style: normal; font-size: 12.5px; color: var(--uk-mut); }
html body #page .bk1 .bk1-c :is(input:not([type=checkbox]), select) { width: 160px; height: 34px; box-sizing: border-box; padding: 0 12px; border-radius: 10px; font-size: 13px; }
html body #page .bk1 .bk1-c input[type=number] { width: 96px; }
html body #page .bk1 .bk1-c select { -webkit-appearance: none; appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 13px; cursor: pointer; }
html body #page .bk1 .bk1-x { display: flex; justify-content: flex-end; padding-top: 10px; padding-bottom: 12px; min-height: 0; }
html body #page .bk1 .bk1-x .sm { height: 34px; padding: 0 22px; }
html body #page .bk1 .bk1-sc:has(.bk1-h input[name="enabled"]:not(:checked)) .bk1-f { opacity: .5; }
html body #page .bk1 .bk1-f { transition: opacity .2s; }
@media (max-width: 640px) { html body #page .bk1 .bk1-r { grid-template-columns: 36px minmax(0, 1fr); } html body #page .bk1 .bk1-a { grid-column: 1 / -1; justify-content: flex-start; } html body #page .bk1 .bk1-f { grid-template-columns: minmax(0, 1fr) auto; padding-left: 16px; } html body #page .bk1 .bpw-form { padding-left: 16px; } }

/* 1.59.0 - Appearance: the theme previews are small pictures of the panel itself (the owner, 2026-10-16: "make the theme previews prettier"): a sidebar, a top bar, two cards and a button in the colours of the theme, its name and one line under it; the chosen one has a ring and a tick */
html body #page .thm { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; margin: 2px 0 4px; }
html body #page .thc { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; height: auto; margin: 0; padding: 8px 8px 12px; border-radius: 16px; border: 1px solid var(--uk-line); background: var(--uk-surface); text-align: left; cursor: pointer; transition: transform .16s, border-color .16s, box-shadow .16s; }
html body #page .thc:hover { transform: translateY(-2px); border-color: var(--uk-line-2); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .65); }
html body #page .thc.on { border-color: var(--uk-blue); box-shadow: 0 0 0 3px var(--uk-ring); }
html body #page .thc.on::after { content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--uk-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' 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 / 12px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
html body #page .thc-pv { position: relative; display: block; height: 88px; overflow: hidden; border-radius: 10px; background: var(--tb); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); --ink: 255, 255, 255; }
html body #page .thc-pv.lt { --ink: 20, 32, 70; border-color: rgba(20, 32, 70, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
html body #page .thc-pv s { position: absolute; display: block; text-decoration: none; }
html body #page .thc-pv .sb { left: 0; top: 0; bottom: 0; width: 24%; background: rgba(var(--ink), .07); border-right: 1px solid rgba(var(--ink), .08); }
html body #page .thc-pv .sb::before { content: ""; position: absolute; left: 8px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ta); box-shadow: 0 0 9px var(--ta); }
html body #page .thc-pv .sb::after { content: ""; position: absolute; left: 8px; right: 8px; top: 28px; height: 5px; border-radius: 3px; background: var(--ta); opacity: .9; box-shadow: 0 11px 0 rgba(var(--ink), .22), 0 22px 0 rgba(var(--ink), .16), 0 33px 0 rgba(var(--ink), .16); }
html body #page .thc-pv .tp { left: 24%; right: 0; top: 0; height: 17%; border-bottom: 1px solid rgba(var(--ink), .08); }
html body #page .thc-pv .tp::before { content: ""; position: absolute; left: 9px; top: 50%; width: 30%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(var(--ink), .5); }
html body #page .thc-pv .tp::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 7px; margin-top: -3.5px; border-radius: 4px; background: var(--tc); }
html body #page .thc-pv .c1, html body #page .thc-pv .c2 { top: 28%; height: 38%; border-radius: 5px; background: rgba(var(--ink), .08); border: 1px solid rgba(var(--ink), .1); }
html body #page .thc-pv .c1 { left: 29%; width: 33%; } html body #page .thc-pv .c2 { left: 65%; width: 31%; }
html body #page .thc-pv :is(.c1, .c2)::before { content: ""; position: absolute; left: 5px; top: 6px; width: 40%; height: 3px; border-radius: 2px; background: rgba(var(--ink), .45); }
html body #page .thc-pv :is(.c1, .c2)::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px; height: 4px; border-radius: 2px; background: var(--ta); opacity: .75; } html body #page .thc-pv .c2::after { background: var(--tc); }
html body #page .thc-pv .bt { left: 29%; top: 74%; width: 24%; height: 13%; border-radius: 4px; background: var(--ta); box-shadow: 0 0 10px -1px var(--ta); }
html body #page .thc.flat .thc-pv :is(s, s::before, s::after) { border-radius: 1px; }
html body #page .thc-n { display: grid; gap: 2px; min-width: 0; padding: 0 4px; } html body #page .thc-n b { font-size: 13px; font-weight: 650; color: var(--uk-text); } html body #page .thc-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--uk-mut); }
@media (max-width: 640px) { html body #page .thm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* 1.59.0 - the speed test of a tunnel (the owner, 2026-10-16: "what speed does a user in Iran get"): two ways to choose from, the numbers, the bars against what the tunnel can carry, and the verdict */
html body #modal .spd { display: grid; gap: 14px; padding: 4px 2px 6px; }
html body #modal .spd-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
html body #modal .spd-opt { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--uk-line); background: var(--uk-surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
html body #modal .spd-opt:has(input:checked) { border-color: var(--uk-blue); box-shadow: 0 0 0 3px var(--uk-ring); }
html body #modal .spd-opt.off { opacity: .55; cursor: not-allowed; }
html body #modal .spd-opt input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--uk-blue); }
html body #modal .spd-ot { display: grid; gap: 3px; min-width: 0; } html body #modal .spd-ot b { font-size: 13.5px; font-weight: 650; color: var(--uk-text); } html body #modal .spd-ot small { font-size: 12px; line-height: 1.4; color: var(--uk-mut); }
html body #modal .spd-act { display: flex; align-items: center; gap: 12px; } html body #modal .spd-act button { height: 36px; padding: 0 22px; }
html body #modal .spd-none { padding: 18px 4px; font-size: 13px; color: var(--uk-mut); }
html body #modal .spd-res { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--uk-line); background: var(--uk-surface); }
html body #modal .spd-top { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 26px; }
html body #modal .spd-n { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 5px; } html body #modal .spd-n small { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--uk-mut); }
html body #modal .spd-n b { font-size: 30px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--uk-text); } html body #modal .spd-n em { font-style: normal; font-size: 12.5px; color: var(--uk-mut); }
html body #modal .spd-g { margin-left: auto; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; border: 1px solid var(--uk-line); color: var(--uk-mut); }
html body #modal .spd-res.smooth .spd-g, html body #modal .spd-res.good .spd-g { color: #5ee07f; border-color: rgba(48, 209, 88, .45); background: rgba(48, 209, 88, .1); }
html body #modal .spd-res.fair .spd-g { color: #ffcc66; border-color: rgba(255, 204, 102, .45); background: rgba(255, 204, 102, .1); }
html body #modal .spd-res.slow .spd-g, html body #modal .spd-res.bad .spd-g { color: var(--uk-red); border-color: var(--uk-red-line); background: var(--uk-red-bg); }
html body #modal .spd-bars { display: grid; gap: 7px; }
html body #modal .spd-b { display: grid; grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) 96px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--uk-text); }
html body #modal .spd-b i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; } html body #modal .spd-b u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5aa9ff, #1f7bff); text-decoration: none; }
html body #modal .spd-b.cap u { background: linear-gradient(90deg, #6b7794, #98a2bd); } html body #modal .spd-b.cap { color: var(--uk-mut); }
html body #modal .spd-b b { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; } html body #modal .spd-b small { font-weight: 500; color: var(--uk-mut); }
html body #modal .spd-v { margin: 0; font-size: 13px; line-height: 1.5; color: var(--uk-text); }
html[data-mode="light"] body #modal .spd-b i { background: rgba(30, 50, 100, .1); }

/* the light theme of the new pieces (audited with the contrast tool: every text 4.5:1) */
html[data-mode="light"] body #page .aim-i, html[data-mode="light"] body .lab-menu .aim-mono { color: color-mix(in srgb, var(--c) 50%, #0d1530); }
html[data-mode="light"] body #modal .spd-res.smooth .spd-g, html[data-mode="light"] body #modal .spd-res.good .spd-g { color: #11703a; border-color: rgba(17, 112, 58, .4); background: rgba(48, 209, 88, .14); }
html[data-mode="light"] body #modal .spd-res.fair .spd-g { color: #7d5200; border-color: rgba(125, 82, 0, .4); background: rgba(255, 204, 102, .28); }
html[data-mode="light"] body #modal .spd-res.slow .spd-g, html[data-mode="light"] body #modal .spd-res.bad .spd-g { color: #b4232f; border-color: rgba(200, 40, 60, .4); background: #fdecee; }
html[data-mode="light"] body #modal .spd-b.cap u { background: linear-gradient(90deg, #9aa5c2, #7886a8); }
/* 1.60.0 - a tunnel whose provider drops the pings: "no ping" (muted, as the plain number is), never a red "100 %" */
.tlink .loss.blk { background: none; color: var(--mut); padding: 0; font-weight: 600; font-style: italic; opacity: .85; }

/* 1.60.1 - the Tunnel table: the lamp of a tunnel sits before its name (the lamp of a server in the Lab list is placed the same way: --pad from the left edge, --dot wide, --gap before the name), and the Status column became the Bandwidth column: a number, a bar against the usual level of the tunnel, "▼ usual" while it is dropped */
html body #page .tun-tbl { --tun-pad: 14px; --tun-dot: 12px; --tun-gap: 12px; --tun-start: calc(var(--tun-pad) + var(--tun-dot) + var(--tun-gap)); }
html body #page .tun-tbl td.name, html body #page .tun-tbl th:first-child { padding-left: var(--tun-start); }
html body #page .tun-tbl td.name { position: relative; }
html body #page .tun-tbl td.name .tun-lamp { position: absolute; left: var(--tun-pad); top: 50%; width: var(--tun-dot); height: var(--tun-dot); margin: calc(var(--tun-dot) / -2) 0 0; border-radius: 50%; background: var(--lamp, #5e6a86); box-shadow: 0 0 10px color-mix(in srgb, var(--lamp, transparent) 55%, transparent); transition: background .3s, box-shadow .3s; }
html body #page .tun-tbl td.name .tun-lamp.up { --lamp: var(--ok, #3ddc97); }
html body #page .tun-tbl td.name .tun-lamp.degraded { --lamp: var(--warn, #ffc44d); }
html body #page .tun-tbl td.name .tun-lamp.down { --lamp: var(--bad, #ff6b8b); }
html body #page .tun-tbl td.name .tun-lamp.starting, html body #page .tun-tbl td.name .tun-lamp.unknown { --lamp: #7d8aa8; box-shadow: none; }
html body #page .tun-tbl td.bwc { white-space: nowrap; }
/* 1.63.0 - the Bandwidth cell holds TWO numbers (the owner, 2026-10-17): the capacity (blue: what the tunnel can carry, the Doctor's last test), a thin line, and what the users use of it now (down and up, live); the bar under both is the part of the capacity they use (blue, amber from 70 %, red from 90 %) */
html body #page .tun-tbl .bwx { display: inline-flex; flex-direction: column; gap: 5px; vertical-align: middle; min-width: 112px; max-width: 100%; }
html body #page .tun-tbl .bwr { display: flex; align-items: center; gap: 7px; line-height: 1.1; white-space: nowrap; }
html body #page .tun-tbl .bwcap { display: inline-flex; align-items: baseline; gap: 2px; min-width: 24px; font-variant-numeric: tabular-nums; }
html body #page .tun-tbl .bwcap b { font-size: 12.5px; font-weight: 800; letter-spacing: .1px; color: var(--acc-2, #7aa7f0); }
html body #page .tun-tbl .bwcap.low b { color: var(--warn, #ffc44d); }      /* (slow: the Doctor's own verdict "very slow" - amber; red is only a drop or a test that moved nothing) */
html body #page .tun-tbl .bwcap.drop b, html body #page .tun-tbl .bwcap.slow b { color: var(--bad, #ff6b8b); }      /* (the overall bandwidth is red when it is low - dropped, stalled or very slow; the number of the users and its bar never change colour: the owner, 2026-10-19) */
html body #page .tun-tbl .bwcap.none { color: var(--mut); font-weight: 700; }
html body #page .tun-tbl .bwsep { flex: none; width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
html body #page .tun-tbl .bwuse { display: inline-flex; align-items: baseline; gap: 2px; min-width: 0; font-variant-numeric: tabular-nums; }
html body #page .tun-tbl .bwuse i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--mut); }
html body #page .tun-tbl .bwuse b { margin-right: 3px; font-size: 12px; font-weight: 700; color: var(--text); }
html body #page .tun-tbl .bwuse.old b { opacity: .7; }
html body #page .tun-tbl .bwuse.none { color: var(--mut); font-weight: 700; }
html body #page .tun-tbl .bwbar { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
html body #page .tun-tbl .bwbar u { display: block; height: 100%; border-radius: 2px; background: var(--acc-2, #7aa7f0); text-decoration: none; transition: width .5s; }
/* 1.69.23 (the owner, 2026-10-19: "a bar with the numbers INSIDE it - smaller numbers, a bar that is not big, in the style of a MacBook"): in the tunnels table the capacity and what the users use are written over a slim rounded bar,
   glassy like the progress bars of macOS (a faint track with an inner shadow, a fill with a light top edge, the system font of the Mac); the fill is the part of the capacity the users use */
html body #page .tun-tbl .bwx.bwx { position: relative; display: block; width: 100%; min-width: 128px; max-width: 164px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; }
html body #page .tun-tbl .bwx .bwbar { height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 2px rgba(0, 0, 0, .28); }
html body #page .tun-tbl .bwx .bwbar u { border-radius: 8px; opacity: .62; background-image: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 65%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
html body #page .tun-tbl .bwx .bwr { position: absolute; inset: 0; z-index: 2; justify-content: center; gap: 6px; padding: 0 8px; }
html body #page .tun-tbl .bwx .bwcap b { font-size: 10.5px; font-weight: 700; letter-spacing: 0; }
html body #page .tun-tbl .bwx .bwuse b { margin-right: 1px; font-size: 10px; font-weight: 600; }
html body #page .tun-tbl .bwx .bwuse i { font-size: 9px; }
html body #page .tun-tbl .bwx .bwsep { height: 9px; }
html body #page .tun-tbl .bwx .bwcap b, html body #page .tun-tbl .bwx .bwuse b { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
html[data-mode="light"] body #page .tun-tbl .bwx .bwbar { background: rgba(30, 50, 100, .1); box-shadow: inset 0 0 0 1px rgba(30, 50, 100, .1), inset 0 1px 2px rgba(30, 50, 100, .16); }
html[data-mode="light"] body #page .tun-tbl .bwx .bwcap b, html[data-mode="light"] body #page .tun-tbl .bwx .bwuse b { text-shadow: none; }
html body #page .tun-tbl th.bwh .bwh-in { display: block; white-space: nowrap; }
html body #page .tun-tbl th.bwh .bwh-in em { margin-left: 6px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--mut); }      /* (the unit is written ONCE, up here: the owner, 2026-10-17 - never beside every number, never Gb/s; and nothing else: no "capacity | in use" legend, it is in the tooltip) */
html[data-mode="light"] body #page .tun-tbl .bwbar { background: rgba(30, 50, 100, .14); }
html[data-mode="light"] body #page .tun-tbl .bwsep { background: rgba(30, 50, 100, .22); }
html body #modal .bw-why { margin-top: 4px; color: var(--warn, #ffc44d); font-size: 12px; line-height: 1.35; }

/* 1.62.0 - what is cut is a tiny tag in the Bandwidth cell (the owner, 2026-10-16: not a red dot and "GRE link cut" but a small red tag that says which end: "GRE foreign"); a tunnel that waits for its first measurement says so */
html body #page .tun-tbl .cut-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; line-height: 1; white-space: nowrap; color: #ff8a9b; background: rgba(255, 69, 58, .12); border: 1px solid rgba(255, 69, 58, .32); }
html body #page .tun-tbl .cut-tag.unk { color: #aeb7ca; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
html[data-mode="light"] body #page .tun-tbl .cut-tag { color: #b4232f; background: #fdecee; border-color: rgba(200, 40, 60, .4); }
html[data-mode="light"] body #page .tun-tbl .cut-tag.unk { color: #4a566e; background: rgba(30, 50, 100, .07); border-color: rgba(30, 50, 100, .22); }
html body #page .tun-tbl .cut-tag.svc { color: var(--warn); background: rgba(255, 196, 77, .13); border-color: rgba(255, 196, 77, .4); margin-right: 6px; }      /* "no service": the tunnel is up, nothing listens at its far port (amber, not the red of a cut) */
html[data-mode="light"] body #page .tun-tbl .cut-tag.svc { color: #8a5a00; background: #fff4de; border-color: rgba(190, 120, 0, .4); }
html body #page .tun-tbl .bwcap.pend { align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
html body #page .tun-tbl .bwcap.pend .spin { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--mut); animation: spin .8s linear infinite; }
html[data-mode="light"] body #page .tun-tbl .bwcap.pend .spin { border-color: rgba(30, 50, 100, .18); border-top-color: var(--mut); }

/* 1.63.0 - the Ping / Loss cell after the owner's picture (2026-10-17: "fix this arrow and the way the ping and the packet loss are placed"): the ping above, an arrow at each end of a dotted line, the loss below - blue while the link runs, red with a cross while it is cut */
html body #page .tun-tbl .tlink { --tl: #7fa6d8; --tl-glow: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100px; margin: 0 auto; color: var(--tl); }      /* 1.64.2 - the arrows shorter / less busy, and the ping number smaller (the owner: "make these arrows shorter, it is too crowded; make the ping number smaller too") */
html body #page .tun-tbl .tlink.down, html body #page .tun-tbl .tlink.cut { --tl: #cf7480; --tl-glow: transparent; }
html body #page .tun-tbl .tlink.unknown, html body #page .tun-tbl .tlink.starting { --tl: #7d8aa8; --tl-glow: transparent; }
html body #page .tun-tbl .tlink .ms { min-height: 12px; font-family: inherit; font-size: 10px; font-weight: 600; line-height: 12px; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }      /* (the owner, 2026-10-17: "the ping numbers smaller"; smaller again 1.64.2) */
html body #page .tun-tbl .tlink .ms.mut { color: var(--mut); }
html body #page .tun-tbl .tlink .ms.warn { color: var(--warn, #ffc44d); }
html body #page .tun-tbl .tlink .wire { position: relative; display: flex; align-items: center; gap: 5px; width: 100%; max-width: none; height: 12px; opacity: .5; }      /* (the owner: "the arrows paler - I do not want that place to look busy": the whole wire is dimmed, the numbers above and below are not) */
html body #page .tun-tbl .tlink .wire::before, html body #page .tun-tbl .tlink .wire::after { content: none; }
html body #page .tun-tbl .tlink .ah { flex: none; width: 12px; height: 8px; fill: none; stroke: var(--tl); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body #page .tun-tbl .tlink .dots { position: relative; flex: 1 1 auto; min-width: 8px; height: 4px; margin: 0; background: radial-gradient(circle, var(--tl) 1px, transparent 1.4px) 0 50% / 7px 4px repeat-x; opacity: .6; text-decoration: none; }
html body #page .tun-tbl .tlink .dots::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #d6e9ff 1.4px, transparent 2px) 7px 50% / 29px 4px repeat-x; opacity: .6; }
html body #page .tun-tbl .tlink.down .dots, html body #page .tun-tbl .tlink.cut .dots { height: 1.5px; border-radius: 2px; background: var(--tl); opacity: .8; }
html body #page .tun-tbl .tlink.down .dots::before, html body #page .tun-tbl .tlink.cut .dots::before { content: none; }
html body #page .tun-tbl .tlink .xx { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); padding: 0 3px; font-style: normal; font-weight: 700; font-size: 13px; line-height: 1; color: var(--tl); text-shadow: 0 0 4px var(--panel, #14161f), 0 0 4px var(--panel, #14161f); pointer-events: none; }
html body #page .tun-tbl .tlink .loss { min-height: 12px; padding: 0; background: none; font-size: 10.5px; font-weight: 600; line-height: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
html body #page .tun-tbl .tlink .loss.hi { color: var(--warn, #ffc44d); font-weight: 800; }
html body #page .tun-tbl .tlink .loss.blk { font-style: italic; font-weight: 600; opacity: .85; }
@keyframes tlFlow { to { background-position: 36px 50%; } }
html[data-anim="rich"] body #page .tun-tbl .tlink.up .dots::before { animation: tlFlow 2.6s linear infinite; }
html[data-mode="light"] body #page .tun-tbl .tlink { --tl: #3a79d0; --tl-glow: transparent; }
html[data-mode="light"] body #page .tun-tbl .tlink.down, html[data-mode="light"] body #page .tun-tbl .tlink.cut { --tl: #cc4a58; --tl-glow: transparent; }
html[data-mode="light"] body #page .tun-tbl .tlink.unknown, html[data-mode="light"] body #page .tun-tbl .tlink.starting { --tl: #7a86a3; --tl-glow: transparent; }
html[data-mode="light"] body #page .tun-tbl .tlink .dots::before { background-image: radial-gradient(circle, #ffffff 1.5px, transparent 2.1px); }

/* 1.63.1 - the copy mark of an address (the owner, 2026-10-17: "the copy icon falls incomplete"). A cell cuts whatever hangs outside it, and the mark hung 16 px to the left of the address - inside the 8 px of padding - so it was cut.
   Now the mark lives INSIDE the address box, on the free side (left of an Iran address, right of a foreign one): the box grows by the width of the mark when the pointer is on it, and in a tight cell the address gives way ("...") - the mark itself is never cut. */
html body #page .tun-tbl .td-node .ip-copy { display: inline-block; vertical-align: top; max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #page .tun-tbl .td-node .ip-copy::before { top: 50%; left: auto; right: 3px; width: 12px; height: 12px; transform: translateY(-50%); }
html body #page .tun-tbl .td-node.ir .ip-copy::before { left: 3px; right: auto; }
html body #page .tun-tbl .td-node .ip-copy:hover { padding-right: 18px; }
html body #page .tun-tbl .td-node.ir .ip-copy:hover { padding-right: 0; padding-left: 18px; }
html body #page .tun-tbl .td-node .ip-copy:hover::before { opacity: .85; transform: translateY(-50%); }
html[data-mode="light"] body #page .tun-tbl .td-node .ip-copy::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232c5fc9' stroke-width='1.5'%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"); }

/* 1.63.1 - the end of a tunnel row is the "⋯" button of the server list (labKebab, the menu of the tunnel window); the soft "›" arrow is gone */
html body #page .tun-tbl td:last-child::after { content: none !important; }      /* (the "›" that every clickable row of app.css shows on hover: no "›" over the "⋯", as in the server list) */
html body #page .tun-tbl td.tun-act { padding-left: 4px; padding-right: 10px; }
html body #page .tun-tbl .tun-act .td-act { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
html body #page .tun-tbl .tun-act .lab-kb { width: 32px; height: 32px; border-radius: 10px; }
html body #page .tun-tbl .tun-act .busy-chip { padding: 0; width: 24px; justify-content: center; }

/* 1.64.6 - the columns of the tunnel table share the width by what they hold, and the address cells breathe (the owner, 2026-10-17: "the parts where the server addresses are written are very crowded; the empty space between the columns is too much; put the columns right").
   Before, the name, the type and the ports had 19 / 19 / 12 % and the middle block had fixed pixels, so on a wide window the room that was left piled up between the type and the bandwidth and after the ports while the two address cells stayed tight against the ping arrows.
   Now every column has a share (13 / 14 / 10 / 9 / 11 / 11 / 8 %, the button 56 px), tuned on a demo panel: on a 2000 px window the gaps between the columns are 110-160 px instead of 170-270 px. */
html body #page .tun-tbl td.td-node { line-height: 1.3; }
html body #page .tun-tbl td.td-node.ir { padding-right: 20px; }
html body #page .tun-tbl td.td-node:not(.ir) { padding-left: 20px; }
html body #page .tun-tbl td.td-node b { font-weight: 700; }
html body #page .tun-tbl td.td-node .ip-copy { margin-top: 3px; font-size: 11.5px; font-weight: 400; letter-spacing: 0; }      /* (the address one step smaller and lighter than the name above it: two equally heavy lines were the crowd) */
html:not([data-mode="light"]) body #page .tun-tbl td.td-node .ip-copy { color: #97a5c3; }

/* the window of a tunnel is ONE summary table (the owner, 2026-11-03: "instead of all these windows, one nice table with the information written in summary"): Route | Traffic | Health, a row says it in a line */
html body #modal .tunwin .tsumbox { margin: 0 0 4px; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 14px; background: var(--panel); overflow: hidden; }
html body #modal .tunwin table.tsum { width: 100%; border-collapse: collapse; table-layout: fixed; }
html body #modal .tunwin .tsum col.ts-k { width: 92px; }
html body #modal .tunwin .tsum th { padding: 5px 8px 5px 14px; text-align: left; vertical-align: top; font-size: 12.5px; font-weight: 500; line-height: 1.45; color: var(--mut); white-space: nowrap; }
html body #modal .tunwin .tsum td { min-width: 0; padding: 5px 14px 5px 0; text-align: left; vertical-align: top; font-size: 12.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
html body #modal .tunwin .tsum tr + tr > th, html body #modal .tunwin .tsum tr + tr > td { border-top: 1px solid rgba(128, 140, 170, .16); }
html body #modal .tunwin .tsum td small { font-size: 11.5px; font-weight: 500; color: var(--mut); }
html body #modal .tunwin .tsum td b { font-weight: 700; }
html body #modal .tunwin .tsum .ts-sv { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 4px; }
html body #modal .tunwin .tsum .ts-ar { margin: 0 8px 0 4px; font-style: normal; color: var(--mut); }
html body #modal .tunwin .tsum .ts-ty { margin-left: 18px; }
html body #modal .tunwin .tsum .ts-u { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 14px; }
html body #modal .tunwin .tsum .td-ports { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: 10px; vertical-align: middle; }
html body #modal .tunwin .tsum .ts-kv { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 22px; }
html body #modal .tunwin .tsum .ts-kv em { font-style: normal; font-weight: 500; color: var(--mut); }
html body #modal .tunwin .tsum .ts-err { margin-top: 2px; font-size: 12px; font-weight: 500; }
html body #modal .tunwin .tsum .ts-stab { display: flex; flex-wrap: wrap; gap: 0 18px; }
html body #modal .tunwin .tsum .lab-ups { min-height: 0; margin-top: 4px; padding: 0; }
html body #modal .tunwin .tsum .lab-ups-row { height: 14px; }
html body #modal .tunwin .tsum .lab-ups-x { margin-top: 2px; font-size: 10px; }
html body #modal .tunwin .tsum td.bwbox .bwbig { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
html body #modal .tunwin .tsum td.bwbox .bwbig-track { flex: 1 1 200px; min-width: 160px; height: 10px; margin: 0; }
html body #modal .tunwin .tsum td.bwbox .bwbig-n { flex: 0 1 auto; gap: 2px 16px; }
html body #modal .tunwin .tsum td.bwbox .bwbig-n span b { font-size: 14px; }
html body #modal .tunwin .tsum td.bwbox .bwbig-n small { font-size: 10px; }
html body #modal .tunwin .tsum td.bwbox .bwbig-w { flex: 1 1 100%; margin: 0; }
html body #modal .tunwin .tsum .us-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
html body #modal .tunwin .tsum .us-line { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; max-width: 100%; font-size: 12px; font-weight: 500; }
html body #modal .tunwin .tsum .us-line b { flex: none; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--text); }
html body #modal .tunwin .tsum .us-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--warn, #ffc44d); }
html body #modal .tunwin .tsum .us-line.mut { color: var(--mut); }
html body #modal .tunwin .tsum .bw-why { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 2px 0 0; overflow: hidden; font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--mut); }      /* (two lines of a sentence: the whole of it is the tooltip) */
html body #modal .tunwin .lab-ban { min-height: 34px; margin-bottom: 6px; padding-top: 3px; padding-bottom: 3px; }
@media (max-width: 640px) { html body #modal .tunwin .tsum col.ts-k { width: 80px; } html body #modal .tunwin .tsum th { padding-left: 12px; } html body #modal .tunwin .tsum td { padding-right: 12px; } html body #modal .tunwin .tsum .ts-u, html body #modal .tunwin .tsum .ts-ty { margin-left: 6px; } }

/* 1.62.0 - the Knowledge tab of the Tunnel Doctor: what it knows about every pair of servers and what it remembers of the cuts */
html body #page .kn-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 4px 2px 10px; min-height: 38px; }
html body #page .kn-bar .sp { flex: 1; }
html body #page .kn-hour { width: 52px; height: 28px; box-sizing: border-box; text-align: center; border-radius: 8px; }
/* a pair is TWO lines (1.69.9): the name, the tunnels, the types that work with their speed, the cuts, the age and the button on the first; what failed lately - written out, not cut short - under the types on the second. Small type, so that it all fits.
   The prefix is as long as it is because the Doctor's own row rules (doctor.css: .ap-tasks .ap-row, its b, time and button) are as specific. */
html body #page .ap-tasks .ap-row.kn-row { display: grid; grid-template-columns: 132px 54px minmax(0, 1fr) auto auto auto; grid-template-areas: "name n best cuts time btn" ". . bad bad bad bad"; align-items: center; gap: 0 10px; min-height: 0; padding: 6px 12px; font-size: 12px; }
html body #page .ap-tasks .ap-row.kn-row > b { grid-area: name; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #page .ap-tasks .ap-row.kn-row > .kn-n { grid-area: n; font-size: 10.5px; white-space: nowrap; }
html body #page .ap-tasks .ap-row.kn-row > .kn-best { grid-area: best; display: flex; align-items: center; flex-wrap: wrap; gap: 3px 4px; min-width: 0; }
html body #page .ap-tasks .ap-row.kn-row > .kn-best > small, html body #page .ap-tasks .ap-row.kn-row > .kn-best > .mut { font-size: 10px; }
html body #page .ap-tasks .ap-row.kn-row > .kn-cuts { grid-area: cuts; font-size: 10px; padding: 1px 7px; }
html body #page .ap-tasks .ap-row.kn-row > time { grid-area: time; margin: 0; font-size: 10.5px; white-space: nowrap; }
html body #page .ap-tasks .ap-row.kn-row > button { grid-area: btn; height: 26px; padding: 0 12px; border-radius: 9px; font-size: 11px; }
html body #page .ap-tasks .ap-row.kn-row .kn-k { display: inline-flex; align-items: center; gap: 4px; height: 17px; padding: 0 7px; border-radius: 9px; font-size: 10px; white-space: nowrap; color: var(--mut); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
html body #page .ap-tasks .ap-row.kn-row .kn-k b { font-weight: 800; font-size: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
html body #page .ap-tasks .ap-row.kn-row .kn-k.full { border-color: rgba(61, 220, 151, .4); }
html body #page .ap-tasks .ap-row.kn-row > .kn-bad { grid-area: bad; font-size: 9.5px; line-height: 1.35; color: #ff8a9b; margin: 2px 0 0; white-space: normal; overflow-wrap: anywhere; }
html body #page .ap-tasks .ap-row.kn-row > .kn-bad:empty { display: none; }
html body #page .ap-tasks .ap-row.kn-row > .kn-bad { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; }
html body #page .ap-tasks .ap-row.kn-row .kn-rdy { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px 4px; min-width: 0; }
html body #page .ap-tasks .ap-row.kn-row .kn-r { display: inline-flex; align-items: center; gap: 4px; height: 17px; padding: 0 7px; border-radius: 9px; font-size: 10px; white-space: nowrap; color: var(--mut); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
html body #page .ap-tasks .ap-row.kn-row .kn-r b { font-weight: 800; font-size: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
html body #page .ap-tasks .ap-row.kn-row .kn-r.ready { border-color: rgba(61, 220, 151, .45); }
html body #page .ap-tasks .ap-row.kn-row .kn-r.maybe { border-color: rgba(255, 193, 77, .5); }
html body #page .ap-tasks .ap-row.kn-row .kn-r.none { border-color: rgba(255, 138, 155, .55); color: #ff8a9b; }
@media (max-width: 760px) { html body #page .ap-tasks .ap-row.kn-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name n btn" "best best best" "bad bad bad" "cuts cuts time"; row-gap: 3px; } html body #page .ap-tasks .ap-row.kn-row > .kn-cuts { justify-self: start; } html body #page .ap-tasks .ap-row.kn-row > time { justify-self: end; } }
html body #page .kn-h { margin: 16px 2px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
html body #page .kn-inc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
html body #page .kn-fix { font-size: 12px; }
html body #page .kn-none { padding: 6px 2px; font-size: 12px; }
html[data-mode="light"] body #page .ap-tasks .ap-row.kn-row .kn-k { background: rgba(30, 50, 100, .06); border-color: rgba(30, 50, 100, .2); }
html[data-mode="light"] body #page .ap-tasks .ap-row.kn-row > .kn-bad { color: #b4232f; }
html[data-mode="light"] body #page .ap-tasks .ap-row.kn-row .kn-r { background: rgba(30, 50, 100, .06); border-color: rgba(30, 50, 100, .2); }
html[data-mode="light"] body #page .ap-tasks .ap-row.kn-row .kn-r.ready { border-color: rgba(20, 140, 90, .55); }
html[data-mode="light"] body #page .ap-tasks .ap-row.kn-row .kn-r.maybe { border-color: rgba(190, 120, 0, .55); }
html[data-mode="light"] body #page .ap-tasks .ap-row.kn-row .kn-r.none { border-color: rgba(180, 35, 47, .55); color: #b4232f; }

/* 1.64.0 - the small buttons of About & update (the owner, 2026-10-17, his picture of the nodes of PasarGuard: "make the buttons smaller, and keep a space above and below them"). The Settings rule of app.css
   (html body #page .sf button, with !important) made EVERY button of the card 32 px tall - as tall as its row - so the 24 px of the rules above never applied. These are 22 px in rows of 36 px: 7 px of air above and below. */
html body #page .abt-pg .pgu-row:not(.pgu-hd) { min-height: 36px; }
html body #page .abt-pg .pgu-prow { min-height: 38px; padding-top: 5px; padding-bottom: 5px; }
html body #page .abt-pg .pgu-a button:not(.eye):not(.mini), html body #page .abt-pg .pgu-prow > button:not(.eye):not(.mini), html body #page .abt-pg .pgu-cap button:not(.eye):not(.mini) { flex: none; box-sizing: border-box; height: 22px !important; min-height: 22px !important; padding: 0 10px !important; border-radius: 7px !important; font-size: 11px !important; line-height: 1 !important; }
html body #page .abt-pg .pgu-a button:not(.eye):not(.mini) { width: 52px; padding: 0 !important; }
html body #page .abt-pg .pgu-prow > button:not(.eye):not(.mini) { width: 60px; padding: 0 !important; }

/* 1.64.0 - a question with several answers (glassChoice): the second line of a choice (the address of a server, the note of a program) was cut - "body #ask .ask-box .ask-act button" gave every button 36 px and beat the "height: auto" of the list (the owner, 2026-10-17, his picture of the Spoof test: "fix the text of these too") */
body #ask .ask-box .ask-act.ask-choices { justify-content: stretch; }
body #ask .ask-box .ask-act.ask-choices button { height: auto; min-height: 40px; padding: 8px 14px; border-radius: 14px; line-height: 1.25; }
body #ask .ask-box .ask-act.ask-choices button small { display: block; line-height: 1.2; }
body #ask .ask-box .ask-act.ask-choices button.ask-no { min-height: 36px; border-radius: 18px; }

/* 1.69.7 - the tags of the Problems column (Bad route, Filtered, GRE ✕ ...): smaller, paler at rest, as bright as before while the pointer is on their card, and - when the column has no room for all of them - on a second line inside the card instead of cut off at its edge (the owner, 2026-10-18: "paler, brighter when I go over the card, smaller; and stacked when there is no room, not out of the frame"; the list gave every cell `white-space: nowrap; overflow: hidden; text-overflow: ellipsis`, which cut the third tag to a "...") */
html body #page .lab-tbl td.lab-pb { white-space: normal; text-overflow: clip; line-height: 1; padding-top: 5px; padding-bottom: 5px; }
html body #page .lab-tbl td.lab-pb .lab-iss { height: 14px; max-width: 100%; margin: 2px 3px 2px 0; padding: 0 5px; gap: 3px; border-radius: 7px; font-size: 9px; opacity: .58; transition: opacity .16s ease; vertical-align: top; }
html body #page .lab-tbl td.lab-pb .lab-iss svg { width: 8px; height: 8px; }
html body #page .lab-tbl tr:hover td.lab-pb .lab-iss { opacity: 1; }
@media (hover: none) { html body #page .lab-tbl td.lab-pb .lab-iss { opacity: .85; } }

/* 1.69.7 - the facts of the service (Settings -> About & update): the strip is shared out between its facts - each one is centred between its two dividers, and the room that was left empty at the right end is theirs (the owner, 2026-10-18: "fix the spacing of these too") */
html body #page .abt-foot { justify-content: flex-start; gap: 0; padding: 8px 12px; }
html body #page .abt-foot > span, html body #page .abt-foot > span:nth-last-child(2) { flex: 1 0 auto; min-width: auto; justify-content: center; gap: 9px; padding: 0 18px; }
html body #page .abt-foot > span:nth-last-child(2) .abt-fv { min-width: auto; }
html body #page .abt-foot > button.abt-diag { flex: none; margin: 0 0 0 12px; }

/* 1.69.7 - the PasarGuard box: two buttons under its headline - the panel, and the nodes only (the owner, 2026-10-18: "put an option here for the update of the panel and one for only the nodes") */
html body #page .abt-pg .pgu-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
html body #page .abt-pg .pgu-go button { box-sizing: border-box; min-width: 0; height: 28px !important; min-height: 28px !important; padding: 0 10px !important; border-radius: 9px !important; font-size: 12px !important; line-height: 1 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* 1.69.8 - the sign-in page and the PasarGuard box in the look of the owner's UI kit sheet (docs/design/ui-kit-components.webp; the owner, 2026-10-18: "make the sign-in page exactly like the MacBook" - the sheet, and the same for the PasarGuard update): the primary button is the sheet's "Connect" - a flat vivid blue with a thin light edge and no gloss (steel blue under the pointer, dark when pressed); the field is the sheet's Text Field - its icon sits INSIDE the field (no box and no line of its own) and the ring on focus is a bright blue line with a soft glow */
html body .login button.pri::before, html body .login button.pri::after, html body #page .sf .abt-pg button.pri:not(.eye)::before, html body #page .sf .abt-pg button.pri:not(.eye)::after { content: none !important; display: none !important; }
html body .login button.pri, html body #page .sf .abt-pg button.pri:not(.eye) { background-image: linear-gradient(180deg, #1a73ff, #0b5cf0) !important; background-color: #0b5cf0 !important; border: 1px solid rgba(124, 176, 255, .5) !important; box-shadow: 0 6px 16px rgba(11, 92, 240, .28) !important; text-shadow: none !important; font-weight: 600 !important; color: #fff !important; filter: none; }
html body .login button.pri:not(:disabled):hover, html body #page .sf .abt-pg button.pri:not(.eye):not(:disabled):hover { background-image: linear-gradient(180deg, #40609d, #2e4b82) !important; border-color: rgba(150, 185, 255, .5) !important; box-shadow: none !important; filter: none; }
html body .login button.pri:not(:disabled):active, html body #page .sf .abt-pg button.pri:not(.eye):not(:disabled):active { background-image: linear-gradient(180deg, #1b2438, #151c2c) !important; border-color: rgba(255, 255, 255, .12) !important; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35) !important; transform: none; filter: none; }
html body .login .lg-go { height: 48px; border-radius: 12px; }
html body .login .lg-in .lg-ic { width: 42px; background: transparent; border-inline-end: 0; color: #8d99b5; }
html body .login .lg-in input:not([type=checkbox]) { padding-inline-start: 0; }
html body .login .lg-in:focus-within { border-color: #2f7bff; box-shadow: 0 0 0 1px #2f7bff, 0 0 14px rgba(47, 123, 255, .38); }
/* 1.69.25 / 1.69.34 - the window of "Move to a better server…": the plan, one line per part */
.mv-plan .mv-h { margin-top: 8px; font-weight: 600; font-size: 13px; }
.mv-plan .mv-r { font-size: 13px; line-height: 1.45; word-break: break-word; }
/* the line under the load bar (RAM · Disk) is cut with a dash at its END when the column is narrow; it was cut on both sides (it is centred) and began with "AM 57%" */
html body #page .lab-tbl .lab-ldx { min-width: 0; }
html body #page .lab-tbl .lab-ldx > small { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the tunnels of a server in its window (Access & status): the chips were one nowrap row cut at 49 px each ("ae1-no", "de1-no") when a server has three tunnels; they wrap */
html body #modal .kv2 > div:has(> .tchip) { flex-wrap: wrap; overflow: visible; row-gap: 4px; }
html body #modal .kv2 > div > .tchip { flex: none; }
.mv-plan .mv-choices { display: grid; gap: 8px; margin-top: 14px; }
.mv-plan .mv-choices button { height: auto; min-height: 40px; padding: 8px 14px; border-radius: 14px; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mv-plan .mv-choices button small { font-size: 11px; font-weight: 500; opacity: .75; }
.mv-plan .mv-choices button.sm { min-height: 34px; }

/* 1.69.39 - the question box looks like the alert of macOS (the owner, 2026-10-20: "make this one MacBook style" - the "Update the panel from GitHub now?" box): a rounded square icon on top, the words centred, and two buttons of the same width side by side - the quiet one on the left, the blue (red for a dangerous question) one on the right. The box with a plan inside (Move the tunnels) and the choice lists keep their own layout. */
html body #ask .modal.ask-box:not(:has(.mv-plan)) { width: min(344px, calc(100vw - 40px)); padding: 26px 22px 18px; gap: 8px; border-radius: 16px; text-align: center; justify-items: center; box-shadow: 0 26px 70px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-ic { justify-self: center; width: 58px; height: 58px; border-radius: 14px; font-size: 28px; font-weight: 700; margin-bottom: 4px; box-shadow: 0 8px 22px rgba(10,132,255,.35); background: linear-gradient(180deg, #4aa3ff, #0a6cf0); }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-ic.bad { background: linear-gradient(180deg, #ff7a70, #ff453a); box-shadow: 0 8px 22px rgba(255,69,58,.35); }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-text { font-size: 13.5px; line-height: 1.5; text-align: center; font-weight: 500; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) { display: flex; width: 100%; gap: 10px; justify-content: stretch; margin-top: 14px; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) button { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; font-size: 14px; font-weight: 600; box-shadow: none; filter: none; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) button::after { display: none; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no { background: rgba(255,255,255,.12); color: inherit; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no:hover { background: rgba(255,255,255,.18); }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes { background: #0a84ff; color: #fff; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes:hover { background: #2b95ff; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes.danger-fill { background: #ff453a; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes.danger-fill:hover { background: #ff5f55; }
html[data-mode="light"] body #ask .modal.ask-box:not(:has(.mv-plan)) { box-shadow: 0 26px 70px rgba(30,40,80,.28), inset 0 0 0 1px rgba(60,80,130,.12); }
html[data-mode="light"] body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no { background: rgba(60,70,100,.09); color: #1c1f2a; }
html[data-mode="light"] body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no:hover { background: rgba(60,70,100,.15); }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-field { width: 100%; text-align: left; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-hint, html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-check { text-align: left; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) :is(.ask-act.ask-choices, .ask-check) { width: 100%; box-sizing: border-box; }      /* (the box centres its rows: a list of choices was as wide as its widest word - 99 px buttons in a 344 px box - and the tick row 221 px; both fill the box like the buttons of a plain question) */
/* the buttons of the alert are flat in every theme (the "calm" and "aurora" themes give a primary button a gradient, a glow, a gloss and a text shadow: the alert has none of them) */
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes, html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no { background-image: none !important; box-shadow: none !important; text-shadow: none !important; border: 0 !important; transform: none !important; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes::before, html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no::before, html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes::after, html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no::after { display: none !important; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes { background-color: #0a84ff !important; color: #fff !important; } html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes:hover { background-color: #2b95ff !important; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes.danger-fill { background-color: #ff453a !important; } html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-yes.danger-fill:hover { background-color: #ff5f55 !important; }
html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no { background-color: rgba(255,255,255,.12) !important; } html body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no:hover { background-color: rgba(255,255,255,.18) !important; }
html[data-mode="light"] body #ask .modal.ask-box:not(:has(.mv-plan)) .ask-act:not(.ask-choices) .ask-no { background-color: rgba(60,70,100,.09) !important; }
/* 1.69.47 - "Real use by the users" in the Monitor tab of a tunnel: the 24 hours of the day as bars (light = the busiest minute, dark = the average) */
.mcard.pk .pk-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 70px; margin-top: 8px; }
.mcard.pk .pk-bars i { position: relative; display: block; min-height: 0; border-radius: 3px 3px 0 0; background: rgba(110, 160, 255, .32); }
.mcard.pk .pk-bars i u { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; background: var(--acc-2, #38d9f5); }
.mcard.pk .pk-bars i.on { box-shadow: 0 0 0 1px var(--warn, #ffc44d); }
.mcard.pk .pk-x { display: flex; justify-content: space-between; margin-top: 2px; font-size: 10px; color: var(--mut); }
.mcard.pk .pk-n { margin-top: 4px; font-size: 10.5px; line-height: 1.4; }

/* 1.69.49 - the Type cell is TWO rows and its tags are smaller (the owner, 2026-10-20: "my tags smaller and in 2 rows"): the engine tag above, the link below; the red tag of a cut tunnel is smaller too */
html body #page .tun-tbl td.td-ty2 { line-height: 1.15; white-space: nowrap; }
html body #page .tun-tbl td.td-ty2 .td-type { display: inline-block; font-size: 9px; letter-spacing: .3px; padding: 1px 6px; }
html body #page .tun-tbl td.td-ty2 small { display: block; margin-top: 4px; padding-left: 2px; font-size: 10px; }
html body #page .tun-tbl .cut-tag { height: 16px; padding: 0 7px; font-size: 9.5px; }
/* 1.69.50 / 1.69.52 - the Bandwidth cell of the tunnel list is EMPTY while the tunnel is fine; for a problem or a nearly full tunnel it is a METER: a thin bar (the capacity is the track, what the users use the fill) and "use / capacity" with one word */
html body #page .tun-tbl .bwm { display: inline-flex; flex-direction: column; gap: 3px; min-width: 120px; max-width: 100%; font-variant-numeric: tabular-nums; }
html body #page .tun-tbl .bwm-bar { display: block; height: 7px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .1); }
html body #page .tun-tbl .bwm-bar u { display: block; height: 100%; border-radius: 4px; background: var(--acc-2, #6ea8ff); }
html body #page .tun-tbl .bwm-t { display: flex; align-items: baseline; gap: 4px; font-size: 12px; color: var(--mut); white-space: nowrap; }
html body #page .tun-tbl .bwm-t b { font-size: 13px; font-weight: 800; color: var(--text); }
html body #page .tun-tbl .bwm-t i { font-style: normal; opacity: .6; }
html body #page .tun-tbl .bwm-t small { margin-left: 4px; padding: 0 7px; border-radius: 9px; font-size: 10.5px; font-weight: 700; }
html body #page .tun-tbl .bwm.drop .bwm-bar u, html body #page .tun-tbl .bwm.slow .bwm-bar u { background: var(--bad, #ff6b8b); }
html body #page .tun-tbl .bwm.drop .bwm-t small, html body #page .tun-tbl .bwm.slow .bwm-t small { color: var(--bad, #ff6b8b); background: rgba(255, 107, 139, .14); }
html body #page .tun-tbl .bwm.full .bwm-bar u { background: var(--warn, #ffc44d); }
html body #page .tun-tbl .bwm.full .bwm-t small { color: var(--warn, #ffc44d); background: rgba(255, 196, 77, .14); }
html body #page .tun-tbl .bwm.dip .bwm-t small { color: var(--mut); background: rgba(138, 160, 205, .16); }      /* (dip: a dropped / very slow capacity the users do not feel - the word stays "dropped" in the panel's own grey-blue, the bar keeps its usual blue: one quiet colour; only a drop the users feel is red) */
/* the big meter of the tunnel window */
.bwbox .bwbig-track { position: relative; height: 14px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: visible; margin: 6px 0 8px; }
.bwbox .bwbig-track u { display: block; height: 100%; border-radius: 8px; background: var(--acc-2, #6ea8ff); transition: width .6s ease; }
.bwbox .bwbig-track i.pk { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text, #e7ecf8); opacity: .75; }
.bwbox .bwbig.warm .bwbig-track u { background: var(--warn, #ffc44d); }
.bwbox .bwbig.full .bwbig-track u { background: linear-gradient(90deg, var(--warn, #ffc44d), #ff9a4d); }
.bwbox .bwbig.drop .bwbig-track u { background: var(--bad, #ff6b8b); }
.bwbox .bwbig-n { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; }
.bwbox .bwbig-n span b { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.bwbox .bwbig-n small { font-size: 10.5px; color: var(--mut); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.bwbox .bwbig-w { margin-top: 6px; font-size: 12px; color: var(--mut); }
.bwbox .bwbig.drop .bwbig-w { color: var(--bad, #ff6b8b); } .bwbox .bwbig.full .bwbig-w, .bwbox .bwbig.warm .bwbig-w { color: var(--warn, #ffc44d); }
.bwbox { margin-bottom: 10px; }

/* the failed-update note of the About card is ONE row (the owner, 2026-10-20: "show the error briefly in one row, and if the update fixes it, say so"): it was a red paragraph in a box that scrolled */
html body #about-box .abt-fail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 1.5; }
html body #about-box .abt-fail b { font-weight: 700; color: var(--text); }

/* A tall question (the plan of "Move the tunnels", a list of choices) in a short window: the box was centred and as tall as its content, so its top went above the window where no scroll can reach (a plan 615 px tall in a window of 480 px: the first 55 px cut;
   12 choices: 183 px). The box is never taller than the window and scrolls inside itself. */
html body #ask .modal.ask-box { max-height: 100%; overflow-y: auto; }
/* The question box on a phone. The sheet rules for every window (mobile2.css: ".modal { height: 100%; min-height: 100% !important; border-radius: 0 !important }", ".ask-box { width: 100% !important }") made it a FULL-SCREEN sheet - 800 px of box, its rows stretched, Cancel and OK 239 px tall.
   It is the same small alert as on a desktop; only its width follows the screen. */
@media (max-width: 760px) and (pointer: coarse) {
  html body #ask .overlay { align-items: center !important; justify-content: center !important; padding: 16px !important; }
  html body #ask .modal.ask-box { width: min(344px, calc(100vw - 40px)) !important; height: auto !important; min-height: 0 !important; max-height: 100% !important; overflow-x: hidden !important; border-radius: 16px !important; }
  html body #ask .modal.ask-box:has(.mv-plan) { width: min(420px, calc(100vw - 32px)) !important; }
}
/* The number cards of the server and tunnel windows ("Connections 3073 / peak 4268"): the old rule "span { max-width: 62% }" cut the note ("peak 4") in the middle of a digit and the card scrolled 12 px inside itself. The note takes what the caption leaves and ends with a dash (its tip tells it all). */
html body #modal :is(.srvwin, .tunwin) .mtile { grid-template-columns: auto minmax(0, 1fr); }
html body #modal :is(.srvwin, .tunwin) .mtile span { max-width: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a question that was answered stays a moment as an invisible layer (askLeave in app.js): the second click of a double click lands on it, not on the page under the button */
html body #ask.ask-out .overlay, html body #ask.ask-out .modal { animation: none !important; transition: none !important; opacity: 0 !important; }
/* The tabs of the profiles (All | Iran | Foreign | PasarGuard ...): with five profiles at 1280 px every name had shrunk to 0 px beside its icon and count ("Iran" was a flag and a 6): a tab was allowed down to 46 px and its label gave way first.
   A tab keeps its size (a name over 190 px ends with a dash); when the strip is still too narrow it scrolls sideways and the open tab is brought into view (labTabsReveal in lab.js).
   With five tabs or more the chips lose their words earlier, so the tabs have the room (the chips are the least important part of the bar). */
html[data-fluid] body #page .tabs.lab-kinds > button, html body #page .tabs.lab-kinds > button { flex: none; min-width: auto; overflow: visible; }      /* (the first selector beats the fluid rule "html[data-fluid] body #page .tabs > button { flex: 0 1 auto; min-width: 0; overflow: hidden }" of fluid.css, which is loaded after this sheet) */
html[data-fluid] body #page .lab-bar:has(.lab-kinds > button:nth-child(5)) .tabs.lab-kinds > button { padding: 0 9px; gap: 5px; }      /* (five tabs or more: a little tighter) */
@container labbar (max-width: 1000px) {
  .lab-bar:has(.lab-kinds > button:nth-child(5)) .lab-chip > span { display: none; }
  .lab-bar:has(.lab-kinds > button:nth-child(5)) .lab-chip::before { content: attr(data-ic); font-size: 11px; color: var(--mut); }
  .lab-bar:has(.lab-kinds > button:nth-child(5)) .lab-chip { padding: 0 9px; gap: 4px; }
}

/* the meter of the list is drawn for EVERY tunnel that runs, the TOTAL on the left and what the users use beside it (the owner, 2026-10-21): a tunnel without a problem has no word */
html body #page .tun-tbl .bwm-t small:empty { display: none; }
html body #page .tun-tbl .bwm-t .bwm-u { font-size: 12px; font-weight: 600; color: var(--text); }
/* 1.69.57 - the Live window (nload-like): the source buttons, Curr / Avg / Min / Max / Ttl for the incoming and the outgoing side, the graph of the last two minutes */
.lv .lv-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.lv .lv-src button.on { background: var(--acc, #2f7bff); color: #fff; border-color: transparent; }
.lv .lv-row { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(5, minmax(0, 1fr)); gap: 8px; align-items: baseline; padding: 8px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--panel-2, rgba(255, 255, 255, .05)); border: 1px solid var(--line, rgba(255, 255, 255, .08)); }
.lv .lv-row b { font-size: 12.5px; } .lv .lv-row.in b { color: #6ea8ff; } .lv .lv-row.out b { color: #3ddc97; }
.lv .lv-row span { display: flex; flex-direction: column; min-width: 0; } .lv .lv-row small { font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); font-weight: 700; }
.lv .lv-row em { font-style: normal; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.3px; white-space: nowrap; }
.lv .lv-graph { margin: 8px 0 4px; border-radius: 12px; background: var(--panel-2, rgba(255, 255, 255, .04)); border: 1px solid var(--line, rgba(255, 255, 255, .08)); padding: 6px 8px; }
.lv .lv-g { display: block; width: 100%; height: 150px; }
.lv .lv-g .lg { stroke: rgba(255, 255, 255, .1); stroke-width: 1; vector-effect: non-scaling-stroke; } .lv .lv-g .lt { font-size: 10px; fill: var(--mut, #8d99b5); }
.lv .lv-g .l0, .lv .lv-g .l1 { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; } .lv .lv-g .l0 { stroke: #6ea8ff; } .lv .lv-g .l1 { stroke: #3ddc97; }
.lv .lv-g .a0 { fill: rgba(110, 168, 255, .18); } .lv .lv-g .a1 { fill: rgba(61, 220, 151, .14); }
.lv .lv-foot { font-size: 11px; }
@media (max-width: 640px) { .lv .lv-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } .lv .lv-row b { grid-column: 1 / -1; } }

/* a tunnel with no capacity yet (a new one): an empty bar and one word */
html body #page .tun-tbl .bwm.pend .bwm-bar u { background: transparent; }
html body #page .tun-tbl .bwm.pend .bwm-t small { color: var(--mut); background: rgba(255, 255, 255, .07); }

/* "no users": nobody used the tunnel for minutes and the Doctor checked it fully and found nothing wrong */
html body #page .tun-tbl .bwm.ok .bwm-t small:not(:empty) { color: var(--mut); background: rgba(255, 255, 255, .07); }

/* the Link box of the tunnel window: a value that is longer than its row wraps instead of being cut at the left ("ually 1328 Mb/s") */

/* a window is open: what the status bar behind it said before (an old error) is not shown - what happens in a window is told in the window */
html body:has(#modal .modal) #statusbar .sb-text, html body:has(#modal .modal) #statusbar .sb-time, html body:has(#modal .modal) #statusbar .sb-undo { visibility: hidden; }


/* 1.69.78 - the top boxes of Settings → About & update (this panel and its license) are compact and look like the System Settings of macOS (the owner, 2026-10-21: "make these two boxes tighter and MacBook style"): a small rounded icon, the title in 13.5 px, the version as quiet grey text, a small status capsule, and the rows as inset grey strips with no border. The first row of the grid is as tall as its content (it was a fixed 156 px with an empty area under the Update row); the rows under it keep their fixed size. */
html body #page .abt-grid { grid-template-rows: auto 316px; align-content: start; }
html body #page .abt-grid > .abt-card:not(.abt-top) { align-self: stretch; }
@media (max-width: 1000px) { html body #page .abt-grid { grid-template-rows: none; grid-auto-rows: auto; } html body #page .abt-grid > .abt-card:not(.abt-top) { min-height: 232px; } }
html body #page .abt-grid > .abt-top { padding: 10px 12px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
html body #page .abt-top .abt-ch { align-items: center; gap: 10px; }
html body #page .abt-top .abt-ti { width: 30px; height: 30px; border-radius: 8px; border: 0; color: #fff; background: linear-gradient(180deg, #4aa3ff, #0a6cf0); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25), 0 1px 3px rgba(0, 0, 0, .35); }
html body #page .abt-top .abt-ti.ok { color: #fff; background: linear-gradient(180deg, #4ade80, #1fa85c); }
html body #page .abt-top .abt-ti svg { width: 17px; height: 17px; stroke-width: 1.9; }
html body #page .abt-top .abt-t1 { min-height: 0; gap: 2px 8px; }
html body #page .abt-top .abt-t1 b { font-size: 13.5px; font-weight: 600; letter-spacing: -.1px; }
html body #page .abt-top .abt-t1 .pill { height: auto; padding: 0; border: 0; background: none; box-shadow: none; font-size: 11.5px; font-weight: 500; color: var(--mut); }
html body #page .abt-top .abt-ct small { margin-top: 1px; font-size: 11.5px; line-height: 1.35; }
html body #page .abt-top .abt-pill { height: 22px; padding: 0 9px; gap: 5px; border-radius: 11px; font-size: 11.5px; font-weight: 600; }
html body #page .abt-top .abt-pill::before { width: 6px; height: 6px; }
html body #page .abt-top .abt-cb { margin-top: 8px; }
html body #page .abt-top .abt-line { margin: 0 0 6px 2px; font-size: 12px; }
html body #page .abt-top .abt-row { gap: 9px; height: 34px; padding: 0 10px 0 5px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .055); font-size: 13px; font-weight: 500; }
html body #page .abt-top .abt-row b { font-weight: 500; }
html body #page .abt-top .abt-row:hover:not(:disabled) { background: rgba(255, 255, 255, .09); }
html body #page .abt-top .abt-row .abt-ti.sm { width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .1); box-shadow: none; color: var(--text); }
html body #page .abt-top .abt-row .abt-ti.sm svg { width: 15px; height: 15px; }
html body #page .abt-top .abt-chev svg { width: 14px; height: 14px; }
html body #page .abt-top .lic-feats { gap: 5px; margin: 0 0 7px; }
html body #page .abt-top .lic-feats .pill { height: 22px; padding: 0 9px; font-size: 11.5px; }
html body #page .abt-top .abt-iid { gap: 8px; padding: 3px 4px 3px 10px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .055); font-size: 12px; }
html body #page .abt-top .abt-iid code { padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .22); font-size: 12px; }
html body #page .abt-top .abt-copy { width: 26px; height: 26px; border-radius: 7px; }
html body #page .abt-top .abt-copy svg { width: 15px; height: 15px; }
html body #page .abt-top .abt-note { margin-top: 6px; font-size: 11.5px; }
html[data-mode="light"] body #page .abt-grid > .abt-top { border-color: rgba(0, 0, 0, .09); background: rgba(255, 255, 255, .7); box-shadow: 0 1px 2px rgba(30, 40, 80, .06); }
html[data-mode="light"] body #page .abt-top .abt-ti { color: #fff; }
html[data-mode="light"] body #page .abt-top .abt-ti.ok { color: #fff; }
html[data-mode="light"] body #page .abt-top .abt-row, html[data-mode="light"] body #page .abt-top .abt-iid { background: rgba(60, 70, 100, .07); }
html[data-mode="light"] body #page .abt-top .abt-row:hover:not(:disabled) { background: rgba(60, 70, 100, .12); border: 0; }
html[data-mode="light"] body #page .abt-top .abt-row .abt-ti.sm { background: rgba(60, 70, 100, .1); color: #2b3550; }
html[data-mode="light"] body #page .abt-top .abt-iid code { background: rgba(60, 70, 100, .08); color: #14213d; }
/* the License box is hidden (LICENSE_UI = false in app.js): the About box is then ONE strip over the full width - the title and the status on the left, the update row on the right - and the cores and the PasarGuard boxes stay under it side by side */
html body #page .abt-grid.abt-nolic > #about-hero { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; }
html body #page .abt-grid.abt-nolic > #about-hero .abt-ch { flex: 1 1 auto; min-width: 0; }
html body #page .abt-grid.abt-nolic > #about-hero .abt-cb { flex: 0 1 380px; min-width: 0; margin-top: 0; overflow: visible; }
@media (max-width: 1000px) { html body #page .abt-grid.abt-nolic > #about-hero { flex-direction: column; align-items: stretch; gap: 0; } html body #page .abt-grid.abt-nolic > #about-hero .abt-cb { flex: none; margin-top: 8px; } }

/* Persian is switched off for now (PERSIAN_ON in i18n.js): the language button is not shown, also before the script has removed it */
html[data-persian="off"] .lang-btn { display: none !important; }

/* the sheet of a repair / rebuild / speed test in a tunnel window: as high as its text (a one-line error was a 230 px empty sheet over the boxes), and a click on a finished one puts it away */
html body #modal .tunwin .fix[id^="fix-"]:not(.hidden) { height: auto; min-height: 0; padding-right: 34px; cursor: pointer; }
html body #modal .tunwin .fix[id^="fix-"]:not(.hidden):not(:has(.fx-line.run, .loading))::after { content: "✕"; position: absolute; top: 8px; right: 14px; font-size: 13px; opacity: .55; pointer-events: none; }
/* a search with no hit: one quiet line in the middle of the box */
html body #page .lbox > .q-none { padding: 34px 16px; text-align: center; font-size: 13.5px; color: var(--mut, #8b93a7); }
/* a row of the tunnel list reached with the keyboard shows where it is */
html body #page .tun-tbl tr.clk:focus-visible { outline: 2px solid rgba(120, 160, 255, .85); outline-offset: -2px; }
/* a long server name in the tunnel list ends in an ellipsis (it was cut by the cell with nothing to show it) and the whole name is in its tooltip */
html body #page .tun-tbl td.td-node > b { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
html body #page .tun-tbl td.td-node > b > .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
html body #page .tun-tbl td.td-node > b > :not(.nm) { flex: none; }
/* the name of the Iran node sits right above its address, on the same edge (the owner, 2026-11-03: "here the names should go on top of the IPs, like the Foreign column"): the Iran cell is right-aligned and the address followed it, but the name row above is a flex row, which ignores the cell's text-align, so the name stayed at the left */
html body #page .tun-tbl td.td-node.ir > b { justify-content: flex-end; }

/* the Marzban node card of a server: "Node installed" is a quiet green button that does nothing */
html body #modal .ins-btn.ok, html body #modal .ins-btn.ok:disabled { color: var(--ok, #38d996) !important; border-color: color-mix(in srgb, var(--ok, #38d996) 45%, transparent) !important; background: color-mix(in srgb, var(--ok, #38d996) 12%, transparent) !important; opacity: 1; cursor: default; box-shadow: none; }


/* the question with several answers (glassChoice: "SW already has a tunnel ...", "Move X to which Iran server?", Restore / Restore and restart) in the alert style of macOS (the owner, 2026-10-24, with a picture of it: "make this MacBook style"): the answers are a stack of flat full-width buttons - grey, the recommended one (pri) blue, a destructive one (danger, danger-fill) red text on a soft red - the label in 13.5 px, the note under it smaller and quieter; no gradient, no glow, no gloss, in every theme (the themes give a primary button all three), and Cancel the same grey a little apart. */
html body #ask .ask-box .ask-act.ask-choices { gap: 8px; }
html body #ask .ask-box .ask-act.ask-choices button { width: 100%; box-sizing: border-box; min-height: 40px; padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.25; background-image: none !important; box-shadow: none !important; text-shadow: none !important; border: 0 !important; transform: none !important; background-color: rgba(255, 255, 255, .12) !important; color: inherit !important; }
html body #ask .ask-box .ask-act.ask-choices button:hover { background-color: rgba(255, 255, 255, .18) !important; }
html body #ask .ask-box .ask-act.ask-choices button::before, html body #ask .ask-box .ask-act.ask-choices button::after { display: none !important; }
html body #ask .ask-box .ask-act.ask-choices button small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; line-height: 1.25; opacity: .7; }
html body #ask .ask-box .ask-act.ask-choices button.pri { background-color: #0a84ff !important; color: #fff !important; }
html body #ask .ask-box .ask-act.ask-choices button.pri:hover { background-color: #2b95ff !important; }
html body #ask .ask-box .ask-act.ask-choices button.pri small { opacity: .82; }
html body #ask .ask-box .ask-act.ask-choices :is(button.danger, button.danger-fill) { background-color: rgba(255, 69, 58, .16) !important; color: #ff6961 !important; }
html body #ask .ask-box .ask-act.ask-choices :is(button.danger, button.danger-fill):hover { background-color: rgba(255, 69, 58, .24) !important; }
html body #ask .ask-box .ask-act.ask-choices button.ask-no { min-height: 36px; margin-top: 4px; border-radius: 10px; }
html[data-mode="light"] body #ask .ask-box .ask-act.ask-choices button { background-color: rgba(60, 70, 100, .09) !important; }
html[data-mode="light"] body #ask .ask-box .ask-act.ask-choices button:hover { background-color: rgba(60, 70, 100, .15) !important; }
html[data-mode="light"] body #ask .ask-box .ask-act.ask-choices button.pri { background-color: #0a84ff !important; }
html[data-mode="light"] body #ask .ask-box .ask-act.ask-choices :is(button.danger, button.danger-fill) { background-color: rgba(255, 69, 58, .12) !important; color: #d70015 !important; }

/* 1.69.122 - the replacement card of the build form: what is found, the replacement, and under it the CDN names (the owner, 2026-10-24) */
.bld-check .bconf.bgroup { display: flex; flex-direction: column; gap: 5px; }
.bld-check .bconf.bgroup .bg-h { font-size: 12.5px; font-weight: 700; }
.bld-check .bconf.bgroup .chk.sub { margin-left: 24px; padding-top: 4px; border-top: 1px dashed rgba(255, 190, 70, .3); }
.bld-check .bconf.bgroup .chk.sub.off { opacity: .45; }

/* the "⚠ ×2" mark beside a foreign server that ends several tunnels (the owner, 2026-10-24, with a picture of it: "make this ×2 tag paler and a little smaller"): 9 px instead of 10, a tighter capsule, and 60 % of its colour until the pointer is on it - it is a hint, not an alarm */
html body #page .dup { margin-left: 5px; font-size: 9px; font-weight: 700; line-height: 14px; padding: 0 5px; opacity: .6; transition: opacity .15s; }
html body #page .dup:hover { opacity: .95; }
/* 1.69.135 - the Reviewer tab of the Tunnel Doctor: the teacher of the Doctor - what went wrong in a repair, whether the Doctor acted well, and the lessons it proposes (nothing is in force before the owner approves it) */
html body #page .rv-list { display: block; }
html body #page .rv-row { display: block; box-sizing: border-box; margin: 0 0 8px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--uk-line); border-left-width: 3px; background: #0f1626; font-size: 12.5px; }
html body #page .rv-row.bad { border-left-color: #ff6b81; } html body #page .rv-row.warn { border-left-color: #ffc44d; } html body #page .rv-row.note, html body #page .rv-row.good { border-left-color: rgba(255, 255, 255, .22); }
html body #page .rv-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
html body #page .rv-h .sp, html body #page .rv-less .sp { flex: 1; }
html body #page .rv-h b { font-size: 13px; }
html body #page .rv-h time { font-size: 11px; white-space: nowrap; }
html body #page .rv-h button, html body #page .rv-less button { height: 26px; padding: 0 12px; border-radius: 9px; font-size: 11px; }
html body #page .rv-s { margin: 7px 0 0; line-height: 1.45; }
html body #page .rv-m { margin: 4px 0 0; line-height: 1.45; color: #ffc44d; }
html body #page .rv-m b { font-weight: 700; }
html body #page .rv-fl { margin: 6px 0 0; padding: 0 0 0 18px; font-size: 11.5px; line-height: 1.5; color: var(--mut); }
html body #page .rv-fl li.bad { color: #ff8a9b; } html body #page .rv-fl li.warn { color: #ffc44d; }
html body #page .rv-note { display: block; margin-top: 5px; font-size: 11px; }
html body #page .rv-v.v-wasteful, html body #page .rv-v.v-wrong { color: #ffc44d; border-color: rgba(255, 196, 77, .45); } html body #page .rv-v.v-good, html body #page .rv-v.v-unlucky { color: #3ddc97; border-color: rgba(61, 220, 151, .4); }
html body #page .rv-less { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--uk-line); background: #0f1626; font-size: 12.5px; }
html body #page .rv-less.proposed { border-color: rgba(255, 196, 77, .45); }
html body #page .rv-less > b { flex: 1 1 260px; min-width: 0; font-weight: 600; }
html body #page .rv-less .rv-why { flex: 1 1 100%; font-size: 11.5px; line-height: 1.4; }
textarea.rv-report { width: 100%; box-sizing: border-box; font: 11.5px/1.45 ui-monospace, Menlo, Consolas, monospace; }
html[data-mode="light"] body #page .rv-row, html[data-mode="light"] body #page .rv-less { background: #fff; }
html[data-mode="light"] body #page .rv-m, html[data-mode="light"] body #page .rv-fl li.warn { color: #9a6700; } html[data-mode="light"] body #page .rv-fl li.bad { color: #b4232f; }

/* 1.69.199 - the nightly switch of the PasarGuard card is ONE line: the title with a small round (i) after its last word (it opens the explanation and the rehearsal), the switch; the status lines (held back, last night) only when there are any (the owner, 2026-11-04, with a picture of the row: "remove these extra explanations and put a neat little i in a corner instead") */
html body #page .abt-pg .pgu-i { display: inline-grid; place-items: center; box-sizing: border-box; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; border-radius: 50%; border: 1px solid var(--uk-line); background: #1a2036; color: #8f9bbd; font-size: 10.5px; font-weight: 650; font-style: normal; line-height: 1; cursor: pointer; user-select: none; }
html body #page .abt-pg .pgu-i:hover, html body #page .abt-pg .pgu-i:focus-visible { color: var(--uk-text); border-color: #4a5a8a; outline: none; }
html[data-mode="light"] body #page .abt-pg .pgu-i { background: #f3f6fc; border-color: rgba(30, 50, 100, .2); color: #5b6888; }
/* the cores card after the owner's words (2026-11-04): neat and MacBook-like - one grouped list, a line per core (name, newest release, one word of state), no buttons: the Doctor updates by itself at night */
html body #page .tcr-list { display: flex; flex: none; flex-direction: column; overflow: hidden; border-radius: 12px; border: 1px solid rgba(128, 140, 170, .2); background: rgba(128, 140, 170, .07); }
html body #page .tcr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 132px; align-items: center; gap: 14px; min-height: 32px; padding: 0 14px; }      /* (1.69.333: 32 px - seven rows, six cores and the WireGuard tools, fit the 316 px card; at 38 px the last row was cut in half, the owner, 2026-12-05) */
html body #page .tcr-row + .cr-row { border-top: 1px solid rgba(128, 140, 170, .18); }
html body #page .tcr-n { font-size: 13.5px; font-weight: 600; color: var(--text); }
html body #page .tcr-v { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--mut); }
html body #page .tcr-s { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--mut); }
html body #page .tcr-s.ok { color: #2fbf7a; } html body #page .tcr-s.warn { color: #e8a53a; } html body #page .tcr-s.bad { color: #f0596d; } html body #page .tcr-s.run { color: #4da3ff; }
html body #page .tcr-s .spin { display: inline-block; width: 12px; height: 12px; }
html body #page .tcr-s button.tcr-b { flex: none; box-sizing: border-box; height: 24px !important; min-height: 24px !important; padding: 0 12px !important; border: 0 !important; border-radius: 999px !important; background: #2f7bf5 !important; box-shadow: none !important; color: #fff !important; font-size: 12px !important; font-weight: 600; line-height: 1; cursor: pointer; }      /* (the Settings rule gives every button 32 px with !important: the small button of this row says !important too) */
html body #page .tcr-empty { padding: 12px 14px; font-size: 12.5px; color: var(--mut); }
/* 1.69.333 - a card that has more rows than room scrolls inside its box, it never cuts a row (the box keeps `overflow: hidden` on the sides: the glow of a switch has its room, see test_switch_glow_room) */
html body #page #eng-box { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
