/* WBIT Panel v2 - light admin console in WBIT purple.
   Layout: white side navigation (inline-start) + top bar + content of rounded white cards on a pale field.
   Logical properties everywhere: works for RTL (he, ar) and LTR (en, ru). */
:root {
  --primary: #6C38FF;
  --primary-dark: #3B1E8F;
  --primary-light: #A98BFF;
  --primary-soft: #F1ECFF;
  --primary-softer: #F7F4FF;
  --grad-a: #8236FB;
  --grad-b: #076EF4;
  --ink: #162339;
  --text: #5C6672;
  --muted: #8A92A6;
  --line: #E5E7EA;
  --field: #F2F5FA;
  --page: #F7F8FB;
  --white: #FFFFFF;
  --ok: #16A34A; --ok-bg: #E7F7EC;
  --warn: #C27803; --warn-bg: #FEF4DE;
  --bad: #DC2626; --bad-bg: #FDECEC;
  --info: #2563EB; --info-bg: #E8F0FE;
  --pink: #E8458B; --pink-bg: #FDE8F1;
  --teal: #0EA5A4; --teal-bg: #E2F7F6;
  --font: "Rubik", "Segoe UI", "Assistant", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 35, 57, .04), 0 4px 18px rgba(22, 35, 57, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--ink); text-wrap: balance; }
