:root {
  --bg: #f2f6f3;
  --paper: #ffffff;
  --paper-soft: #e8efec;
  --ink: #173641;
  --muted: #6d7f86;
  --line: #d9e5e7;
  --green: #247866;
  --green-strong: #087f68;
  --green-dark: #183947;
  --green-black: #132f38;
  --mint: #dff3ed;
  --lime: #f4cc57;
  --yellow: #f4cc57;
  --teal: #00aeb5;
  --purple: #6c57b5;
  --blue: #3978a4;
  --coral: #b84f47;
  --red: #b84f47;
  --shadow: 0 18px 45px rgba(23, 61, 73, .09);
  --shadow-hover: 0 24px 55px rgba(23, 61, 73, .14);
  --radius: 22px;
  --radius-small: 13px;
  --sans: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif;
  --display: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(244, 204, 87, .10), transparent 25rem),
    radial-gradient(circle at 92% 60%, rgba(0, 174, 181, .055), transparent 30rem),
    var(--bg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::selection { color: var(--green-black); background: var(--yellow); }
main { position: relative; overflow: clip; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.035em;
}
.wrap { width: var(--wrap); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(244, 204, 87, .20);
}

/* Shared controls */
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background-color: var(--paper);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:hover, textarea:hover, select:hover { border-color: #9caaa1; }
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(8, 122, 85, .11);
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green-dark) 50%),
    linear-gradient(135deg, var(--green-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 1px),
    calc(100% - 13px) calc(50% - 1px);
  background-repeat: no-repeat;
  background-size: 5px 5px;
  cursor: pointer;
}
select option { color: var(--ink); background: var(--paper); }
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9, 40, 29, .12); }
.button.primary { color: #fff; border-color: var(--green-strong); background: var(--green-strong); }
.button.primary:hover { background: var(--green-dark); }
.text-link {
  display: inline-flex;
  margin-top: 18px;
  padding-bottom: 4px;
  align-items: center;
  gap: 28px;
  border-bottom: 2px solid var(--green);
  font-size: .82rem;
  font-weight: 950;
  transition: gap .18s ease, color .18s ease;
}
.text-link:hover { gap: 38px; color: var(--green); }

/* Public header and footer */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(207, 215, 209, .9);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  border-radius: 14px 14px 14px 5px;
  background: var(--green-strong);
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(23, 61, 73, .20);
  transform: rotate(-2deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--lime);
}
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 1.02rem; font-weight: 950; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .66rem; }
.site-header nav { display: flex; align-items: center; gap: 10px; font-size: .79rem; font-weight: 850; }
.site-header nav > a { padding: 9px 12px; border-radius: 9px; transition: background .15s ease, color .15s ease; }
.site-header nav > a:hover { background: var(--paper-soft); }
.site-header nav a[aria-current="page"] { color: var(--green-strong); background: var(--mint); }
.site-header nav .admin-link { color: #fff; background: var(--green-dark); }
.site-header nav .admin-link:hover { color: var(--green-dark); background: var(--yellow); }
.site-footer {
  display: grid;
  padding-block: 48px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: .78rem;
}
.site-footer p { margin: 0; }
.site-footer p:first-child { display: flex; flex-direction: column; }
.site-footer p:last-child { text-align: right; }
.site-footer span { color: var(--muted); }
.site-footer a { font-weight: 900; }

/* Homepage */
.hero {
  position: relative;
  display: grid;
  min-height: 480px;
  margin-top: 34px;
  padding: 58px;
  grid-template-columns: 1.22fr .78fr;
  gap: 55px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  background: linear-gradient(135deg, #173d49 0%, #24564f 58%, #2c7163 100%);
  box-shadow: 0 18px 44px rgba(23, 61, 73, .16);
}
.hero::before {
  content: "";
  position: absolute;
  right: -105px;
  bottom: -165px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(244, 204, 87, .30);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(244, 204, 87, .035), 0 0 0 130px rgba(244, 204, 87, .02);
}
.hero::after {
  content: "";
  position: absolute;
  top: 40px;
  right: 44px;
  width: 86px;
  height: 9px;
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 16px);
  transform: rotate(-5deg);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: #93ddd0; }
.hero h1 {
  max-width: 720px;
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(3.4rem, 5.2vw, 4.7rem);
  letter-spacing: -.055em;
}
.hero-copy {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 18px 40px rgba(10, 37, 44, .15);
  backdrop-filter: blur(8px);
}
.hero-copy p { margin-bottom: 4px; color: #d2e4df; font-size: 1.02rem; line-height: 1.72; }
.hero-copy .text-link { color: var(--yellow); border-color: var(--yellow); }
.section-index { display: grid; margin-top: 18px; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.section-index a {
  position: relative;
  display: flex;
  min-height: 215px;
  padding: 24px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d4e8e1;
  border-radius: 20px;
  background: #f6fbf9;
  box-shadow: 0 10px 32px rgba(23, 61, 73, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section-index a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 52px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--green);
}
.section-index a::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--mint);
  transition: transform .25s ease, background .25s ease;
}
.section-index a:hover { border-color: #a9d4c7; transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.section-index a:hover::after { background: #c8e9df; transform: scale(1.16); }
.section-index span, .card-code {
  color: var(--green);
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.section-index strong { position: relative; z-index: 1; margin-top: auto; color: var(--green); font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.section-index small { position: relative; z-index: 1; max-width: 230px; color: var(--muted); }
.section-index b { position: absolute; z-index: 2; top: 22px; right: 24px; font-size: 1.2rem; font-weight: 500; }
.content-section { padding-block: 92px; }
.section-heading { display: flex; margin-bottom: 38px; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin: 12px 0 0; color: var(--green-dark); font-size: clamp(2.8rem, 4.8vw, 4.35rem); }
.section-heading > a { padding-bottom: 3px; border-bottom: 2px solid var(--green); font-size: .8rem; font-weight: 900; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resource-card {
  position: relative;
  display: flex;
  min-height: 300px;
  padding: 24px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(9, 40, 29, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.resource-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .2s ease;
}
.resource-card:hover { border-color: var(--green); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.resource-card:hover::after { transform: scaleX(1); }
.resource-card > div { position: relative; z-index: 1; margin-top: auto; }
.resource-card p { margin-bottom: 8px; color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.resource-card h2, .resource-card h3 { margin: 0 0 16px; font-size: 1.85rem; line-height: 1.04; }
.resource-card small { display: inline-flex; padding: 5px 8px; color: var(--green-dark); border-radius: 7px; background: var(--mint); font-size: .66rem; font-weight: 950; }
.resource-card > b { position: absolute; top: 22px; right: 23px; font-size: 1.15rem; }
.public-resource-grid .resource-card { background: var(--paper); }
.catalog .public-resource-grid .resource-card { background: #e7eee9; }
.catalog .public-resource-grid .resource-card:hover { background: var(--paper); }
.empty-state {
  padding: 70px 30px;
  border: 1px dashed #aab6ae;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .45);
  text-align: center;
}
.empty-state h2, .empty-state h3 { margin-bottom: 10px; font-size: 2.2rem; }
.empty-state p { color: var(--muted); }
.dark-section {
  position: relative;
  padding-block: 105px;
  overflow: hidden;
  color: #f7fbf8;
  background: linear-gradient(135deg, #173d49, #18343d);
}
.dark-section::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -22vw;
  width: 50vw;
  height: 50vw;
  border: 1px solid rgba(244, 204, 87, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(244, 204, 87, .025), 0 0 0 160px rgba(244, 204, 87, .018);
}
.dark-section > .wrap { position: relative; z-index: 1; }
.dark-section .eyebrow { color: var(--lime); }
.dark-section .section-heading h2 { color: #fff; }
.dark-section .section-heading > a { color: #dce8e1; border-color: var(--lime); }
.journal-list { display: grid; gap: 10px; }
.journal-row {
  display: grid;
  padding: 25px 26px;
  grid-template-columns: 54px 1fr auto;
  gap: 22px;
  align-items: start;
  border: 1px solid rgba(216, 244, 229, .16);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.journal-row:hover { border-color: rgba(244, 204, 87, .75); background: rgba(255, 255, 255, .09); transform: translateX(5px); }
.journal-row > span, .journal-row small { color: var(--lime); font-family: var(--mono); font-size: .67rem; }
.journal-row h2, .journal-row h3 { margin: 5px 0 9px; font-size: 2.15rem; }
.journal-row p { max-width: 720px; margin: 0; color: #b9c8bf; }
.journal-row b { color: var(--lime); font-size: 1.35rem; font-weight: 500; }
.journal-list.light .journal-row { color: var(--ink); border-color: var(--line); background: var(--paper); box-shadow: 0 8px 24px rgba(9, 40, 29, .04); }
.journal-list.light .journal-row:hover { border-color: var(--green); background: var(--paper); box-shadow: var(--shadow); }
.journal-list.light .journal-row > span, .journal-list.light .journal-row small { color: var(--green); }
.journal-list.light .journal-row p { color: var(--muted); }
.live-promo {
  padding-block: 105px;
  color: #fff;
  background: linear-gradient(125deg, var(--green-strong), #159b91);
}
.live-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: end; }
.live-promo .eyebrow { color: var(--lime); }
.live-promo h2 { max-width: 650px; margin: 14px 0 20px; font-size: clamp(3.4rem, 6vw, 5.5rem); }
.live-promo p { max-width: 580px; color: #dbf0e4; }
.join-form { padding: 24px; border: 1px solid rgba(255, 255, 255, .34); border-radius: var(--radius); background: rgba(7, 28, 21, .18); backdrop-filter: blur(12px); }
.join-form label, .filters label span, .editor-form label > span, .stack-form label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.join-form label { color: #d8f4e5; }
.join-form > div { display: flex; gap: 8px; }
.join-form input { min-width: 0; flex: 1; padding: 16px; color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(5, 52, 36, .65); font-family: var(--mono); font-size: 1.8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.join-form input::placeholder { color: rgba(255, 255, 255, .42); }
.join-form button { padding: 0 20px; color: var(--green-black); border: 0; border-radius: 11px; background: var(--lime); font-weight: 950; cursor: pointer; }

/* Editorial and material pages */
.page-intro { position: relative; padding-block: 100px 84px; border-bottom: 1px solid var(--line); }
.page-intro::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: -1px;
  width: 140px;
  height: 12px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--green), var(--lime));
}
.page-intro h1 { max-width: 980px; margin: 20px 0 24px; color: var(--green-dark); font-size: clamp(3.6rem, 6.4vw, 6rem); letter-spacing: -.055em; }
.page-intro > p:last-child { max-width: 680px; color: var(--muted); font-size: 1.14rem; }
.article-page, .resource-page { padding-block: 90px; }
.article-page > header, .resource-page > header { max-width: 960px; }
.article-page h1, .resource-page h1 { margin: 22px 0 28px; color: var(--green-dark); font-size: clamp(3.4rem, 6.2vw, 5.8rem); letter-spacing: -.055em; }
.lead { max-width: 780px; color: var(--muted); font-size: 1.24rem; line-height: 1.65; }
.article-copy { max-width: 780px; margin-top: 65px; font-size: 1.13rem; line-height: 1.85; }
.article-copy::first-line { color: #27332d; }
.article-copy h2 { margin-top: 50px; font-size: 2.35rem; }
.resource-page .article-copy h2 { font-size: 1.55rem; letter-spacing: -.025em; }
.article-page > footer { margin-top: 65px; }
.article-gallery { display: grid; margin-top: 65px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.article-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.article-gallery img { display: block; width: 100%; height: auto; }
.article-gallery figcaption { padding: 12px 15px; color: var(--muted); font-size: .76rem; }
.catalog { padding-block: 50px 110px; }
.catalog-meta { display: flex; padding: 18px 2px; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.catalog-meta p { margin: 0; }
.filter-panel, .admin-filter-panel { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-small); background: rgba(255, 255, 255, .72); }
.filter-panel summary, .admin-filter-panel summary { display: flex; padding: 16px 18px; align-items: center; justify-content: space-between; list-style: none; font-size: .74rem; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.filter-panel summary::-webkit-details-marker, .admin-filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary b, .admin-filter-panel summary b { color: var(--green); font-size: .66rem; }
.filter-panel[open] summary, .admin-filter-panel[open] summary { border-bottom: 1px solid var(--line); background: var(--paper); }
.filter-panel[open] summary b, .admin-filter-panel[open] summary b { font-size: 0; }
.filter-panel[open] summary b::after, .admin-filter-panel[open] summary b::after { content: "Sbalit"; font-size: .66rem; }
.filters { display: grid; padding: 20px; grid-template-columns: 2fr 1fr 1fr; gap: 14px; align-items: end; }
.filter-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 10px; }
.catalog .public-resource-grid .resource-card { border-color: #c4d0c8; }
.resource-facts { display: grid; margin: 50px 0 0; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.resource-facts div { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.resource-facts dt { color: var(--green); font-size: .66rem; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; }
.resource-facts dd { margin: 6px 0 0; font-size: 1.12rem; font-weight: 850; }
.resource-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 75px; }
.resource-detail.no-copy { grid-template-columns: minmax(280px, 520px); }
.resource-detail.no-copy .resource-aside { grid-column: 1; }
.resource-aside { position: sticky; top: 105px; align-self: start; margin-top: 65px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.resource-aside h2 { margin-bottom: 18px; font-size: 1.75rem; }
.resource-aside ul { margin: 0; padding: 0; list-style: none; }
.resource-aside li a { display: flex; padding: 12px 0; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); font-weight: 750; }
.resource-aside li a:hover { color: var(--green); }
.resource-aside > small { display: block; margin-top: 20px; color: var(--muted); }
.attachment-type { display: block; margin: 0 0 2px !important; color: var(--green) !important; font-size: .59rem !important; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }

/* Author profile */
.author-hero { position: relative; display: grid; min-height: 570px; padding: 95px 72px 72px; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 70px; overflow: hidden; color: #fff; border-radius: 28px; background: var(--green-black); }
.author-hero::before { position: absolute; top: 54px; right: 10%; width: 122px; height: 18px; border-radius: 20px; background: var(--yellow); transform: rotate(-7deg); content: ""; }
.author-hero::after { position: absolute; right: -58px; bottom: -72px; width: 240px; height: 240px; border: 25px solid rgba(255, 255, 255, .08); border-radius: 50%; content: ""; }
.author-hero h1 { max-width: 780px; margin: 24px 0 0; font-size: clamp(4rem, 8vw, 7.5rem); letter-spacing: -.065em; }
.author-hero .eyebrow { color: #9fd5c8; }
.author-lead { position: relative; z-index: 1; padding: 24px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(255, 255, 255, .07); }
.author-lead p { margin: 0 0 22px; color: #d2e4df; font-size: 1.05rem; }
.author-lead .text-link { color: var(--yellow); border-color: var(--yellow); }
.author-about { display: grid; padding-block: 105px; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.author-about h2 { margin: 15px 0 0; color: var(--green-dark); font-size: clamp(2.9rem, 5vw, 4.8rem); }
.author-copy { padding-top: 23px; border-top: 4px solid var(--green); font-size: 1.05rem; }
.author-copy p { margin-bottom: 20px; }
.author-roles { display: grid; padding-bottom: 110px; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.author-roles article { position: relative; min-height: 280px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 10px 30px rgba(23, 61, 73, .05); }
.author-roles article::after { position: absolute; right: -42px; bottom: -52px; width: 145px; height: 145px; border-radius: 50%; background: var(--mint); content: ""; }
.author-roles span { color: var(--green); font-family: var(--mono); font-size: .68rem; font-weight: 900; }
.author-roles h2 { position: relative; z-index: 1; margin: 98px 0 12px; font-size: 2.3rem; }
.author-roles p { position: relative; z-index: 1; max-width: 280px; margin: 0; color: var(--muted); font-size: .86rem; }
.author-contact { padding-block: 95px; color: #fff; background: var(--green-black); }
.author-contact > .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; }
.author-contact h2 { max-width: 640px; margin: 17px 0 20px; font-size: clamp(3.2rem, 6vw, 5.5rem); }
.author-contact p:not(.eyebrow) { max-width: 570px; color: #b8cbc5; }
.author-contact .eyebrow { color: #91cfc0; }
.author-links { display: grid; align-content: center; gap: 10px; }
.author-links > a { display: flex; padding: 16px 18px; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #45626a; border-radius: 12px; transition: border-color .16s ease, background .16s ease; }
.author-links > a:hover { border-color: var(--yellow); background: rgba(255, 255, 255, .05); }
.author-links > a span { color: #a9bdb7; font-size: .75rem; }
.author-links > div { display: flex; padding-top: 12px; gap: 18px; flex-wrap: wrap; }
.author-links > div a { color: #b8cbc5; border-bottom: 1px solid; font-size: .77rem; font-weight: 850; }

/* Live public */
.live-landing { color: #f8fcfa; background: var(--green-black); }
.live-landing .site-header { color: var(--ink); }
.live-landing-inner { display: grid; min-height: 610px; padding-block: 82px; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.live-landing .eyebrow { color: var(--lime); }
.live-landing h1 { max-width: 700px; margin: 20px 0 25px; font-size: clamp(3.7rem, 6.5vw, 6rem); letter-spacing: -.055em; }
.live-landing-inner > div > p:last-child { max-width: 570px; color: #b9c9c0; font-size: 1.08rem; }
.large-code-form { padding: 28px; border: 1px solid rgba(216, 244, 229, .18); border-radius: var(--radius); background: rgba(255, 255, 255, .055); box-shadow: 0 25px 70px rgba(0, 0, 0, .22); }
.large-code-form label { color: #b8d5c5; font-size: .68rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.large-code-form input { padding: 22px 0 14px; color: #fff; border: 0; border-bottom: 2px solid #507062; border-radius: 0; background: transparent; font-family: var(--mono); font-size: 3.5rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.large-code-form button { display: flex; width: 100%; margin-top: 20px; padding: 14px 16px; justify-content: space-between; color: var(--green-black); border: 0; border-radius: 11px; background: var(--lime); font-weight: 950; cursor: pointer; }
.live-modes { padding-block: 70px 90px; }
.live-mode-list { display: grid; margin-top: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.live-mode-list article { display: flex; min-height: 190px; padding: 20px; flex-direction: column; border: 1px solid rgba(216, 244, 229, .16); border-radius: 15px; background: rgba(255, 255, 255, .045); }
.live-mode-list article > span { color: var(--lime); font-family: var(--mono); font-size: .66rem; }
.live-mode-list h2 { margin: auto 0 8px; font-size: 1.65rem; }
.live-mode-list article p { margin: 0; color: #aebfb5; font-size: .8rem; line-height: 1.5; }
.live-room-page { padding-block: 50px 85px; }
.live-room-header { display: flex; padding: 32px; justify-content: space-between; gap: 40px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.live-room-header h1 { margin: 14px 0 0; font-size: clamp(2.8rem, 5.5vw, 5.7rem); }
.live-code { align-self: start; min-width: 185px; padding: 18px 22px; color: #fff; border-radius: 14px; background: var(--green-dark); }
.live-code span { display: block; color: #a9c9b7; font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.live-code strong { display: block; margin-top: 5px; font-family: var(--mono); font-size: 2.15rem; letter-spacing: .11em; }
.live-layout { display: grid; padding-top: 24px; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; }
.answer-panel form { padding: 22px; color: #fff; border-radius: var(--radius); background: var(--green-dark); box-shadow: var(--shadow); }
.answer-panel label { display: block; margin-bottom: 17px; }
.answer-panel label > span { display: block; margin-bottom: 7px; color: #b7cbd0; font-size: .67rem; font-weight: 900; text-transform: uppercase; }
.answer-panel input, .answer-panel textarea { color: #fff; border-color: #52717a; background: #143641; }
.answer-panel input:hover, .answer-panel textarea:hover { border-color: #74919a; }
.answer-panel input:focus, .answer-panel textarea:focus { border-color: #8aabb3; box-shadow: 0 0 0 4px rgba(138, 171, 179, .15); }
.answer-panel input::placeholder, .answer-panel textarea::placeholder { color: #91a9af; }
.answer-panel button { display: flex; width: 100%; padding: 13px; justify-content: space-between; color: var(--green-black); border: 0; border-radius: 10px; background: var(--lime); font-weight: 950; cursor: pointer; }
.form-message { min-height: 20px; margin: 12px 0 0; color: #aed6bf; font-size: .74rem; }
.form-message.error { color: #ffd0ca; }
.share-card { display: flex; margin-top: 12px; padding: 15px; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.share-card canvas { width: 88px; height: 88px; border-radius: 6px; }
.share-card div { display: flex; flex-direction: column; }
.share-card small { color: var(--muted); }
.board-meta { display: flex; min-height: 38px; padding: 0 4px; justify-content: space-between; color: var(--muted); font-size: .76rem; }
.board-meta p { margin: 0; }
.board-meta a { color: var(--green); font-weight: 900; }
.idea-grid { columns: 3 210px; column-gap: 12px; }
.idea-grid article { display: inline-block; width: 100%; margin: 0 0 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 7px 18px rgba(9, 40, 29, .04); break-inside: avoid; }
.idea-grid article.highlighted { border: 2px solid var(--yellow); background: #fff9dd; }
.idea-grid article p { margin: 0; font-size: 1.28rem; font-weight: 800; line-height: 1.2; }
.idea-grid article small { display: block; margin-top: 15px; color: var(--muted); }
.empty-board { display: grid; min-height: 360px; place-items: center; align-content: center; border: 1px dashed #aab6ae; border-radius: var(--radius); background: rgba(255, 255, 255, .45); text-align: center; }
.empty-board span { display: grid; width: 44px; height: 44px; margin-bottom: 16px; place-items: center; color: var(--green); border-radius: 12px; background: var(--mint); font-size: 1.5rem; }
.empty-board h2 { margin-bottom: 8px; font-size: 1.9rem; }
.empty-board p { color: var(--muted); }
.closed-message { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.word-cloud { display: flex; min-height: 420px; padding: 38px; align-content: center; align-items: center; justify-content: center; gap: 18px 26px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.word-cloud span { display: inline-block; color: var(--green-dark); font-weight: 900; line-height: 1; transition: font-size .25s ease; }
.word-cloud span:nth-child(3n+1) { color: var(--green); }
.word-cloud span:nth-child(4n+2) { color: #2f5545; }
.word-cloud span.highlighted { padding: 5px 9px; border-radius: 8px; background: #fff4b7; box-shadow: 0 0 0 2px var(--yellow); }
.vote-chart { display: grid; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); gap: 24px; background: var(--paper); box-shadow: var(--shadow); }
.vote-bar > div, .admin-vote-row > div { display: flex; margin-bottom: 8px; justify-content: space-between; gap: 18px; }
.vote-bar i, .admin-vote-row i { display: block; height: 19px; overflow: hidden; border-radius: 20px; background: var(--paper-soft); }
.vote-bar b, .admin-vote-row b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #42b981); transition: width .3s ease; }
.vote-options { display: grid; margin: 0 0 18px; padding: 0; border: 0; gap: 8px; }
.vote-options legend { margin-bottom: 9px; color: #b7cbd0; font-size: .67rem; font-weight: 900; text-transform: uppercase; }
.vote-options label { display: flex !important; margin: 0 !important; padding: 11px; align-items: center; gap: 11px; border: 1px solid #52717a; border-radius: 10px; background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.vote-options label:hover { border-color: #78949c; background: #214f5c; }
.vote-options label:has(input:checked) { border-color: var(--yellow); background: rgba(244, 204, 87, .08); }
.vote-options input { width: auto; box-shadow: none; accent-color: var(--yellow); }
.vote-options span { margin: 0 !important; color: #fff !important; font-size: .92rem !important; font-weight: 750 !important; text-transform: none !important; }
.thermometer-control, .traffic-options { margin: 0 0 18px; padding: 0; border: 0; }
.thermometer-control legend, .traffic-options legend { margin-bottom: 12px; color: #b7cbd0; font-size: .67rem; font-weight: 900; text-transform: uppercase; }
.thermometer-control > div { display: grid; grid-template-columns: minmax(0, 1fr) 58px; align-items: center; gap: 14px; }
.thermometer-control input[type="range"] { width: 100%; height: 8px; padding: 0; border: 0; border-radius: 20px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, #4f9dd9, #f4cc57 52%, #e46b5b); box-shadow: none; accent-color: var(--yellow); cursor: pointer; }
.thermometer-control input[type="range"]::-webkit-slider-thumb { width: 25px; height: 25px; border: 4px solid #fff; border-radius: 50%; appearance: none; -webkit-appearance: none; background: var(--yellow); box-shadow: 0 3px 10px rgba(0, 0, 0, .28); }
.thermometer-control input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: var(--yellow); box-shadow: 0 3px 10px rgba(0, 0, 0, .28); }
.thermometer-control output { display: grid; width: 58px; height: 48px; place-items: center; color: var(--green-black); border-radius: 10px; background: var(--yellow); font-size: 1.18rem; font-weight: 950; }
.thermometer-control > p { display: flex; margin: 6px 72px 0 0; justify-content: space-between; color: #91a9af; font-family: var(--mono); font-size: .61rem; }
.traffic-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.traffic-options legend { grid-column: 1 / -1; }
.traffic-options label { position: relative; display: flex !important; margin: 0 !important; padding: 13px 8px !important; align-items: center; justify-content: center; gap: 8px; border: 1px solid #52717a; border-radius: 10px; background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.traffic-options label:hover { border-color: #78949c; background: #214f5c; }
.traffic-options label:has(input:checked) { border-color: var(--yellow); background: rgba(244, 204, 87, .08); }
.traffic-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.traffic-options i { width: 19px; height: 19px; border: 3px solid rgba(255, 255, 255, .28); border-radius: 50%; box-shadow: none; }
.traffic-options .red i { background: #e6685c; }
.traffic-options .yellow i { background: #f2c64d; }
.traffic-options .green i { background: #49aa78; }
.traffic-options span { margin: 0 !important; color: #fff !important; font-size: .78rem !important; font-weight: 850 !important; text-transform: none !important; }
.thermometer-results { display: grid; min-height: 430px; padding: clamp(28px, 5vw, 64px); grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: clamp(38px, 7vw, 95px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.thermometer-visual { position: relative; width: 86px; height: 320px; margin: 0 auto 42px; }
.thermometer-tube { position: absolute; inset: 0 21px 0; overflow: visible; border: 8px solid var(--green-black); border-bottom: 0; border-radius: 35px 35px 0 0; background: #e5eeec; }
.thermometer-tube i { position: absolute; right: 8px; bottom: 0; left: 8px; min-height: 3px; border-radius: 18px 18px 0 0; background: linear-gradient(0deg, #4f9dd9, #f4cc57 55%, #e6685c); }
.thermometer-tube b { position: absolute; z-index: 2; left: 62px; width: 76px; transform: translateY(50%); color: var(--green-black); font-size: 1.2rem; }
.thermometer-tube b::after { content: attr(style); display: none; }
.thermometer-bulb { position: absolute; right: 0; bottom: -52px; left: 0; height: 86px; border: 8px solid var(--green-black); border-radius: 50%; background: #e6685c; }
.thermometer-summary > p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.thermometer-summary > strong { display: inline-block; margin: 5px 10px 0 0; color: var(--green-dark); font-size: clamp(5rem, 10vw, 8.5rem); line-height: .9; letter-spacing: -.08em; }
.thermometer-summary > span { color: var(--muted); font-weight: 800; }
.thermometer-stats { display: flex; margin: 24px 0; gap: 10px; }
.thermometer-stats small { padding: 8px 11px; border-radius: 8px; background: var(--paper-soft); }
.thermometer-stats b { margin-left: 7px; color: var(--green-dark); }
.scale-distribution { display: grid; max-width: 600px; gap: 7px; }
.scale-distribution > div { display: grid; grid-template-columns: 54px minmax(0, 1fr) 30px; align-items: center; gap: 9px; font-size: .69rem; }
.scale-distribution i { height: 8px; overflow: hidden; border-radius: 10px; background: var(--paper-soft); }
.scale-distribution i b { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.traffic-results { display: grid; min-height: 430px; padding: clamp(25px, 5vw, 60px); grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: clamp(12px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.traffic-results article { display: flex; min-width: 0; padding: 20px; align-items: center; justify-content: center; flex-direction: column; border-radius: 18px; background: var(--paper-soft); text-align: center; }
.traffic-results i { width: clamp(90px, 12vw, 155px); aspect-ratio: 1; margin-bottom: 20px; border: 9px solid #fff; border-radius: 50%; box-shadow: 0 13px 30px rgba(19, 47, 56, .16); }
.traffic-results .red i { background: #e6685c; }
.traffic-results .yellow i { background: #f2c64d; }
.traffic-results .green i { background: #49aa78; }
.traffic-results span { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.traffic-results strong { margin: 5px 0 0; color: var(--green-black); font-size: clamp(3.2rem, 6vw, 6rem); line-height: 1; }
.traffic-results small { margin-top: 7px; color: var(--muted); font-family: var(--mono); }
.exit-fields, .exit-board { display: grid; gap: 18px; }
.exit-board { gap: 32px; }
.exit-board > section { padding-top: 22px; border-top: 1px solid var(--line); }
.exit-board > section > h2 { font-size: 1.85rem; }
.board-page .site-header, .board-page .site-footer { display: none; }
.board-page .live-room-page { width: calc(100% - 60px); max-width: none; }
.board-page .live-layout { display: block; }
.board-page .idea-grid { columns: 4 260px; }
.board-page .word-cloud { min-height: calc(100vh - 245px); padding: 5vw; }

/* Authentication and notices */
.notice { margin-bottom: 22px; padding: 13px 15px; border: 1px solid; border-radius: 11px; }
.notice.ok { color: #125537; border-color: #9fd1b3; background: #e5f7ec; }
.notice.error { color: #7a261f; border-color: #e8aaa4; background: #fff0ee; }
.install-page, .login-page { min-height: 100vh; background: var(--green-black); }
.install-shell { width: min(900px, calc(100% - 30px)); margin: auto; padding: 60px 0; color: #fff; }
.install-shell > header { max-width: 720px; }
.install-shell h1, .login-card h1 { margin: 16px 0 20px; font-size: 4.2rem; }
.install-shell > header > p:last-child { color: #b8c8bf; }
.install-form { margin-top: 36px; padding: 32px; color: var(--ink); border-radius: var(--radius); background: var(--bg); box-shadow: 0 30px 70px rgba(0, 0, 0, .23); }
.form-separator { padding: 18px 0 7px; border-bottom: 1px solid var(--line); font-weight: 900; }
.login-card { width: min(480px, calc(100% - 30px)); margin: 7vh auto; padding: 36px; border-radius: 22px; background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.login-card .eyebrow { margin-top: 50px; }
.stack-form { display: grid; margin: 28px 0; gap: 17px; }

/* Admin */
.admin-page { background: #eef3f1; }
.admin-userbar { display: flex; min-height: 38px; padding: 8px max(24px, calc((100vw - 1320px) / 2)); justify-content: flex-end; align-items: center; gap: 18px; color: #adc1b5; background: var(--green-black); font-size: .71rem; }
.admin-userbar a { color: #fff; font-weight: 850; }
.admin-layout { display: grid; min-height: calc(100vh - 38px); grid-template-columns: 260px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; display: flex; height: calc(100vh - 38px); padding: 38px 24px 28px; flex-direction: column; border-right: 1px solid var(--line); background: var(--paper); }
.admin-sidebar h1 { margin: 9px 0 0; font-size: 2.75rem; }
.admin-sidebar nav { display: flex; margin-top: 38px; flex-direction: column; gap: 5px; }
.admin-sidebar nav a { display: block; padding: 11px 13px; color: var(--muted); border-radius: 10px; font-size: .86rem; font-weight: 800; }
.admin-sidebar nav a:hover { color: var(--green-dark); background: var(--paper-soft); }
.admin-sidebar nav a.active { color: var(--green-dark); background: var(--mint); font-weight: 950; }
.admin-status { margin-top: auto; color: var(--green); font-size: .71rem; font-weight: 800; }
.admin-main { min-width: 0; padding: 48px clamp(26px, 5vw, 78px) 85px; }
.admin-heading { max-width: 790px; margin-bottom: 38px; }
.admin-heading h2 { margin: 11px 0 16px; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.admin-heading > p:last-child { color: var(--muted); }
.admin-heading-row { display: flex; margin-bottom: 38px; align-items: flex-start; justify-content: space-between; gap: 28px; }
.admin-heading-row .admin-heading { margin-bottom: 0; }
.admin-heading-row > .button { flex: 0 0 auto; margin-top: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-grid > a, .stat-grid article { display: flex; min-height: 145px; padding: 22px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 8px 25px rgba(9, 40, 29, .04); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.stat-grid > a:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-grid strong { font-size: 3.2rem; font-weight: 950; letter-spacing: -.06em; }
.stat-grid span { color: var(--muted); font-size: .69rem; font-weight: 900; text-transform: uppercase; }
.admin-overview-grid, .admin-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-overview-card, .admin-material-card { display: flex; min-height: 225px; padding: 20px; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 7px 22px rgba(9, 40, 29, .04); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.admin-overview-card:hover, .admin-material-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.admin-card-main { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.admin-overview-card .admin-card-main > div, .admin-material-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.admin-overview-card .admin-card-main > div { justify-content: flex-start; }
.admin-overview-card h3 { margin: 26px 0 9px; font-size: 1.65rem; }
.admin-overview-card p { display: -webkit-box; overflow: hidden; margin: 0 0 18px; color: var(--muted); font-size: .79rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.admin-material-card h4 { margin: 25px 0 5px; font-size: 1.48rem; }
.admin-material-card p { margin: 0; color: var(--muted); font-size: .76rem; }
.admin-material-card small { margin-top: 4px; color: var(--muted); }
.material-type-code { display: inline-flex; padding: 4px 7px; color: #fff; border-radius: 6px; background: var(--green-dark); font-family: var(--mono); font-size: .63rem; font-weight: 900; }
.material-state { font-size: .62rem; font-weight: 950; text-transform: uppercase; }
.material-state.completed, .material-state.published { color: var(--green); }
.material-state.draft { color: var(--muted); }
.material-state.archived { color: var(--red); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot[data-status="published"], .status-dot[data-status="public"] { background: var(--green); }
.status-dot[data-status="unlisted"] { background: var(--yellow); }
.admin-overview-card > footer, .admin-material-card > footer { display: flex; margin-top: auto; padding-top: 14px; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 900; }
.admin-overview-card > footer form, .admin-material-card > footer form { margin: 0; }
.admin-overview-card > footer button, .admin-material-card > footer button { padding: 0; border: 0; border-bottom: 1px solid; background: transparent; font-weight: 900; cursor: pointer; }
.admin-material-card > footer { justify-content: flex-start; }
.admin-material-card > footer form:first-of-type { margin-left: auto; }
.admin-material-card > footer .danger-button { color: var(--red); }
.admin-filters { display: grid; margin: 0; padding: 18px; grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) auto auto; gap: 11px; align-items: end; }
.admin-filters.material-filters { grid-template-columns: minmax(200px, 1.6fr) repeat(4, minmax(110px, 1fr)) auto auto; }
.admin-filters label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .63rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.admin-filter-panel .admin-filters > a.button { align-self: end; margin: 0; font-size: .82rem; }
.admin-result-count { margin: 0 0 17px; color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.editor-form { display: grid; max-width: 920px; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.editor-form textarea { min-height: 110px; resize: vertical; }
.editor-form textarea.long { min-height: 290px; }
.editor-form .full { grid-column: 1 / -1; }
.editor-form .check { display: flex; align-items: center; gap: 9px; }
.editor-form .check input { width: auto; }
.editor-form .check small { color: var(--muted); font-weight: 500; }
.editor-form label.is-locked { opacity: .68; }
.editor-actions { display: flex; gap: 9px; }
.compact-form { padding-bottom: 45px; border-bottom: 1px solid var(--line); }
.activity-settings { display: grid; padding: 18px; border: 1px solid var(--line); border-radius: 13px; grid-template-columns: 2fr 1fr; gap: 18px; background: rgba(255, 255, 255, .55); }
.activity-settings[hidden], [data-premoderation][hidden] { display: none !important; }
.activity-family-switch { margin: 0; padding: 0; border: 0; }
.activity-family-switch legend { margin-bottom: 7px; color: var(--muted); font-size: .63rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.activity-family-switch > div, .live-overview-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-soft); }
.activity-family-switch label { margin: 0; cursor: pointer; }
.activity-family-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.activity-family-switch span, .live-overview-switch button { display: block; padding: 9px 22px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; font-size: .78rem; font-weight: 900; cursor: pointer; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.activity-family-switch input:checked + span, .live-overview-switch button.active { color: var(--green-dark); background: var(--paper); box-shadow: 0 4px 12px rgba(23, 61, 73, .09); }
.generated-live-name { padding: 15px 17px; border: 1px dashed #a9bbb5; border-radius: 12px; background: rgba(255, 255, 255, .5); }
.generated-live-name > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .63rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.generated-live-name output { display: block; overflow-wrap: anywhere; color: var(--green-dark); font-family: var(--mono); font-size: .92rem; font-weight: 900; }
.form-separator { grid-column: 1 / -1; }
.editor-secondary, .attached-files { max-width: 920px; margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--ink); }
.editor-secondary > header, .attached-files > header { display: flex; align-items: end; justify-content: space-between; }
.editor-secondary h3, .attached-files h3 { margin: 6px 0 0; font-size: 1.8rem; }
.editor-secondary > header p { margin: 0; color: var(--muted); font-size: .77rem; }
.attachment-form { display: flex; margin: 17px 0 0; align-items: center; gap: 9px; }
.attachment-form input { max-width: 320px; }
.attachment-form select { width: auto; min-width: 115px; }
.attachment-form button, .session-list button { padding: 7px 0; border: 0; border-bottom: 1px solid; background: transparent; font-weight: 900; cursor: pointer; }
.attached-files > header { padding-bottom: 14px; }
.attached-files > div { display: grid; gap: 9px; }
.attached-files article { display: grid; padding: 14px; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.attached-files form { margin: 0; }
.attachment-edit-form { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(130px, .8fr) minmax(180px, 1fr); gap: 9px; align-items: end; }
.attachment-edit-form label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .6rem; font-weight: 950; text-transform: uppercase; }
.attachment-edit-form input, .attachment-edit-form select { padding: 9px; }
.attachment-file-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; }
.attachment-file-meta small { color: var(--muted); white-space: nowrap; }
.attachment-file-meta > div { display: flex; align-items: center; gap: 11px; }
.attachment-file-meta a { border-bottom: 1px solid; font-size: .72rem; font-weight: 900; }
.attachment-file-meta button { padding: 7px 10px; color: var(--green); border: 0; border-radius: 8px; background: var(--mint); font-size: .72rem; font-weight: 900; cursor: pointer; }
.attachment-file-meta button:hover { background: #c8e9df; }
.attachment-delete-form { align-self: end; margin-bottom: 1px !important; }
.attached-files .danger-button, .session-list .danger-button { color: var(--red); }
.attachment-delete-form .danger-button { padding: 7px 10px; border: 0; border-radius: 8px; background: #fbe5e1; color: var(--red); font-size: .72rem; font-weight: 900; cursor: pointer; }
.attachment-delete-form .danger-button:hover { background: #f4d2cc; }
.preview-banner { position: sticky; z-index: 120; top: 76px; display: flex; padding: 11px max(24px, calc((100vw - 1180px) / 2)); align-items: center; justify-content: center; gap: 17px; color: #fff; background: var(--green-dark); box-shadow: 0 8px 25px rgba(0, 0, 0, .16); }
.preview-banner span { color: #b8d2c3; font-size: .78rem; }
.preview-banner button { margin-left: auto; padding: 6px 10px; color: #fff; border: 1px solid #668174; border-radius: 8px; background: transparent; cursor: pointer; }

/* Admin live */
.session-list { max-width: 1100px; }
.live-overview-switch { margin: 0 0 22px; }
.live-overview-switch[hidden] { display: none; }
.admin-live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-live-card { display: flex; min-height: 245px; padding: 20px; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 7px 22px rgba(9, 40, 29, .04); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.admin-live-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.admin-live-card .admin-card-main { border: 0; }
.admin-live-card h4 { margin: 24px 0 7px; font-size: 1.43rem; overflow-wrap: anywhere; }
.admin-live-card p { display: -webkit-box; overflow: hidden; margin: 0 0 14px; color: var(--muted); font-size: .78rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.admin-live-card small { display: block; color: var(--muted); font-size: .67rem; }
.admin-live-card .live-last-used { margin-top: 4px; color: var(--green); font-weight: 850; }
.admin-live-card > footer { display: flex; margin-top: auto; padding-top: 14px; align-items: center; justify-content: flex-start; gap: 14px; border-top: 1px solid var(--line); font-size: .7rem; font-weight: 900; }
.admin-live-card > footer a, .admin-live-card > footer button { padding: 0; border: 0; border-bottom: 1px solid; background: transparent; font-weight: 900; cursor: pointer; }
.admin-live-card > footer .danger-button { margin-left: auto; color: var(--red); }
.live-back-link { display: inline-flex; margin-bottom: 17px; color: var(--green); border-bottom: 1px solid; font-size: .76rem; font-weight: 900; }
.session-list > article { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 28px rgba(9, 40, 29, .05); }
.session-list article > header { display: flex; padding: 22px; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.session-list header > div:last-child { display: flex; align-items: center; gap: 15px; }
.session-list h3 { margin: 6px 0 7px; font-size: 1.75rem; }
.session-list header p { margin: 0; color: var(--muted); }
.session-list header .live-last-used { display: block; margin-top: 8px; color: var(--green); font-size: .69rem; font-weight: 850; }
.session-list a { border-bottom: 1px solid; }
.session-code-button { padding: 0; color: var(--green); border: 0; border-bottom: 1px solid currentColor; background: transparent; font-weight: 900; cursor: pointer; }
.session-code-button:hover { color: var(--green-dark); }
.session-code { color: var(--green); font-family: var(--mono); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.live-type-badge { display: inline-block; margin-left: 9px; padding: 3px 7px; color: var(--green-dark); border-radius: 6px; background: var(--mint); font-size: .61rem; font-weight: 950; text-transform: uppercase; }
.session-links { justify-content: flex-end; flex-direction: row !important; flex-wrap: wrap; white-space: nowrap; }
.session-actions { display: flex; padding: 11px 22px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: #f7f9f7; }
.session-actions .session-state { margin-left: auto; font-size: .68rem; font-weight: 950; text-transform: uppercase; }
.session-state.active { color: var(--green); }
.session-state.closed { color: var(--muted); }
.admin-live-message:not(:empty) { margin: 20px; padding: 11px 14px; color: var(--red); border: 1px solid var(--red); border-radius: 9px; }
.moderation-list > div { display: flex; padding: 12px 22px; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.moderation-list > div[data-hidden="1"] { opacity: .45; }
.moderation-list > div.is-highlighted { box-shadow: inset 4px 0 0 var(--yellow); background: #fffbea; }
.moderation-list p { margin: 0; }
.moderation-list p > span { display: block; }
.moderation-list p > small { display: block !important; margin: 4px 0 0 !important; color: var(--muted); }
.moderation-list > div > div { display: flex; flex-direction: row; gap: 13px; }
.moderation-list > .muted { padding: 20px; }
.response-question { color: var(--green) !important; font-weight: 900; }
.admin-vote-list { display: grid; padding: 22px; gap: 20px; }
.admin-vote-row i { height: 11px; }
.voter-list { display: block; margin-top: 6px; color: var(--muted); }
.admin-scale-summary { display: grid; padding: 22px; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
.admin-scale-summary > div { display: flex; min-height: 112px; padding: 18px; justify-content: center; flex-direction: column; border-radius: 12px; background: var(--paper-soft); }
.admin-scale-summary span, .admin-traffic-summary span { color: var(--muted); font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.admin-scale-summary strong { color: var(--green-dark); font-size: 2.8rem; line-height: 1; }
.admin-scale-summary small { display: block; margin-top: 7px; color: var(--muted); }
.admin-traffic-summary { display: grid; padding: 22px; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-traffic-summary article { display: grid; min-width: 0; padding: 16px; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; border-radius: 12px; background: var(--paper-soft); }
.admin-traffic-summary i { width: 20px; height: 20px; border-radius: 50%; }
.admin-traffic-summary .red i { background: #e6685c; }
.admin-traffic-summary .yellow i { background: #f2c64d; }
.admin-traffic-summary .green i { background: #49aa78; }
.admin-traffic-summary strong { color: var(--green-dark); font-size: 2rem; }
.admin-traffic-summary small { grid-column: 2 / -1; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.live-created-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; padding: 22px; place-items: center; overflow: auto; background: rgba(19, 47, 56, .94); backdrop-filter: blur(10px); }
.live-created-card { position: relative; display: flex; width: min(760px, 100%); min-height: min(750px, calc(100vh - 44px)); padding: 40px; align-items: center; justify-content: center; flex-direction: column; border-radius: 24px; text-align: center; background: var(--bg); box-shadow: 0 35px 90px rgba(0, 0, 0, .4); }
.live-created-card h2 { max-width: 680px; margin: 16px 0 23px; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.live-created-card > [data-created-qr] { width: 250px; height: 250px; border: 11px solid var(--paper); border-radius: 14px; }
.live-created-close { position: absolute; top: 16px; right: 20px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper-soft); font-size: 1.8rem; cursor: pointer; }
.created-code-label { margin: 20px 0 0; color: var(--muted); font-size: .64rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.created-code { font-family: var(--mono); font-size: 3.6rem; letter-spacing: .12em; line-height: 1.1; }
.created-actions { display: flex; margin-top: 23px; justify-content: center; gap: 9px; flex-wrap: wrap; }
.share-download-canvas { position: fixed; left: -9999px; width: 1200px; height: 630px; }

@media (max-width: 1150px) {
  .admin-filters.material-filters { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .attachment-edit-form { grid-template-columns: minmax(200px, 1fr) 130px minmax(160px, .7fr); }
}

@media (max-width: 1000px) {
  .admin-overview-grid, .admin-material-grid, .admin-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 45px; }
  .live-inner, .live-landing-inner { gap: 45px; }
}

@media (max-width: 820px) {
  :root { --wrap: min(100% - 30px, 680px); }
  .site-header { min-height: 68px; padding-inline: 15px; }
  .brand small { display: none; }
  .site-header nav { gap: 2px; font-size: .72rem; }
  .site-header nav > a { padding: 8px; }
  .hero { min-height: auto; padding: 44px; grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { font-size: clamp(3.25rem, 10vw, 5rem); }
  .hero-copy { max-width: 560px; }
  .section-index, .resource-grid, .live-inner, .live-landing-inner, .live-layout, .resource-detail { grid-template-columns: 1fr; }
  .author-hero, .author-about, .author-contact > .wrap { grid-template-columns: 1fr; }
  .author-hero { min-height: auto; padding: 72px 42px 42px; gap: 45px; }
  .author-about { gap: 45px; }
  .author-roles { grid-template-columns: 1fr; }
  .author-roles article { min-height: 220px; }
  .author-roles h2 { margin-top: 55px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .filters { grid-template-columns: 1fr; }
  .filter-actions { align-items: stretch; flex-direction: column; }
  .filter-actions .button { width: 100%; }
  .resource-facts { grid-template-columns: 1fr 1fr; }
  .resource-aside { position: static; }
  .live-mode-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-room-header { flex-direction: column; }
  .idea-grid { columns: 2 180px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 25px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-sidebar nav { display: grid; margin-top: 23px; grid-template-columns: 1fr 1fr; gap: 5px; }
  .admin-status { margin-top: 15px; }
  .admin-main { padding: 38px 20px 65px; }
  .editor-form, .stat-grid { grid-template-columns: 1fr; }
  .editor-form .full { grid-column: auto; }
  .activity-settings { grid-template-columns: 1fr; }
  .session-list article > header, .moderation-list > div { flex-direction: column; }
  .session-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
  .session-actions .session-state { margin-left: 0; order: -1; }
  .session-links { align-items: flex-start !important; flex-direction: column !important; }
  .word-cloud { min-height: 330px; padding: 24px; }
  .board-page .word-cloud { min-height: calc(100vh - 220px); }
  .thermometer-results { grid-template-columns: 120px minmax(0, 1fr); gap: 34px; }
  .thermometer-visual { height: 260px; transform: scale(.82); transform-origin: center; }
  .admin-traffic-summary { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .admin-heading-row { align-items: stretch; flex-direction: column; gap: 0; }
  .admin-heading-row > .button { align-self: flex-start; margin-top: 0; }
  .admin-overview-grid, .admin-material-grid, .admin-live-grid { grid-template-columns: 1fr; }
  .editor-secondary > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .attached-files article { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand > span:last-child { display: none; }
  .site-header nav .admin-link { padding-inline: 8px; }
  .section-index { grid-template-columns: 1fr; }
  .section-index a { min-height: 170px; }
  .resource-facts { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p:last-child { display: none; }
  .article-page h1, .resource-page h1 { font-size: 3.35rem; }
  .article-gallery { grid-template-columns: 1fr; }
  .board-page .live-room-page { width: calc(100% - 24px); }
  .idea-grid { columns: 1; }
  .attachment-form { align-items: stretch; flex-direction: column; }
  .install-form { padding: 21px; }
  .admin-filter-panel .admin-filters { grid-template-columns: 1fr; }
  .admin-filter-panel .admin-filters > a.button { width: 100%; }
  .editor-actions { align-items: stretch; flex-direction: column; }
  .preview-banner { top: 68px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
  .preview-banner button { margin-left: 0; }
  .attachment-edit-form { grid-template-columns: 1fr; }
  .attachment-file-meta { align-items: flex-start; }
  .attachment-delete-form { justify-self: start; }
  .live-mode-list { grid-template-columns: 1fr; }
  .live-mode-list article { min-height: 145px; }
  .author-hero { width: 100%; padding: 70px 20px 28px; border-radius: 0; }
  .author-hero::before { top: 30px; right: 20px; width: 85px; height: 12px; }
  .author-about { padding-block: 75px; }
  .author-roles { padding-bottom: 75px; }
  .author-contact { padding-block: 72px; }
  .author-links > a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .traffic-options { grid-template-columns: 1fr; }
  .traffic-results { min-height: 0; grid-template-columns: 1fr; }
  .traffic-results article { display: grid; grid-template-columns: 64px 1fr auto; text-align: left; }
  .traffic-results i { width: 54px; margin: 0; grid-row: 1 / 3; }
  .traffic-results strong { justify-self: end; font-size: 3rem; }
  .traffic-results small { grid-column: 2 / -1; }
  .thermometer-results { grid-template-columns: 1fr; }
  .thermometer-visual { margin-top: -20px; margin-bottom: 0; }
  .thermometer-summary { text-align: center; }
  .thermometer-stats { justify-content: center; }
  .scale-distribution { text-align: left; }
  .admin-scale-summary { grid-template-columns: 1fr; }
  .live-created-overlay { padding: 0; }
  .live-created-card { width: 100%; min-height: 100vh; border-radius: 0; padding: 32px 20px; }
  .live-created-card > [data-created-qr] { width: 205px; height: 205px; }
  .created-code { font-size: 2.8rem; }
  .created-actions { width: 100%; flex-direction: column; }
  .created-actions .button { width: 100%; }
}

@media (max-width: 430px) {
  .site-header { padding-inline: 10px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .site-header nav { font-size: .64rem; }
  .site-header nav > a { padding: 7px 5px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .hero-copy { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
