
:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#e8f1ff;background:#081426}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 85% 0,#183e66 0,transparent 36%),#081426}button,input,select{font:inherit}button{cursor:pointer}header{background:#0c2039e8;border-bottom:1px solid #284563}.wrap{max-width:1150px;margin:auto;padding:18px}.head{display:flex;align-items:center;gap:17px;justify-content:space-between}.brand{display:flex;align-items:center;gap:16px}.brand img{width:72px;height:76px;object-fit:contain}.brand h1{font-size:25px;margin:0}.muted{color:#a8c1d9}.pill{border:1px solid #355576;border-radius:24px;padding:8px 13px;background:#132b46;color:#fff}h2{font-size:26px;margin:0 0 8px}h3{margin:0 0 12px;font-size:19px}.hero{padding:26px 0 18px}.hero p{max-width:740px;color:#b8cde2}.tabs,.subtabs{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.tab,.subtab{border:1px solid #315472;border-radius:12px;background:#142d49;color:#d9e9fa;padding:11px 17px}.tab.active,.subtab.active{background:#2678de;color:white;border-color:#57a5ff}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card{border:1px solid #2b4c6b;background:#10243c;border-radius:18px;padding:23px;box-shadow:0 10px 30px #0002}.wide{grid-column:1/-1}.accent{color:#76c8ff}.result{background:linear-gradient(120deg,#123b64,#184d62);border:1px solid #397c9c;border-radius:14px;padding:18px;margin-top:15px}.big{font-size:30px;font-weight:800;color:#8de8e1}.controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.field{display:flex;flex-direction:column;gap:7px;flex:1;min-width:140px}.field label{font-size:14px;color:#bad2e8}input,select{width:100%;background:#081b31;color:#fff;border:1px solid #45698b;border-radius:10px;padding:11px}input[type=range]{padding:0;accent-color:#4cb6ff}.primary{background:#2c8fff;color:#fff;border:0;border-radius:11px;padding:12px 18px;font-weight:700}.secondary{background:#244664;color:white;border:1px solid #497495;border-radius:11px;padding:11px 16px}.success{color:#77f3bd}.error{color:#ffaaa9}.note{font-size:14px;color:#b2c9dd;line-height:1.65}.visual{background:#081b31;border:1px solid #2c4b67;border-radius:14px;padding:18px;min-height:170px;display:flex;align-items:center;justify-content:center;overflow:hidden}.ruler{width:100%;height:95px;background:repeating-linear-gradient(90deg,#ffcb62 0,#ffcb62 2px,transparent 2px,transparent 10%);border-bottom:8px solid #f5ae38;position:relative;display:flex;align-items:center;justify-content:center}.ruler span{background:#0c2138e8;padding:10px;border-radius:8px}.floor{background:repeating-linear-gradient(0deg,transparent 0,transparent 27px,#ffffff28 28px),repeating-linear-gradient(90deg,#39a8dd 0,#39a8dd 27px,#ffffff55 28px);border:3px solid #b8edff;max-width:100%;transition:width .2s,height .2s}.box3d{background:linear-gradient(135deg,#64c5e9,#3171b8);border:3px solid #b1eaff;box-shadow:15px -13px 0 #20517f,15px -13px 0 2px #73b7e1;transition:width .2s,height .2s}.stat{font-size:27px;font-weight:800;color:#7ddbf6}footer{text-align:center;border-top:1px solid #294762;color:#a6bfd4;margin-top:36px;padding:22px}.hidden{display:none!important}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{padding:7px 12px;background:#1b4966;border-radius:20px;font-size:13px;color:#bde6ff}.feedback{margin-top:13px;min-height:32px}.question{font-size:21px;font-weight:650;margin:18px 0}.small{font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.statbox{background:#0b1e34;padding:17px;border-radius:12px;text-align:center}.lang{width:auto}.formula{font-size:19px;color:#9ce9f1;font-weight:700}@media(max-width:740px){.grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.brand h1{font-size:19px}.brand img{width:55px;height:60px}.card{padding:17px}.wrap{padding:13px}.head{gap:8px}}

/* GTMedidas 1.4: simpler guided learning */
.toolbar{display:flex;justify-content:space-between;gap:10px;margin:12px 0}.toolbar button[hidden],.guide[hidden]{display:none}.choose{margin:18px 0}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.module-card{min-height:170px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:22px;border-radius:18px;color:#f7fbff;border:1px solid #4a7397;transition:transform .15s,border-color .15s}.module-card:hover{transform:translateY(-3px);border-color:#d4efff}.module-card strong{font-size:23px}.module-card span{font-size:15px}.module-icon{font-size:32px!important}.go{font-weight:750;margin-top:auto}.mod-length{background:linear-gradient(120deg,#174a99,#2769b8)}.mod-area{background:linear-gradient(120deg,#126a63,#1b8976)}.mod-volume{background:linear-gradient(120deg,#6340a0,#8052b5)}.mod-capacity{background:linear-gradient(120deg,#99551b,#b97a28)}.center{text-align:center}.guide{border:1px solid #59a2d4;background:#153955;border-radius:13px;padding:18px;margin:15px 0}.guide p{margin-bottom:0;line-height:1.6}.stepnote{color:#bfe9ff;font-weight:600;margin:10px 0 15px}.subtabs{margin:8px 0 14px}.subtab{flex:1;min-width:120px}.subtab.active{background:#2b80db}.card{line-height:1.5}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffdb72;outline-offset:2px}@media(max-width:620px){.module-grid{grid-template-columns:1fr}.module-card{min-height:145px}.subtab{min-width:calc(50% - 9px)}}

/* GTMedidas 1.6 — tema claro, identidade Grandpa's Tech */
:root{color:#243449;background:#f5f7fa;color-scheme:light}
body{background:#f5f7fa;color:#243449}
header{background:#fff;border-bottom:1px solid #e0e6ee;box-shadow:0 2px 10px #24344908}
.brand h1{color:#203750}.accent{color:#2468b3}.muted,.note{color:#60738a}
.hero p{color:#596c82}.hero h2{color:#233d5a}
.pill,input,select{background:#fff;color:#253a51;border:1px solid #c9d5e2}
.tab,.subtab{background:#fff;color:#2a4a6b;border:1px solid #cbd8e5}
.tab.active,.subtab.active{background:#256db6;color:#fff;border-color:#256db6}
.card{background:#fff;border:1px solid #e0e6ed;box-shadow:0 8px 25px #233a5410;color:#243449}
.field label{color:#465e77}.result{background:#edf6ff;border:1px solid #cbdff1;color:#203e5a}
.big,.stat,.formula{color:#12618b}.secondary{background:#edf3f9;color:#244a6e;border:1px solid #cbd9e6}
.primary{background:#256db6;color:white}.visual{background:#f0f5fa;border:1px solid #d9e4ef}
.ruler span{color:#fff}.statbox{background:#f0f5fa}.chip{background:#e8f2fc;color:#27557c}
.guide{background:#eef6fd;border:1px solid #bddaf1;color:#294968}.stepnote{color:#3d678c}
footer{border-top:1px solid #e0e6ee;color:#687c90}.success{color:#127448}.error{color:#b13232}
.mod-length{background:linear-gradient(120deg,#235da2,#3b82c7)}
.mod-area{background:linear-gradient(120deg,#187e6a,#2d9b80)}
.mod-volume{background:linear-gradient(120deg,#7250a7,#9065bf)}
.mod-capacity{background:linear-gradient(120deg,#b16b26,#d3913d)}
.module-card{border-color:transparent}.module-card:hover{border-color:#294e70}
