.field-hint {
  color: #766a5a;
  font-size: 0.9rem;
}

.notice,
.flash {
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.admin-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.otzar-folders-page {
  background:
    linear-gradient(180deg, rgba(248, 244, 237, 0.94), rgba(255, 252, 247, 0.98)),
    #fbf8f2;
}

.otzar-explorer-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.otzar-explorer-topbar,
.otzar-address-row,
.otzar-stats-bar,
.otzar-explorer-window,
.otzar-changes-panel,
.otzar-empty-state {
  border: 1px solid rgba(92, 71, 48, 0.16);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 45px rgba(71, 52, 31, 0.08);
}

.otzar-explorer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 238, 226, 0.82));
}

.otzar-explorer-topbar h1,
.otzar-folder-heading h2,
.otzar-changes-panel h2 {
  margin: 0;
}

.otzar-version-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.otzar-version-form select {
  min-width: 230px;
  border: 1px solid rgba(92, 71, 48, 0.2);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: #fffdf9;
  color: #3f3022;
}

.otzar-address-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.7rem;
  padding: 0.7rem;
  border-radius: 8px;
}

.otzar-toolbar-button {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(92, 71, 48, 0.18);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #eee7db);
  color: #503b25;
  text-decoration: none;
  font-weight: 800;
}

.otzar-address-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  overflow-x: auto;
  border: 1px solid rgba(92, 71, 48, 0.16);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  background: #fffefa;
  color: #463522;
  white-space: nowrap;
}

.otzar-address-bar a {
  color: inherit;
  text-decoration: none;
}

.otzar-address-bar a:hover {
  text-decoration: underline;
}

.otzar-path-separator {
  color: #9b8b76;
}

.otzar-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding: 0.65rem;
  border-radius: 8px;
}

.otzar-stats-bar span {
  border: 1px solid rgba(67, 100, 156, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #f6f9ff;
  color: #354868;
  font-size: 0.9rem;
}

.otzar-explorer-window {
  display: grid;
  grid-template-columns: minmax(210px, 275px) minmax(0, 1fr);
  min-height: 560px;
  margin-top: 0.7rem;
  overflow: hidden;
  border-radius: 8px;
}

.otzar-explorer-tree {
  border-left: 1px solid rgba(92, 71, 48, 0.12);
  background: #f7f3ea;
  overflow: auto;
}

.otzar-pane-title {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(92, 71, 48, 0.12);
  background: #eee7da;
  color: #5b452e;
  font-weight: 800;
}

.otzar-tree-list {
  display: grid;
  padding: 0.45rem;
}

.otzar-tree-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-height: 34px;
  padding: 0.35rem 0.45rem;
  padding-inline-start: calc(0.45rem + (var(--folder-depth, 0) * 0.95rem));
  border-radius: 5px;
  color: #4b3926;
  text-decoration: none;
  font-size: 0.93rem;
}

.otzar-tree-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.otzar-tree-item:hover,
.otzar-tree-item.is-active {
  background: #dbeafe;
  color: #17345f;
}

.otzar-explorer-main {
  min-width: 0;
  padding: 1rem;
  background: rgba(255, 253, 249, 0.9);
}

.otzar-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem -1rem -1rem;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid #c5d6e8;
  background: linear-gradient(180deg, #f7fbff 0%, #e7f1fb 100%);
  color: #315b82;
  font-size: 0.82rem;
}

.otzar-statusbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.otzar-folder-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.otzar-folder-heading p {
  margin: 0.2rem 0 0;
  color: #7c6e5d;
  overflow-wrap: anywhere;
}

.otzar-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.72rem;
  align-items: stretch;
}

.otzar-file-tile {
  display: grid;
  grid-template-rows: 62px auto auto auto;
  justify-items: center;
  gap: 0.25rem;
  min-height: 154px;
  padding: 0.85rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #2f261d;
  text-align: center;
  text-decoration: none;
}

.otzar-file-tile:hover,
.otzar-file-tile:focus-visible {
  border-color: #8bb9f1;
  background: #eaf3ff;
  outline: none;
}

