/* One navigation tree: planning sidebar or floating menu. No board canvas/input rules. */
html.tw-menu-only{--tw-shell-height:0px!important;--tw-shell-rail:var(--tw-menu-sidebar-width,0px)!important;--tw-shell-bottom:0px!important}
html.tw-menu-only body #twAppShell{display:none!important;height:0!important}
html.tw-menu-only body #twPBModal,
html.tw-menu-only body #twPinboardModal,
html.tw-menu-only body #twTimelineModal{top:0!important;left:var(--tw-shell-rail)!important;bottom:0!important;width:auto!important}
html.tw-menu-only body #twBoard49Modal{top:0!important;left:0!important;bottom:0!important;width:auto!important}
html.tw-menu-only body .tw-shell-bottom,
html.tw-menu-only body .tw-shell-scrim{display:none!important}
/* The core retains this hidden compatibility target; the existing rail-edge tab is the visible control. */
html body #twBoard49ShowToolbarBtn{display:none!important;visibility:hidden!important;pointer-events:none!important}
html body #twUiFloatMenuPanel{
 --tw-menu-bg:var(--tw-ui-surface,var(--tw-surface,#fff));
 --tw-menu-text:var(--tw-ui-text,var(--tw-text,#16202e));
 --tw-menu-muted:var(--tw-ui-muted,var(--tw-muted,#64708a));
 --tw-menu-line:var(--tw-ui-line,var(--tw-line,#e4e8ef));
 --tw-menu-selected:var(--tw-ui-selected,var(--tw-accent-soft,#ebf0fa));
 --tw-menu-accent:var(--tw-ui-accent,var(--tw-accent,#2d4a8a));
 width:min(360px,calc(100vw - 16px));min-width:0;max-width:calc(100vw - 16px);
 max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);
 box-sizing:border-box;padding:14px;overflow:auto;overscroll-behavior:contain;
 background:var(--tw-menu-bg)!important;color:var(--tw-menu-text)!important;
 border:1px solid var(--tw-menu-line);border-radius:18px;box-shadow:0 14px 48px rgba(16,26,39,.22);
 font-family:TWAssistant,system-ui,sans-serif;
}
html body #twUiFloatMenuPanel[hidden]{display:none!important}
html body #twUiFloatMenuPanel .tw-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 10px}
html body #twUiFloatMenuPanel .tw-app-brand{width:auto;min-width:0;font-size:18px;color:var(--tw-menu-text);margin:0}
html body #twUiFloatMenuPanel .tw-app-brand b{font-size:18px}
html body #twUiFloatMenuPanel .tw-app-brand b span{color:var(--tw-menu-accent)}
html body #twUiFloatMenuPanel .tw-app-brandmark{display:none}
html body #twUiFloatMenuPanel .tw-menu-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--tw-menu-line);padding-bottom:10px;margin-bottom:10px}
html body #twUiFloatMenuPanel .tw-shell-context{display:flex;align-items:center;gap:8px;color:var(--tw-menu-text);font-size:13px}
html body #twUiFloatMenuPanel .tw-shell-sync{display:inline-flex!important;align-items:center;min-height:32px;margin:0;font-size:12px;color:var(--tw-menu-muted);background:var(--tw-menu-selected)}
html body #twUiFloatMenuPanel .tw-shell-sync[data-state=offline],
html body #twUiFloatMenuPanel .tw-shell-sync[data-state=saving]{color:#966219}
html body #twUiFloatMenuPanel .tw-app-nav{
 position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
 width:100%!important;height:auto!important;padding:0!important;margin:0;gap:4px;overflow:visible;
 border:0!important;background:transparent!important;box-shadow:none!important;
}
html body #twUiFloatMenuPanel button{
 box-sizing:border-box;min-height:44px!important;min-width:0;margin:0;max-width:100%;
 border:0!important;border-radius:10px!important;background:transparent!important;color:var(--tw-menu-text)!important;
 font:600 13px/1.3 TWAssistant,system-ui,sans-serif!important;cursor:pointer;touch-action:manipulation;
 display:flex!important;align-items:center;justify-content:flex-start;gap:8px;padding:10px!important;
 text-align:left;white-space:normal;box-shadow:none!important;
}
html body #twUiFloatMenuPanel button[hidden],
html body #twUiFloatMenuPanel button[aria-hidden=true]{display:none!important}
html body #twUiFloatMenuPanel .tw-app-nav button{width:100%!important;min-height:48px!important;flex-direction:row!important}
html body #twUiFloatMenuPanel .tw-app-nav button span:last-child{max-width:none;white-space:normal;text-align:left}
html body #twUiFloatMenuPanel .tw-app-nav button:last-child{margin-top:0!important}
html body #twUiFloatMenuPanel .tw-app-nav button:after{display:none!important}
html body #twUiFloatMenuPanel button.is-active,
html body #twUiFloatMenuPanel button[aria-current=page]{background:var(--tw-menu-selected)!important;color:var(--tw-menu-accent)!important}
html body #twUiFloatMenuPanel button:hover{background:var(--tw-menu-selected)!important}
html body #twUiFloatMenuPanel button:focus-visible{outline:3px solid var(--tw-menu-accent)!important;outline-offset:-3px}
html body #twUiFloatMenuPanel button:disabled{opacity:.45;cursor:default}
html body #twUiFloatMenuPanel button svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8}
html body #twUiFloatMenuPanel #twMenuClose{width:44px;height:44px;justify-content:center;font-size:26px!important;padding:0!important}
html body #twUiFloatMenuPanel .tw-shell-context button{display:flex!important;width:44px;height:44px;padding:0!important;justify-content:center}
html body #twUiFloatMenuPanel .tw-app-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:10px 0 0;padding-top:10px;border-top:1px solid var(--tw-menu-line);width:100%}
html body #twUiFloatMenuPanel .tw-app-actions .tw-app-iconbtn{width:auto;height:auto}
html body #twUiFloatMenuPanel .tw-app-actions button[data-menu-label]:after{content:attr(data-menu-label);display:inline!important;font:inherit;position:static;background:none;height:auto;width:auto}
html body #twUiFloatMenuPanel #twAppNavBoardV559,
html body #twUiFloatMenuPanel #twAppNavLessonPlanV575,
html body #twUiFloatMenuPanel #twAppPersonalizeV559{display:flex!important}
html body:not(.tw-board-open) #twUiFloatMenuPanel #twMenuBoardActions,
html body:not(.tw-board-open) #twUiFloatMenuPanel #twAppNavLessonPlanV575{display:none!important}
html body #twUiFloatMenuPanel #twAppMore{display:none!important}
html body #twUiFloatMenuPanel .tw-menu-footer{border-top:1px solid var(--tw-menu-line);margin-top:10px;padding-top:8px;display:grid;gap:6px}
html body #twUiFloatMenuPanel .tw-menu-footer small{padding:0 10px;color:var(--tw-menu-muted);font-size:11px;line-height:1.5}
html body #twUiFloatMenuBtn{width:56px;height:56px;max-width:56px;min-height:56px;padding:0;touch-action:none}
html body #twUiFloatMenuBtn:focus-visible{outline:3px solid var(--tw-ui-accent,var(--tw-accent));outline-offset:4px}
/* Category titles become separators in icon mode, retaining their accessible text. */
html body #twBoard49Toolbar .tw-ui-rail-section{font-size:10px!important;font-weight:650!important;line-height:1.2!important;letter-spacing:.04em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #twBoard49Toolbar.tw-ui-rail-collapsed .tw-ui-rail-section{display:block!important;font-size:0!important;line-height:0!important;height:9px!important;min-height:9px!important;padding:0!important;margin:6px 8px 0!important;border-top:1px solid var(--tw-v560-chrome-border,rgba(255,255,255,.2))}
html body #twBoard49Toolbar.tw-ui-rail-collapsed #twBoard49BubbleStrip .tw-ui-rail-item,
html body #twBoard49Toolbar.tw-ui-rail-collapsed .tw-ui-rail-toggle{min-height:44px!important;height:44px!important}
html[data-theme=dark] body #twUiFloatMenuPanel{--tw-menu-bg:var(--tw-x-surface,#1a2230);--tw-menu-text:var(--tw-x-text,#eaeef6);--tw-menu-muted:var(--tw-x-muted,#a9b5c9);--tw-menu-line:var(--tw-x-line,#354257);--tw-menu-selected:var(--tw-x-surface-2,#273449)}
@media(max-width:420px){html body #twUiFloatMenuPanel{padding:10px;border-radius:14px}html body #twUiFloatMenuPanel .tw-app-nav{grid-template-columns:repeat(2,minmax(0,1fr))}html body #twUiFloatMenuPanel button{font-size:12px!important}}
@media print{html body #twUiFloatMenuBtn,html body #twUiFloatMenuPanel{display:none!important}}

/* Persistent main navigation beside the subject/folder workspace. */
html body #twMenuSidebar{
 --tw-menu-bg:var(--tw-ui-surface,var(--tw-surface,#fff));
 --tw-menu-text:var(--tw-ui-text,var(--tw-text,#16202e));
 --tw-menu-muted:var(--tw-ui-muted,var(--tw-muted,#64708a));
 --tw-menu-line:var(--tw-ui-line,var(--tw-line,#e4e8ef));
 --tw-menu-selected:var(--tw-ui-selected,var(--tw-accent-soft,#ebf0fa));
 --tw-menu-accent:var(--tw-ui-accent,var(--tw-accent,#2d4a8a));
 position:fixed;inset:0 auto 0 0;width:var(--tw-shell-rail);box-sizing:border-box;
 display:flex;flex-direction:column;z-index:3100;padding:18px 10px;
 background:var(--tw-menu-bg);color:var(--tw-menu-text);border-right:1px solid var(--tw-menu-line);
 font-family:TWAssistant,system-ui,sans-serif;overflow:auto;overscroll-behavior:contain;
}
html body #twMenuSidebar[hidden]{display:none!important}
html body #twMenuSidebar .tw-menu-sidebar-title{padding:2px 10px 20px;font-size:16px;font-weight:700;letter-spacing:-.025em}
html body #twMenuSidebar .tw-app-nav{position:static!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0;flex:1 0 auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:4px;padding:0!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body #twMenuSidebar .tw-app-nav button{box-sizing:border-box;width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;padding:12px 10px!important;display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center;justify-content:flex-start!important;gap:10px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--tw-menu-muted)!important;font:600 14px/1.25 TWAssistant,system-ui,sans-serif!important;white-space:normal!important;text-align:left;cursor:pointer;touch-action:manipulation;box-shadow:none!important}
html body #twMenuSidebar .tw-app-nav button[hidden],html body #twMenuSidebar .tw-app-nav button[aria-hidden=true],
html body #twMenuSidebar #twAppNavLessonPlanV575{display:none!important}
html body #twMenuSidebar .tw-app-nav button:after{display:none!important}
html body #twMenuSidebar .tw-app-nav button span:last-child{max-width:none;text-align:left;white-space:normal}
html body #twMenuSidebar .tw-app-nav button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
html body #twMenuSidebar .tw-app-nav button:hover{background:var(--tw-menu-selected)!important;color:var(--tw-menu-text)!important}
html body #twMenuSidebar .tw-app-nav button.is-active,html body #twMenuSidebar .tw-app-nav button[aria-current=page]{background:var(--tw-menu-selected)!important;color:var(--tw-menu-accent)!important}
html body #twMenuSidebar .tw-app-nav button:focus-visible{outline:3px solid var(--tw-menu-accent);outline-offset:-3px}
html[data-theme=dark] body #twMenuSidebar{--tw-menu-bg:var(--tw-x-surface,#1a2230);--tw-menu-text:var(--tw-x-text,#eaeef6);--tw-menu-muted:var(--tw-x-muted,#a9b5c9);--tw-menu-line:var(--tw-x-line,#354257);--tw-menu-selected:var(--tw-x-surface-2,#273449)}
@media(min-width:701px) and (max-width:900px){
 html body #twMenuSidebar{padding:14px 5px}
 html body #twMenuSidebar .tw-menu-sidebar-title{font-size:11px;padding:0 0 14px;text-align:center;letter-spacing:-.04em}
 html body #twMenuSidebar .tw-app-nav button{flex-direction:column!important;justify-content:center!important;gap:5px!important;min-height:62px!important;padding:9px 2px!important;font-size:10px!important}
 html body #twMenuSidebar .tw-app-nav button span:last-child{text-align:center}
}
@media print{html body #twMenuSidebar{display:none!important}html.tw-menu-only{--tw-shell-rail:0px!important}}

/* Board actions use the same palette and targets as the left toolrail. */
html body #twBoard49Modal #twBoard49HeaderBar{display:none!important;height:0!important;min-height:0!important;padding:0!important;border:0!important;flex-basis:0!important}
html body #twBoard49Modal #twBoard49ActionMenu{
 /* Above pen/inspector chrome, below the shared modal-dialog layer. */
 position:fixed;z-index:2147483300;box-sizing:border-box;max-width:calc(100vw - 16px);
 max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain;
 padding:14px;border:1px solid var(--tw-v560-chrome-border);border-radius:18px;
 background:var(--tw-v559-chrome-bg);color:var(--tw-v560-chrome-fg);
 box-shadow:0 12px 36px var(--tw-v560-chrome-shadow);backdrop-filter:none;-webkit-backdrop-filter:none;
 font:600 13px/1.4 TWAssistant,system-ui,sans-serif;
}
html body #twBoard49Modal #twBoard49ActionMenu[hidden]{display:none!important}
html body #twBoard49Modal #twBoard49ActionMenu .tw-board-actions-heading{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
html body #twBoard49Modal #twBoard49ActionMenu h2{font:700 16px/1.3 TWAssistant,system-ui,sans-serif;margin:0;color:inherit}
html body #twBoard49Modal #twBoard49ActionMenu .tw-board-actions-context{padding:8px 0 12px;border-bottom:1px solid var(--tw-v560-chrome-border);margin-bottom:6px}
html body #twBoard49Modal #twBoard49ActionMenu #twUiBoardTitle{font-size:14px;font-weight:700;overflow-wrap:anywhere;color:inherit}
html body #twBoard49Modal #twBoard49ActionMenu #twUiBoardSubtitle,
html body #twBoard49Modal #twBoard49ActionMenu #twUiHeaderDate,
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49PageInfo{font-size:12px;color:var(--tw-v560-chrome-muted)}
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49CloudSyncBadge{display:inline-block;max-width:100%;white-space:normal;font-size:12px;margin-top:6px;padding:5px 8px;border-radius:8px;background:var(--tw-v560-control-bg)!important;color:var(--tw-v560-chrome-fg)!important}
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49CloudSyncBadge.tw-ui-cloud-error,
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49JsStatusModal{color:var(--tw-v560-chrome-fg)!important;font-weight:700}
html body #twBoard49Modal #twBoard49ActionMenu section{border-bottom:1px solid var(--tw-v560-chrome-border);padding:10px 0}
html body #twBoard49Modal #twBoard49ActionMenu h3,
html body #twBoard49Modal #twBoard49ActionMenu summary{font:650 11px/1.3 TWAssistant,system-ui,sans-serif;color:var(--tw-v560-chrome-muted);margin:0 0 5px;letter-spacing:.03em}
html body #twBoard49Modal #twBoard49ActionMenu .tw-board-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
html body #twBoard49Modal #twBoard49ActionMenu .tw-board-action{
 box-sizing:border-box;min-height:44px!important;height:auto!important;width:100%!important;padding:8px!important;display:flex;align-items:center;justify-content:flex-start!important;gap:9px!important;
 border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;
 color:var(--tw-v560-chrome-fg)!important;font:650 13px/1.3 TWAssistant,system-ui,sans-serif!important;
 text-align:left;cursor:pointer;white-space:normal!important;box-shadow:none!important;touch-action:manipulation;
}
html body #twBoard49Modal #twBoard49ActionMenu .tw-board-action:hover{background:var(--tw-v560-control-hover)!important;transform:none!important}
html body #twBoard49Modal #twBoard49ActionMenu .tw-board-action:focus-visible,
html body #twBoard49Modal #twBoard49ActionMenu summary:focus-visible{outline:2px solid var(--tw-v560-chrome-fg)!important;outline-offset:-3px;background:var(--tw-v560-control-hover)!important}
html body #twBoard49Modal #twBoard49ActionMenu .tw-board-action:disabled{opacity:.45;cursor:default}
html body #twBoard49Modal #twBoard49ActionMenu .tw-ui-rail-icon{display:inline-flex;width:20px;height:20px;flex:none}
html body #twBoard49Modal #twBoard49ActionMenu svg{width:20px;height:20px;fill:none!important;stroke:currentColor!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body #twBoard49Modal #twBoard49ActionMenu .tw-ui-rail-label{display:inline!important;overflow-wrap:anywhere;color:inherit!important}
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49ActionsCloseBtn{width:44px!important;min-width:44px;min-height:44px!important;padding:0!important;justify-content:center!important}
html body #twBoard49Modal #twBoard49ActionMenu details{padding-top:12px}
html body #twBoard49Modal #twBoard49ActionMenu summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;margin:0}
html body #twBoard49Modal #twBoard49ActionMenu .is-danger{border-color:var(--tw-v560-chrome-border)!important}
html body #twBoard49Modal #twBoard49ActionMenu.tw-board-actions-compact .tw-board-action-grid{grid-template-columns:1fr}
html body:not(.tw-board-open) #twUiFloatMenuPanel #twMenuBoardActions{display:none!important}
html body #twBoard49BubbleStrip #twBoard49SaveBtn,
html body #twBoard49BubbleStrip #twBoard49ActionsBtn{width:100%!important;height:44px!important;color:var(--tw-v560-chrome-fg)!important;background:transparent!important;border:1px solid transparent!important;border-radius:12px!important;min-height:44px!important;box-shadow:none!important}
html body #twBoard49BubbleStrip #twBoard49SaveBtn:hover,
html body #twBoard49BubbleStrip #twBoard49ActionsBtn:hover{background:var(--tw-v560-control-hover)!important;transform:none!important}
html body #twBoard49BubbleStrip #twBoard49SaveBtn:focus-visible,
html body #twBoard49BubbleStrip #twBoard49ActionsBtn:focus-visible{outline:2px solid var(--tw-ui-accent)!important;outline-offset:-3px}
html body #twBoard49BubbleStrip #twBoard49ActionsBtn.tw-ui-rail-active{background:var(--tw-v560-control-hover)!important}
@media print{html body #twBoard49Modal #twBoard49ActionMenu{display:none!important}}

html.tw-chrome-translucent body #twBoard49Modal #twBoard49ActionMenu{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}

/* Board menus consume the chrome palette, independent of the app theme. */
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup,#twBoard49PenFloatColorPopup){
 --tw-ui-text:var(--tw-v560-chrome-fg);--tw-ui-muted:var(--tw-v560-control-muted,var(--tw-v560-chrome-muted));
 --tw-ui-surface:var(--tw-v560-control-surface,var(--tw-v560-control-bg));
 --tw-ui-selected:var(--tw-v560-control-hover-surface,var(--tw-v560-control-hover));
 --tw-ui-line:var(--tw-v560-control-border);--tw-ui-accent:var(--tw-v560-control-accent,var(--tw-v560-chrome-fg));
 --tw-ui-danger:var(--tw-v560-control-danger,var(--tw-v560-chrome-fg));
 color-scheme:var(--tw-v560-color-scheme,dark);
}
/* Floating settings and action cards have one adaptive skin. Their content,
   values and positioning remain owned by the existing tool controllers. */
html body #twBoard49BubbleSectionPopup.tw-ui-inspector{
 position:fixed!important;right:auto!important;bottom:auto!important;width:326px!important;
 max-width:calc(100vw - 16px)!important;max-height:calc(100vh - 16px)!important;max-height:calc(100dvh - var(--tw-bsp-top,8px) - 8px)!important;
 padding:0!important;box-sizing:border-box!important;border:1px solid var(--tw-v560-chrome-border)!important;border-radius:18px!important;
 background:var(--tw-v559-chrome-bg)!important;color:var(--tw-v560-chrome-fg)!important;
 box-shadow:0 12px 36px var(--tw-v560-chrome-shadow)!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:hidden!important;
 font:600 13px/1.4 TWAssistant,system-ui,sans-serif!important;scrollbar-width:thin;
 scrollbar-color:var(--tw-v560-chrome-border) transparent;
}
html.tw-chrome-translucent body #twBoard49BubbleSectionPopup.tw-ui-inspector{backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
html.tw-low-power body #twBoard49BubbleSectionPopup.tw-ui-inspector{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body #twBoard49BubbleSectionPopup #twBoard49BubbleSectionDragBar{
 min-height:44px!important;padding:8px 14px!important;background:transparent!important;
 border-bottom:1px solid var(--tw-v560-chrome-border)!important;color:var(--tw-v560-chrome-muted)!important;
 font:600 16px/1 TWAssistant,system-ui,sans-serif!important;
}
html body #twBoard49BubbleSectionPopup #twBoard49BubbleSectionContent{min-height:0;padding:14px!important;overscroll-behavior:contain}
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section{
 display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;color:var(--tw-v560-chrome-fg)!important;
}
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section>div:first-child{font:700 16px/1.3 TWAssistant,system-ui,sans-serif!important;color:var(--tw-v560-chrome-fg)!important;margin-bottom:12px!important}
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section :is(label,small,p,h3,h4),
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section div[style*="font-size"][style*="color"]:not(.tw-ui-menu-status):not([data-menu-preview]){color:var(--tw-v560-chrome-fg)!important}
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section :is(small,p,h3,h4),
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section div[style*="font-size:12px"][style*="color"]:not(.tw-ui-menu-status):not([data-menu-preview]){color:var(--tw-ui-muted)!important}
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section div[style*="font-weight:900"]{font-weight:700!important}
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section h3,
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section h4{font:650 11px/1.3 TWAssistant,system-ui,sans-serif!important;letter-spacing:.03em!important;margin:14px 0 7px!important}
html body #twBoard49BubbleSectionPopup .tw-ui-menu-card:is(label){min-height:44px;padding:8px!important;font-size:13px!important;font-weight:650!important}
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section [style*="border-top"]{border-top-color:var(--tw-v560-chrome-border)!important}
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section>div[style*="display:grid"],
html body #twBoard49BubbleSectionPopup .tw-ui-inspector-section>div[style*="display:flex"]{gap:4px!important}
/* Color samples, palette remove handles and fixed tool controls keep their own
   functional size, color and positioning. No generic button rule reaches them. */
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) button:not(:where(.tw-ui-color-swatch,.tw-ui-menu-tile,.tw-external-tool-btn,.tw-fn-overlay-v597,[data-color],[data-focus-color],[data-saved-color],[data-swatch],[data-pen-color],[data-palette-color],[data-tw-btn-skip],[data-tool-close-focus],[data-tool-close],[data-pfc],[data-fcolor])){
 box-sizing:border-box;min-height:44px!important;height:auto!important;padding:8px 10px!important;border:1px solid transparent!important;
 border-radius:10px!important;background:transparent!important;color:var(--tw-v560-chrome-fg)!important;box-shadow:none!important;
 font:650 13px/1.3 TWAssistant,system-ui,sans-serif!important;white-space:normal!important;text-align:left!important;
 justify-content:flex-start!important;touch-action:manipulation;
}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) button.tw-x-btn-icon{width:44px!important;height:44px!important;padding:0!important;justify-content:center!important}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) button:not(:where(.tw-ui-color-swatch,.tw-ui-menu-tile,.tw-external-tool-btn,.tw-fn-overlay-v597,[data-color],[data-focus-color],[data-saved-color],[data-swatch],[data-pen-color],[data-palette-color],[data-tw-btn-skip],[data-tool-close-focus],[data-tool-close],[data-pfc],[data-fcolor])):enabled:hover{background:var(--tw-ui-selected)!important;transform:none!important}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) button:not(:where(.tw-ui-color-swatch,.tw-ui-menu-tile,.tw-external-tool-btn,.tw-fn-overlay-v597,[data-color],[data-focus-color],[data-saved-color],[data-swatch],[data-pen-color],[data-palette-color],[data-tw-btn-skip],[data-tool-close-focus],[data-tool-close],[data-pfc],[data-fcolor])):enabled:is(.tw-ui-selected,[aria-pressed="true"],.is-active,[style*="border:2px"],[style*="border: 2px"]){background:var(--tw-ui-selected)!important;border-color:var(--tw-ui-accent)!important;color:var(--tw-v560-chrome-fg)!important;box-shadow:none!important}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) button:focus-visible,
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) :is(input,select,textarea):focus-visible{outline:2px solid var(--tw-ui-accent)!important;outline-offset:-3px}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) button:disabled{
 opacity:1!important;cursor:default!important;color:var(--tw-ui-muted)!important;
 background:var(--tw-ui-surface)!important;border-color:var(--tw-ui-line)!important;
 -webkit-text-fill-color:currentColor!important;
}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) :is(input,select,textarea):not(:where([type="color"],[type="range"],[type="checkbox"],[type="radio"],[type="file"])){
 min-height:44px!important;box-sizing:border-box!important;padding:8px!important;border:1px solid var(--tw-v560-control-border)!important;
 border-radius:10px!important;background:var(--tw-ui-surface)!important;color:var(--tw-ui-text)!important;font:500 13px/1.3 TWAssistant,system-ui,sans-serif!important;
 -webkit-text-fill-color:currentColor!important;
}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) :is(input,textarea)::placeholder{color:var(--tw-ui-muted)!important;opacity:1}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) select option{background:var(--tw-ui-surface);color:var(--tw-ui-text)}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) input:is([type="range"],[type="checkbox"],[type="radio"]){accent-color:var(--tw-ui-accent)!important}
/* Only native text/button controls are normalized; samples retain their colors. */
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) :is(button,input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),textarea){appearance:none;-webkit-appearance:none}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) :is(input,select,textarea):disabled{
 opacity:1!important;color:var(--tw-ui-muted)!important;-webkit-text-fill-color:currentColor!important;
}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) :is(input,textarea)[readonly]{border-style:dashed!important}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) button.tw-ui-menu-danger:not(:disabled){color:var(--tw-ui-danger)!important}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) .tw-ui-icon{fill:none!important;stroke:currentColor!important}
html body :is(#twBoard49BubbleSectionPopup,#twBoard49Toolbar.tw-ui-toolbar-full,#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) hr{border:0;border-top:1px solid var(--tw-v560-chrome-border);margin:12px 0}
/* A single grid owns the rail's icon/label columns, including the new actions. */
html body #twBoard49Toolbar #twBoard49BubbleStrip .tw-ui-rail-item{
 display:grid!important;grid-template-columns:22px minmax(0,1fr);align-items:center!important;justify-content:start!important;
 column-gap:8px!important;padding:0 8px!important;text-align:left!important;
}
html body #twBoard49Toolbar #twBoard49BubbleStrip .tw-ui-rail-icon{display:grid!important;place-items:center;width:22px!important;height:22px!important;min-width:22px;flex:none;margin:0!important;padding:0!important;color:inherit!important}
html body #twBoard49Toolbar #twBoard49BubbleStrip .tw-ui-rail-icon svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body #twBoard49Toolbar #twBoard49BubbleStrip .tw-ui-rail-label{min-width:0;margin:0!important;padding:0!important;text-align:left!important;color:inherit!important}
html body #twBoard49Toolbar.tw-ui-rail-collapsed #twBoard49BubbleStrip .tw-ui-rail-item{grid-template-columns:22px;justify-content:center!important;column-gap:0!important;padding:0!important}
html body #twBoard49Toolbar.tw-ui-rail-collapsed #twBoard49BubbleStrip .tw-ui-rail-label{display:none!important}
html body #twBoard49Toolbar #twBoard49BubbleStrip .tw-ui-team-status{position:absolute;right:8px}
/* Title and grip form one touch/mouse/stylus/keyboard handle; the close button
   remains outside it. Only this handle claims a drag. */
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49ActionsDragHandle{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:44px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49ActionsDragHandle>svg{color:var(--tw-v560-chrome-muted);flex:none}
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49ActionsDragHandle.is-dragging{cursor:grabbing}
html body #twBoard49Modal #twBoard49ActionMenu #twBoard49ActionsDragHandle:focus-visible{outline:2px solid var(--tw-v560-chrome-fg);outline-offset:2px;border-radius:10px}

html body :is(#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup,#twBoard49PenFloatColorPopup){background:var(--tw-v559-chrome-bg)!important;color:var(--tw-v560-chrome-fg)!important;border:1px solid var(--tw-v560-chrome-border)!important;border-radius:18px!important;box-shadow:0 12px 36px var(--tw-v560-chrome-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.tw-chrome-translucent body :is(#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup,#twBoard49PenFloatColorPopup){backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
html.tw-low-power body :is(#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup,#twBoard49PenFloatColorPopup){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

html body #twBoard49BubbleSectionPopup .tw-external-tool-btn{background:transparent!important;color:var(--tw-v560-chrome-fg)!important;border-color:var(--tw-v560-chrome-border)!important;box-shadow:none!important}
html body #twBoard49BubbleSectionPopup .tw-external-tool-btn:hover{background:var(--tw-v560-control-hover)!important}

html body #twBoard49Modal #twBoard49ActionMenu .tw-board-actions-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--tw-v560-chrome-border) transparent}

/* V622.114: pen and geometry choices share the surrounding chrome color. */
:is(#twBoard49PenFloatToolPopup,#twBoard49PenFloatGeoPopup) .tw-pen-tool-label{color:inherit!important;font-size:12px}

/* V622.115: collapse is one layout change, not a width animation across the board. */
html body #twBoard49Toolbar.tw-ui-rail-mode{transition:none!important;contain:layout style}
html body #twBoard49Toolbar .tw-ui-rail-label{transition:none!important}

