:root {
  font-family: Inter, "Segoe UI", sans-serif;
  color: #202b3c;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #8490a3;
  --border: #e9edf3;
  --blue: #4569e8;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.app {
  min-height: 100vh;
}

.topbar {
  height: 72px;
  padding: 0 max(28px, calc((100% - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #253148;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #edf1ff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.privacy-note,
.footnote {
  color: var(--muted);
  font-size: 12px;
}

.browser {
  width: min(100% - 48px, 1060px);
  margin: 70px auto 48px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  color: #202b3c;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.045em;
  line-height: 1.2;
}

.intro {
  max-width: 610px;
  margin: 11px 0 0;
  color: #768297;
  font-size: 14px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.button-primary {
  background: var(--blue);
  box-shadow: 0 5px 12px #4569e82b;
  color: #fff;
}

.button-primary:hover {
  background: #365bdc;
}

.button-secondary {
  min-height: 36px;
  margin-top: 9px;
  border: 1px solid #dce3f1;
  background: #fff;
  color: #42526d;
}

.file-card {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px #23355308;
}

.toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: auto;
  color: #68758b;
  font-size: 13px;
  white-space: nowrap;
}

.breadcrumb-button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #536178;
  cursor: pointer;
}

.breadcrumb-button:hover,
.breadcrumb-button[aria-current="page"] {
  color: var(--blue);
}

.crumb-separator,
.muted {
  color: #a3adbc;
}

.search {
  display: flex;
  width: min(250px, 40%);
  min-width: 145px;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  color: #98a3b4;
}

.search:focus-within {
  border-color: #b9c7ff;
  box-shadow: 0 0 0 3px #4569e812;
}

.search-icon {
  font-size: 21px;
  line-height: 1;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303b4e;
  font-size: 12px;
}

.search input::placeholder {
  color: #a2abba;
}

.list-header,
.file-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 175px 84px;
  align-items: center;
  column-gap: 18px;
  padding: 0 22px;
}

.list-header {
  min-height: 43px;
  background: #fbfcfe;
  color: #9aa4b3;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.file-row {
  min-height: 61px;
  border-top: 1px solid #f0f2f6;
  color: #667287;
  font-size: 12px;
}

.file-row:hover {
  background: #fafbff;
}

.file-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: #354158;
  font-weight: 600;
}

.file-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  background: #f1f4ff;
  color: #647ae3;
  font-size: 15px;
}

.file-icon.folder {
  background: #fff6e6;
  color: #e2a33b;
}

.name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-folder {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.open-folder:hover {
  color: var(--blue);
}

.download-button {
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid #e8ecf3;
  border-radius: 7px;
  background: #fff;
  color: #54627a;
  cursor: pointer;
  font-size: 11px;
}

.download-button:hover {
  border-color: #cbd5ff;
  color: var(--blue);
}

.empty-state {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: #f2f5ff;
  color: #7185e6;
  font-size: 27px;
}

.empty-state h2 {
  margin: 17px 0 5px;
  color: #354158;
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  color: #929cad;
  font-size: 12px;
  line-height: 1.6;
}

.status {
  padding: 0 22px;
  color: #b64a4a;
  font-size: 12px;
}

.status:not(:empty) {
  padding-top: 13px;
  padding-bottom: 13px;
  border-top: 1px solid var(--border);
}

.footnote {
  margin: 14px 2px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 700px) {
  .topbar {
    height: 62px;
    padding: 0 20px;
  }

  .privacy-note {
    max-width: 135px;
    text-align: right;
  }

  .browser {
    width: min(100% - 30px, 1060px);
    margin-top: 42px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading .button {
    padding: 0 12px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .search {
    width: 100%;
  }

  .list-header,
  .file-row {
    grid-template-columns: minmax(150px, 1fr) 72px 72px;
    column-gap: 9px;
    padding: 0 13px;
  }

  .list-header span:nth-child(3),
  .file-row .modified {
    display: none;
  }

  .download-button {
    padding: 6px 7px;
  }
}

@media (max-width: 430px) {
  .page-heading {
    flex-direction: column;
  }

  .page-heading .button {
    align-self: flex-start;
  }
}