.otzar-file-name {
  width: 100%;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.otzar-file-meta {
  color: #7c6e5d;
  font-size: 0.82rem;
}

.otzar-status-pill,
.otzar-change-type {
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: #eef2ff;
  color: #335287;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-needs_review .otzar-status-pill,
.status-unlinked .otzar-status-pill {
  background: #fff4d8;
  color: #80560f;
}

.status-duplicate .otzar-status-pill {
  background: #fee2e2;
  color: #8b1d1d;
}

.explorer-icon {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 42px;
}

.explorer-icon.is-small {
  width: 20px;
  height: 16px;
}

.explorer-icon.is-large {
  width: 50px;
  height: 38px;
}

.explorer-icon-folder::before {
  content: "";
  position: absolute;
  inset: 11px 2px 4px;
  border: 1px solid #d99b23;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffd766 0%, #f5b83e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 5px 9px rgba(128, 81, 12, 0.16);
}

.explorer-icon-folder::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 7px;
  width: 24px;
  height: 12px;
  border: 1px solid #d99b23;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #ffe08a;
}

.explorer-icon-folder.is-small::before {
  inset: 6px 1px 1px;
  border-radius: 2px;
}

.explorer-icon-folder.is-small::after {
  top: 2px;
  right: 3px;
  width: 10px;
  height: 6px;
  border-radius: 2px 2px 0 0;
}

.explorer-icon-media::before {
  content: "";
  position: absolute;
  inset: 2px 9px 3px;
  border: 1px solid #9aa8bb;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #e8eef6);
  box-shadow: 0 5px 9px rgba(47, 67, 94, 0.12);
}

.explorer-icon-media::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 24px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 12px solid #3f6fb3;
}

.explorer-icon-folder-open::before {
  content: "";
  position: absolute;
  inset: 15px 1px 4px;
  transform: skewX(-9deg);
  border: 1px solid #d99b23;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffd56e, #eaa83a);
}

.otzar-empty-folder,
.otzar-empty-state {
  display: grid;
  place-items: center;
  gap: 0.65rem;
  min-height: 260px;
  padding: 2rem;
  color: #766a5a;
  text-align: center;
}

.otzar-changes-panel {
  margin-top: 0.9rem;
  padding: 1rem;
  border-radius: 8px;
}

.otzar-change-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.7rem;
}

.otzar-change-item {
  border: 1px solid rgba(92, 71, 48, 0.12);
  border-radius: 6px;
  padding: 0.8rem;
  background: rgba(255, 253, 249, 0.88);
}

.otzar-change-item h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1rem;
}

.otzar-change-item p,
.otzar-change-item small {
  color: #766a5a;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .otzar-explorer-shell {
    width: min(100% - 1rem, 1180px);
    margin-top: 1rem;
  }

  .otzar-explorer-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .otzar-version-form {
    align-items: stretch;
    flex-direction: column;
  }

  .otzar-version-form select {
    min-width: 0;
    width: 100%;
  }

  .otzar-explorer-window {
    grid-template-columns: 1fr;
  }

  .otzar-explorer-tree {
    max-height: 220px;
    border-left: 0;
    border-bottom: 1px solid rgba(92, 71, 48, 0.12);
  }

  .otzar-content-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  }
}

/* Windows-like explorer polish for Otzar folders. */
.otzar-explorer-shell {
  color-scheme: light;
}

.otzar-explorer-topbar {
  border-color: #b7c7dc;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f2ff 52%, #d9eafc 100%);
  box-shadow: inset 0 1px 0 #fff, 0 16px 34px rgba(35, 79, 130, 0.12);
}

