:root{color-scheme:dark;--bg:#101324;--surface:#1a1e34;--surface2:#202640;--line:#333956;--text:#f5f6ff;--muted:#aeb7d1;--purple:#a79aff;--mint:#68ddcd;--pink:#fc8cc0;--red:#ff8f9c;--shadow:0 20px 64px rgba(0,0,0,.21)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.6;min-height:100vh;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}[hidden]{display:none!important}.background-halo{position:absolute;border-radius:50%;filter:blur(80px);opacity:.25;pointer-events:none}.background-halo-a{width:480px;height:400px;top:-180px;left:-180px;background:#6362c9}.background-halo-b{width:440px;height:380px;top:220px;right:-210px;background:#267e81}.shell{max-width:1170px;margin:auto;padding:0 24px 50px;position:relative}.topbar{display:flex;justify-content:space-between;align-items:center;padding:29px 0 22px;border-bottom:1px solid rgba(255,255,255,.07)}.brand{display:flex;gap:12px;align-items:center}.brand-symbol{background:linear-gradient(145deg,#836bf2,#44afa9);display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:white;box-shadow:0 10px 30px rgba(92,90,230,.26)}.brand-name{font-size:19px;font-weight:850;letter-spacing:-.4px}.brand-subtitle{color:var(--muted);font-size:11px;direction:ltr;text-align:right}.privacy{font-size:12px;color:#92d6c9;display:flex;align-items:center;gap:7px;border:1px solid rgba(112,223,198,.18);background:rgba(38,147,120,.08);border-radius:100px;padding:8px 12px}.privacy-dot,.status-indicator{width:7px;height:7px;background:var(--mint);border-radius:50%;display:inline-block;flex-shrink:0}.hero{display:grid;grid-template-columns:1.25fr .75fr;align-items:center;min-height:365px;padding:28px 0 15px}.hero-copy{padding:24px 0}.eyebrow{color:#c6bdff;font-size:13px;display:inline-flex;gap:8px;align-items:center;letter-spacing:.2px}.eyebrow-dot{width:8px;height:8px;background:var(--purple);border-radius:50%;box-shadow:0 0 0 5px rgba(145,133,255,.1)}.hero h1{font-size:clamp(31px,4.6vw,53px);letter-spacing:-1.4px;line-height:1.3;margin:15px 0 16px;font-weight:900;max-width:690px}.hero h1 span{background:linear-gradient(110deg,#b9afff,#60d8c7);color:transparent;background-clip:text}.hero p{font-size:15px;color:#b8c2d8;line-height:1.9;max-width:620px}.hero-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.hero-chips span{font-size:12px;color:#c7d1ea;background:#1d243e;border:1px solid #343954;border-radius:40px;padding:6px 12px}.hero-art{height:315px;position:relative;display:grid;place-items:center}.art-ring{position:absolute;border:1px solid rgba(141,196,228,.13);border-radius:50%;width:275px;height:275px}.ring-two{width:330px;height:330px;border-style:dashed;opacity:.6}.face-art{width:245px;filter:drop-shadow(0 0 22px rgba(121,235,231,.25))}.art-float{position:absolute;border:1px solid #434a70;background:#202944;padding:6px 11px;border-radius:9px;font:700 12px/1.3 ui-monospace,monospace;direction:ltr;color:#a9d9d4}.art-float-one{top:60px;right:22px}.art-float-two{bottom:65px;left:7px}.workflow{background:rgba(29,34,57,.74);border:1px solid rgba(165,184,235,.12);border-radius:22px;padding:27px;margin:22px 0;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.kicker{color:var(--mint);font-size:12px;font-weight:700}.section-heading h2{font-size:23px;margin:3px 0 0;letter-spacing:-.5px}.state-pill,.small-tag{color:#bfb7ff;background:rgba(147,120,248,.13);border:1px solid #494168;border-radius:30px;font-size:11px;padding:6px 11px;white-space:nowrap}.small-tag{color:#a7dcd2;border-color:#365b5a;background:rgba(62,166,159,.08)}.workspace{display:grid;grid-template-columns:1.12fr .88fr;gap:22px}.stage{height:390px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 48%,#252d4c 0%,#151a2c 72%);border:1px dashed #414b6a;border-radius:16px}.stage-empty{color:#aab3cb;display:flex;align-items:center;flex-direction:column;text-align:center;gap:5px;font-size:13px;padding:20px}.stage-empty strong{font-size:16px;color:#e3e8ff}.stage-empty-icon{font-size:72px;line-height:1.1;color:#7471bb;font-weight:100;margin-bottom:8px}.stage video,.stage canvas{width:100%;height:100%;object-fit:contain}.stage video{transform:scaleX(-1)}.stage-busy{position:absolute;inset:0;background:rgba(8,13,30,.76);display:flex;justify-content:center;align-items:center;flex-direction:column;gap:12px;font-size:14px}.spinner{width:33px;height:33px;border:3px solid #47506b;border-top-color:var(--mint);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.capture-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.btn{min-height:42px;border:none;border-radius:11px;padding:10px 17px;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;transition:transform .2s,background .2s;color:white}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn.primary{background:linear-gradient(105deg,#746cf3,#4caea9);box-shadow:0 6px 22px rgba(104,89,227,.18)}.btn.secondary{background:#252b47;border:1px solid #414a67;color:#e1e5fa}.btn.ghost{background:transparent;border:1px solid #454660;color:#c5bddf}.view-options{display:flex;flex-wrap:wrap;gap:18px;margin-top:17px}.switch{display:flex;align-items:center;gap:7px;color:#b6bed2;font-size:12px}.switch input{accent-color:#a097ff;width:17px;height:17px}.notice{font-size:12px;line-height:1.8;color:#d3be98;background:#343020;border:1px solid #5a4d2b;padding:10px 13px;border-radius:11px;margin-top:16px}.notice.success{color:#97e3d7;background:#18372f;border-color:#31594d}.notice.error{color:#ffacb4;background:#40272d;border-color:#74434e}.metrics-panel,.result-panel{background:#171c30;border-radius:16px;border:1px solid #343b56;padding:19px}.panel-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.panel-heading h3,.result-panel h3{font-size:16px;margin:0}.small-muted{font-size:12px;color:var(--muted);line-height:1.8}.metrics-list{padding-top:5px}.metric{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:14px 0;border-bottom:1px solid #2c344d;font-size:12px;color:#b5bfd8}.metric strong{color:#fff;white-space:nowrap;direction:ltr;font-size:16px;font-variant-numeric:tabular-nums}.metrics-footer{display:flex;align-items:center;gap:8px;margin-top:18px;color:#aeb9d2;font-size:12px}.status-indicator{background:#6c738c}.status-indicator.ok{background:var(--mint)}.section-lead{font-size:13px;color:#b9c0d2;line-height:1.9;margin:-5px 0 22px}.sign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.sign-card{background:#181d33;border:1px solid #383e5e;border-radius:15px;padding:15px}.sign-head{display:flex;align-items:center;justify-content:space-between;gap:7px}.sign-head h3{font-size:14px;margin:0}.sign-head span{font-size:11px;color:#aaa6e5;background:#292745;border-radius:30px;padding:3px 8px}.sign-hint{font-size:11px;line-height:1.7;color:#a0aac4;min-height:38px;margin:8px 0 14px}.toggle-sign{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.toggle-sign button{background:#222942;border:1px solid #3d4665;border-radius:9px;color:#c1c9df;padding:8px 0;font:700 17px/1.2 system-ui}.toggle-sign button.active.plus{background:#1f554d;border-color:#52c8b5;color:#8cffe7}.toggle-sign button.active.minus{background:#543449;border-color:#e29cbe;color:#ffd2e9}.toggle-sign button.active.unknown{background:#49416b;border-color:#aba1f3;color:white}.hint{display:flex;gap:10px;background:#253046;border:1px solid #384760;border-radius:12px;color:#c4cde1;font-size:12px;line-height:1.9;padding:12px 15px;margin-top:17px}.hint-icon{font-size:17px;color:#a2d3f4}.incomplete{background:#181c30;border:1px dashed #424b66;border-radius:16px;text-align:center;padding:40px 15px}.incomplete-visual{font:900 38px/1.2 monospace;direction:ltr;color:#b6acf4}.incomplete h3{font-size:17px;margin:12px 0 4px}.incomplete p{color:#aeb7cf;font-size:13px}.report-top{display:grid;grid-template-columns:1.35fr .65fr;gap:14px;margin-bottom:14px}.report-main,.report-key{border:1px solid #3a4163;background:linear-gradient(120deg,#232847,#192a3b);padding:20px;border-radius:16px}.report-eyebrow,.report-key div{font-size:12px;color:#b3bdda}.code-signs{display:flex;gap:9px;direction:ltr;justify-content:flex-end;margin:14px 0}.symbol-chip{font:900 25px/1.2 monospace;min-width:43px;border:1px solid #545a83;text-align:center;border-radius:10px;padding:10px;background:#20243d}.symbol-chip.pos{color:#72e7d2}.symbol-chip.neg{color:#ffc4de}.report-key{display:flex;flex-direction:column;justify-content:center;gap:8px}.report-key strong{font-size:20px;color:#82e2d4}.report-key span{font-size:12px;color:#c3c8e0}.key-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:15px}.key-card{border:1px solid #363e5c;background:#181e34;padding:16px;border-radius:14px}.key-card label{display:block;font-size:12px;color:#afb8d1}.key-card strong{font-size:20px;margin:8px 0;display:block}.key-card small{font-size:11px;color:#9da8c5}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.result-panel h3{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap}.codes-table{display:flex;flex-direction:column;gap:0;margin-top:12px}.code-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #2e3550;font-size:12px;gap:8px}.code-row:last-child{border-bottom:0}.code-row code{direction:ltr;font:700 14px/1.1 monospace;letter-spacing:2px;color:#bdb0ff}.report-note{border-right:3px solid #83b9c1;background:#203040;border-radius:8px;padding:13px 16px;font-size:12px;line-height:1.9;color:#ccd6e9;margin-top:16px}.report-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.footer{text-align:center;color:#8f9bb8;font-size:11px;line-height:1.9;padding:18px 0}.signs-section,.results-section{scroll-margin-top:20px}@media(max-width:820px){.hero{grid-template-columns:1fr;min-height:auto;padding:24px 0}.hero-art{height:210px;order:-1}.hero-art .face-art{width:180px}.art-ring{width:200px;height:200px}.ring-two{width:235px;height:235px}.art-float-one{top:15px;right:18%}.art-float-two{bottom:16px;left:16%}.workspace{grid-template-columns:1fr}.sign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.result-grid{grid-template-columns:1fr}.hero h1{font-size:36px}.topbar{padding-top:18px}}@media(max-width:510px){.shell{padding:0 13px 26px}.topbar{align-items:flex-start;gap:10px}.brand-name{font-size:16px}.brand-symbol{width:39px;height:39px}.privacy{max-width:120px;padding:6px 9px;font-size:10px;line-height:1.3}.hero-art{height:176px}.hero-art .face-art{width:150px}.art-ring{width:167px;height:167px}.ring-two{width:200px;height:200px}.art-float{font-size:10px}.hero h1{font-size:31px}.hero p{font-size:13px}.hero-chips span{font-size:11px}.workflow{padding:17px 13px;border-radius:17px}.section-heading h2{font-size:19px}.stage{height:300px}.sign-grid{gap:8px}.sign-card{padding:11px}.sign-hint{font-size:10px;min-height:52px}.sign-head h3{font-size:12px}.sign-head span{font-size:10px}.report-top{grid-template-columns:1fr}.key-grid{gap:8px}.key-card{padding:11px}.key-card strong{font-size:16px}.symbol-chip{min-width:35px;font-size:21px;padding:9px}.capture-actions .btn{flex:1 1 130px}.view-options{gap:10px}.report-actions .btn{flex:1 1 130px}}@media print{body{background:white;color:black}.topbar,.hero,.capture-panel,.signs-section,.footer,.report-actions,.background-halo,.incomplete{display:none!important}.shell{max-width:none;padding:0}.workflow{background:white;box-shadow:none;border:none;color:black;margin:0;padding:0}.results-section{display:block!important}.report-main,.report-key,.key-card,.result-panel{background:white;color:black;border-color:#bbb}.key-card strong,.report-key strong,.code-row code{color:black}.small-muted,.key-card label,.key-card small,.code-row,.report-note{color:#333}.result-panel h3,.section-heading h2{color:black}}

.temperament-insight{border:1px solid #42486a;background:#21263d;padding:13px 16px;font-size:12px;line-height:1.9;color:#c4cee5;border-radius:12px;margin-bottom:15px}.code-info{display:flex;flex-direction:column;line-height:1.5}.code-info small{color:#8493b4;font-size:10px;margin-top:4px}@media print{.temperament-insight{color:#222;background:white}.code-info small{color:#555}}

.sample-action{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:-4px 0 17px}.sample-action span{font-size:12px;color:var(--muted)}

/* مشاركة رابط البرنامج */
.hero-share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.hero-share-actions .btn{font-size:14px}
@media(max-width:560px){.hero-share-actions{flex-direction:column}.hero-share-actions .btn{width:100%;text-align:center}}

.consent-row{display:flex;align-items:flex-start;gap:10px;line-height:1.7;text-align:right;background:rgba(255,255,255,.06);padding:12px 14px;border:1px solid rgba(255,255,255,.15);border-radius:12px;font-size:12px;color:#dadde9;margin-top:12px}
.consent-row input{width:18px;height:18px;flex-shrink:0;margin-top:4px;accent-color:#63d8cf}
