﻿.app-folder {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #11161d;
  overflow: hidden;
}

.modal-card[data-modal="products"] .modal-body {
  padding: 0;
  background: transparent;
}

.explorer-tab-group {
  min-width: 0;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.24rem;
}

.explorer-tabs {
  min-height: 1.9rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0 0 0 0.16rem;
  border: none;
  background: #252033;
  position: relative;
}

.explorer-tabs.modal-titlebar {
  border: none;
}

.explorer-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border: none;
  pointer-events: none;
}

.explorer-tab {
  min-height: 1.62rem;
  min-width: 7.2rem;
  border: none;
  border-radius: 0.42rem 0.42rem 0 0;
  background: #252033;
  color: #f2f6ff;
  font-size: 0.66rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.46rem;
  padding: 0 0.56rem;
  cursor: default;
  line-height: 1.1;
}

.explorer-tab-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

#explorerTabTitle {
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-tab-icon {
  width: 0.98rem;
  height: 0.98rem;
  filter: none;
  flex: 0 0 auto;
}

.explorer-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  min-height: 1rem;
  padding: 0 0.14rem;
  border-radius: 0.2rem;
  color: #d7deee;
  font-size: 0.66rem;
  line-height: 1.1;
  pointer-events: auto;
}

.explorer-tab-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.explorer-tab-close:active {
  background: rgba(255, 255, 255, 0.07);
}

.explorer-tab.is-active {
  background: #223041;
}

.explorer-tab-new {
  width: 1.58rem;
  height: 1.58rem;
  border: none;
  border-radius: 0.3rem;
  background: #1a2129;
  color: #d9e8ff;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.explorer-tab-new:hover {
  background: #29343f;
}

.explorer-tabs .win-controls {
  flex: 0 0 auto;
}

.explorer-tabs .win-btn {
  width: 2.18rem;
  height: 1.9rem;
  font-size: 0.78rem;
}

.explorer-topbar {
  display: grid;
  grid-template-columns: repeat(4, 1.7rem) minmax(0, 1fr);
  gap: 0.26rem;
  align-items: center;
  padding: 0.2rem 0.2rem 0.2rem 0.16rem;
  background: #223041;
  border-bottom: 1px solid rgba(168, 189, 215, 0.24);
}

.exp-nav-btn {
  height: 1.7rem;
  border: none;
  border-radius: 0.34rem;
  background: transparent;
  color: #d9e9ff;
  font-size: 0.74rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.exp-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.exp-nav-btn:active {
  background: rgba(255, 255, 255, 0.07);
}

.exp-nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.explorer-address {
  min-width: 0;
  height: 1.7rem;
  border: none;
  border-radius: 0.34rem;
  background: #1e262e;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0 0.5rem;
  overflow: hidden;
}

.address-seg {
  color: #d8e8ff;
  font-size: 0.64rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.address-seg[hidden] {
  display: none !important;
}

.address-seg:not(:last-child)::after {
  content: ">";
  color: #89a7cf;
  margin-left: 0.16rem;
}

.address-seg.is-current {
  color: #ffffff;
  font-weight: 400;
}

.explorer-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0;
}

.explorer-nav {
  min-height: 0;
  overflow: auto;
  border: none;
  background: #14191f;
  padding: 0.6rem 0.22rem 0.22rem;
  display: grid;
  gap: 0.08rem;
  align-content: start;
}

.explorer-nav-item {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 0.28rem;
  min-height: 1.56rem;
  background: transparent;
  color: #d7e8ff;
  padding: 0 0.44rem;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.34rem;
  white-space: nowrap;
  overflow: hidden;
}

.explorer-nav-item::before {
  content: "";
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 0;
  background-image: url("../../icons/file-icons/explorer-home-ms.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex: 0 0 auto;
}

.explorer-nav-item[data-explorer-folder="documents"]::before {
  background-image: url("../../icons/file-icons/explorer-documents-ms-blue.svg");
}

.explorer-nav-item[data-explorer-folder="pictures"]::before {
  background-image: url("../../icons/file-icons/explorer-pictures-ms.svg");
}

.explorer-nav-item.is-active {
  background: rgba(77, 156, 255, 0.25);
}

.explorer-nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.explorer-nav-item:active {
  background: rgba(255, 255, 255, 0.07);
}

.explorer-content {
  min-height: 0;
  overflow: auto;
  border: none;
  border-left: 1px solid rgba(168, 189, 215, 0.24);
  background: #0f141b;
  padding: 0.6rem 0 0 1rem;
  --explorer-item-width: 3.8rem;
  --explorer-item-gap-x: 0.04rem;
  --explorer-item-gap-y: 0.08rem;
}

.explorer-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--explorer-item-width));
  align-content: start;
  justify-content: start;
  justify-items: stretch;
  gap: var(--explorer-item-gap-y) var(--explorer-item-gap-x);
}

.explorer-icon-item {
  width: var(--explorer-item-width);
  height: auto;
  box-sizing: border-box;
  border: none;
  border-radius: 0.34rem;
  background: transparent;
  color: #e8f2ff;
  font-size: 0.6rem;
  padding: 0.3rem 0.16rem;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.2rem;
}

.explorer-icon-item.is-refresh-hidden {
  opacity: 0;
}

.explorer-icon-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.explorer-icon-item:active {
  background: rgba(255, 255, 255, 0.07);
}

.explorer-tabs .win-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.explorer-tabs .win-btn:active {
  background: rgba(255, 255, 255, 0.07);
}

.explorer-tabs .win-btn.win-close:hover {
  background: var(--win-red-0);
  color: #fff;
}

.explorer-tabs .win-btn.win-close:active {
  background: rgba(255, 77, 91, 0.7);
  color: #fff;
}

.explorer-icon-item:focus-visible {
  outline: 1px solid rgba(154, 203, 255, 0.85);
  outline-offset: -1px;
  background: rgba(74, 128, 211, 0.24);
}

.explorer-icon-label {
  width: 100%;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.explorer-icon-item .icon-tile {
  width: 2.5rem;
  height: 2.5rem;
}

.explorer-icon-item .icon-tile.icon-site-favicon {
  border-radius: 0.52rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.explorer-status {
  min-height: 1.36rem;
  border: none;
  background: #14191f;
  color: #a6bbd8;
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  padding: 0 0.52rem 0 0.36rem;
}

@media (max-width: 920px) {
  .explorer-content {
    --explorer-item-width: 3.7rem;
  }
}

@media (max-width: 640px) {
  .explorer-content {
    --explorer-item-width: 3.6rem;
    --explorer-item-gap-x: 0.03rem;
    --explorer-item-gap-y: 0.06rem;
  }

  .explorer-icon-item .icon-tile {
    width: 2.35rem;
    height: 2.35rem;
  }
}

