@font-face { font-family: Manrope; font-style: normal; font-weight: 600 900; font-display: block; src: url(/bgdisk-ui/fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600 900; font-display: block; src: url(/bgdisk-ui/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* bgdisk — bgcloud design system (как в ShiftHub) */
:root, :root.dark {
  --bg: #07090d;
  --surface: #12161d;
  --surface-2: #181e27;
  --surface-3: #222a35;
  --header-bg: rgba(12,15,20,.74);
  --text: #f6f8fb;
  --text-2: #a2adb8;
  --text-3: #c4ccd7;
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --mint: #9be7d1;
  --accent: #3faf8a;
  --brand-blue: #82aef2;
  --gold: #f5c76d;
  --accent-soft: rgba(155,231,209,.14);
  --focus-ring: rgba(155,231,209,.70);
  --danger: #f87171;
  --on-accent: #07100d;
  --grad-brand: linear-gradient(135deg, var(--mint) 0%, var(--brand-blue) 58%, var(--gold) 120%);
  --grad-soft: linear-gradient(180deg, rgba(155,231,209,.16), rgba(63,175,138,.06));
  --shadow-sm: 0 2px 12px rgba(0,0,0,.18);
  --shadow-md: 0 12px 34px rgba(0,0,0,.26);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.36);
  --font-display: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* переменные FileBrowser */
  --blue: var(--accent);
  --dark-blue: #27866b;
  --red: var(--danger);
  --dark-red: #dc2626;
  --icon-blue: var(--brand-blue);
  --icon-green: var(--mint);
  --icon-yellow: var(--gold);
  --icon-orange: #f5a26d;
  --icon-red: var(--danger);
  --icon-violet: #b9a2f2;
  --action: var(--text);
  --background: var(--bg);
  --surfacePrimary: var(--surface);
  --surfaceSecondary: var(--surface-2);
  --textPrimary: var(--text-2);
  --textSecondary: var(--text);
  --divider: var(--border);
  --iconPrimary: var(--mint);
  --iconSecondary: var(--text);
  --iconTertiary: var(--text-2);
  --hover: rgba(255,255,255,.05);
  --borderPrimary: var(--border);
  --borderSecondary: var(--border-strong);
  --item-selected: var(--text);
  --input-red: rgba(248,113,113,.15);
  --input-green: rgba(74,222,128,.15);
  --dividerPrimary: rgba(0,0,0,.4);
  --dividerSecondary: rgba(0,0,0,.6);
}

:root { color-scheme: dark; }
html, body {
  background:
    radial-gradient(900px 420px at 85% -120px, rgba(130,174,242,.10), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(155,231,209,.07), transparent 60%),
    var(--bg) !important;
  background-attachment: fixed !important;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: rgba(155,231,209,.28); }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
:focus-visible { outline: 2px solid var(--focus-ring) !important; outline-offset: 2px; }
.material-icons { font-size: 22px; }
a, .link { color: var(--mint); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: var(--text); letter-spacing: -.2px; }

/* ---------- шапка ---------- */
header {
  height: 64px !important;
  padding: 10px 20px !important;
  gap: 8px;
  background: var(--header-bg) !important;
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
header > img { height: 38px !important; width: 38px !important; border-radius: 12px; margin-right: 4px; }
header > title { display: none; }
header::before {
  content: "bgdisk";
  order: 1;
  font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -.6px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-right: 18px;
}
header > img { order: 0; }
header > * { order: 2; }
@media (min-width: 737px) {
  header .menu-button, header .search-button { display: none !important; }
}
header .action {
  width: 42px; height: 42px; padding: 0 !important;
  align-items: center; justify-content: center;
  border-radius: 12px !important;
  color: var(--text) !important;
  transition: background .15s, transform .12s;
}
header .action:hover { background: var(--surface-2) !important; }
header .action:active { transform: scale(.96); }
header .action i { color: var(--text-3) !important; font-size: 21px; }
header .action:hover i { color: var(--text) !important; }
#upload-button { background: var(--grad-brand) !important; box-shadow: 0 8px 22px rgba(63,175,138,.24); }
#upload-button i { color: var(--on-accent) !important; }
#upload-button:hover { background: var(--grad-brand) !important; filter: brightness(1.06); }

/* поиск */
#search { max-width: 460px; }
#search #input {
  height: 42px; padding: 0 14px !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important; border-radius: 12px !important;
  transition: border-color .15s, box-shadow .15s;
}
#search #input i { color: var(--text-2) !important; }
#search #input input { color: var(--text) !important; font-size: 14px; background: transparent !important; border: 0 !important; box-shadow: none !important; }
#search #input input::placeholder { color: var(--text-2); }
#search.active #input { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); }
#search #result {
  background: var(--surface) !important; color: var(--text) !important;
  border: 1px solid var(--border); border-radius: 0 0 20px 20px; box-shadow: var(--shadow-lg);
}
#search .boxes { background: transparent !important; }
#search .boxes h3 { color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
#search .boxes > div > div {
  background: var(--surface-2) !important; border: 1px solid var(--border); border-radius: 14px !important;
  color: var(--text) !important; transition: border-color .15s;
}
#search .boxes > div > div:hover { border-color: var(--accent); }
#search .boxes i { color: var(--mint) !important; }
#search #result ul li a { color: var(--text) !important; border-radius: 10px; }
#search #result ul li a:hover { background: var(--surface-2); }

