.app{height:100dvh;min-height:620px;display:flex;flex-direction:column}.topbar{height:80px;flex-shrink:0;justify-content:space-between;padding:0 33px;border-bottom:1px solid #e0e5dc;background:#fff}.graphing-brand,.topbar{display:flex;align-items:center}.brand-divider{height:24px;width:1px;background:#d9dfd7;margin:0 9px 0 15px}.graphing-brand h1{margin:0;text-transform:uppercase;font:500 10px DM Sans,sans-serif;letter-spacing:1.8px;color:#7d897f}.top-actions{gap:22px}.local-badge,.top-actions{display:flex;align-items:center}.local-badge{font-size:11px;color:#748278;gap:7px}.live-dot,.local-badge i{width:6px;height:6px;background:#6b9780;border-radius:50%;display:inline-block}.icon-button{min-width:40px;min-height:40px;justify-content:center;border:0;background:none;color:#77867b}.export-button,.icon-button{align-items:center;display:flex}.export-button{border:1px solid #d9e0d6;background:#fff;padding:10px 15px;border-radius:6px;gap:9px;font-size:12px;font-weight:600}.export-button:hover{background:#f1f5ef}.workspace-bar{height:66px;justify-content:space-between;padding:0 30px;border-bottom:1px solid #dde3d9;background:#f9faf7;flex-shrink:0}.document-title,.workspace-bar{display:flex;align-items:center}.document-title{gap:12px}.document-icon{color:#89977d;font-size:20px}.document-title input{border:0;background:none;font-weight:550;color:#33473a;width:190px;font-size:14px}.version{font-size:8px;letter-spacing:1.1px;color:#91a087;border:1px solid #dfe6d9;padding:4px 6px;border-radius:3px}.save-status{font-size:10px;color:#91a087}.save-status>span{color:#6e9478;margin-right:5px}.app main{flex:1 1;min-height:0;display:flex}.sidebar{width:365px;min-width:300px;border-right:1px solid #dce3d8;background:#fff;display:flex;flex-direction:column;position:relative;z-index:2;resize:horizontal;overflow:auto;max-width:50vw}.panel-tabs{height:62px;flex-shrink:0;display:flex;align-items:center;padding:0 21px;gap:22px;border-bottom:1px solid #e5e9e1}.panel-tabs>button{height:100%;font-size:12px;border:0;background:none;padding:0;color:#99a194;position:relative}.panel-tabs>button.selected{color:#2b5143;font-weight:650}.panel-tabs>button.selected:after{content:"";position:absolute;height:2px;background:#2c6956;bottom:0;left:0;right:0}.panel-tabs button span{font-size:9px;background:#edf2e9;border-radius:3px;padding:2px 5px;margin-left:6px}.undo-actions{margin-left:auto;display:flex;gap:9px}.undo-actions button{background:none;border:0;font-size:21px;color:#8a9688;padding:0}.expression-list{overflow-y:auto;min-height:160px;flex:1 1}.expression-row{display:flex;border-bottom:1px solid #edf0e8;position:relative;min-height:106px;padding:23px 14px 17px 18px}.expression-index{font-size:9px;color:#a1ac9b;padding-top:8px;margin-right:16px;font-family:monospace}.expression-body{min-width:0;flex:1 1}.expression-entry{display:flex;align-items:center;gap:12px}.color-toggle{border:0;background:color-mix(in srgb,var(--curve) 10%,white);border-radius:50%;color:var(--curve);width:29px;height:29px;font-size:27px;font-family:serif;line-height:22px;flex-shrink:0;padding:0}.expression-entry input{min-width:0;width:100%;border:0;font-family:Georgia,serif;font-size:21px;color:#33483c;letter-spacing:.1px;padding:5px 0;background:none}.expression-entry input::placeholder{font-family:DM Sans,sans-serif;font-size:14px;color:#b0b8aa;letter-spacing:0}.delete{background:none;border:0;color:#a4ac9e;font-size:20px;opacity:0;padding:3px}.delete:focus-visible,.expression-row:hover .delete{opacity:1}.evaluation,.expression-hint{font-size:9px;margin:10px 0 0 41px;color:#a5ae9d}.evaluation{font-family:monospace;font-size:12px;color:#5b7162}.row-tools{display:flex;position:absolute;bottom:9px;right:14px;gap:8px;opacity:0}.expression-row:focus-within .row-tools,.expression-row:hover .row-tools{opacity:1}.row-tools input{border:0;width:18px;height:18px;padding:0;background:none;cursor:pointer}.row-tools button{background:none;border:0;padding:0;color:#9ba494}.row-tools svg{width:13px;height:13px}.error{color:#bb5c4e;font-size:11px;line-height:1.5;margin:10px 4px 10px 41px}.invalid{background:#fffaf7}.add-expression{border:1px dashed #dfe6d7;background:none;margin:19px;width:calc(100% - 38px);padding:13px;display:flex;align-items:center;gap:10px;font-size:11px;border-radius:5px;color:#74896c}.add-expression:hover{background:#f8faf4}.add-expression kbd{margin-left:auto;color:#a5b09c;font-size:15px}.sidebar-bottom{padding:22px 20px 0;background:#fff}.small-label{font-size:8px;letter-spacing:1.8px;color:#9ba68f;font-weight:600}.examples{display:flex;gap:8px;margin:12px 0 25px}.examples button{background:#f7f9f3;border:1px solid #e7ecdf;border-radius:4px;padding:7px 14px;color:#6d805d;font-family:Georgia,serif;font-size:12px}.keyboard{padding:14px 12px 12px;border-radius:7px;background:#f4f6f0;border:1px solid #e6ebde}.keyboard-top{display:flex;justify-content:space-between;font-size:9px;color:#8b987f;margin-bottom:12px}.keyboard-top span:last-child{font-family:Georgia,serif;font-style:italic}.keys{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.keys button{height:32px;background:#fff;border:1px solid #e3e8db;border-bottom:2px solid #dce2d2;border-radius:4px;font-family:Georgia,serif;font-size:13px;color:#4b6040}.keys button:hover{background:#e9efe0}.keys button:nth-child(6n+4),.keys button:nth-child(6n+5),.keys button:nth-child(6n+6){background:#eaf0e2}.privacy{font-size:9px;display:flex;gap:8px;align-items:center;justify-content:center;color:#9aa78c;padding:18px 0}.privacy span{font-size:14px}.graph{position:relative;flex:1 1;min-width:0;overflow:hidden;background:#fcfdfb}.graph canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.graph canvas:active{cursor:grabbing}.graph-label{position:absolute;top:23px;left:26px;font-size:8px;letter-spacing:1.7px;color:#899480;display:flex;align-items:center;gap:9px;pointer-events:none;background:#fcfdfbd9;padding:6px 9px;border-radius:4px}.graph-label>span:last-child{border-left:1px solid #d5dece;padding-left:11px;margin-left:4px;letter-spacing:.5px;font-size:9px}.live-dot{width:4px;height:4px;background:#8f9d80}.graph-controls{position:absolute;right:24px;top:24px;display:flex;flex-direction:column;align-items:center;background:white;border:1px solid #dfe5d9;border-radius:7px;box-shadow:0 3px 8px #344c3210;padding:4px}.graph-controls button{border:0;background:none;width:40px;height:40px;display:grid;place-items:center;color:#6d7b63;border-radius:4px}.graph-controls button:hover{background:#f0f4e9}.control-separator{height:1px;width:23px;background:#e6eadf;margin:3px}.graph-bottom{position:absolute;bottom:20px;left:24px;right:24px;display:flex;justify-content:space-between;pointer-events:none;gap:12px}.angle-mode,.coordinates{background:#fcfdfbe8;color:#8c9880;font-size:9px;border:1px solid #e1e7d8;border-radius:4px;padding:8px 10px;display:flex;align-items:center;gap:8px;font-family:monospace}.coordinates b{font-weight:400;color:#5f7652}.angle-mode>span,.coordinates>span:empty{width:1px;height:10px;background:#d5ddcc;margin:0 3px}.angle-mode{font-size:8px;letter-spacing:.7px}.settings-popover{position:absolute;right:75px;top:24px;background:white;border:1px solid #dce4d5;border-radius:8px;padding:20px;box-shadow:0 10px 30px #253d2420;width:220px}.settings-popover h2{font-size:14px;margin:0 0 18px}.settings-popover label{display:flex;justify-content:space-between;margin:14px 0;font-size:12px}.settings-popover input{accent-color:#207e72}.settings-popover button{width:100%;border:1px solid #dbe3d2;background:#f5f8ef;padding:9px;border-radius:4px;margin-top:10px;font-size:11px}.app footer{height:39px;flex-shrink:0;background:#f5f7f0;border-top:1px solid #e0e6d7;justify-content:space-between;padding:0 25px;color:#9aa48e;font-size:9px}.app footer,.app footer>span{display:flex;align-items:center}.app footer>span{gap:8px}.footer-dot{width:4px;height:4px;background:#a4b396;border-radius:50%}.app footer b{font-weight:400;color:#bfcaaf}.footer-orbit{margin-left:28px;font-size:8px;letter-spacing:1.2px;color:#728567}.mobile-toggle{display:none}.help-modal{background:#fcfdf8;color:#243e35;border:0;width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:42px;border-radius:14px;box-shadow:0 20px 80px #0e261f35}.help-modal::backdrop{background:#142d2360}.help-modal h2{font:500 28px Georgia,serif;margin:20px 0}.help-modal p{font-size:13px;line-height:1.9;color:#74816a}.help-modal code{font-family:monospace;background:#eef2e6;padding:2px 4px;color:#426744;border-radius:3px}.modal-close{position:absolute;right:18px;top:13px;background:none;border:0;font-size:26px;color:#56684d;min-width:44px;min-height:44px}.help-note{border-top:1px solid #e0e6d6;padding-top:14px}.primary{background:#245844;color:#fff;border:0;border-radius:5px;padding:12px 17px;font-size:12px;margin-top:12px}.values-panel{padding:25px}.values-panel h2{font:22px Georgia,serif}.values-panel p{color:#879579;font-size:12px;line-height:1.6}.value-input{display:flex;align-items:center;gap:10px;font-family:Georgia,serif;margin:24px 0}.value-input input{width:100%;padding:10px;border:1px solid #dfe7d3;border-radius:4px;background:#fafcf6}.value-row{display:flex;justify-content:space-between;gap:12px;padding:18px 0;border-top:1px solid #e7ecdf;font-family:Georgia,serif}.value-row strong{font-family:monospace;font-weight:400}.empty{font-size:12px;line-height:1.8;color:#8b987f;padding:0 22px}@media (min-width:1500px){.sidebar{width:400px}.expression-row{min-height:118px}.topbar{height:86px}.keyboard .keys button{height:38px}}@media (max-height:850px) and (min-width:701px){.sidebar-bottom{padding-top:15px}.keyboard .keys button{height:27px}.examples{margin-bottom:16px}.expression-row{min-height:94px;padding-top:18px}.privacy{padding:13px 0}.app{min-height:560px}}@media (max-width:900px){.sidebar{width:320px}.brand-divider,.version{display:none}.graphing-brand{align-items:flex-start;flex-direction:column;gap:4px}.graphing-brand h1{letter-spacing:.7px}.topbar{padding:0 20px}.top-actions{gap:8px}.local-badge{display:none}.workspace-bar{padding:0 20px}.save-status{max-width:210px}.graph-label{left:12px}.graph-bottom{left:12px;right:12px}.coordinates{font-size:8px}.angle-mode,.app footer>span:last-child{display:none}}@media (max-width:700px){.app{height:100dvh;min-height:650px}.topbar{height:63px}.brand{font-size:27px}.brand-mark{font-size:40px}.export-button{min-height:44px;font-size:12px;padding:8px 10px}.workspace-bar{height:57px;padding:0 16px}.document-title{min-width:0}.document-title input{width:min(150px,42vw);min-width:0;font-size:16px}.save-status{display:none}.mobile-toggle{display:block;background:none;border:0;min-height:44px;padding-inline:8px;font-size:13px;color:#475d3f}.document-icon{display:none}.app main{flex-direction:column-reverse}.graph{min-height:230px;flex:1 1}.sidebar{width:100%;max-width:100%;min-width:0;height:42%;min-height:250px;border-right:0;border-top:1px solid #dce3d8;resize:none;overflow-y:auto}.sidebar .expression-list{flex:none;overflow:visible}.sidebar-bottom{padding-bottom:16px}.panel-tabs{height:45px;padding:0 20px}.expression-row{min-height:82px;padding-top:14px;padding-bottom:12px}.expression-entry input{font-size:20px}.expression-hint{margin-top:5px}.delete{opacity:1;min-width:36px;min-height:36px}.row-tools{position:static;justify-content:flex-end;align-items:center;opacity:1}.row-tools button,.row-tools input{width:32px;height:32px}.add-expression{margin:12px 20px;padding:10px}.graph-label{top:13px;font-size:7px}.graph-controls{right:13px;top:13px}.graph-bottom{bottom:11px}.coordinates{font-size:8px}.panel-hidden .sidebar{display:none}.help-modal{padding:28px}.help-modal h2{font-size:25px}.app footer{height:30px;font-size:8px;padding:0 16px}.values-panel{padding:10px 20px}.values-panel h2{font-size:18px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}