/* Schneider Electric × One Young World · #OYW26 value frame tool */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --deep: #0a2f24;
  --deeper: #04261d;
  --ink: #033528;
  --green: #3dcd58;
  --bright: #5eff59;
  --mint: #e7ffd9;
  --white: #ffffff;
  --line: rgba(231, 255, 217, 0.14);
  --line-strong: rgba(231, 255, 217, 0.35);
  --card: rgba(3, 53, 40, 0.58);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--deeper);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; }
button, input, label { font: inherit; }

/* ---------- background ---------- */
.bg-video {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -3; opacity: 0.75;
  filter: saturate(1.05);
  pointer-events: none;
}
.bg-shade {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  /* darker on the left, lifting towards bright green on the right, as in the designer's example */
  background:
    linear-gradient(90deg, rgba(4, 38, 29, 0.55) 0%, rgba(4, 38, 29, 0.10) 62%, rgba(94, 255, 89, 0.14) 100%),
    linear-gradient(180deg, rgba(4, 38, 29, 0.30) 0%, rgba(4, 38, 29, 0.72) 60%, #03150f 100%);
}
/* brick bands along the top and bottom edges (full-bleed, in flow so nothing sits on top of them) */
.band { display: block; width: 100%; height: auto; max-height: 200px; object-fit: cover; pointer-events: none; user-select: none; }
.band-top { object-position: center top; margin-bottom: -6px; }
.band-bottom { object-position: center bottom; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .bg-video { display: none; } }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px 4px; max-width: 1180px; margin: 0 auto;
  font-size: 13px; color: var(--mint);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.01em; }
.brand em { font-style: normal; color: var(--bright); font-weight: 700; padding: 0 2px; }
.se-mark { width: 26px; height: 26px; display: block; }
.event { opacity: 0.85; font-weight: 500; }
.event b { color: var(--bright); font-weight: 700; }

/* ---------- layout ---------- */
.app {
  display: block;
  padding: 10px 16px 40px; max-width: 1180px; margin: 0 auto;
}
.app > .panel { margin-top: 18px; }
.stage, .panel { min-width: 0; }
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: minmax(360px, 520px) minmax(0, 1fr); align-items: stretch; gap: 32px; padding-top: 24px; }
  .app > .panel { margin-top: 0; }
  .sticky-box { position: sticky; top: 24px; }
}

