:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #292637;
  background: #f7f7fb;
  font-synthesis: none;
  --purple: #6853b4;
  --border: #e5e2ee;
  --muted: #777286;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  padding: 10px 15px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover,
.button:hover {
  background: #efedf7;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.primary:hover {
  background: #56439d;
}
input,
select {
  border: 1px solid #d8d4e3;
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  color: inherit;
  width: 100%;
}
:focus-visible {
  outline: 3px solid #b3a3e9;
  outline-offset: 3px;
}
header {
  background: white;
  border-bottom: 1px solid var(--border);
  min-height: 86px;
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-top: 2px;
}
.mark {
  background: #e9e3f9;
  color: var(--purple);
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 28px;
}
#account {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.quiet {
  background: transparent;
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 42px 5vw 26px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--purple);
  font-weight: 750;
}
h1 {
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
h2 {
  font-size: 19px;
}
.muted,
.footnote {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.login-card {
  max-width: 460px;
  margin: 35px auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 15px 50px #28204406;
}
form label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 18px 0 7px;
}
form .primary {
  margin-top: 24px;
}
.login-card button {
  width: 100%;
}
.footnote {
  font-size: 12px;
  margin-top: 23px;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
nav button {
  border: 0;
  background: none;
  color: var(--purple);
  padding: 6px;
  font-weight: 550;
}
nav span {
  color: #aaa;
}
.search {
  display: flex;
  gap: 8px;
  min-width: 310px;
}
.search input {
  font-size: 13px;
}
.file-panel {
  border: 1px solid var(--border);
  background: white;
  border-radius: 13px;
  overflow: hidden;
  min-height: 240px;
}
.file-panel.drag {
  outline: 3px solid #b3a3e9;
  background: #f5f1ff;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  background: #fcfbfe;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 15px 20px;
  white-space: nowrap;
}
td {
  border-top: 1px solid #f0edf5;
  padding: 11px 20px;
  white-space: nowrap;
}
td:first-child {
  width: 60%;
  white-space: normal;
  min-width: 230px;
}
td:nth-child(2),
td:nth-child(3) {
  color: var(--muted);
}
tbody tr:hover {
  background: #faf9fe;
}
.file-name {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 5px 0;
  font-weight: 500;
  text-align: left;
  overflow-wrap: anywhere;
}
.file-name:hover {
  background: none;
  color: var(--purple);
}
.file-icon {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  background: #f2effa;
  color: #8570bf;
  border-radius: 8px;
  font-size: 19px;
}
.folder-icon {
  color: #aa8836;
  background: #faf3df;
}
.download {
  padding: 6px 9px;
  font-size: 12px;
  color: var(--purple);
  text-decoration: none;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 15px;
}
#status {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
#status.error,
#folder-error {
  color: #a2294d;
}
#transfer {
  margin-top: 20px;
  padding: 18px;
  background: #eeebf7;
  border-radius: 10px;
  font-size: 13px;
}
progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 12px;
  accent-color: var(--purple);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: min(440px, 94vw);
  color: inherit;
}
dialog::backdrop {
  background: #201b39aa;
  backdrop-filter: blur(3px);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
}
.preview {
  width: min(1200px, 96vw);
  max-height: 94vh;
  padding: 0;
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.preview-bar h2 {
  font-size: 14px;
  overflow-wrap: anywhere;
  min-width: 0;
}
#preview-content {
  height: 68vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eeedf3;
  padding: 10px;
}
#preview-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#preview-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}
.preview-footer {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 760px) {
  header {
    padding: 14px 20px;
  }
  .brand {
    font-size: 18px;
  }
  #account {
    gap: 9px;
  }
  #user-name {
    display: none;
  }
  main {
    padding: 25px 18px;
  }
  .title-row,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .title-row {
    gap: 12px;
  }
  h1 {
    font-size: 26px;
  }
  .search {
    min-width: 0;
  }
  .bottom-row {
    flex-direction: column;
    gap: 8px;
  }
  th,
  td {
    padding: 12px;
  }
  td:nth-child(2),
  th:nth-child(2) {
    display: none;
  }
  .login-card {
    padding: 25px;
    margin-top: 15px;
  }
  .preview-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .preview-bar h2 {
    margin: 0 0 7px;
  }
}
