[hidden] {
  display: none !important;
}

.file-name a {
  color: var(--ink);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.received-shell {
  min-height: 100vh;
  padding: 52px 24px;
  background: radial-gradient(circle at 80% 20%, #3a92c461, transparent 32%), linear-gradient(135deg, #071e31, #164e75);
}

.received-card {
  width: min(900px, 100%);
  margin: auto;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px #02121f66;
}

.received-card h1 {
  color: var(--navy);
  font-size: clamp(44px, 7vw, 72px);
}

.received-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.received-details div {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.received-details span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.received-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.received-file span {
  display: grid;
  gap: 5px;
}

.received-file small {
  color: var(--muted);
}

.received-file strong {
  color: var(--blue);
}

.link-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.resend-link {
  border: 1px solid #91b1c2;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.admin-link-row {
  grid-template-columns: minmax(190px, 1fr) 82px 112px minmax(190px, auto);
  gap: 16px;
}

.admin-link-row > small {
  justify-self: center;
  white-space: nowrap;
}

.admin-link-row .link-status {
  justify-self: center;
}

.admin-link-row .link-actions {
  min-width: 190px;
  justify-content: flex-end;
}

.admin-link-row .revoke-link,
.admin-link-row .resend-link {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .admin-link-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }

  .admin-link-row > span:first-child {
    grid-column: 1 / -1;
  }

  .admin-link-row .link-status {
    grid-column: 1;
    justify-self: start;
  }

  .admin-link-row > small {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .admin-link-row .link-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    justify-content: flex-start;
  }
}

.submit-row p {
  flex: 1;
  min-height: 64px;
  margin: 0;
  padding: 18px 20px;
  border: 2px solid #91b8ce;
  border-radius: 14px;
  background: #eaf5fb;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.submit-row p:empty { display: none; }
.submit-row p.error { border-color: #e2a29e; background: #fcebea; color: #9b2923; }
.submit-row p.success { border-color: #8ecaaa; background: #e8f7ef; color: #176744; }

.admin-page-links { display: flex; flex-wrap: wrap; gap: 24px; }
.admin-files-shell { min-height: 100vh; background: #eef5f8; }
.admin-files-nav { min-height: 92px; padding: 18px clamp(24px, 6vw, 90px); display: flex; align-items: center; justify-content: space-between; background: var(--navy); }
.admin-files-nav .secondary { text-decoration: none; }
.admin-files-hero { padding: 58px clamp(24px, 7vw, 110px); display: grid; grid-template-columns: 1.4fr .6fr; gap: 60px; align-items: end; color: #fff; background: linear-gradient(115deg, #09253c, #164e75); }
.admin-files-hero h1 { font-size: clamp(46px, 6vw, 78px); }
.admin-files-hero>p { color: #d7e4ec; line-height: 1.6; }
.admin-files-card { width: min(1200px, calc(100% - 48px)); margin: 42px auto; padding: 36px 40px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.admin-files-card .secondary { color: var(--navy); border-color: #b9c8d0; }
.admin-file-row { display: grid; grid-template-columns: 55px minmax(260px, 1fr) 90px 190px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.admin-file-info { display: grid; gap: 4px; }
.admin-file-info small { color: var(--muted); }
.admin-file-row button { border: 0; border-radius: 999px; padding: 10px 14px; background: var(--gold); font-size: 12px; font-weight: 900; cursor: pointer; }
.admin-file-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-file-row .delete-file { border: 1px solid #d9a5a1; background: #fff; color: #9b302a; }
.admin-file-row button:disabled { cursor: wait; opacity: .6; }
.admin-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid #9db5c3; border-radius: 999px; background: #fff; color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 900; }
.admin-nav-button:hover { border-color: var(--blue); background: #f1f7fa; }

@media (max-width: 700px) {
  .admin-files-hero { grid-template-columns: 1fr; gap: 20px; }
  .admin-files-card { width: calc(100% - 28px); padding: 28px 20px; }
  .admin-file-row { grid-template-columns: 42px 1fr; }
  .admin-file-row>span:nth-child(3) { display: none; }
  .admin-file-actions { grid-column: 2; justify-content: flex-start; }
}

.file-row {
  grid-template-columns: 58px minmax(260px, 1fr) 90px 140px 120px 112px;
  column-gap: 22px;
}

.file-size,
.file-date {
  justify-self: center;
  text-align: center;
}

.file-row .status {
  width: 100%;
  justify-self: stretch;
  text-align: center;
}

.replace-file {
  border: 1px solid #91b1c2;
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .file-row { grid-template-columns: 48px minmax(180px, 1fr) 110px 105px; }
  .file-size, .file-date { display: none; }
}

@media (max-width: 600px) {
  .file-row { grid-template-columns: 40px 1fr; align-items: start; }
  .file-row .status, .replace-file { grid-column: 2; width: auto; justify-self: start; }
}

@media (max-width: 650px) {
  .received-details { grid-template-columns: 1fr; }
  .received-file { align-items: flex-start; flex-direction: column; }
}
