.documents-hero {
  margin-bottom: 18px;
}

.documents-warning,
.documents-note {
  margin-bottom: 18px;
  border: 1px solid #f6cf91;
  border-radius: 12px;
  background: #fff9ec;
  color: #8a5708;
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.documents-note {
  border-color: #cfe1f2;
  background: #f5faff;
  color: #52647a;
}

.documents-section {
  margin-top: 26px;
}

.documents-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.documents-section-head span:first-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.documents-section-head h3 {
  margin: 3px 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  letter-spacing: -.04em;
}

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

.shared-document-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.shared-document-card:hover {
  border-color: #b9d7f5;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.shared-document-top,
.shared-document-footer,
.shared-document-footer > div {
  display: flex;
  align-items: center;
}

.shared-document-top {
  justify-content: space-between;
}

.shared-document-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e7f1ff;
  color: var(--primary);
}

.shared-document-card--presentation .shared-document-icon {
  background: #fff4dd;
  color: #c87500;
}

.shared-document-card--spreadsheet .shared-document-icon {
  background: #e7f8f2;
  color: #098362;
}

.shared-document-icon svg {
  width: 19px;
  height: 19px;
}

.shared-document-card h3 {
  margin: 20px 0 7px;
  font-size: 17px;
  line-height: 1.3;
}

.shared-document-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.shared-document-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.shared-document-footer > div {
  justify-content: flex-end;
  gap: 8px;
}

.shared-document-footer a,
.document-delete {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.document-delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c53d3d;
}

.document-delete svg {
  width: 12px;
  height: 12px;
}

.documents-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.modal-shared-document {
  width: min(610px, 100%);
}

.recipient-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.recipient-heading label {
  margin: 0;
}

.recipient-heading button {
  background: none;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.recipient-list {
  max-height: 245px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdff;
  padding: 10px;
}

.recipient-option {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  border: 1px solid #e7eef5;
  border-radius: 9px;
  background: white;
  padding: 9px;
  cursor: pointer;
}

.recipient-option:has(input:checked) {
  border-color: #8fbce8;
  background: #eef6ff;
}

.recipient-option.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.recipient-option input {
  accent-color: var(--primary);
}

.recipient-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: #e7f1ff;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}

.recipient-option strong,
.recipient-option small {
  display: block;
}

.recipient-option strong {
  color: var(--ink);
  font-size: 11px;
}

.recipient-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .shared-documents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .shared-documents-grid,
  .recipient-list {
    grid-template-columns: 1fr;
  }

  .shared-document-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