/* меню «Ещё» */
#dropdown.active {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  border-radius: 18px !important; box-shadow: var(--shadow-lg) !important; padding: 6px !important;
}
#dropdown.active .action { width: 100%; height: auto; justify-content: flex-start; gap: 12px; padding: 10px 12px !important; }
#dropdown.active .action span { display: inline !important; color: var(--text); font-weight: 600; }
#dropdown.active #upload-button span { color: var(--on-accent); font-weight: 800; }
.overlay { background: rgba(0,0,0,.70) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- боковая панель (ПК) ---------- */
nav {
  top: 64px !important;
  width: 248px !important;
  padding: 18px 14px !important;
  height: calc(100vh - 64px) !important;
  box-sizing: border-box;
  display: flex !important; flex-direction: column; gap: 4px;
  background: transparent;
}
nav > div { display: flex; flex-direction: column; gap: 4px; }
nav > div + div { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
nav .action {
  width: 100% !important; display: flex !important; align-items: center; gap: 12px;
  padding: 7px 10px !important; border-radius: 16px !important;
  color: var(--text-3) !important; font-weight: 700; font-size: 14px;
  background: transparent !important;
  transition: background .18s, color .18s, transform .12s;
}
nav .action i {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: flex !important; align-items: center; justify-content: center;
  border-radius: 13px; font-size: 20px;
  color: var(--text-2) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,0)), var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 8px 16px rgba(0,0,0,.14);
  padding: 0 !important; margin: 0 !important;
}
nav .action:hover { background: rgba(255,255,255,.04) !important; color: var(--text) !important; }
nav .action:hover i { color: var(--mint) !important; }
nav .action:active { transform: scale(.98); }
nav > .action:first-child {
  color: var(--text) !important;
  background: linear-gradient(180deg, rgba(130,174,242,.16), rgba(63,175,138,.07)) !important;
  box-shadow: 0 0 0 1px rgba(130,174,242,.22), inset 0 1px 0 rgba(255,255,255,.08);
}
nav > .action:first-child i { background: var(--grad-brand); color: var(--on-accent) !important; border-color: transparent; }

