/* ===== flg-disk — clean light skin ===== */
/* палитра форсится поверх любой темы через !important */
html{
  --font-main:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  --font-serif:var(--font-main) !important;
  --font-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace !important;

  --bgg:#eef1f5 !important; --bg:#ffffff !important;
  --bg-d1:#f3f5f8 !important; --bg-d2:#eef1f5 !important; --bg-d3:#e7ebf0 !important;
  --bg-max:#ffffff !important;
  --bg-u1:#ffffff !important; --bg-u2:#ffffff !important; --bg-u3:#f3f5f8 !important;
  --bg-u4:#eef1f5 !important; --bg-u5:#e2e6ec !important; --bg-u6:#d8dee6 !important;

  --fg:#262b33 !important; --fg-max:#0d1117 !important; --fg-weak:#6b7280 !important;

  --a:#2f6feb !important; --a-b:#1f5fe0 !important; --a-dark:#1b4fc0 !important;
  --a-gray:#8a93a0 !important; --a-hil:#1b4fc0 !important; --a-h-bg:#eaf1ff !important;

  --row-alt:#f7f9fc !important; --tab-alt:#2f6feb !important; --scroll:#c2c9d4 !important;
  --tree-bg:#f7f9fc !important;
  --srv-1:#262b33 !important; --srv-2:#6b7280 !important; --srv-3:#6b7280 !important; --srv-3b:#9aa3b0 !important;
  --sort-1:#0d1117 !important; --sort-2:#2f6feb !important;

  --btn-fg:#262b33 !important; --btn-bg:#ffffff !important; --btn-h-bg:#eaf1ff !important;
  --btn-bs:0 0 0 1px #d6dbe2 !important;
  --btn-1-fg:#ffffff !important; --btn-1-bg:#2f6feb !important; --btn-1h-bg:#1f5fe0 !important;
  --btn-1-bs:0 0 0 1px #1f5fe0 !important;

  --u2-tab-1-fg:#0d1117 !important; --u2-tab-1-bg:#ffffff !important; --u2-tab-b1:#d6dbe2 !important;
  --u2-btn-b1:#d6dbe2 !important; --u2-sbtn-b1:#d6dbe2 !important;
  --u2-b1-bg:#2f6feb !important; --u2-b2-bg:#2f6feb !important;

  --g-sel-b1:#2f6feb !important; --g-sel-sh:#9ab8ff !important; --g-fsel-b1:#1f5fe0 !important; --f-h-b1:#2f6feb !important;
  --shadow-color-1:rgba(20,30,50,.10) !important; --shadow-color-2:rgba(20,30,50,.18) !important; --w3:#e7ebf0 !important;
}

/* убрать эмбоссированную тень текста */
html, html *{ text-shadow:none !important; }
html{ background:var(--bgg) !important; }
body{ font-family:var(--font-main) !important; }

/* строка инфо сервера — приглушить, спрятать rtt */
#srv_info, #srv_info *{ color:var(--fg-weak) !important; font-size:.85em !important; }
#ht_brw #rtt{ display:none !important; }

/* кнопки */
.btn, a.btn{ border-radius:8px !important; box-shadow:var(--btn-bs) !important; padding:.4em .7em !important; }
.btn:hover{ background:var(--btn-h-bg) !important; }

/* панель загрузки: скрыть только ячейки-тумблеры (🏃🥔🎲🛡️🔍), таблицу НЕ трогать (иначе ломается дропзона) */
#u2conf td:has(#multitask),
#u2conf td:has(#potato),
#u2conf td:has(#u2rand),
#u2conf td:has(#u2ow),
#u2conf td:has(#fsearch){ display:none !important; }
#u2btn{ border:2px dashed #b9c4d4 !important; border-radius:14px !important; background:#fafcff !important; color:var(--a) !important; }
#u2btn:hover{ border-color:var(--a) !important; background:#f1f6ff !important; }
#u2cards{ border-radius:10px !important; }
#u2cards *{ color:var(--fg-weak) !important; }

