.lekhan-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:start}
.lekhan-layout>*{min-width:0}
@media(min-width:700px){.lekhan-notebook{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.lekhan-notebook>*{grid-column:1/-1;min-width:0}.lekhan-notebook>.naam-mala{grid-column:auto;margin-bottom:0;padding:18px 12px;display:flex;flex-direction:column;align-items:center}.lekhan-notebook>.naam-mala canvas{max-width:300px;margin:10px auto}.lekhan-notebook>.naam-mala h3{font-size:27px}.lekhan-notebook>.naam-mala p{font-size:12px;margin:8px 0}.lekhan-notebook>.naam-mala button{margin-top:auto;font-size:12px;max-width:100%;white-space:normal}.lekhan-notebook>.naam-mala .lekhan-help{font-size:11px}.lekhan-notebook-heading{margin-bottom:0}.lekhan-notebook>.naam-mala>p:first-of-type{min-height:2.8em}.lekhan-notebook>.naam-mala>h3+p{min-height:5.4em}}
.naam-rangoli{background:radial-gradient(circle at center,#fff2d3,#fffaf1 70%)}.naam-rangoli canvas{aspect-ratio:20/23;max-width:500px}.naam-rangoli button{max-width:100%;white-space:normal}
.naam-mala{padding:22px 16px;margin-bottom:24px;border:1px solid #d7b88b;border-radius:16px;background:radial-gradient(ellipse at 50% 40%,#f7e6bf,#fffcf4 70%);text-align:center}.naam-mala h3{font:32px "Nirmala UI",Mangal,serif;color:#854021;margin:10px 0}.naam-mala p{font-size:13px;line-height:1.8;color:#795739}.naam-mala canvas{display:block;width:100%;max-width:460px;height:auto;margin:16px auto;aspect-ratio:9/10}.naam-mala button{min-height:44px;padding:11px 18px;border:1px solid #ac703c;border-radius:8px;background:#894323;color:#fff4dd;font:inherit;cursor:pointer}.naam-mala button:disabled{opacity:.45;cursor:default}.naam-mala button:focus-visible{outline:3px solid #ab6a2c;outline-offset:3px}
.ram-community{margin:22px 0;padding:24px;border:1px solid #b98b4f;border-radius:14px;background:radial-gradient(circle at 100% 0,#c89b5240,transparent 70%),#713a24;color:#ffefcf}
.ram-community small{color:#f4d398;font-size:13px;line-height:1.8}
.ram-community strong{display:block;font:400 clamp(36px,6vw,54px)/1.4 Georgia,serif;font-variant-numeric:tabular-nums;color:#fff3db;margin:6px 0}
.ram-community p{font-size:12px;line-height:1.8;color:#f2d7ae;margin:8px 0 0}
.ram-community p.ram-community-note{font-size:10px;color:#e6c79b;border-top:1px solid #deb47a50;padding-top:12px;margin-top:14px}
.ram-community button{min-height:44px;padding:9px 13px;margin-top:12px;border:1px solid #e5be84;border-radius:7px;background:#fff2db;color:#783d20;font:12px system-ui,sans-serif;cursor:pointer}
.ram-community button[hidden]{display:none}
.lekhan-workspace[hidden],.lekhan-mode~[hidden],.lekhan-typed[hidden],[data-lekhan-restore][hidden]{display:none}
.lekhan-intention{display:flex;gap:22px;align-items:center;padding:27px;border:1px solid #d8bb8b;border-radius:15px;background:linear-gradient(130deg,#f7e5c3,#fff9eb)}
.lekhan-intention>span{font:58px/1.3 "Nirmala UI",Mangal,serif;color:#9d4b21;flex-shrink:0}
.lekhan-intention small{font-size:10px;color:#99632b;letter-spacing:.1em;text-transform:uppercase}
.lekhan-intention h2{font-size:26px;line-height:1.4;margin:8px 0;color:#6c3920}
.lekhan-intention p{font-size:12px;line-height:1.8;margin:0}
.lekhan-mode{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 15px}
.lekhan-mode button,.lekhan-writing-actions button,.lekhan-page-actions button{min-height:44px;padding:10px 15px;border:1px solid #ccac7e;border-radius:8px;background:#fff9eb;color:#713e20;font:12px/1.5 system-ui,sans-serif;cursor:pointer}
.lekhan-mode button[aria-pressed="true"]{background:#783c25;color:#fff2d9;border-color:#783c25}
.lekhan-writing-actions .button.primary,.lekhan-typed .button.primary{background:#a94b22;color:#fff}
.lekhan-canvas-wrap{position:relative;isolation:isolate;background:repeating-linear-gradient(0deg,#b8924c17 0px,#b8924c17 1px,transparent 1px,transparent 33.333%),#fffdf6;border:1px solid #c9a675;border-radius:12px;overflow:hidden}
#lekhan-canvas{position:relative;z-index:1;display:block;width:100%;height:auto;aspect-ratio:3;touch-action:none;cursor:crosshair}
.lekhan-guide{position:absolute;inset:0;display:grid;place-items:center;color:#a76a2c19;font:clamp(65px,10vw,140px)/1.3 "Nirmala UI",Mangal,serif;pointer-events:none}
.lekhan-writing-actions,.lekhan-page-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0}
.lekhan-writing-actions .button.primary{margin-left:auto}
.lekhan-writing-actions button:disabled,.lekhan-page-actions button:disabled{opacity:.45;cursor:default}
.lekhan-help{font-size:12px;line-height:1.8;color:#77573b;margin:10px 0}
.lekhan-typed{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px;padding:22px;border:1px solid #d4b58a;border-radius:12px;background:#fff9ed}
.lekhan-typed label{font-size:13px;color:#754622;min-width:0}
.lekhan-typed input{display:block;width:100%;min-width:0;min-height:54px;margin-top:8px;padding:10px 15px;border:1px solid #c9a675;border-radius:7px;background:#fffdf7;color:#86441e;font:24px/1.5 "Nirmala UI",Mangal,system-ui,sans-serif}
.lekhan-typed p{grid-column:1/-1;font-size:12px;margin:0}
.lekhan-status{min-height:1.7em;margin:16px 0;font-size:12px;color:#84491f;line-height:1.8}
.lekhan-notebook{margin-top:25px;padding:25px;border:1px solid #d7b88b;border-radius:15px;background:#fffcf4}
.lekhan-notebook-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-bottom:20px}
.lekhan-notebook-heading h2{font-size:28px;margin:5px 0}
.lekhan-notebook-heading p{font-size:12px;margin:5px 0}
.lekhan-notebook-heading .eyebrow{font-size:9px;color:#9c622a;letter-spacing:.1em}
.lekhan-notebook-heading label{font-size:11px;color:#795537;max-width:100%}
.lekhan-notebook-heading select{display:block;width:100%;max-width:100%;min-height:44px;padding:8px 24px 8px 10px;margin-top:5px;border:1px solid #ceb083;border-radius:7px;background:#fff9eb;color:#633d22;font:12px system-ui,sans-serif}
.lekhan-sheet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #e2cfad;border-left:1px solid #e2cfad;background:#fffaf0}
.lekhan-cell{position:relative;display:grid;place-items:center;min-width:0;aspect-ratio:2.4;border-right:1px solid #e2cfad;border-bottom:1px solid #e2cfad;padding:12px 8px}
.lekhan-cell>span{font:clamp(24px,4vw,38px)/1.5 "Nirmala UI",Mangal,serif;color:#9b4c25}
.lekhan-cell canvas{display:block;width:100%;height:auto;aspect-ratio:3}
.lekhan-cell small{position:absolute;left:5px;top:3px;font:9px system-ui,sans-serif;color:#b19670}
.lekhan-cell.empty{background:#f7efd95c}
.lekhan-storage{font-size:12px;line-height:1.9;margin:20px 0;color:#775437}
.lekhan-about{padding:25px;border:1px solid #dcc196;border-radius:14px;background:#f5e7cd;position:sticky;top:115px}
.lekhan-about h2{font-size:27px;line-height:1.35;margin:12px 0}
.lekhan-about h3{font-size:15px;margin:25px 0 10px}
.lekhan-about .eyebrow{font-size:10px;color:#9e622b}
.lekhan-about p,.lekhan-about ol{font-size:13px;line-height:1.9}
.lekhan-about ol{padding-left:18px}
.lekhan-about li+li{margin-top:8px}
.lekhan-about a{color:#8c4521}
.lekhan-nojs{padding:24px;border:1px solid #c8a36d;background:#fff4df;margin-bottom:40px}
@media(max-width:1000px){.lekhan-layout{grid-template-columns:minmax(0,1fr)}.lekhan-about{position:static}}
@media(max-width:600px){.lekhan-intention{padding:22px;gap:15px}.lekhan-intention>span{font-size:44px}.lekhan-intention h2{font-size:23px}.lekhan-writing-actions .button.primary{margin-left:0;flex-basis:100%}.lekhan-notebook{padding:18px 13px}.lekhan-notebook-heading h2{font-size:26px}.lekhan-notebook-heading label{width:100%}.lekhan-notebook-heading select{font-size:16px}.lekhan-typed{grid-template-columns:minmax(0,1fr);padding:18px}.lekhan-cell{aspect-ratio:2;padding:12px 4px}.lekhan-cell>span{font-size:26px}.lekhan-page-actions{align-items:stretch}.lekhan-page-actions button{flex:1 1 130px}.lekhan-about{padding:23px}}
@media print{.site-header,.site-footer,.lekhan-intention,.lekhan-mode,[data-lekhan-draw],.lekhan-typed,.lekhan-status,.lekhan-page-actions,.lekhan-storage,.lekhan-about,.mobile-tools{display:none!important}.lekhan-layout{display:block}.lekhan-notebook{border:0;padding:0}.lekhan-notebook-heading label{display:none}.lekhan-sheet{break-inside:avoid}}
