:root {
  --deep: #263b68;
  --indigo: #263b68;
  --twilight: #496a83;
  --periwinkle: #496a83;
  --sky: #496a83;
  --lilac: #78815b;
  --mint: #78815b;
  --olive: #78815b;
  --gold: #e9ad45;
  --ink: #1b2744;
  --muted: #496a83;
  --paper: #e9e1d0;
  --sand: #d8cbaa;
  --white: #f4efe3;
  --line: rgba(38, 59, 104, 0.18);
  --shadow: 0 18px 50px rgba(38, 59, 104, 0.14);
  --serif: 'Fraunces', 'Iowan Old Style', Palatino, serif;
  --sans: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 380;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--indigo);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--indigo);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(233, 225, 208, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
}

.brand span {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.brand em {
  font-style: normal;
  color: var(--deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--deep);
  color: white;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 560;
}

.mast {
  position: relative;
  overflow: hidden;
  background: var(--deep);
}

.mast-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.brain-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.brain-spin {
  position: absolute;
}

.brain-float {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(233, 173, 69, 0.28));
  mix-blend-mode: plus-lighter;
  animation: brain-drift-a 48s ease-in-out infinite alternate;
  will-change: transform;
}

.brain-spin:nth-child(3n + 2) .brain-float {
  animation-name: brain-drift-b;
}

.brain-spin:nth-child(3n) .brain-float {
  animation-name: brain-drift-c;
}

@keyframes brain-drift-a {
  from {
    transform: translate3d(0, 0, 0) rotate(-14deg);
  }
  to {
    transform: translate3d(64px, -52px, 0) rotate(18deg);
  }
}

@keyframes brain-drift-b {
  from {
    transform: translate3d(0, 0, 0) rotate(16deg);
  }
  to {
    transform: translate3d(-72px, 44px, 0) rotate(-18deg);
  }
}

@keyframes brain-drift-c {
  from {
    transform: translate3d(0, 12px, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(48px, -68px, 0) rotate(22deg);
  }
}

.hero,
.page-hero,
.brush {
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
}

.hero-card {
  position: relative;
  margin: 8vh 6vw 7vh;
  max-width: 38rem;
  padding: 2.4rem 2.5rem 2.2rem;
  background: rgba(216, 203, 170, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.1rem);
  color: var(--indigo);
}

.hero-card h1 {
  font-size: clamp(2.7rem, 5vw, 4.4rem);
}

.lede {
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--deep);
}

.dept {
  margin: 1.1rem 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 560;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--indigo);
  color: white;
}

.button.primary:hover {
  background: var(--deep);
  color: white;
}

.button.ghost {
  background: transparent;
  color: var(--indigo);
  border-color: rgba(38, 59, 104, 0.4);
}

.button.ghost:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.brush {
  position: relative;
  height: 92px;
  background: rgba(38, 59, 104, 0.48);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--indigo);
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--lilac);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.note {
  padding: 1.25rem 1.35rem;
  background: var(--sand);
  border-left: 4px solid var(--olive);
  box-shadow: 0 1px 0 var(--line);
}

.interests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 11.6rem;
  padding: 1rem 1.15rem 1.1rem;
  text-decoration: none;
  color: white;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.15;
  transition: transform 0.18s ease;
}

.tile-icon {
  width: 4.6rem;
  height: 4.6rem;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(27, 39, 68, 0.22));
}

.tile:hover {
  transform: translateY(-3px);
  color: white;
}

.tile span {
  max-width: 22ch;
}

.tile:nth-child(6n + 1) {
  background: #263b68;
}
.tile:nth-child(6n + 2) {
  background: #496a83;
}
.tile:nth-child(6n + 3) {
  background: #78815b;
}
.tile:nth-child(6n + 4) {
  background: #e9ad45;
  color: var(--ink);
}
.tile:nth-child(6n + 5) {
  background: #d8cbaa;
  color: var(--ink);
}
.tile:nth-child(6n + 6) {
  background: #496a83;
}

.tile:nth-child(6n + 4):hover,
.tile:nth-child(6n + 5):hover {
  color: var(--ink);
}

