/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primary — rich indigo/violet spectrum */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.08);
  --primary-glow: rgba(99, 102, 241, 0.25);

  /* Secondary — cool slate */
  --secondary: #475569;
  --secondary-hover: #334155;

  /* Danger — warm rose */
  --danger: #e11d48;
  --danger-hover: #be123c;
  --danger-light: rgba(225, 29, 72, 0.08);

  /* Surfaces & backgrounds */
  --bg: #f0f2f5;
  --bg-warm: #f8f7ff;
  --surface: #ffffff;
  --surface-hover: #fafafb;
  --border: #e2e5eb;
  --border-light: #eef0f4;

  /* Text */
  --text: #0f172a;
  --text-secondary: #374151;
  --text-muted: #6b7280;

  /* Status colors */
  --success: #059669;
  --success-light: rgba(5, 150, 105, 0.08);
  --warning: #d97706;
  --warning-light: rgba(217, 119, 6, 0.08);
  --info: #0284c7;
  --info-light: rgba(2, 132, 199, 0.08);

  /* Radii */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows — layered for depth */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-primary: 0 4px 14px rgba(99, 102, 241, 0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.2s;
  --duration-md: 0.3s;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--primary-glow);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Header === */
.app-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(30, 27, 75, 0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.3);
}

.header-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* === Container === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
  flex: 1;
  width: 100%;
}

/* === Footer === */
.app-footer {
  text-align: center;
  padding: 20px 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.2px;
}

.app-footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-dot {
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
  display: inline-block;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  gap: 8px;
  min-height: 44px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--secondary-hover);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2);
}
.btn-danger:hover {
  background: var(--danger-hover);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  min-height: 36px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-icon {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-xs);
}
.btn-icon:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

/* === Inputs === */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  min-height: 44px;
  transition: all var(--duration) var(--ease);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow);
}

.secret-input-group {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.secret-input-group .input-field {
  flex: 1;
}

/* === Home === */
.home-container {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 8px;
}

.home-hero {
  text-align: center;
  margin-bottom: 32px;
}

.home-hero-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.home-container h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff, #f5f7fb);
  box-shadow: var(--shadow-xs);
}

.home-tab {
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.home-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
}

.home-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.home-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: var(--shadow-primary);
}

.home-panel[hidden] {
  display: none !important;
}

.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all var(--duration-md) var(--ease);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  opacity: 0;
  transition: opacity var(--duration-md) var(--ease);
}

.action-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.action-card:hover::before {
  opacity: 1;
}

.action-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.action-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0;
}

.action-card-icon.create {
  background: linear-gradient(135deg, var(--primary-light), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.action-card-icon.access {
  background: linear-gradient(135deg, var(--success-light), rgba(5, 150, 105, 0.06));
  border: 1px solid rgba(5, 150, 105, 0.1);
}

.action-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.action-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.action-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === Modal === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  animation: modalBgIn var(--duration-md) var(--ease);
}

.modal.hidden { display: none; }

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn var(--duration-md) var(--ease-spring);
}

.modal-content h2 {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
}

@keyframes modalBgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === Alerts === */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.alert-info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.alert-error {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  color: #9f1239;
  border: 1px solid #fda4af;
}

.alert-success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* === Secret display === */
.secret-display {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.secret-display code {
  flex: 1;
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 0.78rem;
  word-break: break-all;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* === Workspace === */
.workspace-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.workspace-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.workspace-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === Upload === */
.upload-section {
  margin-bottom: 28px;
}

.upload-section h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  transition: all var(--duration-md) var(--ease);
  cursor: pointer;
  background: var(--surface);
  position: relative;
}

.upload-area:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: var(--bg-warm);
}

.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.upload-area .upload-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  opacity: 0.7;
}

.upload-area p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.hidden-input { display: none; }

.progress-bar {
  background: var(--bg);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--border-light);
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  height: 100%;
  width: 0;
  transition: width 0.3s var(--ease);
  border-radius: 999px;
}

/* === Documents grid === */
.documents-section h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.folder-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.folder-crumb {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 10px;
}

.folder-crumb:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.folder-crumb.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.folder-separator {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.folder-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease);
}

.folder-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.folder-icon {
  font-size: 1.1rem;
}

.folder-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.documents-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease);
}

.document-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon .icon {
  font-size: 1.3rem;
}

.doc-icon.type-image {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.doc-icon.type-pdf {
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
}

.doc-icon.type-text {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.doc-icon.type-other {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.doc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  color: var(--text);
}

.doc-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1px;
}

.doc-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* === Document View === */
.doc-view-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.doc-view-header h1 {
  font-size: 1.3rem;
  word-break: break-word;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.doc-view-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.image-preview {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.pdf-viewer {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.text-preview pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.85rem;
  max-height: 80vh;
  overflow-y: auto;
  line-height: 1.7;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}

.binary-preview {
  text-align: center;
  padding: 48px 16px;
}

.binary-info .icon.large {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

/* === Shares === */
.shares-header {
  margin-bottom: 24px;
}

.shares-header h1 {
  margin-bottom: 4px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.shares-header .subtitle {
  text-align: left;
  margin-bottom: 14px;
}

.shares-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease);
}

.share-card:hover {
  box-shadow: var(--shadow);
}

.share-card.revoked {
  opacity: 0.5;
}

.share-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.share-scope {
  font-weight: 600;
  font-size: 0.9rem;
}

.share-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.share-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.share-status.active {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.share-status.revoked {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.share-actions {
  display: flex;
  gap: 6px;
}

/* === Error page === */
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.error-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  box-shadow: var(--shadow-md);
  max-width: 400px;
  width: 100%;
}

.error-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.7;
}

.error-card h1 {
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.error-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* === Utilities === */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); font-size: 0.82rem; }

.mt-10 {
  margin-top: 10px;
}

/* === Share workspace === */
.share-workspace-section {
  margin-top: 28px;
}

/* === Activity Logs === */
.workspace-activity-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.activity-table th,
.activity-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.activity-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: var(--surface-hover);
}

.activity-table td {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.activity-user-agent {
  max-width: 420px;
}

.activity-user-agent span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === Responsive Desktop === */
@media (min-width: 768px) {
  .container { padding: 28px; }

  .home-actions .action-card { width: 100%; }

  .workspace-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .doc-view-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .document-card {
    padding: 16px 20px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1100px;
    padding: 36px;
  }

  .documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
  }
}
