.documents-main {
  gap: 18px;
}

.documents-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(45, 124, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0%, rgba(43, 212, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7f9ff);
  box-shadow: var(--shadow);
}

.docs-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1857ad;
  font-size: 12px;
  font-weight: 950;
}

.docs-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.documents-hero h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.documents-hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}

.docs-task-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.docs-task-form textarea,
.docs-actions select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  outline: 0;
}

.docs-task-form textarea {
  min-height: 126px;
  padding: 16px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.5;
}

.docs-actions {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 160px;
  gap: 12px;
}

.docs-actions select {
  min-height: 50px;
  padding: 0 14px;
}

.docs-actions button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  font-weight: 950;
}

.docs-actions .secondary-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.docs-drop-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border: 1px dashed rgba(45, 124, 255, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
}

.docs-drop-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #eaf2ff;
  font-size: 24px;
}

.docs-drop-card b {
  font-size: 20px;
}

.docs-drop-card p,
.docs-drop-card small {
  color: var(--muted);
  line-height: 1.45;
}

.docs-drop-card button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.docs-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.docs-action-group {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
}

.docs-action-group b {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.docs-action-group p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.docs-action-group > div:last-child {
  display: grid;
  gap: 8px;
}

.docs-action-group button {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.docs-action-group button:hover {
  border-color: rgba(45, 124, 255, 0.52);
  background: #f0f6ff;
}

.docs-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 18px;
}

.docs-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.docs-file-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.docs-file-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #eaf2ff;
}

.docs-file-grid b,
.docs-file-grid em {
  display: block;
}

.docs-file-grid b,
.docs-file-grid p {
  overflow-wrap: anywhere;
}

.docs-file-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.docs-file-grid em {
  color: #0c7e61;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.docs-quality .profile-row {
  margin-bottom: 8px;
}

@media (max-width: 1240px) {
  .documents-hero,
  .docs-split {
    grid-template-columns: 1fr;
  }

  .docs-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .documents-main {
    gap: 14px;
  }

  .documents-hero,
  .docs-action-grid,
  .docs-file-grid,
  .docs-actions {
    grid-template-columns: 1fr;
  }

  .documents-hero {
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
  }

  .docs-eyebrow {
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .documents-hero h2 {
    font-size: 32px;
  }

  .documents-hero p {
    font-size: 14px;
    line-height: 1.48;
  }

  .docs-task-form {
    gap: 10px;
    margin-top: 16px;
  }

  .docs-task-form textarea {
    min-height: 104px;
    padding: 14px;
  }

  .docs-actions {
    gap: 10px;
  }

  .docs-actions button,
  .docs-actions select {
    min-height: 48px;
  }

  .docs-drop-card {
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
  }

  .docs-drop-card > span {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 22px;
  }

  .docs-drop-card b {
    font-size: 18px;
  }

  .docs-drop-card p,
  .docs-drop-card small {
    margin: 0;
  }

  .docs-drop-card button {
    min-height: 40px;
  }

  .docs-action-group {
    min-height: auto;
    padding: 14px;
  }
}