.methods {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.methods .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.methods h2 {
  margin-top: 0.2rem;
}

.funders {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.funders a {
  display: inline-block;
  text-decoration: none;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
  color: var(--deep);
}

.funders a:hover {
  border-color: var(--deep);
  background: var(--deep);
  color: white;
}

.page-hero {
  position: relative;
  color: white;
  min-height: 280px;
  display: grid;
  align-items: end;
}

.page-hero .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(38, 59, 104, 0.78),
    rgba(38, 59, 104, 0.38) 70%,
    rgba(38, 59, 104, 0.16)
  );
}

.page-hero .wrap {
  position: relative;
  padding: 4.5rem 0 2.4rem;
}

.page-hero h1 {
  color: white;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.page-hero p {
  max-width: 40rem;
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.people {
  display: grid;
  gap: 0.9rem;
}

.person {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 1.1rem;
  background: var(--sand);
  padding: 1.15rem 1.2rem;
  border: 1px solid transparent;
  align-items: start;
}

.person img {
  width: 7.2rem;
  height: 7.2rem;
  object-fit: cover;
  object-position: center 18%;
}

.person:not(:has(img)) {
  grid-template-columns: 1fr;
}

.person:nth-child(6n + 1) {
  border-left: 5px solid #263b68;
}
.person:nth-child(6n + 2) {
  border-left: 5px solid #496a83;
}
.person:nth-child(6n + 3) {
  border-left: 5px solid #78815b;
}
.person:nth-child(6n + 4) {
  border-left: 5px solid #e9ad45;
}
.person:nth-child(6n + 5) {
  border-left: 5px solid #d8cbaa;
}
.person:nth-child(6n + 6) {
  border-left: 5px solid #496a83;
}

.role {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep);
}

.person h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.35rem;
}

.person p {
  margin: 0;
  color: var(--muted);
}

.group-label {
  margin: 2.2rem 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--indigo);
}

.group-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.group-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 4;
  object-fit: cover;
  object-position: center;
}

.director-photo {
  width: min(100%, 320px);
  margin: 0 0 1.2rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.timeline li {
  background: var(--sand);
  padding: 1rem 1.1rem;
  border-top: 3px solid var(--gold);
}

.timeline strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--indigo);
}

.timeline span {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}

.card {
  background: var(--sand);
  padding: 1.3rem 1.35rem;
  border: 1px solid var(--line);
}

