.button {
  transition: none;
  padding: none;
}

.browse-page {
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  color: #e8e8e8;
  background: #191919;
  line-height: 1.4;
}

.explorer-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  min-height: 420px;
  background: #191919;
}

.explorer-titlebar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 52px;
  min-height: 52px;
  padding: 0 1.25rem;
  background: #202020;
  border-bottom: 1px solid #303030;
}

.explorer-brand {
  color: #f0f0f0;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.explorer-brand:hover,
.home-link:hover {
  color: #fff;
  text-decoration: none;
}

.titlebar-divider {
  width: 1px;
  height: 20px;
  background: #454545;
}

.page-title {
  color: #d5d5d5;
  font-size: 0.9rem;
}

.home-link {
  margin-left: auto;
  color: #c8c8c8;
  font-size: 0.85rem;
  text-decoration: none;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 54px;
  padding: 0.45rem 1rem;
  background: #202020;
  border-bottom: 1px solid #303030;
}

.navigation-buttons {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.browse-page .explorer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #d7d7d7;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  box-shadow: none;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  /*transition: background 0.12s, border-color 0.12s;*/
  transition: none;
  transform: none;
}

.browse-page .explorer-button:hover:not(:disabled) {
  background: #303030;
  border-color: #414141;
  box-shadow: none;
  transition: none;
  transform: none;
}

.browse-page .explorer-button:active:not(:disabled) {
  background: #383838;
  transition: none;
  transform: none;
}

.browse-page .explorer-button:disabled {
  display: inline-flex;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #777;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  cursor: default;
  transition: none;
}

.address-bar {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 120px;
  height: 36px;
  padding: 0 0.65rem;
  overflow: hidden;
  background: #171717;
  border: 1px solid #353535;
  border-radius: 5px;
  white-space: nowrap;
}

.breadcrumb-segment {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.breadcrumb-button {
  overflow: hidden;
  padding: 0.3rem 0.45rem;
  color: #ddd;
  background: transparent;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  font: inherit;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-page .breadcrumb-button:hover {
  color: #fff;
  background: #303030;
  border: 0;
  box-shadow: none;
  transform: none;
}

.breadcrumb-separator {
  padding: 0 0.1rem;
  color: #838383;
  font-size: 1rem;
}

.explorer-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(250px, 24vw);
  min-width: 150px;
  height: 36px;
  padding: 0 0.65rem;
  color: #aaa;
  background: #171717;
  border: 1px solid #353535;
  border-radius: 5px;
  font-size: 1.15rem;
}

.explorer-search:focus-within {
  border-color: #6f9bc1;
}

.explorer-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #eee;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.84rem;
}

.explorer-search input::placeholder {
  color: #999;
}

.explorer-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.tree-pane {
  flex: 0 0 255px;
  width: 255px;
  padding: 0.8rem 0.5rem;
  overflow: auto;
  background: #1b1b1b;
  border-right: 1px solid #333;
  scrollbar-color: #555 transparent;
  scrollbar-width: thin;
}

.pane-heading {
  padding: 0.35rem 0.65rem 0.6rem;
  color: #aaa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.folder-tree,
.folder-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.folder-tree ul[hidden] {
  display: none;
}

.folder-tree ul[role="group"] {
  padding-left: 0.85rem;
}

.tree-row {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 34px;
  border-radius: 4px;
}

.tree-row:hover {
  background: #292929;
}

.tree-row.is-active {
  background: #303030;
  outline: 1px solid #424242;
}

.tree-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 30px;
  padding: 0;
  color: #aaa;
  background: transparent;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  font-size: 0.85rem;
}

.browse-page .tree-disclosure:hover {
  color: #fff;
  background: #3a3a3a;
  border: 0;
  box-shadow: none;
  transform: none;
}

.tree-disclosure.is-empty {
  visibility: hidden;
  cursor: default;
}

.tree-label {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 32px;
  gap: 0.5rem;
  padding: 0 0.4rem 0 0;
  overflow: hidden;
  color: #ddd;
  background: transparent;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  text-align: left;
  font: inherit;
  font-size: 0.85rem;
  white-space: nowrap;
}

.browse-page .tree-label:hover {
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.tree-label img,
.asset-name img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tree-label span,
.asset-name span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-pane {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  background: #191919;
}

.file-pane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #303030;
}

.browse-page .file-pane-heading h1 {
  margin: 0 0 0.15rem;
  color: #f0f0f0;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
}

.browse-page .file-pane-heading p {
  margin: 0;
  color: #999;
  font-size: 0.8rem;
}

.browse-page .retry-button {
  padding: 0.45rem 0.85rem;
  color: #e8e8e8;
  background: #303030;
  border: 1px solid #494949;
  border-radius: 5px;
  box-shadow: none;
  font-size: 0.82rem;
}

.browse-page .retry-button:hover {
  background: #393939;
  border-color: #646464;
  box-shadow: none;
  transform: none;
}

.retry-button[hidden] {
  display: none;
}

.file-list-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #555 transparent;
  scrollbar-width: thin;
}