/* ---------- stage ---------- */
.stage {
  position: sticky; top: 0; z-index: 5;
  padding: 8px 0 12px;
  background: linear-gradient(180deg, rgba(4, 38, 29, 0.96) 0%, rgba(4, 38, 29, 0.96) 78%, rgba(4, 38, 29, 0) 100%);
}
.stage-inner {
  position: relative;
  width: min(100%, 50vh);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--deep);
  outline: 1px solid var(--line);
}
@media (min-width: 900px) {
  .stage { position: static; padding: 0; background: none; }
  .stage-inner { width: 100%; position: sticky; top: 24px; }
}
#canvas {
  display: block; width: 100%; height: 100%;
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: grab; outline: none;
}
#canvas:active { cursor: grabbing; }
#canvas.empty { cursor: pointer; }
#canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--bright); }
.stage-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(4, 38, 29, 0.72); color: var(--mint);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  pointer-events: none; backdrop-filter: blur(6px);
  transition: opacity 0.4s;
}
.stage-hint.fade { opacity: 0; }
.busy {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(4, 38, 29, 0.55); color: var(--mint); font-weight: 500;
  backdrop-filter: blur(3px);
}
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(231, 255, 217, 0.25); border-top-color: var(--bright);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- panel ---------- */
.intro h1 {
  margin: 4px 0 0; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em;
}
.intro .tag { margin: 4px 0 10px; font-size: clamp(16px, 2.2vw, 20px); font-weight: 600; color: var(--mint); }
.intro .tag i { font-style: italic; font-weight: 500; }
.intro .lead { margin: 0 0 14px; color: rgba(231, 255, 217, 0.82); max-width: 52ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.step h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--white);
}
.num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bright); color: var(--deep); font-size: 13px; font-weight: 700;
}
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.wrap { flex-wrap: wrap; }
.fine { margin: 10px 0 0; font-size: 12.5px; color: rgba(231, 255, 217, 0.68); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 3px solid rgba(94, 255, 89, 0.55); outline-offset: 2px; }
.btn.primary { background: var(--bright); color: var(--deep); }
.btn.primary:hover { background: #7cff77; }
.btn.ghost { background: rgba(231, 255, 217, 0.04); color: var(--mint); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(231, 255, 217, 0.10); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ---------- faces ---------- */
.faces { margin-top: 12px; font-size: 13px; color: var(--mint); }
.face-list { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.face-list button {
  width: 64px; height: 64px; padding: 0; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--line-strong); background: var(--deep); cursor: pointer;
}
.face-list button[aria-checked="true"] { border-color: var(--bright); box-shadow: 0 0 0 2px rgba(94, 255, 89, 0.35); }
.face-list canvas { display: block; width: 100%; height: 100%; }

/* ---------- legend ---------- */
.legend {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.value {
  display: grid; grid-template-rows: auto auto auto; justify-items: start; gap: 6px;
  padding: 14px 14px 12px; border-radius: 16px; text-align: left;
  background: rgba(10, 47, 36, 0.55); border: 1px solid var(--line);
  color: var(--white); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
}
.value:hover { border-color: var(--line-strong); background: rgba(10, 47, 36, 0.8); }
.value:active { transform: scale(0.99); }
.value:focus-visible { outline: 3px solid rgba(94, 255, 89, 0.55); outline-offset: 2px; }
.value[aria-checked="true"] {
  border-color: var(--bright);
  background: rgba(94, 255, 89, 0.10);
  box-shadow: inset 0 0 0 1px var(--bright);
}
.value img { width: 44px; height: 44px; object-fit: contain; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.value .name { font-weight: 700; font-size: 15px; }
.value .tagline { font-size: 12px; color: rgba(231, 255, 217, 0.72); line-height: 1.35; }
.value .check {
  position: absolute;
}

/* ---------- controls ---------- */
.controls { display: grid; gap: 12px; }
.slider { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--mint); font-weight: 500; }
input[type="range"] {
  width: 100%; height: 30px; margin: 0; background: transparent; accent-color: var(--bright);
  -webkit-appearance: none; appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(231, 255, 217, 0.22); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(231, 255, 217, 0.22); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; margin-top: -9px;
  background: var(--bright); border: 2px solid var(--deep); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--bright); border: 2px solid var(--deep);
}
input[type="range"]:disabled { opacity: 0.4; }

/* ---------- footer / toast ---------- */
.foot { display: flex; gap: 16px; justify-content: center; padding: 18px 0 0; font-weight: 600; color: var(--bright); font-size: 13px; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px);
  max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 14px;
  background: rgba(231, 255, 217, 0.96); color: var(--deep); font-weight: 500; font-size: 14px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; z-index: 50; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* drag-over state */
body.dragging .stage-inner { outline: 3px dashed var(--bright); }

/* ======================================================================
   Toolkit shell: hero, tabs, extra tools
   ====================================================================== */
.hero { max-width: 1180px; margin: 0 auto; padding: 8px 18px 0; }
.hero h1 { margin: 6px 0 0; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.hero .tag { margin: 4px 0 8px; font-size: clamp(16px, 2.2vw, 20px); font-weight: 600; color: var(--mint); }
.hero .tag i { font-style: italic; font-weight: 500; }
.hero .kicker { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bright); }
.hero h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3em; }
.oyw-badge { display: inline-flex; align-items: center; vertical-align: middle; }
.oyw-badge img { height: 1.05em; width: auto; display: block; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35)); }

