:root{--ink:#171713;--muted:#66665d;--line:#d9d6ca;--paper:#f7f5ef;--white:#fffefa;--sage:#e9eedb;--lavender:#e8e2f6;--lavender-strong:#74649a;--yellow:#f2d65d;--yellow-soft:#fbf1bb;--success:#2f7651;--warning:#a46b0b;--danger:#a7443e}*{box-sizing:border-box}html{scroll-behavior:smooth}body{color:var(--ink);background:var(--paper);margin:0;font-family:PingFang SC,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif;font-weight:400;line-height:1.7}.embed-shell{background:#f8f9fa;width:100%;height:100dvh;position:relative;overflow:hidden}.embed-loading{color:var(--ink);text-align:center;place-content:center;gap:8px;display:grid;position:absolute;inset:0}.embed-loading strong{font-size:20px;font-weight:600}.embed-loading span{color:var(--muted);font-size:14px}.streamlit-frame{z-index:1;background:0 0;border:0;width:100%;height:100%;display:block;position:relative}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}main{overflow:hidden}.topbar{z-index:20;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffefae6;border:1px solid #17171329;border-radius:18px;justify-content:space-between;align-items:center;gap:24px;width:min(100% - 32px,1200px);min-height:70px;margin:16px auto 0;padding:10px 12px 10px 18px;display:flex;position:sticky;top:16px;box-shadow:0 10px 30px #26241c14}.brand,.topbar nav,.portfolio-link{align-items:center;display:flex}.brand{gap:10px;font-size:14px;font-weight:600}.brand-mark{background:var(--yellow);border-radius:10px;place-items:center;width:32px;height:32px;font-weight:700;display:grid}.topbar nav{gap:24px;font-size:14px;font-weight:500}.topbar nav a{transition:color .2s}.topbar nav a:hover,.topbar nav a:focus-visible{color:var(--lavender-strong)}.portfolio-link{border:1px solid var(--line);background:var(--white);border-radius:999px;gap:8px;padding:10px 14px}.hero,.metrics,.process,.workbench,.review-section,.memory-section,footer{width:min(100% - 64px,1200px);margin-inline:auto}.hero{grid-template-columns:1.55fr .65fr;align-items:end;gap:80px;min-height:520px;padding:110px 0 72px;display:grid}.eyebrow,.section-heading span,.hero-note>span,.panel-title span,.result-head span,.review-context>span,.memory-summary>span,footer span{color:var(--muted);letter-spacing:.08em;font-size:13px;font-weight:500}.eyebrow{align-items:center;gap:10px;display:flex}.eyebrow>span{background:var(--yellow);border-radius:999px;width:24px;height:3px}h1{letter-spacing:-.045em;margin:24px 0;font-size:clamp(50px,6vw,76px);font-weight:700;line-height:1.1}.hero-copy>p{color:#4f4f48;max-width:650px;margin:0;font-size:18px;line-height:1.8}.hero-note{border-left:3px solid var(--lavender-strong);background:#e8e2f694;padding:28px}.hero-note p{color:#53505a;margin:12px 0 0;font-size:15px}.metrics{border:1px solid var(--line);background:var(--yellow-soft);border-radius:20px;grid-template-columns:repeat(3,1fr);display:grid;overflow:hidden}.metrics article{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:148px;padding:28px 32px;display:flex}.metrics article+article{border-left:1px solid #17171338}.metrics strong{letter-spacing:-.03em;font-size:42px;font-weight:700;line-height:1.1}.metrics span{color:#595747;margin-top:10px;font-size:14px}.process{border:1px solid var(--line);background:var(--white);border-radius:16px;grid-template-columns:repeat(5,1fr);margin-top:20px;display:grid;overflow:hidden}.process div{color:#858177;align-items:center;gap:14px;min-height:86px;padding:18px 20px;transition:background .25s,color .25s;display:flex}.process div+div{border-left:1px solid var(--line)}.process div.active{color:var(--ink);background:var(--sage)}.process span{font-variant-numeric:tabular-nums;font-size:12px}.process b{font-size:15px;font-weight:600}.workbench,.review-section,.memory-section{padding-top:112px}.section-heading{grid-template-columns:1.35fr .65fr;align-items:end;gap:80px;margin-bottom:38px;display:grid}.section-heading h2{letter-spacing:-.03em;max-width:720px;margin:12px 0 0;font-size:clamp(34px,4vw,48px);font-weight:600;line-height:1.22}.section-heading>p{color:var(--muted);margin:0;font-size:15px;line-height:1.75}.section-heading.compact h2{font-size:clamp(31px,3.5vw,42px)}.workspace-grid{border:1px solid var(--line);background:var(--white);border-radius:22px;grid-template-columns:310px 1fr;display:grid;overflow:hidden}.case-panel{background:var(--sage);border-right:1px solid var(--line);padding:28px 22px}.panel-title{justify-content:space-between;align-items:center;gap:12px;min-height:24px;display:flex}.panel-title b{color:var(--muted);font-size:12px;font-weight:500}.case-list{gap:10px;margin-top:20px;display:grid}.case-list button{width:100%;color:var(--ink);text-align:left;cursor:pointer;background:#fffefa94;border:1px solid #0000;border-radius:14px;grid-template-columns:28px 1fr 18px;align-items:center;gap:8px;padding:16px;transition:border-color .2s,background .2s,transform .2s;display:grid}.case-list button:hover,.case-list button:focus-visible,.case-list button.selected{background:var(--white);border-color:#17171361}.case-list button:hover i,.case-list button:focus-visible i{transform:translate(3px)}.case-list button>span{color:var(--muted);font-size:12px}.case-list button div{gap:3px;min-width:0;display:grid}.case-list button b{text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;overflow:hidden}.case-list button small{color:var(--muted);font-size:12px}.case-list button i{font-style:normal;transition:transform .2s}.privacy-note{border-top:1px solid #17171329;margin-top:24px;padding-top:20px}.privacy-note b{font-size:13px;font-weight:600}.privacy-note p{color:var(--muted);margin:5px 0 0;font-size:12px;line-height:1.7}.diagnosis-panel{grid-template-columns:1fr 1fr;min-height:580px;display:grid}.input-section,.result-section{padding:30px}.input-section{border-right:1px solid var(--line)}.input-section label,.review-form label{color:#4e4d47;gap:8px;margin-top:20px;font-size:14px;font-weight:500;display:grid}input,textarea,select{width:100%;color:var(--ink);background:var(--white);border:1px solid #cbc8bd;border-radius:11px;outline:none;transition:border-color .2s,box-shadow .2s}input,select{min-height:48px;padding:0 14px}textarea{resize:vertical;padding:12px 14px;line-height:1.65}input:focus,textarea:focus,select:focus{border-color:var(--lavender-strong);box-shadow:0 0 0 3px #74649a24}.primary-button,.secondary-button{border:1px solid var(--ink);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:9px;min-height:48px;padding:0 18px;font-size:15px;font-weight:600;transition:transform .2s,background .2s,color .2s;display:inline-flex}.primary-button{width:100%;color:var(--ink);background:var(--yellow);box-shadow:3px 3px 0 var(--ink);margin-top:24px}.primary-button:hover:not(:disabled),.primary-button:focus-visible:not(:disabled){box-shadow:4px 4px 0 var(--ink);transform:translate(-1px,-1px)}.primary-button:disabled{opacity:.58;cursor:not-allowed;box-shadow:none}.secondary-button{color:var(--ink);background:var(--lavender);justify-self:start}.secondary-button:hover,.secondary-button:focus-visible{background:#ded5f2}.spinner{border:2px solid #17171340;border-top-color:var(--ink);border-radius:50%;width:17px;height:17px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.result-section{background:#fbfaf6;flex-direction:column;justify-content:center;display:flex}.result-section.has-result{justify-content:flex-start}.empty-state{text-align:center}.empty-state>span{color:var(--muted);background:#efede6;border-radius:999px;padding:6px 10px;font-size:12px;display:inline-block}.empty-state h3{max-width:300px;margin:18px auto 10px;font-size:23px;font-weight:600;line-height:1.4}.empty-state p{max-width:320px;color:var(--muted);margin:0 auto;font-size:14px}.result-head{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.result-head h3{margin:8px 0 0;font-size:36px;font-weight:600;line-height:1.2}.confidence{text-align:center;border:1px solid;border-radius:14px;min-width:94px;padding:12px;display:grid}.confidence.success{color:var(--success);background:#edf7f0}.confidence.warning{color:var(--warning);background:#fff6df}.confidence.danger{color:var(--danger);background:#fff0ef}.confidence strong{font-size:24px;font-weight:700;line-height:1.2}.confidence span{font-size:11px}.result-reason{margin:24px 0;font-size:16px;line-height:1.8}.evidence-list{border-top:1px solid var(--line)}.evidence-list div{border-bottom:1px solid var(--line);grid-template-columns:34px 1fr;align-items:center;min-height:56px;display:grid}.evidence-list span{color:var(--muted);font-size:12px}.evidence-list p{margin:0;font-size:14px}.review-status{border-radius:12px;margin-top:22px;padding:16px 18px}.review-status.needs-review{border-left:3px solid var(--yellow);background:#fff3cf}.review-status.passed{background:#ebf5ee;border-left:3px solid #79a889}.review-status span{font-size:14px;font-weight:600}.review-status p{color:var(--muted);margin:4px 0 0;font-size:13px}.review-card{border:1px solid var(--line);background:var(--white);border-radius:20px;grid-template-columns:.82fr 1.18fr;display:grid;overflow:hidden}.review-context{background:var(--yellow-soft);padding:34px}.review-context b{margin-top:18px;font-size:25px;font-weight:600;display:block}.review-context p{color:var(--muted);margin:12px 0 0;font-size:15px}.review-form{padding:12px 34px 34px;display:grid}.review-form .secondary-button{margin-top:22px}.memory-shell{border:1px solid var(--line);background:var(--white);border-radius:20px;grid-template-columns:280px 1fr;display:grid;overflow:hidden}.memory-summary{background:var(--lavender);padding:32px}.memory-summary strong{margin-top:14px;font-size:52px;font-weight:700;line-height:1;display:block}.memory-summary p{color:var(--muted);margin:12px 0 28px;font-size:13px}.memory-summary button{color:var(--ink);cursor:pointer;background:0 0;border:0;border-bottom:1px solid;padding:8px 0;font-size:13px;font-weight:600}.memory-list{max-height:440px;overflow-y:auto}.memory-list article{padding:22px 26px}.memory-list article+article{border-top:1px solid var(--line)}.memory-list article div{color:var(--muted);justify-content:space-between;gap:18px;font-size:12px;display:flex}.memory-list article p{margin:8px 0 0;font-size:15px;line-height:1.75}.toast{color:#305d42;background:#eaf4ed;border-radius:10px;margin-top:16px;padding:12px 16px;font-size:14px}footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:30px;margin-top:120px;padding:42px 0 54px;display:flex}footer div{gap:5px;display:grid}footer b{font-size:18px;font-weight:600}footer a{align-items:center;gap:8px;font-size:15px;font-weight:600;display:flex}footer a svg{transition:transform .2s}footer a:hover svg,footer a:focus-visible svg{transform:translate(4px)}:focus-visible{outline-offset:3px;outline:3px solid #74649a73}@media (max-width:980px){.topbar nav>a:not(.portfolio-link){display:none}.hero{grid-template-columns:1fr;gap:40px;min-height:auto;padding:90px 0 70px}.hero-note{max-width:560px}.section-heading{grid-template-columns:1fr;gap:18px}.section-heading>p{max-width:580px}.workspace-grid{grid-template-columns:1fr}.case-panel{border-right:0;border-bottom:1px solid var(--line)}.case-list{grid-template-columns:repeat(3,1fr)}.privacy-note{display:none}}@media (max-width:760px){.hero,.metrics,.process,.workbench,.review-section,.memory-section,footer{width:min(100% - 40px,1200px)}.topbar{width:calc(100% - 24px);margin-top:10px;top:10px}.brand>span:last-child{display:none}.portfolio-link{font-size:13px}h1{font-size:clamp(42px,13vw,58px)}.hero-copy>p{font-size:17px}.metrics{grid-template-columns:1fr}.metrics article{min-height:116px}.metrics article+article{border-top:1px solid #17171338;border-left:0}.process{grid-template-columns:1fr}.process div{min-height:58px}.process div+div{border-left:0;border-top:1px solid var(--line)}.workbench,.review-section,.memory-section{padding-top:86px}.case-list,.diagnosis-panel{grid-template-columns:1fr}.input-section{border-right:0;border-bottom:1px solid var(--line)}.input-section,.result-section{padding:24px 20px}.result-section{min-height:390px}.review-card,.memory-shell{grid-template-columns:1fr}.review-context,.review-form,.memory-summary{padding:26px 22px}footer{flex-direction:column;align-items:flex-start;margin-top:90px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
