.tydd{max-width:900px!important;margin:24px auto!important;overflow:visible!important;color:#0f284d;font-family:'Segoe UI',Arial,sans-serif}.tydd *{box-sizing:border-box}.tydd-layout{display:grid;grid-template-columns:minmax(290px,355px) minmax(0,1fr);align-items:start;gap:18px}.tydd .leftinput,.tydd .rightresult{width:auto!important;float:none!important;max-width:none!important;margin:0!important}.tydd .tydd-input{padding:20px!important;border-radius:10px!important;background:#e1eff0!important;border:1px solid #b3c9d1!important;box-shadow:0 6px 22px rgba(15,40,77,.07)}.tydd .tydd-input h2{font-size:20px!important;margin:0 0 5px!important}.tydd .tydd-center{text-align:center}.tydd .tydd-muted{color:#536776;font-size:12px;line-height:1.5;margin:3px 0 11px}.tydd label{color:#0f284d;font-size:12px!important;font-weight:700!important;display:block;margin-bottom:5px}.tydd input,.tydd select{display:block;width:100%!important;min-width:0;height:42px!important;padding:8px 11px!important;border:1px solid #668495!important;border-radius:5px!important;background:#fff!important;color:#0f284d!important;font-size:15px!important;font-family:inherit}.tydd input:focus-visible,.tydd select:focus-visible,.tydd button:focus-visible,.tydd summary:focus-visible{outline:3px solid #3d9ecc!important;outline-offset:2px}.tydd .row-full{margin-bottom:12px}.tydd .row-flex{display:flex;gap:10px;margin-bottom:10px}.tydd .form-half{flex:1;min-width:0}.tydd .tydd-panel[hidden],.tydd [hidden]{display:none!important}.tydd .tydd-actions{display:flex;gap:9px;margin-top:15px}.tydd .tydd-actions button{flex:1;width:auto!important;min-height:42px;font-size:14px!important;font-weight:650;border-radius:5px!important}.tydd .tydd-error{display:block;color:#a52020;font-size:12px;line-height:1.3;margin:4px 0}.tydd [aria-invalid=true]{border-color:#b42318!important;background:#fffafa!important}.tydd .tydd-form-error{background:#fff0ef;color:#9b1c1c;padding:10px;font-size:12px;border-left:3px solid #b42318}.tydd .tydd-result{padding:0!important;min-width:0;background:transparent!important;scroll-margin-top:20px}.tydd .tydd-result>h2{padding:11px 12px!important;border-radius:7px 7px 0 0!important;font-size:18px!important;margin:0!important;background:#228b22!important;color:white!important;text-align:center}.tydd .tydd-placeholder{background:#f4f8f8;border:1px solid #d7e5e8;text-align:center;padding:22px 18px;border-radius:0 0 9px 9px;min-height:284px}.tydd .tydd-placeholder svg{display:block;width:210px;max-width:100%;margin:auto}.tydd .tydd-placeholder p{font-size:13px;color:#45606e;line-height:1.6}.tydd .tydd-hero{background:linear-gradient(135deg,#0f284d,#245379);padding:20px 14px;color:white;text-align:center}.tydd .tydd-hero strong{font-size:clamp(23px,3vw,31px);color:white;display:block;line-height:1.3;margin:8px 0}.tydd .tydd-eyebrow{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:#d7f0e0}.tydd .tydd-hero span:last-child{display:block;font-size:12px;color:#dbeaf1}.tydd .tydd-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.tydd .tydd-stat{background:#e1eff0;padding:11px;border-radius:7px;text-align:center}.tydd .tydd-stat span{display:block;font-size:11px;color:#4e6374}.tydd .tydd-stat strong{display:block;font-size:17px;line-height:1.4;color:#0f284d}.tydd .tydd-card{background:white;border:1px solid #d9e5e9;padding:13px;border-radius:8px;margin:10px 0;box-shadow:0 2px 8px rgba(15,40,77,.04)}.tydd .tydd-card h3{font-size:14px;margin:0 0 10px;color:#0f284d}.tydd .tydd-chart-row{display:flex;align-items:center;gap:17px}.tydd .tydd-donut{width:118px;height:118px;flex:0 0 118px;position:relative}.tydd .tydd-donut svg{width:100%;height:100%}.tydd .tydd-donut>div{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column}.tydd .tydd-donut strong{font-size:25px}.tydd .tydd-donut small{font-size:11px}.tydd .tydd-chart-text{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#506676}.tydd .tydd-chart-text strong{font-size:18px;color:#0f284d}.tydd .tydd-track{height:9px;background:#dfe9ec;border-radius:12px;overflow:hidden;margin-top:12px}.tydd .tydd-track span{display:block;height:100%;background:linear-gradient(90deg,#0f284d,#228b22);width:0}.tydd .tydd-track-label{display:flex;justify-content:space-between;font-size:10px;color:#667788;margin-top:5px}.tydd .tydd-milestone{display:grid;grid-template-columns:80px 1fr;gap:9px;border-top:1px solid #e5eef0;padding:9px 0;font-size:12px}.tydd .tydd-milestone b{color:#228b22}.tydd .tydd-milestone span{display:block;color:#536776;margin-top:2px}.tydd .tydd-details,.tydd .tydd-faq details{margin:10px 0;padding:11px;background:#eff5f6;border-radius:6px;font-size:12px}.tydd summary{font-weight:700;cursor:pointer}.tydd .tydd-details p{line-height:1.6}.tydd .tydd-tools{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.tydd .tydd-tools button{background:#0f284d;color:white;border:0;border-radius:5px;font-size:12px!important;padding:9px 12px;flex:1 1 75px;margin:0;cursor:pointer}.tydd .tydd-feedback{font-size:12px;min-height:16px;color:#216b29}.tydd .tydd-guide{margin-top:19px;padding:16px 19px;background:#fff;border:1px solid #dce5e9;border-radius:9px;line-height:1.65;font-size:13px}.tydd .tydd-guide h2{font-size:19px;color:#0f284d;margin:0 0 9px}.tydd .tydd-guide .tydd-faq p{margin:8px 0 0}.tydd .tydd-caution{border-left:4px solid #228b22;background:#eaf4ee;padding:10px;margin-bottom:0}@media(max-width:730px){.tydd-layout{grid-template-columns:1fr;gap:14px}.tydd .tydd-result{width:100%!important}.tydd .tydd-input{width:100%!important}.tydd .tydd-stats{grid-template-columns:1fr 1fr}.tydd .tydd-chart-row{gap:12px}.tydd .tydd-guide{padding:12px}}@media(max-width:350px){.tydd .tydd-stats{grid-template-columns:1fr}.tydd .tydd-chart-row{flex-direction:column;text-align:center}}@media print{body *{visibility:hidden!important}.tydd .tydd-result,.tydd .tydd-result *{visibility:visible!important}.tydd .tydd-result{position:absolute;left:0;top:0;width:100%!important;padding:20px!important}.tydd .tydd-tools,.tydd .tydd-feedback{display:none!important}.tydd .tydd-hero{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Same star-rating position and spacing as the original Calorie Calculator. */
.tydd .tydd-kkstar-ratings { text-align:center; margin:8px 0; width:100%; clear:both; }
.tydd .tydd-kkstar-ratings :is(button, input, select) { max-width:100%; }