.tabs {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 1180px; margin: 14px auto 4px; padding: 4px 16px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(3, 53, 40, 0.5); color: var(--mint);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tabs [role="tab"]:hover { background: rgba(231, 255, 217, 0.10); }
.tabs [role="tab"][aria-selected="true"] { background: var(--bright); color: var(--deep); border-color: var(--bright); }
.tabs [role="tab"]:focus-visible { outline: 3px solid rgba(94, 255, 89, 0.55); outline-offset: 2px; }
.tab-num {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%;
  background: rgba(231, 255, 217, 0.16); color: var(--mint); font-size: 11.5px; font-weight: 700;
}
.tabs [role="tab"][aria-selected="true"] .tab-num { background: rgba(10, 47, 36, 0.18); color: var(--deep); }
.tab-arrow { flex: none; align-self: center; width: 18px; height: 2px; background: rgba(231, 255, 217, 0.35); position: relative; }
.tab-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px;
  border-top: 2px solid rgba(231, 255, 217, 0.5); border-right: 2px solid rgba(231, 255, 217, 0.5); transform: rotate(45deg);
}
/* process chevrons between numbered step cards (visual only; every step stays usable in any order) */
.steps { gap: 26px; }
.step { position: relative; }
.step + .step::before {
  content: ""; position: absolute; left: 50%; top: -19px; width: 12px; height: 12px; margin-left: -8px;
  border-right: 2.5px solid var(--bright); border-bottom: 2.5px solid var(--bright); transform: rotate(45deg); opacity: 0.85;
}
.next {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 16px; border-radius: 999px;
  color: var(--mint); font-weight: 600; text-decoration: none; border: 1px solid var(--line-strong); background: rgba(231, 255, 217, 0.04);
}
.next:hover { background: rgba(231, 255, 217, 0.10); }
.next span { color: var(--bright); }

.tool.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.centre { text-align: center; }
.foot { max-width: 1180px; margin: 0 auto; padding: 8px 18px 20px; }

/* ---------- reminders (Posts tab, employees and Explorers) ---------- */
.reminders { margin-bottom: 18px; }
.reminders .fine.top { margin: -4px 0 12px; }
.auto-note { color: var(--bright) !important; font-weight: 600; }

