/* Theme-safe controls for the embedded Django learning and automation apps. */
.ai-learning-form .button{justify-self:center}
.live-flow-demo form{align-content:start;grid-auto-rows:max-content}
.live-flow-demo form>h3{display:flex;align-items:center;min-height:42px;margin:0 0 4px;font-size:20px}
.live-flow-demo form>h3:before{content:"✦";display:grid;place-items:center;width:36px;height:36px;margin-right:12px;border-radius:11px;background:rgba(37,99,235,.18);color:#67e8f9;font-size:16px}
.live-flow-demo .flow-inline{grid-template-columns:120px minmax(190px,280px);align-items:end;justify-content:start}
.kids-flow-demo input[type="number"]{max-width:120px}
.kids-flow-demo select{max-width:280px}
.live-flow-demo .button{width:auto;min-width:170px;justify-self:center;color:#fff!important;-webkit-text-fill-color:#fff;font-weight:700;text-transform:none;letter-spacing:0}
.live-flow-demo button.button{height:50px!important;min-height:50px!important;max-height:50px!important;padding:0 26px!important;border-radius:999px!important;align-self:start}
.live-flow-demo .button.secondary{border-color:#3b82f6;background:linear-gradient(135deg,#168cff,#3566f5);box-shadow:0 12px 30px rgba(22,140,255,.22)}
.live-flow-demo .button:hover{transform:translateY(-2px);filter:brightness(1.08)}
.live-flow-demo .button:focus-visible,.kids-options button:focus-visible{outline:3px solid #67e8f9;outline-offset:3px}
.live-flow-demo .button:disabled{cursor:wait;opacity:.65;transform:none}
.live-flow-demo input::placeholder,.live-flow-demo textarea::placeholder{color:#8295aa;opacity:1}
.live-flow-demo select{appearance:auto}
.kids-options button{min-width:58px;color:#eef7ff!important;background:#102a48;border-color:#60a5fa;font-weight:700}
.kids-options button:hover{background:#1d4ed8;color:#fff!important}
html[data-theme="light"] .live-flow-demo h2,html[data-theme="light"] .live-flow-demo h3,html[data-theme="light"] .live-flow-demo label,html[data-theme="light"] .flow-result,html[data-theme="light"] .kids-question{color:#0b1730}
html[data-theme="light"] .live-flow-demo form>h3:before{background:#e8f1ff;color:#2563eb}
html[data-theme="light"] .live-flow-demo .title-row>p,html[data-theme="light"] .live-flow-demo small,html[data-theme="light"] .live-flow-demo .ai-privacy-note,html[data-theme="light"] .flow-help{color:#52647b}
html[data-theme="light"] .live-flow-demo .button,html[data-theme="light"] .live-flow-demo .button.secondary{color:#fff!important;-webkit-text-fill-color:#fff;background:linear-gradient(135deg,#168cff,#3566f5);border-color:transparent}
html[data-theme="light"] .flow-result,html[data-theme="light"] .kids-question{background:#eff6ff;border-color:#bfdbfe}
html[data-theme="light"] .flow-result.error{background:#fff1f2;border-color:#fecdd3;color:#881337}
html[data-theme="light"] .kids-options button{color:#0b1730!important;background:#fff;border-color:#2563eb}
html[data-theme="light"] .kids-options button:hover{color:#fff!important;background:#2563eb}
@media(max-width:720px){.live-flow-demo form{gap:15px}.live-flow-demo form>h3{font-size:18px}.live-flow-demo .flow-inline{grid-template-columns:105px minmax(150px,1fr);gap:12px}.kids-flow-demo input[type="number"]{max-width:105px}}
@media(max-width:360px){.live-flow-demo .flow-inline{grid-template-columns:1fr}.kids-flow-demo input[type="number"],.kids-flow-demo select{max-width:100%}}

/* Friendly, non-technical overview of professional fields. */
.professional-areas{background:#0a192a}.professional-areas-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.professional-areas-grid article{min-height:245px;padding:25px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,rgba(96,165,250,.1),rgba(255,255,255,.025))}.professional-areas-grid article>span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:rgba(37,99,235,.16);color:#67e8f9;font-size:21px}.professional-areas-grid h3{margin:34px 0 10px;font:700 19px/1.3 'Manrope'}.professional-areas-grid p{margin:0;color:var(--muted);line-height:1.6}html[data-theme="light"] .professional-areas{background:#f3f7fc}html[data-theme="light"] .professional-areas-grid article{background:#fff;border-color:#dbe4f2;box-shadow:0 12px 30px rgba(15,23,42,.05)}html[data-theme="light"] .professional-areas-grid h3{color:#0b1730}html[data-theme="light"] .professional-areas-grid p{color:#52647b}
@media(max-width:980px) and (min-width:721px){.professional-areas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.professional-areas-grid[data-mobile-carousel]{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory}.professional-areas-grid article{min-height:270px}}
.consent-section{background:radial-gradient(circle at 15% 10%,rgba(37,99,235,.18),transparent 42%),#071421}.consent-card{display:grid;grid-template-columns:.8fr 1.2fr;gap:55px;align-items:start}.consent-card>div>p:last-child{color:var(--muted);font-size:17px}.consent-card form{display:grid;gap:17px;padding:30px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.04)}.consent-card .consent-check{display:grid;grid-template-columns:22px 1fr;align-items:start;color:var(--muted);font-size:13px;line-height:1.55;text-transform:none;letter-spacing:0}.consent-check input{width:18px;height:18px;margin-top:2px}.consent-card .button{justify-self:center}.ai-disclosure{padding:20px 0;background:#0c2630;border-block:1px solid rgba(74,222,128,.25)}.ai-disclosure .wrap>div{display:grid;grid-template-columns:44px 1fr auto;gap:16px;align-items:center}.ai-disclosure span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:rgba(74,222,128,.14);color:#86efac;font-weight:800}.ai-disclosure p{margin:0;color:#d5e3ef}.ai-disclosure button{border:0;background:none;color:#93c5fd;text-decoration:underline;cursor:pointer}html[data-theme="light"] .consent-section{background:#f3f7fc}html[data-theme="light"] .consent-card h2{color:#0b1730}html[data-theme="light"] .consent-card form{background:#fff;border-color:#dbe4f2;box-shadow:0 18px 45px rgba(15,23,42,.07)}html[data-theme="light"] .consent-card>div>p:last-child,html[data-theme="light"] .consent-card .consent-check{color:#52647b}html[data-theme="light"] .ai-disclosure{background:#ecfdf5;border-color:#bbf7d0}html[data-theme="light"] .ai-disclosure p{color:#14532d}@media(max-width:780px){.consent-card{grid-template-columns:1fr;gap:30px}.ai-disclosure .wrap>div{grid-template-columns:44px 1fr}.ai-disclosure button{grid-column:2;justify-self:start}}@media(max-width:520px){.consent-card form{padding:22px}.consent-card .button{width:100%}}

/* Authentication gate for under-18 AI experiences. */
.ai-login-gate{padding-block:80px;background:radial-gradient(circle at 50% 0,rgba(37,99,235,.18),transparent 48%),#071421}.ai-login-card{max-width:720px;margin:auto;padding:46px;text-align:center;border:1px solid var(--line);border-radius:28px;background:rgba(255,255,255,.04)}.ai-login-card>span{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 22px;border-radius:19px;background:linear-gradient(135deg,#2563eb,#22d3ee);color:#fff}.ai-login-card svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8}.ai-login-card h2{margin:8px auto 18px}.ai-login-card>p:not(.eyebrow){max-width:570px;margin:0 auto 28px;color:var(--muted)}.ai-login-card .button{margin:auto;color:#fff!important}html[data-theme="light"] .ai-login-gate{background:radial-gradient(circle at 50% 0,rgba(37,99,235,.11),transparent 48%),#f3f7fc}html[data-theme="light"] .ai-login-card{background:#fff;border-color:#dbe4f2;box-shadow:0 18px 45px rgba(15,23,42,.07)}html[data-theme="light"] .ai-login-card h2{color:#0b1730}html[data-theme="light"] .ai-login-card>p:not(.eyebrow){color:#52647b}@media(max-width:520px){.ai-login-gate{padding-block:55px}.ai-login-card{padding:30px 22px}.ai-login-card .button{width:100%}}
@media(max-width:520px){.ai-learning-form .button,.live-flow-demo .button{width:100%;justify-self:stretch}.live-flow-demo button.button{max-width:none}}
.consent-form-group{display:grid;gap:15px;margin:0;padding:20px;border:1px solid rgba(147,197,253,.2);border-radius:18px}.consent-form-group legend{padding:0 9px;color:#93c5fd;font:700 15px 'Manrope';letter-spacing:.02em}.consent-group-help{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.consent-form-group label small{color:var(--muted);font-size:12px;font-weight:400;letter-spacing:0;text-transform:none}.child-details-group{border-color:rgba(34,211,238,.38);background:rgba(34,211,238,.055)}.child-details-group legend{color:#67e8f9}html[data-theme="light"] .consent-form-group{border-color:#dbe4f2}html[data-theme="light"] .consent-form-group legend{color:#1d4ed8}html[data-theme="light"] .consent-group-help,html[data-theme="light"] .consent-form-group label small{color:#52647b}html[data-theme="light"] .child-details-group{border-color:#a5f3fc;background:#ecfeff}html[data-theme="light"] .child-details-group legend{color:#0e7490}

/* Social publishing demo: connect account + optional AI/upload image + rich result. */
.social-flow-demo .flow-connect{display:grid;gap:10px}
.social-flow-demo .flow-connect-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid rgba(147,197,253,.24);border-radius:16px;background:rgba(37,99,235,.08)}
.social-flow-demo .flow-connect-row.connected{border-color:rgba(74,222,128,.32);background:rgba(74,222,128,.08)}
.social-flow-demo .flow-connect-row span{font-size:14px;color:var(--muted)}
.social-flow-demo .flow-connect-row strong{color:#67e8f9}
.social-flow-demo .flow-connect-row .button{min-width:0;height:42px!important;min-height:42px!important;padding:0 20px!important;align-self:center}
.social-flow-demo .button.ghost{background:transparent;border:1px solid rgba(147,197,253,.4);color:#93c5fd!important;-webkit-text-fill-color:#93c5fd;box-shadow:none}
.social-flow-demo .flow-image{display:grid;gap:10px;margin:0;padding:16px;border:1px solid rgba(147,197,253,.2);border-radius:18px}
.social-flow-demo .flow-image legend{padding:0 9px;color:#93c5fd;font:700 15px 'Manrope';letter-spacing:.02em}
.social-flow-demo .flow-radio{display:flex;align-items:center;gap:8px;font-size:14px;text-transform:none;letter-spacing:0}
.social-flow-demo .flow-radio input{width:17px;height:17px}
.social-flow-demo .flow-radio.disabled{opacity:.5}
.social-flow-demo .flow-hint{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.social-flow-demo .flow-preview{display:block;width:100%;max-width:280px;margin:0 0 12px;border-radius:14px}
.social-flow-demo .flow-caption{margin:0 0 10px;white-space:pre-wrap;line-height:1.55}
.social-flow-demo .flow-status{margin:0;font-weight:600}
.social-flow-demo .flow-status a{color:#67e8f9;margin-left:4px}
html[data-theme="light"] .social-flow-demo .flow-connect-row span{color:#52647b}
html[data-theme="light"] .social-flow-demo .flow-connect-row strong{color:#0e7490}
html[data-theme="light"] .social-flow-demo .flow-image{border-color:#dbe4f2}
html[data-theme="light"] .social-flow-demo .flow-image legend,html[data-theme="light"] .social-flow-demo .button.ghost{color:#1d4ed8!important;-webkit-text-fill-color:#1d4ed8}
html[data-theme="light"] .social-flow-demo .flow-hint{color:#52647b}
.social-flow-demo .flow-onboarding{border:1px solid rgba(147,197,253,.24);border-radius:16px;padding:14px 16px;background:rgba(37,99,235,.06)}
.social-flow-demo .flow-onboarding summary{cursor:pointer;font-weight:700;color:#93c5fd;list-style:none}
.social-flow-demo .flow-onboarding summary::-webkit-details-marker{display:none}
.social-flow-demo .flow-onboarding summary:before{content:"▸ ";color:#67e8f9}
.social-flow-demo .flow-onboarding[open] summary:before{content:"▾ "}
.social-flow-demo .flow-onboarding-intro{margin:12px 0 14px;color:var(--muted);line-height:1.55}
.social-flow-demo .flow-steps{list-style:none;margin:0;padding:0;display:grid;gap:12px;counter-reset:step}
.social-flow-demo .flow-steps li{display:grid;grid-template-columns:30px 34px 1fr;align-items:start;gap:10px;padding:12px;border:1px solid rgba(147,197,253,.18);border-radius:14px;background:rgba(255,255,255,.03)}
.social-flow-demo .flow-steps li:before{counter-increment:step;content:counter(step);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#168cff,#3566f5);color:#fff;font-weight:700;font-size:14px}
.social-flow-demo .flow-step-ic{font-size:20px;line-height:1.3}
.social-flow-demo .flow-steps li strong{display:block;margin-bottom:3px}
.social-flow-demo .flow-steps li p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.social-flow-demo .flow-onboarding-links{margin:14px 0 0;font-size:14px}
.social-flow-demo .flow-onboarding-links a{color:#67e8f9}
html[data-theme="light"] .social-flow-demo .flow-onboarding{border-color:#dbe4f2;background:#f5f9ff}
html[data-theme="light"] .social-flow-demo .flow-onboarding summary{color:#1d4ed8}
html[data-theme="light"] .social-flow-demo .flow-onboarding-intro,html[data-theme="light"] .social-flow-demo .flow-steps li p{color:#52647b}
html[data-theme="light"] .social-flow-demo .flow-steps li{border-color:#e2e8f5;background:#fff}
html[data-theme="light"] .social-flow-demo .flow-onboarding-links a{color:#0e7490}
@media(max-width:520px){.social-flow-demo .flow-steps li{grid-template-columns:26px 1fr;gap:8px}.social-flow-demo .flow-step-ic{display:none}}
