:root {
  --blue: #2033f5;
  --blue-deep: #1422b0;
  --sky-1: #1565e0;
  --sky-2: #3a8cf0;
  --paper: #f3f3f1;
  --ink: #12141a;
  --muted: #4d5566;
  --line: #deded8;
  --white: #fff;
  --danger: #9f1d1d;
  --ok: #0d6b45;
  --shadow: 0 16px 40px rgba(18, 20, 40, 0.08);
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
main { flex: 1 0 auto; min-width: 0; }
.topbar, .footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, .wordmark {
  font-family: "Unbounded", "Manrope", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 243, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; background: transparent; }
.wordmark { font-size: 14px; font-weight: 700; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn, .btn, .icon-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.menu-btn, .icon-btn {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 0 14px;
}
.menu-btn { width: 48px; padding: 0; }
.burger, .burger::before, .burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.btn { min-height: 48px; padding: 0 18px; font-weight: 700; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.danger-zone { border: 1px solid #e7b4b4; background: #fff6f6; }
.danger-zone code { font-weight: 700; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.menu-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 20px;
}
.menu-panel.open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  box-shadow: 0 16px 32px rgba(16, 20, 40, 0.12);
}
.menu-panel a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(32, 51, 245, 0.92) 0%, rgba(20, 34, 176, 0.94) 70%),
    url("/brand/texture_blue_grunge_tile.png");
  background-size: auto, 420px 420px;
  color: #fff;
  overflow: hidden;
  padding: 48px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/brand/overlay_grunge_specks.png");
  background-size: 520px auto;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 8px 24px; align-items: end; justify-items: end; }
.hero-grid > * { min-width: 0; }
.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.hero h1 { margin: 10px 0 16px; font-size: clamp(32px, 8vw, 76px); max-width: min(12ch, 100%); }
.hero .sticker { margin-top: 28px; }
.hero-art {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  /* Slightly taller than 2.15 so lower facade / entrance reach the tear */
  aspect-ratio: 2 / 1;
}
.hero-building {
  position: absolute;
  width: 116%;
  max-width: none;
  height: auto;
  left: 2%;
  top: 0;
  margin: 0;
  mix-blend-mode: normal;
  opacity: 1;
  pointer-events: none;
}
/* Poster seam: white torn edge overlaps building base; no gap / black bar */
.torn-seam {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  margin: 0;
}
.torn-seam img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
}
.torn-hero {
  /* Pull tear up over the building so facade lands on the jagged edge */
  margin-top: calc(-100vw * 117 / 1024 * 0.78);
}
.torn-band {
  margin: -18px 0 -28px;
  z-index: 2;
}
.torn-into-awaits {
  margin: -8px 0 -22px;
  z-index: 2;
}
.torn-into-projects {
  margin: -10px 0 -26px;
  z-index: 2;
}
.section-paper {
  position: relative;
  background-color: var(--paper);
  background-image: url("/brand/texture_paper_tile.png");
  background-size: 480px 480px;
}

.section { padding: 56px 0; scroll-margin-top: 88px; }
.section h2 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 18px; }
.slogan {
  font-size: clamp(28px, 4vw, 44px);
  font-family: "Unbounded", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}
.rich p { margin: 0 0 12px; }
.rich table { width: 100%; border-collapse: collapse; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px; vertical-align: top; }
.rich img { border-radius: 12px; margin: 8px 0; }