.card h2 {
  font-size: 1.7rem;
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-list a {
  font-weight: 560;
}

.map {
  width: 100%;
  height: 240px;
  border: 0;
  margin-top: 1rem;
}

.form-frame {
  width: 100%;
  min-height: 760px;
  border: 0;
  background: var(--sand);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.search-field {
  flex: 1 1 280px;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-field input[type='search'] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.95rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 999px 0 0 999px;
}

.search-field select {
  flex: 0 1 15.5rem;
  max-width: 46%;
  font: inherit;
  font-weight: 500;
  color: var(--indigo);
  padding: 0.7rem 2rem 0.7rem 0.85rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23263B68' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  appearance: none;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filters button {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.filters button[aria-pressed='true'] {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
}

.pub-list {
  display: grid;
  gap: 0.75rem;
}

.pub {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.8rem;
  background: var(--sand);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}

.pub-num {
  font-family: var(--serif);
  color: var(--lilac);
  font-size: 1.25rem;
}

.pub p {
  margin: 0;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.45rem;
}

.pub-links a {
  font-size: 0.92rem;
  font-weight: 560;
}

.empty {
  color: var(--muted);
}

.count {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--indigo);
  color: rgba(255, 255, 255, 0.86);
  padding: 2.2rem 0 1.6rem;
}

.site-footer a {
  color: var(--gold);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-brand {
  font-family: var(--serif);
  color: white;
  font-size: 1.3rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    background: #e9e1d0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(38, 59, 104, 0.12);
  }

  .site-nav.open {
    display: flex;
  }

  .mast.home .hero {
    min-height: 0;
    display: block;
    padding-top: max(210px, 52vw);
  }

  .hero {
    min-height: 0;
    display: block;
  }

  .hero-card {
    margin: -2.4rem 1rem 1.5rem;
    padding: 1.5rem;
  }

  .split,
  .methods .wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .group-gallery {
    grid-template-columns: 1fr;
  }

  .group-gallery img {
    aspect-ratio: 9 / 4;
    height: auto;
  }

  .search-field {
    flex-basis: 100%;
  }

  .search-field select {
    flex-basis: 42%;
    max-width: none;
    font-size: 0.92rem;
  }

  .person {
    grid-template-columns: 5.4rem 1fr;
  }

  .person img {
    width: 5.4rem;
    height: 5.4rem;
  }

  .person:not(:has(img)) {
    grid-template-columns: 1fr;
  }

  .interests {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .pub {
    grid-template-columns: 2.4rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tile {
    transition: none;
  }
  .brain-float {
    animation: none;
  }
}

.admin-entry {
  display: block;
  margin: 1.6rem auto 0;
  padding: 0.35rem 0.5rem;
  border: 0;
  background: transparent;
  color: rgba(38, 59, 104, 0.28);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-entry:hover,
.admin-entry:focus-visible {
  color: var(--deep);
}

dialog {
  border: 0;
  padding: 1.4rem 1.5rem 1.3rem;
  max-width: min(36rem, calc(100vw - 2rem));
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(38, 59, 104, 0.22);
}

dialog::backdrop {
  background: rgba(38, 59, 104, 0.45);
}

dialog h2 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.6rem;
}

dialog label,
.admin-form label {
  display: grid;
  gap: 0.3rem;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  font-weight: 560;
}

dialog input,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.admin-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.admin-error {
  color: #8a2f2f;
  margin: 0.7rem 0 0;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.admin-status {
  min-height: 1.4rem;
  color: var(--deep);
}

.admin-gate,
.admin-form {
  margin-top: 1rem;
}

.link-block {
  margin-top: 0.9rem;
}

.link-set {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.link-set:first-child {
  border-top: 0;
  padding-top: 0;
}

.link-set label {
  margin-top: 0.45rem;
}

.link-set input {
  width: 100%;
}

.link-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.icon-button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--deep);
  border-radius: 999px;
  background: var(--sand);
  color: var(--deep);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--deep);
  color: white;
}

.photo-preview {
  display: block;
  width: 9rem;
  aspect-ratio: 1;
  object-fit: cover;
  margin-top: 0.7rem;
  background: var(--paper);
}

.photo-preview.wide {
  width: min(100%, 28rem);
  aspect-ratio: 9 / 4;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.2rem 0 0.4rem;
}

.admin-tabs button {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.admin-tabs button[aria-selected='true'] {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
}

.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0;
  font-weight: 380;
}

.check-grid input {
  width: auto;
}

.admin-form fieldset {
  font-weight: 380;
}

.admin-form fieldset {
  border: 1px solid var(--line);
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.8rem 0.8rem;
}

.admin-form .hint,
.sort-list .hint {
  display: block;
  margin-top: 0.35rem;
  font-weight: 380;
  color: var(--muted);
}

.sort-list .pub-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
  margin-top: 0.35rem;
}

.sort-list .pub-preview-links a {
  font-size: 0.85rem;
  font-weight: 560;
}

.sort-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sort-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  background: var(--sand);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  cursor: grab;
  user-select: none;
}

.row-actions {
  display: flex;
  gap: 0.1rem;
}

.row-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--deep);
  cursor: pointer;
}

.row-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.row-icon:hover,
.row-icon[aria-pressed='true'] {
  color: var(--indigo);
}

.sort-list li.is-hidden {
  opacity: 0.5;
}

.sort-list li.dragging {
  opacity: 0.45;
  pointer-events: none;
}

.confirm-dialog {
  max-width: min(28rem, calc(100vw - 1.5rem));
  width: min(28rem, calc(100vw - 1.5rem));
}

.confirm-dialog p {
  margin: 0.2rem 0 0;
}

.sort-list img,
.sort-list .no-photo {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  background: var(--paper);
}

.photo-sort img {
  width: 7.2rem;
  height: auto;
  aspect-ratio: 9 / 4;
}

.sort-list button {
  font: inherit;
  border: 0;
  background: transparent;
  color: var(--deep);
  cursor: pointer;
}

.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.crop-dialog,
.edit-dialog {
  max-width: min(40rem, calc(100vw - 1.5rem));
  width: min(40rem, calc(100vw - 1.5rem));
}

.edit-dialog {
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.crop-frame {
  position: relative;
  overflow: hidden;
  background: #263b68;
  touch-action: none;
  cursor: grab;
  margin: 0.4rem 0 0.8rem;
}

.crop-frame:active {
  cursor: grabbing;
}

.crop-frame img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 860px) {
  .admin-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .check-grid {
    grid-template-columns: 1fr;
  }
}
