/* Shared calculator controls; no changes to notebook rendering. */
.calculator-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;max-width:100%}
.calculator-actions button,.bayes-actions .calculator-clear{white-space:nowrap;min-height:44px}
.calculator-actions .calculator-clear,.bayes-actions .calculator-clear{font:inherit;font-weight:500;line-height:1.4;padding:10px 16px;min-height:48px;color:var(--primary-dark);background:#fff;border:1px solid #b8cbdc;border-radius:7px;cursor:pointer}
.calculator-actions .calculator-clear:hover,.bayes-actions .calculator-clear:hover{background:#e8f0f7;color:var(--primary-dark)}
.calculator-clear:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.fraction-widget .calculator-actions{margin-top:25px}
.fraction-widget .calculator-actions .decimal-primary{margin-top:0}
.unified-calculator-page .input-group{flex-wrap:wrap}
.theory-card.inline-theory h2:first-of-type,.theory-card.multiplication-theory h2:first-of-type{display:flex;align-items:flex-start;gap:10px}
.theory-card.inline-theory h2:first-of-type::before,.theory-card.multiplication-theory h2:first-of-type::before{content:"";display:block;width:30px;height:30px;flex:0 0 30px;background:url('/static/img/theory-book.svg') center/contain no-repeat;margin-top:1px}
@media(max-width:640px){.calculator-actions{flex:1 1 100%;width:100%;margin-top:4px}.calculator-actions button{flex:1 1 0;min-width:0;width:auto!important;white-space:normal;overflow-wrap:anywhere;padding:10px 8px}.fraction-widget .calculator-actions{margin-top:4px}.bayes-actions .calculator-clear{flex:1 1 auto}.theory-card.inline-theory h2:first-of-type::before,.theory-card.multiplication-theory h2:first-of-type::before{width:26px;height:26px;flex-basis:26px}}

/* Shared soft corners for interactive controls, not notebook cells. */
.unified-calculator-page .calculator-actions button,.unified-calculator-page .bayes-actions button,.unified-calculator-page .decimal-nav button,.unified-calculator-page .navigation button,.unified-calculator-page .decimal-operation-trigger{border-radius:12px}