.otzar-explorer-topbar h1 {
  color: #123a63;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.otzar-address-row,
.otzar-stats-bar,
.otzar-explorer-window {
  border-color: #b7c7dc;
  background: #f8fbff;
  box-shadow: 0 12px 26px rgba(31, 63, 98, 0.1);
}

.otzar-toolbar-button {
  border-color: #aabbd0;
  background: linear-gradient(180deg, #ffffff 0%, #e9f0f8 100%);
  color: #1d4772;
}

.otzar-address-bar {
  border-color: #9fb9d4;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(32, 74, 120, 0.08);
}

.otzar-stats-bar span {
  border-radius: 4px;
  border-color: #b9cfe8;
  background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
  color: #204d79;
}

.otzar-explorer-window {
  border-radius: 4px;
  background: #fff;
}

.otzar-explorer-tree {
  background: linear-gradient(180deg, #f3f8ff 0%, #eaf3fd 100%);
  border-left-color: #c5d6e8;
}

.otzar-pane-title {
  background: linear-gradient(180deg, #e9f3ff 0%, #d6e8fb 100%);
  color: #1f4d7a;
  border-bottom-color: #b8cde2;
}

.otzar-tree-item {
  border: 1px solid transparent;
  border-radius: 3px;
}

.otzar-tree-item:hover {
  border-color: #b8d6fb;
  background: #e7f2ff;
}

.otzar-tree-item.is-active {
  border-color: #7db4f4;
  background: linear-gradient(180deg, #dcedff 0%, #c7e0ff 100%);
  color: #123a63;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}

.otzar-explorer-main {
  background:
    linear-gradient(90deg, rgba(231, 241, 253, 0.45) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  background-size: 28px 28px, auto;
}

.otzar-file-tile {
  border-radius: 3px;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.otzar-file-tile:hover,
.otzar-file-tile:focus-visible {
  border-color: #7db4f4;
  background: linear-gradient(180deg, #eef7ff 0%, #dceeff 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.otzar-file-tile:active {
  border-color: #2f75c2;
  background: #c9e3ff;
}

.explorer-icon-folder::before {
  border-color: #c68a12;
  background: linear-gradient(180deg, #ffe48b 0%, #ffc52f 48%, #eaa116 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 5px 9px rgba(85, 74, 26, 0.18);
}

.explorer-icon-folder::after {
  border-color: #c68a12;
  background: linear-gradient(180deg, #fff0a8 0%, #ffd25d 100%);
}

.explorer-icon-media::before {
  border-color: #8ea7c3;
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 0 76%, #d7e7f8 77% 100%),
    linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
}

.explorer-icon-media::after {
  border-right-color: #2f75c2;
}

.otzar-file-meta,
.otzar-folder-heading p,
.otzar-change-item p,
.otzar-change-item small {
  color: #526b84;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-section-heading h2 {
  margin: 0 0 0.25rem;
}

.admin-import-help,
.trash-impact-preview {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--muted);
}

.admin-path-cell {
  max-width: 460px;
  overflow-wrap: anywhere;
}

.admin-danger-confirm {
  display: inline-grid;
  gap: 0.5rem;
}

.admin-danger-confirm > summary {
  list-style: none;
  cursor: pointer;
}

.admin-danger-confirm > summary::-webkit-details-marker {
  display: none;
}

.danger-text {
  color: #9b2f2f;
  font-weight: 800;
}

.trash-dependency-list {
  margin: 0.5rem 0 0;
  padding-inline-start: 1.2rem;
}

.trash-row.severity-medium {
  background: #fffaf0;
}

.trash-row.severity-critical {
  background: #fff1f1;
}

/* Stronger Windows Explorer look for Otzar folders. */
.otzar-folders-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.82), transparent 30%),
    linear-gradient(180deg, #eaf3fc 0%, #f7fbff 45%, #fffaf3 100%);
}

.otzar-explorer-shell {
  border: 1px solid #9fb8d3;
  border-radius: 7px;
  background: #f6f9fd;
  box-shadow:
    0 24px 60px rgba(26, 64, 108, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.otzar-explorer-topbar {
  position: relative;
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 0.95rem 1.2rem 0.9rem;
}

.otzar-explorer-topbar::after {
  content: "";
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline-end: 0.85rem;
  width: 76px;
  height: 18px;
  border: 1px solid rgba(75, 111, 152, 0.32);
  border-radius: 0 0 4px 4px;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(75, 111, 152, 0.2) 32% 34%, transparent 34% 65%, rgba(75, 111, 152, 0.2) 65% 67%, transparent 67%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(219,233,249,0.76));
  opacity: 0.72;
  pointer-events: none;
}

.otzar-address-row,
.otzar-stats-bar,
.otzar-explorer-window,
.otzar-changes-panel,
.otzar-empty-state {
  margin-inline: 0.7rem;
}

.otzar-address-row {
  grid-template-columns: 38px minmax(0, 1fr);
  border-radius: 4px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5fe 100%);
}

.otzar-toolbar-button {
  width: 34px;
  height: 30px;
  border-radius: 3px;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 #fff;
}

.otzar-toolbar-button:hover {
  border-color: #6ba4e8;
  background: linear-gradient(180deg, #fafdff 0%, #dceeff 100%);
}

.otzar-address-bar {
  min-height: 30px;
  border-radius: 3px;
  font-size: 0.92rem;
}

.otzar-stats-bar {
  align-items: center;
  min-height: 34px;
  border-radius: 4px;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(180deg, #fafdff 0%, #edf6ff 100%);
}

.otzar-stats-bar span {
  border-radius: 3px;
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
}

.otzar-explorer-window {
  min-height: 590px;
  margin-bottom: 0.7rem;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.8),
    0 12px 22px rgba(47, 82, 120, 0.1);
}

.otzar-explorer-tree {
  border-left: 1px solid #b9cce0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), transparent 85px),
    #eef6ff;
}

.otzar-pane-title {
  min-height: 34px;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
}

.otzar-tree-list {
  padding: 0.35rem;
}

.otzar-tree-item {
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 28px;
  padding-block: 0.22rem;
  font-size: 0.88rem;
}

.otzar-tree-item .explorer-icon.is-small {
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.8));
}

.otzar-explorer-main {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}

.otzar-folder-heading {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 72px;
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #d8e4f1;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fe 100%);
}

.otzar-folder-heading h2 {
  color: #173d67;
  font-size: 1.12rem;
}

.otzar-folder-heading p {
  font-size: 0.82rem;
}

.otzar-content-grid {
  flex: 1 1 auto;
  grid-template-columns: repeat(auto-fill, minmax(118px, 138px));
  justify-content: start;
  gap: 0.42rem;
  padding: 0.8rem;
  background:
    linear-gradient(90deg, rgba(222, 233, 246, 0.32) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(222, 233, 246, 0.22) 0 1px, transparent 1px 100%),
    #fff;
  background-size: 26px 26px;
}

.otzar-file-tile {
  grid-template-rows: 56px minmax(34px, auto) 18px 22px;
  min-height: 138px;
  padding: 0.58rem 0.45rem;
  border-radius: 2px;
}

.otzar-file-tile:hover,
.otzar-file-tile:focus-visible {
  background: rgba(211, 233, 255, 0.78);
}

.otzar-file-name {
  display: -webkit-box;
  min-height: 2.55em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.86rem;
  font-weight: 700;
}

.otzar-file-meta {
  font-size: 0.74rem;
}

.otzar-status-pill {
  align-self: center;
  border: 1px solid rgba(66, 107, 156, 0.18);
  border-radius: 3px;
  padding: 0.12rem 0.42rem;
  font-size: 0.68rem;
}

.explorer-icon {
  width: 50px;
  height: 40px;
}

.explorer-icon.is-large {
  width: 40px;
  height: 31px;
}

.explorer-icon-folder::before {
  inset: 12px 2px 4px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.32), transparent 52%),
    linear-gradient(180deg, #ffe889 0%, #ffc83d 47%, #e79d10 100%);
}

.explorer-icon-folder::after {
  top: 6px;
  right: 7px;
  width: 22px;
  height: 11px;
  border-radius: 3px 3px 0 0;
}

.explorer-icon-media::before {
  inset: 1px 9px 4px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 7px rgba(42, 64, 91, 0.16);
}

.explorer-icon-media::after {
  top: 14px;
  right: 23px;
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-right-width: 11px;
}

.otzar-statusbar {
  flex: 0 0 auto;
  margin: 0;
  min-height: 26px;
  padding: 0.28rem 0.7rem;
  border-top-color: #b8cde2;
  background: linear-gradient(180deg, #f7fbff 0%, #e7f1fb 100%);
}

.otzar-changes-panel {
  margin-bottom: 0.7rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.84);
}

@media (max-width: 820px) {
  .otzar-explorer-shell {
    border-radius: 0;
  }

  .otzar-explorer-topbar::after {
    display: none;
  }

  .otzar-address-row,
  .otzar-stats-bar,
  .otzar-explorer-window,
  .otzar-changes-panel,
  .otzar-empty-state {
    margin-inline: 0.45rem;
  }

  .otzar-content-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  }
}

/* Explorer command row and richer file-type polish. */
.otzar-command-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.7rem 0.7rem 0;
  min-height: 38px;
  padding: 0.32rem 0.42rem;
  border: 1px solid #b7c7dc;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: inset 0 1px 0 #fff;
}

.otzar-command-button {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 29px;
  padding: 0.25rem 0.58rem;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #173d67;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.otzar-command-button:hover,
.otzar-command-button:focus-visible {
  border-color: #8dbef4;
  background: linear-gradient(180deg, #fafdff 0%, #dceeff 100%);
  outline: none;
}

.otzar-command-button.is-disabled {
  color: #7d8c9c;
  opacity: 0.62;
}

.otzar-command-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #c3d4e7;
  border-radius: 3px;
  background: #fff;
  color: #2f75c2;
  font-size: 0.9rem;
  line-height: 1;
}

.otzar-command-spacer {
  flex: 1 1 auto;
}

.otzar-command-count {
  padding-inline: 0.45rem;
  color: #526b84;
  font-size: 0.82rem;
}

.otzar-toolbar-button {
  color: transparent;
  font-size: 0;
}

.otzar-toolbar-button::before {
  content: "\2302";
  color: #1d4772;
  font-size: 1rem;
  line-height: 1;
}

.otzar-file-tile.is-folder {
  background: rgba(255, 251, 232, 0.34);
}

.otzar-file-tile.is-folder:hover,
.otzar-file-tile.is-folder:focus-visible {
  background: linear-gradient(180deg, #fff7c9 0%, #dceeff 100%);
}

.otzar-file-tile.is-file .explorer-icon-media::before {
  background:
    linear-gradient(135deg, transparent 0 73%, #d7e7f8 74% 100%),
    linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
}

.otzar-file-tile.ext-mp3 .explorer-icon-media::after,
.otzar-file-tile.ext-wav .explorer-icon-media::after,
.otzar-file-tile.ext-m4a .explorer-icon-media::after {
  content: "\266A";
  top: 13px;
  right: 21px;
  width: auto;
  height: auto;
  border: 0;
  color: #2f75c2;
  font-size: 1.1rem;
  font-weight: 900;
}

.otzar-file-tile.ext-mp4 .explorer-icon-media::after,
.otzar-file-tile.ext-mov .explorer-icon-media::after,
.otzar-file-tile.ext-webm .explorer-icon-media::after {
  top: 14px;
  right: 22px;
  border-right-color: #2f75c2;
}

.otzar-file-tile.ext-pdf .explorer-icon-media::after {
  content: "PDF";
  top: 15px;
  right: 13px;
  width: 28px;
  height: 14px;
  border: 0;
  border-radius: 2px;
  background: #d93025;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
}

.otzar-file-tile.ext-doc .explorer-icon-media::after,
.otzar-file-tile.ext-docx .explorer-icon-media::after,
.otzar-file-tile.ext-txt .explorer-icon-media::after {
  content: "";
  top: 13px;
  right: 17px;
  width: 20px;
  height: 12px;
  border: 0;
  background:
    linear-gradient(#5f8ed4, #5f8ed4) 0 0 / 100% 2px no-repeat,
    linear-gradient(#9ebbe3, #9ebbe3) 0 5px / 100% 2px no-repeat,
    linear-gradient(#9ebbe3, #9ebbe3) 0 10px / 70% 2px no-repeat;
}

@media (max-width: 820px) {
  .otzar-command-bar {
    margin-inline: 0.45rem;
    overflow-x: auto;
  }

  .otzar-command-count {
    white-space: nowrap;
  }
}
