/* IT.JO brand: navy ground, blue → violet accent, Manrope (Latin) + Tajawal (Arabic), self-hosted. */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-800.woff2) format("woff2"); }
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url(fonts/tajawal-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url(fonts/tajawal-arabic-500.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url(fonts/tajawal-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* =========================================================================
   IT.JO Disaster Recovery console: theme v2 (2026-12-01)
   Navy sidebar, light workspace, IT.JO blue→violet accents. EN (Manrope) / AR (Tajawal), RTL-aware.
   ========================================================================= */
:root {
  --navy: #050e21;
  --navy-2: #0a1838;
  --brand: #1554fa;
  --brand-2: #6963fc;
  --brand-grad: linear-gradient(120deg, #1554fa 0%, #6963fc 100%);
  --brand-soft: #edf2ff;
  --brand-line: #cdd9ff;
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #0b1224;
  --ink-2: #303a52;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e4e8f1;
  --line-2: #eef1f6;
  --ok: #0f8a4a;
  --ok-soft: #e6f6ed;
  --amber: #a85f00;
  --amber-soft: #fff3df;
  --red: #c8352e;
  --red-soft: #fdebea;
  --blue: #1554fa;
  --blue-soft: #edf2ff;
  --grey-soft: #f0f2f7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-up: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .08);
  --side-w: 256px;
  --font: "Manrope", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
[dir="rtl"] { --font: "Tajawal", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[dir="rtl"] body { font-size: 15.5px; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; font-weight: 700; }
h1 { font-size: 26px; }
h2 { font-size: 16.5px; }
h3 { font-size: 14.5px; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
bdi { white-space: nowrap; }
[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.ico { flex: none; display: block; }
[dir="rtl"] .side-out .ico, [dir="rtl"] .back .arrow { transform: scaleX(-1); }
::selection { background: rgba(21, 84, 250, .18); }
:focus-visible { outline: 3px solid rgba(21, 84, 250, .35); outline-offset: 2px; }

/* ---------- shell: sidebar + workspace ---------- */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w); z-index: 30;
  display: flex; flex-direction: column; padding: 20px 14px 16px; color: #c8d2ee;
  background: radial-gradient(420px 320px at 0% 0%, rgba(21, 84, 250, .22), transparent 70%), linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 55%);
  border-inline-end: 1px solid rgba(255, 255, 255, .06);
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 0; }
.side-brand img { height: 30px; display: block; }
.side-product { display: flex; align-items: center; gap: 8px; margin: 14px 8px 22px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); color: #e4ebff; font-weight: 700; font-size: 13px; }
.side-product .ico { color: #8fb0ff; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b4c0e0; text-decoration: none; font-weight: 600; position: relative; }
.nav a .ico { color: #7f8db5; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a:hover .ico { color: #c8d4ff; }
.nav a.active { background: linear-gradient(90deg, rgba(21, 84, 250, .32), rgba(105, 99, 252, .18)); color: #fff; }
[dir="rtl"] .nav a.active { background: linear-gradient(270deg, rgba(21, 84, 250, .32), rgba(105, 99, 252, .18)); }
.nav a.active .ico { color: #fff; }
.nav a.active::before { content: ""; position: absolute; inset-block: 9px; inset-inline-start: -14px; width: 3px; border-radius: 0 3px 3px 0; background: #6f8dff; }
[dir="rtl"] .nav a.active::before { border-radius: 3px 0 0 3px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; color: #fff; min-width: 0; }
.who:hover, .who.active { background: rgba(255, 255, 255, .07); }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--brand-grad); color: #fff; font-weight: 800; font-size: 14px; }
.who-txt { display: grid; min-width: 0; line-height: 1.3; }
.who-txt b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-txt small { color: #8d9abf; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.side-out { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #a9b5d8; font-weight: 600; font-size: 13px; padding: 7px 10px; border-radius: 9px; }
.side-out:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--grey-soft); gap: 2px; }
.lang button { border: 0; background: transparent; padding: 4px 11px; border-radius: 7px; font-weight: 700; font-size: 13px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.side .lang { background: rgba(255, 255, 255, .07); }
.side .lang button { color: #a9b5d8; }
.side .lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.side-close { display: none; }
.scrim { display: none; }
.main { margin-inline-start: var(--side-w); min-width: 0; }
.mbar { display: none; }

/* ---------- page ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 32px 40px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head > div { min-width: 0; max-width: 760px; }
.page-head p { margin-top: 6px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; margin-bottom: 14px; }
.back:hover { color: var(--brand); }
.back .arrow { display: inline-block; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: 22px 24px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.section-title h2 { flex: none; }
.section-title .hint { color: var(--muted); font-size: 12.5px; min-width: 0; }
.gap-top { margin-top: 16px; }
.updated { color: var(--faint); font-size: 12px; margin-top: 18px; }
.skeleton { color: var(--muted); padding: 80px 0; text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px; border: 0; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; color: #fff; background: var(--brand-grad);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1), inset 0 1px 0 rgba(255, 255, 255, .18); transition: filter .15s, box-shadow .15s, background .15s; }
.btn:hover { filter: brightness(1.07); box-shadow: 0 6px 16px rgba(21, 84, 250, .25), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn:active { filter: brightness(.97); }
.btn:disabled { opacity: .5; cursor: default; filter: none; box-shadow: none; }
.btn.secondary { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, .04); }
.btn.secondary:hover { background: #f7f9fc; box-shadow: inset 0 0 0 1px #d5dbe7, 0 1px 2px rgba(16, 24, 40, .04); filter: none; }
.btn.danger { background: var(--red); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.btn.danger:hover { box-shadow: 0 6px 16px rgba(200, 53, 46, .25); }
.btn.secondary.danger-text { color: var(--red); }
.btn.secondary.danger-text:hover { background: var(--red-soft); box-shadow: inset 0 0 0 1px #f3c5c2; }
.btn .plus { font-size: 18px; line-height: 1; }
.text-btn { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 6px 8px; border-radius: 8px; }
.text-btn:hover { background: var(--brand-soft); }
.link-btn { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.link-btn:hover { background: var(--brand-soft); }
.link-btn.danger-text, .when-sub.danger-text { color: var(--red); }
.link-btn.danger-text:hover { background: var(--red-soft); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-btns .spacer { flex: 1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { position: relative; padding: 18px 20px 18px; display: grid; gap: 2px; }
.kpi-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.kpi.is-bad .kpi-ico { background: var(--red-soft); color: var(--red); }
.sts-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; max-width: 1000px; }
.sts-opt { padding: 18px; }
.sc-card { border-inline-start: 4px solid var(--brand); }
.sc-opts { display: grid; gap: 8px; }
.sc-opt { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; }
.sc-opt input { margin-top: 3px; }
.sc-itjo { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line, #e5e7eb); }
.sc-itjo p { margin: 4px 0 10px; }
.sts-opt h3 { margin: 0 0 6px; font-size: 1rem; }
.sts-opt p { margin: 0; font-size: .9rem; line-height: 1.55; }
@media (max-width: 760px) { .sts-opts { grid-template-columns: 1fr; } }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.kpi .value.good { color: var(--ok); }
.kpi .value.bad { color: var(--red); }
.kpi .value.warn { color: var(--amber); }
.kpi .sub { color: var(--faint); font-size: 12.5px; }
.bar { height: 6px; background: var(--grey-soft); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--brand-grad); border-radius: 99px; min-width: 6px; }

/* ---------- toolbar, chips, inputs ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; flex-wrap: wrap; }
.chips { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.chip { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 6px 13px; font-weight: 700; font-size: 13px; }
.chip:hover { color: var(--ink); background: var(--grey-soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11.5px; margin-inline-start: 4px; }
input[type="text"], input[type="password"], input[type="search"], input[type="email"], input[type="url"], input[type="number"], select, textarea {
  font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; border: 1px solid #d9dfea; border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 42px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--faint); }
input:hover, select:hover { border-color: #c5cde0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(21, 84, 250, .13); }
input:disabled, select:disabled { background: var(--grey-soft); color: var(--muted); }
.toolbar select, .toolbar input[type="search"] { width: auto; min-width: 200px; min-height: 38px; padding: 7px 12px; }
.toolbar input[type="search"] { padding-inline-start: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center; }
[dir="rtl"] .toolbar input[type="search"] { background-position: calc(100% - 11px) center; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.field .help, .help { color: var(--muted); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.form-grid .span2 { grid-column: 1 / -1; }
.unit { display: flex; align-items: center; gap: 10px; }
.unit input, .unit select { max-width: 130px; }
.unit span { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
fieldset.radios { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
fieldset.radios legend { margin-bottom: 8px; padding: 0; }
fieldset.radios .check { margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; }
fieldset.radios .check:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); }
fieldset.radios .check:has(input:disabled) { opacity: .55; }
/* DR settings: the Hyper-V host, switch and drive of a DR server on the customer's Hyper-V */
.hv-sub { padding: 14px; border: 1px solid var(--brand-line); border-radius: var(--radius-sm); background: #fafbff; margin: -6px 0 14px; }
.hv-sub .help { margin: 0; }
.warn-text { color: var(--amber); }
.form-error { color: var(--red); background: var(--red-soft); border-radius: 10px; padding: 9px 12px; font-weight: 600; margin: 0 0 14px; font-size: 13.5px; }
.seg { display: inline-flex; background: var(--grey-soft); border-radius: 12px; padding: 4px; gap: 4px; }
.field .seg { justify-self: start; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- pills, dots, tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.sync { background: var(--blue-soft); color: var(--blue); }
.pill.sync::before { animation: pulse 1.2s infinite; }
.pill.wait { background: var(--grey-soft); color: var(--muted); }
@keyframes pulse { 50% { opacity: .25; } }
.dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.dot.on { color: var(--ok); }
.dot.on::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off { color: var(--red); }
.dot.off::before { background: var(--red); }
.ok-dot, .bad-dot, .stop-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ok-dot { color: var(--ok); }
.bad-dot { color: var(--red); }
.stop-dot { color: var(--muted); }
.ok-dot::before, .bad-dot::before, .stop-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); margin-inline-start: 6px; vertical-align: 1px; }
.tag.warn { background: var(--amber-soft); color: var(--amber); }

/* ---------- alerts & notes ---------- */
.alert { border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: 13.5px; border: 1px solid transparent; }
.alert b { display: block; margin-bottom: 2px; }
.alert.bad { background: var(--red-soft); color: #962620; border-color: #f6cfcc; }
.alert.info { background: var(--blue-soft); color: #1440b8; border-color: var(--brand-line); }
.alert.warn { background: var(--amber-soft); color: #7a4600; border-color: #f6dfb6; }
.note { background: var(--amber-soft); color: #6e4300; border: 1px solid #f6dfb6; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }
ul.plain { margin: 0; padding-inline-start: 18px; color: var(--muted); }
ul.plain li { margin: 4px 0; }

/* ---------- server cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.grid > *, .kpis > *, .cols > *, .step > div { min-width: 0; }
.srv { display: flex; flex-direction: column; text-decoration: none; padding: 18px 20px; transition: box-shadow .15s, border-color .15s, transform .15s; }
.srv:hover { border-color: #cfd8ee; box-shadow: var(--shadow-up); transform: translateY(-1px); }
.srv-head { display: flex; align-items: center; gap: 12px; }
.srv-head .titles { min-width: 0; flex: 1; }
.os { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--grey-soft); color: var(--ink-2); }
.os.win { background: #e8f0ff; color: #1554fa; }
.os.linux { background: #efedff; color: #5a4fe0; }
.srv-name { font-weight: 800; font-size: 16.5px; overflow-wrap: anywhere; }
.srv-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .srv-sub { text-align: right; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.fact .k { color: var(--faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
[dir="rtl"] .fact .k { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.fact .v { font-weight: 700; color: var(--ink); }
.err-line { margin-top: 14px; font-size: 12.5px; color: #962620; background: var(--red-soft); border-radius: 9px; padding: 8px 10px; overflow-wrap: anywhere; }
.sync-line { margin-top: 14px; font-size: 12.5px; color: var(--blue); font-weight: 600; }
.stop-line { margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.dr-line { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--brand-grad); border-radius: 9px; padding: 7px 10px; }
.dr-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.dr-line.muted-dr { background: var(--grey-soft); color: var(--muted); }
.dr-line.muted-dr::before { background: var(--faint); animation: none; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h2 { margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- running DR banner (overview) ---------- */
.dr-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(100deg, #0b1a44 0%, #14286b 55%, #2a2a8a 100%); color: #fff; box-shadow: 0 6px 20px rgba(10, 24, 56, .18); }
.dr-banner b { font-weight: 700; }
.dr-banner a { font-weight: 700; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 3px 12px; }
.dr-banner a:hover { background: rgba(255, 255, 255, .24); }
.beacon { width: 10px; height: 10px; border-radius: 50%; background: #7fa2ff; flex: none; animation: beacon 1.8s infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(127, 162, 255, .6); } 70% { box-shadow: 0 0 0 10px rgba(127, 162, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 162, 255, 0); } }

/* ---------- server detail ---------- */
.detail-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-head .os { width: 54px; height: 54px; border-radius: 15px; }
.detail-head .os .ico, .detail-head .os svg { width: 24px; height: 24px; }
.detail-head .titles { min-width: 0; flex: 1; }
.detail-head h1 { font-size: 26px; overflow-wrap: anywhere; }
.detail-head .srv-sub { white-space: normal; overflow-wrap: anywhere; font-size: 13.5px; margin-top: 2px; }
.detail-head .pill { font-size: 13px; padding: 4px 12px; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; margin-top: 16px; align-items: start; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel { margin-top: 16px; border-color: var(--brand-line); box-shadow: var(--shadow-up); }
.panel h2 { margin-bottom: 8px; }
.panel p { margin-bottom: 12px; color: var(--ink-2); }
.danger-panel { border-color: #f3c5c2; background: #fffbfb; }

/* DR card: the most important block of the page */
.dr-card { margin-top: 16px; position: relative; overflow: hidden; }
.dr-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--brand-grad); }
.dr-card p { margin: 0 0 12px; }
.dr-live { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dr-live .pill.ok { background: var(--brand-grad); color: #fff; padding: 5px 12px; }
.dr-live .pill.ok::before { background: #fff; animation: pulse 1.6s infinite; }
.drv-box { background: var(--grey-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.dr-steps-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.dr-steps-wrap h3 { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
[dir="rtl"] .dr-steps-wrap h3 { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.dr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.dr-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); counter-increment: step; line-height: 1.5; position: relative; padding-bottom: 14px; }
.dr-steps li:last-child { padding-bottom: 0; }
.dr-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); border-radius: 2px; }
.dr-steps li.done:not(:last-child)::after { background: #bfe5cf; }
.dr-steps .step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: #fff; color: var(--faint); box-shadow: inset 0 0 0 2px var(--line); position: relative; z-index: 1; }
.dr-steps .step-n::before { content: counter(step); }
.dr-steps li.done { color: var(--ink-2); }
.dr-steps li.done .step-n { background: var(--ok); color: #fff; box-shadow: none; }
.dr-steps li.done .step-n::before { content: "✓"; }
.dr-steps li.now { color: var(--ink); font-weight: 700; }
.dr-steps li.now .step-n { background: var(--brand-grad); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.dr-steps li.bad .step-n { background: var(--red); color: #fff; box-shadow: none; }
.dr-steps li.bad .step-n::before { content: "!"; }
.dr-steps .soon { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--amber-soft); color: var(--amber); vertical-align: 1px; }
.dr-steps.info li { color: var(--ink-2); }
.dr-steps.info .step-n { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.dr-steps.info li:not(:last-child)::after { background: var(--brand-line); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: start; color: var(--faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
[dir="rtl"] th { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th:first-child, td:first-child { padding-inline-start: 0; }
th:last-child, td:last-child { padding-inline-end: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #fafbfe; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: end; }
.when { font-weight: 700; color: var(--ink); }
td .when { white-space: nowrap; }
.when-sub { color: var(--faint); font-size: 12px; }
.row-warn td { background: #fffaf2; }
.detail-cell { max-width: 420px; overflow-wrap: anywhere; color: var(--muted); }
.err-sub { color: var(--red); max-width: 280px; overflow-wrap: anywhere; }

/* ---------- install steps, code ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 15px; margin: 6px 0 8px; }
.step p { margin: 0 0 10px; color: var(--muted); }
pre.code { direction: ltr; text-align: left; background: var(--navy); color: #dbe4ff; border-radius: 12px; padding: 16px 18px; font: 12.5px/1.65 var(--mono); overflow-x: auto; margin: 0; white-space: pre; border: 1px solid #13224a; }
pre.code.big { font-size: 22px; letter-spacing: .08em; text-align: center; padding: 22px; }
.code-box { position: relative; }
.code-box .copy { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 700; }
.code-box .copy:hover { background: rgba(255, 255, 255, .22); }
code.secret { display: inline-block; margin-top: 6px; font: 14px/1.4 var(--mono); background: var(--grey-soft); padding: 8px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.tfa-setup { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.tfa-setup img { border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; background: #fff; }

/* add server: form beside "how it works" */
.add-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.add-aside { background: linear-gradient(180deg, #fbfcff, #fff); }
.add-aside h3 { margin: 0 0 14px; font-size: 15px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.login-form-side { display: grid; place-items: center; padding: 40px 28px; }
.login { width: 100%; max-width: 380px; }
.login .logo-dark { height: 38px; margin-bottom: 34px; display: block; }
.login h1 { font-size: 28px; margin-bottom: 6px; }
.login p { color: var(--muted); margin: 0 0 26px; }
.login .btn { width: 100%; min-height: 46px; margin-top: 4px; }
.login .field input { min-height: 46px; }
.login-foot { display: flex; justify-content: center; margin-top: 22px; }
.login-brand { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 64px 9%;
  background: radial-gradient(900px 600px at 20% 30%, rgba(21, 84, 250, .35), transparent 65%), radial-gradient(700px 500px at 90% 90%, rgba(105, 99, 252, .3), transparent 60%), var(--navy); }
.login-brand::before { content: ""; position: absolute; width: 110%; aspect-ratio: 1; border: 1.5px solid rgba(80, 130, 255, .35); border-radius: 50%; inset-inline-start: -6%; top: 8%; pointer-events: none; }
.login-brand::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.login-brand > * { position: relative; z-index: 1; }
.login-brand img { height: 64px; align-self: flex-start; margin-bottom: 40px; }
.login-brand .tagline { font-size: 34px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; max-width: 520px; }
.login-brand .services { color: #c3cff0; font-size: 17px; margin-top: 10px; }
.login-brand .services i { font-style: normal; color: #6f8dff; margin: 0 8px; }
.login-brand .portal { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 52px; font-size: 15px; font-weight: 700; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.login-brand .portal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7fa2ff; box-shadow: 0 0 0 4px rgba(127, 162, 255, .2); }
[dir="rtl"] .login-brand .tagline { letter-spacing: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(11, 18, 36, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .page { padding: 28px 28px 64px; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  /* sidebar becomes a drawer */
  .main { margin-inline-start: 0; }
  .side { transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  [dir="rtl"] .side { transform: translateX(100%); }
  body.menu-open .side { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .side-close { display: inline-grid; }
  .scrim { position: fixed; inset: 0; background: rgba(5, 14, 33, .45); z-index: 25; }
  body.menu-open .scrim { display: block; }
  .mbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20; padding: 10px 12px; background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
  .mbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #dfe6ff; font-weight: 700; font-size: 14px; }
  .mbar-brand img { height: 24px; display: block; }
  .mbar-brand span { padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, .2); }
  .cols, .cols.even, .add-layout { grid-template-columns: minmax(0, 1fr); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { order: -1; padding: 28px 24px; }
  .login-brand::before, .login-brand::after { display: none; }
  .login-brand img { height: 40px; margin-bottom: 14px; }
  .login-brand .tagline { font-size: 21px; }
  .login-brand .services { font-size: 13.5px; }
  .login-brand .portal { margin-top: 16px; font-size: 13px; }
  .login .logo-dark { display: none; }
}
@media (max-width: 600px) {
  .page { padding: 20px 14px 56px; }
  h1, .detail-head h1 { font-size: 22px; }
  .section { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .kpis { gap: 10px; margin-bottom: 20px; }
  .kpi { padding: 14px; }
  .kpi-ico { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 6px; }
  .kpi-ico .ico { width: 17px; height: 17px; }
  .kpi .value { font-size: 23px; }
  .grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .page-head .btn { width: 100%; }
  .toolbar select, .toolbar input[type="search"] { width: 100%; min-width: 0; }
  .chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
  .meta { gap: 14px 16px; }
  .dr-card .section-title { flex-direction: column; align-items: flex-start; }
  .actions .btn { flex: 1 1 calc(50% - 8px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* failback live state under step 3 */
.fb-live { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.fb-live.muted { color: var(--muted); font-weight: 500; }
.fb-live.bad-text { color: var(--red); }

/* e-mail alert recipients */
.mail-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mail-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 12px; border-radius: 999px; background: var(--brand-soft); color: #1440b8; font-weight: 600; font-size: 13.5px; border: 1px solid var(--brand-line); }
[dir="rtl"] .mail-chip { padding: 4px 12px 4px 5px; }
.mail-chip button { border: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(21, 84, 250, .12); color: #1440b8; font-size: 15px; line-height: 1; display: grid; place-items: center; }
.mail-chip button:hover { background: var(--red-soft); color: var(--red); }
.mail-add { display: flex; gap: 8px; max-width: 520px; margin-bottom: 12px; }
.mail-add input { flex: 1; min-width: 0; }

/* ---------- backups ---------- */
.btn.sm { min-height: 32px; padding: 5px 12px; font-size: 13px; gap: 6px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.grey { background: var(--grey-soft); color: var(--muted); }
.tag .ico { vertical-align: -1px; }
.small { font-size: 12.5px; }
.bk-srv { display: flex; align-items: center; gap: 10px; }
.bk-srv .os { width: 34px; height: 34px; flex: none; }
.bk-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.bk-points td { vertical-align: middle; }
.bk-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.bk-tags .tag { margin: 0; }
.bk-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
tr.sel td { background: var(--brand-soft); }
.bk-empty { display: grid; place-items: center; gap: 10px; padding: 48px 12px; color: var(--faint); text-align: center; }
.bk-empty p { color: var(--muted); }
.bk-vols { margin-bottom: 12px; }
.bk-vols small { font-weight: 600; opacity: .75; }
.bk-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-size: 13.5px; min-width: 0; }
.crumbs button { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 3px 5px; border-radius: 6px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs button:hover { background: var(--brand-soft); }
.crumbs button:last-child { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
[dir="rtl"] .crumbs .sep { transform: scaleX(-1); }
.bk-search { display: flex; gap: 6px; flex: 1 1 240px; max-width: 360px; }
.bk-search input { flex: 1; min-width: 0; min-height: 34px; padding: 6px 10px; }
.bk-info { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.linkish { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 0; }
.bk-table { max-height: 62vh; overflow: auto; }
.bk-table thead th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.bk-table td { padding-top: 8px; padding-bottom: 8px; vertical-align: middle; }
th.ck, td.ck { width: 30px; }
.fname { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fname button { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-align: start; word-break: break-word; }
.fname button:hover { color: var(--brand); text-decoration: underline; }
.fico { color: var(--faint); display: inline-flex; flex: none; }
.fico.dir { color: var(--brand); }
.bk-none { padding: 18px 0; }
.bk-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 14px; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; margin-inline-end: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .bk-cols { grid-template-columns: minmax(0, 1fr); } }
.rs-card.live { border-color: var(--brand-line); box-shadow: var(--shadow-up); }
.rs-card { margin-bottom: 16px; }
.rs-line { margin: 0 0 6px; font-size: 13.5px; }
.rs-counts { font-weight: 700; margin: 10px 0 6px; }
.rs-errs { margin: 8px 0; font-size: 12.5px; }
.rs-errs summary { cursor: pointer; font-weight: 700; color: var(--amber); }
.rs-errs ul { margin: 6px 0 0; padding-inline-start: 18px; max-height: 220px; overflow: auto; }
.rs-form { padding: 18px; border-color: var(--brand-line); box-shadow: var(--shadow-up); }
.rs-form h3 { margin: 0 0 4px; font-size: 16px; }
.rs-items { margin-bottom: 14px; word-break: break-all; }
.rs-form .radios .check { display: flex; gap: 8px; align-items: baseline; margin: 6px 0; flex-wrap: wrap; }
.rs-form #rs-folder { margin-top: 6px; }

/* whole-server restore */
.sr-form { margin-bottom: 16px; border-color: #f3c2bf; }
.sr-form h2 { font-size: 17px; margin: 0 0 10px; }
.sr-warn { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--ink-2, #344054); }
.sr-warn li:first-child { color: var(--red); font-weight: 600; }
