/* RainbowOS v1.19.2 — Rainbow Note */
.rn-page{height:100%;min-height:0;display:flex;flex-direction:column;position:relative}.rn-page:before{content:"";position:absolute;inset:-24px -26px auto;height:240px;background:radial-gradient(circle at 12% 5%,rgba(82,207,255,.13),transparent 34%),radial-gradient(circle at 86% 6%,rgba(157,115,255,.12),transparent 36%);pointer-events:none}.rn-page>*{position:relative;z-index:1}.rn-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px;flex:0 0 auto}.rn-head .title{margin-top:6px}.rn-shell{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:210px 330px minmax(460px,1fr);overflow:hidden;background:rgba(255,255,255,.86);border:1px solid #dce7f3;border-radius:22px;box-shadow:0 12px 36px rgba(52,86,132,.08)}
.rn-folders{min-height:0;padding:15px 13px;overflow:auto;border-right:1px solid #e4ecf5;background:linear-gradient(180deg,#fbfdff,#f5f9fe)}.rn-new{width:100%;height:43px;border:0;border-radius:12px;background:linear-gradient(135deg,#7d6df4,#38a8ee);color:#fff;font-weight:850;cursor:pointer;box-shadow:0 8px 18px rgba(77,117,231,.24);transition:.15s}.rn-new:hover{transform:translateY(-1px);filter:brightness(1.03)}.rn-caption{margin:18px 8px 7px;color:#99a7b8;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.rn-folder,.rn-category{width:100%;border:0;background:transparent;color:#65788f;border-radius:10px;display:flex;align-items:center;gap:9px;text-align:left;cursor:pointer;transition:.14s}.rn-folder{height:40px;padding:0 9px;font-weight:750}.rn-folder:hover,.rn-category:hover{background:#edf5ff}.rn-folder.active,.rn-category.active{background:#e8f2ff;color:#2e73c8}.rn-folder-icon{width:27px;height:27px;border-radius:8px;background:#fff;display:grid;place-items:center;box-shadow:0 3px 10px rgba(65,95,130,.07)}.rn-folder em{margin-left:auto;min-width:24px;padding:3px 7px;border-radius:999px;border:1px solid #e1e9f2;background:#fff;color:#7d8da0;font-size:9px;font-style:normal;text-align:center}.rn-category{height:34px;padding:0 10px;font-size:11px}.rn-category i{width:9px;height:9px;border-radius:50%}.rn-category i.blue{background:#55a2ff}.rn-category i.pink{background:#ee78d5}.rn-category i.green{background:#52c99a}.rn-category i.orange{background:#ffb25c}
.rn-list-pane{min-width:0;display:flex;flex-direction:column;border-right:1px solid #e4ecf5;background:#fff}.rn-list-top{padding:14px;border-bottom:1px solid #e9eff6}.rn-list-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.rn-list-title-row>b{font-size:14px;color:#1d416e}.rn-sort{border:0;border-radius:9px;background:#f3f7fc;color:#6f8299;padding:7px 9px;font-size:9px;font-weight:800;cursor:pointer}.rn-search{height:37px;border:1px solid #dfe8f2;border-radius:10px;background:#f9fbfe;display:flex;align-items:center;padding:0 10px;color:#8da0b6}.rn-search input{width:100%;border:0;outline:0;background:transparent;color:#385777;padding-left:7px}.rn-list{padding:8px;overflow:auto;min-height:0}.rn-note-item{width:100%;display:block;border:1px solid transparent;border-radius:13px;background:#fff;padding:11px 12px;margin-bottom:7px;text-align:left;cursor:pointer;transition:.14s}.rn-note-item:hover{background:#f8fbff;border-color:#e7eef7}.rn-note-item.active{background:linear-gradient(135deg,#edf5ff,#f5f1ff);border-color:#d5e2ff;box-shadow:0 5px 15px rgba(78,109,166,.09)}.rn-note-title{display:flex;align-items:center;gap:6px;color:#2d4e78}.rn-note-title>span{color:#8266e9}.rn-note-title b{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.rn-note-preview{margin-top:6px;color:#8292a7;font-size:10px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rn-note-item-meta{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.rn-note-item-meta small{font-size:8px;color:#9ba8b8}.rn-tag{padding:3px 7px;border-radius:999px;font-size:8px;font-weight:800}.rn-tag.blue{background:#eaf4ff;color:#4f82bf}.rn-tag.pink{background:#fff0f8;color:#bd619c}.rn-tag.green{background:#eaf9f1;color:#4a9c78}.rn-tag.orange{background:#fff5e8;color:#b47a37}.rn-empty{padding:42px 12px;text-align:center;color:#91a0b2;display:flex;flex-direction:column;align-items:center}.rn-empty>span{font-size:26px}.rn-empty b{margin-top:8px;color:#687b92}.rn-empty small{margin-top:4px}
.rn-editor{min-width:0;min-height:0;display:flex;flex-direction:column;background:linear-gradient(180deg,#fff,#fbfdff)}.rn-editor-top{height:62px;flex:0 0 auto;border-bottom:1px solid #e7eef6;display:flex;align-items:center;justify-content:space-between;padding:0 16px;gap:12px}.rn-save-state{display:flex;align-items:center;gap:7px;color:#6c9f86;font-size:9px}.rn-save-state i{width:7px;height:7px;border-radius:50%;background:#50d09a;box-shadow:0 0 0 4px rgba(80,208,154,.13)}.rn-editor-actions{display:flex;gap:6px}.rn-open-sticky,.rn-icon-btn{height:34px;border:1px solid #dde6f0;border-radius:10px;background:#fff;color:#5f7187;font-size:10px;font-weight:800;cursor:pointer}.rn-open-sticky{padding:0 11px;background:#f6f2ff;border-color:#ded5ff;color:#735bd6}.rn-icon-btn{width:34px}.rn-icon-btn:hover,.rn-open-sticky:hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(59,91,130,.08)}.rn-icon-btn.active{background:#f0ebff;color:#7357d6;border-color:#d8cdfd}.rn-icon-btn.danger:hover{color:#d95a6a;background:#fff6f7}.rn-icon-btn:disabled,.rn-open-sticky:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.rn-toolbar{flex:0 0 auto;padding:8px 13px;border-bottom:1px solid #e8eef5;background:#fbfdff}.rn-tool-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.rn-group{display:flex;align-items:center;gap:4px;padding-right:7px;border-right:1px solid #e4ebf4}.rn-group:last-child{border-right:0;padding-right:0}.rn-fmt,.rn-select{height:32px;border:1px solid #dce6f1;background:#fff;border-radius:9px;color:#506984;box-shadow:0 2px 6px rgba(59,88,125,.025);font-size:10px;font-weight:850;cursor:pointer}.rn-fmt{min-width:32px;padding:0 8px}.rn-select{padding:0 8px;outline:0}.rn-fmt:hover,.rn-select:hover{background:#f1f7ff;border-color:#c5daf3;color:#2f76cf}.rn-fmt:disabled,.rn-select:disabled{opacity:.4;cursor:not-allowed}.rn-text-color{position:relative}.rn-text-color:after{content:"";position:absolute;left:7px;right:7px;bottom:4px;height:2px;border-radius:2px;background:#e45c75}.rn-editor-body{flex:1 1 auto;min-height:0;overflow:auto;padding:18px 22px}.rn-title-input{width:100%;border:0;outline:0;background:transparent;color:#1b3a62;font-size:25px;font-weight:900;letter-spacing:-.02em;padding:0 0 8px}.rn-note-meta{display:flex;align-items:center;gap:7px;padding-bottom:12px;border-bottom:1px solid #edf1f6;color:#91a0b2;font-size:9px}.rn-color-chip{width:17px;height:17px;border-radius:6px;background:linear-gradient(135deg,#ec75d8,#8e70f2)}.rn-rich-body{min-height:calc(100% - 72px);outline:0;padding:16px 0;color:#3d5878;font-size:12px;line-height:1.72;overflow-wrap:anywhere}.rn-rich-body:empty:before,.rns-content:empty:before{content:attr(data-placeholder);color:#a5b1c0}.rn-rich-body ul,.rn-rich-body ol,.rns-content ul,.rns-content ol{padding-left:22px}.rn-editor-footer{min-height:52px;flex:0 0 auto;border-top:1px solid #e8eef5;padding:8px 13px;display:flex;align-items:center;gap:10px}.rn-quick{display:flex;gap:6px;flex-wrap:wrap}.rn-quick button{height:30px;border:1px solid #e0e8f2;border-radius:9px;background:#fff;color:#64778f;padding:0 9px;font-size:9px;font-weight:750;cursor:pointer}.rn-quick button:hover{background:#f2f7ff}.rn-sticky-colors{display:flex;gap:5px;margin-left:auto}.rn-sticky-colors button{width:18px;height:18px;border:2px solid #fff;border-radius:6px;box-shadow:0 0 0 1px #d9e2ec;cursor:pointer}.rn-sticky-colors button.active{box-shadow:0 0 0 2px #6f8be8}.rn-sticky-colors .yellow{background:#fff2a7}.rn-sticky-colors .pink{background:#ffdff0}.rn-sticky-colors .blue{background:#dff1ff}.rn-sticky-colors .green{background:#dcf6e7}.rn-words{color:#9aa8b8;font-size:9px;white-space:nowrap}
.rn-sticky-layer{position:fixed;inset:0;pointer-events:none;z-index:260}.rn-sticky{position:absolute;width:320px;height:330px;min-width:250px;min-height:230px;overflow:hidden;resize:both;pointer-events:auto;border:1px solid #eadf91;border-radius:16px;background:linear-gradient(145deg,#fff9c9,#fff4a8);box-shadow:0 18px 45px rgba(66,72,98,.24)}.rn-sticky.pink{background:linear-gradient(145deg,#fff0f8,#ffe1f1);border-color:#f0c6df}.rn-sticky.blue{background:linear-gradient(145deg,#eff8ff,#dff1ff);border-color:#c6e1f4}.rn-sticky.green{background:linear-gradient(145deg,#effcf4,#dcf6e7);border-color:#c6e9d3}.rns-head{height:43px;padding:0 9px 0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.06);cursor:move;user-select:none}.rns-head>b{font-size:11px;color:#153d6c;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rns-head>div{display:flex;gap:4px}.rns-head button{width:27px;height:27px;border:0;border-radius:8px;background:rgba(255,255,255,.62);color:#657287;font-weight:900;cursor:pointer}.rns-toolbar{height:78px;padding:7px 8px;display:grid;grid-template-rows:30px 30px;gap:4px;border-bottom:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.22)}.rns-row{display:flex;align-items:center;gap:4px;min-width:0}.rns-row>i{width:1px;height:18px;background:rgba(0,0,0,.08);margin:0 1px}.rns-row button,.rns-row select{height:29px;border:1px solid rgba(255,255,255,.6);border-radius:8px;background:rgba(255,255,255,.67);color:#596779;font-size:9px;font-weight:850;cursor:pointer}.rns-row button{min-width:29px;padding:0 7px}.rns-row select{min-width:55px;padding:0 5px;outline:0}.rns-row button:hover,.rns-row select:hover{background:#fff;color:#2f72c8}.rns-row .text-color{position:relative}.rns-row .text-color:after{content:"";position:absolute;left:6px;right:6px;bottom:3px;height:2px;background:#e45c75;border-radius:2px}.rns-content{height:calc(100% - 121px);min-height:108px;overflow:auto;outline:0;padding:12px 14px;color:#4f5560;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.rn-sticky.minimized{height:43px!important;min-height:43px;resize:none}.rn-sticky.minimized .rns-toolbar,.rn-sticky.minimized .rns-content{display:none}
@media(max-width:1220px){.rn-shell{grid-template-columns:185px 295px minmax(410px,1fr)}.rn-open-sticky span{display:none}}@media(max-width:980px){.rn-shell{grid-template-columns:280px minmax(0,1fr)}.rn-folders{display:none}}@media(max-width:720px){.rn-head{align-items:flex-start;flex-direction:column}.rn-shell{grid-template-columns:1fr;min-height:760px}.rn-list-pane{max-height:280px;border-right:0;border-bottom:1px solid #e4ecf5}.rn-editor-top{align-items:flex-start;height:auto;padding:10px 12px;flex-direction:column}.rn-editor-actions{width:100%}.rn-open-sticky{flex:1}.rn-tool-row{gap:5px}.rn-group{border-right:0;padding-right:0}.rn-editor-footer{align-items:flex-start;flex-wrap:wrap}.rn-sticky-colors{margin-left:0}}
@media(min-width:981px){main.rainbow-note-page{flex:1 1 auto;min-height:0;overflow:hidden!important;display:flex;flex-direction:column;padding-top:30px;padding-bottom:18px}main.rainbow-note-page>.rn-page{flex:1 1 auto;width:100%;min-height:0}}

/* RainbowOS v1.19.1 — cleaner editor toolbars */
.rn-toolbar{padding:9px 13px;background:#fbfdff}
.rn-tool-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:1px}
.rn-group{flex:0 0 auto;gap:4px;padding-right:8px;border-right:1px solid #dfe8f2}
.rn-fmt,.rn-select{height:34px;border-radius:9px;background:#fff;border-color:#d7e3ef;color:#47617f}
.rn-fmt{min-width:34px}.rn-fmt.icon-only{padding:0;width:34px}.rn-fmt.icon-text{min-width:48px}
.rn-select{min-width:76px}.rn-type .rn-select:last-child{min-width:62px}
.rn-history{border-right:0}.rn-align-icon{width:16px;height:14px;display:flex;flex-direction:column;justify-content:center;gap:2px;margin:auto}.rn-align-icon i{display:block;height:1.5px;border-radius:2px;background:currentColor}.rn-align-icon.left i:nth-child(2){width:11px}.rn-align-icon.left i:nth-child(1),.rn-align-icon.left i:nth-child(3){width:16px}.rn-align-icon.center i:nth-child(2){width:10px;align-self:center}.rn-align-icon.center i:nth-child(1),.rn-align-icon.center i:nth-child(3){width:16px}.rn-align-icon.right i:nth-child(2){width:11px;align-self:flex-end}.rn-align-icon.right i:nth-child(1),.rn-align-icon.right i:nth-child(3){width:16px}

.rn-sticky{width:720px;height:360px;min-width:700px;min-height:235px}
.rn-sticky.peach{background:linear-gradient(145deg,#fff4e9,#ffe7d3);border-color:#efd5bf}.rn-sticky.purple{background:linear-gradient(145deg,#f3efff,#e9e2ff);border-color:#d9cff4}.rn-sticky.gray{background:linear-gradient(145deg,#f5f7f9,#e9eef3);border-color:#d9e0e7}
.rns-toolbar{height:52px;padding:8px 10px;display:block;background:rgba(255,255,255,.25);border-bottom:1px solid rgba(0,0,0,.06);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.rns-row{height:35px;display:flex;align-items:center;gap:8px;min-width:max-content}
.rns-group{display:flex;align-items:center;gap:4px;padding-right:8px;border-right:1px solid rgba(71,86,105,.16)}
.rns-group button{width:36px;min-width:36px;height:34px;padding:0;border:1px solid rgba(192,205,219,.78);border-radius:9px;background:rgba(255,255,255,.76);color:#415b78;font-size:11px;font-weight:850;display:grid;place-items:center;cursor:pointer}
.rns-group button:hover{background:#fff;border-color:#b8cde3;color:#245f9f}.rns-group .rn-align-icon{width:16px}
.rns-color-strip{display:flex;align-items:center;gap:7px;margin-left:auto;padding:0 3px 0 2px}.rns-color-strip button{width:22px;height:22px;min-width:22px;border-radius:50%;border:2px solid rgba(255,255,255,.92);box-shadow:0 0 0 1px rgba(71,86,105,.08);cursor:pointer}.rns-color-strip button.active{box-shadow:0 0 0 2px #34495f}.rns-color-strip .yellow{background:#fff0a6}.rns-color-strip .pink{background:#ffdce9}.rns-color-strip .blue{background:#dceffc}.rns-color-strip .green{background:#dcf2df}.rns-color-strip .peach{background:#fde7d6}.rns-color-strip .purple{background:#e7e0fb}.rns-color-strip .gray{background:#e9edf1}
.rns-content{height:calc(100% - 95px);min-height:105px;padding:14px 18px;font-size:12px;line-height:1.65}.rn-sticky.minimized{min-width:250px}.rn-sticky.minimized .rns-toolbar,.rn-sticky.minimized .rns-content{display:none}
@media(max-width:900px){.rn-sticky{width:min(720px,calc(100vw - 24px));min-width:320px}.rns-color-strip{margin-left:0}}


/* RainbowOS v1.19.2 — responsive sticky notes, add-note button, adaptive toolbars */
.rn-editor{container-type:inline-size}
.rn-tool-row{flex-wrap:wrap!important;overflow:visible!important;gap:6px!important}
.rn-group{flex:0 0 auto}
@container (max-width:620px){
  .rn-fmt.icon-text span{display:none}.rn-fmt.icon-text{min-width:34px}
  .rn-select{min-width:66px}.rn-group{padding-right:5px}
}

.rn-sticky{
  width:560px;height:420px;min-width:300px;min-height:220px;
  max-width:calc(100vw - 20px);max-height:calc(100vh - 84px);
  display:flex;flex-direction:column;resize:both!important;overflow:hidden;
  container-type:inline-size
}
.rns-head{flex:0 0 43px}
.rns-head>b{max-width:min(48cqw,300px)}
.rns-head-status{display:flex!important;align-items:center;gap:5px!important}
.rns-head-status>span{font-size:9px;color:#7f7450;font-weight:800;padding:0 4px;white-space:nowrap}
.rns-head-status button[data-sticky-new]{color:#2f72c8;background:rgba(255,255,255,.8);font-size:17px;line-height:1}
.rns-toolbar{height:auto!important;flex:0 0 auto;padding:7px 9px!important;display:block!important;overflow:visible!important}
.rns-row{height:auto!important;min-width:0!important;display:flex;align-items:center;gap:5px!important;flex-wrap:wrap!important}
.rns-group{display:flex;align-items:center;gap:4px;padding-right:7px;border-right:1px solid rgba(71,86,105,.14)}
.rns-color-strip{display:flex;align-items:center;gap:6px;margin-left:auto;padding:1px 2px}
.rns-content{height:auto!important;flex:1 1 auto;min-height:0!important;overflow:auto;padding:14px 18px;font-size:12px;line-height:1.65}
.rns-resize-corner{position:absolute;right:3px;bottom:3px;width:17px;height:17px;pointer-events:none;opacity:.7;background:linear-gradient(135deg,transparent 0 48%,#8d8b73 49% 55%,transparent 56% 66%,#8d8b73 67% 73%,transparent 74%)}
.rn-sticky.minimized{height:43px!important;min-height:43px;min-width:250px;resize:none!important}
.rn-sticky.minimized .rns-toolbar,.rn-sticky.minimized .rns-content,.rn-sticky.minimized .rns-resize-corner{display:none!important}

@container (max-width:520px){
  .rns-head>b{max-width:38cqw}.rns-head-status>span{display:none}
  .rns-group{padding-right:4px}.rns-group button{width:32px;min-width:32px;height:31px}
  .rns-color-strip{margin-left:0;width:100%;padding-top:2px}
  .rns-color-strip button{width:20px;height:20px;min-width:20px}
}
@container (max-width:380px){
  .rns-head{padding-left:10px}.rns-head>b{max-width:31cqw}
  .rns-group button{width:30px;min-width:30px;height:30px}
  .rns-row{gap:3px!important}.rns-group{gap:3px}
}
@media(max-width:900px){
  .rn-sticky{width:min(560px,calc(100vw - 20px));min-width:min(300px,calc(100vw - 20px))}
}


/* RainbowOS v1.19.3 — custom RainbowOS text menus and expanded color tools */
.rn-toolbar,.rns-toolbar{position:relative;z-index:8}
.rn-custom-select,.rn-palette-wrap,.rns-custom-select,.rns-palette-wrap{position:relative;display:inline-flex;align-items:center}
.rn-menu-trigger,.rns-menu-trigger{
  height:34px;min-width:76px;padding:0 12px;border:1px solid #d7e3ef;border-radius:9px;background:linear-gradient(180deg,#fff,#f9fbff);color:#47617f;font-size:10px;font-weight:850;cursor:pointer;text-align:left;box-shadow:0 2px 6px rgba(59,88,125,.025)
}
.rn-menu-trigger:hover,.rn-menu-trigger[aria-expanded="true"]{background:#eef6ff;border-color:#bcd6f2;color:#2f76cf;box-shadow:0 5px 14px rgba(70,118,179,.10)}
.rn-menu,.rn-palette{position:absolute;top:40px;left:0;z-index:80;min-width:150px;padding:7px;border:1px solid #dce7f3;border-radius:12px;background:rgba(255,255,255,.98);box-shadow:0 14px 34px rgba(48,78,116,.16);backdrop-filter:blur(12px)}
.rn-menu[hidden],.rn-palette[hidden],.rns-menu[hidden],.rns-palette[hidden]{display:none!important}
.rn-menu button{width:100%;height:34px;border:0;border-radius:8px;background:transparent;color:#58708c;padding:0 9px;display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:800;cursor:pointer}
.rn-menu button span{opacity:0}.rn-menu button:hover{background:linear-gradient(90deg,#edf6ff,#f3efff);color:#2f72c8}.rn-menu button:hover span{opacity:.55}
.rn-palette{width:212px;padding:10px}.rn-palette-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}.rn-palette-head b{font-size:10px;color:#294d79}.rn-palette-head small{font-size:8px;color:#93a2b4}.rn-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.rn-swatch{width:25px;height:25px;border-radius:8px;border:2px solid #fff;background:var(--swatch);box-shadow:0 0 0 1px #dce5ef;cursor:pointer;transition:.12s}.rn-swatch:hover{transform:translateY(-1px) scale(1.06);box-shadow:0 0 0 2px #8ab8ef}.rn-clear-highlight{width:100%;height:29px;margin-top:8px;border:1px solid #e0e8f1;border-radius:8px;background:#f8fbff;color:#6d8097;font-size:9px;font-weight:800;cursor:pointer}.rn-clear-highlight:hover{background:#edf5ff;color:#2f72c8}
.rn-text-color:after{background:var(--active-color,#e45c75)!important}.rn-highlight{position:relative}.rn-highlight:after{content:"";position:absolute;left:7px;right:7px;bottom:4px;height:4px;border-radius:3px;background:var(--active-color,#fff0a8);box-shadow:0 0 0 1px rgba(110,115,90,.08)}

/* Sticky custom controls use the same RainbowOS language, scaled down */
.rns-menu-trigger{height:31px;min-width:62px;padding:0 9px;border-color:rgba(192,205,219,.78);background:rgba(255,255,255,.76);font-size:9px;color:#415b78}
.rns-menu-trigger:hover,.rns-menu-trigger[aria-expanded="true"]{background:#fff;border-color:#b8cde3;color:#245f9f}
.rns-menu,.rns-palette{position:absolute;top:36px;left:0;z-index:120;min-width:140px;padding:7px;border:1px solid rgba(189,204,220,.9);border-radius:11px;background:rgba(255,255,255,.98);box-shadow:0 12px 28px rgba(54,73,95,.18)}
.rns-menu button{width:100%;height:31px;border:0;border-radius:8px;background:transparent;color:#566b82;padding:0 8px;display:flex;align-items:center;justify-content:space-between;font-size:9px;font-weight:800;cursor:pointer}.rns-menu button span{opacity:0}.rns-menu button:hover{background:linear-gradient(90deg,#edf6ff,#f4efff);color:#286fb9}.rns-menu button:hover span{opacity:.55}
.rns-palette{width:196px;padding:9px}.rns-palette-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:7px}.rns-palette-head b{font-size:9px;color:#294d79}.rns-palette-head small{font-size:7px;color:#8c9cad}.rns-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.rns-swatch{width:23px!important;min-width:23px!important;height:23px!important;padding:0!important;border-radius:7px!important;border:2px solid #fff!important;background:var(--swatch)!important;box-shadow:0 0 0 1px rgba(87,104,122,.16)!important;cursor:pointer}.rns-swatch:hover{transform:scale(1.07);box-shadow:0 0 0 2px #86b6ec!important}.rns-clear-highlight{width:100%!important;height:27px!important;margin-top:7px!important;border:1px solid #dde7f0!important;border-radius:8px!important;background:#f8fbff!important;color:#657a91!important;font-size:8px!important;font-weight:800!important}
.rns-text-color,.rns-highlight{position:relative}.rns-text-color:after{content:"";position:absolute;left:7px;right:7px;bottom:4px;height:2px;border-radius:2px;background:var(--active-color,#e45c75)}.rns-highlight:after{content:"";position:absolute;left:7px;right:7px;bottom:4px;height:4px;border-radius:3px;background:var(--active-color,#fff0a8)}
.rns-toolbar{overflow:visible!important}.rns-row{overflow:visible!important}.rns-group{overflow:visible!important}

@container (max-width:520px){
 .rn-menu-trigger{min-width:66px;padding:0 9px}.rn-menu,.rn-palette{left:auto;right:0}
 .rns-menu-trigger{min-width:58px}.rns-menu,.rns-palette{left:0;right:auto}
}
@container (max-width:390px){
 .rns-palette{width:184px}.rns-swatches{gap:5px}.rns-swatch{width:21px!important;min-width:21px!important;height:21px!important}
}
/* Ensure custom sticky Style/Size controls are not constrained by generic icon-button width. */
.rns-group .rns-menu-trigger{width:auto!important;min-width:62px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important}
.rns-group .rns-menu button{width:100%!important;min-width:0!important;height:31px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 8px!important}
.rns-group .rns-palette button.rns-swatch{display:block!important}
.rns-group .rns-palette .rns-clear-highlight{width:100%!important;min-width:0!important;display:block!important}

/* v1.19.5 — Rainbow Note viewport-fit fix */
@media(min-width:981px){main.rainbow-note-page>.rn-page>.rn-shell{min-height:0!important;max-height:100%;overflow:hidden}.rn-folders,.rn-list-pane,.rn-editor{min-height:0}}

/* RainbowOS v1.19.6 — Rainbow Note scrollbar refinement */
.rn-folders,
.rn-list,
.rn-editor-body,
.rns-content{
  scrollbar-width:thin;
  scrollbar-color:#b7cce2 transparent;
}
.rn-folders::-webkit-scrollbar,
.rn-list::-webkit-scrollbar,
.rn-editor-body::-webkit-scrollbar,
.rns-content::-webkit-scrollbar{
  width:7px;
  height:7px;
}
.rn-folders::-webkit-scrollbar-track,
.rn-list::-webkit-scrollbar-track,
.rn-editor-body::-webkit-scrollbar-track,
.rns-content::-webkit-scrollbar-track{
  background:transparent;
  margin:8px 0;
}
.rn-folders::-webkit-scrollbar-thumb,
.rn-list::-webkit-scrollbar-thumb,
.rn-editor-body::-webkit-scrollbar-thumb,
.rns-content::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#c9d9ea,#a9c2dc);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
.rn-folders::-webkit-scrollbar-thumb:hover,
.rn-list::-webkit-scrollbar-thumb:hover,
.rn-editor-body::-webkit-scrollbar-thumb:hover,
.rns-content::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#9fc0e2,#78a9d7);
  border:1px solid transparent;
  background-clip:padding-box;
}
.rn-folders::-webkit-scrollbar-button,
.rn-list::-webkit-scrollbar-button,
.rn-editor-body::-webkit-scrollbar-button,
.rns-content::-webkit-scrollbar-button{
  display:none;
  width:0;
  height:0;
}
/* Keep scroll behavior, but remove the heavy native scrollbar gutter seen in the editor. */
.rn-editor-body{scrollbar-gutter:auto}

/* RainbowOS v1.19.7 — functional editor scroll area + unclipped Rainbow scrollbar */
@media(min-width:981px){
  main.rainbow-note-page{
    overflow:hidden!important;
  }
  main.rainbow-note-page>.rn-page{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .rn-page>.rn-shell{
    flex:1 1 0!important;
    height:0!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  .rn-list-pane,
  .rn-editor{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .rn-list{
    flex:1 1 0!important;
    height:0!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    touch-action:pan-y;
  }
  .rn-editor-body{
    flex:1 1 0!important;
    height:0!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    touch-action:pan-y;
    scrollbar-gutter:stable;
    padding-bottom:28px!important;
  }
  .rn-editor-footer{
    flex:0 0 auto!important;
    position:relative;
    z-index:3;
    background:#fbfdff;
  }
}

/* Keep the custom scrollbar completely inside its scroll container. */
.rn-folders::-webkit-scrollbar-track,
.rn-list::-webkit-scrollbar-track,
.rn-editor-body::-webkit-scrollbar-track,
.rns-content::-webkit-scrollbar-track{
  margin:0!important;
  background:transparent!important;
}
.rn-folders::-webkit-scrollbar,
.rn-list::-webkit-scrollbar,
.rn-editor-body::-webkit-scrollbar,
.rns-content::-webkit-scrollbar{
  width:6px!important;
  height:6px!important;
}
.rn-folders::-webkit-scrollbar-thumb,
.rn-list::-webkit-scrollbar-thumb,
.rn-editor-body::-webkit-scrollbar-thumb,
.rns-content::-webkit-scrollbar-thumb{
  min-height:34px;
  border:1px solid transparent!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#bfd4e8,#93b5d6)!important;
  background-clip:padding-box!important;
}
.rn-folders::-webkit-scrollbar-button,
.rn-list::-webkit-scrollbar-button,
.rn-editor-body::-webkit-scrollbar-button,
.rns-content::-webkit-scrollbar-button{
  display:none!important;
  width:0!important;
  height:0!important;
}
.rn-folders::-webkit-scrollbar-corner,
.rn-list::-webkit-scrollbar-corner,
.rn-editor-body::-webkit-scrollbar-corner,
.rns-content::-webkit-scrollbar-corner{background:transparent!important}

/* RainbowOS v1.19.8 — real Rainbow Note scroll-root fix
   The global RainbowOS `aside` rule was applying viewport height to .rn-folders,
   which forced the grid row taller than .rn-shell. The shell then clipped the
   editor scrollbar/footer. Constrain all three note columns to the shell row. */
@media(min-width:981px){
  .rn-shell{
    grid-template-rows:minmax(0,1fr)!important;
  }
  .rn-folders,
  .rn-list-pane,
  .rn-editor{
    height:auto!important;
    max-height:100%!important;
    min-height:0!important;
    align-self:stretch!important;
  }
  .rn-folders{
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  .rn-list-pane,
  .rn-editor{
    overflow:hidden!important;
  }
  .rn-list{
    flex:1 1 0!important;
    height:auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  .rn-editor-body{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 0!important;
    height:auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-gutter:auto!important;
    padding-bottom:18px!important;
  }
  .rn-title-input,
  .rn-note-meta{
    flex:0 0 auto!important;
  }
  .rn-rich-body{
    flex:1 0 auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
}

/* V330 inline note pictures */
.rn-upload-image{width:auto!important;padding:0 12px!important;font-weight:600;color:#2563eb!important;white-space:nowrap}
.rn-rich-body img.rn-inline-picture{max-width:100%;height:auto;resize:horizontal;overflow:auto}
.rn-image-preview{position:fixed;inset:0;background:rgba(10,18,35,.82);z-index:99999;display:flex;align-items:center;justify-content:center;padding:48px;cursor:zoom-out}
.rn-image-preview img{max-width:95%;max-height:95%;object-fit:contain;border-radius:8px}
.rn-image-preview button{position:absolute;right:22px;top:16px;background:white;border:0;border-radius:50%;font-size:26px;width:42px;height:42px;cursor:pointer}
