:root {
  color-scheme: light;
  --bg: #edf3ec;
  --surface: #f8fbf7;
  --surface-raised: #fff;
  --surface-soft: #e4ede3;
  --ink: #25392c;
  --ink-soft: #465b4a;
  --muted: #718075;
  --line: rgba(42, 70, 48, .14);
  --line-strong: rgba(42, 70, 48, .24);
  --green: #537b5c;
  --green-dark: #3c6045;
  --green-pale: #dce9dc;
  --sand: #e8dcc8;
  --max: 1200px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-soft: 0 16px 44px rgba(41, 65, 45, .09);
  --shadow-card: 0 10px 28px rgba(41, 65, 45, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(183, 207, 177, .42), transparent 36%),
    radial-gradient(ellipse at 94% 43%, rgba(218, 229, 211, .48), transparent 33%),
    linear-gradient(145deg, #f1f6ef 0%, var(--bg) 56%, #e8f0e8 100%);
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(83, 123, 92, .58);
  outline-offset: 3px;
}
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.hidden { display: none !important; }
body:not(.is-admin) .admin-only, body:not(.is-admin) .category-tools, body:not(.is-admin) .card-tools { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.nav-wrap { position: sticky; z-index: 30; top: 0; padding: 14px 0 0; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 48px), 1200px);
  min-height: 64px;
  margin-inline: auto;
  padding: 9px 12px 9px 20px;
  border: 1px solid rgba(42, 70, 48, .12);
  border-radius: 999px;
  background: rgba(249, 252, 248, .9);
  box-shadow: 0 8px 30px rgba(43, 66, 46, .08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #f3f6ef;
  font: 600 15px/1 Georgia, serif;
}
.brand-copy { display: grid; gap: 1px; }
.brand-name { font-size: 12px; font-weight: 750; line-height: 1.1; }
.brand-label { color: var(--muted); font-size: 9px; line-height: 1.25; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); color: var(--ink-soft); font-size: 12px; }
.nav-links a { transition: color .18s ease; }
.nav-links a:hover { color: var(--green-dark); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.admin-toggle {
  padding: 9px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}
.admin-toggle:hover { background: var(--surface-soft); color: var(--green-dark); }

.host-preference {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(229, 238, 226, .7);
  white-space: nowrap;
}
.host-preference > span { padding: 0 8px; color: var(--muted); font-size: 9px; }
.host-preference button {
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.host-preference button:hover { color: var(--green-dark); }
.host-preference button[aria-pressed="true"] {
  border-color: rgba(55, 91, 63, .14);
  background: var(--surface-raised);
  color: var(--green-dark);
  box-shadow: 0 2px 7px rgba(45, 71, 49, .1);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); background: #31553b; box-shadow: 0 6px 16px rgba(43, 77, 51, .16); }
.btn:disabled { transform: none; opacity: .5; cursor: wait; box-shadow: none; }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: rgba(55, 91, 63, .34); background: rgba(78, 119, 86, .08); color: var(--green-dark); box-shadow: none; }
.btn-small { min-height: 34px; padding: 8px 12px; font-size: 10px; }
.arrow { color: #c9ddc9; font-size: 15px; line-height: 1; }
.btn-ghost .arrow { color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: clamp(38px, 7vw, 94px);
  row-gap: 24px;
  min-height: 515px;
  padding-block: 72px 62px;
}
.hero-intro { grid-column: 1; grid-row: 1; min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 750;
}
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #92aa70; content: ""; }
.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #334c39;
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: normal;
  text-wrap: balance;
}
.hero h1 span { color: #71804e; font-family: Georgia, "Times New Roman", serif; font-size: .86em; font-style: italic; font-weight: 400; }
.hero-copy { max-width: 680px; margin: 20px 0 0; color: #647468; font-size: 15px; line-height: 1.72; }
.hero-copy strong, .about-copy strong { color: #344e3a; font-weight: 700; }
.hero-copy em, .about-copy em { color: #52695a; }
.hero-copy a, .about-copy a { color: #315d3a; text-decoration: underline; text-underline-offset: 2px; }
.profile-bullet { padding-left: 14px; text-indent: -14px; }
.hero-portrait {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 302px;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid rgba(37, 61, 45, .12);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}
.hero-bottom { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hero-cta { display: flex; align-items: center; gap: 16px; }
.text-link { color: var(--ink-soft); font-size: 11px; }
.text-link:hover { color: var(--green-dark); }
.hero-index { color: #819083; font-size: 10px; }

.work { padding: 62px 0 96px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-kicker { color: var(--green); font-size: 10px; font-weight: 750; }
.section-top h2 {
  margin: 8px 0 0;
  color: #334c39;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: normal;
}
.manage-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.manage-panel {
  margin-bottom: 24px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(248, 251, 247, .78);
}
.manage-note { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.server-status { margin: 0 0 22px; padding: 13px 16px; border: 1px solid #d6bf95; border-radius: var(--radius-sm); background: #fbf4e7; color: #735b35; font-size: 12px; }
.section-list { display: flex; flex-direction: column; gap: 28px; }
.category { min-width: 0; scroll-margin-top: 90px; }
.category-collapse { overflow: hidden; padding: 0 0 18px; border-bottom: 1px solid var(--line-strong); }
.category-summary { display: flex; align-items: center; gap: 14px; padding: 10px 2px 13px; color: var(--ink); cursor: pointer; list-style: none; }
.category-summary::-webkit-details-marker, .year-summary::-webkit-details-marker { display: none; }
.category-summary::before, .year-summary::before {
  flex: none;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
  content: "";
  transition: transform .18s ease;
}
.category-collapse[open] > .category-summary::before, .year-group[open] > .year-summary::before { transform: rotate(90deg); }
.category-summary-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.category-summary-title { color: #405d45; font-size: 24px; font-weight: 650; line-height: 1.2; }
.category-summary-description { color: var(--muted); font-size: 12px; line-height: 1.5; }
.category-count { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.category-summary:focus-visible, .year-summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.category-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 0 12px; }
.icon-btn {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .65);
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.icon-btn:hover { border-color: rgba(55, 91, 63, .35); background: #fff; color: var(--green-dark); }
.icon-btn svg { width: 15px; height: 15px; }
.category-sort { color: var(--green-dark); font-weight: 700; }
.category-sort:disabled { opacity: .35; cursor: not-allowed; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.year-groups { display: flex; flex-direction: column; gap: 10px; }
.year-group { overflow: hidden; border: 1px solid rgba(42, 70, 48, .11); border-radius: 16px; background: rgba(250, 252, 249, .47); }
.year-summary { display: flex; align-items: center; gap: 11px; padding: 12px 15px; color: #536e57; cursor: pointer; list-style: none; }
.year-label { font-size: 15px; font-weight: 700; }
.year-count { margin-left: auto; color: var(--muted); font-size: 10px; }
.year-group[open] > .year-summary { border-bottom: 1px solid var(--line); }
.year-grid { padding: 15px; }

.card { position: relative; min-width: 0; }
.preview {
  position: relative;
  overflow: hidden;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  isolation: isolate;
  border: 1px solid rgba(42, 70, 48, .13);
  border-radius: 15px;
  background: linear-gradient(135deg, #dce8dc, #c8d8c9 55%, #edf2e9);
  box-shadow: 0 7px 18px rgba(45, 70, 48, .08);
}
.preview::before { position: absolute; z-index: 1; inset: 0; content: ""; pointer-events: none; background: radial-gradient(circle at 74% 30%, rgba(255, 255, 255, .28), transparent 31%), linear-gradient(140deg, transparent 42%, rgba(41, 67, 45, .09)); }
.preview[data-theme="2"] { background: linear-gradient(135deg, #e9e0d8, #d9c7bb 56%, #eff1e9); }
.preview[data-theme="3"] { background: linear-gradient(135deg, #dce6d8, #c9d3bf 56%, #f0f2e9); }
.preview .cover-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview.has-cover::before { background: linear-gradient(180deg, rgba(13, 22, 15, .04), rgba(13, 22, 15, .24)); }
.poster-word { z-index: 2; display: -webkit-box; overflow: hidden; max-width: 78%; color: rgba(38, 60, 44, .65); font-size: clamp(12px, 1.25vw, 18px); font-weight: 650; line-height: 1.28; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.poster-no { position: absolute; z-index: 2; top: 13px; left: 14px; color: rgba(54, 92, 61, .7); font-size: 10px; font-weight: 700; }
.preview.has-cover .poster-word, .preview.has-cover .poster-no { display: none; }
.preview iframe { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; border: 0; background: #111; }
.preview iframe.poster-frame { z-index: 0; pointer-events: none; }
.play {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(45, 74, 49, .2);
  border-radius: 50%;
  background: rgba(249, 252, 247, .91);
  color: var(--green-dark);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(24, 44, 28, .14);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.play:hover { transform: scale(1.06); background: var(--green-dark); color: #fff; }
.play svg { width: 17px; height: 17px; margin-left: 2px; }
.fullscreen-btn { position: absolute; z-index: 5; top: 9px; right: 9px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; background: rgba(28, 43, 31, .76); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.fullscreen-btn:hover { background: var(--green-dark); }
.fullscreen-btn svg { width: 17px; height: 17px; }
.card-copy { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 11px 2px 0; }
.card-title { margin: 0; color: #304b36; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: normal; }
.card-note { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.card-meta { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 3px; padding-top: 1px; color: var(--muted); font-size: 8px; line-height: 1.2; text-align: right; }
.card-year { color: var(--green-dark); font-size: 13px; font-weight: 750; }
.card-duration { color: var(--muted); font-size: 9px; }
.card-tools { position: absolute; z-index: 6; top: 8px; right: 8px; display: flex; gap: 5px; opacity: 0; transition: opacity .18s ease; }
body.is-admin .card:hover .card-tools, body.is-admin .card-tools:focus-within { opacity: 1; }
.card-tools .icon-btn { width: 30px; height: 30px; border-color: rgba(255, 255, 255, .48); background: rgba(248, 251, 247, .91); box-shadow: 0 2px 8px rgba(15, 30, 17, .15); }
.empty { grid-column: 1 / -1; display: grid; min-height: 126px; place-items: center; padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: rgba(250, 252, 249, .43); text-align: center; }
.empty > div { display: grid; gap: 4px; }
.empty strong { color: var(--ink-soft); font-size: 12px; }
.empty span { color: var(--muted); font-size: 11px; }

.about {
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(36px, 8vw, 110px);
  padding: 76px 0;
  border-top: 1px solid var(--line);
}
.about h2 { max-width: 400px; margin: 12px 0 0; color: #657847; font-size: clamp(31px, 4vw, 48px); font-weight: 580; line-height: 1.13; letter-spacing: normal; }
.about-copy { max-width: 680px; padding-top: 5px; color: #607064; font-size: 14px; line-height: 1.8; }
.about-copy p { margin: 0 0 14px; }
.about-copy p:last-child { margin-bottom: 0; }
.contact {
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(48, 82, 55, .12);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #e0ebdf, #edf3e9 65%, #f1eee2);
  box-shadow: var(--shadow-soft);
}
.contact::after { position: absolute; right: -60px; bottom: -145px; width: 330px; height: 330px; border: 1px solid rgba(67, 104, 74, .12); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(67, 104, 74, .035), 0 0 0 58px rgba(67, 104, 74, .025); pointer-events: none; }
.contact .section-kicker { position: relative; z-index: 1; }
.contact h2 { position: relative; z-index: 1; max-width: 620px; margin: 12px 0 10px; color: #556f4e; font-size: clamp(36px, 5.6vw, 66px); font-weight: 580; line-height: 1.04; letter-spacing: normal; }
.contact p { position: relative; z-index: 1; margin: 0; color: #657368; font-size: 13px; }
.contact-actions { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.contact-actions .btn { min-width: 105px; }
.profile-empty { color: var(--muted); font-size: 11px; }
.footer { display: flex; justify-content: space-between; gap: 14px; padding: 0 0 24px; color: #77857a; font-size: 10px; }

.manage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body:not(.is-admin) .manage-panel { display: none; }
.manage-panel .manage-actions { justify-content: flex-start; }

.cookie-consent {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 36px), 620px);
  padding: 15px 16px 15px 19px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(250, 252, 249, .97);
  box-shadow: 0 15px 44px rgba(31, 51, 35, .16);
  backdrop-filter: blur(18px);
}
.cookie-consent p { margin: 0; color: var(--ink); font-size: 11px; }
.cookie-consent > div { display: flex; flex: none; gap: 7px; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(28, 42, 30, .46); backdrop-filter: blur(5px); }
.modal { width: min(100%, 660px); max-height: min(88vh, 900px); overflow-y: auto; padding: 24px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 90px rgba(27, 48, 30, .27); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.modal h2 { margin: 0; color: #334e39; font-size: 22px; font-weight: 650; line-height: 1.25; letter-spacing: normal; }
.modal-head .icon-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; }
.player-backdrop { z-index: 120; }
.player-modal { width: min(94vw, 1280px); max-height: 94vh; padding: 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 90px rgba(27,48,30,.35); }
.player-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.player-modal-head h2 { margin: 0; overflow: hidden; color: #334e39; font-size: 17px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.player-modal-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #111; }
.player-modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.upload-block { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f1f5ef; }
.form-grid > .upload-block.full { grid-column: 1 / -1; }
.upload-progress[hidden] { display: none; }
.upload-block > strong { color: var(--ink); font-size: 12px; }
.upload-block > .hint { margin-top: -7px; }
.upload-block input[type="file"] { min-height: auto; padding: 8px; font-size: 11px; }
.upload-progress { display: grid; gap: 9px; padding-top: 5px; }
.upload-progress-row { display: grid; grid-template-columns: 78px minmax(70px, 1fr) auto; align-items: center; gap: 7px 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .72); }
.upload-progress-row[hidden] { display: none; }
.upload-progress-row > strong { color: var(--ink); font-size: 11px; }
.upload-progress-row progress { width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 999px; background: #e3e9e1; accent-color: var(--green); }
.upload-progress-row progress::-webkit-progress-bar { border-radius: 999px; background: #e3e9e1; }
.upload-progress-row progress::-webkit-progress-value { border-radius: 999px; background: var(--green); transition: width .25s ease; }
.upload-progress-row progress::-moz-progress-bar { border-radius: 999px; background: var(--green); }
.upload-progress-state { color: var(--muted); font-size: 10px; white-space: nowrap; }
.upload-progress-state[data-state="complete"] { color: #2e7046; }
.upload-progress-state[data-state="error"] { color: #a13f37; }
.upload-progress-row small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; min-width: 0; gap: 6px; }
.field.full, .hint.full, .auth-error { grid-column: 1 / -1; }
.field label { color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.field textarea { min-height: 80px; resize: vertical; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 5px; }
.rich-toolbar button { min-height: 28px; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: #f6f8f4; color: var(--ink-soft); cursor: pointer; font-size: 11px; }
.rich-toolbar button:hover { border-color: var(--green); background: #eef4ec; color: var(--green-dark); }
.rich-toolbar button:focus-visible { outline: 3px solid rgba(83, 123, 92, .18); outline-offset: 1px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); outline: 3px solid rgba(83, 123, 92, .12); }
.checkbox-field { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; column-gap: 9px; cursor: pointer; color: var(--ink); font-size: 11px; }
.checkbox-field input { grid-column: 1; grid-row: 1 / span 2; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green-dark); }
.checkbox-field > span { grid-column: 2; grid-row: 1; }
.checkbox-field .hint { grid-column: 2; grid-row: 2; }
.hint { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.auth-error { min-height: 16px; color: #a13f37; font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.embed-help { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; background: linear-gradient(135deg, #f3f7f1, #e2ece2); color: #68766b; text-align: center; }
.embed-help strong { margin-bottom: 8px; color: #2a3d30; font-size: 14px; }
.embed-help p { max-width: 410px; margin: 0 0 14px; font-size: 12px; line-height: 1.55; }
.embed-help a { color: var(--green-dark); font-size: 12px; font-weight: 700; }
.embed-help small { margin-top: 10px; color: #748278; font-size: 10px; }
.toast { position: fixed; z-index: 120; bottom: 22px; left: 50%; max-width: min(calc(100% - 32px), 540px); padding: 11px 16px; transform: translate(-50%, 12px); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: #2f4935; color: #fff; font-size: 11px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 8px 24px rgba(20, 39, 24, .2); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1050px) {
  .nav { gap: 10px; padding-left: 14px; }
  .nav-links { gap: 14px; }
  .host-preference > span { display: none; }
  .host-preference button { padding-inline: 8px; }
  .hero { grid-template-columns: minmax(0, 1fr) 220px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .wrap { width: min(calc(100% - 36px), var(--max)); }
  .nav-wrap { padding-top: 8px; }
  .nav { width: calc(100% - 24px); min-height: 58px; flex-wrap: wrap; border-radius: 22px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .host-preference { order: 3; width: 100%; justify-content: center; margin-top: 1px; }
  .host-preference > span { display: inline; }
  .host-preference button { flex: 1; max-width: 130px; }
  .hero { grid-template-columns: minmax(0, 1fr) 86px; min-height: 0; column-gap: 18px; row-gap: 24px; padding-block: 62px 50px; }
  .hero-portrait { width: 86px; height: 112px; margin-top: 28px; border-radius: 16px; }
  .hero h1 { font-size: clamp(36px, 7.6vw, 58px); }
  .hero-copy { margin-top: 15px; font-size: 13px; line-height: 1.6; }
  .hero-bottom { flex-wrap: wrap; }
  .work { padding: 45px 0 65px; }
  .section-top { align-items: start; flex-direction: column; gap: 15px; }
  .section-top h2 { font-size: 38px; }
  .manage-actions { justify-content: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .year-grid { padding: 12px; }
  .category-summary-title { font-size: 21px; }
  .about { grid-template-columns: 1fr; gap: 16px; padding: 58px 0; }
  .about h2 { max-width: 520px; font-size: 36px; }
  .contact { margin-bottom: 35px; }
  .cookie-consent { right: 12px; bottom: 12px; width: calc(100% - 24px); }
}
@media (max-width: 520px) {
  .wrap { width: min(calc(100% - 30px), var(--max)); }
  .nav { width: calc(100% - 16px); padding: 8px 9px 9px 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { font-size: 11px; }
  .brand-label { font-size: 8px; }
  .admin-toggle { padding-inline: 8px; font-size: 10px; }
  .nav-actions .btn { min-height: 32px; padding: 7px 10px; font-size: 9px; }
  .host-preference > span { font-size: 8px; }
  .host-preference button { padding: 7px 5px; font-size: 9px; }
  .hero { grid-template-columns: minmax(0, 1fr) 72px; column-gap: 12px; padding-block: 50px 40px; }
  .eyebrow { margin-bottom: 13px; font-size: 9px; }
  .hero h1 { font-size: clamp(31px, 8vw, 42px); }
  .hero-copy { font-size: 12px; line-height: 1.55; }
  .hero-portrait { width: 72px; height: 100px; margin-top: 26px; border-radius: 13px; }
  .hero-cta { flex-wrap: wrap; gap: 11px; }
  .hero-cta .btn { min-height: 37px; padding: 9px 12px; font-size: 10px; }
  .text-link { font-size: 10px; }
  .section-top h2 { font-size: 33px; }
  .section-kicker { font-size: 9px; }
  .section-list { gap: 23px; }
  .category-summary { gap: 10px; }
  .category-summary-title { font-size: 19px; }
  .category-summary-description { font-size: 10px; }
  .category-count { font-size: 9px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .year-summary { padding: 11px 12px; }
  .year-label { font-size: 14px; }
  .year-grid { padding: 11px; }
  .card-copy { gap: 8px; }
  .card-title { font-size: 12px; }
  .about { padding: 46px 0; }
  .about h2 { font-size: 32px; }
  .about-copy { font-size: 12px; }
  .contact { padding: 26px 21px; border-radius: 22px; }
  .contact h2 { font-size: 38px; }
  .contact-actions { gap: 7px; }
  .contact-actions .btn { min-width: 0; min-height: 36px; padding: 8px 11px; font-size: 9px; }
  .footer { flex-direction: column; }
  .cookie-consent { align-items: stretch; flex-direction: column; gap: 11px; padding: 13px; }
  .cookie-consent > div { justify-content: flex-end; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .hint.full, .auth-error { grid-column: auto; }
  .modal { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
