:root {
  color-scheme: dark;
  --bg: #080c16;
  --line: rgba(156, 177, 216, 0.16);
  --line-strong: rgba(174, 194, 233, 0.28);
  --text: #f4f7ff;
  --muted: #8d9ab4;
  --soft: #c2ccdd;
  --accent: #a7b8ff;
  --accent-bright: #c9d3ff;
  --cyan: #70e1d3;
  --persona-hue: 214;
  --persona-secondary-hue: 262;
  --page-width: 1160px;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  transition: background 500ms ease;
  background:
    radial-gradient(circle at 8% -10%, hsl(var(--persona-hue) 72% 62% / 0.24), transparent 32rem),
    radial-gradient(circle at 92% 18%, hsl(var(--persona-secondary-hue) 70% 58% / 0.16), transparent 27rem),
    linear-gradient(135deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,0.012) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 46px 46px, 46px 46px, auto;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
body.modal-open { overflow: hidden; }
button { font: inherit; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { display: flex; flex-direction: column; min-height: 100svh; overflow: hidden; }
.page-width { width: min(var(--page-width), calc(100% - 64px)); margin-inline: auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(156, 177, 216, 0.1);
  animation: rise-in 700ms cubic-bezier(.2,.8,.2,1) both;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
}
.wordmark i { color: var(--accent); font-style: normal; }
.wordmark-mark {
  display: grid;
  width: 43px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(176, 194, 255, 0.32);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(119, 139, 255, 0.15);
}
.wordmark-mark img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.status-pill, .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-dot, .live-indicator span, .iframe-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(112, 225, 211, 0.1), 0 0 15px rgba(112, 225, 211, 0.7); }

.main-content { flex: 1; padding-top: clamp(70px, 10vw, 126px); padding-bottom: clamp(76px, 10vw, 132px); }
.intro { max-width: 760px; animation: rise-in 800ms 100ms cubic-bezier(.2,.8,.2,1) both; }
.eyebrow, .section-label, .result-divider, .field-hint, .card-footer-note, .modal-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--cyan); }
.eyebrow-line { width: 28px; height: 1px; background: var(--cyan); box-shadow: 0 0 12px rgba(112, 225, 211, 0.8); }
h1 { max-width: 780px; margin: 24px 0 21px; font-family: "Space Grotesk", sans-serif; font-size: clamp(45px, 7vw, 80px); font-weight: 600; letter-spacing: -0.075em; line-height: 0.98; }
h1 span { background: linear-gradient(100deg, #a6b8ff 5%, #d1d8ff 52%, #7ce0d2 108%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro-copy { max-width: 470px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.workspace-card { position: relative; margin-top: 56px; padding: clamp(22px, 4vw, 42px); overflow: hidden; animation: rise-in 850ms 200ms cubic-bezier(.2,.8,.2,1) both; }
.glass-panel { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, hsl(var(--persona-hue) 72% 64% / 0.13), hsl(var(--persona-secondary-hue) 70% 58% / 0.05) 42%, transparent 75%), linear-gradient(145deg, rgba(31, 43, 72, 0.72), rgba(12, 18, 32, 0.7)); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transition: background 500ms ease; }
.workspace-card::after { position: absolute; top: -110px; right: -80px; width: 290px; height: 290px; pointer-events: none; content: ""; border-radius: 50%; background: hsl(var(--persona-secondary-hue) 70% 58% / 0.11); filter: blur(50px); transition: background 500ms ease; }
.card-topline, .selector-row, .result-divider, .footer-inner, .description-footer { display: flex; align-items: center; }
.card-topline { justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.section-label { color: var(--soft); }
.section-number { margin-right: 9px; color: var(--accent); }
.live-indicator span { width: 5px; height: 5px; }
.selector-row { position: relative; z-index: 1; justify-content: space-between; gap: 40px; padding: 38px 0 44px; }
.select-control { min-width: 0; }
.input-label { display: block; margin-bottom: 13px; color: var(--soft); font-family: "Space Grotesk", sans-serif; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.05em; }
.audience-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 235px;
  max-width: 100%;
  min-height: 48px;
  padding: 0 15px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.075);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.audience-trigger:hover { border-color: rgba(174, 194, 233, 0.5); background-color: rgba(255, 255, 255, 0.1); }
.audience-trigger[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(167, 184, 255, 0.14); }
.audience-trigger i { color: var(--accent-bright); font-size: 12px; transition: transform 180ms ease; }
.audience-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.field-hint { display: block; margin-top: 12px; color: #68748d; letter-spacing: 0.1em; }
.selector-ornament { width: 74px; height: 74px; flex: 0 0 auto; color: rgba(167, 184, 255, 0.72); animation: slow-spin 24s linear infinite; }
.selector-ornament svg { display: block; width: 100%; height: 100%; }
.result-divider { gap: 14px; color: var(--muted); font-size: 10px; }
.result-rule { height: 1px; flex: 1; background: var(--line); }
.result-index { color: #65718a; letter-spacing: 0.08em; }
.explanation { position: relative; z-index: 1; min-height: 174px; padding: 34px clamp(0px, 5vw, 61px) 36px 0; color: #e9edfb; font-family: "Space Grotesk", sans-serif; font-size: clamp(21px, 3vw, 30px); font-weight: 500; letter-spacing: -0.038em; line-height: 1.38; white-space: pre-wrap; transition: opacity 460ms cubic-bezier(.22, 1, .36, 1), transform 560ms cubic-bezier(.22, 1, .36, 1), filter 460ms ease; }
.explanation::after { display: none; content: ""; width: 2px; height: 1em; margin-left: 5px; vertical-align: -0.12em; background: var(--cyan); animation: blink 900ms steps(1) infinite; }
.explanation.is-typing::after { display: inline-block; }
.explanation.is-changing, .why-care.is-changing { opacity: 0; transform: translateY(14px) scale(.99); filter: blur(4px); }
.why-care { position: relative; z-index: 1; margin: 0 0 31px; padding: 24px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: opacity 460ms cubic-bezier(.22, 1, .36, 1), transform 560ms cubic-bezier(.22, 1, .36, 1), filter 460ms ease; }
.why-care-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--soft); }
.why-care-label { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.why-care-audience { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.why-care-list { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.why-care-list li { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 13px; align-items: start; padding: 13px 15px; color: var(--soft); border: 1px solid rgba(156, 177, 216, .13); border-radius: 11px; background: rgba(255, 255, 255, .035); font-size: 14px; line-height: 1.48; animation: why-care-rise 520ms cubic-bezier(.22, 1, .36, 1) both; }
.why-care-list li:nth-child(2) { animation-delay: 65ms; }
.why-care-list li:nth-child(3) { animation-delay: 130ms; }
.why-care-number { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 1.7; }
.description-footer { position: relative; z-index: 1; justify-content: space-between; gap: 20px; }
.card-footer-note { color: #68748d; letter-spacing: 0.1em; }
.sparkle { margin-right: 6px; color: var(--cyan); }
.visualize-button, .translate-trigger, .footer-link, .modal-close, .subtle-button { border: 0; cursor: pointer; }
.visualize-button { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 15px; color: #0b1221; border: 1px solid rgba(201, 211, 255, 0.7); border-radius: 10px; background: linear-gradient(135deg, var(--accent-bright), #8de5d5); font-size: 12px; font-weight: 700; box-shadow: 0 8px 25px rgba(112, 225, 211, 0.13); transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease; }
.visualize-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(112, 225, 211, 0.22); }
.visualize-button:disabled { cursor: wait; opacity: 0.72; }
.visualize-button.is-loading { background: linear-gradient(135deg, #b4c1f3, #86cfc5); }

.visual-output { position: relative; z-index: 1; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); animation: rise-in 450ms ease both; }
.visual-output-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.visual-output-heading i { margin-right: 7px; color: var(--cyan); }
.visual-image-wrap { position: relative; }
.visual-output img { display: block; width: 100%; max-height: 540px; border: 1px solid var(--line); border-radius: 14px; object-fit: cover; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25); }
.download-image { position: absolute; top: 12px; right: 12px; display: grid; width: 34px; height: 34px; place-items: center; color: var(--text); border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(7, 12, 24, .7); box-shadow: 0 7px 20px rgba(0,0,0,.25); opacity: 0; transform: translateY(-5px); backdrop-filter: blur(12px); transition: opacity 180ms ease, transform 180ms ease, background 180ms ease; }
.visual-image-wrap:hover .download-image, .download-image:focus-visible { opacity: 1; transform: translateY(0); }
.download-image:hover { background: rgba(112,225,211,.22); }
.share-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 15px 0 0; border-top: 1px solid var(--line); }
.share-copy { min-width: 0; }
.share-label { display: block; color: var(--cyan); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.share-label i { margin-right: 5px; }
.share-copy p { margin: 6px 0 0; color: var(--soft); font-size: 13px; line-height: 1.4; }
.share-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.social-intent { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.045); font-size: 13px; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.social-intent:hover { color: var(--text); border-color: var(--accent); background: rgba(167,184,255,.15); transform: translateY(-2px); }
.subtle-button { padding: 4px; color: var(--muted); background: transparent; }
.subtle-button:hover { color: var(--text); }

.site-footer { position: relative; z-index: 4; flex-shrink: 0; border-top: 1px solid rgba(156, 177, 216, 0.12); background: rgba(5, 8, 16, 0.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.footer-inner { justify-content: space-between; min-height: 78px; gap: 25px; }
.footer-logo { display: inline-flex; align-items: center; width: 126px; padding: 0; border: 0; background: transparent; opacity: 0.88; cursor: pointer; transition: opacity 180ms ease, transform 180ms ease; }
.footer-logo:hover { opacity: 1; transform: translateY(-1px); }
.footer-logo img { display: block; width: clamp(86px, 11vw, 126px); height: auto; max-height: 39px; object-fit: contain; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 7px; }
.footer-link { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 10px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 11px; font-weight: 600; white-space: nowrap; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.footer-link i { color: var(--accent); font-size: 12px; }
.footer-link:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.footer-meta { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 126px; }
.facebook-like-wrap { display: flex; min-width: 165px; align-items: center; justify-content: center; gap: 8px; }
.facebook-like-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.facebook-like-label i { color: #86aaff; font-size: 13px; }
.facebook-like-wrap iframe { display: block; width: 110px; height: 21px; border-radius: 4px; color-scheme: dark; background: #080d19; }
.translate-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 10px; color: var(--soft); border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255,255,255,0.06); font-size: 11px; font-weight: 600; transition: border-color 180ms ease, background 180ms ease; }
.translate-trigger:hover, .translate-trigger[aria-expanded="true"] { border-color: var(--accent); background: rgba(167, 184, 255, 0.12); }
.translate-trigger i { color: var(--cyan); font-size: 14px; }
.translate-popover { position: absolute; right: 0; bottom: calc(100% + 13px); padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(15, 23, 41, 0.96); box-shadow: 0 18px 45px rgba(0,0,0,0.35); backdrop-filter: blur(18px); }
#google_translate_element .goog-te-gadget { color: var(--muted) !important; font: 600 11px "DM Sans", sans-serif !important; }
#google_translate_element .goog-te-combo { width: auto; max-width: 245px; min-height: 34px; margin: 0 !important; padding: 0 10px; color: var(--soft); border: 1px solid var(--line-strong); border-radius: 8px; outline: none; background: rgba(255,255,255,0.06); font: 500 12px "DM Sans", sans-serif; }
#google_translate_element .goog-te-combo:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167, 184, 255, 0.12); }
.goog-logo-link, .goog-te-gadget span { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; opacity: 0; background: rgba(3, 6, 13, 0.76); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity 220ms ease; }
.modal-backdrop.is-open { opacity: 1; }
.modal-dialog { width: min(100%, 940px); max-height: min(860px, calc(100svh - 48px)); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 21px; background: linear-gradient(145deg, rgba(30, 42, 70, 0.98), rgba(9, 14, 27, 0.98)); box-shadow: 0 30px 100px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08); transform: translateY(14px) scale(.98); transition: transform 280ms cubic-bezier(.2,.8,.2,1); }
.modal-backdrop.is-open .modal-dialog { transform: translateY(0) scale(1); }
.audience-dialog { padding: clamp(22px, 4vw, 36px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.modal-kicker { display: block; margin-bottom: 11px; color: var(--cyan); }
.modal-heading h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(25px, 4vw, 38px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; }
.modal-close { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; color: var(--soft); border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,0.06); transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.12); transform: rotate(5deg); }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 9px; max-height: min(575px, calc(100svh - 220px)); padding-top: 25px; overflow-y: auto; scrollbar-color: rgba(167,184,255,.45) transparent; }
.audience-choice { position: relative; display: flex; min-height: 64px; align-items: center; gap: 10px; padding: 12px; color: var(--soft); border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg, hsl(var(--choice-hue) 74% 65% / 0.13), hsl(calc(var(--choice-hue) + 48) 70% 58% / 0.04)), rgba(255,255,255,0.035); font-size: 13px; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.audience-choice:hover, .audience-choice.is-selected { color: var(--text); border-color: hsl(var(--choice-hue) 80% 78% / 0.72); background: linear-gradient(135deg, hsl(var(--choice-hue) 78% 68% / 0.25), hsl(calc(var(--choice-hue) + 48) 72% 61% / 0.1)), rgba(255,255,255,0.06); transform: translateY(-2px); }
.audience-choice.is-selected::before { position: absolute; top: 9px; right: 9px; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.audience-choice .choice-index { align-self: flex-start; color: #6e7b98; font-size: 9px; letter-spacing: .08em; }
.audience-choice > i { display: none; margin-left: auto; color: var(--accent); font-size: 10px; }
.audience-choice:hover > i { display: block; }

.site-dialog { display: flex; width: min(1400px, 100%); height: min(92svh, 940px); flex-direction: column; }
.iframe-toolbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 16px 0 21px; border-bottom: 1px solid var(--line); }
.iframe-heading { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.iframe-live-dot { width: 5px; height: 5px; }
#site-frame { display: block; width: 100%; height: 100%; flex: 1; border: 0; background: #fff; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes why-care-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 850px) {
  .footer-inner { flex-wrap: wrap; justify-content: center; gap: 10px 18px; padding-block: 12px; }
  .footer-logo { width: auto; margin-right: auto; }
  .footer-meta { width: auto; margin-left: auto; }
  .facebook-like-wrap { order: 4; width: 100%; }
  .footer-links { order: 3; width: 100%; }
}
@media (max-width: 700px) {
  .page-width { width: min(100% - 36px, var(--page-width)); }
  .topbar { min-height: 76px; }
  .status-pill { font-size: 0; gap: 0; }
  .status-pill .status-dot { width: 7px; height: 7px; }
  .main-content { padding-top: 65px; padding-bottom: 74px; }
  .workspace-card { margin-top: 42px; border-radius: 19px; }
  .selector-row { align-items: flex-start; padding-block: 30px 36px; }
  .select-control { flex: 1 1 auto; }
  .selector-ornament { width: 52px; height: 52px; margin-top: 5px; }
  .explanation { padding-top: 28px; padding-bottom: 32px; }
  .why-care { margin-bottom: 28px; padding-block: 22px 25px; }
  .why-care-list li { font-size: 13px; }
  .footer-links { gap: 2px; }
  .footer-link { padding-inline: 7px; font-size: 10px; }
  .footer-link i { font-size: 11px; }
}
@media (max-width: 460px) {
  .page-width { width: min(100% - 28px, var(--page-width)); }
  .topbar { min-height: 68px; }
  .wordmark { font-size: 14px; }
  .wordmark-mark { width: 39px; height: 33px; }
  h1 { margin-top: 18px; font-size: clamp(36px, 11.2vw, 48px); line-height: .98; }
  .intro-copy { font-size: 14px; }
  .workspace-card { margin-top: 34px; padding: 19px; }
  .card-topline { padding-bottom: 20px; }
  .selector-row { gap: 14px; }
  .select-control { width: 100%; }
  .selector-ornament { display: none; }
  .audience-trigger { width: 100%; min-width: 0; font-size: 16px; }
  .explanation { min-height: 210px; padding-right: 0; font-size: 22px; }
  .why-care-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .why-care-list li { grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 12px; }
  .description-footer { align-items: flex-end; }
  .card-footer-note { font-size: 9px; }
  .visualize-button { min-height: 38px; padding-inline: 12px; }
  .share-panel { align-items: flex-start; flex-direction: column; gap: 12px; }
  .share-actions { width: 100%; justify-content: flex-end; }
  .download-image { opacity: .9; transform: none; }
  .result-divider { gap: 9px; font-size: 9px; }
  .result-index { display: none; }
  .footer-inner { align-items: center; }
  .footer-logo img { width: 88px; }
  .footer-links { gap: 0; justify-content: space-between; }
  .footer-link { gap: 5px; padding-inline: 4px; font-size: 9px; }
  .footer-link i { font-size: 10px; }
  .translate-trigger { padding-inline: 9px; }
  .translate-trigger span { display: none; }
  .translate-popover { right: -4px; }
  .modal-backdrop { padding: 10px; }
  .audience-dialog { padding: 19px; border-radius: 17px; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: calc(100svh - 165px); padding-top: 19px; }
  .audience-choice { min-height: 58px; padding: 9px; font-size: 12px; }
  .audience-choice .choice-index { display: none; }
  .site-dialog { height: calc(100svh - 20px); border-radius: 15px; }
  .iframe-toolbar { min-height: 51px; padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Persona Library */
.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;
}
.audience-dialog {
  display: flex;
  width: min(92vw, 1240px);
  height: min(88svh, 900px);
  max-height: 88svh;
  flex-direction: column;
  padding: 0;
}
.library-heading {
  flex: 0 0 auto;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px) 20px;
}
.library-heading h2 { font-size: clamp(26px, 3.5vw, 40px); }
.library-heading p, .custom-dialog .modal-heading p, .compare-dialog .modal-heading p {
  max-width: 690px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.library-toolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  flex: 0 0 auto;
  padding: 15px clamp(20px, 3vw, 34px) 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 22, 40, .94);
  backdrop-filter: blur(18px);
}
.search-row, .filter-row, .results-line, .library-footer, .library-footer-actions, .collection-heading {
  display: flex;
  align-items: center;
}
.search-row { gap: 8px; }
.persona-search {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
}
.persona-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167, 184, 255, .12); }
.persona-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}
.persona-search input::placeholder { color: #71809b; }
.search-clear, .fine-tune-toggle, .toolbar-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}
.search-clear { min-width: 28px; min-height: 28px; padding: 0; border: 0; background: transparent; }
.toolbar-action:hover, .fine-tune-toggle:hover, .fine-tune-toggle[aria-expanded="true"] { color: var(--text); border-color: var(--accent); background: rgba(167, 184, 255, .12); transform: translateY(-1px); }
.toolbar-action i, .fine-tune-toggle i { color: var(--cyan); }
.surprise-mode select {
  min-height: 40px;
  max-width: 145px;
  padding: 0 25px 0 10px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 255, 255, .045);
  font: 700 10px "DM Sans", sans-serif;
  cursor: pointer;
}
.surprise-mode select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167, 184, 255, .12); }
.filter-row { gap: 10px; margin-top: 10px; }
.category-chips {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }
.category-chip {
  min-height: 31px;
  padding: 0 10px;
  color: #9da9c0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
}
.category-chip:hover, .category-chip.is-active { color: var(--text); border-color: rgba(167, 184, 255, .55); background: rgba(167, 184, 255, .16); }
.category-chip-secondary { color: #8491aa; background: transparent; }
.fine-tune-toggle { min-height: 31px; padding-inline: 10px; font-size: 10px; white-space: nowrap; }
.fine-tune-panel {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 12px 0 2px;
  color: var(--soft);
  font-size: 10px;
}
.fine-tune-panel label { display: grid; min-width: 115px; gap: 6px; }
.fine-tune-panel label span { display: flex; justify-content: space-between; gap: 10px; }
.fine-tune-panel output { color: var(--cyan); }
.fine-tune-panel input { width: 100%; accent-color: var(--cyan); }
.fine-tune-panel > button { align-self: end; padding: 3px 0; color: var(--muted); border: 0; background: transparent; font-size: 10px; cursor: pointer; }
.results-line { justify-content: space-between; gap: 14px; min-height: 25px; color: #71809b; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.results-line span:last-child { color: var(--cyan); }
.featured-collections {
  flex: 0 0 auto;
  padding: 14px clamp(20px, 3vw, 34px) 0;
}
.collection-heading { justify-content: space-between; gap: 12px; color: var(--cyan); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.collection-heading > span i { margin-right: 7px; }
.collection-dots { display: flex; gap: 5px; }
.collection-dots button { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 50%; background: #52617c; cursor: pointer; }
.collection-dots button.is-active { background: var(--cyan); box-shadow: 0 0 8px rgba(112, 225, 211, .7); }
.collection-cards { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; scrollbar-width: none; }
.collection-cards::-webkit-scrollbar { display: none; }
.recent-heading { margin-top: 12px; color: #71809b; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.recent-heading i { margin-right: 7px; color: var(--accent); }
.collection-card {
  display: inline-flex;
  min-width: 154px;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: var(--soft);
  border: 1px solid rgba(156, 177, 216, .13);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.collection-card:hover { border-color: rgba(112, 225, 211, .55); background: rgba(112, 225, 211, .08); transform: translateY(-1px); }
.persona-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: hsl(var(--choice-hue, 214) 88% 80%); border: 1px solid hsl(var(--choice-hue, 214) 80% 75% / .33); border-radius: 8px; background: hsl(var(--choice-hue, 214) 72% 62% / .13); }
.audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  padding: 14px clamp(20px, 3vw, 34px) 12px;
  overflow-y: auto;
  scrollbar-color: rgba(167, 184, 255, .45) transparent;
}
.audience-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 145px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, hsl(var(--choice-hue) 74% 65% / .12), transparent 72%), rgba(255, 255, 255, .035);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.audience-card:hover, .audience-card:focus-within, .audience-card.is-selected, .audience-card.is-comparing { color: var(--text); border-color: hsl(var(--choice-hue) 80% 78% / .7); background: linear-gradient(145deg, hsl(var(--choice-hue) 78% 68% / .23), transparent 72%), rgba(255, 255, 255, .06); box-shadow: 0 12px 28px rgba(0, 0, 0, .18), 0 0 0 2px hsl(var(--choice-hue) 80% 78% / .12); transform: translateY(-2px); }
.audience-card.is-selected::after, .audience-card.is-comparing::after { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; content: ""; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.audience-card-main {
  display: grid;
  grid-template-columns: 24px 31px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  min-height: 104px;
  padding: 12px;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.choice-index { color: #6e7b98; font-size: 9px; letter-spacing: .08em; line-height: 2.5; }
.persona-card-copy { display: grid; min-width: 0; gap: 5px; }
.persona-card-copy strong { padding-right: 10px; font-size: 12px; line-height: 1.2; }
.persona-card-copy small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.persona-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.persona-badges em { padding: 3px 5px; color: #9da9c0; border: 1px solid rgba(156, 177, 216, .18); border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 700; line-height: 1; }
.persona-badges em:first-child { color: hsl(var(--choice-hue) 82% 78%); border-color: hsl(var(--choice-hue) 78% 78% / .24); }
.favorite-button {
  position: absolute;
  top: 8px;
  right: 25px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: #71809b;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}
.favorite-button:hover, .favorite-button.is-favorite { color: #f3d37a; background: rgba(243, 211, 122, .12); }
.preview-voice {
  align-self: flex-start;
  min-height: 34px;
  margin: 0 12px 10px 46px;
  padding: 0;
  color: #9da9c0;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.preview-voice:hover { color: var(--cyan); }
.preview-voice i { margin-left: 4px; font-size: 9px; }
.compare-check { position: absolute; right: 10px; bottom: 9px; display: grid; width: 20px; height: 20px; place-items: center; color: #08111e; border-radius: 50%; background: var(--cyan); font-size: 9px; }
.persona-empty-state { display: grid; flex: 1 1 auto; place-items: center; align-content: center; gap: 8px; min-height: 210px; padding: 30px; color: var(--muted); text-align: center; }
.persona-empty-state strong { color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 21px; }
.persona-empty-state span { font-size: 13px; }
.persona-empty-state > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 9px; }
.custom-persona-card {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin: 0 clamp(20px, 3vw, 34px) 12px;
  padding: 11px 13px;
  color: var(--soft);
  border: 1px dashed rgba(112, 225, 211, .42);
  border-radius: 11px;
  background: rgba(112, 225, 211, .05);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.custom-persona-card:hover, .custom-persona-card:focus-visible { border-color: var(--cyan); background: rgba(112, 225, 211, .11); transform: translateY(-1px); }
.custom-persona-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: var(--cyan); border: 1px solid rgba(112, 225, 211, .32); border-radius: 8px; }
.custom-persona-card > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.custom-persona-card strong { color: var(--text); font-size: 12px; }
.custom-persona-card small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.custom-persona-card > i { margin-left: auto; color: var(--cyan); font-size: 11px; }
.library-footer {
  position: sticky;
  z-index: 4;
  bottom: 0;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 15px;
  padding: 12px clamp(20px, 3vw, 34px) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(10, 16, 30, .96);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .12);
}
.library-selection { display: flex; min-width: 0; align-items: center; gap: 9px; }
.selection-check { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: #08111e; border-radius: 50%; background: var(--cyan); font-size: 10px; }
.library-selection > span:last-child { display: grid; min-width: 0; gap: 2px; }
.library-selection small { color: #71809b; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.library-selection strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.library-footer-actions { flex: 0 0 auto; gap: 10px; }
.compare-count { color: var(--cyan); font-size: 10px; font-weight: 700; }
.library-primary-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #0b1221;
  border: 1px solid rgba(201, 211, 255, .7);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-bright), #8de5d5);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.library-primary-action:hover { box-shadow: 0 8px 20px rgba(112, 225, 211, .2); transform: translateY(-1px); }
.custom-dialog, .compare-dialog { width: min(92vw, 760px); padding: clamp(20px, 4vw, 35px); }
.custom-form { display: grid; gap: 15px; padding-top: 23px; }
.custom-form label { display: grid; gap: 7px; color: var(--soft); font-size: 11px; font-weight: 700; }
.custom-form input, .custom-form textarea, .custom-form select {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 255, 255, .055);
  font-size: 13px;
}
.custom-form textarea { resize: vertical; }
.custom-form input:focus, .custom-form textarea:focus, .custom-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167, 184, 255, .12); }
.custom-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.custom-form-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.custom-form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }
.compare-output { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; max-height: calc(88svh - 150px); padding-top: 24px; overflow-y: auto; }
.comparison-card { min-width: 0; padding: 15px; border: 1px solid hsl(var(--choice-hue) 78% 78% / .28); border-radius: 12px; background: linear-gradient(145deg, hsl(var(--choice-hue) 74% 65% / .15), rgba(255,255,255,.03)); }
.comparison-card-heading { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.comparison-card-heading > div { display: grid; min-width: 0; gap: 3px; }
.comparison-card-heading strong { font-size: 12px; line-height: 1.25; }
.comparison-card-heading small { color: var(--muted); font-size: 9px; line-height: 1.25; }
.comparison-card p { margin: 12px 0 0; color: var(--soft); font-size: 12px; line-height: 1.55; }

@media (max-width: 1000px) {
  .audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .audience-dialog {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border-radius: 16px;
  }
  .modal-backdrop:has(.audience-dialog) { padding: 0; align-items: stretch; }
  .library-heading { padding-top: max(18px, env(safe-area-inset-top)); }
  .search-row { flex-wrap: wrap; }
  .persona-search { flex-basis: 100%; }
  .search-row > .toolbar-action { flex: 1 1 0; }
  .surprise-mode { flex: 1 1 0; }
  .surprise-mode select { width: 100%; max-width: none; }
  .library-toolbar { padding-inline: 16px; }
  .featured-collections { padding-inline: 16px; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 16px; }
  .custom-persona-card { margin-inline: 16px; }
  .library-footer { padding-inline: 16px; }
  .library-footer-actions { gap: 7px; }
  .compare-count { display: none; }
  .custom-form-grid, .compare-output { grid-template-columns: 1fr; }
  .compare-output { max-height: calc(100svh - 165px); }
}
@media (max-width: 460px) {
  .library-heading p { font-size: 12px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: 126px; }
  .audience-card-main { min-height: 88px; }
  .persona-card-copy small { -webkit-line-clamp: 3; }
  .fine-tune-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fine-tune-panel label:last-of-type { grid-column: span 2; }
  .library-footer { align-items: flex-end; }
  .library-primary-action { padding-inline: 11px; }
  .library-selection strong { max-width: 155px; }
}
