@font-face{font-family:Calibri;src:local('Calibri');font-display:swap}
:root{--navy:#142b49;--yellow:#ffde00;--blue:#1859cc;--muted:#556277;--canvas:#f8f9fc;--subtle:#edf2f8;--shadow:0 4px 24px rgb(20 43 73 / 6%)}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--navy);font:17px/1.55 Calibri,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}a{color:var(--blue);text-underline-offset:4px}header{max-width:1160px;margin:auto;padding:25px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}header img{width:160px;height:48px;object-fit:contain}header>a:last-child{font-size:15px;text-decoration:none;color:var(--muted)}main{max-width:900px;margin:32px auto 0;padding:0 24px 32px}.intro{margin:0 0 32px}h1{font-size:40px;line-height:1.15;letter-spacing:-.7px;margin:0 0 14px;font-weight:700}.surface{background:white;padding:32px;border-radius:24px;box-shadow:var(--shadow);margin:20px 0}.link-row{display:flex;gap:12px;margin-top:9px}input,textarea,select{width:100%;min-height:50px;padding:12px 15px;color:var(--navy);background:var(--subtle);border:0;border-radius:12px;box-shadow:none}textarea{resize:vertical;min-height:90px}input[type=number]{font-variant-numeric:tabular-nums}label{display:block;font-weight:700;margin-bottom:8px}button{min-height:50px;padding:12px 22px;border:0;border-radius:12px;background:var(--yellow);color:var(--navy);font-weight:700;cursor:pointer;white-space:nowrap;transition:filter .15s,box-shadow .15s}button:hover{filter:brightness(.97);box-shadow:0 3px 14px #142b4910}button:disabled{opacity:.55;cursor:wait;box-shadow:none}button.quiet{background:transparent;color:var(--blue);padding-left:12px;padding-right:12px}button.secondary{background:var(--subtle);color:var(--navy)}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.hint{display:block;font-size:15px;color:var(--muted);margin:9px 0 0}.form-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:28px 0 20px}.form-name{font-size:23px;font-weight:700;line-height:1.3;margin:0}.form-heading .hint{margin-top:6px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:28px}.default-note{margin:24px 0 18px;color:var(--muted);font-size:16px}details{margin:20px 0 28px}summary{color:var(--blue);cursor:pointer;min-height:44px;padding:8px 0}details[open]>summary{margin-bottom:12px}.question{padding:18px 20px;background:var(--canvas);border-radius:16px;margin:12px 0}.question p{font-weight:700;margin:0 0 10px}.weights{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px}.weights label{font-size:14px;font-weight:400}.weights input{padding:8px 10px;min-height:44px;background:white}.question .hint{font-size:14px}.preview-lead{font-weight:700;margin:0 0 16px;font-size:19px}.table-wrap{overflow:auto;max-height:450px;margin:0 -8px;padding:0 8px}table{border-collapse:separate;border-spacing:0 5px;width:100%;min-width:500px;font-size:15px}th,td{text-align:left;padding:12px 14px;vertical-align:top}th{background:var(--subtle);font-weight:700}td{background:var(--canvas)}th:first-child,td:first-child{border-radius:10px 0 0 10px;max-width:340px;width:48%}th:last-child,td:last-child{border-radius:0 10px 10px 0}#ownership{background:#fff9d9;padding:20px;border-radius:16px;margin-top:26px}#ownership p{margin:0 0 16px}.code-row{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap}output{font-weight:700;letter-spacing:1px;font-size:19px;overflow-wrap:anywhere}#run-area{margin-top:24px}#run-area .hint{margin-bottom:16px}.progress-card{padding:36px}.count-display{display:flex;gap:14px;align-items:baseline;margin:28px 0 16px}.count-display strong{font-size:64px;line-height:1;font-weight:700;letter-spacing:-2px}.count-display span{font-size:22px;color:var(--muted)}progress{width:100%;height:12px;appearance:none;border:none;border-radius:99px;overflow:hidden;background:var(--subtle)}progress::-webkit-progress-bar{background:var(--subtle);border-radius:99px}progress::-webkit-progress-value{background:linear-gradient(90deg,#ffe75b,var(--yellow));border-radius:99px}progress::-moz-progress-bar{background:var(--yellow)}#job-state{font-size:21px;margin:20px 0 6px}#job-message{max-width:650px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:24px 0}.alert,#notice{background:#fff1e2;color:#7c3f17;padding:16px 20px;border-radius:14px;margin:18px 0}#notice.success{background:#e8f4eb;color:#235c38}footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;color:var(--muted);font-size:14px;margin-top:30px}footer span:first-child{font-weight:700}#recent{margin-top:24px}#recent p{font-size:15px;color:var(--muted);margin:0 0 8px}.recent-item{display:flex;text-align:left;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding:12px 15px;white-space:normal;background:var(--canvas);font-weight:400}.recent-item span{font-size:14px;color:var(--muted);margin-left:12px}[hidden]{display:none!important}@media(max-width:600px){header{padding:18px 20px}header img{width:136px;height:40px}main{margin-top:20px;padding:0 18px 28px}h1{font-size:32px;max-width:320px;letter-spacing:-.4px}.surface{padding:22px 20px;border-radius:20px}.link-row{flex-direction:column}.link-row button{width:100%}.fields{grid-template-columns:1fr;gap:22px}.form-name{font-size:21px}.form-heading{gap:8px}.form-heading button{padding:6px;min-height:44px}.form-heading>div{min-width:0;overflow-wrap:anywhere}.weights{grid-template-columns:repeat(2,minmax(0,1fr))}.question{padding:16px 14px}.code-row{gap:6px}output{font-size:17px}.progress-card{padding:26px 22px}.count-display strong{font-size:56px}.count-display span{font-size:20px}.actions{gap:8px}.actions button{padding:12px 15px}footer{font-size:13px;gap:8px 16px}#ownership>button{white-space:normal;width:100%}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.intelligence-setup{background:#f2f5fc;border-radius:18px;padding:20px;margin:22px 0}.switch-row{display:flex;align-items:center;gap:14px;cursor:pointer;margin:0}.switch-row>span:first-child{flex:1;font-size:19px}.switch-row input{position:absolute;width:1px;height:1px;opacity:0;min-height:0;padding:0}.switch-track{width:48px;height:28px;border-radius:30px;background:#a9b4c5;position:relative;flex:none}.switch-track:after{content:'';position:absolute;top:4px;left:4px;width:20px;height:20px;background:white;border-radius:50%;box-shadow:0 1px 4px #142b4920;transition:transform .15s}.switch-row input:checked+.switch-track{background:var(--yellow)}.switch-row input:checked+.switch-track:after{transform:translateX(20px);background:var(--navy)}.switch-row input:focus-visible+.switch-track{outline:3px solid var(--blue);outline-offset:3px}.switch-row input:disabled+.switch-track{opacity:.5}.intelligence-setup details{margin-bottom:0}.mapping-item{background:white;padding:16px;border-radius:14px;margin:12px 0}.mapping-item>p{font-size:15px;margin:0 0 12px}.mapping-fields{display:grid;grid-template-columns:minmax(100px,1fr) 1fr;gap:16px;align-items:center}.mapping-fields>label{font-size:14px;font-weight:400;margin:0}.mapping-fields input[type=text]{margin-top:6px;min-height:44px;padding:9px 12px}.check-label{display:flex;align-items:center;gap:8px}.check-label input{width:20px;height:20px;min-height:20px;padding:0;accent-color:var(--navy);flex:none}.intelligence-results{padding:20px;background:#f2f5fc;border-radius:18px;margin-bottom:24px}.intelligence-results>p:first-child{margin-top:0;font-weight:700}.intelligence-results .hint{margin-top:12px}.intelligence-results .actions{margin:16px 0 0}.intelligence-results button{white-space:normal}.intelligence-results .table-wrap{max-height:none}.intelligence-results table{min-width:480px}.intelligence-results th:first-child,.intelligence-results td:first-child{width:auto;max-width:none}.intelligence-results td{background:white}.intelligence-results details{margin-bottom:0}.intelligence-results .item-distribution{font-size:14px;margin:12px 0;padding:12px;background:white;border-radius:12px}.item-distribution p{margin:0 0 6px}.item-distribution span{color:var(--muted)}@media(max-width:600px){.intelligence-setup,.intelligence-results{padding:16px}.switch-row>span:first-child{font-size:18px}.mapping-fields{grid-template-columns:1fr}.mapping-item{padding:14px}.intelligence-results .actions{gap:6px}.intelligence-results .actions button{width:100%}}
/* Pro feedback is concentrated on the mode control and its actual results. */
.intelligence-setup{position:relative;isolation:isolate;overflow:hidden;transition:background-color .25s,box-shadow .3s,color .25s}.pro-heading{display:flex;align-items:center;gap:12px;min-width:0}.pro-mark{display:flex;align-items:flex-end;justify-content:center;gap:3px;width:38px;height:38px;flex:none;padding:9px;background:#dfe7f3;border-radius:11px}.pro-mark i{width:4px;display:block;transform-origin:bottom;background:#637995;border-radius:3px}.pro-mark i:nth-child(1){height:8px}.pro-mark i:nth-child(2){height:15px}.pro-mark i:nth-child(3){height:11px}.pro-mark i:nth-child(4){height:20px}.pro-state{font-size:12px;line-height:1.4;font-weight:700;padding:5px 9px;border-radius:8px;color:var(--muted);background:#e2e8f1;white-space:nowrap}.intelligence-setup.is-pro{color:white;background:radial-gradient(ellipse at 100% 0%,#3e526c 0,transparent 65%),#142b49;box-shadow:0 10px 28px #142b4926;animation:pro-activate .55s ease-out}.intelligence-setup.is-pro:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 30%,#ffde001c 48%,transparent 66%);transform:translateX(120%);animation:pro-sweep .8s ease-out}.is-pro .pro-mark{background:#ffde001c}.is-pro .pro-mark i{background:#ffde00;animation:pro-bars .6s ease-out both}.is-pro .pro-mark i:nth-child(2){animation-delay:.07s}.is-pro .pro-mark i:nth-child(3){animation-delay:.14s}.is-pro .pro-mark i:nth-child(4){animation-delay:.21s}.is-pro .pro-state{color:#ffeb71;background:#ffde001a}.is-pro>.hint,.is-pro #intelligence-summary,.is-pro #intelligence-mapping>.hint{color:#d6e0ec}.is-pro summary{color:#ffe873}.is-pro .mapping-item{color:var(--navy)}.is-pro .switch-track{box-shadow:0 0 16px #ffde0024}.is-pro .switch-row input:focus-visible+.switch-track,.is-pro summary:focus-visible{outline-color:#ffde00}.pro-groups{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}.pro-group{display:inline-flex;gap:12px;align-items:center;padding:8px 12px;border-radius:10px;background:#ffffff0f;font-size:14px;max-width:100%;overflow-wrap:anywhere}.pro-group strong{font-weight:700;color:#ffe873}.pro-group>span{color:#d6e0ec;white-space:nowrap}.is-pro #intelligence-summary{margin-top:16px}.is-pro #intelligence-mapping{margin-top:12px}.pro-action{background:var(--navy);color:#ffeb71;box-shadow:0 4px 12px #142b491a}.pro-action:hover{box-shadow:0 7px 18px #142b4925}.is-analyzing .pro-mark i{animation:pro-working .7s ease-in-out infinite alternate}.is-analyzing .pro-mark i:nth-child(2){animation-delay:.15s}.is-analyzing .pro-mark i:nth-child(3){animation-delay:.3s}.is-analyzing .pro-mark i:nth-child(4){animation-delay:.45s}.is-loading>span:last-child{display:inline-block;animation:pro-arrow .8s ease-in-out infinite alternate}.intelligence-results{background:linear-gradient(135deg,#fff9d9,#f6f7fb 65%);animation:pro-reveal .35s ease-out}.intelligence-results th{background:#142b49;color:white}.intelligence-results tbody tr{animation:pro-reveal .3s ease-out both}.intelligence-results tbody tr:nth-child(2){animation-delay:.04s}.intelligence-results tbody tr:nth-child(3){animation-delay:.08s}.intelligence-results tbody tr:nth-child(4){animation-delay:.12s}#job-intelligence{padding:18px 20px;margin-bottom:24px;background:#142b49;border-radius:16px}#job-intelligence .hint{color:#d6e0ec;margin-top:0}#job-intelligence button.quiet{color:#ffe873}#job-intelligence .actions{margin-bottom:0}@keyframes pro-activate{0%{box-shadow:0 0 0 #ffde0000}50%{box-shadow:0 8px 32px #bca10025}100%{box-shadow:0 10px 28px #142b4926}}@keyframes pro-sweep{from{transform:translateX(-110%)}to{transform:translateX(120%)}}@keyframes pro-bars{from{transform:scaleY(.25);opacity:.45}to{transform:scaleY(1);opacity:1}}@keyframes pro-working{from{transform:scaleY(.4)}to{transform:scaleY(1)}}@keyframes pro-arrow{from{transform:translateX(-3px)}to{transform:translateX(3px)}}@keyframes pro-reveal{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.switch-row{gap:10px}.pro-heading{gap:8px}.pro-mark{width:30px;height:34px;padding:7px 6px;gap:2px}.pro-heading>span:last-child{font-size:17px;line-height:1.25}.pro-state{font-size:11px;padding:4px 7px}.switch-track{width:44px;height:28px}.switch-row input:checked+.switch-track:after{transform:translateX(16px)}.pro-group{gap:8px;padding:7px 10px}.pro-action{max-width:100%;white-space:normal}}@media(prefers-reduced-motion:reduce){.intelligence-setup,.intelligence-setup:before,.pro-mark i,.intelligence-results,.intelligence-results tbody tr,.is-loading>span:last-child{animation:none!important;transition:none!important}.intelligence-setup:before{display:none}}
/* Compact mode, ambient motion and feedback tied to the real request. */
#intelligence-card{padding:18px 20px;margin:20px 0}#intelligence-card.is-pro{animation:none}#intelligence-card.is-pro:before{animation:pro-sweep 8s ease-in-out infinite}#intelligence-card.is-pro>.hint{display:none}.pro-state{display:none}#intelligence-card.is-analyzing .pro-state{display:inline-block}#intelligence-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}#intelligence-summary{flex:1;margin:10px 0 0!important;font-size:14px}#intelligence-card #intelligence-mapping{margin:8px 0 0}#intelligence-mapping>summary{padding:4px 0;min-height:32px;font-size:14px}#intelligence-mapping[open]{flex-basis:100%}#intelligence-mapping[open]>summary{margin-bottom:6px}#intelligence-mapping .pro-groups{margin:10px 0}#intelligence-card.is-pro .pro-mark i{animation:pro-ambient 1.8s ease-in-out infinite alternate}#intelligence-card.is-pro .pro-mark i:nth-child(2){animation-delay:-.6s}#intelligence-card.is-pro .pro-mark i:nth-child(3){animation-delay:-1.2s}#intelligence-card.is-pro .pro-mark i:nth-child(4){animation-delay:-.3s}#intelligence-card.is-analyzing .pro-mark i{animation-duration:.45s}.analysis-feedback{position:fixed;bottom:24px;right:24px;z-index:2000;display:flex;align-items:center;gap:14px;padding:16px 22px;max-width:calc(100vw - 32px);background:#142b49;color:white;border-radius:18px;box-shadow:0 12px 36px #142b4930;pointer-events:none;animation:pro-reveal .22s ease-out;font:17px/1.4 Calibri,Arial,sans-serif}.analysis-signal{display:flex;align-items:center;gap:3px;width:28px;height:28px;flex:none}.analysis-signal i{display:block;width:4px;height:20px;border-radius:3px;background:#ffde00;animation:pro-working .65s ease-in-out infinite alternate}.analysis-signal i:nth-child(2){animation-delay:-.3s}.analysis-signal i:nth-child(3){animation-delay:-.6s}.analysis-signal i:nth-child(4){animation-delay:-.15s}.analysis-feedback[data-phase=complete] .analysis-signal{display:block;position:relative;background:#ffde00;border-radius:50%}.analysis-feedback[data-phase=complete] .analysis-signal:after{content:'';position:absolute;left:8px;top:5px;width:7px;height:12px;transform:rotate(42deg);box-shadow:3px 3px 0 #142b49}.analysis-feedback[data-phase=complete] i,.analysis-feedback[data-phase=error] i{display:none}.analysis-feedback[data-phase=error] .analysis-signal:after{content:'!';display:grid;place-items:center;width:28px;height:28px;background:#ffde00;color:#142b49;border-radius:50%;font-weight:700}@keyframes pro-ambient{from{transform:scaleY(.55)}to{transform:scaleY(1)}}@media(max-width:600px){#intelligence-card{padding:16px}#intelligence-summary{font-size:13px}.analysis-feedback{bottom:max(16px,env(safe-area-inset-bottom));left:16px;right:auto;padding:14px 18px;font-size:16px}}@media(prefers-reduced-motion:reduce){#intelligence-card.is-pro:before,#intelligence-card.is-pro .pro-mark i,.analysis-feedback,.analysis-signal i{animation:none!important}}

.intro h1{margin-bottom:0}
.site-header{max-width:none;margin:0;padding:0;display:block;background:#fff;box-shadow:0 3px 20px rgb(25 35 50 / 5%)}.site-header-inner{max-width:1160px;min-height:82px;margin:auto;padding:12px 32px;display:flex;align-items:center;gap:26px}.site-brand{flex:0 0 auto}.site-brand img{display:block;width:138px;height:44px;object-fit:contain}.site-nav{display:flex;align-items:center;gap:3px;margin:auto;padding:5px;border-radius:999px;background:#f0f1ef}.site-nav a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 14px;border-radius:999px;color:var(--navy);font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap}.site-nav a:hover{background:#fff}.site-nav a[aria-current=page]{background:var(--yellow)}.site-nav svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}@media(max-width:700px){.site-header-inner{min-height:0;padding:14px 16px 12px;display:flex;flex-direction:column;align-items:stretch;gap:10px}.site-brand{align-self:flex-start}.site-brand img{width:128px;height:37px}.site-nav{width:100%;margin:0;gap:0;justify-content:space-between;padding:4px}.site-nav a{padding:9px 7px;font-size:14px;min-height:42px}.site-nav svg{display:none}}@media(max-width:360px){.site-nav a{font-size:13px;padding:9px 5px}}
.transfer-link{margin:16px 0 0;padding-left:0!important}.transfer-page{max-width:560px;margin:40px auto;padding:0 20px}.transfer-page h1{font-size:30px}.transfer-page .hint{margin:16px 0}.transfer-page button{white-space:normal}

#job-state.is-preparing::after{content:' • • •';color:#1859cc;display:inline-block;animation:prepare-pulse 1.2s ease-in-out infinite}@keyframes prepare-pulse{0%,100%{opacity:.3}50%{opacity:1}}@media(prefers-reduced-motion:reduce){#job-state.is-preparing::after{animation:none}}
