:root {
  --bg: #f7f6f2;
  --panel: #fff;
  --side: #efeee8;
  --text: #292c28;
  --muted: #7e817a;
  --line: #e5e6df;
  --accent: #cf5a2c;
  --tint: #f7ebe4;
  --green: #527559;
  --radius: 12px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
}
body.dark {
  --bg: #1c201e;
  --panel: #242926;
  --side: #202421;
  --text: #e6e8df;
  --muted: #a0a69c;
  --line: #373d37;
  --accent: #ef956a;
  --tint: #423328;
  --green: #97bb98;
  color-scheme: dark;
}
button,
input {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 14px;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: var(--side);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
#drop-zone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button.primary {
  background: var(--accent);
  color: var(--panel);
  border-color: var(--accent);
  font-weight: 600;
}
aside {
  position: fixed;
  width: 246px;
  height: 100vh;
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-family: "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -1.5px;
}
.wordmark span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.section-label {
  margin: 53px 9px 13px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-label button {
  border: 0;
  background: none;
  padding: 0 5px;
  font-size: 20px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  margin: 5px 0;
}
.connection.active {
  background: var(--panel);
  box-shadow: 0 2px 7px #00000004;
}
.connection .bucket-symbol {
  color: var(--accent);
  font-size: 23px;
}
.connection strong {
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
}
.connection small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.disconnect {
  font-size: 11px;
  background: none;
  border: none;
  color: var(--muted);
  padding: 0 12px;
}
.connect-button {
  margin-top: 18px;
  border-style: dashed;
  background: transparent;
  font-size: 12px;
  padding: 12px 0;
}
.side-bottom {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}
.side-bottom p {
  margin: 15px 0 22px;
}
.side-bottom button {
  font-size: 11px;
  background: transparent;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
}
main {
  margin-left: 246px;
  max-width: 1550px;
  padding: 55px 48px 25px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}
.eyebrow {
  font-family: "Avenir Next", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 600;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 11px 0;
}
header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1px;
  white-space: nowrap;
}
.workspace {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 470px;
}
.toolbar {
  padding: 22px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}
