@charset "utf-8";
/* Server Rack — D:\Emulation file tree page. Sits on top of Main.css + Style.css. */

.tree-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 6px 0;
}

.tree-tools input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 6px 10px;
  font: inherit;
  color: #020202;
  background: #fff8d9;
  border: 1px solid #2d305b;
  border-radius: 0.5em;
}

.tree-tools button {
  padding: 6px 12px;
  font: inherit;
  color: #fff8d9;
  background: #2d305b;
  border: 1px solid #2d305b;
  border-radius: 0.5em;
  cursor: pointer;
}

.tree-tools button:hover,
.tree-tools button:focus-visible {
  background: #FF8600;
  border-color: #FF8600;
  color: #020202;
}

.tree-status {
  margin: 0 0 8px 0;
  font-size: 0.85em;
  color: #2d305b;
}

/* ---------- The tree ---------- */
.tree-root {
  padding: 10px 12px;
  margin-bottom: 0.5em;
  background: #fff8d9;
  border: 1px solid #2d305b;
  border-radius: 0.5em;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}

.tree-drive {
  font-weight: bold;
}

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

.tree ul {
  margin-left: 0.7em;
  padding-left: 0.9em;
  border-left: 1px dotted #2d305b;
}

.tree li {
  white-space: nowrap;
}

.tree summary {
  cursor: pointer;
  list-style: none;
}

.tree summary::-webkit-details-marker {
  display: none;
}

.tree .dir > details > summary::before {
  content: "[+] ";
  color: #FF8600;
  font-weight: bold;
}

.tree .dir > details[open] > summary::before {
  content: "[-] ";
}

.tree .dir > details > summary:hover {
  background: #FFEEA9;
}

.tree .file::before {
  content: "    ";
  white-space: pre;
}

.tree .meta {
  font-family: "Exo 2", sans-serif;
  font-size: 0.8em;
  color: #6b6f99;
  margin-left: 0.4em;
}

.tree .hidden {
  display: none;
}

@media (orientation: portrait), (max-width: 800px) {
  .tree-root { font-size: 13px; padding: 8px; }
}

/* Notes: hidden by default, shown with "Show notes" or while searching.
   Shown notes sit on their own line and wrap, so they never widen the tree. */
.tree .desc {
  display: none;
  font-family: "Exo 2", sans-serif;
  font-size: 0.85em;
  color: #2d305b;
  font-style: italic;
  white-space: normal;
  max-width: 70ch;
  margin: 0 0 0.3em 2.6em;
  line-height: 1.35;
}

.tree.show-notes .desc,
.tree.searching .desc {
  display: block;
}

/* small marker for items that have a note (hover for it as a tooltip) */
.tree li.file[title]::after,
.tree summary[title]::after {
  content: " \2022";
  color: #FF8600;
  font-weight: bold;
}

.tree.show-notes li.file[title]::after,
.tree.show-notes summary[title]::after,
.tree.searching li.file[title]::after,
.tree.searching summary[title]::after {
  content: none;
}

/* Keep long names from stretching the whole page: the tree scrolls sideways inside its own box. */
.tree-root {
  contain: inline-size;
  max-width: 100%;
}
