/* Calculators, function plotting and calendar arithmetic share the app palette. */
.sidebar #category-nav{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0;padding-right:3px}.sidebar-bottom{flex-shrink:0}.math-local{font-size:11px;background:var(--mint);color:var(--green-dark);padding:8px 12px;border-radius:20px;white-space:nowrap}.math-mark{font-size:24px}.math-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;min-width:0}.math-card-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;font-size:10px;letter-spacing:1.6px;color:#74867b;margin-bottom:20px}.math-card-bar button{font-size:12px;letter-spacing:0;color:var(--green)}.math-card-bar label{display:flex;align-items:center;gap:8px;letter-spacing:0}.math-card select,.math-card input[type=number],.math-card input[type=date]{border:1px solid #dbe6df;background:#f8faf8;color:var(--ink);border-radius:8px;padding:10px;min-width:0;max-width:100%}.math-card select{padding:6px 8px}.math-note{font-size:12px;line-height:1.9;color:#6c8074;margin:16px 0 0;overflow-wrap:anywhere}.math-error{font-size:12px;color:#ad5838;background:#fff5ee;border-radius:8px;padding:10px 12px;line-height:1.8;overflow-wrap:anywhere;margin:12px 0}.math-primary{border-radius:9px;color:#fff;background:var(--green);padding:13px 20px;font-weight:550;width:100%;margin-top:20px}.math-primary:hover{background:var(--green-dark);color:white}.math-check{display:flex;align-items:center;gap:8px;font-size:12px;color:#61766a;margin-top:18px}.math-check input{accent-color:var(--green);width:16px;height:16px}.math-empty{color:#82958a;font-size:12px;line-height:2;padding:45px 5px}.calculator-layout{display:grid;grid-template-columns:minmax(300px,560px) minmax(220px,1fr);gap:22px;align-items:start}.math-input-label{font-size:11px;color:#6c8175;display:block}.calc-expression{width:100%;border:0;border-bottom:1px solid var(--line);padding:13px 0;background:transparent;font:22px/1.7 ui-monospace,monospace;color:var(--ink);letter-spacing:-.5px}.calc-expression::placeholder{font:13px var(--font);letter-spacing:0;color:#8d9b92}.calc-result{display:block;text-align:right;overflow-wrap:anywhere;min-height:95px;padding:20px 0;font:500 42px/1.3 var(--font);letter-spacing:-1px;color:var(--green-dark);user-select:text}.calc-memory{display:flex;align-items:center;gap:4px;margin:0 0 14px;flex-wrap:wrap}.calc-memory button{padding:9px 10px;font-size:12px;color:#557761;border-radius:6px}.calc-memory button:hover{background:var(--mint)}.calc-memory button:last-child{margin-left:auto}.calc-memory button:disabled{opacity:.5}.standard-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.standard-keys button,.scientific-keys button{background:#f2f6f3;border:1px solid #e5ece6;border-radius:9px;height:52px;font-size:18px;transition:background .15s}.standard-keys button:hover,.scientific-keys button:hover{background:#e3f1e7}.standard-keys .calc-number{background:white;font-weight:550}.standard-keys .calc-operator{background:#eaf5ed;color:var(--green-dark);font-size:23px}.standard-keys .calc-equals{background:var(--green);color:white;border-color:var(--green)}.standard-keys .calc-equals:hover{background:var(--green-dark)}.scientific-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-bottom:15px;border-bottom:1px solid var(--line);margin-bottom:15px}.scientific-keys button{height:39px;font-size:13px;color:#4c7460}.calc-history .section-title button{font-size:12px;color:var(--green)}.calc-history-row{display:grid;gap:9px;text-align:right;border-bottom:1px solid var(--line);padding:18px 0;width:100%;overflow-wrap:anywhere}.calc-history-row small{font-size:10px;color:#8a9b8f}.calc-history-row span{font:13px/1.7 ui-monospace,monospace;color:#6b8074}.calc-history-row strong{font-size:22px;font-weight:500;color:var(--green-dark)}#calc-history-list{max-height:660px;overflow:auto;scrollbar-width:thin}#calc-memory-status{font-size:10px;letter-spacing:0;max-width:110px;overflow-wrap:anywhere}.graph-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:20px;align-items:start}.graph-settings{padding:20px}.graph-function{display:flex;gap:9px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font:14px ui-monospace,monospace}.graph-function span{font-weight:600;white-space:nowrap}.graph-function input{width:100%;min-width:0;border:0;background:none;padding:8px 0;color:var(--ink);font:14px ui-monospace,monospace}.graph-function input::placeholder{font-size:11px}.graph-presets{display:flex;gap:6px;flex-wrap:wrap;margin:17px 0}.graph-presets button{font-size:10px;color:#547960;border:1px solid #dce8df;padding:7px;border-radius:6px}.math-section-label{font-size:11px;color:#5e7968;margin:22px 0 12px}.graph-bounds{display:grid;grid-template-columns:1fr 1fr;gap:12px}.graph-bounds label,.date-offsets label{display:grid;gap:8px;color:#718679;font-size:11px}.graph-bounds input{width:100%;font-size:13px}.graph-card{padding:18px;overflow:hidden}.graph-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:#63816e;margin-bottom:14px}.graph-toolbar>div{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.graph-toolbar button{font-size:10px;background:#f0f6f1;border-radius:6px;padding:8px}.graph-toolbar button[aria-label]{font-size:18px;padding:2px 9px}#function-graph{display:block;width:100%;height:auto;aspect-ratio:9/5;touch-action:pan-y}.graph-readout{display:block;padding:13px 10px;background:#f2f7f3;border-radius:8px;font:11px/1.8 ui-monospace,monospace;color:#507c62;min-height:46px;overflow-wrap:anywhere}.date-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.date-card h3{font-size:20px;font-weight:550;margin:0}.date-card>.math-note{margin-top:10px}.date-field{display:grid;gap:10px;margin-top:22px;color:#6d8274;font-size:12px}.date-field input,.date-field select{width:100%;font-size:16px!important;min-height:44px}.date-offsets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.date-offsets input{width:100%}.date-answer{background:#edf7ef;border:1px solid #dbeade;border-radius:12px;padding:24px 18px;margin-top:24px}.date-answer output{display:block;color:var(--green-dark);font:500 31px/1.4 var(--font);overflow-wrap:anywhere}.date-answer p{font-size:12px;line-height:1.8;color:#6b8771;margin:10px 0 0}
@media(min-width:1500px){.graph-layout{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:1200px){.graph-layout{grid-template-columns:1fr}.graph-settings{display:block}.graph-function{max-width:100%}.graph-bounds{grid-template-columns:repeat(4,minmax(0,1fr))}.calculator-layout{grid-template-columns:minmax(280px,1.2fr) minmax(200px,1fr);gap:16px}.date-layout{gap:16px}.date-card{padding:20px}}
@media(max-width:900px){.date-layout{grid-template-columns:1fr}.calculator-layout{grid-template-columns:1fr}.calc-history{padding:20px}#calc-history-list{max-height:260px}.calc-history-row{padding:13px 0}.calc-history-row strong{font-size:20px}}
@media(max-width:760px){.math-card{padding:18px}.math-local{font-size:10px;padding:7px 9px}.math-card-bar{margin-bottom:15px}.calc-expression{font-size:20px}.calc-result{font-size:36px;min-height:85px}.standard-keys{gap:6px}.standard-keys button{height:50px}.scientific-keys button{height:38px}.calc-memory button{padding:8px;font-size:11px}.graph-bounds{grid-template-columns:repeat(2,minmax(0,1fr))}.graph-function input{font-size:16px}.graph-card{padding:10px}#function-graph{min-height:210px}.graph-toolbar{padding:6px;gap:10px}.graph-toolbar button{font-size:10px}.graph-readout{font-size:10px}.graph-settings input[type=number],.date-offsets input{font-size:16px}.date-answer output{font-size:29px}.date-offsets{gap:9px}.math-note{font-size:11px}.sidebar{padding-top:24px}.sidebar-bottom{padding-top:12px;padding-bottom:8px}.nav-search{margin-top:23px;margin-bottom:17px}}
.nav-math-mark{display:inline-grid;place-items:center;width:18px;height:18px;font-size:19px;flex-shrink:0}.standard-keys .calc-equals{grid-column:span 2}
