:root{--navy:#07182d;--navy2:#0c2947;--blue:#1475c9;--cyan:#38c8f2;--red:#d71920;--ink:#10243b;--muted:#65768a;--line:#dce5ef;--paper:#f4f7fb}*{box-sizing:border-box}body{margin:0;background:#eaf0f6;color:var(--ink);font-family:Inter,Arial,sans-serif}.app-shell{max-width:1240px;margin:auto;background:#f8fafc;min-height:100vh;box-shadow:0 0 45px #10243b12}.topbar{height:76px;background:#06172b;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:2px solid #22b8ef;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none}.brand-mark{width:42px;height:42px;border:2px solid #f4f8ff;border-radius:12px 12px 18px 18px;display:grid;place-items:center;font-weight:900;font-size:27px;color:white;background:linear-gradient(145deg,#d81d2a,#76101a);box-shadow:0 0 15px #e32c3866}.brand b{font-size:27px;font-style:italic;letter-spacing:-1.8px}.brand small,.header-title small{display:block;font-size:8px;letter-spacing:.65px;color:#b7c9dd}.header-title{text-align:right;margin-left:auto;margin-right:22px}.header-title b{font-size:13px}.menu-btn{border:1px solid #2b8cbd;color:white;background:#102d4b;border-radius:10px;font-size:23px;width:42px;height:42px}.hero{background:radial-gradient(ellipse at 85% 45%,#15578b 0,#0a2b4b 34%,#06172b 75%);color:white;padding:35px 6%;display:flex;align-items:center;justify-content:space-between;min-height:240px;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#36c9f4,transparent)}.hero-copy{max-width:630px;z-index:1}.eyebrow,.step-tag{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#32bce9}.hero h1{font-size:clamp(30px,5vw,48px);line-height:1.08;margin:10px 0}.hero h1 em{font-style:normal;color:#69d9ff}.hero p{color:#d0dfed;max-width:560px;font-size:14px;line-height:1.65}.steps{display:flex;gap:28px;margin-top:25px}.steps span{font-size:11px;color:#9eb4c8;display:flex;align-items:center;gap:8px}.steps i{font-style:normal;border:1px solid #77b8dc;border-radius:50%;width:25px;height:25px;display:grid;place-items:center}.steps .active{color:white}.steps .active i{background:#d71920;border-color:#ff6a70}.hero-orbit{width:155px;height:155px;border:1px solid #2e95c4;border-radius:50%;display:grid;place-items:center;position:relative;margin-right:8%;color:#8ce5ff;text-align:center;font-size:10px;letter-spacing:2px;box-shadow:0 0 45px #19b9ef22}.orbit-ring{position:absolute;inset:15px;border:1px dashed #55c8ec;border-radius:50%;animation:spin 18s linear infinite}.hero-symbol{font-size:65px;color:#fff;text-shadow:0 0 25px #34d4ff}.hero-orbit span{position:absolute;bottom:23px;background:#08213b;padding:3px 9px}@keyframes spin{to{transform:rotate(360deg)}}.notice{margin:18px 3% 0;background:#eaf5ff;border:1px solid #c8e4f8;color:#285878;border-radius:10px;padding:11px 14px;font-size:11px;line-height:1.5}.notice span{font-size:16px;margin-right:7px}.workspace{padding:20px 3%;display:grid;grid-template-columns:1.06fr .94fr;gap:18px;align-items:start}.panel{background:white;border:1px solid #e1e8f0;border-radius:17px;box-shadow:0 5px 20px #18334c0b;overflow:hidden}.panel-heading{padding:20px 21px 12px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.panel-heading h2,.result-header h2{margin:6px 0;font-size:21px;color:#102a4a}.panel-heading p,.result-header p{margin:0;color:#718196;font-size:11px;line-height:1.55}.live-dot{font-size:8px;letter-spacing:.8px;color:#078aab;background:#e5f9ff;border-radius:20px;padding:7px 9px;white-space:nowrap}.viewer-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 20px 10px}.segmented{display:flex;background:#edf2f7;padding:3px;border-radius:9px}.segmented button,.tool-btn{border:0;background:transparent;color:#52657b;border-radius:7px;padding:8px 15px;font-size:11px;font-weight:700}.segmented button.selected{background:#0c4777;color:white;box-shadow:0 2px 6px #123b5b33}.tool-btn{border:1px solid var(--line);background:white}.viewer-wrap{margin:0 14px;background:radial-gradient(ellipse at 50% 42%,#f2f9ff,#dceaf6 72%,#d4e2ef);height:390px;border-radius:13px;position:relative;overflow:hidden}#anatomyViewer{height:100%;width:100%;touch-action:none}.loading{height:100%;display:grid;place-items:center;color:#60768d;font-size:12px}.viewer-hint{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:9px;color:#506b82;pointer-events:none}.selection-pill{position:absolute;top:12px;left:12px;padding:7px 10px;border-radius:20px;background:#09294a;color:white;font-size:10px;box-shadow:0 3px 12px #163d5b22}.area-grid{padding:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.area-grid button{border:1px solid #d9e3ed;border-radius:8px;background:#f7f9fc;color:#334b64;padding:9px 5px;font-size:10px;font-weight:700}.area-grid button.active{background:#fff0f0;border-color:#e52b36;color:#bd111b}.anatomy-legend{display:flex;gap:17px;padding:0 17px 17px;color:#738397;font-size:9px}.anatomy-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.legend-blue{background:#168fe1}.legend-red{background:#e51f2b}.form-panel form{padding:0 21px 21px}.field-label{display:block;font-size:11px;font-weight:800;margin:15px 0 7px;color:#263c53}.field-label small{font-weight:500;color:#8795a5}.form-panel input:not([type=checkbox]):not([type=range]),select,textarea{width:100%;border:1px solid #d8e1eb;background:#fbfcfe;border-radius:9px;padding:11px 12px;color:#344a60;font:inherit;font-size:11px;outline:none}.form-panel input[readonly]{background:#f0f6fb;font-weight:700}.choice-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.choice{border:1px solid #d8e1eb;background:white;padding:10px;border-radius:8px;color:#53667b;font-size:10px;font-weight:700}.choice.active{background:#eaf5ff;border-color:#1684ca;color:#07588d}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.check-grid label{display:flex;align-items:center;gap:7px;border:1px solid #e0e7ef;border-radius:8px;padding:9px 8px;font-size:10px;color:#465c72}.check-grid input{accent-color:#0b8e5b}.range-head{display:flex;align-items:center;justify-content:space-between}.range-head b{font-size:13px;color:#078e57}.range{width:100%;accent-color:#0b9d65}.history{grid-template-columns:repeat(2,1fr)}textarea{resize:vertical}.primary-btn{margin-top:19px;width:100%;border:0;border-radius:11px;background:linear-gradient(100deg,#b90e19,#f02a30 55%,#a90d18);color:white;font-weight:900;font-size:14px;padding:15px;box-shadow:0 5px 12px #d7192033}.primary-btn span{margin-right:8px}.results{margin:0 3% 25px;background:white;border:1px solid #dce5ee;border-radius:17px;padding:22px;box-shadow:0 5px 20px #18334c0b}.result-header{display:flex;justify-content:space-between;align-items:center}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.summary-item{background:#f0f6fc;border:1px solid #e1eaf3;padding:12px;border-radius:10px}.summary-item small{display:block;color:#71849a;font-size:9px}.summary-item b{display:block;margin-top:5px;color:#163b5d;font-size:14px}.result-tabs{display:flex;gap:7px;border-bottom:1px solid #e1e8ef;overflow:auto}.tab{border:0;background:transparent;padding:12px 14px;color:#64768a;font-size:11px;font-weight:800;white-space:nowrap}.tab.active{color:#c61722;border-bottom:3px solid #d71920}.tab-content{padding:17px 0;min-height:140px}.info-card{background:#f5f9fd;border:1px solid #e1eaf3;border-radius:12px;padding:15px;margin-bottom:10px}.info-card h3{margin:0 0 7px;font-size:14px;color:#173e64}.info-card p,.info-card li{font-size:11px;color:#586d82;line-height:1.65}.condition{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:start;padding:13px 0;border-bottom:1px solid #e9eef3}.condition-num{width:28px;height:28px;border-radius:50%;background:#d71920;color:white;display:grid;place-items:center;font-weight:900}.condition h3{font-size:13px;margin:0 0 4px}.condition p{font-size:10px;color:#65788b;line-height:1.5;margin:0}.level{font-size:9px;font-weight:800;border-radius:20px;padding:6px 8px;background:#fff3db;color:#a36b08}.warning-box{background:#fff7df;border:1px solid #f4e3a9;border-radius:11px;padding:14px;color:#7b5a13}.warning-box b{font-size:12px;color:#a23a19}.warning-box p{font-size:10px;line-height:1.6;margin:6px 0 0}.result-actions{display:flex;gap:9px;margin-top:15px;flex-wrap:wrap}.secondary-btn,.whatsapp-btn{border:1px solid #d8e2ec;border-radius:9px;background:#f8fafc;color:#23415f;padding:11px 15px;text-decoration:none;font-size:11px;font-weight:800}.whatsapp-btn{background:#0d9d57;border-color:#0d9d57;color:white}footer{background:#07182d;color:#c2d1df;text-align:center;padding:25px 15px}footer p{font-size:10px;color:#8ea5ba}.footer-brand{font-weight:900;font-style:italic;font-size:22px;color:white}.footer-brand small{display:block;font-size:8px;font-style:normal;letter-spacing:1px}footer>small{font-size:9px;color:#7890a8}
@media(max-width:760px){.topbar{height:65px;padding:0 14px}.brand b{font-size:22px}.brand-mark{width:36px;height:36px}.brand small{font-size:6px}.header-title{margin-right:10px}.header-title b{font-size:10px}.header-title small{font-size:8px}.hero{padding:27px 20px;min-height:225px}.hero-orbit{width:100px;height:100px;margin:0 0 0 5px;flex-shrink:0}.hero-symbol{font-size:42px}.hero-orbit span{font-size:7px;bottom:14px}.hero p{font-size:12px;max-width:390px}.steps{gap:14px}.steps span{font-size:9px}.workspace{grid-template-columns:1fr;padding:14px 12px;gap:13px}.panel-heading{padding:17px 16px 10px}.viewer-wrap{height:370px;margin:0 10px}.area-grid{grid-template-columns:repeat(3,1fr);padding:11px}.form-panel form{padding:0 16px 17px}.results{margin:0 12px 20px;padding:16px}.result-header h2{font-size:18px}.summary-item{padding:9px}.summary-item b{font-size:12px}.tab{padding:11px 9px;font-size:10px}}@media(max-width:390px){.hero-orbit{display:none}.area-grid button{font-size:9px}.viewer-wrap{height:340px}.brand small{max-width:170px}.header-title{display:none}}
@media print{body{background:white}.topbar,.hero,.notice,.workspace,footer,.result-actions,.result-tabs{display:none!important}.results{display:block!important;margin:0;border:0;box-shadow:none}.tab-content{display:block}}

.layer-toolbar{display:flex;gap:7px;padding:0 20px 10px}.layer-btn{flex:1;border:1px solid #d8e3ed;background:#f5f8fc;color:#52677d;border-radius:9px;padding:10px 8px;font-size:11px;font-weight:800}.layer-btn.active{background:#0c4777;color:#fff;border-color:#0c4777;box-shadow:0 2px 7px #123b5b22}.layer-btn:focus-visible{outline:3px solid #38c8f2;outline-offset:2px}

/* Anatomy detail card: structure names update with selected body area and layer */
.anatomy-detail{margin:0 14px 18px;padding:15px 16px;background:linear-gradient(145deg,#f8fbff,#edf5fc);border:1px solid #dce8f3;border-radius:13px}.detail-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.detail-kicker{font-size:9px;font-weight:900;letter-spacing:1.2px;color:#269fc6}.detail-layer{font-size:8px;font-weight:900;letter-spacing:.7px;color:#0c527e;background:#dff3fb;padding:6px 9px;border-radius:20px}.anatomy-detail h3{font-size:16px;color:#12375b;margin:10px 0 5px}.anatomy-detail>p{font-size:10px;line-height:1.6;color:#65798d;margin:0 0 10px}.structure-list{display:flex;flex-wrap:wrap;gap:7px}.structure-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:8px;background:white;border:1px solid #dce7f1;color:#38536c;font-size:9px;font-weight:700}.structure-chip b{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#e4f2fb;color:#12618e;font-size:8px}.anatomy-detail .detail-disclaimer{font-size:9px;color:#8a98a7;margin:11px 0 0;padding-top:9px;border-top:1px solid #dce7f1}
@media(max-width:700px){.anatomy-detail{margin-left:12px;margin-right:12px}.structure-chip{font-size:9px}}


/* Knee deep-dive module */
.knee-open-btn{width:100%;margin-top:18px;border:0;border-radius:14px;padding:16px 18px;background:linear-gradient(120deg,#0e4d78,#087f9c);color:#fff;font:800 14px Inter, sans-serif;letter-spacing:.04em;box-shadow:0 8px 20px #0b42651c;cursor:pointer}
.knee-modal{position:fixed;inset:0;z-index:1000;background:#06172bdc;display:none;overflow-y:auto;padding:18px 12px calc(28px + env(safe-area-inset-bottom));backdrop-filter:blur(7px)}
.knee-modal.open{display:block}
.knee-modal-card{max-width:760px;margin:0 auto;background:#fff;border:1px solid #dce7ef;border-radius:22px;padding:18px;box-shadow:0 22px 70px #00152d55}
.knee-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.knee-modal-head h2{margin:8px 0 5px;color:#142f4b;font-size:25px}.knee-modal-head p{margin:0;color:#728293;line-height:1.55;font-size:14px}.knee-close{width:42px;height:42px;border:1px solid #dbe5ec;border-radius:12px;background:#f5f8fb;color:#173650;font-size:28px;line-height:1;cursor:pointer;flex:0 0 auto}
.knee-viewer-wrap{position:relative;margin-top:16px;background:#e5f0f8;border-radius:18px;overflow:hidden}.knee-viewer-wrap #kneeViewer{height:390px;touch-action:none}.knee-viewer-wrap canvas{display:block;width:100%;height:100%}.knee-viewer-caption{display:block;text-align:center;padding:0 8px 13px;color:#607588;font-size:12px}
.knee-structure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.knee-structure-grid button{border:1px solid #d9e3eb;border-radius:12px;background:#f5f8fc;color:#334b60;padding:11px 7px;font:700 12px Inter,sans-serif;min-height:44px;cursor:pointer}.knee-structure-grid button.active{background:#eaf5fb;border-color:#0d7295;color:#07577a;box-shadow:inset 0 0 0 1px #0d7295}
.knee-info{margin-top:14px;padding:16px;border-radius:16px;background:#f0f7fc;border:1px solid #d9e8f2}.knee-info .detail-kicker{font-size:11px;letter-spacing:.12em;font-weight:900;color:#279ab2}.knee-info h3{margin:7px 0;color:#173650;font-size:19px}.knee-info p{margin:0;color:#627589;line-height:1.65;font-size:14px}.knee-disclaimer{font-size:11px;color:#8a98a6;line-height:1.5;margin:12px 2px 0}
@media(max-width:480px){.knee-modal{padding:10px 8px calc(18px + env(safe-area-inset-bottom))}.knee-modal-card{padding:14px;border-radius:18px}.knee-viewer-wrap #kneeViewer{height:340px}.knee-structure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.knee-modal-head h2{font-size:22px}}
