2026-10-19 15:56:52 -07:00
/* OverType 2.6.1 generated CSS: regenerate with node scripts/vendor-overtype.mjs */
/* OverType Editor Styles */
/* Middle-ground CSS Reset - Prevent parent styles from leaking in */
. overtype-container * {
/* Box model - these commonly leak */
margin : 0 !important ;
padding : 0 !important ;
border : 0 !important ;
/* Layout - these can break our layout */
/* Don't reset position - it breaks dropdowns */
float : none !important ;
clear : none !important ;
/* Typography - only reset decorative aspects */
text-decoration : none !important ;
text-transform : none !important ;
letter-spacing : normal !important ;
/* Visual effects that can interfere */
box-shadow : none !important ;
text-shadow : none !important ;
/* Ensure box-sizing is consistent */
box-sizing : border-box !important ;
/* Keep inheritance for these */
/* font-family, color, line-height, font-size - inherit */
}
/* Container base styles after reset */
. overtype-container {
display : flex !important ;
flex-direction : column !important ;
width : 100 % !important ;
height : 100 % !important ;
position : relative !important ; /* Override reset - needed for absolute children */
overflow : visible !important ; /* Allow dropdown to overflow container */
font-family : - apple-system , BlinkMacSystemFont , "Segoe UI" , Roboto , sans-serif !important ;
text-align : left !important ;
/* Theme Variables */
--bg-primary : #faf0ca ;
--bg-secondary : #ffffff ;
--text : #0d3b66 ;
--text-primary : #0d3b66 ;
--text-secondary : #5a7a9b ;
--h1 : #f95738 ;
--h2 : #ee964b ;
--h3 : #3d8a51 ;
--strong : #ee964b ;
--em : #f95738 ;
--del : #ee964b ;
--link : #0d3b66 ;
--code : #0d3b66 ;
--code-bg : rgba ( 244 , 211 , 94 , 0.4 );
--blockquote : #5a7a9b ;
--hr : #5a7a9b ;
--syntax-marker : rgba ( 13 , 59 , 102 , 0.52 );
--syntax : #999999 ;
--cursor : #f95738 ;
--selection : rgba ( 244 , 211 , 94 , 0.4 );
--list-marker : #ee964b ;
--raw-line : #5a7a9b ;
--border : #e0e0e0 ;
--hover-bg : #f0f0f0 ;
--primary : #0d3b66 ;
--toolbar-bg : #ffffff ;
--toolbar-icon : #0d3b66 ;
--toolbar-hover : #f5f5f5 ;
--toolbar-active : #faf0ca ;
--placeholder : #999999 ;
--preview-text-default : #0d3b66 ;
--preview-h1-default : inherit ;
--preview-h2-default : inherit ;
--preview-h3-default : inherit ;
--preview-strong-default : inherit ;
--preview-em-default : inherit ;
--preview-link-default : #0d3b66 ;
--preview-code-default : #0d3b66 ;
--preview-code-bg-default : rgba ( 244 , 211 , 94 , 0.4 );
--preview-blockquote-default : #5a7a9b ;
--preview-hr-default : #5a7a9b ;
--preview-bg-default : transparent ;
}
/* Force left alignment for all elements in the editor */
. overtype-container . overtype-wrapper * {
text-align : left !important ;
}
/* Auto-resize mode styles */
. overtype-container . overtype-auto-resize {
height : auto !important ;
}
. overtype-container . overtype-auto-resize . overtype-wrapper {
flex : 0 0 auto !important ; /* Don't grow/shrink, use explicit height */
height : auto !important ;
min-height : 60 px !important ;
overflow : visible !important ;
}
. overtype-wrapper {
position : relative !important ; /* Override reset - needed for absolute children */
width : 100 % !important ;
flex : 1 1 0 !important ; /* Grow to fill remaining space, with flex-basis: 0 */
min-height : 60 px !important ; /* Minimum usable height */
overflow : hidden !important ;
background : var ( -- bg - secondary , #ffffff ) !important ;
z-index : 1 ; /* Below toolbar and dropdown */
}
/* Critical alignment styles - must be identical for both layers */
. overtype-wrapper . overtype-input ,
. overtype-wrapper . overtype-preview {
/* Positioning - must be identical */
position : absolute !important ; /* Override reset - required for overlay */
top : 0 !important ;
left : 0 !important ;
width : 100 % !important ;
height : 100 % !important ;
/* Font properties - any difference breaks alignment */
font-family : var ( -- instance - font - family , "SF Mono" , SFMono - Regular , Menlo , Monaco , "Cascadia Code" , Consolas , "Roboto Mono" , "Noto Sans Mono" , "Droid Sans Mono" , "Ubuntu Mono" , "DejaVu Sans Mono" , "Liberation Mono" , "Courier New" , Courier , monospace ) !important ;
font-variant-ligatures : none !important ; /* keep metrics stable for code */
font-size : var ( -- instance - font - size , 14 px ) !important ;
line-height : var ( -- instance - line - height , 1.6 ) !important ;
font-weight : normal !important ;
font-style : normal !important ;
font-variant : normal !important ;
font-stretch : normal !important ;
font-kerning : none !important ;
font-feature-settings : normal !important ;
/* Box model - must match exactly */
padding : var ( -- instance - padding , 20 px ) !important ;
margin : 0 !important ;
border : none !important ;
outline : none !important ;
box-sizing : border-box !important ;
/* Text layout - critical for character positioning */
white-space : pre-wrap !important ;
word-wrap : break-word !important ;
word-break : normal !important ;
overflow-wrap : break-word !important ;
tab-size : 2 !important ;
-moz- tab-size : 2 !important ;
text-align : left !important ;
text-indent : 0 !important ;
letter-spacing : normal !important ;
word-spacing : normal !important ;
/* Text rendering */
text-transform : none !important ;
text-rendering : auto !important ;
-webkit- font-smoothing : auto !important ;
-webkit- text-size-adjust : 100 % !important ;
/* Direction and writing */
direction : ltr !important ;
writing-mode : horizontal - tb !important ;
unicode-bidi : normal !important ;
text-orientation : mixed !important ;
/* Visual effects that could shift perception */
text-shadow : none !important ;
filter : none !important ;
transform : none !important ;
zoom : 1 !important ;
/* Vertical alignment */
vertical-align : baseline !important ;
/* Size constraints */
min-width : 0 !important ;
min-height : 0 !important ;
max-width : none !important ;
max-height : none !important ;
/* Overflow */
overflow-y : auto !important ;
overflow-x : auto !important ;
/* overscroll-behavior removed to allow scroll-through to parent */
scrollbar-width : auto !important ;
scrollbar-gutter : auto !important ;
/* Animation/transition - disabled to prevent movement */
animation : none !important ;
transition : none !important ;
}
/* Input layer styles */
. overtype-wrapper . overtype-input {
/* Layer positioning */
z-index : 1 !important ;
/* Text visibility */
color : transparent !important ;
caret-color : var ( -- cursor , #f95738 ) !important ;
background-color : transparent !important ;
/* Textarea-specific */
resize : none !important ;
appearance : none !important ;
-webkit- appearance : none !important ;
-moz- appearance : none !important ;
/* Prevent mobile zoom on focus */
touch-action : manipulation !important ;
/* Disable autofill */
autocomplete : off !important ;
autocorrect : off !important ;
autocapitalize : off !important ;
}
. overtype-wrapper . overtype-input :: selection {
background-color : var ( -- selection , rgba ( 244 , 211 , 94 , 0.4 ));
}
. overtype-wrapper . overtype-input :: placeholder {
color : transparent !important ;
}
/* Placeholder shim - visible when textarea is empty */
. overtype-wrapper . overtype-placeholder {
position : absolute !important ;
top : 0 !important ;
left : 0 !important ;
width : 100 % !important ;
z-index : 0 !important ;
pointer-events : none !important ;
user-select : none !important ;
font-family : var ( -- instance - font - family , "SF Mono" , SFMono - Regular , Menlo , Monaco , "Cascadia Code" , Consolas , "Roboto Mono" , "Noto Sans Mono" , "Droid Sans Mono" , "Ubuntu Mono" , "DejaVu Sans Mono" , "Liberation Mono" , "Courier New" , Courier , monospace ) !important ;
font-size : var ( -- instance - font - size , 14 px ) !important ;
line-height : var ( -- instance - line - height , 1.6 ) !important ;
padding : var ( -- instance - padding , 20 px ) !important ;
box-sizing : border-box !important ;
color : var ( -- placeholder , #999 ) !important ;
}
/* Preview layer styles */
. overtype-wrapper . overtype-preview {
/* Layer positioning */
z-index : 0 !important ;
pointer-events : none !important ;
color : var ( -- text , #0d3b66 ) !important ;
background-color : transparent !important ;
/* Prevent text selection */
user-select : none !important ;
-webkit- user-select : none !important ;
-moz- user-select : none !important ;
-ms- user-select : none !important ;
}
/* Prevent external resets (Tailwind, Bootstrap, etc.) from breaking alignment.
Any element whose font metrics differ from the textarea causes the CSS "strut"
to inflate line boxes, drifting the overlay. Force inheritance so every element
inside the preview matches the textarea exactly. */
. overtype-wrapper . overtype-preview * {
font-family : inherit !important ;
font-size : inherit !important ;
line-height : inherit !important ;
}
/* Defensive styles for preview child divs */
. overtype-wrapper . overtype-preview div {
/* Reset any inherited styles */
margin : 0 !important ;
padding : 0 !important ;
border : none !important ;
text-align : left !important ;
text-indent : 0 !important ;
display : block !important ;
position : static !important ;
transform : none !important ;
min-height : 0 !important ;
max-height : none !important ;
line-height : inherit !important ;
font-size : inherit !important ;
font-family : inherit !important ;
}
/* Markdown element styling - NO SIZE CHANGES */
. overtype-wrapper . overtype-preview . header {
font-weight : bold !important ;
}
/* Header colors */
. overtype-wrapper . overtype-preview . h1 {
color : var ( -- h1 , #f95738 ) !important ;
}
. overtype-wrapper . overtype-preview . h2 {
color : var ( -- h2 , #ee964b ) !important ;
}
. overtype-wrapper . overtype-preview . h3 {
color : var ( -- h3 , #3d8a51 ) !important ;
}
/* Semantic headers - flatten in edit mode */
. overtype-wrapper . overtype-preview h1 ,
. overtype-wrapper . overtype-preview h2 ,
. overtype-wrapper . overtype-preview h3 {
font-size : inherit !important ;
font-weight : bold !important ;
margin : 0 !important ;
padding : 0 !important ;
display : inline !important ;
line-height : inherit !important ;
}
/* Header colors for semantic headers */
. overtype-wrapper . overtype-preview h1 {
color : var ( -- h1 , #f95738 ) !important ;
}
. overtype-wrapper . overtype-preview h2 {
color : var ( -- h2 , #ee964b ) !important ;
}
. overtype-wrapper . overtype-preview h3 {
color : var ( -- h3 , #3d8a51 ) !important ;
}
/* Lists - remove styling in edit mode */
. overtype-wrapper . overtype-preview ul ,
. overtype-wrapper . overtype-preview ol {
list-style : none !important ;
margin : 0 !important ;
padding : 0 !important ;
display : block !important ; /* Lists need to be block for line breaks */
}
. overtype-wrapper . overtype-preview li {
display : block !important ; /* Each item on its own line */
margin : 0 !important ;
padding : 0 !important ;
/* Don't set list-style here - let ul/ol control it */
}
/* Bold text */
. overtype-wrapper . overtype-preview strong {
color : var ( -- strong , #ee964b ) !important ;
font-weight : bold !important ;
}
/* Italic text */
. overtype-wrapper . overtype-preview em {
color : var ( -- em , #f95738 ) !important ;
text-decoration-color : var ( -- em , #f95738 ) !important ;
text-decoration-thickness : 1 px !important ;
font-style : italic !important ;
}
/* Strikethrough text */
. overtype-wrapper . overtype-preview del {
color : var ( -- del , #ee964b ) !important ;
text-decoration : line-through !important ;
text-decoration-color : var ( -- del , #ee964b ) !important ;
text-decoration-thickness : 1 px !important ;
}
/* Inline code */
. overtype-wrapper . overtype-preview code {
background : var ( -- code - bg , rgba ( 244 , 211 , 94 , 0.4 )) !important ;
color : var ( -- code , #0d3b66 ) !important ;
padding : 0 !important ;
border-radius : 2 px !important ;
font-family : inherit !important ;
font-size : inherit !important ;
line-height : inherit !important ;
font-weight : normal !important ;
}
/* Code blocks - consolidated pre blocks */
. overtype-wrapper . overtype-preview pre {
padding : 0 !important ;
margin : 0 !important ;
border-radius : 4 px !important ;
overflow-x : auto !important ;
}
/* Code block styling in normal mode - yellow background */
. overtype-wrapper . overtype-preview pre . code-block {
background : var ( -- code - bg , rgba ( 244 , 211 , 94 , 0.4 )) !important ;
white-space : break-spaces !important ; /* Prevent horizontal scrollbar that breaks alignment */
}
/* Code inside pre blocks - remove background */
. overtype-wrapper . overtype-preview pre code {
background : transparent !important ;
color : var ( -- code , #0d3b66 ) !important ;
font-family : var ( -- instance - font - family , "SF Mono" , SFMono - Regular , Menlo , Monaco , "Cascadia Code" , Consolas , "Roboto Mono" , "Noto Sans Mono" , "Droid Sans Mono" , "Ubuntu Mono" , "DejaVu Sans Mono" , "Liberation Mono" , "Courier New" , Courier , monospace ) !important ; /* Match textarea font exactly for alignment */
}
/* Blockquotes */
. overtype-wrapper . overtype-preview . blockquote {
color : var ( -- blockquote , #5a7a9b ) !important ;
padding : 0 !important ;
margin : 0 !important ;
border : none !important ;
}
/* Links */
. overtype-wrapper . overtype-preview a {
color : var ( -- link , #0d3b66 ) !important ;
text-decoration : underline !important ;
font-weight : normal !important ;
}
. overtype-wrapper . overtype-preview a : hover {
text-decoration : underline !important ;
color : var ( -- link , #0d3b66 ) !important ;
}
/* Lists - no list styling */
. overtype-wrapper . overtype-preview ul ,
. overtype-wrapper . overtype-preview ol {
list-style : none !important ;
margin : 0 !important ;
padding : 0 !important ;
}
/* Horizontal rules */
. overtype-wrapper . overtype-preview hr {
border : none !important ;
color : var ( -- hr , #5a7a9b ) !important ;
margin : 0 !important ;
padding : 0 !important ;
}
. overtype-wrapper . overtype-preview . hr-marker {
color : var ( -- hr , #5a7a9b ) !important ;
opacity : 0.6 !important ;
}
/* Code fence markers - with background when not in code block */
. overtype-wrapper . overtype-preview . code-fence {
color : var ( -- code , #0d3b66 ) !important ;
background : var ( -- code - bg , rgba ( 244 , 211 , 94 , 0.4 )) !important ;
}
/* Code block lines - background for entire code block */
. overtype-wrapper . overtype-preview . code-block-line {
background : var ( -- code - bg , rgba ( 244 , 211 , 94 , 0.4 )) !important ;
}
/* Remove background from code fence when inside code block line */
. overtype-wrapper . overtype-preview . code-block-line . code-fence {
background : transparent !important ;
}
/* Raw markdown line */
. overtype-wrapper . overtype-preview . raw-line {
color : var ( -- raw - line , #5a7a9b ) !important ;
font-style : normal !important ;
font-weight : normal !important ;
}
/* Syntax markers */
. overtype-wrapper . overtype-preview . syntax-marker {
color : var ( -- syntax - marker , rgba ( 13 , 59 , 102 , 0.52 )) !important ;
opacity : 0.7 !important ;
}
/* List markers */
. overtype-wrapper . overtype-preview . list-marker {
color : var ( -- list - marker , #ee964b ) !important ;
}
/* Stats bar */
/* Stats bar - positioned by flexbox */
. overtype-stats {
height : 40 px !important ;
padding : 0 20 px !important ;
background : var ( -- bg - secondary , #f8f9fa ) !important ;
border-top : 1 px solid var ( -- border , #e0e0e0 ) !important ;
display : flex !important ;
justify-content : space-between !important ;
align-items : center !important ;
font-family : - apple-system , BlinkMacSystemFont , 'Segoe UI' , Roboto , sans-serif !important ;
font-size : 0.85 rem !important ;
color : var ( -- text - secondary , #666 ) !important ;
flex-shrink : 0 !important ; /* Don't shrink */
z-index : 10001 !important ; /* Above link tooltip */
position : relative !important ; /* Enable z-index */
}
. overtype-stats . overtype-stat {
display : flex !important ;
align-items : center !important ;
gap : 5 px !important ;
white-space : nowrap !important ;
}
. overtype-stats . live-dot {
width : 8 px !important ;
height : 8 px !important ;
background : #4caf50 !important ;
border-radius : 50 % !important ;
animation : overtype-pulse 2 s infinite !important ;
}
@ keyframes overtype-pulse {
0 %, 100 % { opacity : 1 ; transform : scale ( 1 ); }
50 % { opacity : 0.6 ; transform : scale ( 1.2 ); }
}
/* Toolbar Styles */
. overtype-toolbar . overtype-toolbar-hidden {
display : none !important ;
}
. overtype-toolbar {
display : flex !important ;
align-items : center !important ;
gap : 4 px !important ;
padding : 8 px !important ; /* Override reset */
background : var ( -- toolbar - bg , var ( -- bg - primary , #f8f9fa )) !important ; /* Override reset */
border-bottom : 1 px solid var ( -- toolbar - border , transparent ) !important ; /* Override reset */
overflow-x : auto !important ; /* Allow horizontal scrolling */
overflow-y : hidden !important ; /* Hide vertical overflow */
-webkit- overflow-scrolling : touch !important ;
flex-shrink : 0 !important ;
height : auto !important ;
position : relative !important ; /* Override reset */
z-index : 100 !important ; /* Ensure toolbar is above wrapper */
scrollbar-width : thin ; /* Thin scrollbar on Firefox */
}
/* Thin scrollbar styling */
. overtype-toolbar :: -webkit-scrollbar {
height : 4 px ;
}
. overtype-toolbar :: -webkit-scrollbar-track {
background : transparent ;
}
. overtype-toolbar :: -webkit-scrollbar-thumb {
background : rgba ( 0 , 0 , 0 , 0.2 );
border-radius : 2 px ;
}
. overtype-toolbar-button {
display : flex ;
align-items : center ;
justify-content : center ;
width : 32 px ;
height : 32 px ;
padding : 0 ;
border : none ;
border-radius : 6 px ;
background : transparent ;
color : var ( -- toolbar - icon , var ( -- text - secondary , #666 ));
cursor : pointer ;
transition : all 0.2 s ease ;
flex-shrink : 0 ;
}
. overtype-toolbar-button svg {
width : 20 px ;
height : 20 px ;
fill : currentColor ;
}
. overtype-toolbar-button : hover {
background : var ( -- toolbar - hover , var ( -- bg - secondary , #e9ecef ));
color : var ( -- toolbar - icon , var ( -- text - primary , #333 ));
}
. overtype-toolbar-button : active {
transform : scale ( 0.95 );
}
. overtype-toolbar-button . active {
background : var ( -- toolbar - active , var ( -- primary , #007bff ));
color : var ( -- toolbar - icon , var ( -- text - primary , #333 ));
}
. overtype-toolbar-button : disabled {
opacity : 0.5 ;
cursor : not-allowed ;
}
. overtype-toolbar-separator {
width : 1 px ;
height : 24 px ;
background : var ( -- border , #e0e0e0 );
margin : 0 4 px ;
flex-shrink : 0 ;
}
/* Adjust wrapper when toolbar is present */
/* Mobile toolbar adjustments */
@ media ( max-width : 640px ) {
. overtype-toolbar {
padding : 6 px ;
gap : 2 px ;
}
. overtype-toolbar-button {
width : 36 px ;
height : 36 px ;
}
. overtype-toolbar-separator {
margin : 0 2 px ;
}
}
/* Plain mode - hide preview and show textarea text */
. overtype-container [ data-mode = "plain" ] . overtype-preview {
display : none !important ;
}
. overtype-container [ data-mode = "plain" ] . overtype-input {
color : var ( -- text , #0d3b66 ) !important ;
/* Use system font stack for better plain text readability */
font-family : - apple-system , BlinkMacSystemFont , "Segoe UI" , Roboto ,
"Helvetica Neue" , Arial , sans-serif !important ;
}
/* Ensure textarea remains transparent in overlay mode */
. overtype-container : not ([ data-mode = "plain" ]) . overtype-input {
color : transparent !important ;
}
/* Dropdown menu styles */
. overtype-toolbar-button {
position : relative !important ; /* Override reset - needed for dropdown */
}
. overtype-toolbar-button . dropdown-active {
background : var ( -- toolbar - active , var ( -- hover - bg , #f0f0f0 ));
}
. overtype-dropdown-menu {
position : fixed !important ; /* Fixed positioning relative to viewport */
background : var ( -- bg - secondary , white ) !important ; /* Override reset */
border : 1 px solid var ( -- border , #e0e0e0 ) !important ; /* Override reset */
border-radius : 6 px ;
box-shadow : 0 2 px 8 px rgba ( 0 , 0 , 0 , 0.1 ) !important ; /* Override reset */
z-index : 10000 ; /* Very high z-index to ensure visibility */
min-width : 150 px ;
padding : 4 px 0 !important ; /* Override reset */
/* Position will be set via JavaScript based on button position */
}
. overtype-dropdown-item {
display : flex ;
align-items : center ;
width : 100 % ;
padding : 8 px 12 px ;
border : none ;
background : none ;
text-align : left ;
cursor : pointer ;
font-size : 14 px ;
color : var ( -- text , #333 );
font-family : - apple-system , BlinkMacSystemFont , "Segoe UI" , Roboto , sans-serif ;
}
. overtype-dropdown-item : hover {
background : var ( -- hover - bg , #f0f0f0 );
}
. overtype-dropdown-item . active {
font-weight : 600 ;
}
. overtype-dropdown-check {
width : 16 px ;
margin-right : 8 px ;
color : var ( -- h1 , #007bff );
}
. overtype-dropdown-icon {
width : 20 px ;
margin-right : 8 px ;
text-align : center ;
}
/* Preview mode styles */
. overtype-container [ data-mode = "preview" ] . overtype-input {
display : none !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-preview {
pointer-events : auto !important ;
user-select : text !important ;
cursor : text !important ;
}
. overtype-container . overtype-auto-resize [ data-mode = "preview" ] . overtype-preview {
position : static !important ;
height : auto !important ;
}
/* Hide syntax markers in preview mode */
. overtype-container [ data-mode = "preview" ] . syntax-marker {
display : none !important ;
}
/* Hide URL part of links in preview mode - extra specificity */
. overtype-container [ data-mode = "preview" ] . syntax-marker . url-part ,
. overtype-container [ data-mode = "preview" ] . url-part {
display : none !important ;
}
/* Hide all syntax markers inside links too */
. overtype-container [ data-mode = "preview" ] a . syntax-marker {
display : none !important ;
}
/* Headers - restore proper sizing in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview h1 ,
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview h2 ,
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview h3 {
font-family : - apple-system , BlinkMacSystemFont , "Segoe UI" , Roboto , sans-serif !important ;
font-weight : 600 !important ;
margin : 0 !important ;
display : block !important ;
line-height : 1 !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview h1 {
font-size : 2 em !important ;
color : var ( -- preview - h1 , var ( -- preview - h1 - default )) !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview h2 {
font-size : 1.5 em !important ;
color : var ( -- preview - h2 , var ( -- preview - h2 - default )) !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview h3 {
font-size : 1.17 em !important ;
color : var ( -- preview - h3 , var ( -- preview - h3 - default )) !important ;
}
/* Lists - restore list styling in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview ul {
display : block !important ;
list-style : disc !important ;
padding-left : 2 em !important ;
margin : 1 em 0 !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview ol {
display : block !important ;
list-style : decimal !important ;
padding-left : 2 em !important ;
margin : 1 em 0 !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview li {
display : list-item !important ;
margin : 0 !important ;
padding : 0 !important ;
}
/* Task list checkboxes - only in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview li . task-list {
list-style : none !important ;
position : relative !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview li . task-list input [ type = "checkbox" ] {
margin-right : 0.5 em !important ;
cursor : default !important ;
vertical-align : middle !important ;
}
/* Task list in normal mode - keep syntax visible */
. overtype-container : not ([ data-mode = "preview" ]) . overtype-wrapper . overtype-preview li . task-list {
list-style : none !important ;
}
. overtype-container : not ([ data-mode = "preview" ]) . overtype-wrapper . overtype-preview li . task-list . syntax-marker {
color : var ( -- syntax , #999999 ) !important ;
font-weight : normal !important ;
}
/* Links - make clickable in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview a {
pointer-events : auto !important ;
cursor : pointer !important ;
color : var ( -- preview - link , var ( -- preview - link - default )) !important ;
text-decoration : underline !important ;
}
/* Code blocks - proper pre/code styling in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview pre . code-block {
background : var ( -- preview - code - bg , var ( -- preview - code - bg - default )) !important ;
color : var ( -- preview - code , var ( -- preview - code - default )) !important ;
padding : 1.2 em !important ;
border-radius : 3 px !important ;
overflow-x : auto !important ;
margin : 0 !important ;
display : block !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview pre . code-block code {
background : transparent !important ;
color : inherit !important ;
padding : 0 !important ;
font-family : "SF Mono" , SFMono-Regular , Menlo , Monaco , "Cascadia Code" , Consolas , "Roboto Mono" , "Noto Sans Mono" , "Droid Sans Mono" , "Ubuntu Mono" , "DejaVu Sans Mono" , "Liberation Mono" , "Courier New" , Courier , monospace !important ;
font-size : 0.9 em !important ;
line-height : 1.4 !important ;
}
/* Hide old code block lines and fences in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview . code-block-line {
display : none !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview . code-fence {
display : none !important ;
}
/* Blockquotes - enhanced styling in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview . blockquote {
display : block !important ;
border-left : 4 px solid var ( -- preview - blockquote , var ( -- preview - blockquote - default )) !important ;
color : var ( -- preview - blockquote , var ( -- preview - blockquote - default )) !important ;
padding-left : 1 em !important ;
margin : 1 em 0 !important ;
font-style : italic !important ;
}
/* Typography improvements in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview {
font-family : Georgia , 'Times New Roman' , serif !important ;
font-size : 16 px !important ;
line-height : 1.8 !important ;
color : var ( -- preview - text , var ( -- preview - text - default )) !important ;
background : var ( -- preview - bg , var ( -- preview - bg - default )) !important ;
}
/* Inline code in preview mode - keep monospace */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview code {
font-family : "SF Mono" , SFMono-Regular , Menlo , Monaco , "Cascadia Code" , Consolas , "Roboto Mono" , "Noto Sans Mono" , "Droid Sans Mono" , "Ubuntu Mono" , "DejaVu Sans Mono" , "Liberation Mono" , "Courier New" , Courier , monospace !important ;
font-size : 0.9 em !important ;
background : var ( -- preview - code - bg , var ( -- preview - code - bg - default )) !important ;
color : var ( -- preview - code , var ( -- preview - code - default )) !important ;
padding : 0.2 em 0.4 em !important ;
border-radius : 3 px !important ;
}
/* Strong and em elements in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview strong {
font-weight : 700 !important ;
color : var ( -- preview - strong , var ( -- preview - strong - default )) !important ;
}
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview em {
font-style : italic !important ;
color : var ( -- preview - em , var ( -- preview - em - default )) !important ;
}
/* HR in preview mode */
. overtype-container [ data-mode = "preview" ] . overtype-wrapper . overtype-preview . hr-marker {
display : block !important ;
border-top : 2 px solid var ( -- preview - hr , var ( -- preview - hr - default )) !important ;
text-indent : -9999 px !important ;
height : 2 px !important ;
}
/* Link Tooltip */
. overtype-link-tooltip {
background : #333 !important ;
color : white !important ;
padding : 6 px 10 px !important ;
border-radius : 16 px !important ;
font-size : 12 px !important ;
font-family : - apple-system , BlinkMacSystemFont , 'Segoe UI' , sans-serif !important ;
display : flex !important ;
visibility : hidden !important ;
pointer-events : none !important ;
z-index : 10000 !important ;
cursor : pointer !important ;
box-shadow : 0 2 px 8 px rgba ( 0 , 0 , 0 , 0.3 ) !important ;
max-width : 300 px !important ;
white-space : nowrap !important ;
overflow : hidden !important ;
text-overflow : ellipsis !important ;
position : fixed ;
top : 0 ;
left : 0 ;
}
. overtype-link-tooltip . visible {
visibility : visible !important ;
pointer-events : auto !important ;
}
/* end OverType */
/* The notepad's own rules. Everything above the end marker is OverType's,
regenerated by scripts/vendor-overtype.mjs; everything from here on is kept
by it as written. */
/* OverType's theme, mapped onto the console's tokens. The tokens already flip
between light and dark (tokens.css), so one mapping covers both themes. The
id outranks OverType's own `.overtype-container` block, whatever the order. */
# notepad-modal . overtype-container {
--bg-primary : var ( -- panel );
--bg-secondary : var ( -- panel );
--text : var ( -- ink );
--text-primary : var ( -- ink );
--text-secondary : var ( -- ink -2 );
--h1 : var ( -- accent );
--h2 : var ( -- accent );
--h3 : var ( -- accent );
--strong : var ( -- ink );
--em : var ( -- ink );
--del : var ( -- ink -3 );
--link : var ( -- accent );
--code : var ( -- ink );
--code-bg : color-mix ( in srgb , var ( -- rule ) 70 % , transparent );
--blockquote : var ( -- ink -2 );
--hr : var ( -- ink -3 );
--syntax-marker : var ( -- ink -3 );
--syntax : var ( -- ink -3 );
--cursor : var ( -- accent );
--selection : color-mix ( in srgb , var ( -- accent ) 25 % , transparent );
--list-marker : var ( -- accent );
--raw-line : var ( -- ink -2 );
--border : var ( -- rule );
--hover-bg : var ( -- panel -2 );
--primary : var ( -- accent );
--placeholder : var ( -- ink -3 );
--preview-text-default : var ( -- ink );
--preview-link-default : var ( -- accent );
--preview-code-default : var ( -- ink );
--preview-code-bg-default : color-mix ( in srgb , var ( -- rule ) 70 % , transparent );
--preview-blockquote-default : var ( -- ink -2 );
--preview-hr-default : var ( -- ink -3 );
font-family : var ( -- sans ) !important ;
}
/* One monospace font at one size and line height, everywhere in the editor:
the styled layer sits exactly over the textarea, so any difference in
metrics walks the caret away from the text. */
# notepad-modal . overtype-wrapper {
--instance-font-family : var ( -- mono );
--instance-font-size : 14 px ;
--instance-line-height : 1.6 ;
--instance-padding : 16 px ;
}
/* The top bar's Notepad button: drawn and lit like the Subagents button. */
2026-10-19 17:55:37 -07:00
. notepad-btn { border-color : var ( -- rule -2 ); color : var ( -- ink -2 ); display : inline-flex ; align-items : center ; justify-content : center ; gap : 6 px ; }
. btn . notepad-btn { padding : 0 8 px ; align-self : stretch ; }
. notepad-btn . notepad-label { font-size : 13 px ; line-height : 1 ; }
. notepad-btn . np-band { fill : var ( -- ink -2 ); stroke : none ; }
. notepad-btn : hover : not ( : disabled ) . np-band { fill : var ( -- accent ); }
. notepad-btn : disabled . np-band { fill : var ( -- ink -3 ); }
2026-10-19 15:56:52 -07:00
. notepad-btn svg { width : 16 px ; height : 16 px ; display : block ; }
. notepad-btn . np-page ,
. notepad-btn . np-ring ,
. notepad-btn . np-line { fill : none ; stroke : var ( -- ink -2 ); stroke-width : 1.2 ; stroke-linecap : round ; }
. notepad-btn . np-page { stroke-width : 1.3 ; }
. notepad-btn : hover : not ( : disabled ) { color : var ( -- accent ); border-color : var ( -- accent - line ); }
. notepad-btn : hover : not ( : disabled ) . np-page ,
. notepad-btn : hover : not ( : disabled ) . np-ring ,
. notepad-btn : hover : not ( : disabled ) . np-line { stroke : var ( -- accent ); }
. notepad-btn : disabled . np-page ,
. notepad-btn : disabled . np-ring ,
. notepad-btn : disabled . np-line { stroke : var ( -- ink -3 ); }
/* The Notepad dialog: large, with the editor taking whatever height the
title, the pictures and the actions leave. Only the editor scrolls. */
. modal . notepad {
width : min ( 1200 px , 90 vw );
height : min ( 900 px , 85 vh );
max-width : none ;
max-height : none ;
flex-direction : column ;
}
. modal . notepad [ open ] { display : flex ; }
. modal . notepad h2 { flex : none ; }
. modal . notepad . modal-blurb { flex : none ; margin-bottom : 12 px ; }
. notepad-editor {
flex : 1 1 auto ;
min-height : 0 ;
border : 1 px solid var ( -- rule -2 );
border-radius : 8 px ;
overflow : hidden ;
background : var ( -- panel );
}
. notepad-editor : focus-within { border-color : var ( -- accent - line ); }
/* The pictures under the editor: the Add image button, then the thumbnails,
wrapping. Capped at two rows, so 200 pictures never squeeze the editor
away; the strip scrolls instead. The whole region lights while pictures are
dragged over the dialog. */
. notepad-images {
flex : none ;
display : flex ;
align-items : flex-start ;
gap : 10 px ;
margin-top : 12 px ;
padding : 6 px ;
border : 1 px dashed transparent ;
border-radius : 8 px ;
}
. notepad-add { flex : none ; }
. notepad-strip {
flex : 1 1 auto ;
min-width : 0 ;
display : flex ;
flex-wrap : wrap ;
gap : 8 px ;
max-height : 176 px ;
overflow-y : auto ;
margin : 0 ;
padding : 0 ;
list-style : none ;
}
. modal . notepad . is-drop . notepad-images {
border-color : var ( -- accent );
background : var ( -- accent - soft );
}
/* One thumbnail: the picture is a button that opens the preview, with the
tray's round X in its corner, and the inline delete question or the upload
state laid over it. */
. notepad-thumb . attach-thumb { width : 88 px ; height : 88 px ; }
. notepad-thumb-open {
display : block ;
width : 100 % ;
height : 100 % ;
padding : 0 ;
border : 0 ;
background : none ;
cursor : zoom-in ;
}
. notepad-thumb-open : focus-visible { outline : 2 px solid var ( -- accent ); outline-offset : -2 px ; }
. notepad-thumb . is-uploading . notepad-thumb-open ,
. notepad-thumb . is-failed . notepad-thumb-open { cursor : default ; }
. notepad-thumb . attach-overlay p { margin : 0 ; padding : 0 4 px ; }
. notepad-thumb . attach-overlay . btn . tiny { margin : 0 ; padding : 1 px 6 px ; font-size : 10.5 px ; }
. notepad-ask {
background : color-mix ( in srgb , var ( -- panel ) 92 % , transparent );
color : var ( -- ink ); font-size : 10.5 px ; font-weight : 600 ; text-align : center ;
}
. notepad-ask-row { display : flex ; gap : 4 px ; }
/* The full-screen preview: the whole viewport, the picture contained in it,
on a near-black backdrop in both themes (a picture is judged against dark,
whatever the page's theme), so its colours are fixed, not tokens. */
. modal . notepad-preview {
inset : 0 ;
width : 100 vw ;
height : 100 vh ;
max-width : none ;
max-height : none ;
margin : 0 ;
padding : 0 ;
border : 0 ;
border-radius : 0 ;
background : transparent ;
box-shadow : none ;
color : #f4f1ec ;
}
. modal . notepad-preview [ open ] {
display : grid ;
grid-template-columns : 72 px minmax ( 0 , 1 fr ) 72 px ;
grid-template-rows : minmax ( 0 , 1 fr ) auto ;
}
. modal . notepad-preview :: backdrop { background : rgba ( 8 , 8 , 8 , 0.92 ); }
. notepad-preview-img {
grid-column : 2 ;
grid-row : 1 ;
place-self : center ;
max-width : 100 % ;
max-height : 100 % ;
object-fit : contain ;
padding-top : 24 px ;
}
. notepad-preview-step {
grid-row : 1 ;
place-self : center ;
width : 44 px ;
height : 44 px ;
padding : 0 ;
border : 1 px solid rgba ( 255 , 255 , 255 , 0.35 );
border-radius : 50 % ;
background : rgba ( 0 , 0 , 0 , 0.45 );
color : #fff ;
font : 600 28 px / 1 var ( -- sans );
cursor : pointer ;
}
. notepad-preview-step . is-prev { grid-column : 1 ; }
. notepad-preview-step . is-next { grid-column : 3 ; }
. notepad-preview-step : hover ,
. notepad-preview-step : focus-visible { border-color : #fff ; background : rgba ( 255 , 255 , 255 , 0.14 ); }
. notepad-preview-step [ hidden ] { display : none ; }
. notepad-preview-bar {
grid-column : 1 / -1 ;
grid-row : 2 ;
display : flex ;
align-items : center ;
justify-content : center ;
gap : 16 px ;
padding : 12 px 16 px 20 px ;
}
. notepad-preview-count { margin : 0 ; font-size : 13.5 px ; color : rgba ( 255 , 255 , 255 , 0.8 ); }
. btn . notepad-preview-close { background : rgba ( 255 , 255 , 255 , 0.1 ); border-color : rgba ( 255 , 255 , 255 , 0.35 ); color : #fff ; }
. btn . notepad-preview-close : hover { background : rgba ( 255 , 255 , 255 , 0.2 ); color : #fff ; }
. modal . notepad . modal-actions { flex : none ; align-items : center ; margin-top : 14 px ; }
. notepad-status { margin : 0 auto 0 0 ; min-height : 1.4 em ; font-size : 12.5 px ; color : var ( -- ink -3 ); }
. notepad-status . is-problem { color : var ( -- warn ); }
/* OverType's link tooltip, which drew its row with inline styles the page's
policy refuses (withoutStyleAttrs in notepad.js drops them). */
. overtype-link-tooltip > span { display : flex ; align-items : center ; gap : 6 px ; }
. overtype-link-tooltip svg { flex-shrink : 0 ; }