/* место на диске */
nav .credits { color: var(--text-2) !important; font-size: 12px; font-weight: 600; }
nav > div.credits {
  margin: auto 0 8px 0 !important; width: auto !important;
  padding: 14px !important; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
nav > div.credits br { display: none; }
.vue-simple-progress { background: var(--surface-3) !important; border-radius: 999px !important; overflow: hidden; margin-bottom: 8px; }
.vue-simple-progress-bar { background: var(--grad-brand) !important; height: 6px !important; border-radius: 999px; }
nav > p.credits { display: none !important; }

/* ---------- основная область ---------- */
main { margin-left: 264px !important; margin-right: 24px !important; padding-top: 14px; padding-bottom: 40px; }
main > div { max-width: 1400px; }

.breadcrumbs {
  height: auto !important; padding: 6px 4px 14px !important; gap: 4px; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
}
.breadcrumbs a, .breadcrumbs span.chevron { color: var(--text-2) !important; }
.breadcrumbs a { padding: 6px 10px !important; border-radius: 12px; transition: background .15s, color .15s; }
.breadcrumbs a:hover { background: var(--surface-2); color: var(--text) !important; }
.breadcrumbs a:last-of-type, .breadcrumbs a[aria-current=page] { color: var(--text) !important; }
.breadcrumbs a i { font-size: 22px; vertical-align: middle; }

/* список файлов — карточкой */
#listing.list {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden;
}
#listing .item {
  background: transparent !important; color: var(--text) !important;
  border: 0 !important; box-shadow: none !important;
  transition: background .15s;
}
#listing.list .item { border-bottom: 1px solid var(--border) !important; padding: 10px 14px !important; }
#listing.list .item:last-child { border-bottom: 0 !important; }
#listing.list .item:hover { background: rgba(255,255,255,.035) !important; }
#listing.list .item.header {
  background: var(--surface-2) !important;
  padding: 10px 14px !important;
}
#listing.list .item.header p, #listing.list .item.header span, #listing.list .item.header i {
  color: var(--text-2) !important; font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
#listing .item .name { font-weight: 600; font-size: 14.5px; color: var(--text); }
#listing .item .size, #listing .item .modified { color: var(--text-2) !important; font-size: 12.5px; font-weight: 600; }

/* иконки файлов — плитками */
#listing .item > div:first-of-type i.material-icons, #listing .item i.material-icons:not(.header *) { font-size: 22px; }
#listing.list .item > div:first-of-type {
  width: 42px !important; height: 42px; flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px; margin-right: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  overflow: hidden;
}
#listing.list .item.header > div:first-of-type { background: transparent; border: 0; }
#listing.list .item > div:first-of-type img { width: 100%; height: 100%; object-fit: cover; }
#listing .item[data-dir=true] > div:first-of-type { background: var(--grad-soft); border-color: rgba(155,231,209,.22); }
#listing.file-icons .item[data-dir=true] i.material-icons { color: var(--mint) !important; }

/* выбранные */
#listing .item[aria-selected=true] {
  background: var(--accent-soft) !important;
  box-shadow: inset 3px 0 0 var(--mint) !important;
}
#listing .item[aria-selected=true] * { color: var(--text) !important; }

/* плитки (вид «сетка») */
#listing.mosaic { gap: 12px; }
#listing.mosaic .item {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  border-radius: 18px !important; box-shadow: var(--shadow-sm) !important; overflow: hidden;
}
#listing.mosaic .item:hover { border-color: var(--border-strong) !important; transform: translateY(-1px); }
#listing.mosaic .item[aria-selected=true] { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; }
#listing.mosaic.gallery .item div:first-of-type { border-radius: 0 !important; }
#listing h2 { color: var(--text-2) !important; font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; margin: 18px 4px 10px !important; }

/* пустая папка */
#listing h2.message, h2.message {
  text-transform: none !important; letter-spacing: 0 !important; font-size: 16px !important;
  color: var(--text-2) !important; padding: 48px 16px !important; text-align: center;
}
h2.message i { display: block; font-size: 52px !important; color: var(--mint) !important; margin: 0 auto 10px; opacity: .9; }

/* панель мультивыбора */
#multiple-selection {
  left: 50% !important; right: auto !important; bottom: 18px !important;
  transform: translate(-50%, 200%); opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s !important;
  width: min(560px, calc(100% - 24px)) !important;
  border-radius: 22px; padding: 10px 12px 10px 18px !important;
  background: rgba(18,22,29,.86) !important; border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%);
  box-shadow: 0 18px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
#multiple-selection.active { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#multiple-selection p { color: var(--text) !important; font-weight: 700; }
#multiple-selection .action i { color: var(--mint) !important; }