/* ---------- email signature ---------- */
.sig-stage { display: grid; gap: 8px; align-content: start; }
.sig-preview {
  background: #fff; border-radius: 16px; padding: 0; overflow: hidden;
  box-shadow: var(--shadow); outline: 1px solid var(--line);
  width: min(100%, 600px); margin: 0 auto; aspect-ratio: 4 / 1;
}
.sig-preview canvas { display: block; width: 100%; height: 100%; }
@media (min-width: 900px) { .sig-stage { position: static; } }
.sig-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sig-option {
  display: grid; gap: 8px; padding: 8px 8px 10px; border-radius: 14px; text-align: left; cursor: pointer;
  background: rgba(10, 47, 36, 0.55); border: 1px solid var(--line); color: var(--white); font-weight: 600; font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s;
}
.sig-option img { display: block; width: 100%; height: auto; border-radius: 8px; }
.sig-option:hover { border-color: var(--line-strong); }
.sig-option[aria-checked="true"] { border-color: var(--bright); box-shadow: inset 0 0 0 1px var(--bright); background: rgba(94, 255, 89, 0.10); }
.sig-option:focus-visible { outline: 3px solid rgba(94, 255, 89, 0.55); outline-offset: 2px; }
.fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fields label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--mint); }
.fields input {
  min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line-strong); background: rgba(4, 38, 29, 0.6); color: var(--white);
}
.fields input::placeholder { color: rgba(231, 255, 217, 0.4); font-weight: 400; }
.fields input:focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px rgba(94, 255, 89, 0.25); }
.howto { display: grid; gap: 6px; }
.howto details { border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 38, 29, 0.45); padding: 0 12px; }
.howto summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--white); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; color: var(--bright); font-weight: 700; font-size: 18px; }
.howto details[open] summary::after { content: "–"; }
.howto ol { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; color: rgba(231, 255, 217, 0.85); display: grid; gap: 4px; }
.howto b { color: var(--white); font-weight: 600; }
.sig-text { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.sig-text pre {
  margin: 0; padding: 10px 12px; border-radius: 10px; width: 100%;
  background: rgba(4, 38, 29, 0.6); border: 1px solid var(--line); color: var(--mint);
  font: 500 13.5px/1.5 var(--font); white-space: pre-wrap;
}

/* ---------- linkedin banner ---------- */
.banner-stage { display: grid; gap: 8px; align-content: start; }
@media (min-width: 900px) { .banner-stage { position: static; } }
.li-mock { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); color: #1f1f1f; font-family: var(--font); }
.li-cover { position: relative; }
.li-cover img { display: block; width: 100%; height: auto; }
.li-avatar {
  position: absolute; left: 4%; bottom: 0; transform: translateY(50%); width: 25%; max-width: 152px; aspect-ratio: 1; border-radius: 50%;
  background: #e9ecef center / cover no-repeat; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 1;
}
.li-avatar:not(.has-photo)::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #b9c0c6 0 22%, transparent 23%), radial-gradient(ellipse at 50% 95%, #b9c0c6 0 42%, transparent 43%);
}
.li-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: calc(12.5% + 10px) 4% 16px; }
.li-name { font-size: clamp(16px, 2.4vw, 22px); font-weight: 600; line-height: 1.2; color: #000; }
.li-headline { font-size: clamp(12px, 1.7vw, 15px); margin-top: 4px; color: #1f1f1f; }
.li-meta { font-size: clamp(11px, 1.5vw, 13px); margin-top: 6px; color: #666; }
.li-meta span { color: #0a66c2; font-weight: 600; }
.li-links { margin-top: 4px; }
.li-company { display: flex; align-items: center; gap: 8px; flex: none; font-size: clamp(11px, 1.5vw, 13px); font-weight: 600; color: #1f1f1f; }
.li-company img { width: clamp(44px, 7vw, 64px); height: auto; padding: 4px; border: 1px solid #e6e6e6; border-radius: 4px; }
.banner-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.banner-pick {
  display: grid; gap: 6px; padding: 6px 6px 8px; border-radius: 12px; text-align: left; cursor: pointer;
  background: rgba(10, 47, 36, 0.55); border: 1px solid var(--line); color: var(--white); font-weight: 600; font-size: 13px;
}
.banner-pick img { display: block; width: 100%; height: auto; border-radius: 8px; }
.banner-pick small { display: block; font-weight: 400; color: rgba(231, 255, 217, 0.7); }
.banner-pick[aria-checked="true"] { border-color: var(--bright); box-shadow: inset 0 0 0 1px var(--bright); background: rgba(94, 255, 89, 0.10); }
.banner-pick:focus-visible { outline: 3px solid rgba(94, 255, 89, 0.55); outline-offset: 2px; }

/* small screens: wrap the tabs into rows instead of a hidden horizontal scroll */
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; overflow: visible; }
  .tabs [role="tab"] { flex: 1 1 45%; justify-content: center; display: inline-flex; align-items: center; }
  .tab-arrow { display: none; }
}

/* ---------- gate: who is this toolkit for ---------- */
body.gated .tabs, body.gated .tool, body.gated .who { display: none !important; }
.gate { max-width: 760px; margin: 18px auto 0; padding: 0 16px; }
.gate-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 18px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.gate-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bright); }
.gate-card h2 { margin: 6px 0; font-size: clamp(20px, 3vw, 26px); line-height: 1.15; }
.gate-card .lead { margin: 0 0 14px; color: rgba(231, 255, 217, 0.85); }
.gate-mode { margin: -6px 0 14px; font-size: 12.5px; color: var(--bright); font-weight: 600; }
.gate-choice { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.gate-or { color: rgba(231, 255, 217, 0.6); font-weight: 600; font-size: 13px; padding: 0 4px; }
.gate-form label span { display: block; font-size: 12.5px; font-weight: 600; color: var(--mint); margin-bottom: 4px; }
.gate-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gate-row input {
  flex: 1 1 240px; min-height: 46px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line-strong); background: rgba(4, 38, 29, 0.6); color: var(--white);
}
.gate-row input::placeholder { color: rgba(231, 255, 217, 0.4); font-weight: 400; }
.gate-row input:focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px rgba(94, 255, 89, 0.25); }
.gate-error { margin: 8px 0 0; font-size: 13px; color: #ffb4a8; font-weight: 500; }
.who { max-width: 1180px; margin: 10px auto 0; padding: 0 18px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(231, 255, 217, 0.8); }
.who b { color: var(--white); font-weight: 600; }
.link { background: none; border: 0; padding: 0; color: var(--bright); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.link:hover { color: #7cff77; }

/* ---------- ready-made posts ---------- */
.tool.posts { max-width: 1180px; }
.tool.posts > .next { justify-self: start; }
.posts-head h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.posts-head .lead { margin: 0 0 16px; color: rgba(231, 255, 217, 0.85); max-width: 70ch; }
.lang { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; font-size: 13px; color: var(--mint); }
.lang [role="radio"] { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(3, 53, 40, 0.5); color: var(--mint); font-weight: 600; cursor: pointer; }
.lang [role="radio"][aria-checked="true"] { background: var(--bright); color: var(--deep); border-color: var(--bright); }
.lang small { color: rgba(231, 255, 217, 0.6); }
.voice { margin-bottom: 18px; }
.voice .fine.top { margin: -4px 0 12px; }
.voice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.voice-pick {
  position: relative; display: grid; gap: 4px; justify-items: start; padding: 12px; border-radius: 14px; text-align: left; cursor: pointer;
  background: rgba(10, 47, 36, 0.55); border: 1px solid var(--line); color: var(--white);
}
.voice-pick:hover { border-color: var(--line-strong); }
.voice-pick[aria-checked="true"] { border-color: var(--bright); background: rgba(94, 255, 89, 0.10); box-shadow: inset 0 0 0 1px var(--bright); }
.voice-pick:focus-visible { outline: 3px solid rgba(94, 255, 89, 0.55); outline-offset: 2px; }
.voice-key { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(231, 255, 217, 0.16); font-size: 12px; font-weight: 700; }
.voice-pick[aria-checked="true"] .voice-key { background: var(--bright); color: var(--deep); }
.voice-name { font-weight: 700; font-size: 14.5px; }
.voice-blurb { font-size: 12.5px; color: rgba(231, 255, 217, 0.72); line-height: 1.35; }
.voice-sugg { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bright); }
.list-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.post-list { display: grid; gap: 16px; }
.post {
  display: grid; gap: 16px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 760px) { .post { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); } }
.post-visual { display: grid; gap: 8px; align-content: start; }
.post-visual.two { grid-template-columns: 1fr 1fr; }
.post-visual figure { margin: 0; }
.post-visual img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); background: var(--deep); }
.post-visual figcaption { margin-top: 4px; font-size: 11.5px; color: rgba(231, 255, 217, 0.6); text-align: center; }
.post-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.post-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(231, 255, 217, 0.12); color: var(--mint); }
.st-now .chip.st { background: var(--bright); color: var(--deep); }
.st-past .chip.st { background: rgba(231, 255, 217, 0.08); color: rgba(231, 255, 217, 0.6); }
.post-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; }
.post-sub { margin: -4px 0 0; font-size: 13px; color: rgba(231, 255, 217, 0.72); }
.post-caption {
  width: 100%; resize: vertical; min-height: 140px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(4, 38, 29, 0.6); color: var(--white);
  font: 400 14.5px/1.55 var(--font);
}
.post-caption:focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px rgba(94, 255, 89, 0.25); }
.post .fine { margin: 0; }
.post .fine b { color: var(--white); font-weight: 600; }
.alt { border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 38, 29, 0.45); padding: 0 12px; }
.alt summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 13.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.alt summary::-webkit-details-marker { display: none; }
.alt summary::after { content: "+"; color: var(--bright); font-weight: 700; font-size: 18px; }
.alt[open] summary::after { content: "–"; }
.alt-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); padding: 0 0 12px; }
.alt-pick { display: grid; gap: 6px; padding: 6px; border-radius: 10px; text-align: left; cursor: pointer; background: rgba(10, 47, 36, 0.55); border: 1px solid var(--line); color: var(--mint); font-size: 12px; }
.alt-pick:hover { border-color: var(--bright); }
.alt-pick img { display: block; width: 100%; height: auto; border-radius: 6px; }
.alt-pick b { color: var(--bright); }

/* locked posts: outside the posting window (Schneider employees and Explorers) */
.post-visual { position: relative; }
.post.locked .post-visual img { filter: saturate(0.55) brightness(0.62); }
.lock-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: rgba(4, 38, 29, 0.82); color: var(--mint); font-size: 12.5px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--line-strong); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lock-badge svg { width: 16px; height: 16px; }
a.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
a.btn[aria-disabled="true"]:active { transform: none; }
.post-caption[readonly] { opacity: 0.8; }
.test-unlock { margin: -6px 0 16px; font-size: 12.5px; color: var(--bright); font-weight: 600; }