.stats { display: grid; gap: 12px; }
.awaits-layout { display: grid; gap: 28px; align-items: start; }
.awaits-rail { display: grid; gap: 14px; }
.awaits-head h2 { margin-bottom: 8px; }
.awaits-lead { margin: 0; color: #dbe4ff; }
.stats-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stat-card {
  position: relative;
  background: #172554;
  color: #dbe4ff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.stat-card.is-active {
  border-color: #fff;
  background: #1e3a8a;
  box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.7);
}
.stat-card b {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card span { font-weight: 600; }
.awaits-panels { display: grid; gap: 22px; }
.await-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68vh;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
}
.await-panel img {
  width: 100%;
  height: min(42vh, 360px);
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.await-panel h3 { margin: 16px 0 8px; font-size: clamp(22px, 2.4vw, 32px); color: #fff; }
.await-panel p { margin: 0; color: #dbe4ff; }
@media (min-width: 800px) {
  .awaits-layout { grid-template-columns: minmax(240px, 320px) 1fr; gap: 36px; }
  .awaits-rail {
    position: sticky;
    top: 96px;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }
}
@media (max-width: 799px) {
  .await-panel { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-card { transition: none; }
}
.awaits {
  background:
    linear-gradient(180deg, rgba(20, 34, 176, 0.96) 0%, rgba(16, 24, 46, 0.98) 55%),
    url("/brand/texture_blue_grunge_tile.png");
  background-size: auto, 420px 420px;
  color: #fff;
}
.awaits h2, .awaits p { color: #fff; }
.awaits-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.awaits .btn-ghost { background: #fff; }
.stat {
  background: #172554;
  color: #dbe4ff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat b { display: block; font-family: "Unbounded", sans-serif; font-size: 40px; color: #fff; letter-spacing: -0.04em; }
.slogan em { color: var(--blue); font-style: normal; }
.sticker {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 6px 0 4px;
  color: #0c0c0c;
  text-decoration: none;
  isolation: isolate;
}
.sticker-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sticker-stack { position: relative; display: inline-block; }
.sticker-sheet {
  position: relative;
  display: inline-grid;
  max-width: 100%;
}
.sticker-paper {
  position: absolute;
  inset: 0;
  background-color: #fffdf9;
  background-image:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.95), transparent 46%),
    radial-gradient(90% 80% at 100% 120%, rgba(70, 54, 32, 0.07), transparent 52%),
    linear-gradient(168deg, #ffffff 0%, #f4f0e6 58%, #fffdf8 100%);
  box-shadow:
    0 12px 18px rgba(6, 14, 48, 0.28),
    0 2px 4px rgba(6, 14, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(40, 30, 16, 0.05);
  filter: url("#sticker-crumple");
}
.sticker-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(104deg, transparent 0 38%, rgba(255, 255, 255, 0.85) 47%, rgba(28, 22, 14, 0.07) 51%, transparent 62%),
    url("/brand/noise.svg");
  background-size: auto, 140px 140px;
  opacity: 0.32;
  mix-blend-mode: multiply;
}
.sticker-ink {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 16px 7px;
  font-family: "Oswald", "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 46px);
  letter-spacing: 0.02em;
  line-height: 0.88;
  text-transform: uppercase;
  color: #0a0a0a;
  white-space: nowrap;
}
.sticker-sheet-front { z-index: 1; transform: rotate(-2.8deg); transform-origin: 18% 80%; }
.sticker-sheet-back {
  position: absolute;
  z-index: 0;
  left: 7%;
  width: 86%;
  height: 78%;
  bottom: -16px;
  transform: rotate(3.6deg);
  transform-origin: 80% 0;
}
.sticker-sheet-0 { z-index: 2; transform: rotate(-3.2deg); transform-origin: 12% 70%; }
.sticker-sheet-1 {
  z-index: 1;
  margin-top: -8px;
  margin-left: 22px;
  transform: rotate(3.4deg);
  transform-origin: 80% 20%;
}
.sticker-sheet { transition: transform 0.18s ease; }
.sticker:hover .sticker-sheet-front { transform: rotate(-3.8deg) translateY(-1px); }
.sticker:hover .sticker-sheet-back { transform: rotate(4.6deg); }
.sticker:hover .sticker-sheet-0 { transform: rotate(-4.2deg) translateY(-1px); }
.sticker:hover .sticker-sheet-1 { transform: rotate(4.4deg) translateY(-1px); }
.sticker:focus-visible { outline: 3px solid #fff; outline-offset: 8px; }
@media (prefers-reduced-motion: reduce) {
  .sticker-sheet { transition: none; }
}

.carousel { position: relative; }
.carousel-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 10;
}
.carousel-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.carousel-frame img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .carousel-frame img { transition: none; }
}
.carousel-nav { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.dots { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: #c8c8c2; padding: 0; }
.dots button[aria-current="true"] { background: var(--blue); width: 22px; }

.project-grid, .partner-row { display: grid; gap: 14px; }
.project, .partner {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.project div, .partner { padding: 16px; }
.project h3 { margin: 0 0 8px; font-size: 22px; }

.footer { background: var(--ink); color: #fff; padding: 28px 0; }
.footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.footer-credit {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}
.footer-credit a { font-weight: 700; text-underline-offset: 3px; }
.footer-plain { padding: 16px 0; }
.footer-plain .footer-credit { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-row > strong { flex: 1 0 100%; }
.partner-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.footer-logo { height: 72px; width: auto; max-width: 280px; display: block; object-fit: contain; }

.page { padding: 28px 0 120px; }
.page > * + * { margin-top: 32px; }
.page h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 18px; }
.processor-note { margin: -6px 0 16px; font-weight: 700; }
.card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card h2 { font-size: 20px; margin: 0 0 12px; }
.chamber-label { font-size: 15px; margin: 14px 0 8px; letter-spacing: 0; }
label, .lbl { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
input, select, textarea {
  display: block;
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
}
select.field-select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2312141a' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
form.card > .btn,
.card > .btn { margin-top: 16px; }
textarea { min-height: 140px; resize: vertical; }
.help { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-weight: 700; }
.ok { color: var(--ok); font-weight: 700; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.choice input { width: auto; min-height: 0; margin-top: 4px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs button { flex: 1; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.committee-list { display: flex; flex-direction: column; gap: 10px; }
.committee-card {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 12px;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}
.committee-card[aria-checked="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.committee-card small { display: block; color: var(--muted); margin-top: 6px; }
.dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 99px;
  border: 2px solid #c8c8c2;
  display: inline-block;
}
.committee-card[aria-checked="true"] .dot { background: var(--ink); border-color: var(--ink); }
.picked { font-size: 14px; margin-top: 8px; overflow-wrap: anywhere; }
.dropdown-toggle {
  width: 100%;
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  white-space: normal;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.dropdown-toggle span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dropdown-toggle svg { margin-top: 4px; flex: 0 0 auto; }
.dropdown-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  max-height: 280px;
  overflow: auto;
}
.dropdown-list button {
  width: 100%;
  height: auto;
  min-height: 44px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
}
.dropdown-list button[aria-selected="true"] { background: #e7ecff; }

.dl { display: grid; gap: 10px; }
.dl div { background: #fff; border-radius: 14px; padding: 12px 14px; }
.dl dt { font-size: 13px; color: var(--muted); }
.dl dd { margin: 4px 0 0; font-weight: 700; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 10px; background: #e7ecff; color: var(--blue-deep); font-weight: 800; font-size: 14px; }
.badge-review { background: #fff4d6; color: #8a5a00; }
.badge-accepted { background: #e5f6ea; color: var(--ok); }
.badge-rejected { background: #fde8e8; color: var(--danger); }
.account { max-width: 720px; min-width: 0; }
.account-kicker { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 650; }
.account-intro h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.account-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.account-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; }
.account-status::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--blue); }
.account-status-review::before { background: #c4841d; }
.account-status-accepted::before { background: var(--ok); }
.account-status-rejected::before { background: var(--danger); }
.account-note { margin: 18px 0 28px; max-width: 52ch; color: #8b909a; font-size: 13px; line-height: 1.45; }
.account-sheet {
  background: #fff;
  border-radius: 28px;
  padding: 8px 28px;
  border: 1px solid rgba(18, 20, 26, 0.06);
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-row {
  display: grid;
  grid-template-columns: minmax(132px, 190px) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid #ecece8;
  min-width: 0;
}
.account-row:first-child { border-top: 0; }
.account-row dt { margin: 0; color: #8b909a; font-size: 13px; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.account-row dd { margin: 0; font-weight: 560; min-width: 0; overflow-wrap: anywhere; }
.account-row-wide { grid-template-columns: 1fr; gap: 6px; }
.account-row-wide dd { font-weight: 500; line-height: 1.45; }
.account-pass { margin-top: 36px; }
.account-pass h2 { font-size: 26px; margin: 0 0 6px; }
.account-pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-pass label { margin-top: 8px; }
.account-pass .btn { margin-top: 14px; }
.account-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
@media (max-width: 799px) {
  .account-sheet { padding: 4px 18px; border-radius: 22px; }
  .account-row, .account-pass-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .account-actions .btn { width: 100%; }
}

.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.toolbar button, .editor-btn { min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 0 8px; }
.ProseMirror { min-height: 160px; outline: none; }
.ProseMirror p { margin: 0 0 8px; }
.row-2 { display: grid; gap: 10px; }

@media (min-width: 800px) {
  .wordmark { font-size: 16px; }
  .hero { padding: 64px 0 0; }
  .hero-copy { position: relative; z-index: 1; padding-bottom: 48px; }
  .hero-grid { grid-template-columns: 1fr; justify-items: end; }
  .stats { grid-template-columns: repeat(5, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-row { grid-template-columns: repeat(3, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .card { padding: 22px; }
}

@media (max-width: 799px) {
  .hide-sm { display: none; }
  .hero { padding: 28px 0 0; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 52px); max-width: 100%; }
  .hero-copy { padding-bottom: 36px; }
  .sticker-ink { font-size: clamp(20px, 6.2vw, 32px); padding: 6px 12px 5px; }
  .section { padding: 40px 0; }
  .footer { padding: 24px 0 32px; }
  .footer-logo { height: 56px; max-width: 100%; }
}
.toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  width: min(360px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 20, 40, 0.18);
}
.toast p { margin: 0; padding: 14px 14px 12px; font-weight: 700; }
.toast-error { border: 1px solid #f3c7c7; }
.toast-ok { border: 1px solid #b7e4c7; }
.toast-bar { display: block; height: 4px; transform-origin: left center; animation: toast-shrink 5s linear forwards; }
.toast-error .toast-bar { background: var(--danger); }
.toast-ok .toast-bar { background: var(--ok); }
@keyframes toast-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; align-items: start; }
.admin-side {
  position: sticky;
  top: var(--header);
  background: #fff;
  border-right: 1px solid var(--line);
  min-height: calc(100vh - var(--header));
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-side nav { display: flex; flex-direction: column; gap: 4px; }
.admin-side a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 12px;
}
.admin-side a[aria-current="page"] { background: #e7ecff; color: var(--blue-deep); }
.admin-main { min-width: 0; }
.admin-main .page { padding-top: 36px; }
.admin-main .page h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}
.admin-main .help { margin: 0 0 20px; line-height: 1.5; }
.admin-main .card {
  border: 1px solid rgba(18, 20, 26, 0.06);
  border-radius: 24px;
  padding: 22px 24px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(18, 20, 26, 0.04), 0 16px 40px rgba(18, 20, 26, 0.05);
}
.admin-main .card h2 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 8px; }
.admin-main .card .card {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7f7f5;
  box-shadow: none;
}
.admin-main form.wrap > .btn,
.admin-main .wrap > .btn { margin-top: 4px; }
.admin-main .table-wrap { margin: 8px 0 28px; }
.admin-main table.data th,
.admin-main table.data td { padding: 14px 16px; }
.admin-main table.data th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafaf8;
}
.admin-main input,
.admin-main select,
.admin-main textarea {
  border-color: #e3e3dc;
  background: #fafaf8;
}
.admin-main input:focus,
.admin-main select:focus,
.admin-main textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 51, 245, 0.14);
}
.admin-main .danger-zone { margin-bottom: 0; }
.admin-main .danger-zone .btn + .help,
.admin-main .danger-zone .btn + label { margin-top: 18px; }
@media (min-width: 800px) {
  .admin-main .table-wrap {
    border: 1px solid rgba(18, 20, 26, 0.06);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(18, 20, 26, 0.04), 0 16px 40px rgba(18, 20, 26, 0.05);
  }
  .admin-main table.data { box-shadow: none; }
}
.dash-grid { display: grid; gap: 16px; }
.dash-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(18, 20, 26, 0.06);
  border-radius: 22px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(18, 20, 26, 0.04), 0 16px 40px rgba(18, 20, 26, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(18, 20, 26, 0.08);
}
.dash-card span { color: var(--muted); font-weight: 500; line-height: 1.45; }
.success { display: grid; min-height: calc(100vh - var(--header) - 80px); }
.success-copy { padding: 48px 8vw; }
.success-art { background: var(--blue-deep); display: grid; place-items: end; }
.success-art img { width: min(100%, 640px); filter: brightness(0) invert(1); }

@media (min-width: 800px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .success { grid-template-columns: 1.1fr 0.9fr; }
}
@media (max-width: 799px) {
  .admin-shell { display: block; max-width: 100%; }
  .admin-side {
    position: sticky;
    top: var(--header);
    z-index: 25;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }
  .admin-label { display: none; }
  .admin-side nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .admin-side a,
  .admin-side .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
    padding: 8px 12px;
  }
  .admin-main { width: 100%; max-width: 100%; overflow-x: clip; }
  .admin-main .page { padding-top: 12px; }
  .admin-main .wrap { width: min(1120px, calc(100% - 20px)); }
  .admin-main h1 { font-size: 32px; }
  .admin-main .row-2 { grid-template-columns: 1fr; }
  .admin-main table.data { min-width: 0; }
  .admin-main table.data thead { display: none; }
  .admin-main table.data,
  .admin-main table.data tbody,
  .admin-main table.data tr,
  .admin-main table.data td { display: block; width: 100%; }
  .admin-main table.data tr {
    background: #fff;
    border-radius: 16px;
    margin: 0 0 10px;
    padding: 6px 0;
    box-shadow: var(--shadow);
  }
  .admin-main table.data td {
    border-bottom: 0;
    display: grid;
    grid-template-columns: minmax(96px, 34%) 1fr;
    gap: 8px 12px;
    align-items: start;
    padding: 10px 14px;
  }
  .admin-main table.data td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
  }
  .admin-main table.data td:not([data-label]) {
    grid-template-columns: 1fr;
  }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; }
  .success-art { min-height: 240px; }
  .top-actions .btn { padding: 0 12px; font-size: 14px; }
}

.live-field { position: relative; }
.pencil, .photo-pencil {
  position: absolute;
  z-index: 3;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.inline-edit {
  width: 100%;
  margin: 0 0 8px;
  padding: 0 42px 4px 0;
  min-height: 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
}
.inline-edit.slogan, .inline-edit.section-title, .inline-edit.project-title, .stat-value {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.inline-edit.slogan { font-size: clamp(28px, 4vw, 44px); }
.inline-edit.section-title { font-size: clamp(32px, 5vw, 52px); }
.stat-value { font-size: 40px; font-weight: 700; }
.awaits .inline-edit { color: #fff; }
.slide-tools, .partner-edit, .menu-edit-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.partner-edit { width: 100%; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.partner-edit .choice { margin: 0; color: #fff; }
.slide-tools input, .partner-edit input, .menu-edit-row input { min-height: 40px; }
.menu-edit-row { display: grid; grid-template-columns: 1fr minmax(120px, 180px) auto; align-items: center; }
.editor-menu { position: relative; min-height: 44px; padding: 8px 16px 0; }
.editor-menu .pencil { top: 8px; right: 16px; }
.editor-sheet {
  position: static;
  margin: 12px 16px 0;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.editor-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.edit-close { margin: 0 0 10px; }
.footer .edit-close { background: #fff; color: var(--ink); }
.menu-hint {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
}
.project-photo { position: relative; }
.save-float {
  position: fixed;
  right: 88px;
  bottom: 20px;
  z-index: 90;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.save-float .btn {
  pointer-events: auto;
  height: 56px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(32, 51, 245, 0.35);
}
.bubble {
  display: flex;
  gap: 2px;
  padding: 6px;
  background: #12141a;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.bubble button, .bubble label {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bubble button.is-active { background: var(--blue); }
.live-rich .ProseMirror { min-height: 80px; outline: none; }
body.editing-home > div > footer.footer,
body.editing-home footer.footer { display: none; }
body.editing-home .home-editor > footer.footer { display: block; }
.menu-btn svg { width: 18px; height: 18px; }
.lang-switch {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(32, 51, 245, 0.35);
  cursor: pointer;
}

@media (max-width: 560px) {
  .wordmark { display: none; }
}
