*{margin:0;padding:0;box-sizing:border-box}:root{--bg:#eef3fb;--surface:rgba(255, 255, 255, 0.82);--surface-strong:#ffffff;--border:rgba(15, 23, 42, 0.08);--text:#0f172a;--text-primary:#0f172a;--text-muted:#64748b;--primary:#2563eb;--primary-hover:#1d4ed8;--shadow:0 12px 40px rgba(15, 23, 42, 0.08);--radius-xl:24px;--radius-lg:18px;--radius-md:14px}body,html{height:100%}body{overflow-y:auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:radial-gradient(circle at top left,rgba(37,99,235,.08),transparent 26%),radial-gradient(circle at bottom right,rgba(14,165,233,.06),transparent 28%),var(--bg);color:var(--text);min-height:100vh}img{display:block;max-width:100%}button,input,textarea{font:inherit}.app-shell{height:100vh;min-height:0;padding:16px;display:flex;flex-direction:column;overflow:hidden}.topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;max-width:none;margin:0 0 18px;background:linear-gradient(135deg,rgba(11,15,20,.96),rgba(17,24,39,.92));backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.05);border-radius:18px;padding:8px 10px 8px 12px;box-shadow:0 8px 24px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.04);position:sticky;top:10px;z-index:999}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-logo{width:42px;height:42px;border-radius:11px;background:linear-gradient(135deg,#dbeafe,#eff6ff);border:1px solid var(--border);overflow:hidden;flex-shrink:0}.brand-logo img{width:100%;height:100%;object-fit:cover}.brand-text{min-width:0}.brand-text h1{font-size:1.05rem;line-height:1.15;margin-bottom:4px;color:#f9fafb}.brand-text p{font-size:.92rem;color:rgba(229,231,235,.72)}.topbar-actions{display:flex;align-items:center;gap:7px;position:relative;z-index:40}.topbar-icon-btn{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;flex-shrink:0}.topbar-icon-btn,.zoom-icon-btn{position:relative}.topbar-icon-btn::after,.zoom-icon-btn::after{content:attr(aria-label);position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%) translateY(-2px);padding:7px 10px;background:rgba(15,23,42,.96);color:#fff;border-radius:8px;font-size:.78rem;font-weight:600;line-height:1;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;z-index:1000;box-shadow:0 8px 20px rgba(15,23,42,.18);transition:opacity 120ms ease,transform 120ms ease,visibility 120ms ease}.topbar-icon-btn:focus-visible::after,.topbar-icon-btn:hover::after,.zoom-icon-btn:focus-visible::after,.zoom-icon-btn:hover::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}.zoom-icon-btn::after{left:auto;right:0;transform:translateY(-2px)}.zoom-icon-btn:focus-visible::after,.zoom-icon-btn:hover::after{transform:translateY(0)}.topbar-icon-btn i,.topbar-icon-btn svg{width:24px;height:24px;min-width:24px;min-height:24px;stroke-width:2.2;transition:transform .15s ease}.topbar-icon-btn:hover i,.topbar-icon-btn:hover svg{transform:scale(1.06)}.save-icon-btn{width:auto;min-width:42px;padding:0 7px;gap:4px}.save-icon-btn i,.save-icon-btn svg{width:22px;height:22px;min-width:22px;min-height:22px;stroke-width:2}.save-icon-btn .save-caret{font-size:.72rem;line-height:1}.ghost-btn,.primary-btn,.tool-btn,.zoom-btn{border:none;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease}.ghost-btn,.primary-btn{padding:12px 16px;border-radius:16px;font-size:.95rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary-btn{background:linear-gradient(135deg,#22c55e,#16a34a);color:#02130a;box-shadow:0 8px 18px rgba(34,197,94,.16),inset 0 1px 0 rgba(255,255,255,.2)}.primary-btn:hover{background:linear-gradient(135deg,#16a34a,#15803d);transform:translateY(-1px);box-shadow:0 12px 24px rgba(34,197,94,.2),inset 0 1px 0 rgba(255,255,255,.2)}.primary-btn:active{transform:translateY(0);box-shadow:0 8px 16px rgba(34,197,94,.16),inset 0 1px 0 rgba(255,255,255,.18)}.ghost-btn{background:rgba(255,255,255,.04);color:#e5e7eb;border:1px solid rgba(34,197,94,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 0 rgba(34,197,94,0);transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease}.ghost-btn:hover{background:rgba(255,255,255,.08);border:1px solid rgba(34,197,94,.28);box-shadow:0 8px 18px rgba(0,0,0,.16),0 0 10px rgba(34,197,94,.1),inset 0 1px 0 rgba(255,255,255,.06);transform:translateY(-1px)}.ghost-btn:active{transform:translateY(0);box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}.save-menu-wrapper{position:relative;z-index:999}.save-trigger{display:inline-flex;align-items:center;gap:8px}.save-caret{font-size:.9rem;line-height:1;transition:transform .2s ease}.save-menu-wrapper.open .save-caret{transform:rotate(180deg)}.save-menu{position:absolute;top:calc(100% + 12px);right:0;min-width:280px;max-width:320px;display:none;flex-direction:column;gap:6px;padding:8px;background:rgba(15,23,42,.96);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.06);border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.3),0 0 14px rgba(34,197,94,.05);z-index:1000;animation:dropdownFade .2s ease}.save-menu.open{display:flex}@keyframes dropdownFade{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.save-option{width:100%;border:none;outline:0;background:0 0;box-shadow:none;text-align:left;padding:12px 14px;border-radius:12px;display:flex;flex-direction:column;gap:4px;color:#e5e7eb;cursor:pointer;transition:background .18s ease,transform .18s ease,border-color .18s ease}.save-option:hover{background:rgba(34,197,94,.06);transform:translateX(1px)}.save-option-title{font-size:.9rem;font-weight:700;line-height:1.2;color:#f8fafc}.save-option-subtitle{font-size:.76rem;line-height:1.35;color:rgba(229,231,235,.72)}.save-option+.save-option{border-top:1px solid rgba(34,197,94,.16);box-shadow:0 -1px 0 rgba(34,197,94,.06)}.workspace{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;flex:1;min-height:0;align-items:stretch;overflow:hidden}.toolbar{background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border:1px solid rgba(15,23,42,.07);border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.05);padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:7px;position:relative;z-index:5;align-self:start;max-height:100%}.tool-btn{width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.96);font-size:1.08rem;border:1px solid rgba(15,23,42,.06);position:relative;flex-shrink:0}.tool-btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(15,23,42,.07)}.tool-btn:hover i{transform:scale(1.05)}.tool-btn:active{transform:scale(.98)}.tool-btn.active{background:linear-gradient(180deg,#e7f0ff 0,#dbeafe 100%);border:1px solid rgba(37,99,235,.28);box-shadow:0 6px 14px rgba(37,99,235,.12),inset 0 1px 0 rgba(255,255,255,.72)}.tool-btn[data-tool=clear]{color:#b91c1c}.tool-btn[data-tool=arrow],.tool-btn[data-tool=circle],.tool-btn[data-tool=line],.tool-btn[data-tool=rect],.tool-btn[data-tool=redo],.tool-btn[data-tool=undo]{font-size:1.05rem}.tool-btn i{width:22px;height:22px;stroke-width:2.2;color:#0f172a;transition:transform .15s ease}.toolbar-divider{width:28px;height:1px;margin:2px auto;background:rgba(15,23,42,.1);border-radius:999px;flex-shrink:0}.tool-btn::after{content:attr(title);position:absolute;left:68px;top:50%;transform:translateY(-50%);background:rgba(15,23,42,.88);color:#fff;font-size:.75rem;padding:6px 10px;border-radius:10px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:30;backdrop-filter:blur(8px)}.tool-btn:hover::after{opacity:1}.board-area{display:flex;flex-direction:column;gap:10px;position:relative;z-index:1;min-width:0;min-height:0;overflow:hidden}.board-status{font-size:.95rem;color:var(--text-muted);padding-left:6px;padding-top:2px}.board-status strong{color:var(--text)}.board-toolbar{background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border:1px solid rgba(15,23,42,.08);border-radius:16px;box-shadow:0 6px 18px rgba(15,23,42,.045);padding:6px 10px;display:grid;grid-template-columns:auto auto auto auto minmax(0,1fr);align-items:center;gap:8px;position:relative;z-index:2}.control-group{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:.95rem;font-weight:600;min-width:0}.control-group input[type=color]{width:28px;height:28px;border:none;padding:0;background:0 0;cursor:pointer;flex-shrink:0}.control-group input[type=range]{width:160px}.toolbar-section-divider{width:1px;height:22px;background:rgba(15,23,42,.12);border-radius:999px;margin:0 2px;align-self:center}.quick-colors{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}.color-swatch{width:18px;height:18px;border-radius:999px;border:2px solid rgba(15,23,42,.1);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;flex-shrink:0}.color-swatch:hover{transform:scale(1.08)}.color-swatch.active{border-color:#0f172a;box-shadow:0 0 0 3px rgba(15,23,42,.12)}.zoom-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:nowrap;min-width:0}.zoom-controls .ghost-btn{background:rgba(255,255,255,.92);color:var(--text);border:1px solid var(--border);box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}.zoom-controls .ghost-btn:hover{background:#f8fafc;transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,23,42,.06),inset 0 1px 0 rgba(255,255,255,.55)}.zoom-btn{width:34px;height:34px;border:1px solid var(--border);background:#fff;border-radius:12px;color:var(--text);font-size:1.2rem;font-weight:700;flex-shrink:0}.zoom-btn:hover{background:#f8fafc;box-shadow:0 6px 14px rgba(15,23,42,.06)}#zoomLabel{min-width:48px;text-align:center;font-size:.95rem;font-weight:700;color:var(--text);flex-shrink:0}.zoom-icon-btn{width:34px;height:34px;min-width:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px}.zoom-icon-btn i,.zoom-icon-btn svg{width:18px;height:18px;min-width:18px;min-height:18px;stroke-width:2.2}.zoom-icon-btn:hover i,.zoom-icon-btn:hover svg{transform:scale(1.06)}.board-wrapper{flex:1;width:100%;min-width:0;min-height:0;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:26px;box-shadow:0 16px 34px rgba(15,23,42,.07),inset 0 0 0 1px rgba(15,23,42,.02);overflow:auto;position:relative;z-index:1;scroll-behavior:auto}.board-space{position:relative;width:2400px;height:1600px;min-width:100%;min-height:100%;background:#fff}#whiteboard{position:absolute;left:0;top:0;display:block;touch-action:none;transform-origin:top left;background:#fff;z-index:1}.hidden{display:none!important}.text-panel{position:fixed;left:118px;right:24px;bottom:20px;z-index:60;max-width:540px;width:auto;background:rgba(255,255,255,.98);border:1px solid rgba(15,23,42,.08);border-radius:20px;box-shadow:0 24px 50px rgba(15,23,42,.16);padding:16px}.text-panel-header{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.text-panel-header strong{font-size:.96rem;color:var(--text)}.text-panel-header span{font-size:.82rem;color:var(--text-muted);line-height:1.35}.text-panel textarea{width:100%;resize:vertical;min-height:92px;border:1px solid rgba(15,23,42,.1);border-radius:14px;padding:12px 14px;font:inherit;color:var(--text);outline:0;background:#fff;margin-bottom:12px}.text-panel textarea:focus{border-color:rgba(37,99,235,.35);box-shadow:0 0 0 4px rgba(37,99,235,.08)}.text-input-actions{display:flex;justify-content:flex-end;gap:10px}.text-anchor{position:absolute;width:12px;height:12px;border-radius:999px;background:#2563eb;border:2px solid #fff;box-shadow:0 0 0 3px rgba(37,99,235,.18);transform:translate(-50%,-50%);z-index:20;pointer-events:none}@media (max-width:1100px){.board-toolbar{grid-template-columns:auto auto auto auto minmax(0,1fr);gap:8px}.zoom-controls{justify-content:flex-end}.control-group input[type=range]{width:clamp(120px,14vw,160px)}.quick-colors{gap:7px}}@media (max-width:760px){.app-shell{height:100dvh}.topbar{flex-direction:column;align-items:stretch}.topbar-actions{width:100%}.save-menu-wrapper,.topbar-actions .ghost-btn,.topbar-actions .primary-btn{flex:1}.save-trigger{width:100%;justify-content:center}.save-menu{right:0;left:auto;min-width:220px;max-width:260px}.workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:12px}.toolbar{flex-direction:row;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;padding:8px 6px;gap:6px}.tool-btn{min-width:44px;width:44px;height:44px;flex-shrink:0}.tool-btn::after{display:none}.board-toolbar{display:flex;align-items:center;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:6px 8px;gap:7px}.zoom-controls{justify-content:flex-start;width:auto;flex:0 0 auto}.quick-colors{width:auto;flex:0 0 auto;flex-wrap:nowrap;gap:6px}.color-swatch{width:22px;height:22px}.text-panel{left:12px;right:12px;bottom:12px;max-width:none}.save-menu{padding:6px}.save-option{padding:10px 12px;border-radius:12px;gap:2px}.save-option-title{font-size:.82rem;line-height:1.2}.save-option-subtitle{font-size:.72rem;line-height:1.28}.board-wrapper{height:auto;min-height:0}.grid-btn{width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px;border-radius:12px}.grid-btn::before{width:18px;height:18px;background-size:8px 8px}#toggleGridBtn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex:0 0 36px!important;box-shadow:inset 0 0 0 7px #fff,inset 0 1px 0 rgba(255,255,255,.9),0 2px 6px rgba(15,23,42,.05)!important}}@media (max-width:640px){.app-shell{padding:10px}.brand{align-items:flex-start}.brand-text h1{font-size:1rem}.brand-text p{font-size:.88rem}.board-toolbar .control-group{width:auto;justify-content:flex-start;flex:0 0 auto}.control-group input[type=range]{width:120px}.quick-colors{width:auto;flex-wrap:nowrap}.zoom-controls{width:auto;justify-content:flex-start}.board-wrapper{min-height:0}.save-menu{top:calc(100% + 8px);border-radius:16px}.save-option-title{font-size:.78rem}.save-option-subtitle{font-size:.68rem}.confirm-dialog{width:min(94vw,420px);border-radius:18px}.confirm-header{padding:16px 16px 8px}.confirm-body{padding:0 16px 16px}.confirm-actions{padding:12px 16px 16px;gap:8px}.confirm-actions .ghost-btn,.confirm-actions .primary-btn{min-width:96px}.watermark{font-size:8px;bottom:8px}.grid-btn{width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px}.grid-btn::before{width:18px;height:18px}#toggleGridBtn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex:0 0 36px!important}}@media (max-width:760px) and (orientation:landscape){.app-shell{padding:8px}.topbar{flex-direction:row;align-items:center;gap:8px;margin-bottom:8px;padding:6px 8px}.brand{align-items:center;gap:8px}.brand-logo{width:36px;height:36px;border-radius:10px}.brand-text h1{font-size:.95rem}.topbar-actions{width:auto;gap:4px;flex:0 0 auto}.save-menu-wrapper,.topbar-actions .ghost-btn,.topbar-actions .primary-btn{flex:0 0 auto}.topbar-icon-btn{width:32px;height:32px;min-width:32px;min-height:32px;border-radius:10px}.topbar-icon-btn i,.topbar-icon-btn svg{width:21px;height:21px;min-width:21px;min-height:21px}.save-icon-btn{min-width:36px;padding:0 5px}.save-icon-btn i,.save-icon-btn svg{width:19px;height:19px;min-width:19px;min-height:19px}.workspace{gap:8px}.toolbar{padding:6px;gap:5px}.tool-btn{width:42px;height:42px;min-width:42px}.board-toolbar{padding:5px 7px}}#customCursor{position:fixed;left:0;top:0;width:16px;height:16px;border-radius:999px;pointer-events:none;display:block;opacity:0;transform:translate(-50%,-50%) scale(.92);z-index:99999;box-sizing:border-box;transition:opacity 140ms ease,transform 140ms ease,width 120ms ease,height 120ms ease,border-color 120ms ease,background 120ms ease,box-shadow 140ms ease}#customCursor.visible{opacity:1;transform:translate(-50%,-50%) scale(1)}#customCursor.pressed{transform:translate(-50%,-50%) scale(.82)!important;opacity:.9}#customCursor::after{content:"";position:absolute;left:50%;top:50%;width:3px;height:3px;border-radius:999px;background:rgba(17,24,39,.82);transform:translate(-50%,-50%)}#customCursor.eraser-cursor{border-radius:12px!important;background:rgba(255,255,255,.16)!important}#customCursor.eraser-cursor::before{content:"";position:absolute;left:50%;top:50%;width:44%;height:58%;transform:translate(-50%,-50%) rotate(-35deg);border-radius:4px;background:linear-gradient(135deg,#f8fafc 0,#f8fafc 52%,#cbd5e1 52%,#cbd5e1 100%);border:1px solid rgba(15,23,42,.55);box-shadow:0 2px 5px rgba(15,23,42,.16);pointer-events:none}#customCursor.eraser-cursor::after{width:3px;height:3px;background:rgba(15,23,42,.72)}#customCursor.pen-cursor{border:none!important;border-radius:0!important;background:0 0!important;box-shadow:none!important;overflow:visible}#customCursor.pen-cursor::before{content:"";position:absolute;left:50%;top:50%;width:6px;height:23px;transform-origin:50% 100%;transform:translate(-50%,-100%) rotate(45deg);border-radius:4px 4px 2px 2px;background:linear-gradient(to bottom,var(--cursor-color,#111827) 0,var(--cursor-color,#111827) 72%,#f8fafc 72%,#f8fafc 88%,#1f2937 88%,#1f2937 100%);border:1px solid rgba(15,23,42,.45);box-shadow:0 2px 5px rgba(15,23,42,.18);pointer-events:none}#customCursor.pen-cursor::after{content:"";position:absolute;left:50%;top:50%;width:3px;height:3px;border-radius:999px;background:var(--cursor-color,#111827);transform:translate(-50%,-50%);pointer-events:none}.toast-container{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;gap:10px;z-index:9999}.toast{min-width:220px;max-width:320px;padding:12px 16px;background:rgba(15,23,42,.95);color:#e5e7eb;border:1px solid rgba(34,197,94,.25);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25),0 0 12px rgba(34,197,94,.12);font-size:.85rem;line-height:1.4;opacity:0;transform:translateY(10px) scale(.98);transition:opacity .25s ease,transform .25s ease,border-color .25s ease}.toast.show{opacity:1;transform:translateY(0) scale(1)}.toast.success{border-color:rgba(34,197,94,.4)}.toast.error{border-color:rgba(239,68,68,.4)}.confirm-modal{position:fixed;inset:0;z-index:5000}.confirm-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.5);backdrop-filter:blur(4px)}.confirm-dialog{position:absolute;top:50%;left:50%;width:min(92vw,460px);transform:translate(-50%,-50%);background:rgba(15,23,42,.96);border:1px solid rgba(34,197,94,.16);border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.35),0 0 20px rgba(34,197,94,.08);color:#e5e7eb;overflow:hidden;animation:confirmPop .18s ease}.confirm-header{padding:18px 20px 8px}.confirm-header h3{font-size:1rem;line-height:1.2;font-weight:700;color:#f8fafc}.confirm-body{padding:0 20px 18px}.confirm-body p{font-size:.92rem;line-height:1.5;color:rgba(229,231,235,.76)}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px 18px;border-top:1px solid rgba(34,197,94,.12)}.confirm-actions .ghost-btn,.confirm-actions .primary-btn{min-width:110px}@keyframes confirmPop{from{opacity:0;transform:translate(-50%,calc(-50% + 8px)) scale(.98)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.watermark{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);font-size:11px;color:rgba(15,23,42,.3);pointer-events:none;user-select:none;font-weight:500;letter-spacing:.2px;z-index:5;opacity:.65}.watermark strong{font-weight:600;color:rgba(15,23,42,.4)}.ghost-btn:hover,.primary-btn:hover,.save-trigger:hover{transform:translateY(-1px)}.board-wrapper{position:relative}.board-wrapper.grid-enabled .board-space::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;border-radius:inherit;background-image:linear-gradient(rgba(15,23,42,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.05) 1px,transparent 1px);background-size:24px 24px;background-position:0 0}.grid-btn{width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px;padding:0;border:1px solid rgba(15,23,42,.14);border-radius:12px;background:linear-gradient(180deg,#fff 0,#f8fafc 100%);cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden;appearance:none;-webkit-appearance:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 2px 6px rgba(15,23,42,.04);transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}.grid-btn::before{content:"";width:18px;height:18px;border-radius:4px;display:block;background-image:linear-gradient(rgba(15,23,42,.34) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.34) 1px,transparent 1px);background-size:8px 8px;background-position:0 0;background-repeat:repeat}.grid-btn:hover{transform:translateY(-1px);border-color:rgba(15,23,42,.22);background:linear-gradient(180deg,#fff 0,#f1f5f9 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 6px 14px rgba(15,23,42,.08)}.grid-btn.active{border-color:rgba(37,99,235,.26);background:linear-gradient(180deg,#eef4ff 0,#dbeafe 100%);box-shadow:0 0 0 3px rgba(37,99,235,.1),inset 0 1px 0 rgba(255,255,255,.9)}.grid-btn::after{content:"Grade";position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);padding:5px 9px;border-radius:8px;background:rgba(15,23,42,.92);color:#fff;font-size:11px;font-weight:600;line-height:1;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .18s ease,transform .18s ease;box-shadow:0 6px 16px rgba(0,0,0,.16);z-index:20}.grid-btn:hover::after{opacity:1;transform:translateX(-50%) translateY(-2px)}#toggleGridBtn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex:0 0 36px!important;padding:7px!important;border:1px solid rgba(15,23,42,.12)!important;border-radius:14px!important;background-color:#fff!important;background-image:linear-gradient(rgba(15,23,42,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.18) 1px,transparent 1px);background-size:8px 8px!important;background-position:center center!important;background-repeat:repeat!important;background-origin:content-box!important;background-clip:content-box!important;box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;display:inline-block!important;vertical-align:middle!important;overflow:hidden!important;cursor:pointer!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 4px 10px rgba(15,23,42,.06)!important;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background-color .15s ease!important}#toggleGridBtn:hover{transform:translateY(-1px)!important;border-color:rgba(15,23,42,.2)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 8px 16px rgba(15,23,42,.08)!important}#toggleGridBtn.active{border-color:rgba(37,99,235,.26)!important;background-color:#eef4ff!important;box-shadow:0 0 0 3px rgba(37,99,235,.1),inset 0 1px 0 rgba(255,255,255,.95),0 6px 14px rgba(37,99,235,.1)!important}#toggleGridBtn::after,#toggleGridBtn::before{display:none!important}