/* таблица файлов */
#files{ background:#fff !important; border:1px solid #e3e6ea !important; border-radius:12px !important; overflow:hidden !important; box-shadow:0 1px 2px var(--shadow-color-1) !important; }
#files thead th{ background:#f3f5f8 !important; color:var(--fg-weak) !important; font-weight:600 !important; border-bottom:1px solid #e3e6ea !important; padding:.55em .6em !important; }
#files tbody td{ border-color:#eef1f5 !important; padding:.5em .6em !important; }
#files tbody tr:hover td{ background:var(--a-h-bg) !important; }
#files tbody td:last-child, #files tbody td:nth-child(6){ color:var(--fg-weak) !important; }
#files tbody td:nth-child(3){ color:var(--fg) !important; }
/* убрать бесполезные колонки files и T */
#files th[name="tags/.files"], #files th[name="ext"]{ display:none !important; }
#files tbody td:nth-child(4), #files tbody td:nth-child(5){ display:none !important; }
/* колонка "c" — приглушить технический код */
#files tbody td:nth-child(1){ color:var(--fg-weak) !important; font-size:.8em !important; }

/* дерево слева */
#tree{ background:var(--tree-bg) !important; border:1px solid #e3e6ea !important; border-radius:12px !important; }
#treeul a{ border-radius:6px !important; }
#treeul a.hl{ background:var(--a) !important; color:#fff !important; }

/* тосты */
#toast{ border-radius:12px !important; box-shadow:0 6px 24px var(--shadow-color-2) !important; }

/* ссылки и поля */
a{ color:var(--a); }
a:hover{ color:var(--a-hil); }
input,select,textarea{ border-radius:8px !important; border:1px solid #d6dbe2 !important; background:#fff !important; color:var(--fg) !important; }
input:focus,select:focus,textarea:focus{ outline:2px solid #bcd2ff !important; border-color:var(--a) !important; }

/* спрятать гиковский футер: control-panel | prev/up/next | π */
#wfp{ display:none !important; }

/* ===== ТУЛБАР — высокая специфичность через html#ht_brw (бьёт классы темы) ===== */
#ht_brw #ops{
  display:flex !important; flex-direction:row !important; flex-wrap:wrap !important;
  align-items:center !important; justify-content:flex-start !important;
  gap:.15em !important; width:auto !important; max-width:none !important; float:none !important;
  background:#fff !important; border:1px solid #e3e6ea !important; border-radius:12px !important;
  padding:.3em .45em !important; margin:.5em 0 !important; box-shadow:0 1px 2px var(--shadow-color-1) !important;
}
#ht_brw #ops a{
  display:inline-flex !important; flex:0 0 auto !important; float:none !important;
  align-items:center !important; gap:.4em !important; white-space:nowrap !important;
  width:auto !important; margin:.12em !important; padding:.42em .7em !important;
  border-radius:9px !important; border:1px solid transparent !important; box-shadow:none !important;
  font-size:1.02em !important; line-height:1.1 !important;
}
#ht_brw #ops a:hover{ background:var(--a-h-bg) !important; border-color:#cfe0ff !important; }
#ht_brw #ops a.act{ background:var(--a-h-bg) !important; border-color:var(--a) !important; }
/* подписи на четырёх основных кнопках */
#ht_brw #opa_srch::after{ content:"Поиск" !important; }
#ht_brw #opa_up::after{ content:"Загрузить" !important; }
#ht_brw #opa_mkd::after{ content:"Папка" !important; }
#ht_brw #opa_cfg::after{ content:"Настройки" !important; }
#ht_brw #opa_srch::after,#ht_brw #opa_up::after,#ht_brw #opa_mkd::after,#ht_brw #opa_cfg::after{
  font-family:var(--font-main) !important; font-size:.66em !important; font-weight:600 !important; color:var(--fg) !important;
}
/* скрыть редкие кнопки (3 id, бьёт правило "#ht_brw #ops a") */
#ht_brw #ops a#opa_del,
#ht_brw #ops a#opa_bup,
#ht_brw #ops a#opa_md,
#ht_brw #ops a#opa_msg,
#ht_brw #ops a#opa_auc{ display:none !important; }
/* '--' (close submenu) и π (repl-пасхалка) — спрятать */
#ht_brw #ops a#opa_x{ display:none !important; }
#repl{ display:none !important; }
