:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #6b7785;
  --line: #d9e0e7;
  --accent: #2477c9;
  --accent-dark: #195c9e;
  --soft: #e8f2fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

aside {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
p,
.quota span,
.toolbar span {
  color: var(--muted);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 7px;
}

nav a.active,
nav a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.quota {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.quota div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.bar {
  height: 7px;
  margin-top: 12px;
  background: #e5eaf0;
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  width: 48%;
  height: 100%;
  background: var(--accent);
}

main {
  padding: 28px;
  min-width: 0;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  font-size: 28px;
}

p {
  margin: 4px 0 0;
}

button {
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  padding: 10px 15px;
  font: inherit;
  font-weight: 650;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

input {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
  font: inherit;
}

.list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 120px;
  gap: 16px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.row:first-child {
  border-top: 0;
}

.row:hover {
  background: #f9fbfd;
}

.row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head {
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  background: #fbfcfd;
}

.folder span:first-child::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 12px;
  margin-right: 9px;
  border-radius: 3px 3px 2px 2px;
  background: #e6b949;
  vertical-align: -1px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

article span {
  color: var(--muted);
  font-size: 13px;
}

article strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

@media (max-width: 760px) {
  body {
    grid-template-columns: 1fr;
  }

  aside {
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  nav {
    margin: 18px 0;
    flex-direction: row;
    overflow-x: auto;
  }

  main {
    padding: 18px;
  }

  header {
    align-items: flex-start;
  }

  .row {
    grid-template-columns: minmax(120px, 1fr) 86px;
  }

  .row span:last-child {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