.search-wrap span {
  font-size: 23px;
  color: var(--muted);
}
input {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
}
.search-wrap input {
  border: 0;
  padding: 6px;
  font-size: 13px;
  max-width: 300px;
}
.path-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  color: var(--muted);
  font-size: 11px;
  gap: 15px;
}
#breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
#breadcrumbs button {
  padding: 3px 5px;
  background: none;
  border: 0;
  font-size: 12px;
}
#count {
  white-space: nowrap;
}
#drop-zone {
  margin: 3px 24px 22px;
  padding: 22px;
  border: 1px dashed #d9dcd1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  cursor: pointer;
}
#drop-zone.drag {
  border-color: var(--accent);
  background: var(--tint);
}
.upload-symbol {
  font-size: 25px;
  color: var(--accent);
  width: 43px;
  height: 43px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  line-height: 43px;
}
#drop-zone strong {
  font-size: 13px;
  font-weight: 500;
}
#drop-zone p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
.drop-label {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}
th {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  background: var(--bg);
  padding: 10px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
th:first-child {
  width: 46%;
}
th:nth-child(2) {
  width: 14%;
}
th:nth-child(3) {
  width: 23%;
}
th:last-child {
  width: 17%;
}
td {
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
td:nth-child(2),
td:nth-child(3) {
  color: var(--muted);
  font-size: 11px;
}
td button {
  border: none;
  padding: 3px 7px;
  background: none;
  font-size: 11px;
}
td button.download {
  color: var(--accent);
}
td:last-child {
  white-space: nowrap;
  text-align: right;
  padding-left: 0;
}
.actions-heading {
  text-align: right;
}
.file-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-icon {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 5px;
  min-width: 34px;
  text-align: center;
}
.folder-icon {
  color: var(--accent);
  background: var(--tint);
  border-color: transparent;
}
.file-name button {
  font-size: 12px;
  text-align: left;
  padding: 0;
  overflow-wrap: anywhere;
}
#empty {
  text-align: center;
  padding: 45px 20px 60px;
}
#empty h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 13px 0 5px;
}
#empty p {
  font-size: 12px;
  color: var(--muted);
}
.empty-mark {
  font-size: 35px;
  color: var(--muted);
}
#more {
  display: block;
  margin: 20px auto;
}
#more[hidden],
[hidden] {
  display: none !important;
}
footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-top: 24px;
  letter-spacing: 1px;
}
footer b {
  padding: 0 8px;
  font-weight: 400;
}
#transfers {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-top: 20px;
}
.transfer-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.transfer-title h2 {
  font-size: 13px;
  font-weight: 500;
}
.transfer-title button {
  font-size: 10px;
  border: 0;
}
.transfer {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.transfer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.transfer-name {
  overflow-wrap: anywhere;
  font-weight: 500;
}
.transfer-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.transfer-actions button {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  cursor: pointer;
}
progress {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  accent-color: var(--accent);
  display: block;
  margin: 6px 0;
}
.transfer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.transfer-status {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.transfer-speed {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--panel);
  padding: 12px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #0002;
  max-width: 90%;
  z-index: 5;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 490px;
  width: calc(100% - 32px);
  padding: 28px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #19241c70;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-top h2 {
  font-size: 24px;
  margin: 8px 0 0;
}
.dialog-top button {
  border: 0;
  font-size: 22px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
label {
  display: block;
  font-size: 12px;
  margin-top: 13px;
}
label input {
  margin-top: 5px;
}
.credential-note {
  color: var(--muted);
  font-size: 11px;
  background: var(--bg);
  padding: 12px;
  border-radius: 6px;
}
#connection-error {
  font-size: 12px;
  color: var(--accent);
}
#submit-connection {
  width: 100%;
}
@media (max-width: 1050px) {
  main {
    padding: 38px 26px;
  }
  aside {
    width: 215px;
  }
  main {
    margin-left: 215px;
  }
  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }
  .drop-label {
    display: none;
  }
  th:nth-child(3),
  td:nth-child(3) {
    display: none;
  }
  th:first-child {
    width: 55%;
  }
  th:last-child {
    width: 27%;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    height: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .wordmark {
    font-size: 23px;
  }
  .wordmark span {
    font-size: 9px;
  }
  .section-label {
    margin: 20px 5px 4px;
  }
  #connections {
    display: flex;
    gap: 8px;
    overflow: auto;
  }
  .connection {
    min-width: 160px;
    width: auto;
  }
  .connect-button {
    margin-top: 8px;
    padding: 9px;
  }
  .side-bottom {
    display: none;
  }
  main {
    margin: 0;
    padding: 25px 16px;
  }
  header {
    margin-bottom: 22px;
    gap: 10px;
  }
  h1 {
    font-size: 24px;
  }
  header p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .toolbar {
    padding: 14px 12px;
    flex-wrap: wrap;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .toolbar button {
    min-height: 42px;
  }
  .toolbar .primary {
    margin-left: auto;
  }
  .path-row {
    padding: 12px;
  }
  #drop-zone {
    margin: 0 12px 18px;
    padding: 16px;
  }
  .pill {
    font-size: 8px;
    padding: 5px 7px;
  }
  td,
  th {
    padding: 12px 10px;
  }
  th:first-child {
    width: 52%;
  }
  th:nth-child(2) {
    width: 16%;
  }
  th:last-child {
    width: 32%;
  }
  .file-name {
    gap: 7px;
  }
  .file-icon {
    min-width: 27px;
    font-size: 8px;
    padding: 7px 3px;
  }
  td button {
    padding: 8px 5px;
  }
  footer {
    font-size: 8px;
    letter-spacing: 0;
  }
  .workspace {
    min-height: 400px;
  }
}
.concurrency {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px;
}
.transfer button {
  font-size: 10px;
  padding: 1px 7px;
  margin-left: 8px;
}
.transfer small {
  white-space: normal;
}
#download-all {
  font-size: 12px;
}
.toolbar {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .side-bottom {
    display: block;
    position: absolute;
    right: 20px;
    top: 24px;
    font-size: 0;
  }
  .side-bottom p,
  .side-bottom .status-dot {
    display: none;
  }
  .side-bottom button {
    font-size: 10px;
  }
  .concurrency select {
    min-height: 38px;
  }
}
/* Generous drop target for comfortable multi-file uploads. */
#drop-zone {
  min-height: 270px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 18px;
  padding: 36px;
}
#drop-zone .upload-symbol {
  width: 64px;
  height: 64px;
  line-height: 64px;
  font-size: 34px;
}
#drop-zone strong {
  font-size: 18px;
}
#drop-zone p {
  font-size: 13px;
}
.drop-label {
  margin-left: 0;
}
@media (max-width: 650px) {
  #drop-zone {
    min-height: 250px;
    padding: 28px 16px;
  }
}
