/* Calm, clearly grouped calculator surfaces. */
/* Compact rhythm: preserve comfortable controls while reducing empty space. */
#gearing-form{max-width:1120px;margin-top:28px}.gear-setups{max-width:none;gap:26px}.gear-setups fieldset{border:1px solid #d6ded7;border-top:5px solid #276b73;padding:26px;background:#fffdf8;border-radius:9px;box-shadow:0 4px 18px #172a2508}.gear-setups #setup-b{border-top-color:#986318}.gear-setups legend{font:700 23px Georgia,serif;color:#174d3c;padding:8px 12px;background:#f7f3e9;border-radius:4px}.gear-preset-panel{background:#eaf0e9;border:0;border-radius:6px;padding:16px 18px}.gear-preset-panel label{margin-top:8px}.gear-preset-panel .help{padding:0;background:transparent;border:0;margin-bottom:0;line-height:1.6}.gear-setups input,.gear-setups select,.gear-options input,.gear-options select{background:#fff;color:#172a25;border:1px solid #b8c7bd;border-radius:5px;padding:12px;font-size:16px;min-height:46px}.gear-setups label{font-size:14px;color:#263f34;line-height:1.5}.teeth-row{gap:10px;margin:10px 0 22px}.teeth-row label{font-size:12px;text-align:center;color:#65776a;width:62px}.teeth-row input{font-size:19px;font-weight:700;padding:10px 4px;margin-top:4px;color:#174d3c}.gear-setups>.help,.gear-setups fieldset>.help{font-size:13px;background:transparent;border:0;padding:0;color:#52665a}.compare-toggle{padding:16px 20px;border:1px solid #b8d0c7;background:#e6efe9;border-radius:6px;max-width:650px;font-size:16px}.compare-toggle input{accent-color:#174d3c}.gear-options{max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:22px;background:#eee0bf;border-radius:8px;margin:26px 0}.gear-options label{margin:0;font-size:14px;line-height:1.5}#gear-results{max-width:none;padding-top:12px}#gear-results>h2{font-size:31px;margin:32px 0 14px}.gear-result-grid{gap:20px}.gear-result-grid>section{border:1px solid #d6ded7;border-radius:8px;padding:24px;background:white;box-shadow:0 3px 14px #172a2506}.gear-result-grid>section h3{font:700 22px Georgia,serif;color:#174d3c;margin:0 0 14px}.gear-result-grid .gear-verdict{font-size:21px;line-height:1.45;font-weight:700;margin:0 0 18px}.gear-figures{background:#f4f6f1;border:0;border-radius:5px;padding:16px;gap:18px}.gear-figures span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.gear-figures strong{font-size:28px;margin:7px 0;color:#174d3c}.gear-figures small{color:#50675a}.gear-explanation{font-size:14px;line-height:1.65;margin-top:16px}.gear-suitability{border-top:4px solid #276b73!important}.gear-suitability:nth-child(2){border-top-color:#986318!important}.gear-suitability dt{font-size:13px;color:#596b60}.gear-suitability dd{font-size:15px;font-weight:700;color:#174d3c}.gear-tables details{background:white;border:1px solid #d6ded7;border-radius:7px;padding:8px 14px}.gear-tables summary{background:transparent;padding:12px 4px;color:#174d3c}.gear-chart th{background:#eaf0e9}.gear-chart tbody tr:nth-child(even){background:#f8faf5}.gear-instructions{border-radius:8px;border-color:#d6ded7;background:#fffdf8}.gear-instructions summary{font-size:15px;color:#174d3c}.preset-modified{font-size:13px;background:#fff8e7;border-left:3px solid #986318;padding:10px 12px;color:#664d23}@media(max-width:700px){.gear-options{grid-template-columns:1fr;padding:18px}.gear-setups fieldset{padding:18px}.gear-setups legend{font-size:20px}.gear-result-grid>section{padding:20px}#gear-results>h2{font-size:26px}.gear-result-grid .gear-verdict{font-size:19px}.gear-figures strong{font-size:25px}}
.gear-speed-section{background:#eee0bf;border-radius:8px;padding:22px;margin:26px 0}.gear-speed-section h2{font-size:25px;margin:0 0 10px}.gear-speed-section>p{font-size:14px;line-height:1.6;max-width:850px}.gear-speed-section .gear-options{margin:14px 0 0;padding:0}.gear-control-help{display:block;font-weight:400;font-size:13px;line-height:1.5;margin:6px 0 10px;color:#4f5e50}@media(max-width:700px){.gear-speed-section{padding:18px}}

.gear-rating-table{width:100%;border-collapse:collapse;background:#fff;margin:14px 0}.gear-rating-table th,.gear-rating-table td{padding:14px;text-align:left;vertical-align:top;border-bottom:1px solid #d7e0db}.gear-rating-table thead{background:#e9f0e9}.gear-rating-table th[scope=row]{width:24%}.gear-rating{display:inline-block;font-weight:700;padding:4px 10px;border-radius:5px}.gear-rating-strong{background:#dceee3;color:#164c30}.gear-rating-moderate{background:#f8e9bb;color:#64480b}.gear-rating-limited{background:#f8e0dc;color:#862c23}.gear-rating-note{display:block;font-size:14px;line-height:1.45;margin-top:8px}.gear-rating-intro{margin-bottom:10px}@media(max-width:600px){.gear-rating-table th,.gear-rating-table td{padding:9px 7px}.gear-rating-note{font-size:12px}.gear-rating{padding:3px 6px;font-size:13px}.gear-rating-table{min-width:0!important}}

.gear-visual{background:#fff;border:1px solid #c9d8ce;border-radius:8px;padding:14px 18px;margin:22px 0}.gear-visual summary{font-weight:700;color:#174d3c;cursor:pointer}.gear-visual>p{font-size:14px}.gear-visual-scroll{overflow-x:auto;padding:24px 16px 30px 0}.gear-visual-canvas{min-width:620px}.gear-visual-row,.gear-visual-axis{display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px}.gear-visual-axis{margin-bottom:25px;font-size:12px;color:#46594e}.gear-visual-axis>div{position:relative;border-bottom:1px solid #8da394;height:24px}.gear-visual-axis>div>span{position:absolute;transform:translateX(-50%)}.gear-visual-label{display:flex;flex-direction:column;font-size:12px;line-height:1.5}.gear-visual-track{position:relative;height:56px;border-top:2px solid #c9d8ce;margin-top:19px}.gear-visual-dot{position:absolute;top:-8px;transform:translateX(-50%);width:14px;height:14px;border:2px solid #fff;border-radius:50%;padding:0;cursor:pointer;background:#276b73}.gear-visual-dot.setup-b-dot{background:#986318}.gear-visual-cog{position:absolute;top:17px;left:50%;transform:translateX(-50%);font:11px Arial;color:#172a25}.gear-visual-tooltip{display:none;position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:#efd9a4;color:#172a25;padding:6px 9px;border-radius:4px;white-space:nowrap;font:12px Arial;z-index:3}.gear-visual-dot:hover .gear-visual-tooltip,.gear-visual-dot:focus .gear-visual-tooltip{display:block}.gear-visual-dot:focus{outline:2px solid #172a25;outline-offset:3px}@media print{.gear-visual{display:none!important}}

/* Reviewed compact calculator layout. */
#gearing-form{margin-top:18px}.gear-setups{gap:18px}.gear-setups fieldset{padding:18px 20px}.gear-setups legend{font-size:21px;padding:5px 10px}.gear-preset-panel{padding:12px 14px}.gear-preset-panel label{margin-top:6px}.gear-setups label{margin-top:12px}.gear-setups input,.gear-setups select,.gear-options input,.gear-options select{padding:9px 11px;min-height:44px}.gear-setups .help{margin:8px 0 12px;line-height:1.45}.teeth-row{margin:7px 0 12px;gap:8px}.teeth-row label{margin-top:0}.teeth-row input{margin-top:3px}.compare-toggle{padding:12px 16px;margin-bottom:14px}.gear-speed-section{padding:16px 18px;margin:18px 0}.gear-speed-section h2{font-size:23px}.gear-speed-section>p{margin:7px 0}.gear-speed-section .gear-options{gap:16px;margin-top:10px}.gear-control-help{margin:4px 0 7px}#gear-results{padding-top:0}#gear-results>h2{margin:22px 0 10px;font-size:28px}.gear-rating-intro{margin:7px 0;font-size:14px;line-height:1.5}.gear-rating-table{margin:10px 0}.gear-rating-table th,.gear-rating-table td{padding:11px 12px}.gear-rating-note{margin-top:5px}.gear-result-grid{gap:14px}.gear-result-grid>section{padding:18px}.gear-result-grid>section h3{font-size:20px;margin-bottom:10px}.gear-result-grid .gear-verdict{margin-bottom:11px;font-size:20px}.gear-figures{padding:11px 13px}.gear-explanation{margin-top:10px}.gear-visual{margin:16px 0;padding:12px 16px}.gear-tables details{margin:10px 0}.gear-instructions{margin:14px 0}.calculator-save{margin-top:24px}@media(max-width:700px){.gear-setups fieldset{padding:15px}.gear-speed-section{padding:15px}.gear-result-grid>section{padding:16px}.gear-rating-table th,.gear-rating-table td{padding:9px 7px}#gear-results>h2{font-size:25px}.gear-setups legend{font-size:19px}}

@media print{#calculator-print-report .gear-visual{display:block!important;break-inside:avoid;margin:10px 0;padding:10px;border:1px solid #a6b8ab}#calculator-print-report .gear-visual summary{display:block;font-size:12pt}#calculator-print-report .gear-visual-scroll{overflow:visible;padding:18px 10px 12px 0}#calculator-print-report .gear-visual-canvas{min-width:0;width:100%}#calculator-print-report .gear-visual-row,#calculator-print-report .gear-visual-axis{grid-template-columns:85px minmax(0,1fr);gap:8px}#calculator-print-report .gear-visual-tooltip{display:none!important}#calculator-print-report .gear-visual-label{font-size:9pt}#calculator-print-report .gear-visual-track{height:40px}#calculator-print-report .gear-visual-dot{print-color-adjust:exact;-webkit-print-color-adjust:exact}#calculator-print-report .gear-visual-cog{font-size:8pt}#calculator-print-report .gear-visual>p{font-size:9pt;margin:5px 0}}

/* Cog-shaped chart markers; labels and positions stay unchanged. */
.gear-visual-dot{width:18px;height:18px;top:-10px;border:0;border-radius:0;background:transparent!important}.gear-visual-dot::before{content:"";position:absolute;inset:0;background:#276b73;clip-path:polygon(40% 0,60% 0,64% 15%,74% 20%,88% 12%,100% 30%,88% 42%,88% 56%,100% 68%,88% 86%,74% 80%,64% 86%,60% 100%,40% 100%,36% 86%,26% 80%,12% 86%,0 68%,12% 56%,12% 42%,0 30%,12% 12%,26% 20%,36% 15%)}.gear-visual-dot::after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#fff;left:6px;top:6px}.gear-visual-dot.setup-b-dot::before{background:#986318}.gear-visual-cog{top:21px}.gear-visual-dot:focus{outline-offset:4px}@media print{#calculator-print-report .gear-visual-dot::before{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
