:root {
  color-scheme: dark;
  --bg: #111716;
  --panel: #17201e;
  --line: #2b3531;
  --text: #e6eae5;
  --muted: #8d9c94;
  --green: #c2f681;
  --danger: #efa7a0;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  background: #202a26;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #314035;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.primary {
  background: var(--green);
  color: #172410;
  border-color: var(--green);
  font-weight: 650;
}
.primary:hover {
  background: #d6ffab;
}
.danger {
  color: var(--danger);
}
[hidden] {
  display: none !important;
}
aside {
  width: 244px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 37px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.brand small {
  font-size: 8px;
  color: var(--muted);
  display: block;
  letter-spacing: 2px;
  margin-top: 5px;
}
.logo {
  color: var(--green);
  font-size: 31px;
  line-height: 32px;
}
.logo span {
  font-size: 23px;
  margin-left: -5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #6d8176;
  margin: 56px 12px 16px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  text-align: left;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 14px 15px;
}
nav button span {
  margin-left: 14px;
}
nav button.active {
  background: #29382a;
  color: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.private-dot {
  color: #c5d8c2;
}
.private-dot:before,
.server i {
  content: "";
  display: inline-block;
  background: var(--green);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}
.sidebar-bottom p {
  line-height: 1.8;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-bottom button {
  display: block;
  padding: 7px 0;
  border: 0;
  background: none;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}
main {
  margin-left: 244px;
  padding: 0 48px 35px;
  flex: 1;
  min-width: 0;
}
header {
  height: 91px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.server {
  font-family: monospace;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 11px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 42px 0 28px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.3px;
  color: var(--green);
  font-weight: 600;
}
h1 {
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -1.8px;
  margin: 10px 0;
}
h1 span {
  color: var(--green);
}
p {
  color: var(--muted);
  line-height: 1.7;
}
.title-row p {
  margin: 7px 0;
  font-size: 12px;
}
.top-actions {
  display: flex;
  gap: 10px;
}
.disk {
  display: flex;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #1c2820, #18201e);
  border-radius: 12px;
  padding: 25px 28px;
  margin-bottom: 32px;
}
.disk-icon {
  font-size: 33px;
  color: var(--green);
  background: #283b28;
  padding: 10px 15px;
  border-radius: 12px;
}
.disk-main {
  flex: 1;
}
.disk-name {
  font-weight: 550;
  font-size: 13px;
}
.disk-name span {
  font-size: 9px;
  background: #31402e;
  color: var(--green);
  padding: 4px 7px;
  border-radius: 4px;
  margin-left: 8px;
}
.disk-bar {
  height: 5px;
  background: #33412f;
  margin: 18px 0 10px;
  border-radius: 8px;
  overflow: hidden;
}
.disk-bar div {
  height: 100%;
  background: var(--green);
  width: 0;
}
.disk-caption {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.disk-caption span:last-child {
  font-family: monospace;
}
.disk-free {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  margin-left: 10px;
}
.disk-free strong {
  font-size: 26px;
  display: block;
  font-weight: 500;
  letter-spacing: -1px;
}
.disk-free span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.browser {
  background: #151d1a;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.browser-tools {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
#breadcrumbs {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
#breadcrumbs button {
  padding: 4px 6px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
#breadcrumbs button:last-child {
  color: var(--text);
}
.search {
  display: flex;
  align-items: center;
  gap: 5px;
}
.search span {
  font-size: 23px;
  color: var(--muted);
}
input,
textarea {
  background: #111815;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  padding: 11px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: var(--green);
}
.search input {
  background: none;
  border: 0;
  width: 180px;
  font-size: 11px;
}
.search button {
  border: 0;
  background: none;
  font-size: 20px;
  padding: 4px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  padding: 17px 22px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #7d9185;
  font-weight: 600;
}
td {
  padding: 16px 22px;
  border-top: 1px solid #25312a;
  font-size: 11px;
  color: var(--muted);
}
th:first-child {
  width: 52%;
}
td:first-child {
  color: var(--text);
}
tr:hover td {
  background: #1c2720;
}
.file-name {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 170px;
}
.file-name button {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
}
.file-icon {
  font-size: 23px;
  width: 28px;
  color: #c5d697;
  flex-shrink: 0;
}
.file-icon.video {
  color: #acb6e4;
}
.file-icon.image {
  color: #dbb780;
}
.badge {
  font-size: 8px;
  color: #b9b59b;
  background: #2e3023;
  padding: 4px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.row-actions button,
.row-actions a {
  padding: 5px 8px;
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.row-actions button:hover,
.row-actions a:hover {
  color: var(--green);
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
footer button {
  padding: 3px 9px;
  margin: 0 5px;
  background: none;
}
.footnote {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  color: #6f8275;
  font-size: 9px;
  letter-spacing: 0.3px;
}
#empty {
  text-align: center;
  padding: 50px 20px;
}
#empty > span {
  font-size: 40px;
  color: var(--green);
}
#empty h3 {
  font-size: 17px;
  font-weight: 500;
}
#empty p {
  font-size: 12px;
}
#login {
  padding: 100px 0;
}
#login h1 {
  font-size: 70px;
  line-height: 1.05;
  margin: 25px 0;
}
#login .button {
  display: inline-block;
  margin: 24px 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.notice {
  background: #2b2c21;
  padding: 12px 22px;
  color: #cec79f;
  font-size: 12px;
}
dialog {
  background: #1a231f;
  border: 1px solid #445440;
  border-radius: 14px;
  color: var(--text);
  width: min(850px, 92vw);
  padding: 24px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #050c09c9;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
h2 {
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
  margin: 0;
}
.dialog-head button {
  border: none;
  background: none;
  font-size: 24px;
  padding: 0 8px;
}
#dialog-body input {
  width: 100%;
}
#dialog-body textarea {
  width: 100%;
  height: 48vh;
  font: 12px/1.6 monospace;
  tab-size: 2;
}
#dialog-body img,
#dialog-body video {
  max-width: 100%;
  max-height: 60vh;
  display: block;
  margin: auto;
}
#dialog-body audio {
  width: 100%;
}
#dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #d2eead;
  color: #15210e;
  padding: 14px 22px;
  border-radius: 8px;
  z-index: 20;
  max-width: 90vw;
  box-shadow: 0 6px 35px #0006;
}
#progress {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #253226;
  border: 1px solid #4c6542;
  padding: 20px;
  border-radius: 10px;
  width: 360px;
  z-index: 10;
}
#progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
#progress-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
progress {
  width: 100%;
  accent-color: var(--green);
  height: 6px;
  margin: 15px 0;
}
#progress small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
body.dragging .browser {
  outline: 2px dashed var(--green);
  outline-offset: 6px;
}
@media (min-width: 1550px) {
  main {
    padding-left: 75px;
    padding-right: 75px;
  }
}
@media (max-width: 1050px) {
  aside {
    width: 200px;
    padding: 30px 14px;
  }
  main {
    margin-left: 200px;
    padding: 0 25px 25px;
  }
  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .disk {
    gap: 15px;
    padding: 20px;
  }
  .disk-free {
    padding-left: 15px;
  }
  .disk-free strong {
    font-size: 22px;
  }
}
@media (max-width: 700px) {
  body {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    margin-top: 20px;
    overflow-x: auto;
  }
  nav button {
    padding: 10px;
    white-space: nowrap;
    font-size: 11px;
  }
  nav button span {
    margin-left: 4px;
  }
  .brand {
    font-size: 17px;
  }
  main {
    margin-left: 0;
    padding: 0 16px 20px;
  }
  header {
    height: 60px;
    font-size: 10px;
  }
  .title-row {
    margin: 28px 0 22px;
  }
  h1 {
    font-size: 36px;
  }
  .disk-icon {
    display: none;
  }
  .disk {
    padding: 20px 15px;
  }
  .disk-free {
    margin-left: 0;
  }
  .disk-free strong {
    font-size: 18px;
  }
  .disk-caption {
    font-size: 9px;
  }
  .disk-caption span:last-child {
    display: none;
  }
  .browser-tools {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .search input {
    width: 100%;
  }
  th,
  td {
    padding: 13px 12px;
  }
  td:nth-child(3),
  th:nth-child(3) {
    display: none;
  }
  .footnote span:last-child {
    display: none;
  }
  #login {
    padding: 55px 0;
  }
  #login h1 {
    font-size: 48px;
  }
  #progress {
    width: calc(100vw - 32px);
    right: 16px;
  }
  .top-actions {
    width: 100%;
  }
  .top-actions button {
    flex: 1;
    font-size: 12px;
  }
}
