/* ToonFlick web app. Colours from site/styles.css and the Hub's "Kino" look; system fonts only. */

:root {
  --bg: #050a24;
  --bg-2: #0b1020;
  --card: #111933;
  --card-hi: #18223f;
  --surface: rgba(120, 150, 255, 0.05);
  --surface-2: rgba(120, 150, 255, 0.09);
  --line: rgba(140, 170, 255, 0.16);
  --field: rgba(3, 7, 26, 0.55);
  --text: #e8ecf6;
  --muted: #aab5d3;
  --faint: #8592b3;
  --accent: #4d94ff;
  --accent-2: #8cc8ff;
  --glow: rgba(77, 148, 255, 0.45);
  --ink: #04102e;
  --good: #4ad08a;
  --bad: #ff6b5e;
  --header: rgba(5, 10, 36, 0.72);
  --shadow: 0 30px 80px -30px rgba(29, 85, 230, 0.55);
  --waves: 0.38;
  --radius: 6px;
  --radius-lg: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

/* Light: the same blues on paper. Follows the system unless the toggle chose. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fc; --bg-2: #ffffff; --card: #ffffff; --card-hi: #f0f3fb;
    --surface: rgba(29, 85, 230, 0.04); --surface-2: rgba(29, 85, 230, 0.08);
    --line: rgba(20, 40, 110, 0.14); --field: #ffffff;
    --text: #0b1020; --muted: #3a4466; --faint: #5e6a8c;
    --accent: #2f6dff; --accent-2: #1d55e6; --glow: rgba(47, 109, 255, 0.35); --ink: #ffffff;
    --good: #138a52; --bad: #c8382d;
    --header: rgba(244, 246, 252, 0.8);
    --shadow: 0 24px 60px -28px rgba(29, 60, 160, 0.35);
    --waves: 0.12;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6fc; --bg-2: #ffffff; --card: #ffffff; --card-hi: #f0f3fb;
  --surface: rgba(29, 85, 230, 0.04); --surface-2: rgba(29, 85, 230, 0.08);
  --line: rgba(20, 40, 110, 0.14); --field: #ffffff;
  --text: #0b1020; --muted: #3a4466; --faint: #5e6a8c;
  --accent: #2f6dff; --accent-2: #1d55e6; --glow: rgba(47, 109, 255, 0.35); --ink: #ffffff;
  --good: #138a52; --bad: #c8382d;
  --header: rgba(244, 246, 252, 0.8);
  --shadow: 0 24px 60px -28px rgba(29, 60, 160, 0.35);
  --waves: 0.12;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-2); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }

/* ---------- Backdrop (from the site) ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 700px at 70% -10%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%), var(--bg);
}
.waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--waves); filter: blur(2px); }
.wave { transform-box: fill-box; transform-origin: center; }
.w1 { animation: drift 26s ease-in-out infinite alternate; }
.w2 { animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(18px, -14px) scale(1.04); } }
.spark, .plus { position: absolute; }
.spark { width: 8px; height: 8px; border-radius: 50%; background: #2f6dff; box-shadow: 0 0 14px 3px rgba(47, 109, 255, 0.6); animation: twinkle 5s ease-in-out infinite; }
.s1 { top: 14%; left: 8%; } .s2 { top: 32%; left: 94%; width: 12px; height: 12px; animation-delay: -1.5s; } .s3 { top: 78%; left: 5%; width: 6px; height: 6px; animation-delay: -3s; }
.plus { width: 14px; height: 14px; animation: twinkle 7s ease-in-out infinite; }
.plus::before, .plus::after { content: ""; position: absolute; background: #3d8bff; border-radius: 2px; }
.plus::before { left: 6px; top: 0; width: 2px; height: 14px; }
.plus::after { top: 6px; left: 0; width: 14px; height: 2px; }
.s4 { top: 60%; left: 88%; animation-delay: -2.2s; } .s5 { top: 46%; left: 48%; width: 5px; height: 5px; animation-delay: -4s; }
.p1 { top: 9%; left: 30%; } .p2 { top: 22%; left: 78%; animation-delay: -2s; } .p3 { top: 88%; left: 62%; animation-delay: -4s; } .p4 { top: 70%; left: 20%; animation-delay: -5s; }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Header (as on toonflick.com) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: var(--header); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: 0.02em; font-size: 18px; }
.brand img { border-radius: 4px; }
.site-header nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 2px; color: var(--faint); font-size: 14px; }
.lang span { opacity: 0.5; }
.lang a { color: var(--muted); text-decoration: none; padding: 5px 6px; border-radius: 4px; letter-spacing: 0.06em; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-sun { display: none; }
:root[data-theme="light"] .icon-btn .i-sun, :root[data-theme="light"] .icon-btn .i-moon { display: none; }
:root[data-theme="light"] .icon-btn .i-moon { display: block; }
:root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
:root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
.nav-pill, .nav-links a.nav-pill { color: var(--ink); background: var(--accent); font-weight: 600; text-decoration: none; border-radius: 999px; padding: 5px 14px; white-space: nowrap; }
.nav-pill:hover, .nav-links a.nav-pill:hover { color: var(--ink); background: var(--accent-2); }
.account-link { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.account-link:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Buttons, fields, notes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 28px -8px var(--glow); }
.btn.primary:hover { background: var(--accent-2); color: var(--ink); }
.btn.ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.wide { width: 100%; padding-block: 13px; }

.form { display: grid; gap: 16px; margin: 0; }
.form.inline { display: flex; gap: 10px; align-items: stretch; }
.field { display: grid; gap: 6px; }
.field.grow { flex: 1; }
.field > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field small { color: var(--faint); font-size: 13px; }
.field input {
  font: inherit; color: var(--text); background: var(--field);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; width: 100%; min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }

.note { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.note p { margin: 0; }
.note p + p { margin-top: 4px; }
.note.good { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }
.note.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--faint); font-size: 13px; line-height: 1.5; }
.hint svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(255, 207, 138, 0.16); color: #ffcf8a; border: 1px solid rgba(255, 207, 138, 0.3); }
.eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Sign-in and registration: the site's hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center; padding-block: 72px 96px;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 14px 4px 12px; background: var(--surface);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px var(--glow); }
h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; }
.hero h1 {
  font-size: clamp(44px, 6vw, 76px); line-height: 1; font-weight: 300;
  letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 0 40px rgba(77, 148, 255, 0.35);
}
.pitch { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; margin: 24px 0 10px; max-width: 30ch; }
.hero-sub { color: var(--muted); margin: 0 0 32px; max-width: 46ch; }
.hero-media { margin: 0; }
.video-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2);
  box-shadow: 0 30px 80px -30px rgba(29, 85, 230, 0.6), 0 0 0 6px rgba(120, 150, 255, 0.04);
  aspect-ratio: 2 / 1;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { margin-top: 10px; color: var(--faint); font-size: 13px; }

.auth-card {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 34px 28px; box-shadow: var(--shadow);
}
.auth-card.solo { margin-block: 80px; }
.auth-card h2 { margin: 0 0 22px; font-size: 24px; font-weight: 400; line-height: 1.3; }
.narrow { max-width: 560px; }
.lead { color: var(--muted); margin: 8px 0 24px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.switch { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.switch a { font-weight: 600; }

/* ---------- Profile ---------- */
.profile { padding-block: 40px 72px; }
.profile-hero { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.profile-banner { height: 180px; position: relative; overflow: hidden; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.profile-banner::after { content: ""; position: absolute; inset: 0 0 -2px; background: linear-gradient(180deg, transparent 30%, var(--card) 92%); }
.profile-head { display: flex; align-items: flex-start; gap: 24px; padding: 0 32px 28px; margin-top: -56px; position: relative; }
.profile-head .profile-id { margin-top: 66px; }
.profile-head .signout { align-self: flex-end; }
.avatar {
  flex: none; width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-size: 40px; font-weight: 650; letter-spacing: 0.02em; color: #fff;
  border: 4px solid var(--card); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #2a4dff, #7a5cff);
}
/* The Hub's five avatar gradients. */
.hue-1 { background: linear-gradient(135deg, #ff8a3d, #d93f6a); }
.hue-2 { background: linear-gradient(135deg, #1eaa78, #1d6fb8); }
.hue-3 { background: linear-gradient(135deg, #c05cf0, #5b3dd9); }
.hue-4 { background: linear-gradient(135deg, #f0b832, #e06a2a); }
.profile-id { flex: 1; min-width: 0; }
.profile-id h1 { overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 10px 0 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.signout { margin: 0 0 6px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; color: var(--muted); background: none; border: 0; padding: 6px 2px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }
.link-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.card { background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px 26px; }
.card h2 { margin: 0 0 14px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.card .muted { margin: -4px 0 18px; }
.card .hint { margin-top: 10px; }
.card.wide { grid-column: 1 / -1; }
.card .form .btn { justify-self: start; }
.passkeys { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.passkeys h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.passkeys .muted { margin: 0 0 14px; font-size: 15px; }
.soon { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, #1f1d4a, #3a1d33); border-color: rgba(255, 255, 255, 0.08); color: #e8ecf6; }
.soon h2 { margin: 12px 0 0; font-weight: 400; font-size: 21px; max-width: 32ch; }
.soon-thumbs { display: flex; flex: none; }
.soon-thumbs img { width: 132px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.14); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
.soon-thumbs img + img { margin-left: -36px; }
.soon-thumbs img:nth-child(1) { transform: rotate(-5deg); }
.soon-thumbs img:nth-child(3) { transform: rotate(5deg) translateY(4px); }

/* ---------- Footer (as on toonflick.com) ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 28px; }
.footer-inner p { margin: 0; }
.brand-small { color: var(--text); font-weight: 650; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-nav a.nav-pill { color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 64px; }
  .hero-media { display: none; }
  .hero-sub { margin-bottom: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .soon { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) { .nav-links { display: none; } .header-tools { margin-left: auto; } }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .hero { padding-block: 28px 48px; gap: 24px; }
  .hero-sub { display: none; }
  .pitch { margin-bottom: 0; }
  .auth-card { padding: 26px 20px 22px; }
  .profile-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 20px 22px; }
  .profile-head .profile-id { margin-top: 0; }
  .profile-head .signout { align-self: flex-start; }
  .avatar { width: 96px; height: 96px; font-size: 34px; }
  .form.inline { flex-direction: column; }
  .soon-thumbs img { width: 104px; }
}
@media (max-width: 400px) { .brand span { display: none; } .header-tools { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Check your inbox ---------- */
.envelope { width: 64px; height: 64px; margin: 0 0 18px; }
.envelope svg { width: 64px; height: 64px; fill: var(--surface-2); stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.envelope .dot { fill: var(--good); stroke: var(--card); stroke-width: 3; }
.envelope .tick { fill: none; stroke: #fff; stroke-width: 2.5; }
.addr { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.form .hint + .field { margin-top: -4px; }

/* ---------- Community and ideas ---------- */
.community { padding-block: 48px 80px; }
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 300; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.05; }
.page-head .pitch { max-width: 60ch; margin-bottom: 0; }
.crumbs { margin: 0 0 14px; font-size: 14px; color: var(--faint); }
.nav-links a[aria-current="page"] { color: var(--text); }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.community-grid .card { display: flex; flex-direction: column; align-items: flex-start; }
.community-grid .card > .btn { margin-top: auto; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px; }
.card-head h2 { margin: 0 auto 0 0; }
.empty { color: var(--faint); margin: 6px 0 18px; }
.ideas { list-style: none; margin: 0; padding: 0; width: 100%; }
.idea { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.ideas .idea:first-child { border-top: 0; }
.vote-form { margin: 0; }
.vote {
  display: grid; justify-items: center; gap: 0; width: 58px; padding: 6px 0 8px; flex: none;
  font: inherit; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
button.vote { cursor: pointer; }
button.vote:hover { border-color: var(--accent); color: var(--text); }
.vote svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vote strong { font-size: 17px; color: var(--text); line-height: 1.2; }
.vote.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--accent-2); }
.vote.static { opacity: 0.85; }
.idea-text { min-width: 0; flex: 1; }
.idea-text h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.idea-text h3 a { color: var(--text); text-decoration: none; }
.idea-text h3 a:hover { color: var(--accent-2); }
.idea-text h1 { font-size: clamp(24px, 3vw, 32px); overflow-wrap: anywhere; }
.idea-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: 13px; color: var(--faint); }
.status { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.04em; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.st-planned { color: #b9a3ff; border-color: rgba(185, 163, 255, 0.4); }
.st-building { color: #ffcf8a; border-color: rgba(255, 207, 138, 0.4); }
.st-done { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.st-declined, .st-hidden { color: var(--faint); }
.making { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.making a { color: var(--text); }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.newsletter .hint { margin-top: 10px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ideas-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
#new-idea { position: sticky; top: 84px; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chips a span { color: var(--faint); font-size: 12px; margin-left: 2px; }
.chips a:hover { color: var(--text); }
.chips a[aria-current="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.field textarea, .field select {
  font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; width: 100%; min-width: 0; resize: vertical;
}
.field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.idea-wrap { max-width: 820px; }
.idea-page .idea { padding-top: 0; }
.idea-body { white-space: pre-line; color: var(--muted); margin: 8px 0 6px 74px; overflow-wrap: anywhere; }
.moderate { margin-top: 22px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
@media (max-width: 980px) {
  .community-grid { grid-template-columns: 1fr 1fr; }
  .ideas-layout, .newsletter { grid-template-columns: 1fr; }
  #new-idea { position: static; }
}
@media (max-width: 600px) {
  .community { padding-block: 28px 56px; }
  .community-grid { grid-template-columns: 1fr; }
  .idea { gap: 12px; }
  .vote { width: 50px; }
  .idea-body { margin-left: 0; }
}
.danger { margin-top: 22px; border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn.danger-btn { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.btn.danger-btn:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.soon .btn { margin-top: 14px; color: #e8ecf6; border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.back-link { margin: 0 0 18px; font-size: 15px; }
.back-link a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; }
.back-link a:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
