/* ==========================================================================
   Домашняя панель — строгая тёмная тема
   Плоские поверхности, один акцент, без градиентов и декора.
   ========================================================================== */

:root {
  --bg:      #0d1117;
  --panel:   #161b22;
  --panel-2: #11161d;
  --field:   #0d1117;
  --line:    #30363d;
  --line-2:  #3d444d;
  --fg:      #e6edf3;
  --muted:   #8b949e;
  --accent:  #539bf5;
  --accent-d: #2f6feb;
  --ok:      #57ab5a;
  --warn:    #c69026;
  --bad:     #e5534b;
  --radius:  8px;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 20px; }
h2 { font-size: 15px; }
h3 { font-size: 15px; margin-bottom: 10px; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }

code {
  font: 12.5px/1.45 var(--mono);
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 5px;
  color: #adbac7;
}

/* ---------------------------------------------------------------- каркас */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px 72px; }

header.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin: 0 -20px 22px; padding: 14px 20px;
  background: rgba(13, 17, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .who { display: flex; align-items: center; gap: 12px; }
header.top h1 { font-size: 17px; }
header.top .sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }

.mark {
  flex: none; width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent);
}
.hbtns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- кнопки */
.btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 13px; border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 500;
  color: #ffffff;
  background: var(--accent-d);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { background: #3584e4; }
.btn:active { background: #2a6bdb; }
.btn.ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
}
.btn.ghost:hover { color: var(--fg); border-color: var(--line-2); background: var(--panel-2); }
.btn.warn {
  background: transparent; color: var(--warn);
  border: 1px solid var(--line);
}
.btn.warn:hover { border-color: var(--warn); color: #ddaa33; background: transparent; }
.btn.danger {
  background: transparent; color: var(--bad);
  border: 1px solid var(--line);
}
.btn.danger:hover { border-color: var(--bad); color: #f47067; background: transparent; }
.btn.mini { padding: 4px 9px; font-size: 12px; border-radius: 5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------- карточки */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.cardhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.cardhead h2 { display: flex; align-items: center; gap: 8px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.cards {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.mcard { padding: 14px 16px; margin: 0; }
.mcard .cap {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.mcard .big { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }

.bar { height: 5px; border-radius: 4px; background: #21262d; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.bar i.hot { background: var(--warn); }
.bar i.crit { background: var(--bad); }

/* ---------------------------------------------------------------- статусы */
.svc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--fg);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); }
.dot.off { background: var(--bad); }

.tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.tag.on { color: #6cc06f; border-color: rgba(87, 171, 90, .55); background: rgba(87, 171, 90, .08); }
.tag.off { color: #f47067; border-color: rgba(229, 83, 75, .55); background: rgba(229, 83, 75, .08); }

/* ---------------------------------------------------------------- таблицы */
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 10px; border-bottom: 1px solid #21262d; vertical-align: middle; }
tbody tr:hover { background: rgba(177, 186, 196, .04); }
tbody tr:last-child td { border-bottom: none; }
tr.rowoff { opacity: .5; }
td.uuid { font: 12px var(--mono); color: #9db1c5; }
.rowbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------------------------------------------- формы */
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 8px 11px; margin: 5px 0;
  border-radius: 6px; border: 1px solid var(--line);
  background: var(--field); color: var(--fg);
  font: inherit; font-size: 13.5px;
  transition: border-color .12s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
}
input::placeholder { color: #565f6b; }
label { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }
.radio { display: flex; flex-direction: column; gap: 7px; margin: 8px 0; }
.radio label { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--fg); font-size: 13px; }
.radio input { width: auto; margin: 0; }

.conf, textarea.conf {
  width: 100%; min-height: 130px; resize: vertical;
  font: 12px/1.55 var(--mono);
  background: var(--panel-2); color: #adbac7;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 11px; margin-top: 8px;
  white-space: pre; overflow: auto;
}
.codes { font-size: 14px; line-height: 1.9; letter-spacing: .04em; }

.merr, .err { color: var(--bad); font-size: 12.5px; margin-top: 8px; }

.linkbox { display: flex; gap: 8px; align-items: center; margin: 6px 0 10px; }
.linkbox input { margin: 0; font: 12px var(--mono); }

/* ---------------------------------------------------------------- модалка */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(1, 4, 9, .78);
}
.modal.hidden { display: none; }
.mbox {
  position: relative; width: min(620px, 100%);
  max-height: 86vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 22px;
}
.mclose {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 6px;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: 14px;
}
.mclose:hover { color: var(--fg); border-color: var(--line-2); }

/* ---------------------------------------------------------------- QR */
.qrbox {
  display: grid; place-items: center;
  padding: 16px; margin: 14px auto;
  background: #ffffff; border-radius: 8px;
  width: fit-content; max-width: 100%;
}
.qrbox svg, .qrbox img {
  display: block; width: 248px; height: 248px;
  image-rendering: pixelated;
}
.qr-note { text-align: center; color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- вход */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(400px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px 24px;
}
.auth-card .brand { margin-bottom: 20px; }
.auth-card h1 { font-size: 18px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }
.auth-card input { margin: 6px 0; }
.auth-card button.btn { width: 100%; padding: 10px; margin-top: 10px; font-size: 13.5px; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--fg); }

.code-input {
  font: 500 19px/1 var(--mono) !important;
  letter-spacing: .26em; text-align: center; padding: 13px 12px !important;
}

/* ---------------------------------------------------------------- шаги */
.steps { display: grid; gap: 9px; margin: 6px 0 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n {
  flex: none; width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line);
}
.step .t { font-size: 13px; color: var(--fg); padding-top: 2px; }

.sep { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------------------------------------------------------------- разделы */
.tabs {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.tab {
  appearance: none; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 500;
  color: var(--muted); background: none;
  border: none; border-bottom: 2px solid transparent;
  padding: 8px 2px 9px; margin-bottom: -1px;
  transition: color .12s ease, border-color .12s ease;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--accent); }
.tabpane { display: none; }
.tabpane.active { display: block; animation: tabfade .15s ease; }
@keyframes tabfade {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}

.servrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 4px 0 0;
}

/* ---------------------------------------------------------------- мастер VPS */
.migform { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; align-items: center; }
.migform input { flex: 1 1 170px; width: auto; margin: 0; }
.migform input.w80 { flex: 0 0 76px; }
#probebox table { margin-top: 8px; }
#instlog { max-height: 320px; overflow: auto; }

/* ---------------------------------------------------------------- сайты */
.sform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.sform input, .sform select { flex: 1 1 160px; width: auto; margin: 0; }
.sform input.w80 { flex: 0 0 80px; }
.snote {
  font-size: 12px; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 12px; margin: 10px 0;
}
.snote b { color: var(--fg); font-weight: 600; }
.snote code { font-family: var(--mono); }

/* ---------------------------------------------------------------- файловый менеджер */
.fmcrumb {
  font: 12.5px/1.5 var(--mono);
  margin: 4px 0 10px;
}
.fmcrumb a { color: var(--accent); }
label.btn { position: relative; overflow: hidden; }

/* ---------------------------------------------------------------- адаптив */
@media (max-width: 720px) {
  .wrap { padding: 0 14px 56px; }
  header.top { margin: 0 -14px 18px; padding: 12px 14px; }
  h1 { font-size: 18px; }
  .card { padding: 14px; }
  .mcard .big { font-size: 19px; }
  .qrbox svg, .qrbox img { width: 210px; height: 210px; }
  table { font-size: 12.5px; }
  thead th, tbody td { padding: 8px 7px; }
  .hidesm { display: none; }
  .rowbtns { justify-content: flex-start; }
  .tabs { gap: 14px; }
}

/* ============ ФАЙЛОВЫЙ КОММАНДЕР — Windows 11 Fluent: два светлых окна рядом ============ */
/* Как на скриншоте: два окна Проводника рядом на «рабочем столе». Каждая панель —
   самостоятельное окно: командная строка с иконками, адресная строка-пилюля с
   хлебными крошками ›, список с колонками Имя|Изменено|Тип|Размер, статус-бар. */
.cmdov {
  position: fixed; inset: 0; z-index: 50;
  background:
    radial-gradient(1100px 640px at 18% 12%, rgba(64, 130, 240, .17), transparent 62%),
    radial-gradient(900px 560px at 86% 84%, rgba(139, 108, 246, .13), transparent 58%),
    rgba(8, 13, 22, .64);
  backdrop-filter: blur(10px) saturate(1.15);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.cmdov.hidden { display: none; }
.cmd {
  width: min(1500px, 100%); height: min(94vh, 920px);
  background: linear-gradient(180deg, #f6f8fc, #eef1f7);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 32px 90px rgba(2, 8, 20, .55), 0 4px 16px rgba(2, 8, 20, .32);
  color: #1b2735;
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont,
               Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: cmdpop .17s ease-out;
}
@keyframes cmdpop { from { opacity: 0; transform: scale(.985) translateY(7px); } }

/* --- титлбар окна: светлая полоса с иконкой и заголовком (как шапка Проводника) --- */
.cmdtitlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 13px;
  background: linear-gradient(180deg, #fbfdff, #f2f5fa);
  border-bottom: 1px solid #e2e8f0;
  color: #16202e; font-size: 13px;
  flex: none;
}
.cmdtb-logo { flex: none; display: inline-flex; margin-right: 1px; }
.cmdtitlebar b { font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.cmdtb-path {
  flex: 1; min-width: 0; text-align: right;
  color: #6b7890; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: Consolas, "SF Mono", ui-monospace, monospace;
}
.cmdtb-x {
  appearance: none; cursor: pointer; flex: none;
  width: 34px; height: 28px; border-radius: 6px;
  background: transparent; color: #57637a;
  border: none; font: 500 13px/1 "Segoe UI", sans-serif;
  transition: background .12s, color .12s;
}
.cmdtb-x:hover { background: #e81123; color: #fff; }
.cmdtb-x:active { background: #c50f1f; }

.cmdpanes {
  flex: 1; display: grid; grid-template-columns: 1fr 122px 1fr;
  gap: 10px; padding: 10px; min-height: 0;
}
/* --- панель = самостоятельное окно Проводника --- */
.cmdpane {
  border: 1px solid #dbe2ec; border-radius: 10px; background: #fff;
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(23, 43, 77, .10), 0 1px 3px rgba(23, 43, 77, .07);
  transition: box-shadow .15s, border-color .15s, background .15s;
}
.cmdpane.dropping {
  border-color: #2f6feb; background: #f5faff;
  box-shadow: 0 0 0 3px rgba(47, 111, 235, .17), 0 6px 22px rgba(23, 43, 77, .10);
}
/* --- командная строка: иконки навигации + кнопки действий --- */
.cmdptools {
  display: flex; flex-wrap: wrap; gap: 3px; align-items: center;
  padding: 6px 7px; background: #fbfcfe; border-bottom: 1px solid #e9edf3;
  flex: none;
}
.cbt {
  appearance: none; cursor: pointer; flex: none;
  width: 30px; height: 28px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; padding: 0;
  color: #3f4c61;
  transition: background .12s, color .12s;
}
.cbt:hover { background: #e9eef5; color: #16202e; }
.cbt:active { background: #dde5ef; }
.cbt:disabled { opacity: .3; cursor: default; }
.cbt:disabled:hover { background: transparent; color: #3f4c61; }
.cbtn {
  appearance: none; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 6px;
  font-family: inherit; font-size: 12.5px; font-weight: 500; line-height: 1;
  color: #2b3850; background: #fff;
  border: 1px solid #d7dde8;
  transition: background .12s, border-color .12s, color .12s;
}
.cbtn:hover { background: #f1f5fb; border-color: #c1cdde; }
.cbtn:active { background: #e3eaf3; }
.cbtn .cicb { display: inline-flex; color: #4d5b73; }
.cbtn.danger { color: #c42b1c; }
.cbtn.danger .cicb { color: #c42b1c; }
.cbtn.danger:hover { border-color: #e2a49c; background: #fdf3f2; }
label.cbtn { position: relative; overflow: hidden; }
.cmdptools select.cbtn {
  width: auto; max-width: 230px; margin: 0; padding: 0 8px; height: 28px; background: #fff;
}
.csep { width: 1px; height: 18px; background: #dbe1ea; margin: 0 4px; flex: none; }
.cnote { color: #75839c; font-size: 11.5px; margin-left: 4px; }
/* поиск-пилюля как в Проводнике */
.cfind {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  background: #f1f4f9; border: 1px solid #e0e6ee; border-radius: 6px;
  padding: 0 9px; height: 28px; color: #75839c;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.cfind:focus-within {
  border-color: #2f6feb; background: #fff;
  box-shadow: 0 0 0 2.5px rgba(47, 111, 235, .14);
}
.cfind input {
  width: 150px; margin: 0; padding: 0; font-size: 12px;
  border: none; background: transparent; color: #16202e;
  font-family: inherit; line-height: 1.5;
}
.cfind input:focus { outline: none; box-shadow: none; }
/* --- адресная строка-пилюля с крошками --- */
.cmdppath {
  display: flex; align-items: center; gap: 2px;
  margin: 7px; padding: 0 10px; height: 30px;
  border: 1px solid #e0e6ee; border-radius: 7px; background: #f1f4f9;
  font-size: 12.5px; color: #2b3850;
  white-space: nowrap; overflow-x: auto; scrollbar-width: thin;
  flex: none;
}
.cmdppath .pic { flex: none; display: inline-flex; align-items: center; color: #5a687f; margin-right: 3px; }
.cmdppath a {
  color: #2b3850; text-decoration: none; padding: 2px 4px; border-radius: 4px;
  transition: background .1s, color .1s;
}
.cmdppath a:hover { color: #0b5cd5; background: rgba(47, 111, 235, .09); text-decoration: none; }
.cmdppath .cbr { color: #9aa5b8; font-size: 11px; user-select: none; }
/* --- список файлов: колонки Имя | Изменено | Тип | Размер --- */
.cmdlist { flex: 1; overflow: auto; min-height: 0; background: #fff; }
.cmdlist::-webkit-scrollbar { width: 11px; height: 11px; }
.cmdlist::-webkit-scrollbar-thumb {
  background: #cbd3e0; border-radius: 7px; border: 2.5px solid #fff;
}
.cmdlist::-webkit-scrollbar-thumb:hover { background: #aebbcc; }
.cmdlist table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.cmdlist th {
  position: sticky; top: 0; z-index: 2;
  background: #fbfcfe; text-align: left;
  padding: 6px 10px; color: #5c6a82; font-weight: 600; font-size: 12px;
  text-transform: none; letter-spacing: normal;
  border-bottom: 1px solid #e5eaf1; border-right: 1px solid #eef1f6;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: background .1s;
}
.cmdlist th:last-child { border-right: none; }
.cmdlist th:hover { background: #eef3f9; color: #16202e; }
.cmdlist th .csort { display: inline-flex; margin-left: 3px; color: #0f6cbd; }
.cmdlist td {
  padding: 4.5px 10px; border-bottom: 1px solid #f1f4f8; white-space: nowrap;
  max-width: 340px; overflow: hidden; text-overflow: ellipsis; color: #1d2939;
}
.cmdlist tbody tr { transition: background .08s; }
.cmdlist tbody tr:hover td { background: #f1f7fd; }
.cmdlist tr.sel td { background: #d6e8fb; }
.cmdlist tr.sel:hover td { background: #c8e0f8; }
.cmdlist tr.empty td { color: #8592a8; text-align: center; padding: 22px; }
.cic { width: 26px; padding: 3px 2px 3px 9px !important; max-width: 26px !important; }
.cic-svg { display: block; }
.cname { color: #14202f; font-weight: 500; }
.csize { text-align: right; width: 76px; color: #4c5a72; font-variant-numeric: tabular-nums; }
.ctype { width: 146px; color: #5c6a82; }
.cdate { width: 146px; color: #4c5a72; font-variant-numeric: tabular-nums; }
/* подсказка пустой панели: большая иконка + текст */
.cmdhint {
  padding: 34px 20px; color: #5c6a82; font-size: 13px; line-height: 1.65;
  text-align: center;
}
.cmdhint .bigh { margin-bottom: 12px; opacity: .85; }
.cmdhint b { color: #16202e; }
/* --- статус-бар панели: «0 B из 22,1 MB в 0 из 17 … Скрыто: N» --- */
.cmdpstat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 10px; font-size: 12px; color: #3f4c61;
  background: #fafbfd; border-top: 1px solid #e9edf3;
  min-height: 26px; white-space: nowrap; flex: none;
}
.cmdpstat .cps-l { font-variant-numeric: tabular-nums; }
.cmdpstat .cps-r { color: #75839c; font-variant-numeric: tabular-nums; }
/* --- центральная колонка: Залить / Скачать / Править --- */
.cmdmid {
  display: flex; flex-direction: column; gap: 8px;
  align-items: stretch; justify-content: center;
}
.cmdmid .btn {
  width: 100%; text-align: center; flex-direction: column; gap: 2px;
  background: #fff; color: #2b3850; border: 1px solid #d7dde8;
  font-size: 12.5px; padding: 9px 6px; border-radius: 8px;
  box-shadow: 0 1px 2px rgba(23, 43, 77, .06);
  transition: background .12s, border-color .12s, color .12s, transform .06s;
}
.cmdmid .btn:hover { background: #f1f5fb; border-color: #c1cdde; color: #0b5cd5; }
.cmdmid .btn:active { transform: translateY(1px); }
.cmdmid .btn small { display: block; color: #8592a8; font-size: 10px; font-weight: 400; }
.cmdmid .btn .cicb { display: inline-flex; color: #4d5b73; margin-bottom: 1px; }
.cmdmid .btn.primary { background: #0f6cbd; border-color: #0f6cbd; color: #fff; }
.cmdmid .btn.primary .cicb { color: #fff; }
.cmdmid .btn.primary small { color: rgba(255, 255, 255, .72); }
.cmdmid .btn.primary:hover { background: #0d5fa8; border-color: #0d5fa8; color: #fff; }
/* --- общий статус (прогресс заливки) --- */
.cmdstatus {
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fbfdff, #f3f6fa);
  padding: 7px 14px; font-size: 12px; color: #3f4c61;
  display: flex; gap: 12px; align-items: center; min-height: 34px;
  flex: none; font-variant-numeric: tabular-nums;
}
.cmdbar {
  flex: 1; max-width: 420px; height: 5px; background: #dbe1ea;
  border-radius: 3px; overflow: hidden;
}
.cmdbar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #2f6feb, #539bf5);
  border-radius: 3px; transition: width .2s;
}
/* --- быстрые действия в строках серверной панели (zip / расп. / ⤓) --- */
.cmddlcell { width: 48px; text-align: right; white-space: nowrap; max-width: 48px !important; }
.cmddl {
  display: inline-block; color: #4d5b73; text-decoration: none; font-size: 11px;
  padding: 2px 7px; border: 1px solid #d7dde8; border-radius: 5px; line-height: 1.4;
  background: #fff;
  transition: background .1s, border-color .1s, color .1s;
}
.cmddl:hover { color: #0b5cd5; border-color: #9db9df; background: #eff5fc; text-decoration: none; }

/* --- «Локальная машина»: места быстрого доступа, диски, ссылки --- */
.cmdplaces {
  flex-basis: 100%; display: flex; align-items: center; gap: 4px;
  padding-top: 3px; overflow-x: auto; scrollbar-width: thin;
}
.cpl { color: #75839c; font-size: 11px; flex: none; margin-left: 2px; }
.cplace {
  appearance: none; cursor: pointer; flex: none;
  height: 22px; padding: 0 9px; border-radius: 11px;
  font-family: inherit; font-size: 11.5px; line-height: 1;
  color: #2b3850; background: #eef2f8; border: 1px solid #dde4ee;
  transition: background .12s, border-color .12s, color .12s;
}
.cplace:hover { background: #e3ebf6; border-color: #c1cdde; }
.cplace.on { background: #0b5cd5; border-color: #0b5cd5; color: #fff; }
.cdev { color: #8a93a3; font-size: 10.5px; font-weight: 400; white-space: nowrap; }
.clink { color: #8a93a3; font-size: 11px; font-weight: 400; }
.cmdpstat .cps-m { color: #4c5a72; margin-left: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 920px) {
  .cmd { height: 96vh; }
  .cmdpanes { grid-template-columns: 1fr; overflow-y: auto; }
  .cmdmid { flex-direction: row; justify-content: center; padding: 0 2px; }
  .cmdmid .btn { width: auto; flex: 1; }
  .cmdpane { min-height: 300px; }
  .cmdlist td { max-width: 150px; }
}
