.tools-hub,.tool-page{max-width:1160px;margin:auto;padding:55px 30px 90px}.hub-heading{text-align:center;max-width:720px;margin:15px auto 50px}.hub-heading h1{font-size:clamp(43px,6vw,70px);letter-spacing:-.05em;line-height:1.05;margin:0}.hub-heading>p:last-child{font-size:21px;line-height:1.5;color:#6e6e73;margin:25px 0}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.tool-card{display:flex;flex-direction:column;gap:25px;padding:32px;background:#f5f5f7;border-radius:26px;min-height:310px;transition:transform .25s}.tool-card:hover{transform:translateY(-4px)}.tool-symbol{font-size:29px;font-weight:600;letter-spacing:-.045em}.tool-card h2{font-size:26px}.tool-card p{font-size:16px;line-height:1.55;color:#6e6e73;margin-bottom:10px}.tool-open{font-size:14px;margin-top:auto;display:flex;justify-content:space-between}.tool-page .back{margin-bottom:27px}.tool-heading{margin-bottom:32px;max-width:800px}.tool-heading h1{font-size:clamp(35px,4.5vw,52px);letter-spacing:-.045em;line-height:1.06;margin:0 0 18px}.tool-heading>p:last-child{font-size:18px;color:#6e6e73;line-height:1.5}.calculator-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:start}.form-panel,.result-panel{border-radius:24px;background:#f5f5f7;padding:30px;min-width:0}.result-panel{position:sticky;top:75px;background:#fff;border:1px solid #e5e5e8;min-height:260px}.form-title,.rows-heading{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:24px}.form-title h2,.rows-heading h2{font-size:21px;letter-spacing:-.025em}.rows-heading{margin:25px 0 15px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;min-width:0}.field>span{font-size:14px;line-height:1.4;font-weight:500}input,select,button{font:inherit}input,select{width:100%;min-width:0;border:1px solid #d2d2d7;border-radius:12px;background:#fff;color:#1d1d1f;min-height:48px;padding:12px;font-size:16px}input:focus,select:focus{outline:2px solid #888;outline-offset:2px}button{cursor:pointer}button:focus-visible{outline:2px solid #777;outline-offset:4px}.text-button{border:0;background:transparent;font-size:14px;padding:8px 0;text-decoration:underline;text-underline-offset:4px;color:#444;flex-shrink:0}.form-actions{display:flex;gap:12px;margin-top:25px;flex-wrap:wrap}.primary,.secondary{border-radius:100px;padding:12px 23px;min-height:46px;font-size:15px;border:1px solid #1d1d1f;background:#1d1d1f;color:#fff}.secondary{background:transparent;border-color:#d2d2d7;color:#1d1d1f}.primary:hover{background:#363638}.field-hint{font-size:13px;line-height:1.6;color:#666;margin:3px 0 18px}.ingredient{display:grid;grid-template-columns:1.2fr .75fr .75fr 35px;gap:10px;align-items:end;margin-bottom:12px}.ingredient .field{margin:0}.remove-row{width:34px;height:45px;border:0;background:transparent;font-size:22px;border-radius:8px;color:#555}.error{font-size:14px;color:#9b241e;line-height:1.5;background:#fff;border-radius:10px;padding:12px}.big-result{font-size:clamp(37px,5vw,57px);font-weight:650;letter-spacing:-.055em;line-height:1.12;overflow-wrap:anywhere;margin:15px 0 4px}.result-unit{font-size:15px;color:#666;margin:0 0 25px}.result-lines{display:grid;gap:0;margin:20px 0 0}.result-line{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-top:1px solid #eee;font-size:15px;line-height:1.5}.result-line>span:last-child{font-weight:600;text-align:right}.result-line>span:first-child{overflow-wrap:anywhere}.result-caption{font-size:13px;line-height:1.6;color:#666;margin:22px 0 0}.empty-result{padding:22px 0;color:#86868b}.empty-result>span{font-size:35px;font-weight:500}.empty-result p{font-size:18px;line-height:1.5}.tool-notes{max-width:760px;margin:50px auto 0;padding-top:28px;border-top:1px solid #e5e5e8}.tool-notes h2{font-size:24px}.tool-notes p{font-size:15px;line-height:1.8;color:#666}.tool-notes a{font-size:14px;text-decoration:underline;line-height:1.6}.day-block{border-top:1px solid #ddd;padding-top:20px;margin-bottom:22px}.day-block h3{font-size:19px;margin-bottom:15px}.meal-row{display:grid;grid-template-columns:1fr 80px;gap:12px}.meal-row .field{margin-bottom:10px}.plan-summary{font-size:14px;line-height:1.6}.plan-summary h3{font-size:17px;margin:23px 0 12px}#download{margin-top:24px}[hidden]{display:none!important}@media(max-width:900px){.tool-grid{grid-template-columns:1fr 1fr}.calculator-layout{grid-template-columns:1.2fr 1fr}.form-panel,.result-panel{padding:23px}.fields.three{grid-template-columns:1fr}.ingredient{grid-template-columns:1fr 1fr 35px}.ingredient>.field:first-child{grid-column:1/-1}.ingredient>.field:nth-child(2){grid-column:1}.remove-row{grid-column:3}}@media(max-width:700px){.tools-hub,.tool-page{padding:34px 20px 65px}.tool-grid{grid-template-columns:1fr}.tool-card{min-height:245px}.calculator-layout{grid-template-columns:1fr}.result-panel{position:static}.hub-heading{margin-top:20px}.hub-heading>p:last-child{font-size:18px}.form-title{align-items:center}.fields{gap:12px}.fields.three{grid-template-columns:1fr}.tool-notes{margin-top:35px}.ingredient{gap:8px}.tool-heading h1{font-size:37px}.primary,.secondary{padding:11px 20px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