h1 { font-size: 1.55rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .86em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
bdi { unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.icon.lg { width: 22px; height: 22px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 258px 1fr; grid-template-areas: "nav main"; min-height: 100vh; } /* grid follows dir: nav on the right in he/ar, on the left in en/ru */
.nav { grid-area: nav; background: var(--white); border-inline-end: 1px solid var(--line); padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.nav .brand { display: flex; align-items: center; justify-content: center; padding: 4px 8px 10px; }
.nav .brand img { max-height: 46px; max-width: 190px; }
.nav .group { font-size: .74rem; color: var(--muted); padding: 10px 12px 2px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a.item { position: relative; display: flex; align-items: center; gap: 12px; color: var(--ink); padding: 9px 12px; border-radius: 10px; font-size: .93rem; }
.nav a.item .icon { color: var(--text); }
.nav a.item:hover { background: var(--primary-softer); color: var(--primary); }
.nav a.item:hover .icon, .nav a.item.active .icon { color: var(--primary); }
.nav a.item.active { color: var(--primary); font-weight: 600; font-size: 1.02rem; }
.nav a.item.active::after { content: ""; position: absolute; inset-inline-end: -16px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--primary); }
.nav .badge { margin-inline-start: auto; background: var(--primary-soft); color: var(--primary); font-size: .72rem; font-weight: 700; padding: 0 8px; border-radius: 999px; }
.nav .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.usercard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--page); border: 1px solid var(--line); color: var(--ink); }
.usercard .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.usercard .who { min-width: 0; line-height: 1.2; }
.usercard .who b { display: block; font-size: .9rem; }
.usercard .who span { font-size: .75rem; color: var(--muted); }
.nav .logout { display: flex; align-items: center; gap: 10px; background: none; border: 0; font: inherit; color: var(--text); padding: 6px 12px; cursor: pointer; }
.nav .logout:hover { color: var(--bad); }

.main { grid-area: main; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: transparent; }
.topbar .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; min-width: 260px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.iconbtn:hover { color: var(--primary); border-color: var(--primary-light); }
.iconbtn .dot { position: absolute; top: 6px; inset-inline-end: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.menu { position: relative; }
.menu > .panel { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 30; display: none; }
.menu.open > .panel { display: block; }
.menu .panel a, .menu .panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: start; }
.menu .panel a:hover, .menu .panel button:hover { background: var(--primary-softer); color: var(--primary); }
.menu .panel .danger { color: var(--bad); }
.menu .panel .danger:hover { background: var(--bad-bg); color: var(--bad); }
.menu .panel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.content { padding: 4px 32px 48px; display: flex; flex-direction: column; gap: 22px; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .hello { color: var(--muted); font-size: .9rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 22px; }
.g-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g-2-1, .g-2 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card > .body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.card.pad { padding: 20px 24px; gap: 14px; }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; align-items: center; gap: 14px; color: var(--ink); }
a.stat:hover { box-shadow: 0 6px 24px rgba(108, 56, 255, .12); color: var(--ink); }
.stat .sq { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.25rem; flex: none; }
.stat .txt { min-width: 0; }
.stat .txt b { display: block; font-size: 1rem; }
.stat .txt span { font-size: .78rem; color: var(--muted); }
.sq.c1 { background: #3B82F6; } .sq.c2 { background: var(--primary); } .sq.c3 { background: #10B981; } .sq.c4 { background: #7C3AED; } .sq.c5 { background: var(--pink); }
.sqi { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.sqi.green { background: var(--ok-bg); color: var(--ok); } .sqi.blue { background: var(--info-bg); color: var(--info); } .sqi.pink { background: var(--pink-bg); color: var(--pink); } .sqi.teal { background: var(--teal-bg); color: var(--teal); }

/* info strip (server / usage cards) */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 8px; }
.strip > div { display: flex; align-items: center; gap: 14px; padding: 4px 20px; }
.strip > div + div { border-inline-start: 1px solid var(--line); }
.strip .k { font-size: .78rem; color: var(--muted); }
.strip .v { font-weight: 600; }
.strip .v small { color: var(--muted); font-weight: 400; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
th { text-align: start; color: var(--muted); font-weight: 500; font-size: .8rem; padding: 12px 14px; background: var(--page); white-space: nowrap; }
th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rowcard { display: grid; align-items: center; gap: 14px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; }
.sortable { cursor: pointer; user-select: none; }
.sortable::before { content: "⇅ "; color: var(--line); }
.thumb { width: 64px; height: 48px; border-radius: 6px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--primary-softer), var(--field)); object-fit: cover; display: block; }

/* ---------- pills, badges, buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; background: var(--field); color: var(--text); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.brand { background: var(--primary-soft); color: var(--primary); }
.dotx { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dotx.ok { background: var(--ok); } .dotx.bad { background: var(--bad); } .dotx.warn { background: var(--warn); }
.btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 600; font-size: .88rem; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--primary-soft); color: var(--primary); cursor: pointer; white-space: nowrap; }
.btn:hover { background: #E6DCFF; color: var(--primary-dark); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); color: #fff; }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--primary-light); color: var(--primary); }
.btn.danger { background: var(--bad-bg); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.sm { padding: 5px 11px; font-size: .8rem; border-radius: 8px; }
.btn.icon-only { padding: 7px; width: 36px; height: 36px; justify-content: center; background: var(--page); color: var(--text); }
.btn.icon-only:hover { background: var(--primary-soft); color: var(--primary); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--ink); }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.form-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.errors { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.flash { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
/* toggle switch (a styled checkbox) */
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #CBD2DC; border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(-18px); }
[dir=ltr] .switch input:checked + span::before { transform: translateX(18px); }

/* ---------- tabs (pill style) ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 2px 0; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; color: var(--text); font-size: .88rem; font-weight: 500; }
.tabs a:hover { color: var(--primary); background: var(--primary-softer); }
.tabs a.active { background: var(--primary); color: #fff; }
.tabs a.active .icon { color: #fff; }
.tab-panel[hidden] { display: none !important; }

/* two-column tab body: settings (start) | actions (end) - like uPress */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > section { padding: 22px 26px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.split > section + section { border-inline-start: 1px solid var(--line); }
.split h2.col { color: var(--muted); font-weight: 500; font-size: .85rem; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } .split > section + section { border-inline-start: 0; border-top: 1px solid var(--line); } }
.setting { display: flex; gap: 14px; align-items: flex-start; }
.setting .t { min-width: 0; }
.setting .t b { display: block; font-size: .92rem; font-weight: 600; }
.setting .t p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.action { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.action b { font-size: .92rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.action p { font-size: .82rem; color: var(--muted); }
.action .row { margin-top: 4px; }

/* site header */
.site-head { display: flex; align-items: center; gap: 14px; }
.site-head .lockring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.site-head .lockring.off { background: var(--warn-bg); color: var(--warn); }
.site-head h1 { direction: ltr; unicode-bidi: isolate; }
.site-head .sub { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(90deg, var(--primary-softer), #EEF4FF); border: 1px solid #E3DAFF; border-radius: var(--radius); padding: 16px 22px; }
.banner b { color: var(--ink); }
.banner p { font-size: .85rem; color: var(--text); }

/* key/value */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.stats4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 18px; }
.mini { display: flex; gap: 10px; align-items: center; }
.mini .k { font-size: .76rem; color: var(--muted); }
.mini .v { font-weight: 600; font-size: .95rem; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip { display: grid; grid-template-columns: 60px 1fr; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); font-size: .85rem; }
.chip b { background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .78rem; }
.chip span { padding: 8px 12px; direction: ltr; text-align: start; }

/* operation tracker */
.op-track { border: 1px solid #E3DAFF; background: var(--primary-softer); border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
pre.result { flex-basis: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; font-size: .78rem; direction: ltr; text-align: left; max-height: 320px; white-space: pre-wrap; margin: 0; }

/* charts */
.chart { width: 100%; height: 120px; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart path.a { fill-opacity: .55; stroke-width: 1.4; }
.chart.c-disk path.a { fill: #FBD5DF; stroke: #E8458B; }
.chart.c-mem path.a { fill: #FCD9C4; stroke: #E06A3B; }
.chart.c-cpu path.a { fill: #CFE3FB; stroke: #3B82F6; }
.chart.c-load path.a { fill: #F9D0DC; stroke: #E8458B; }
.chart.c-brand path.a { fill: var(--primary-soft); stroke: var(--primary); }
.chart line.max { stroke: #F59AB5; stroke-width: 2; }
.donut { width: 220px; height: 220px; display: block; margin-inline: auto; }
.donut .bg { stroke: #DCF5E3; }
.donut .fg { stroke: #F6B8C5; }
.metric-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.metric-row:last-child { border-bottom: 0; }
.metric-row .k { font-size: .8rem; color: var(--muted); }
.metric-row .v { font-size: 1.05rem; font-weight: 600; }
.svc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.svc:last-child { border-bottom: 0; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); }
.auth-art { position: relative; overflow: hidden; background: linear-gradient(140deg, #1B0F4D 0%, #3B1E8F 40%, #0B3B8F 100%); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.auth-art .racks { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(130, 54, 251, .55), transparent 65%); top: -120px; inset-inline-end: -120px; animation: drift 14s ease-in-out infinite alternate; }
.auth-art .glow.b { background: radial-gradient(circle, rgba(7, 110, 244, .45), transparent 65%); top: auto; bottom: -160px; inset-inline-start: -100px; inset-inline-end: auto; animation-duration: 18s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.auth-art .claim { position: relative; z-index: 2; max-width: 460px; }
.auth-art .claim h2 { color: #fff; font-size: 1.9rem; font-weight: 700; }
.auth-art .claim p { color: rgba(255,255,255,.8); margin-top: 10px; }
.auth-art .claim .facts { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.auth-art .claim .facts span { font-size: .85rem; color: rgba(255,255,255,.85); display: flex; gap: 6px; align-items: center; }
.rack rect.body { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.18); }
.rack rect.unit { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.12); }
.rack circle.led { fill: #6EE7B7; animation: blink 2.4s infinite; }
.rack circle.led.b { fill: #A98BFF; animation-duration: 1.7s; animation-delay: .4s; }
.rack circle.led.c { fill: #60A5FA; animation-duration: 3.1s; animation-delay: .9s; }
.rack rect.bar { fill: rgba(169, 139, 255, .55); animation: load 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: left center; }
@keyframes blink { 0%, 60%, 100% { opacity: 1; } 70%, 90% { opacity: .15; } }
@keyframes load { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--white); }
.auth-form .box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.auth-form .box .logo { max-height: 56px; max-width: 220px; align-self: center; margin-bottom: 8px; }
.auth-form .box h1 { font-size: 1.35rem; text-align: center; }
.auth-form .box .lead { text-align: center; color: var(--muted); font-size: .9rem; margin-top: -8px; }
.auth-form .lang { display: flex; gap: 8px; justify-content: center; font-size: .82rem; }
.auth-form .lang a { color: var(--muted); }
.auth-form .lang a.on { color: var(--primary); font-weight: 600; }
.qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); width: max-content; margin-inline: auto; }
.qr svg { display: block; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 220px; padding: 28px; } .auth-art .claim h2 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-areas: "nav" "main"; }
  .nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border: 0; border-bottom: 1px solid var(--line); }
  .nav ul { flex-direction: row; flex-wrap: wrap; }
  .nav .group, .nav a.item.active::after { display: none; }
  .nav .foot { margin: 0; flex-direction: row; }
  .topbar, .content { padding-inline: 16px; }
  .search { min-width: 0; flex: 1; }
}

.logo-preview { max-height: 60px; max-width: 240px; }
.card.pad.auth-art { min-height: 0; padding: 20px; }
.card.pad > header { padding: 0 0 12px; }
.menu .panel a.active { color: var(--primary); font-weight: 600; }
.menu .panel button[disabled] { opacity: .6; cursor: default; }
.thumb[width] { width: 260px; height: 170px; }


/* notices and file lists (WordPress users, file-change report) */
.notice { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: var(--primary-soft); color: var(--text); font-size: .88rem; }
details { margin-top: 8px; }
details summary { cursor: pointer; list-style: none; }
ul.files { max-height: 260px; overflow: auto; margin: 6px 0 0; padding: 8px 12px; list-style: none; background: var(--field); border-radius: 8px; font-size: .8rem; }
ul.files li { padding: 2px 0; word-break: break-all; }
pre.logs { max-height: 480px; overflow: auto; white-space: pre; font-size: .74rem; line-height: 1.5; margin-top: 12px; direction: ltr; text-align: left; }
form.stack { display: grid; gap: 8px; margin-top: 10px; }
form.stack label { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
form.stack textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .76rem; }

/* file manager */
.crumbs { font-size: .9rem; font-weight: 600; }
.crumbs a { color: var(--primary); }
.fm-tools { flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
table.fm td.name a { color: var(--text); }
table.fm td.name a:hover { color: var(--primary); }
.fi { display: inline-block; width: 14px; height: 16px; margin-inline-end: 8px; vertical-align: -3px; border-radius: 2px; background: var(--muted); opacity: .35; }
.fi.dir { width: 16px; height: 13px; background: var(--primary); opacity: .8; border-radius: 2px 6px 2px 2px; }
.fi.link { background: var(--info); opacity: .6; }
.fm-actions { gap: 6px; flex-wrap: nowrap; }
.fm-rename input { width: 9rem; }
textarea.code { width: 100%; min-height: 60vh; font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: .8rem; line-height: 1.55; tab-size: 4; white-space: pre; overflow: auto; direction: ltr; text-align: left; }
.upload-progress { display: grid; gap: 8px; margin: 10px 0; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 10px; align-items: center; font-size: .84rem; }
.up-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-row progress { width: 100%; height: 8px; accent-color: var(--primary); }
.up-row .op-track { grid-column: 1 / -1; }
table.fm td.chk, table.fm th.chk { width: 32px; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin-bottom: 12px; font-size: .84rem; }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox code { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
/* traffic chart (site overview) */
.split-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.chart.c-traffic path.a.pv { fill: var(--primary-soft); stroke: var(--primary); }
.chart.c-traffic path.a.vis { fill: #C9E7FF; stroke: #076EF4; fill-opacity: .7; }
.chart-x { display: flex; justify-content: space-between; margin-top: 4px; }
.legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.legend .lg.pv { background: var(--primary); } .legend .lg.vis { background: #076EF4; }
/* WAF view */
.hbars { display: grid; gap: 6px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: .84rem; }
.hbar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .b { height: 8px; background: var(--field); border-radius: 6px; overflow: hidden; }
.hbar .b i { display: block; height: 100%; background: linear-gradient(90deg, #8236FB, #076EF4); border-radius: 6px; }
.hbar .n { text-align: end; font-variant-numeric: tabular-nums; }
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin: 14px 0; direction: ltr; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .66rem; color: var(--muted); }
.vbar i { display: block; width: 100%; max-width: 26px; background: var(--primary); border-radius: 4px 4px 0 0; opacity: .85; }
/* DNS */
.dns-add { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dns-content { max-width: 420px; word-break: break-all; }
details.dns-edit { position: relative; }
details.dns-edit summary { list-style: none; }
details.dns-edit[open] form { position: absolute; inset-inline-end: 0; top: 110%; z-index: 20; width: 340px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; }
/* monitor + notifications */
svg.spark { width: 140px; height: 28px; display: block; }
svg.spark path { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 3; vector-effect: non-scaling-stroke; }
.panel.notices { min-width: 320px; }
tr.unseen td { background: var(--primary-soft); }
/* mail */
.mail-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; align-items: stretch; }
.mail-modes .mode { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mail-modes .mode.on { border-color: var(--primary); background: var(--primary-soft); }
.mail-modes .mode input { display: none; }
.mail-modes button { align-self: center; justify-self: start; }
.mail-add { flex-wrap: wrap; gap: 8px; margin: 10px 0; }
td progress { width: 80px; height: 6px; vertical-align: middle; accent-color: var(--primary); }

/* support ticket conversation */
.conv { display: flex; flex-direction: column; gap: 12px; }
.conv .msg { background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; max-width: 92%; align-self: flex-start; }
.conv .msg.out { align-self: flex-end; background: var(--primary-softer); }
.conv .msg.note { background: var(--warn-bg); }
.conv .msg .txt { margin-top: 6px; white-space: normal; overflow-wrap: anywhere; }
.conv form { margin-top: 8px; }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary h2 { margin: 0; }
details.card[open] > summary { margin-bottom: 12px; }
.conv form.stack textarea { font-family: inherit; font-size: .9rem; }
.bar { height: 8px; background: var(--field); border-radius: 99px; overflow: hidden; min-width: 160px; flex: 1; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.bar > i.warn { background: var(--warn); }
.bar > i.bad { background: var(--bad); }
details.dns-edit[open] form.plan-form { width: min(680px, 92vw); max-height: 75vh; overflow: auto; }
.plan-form h3 { margin: 10px 0 2px; font-size: .9rem; }
.mode-card.dev { border-inline-start: 4px solid var(--warn); }
.mode-card .split-head { align-items: center; gap: 16px; flex-wrap: wrap; }
.impersonating { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 24px; background: var(--warn-bg); color: var(--warn); font-weight: 600; border-bottom: 1px solid var(--line); }
.plib { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.plib-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.plib-item img { border-radius: 10px; flex: none; background: var(--field); }
.plib-txt { flex: 1; min-width: 0; }
.plib-txt p { margin: 4px 0; }
.mt { margin-top: 10px; }
.w-90 { width: 90px; }
.w-120 { width: 120px; }
.grow { flex: 1; min-width: 220px; }
form.inline { display: inline; }
.tiny { font-size: .72rem; }
.gauges { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; }
.gauge .pill { font-size: 1.05rem; padding: 6px 12px; }

/* ---------- AI site builder ---------- */
.bld-intro { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem 1.75rem; background: linear-gradient(120deg, var(--primary-softer), #fff 60%); }
.bld-intro h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.bld-intro-art { position: relative; flex: none; width: 92px; height: 72px; }
.bld-intro-art span { position: absolute; width: 56px; height: 42px; border-radius: 8px; border: 2px solid #fff; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }
.bld-intro-art span:nth-child(1) { inset-inline-start: 0; top: 18px; opacity: .55; transform: rotate(-8deg); }
.bld-intro-art span:nth-child(2) { inset-inline-start: 18px; top: 4px; background: linear-gradient(135deg, var(--pink), #f5a524); opacity: .8; }
.bld-intro-art span:nth-child(3) { inset-inline-start: 36px; top: 24px; background: linear-gradient(135deg, var(--teal), var(--grad-b)); transform: rotate(7deg); }
.bld-intro-art.sm { transform: scale(.75); margin-inline-end: -.75rem; }
.bld-entry { display: flex; align-items: center; gap: 1rem; grid-column: 1 / -1; background: linear-gradient(120deg, var(--primary-softer), #fff 70%); }
.bld-entry h2 { margin-bottom: .2rem; }
.bld-steps { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 1rem; }
.bld-steps li { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; cursor: pointer; }
.bld-steps li span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--field); font-weight: 700; font-size: .8rem; }
.bld-steps li.on { border-color: var(--primary); color: var(--ink); font-weight: 600; }
.bld-steps li.on span { background: var(--primary); color: #fff; }
.bld-steps li.done span { background: var(--ok-bg); color: var(--ok); }
.bld-form fieldset { border: 0; margin: 0; min-width: 0; }
.bld-form legend { float: inline-start; width: 100%; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; padding: 0; }
.bld-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; }
.bld-form h3 { font-size: .98rem; margin-bottom: .6rem; clear: both; }
.bld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; clear: both; }
.bld-grid .wide { grid-column: 1 / -1; }
.bld-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin-bottom: 1.25rem; clear: both; }
.bld-kind { position: relative; }
.bld-kind input, .bld-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bld-kind span { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s; }
.bld-kind span .icon { width: 26px; height: 26px; color: var(--primary); }
.bld-kind span small { color: var(--muted); font-weight: 400; }
.bld-kind input:checked + span { border-color: var(--primary); background: var(--primary-softer); }
.bld-kind input:focus-visible + span, .bld-chip input:focus-visible + span { outline: 3px solid var(--primary-light); outline-offset: 2px; }
.bld-chips { display: flex; flex-wrap: wrap; gap: .5rem; clear: both; }
.bld-form .bld-chip { position: relative; display: inline-flex; flex-direction: row; }
.bld-chip span { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 500; transition: all .15s; }
.bld-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.bld-colors { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.bld-swatches { display: inline-flex; gap: .4rem; transition: opacity .2s; }
.bld-swatches.off { opacity: .35; }
.bld-swatches input { width: 46px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.bld-products { margin: .5rem 0 1rem; padding: 1rem; border-radius: var(--radius); background: var(--field); clear: both; }
.bld-prod-rows { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.bld-prod { display: grid; grid-template-columns: 1.2fr 120px 2fr; gap: .5rem; }
.bld-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bld-drop { position: relative; }
.bld-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bld-drop span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.4rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s; }
.bld-drop:hover span { border-color: var(--primary-light); }
.bld-drop span .icon { width: 28px; height: 28px; color: var(--primary); }
.bld-drop small { color: var(--muted); font-weight: 400; }
.bld-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; margin-top: 1rem; }
.bld-thumbs figure { margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.bld-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--field); }
.bld-thumbs input { font-size: .82rem; padding: .35rem .5rem; }
.bld-thumbs figcaption { font-size: .82rem; color: var(--muted); text-align: center; }
.bld-insp { display: grid; gap: .5rem; clear: both; }
.bld-nav { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; position: sticky; bottom: 0; padding: .9rem 0; background: linear-gradient(to top, var(--page) 70%, transparent); }
/* waiting */
.bld-wait { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.5rem 1.5rem; }
.bld-orbit { position: relative; width: 84px; height: 84px; margin-bottom: .5rem; }
.bld-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--primary); animation: spin 1.4s linear infinite; }
.bld-orbit i:nth-child(2) { inset: 12px; border-top-color: var(--pink); animation-duration: 1.9s; animation-direction: reverse; }
.bld-orbit i:nth-child(3) { inset: 24px; border-top-color: var(--teal); animation-duration: 1.1s; }
.bld-stages { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .45rem; text-align: start; }
.bld-stages li { padding-inline-start: 1.8rem; position: relative; color: var(--muted); }
.bld-stages li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.bld-stages li.on { color: var(--ink); font-weight: 600; }
.bld-stages li.on::before { border-color: var(--primary); border-top-color: transparent; animation: spin 1s linear infinite; }
.bld-stages li.done { color: var(--ok); }
.bld-stages li.done::before { background: var(--ok); border-color: var(--ok); }
.bld-bars { width: min(520px, 100%); display: flex; flex-direction: column; gap: .6rem; }
.bld-bar { display: grid; grid-template-columns: 180px 1fr; gap: .75rem; align-items: center; text-align: start; font-size: .9rem; }
.bld-bar .bar > i, .bld-shot-wait .bar > i { transition: width .8s ease; }
/* proposals */
.bld-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.bld-card { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.bld-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(22, 35, 57, .12); }
.bld-shot { position: relative; aspect-ratio: 16 / 10; background: var(--field); overflow: hidden; }
.bld-shot > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bld-shot-m { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 22%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 10px; border: 3px solid #111; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); background: #fff; }
.bld-shot-open { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; border: 0; background: transparent; color: transparent; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.bld-shot-open:hover, .bld-shot-open:focus-visible { background: rgba(22, 35, 57, .45); color: #fff; }
.bld-shot-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: var(--muted); }
.bld-shot-wait .bar { width: 60%; }
.bld-card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.bld-actions { margin-top: auto; padding-top: .5rem; flex-wrap: wrap; }
.bld-live { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; padding: 1.25rem; }
.bld-live-img img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); display: block; }
.bld-live-txt { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.bld-again summary { font-weight: 600; cursor: pointer; }
/* dialogs */
dialog.bld-dialog { border: 0; border-radius: 18px; padding: 1.5rem; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog.bld-dialog::backdrop, dialog.bld-preview::backdrop { background: rgba(15, 22, 40, .55); backdrop-filter: blur(3px); }
dialog.bld-dialog textarea { width: 100%; }
.bld-agree { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem; border-radius: 12px; background: var(--primary-softer); font-weight: 500; }
.bld-agree input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--primary); }
.bld-price { font-weight: 700; font-size: 1.05rem; }
dialog.bld-preview { border: 0; padding: 0; width: min(1440px, calc(100vw - 24px)); height: calc(100vh - 24px); max-height: none; max-width: none; border-radius: 16px; overflow: hidden; flex-direction: column; background: #e9ecf3; }
dialog.bld-preview[open] { display: flex; }
.bld-pv-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bld-pv-pages { display: flex; flex-wrap: wrap; gap: .35rem; }
.bld-pv-frame { flex: 1; display: flex; justify-content: center; overflow: hidden; }
.bld-pv-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .3s; }
dialog.bld-preview.mobile .bld-pv-frame { padding: 1rem 0; }
dialog.bld-preview.mobile .bld-pv-frame iframe { width: 390px; border-radius: 22px; box-shadow: 0 0 0 10px #111, 0 20px 60px rgba(0, 0, 0, .35); }
@media (max-width: 900px) {
  .bld-grid, .bld-uploads, .bld-kinds, .bld-live { grid-template-columns: 1fr; }
  .bld-prod { grid-template-columns: 1fr 100px; }
  .bld-prod input:last-child { grid-column: 1 / -1; }
  .bld-intro { flex-direction: column; align-items: flex-start; }
  .bld-bar { grid-template-columns: 1fr; }
}

/* ---------- site check-up ---------- */
.health-card { grid-column: 1 / -1; }
.chip.hl-critical b { color: var(--bad); } .chip.hl-warning b { color: var(--warn); } .chip.hl-info b { color: var(--ok); }
.hl-list { list-style: none; padding: 0; margin: 1rem 0 .5rem; display: flex; flex-direction: column; gap: .6rem; }
.hl-item { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); border-inline-start-width: 5px; background: var(--white); }
.hl-item.hl-critical { border-inline-start-color: var(--bad); background: linear-gradient(90deg, var(--bad-bg), #fff 40%); }
.hl-item.hl-warning { border-inline-start-color: #e0a800; background: linear-gradient(90deg, var(--warn-bg), #fff 40%); }
.hl-item.hl-info { border-inline-start-color: var(--ok); background: linear-gradient(90deg, var(--ok-bg), #fff 40%); }
[dir=rtl] .hl-item.hl-critical { background: linear-gradient(270deg, var(--bad-bg), #fff 40%); }
[dir=rtl] .hl-item.hl-warning { background: linear-gradient(270deg, var(--warn-bg), #fff 40%); }
[dir=rtl] .hl-item.hl-info { background: linear-gradient(270deg, var(--ok-bg), #fff 40%); }
.hl-check { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--primary); }
.hl-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.hl-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hl-advice { color: var(--primary-dark); }
.hl-advice::before { content: "\2192\00a0"; }
[dir=rtl] .hl-advice::before { content: "\2190\00a0"; }
@media (max-width: 700px) { .hl-item { grid-template-columns: auto 1fr; } .hl-item > .btn { grid-column: 2; justify-self: start; } }

/* ---------- sites list ---------- */
.sl { padding: 0; }
.sl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.sl-bulk { padding-block: .6rem; background: var(--primary-softer); }
.sl-search { display: flex; align-items: center; gap: .4rem; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--field); min-width: 230px; }
.sl-search input { border: 0; background: none; padding: .55rem 0; min-width: 0; flex: 1; }
.sl-search input:focus { box-shadow: none; }
.sl-chips, .sl-filters, .sl-view { display: flex; flex-wrap: wrap; gap: .4rem; }
.sl .chip { cursor: pointer; border: 1px solid var(--line); background: var(--white); font: inherit; display: inline-flex; align-items: center; gap: .35rem; }
.sl .chip.on { border-color: var(--primary); background: var(--primary-soft); }
.sl .chip .icon { width: 15px; height: 15px; }
.sl-view .btn.on { background: var(--primary-soft); color: var(--primary); }
.fdot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.ftag { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; color: #fff; margin-inline-start: .3rem; }
.sl-cb { width: 34px; }
.sl-site .thumb { flex: none; }
.sl-name { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.sl-state { gap: .4rem; flex-wrap: nowrap; }
.sl-folders { position: relative; }
.sl-folders > summary { list-style: none; cursor: pointer; }
.sl-folders > summary::-webkit-details-marker { display: none; }
.sl-folders-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; width: min(520px, 90vw); padding: .9rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; }
.sl-folder-row input[type=text] { flex: 1; }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; padding: 1rem; }
.sl-grid[hidden], .sl-list[hidden] { display: none; }
.sl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.sl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.sl-card[hidden] { display: none; }
.sl-shot { aspect-ratio: 16 / 10; background: var(--field); overflow: hidden; }
.sl-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sl-card-body { padding: .8rem .9rem; display: flex; flex-direction: column; gap: .4rem; }
.sl-empty { padding: 1rem; }
.fdot.fc-0, .ftag.fc-0 { background: #6C38FF; }
.fdot.fc-1, .ftag.fc-1 { background: #076EF4; }
.fdot.fc-2, .ftag.fc-2 { background: #0EA5A4; }
.fdot.fc-3, .ftag.fc-3 { background: #16A34A; }
.fdot.fc-4, .ftag.fc-4 { background: #C27803; }
.fdot.fc-5, .ftag.fc-5 { background: #E8458B; }
.fdot.fc-6, .ftag.fc-6 { background: #DC2626; }
.fdot.fc-7, .ftag.fc-7 { background: #5C6672; }

/* ---------- sign-in (login, 2FA, setup, recovery): calm full-screen background + centered card ---------- */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: #160a3a url(/brand/login-bg.svg) center / cover no-repeat; }
.signin-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 36px 32px 24px; background: rgba(255, 255, 255, .97);
  border-radius: 20px; box-shadow: 0 30px 80px rgba(8, 3, 30, .45), 0 0 0 1px rgba(255, 255, 255, .5); }
.signin-card .logo { max-height: 56px; max-width: 220px; align-self: center; margin-bottom: 6px; }
.signin-card h1 { font-size: 1.35rem; text-align: center; }
.signin-card .lead { text-align: center; color: var(--muted); font-size: .9rem; margin-top: -8px; }
.signin-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; }
.signin-secure { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.signin-secure .icon { width: 15px; height: 15px; }
.signin .lang { display: flex; gap: 8px; }
.signin .lang a { color: var(--muted); }
.signin .lang a.on { color: var(--primary); font-weight: 600; }
.auth-art.auth-art-still { padding: 0; background: #140734 url(/brand/login-art.svg) center / cover no-repeat; }
.auth-form .signin-foot { width: 100%; }
.bld-qr { display: flex; gap: 1rem; align-items: center; margin-top: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.bld-qr img { flex: none; border-radius: 8px; background: #fff; }

/* ---------- short links ---------- */
.lk-new { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; padding: .8rem; border-radius: 12px; background: var(--primary-softer); }
.lk-new input[type=url] { min-width: 260px; }
.lk-code { display: inline-flex; align-items: center; gap: .2rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding-inline-start: .6rem; }
.lk-code input { border: 0; width: 120px; }
.lk-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.lk { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.lk.off { opacity: .6; }
.lk-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.lk-url { font-weight: 700; }
.lk-target { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-bars { display: flex; align-items: flex-end; gap: 2px; height: 34px; width: 150px; }
.lk-bars i { flex: 1; min-height: 2px; background: var(--primary-light); border-radius: 2px 2px 0 0; }
.lk-acts { display: flex; gap: .3rem; }
@media (max-width: 800px) { .lk { grid-template-columns: 1fr; } }