.file-list {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
  font-size: 0.86rem;
}

.file-list thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #202020;
}

.file-list th {
  height: 36px;
  padding: 0 0.8rem;
  color: #c7c7c7;
  border-right: 1px solid #363636;
  border-bottom: 1px solid #393939;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.file-list th:last-child {
  border-right: 0;
}

.file-list .name-column {
  width: auto;
}

.file-list .type-column {
  width: 180px;
}

.file-list .size-column {
  width: 110px;
}

.file-list .asset-action-column {
  width: 96px;
  text-align: center;
}

.file-list td {
  height: 38px;
  padding: 0.3rem 0.8rem;
  color: #d0d0d0;
  border-bottom: 1px solid #292929;
  vertical-align: middle;
}

.file-list tr:hover td {
  background: #252525;
}

.file-list tr.is-selected td {
  background: #303a44;
  outline: 1px solid #617c94;
  outline-offset: -1px;
}

.file-list .size-cell {
  color: #bbb;
  text-align: right;
  white-space: nowrap;
}

.file-list .asset-action-cell {
  text-align: center;
}

.browse-page .asset-choose-button {
  margin: 0;
  padding: 0.3rem 0.55rem;
  border: 1px solid #5a7186;
  border-radius: 4px;
  background: #293b4a;
  color: #f2f6fa;
  font-size: 0.76rem;
}

.browse-page .asset-choose-button:hover {
  border-color: #8fb1ce;
  background: #385167;
  color: #fff;
  transform: none;
}

.asset-name {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 0.6rem;
  color: #e4e4e4;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 0.86rem;
  white-space: nowrap;
  padding: 0 !important;
}

.browse-page .asset-name:hover {
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

.asset-name.is-folder {
  cursor: pointer;
}

.asset-name.is-file:hover span {
  text-decoration: underline;
}

.list-message {
  height: 100px;
  color: #a7a7a7 !important;
  text-align: center;
}

.explorer-status {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 1rem;
  color: #aaa;
  background: #202020;
  border-top: 1px solid #303030;
  font-size: 0.75rem;
}

@media (max-width: 760px) {
  .explorer-toolbar {
    flex-wrap: wrap;
  }

  .address-bar {
    order: 1;
    flex-basis: calc(100% - 1.5rem);
  }

  .explorer-search {
    flex: 1;
    order: 2;
    width: auto;
  }

  .tree-pane {
    flex-basis: 190px;
    width: 190px;
  }

  .file-list .type-column {
    width: 120px;
  }

  .file-list .size-column {
    width: 80px;
  }

  .file-list .asset-action-column {
    width: 82px;
  }
}

@media (max-width: 520px) {
  .explorer-titlebar {
    gap: 0.65rem;
    padding: 0 0.75rem;
  }

  .home-link {
    font-size: 0.75rem;
  }

  .tree-pane {
    flex-basis: 145px;
    width: 145px;
  }

  .file-pane-heading {
    min-height: 68px;
    padding: 0.65rem 0.8rem;
  }

  .file-list .type-column {
    display: none;
  }

  .file-list th,
  .file-list td {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
}
