.header-actions {
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  column-gap: .7rem;
}

.header-actions > nav:first-child {
  grid-row: 1;
  grid-column: 1;
  gap: clamp(.55rem, 1.35vw, 1.35rem);
}

.header-actions > .locale-switcher {
  grid-row: 2;
  grid-column: 1 / -1;
}

.account-link {
  grid-row: 1;
  grid-column: 2;
  padding: .48rem .72rem;
  color: var(--ink);
  border-radius: 999px;
  background: var(--aqua);
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-event {
  display: flex;
  width: fit-content;
  margin-top: 1rem;
  padding: .55rem .8rem;
  color: var(--ink);
  border-radius: 999px;
  background: var(--aqua);
  font-size: .7rem;
  font-weight: 800;
}

.place-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.reaction-button {
  display: inline-flex;
  gap: .36rem;
  align-items: center;
  min-height: 2.25rem;
  padding: .42rem .68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 76%);
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.reaction-button:hover {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  transform: translateY(-2px);
}

.reaction-button.is-active {
  color: #084e48;
  border-color: #8bd9ce;
  background: #dff8f3;
}

.reaction-button:disabled { cursor: wait; opacity: .6; }
.reaction-button small { color: currentcolor; }
.place-card .place-reactions { margin: .7rem 0 .25rem; }
.place-card .reaction-button { min-height: 1.9rem; padding: .3rem .52rem; font-size: .6rem; }

.local-pantry {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 5rem;
}

.local-pantry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.local-pantry-grid article {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 1.3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(155deg, white, #edf5ec);
}

.local-pantry-grid article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.local-pantry-grid header span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  color: white;
  border-radius: 50%;
  background: var(--ink);
  font-weight: 900;
}

.local-pantry-grid header p {
  color: var(--blue);
  font-size: .68rem;
  font-weight: 800;
}

.local-pantry-grid h3 { margin: 1.3rem 0 .55rem; font-size: 1.3rem; }
.local-pantry-grid > article > p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.75; }
.local-pantry-grid footer { display: flex; gap: .65rem; margin-top: auto; padding-top: 1rem; font-size: .67rem; font-weight: 800; }
.local-pantry-grid footer a:first-child { color: var(--blue); }
.local-pantry-grid footer a:last-child { color: var(--muted); }

.report-information {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: white;
}

.report-information summary {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
}

.report-information summary::-webkit-details-marker { display: none; }
.report-information summary > span { display: grid; place-items: center; width: 1.8rem; aspect-ratio: 1; color: white; border-radius: 50%; background: var(--coral); font-weight: 900; }
.report-information summary small { margin-left: auto; color: var(--muted); }
.report-information-body { padding: 0 1.2rem 1.2rem; border-top: 1px solid var(--line); }
.report-information-body > p { color: var(--muted); font-size: .78rem; line-height: 1.7; }

.report-form, .account-form {
  display: grid;
  gap: 1rem;
}

