:root{color-scheme:dark;--bg:#080b16;--surface:#101626;--surface2:#151d30;--glass:rgba(18,26,44,.80);--border:rgba(185,202,253,.12);--text:#f1f4ff;--muted:#a0adc8;--sky:#6eddf7;--blue:#8198ff;--pink:#dc99ff;--green:#8de0b3;--amber:#ffc587;--radius:20px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:radial-gradient(ellipse 60% 42% at 12% 0%,#21224d 0%,transparent 90%),radial-gradient(ellipse 50% 32% at 97% 12%,#133343 0%,transparent 90%),var(--bg);-webkit-font-smoothing:antialiased;line-height:1.55}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button:disabled{cursor:default}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid var(--sky);outline-offset:4px}::selection{background:#6eddf7;color:#050b16}.wrap{width:min(1200px,calc(100% - 44px));margin:auto}.top{z-index:20;position:sticky;top:0;background:rgba(8,11,22,.86);backdrop-filter:blur(20px);border-bottom:1px solid var(--border)}.top-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-weight:860;letter-spacing:.025em;font-size:16px}.logo{display:grid;grid-template-columns:1fr 1fr;gap:3px;width:39px;height:39px;transform:rotate(-7deg);border-radius:12px;padding:7px;background:linear-gradient(135deg,#a5b9ff,#87e9f0);box-shadow:0 8px 32px #6b91ff43}.logo i{border-radius:3px;background:#091225;opacity:.9}.logo i:nth-child(2){opacity:.63}.logo i:nth-child(3){opacity:.55}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:650;letter-spacing:.19em}.nav{display:flex;align-items:center;gap:27px;color:#b8c4de;font-size:13px;font-weight:700}.nav a:hover,.foot a:hover{color:white}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;border-radius:11px;padding:10px 18px;font-size:13px;font-weight:800;border:1px solid var(--border);background:#1d2842;color:var(--text);transition:background .15s,transform .15s;white-space:nowrap}.btn:hover:not(:disabled){background:#2b3857;transform:translateY(-2px)}.btn.primary{color:#07121c;border-color:transparent;background:linear-gradient(110deg,#8ceefa,#a3afff 55%,#dcb5ff);box-shadow:0 10px 35px #798ffb2e}.btn.primary:hover{background:linear-gradient(110deg,#b0f4fa,#b6bdff 55%,#f0c5ff)}.btn.ghost{background:transparent}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;color:#b8e7f5;border:1px solid #6feaff30;border-radius:999px;background:#8ce2ed0d;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:790}.dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 13px var(--green)}.hero{padding:104px 0 88px;position:relative;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:60px}.hero h1{font-size:clamp(40px,5.3vw,76px);letter-spacing:-.065em;line-height:1.05;margin:23px 0 23px;max-width:790px;font-weight:850}.gradient{background:linear-gradient(95deg,#84eaf3 0%,#b2b5ff 56%,#e4aafa 100%);background-clip:text;-webkit-background-clip:text;color:transparent}.lead{color:#b9c7df;font-size:17px;line-height:1.7;max-width:570px;margin:0 0 31px}.actions{display:flex;gap:11px;align-items:center;flex-wrap:wrap}.hero-hint{margin-top:21px;color:#8493ad;font-size:12px}.mock{position:relative;background:linear-gradient(135deg,#1c2945,#0b1223 72%);border:1px solid #c4d6ff30;border-radius:24px;padding:16px;box-shadow:0 38px 100px #04070f9c,0 0 0 8px #ffffff06;transform:rotate(1.4deg)}.mock-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff15;padding:3px 4px 13px;font-size:12px;color:#aebdd9}.signal{display:flex;align-items:center;gap:7px;color:var(--green);font-size:11px;font-weight:700}.mock-art{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;min-height:225px;margin-top:16px}.scene{position:relative;min-width:0;border-radius:13px;overflow:hidden;background:linear-gradient(145deg,#4b426f,#201c3b 50%,#ae7e62);box-shadow:inset 0 -80px 60px #10132399}.scene:nth-child(2){background:linear-gradient(145deg,#3a6782,#154454 52%,#896e91)}.scene:nth-child(3){background:linear-gradient(145deg,#76507d,#48406b 55%,#c2906a)}.scene:nth-child(4){background:linear-gradient(145deg,#304b7a,#45366d 55%,#b68c6b)}.scene:before{content:"";position:absolute;width:160%;height:55%;border:1px solid #ffffff3d;border-radius:50%;top:25%;left:-30%;transform:rotate(-16deg)}.scene:after{content:"";position:absolute;left:-25%;right:-25%;bottom:-25%;height:61%;background:linear-gradient(135deg,transparent 20%,#19152d 22% 46%,transparent 47%),linear-gradient(40deg,transparent 25%,#15172f 26% 52%,transparent 53%);opacity:.85}.scene span{position:absolute;z-index:1;top:10px;left:10px;color:white;font-size:10px;letter-spacing:.12em;font-weight:800}.mock-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 2px 3px;font-size:12px}.wave{display:flex;align-items:center;gap:3px;height:25px}.wave i{display:block;width:3px;border-radius:2px;background:var(--sky);height:10px}.wave i:nth-child(2n){height:18px}.wave i:nth-child(3n){height:7px}.wave i:nth-child(5n){height:24px}.muted{color:var(--muted)}.section{padding:65px 0}.section-title{font-size:clamp(29px,3vw,44px);letter-spacing:-.045em;line-height:1.15;margin:8px 0 14px}.section-lead{color:var(--muted);max-width:650px;font-size:15px;margin:0 0 28px}.features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.panel{background:linear-gradient(150deg,#192139d9,#101725ed);border:1px solid var(--border);border-radius:var(--radius);padding:22px}.panel strong{font-size:17px;display:block;margin:16px 0 8px}.panel p{font-size:13px;color:var(--muted);line-height:1.65;margin:0}.feature-icon{display:grid;place-items:center;width:43px;height:43px;border:1px solid #a8bafe3b;border-radius:12px;background:#859cf019;font-size:21px}.pipeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.step{border:1px solid var(--border);border-radius:14px;padding:17px 14px;background:#111829}.step .num{color:var(--sky);font-size:12px;font-weight:800}.step h3{font-size:15px;margin:9px 0 5px}.step p{font-size:12px;color:var(--muted);margin:0}.split{display:grid;grid-template-columns:1fr .85fr;gap:20px;align-items:stretch}.platform{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:14px 0;border-bottom:1px solid #ffffff13}.platform:last-child{border-bottom:0}.platform b{font-size:14px}.platform span{font-size:12px;color:var(--muted)}.platform .light{width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:8px;display:inline-block}.platform .light.warn{background:var(--amber)}.tag{display:inline-block;padding:6px 10px;border-radius:8px;border:1px solid #bdcdff25;background:#c9d1ff0b;color:#c6d3f0;font-size:11px;font-weight:720}.cta-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(105deg,#1c2950,#18293b);border:1px solid #7eaef452;border-radius:20px;padding:32px;margin:36px 0 50px}.cta-panel h2{font-size:26px;margin:0 0 8px;letter-spacing:-.03em}.cta-panel p{color:var(--muted);font-size:14px;margin:0}.foot{border-top:1px solid var(--border);padding:28px 0 37px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;color:var(--muted);font-size:12px}.footlinks{display:flex;gap:24px;flex-wrap:wrap}.footlinks a:hover{color:var(--sky)}.legal{max-width:850px;margin:60px auto 95px}.legal h1{font-size:clamp(34px,4vw,55px);line-height:1.12;letter-spacing:-.05em;margin:14px 0 23px}.legal h2{font-size:21px;margin:36px 0 10px}.legal p,.legal li{font-size:14px;color:#b7c4dd;line-height:1.8}.legal ul{padding-left:20px}.legal a:not(.btn){color:var(--sky);text-decoration:underline}.legal .note{color:var(--muted);font-size:12px}.console-head{padding:54px 0 23px;display:flex;justify-content:space-between;gap:25px;align-items:flex-end}.console-head h1{font-size:clamp(32px,4vw,49px);letter-spacing:-.05em;line-height:1.13;margin:13px 0}.console-head p{margin:0;color:var(--muted);font-size:13px}.console-status{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #9fefc63d;background:#85daa515;border-radius:999px;color:#a4f2cc;font-size:11px;font-weight:800}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.stat{background:linear-gradient(160deg,#19223a,#111727);border:1px solid var(--border);border-radius:16px;padding:19px}.stat .label{font-size:12px;color:var(--muted)}.stat .value{display:block;font-weight:840;font-size:33px;letter-spacing:-.04em;margin-top:7px}.stat .small{font-size:11px;color:#8093b2}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,.75fr);gap:18px}.report-board{min-width:0}.board-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:19px}.board-heading h2{font-size:20px;letter-spacing:-.03em;margin:0}.filterset{display:flex;flex-wrap:wrap;gap:7px}.filter{background:#1e2741;border:1px solid #ffffff13;border-radius:9px;padding:7px 10px;font-size:11px;font-weight:760;color:#aab9d5}.filter[aria-pressed="true"]{background:#526aa8;color:white;border-color:#738aff}.report-list{display:grid;gap:10px}.report{padding:18px;border:1px solid #ffffff15;background:#111a2b;border-radius:14px}.report-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.report h3{font-size:15px;line-height:1.4;margin:0 0 6px}.report .meta{font-size:11px;color:#96a7c7}.statuslist{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.pill{font-size:11px;font-weight:750;padding:5px 9px;border-radius:7px;border:1px solid #92a1cd3b;background:#7f95b914;color:#b8c9e9}.pill.success{border-color:#8ce6b444;background:#3bab7923;color:#98e8b7}.pill.warn{border-color:#f6c68935;background:#c58d4021;color:#ffcf9c}.pill.off{border-color:#8d96b133;color:#8998b3;background:#8490ae0a}.report a{color:var(--sky);font-weight:740;text-decoration:underline;text-underline-offset:3px;font-size:11px}.report-links{display:flex;gap:13px;flex-wrap:wrap;margin-top:11px}.command-list{display:grid;gap:11px}.command{display:block;padding:15px 17px;border:1px solid #9eaedf22;background:#10182b;border-radius:12px;transition:.15s}.command:hover{border-color:#96d7fc76;transform:translateY(-1px)}.command b{font-size:13px}.command span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.notice{padding:15px;border-radius:12px;border:1px solid #fbc6873d;background:#d7a25411;color:#e6caa6;font-size:12px}.loading{padding:32px;color:#a9b8d3;font-size:13px;text-align:center;border:1px dashed #8da2ce3d;border-radius:12px}.danger{color:#ffc3ad}.table-wrap{overflow-x:auto}.pub-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.pub-table th{font-size:11px;color:#8fa4c8;text-transform:uppercase;letter-spacing:.08em;padding:12px 8px;border-bottom:1px solid #ffffff1c}.pub-table td{padding:13px 8px;border-bottom:1px solid #ffffff0d;color:#bbc9e0;white-space:nowrap}.pub-table td:first-child{max-width:230px;overflow:hidden;text-overflow:ellipsis}.section-dark{padding-top:24px}.last{color:#8d9cbb;font-size:11px}@media(max-width:940px){.hero-grid{grid-template-columns:1fr;gap:45px}.hero{padding:66px 0}.mock{max-width:650px}.features{grid-template-columns:repeat(2,1fr)}.pipeline{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.wrap{width:min(100% - 30px,1200px)}.top-inner{min-height:67px;flex-wrap:wrap;padding:11px 0}.brand{font-size:13px}.nav{gap:13px;font-size:11px}.nav .hide-small{display:none}.btn{font-size:12px;padding:10px 13px}.hero h1{font-size:43px}.lead{font-size:15px}.hero{padding:54px 0}.mock{padding:12px}.mock-art{min-height:170px}.section{padding:42px 0}.features{grid-template-columns:1fr}.pipeline{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.cta-panel{flex-direction:column;align-items:flex-start;padding:23px}.console-head{flex-direction:column;align-items:flex-start;padding-top:36px}.stats{gap:8px}.stat{padding:14px}.stat .value{font-size:27px}.panel{padding:17px}.board-heading{align-items:flex-start;flex-direction:column}.legal{margin:35px auto 80px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
/* Manual-run controls and connector directory */
.header-nav{gap:14px;flex-wrap:wrap;justify-content:flex-end}
.header-nav a:not(.btn){font-weight:680;white-space:nowrap}
.header-nav a[aria-current="page"]{color:var(--sky)}
.production-control{margin-bottom:21px;padding:25px 28px}
.control-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.control-title h2{font-size:clamp(22px,2.4vw,29px);letter-spacing:-.045em;line-height:1.2;margin:12px 0 9px}
.control-title p{font-size:13px;color:var(--muted);max-width:700px;margin:0 0 24px}
.control-title>.tag{margin-top:10px}
.manual-label{display:block;font-size:13px;font-weight:780;margin-bottom:10px}
.manual-start-form{margin-bottom:17px}
.start-controls{display:flex;align-items:stretch;gap:10px;max-width:900px}
.start-controls input{flex:1;min-width:0;color:var(--text);background:#080f20;border:1px solid #9cb8ff42;border-radius:12px;min-height:49px;padding:11px 16px;font-size:14px;outline:none}
.start-controls input:focus{border-color:var(--sky);box-shadow:0 0 0 3px #6eddf729}
.start-controls input::placeholder{color:#7b89a7}
.start-button{min-width:126px;font-size:14px}
.control-hint{font-size:12px;color:var(--muted);margin:10px 0 0;max-width:900px}
.manual-feedback{font-size:13px;min-height:18px;font-weight:710;margin:8px 0 0}
.manual-feedback[data-kind="error"]{color:#ffb9a9}.manual-feedback[data-kind="warning"]{color:#ffd49a}.manual-feedback[data-kind="success"]{color:#9decc3}
#production-stop{margin:12px 0 18px}
#production-stop[hidden]{display:none}
.queue-head{border-top:1px solid var(--border);padding:18px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.queue-head h3{font-size:14px;margin:0;font-weight:800}
.manual-queue{display:grid;gap:9px}
.job-row{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;border:1px solid #9db3ef22;border-radius:12px;padding:12px 14px;background:#0c1426}
.job-topic{font-weight:780;font-size:13px;overflow-wrap:anywhere}
.job-info{margin:1px 0 0;color:#acc0dd;font-size:11px;flex-basis:100%}
.connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.connection-grid .panel{scroll-margin-top:95px}
.connection-grid h2{font-size:22px;letter-spacing:-.04em;margin:6px 0 11px}
.connection-grid p{margin:0 0 21px}
.connection-grid .actions{align-items:stretch}
.connection-grid .actions .btn{flex:1}
@media(max-width:900px){.connection-grid{grid-template-columns:1fr}.control-title{flex-wrap:wrap}}
@media(max-width:650px){.header-nav{gap:8px;justify-content:space-between;width:100%}.header-nav a:not(.btn){font-size:10px}.header-nav .btn{min-height:33px;padding:6px 9px}.start-controls{flex-direction:column}.start-button{width:100%}.production-control{padding:18px}.control-title>.tag{margin-top:0}.job-row{align-items:flex-start}}


/* Status-only social connections: last confirmed delivery and live TikTok API. */
.platform-health-panel{padding:20px}
.platform-health-list{display:grid;gap:10px}
.health-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
 min-height:76px;border-radius:13px;padding:13px 12px;background:#10192c;
 border:1px solid rgba(159,180,245,.16);transition:background .18s,border-color .18s}
.health-row:hover{background:#1b2943;border-color:#9cbaff72}
.health-row:focus-visible{outline:2px solid var(--sky);outline-offset:2px}
.health-label{min-width:0;display:flex;flex-direction:column;gap:5px;flex:1}
.health-name{font-size:14px;font-weight:800;white-space:nowrap}
.health-desc{color:#a8b6d0;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.platform-state{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;border-radius:999px;
 font-size:11px;font-weight:900;letter-spacing:.035em;padding:8px 10px;
 border:1px solid #8899bb54;background:#75839a18;color:#bac7db;min-width:93px;justify-content:center}
.status-dot{width:8px;height:8px;border-radius:50%;display:block;background:currentColor}
.platform-state.online{color:#78edaa;background:#27774329;border-color:#54dc9359;text-shadow:0 0 9px #59ef9b78}
.platform-state.offline{color:#ff8d91;background:#a3333b2a;border-color:#ed737b62;text-shadow:0 0 8px #ff797467}
.platform-state.online .status-dot{box-shadow:0 0 7px #41f99e,0 0 15px #37e9889f;animation:aicf-health-glow 2.4s ease-in-out infinite}
.platform-state.offline .status-dot{box-shadow:0 0 7px #fc5050,0 0 14px #e64242a8;animation:aicf-health-glow 2.4s ease-in-out infinite}
.platform-state.checking .status-dot{background:#abb9d1;box-shadow:0 0 7px #94a0c4}
.health-note{font-size:11px;line-height:1.55;margin:14px 1px 0;color:#8d9fbe}
@keyframes aicf-health-glow{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.48;transform:scale(.82)}}
@media(max-width:600px){.platform-health-panel{padding:15px}.health-row{min-height:70px;padding:11px 9px}.platform-state{padding:6px 8px;min-width:86px}.health-name{font-size:13px}.health-desc{font-size:10px}}
@media(prefers-reduced-motion:reduce){.platform-state.online .status-dot,.platform-state.offline .status-dot{animation:none}}

/* Multi-tenant account, onboarding and purchase areas */
.auth-main{min-height:calc(100vh - 160px);display:flex;justify-content:center;align-items:center;padding:55px 0}
.auth-card{max-width:560px;width:100%;padding:36px}
.auth-card h1{font-size:clamp(30px,5vw,45px);margin:14px 0;letter-spacing:-.05em}
.auth-card p{color:var(--muted);line-height:1.65}
.auth-card .notice{margin:24px 0;color:#d7e6f5}
.tg-signin-slot{min-height:80px;padding:16px;border-radius:12px;border:1px solid #7fb3dd30;display:flex;align-items:center;justify-content:center}
.auth-message{font-size:12px;color:var(--amber);min-height:20px}
.auth-bottom{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--sky);font-weight:700}
.account-stats{margin-bottom:22px}
.plans-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.price-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:10px}
.price-card .price-count{font-size:22px;letter-spacing:-.03em;margin:0}
.price-card .price-stars{font-size:32px;font-weight:850;letter-spacing:-.04em;color:var(--sky)}
.price-card p{font-size:13px;color:var(--muted);margin:2px 0 13px}
.price-actions{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:auto}
.price-actions button{width:100%}
.price-actions button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.price-card small{font-size:11px;color:#a6b4d0;line-height:1.45}
.account-line{display:flex;flex-wrap:wrap;gap:7px;padding:14px 13px;border:1px solid #8cabe72c;background:#0d162a;border-radius:11px;font-size:13px}
.account-line strong{display:block;width:100%;font-size:14px}
.account-line .last{display:block}
.connection-grid{margin-bottom:32px}
.legal b{color:var(--text)}
@media(max-width:1000px){.plans-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.auth-card{padding:23px}.plans-grid{grid-template-columns:1fr}.price-card .price-stars{font-size:28px}}
