.kit-icon-btn{color:var(--text);border-radius:var(--radius-sm);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);background:0 0;border:0;flex:none;place-items:center;display:inline-grid}.kit-icon-btn-sm{width:28px;height:28px}.kit-icon-btn-md{width:36px;height:36px}.kit-icon-btn-lg{width:44px;height:44px}.kit-icon-btn:hover{background:var(--surface-hover)}.kit-icon-btn:active{background:var(--surface-pressed)}.kit-icon-btn.is-active{background:var(--accent-soft);color:var(--accent-text)}.kit-icon-btn:disabled{opacity:.4;cursor:default;background:0 0}.kit-btn{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);height:32px;color:var(--text);white-space:nowrap;transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);justify-content:center;align-items:center;gap:6px;padding:0 14px;font-weight:600;display:inline-flex}.kit-btn:hover{background:var(--surface-hover)}.kit-btn:active{background:var(--surface-pressed)}.kit-btn:disabled{opacity:.45;cursor:default}.kit-btn-primary{background:var(--accent);color:var(--text-on-accent);border-color:#0000}.kit-btn-primary:hover{background:var(--accent-hover)}.kit-btn-primary:active{background:var(--accent-pressed)}.kit-btn-subtle{background:0 0;border-color:#0000}.kit-btn-danger{background:var(--danger);color:#fff;border-color:#0000}.kit-btn-danger:hover{filter:brightness(1.08);background:var(--danger)}.kit-field{gap:6px;margin-bottom:14px;display:grid}.kit-field-label{font-size:13px;font-weight:600}.kit-input{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);border-bottom-width:2px;height:34px;padding:0 10px}.kit-input:focus{border-bottom-color:var(--accent);outline:none}.kit-field-hint{color:var(--text-3)}.kit-field-error{color:var(--danger)}.kit-switch-row{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:6px 0;display:flex}.kit-switch-row input{opacity:0;pointer-events:none;position:absolute}.kit-switch-text{display:grid}.kit-switch-text small{color:var(--text-3)}.kit-switch{border:1px solid var(--border-strong);background:var(--surface);width:40px;height:20px;transition:background var(--dur) var(--ease);border-radius:10px;flex:none;position:relative}.kit-switch:after{content:"";background:var(--text-2);width:12px;height:12px;transition:transform var(--dur) var(--ease), background var(--dur) var(--ease);border-radius:50%;position:absolute;top:3px;left:3px}.kit-switch-row input:checked+.kit-switch{background:var(--accent);border-color:var(--accent)}.kit-switch-row input:checked+.kit-switch:after{background:#fff;transform:translate(20px)}.kit-switch-row input:focus-visible+.kit-switch{outline:2px solid var(--focus);outline-offset:2px}.kit-segmented{border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border);gap:2px;padding:2px;display:inline-flex}.kit-segmented button{height:28px;color:var(--text-2);background:0 0;border:0;border-radius:6px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.kit-segmented button:hover{color:var(--text)}.kit-segmented button.is-active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.kit-modal-backdrop{z-index:1000;background:var(--overlay);animation:kit-fade var(--dur) var(--ease);place-items:center;padding:16px;display:grid;position:fixed;inset:0}.kit-modal{background:var(--surface);border-radius:var(--radius-lg);max-width:100%;max-height:calc(100vh - 32px);box-shadow:var(--shadow-lg);border:1px solid var(--border);animation:kit-pop var(--dur) var(--ease);flex-direction:column;display:flex}.kit-modal-header{justify-content:space-between;align-items:center;padding:18px 16px 6px 24px;display:flex}.kit-modal-header h2{font-family:var(--font-display);margin:0;font-size:20px;font-weight:600}.kit-modal-body{padding:8px 24px 16px;overflow:auto}.kit-modal-body p{color:var(--text-2);margin:0 0 12px}.kit-modal-footer{justify-content:flex-end;gap:8px;padding:12px 24px 20px;display:flex}.kit-popover{z-index:900;animation:kit-pop var(--dur-fast) var(--ease);max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);padding:8px;position:fixed;overflow:auto}.kit-menu{min-width:200px;display:grid}.kit-menu-item{border-radius:var(--radius-sm);text-align:left;height:32px;color:var(--text);background:0 0;border:0;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;padding:0 10px;display:grid}.kit-menu-item:hover,.kit-menu-item:focus-visible{background:var(--surface-hover);outline:none}.kit-menu-item:disabled{opacity:.4;cursor:default;background:0 0}.kit-menu-item.is-danger{color:var(--danger)}.kit-menu-item[aria-checked=true] .kit-menu-icon:before{content:"✓";color:var(--accent-text);font-weight:700}.kit-menu-icon{color:var(--text-2);place-items:center;display:grid}.kit-menu-hint{font-family:var(--font-ui);color:var(--text-3);font-size:12px}.kit-menu-divider{background:var(--divider);height:1px;margin:4px 6px}.kit-section-label{color:var(--text-2);padding:8px 4px 6px;font-size:12px;font-weight:600}.kit-hdivider{background:var(--divider);height:1px;margin:6px 0}.kit-vdivider{background:var(--divider);align-self:stretch;width:1px;margin:6px 2px}@keyframes kit-fade{0%{opacity:0}}@keyframes kit-pop{0%{opacity:0;transform:translateY(4px)scale(.98)}}.spin{animation:1s linear infinite spin}.avatar{letter-spacing:.02em;-webkit-user-select:none;user-select:none;border-radius:50%;flex:none;place-items:center;font-weight:600;line-height:1;display:inline-grid}.chrome-topleft{z-index:40;align-items:center;gap:2px;min-width:0;max-width:calc(100vw - 24px);height:48px;padding:0 6px;display:flex;position:absolute;top:12px;left:12px}.chrome-sep{background:var(--divider);flex:none;width:1px;height:24px;margin:0 4px}.chrome-name{border-radius:var(--radius-sm);min-width:0;max-width:320px;height:34px;color:var(--text);font-family:var(--font-display);white-space:nowrap;text-overflow:ellipsis;transition:background var(--dur-fast) var(--ease);background:0 0;border:0;padding:0 8px;font-size:15px;font-weight:600;overflow:hidden}.chrome-name:hover{background:var(--surface-hover)}.chrome-name:disabled{cursor:default;background:0 0}.chrome-name-loading{vertical-align:middle;background:var(--surface-3);border-radius:6px;width:120px;height:12px;animation:1.2s ease-in-out infinite alternate chrome-pulse;display:inline-block}.chrome-name-input{border:1px solid var(--accent);border-radius:var(--radius-sm);background:var(--surface);min-width:0;max-width:320px;height:34px;color:var(--text);font-family:var(--font-display);box-shadow:0 0 0 1px var(--accent);outline:none;padding:0 8px;font-size:15px;font-weight:600}.chrome-status{border-radius:var(--radius-sm);height:34px;color:var(--text-2);white-space:nowrap;flex:none;align-items:center;gap:6px;padding:0 8px 0 6px;font-size:13px;display:flex}.chrome-status svg{flex:none}.chrome-status-label{max-width:260px;transition:max-width var(--dur) var(--ease), opacity var(--dur) var(--ease);overflow:hidden}.chrome-status.is-collapsed{gap:0}.chrome-status.is-collapsed .chrome-status-label{opacity:0;max-width:0}.chrome-status.is-saved{color:var(--text-3)}.chrome-status.is-offline{color:var(--danger)}.chrome-topright{z-index:40;align-items:center;gap:10px;display:flex;position:absolute;top:12px;right:12px}.chrome-actions{align-items:center;gap:4px;height:48px;padding:0 6px;display:flex}.chrome-share{height:34px;padding:0 14px 0 12px}@media (width<=760px){.chrome-status-label{display:none}.chrome-status{gap:0;padding:0 6px}.chrome-name,.chrome-name-input{max-width:30vw}.chrome-share{width:36px;padding:0}.chrome-share span{display:none}}@media (width<=480px){.chrome-topleft,.chrome-actions{padding:0 4px}.chrome-topright{gap:6px}.chrome-name,.chrome-name-input{max-width:24vw;padding:0 6px}.chrome-sep{margin:0 2px}}.presence{align-items:center;height:48px;padding-left:6px;display:flex}.presence-avatar{transition:transform var(--dur-fast) var(--ease);background:0 0;border:0;border-radius:50%;margin-left:-6px;padding:0;display:grid;position:relative}.presence-avatar:first-child{margin-left:0}.presence-avatar .avatar{box-shadow:0 0 0 2px var(--surface), var(--shadow-sm)}.presence-avatar:hover,.presence-avatar:focus-visible{z-index:1;transform:translateY(-1px)scale(1.06)}.presence-avatar.is-following{z-index:2}.presence-avatar.is-following .avatar{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--peer), var(--shadow-sm)}.presence-badge{background:var(--surface);width:16px;height:16px;color:var(--text);box-shadow:var(--shadow-sm);animation:kit-pop var(--dur) var(--ease);border-radius:50%;place-items:center;display:grid;position:absolute;bottom:-3px;right:-3px}.presence-more{background:var(--surface);min-width:30px;height:30px;color:var(--text);box-shadow:0 0 0 2px var(--surface), var(--shadow-sm);border:0;border-radius:15px;margin-left:-6px;padding:0 8px;font-size:12px;font-weight:600}.presence-more:hover,.presence-more[aria-expanded=true]{background:var(--surface-hover)}.follow-frame{z-index:30;border:3px solid var(--peer);pointer-events:none;animation:kit-fade var(--dur) var(--ease);position:absolute;inset:0}.follow-pill{z-index:41;border:2px solid var(--peer);background:var(--surface);max-width:calc(100vw - 32px);height:38px;box-shadow:var(--shadow-md);white-space:nowrap;animation:follow-in var(--dur) var(--ease);border-radius:19px;align-items:center;gap:8px;padding:0 4px 0 6px;font-size:13px;display:flex;position:absolute;top:72px;left:50%;transform:translate(-50%)}.follow-pill-text{text-overflow:ellipsis;overflow:hidden}.follow-pill-stop{background:var(--surface-3);height:28px;color:var(--text);border:0;border-radius:14px;flex:none;padding:0 12px;font-weight:600}.follow-pill-stop:hover{background:var(--surface-pressed)}@keyframes follow-in{0%{opacity:0;transform:translate(-50%,-6px)}}.offscreen-layer{z-index:20;pointer-events:none;position:absolute;inset:0;overflow:hidden}.offscreen-chip{pointer-events:auto;width:30px;height:30px;animation:kit-fade var(--dur) var(--ease);background:0 0;border:0;border-radius:50%;margin:-15px 0 0 -15px;padding:0;transition:left .11s linear,top .11s linear;position:absolute}.offscreen-pointer{position:absolute;inset:0}.offscreen-pointer:after{content:"";background:var(--peer);clip-path:polygon(0 0,100% 50%,0 100%);width:9px;height:12px;margin-top:-6px;position:absolute;top:50%;right:-8px}.offscreen-initials{background:var(--peer);color:var(--peer-text);box-shadow:0 0 0 2px var(--surface), var(--shadow-md);transition:transform var(--dur-fast) var(--ease);border-radius:50%;place-items:center;font-size:11px;font-weight:700;display:grid;position:absolute;inset:0}.offscreen-chip:hover .offscreen-initials,.offscreen-chip:focus-visible .offscreen-initials{transform:scale(1.12)}.offscreen-chip.is-following .offscreen-initials{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--peer)}.chrome-blocker{z-index:1050;background:var(--overlay);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:kit-fade var(--dur) var(--ease);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.chrome-blocker-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);width:400px;max-width:100%;box-shadow:var(--shadow-lg);animation:kit-pop var(--dur) var(--ease);padding:24px}.chrome-blocker-card h2{font-family:var(--font-display);margin:0 0 8px;font-size:20px;font-weight:600}.chrome-blocker-card p{color:var(--text-2);margin:0 0 16px}.chrome-blocker-actions{justify-content:flex-end;gap:8px;display:flex}.kit-modal-body .share-lead{margin-bottom:14px}.share-link-row{align-items:center;gap:8px;display:flex}.share-link{min-width:0;color:var(--text-2);flex:1;font-size:13px}.share-copy{min-width:112px}.share-divider{background:var(--divider);height:1px;margin:20px 0 16px}.share-section{margin-bottom:14px}.share-row{align-items:center;gap:12px;display:flex}.share-row-icon{background:var(--surface-2);width:36px;height:36px;color:var(--text-2);border-radius:50%;flex:none;place-items:center;display:grid}.share-row-icon.is-locked{background:var(--accent-soft);color:var(--accent-text)}.share-row-text{flex:1;gap:2px;min-width:0;display:grid}.share-row-text small{color:var(--text-2)}.share-row-actions{flex:none;gap:4px;display:flex}.share-subpanel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);animation:kit-pop var(--dur-fast) var(--ease);margin-top:12px;padding:14px 14px 12px}.share-subpanel .kit-input{background:var(--surface)}.share-subpanel-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.kit-modal-body .share-confirm-text{color:var(--text);margin:0 0 12px}.share-error,.kit-modal-body .share-error{color:var(--danger);margin:8px 0 0;font-size:13px}.pw-input{display:flex;position:relative}.pw-input .kit-input{flex:1;min-width:0;padding-right:40px}.pw-toggle{border-radius:var(--radius-sm);width:30px;height:28px;color:var(--text-2);background:0 0;border:0;place-items:center;display:grid;position:absolute;top:50%;right:3px;transform:translateY(-50%)}.pw-toggle:hover{background:var(--surface-hover);color:var(--text)}.settings-pop{width:320px;padding:6px 8px 8px}.settings-block{padding:0 4px 10px}.settings-block .kit-segmented{width:100%;display:flex}.settings-block .kit-segmented button{flex:1;justify-content:center;padding:0 6px}.settings-tints{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.settings-tint{border:1px solid var(--border-strong);background:var(--tint);width:26px;height:26px;transition:transform var(--dur-fast) var(--ease);border-radius:50%;padding:0}.settings-tint:hover{transform:scale(1.1)}.settings-tint[aria-checked=true]{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--accent)}.settings-list{display:grid}.settings-item-hint{color:var(--text-3);place-items:center;display:grid}.settings-chevron{transition:transform var(--dur-fast) var(--ease)}.settings-chevron.is-open{transform:rotate(90deg)}.settings-sub{animation:kit-fade var(--dur-fast) var(--ease);margin:0 0 4px;padding-left:22px;display:grid}.profile-fields{display:grid}.profile-preview{border:1px solid var(--border);border-radius:var(--radius);background-color:var(--surface-2);background-image:radial-gradient(var(--border-strong) 1px, transparent 1.3px);background-size:16px 16px;align-items:center;gap:18px;margin-bottom:16px;padding:14px 16px;display:flex}.profile-cursor{align-items:flex-start;min-width:0;display:flex}.profile-cursor svg{flex:none}.profile-cursor span{white-space:nowrap;text-overflow:ellipsis;border-radius:6px;max-width:200px;margin:18px 0 0 -3px;padding:3px 8px;font-size:12px;font-weight:600;overflow:hidden}.profile-colors{gap:8px;display:grid}.profile-swatches{flex-wrap:wrap;gap:8px;display:flex}.profile-swatch{background:var(--swatch);width:28px;height:28px;transition:transform var(--dur-fast) var(--ease);border:0;border-radius:50%;padding:0;position:relative}.profile-swatch:hover{transform:scale(1.1)}.profile-swatch[aria-checked=true]{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--swatch)}.profile-swatch[aria-checked=true]:after{content:"";border:2px solid #fff;border-width:0 2px 2px 0;width:6px;height:10px;position:absolute;top:8px;left:10px;transform:rotate(45deg)}.toast-region{z-index:1100;pointer-events:none;justify-content:center;width:max-content;max-width:calc(100vw - 32px);display:flex;position:fixed;bottom:96px;left:50%;transform:translate(-50%)}.toast{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);max-width:560px;min-height:44px;color:var(--text);box-shadow:var(--shadow-lg);pointer-events:auto;animation:toast-in var(--dur) var(--ease);align-items:center;gap:10px;padding:10px 10px 10px 14px;display:flex}.toast.is-leaving{animation:toast-out .18s var(--ease) forwards}.toast-icon{color:var(--success);flex:none}.toast-error{border-color:color-mix(in srgb, var(--danger) 40%, var(--border));background:color-mix(in srgb, var(--danger-soft) 70%, var(--surface))}.toast-error .toast-icon{color:var(--danger)}.toast-text{flex:1}.toast-close{border-radius:var(--radius-sm);width:26px;height:26px;color:var(--text-2);background:0 0;border:0;flex:none;place-items:center;display:grid}.toast-close:hover{background:var(--surface-hover);color:var(--text)}@keyframes toast-in{0%{opacity:0;transform:translateY(12px)scale(.98)}}@keyframes toast-out{to{opacity:0;transform:translateY(8px)}}@keyframes chrome-pulse{0%{opacity:.55}}.gate{background-color:var(--app-bg);background-image:radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1.1px, transparent 1.4px);background-size:22px 22px;place-items:center;padding:24px 16px;display:grid;position:fixed;inset:0;overflow-y:auto}.gate-loading{animation:gate-fade .4s var(--ease) .15s both;justify-items:center;gap:20px;display:grid}.gate-card{border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);width:420px;max-width:100%;box-shadow:var(--shadow-lg);animation:kit-pop var(--dur) var(--ease);padding:26px 28px 24px}.gate-card.is-wide{width:460px}.gate-brand{color:var(--text-2);font-family:var(--font-display);align-items:center;gap:8px;margin-bottom:22px;font-size:15px;font-weight:600;display:flex}.gate-heading{align-items:center;gap:12px;margin-bottom:8px;display:flex}.gate-heading h1{min-width:0;font-family:var(--font-display);overflow-wrap:anywhere;margin:0;font-size:22px;font-weight:600;line-height:1.25}.gate-icon{background:var(--accent-soft);width:38px;height:38px;color:var(--accent-text);border-radius:50%;flex:none;place-items:center;display:grid}.gate-card>p{color:var(--text-2);margin:0 0 18px}.gate-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:10px;display:flex}.gate-btn{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);height:36px;color:var(--text);white-space:nowrap;transition:background var(--dur-fast) var(--ease);justify-content:center;align-items:center;padding:0 16px;font-weight:600;display:inline-flex}.gate-btn:hover{background:var(--surface-hover)}.gate-btn:active{background:var(--surface-pressed)}.gate-btn:disabled{opacity:.45;cursor:default}.gate-btn-primary{background:var(--accent);color:var(--text-on-accent);border-color:#0000}.gate-btn-primary:hover{background:var(--accent-hover)}.gate-btn-primary:active{background:var(--accent-pressed)}.gate-btn-primary:disabled:hover{background:var(--accent)}.gate-error{color:var(--danger);margin:0 0 12px}@media (width<=480px){.gate-card{border-radius:var(--radius-lg);padding:22px 18px 18px}.gate-actions .gate-btn{flex:1}}@keyframes gate-fade{0%{opacity:0;transform:scale(.97)}}:root{--pen-hi:#fdfdfd;--pen-mid:#e9e9e9;--pen-lo:#d0d0d0;--pen-edge:#0000002e;--pen-collar:#f6f6f6;--pen-wood:#efd4ae;--pen-metal:#c9cdd3;--pen-slit:#00000073;--pen-tip-edge:#00000038;--eraser-top:#f3f3f3;--eraser-hi:#fff;--ruler-fill:#0000000f;--icon-edge:#0000003d;--pal-quick-size:26px}:root[data-theme=dark]{--pen-hi:#a8a8a8;--pen-mid:#8c8c8c;--pen-lo:#6c6c6c;--pen-edge:#0006;--pen-collar:#b9b9b9;--pen-wood:#caa77d;--pen-metal:#a2a7ae;--pen-slit:#0000008c;--pen-tip-edge:#ffffff4d;--eraser-top:#ececec;--eraser-hi:#fafafa;--ruler-fill:#ffffff1a;--icon-edge:#ffffff47}.tb-root{z-index:400;background:var(--surface);border:1px solid var(--border);width:max-content;max-width:calc(100vw - 16px);height:56px;box-shadow:var(--shadow-md);border-radius:12px;align-items:center;padding:0 8px;display:flex;position:fixed;bottom:16px;left:50%;overflow:hidden;transform:translate(-50%)}.tb-scroll{overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-x;--fade-l:0px;--fade-r:0px;flex:0 auto;align-items:center;min-width:0;height:100%;display:flex;overflow:auto hidden}.tb-scroll::-webkit-scrollbar{display:none}.tb-scroll.fade-start{--fade-l:20px}.tb-scroll.fade-end{--fade-r:20px}.tb-scroll.fade-start,.tb-scroll.fade-end{-webkit-mask-image:linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);-webkit-mask-image:linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);mask-image:linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent)}.tb-history{flex:none}.tb-section{flex:none;align-items:center;gap:2px;height:100%;display:flex}.tb-sep{background:var(--divider);flex:none;width:1px;height:28px;margin:0 6px}.tb-pens{align-items:stretch;gap:0}.tb-pen{background:0 0;border:0;border-radius:6px;flex:none;width:30px;height:100%;padding:0;position:relative;overflow:hidden}.tb-pen:focus-visible{outline-offset:-2px}.tb-pen-art{transition:transform var(--dur) var(--ease);filter:drop-shadow(0 1px 1.5px #0003);pointer-events:none;margin-left:-12px;position:absolute;top:0;left:50%;transform:translateY(19px)}.tb-pen-art svg{display:block}.tb-pen:hover .tb-pen-art{transform:translateY(15px)}.tb-pen.is-current .tb-pen-art{transform:translateY(12px)}.tb-pen.is-active .tb-pen-art{transform:translateY(4px)}.tb-add-pen{border:1px dashed var(--border-strong);width:22px;height:22px;color:var(--text-2);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);background:0 0;border-radius:50%;flex:none;align-self:center;place-items:center;margin:0 5px;padding:0;display:grid}.tb-add-pen:hover{background:var(--surface-hover);color:var(--text)}.tb-dots{align-items:center;display:flex}.tb-dot{background:0 0;border:0;border-radius:6px;place-items:center;width:26px;height:36px;padding:0;display:grid;position:relative}.tb-dot span{width:var(--d);height:var(--d);background:var(--text-3);transition:transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);border-radius:50%}.tb-dot:after{content:"";width:calc(var(--d) + 10px);height:calc(var(--d) + 10px);box-shadow:inset 0 0 0 1.5px var(--text);opacity:0;transition:opacity var(--dur-fast) var(--ease);pointer-events:none;border-radius:50%;position:absolute;top:50%;left:50%;translate:-50% -50%}.tb-dot:hover span{background:var(--text-2)}.tb-dot.is-active span{background:var(--text);transform:scale(var(--s))}.tb-dot.is-active:after{opacity:1}.tb-colors{align-items:center;gap:1px;display:flex}.tb-color{background:0 0;border:0;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;padding:0;display:grid;position:relative}.tb-color:before{content:"";background:var(--sw);width:20px;height:20px;transition:transform var(--dur-fast) var(--ease);border-radius:50%}.tb-color.is-faint:before{box-shadow:inset 0 0 0 1px var(--border-strong)}.tb-color:hover:before{transform:scale(1.12)}.tb-color.is-active:after{content:"";box-shadow:inset 0 0 0 2px var(--text);border-radius:50%;position:absolute;inset:1px}.tb-more-colors{width:24px;height:24px;color:var(--text);transition:transform var(--dur-fast) var(--ease);background:conic-gradient(#ff4d4d,#ffb84d,#f5e14d,#5fd35f,#4dc3ff,#6b6bff,#d24dff,#ff4d4d);border:0;border-radius:50%;flex:none;place-items:center;margin:0 2px 0 3px;padding:0;display:grid;position:relative}.tb-more-colors:before{content:"";background:var(--surface);border-radius:50%;position:absolute;inset:2.5px}.tb-more-colors svg{position:relative}.tb-more-colors:hover{transform:scale(1.08)}.tb-current-color{border-radius:var(--radius);height:36px;color:var(--text-2);background:0 0;border:0;align-items:center;gap:2px;padding:0 6px;display:flex}.tb-current-color:hover{background:var(--surface-hover)}.tb-color-dot{background:var(--sw);border-radius:50%;flex:none;width:22px;height:22px;display:block}.tb-color-dot.is-faint{box-shadow:inset 0 0 0 1px var(--border-strong)}.tb-ink-options{transition:opacity var(--dur) var(--ease)}.tb-ink-options.is-dim{opacity:.55}.tb-ink-options.is-dim:hover,.tb-ink-options.is-dim:focus-within{opacity:1}.tb-eraser-options{gap:8px;padding:0 2px}.tb-options{flex:none;align-items:center;height:100%;display:grid}.tb-options>*{grid-area:1/1}.tb-options>[data-hidden=true]{visibility:hidden}.tb-colors{min-width:calc((var(--slots,11) + 1) * 29px + 29px)}.tb-color-slot{flex:none;width:28px;height:28px}.tb-options-btn{gap:3px;padding:0 7px}.tb-options-btn.is-dim{opacity:.7}.tb-eraser-dot{background:radial-gradient(circle, var(--text-2) calc(var(--d) / 2 - .5px), transparent calc(var(--d) / 2));width:22px;height:22px;box-shadow:inset 0 0 0 1.5px var(--border-strong);border-radius:50%;flex:none;display:block}.tb-pop-dots{border-bottom:1px solid var(--divider);justify-content:center;margin-bottom:4px;padding:0 0 6px;display:flex}.tb-eraser-popover{width:auto}.tb-pop-eraser{justify-items:center;gap:8px;display:grid}.tb-level-3 .tb-pen{width:26px}.tb-level-3 .kit-icon-btn-md{width:34px}@media (width<=640px){.tb-root{padding:0 4px;bottom:8px}.tb-sep{margin:0 3px}}.pm-popover{width:376px}.pm-root{padding:2px;display:grid}.pm-header{align-items:center;gap:12px;padding:2px 2px 4px;display:flex}.pm-hero{border-radius:var(--radius);background:var(--surface-2);box-sizing:content-box;flex:none;padding:4px 6px}.pm-title{min-width:0;display:grid}.pm-title strong{font-family:var(--font-display);font-size:15px;font-weight:600}.pm-title span{color:var(--text-2);font-size:12px}.pm-styles{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;display:grid}.pm-style{border-radius:var(--radius);color:var(--text-2);transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);background:0 0;border:1px solid #0000;justify-items:center;gap:2px;padding:6px 2px 5px;font-size:11px;display:grid}.pm-style:hover{background:var(--surface-hover)}.pm-style.is-active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}.pm-slider{grid-template-columns:1fr 32px 48px;align-items:center;gap:8px;padding:0 2px;display:grid}.pm-range{width:100%;accent-color:var(--accent);margin:0}.pm-dot-well{background:var(--surface-2);border-radius:50%;place-items:center;width:32px;height:32px;display:grid}.pm-dot{box-shadow:inset 0 0 0 1px var(--border-strong);border-radius:50%}.pm-size{font-variant-numeric:tabular-nums;text-align:right;color:var(--text-2);font-size:12px}.pm-divider{background:var(--divider);height:1px;margin:10px 0 4px}.pm-remove{color:var(--danger);justify-self:start;margin-top:4px}.tb-palette-popover{width:368px}.pal-root{gap:6px;width:100%;min-width:0;display:grid}.pal-heading{color:var(--text-2);padding:4px 2px 0;font-size:12px;font-weight:600}.pal-grid{gap:2px;display:grid}.pal-grid-quick{justify-content:start;gap:3px}.pal-swatch{aspect-ratio:1;background:var(--sw);width:100%;transition:transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:relative}.pal-grid-quick .pal-swatch{width:auto;margin:2px}.pal-grid-dense .pal-swatch{border-radius:3px}.pal-grid-wide .pal-swatch{aspect-ratio:auto;border-radius:3px;height:18px}.pal-swatch.is-faint{box-shadow:inset 0 0 0 1px var(--border-strong)}.pal-swatch:hover{z-index:1;transform:scale(1.18)}.pal-swatch.is-selected{z-index:2;box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--text)}.pal-grid-dense .pal-swatch.is-selected,.pal-grid-wide .pal-swatch.is-selected{box-shadow:0 0 0 1.5px var(--surface), 0 0 0 3px var(--text)}.pal-swatch:focus-visible{z-index:3;outline-offset:2px}.pal-info{min-height:22px;color:var(--text-2);align-items:center;gap:8px;padding:0 2px;font-size:12px;display:flex}.pal-info-chip{border-radius:4px;flex:none;width:16px;height:16px}.pal-info-chip.is-faint{box-shadow:inset 0 0 0 1px var(--border-strong)}.pal-info-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pal-custom-toggle{border-radius:var(--radius-sm);text-align:left;background:0 0;border:0;align-items:center;gap:8px;height:32px;padding:0 6px;font-weight:600;display:flex}.pal-custom-toggle:hover{background:var(--surface-hover)}.pal-rainbow{background:conic-gradient(#ff4d4d,#ffb84d,#f5e14d,#5fd35f,#4dc3ff,#6b6bff,#d24dff,#ff4d4d);border-radius:50%;flex:none;width:18px;height:18px}.pal-chevron{color:var(--text-3);transition:transform var(--dur) var(--ease);margin-left:auto}.pal-custom-toggle[aria-expanded=true] .pal-chevron{transform:rotate(180deg)}.pal-custom{gap:10px;padding:2px 2px 4px;display:grid}.pal-sv{border-radius:var(--radius);background:linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue));cursor:crosshair;touch-action:none;height:140px;position:relative}.pal-sv-thumb,.pal-hue-thumb{pointer-events:none;border:2px solid #fff;border-radius:50%;position:absolute;box-shadow:0 0 0 1px #00000059,0 1px 3px #0006}.pal-sv-thumb{width:16px;height:16px;margin:-8px 0 0 -8px}.pal-hue{cursor:pointer;touch-action:none;background:linear-gradient(90deg,red 0%,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red 100%);border-radius:7px;height:14px;position:relative}.pal-hue-thumb{width:18px;height:18px;margin:-9px 0 0 -9px;top:50%}.pal-custom-row{align-items:center;gap:8px;display:flex}.pal-preview{border-radius:50%;flex:none;width:28px;height:28px}.pal-preview.is-faint{box-shadow:inset 0 0 0 1px var(--border-strong)}.pal-hex-field{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);min-width:0;height:32px;color:var(--text-3);border-bottom-width:2px;flex:1;align-items:center;padding:0 8px;display:flex}.pal-hex-field:focus-within{border-bottom-color:var(--accent)}.pal-hex{min-width:0;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:.04em;-webkit-user-select:text;user-select:text;background:0 0;border:0;outline:none;flex:1;padding:0 0 0 2px}.cr-panel{z-index:400;scrollbar-width:thin;background:var(--surface);border:1px solid var(--border);width:196px;max-height:calc(100vh - 176px);box-shadow:var(--shadow-md);border-radius:12px;flex-direction:column;gap:1px;padding:6px;display:flex;position:fixed;top:50%;left:12px;overflow:hidden auto;transform:translateY(-50%)}.cr-panel.is-collapsed{width:auto}.cr-title{font-family:var(--font-display);color:var(--text-2);padding:4px 10px 6px;font-size:13px;font-weight:600}.cr-row{flex:none;align-items:stretch;display:flex}.cr-item{border-radius:var(--radius);min-width:0;height:44px;color:var(--text);text-align:left;white-space:nowrap;transition:background var(--dur-fast) var(--ease);background:0 0;border:0;flex:1;align-items:center;gap:10px;padding:0 10px;display:flex}.cr-item:hover{background:var(--surface-hover)}.cr-item:active{background:var(--surface-pressed)}.cr-item.is-active{background:var(--accent-soft);color:var(--accent-text)}.cr-icon{flex:none;place-items:center;width:24px;height:24px;display:grid}.cr-label{text-overflow:ellipsis;font-size:13px;overflow:hidden}.cr-more{color:var(--text-3);flex:none;margin-left:auto}.cr-chevron{border-radius:var(--radius-sm);width:22px;color:var(--text-3);background:0 0;border:0;flex:none;place-items:center;padding:0;display:grid}.cr-chevron:hover{background:var(--surface-hover);color:var(--text)}.cr-footer{border-top:1px solid var(--divider);margin-top:4px;padding-top:4px}.cr-collapse{width:100%;color:var(--text-2)}.cr-panel.is-collapsed .cr-item{flex:none;justify-content:center;width:44px;padding:0}.cr-panel.is-collapsed .cr-label,.cr-panel.is-collapsed .cr-more{display:none}.cr-panel.is-collapsed .cr-chevron{width:16px}.cr-popover{padding:10px}.cr-picker{gap:8px;display:grid}.cr-picker-title{color:var(--text-2);padding:0 2px;font-size:12px;font-weight:600}.cr-notes{grid-template-columns:repeat(4,44px);gap:8px;display:grid}.cr-note-swatch{background:linear-gradient(135deg, var(--sw) 78%, var(--fold) 78%);width:44px;height:44px;box-shadow:var(--shadow-sm);transition:transform var(--dur-fast) var(--ease);border:0;border-radius:3px;padding:0;position:relative}.cr-note-swatch:hover{transform:translateY(-2px)}.cr-note-swatch.is-active{outline:2px solid var(--text);outline-offset:2px}.cr-grid{gap:2px;display:grid}.cr-shapes{grid-template-columns:repeat(6,40px)}.cr-emoji{grid-template-columns:repeat(6,44px)}.cr-pick{border-radius:var(--radius);width:40px;height:40px;color:var(--text);background:0 0;border:0;place-items:center;padding:0;display:grid}.cr-pick:hover{background:var(--surface-hover)}.cr-pick.is-active{background:var(--accent-soft);color:var(--accent-text)}.cr-emoji .cr-pick{width:44px;height:44px;transition:transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);font-size:26px;line-height:1}.cr-emoji .cr-pick:hover{transform:scale(1.15)}.cr-lines{gap:2px;display:grid}.cr-lines-row{grid-template-columns:64px repeat(3,40px);align-items:center;gap:2px;display:grid}.cr-lines-label{color:var(--text-2);font-size:12px}.cr-fab{z-index:400;background:var(--accent);width:48px;height:48px;color:var(--text-on-accent);box-shadow:var(--shadow-md);transition:translate var(--dur) var(--ease), background var(--dur-fast) var(--ease);border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:fixed;bottom:16px;left:12px}.cr-fab:hover{background:var(--accent-hover)}.cr-fab svg{transition:transform var(--dur) var(--ease)}.cr-fab.is-open svg{transform:rotate(45deg)}.cr-sheet{width:min(480px,100vw - 16px);padding:10px}.cr-sheet-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:4px;display:grid}.cr-tile-wrap{position:relative}.cr-tile{width:100%;color:var(--text);text-align:center;background:0 0;border:0;border-radius:10px;justify-items:center;gap:6px;padding:12px 4px 10px;font-size:12px;display:grid}.cr-tile:hover{background:var(--surface-hover)}.cr-tile.is-active{background:var(--accent-soft);color:var(--accent-text)}.cr-tile-more{background:var(--surface-2);width:24px;height:24px;color:var(--text-2);border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:4px;right:4px}.cr-sheet-header{align-items:center;gap:6px;margin-bottom:8px;font-weight:600;display:flex}.zc-root{z-index:400;height:44px;transition:translate var(--dur) var(--ease);border-radius:10px;align-items:center;gap:1px;padding:3px;display:flex;position:fixed;bottom:16px;right:16px}.zc-pct{border-radius:var(--radius-sm);min-width:58px;height:36px;color:var(--text);font-variant-numeric:tabular-nums;background:0 0;border:0;padding:0 6px;font-weight:600}.zc-pct:hover{background:var(--surface-hover)}.zc-pct[aria-expanded=true]{background:var(--surface-pressed)}@media (width<=640px){.zc-root{bottom:8px;right:8px}.zc-root .zc-step{display:none}.cr-fab{bottom:8px;left:8px}}.ctx-bar{z-index:450;scrollbar-width:none;white-space:nowrap;background:var(--surface);border:1px solid var(--border);max-width:calc(100vw - 16px);height:44px;box-shadow:var(--shadow-md);will-change:transform;transition:opacity var(--dur-fast) var(--ease);border-radius:10px;align-items:center;gap:1px;padding:4px;display:flex;position:fixed;top:0;left:0;overflow:auto hidden}.ctx-bar::-webkit-scrollbar{display:none}.ctx-bar.is-hidden{visibility:hidden;opacity:0;pointer-events:none;transition:opacity var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast)}.ctx-bar:empty{display:none}.ctx-sep{background:var(--divider);flex:none;width:1px;height:22px;margin:0 4px}.ctx-btn{min-width:34px;height:34px;color:var(--text);transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;gap:2px;padding:0 6px;display:inline-flex}.ctx-btn:hover{background:var(--surface-hover)}.ctx-btn:active,.ctx-btn.is-open{background:var(--surface-pressed)}.ctx-btn.is-active{background:var(--accent-soft);color:var(--accent-text)}.ctx-btn.is-mixed{background:repeating-linear-gradient(135deg, var(--accent-soft) 0 3px, transparent 3px 6px);color:var(--accent-text)}.ctx-btn.is-danger:hover{background:var(--danger-soft);color:var(--danger)}.ctx-btn:disabled{opacity:.4;cursor:default}.ctx-caret{color:var(--text-3);margin-right:-2px}.ctx-swatch{background:var(--sw);border-radius:50%;flex:none;width:20px;height:20px;display:block}.ctx-swatch.is-faint{box-shadow:inset 0 0 0 1px var(--border-strong)}.ctx-swatch-fill{border-radius:5px}.ctx-swatch-outline{box-shadow:inset 0 0 0 4px var(--sw);background:0 0}.ctx-swatch-outline.is-faint{box-shadow:inset 0 0 0 4px var(--sw), inset 0 0 0 5px var(--border-strong), 0 0 0 1px var(--border-strong)}.ctx-swatch.is-mixed{box-shadow:none;background:conic-gradient(#ff4d4d,#ffb84d,#f5e14d,#5fd35f,#4dc3ff,#6b6bff,#d24dff,#ff4d4d)}.ctx-swatch-none{flex:none}.ctx-note-face{background:var(--sw);border-radius:2px;width:20px;height:20px;display:block;box-shadow:inset 0 0 0 1px #0000001f}.ctx-font-btn{justify-content:space-between;min-width:108px;padding:0 6px 0 10px}.ctx-font-face{text-overflow:ellipsis;max-width:96px;overflow:hidden}.ctx-stepper{flex:none;align-items:center;display:inline-flex}.ctx-stepper .ctx-btn{min-width:28px;padding:0 4px}.ctx-size{font-variant-numeric:tabular-nums;text-align:center;min-width:30px;font-weight:600}.ctx-popover{padding:8px}.ctx-palette-popover{width:368px}.ctx-text-popover{width:280px}.ctx-pop-col{gap:6px;display:grid}.ctx-pop-label{color:var(--text-2);padding:2px 2px 0;font-size:12px;font-weight:600}.ctx-pop-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ctx-choices{gap:2px;display:grid}.ctx-choice{width:36px;height:36px;color:var(--text);background:0 0;border:0;border-radius:6px;place-items:center;padding:0;display:grid}.ctx-choice:hover{background:var(--surface-hover)}.ctx-choice.is-active{background:var(--accent-soft);color:var(--accent-text)}.ctx-notes{grid-template-columns:repeat(4,40px);gap:8px;padding:2px;display:grid}.ctx-note-swatch{background:linear-gradient(135deg, var(--sw) 78%, var(--fold) 78%);width:40px;height:40px;box-shadow:var(--shadow-sm);transition:transform var(--dur-fast) var(--ease);border:0;border-radius:3px;padding:0}.ctx-note-swatch:hover{transform:translateY(-2px)}.ctx-note-swatch.is-active{outline:2px solid var(--text);outline-offset:2px}.ctx-font-list{gap:1px;min-width:180px;display:grid}.ctx-font-item{border-radius:var(--radius-sm);height:34px;color:var(--text);text-align:left;background:0 0;border:0;padding:0 10px;font-size:15px}.ctx-font-item:hover{background:var(--surface-hover)}.ctx-font-item.is-active{background:var(--accent-soft);color:var(--accent-text)}.ctx-text-colors{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.ctx-auto-color{border:1px solid var(--border-strong);height:24px;color:var(--text-2);background:0 0;border-radius:12px;padding:0 8px;font-size:12px}.ctx-auto-color.is-active{border-color:var(--text);color:var(--text);font-weight:600}.ctx-mini-swatch{background:var(--sw);border:0;border-radius:50%;width:20px;height:20px;padding:0;position:relative}.ctx-mini-swatch.is-faint{box-shadow:inset 0 0 0 1px var(--border-strong)}.ctx-mini-swatch.is-active{box-shadow:0 0 0 2px var(--surface), 0 0 0 3.5px var(--text)}.ctx-more-popover{padding:6px}.cm-popover{width:264px;padding:6px}.sd-search{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);height:36px;color:var(--text-3);border-bottom-width:2px;align-items:center;gap:8px;margin-bottom:16px;padding:0 10px;display:flex}.sd-search:focus-within{border-bottom-color:var(--accent)}.sd-search input{min-width:0;color:var(--text);background:0 0;border:0;outline:none;flex:1}.sd-cols{columns:2 280px;column-gap:32px}.sd-group{break-inside:avoid;margin-bottom:18px}.sd-group h3{font-family:var(--font-display);margin:0 0 4px;font-size:14px;font-weight:600}.sd-row{border-bottom:1px solid var(--divider);justify-content:space-between;align-items:center;gap:12px;min-height:34px;padding:4px 0;display:flex}.sd-label{color:var(--text)}.sd-keys{flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex}.sd-alt,.sd-combo{align-items:center;gap:3px;display:inline-flex}.sd-alt{gap:6px}.sd-kbd{border:1px solid var(--border-strong);background:var(--surface-2);min-width:24px;height:24px;color:var(--text);font-family:var(--font-ui);white-space:nowrap;border-bottom-width:2px;border-radius:5px;place-items:center;padding:0 6px;font-size:12px;font-weight:600;display:inline-grid}.sd-or{color:var(--text-3);font-size:12px}.sd-empty{text-align:center;padding:24px 0}.tpl-filters{margin:4px 0 16px;overflow-x:auto}.tpl-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;padding-bottom:8px;display:grid}.tpl-card{text-align:left;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);transition:border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);grid-template-rows:auto 1fr;padding:0;display:grid;overflow:hidden}.tpl-card:hover{border-color:var(--tpl-accent,var(--accent));box-shadow:var(--shadow-md);transform:translateY(-1px)}.tpl-card:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.tpl-preview{aspect-ratio:16/9;border-bottom:3px solid var(--tpl-accent,var(--accent));background:#fff;display:block}.tpl-preview img,.tpl-preview-empty{object-fit:contain;width:100%;height:100%;display:block}.tpl-text{gap:2px;padding:10px 12px 12px;display:grid}.tpl-text strong{font-weight:600}.tpl-text small{color:var(--text-2);line-height:1.35}.media-player{transform-origin:50%;box-shadow:var(--shadow-lg);animation:media-fade var(--dur) var(--ease);background:#000;position:absolute;top:0;left:0;overflow:hidden}.media-player iframe{border:0;width:100%;height:100%;display:block}.media-player-close{border:1px solid var(--border);background:var(--surface);width:32px;height:32px;color:var(--text);box-shadow:var(--shadow-md);transition:background var(--dur-fast) var(--ease);animation:media-fade var(--dur) var(--ease);border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:0;left:0}.media-player-close:hover{background:var(--surface-hover)}.media-player-close:active{background:var(--surface-pressed)}@keyframes media-fade{0%{opacity:0}}.video-dialog-form{margin:0}.video-preview{aspect-ratio:16/9;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--text-3);place-items:center;display:grid;position:relative;overflow:hidden}.video-preview-empty{text-align:center;justify-items:center;gap:8px;padding:16px;font-size:13px;display:grid}.video-preview.has-video{background:#141414;border-color:#0000}.video-preview-thumb{object-fit:cover;width:100%;height:100%;animation:media-fade var(--dur) var(--ease);position:absolute;inset:0}.video-preview-play{color:#fff;background:#0000008c;border:3px solid #ffffffeb;border-radius:50%;place-items:center;width:60px;height:60px;display:grid;position:relative}.video-preview-strip{color:#fff;background:linear-gradient(#0000,#000000c7);align-items:center;gap:8px;padding:28px 14px 12px;font-size:13px;font-weight:600;display:flex;position:absolute;bottom:0;left:0;right:0}.video-preview-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.video-preview-title.is-loading{background:#ffffff47;border-radius:5px;width:45%;height:10px;animation:1.2s ease-in-out infinite media-pulse}.video-preview-badge{letter-spacing:.02em;color:#fff;border-radius:5px;flex:none;place-items:center;height:20px;padding:0 7px;font-size:11px;font-weight:700;display:inline-grid}.video-preview-badge.is-youtube{background:#f03}.video-preview-badge.is-vimeo{background:#1ab7ea}.video-preview-start{opacity:.85;flex:none;margin-left:auto;font-weight:400}@keyframes media-pulse{50%{opacity:.45}}.wb-text-editor{z-index:1;box-shadow:none;resize:none;transform-origin:0 0;overflow-wrap:break-word;word-break:normal;tab-size:1;font-kerning:normal;font-variant-ligatures:normal;letter-spacing:normal;text-indent:0;text-transform:none;pointer-events:auto;-webkit-user-select:text;user-select:text;touch-action:pan-x pan-y;appearance:none;background:0 0;border:0;outline:none;margin:0;display:block;position:absolute;top:0;left:0;overflow:hidden}.wb-text-editor::placeholder{color:inherit;opacity:.45}.wb-text-editor::selection{background:color-mix(in srgb, var(--accent) 32%, transparent)}.wb-text-editor:focus-visible{outline:none}.home{background:var(--app-bg);min-height:100%;color:var(--text)}.home-header{z-index:50;height:60px;padding:0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));border-bottom:1px solid var(--border);background:color-mix(in srgb, var(--app-bg) 82%, transparent);-webkit-backdrop-filter:blur(14px)saturate(1.4);backdrop-filter:blur(14px)saturate(1.4);justify-content:space-between;align-items:center;gap:12px;display:flex;position:sticky;top:0}.home-brand{border-radius:var(--radius);color:var(--text);font-family:var(--font-display);align-items:center;gap:10px;margin-left:-6px;padding:4px 6px;font-size:18px;font-weight:600;text-decoration:none;display:flex}.home-header-actions{align-items:center;gap:6px;display:flex}.home-profile{border:1px solid var(--border);background:var(--surface);max-width:240px;height:38px;color:var(--text);transition:background var(--dur-fast) var(--ease);border-radius:19px;align-items:center;gap:8px;padding:0 14px 0 5px;font-weight:600;display:flex}.home-profile:hover{background:var(--surface-hover)}.home-profile>svg{color:var(--text-2);margin-left:4px}.home-profile-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.home-main{max-width:1240px;margin:0 auto;padding:32px 24px 72px}.home-hero{align-items:center;gap:32px;margin-bottom:40px;display:flex}.home-new-tile{border-radius:var(--radius-lg);color:#fff;text-align:left;width:288px;height:168px;box-shadow:var(--shadow-md);transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);background:linear-gradient(135deg,#5b5fc7 0%,#444791 100%);border:0;flex:none;padding:0;position:relative;overflow:hidden}.home-new-tile:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}.home-new-tile:active{transform:translateY(0)scale(.99)}.art-new{width:100%;height:100%;position:absolute;inset:0}.art-new-dots circle{fill:#ffffff42}.art-new-ink{fill:none;stroke:#ffd84a;stroke-width:5px;stroke-linecap:round;stroke-linejoin:round}.art-new-note{fill:#ffffffeb}.home-new-label{font-family:var(--font-display);align-items:center;gap:10px;font-size:18px;font-weight:600;display:flex;position:absolute;bottom:16px;left:18px}.home-new-plus{color:#4f52b2;width:38px;height:38px;transition:transform var(--dur) var(--ease);background:#fff;border-radius:50%;place-items:center;display:grid;box-shadow:0 2px 8px #00000038}.home-new-tile:hover .home-new-plus{transform:rotate(90deg)}.home-hero-copy h1{font-family:var(--font-display);letter-spacing:-.01em;margin:0 0 8px;font-size:30px;font-weight:600;line-height:1.2}.home-hero-copy p{max-width:540px;color:var(--text-2);margin:0;font-size:15px;line-height:1.5}.home-section{margin-top:36px}.home-toolbar{flex-wrap:wrap;align-items:center;gap:10px 12px;margin-bottom:16px;display:flex}.home-toolbar h2{font-family:var(--font-display);align-items:center;gap:8px;margin:0 auto 0 0;font-size:19px;font-weight:600;display:flex}.home-count{background:var(--surface-3);color:var(--text-2);font-family:var(--font-ui);border-radius:10px;padding:1px 8px;font-size:12px;font-weight:600}.home-section-note{color:var(--text-3);font-size:13px}.home-search{align-items:center;width:280px;max-width:100%;display:flex;position:relative}.home-search input{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;height:36px;color:var(--text);transition:border-color var(--dur-fast) var(--ease);padding:0 36px}.home-search input:hover{border-color:var(--border-strong)}.home-search input:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);outline:none}.home-search input::-webkit-search-cancel-button{display:none}.home-search-icon{color:var(--text-3);pointer-events:none;position:absolute;left:12px}.home-search-clear{position:absolute;right:4px}.home-search-hint{border:1px solid var(--border);color:var(--text-3);font-family:var(--font-ui);pointer-events:none;border-radius:4px;padding:0 6px;font-size:12px;line-height:18px;position:absolute;right:10px}.home-sort{height:36px;padding:0 10px}.home-sort-prefix{color:var(--text-2);font-weight:400}.board-grid{grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:20px;display:grid}.board-grid.is-compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}.board-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);min-width:0;box-shadow:var(--shadow-sm);transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);position:relative}.board-card:not(.is-skeleton):hover,.board-card:focus-within,.board-card.is-menu-open{box-shadow:var(--shadow-md);transform:translateY(-2px)}.board-card-link{border-radius:inherit;color:inherit;text-decoration:none;display:block}.board-card-link:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.board-thumb{aspect-ratio:16/10;border-bottom:1px solid var(--border);border-radius:calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;background:var(--surface-2);position:relative;overflow:hidden}.board-thumb img{object-fit:cover;opacity:0;width:100%;height:100%;transition:opacity var(--dur) var(--ease);background:#fff;display:block}.board-thumb img.is-loaded{opacity:1}:root[data-theme=dark] .board-thumb img{filter:brightness(.9)}.board-card-body{min-width:0;padding:10px 46px 12px 14px}.board-card-title{align-items:center;gap:6px;min-width:0;font-size:14px;font-weight:600;display:flex}.board-card-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.board-card-lock{color:var(--text-2);flex:none}.board-card-meta{color:var(--text-3);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:12px;overflow:hidden}.board-card-more{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--text-2);transition:opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);background:0 0;border:0;place-items:center;display:grid;position:absolute;bottom:12px;right:8px}.board-card-more:hover,.board-card-more[aria-expanded=true]{background:var(--surface-hover);color:var(--text)}@media (hover:hover){.board-card-more{opacity:0}.board-card:hover .board-card-more,.board-card:focus-within .board-card-more,.board-card.is-menu-open .board-card-more{opacity:1}}.art-paper{background-image:radial-gradient(color-mix(in srgb, var(--text) 17%, transparent) 1px, transparent 1.3px);background-size:14px 14px;place-items:center;display:grid;position:absolute;inset:0}.art-paper svg{width:72%;height:72%}.art-note{fill:#fff59d}.art-note-2{fill:#b3dcfd}:root[data-theme=dark] .art-note{fill:#e9d86a}:root[data-theme=dark] .art-note-2{fill:#7fb3e3}.art-locked{color:var(--text-2);flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex}.art-lock-badge{background:var(--surface);width:44px;height:44px;color:var(--accent-text);box-shadow:var(--shadow-sm);border-radius:50%;place-items:center;display:grid}.board-card.is-skeleton{box-shadow:none}.shimmer{background:linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 40%, var(--surface-2) 80%);background-size:200% 100%;animation:1.4s ease-in-out infinite home-shimmer}.sk-line{border-radius:6px;width:70%;height:12px}.sk-line.is-short{width:42%;height:10px;margin-top:8px}@keyframes home-shimmer{0%{background-position:150% 0}to{background-position:-50% 0}}.home-state{border:1px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface);text-align:center;justify-items:center;gap:10px;padding:44px 16px 52px;display:grid}.home-state.is-compact{padding:32px 16px 36px}.home-state h3{font-family:var(--font-display);overflow-wrap:anywhere;margin:4px 0 0;font-size:18px;font-weight:600}.home-state p{max-width:440px;color:var(--text-2);margin:0 0 8px}.home-state-icon{background:var(--surface-2);width:56px;height:56px;color:var(--text-2);border-radius:50%;place-items:center;display:grid}.art-empty{width:240px;max-width:70%;height:auto}.art-board{fill:var(--surface-2);stroke:var(--border-strong);stroke-width:1.5px}.art-dots circle{fill:var(--border-strong)}.art-ink{fill:none;stroke:var(--accent);stroke-width:5px;stroke-linecap:round;stroke-linejoin:round}.art-accent{fill:var(--text);stroke:var(--surface);stroke-width:1.5px;stroke-linejoin:round}.home-form-error,.kit-modal-body .home-form-error{color:var(--danger);margin:4px 0 0;font-size:13px}.home-disclosure{border-radius:var(--radius);color:var(--text);background:0 0;border:0;align-items:center;gap:8px;margin-left:-6px;padding:6px 10px 6px 6px;display:flex}.home-disclosure:hover{background:var(--surface-hover)}.home-disclosure h2{font-family:var(--font-display);margin:0;font-size:19px;font-weight:600}.home-disclosure-chevron{color:var(--text-2);transition:transform var(--dur-fast) var(--ease)}.home-disclosure[aria-expanded=true] .home-disclosure-chevron{transform:rotate(90deg)}.trash-list{max-width:760px;animation:kit-fade var(--dur) var(--ease);gap:8px;margin:12px 0 0;padding:0;list-style:none;display:grid}.trash-item{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);align-items:center;gap:12px;padding:10px 12px;display:flex}.trash-icon{background:var(--surface-2);width:34px;height:34px;color:var(--text-2);border-radius:50%;flex:none;place-items:center;display:grid}.trash-text{flex:1;min-width:0;display:grid}.trash-text strong,.trash-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.trash-name{border-radius:var(--radius-sm);max-width:100%;color:var(--text);justify-self:start;font-weight:600;text-decoration:none}.trash-name:hover{text-decoration:underline}.home-more{justify-content:center;margin-top:12px;display:flex}.trash-text small{color:var(--text-3)}.home .toast-region{bottom:28px}@media (width<=760px){.home-main{padding:20px 16px 56px}.home-hero{flex-direction:column-reverse;align-items:stretch;gap:18px;margin-bottom:28px}.home-new-tile{width:100%;height:132px}.home-hero-copy h1{font-size:24px}.home-search{order:3;width:100%}.home-sort-prefix,.home-section-note{display:none}}@media (width<=480px){.home-header{padding:0 12px}.board-grid,.board-grid.is-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.board-card-body{padding:8px 38px 10px 10px}.board-card-more{bottom:8px;right:4px}.home-profile{padding-right:5px}.home-profile-name{display:none}.trash-item{flex-wrap:wrap}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--font-ui:"Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;--font-display:"Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;--app-bg:#f5f5f5;--surface:#fff;--surface-2:#f5f5f5;--surface-3:#ebebeb;--surface-hover:#f0f0f0;--surface-pressed:#e0e0e0;--border:#e0e0e0;--border-strong:#c7c7c7;--divider:#e6e6e6;--text:#242424;--text-2:#5c5c5c;--text-3:#8a8a8a;--text-on-accent:#fff;--accent:#5b5fc7;--accent-hover:#4f52b2;--accent-pressed:#444791;--accent-soft:#e8ebfa;--accent-text:#4f52b2;--danger:#c4314b;--danger-soft:#fdf3f4;--success:#13a10e;--focus:#5b5fc7;--overlay:#00000052;--shadow-sm:0 1px 2px #0000001f, 0 0 1px #0000001a;--shadow-md:0 4px 8px #0000001f, 0 0 2px #0000001a;--shadow-lg:0 14px 28px #00000024, 0 0 8px #0000001a;--radius-sm:4px;--radius:8px;--radius-lg:12px;--radius-xl:16px;--ease:cubic-bezier(.33, 0, .1, 1);--dur-fast:.12s;--dur:.2s}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--app-bg:#141414;--surface:#292929;--surface-2:#1f1f1f;--surface-3:#333;--surface-hover:#383838;--surface-pressed:#2e2e2e;--border:#3d3d3d;--border-strong:#5c5c5c;--divider:#3a3a3a;--text:#f2f2f2;--text-2:#bdbdbd;--text-3:#8f8f8f;--accent:#7f85f5;--accent-hover:#9299f7;--accent-pressed:#6b70e0;--accent-soft:#2f2f4a;--accent-text:#a4a8f8;--danger:#f1707b;--danger-soft:#3b1f23;--overlay:#0000008c;--shadow-sm:0 1px 2px #00000080, 0 0 1px #0009;--shadow-md:0 4px 10px #00000073, 0 0 2px #0009;--shadow-lg:0 14px 30px #0000008c, 0 0 8px #00000080}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font-ui);color:var(--text);background:var(--app-bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-size:14px;line-height:1.4}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.board-root{background:var(--app-bg);-webkit-user-select:none;user-select:none;position:fixed;inset:0;overflow:hidden}:where(.board-root,.board-root *,.kit-popover,.kit-popover *){touch-action:pan-x pan-y}:where(html.is-page-zoomed) :where(.board-root,.board-root *,.kit-popover,.kit-popover *){touch-action:manipulation}@media (any-pointer:coarse){input:not([type=range],[type=checkbox],[type=radio],[type=color]),textarea:not(.wb-text-editor),select{font-size:16px!important}}.board-canvas-host{position:absolute;inset:0}.wb-canvas{outline:none;display:block;position:absolute;inset:0}.board-dom-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden}.board-dom-layer>*{pointer-events:auto}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md)}.center-screen{background:var(--app-bg);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.spinner{border:3px solid var(--surface-3);border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}