.report-form label > span, .account-form label > span {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.report-form :is(select, textarea, input:not([type="submit"])),
.account-form :is(input:not([type="submit"]), textarea, select) {
  width: 100%;
  min-height: 3rem;
  padding: .72rem .8rem;
  border: 1px solid #d3dbe0;
  border-radius: .7rem;
  background: white;
  font: inherit;
}

.report-form textarea { resize: vertical; }
.report-form input[type="submit"], .account-form input[type="submit"] { width: fit-content; padding: .8rem 1.1rem; color: white; border: 0; border-radius: 999px; background: var(--blue); font: inherit; font-weight: 800; cursor: pointer; }
.report-form > small, .account-form small { color: var(--muted); font-size: .65rem; line-height: 1.5; }
.report-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.account-shell, .account-dashboard {
  width: min(1040px, calc(100% - 2rem));
  min-height: 75svh;
  margin-inline: auto;
  padding: 10rem 0 6rem;
}

.account-panel {
  width: min(620px, 100%);
  margin-inline: auto;
  padding: clamp(1.4rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: white;
  box-shadow: var(--shadow);
}

.account-panel--compact { width: min(520px, 100%); }
.account-panel > header h1, .account-dashboard-hero h1 { margin: .4rem 0; font-size: clamp(2rem, 6vw, 4.6rem); letter-spacing: -.065em; }
.account-panel > header > p:last-child, .account-dashboard-hero > div > p:last-child { color: var(--muted); line-height: 1.7; }
.account-form { margin-top: 2rem; }
.account-check { display: flex; gap: .55rem; align-items: center; }
.account-form .account-check input { width: auto; min-height: auto; }
.account-form .account-check span { margin: 0; }
.account-links { display: flex; gap: 1rem; margin-top: 1.2rem; color: var(--blue); font-size: .72rem; font-weight: 800; }
.oauth-options { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.oauth-options h2 { font-size: 1rem; }
.oauth-options > p { color: var(--muted); font-size: .7rem; }
.oauth-buttons { display: grid; gap: .5rem; }
.oauth-button { width: 100%; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: white; font-weight: 800; cursor: pointer; }
.oauth-button.disabled { color: var(--muted); cursor: not-allowed; }
.oauth-button small { display: block; margin-top: .15rem; }
.account-back { display: inline-block; margin-top: 1.2rem; color: var(--blue); font-size: .72rem; font-weight: 800; }

.account-dashboard-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.account-dashboard-hero form button { padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; }
.account-place-list { padding-top: 3rem; }
.account-place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.account-place-grid article { display: flex; flex-direction: column; min-height: 180px; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.account-place-grid article > span { color: var(--blue); font-size: .65rem; font-weight: 800; }
.account-place-grid h3 { margin: .8rem 0 .3rem; }
.account-place-grid p { color: var(--muted); font-size: .7rem; }
.account-place-grid article > a:last-child { margin-top: auto; color: var(--blue); font-size: .7rem; font-weight: 800; }
.account-empty { padding: 1.2rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 1rem; }

.admin-auth { min-height: 100svh; background: radial-gradient(circle at 20% 10%, rgb(25 88 255 / 28%), transparent 32%), var(--ink); }
.admin-auth-main { display: grid; place-items: center; min-height: 100svh; padding: 2rem 1rem; }
.admin-login { width: min(480px, 100%); padding: clamp(1.5rem, 5vw, 3rem); border-radius: 1.5rem; background: white; box-shadow: 0 30px 90px rgb(0 0 0 / 30%); }
.admin-login-mark { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; color: white; border-radius: 50%; background: var(--ink); font-weight: 900; }
.admin-login header > p:first-of-type { color: var(--blue); font-size: .65rem; font-weight: 900; letter-spacing: .16em; }
.admin-login h1 { margin: .4rem 0; font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: -.065em; }
.admin-login header > p:last-child { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.admin-login-back { display: inline-block; margin-top: 1.2rem; color: var(--blue); font-size: .72rem; font-weight: 800; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.admin-tabs a { padding: .5rem .72rem; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: .7rem; font-weight: 800; }
.admin-tabs a[aria-current="page"] { color: white; border-color: var(--ink); background: var(--ink); }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-definition-list div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.admin-definition-list dt { color: var(--muted); font-size: .7rem; }
.admin-definition-list dd { margin: 0; overflow-wrap: anywhere; font-size: .78rem; }
.admin-decision-form label > span { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .68rem; font-weight: 800; }
.admin-decision-form textarea { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: .6rem; font: inherit; }

@media (max-width: 900px) {
  .local-pantry-grid { grid-template-columns: repeat(2, 1fr); }
  .account-place-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .header-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .header-actions > nav:first-child { width: 100%; overflow-x: auto; }
  .header-actions > nav:first-child a { flex: 0 0 auto; }
  .account-link { font-size: .62rem; }
}

@media (max-width: 560px) {
  .header-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .header-actions > nav:first-child { grid-row: 1; grid-column: 1 / -1; }
  .header-actions > .account-link { grid-row: 2; grid-column: 2; }
  .header-actions > .locale-switcher { grid-row: 2; grid-column: 1; }
  .local-pantry-grid, .account-place-grid, .admin-detail-grid { grid-template-columns: 1fr; }
  .local-pantry-grid article { min-height: 230px; }
  .report-information summary { align-items: flex-start; flex-wrap: wrap; }
  .report-information summary small { width: 100%; margin-left: 2.5rem; }
  .account-dashboard-hero { align-items: flex-start; flex-direction: column; }
  .place-card .reaction-button { font-size: .56rem; }
}
