.documents-panel,
.document-list {
  --documents-card: var(--shell-surface, #fff);
  --documents-alt: var(--shell-surface-alt, #f4f9f8);
  --documents-text: var(--shell-text, #1a2b28);
  --documents-muted: var(--shell-muted, #7a9490);
  --documents-border: var(--shell-border, #e0edeb);
  --documents-teal: #1bbeaa;
  --athletes-bg: var(--shell-bg, #f2f7f6);
  --athletes-card: var(--shell-surface, #fff);
  --athletes-alt: var(--shell-surface-alt, #f4f9f8);
  --athletes-input: var(--shell-input, #eef5f4);
  --athletes-text: var(--shell-text, #1a2b28);
  --athletes-muted: var(--shell-muted, #7a9490);
  --athletes-border: var(--shell-border, #e0edeb);
  --athletes-teal: #1bbeaa;
  --athletes-danger: #ff6060;
  --athletes-white: var(--shell-surface, #fff);
  width: 100%;
  min-height: 100%;
  color: var(--documents-text);
}

.documents-title {
  padding: 14px 18px 12px;
}

.documents-title h1,
.documents-title p,
.document-list-header h2,
.document-list-header p,
.documents-help p {
  margin: 0;
}

.documents-title h1 {
  font-size: 22px;
  font-weight: 900;
}

.documents-title p {
  margin-top: 2px;
  color: var(--documents-muted);
  font-size: 12px;
  font-weight: 700;
}

.document-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px;
}

.document-folder {
  --folder-color: var(--documents-teal);
  position: relative;
  min-width: 0;
  padding: 18px 16px;
  border: 0;
  border-radius: 20px;
  color: var(--documents-text);
  background: var(--documents-card);
  box-shadow: 0 2px 10px rgb(0 0 0 / 6%);
  text-align: left;
  cursor: pointer;
}

[data-theme="dark"] .document-folder,
[data-theme="dark"] .document-row {
  box-shadow: 0 2px 12px rgb(0 0 0 / 28%);
}

.document-folder-emoji {
  display: block;
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1;
}

.document-folder strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.document-folder small {
  display: block;
  margin-top: 4px;
  color: var(--folder-color);
  font-size: 11px;
  font-weight: 700;
}

.documents-help {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin: 20px 16px 0;
  border: 1px solid var(--documents-border);
  border-radius: 16px;
  background: var(--documents-alt);
}

.documents-help-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--documents-teal);
  background: color-mix(in srgb, var(--documents-teal), transparent 86%);
}

.documents-help strong {
  font-size: 13px;
  font-weight: 800;
}

.documents-help p {
  margin-top: 1px;
  color: var(--documents-muted);
  font-size: 12px;
  font-weight: 600;
}

.documents-back-row {
  display: flex;
  align-items: center;
  padding: 14px 16px 6px;
}

.documents-back {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px 6px 0;
  border: 0;
  color: var(--documents-teal);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.document-list-body {
  padding: 0 16px 4px;
}

.document-list-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.document-list-header > span {
  font-size: 28px;
  line-height: 1;
}

.document-list-header h2 {
  font-size: 18px;
  font-weight: 900;
}

.document-list-header p {
  color: var(--documents-muted);
  font-size: 12px;
  font-weight: 700;
}

.document-row {
  --folder-color: var(--documents-teal);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--documents-card);
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

.document-file-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--folder-color), transparent 86%);
}

.document-file-copy {
  display: grid;
  flex: 1;
  min-width: 0;
}

.document-file-copy strong {
  overflow: hidden;
  color: var(--documents-text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-file-copy small {
  margin-top: 2px;
  color: var(--documents-muted);
  font-size: 11px;
  font-weight: 600;
}

.documents-empty {
  padding: 14px 16px;
  margin: 0 16px;
  border-radius: 16px;
  color: var(--documents-muted);
  background: var(--documents-alt);
  font-size: 12px;
  font-weight: 700;
}

.document-list--profile > .profile-documentation {
  margin-top: 8px;
}

@media (max-width: 380px) {
  .document-folder-grid {
    gap: 9px;
    padding: 0 12px;
  }

  .document-folder {
    padding: 16px 13px;
  }
}