/* ---------- карточки и модалки ---------- */
.card {
  background: var(--surface) !important; color: var(--text) !important;
  border: 1px solid var(--border); border-radius: 20px !important; box-shadow: var(--shadow-sm) !important;
}
.card.floating {
  border-radius: 22px !important; box-shadow: var(--shadow-lg) !important;
  animation: bg-pop .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes bg-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.card .card-title { padding: 20px 22px 6px !important; }
.card .card-title h2 { font-size: 20px; font-weight: 800; }
.card .card-content { padding: 8px 22px 14px !important; color: var(--text-2); }
.card .card-content p { color: var(--text-2); line-height: 1.55; }
.card .card-action { padding: 10px 18px 18px !important; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.card hr { border-color: var(--border); }

/* ---------- кнопки ---------- */
.button {
  font-family: var(--font-body); font-weight: 800 !important; font-size: 14.5px; letter-spacing: .2px;
  min-height: 42px; padding: 0 18px !important; border-radius: 12px !important;
  background: var(--grad-brand) !important; color: var(--on-accent) !important;
  border: 0 !important; box-shadow: 0 8px 22px rgba(63,175,138,.24) !important;
  transition: transform .12s, filter .15s, background .15s;
  text-transform: none !important;
}
.button:hover { filter: brightness(1.05); }
.button:active { transform: scale(.98); }
.button--flat {
  background: var(--surface-2) !important; color: var(--text) !important;
  border: 1px solid var(--border) !important; box-shadow: none !important;
}
.button--flat:hover { border-color: var(--border-strong) !important; background: var(--surface-3) !important; filter: none; }
.button--flat.button--grey { color: var(--text-2) !important; }
.button--flat.button--blue { color: var(--mint) !important; }
.button--red, .button--flat.button--red {
  background: rgba(248,113,113,.15) !important; color: var(--danger) !important;
  border: 1px solid rgba(248,113,113,.25) !important; box-shadow: none !important;
}
.button--block { width: 100%; }
/* главное действие в окне — градиент */
.card-action .button--flat:not(.button--grey):not(.button--red):last-child {
  background: var(--grad-brand) !important; color: var(--on-accent) !important;
  border: 0 !important; box-shadow: 0 8px 22px rgba(63,175,138,.24) !important;
}

/* ---------- поля ---------- */
.input, input[type=text], input[type=password], input[type=number], input[type=search], input[type=email], select, textarea {
  background: var(--surface-2) !important; color: var(--text) !important;
  border: 1px solid var(--border) !important; border-radius: 12px !important;
  padding: 11px 14px !important; font-family: var(--font-body); font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; outline: none !important;
}
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
label { color: var(--text-2); font-weight: 700; font-size: 13px; }

/* ---------- вход ---------- */
#login {
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(130,174,242,.14), transparent 60%),
    radial-gradient(600px 360px at 50% 110%, rgba(155,231,209,.08), transparent 60%),
    var(--bg) !important;
}
#login form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  padding: 34px 26px 28px !important; box-shadow: var(--shadow-lg);
  width: min(380px, calc(100vw - 32px)); max-width: none !important; box-sizing: border-box;
}
#login img { width: 76px !important; height: 76px !important; border-radius: 22px; box-shadow: 0 14px 34px rgba(130,174,242,.22); }
#login h1 {
  font-family: var(--font-display); font-size: 44px; font-weight: 900; letter-spacing: -1.5px; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 18px 0 22px;
}
#login .input { margin-bottom: 10px; }
#login .button { width: 100%; min-height: 48px; margin-top: 6px; font-size: 15px; }
#login .wrong {
  background: rgba(248,113,113,.15) !important; color: var(--danger) !important;
  border: 1px solid rgba(248,113,113,.25); border-radius: 12px; font-weight: 700;
}
#login p { color: var(--text-2); }

/* ---------- настройки ---------- */
.dashboard { max-width: 1100px; }
.dashboard .card { margin-bottom: 16px; }
#nav-settings, .dashboard #nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--surface) !important; border: 1px solid var(--border);
  border-radius: 18px; padding: 6px !important; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.dashboard #nav ul { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; }
