
body{margin:0;font-family:"Segoe UI",Tahoma,sans-serif;background:#f7f9ff;color:#223;direction:rtl}
.nb-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}
.nb-side{background:#fff;border-left:1px solid #dfe6fb;padding:16px;overflow:auto}
.nb-side h1{margin:0 0 8px;font-size:26px;color:#224a88}
.nb-side p{font-size:15px;color:#567;margin:0 0 14px}
.nb-list{display:flex;flex-direction:column;gap:8px}
.nb-item{border:none;background:#eef4ff;border-radius:14px;padding:10px 12px;text-align:right;font-size:16px;cursor:pointer;font-weight:700;color:#244}
.nb-item.active{background:linear-gradient(135deg,#6da8ff,#8be9ff);color:#fff}
.nb-main{padding:16px;display:flex;flex-direction:column;gap:14px}
.nb-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff;padding:12px 14px;border-radius:18px;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.nb-top a{background:#eef4ff;color:#234;padding:10px 14px;border-radius:12px;text-decoration:none;font-weight:700}
.nb-title{font-size:24px;font-weight:900;color:#a03d6b}
.nb-tools{display:flex;gap:8px;flex-wrap:wrap}
.nb-tools button,.nb-tools input,.nb-tools select{font-size:15px;padding:8px 10px;border-radius:12px;border:1px solid #c7d4f7;background:#fff}
.nb-paper{background:#fff;border-radius:22px;box-shadow:0 14px 30px rgba(0,0,0,.08);padding:18px}
.nb-paper .lined{width:100%;min-height:260px;border:none;outline:none;resize:vertical;font-size:28px;line-height:1.9;background:repeating-linear-gradient(to bottom,#fff 0,#fff 43px,#dce8ff 44px);padding:14px;border-radius:18px}
.nb-canvas-wrap{background:#fff;border-radius:22px;box-shadow:0 14px 30px rgba(0,0,0,.08);padding:18px}
#drawCanvas{width:100%;height:360px;border:2px dashed #b5c8fb;border-radius:18px;touch-action:none;background:#fff}
.nb-tip{font-size:15px;color:#567}
@media (max-width:860px){.nb-shell{grid-template-columns:1fr}.nb-side{border-left:none;border-bottom:1px solid #dfe6fb}.nb-paper .lined{font-size:24px;min-height:220px}#drawCanvas{height:300px}}

*{box-sizing:border-box}.nb-prompt{background:#fff7df;border-radius:14px;padding:12px 18px;font-size:24px;font-weight:750;color:#764d14;margin-bottom:12px;white-space:pre-wrap}.nb-tools{margin:8px 0}.nb-tools button{cursor:pointer;min-height:42px}.nb-tools button:disabled{opacity:.4}.nb-item{min-height:44px}#drawCanvas{display:block;background:repeating-linear-gradient(to bottom,#fff 0,#fff 43px,#dce8ff 44px);cursor:crosshair}.nb-side{max-height:100vh}@media(max-width:860px){.nb-side{max-height:28vh}.nb-main{min-width:0}.nb-prompt{font-size:20px}}
