

#route-progress {
  position: fixed;
  z-index: 300;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--seal);
  opacity: 0;
  pointer-events: none;
}

#route-progress.is-running {
  opacity: 1;
  animation: route-progress 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#route-progress.is-done {
  opacity: 0;
  width: 100% !important;
  transition: opacity 0.25s ease;
}

@keyframes route-progress {
  0% { width: 0; }
  45% { width: 54%; }
  100% { width: 76%; }
}

.route-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
  text-align: center;
  padding: 20px;
}

.route-error__mark {
  width: 54px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 27px;
  margin-bottom: 20px;
}

.route-error h1 {
  font-size: 30px;
  letter-spacing: 0.04em;
}

.progress-ring {
  position: relative;
  width: var(--ring-size, 86px);
  height: var(--ring-size, 86px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.progress-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__track {
  fill: none;
  stroke: rgba(245, 242, 233, 0.16);
  stroke-width: 2.4;
}

.progress-ring__fill {
  fill: none;
  stroke: #e8b6a3;
  stroke-width: 2.4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease);
}

.progress-ring__center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--paper);
}

.progress-ring__center strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.progress-ring__center small {
  color: rgba(245, 242, 233, 0.42);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.route-error p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  max-width: 420px;
  line-height: 1.8;
}

.route-error__actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.quote-panel {
  position: relative;
  overflow: hidden;
  padding: 25px 24px 21px;
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, var(--tone-a, #2e4249), var(--tone-b, #17211f));
  color: var(--paper);
  isolation: isolate;
}

.quote-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 242, 233, 0.13);
  pointer-events: none;
}

.quote-panel__mark {
  display: block;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 0.7;
  color: var(--seal);
}

.quote-panel blockquote {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: rgba(245, 242, 233, 0.9);
}

.quote-panel figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: rgba(245, 242, 233, 0.45);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.quote-panel figcaption span:first-child {
  width: 16px;
  height: 1px;
  background: rgba(245, 242, 233, 0.3);
}

.quote-panel--compact {
  padding: 20px 19px 17px;
}

.quote-panel--compact blockquote {
  font-size: 14px;
  line-height: 1.8;
}

.upload-zone.is-text-mode {
  cursor: default;
  border-style: solid;
  background: rgba(24, 33, 31, 0.025);
}

.upload-zone__busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(245, 242, 233, 0.86);
  backdrop-filter: blur(3px);
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.1em;
  z-index: 3;
}

.upload-zone__busy .icon {
  animation: spin 0.9s linear infinite;
}

.upload-zone__busy[hidden] {
  display: none;
}

.section-head.is-spaced {
  margin-top: 38px;
}

.cover__status-sub {
  color: rgba(245, 242, 233, 0.36);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.auth__tabs .auth__tab {
  text-decoration: none;
}

.auth__legal a {
  color: var(--seal);
}

.is-spaced {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .profile-body > div > .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
  .profile-avatar {
    margin-top: 0;
  }
  .profile-avatar .avatar {
    width: 78px !important;
    height: 78px !important;
  }
}

@media (max-width: 620px) {
  .profile-body > div > .people-grid {
    grid-template-columns: 1fr !important;
  }
  .quote-panel blockquote {
    font-size: 15px;
  }
  .route-error h1 {
    font-size: 24px;
  }
  .cover__status-sub {
    display: none;
  }
  .home-hero h1 {
    font-size: 32px;
  }
  .page-head h1 {
    font-size: 31px;
  }
  .profile-hero__top {
    gap: 11px;
  }
  .profile-hero__name-row h1 {
    font-size: 35px;
  }
  .profile-stats .stat-block:nth-child(6) strong {
    font-size: 17px;
  }
}

@media (max-width: 860px) {
  .cover__body {
    padding-top: 30px;
    padding-bottom: 28px;
  }
  .cover__title {
    font-size: clamp(42px, 9vw, 68px);
  }
  .cover__quote-wrap {
    margin-top: 28px;
    min-height: 112px;
  }
  .cover__quote blockquote {
    font-size: clamp(18px, 3.6vw, 25px);
  }
  .cover__actions {
    margin-top: 24px;
  }
}

@media (max-width: 860px) and (max-height: 760px) {
  .cover__header {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .cover__body {
    padding-top: 22px;
    padding-bottom: 20px;
  }
  .cover__quote-wrap {
    margin-top: 20px;
    min-height: 96px;
  }
  .cover__quote blockquote {
    font-size: 18px;
  }
  .cover__actions {
    margin-top: 18px;
  }
  .cover__actions .btn {
    min-height: 42px;
  }
}

@media (min-width: 861px) {
  .cover {
    height: 100svh;
    min-height: 680px;
  }
  .cover__header {
    padding: 24px 48px;
  }
  .cover__body {
    padding: 34px 48px 28px;
  }
  .cover__title {
    margin-top: 20px;
    font-size: clamp(52px, 6.8vw, 98px);
  }
  .cover__quote-wrap {
    margin-top: clamp(24px, 5vh, 54px);
    min-height: 128px;
  }
  .cover__actions {
    margin-top: 26px;
  }
  .cover__foot {
    padding: 15px 48px 22px;
  }
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 26px;
  align-items: start;
}