.dashboard #nav ul li {
  border-radius: 12px; padding: 9px 14px !important; color: var(--text-2) !important;
  font-weight: 700; border: 0 !important; list-style: none;
}
.dashboard #nav ul li:hover { background: var(--surface-2); color: var(--text) !important; }
.dashboard #nav ul li.active { background: var(--grad-brand); color: var(--on-accent) !important; }
table { border-collapse: collapse; width: 100%; }
table th { color: var(--text-2) !important; font-size: 12px; font-weight: 700; text-align: left; }
table th, table td { border-bottom: 1px solid var(--border) !important; padding: 12px 10px !important; }
table tr:last-child td { border-bottom: 0 !important; }
table td .action i { color: var(--mint) !important; }

/* ---------- окно «Поделиться» и публичная ссылка ---------- */
.share { padding: 20px 16px; }
.share__box {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  border-radius: 22px !important; box-shadow: var(--shadow-md) !important; overflow: hidden;
}
.share__box__header {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  background: var(--surface-2) !important; color: var(--text) !important;
  padding: 16px 20px !important; border-bottom: 1px solid var(--border);
}
.share__box__element { border-color: var(--border) !important; color: var(--text) !important; padding: 14px 20px !important; }
.share__box__icon i { color: var(--mint) !important; }
.share__box__info { color: var(--text-2); }
.share__wrong__password { color: var(--danger) !important; }

/* ---------- загрузка ---------- */
.upload-files.card { border-radius: 20px !important; overflow: hidden; }
.upload-files .card-title { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.upload-files .file { border-color: var(--border) !important; }
.upload-files .file-name { color: var(--text) !important; font-weight: 600; }
.upload-files .file-progress { background: var(--surface-3) !important; border-radius: 999px; overflow: hidden; height: 6px !important; }
.upload-files .file-progress div { background: var(--grad-brand) !important; }

/* ---------- просмотр файла ---------- */
#previewer { background: var(--bg) !important; }
#previewer header { background: var(--header-bg) !important; }
#previewer .preview { background: transparent; }
#previewer .loading .spinner > div { background: var(--mint) !important; }

/* ---------- уведомления ---------- */
.Vue-Toastification__toast {
  border-radius: 14px !important; font-family: var(--font-body); font-weight: 700;
  box-shadow: var(--shadow-md) !important; min-height: 52px !important;
}
.Vue-Toastification__toast--success { background: var(--accent) !important; color: var(--on-accent) !important; }
.Vue-Toastification__toast--error { background: #dc2626 !important; }
.Vue-Toastification__toast--info { background: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--border); }

/* ---------- телефон ---------- */
@media (max-width: 736px) {
  header {
    height: 60px !important; padding: 8px 10px !important; gap: 2px;
    background: rgba(12,15,20,.96) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  header::before { font-size: 20px; margin-right: auto; }
  header > img { width: 34px !important; height: 34px !important; border-radius: 11px; }
  header .menu-button { display: none !important; }
  header .action { width: 40px; height: 40px; }
  #search.active #input { height: 44px; }

  /* боковая панель → нижняя панель, как в ShiftHub */
  nav, nav.active {
    position: fixed !important;
    top: auto !important; left: 50% !important; right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 24px), 560px) !important; height: auto !important;
    padding: 8px 10px !important;
    flex-direction: row !important; align-items: center; justify-content: space-around; gap: 6px !important;
    background: rgba(18,22,29,.78) !important;
    border: 1px solid rgba(255,255,255,.12); border-radius: 26px;
    -webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%);
    box-shadow: 0 18px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
    z-index: 70 !important;
    transition: none !important;
  }
  nav > div { flex-direction: row !important; gap: 6px !important; }
  nav > div + div { margin: 0 !important; padding: 0 !important; border: 0 !important; }
  nav .action {
    flex-direction: column !important; gap: 6px !important;
    width: auto !important; min-width: 70px; padding: 6px 6px 5px !important;
    border-radius: 18px !important; font-size: 10.5px !important; font-weight: 700;
    color: var(--text-2) !important;
  }
  nav .action span { line-height: 1.1; white-space: nowrap; }
  nav .action i { width: 38px; height: 38px; flex-basis: auto; }
  nav > .action:first-child { box-shadow: 0 0 0 1px rgba(130,174,242,.24), inset 0 1px 0 rgba(255,255,255,.08); }
  nav > div.credits, nav > p.credits { display: none !important; }
  .overlay[style*="display: block"] ~ nav { transform: translateX(-50%) !important; }

  main { margin: 0 12px !important; padding-top: 10px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .breadcrumbs { font-size: 17px; padding: 4px 0 10px !important; }
  #listing.list { border-radius: 18px; }
  #listing.list .item { padding: 10px 12px !important; }
  #listing.list .item.header { display: none !important; }
  #listing.list .item .modified { display: none; }
  #listing .item .name { font-size: 15px; }
  #listing.list .item > div:first-of-type { width: 44px !important; height: 44px; flex-basis: 44px; }
  #multiple-selection { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  #dropdown.active { right: 10px !important; top: 66px !important; width: min(280px, calc(100vw - 20px)); }
  header > img { display: block !important; }
  .breadcrumbs { background: transparent !important; }

  /* плавающая кнопка «Загрузить» */
  #dropdown:not(.active) { transform: none !important; background: transparent !important; box-shadow: none !important; border: 0 !important; width: 0; height: 0; overflow: visible; padding: 0 !important; }
  #dropdown:not(.active) > .action { display: none !important; }
  #dropdown:not(.active) > #upload-button {
    display: flex !important; position: fixed;
    right: 18px; bottom: calc(104px + env(safe-area-inset-bottom));
    width: 58px; height: 58px; border-radius: 20px !important; z-index: 80;
    box-shadow: 0 14px 30px rgba(63,175,138,.34), inset 0 1px 0 rgba(255,255,255,.35) !important;
  }
  #dropdown:not(.active) > #upload-button i { font-size: 26px; }
  #dropdown:not(.active) > #upload-button span { display: none !important; }
  #dropdown.active > #upload-button { box-shadow: none !important; }
  .card.floating { width: calc(100vw - 24px) !important; max-width: 460px; }
  input, select, textarea, .input { font-size: 16px !important; }
  .dashboard { padding-bottom: 20px; }
  .Vue-Toastification__container.bottom-center, .Vue-Toastification__container.bottom-right { bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
}

