:root{--bg:snow;--surface:#fff;--surface-soft:#fff3f5;--text:#161316;--muted:#6f686d;--line:#eadde2;--line-strong:#e7c6d0;--rose:#f43f75;--coral:#fb7a58;--green:#20a66a;--green-soft:#e6f7ed;--shadow:0 20px 70px #301e2614;--radius:8px}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);letter-spacing:0;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input{font:inherit;letter-spacing:0}button{border:0}img{max-width:100%;display:block}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.app-shell{background:linear-gradient(180deg, #fffc, #fffafaf2), var(--bg);min-height:100vh}.topbar{z-index:10;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffe0;justify-content:space-between;align-items:center;gap:24px;min-height:72px;padding:14px 28px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;font-size:29px;font-weight:800;display:inline-flex}.brand svg{width:28px;height:28px;color:var(--rose);stroke-width:1.8px}.brand span span,.report-card-header strong span{color:var(--rose)}.topbar-actions,.report-actions,.download-actions{align-items:center;gap:12px;display:flex}.avatar{width:38px;height:38px;color:var(--rose);background:#ffe3ea;border-radius:999px;place-items:center;font-size:13px;font-weight:800;display:grid}.workspace{grid-template-columns:minmax(340px,500px) minmax(0,1fr);gap:34px;width:min(1500px,100% - 64px);margin:0 auto;padding:28px 0 42px;display:grid}.upload-panel,.report-panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:#ffffffdb}.upload-panel{flex-direction:column;align-self:start;gap:14px;padding:22px;display:flex}.report-panel{min-width:0;padding:22px 26px 18px}.panel-title,.report-panel-header,.report-card-header,.progress-head,.confidence-item>div,.recommendations-title,.report-footer,.palette-strip,.progress-step{align-items:center;display:flex}.panel-title,.report-panel-header{justify-content:space-between;gap:18px}.step-label{margin:0;font-size:18px;font-weight:800}.subtle{color:var(--muted);margin:6px 0 0;font-size:14px;line-height:1.45}.dropzone{text-align:center;border-radius:var(--radius);cursor:pointer;background:linear-gradient(135deg,#fff9fa,#fff1f5);border:1px dashed #efb9c8;place-items:center;min-height:216px;padding:28px;display:grid}.dropzone svg{width:38px;height:38px;color:var(--rose);stroke-width:1.8px;margin-bottom:12px}.dropzone strong{font-size:15px}.dropzone span,.dropzone small{color:var(--muted)}.dropzone span{margin:9px 0;font-size:13px}.dropzone small{margin-top:11px;font-size:12px}.primary-button,.secondary-button,.ghost-button,.icon-button{cursor:pointer;border-radius:7px;justify-content:center;align-items:center;gap:9px;min-height:38px;font-size:14px;font-weight:700;transition:transform .16s,border-color .16s,background .16s,opacity .16s;display:inline-flex}.primary-button{color:#fff;background:linear-gradient(135deg, var(--rose), #ed2e67);box-shadow:0 12px 26px #f43f7538}.primary-button.compact{min-width:144px;padding:0 18px}.primary-button.full{width:100%;min-height:46px}.secondary-button,.ghost-button,.icon-button{color:var(--text);border:1px solid var(--line);background:#fff}.secondary-button{padding:0 20px}.ghost-button{padding:0 14px}.icon-button{width:38px;padding:0}.primary-button:hover:not(:disabled),.secondary-button:hover:not(:disabled),.ghost-button:hover:not(:disabled),.icon-button:hover:not(:disabled){transform:translateY(-1px)}.secondary-button:hover:not(:disabled),.ghost-button:hover:not(:disabled),.icon-button:hover:not(:disabled){border-color:var(--line-strong);background:#fff8fa}button:disabled{cursor:not-allowed;opacity:.55}.primary-button svg,.secondary-button svg,.ghost-button svg,.icon-button svg{stroke-width:2px;width:17px;height:17px}.file-row{border:1px solid var(--line);border-radius:var(--radius);background:#fff;grid-template-columns:92px 1fr auto;align-items:center;gap:14px;min-height:104px;padding:10px;display:grid}.file-row img,.empty-thumb{border-radius:7px;width:92px;height:82px}.file-row img{object-fit:cover}.file-row strong,.file-row span{display:block}.file-row strong{overflow-wrap:anywhere;font-size:14px}.file-row span{color:var(--muted);margin-top:8px;font-size:13px}.empty-thumb{background:var(--surface-soft);color:var(--rose);place-items:center;display:grid}.empty-thumb svg{width:26px;height:26px}.success-icon{width:20px;height:20px;color:var(--green)}.privacy-row,.error-row,.toast-row{border-radius:var(--radius);align-items:flex-start;gap:12px;padding:14px;font-size:14px;line-height:1.45;display:flex}.privacy-row{color:#21563b;background:#f4fff8;border:1px solid #cdeedc}.error-row{color:#9d1238;background:#fff1f2;border:1px solid #ffc7d1}.toast-row{color:#17633f;background:#f0fff6;border:1px solid #bee8d0}.privacy-row svg,.error-row svg,.toast-row svg{flex:none;width:24px;height:24px}.privacy-row p{margin:0}.progress-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden}.progress-head{background:linear-gradient(135deg,#fff7f9,#fff);gap:12px;padding:14px}.progress-head>div:nth-child(2){flex:1;min-width:0}.progress-head strong,.progress-head span{display:block}.progress-head strong{font-size:14px}.progress-head span{color:var(--muted);margin-top:4px;font-size:12px;line-height:1.35}.progress-head b{color:var(--rose);font-size:13px}.ring{background:radial-gradient(circle at center, #fff 58%, transparent 60%), conic-gradient(var(--rose) var(--progress-angle), #f7c9d5 0);width:42px;height:42px;color:var(--rose);border-radius:999px;place-items:center;display:grid}.ring svg{width:19px;height:19px}.progress-track{background:#f8d8e1;border-radius:999px;height:7px;margin:0 14px 8px;overflow:hidden}.progress-track span{background:linear-gradient(90deg, var(--rose), var(--coral));border-radius:inherit;height:100%;transition:width .24s;display:block}.progress-step{border-top:1px solid var(--line);min-height:42px;color:var(--muted);gap:10px;padding:0 14px;font-size:13px}.progress-step svg,.progress-step>span{flex:none;width:17px;height:17px}.progress-step>span{border:2px dotted #f0a6bb;border-radius:999px}.progress-step.done{color:var(--text)}.progress-step.done svg,.progress-step.active{color:var(--rose)}.progress-step p{margin:0}.report-panel-header{margin-bottom:16px}.report-card{border-radius:var(--radius);background:linear-gradient(#fff,#fffafb);border:1px solid #efcbd4;width:100%;max-width:900px;margin:0 auto;padding:28px;box-shadow:inset 0 1px #fffc}.report-card.is-placeholder{opacity:.82}.generated-report-preview{border-radius:var(--radius);background:#fff;border:1px solid #d8d5d2;width:min(100%,820px);margin:0 auto;padding:10px;box-shadow:0 20px 70px #1613161a}.generated-report-preview img{background:#fff;border-radius:6px;width:100%}.generated-report-preview footer{color:var(--muted);justify-content:space-between;gap:12px;padding:10px 4px 2px;font-size:11px;display:flex}.report-card-header{justify-content:space-between;gap:18px;margin-bottom:22px;font-size:13px}.report-card-header strong{font-size:16px}.report-card-header span{color:var(--muted)}.report-card-main{grid-template-columns:minmax(190px,260px) minmax(0,1fr);align-items:center;gap:28px;display:grid}.portrait-frame{aspect-ratio:1;background:var(--surface-soft);border-radius:7px;overflow:hidden}.portrait-frame img{object-fit:cover;width:100%;height:100%}.portrait-placeholder{height:100%;color:var(--rose);place-items:center;display:grid}.portrait-placeholder svg{width:46px;height:46px}.score-block h1{margin:0 0 22px;font-family:Georgia,Times New Roman,serif;font-size:30px;font-weight:700;line-height:1.08}.score-row{grid-template-columns:104px 1fr;align-items:center;gap:18px;display:grid}.score-ring{background:radial-gradient(circle at center, #fff 58%, transparent 59%), conic-gradient(var(--rose) var(--score-angle), #fad4dd 0);width:104px;height:104px;color:var(--text);border-radius:999px;place-items:center;display:grid}.score-ring strong,.score-ring span{line-height:1;display:block}.score-ring strong{margin-top:12px;font-family:Georgia,Times New Roman,serif;font-size:39px}.score-ring span{color:var(--muted);margin-top:-10px;font-size:17px}.score-row h2{margin:0 0 8px;font-family:Georgia,Times New Roman,serif;font-size:21px}.score-row p{color:#332a2f;max-width:380px;margin:0 0 14px;font-size:14px;line-height:1.5}.confidence-pill{background:var(--green-soft);color:#187045;border-radius:999px;align-items:center;min-height:25px;padding:0 12px;font-size:12px;font-weight:700;display:inline-flex}.confidence-grid{border-top:1px solid var(--line);grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0 18px;padding-top:18px;display:grid}.confidence-item{min-width:0}.confidence-item>div{gap:7px;margin-bottom:8px;font-size:13px}.confidence-item svg{width:17px;height:17px;color:var(--rose)}.confidence-item b{margin-bottom:6px;font-size:12px;display:block}.mini-meter{background:#f6dce4;border-radius:999px;height:5px;display:block;overflow:hidden}.mini-meter i{background:var(--green);border-radius:inherit;height:100%;display:block}.section-grid{border-top:1px solid var(--line);border-bottom:1px solid var(--line);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.report-section{min-width:0;padding:18px 18px 18px 0}.report-section+.report-section{border-left:1px solid var(--line);padding-left:18px}.report-section>div{color:var(--rose);align-items:center;gap:8px;font-size:13px;font-weight:700;display:flex}.report-section svg{width:19px;height:19px}.report-section h3{margin:12px 0 6px;font-size:16px}.report-section p,.report-section li{color:#443a40;font-size:12px;line-height:1.45}.report-section p{margin:0 0 9px}.report-section ul{margin:0;padding-left:16px}.recommendations{border-radius:var(--radius);background:#fff8fa;border:1px solid #efcbd4;margin-top:20px;padding:18px}.recommendations-title{gap:9px;margin-bottom:14px;font-family:Georgia,Times New Roman,serif;font-size:16px}.recommendations-title svg{width:18px;height:18px;color:var(--rose)}.recommendation-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.recommendation-item{grid-template-columns:28px 1fr;gap:10px;min-width:0;display:grid}.recommendation-item span{width:28px;height:28px;color:var(--rose);background:#ffe0e7;border-radius:999px;place-items:center;font-size:13px;font-weight:800;display:grid}.recommendation-item p{color:#352a30;margin:0;font-size:13px;line-height:1.45}.report-footer{color:var(--muted);justify-content:space-between;gap:16px;margin-top:14px;font-size:11px}.report-footer p{margin:0}.palette-strip{gap:7px}.palette-strip svg{width:16px;height:16px;color:var(--rose)}.palette-strip span{border:1px solid #00000014;border-radius:999px;width:18px;height:18px}.download-actions{flex-wrap:wrap;justify-content:center;margin-top:14px}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1180px){.workspace{grid-template-columns:1fr}.upload-panel{max-width:none}}@media (max-width:760px){.topbar,.workspace{width:100%}.topbar{align-items:flex-start;padding:16px;position:static}.brand{font-size:23px}.topbar-actions{gap:8px}.topbar-actions .ghost-button{display:none}.workspace{gap:16px;padding:16px}.upload-panel,.report-panel{padding:16px}.report-panel-header,.report-card-header,.report-footer,.generated-report-preview footer{flex-direction:column;align-items:flex-start}.report-actions{width:100%}.report-actions .ghost-button{flex:1}.report-card{padding:18px}.report-card-main,.score-row,.recommendation-list{grid-template-columns:1fr}.score-ring{width:104px;height:104px}.confidence-grid,.section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-section,.report-section+.report-section{border-left:0;padding:16px 10px 16px 0}.report-section:nth-child(2n){border-left:1px solid var(--line);padding-left:14px}.secondary-button{width:100%}}@media (max-width:480px){.topbar{gap:12px}.brand svg{width:24px;height:24px}.file-row{grid-template-columns:72px 1fr}.file-row img,.empty-thumb{width:72px;height:72px}.file-row .success-icon{grid-column:2}.dropzone{min-height:190px;padding:22px}.confidence-grid,.section-grid{grid-template-columns:1fr}.report-section,.report-section+.report-section,.report-section:nth-child(2n){border-left:0;padding:15px 0}.report-section+.report-section{border-top:1px solid var(--line)}}
