/* Bezopasno Files — a calm, work-focused file manager theme. */
:root,
body,
body.dark-mode {
  color-scheme: light;
  --bg-color: #ffffff;
  --color: #172033;
  --emphasis: #334155;
  --primary: #2563eb;
  --emphasis-primary: #dbeafe;
  --emphasis-secondary: #1d4ed8;
  --light: #64748b;
  --super-light: #f8fafc;
  --error: #dc2626;
  --success: #059669;
  --dark: #172033;
  --surface: #f7f9fc;
  --border: #e3e8f0;
  --bz-blue-soft: #eaf2ff;
  --bz-sidebar: #f7f9fc;
  --bz-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html,
body,
body.dark-mode {
  background: #f7f9fc !important;
  color: #172033 !important;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  color: #172033;
}

body.dark-mode img,
body.dark-mode .component_icon,
body.dark-mode component-icon img {
  filter: none;
}

/* Application shell */
.component_filemanager_shell,
body.dark-mode .component_filemanager_shell {
  background: var(--bz-sidebar) !important;
}

.component_filemanager_shell > div:last-child {
  min-width: 0;
  background: #ffffff;
}

.component_filemanager_shell [data-bind="filemanager-children"],
.component_filemanager_shell component-breadcrumb:hover ~ [data-bind="filemanager-children"],
.component_filemanager_shell [data-bind="sidebar"]:hover ~ div > [data-bind="filemanager-children"] {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-radius: 16px 0 0 0 !important;
  box-shadow: var(--bz-shadow);
}

.component_page_filespage,
body.dark-mode .component_page_filespage {
  background: #ffffff !important;
}

/* Sidebar */
.component_filemanager_shell [data-bind="sidebar"] {
  width: 276px;
  min-width: 240px;
  background: var(--bz-sidebar);
}

.component_filemanager_shell .component_sidebar {
  background: var(--bz-sidebar);
  padding: 16px 12px 28px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.component_filemanager_shell .component_sidebar h3 {
  margin: 4px 8px 12px;
  padding: 0;
  min-height: 36px;
  align-items: center;
  color: #172033;
  font-size: 0.93rem;
  font-weight: 700;
  opacity: 1;
  letter-spacing: -0.01em;
}

.component_filemanager_shell .component_sidebar h3 input {
  color: #172033;
  font-weight: 700;
}

.component_filemanager_shell .component_sidebar h3 input::placeholder {
  color: #172033;
  opacity: 1;
}

.component_filemanager_shell .component_sidebar h3 img {
  padding: 8px;
  margin: 0 6px 0 -8px;
  border-radius: 10px;
}

.component_filemanager_shell .component_sidebar h3 img:hover {
  background: #e8edf5;
  filter: none !important;
}

.component_filemanager_shell .component_sidebar ul,
.component_filemanager_shell .component_sidebar [data-bind] > ul {
  margin: 0;
}

.component_filemanager_shell .component_sidebar ul li {
  padding: 0;
}

.component_filemanager_shell .component_sidebar a {
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  margin: 2px 0;
  border-radius: 10px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.3;
  transition: background-color 120ms ease, color 120ms ease;
}

.component_filemanager_shell .component_sidebar a > div {
  padding-left: 5px;
  text-transform: none;
}

.component_filemanager_shell .component_sidebar .component_icon {
  width: 18px;
  height: 18px;
  padding-right: 7px;
  opacity: 0.9;
}

body.touch-no .component_filemanager_shell .component_sidebar a:not([aria-selected="true"]):hover {
  background: #edf1f7;
  color: #172033;
  border-radius: 10px;
}

.component_filemanager_shell .component_sidebar a[aria-selected="true"],
body.dark-mode .component_filemanager_shell .component_sidebar a[aria-selected="true"] {
  background: var(--bz-blue-soft) !important;
  color: #1d4ed8 !important;
  border-radius: 10px;
  font-weight: 650;
}

.component_filemanager_shell .component_sidebar [data-bind="your-files"] {
  margin-bottom: 22px;
}

.component_filemanager_shell .resizer {
  width: 5px;
}

/* Header and breadcrumb */
.component_breadcrumb {
  min-height: 56px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #edf0f5;
}

.component_breadcrumb .breadcrumb {
  width: 100%;
}

.component_breadcrumb .breadcrumb .ul {
  align-items: center;
  padding: 6px 0;
}

.component_breadcrumb .breadcrumb .ul > span {
  padding: 6px 8px 6px 0;
}

.component_breadcrumb .component_path-element .component_path-element-wrapper {
  font-size: 1.03rem;
  font-weight: 600;
}

.component_breadcrumb .component_path-element .label,
.dark-mode .component_breadcrumb .component_path-element .label,
.dark-mode .component_breadcrumb .component_path-element a.label {
  color: #334155;
  opacity: 1;
  padding: 7px 9px;
  border-radius: 8px;
}

body.touch-no .component_path-element-wrapper a.label:hover,
body.dark-mode.touch-no .component_path-element-wrapper a.label:hover {
  color: #172033;
  background: #f1f5f9;
}

.component_breadcrumb .component_logout {
  padding-right: 18px;
}

.component_breadcrumb .component_logout .component_icon {
  width: 20px;
  height: 20px;
  padding: 8px;
  border-radius: 50%;
  opacity: 0.7;
}

.component_breadcrumb .component_logout .component_icon:hover {
  background: #eef2f7;
  opacity: 1;
}

/* Toolbar */
[is="component_submenu"] {
  margin: 0;
  top: 0;
  padding: 12px 0 8px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf0f5;
}

[is="component_submenu"]::before,
.dark-mode [is="component_submenu"]::before {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.dark-mode .scrolling [is="component_submenu"],
.scrolling [is="component_submenu"] {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e3e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

[is="component_submenu"] .component_submenu {
  align-items: center;
  padding: 0 18px;
}

[is="component_submenu"] .component_submenu .action.left,
[is="component_submenu"] .component_submenu .action.right,
.touch-no [is="component_submenu"] .component_submenu .action.right:hover {
  background: transparent;
  border-radius: 10px;
}

[is="component_submenu"] .component_submenu .action button {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 9px;
  color: #475569;
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
}

[is="component_submenu"] .component_submenu .action.left button:first-child {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.22);
}

[is="component_submenu"] .component_submenu .action.left button:first-child:hover {
  background: #1d4ed8;
}

.touch-no [is="component_submenu"] .component_submenu .action button:hover {
  background: #eef2f7;
  filter: none;
}

[is="component_submenu"] .component_submenu .action button img,
.dark-mode [is="component_submenu"] .component_submenu .action button img {
  width: 18px;
  height: 18px;
  filter: none;
}

[is="component_submenu"] .component_submenu .action form input[name="q"] {
  min-width: 220px;
  padding: 8px 10px;
  color: #172033;
  background: #f1f5f9;
  border-radius: 9px;
}

/* File list */
.component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_filesystem"],
.component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_newitem"] {
  padding: 0 18px;
}

[is="component_filesystem"] .component_filesystem {
  padding-top: 4px;
}

[is="component_filesystem"] .component_filesystem [data-type="list"] {
  gap: 0;
}

.list > .component_thing.view-list {
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
  color: #273449;
}

.list > .component_thing.view-list:first-child {
  border-top: 1px solid #edf0f5;
}

.touch-no .component_thing:hover,
.component_thing.hover,
.component_thing.highlight,
.dark-mode .component_thing:hover,
.dark-mode .component_thing.highlight {
  background: #f4f7fb !important;
  border-color: #edf0f5;
  border-radius: 8px;
}

.component_thing .file-details {
  padding: 0 10px;
  line-height: 27px;
}

.component_thing .file-details > span,
.dark-mode .component_thing .component_filename {
  color: #273449;
  font-weight: 520;
  letter-spacing: -0.01em;
}

.component_thing .component_icon {
  width: 28px;
  height: 28px;
  top: -1px;
}

.component_thing .component_datetime,
.component_thing .component_filesize {
  color: #7c899d;
  font-size: 0.82rem;
}

.component_thing .component_datetime {
  min-width: 96px;
  text-align: right;
}

.component_thing.selected .selectionOverlay {
  background: #2563eb;
  box-shadow: none;
  opacity: 0.11;
}

.component_checkbox .indicator {
  border-radius: 5px;
}

/* Grid view remains useful for image-heavy folders. */
.list > .component_thing.view-grid {
  height: 170px;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.list > .component_thing.view-grid:hover {
  border-color: #bfdbfe;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.08);
}

.list > .component_thing.view-grid .component_filename {
  left: 8px;
  right: 8px;
  bottom: 6px;
}

/* Upload action */
.component_mobilefileupload,
.component_fab,
component-fab {
  --dark: #2563eb;
}

.component_mobilefileupload button,
.component_fab button,
component-fab button {
  background: #2563eb !important;
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.24) !important;
}

/* Dialogs and login */
.component_modal,
.component_modal .modal-content,
.component_share,
.component_dropdown .dropdown_container {
  color: #172033;
  background: #ffffff;
  border-color: #e3e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.component_input,
input[type="text"],
input[type="password"],
textarea,
select {
  border-radius: 9px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25) !important;
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

@media screen and (max-width: 1100px) {
  .component_filemanager_shell [data-bind="sidebar"] {
    width: 240px;
  }

  .component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_filesystem"],
  .component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_newitem"],
  .component_filemanager_shell [data-bind="sidebar"] ~ div component-breadcrumb,
  .component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_submenu"] .component_submenu {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* v4 — Bezopasno brand, Yandex-style navigation and contextual actions. */
:root,
body,
body.dark-mode {
  --bz-page: #f3f4f6;
  --bz-surface: #ffffff;
  --bz-text: #22242a;
  --bz-muted: #8b8e96;
  --bz-selection: #edeef1;
  --bz-yellow: #ffd633;
  --bz-red: #ef1b24;
  color-scheme: light !important;
}

html,
body,
body.dark-mode {
  background: var(--bz-page) !important;
  color: var(--bz-text) !important;
  font-family: Arial, "Segoe UI", sans-serif !important;
}

/* Company identity in the left rail. */
body .bezopasno_brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin: 0 10px 14px;
  color: var(--bz-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.35px;
  white-space: nowrap;
}

body .bezopasno_brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 38px;
}

body .component_filemanager_shell,
body.dark-mode .component_filemanager_shell,
body .component_filemanager_shell [data-bind="sidebar"],
body .component_filemanager_shell .component_sidebar {
  background: var(--bz-page) !important;
}

body .component_filemanager_shell .component_sidebar {
  padding-top: 18px !important;
}

/* The first native heading behaves like the compact sidebar search control. */
body .component_filemanager_shell .component_sidebar h3 {
  min-height: 40px !important;
  margin: 0 8px 14px !important;
  padding: 0 10px !important;
  background: #ffffff !important;
  border: 1px solid #e4e5e8 !important;
  border-radius: 12px !important;
}

/* Two-level navigation: compact trail, then a distinct current-folder title. */
body .component_breadcrumb {
  min-height: 126px !important;
  align-items: flex-start !important;
  background: var(--bz-surface) !important;
  border: 0 !important;
}

body .component_breadcrumb .breadcrumb,
body .component_breadcrumb .breadcrumb .ul {
  width: 100% !important;
  min-height: 126px !important;
}

body .component_breadcrumb .breadcrumb .ul {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  padding: 20px 30px 12px !important;
  box-sizing: border-box !important;
}

body .component_breadcrumb [data-bind="path"] {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: calc(100% - 58px) !important;
}

body .component_breadcrumb [data-bind="path"] > .component_path-element:not(:last-child) {
  display: inline-flex !important;
  height: 28px !important;
  color: #686b73 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

body .component_breadcrumb [data-bind="path"] > .component_path-element:not(:last-child) .label {
  padding: 3px 7px !important;
  color: #686b73 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: transparent !important;
}

body .component_breadcrumb [data-bind="path"] > .component_path-element:last-child {
  display: block !important;
  width: 100% !important;
  margin-top: 19px !important;
}

body .component_breadcrumb [data-bind="path"] > .component_path-element:last-child .component_path-element-wrapper {
  display: flex !important;
  align-items: center !important;
}

body .component_breadcrumb [data-bind="path"] > .component_path-element:last-child .label {
  padding: 0 !important;
  color: var(--bz-text) !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 500 !important;
  line-height: 44px !important;
  background: transparent !important;
}

body .component_breadcrumb .bezopasno_back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  color: #555861 !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  background: #f0f1f3 !important;
  border-radius: 13px !important;
}

body .component_breadcrumb .bezopasno_back:hover {
  background: #e5e6e9 !important;
}

body .component_breadcrumb .component_logout {
  position: absolute !important;
  top: 17px !important;
  right: 18px !important;
}

/* Normal toolbar: create actions left, sorting and layout right. */
body [is="component_submenu"] {
  padding: 10px 0 8px !important;
  background: #ffffff !important;
  border: 0 !important;
}

body [is="component_submenu"] .component_submenu {
  min-height: 52px !important;
  padding: 0 26px !important;
}

body [is="component_submenu"] .component_submenu .action.left button,
body [is="component_submenu"] .component_submenu .action.right > button {
  min-height: 44px !important;
  padding: 0 18px !important;
  color: var(--bz-text) !important;
  background: #eceef1 !important;
  border: 0 !important;
  border-radius: 13px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

body [is="component_submenu"] .component_submenu .action.left button:first-child {
  background: var(--bz-yellow) !important;
}

body [is="component_submenu"] .component_submenu .action.right > button[data-action="sort"] {
  min-width: 142px !important;
}

body [is="component_submenu"] .component_submenu .action.right > button[data-action="sort"]::before {
  content: "По названию";
  margin-right: 9px;
}

/* Selection changes the toolbar into a contextual action bar. */
body [is="component_submenu"]:has(button[data-bind="clear"]) {
  position: sticky !important;
  top: 8px !important;
  z-index: 30 !important;
  margin: 8px 14px 10px !important;
  padding: 0 !important;
  background: #303138 !important;
  border-radius: 17px !important;
  box-shadow: 0 7px 22px rgba(31, 32, 37, 0.18) !important;
}

body [is="component_submenu"]:has(button[data-bind="clear"])::before {
  display: none !important;
}

body [is="component_submenu"]:has(button[data-bind="clear"]) .component_submenu {
  min-height: 68px !important;
  padding: 0 20px !important;
}

body [is="component_submenu"]:has(button[data-bind="clear"]) .action.left button,
body [is="component_submenu"]:has(button[data-bind="clear"]) .action.left button:first-child,
body [is="component_submenu"]:has(button[data-bind="clear"]) .action.right button {
  min-width: auto !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  color: #ffffff !important;
  background: transparent !important;
  border-radius: 10px !important;
}

body [is="component_submenu"]:has(button[data-bind="clear"]) .action button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

body [is="component_submenu"]:has(button[data-bind="clear"]) button[data-bind="clear"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 15px !important;
}

body [is="component_submenu"]:has(button[data-bind="clear"]) component-icon,
body [is="component_submenu"]:has(button[data-bind="clear"]) img {
  filter: brightness(0) invert(1) !important;
}

/* Yandex-like file rows. */
body .list > .component_thing.view-list,
body.dark-mode .list > .component_thing.view-list {
  min-height: 64px !important;
  margin: 1px 0 !important;
  padding: 9px 18px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
}

body .touch-no .component_thing:hover,
body.touch-no .component_thing:hover,
body .component_thing.hover,
body .component_thing.highlight,
body .component_thing.selected,
body.dark-mode .component_thing:hover,
body.dark-mode .component_thing.highlight {
  background: var(--bz-selection) !important;
}

body .component_thing.selected .selectionOverlay {
  background: var(--bz-selection) !important;
  border-radius: 12px !important;
}

@media screen and (max-width: 720px) {
  body .bezopasno_brand span {
    font-size: 17px;
  }

  body .component_breadcrumb .breadcrumb .ul {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body [is="component_submenu"] .component_submenu {
    padding: 0 12px !important;
  }

  body [is="component_submenu"]:has(button[data-bind="clear"]) .action.left button {
    padding: 0 8px !important;
    font-size: 13px !important;
  }
}

@media screen and (max-width: 720px) {
  [is="component_submenu"] .component_submenu .action button {
    padding: 8px;
  }

  .list > .component_thing.view-list {
    padding-left: 8px;
    padding-right: 8px;
  }

  .component_thing .component_datetime {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   v3 — Yandex Disk inspired operational layout.
   These rules intentionally carry higher specificity because Filestash loads
   some component styles after custom.css.
   -------------------------------------------------------------------------- */

body,
body.dark-mode {
  --bg-color: #ffffff !important;
  --color: #202124 !important;
  --light: #7a7f87 !important;
  --dark: #202124 !important;
  --border: #eceef1 !important;
  --super-light: #f7f8fa !important;
  --primary: #ffcf33 !important;
  --emphasis-primary: #fff2b8 !important;
  --emphasis-secondary: #e7b900 !important;
  --bz-sidebar: #f7f8fa !important;
  background: #eef0f2 !important;
  color: #202124 !important;
  font-family: Arial, "Segoe UI", sans-serif !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode button {
  color: #202124 !important;
}

body .component_filemanager_shell,
body.dark-mode .component_filemanager_shell {
  background: #f7f8fa !important;
}

body .component_filemanager_shell > div:last-child,
body.dark-mode .component_filemanager_shell > div:last-child {
  background: #ffffff !important;
}

body .component_filemanager_shell [data-bind="filemanager-children"],
body.dark-mode .component_filemanager_shell [data-bind="filemanager-children"],
body .component_filemanager_shell component-breadcrumb:hover ~ [data-bind="filemanager-children"],
body .component_filemanager_shell [data-bind="sidebar"]:hover ~ div > [data-bind="filemanager-children"] {
  background: #ffffff !important;
  border: 0 !important;
  border-left: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body .component_page_filespage,
body.dark-mode .component_page_filespage {
  background: #ffffff !important;
  color: #202124 !important;
}

/* Sidebar: quiet navigation surface, like the reference. */
body .component_filemanager_shell [data-bind="sidebar"] {
  width: 320px !important;
  min-width: 280px !important;
  background: #f7f8fa !important;
}

body .component_filemanager_shell .component_sidebar,
body.dark-mode .component_filemanager_shell .component_sidebar {
  padding: 22px 18px 32px !important;
  background: #f7f8fa !important;
  color: #202124 !important;
  scrollbar-color: #c9cdd3 transparent !important;
}

body .component_filemanager_shell .component_sidebar h3 {
  min-height: 46px !important;
  margin: 0 4px 18px !important;
  padding: 0 !important;
  color: #202124 !important;
  opacity: 1 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

body .component_filemanager_shell .component_sidebar h3 input,
body .component_filemanager_shell .component_sidebar h3 input::placeholder,
body.dark-mode .component_filemanager_shell .component_sidebar h3 input,
body.dark-mode .component_filemanager_shell .component_sidebar h3 input::placeholder {
  color: #202124 !important;
  opacity: 1 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

body .component_filemanager_shell .component_sidebar h3 img {
  width: 18px !important;
  height: 18px !important;
  padding: 10px !important;
  margin: 0 8px 0 -8px !important;
  filter: none !important;
}

body .component_filemanager_shell .component_sidebar ul,
body .component_filemanager_shell .component_sidebar [data-bind] > ul {
  margin: 0 !important;
}

body .component_filemanager_shell .component_sidebar ul li {
  padding: 0 !important;
}

body .component_filemanager_shell .component_sidebar a,
body.dark-mode .component_filemanager_shell .component_sidebar a {
  min-height: 42px !important;
  margin: 2px 0 !important;
  padding: 8px 12px !important;
  align-items: center !important;
  border-radius: 12px !important;
  color: #303238 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
}

body.touch-no .component_filemanager_shell .component_sidebar a:not([aria-selected="true"]):hover,
body.dark-mode.touch-no .component_filemanager_shell .component_sidebar a:not([aria-selected="true"]):hover {
  background: #eceef1 !important;
  color: #202124 !important;
}

body .component_filemanager_shell .component_sidebar a[aria-selected="true"],
body.dark-mode .component_filemanager_shell .component_sidebar a[aria-selected="true"] {
  background: #e9eaed !important;
  color: #202124 !important;
  font-weight: 600 !important;
}

body .component_filemanager_shell .component_sidebar a > div {
  padding-left: 8px !important;
  color: inherit !important;
  text-transform: none !important;
}

body .component_filemanager_shell .component_sidebar .component_icon {
  width: 20px !important;
  height: 20px !important;
  padding-right: 4px !important;
  opacity: 1 !important;
  filter: none !important;
}

/* A warm folder glyph is the only strong visual motif. */
body img.component_icon[alt="directory"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f3c84b' d='M2 6.25A2.25 2.25 0 0 1 4.25 4h4.1c.6 0 1.17.24 1.59.66L11.28 6H19.75A2.25 2.25 0 0 1 22 8.25v9.5A2.25 2.25 0 0 1 19.75 20H4.25A2.25 2.25 0 0 1 2 17.75z'/%3E%3Cpath fill='%23ffe794' d='M2 9h20v8.75A2.25 2.25 0 0 1 19.75 20H4.25A2.25 2.25 0 0 1 2 17.75z'/%3E%3C/svg%3E") !important;
  filter: none !important;
}

body .component_filemanager_shell .resizer {
  width: 1px !important;
  background: #e5e7eb !important;
}

/* Header / location bar. */
body .component_breadcrumb,
body.dark-mode .component_breadcrumb {
  min-height: 68px !important;
  background: #ffffff !important;
  border-bottom: 0 !important;
  color: #202124 !important;
}

body .component_breadcrumb .component_path-element .label,
body.dark-mode .component_breadcrumb .component_path-element .label,
body.dark-mode .component_breadcrumb .component_path-element a.label {
  padding: 8px 10px !important;
  color: #202124 !important;
  opacity: 1 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

body .component_breadcrumb .component_separator img,
body.dark-mode .component_breadcrumb .component_separator img,
body .component_breadcrumb .component_logout .component_icon {
  filter: none !important;
  opacity: 0.72 !important;
}

/* Actions: yellow upload, neutral create-folder action. */
body [is="component_submenu"],
body.dark-mode [is="component_submenu"] {
  margin: 0 !important;
  padding: 6px 0 16px !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

body [is="component_submenu"]::before,
body.dark-mode [is="component_submenu"]::before {
  background: #ffffff !important;
  backdrop-filter: none !important;
}

body [is="component_submenu"] .component_submenu {
  padding: 0 26px !important;
  align-items: center !important;
}

body [is="component_submenu"] .component_submenu .action,
body.dark-mode [is="component_submenu"] .component_submenu .action {
  background: transparent !important;
}

body [is="component_submenu"] .component_submenu .action button,
body.dark-mode [is="component_submenu"] .component_submenu .action button {
  min-height: 42px !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  color: #202124 !important;
  background: #eceef1 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  filter: none !important;
}

body [is="component_submenu"] .component_submenu .action.left button:first-child,
body.dark-mode [is="component_submenu"] .component_submenu .action.left button:first-child {
  min-width: 150px !important;
  color: #202124 !important;
  background: #ffd633 !important;
  box-shadow: none !important;
}

body [is="component_submenu"] .component_submenu .action.left button:first-child:hover {
  background: #ffcc00 !important;
}

body [is="component_submenu"] .component_submenu .action button img,
body.dark-mode [is="component_submenu"] .component_submenu .action button img {
  filter: none !important;
}

/* Main list: generous rhythm, dark text, no spreadsheet-like rules. */
body .component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_filesystem"],
body .component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_newitem"] {
  padding: 0 38px !important;
}

body [is="component_filesystem"] .component_filesystem {
  padding-top: 0 !important;
}

body .list > .component_thing.view-list,
body.dark-mode .list > .component_thing.view-list {
  min-height: 62px !important;
  padding: 12px 16px !important;
  align-items: center !important;
  color: #202124 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
}

body .touch-no .component_thing:hover,
body.touch-no .component_thing:hover,
body .component_thing.hover,
body .component_thing.highlight,
body.dark-mode .component_thing:hover,
body.dark-mode .component_thing.highlight {
  background: #f0f1f3 !important;
  border-color: transparent !important;
  border-radius: 12px !important;
}

body .component_thing .component_filename,
body.dark-mode .component_thing .component_filename,
body .component_thing .file-details,
body .component_thing .file-details > span,
body.dark-mode .component_thing .file-details > span {
  color: #202124 !important;
  opacity: 1 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

body .component_thing .file-details {
  padding: 0 16px !important;
  line-height: 30px !important;
}

body .component_thing > img.component_icon {
  width: 38px !important;
  height: 38px !important;
  top: 0 !important;
}

body .component_thing .component_datetime,
body .component_thing .component_filesize,
body.dark-mode .component_thing .component_datetime,
body.dark-mode .component_thing .component_filesize {
  color: #8a8f98 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

body .component_thing.selected .selectionOverlay {
  background: #e9eaed !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body .component_thing.selected > *:not(.selectionOverlay) {
  position: relative;
  z-index: 2;
}

body .component_mobilefileupload button,
body .component_fab button,
body component-fab button {
  background: #ffd633 !important;
  color: #202124 !important;
  box-shadow: 0 4px 14px rgba(34, 34, 34, 0.18) !important;
}

body .component_mobilefileupload button img,
body .component_fab button img,
body component-fab button img {
  filter: brightness(0) !important;
}

@media screen and (max-width: 1100px) {
  body .component_filemanager_shell [data-bind="sidebar"] {
    width: 280px !important;
  }

  body .component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_filesystem"],
  body .component_filemanager_shell [data-bind="sidebar"] ~ div [is="component_newitem"] {
    padding: 0 18px !important;
  }
}