@media (min-width: 737px) and (max-width: 1024px) {
  nav { width: 220px !important; }
  main { margin-left: 236px !important; }
}

/* ---------- упрощённые настройки ---------- */
/* вкладка «Глобальные настройки» — только через сервер */
.dashboard #nav a[href="/settings/global"] { display: none !important; }
/* профиль: только язык и пароль */
form.card:has(select[name=selectLanguage]):not(:has(#username)) p:has(> input[type=checkbox]) { display: none !important; }
/* новый/изменить пользователя: только имя, пароль, язык */
form.card:has(#username) p:has(#scope),
form.card:has(#username) .card-content > div > p:has(> input[type=checkbox]),
form.card:has(#username) .card-content > div > div { display: none !important; }
/* список пользователей: без колонки «Корень» */
.dashboard table:has(a[href^="/settings/users/"]) th:nth-child(2),
.dashboard table:has(a[href^="/settings/users/"]) th:nth-child(3),
.dashboard table:has(a[href^="/settings/users/"]) td:nth-child(2),
.dashboard table:has(a[href^="/settings/users/"]) td:nth-child(3) { display: none !important; }
.dashboard table td a i { color: var(--mint) !important; }

/* скрываем лишнее */
nav p.credits, .credits a[href*="github"] { display: none !important; }

/* ===== v3: без боковой/нижней панели, своя кнопка загрузки ===== */
nav, nav.active, header .menu-button, #upload-button,
#dropdown:not(.active) > #upload-button { display: none !important; }
main { margin: 0 auto !important; padding-left: 24px; padding-right: 24px; max-width: 1200px; padding-bottom: 120px !important; }
.dashboard { margin: 0 auto; }
@media (max-width: 736px) { main { padding-left: 12px; padding-right: 12px; } }
header .bgd-hbtn { order: 3; }
