@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@400;500;600;700&family=Nanum+Gothic:wght@400;700&family=Nanum+Myeongjo:wght@400;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
html body .nm-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.nm-theme-grid button{min-height:52px;gap:8px;display:flex;align-items:center;justify-content:center;font-size:14px}.nm-theme-grid i{font-size:19px}
html body .bmenu,html body .win .bmenu,html body .mobbrd .bmenu{background:#fff!important;color:#171717!important;max-width:min(310px,calc(100vw - 24px));max-height:calc(100dvh - 100px);overflow-y:auto!important}
html body .bmenu .mi,html body .bmenu .mi .mi-label,html body .bmenu .msl,html body .bmenu .msl .mi-label,html body .win .bmenu .mi .mi-label,html body .mobbrd .bmenu .mi .mi-label{color:#171717!important}
html body .bmenu .mi:hover{background:#f3f4f6!important}
html body .bmenu .bc-pal{background:#fff!important;color:#171717!important;flex-direction:column!important;gap:12px!important;padding:12px!important;min-width:220px}
.nm-color-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;width:100%}
html body .bmenu .nm-color-swatch{width:100%;aspect-ratio:1;border:1px solid #cbd5e1!important;border-radius:5px!important;background:var(--swatch)!important;padding:0!important;min-width:0;cursor:pointer;box-shadow:none!important}
html body .bmenu .nm-color-swatch.on{outline:2px solid #f97316;outline-offset:1px}
.nm-custom-color{display:flex;align-items:center;flex-wrap:wrap;gap:7px;width:100%;font-size:12px}.nm-custom-color label{display:flex;align-items:center;gap:6px;width:100%;color:#171717!important}.nm-custom-color input[type=color]{width:40px;height:30px;padding:0;border:1px solid #cbd5e1;background:#fff}.nm-custom-color .nm-hex{width:100px;min-width:0;height:34px;padding:5px 8px;border:1px solid #cbd5e1;border-radius:6px;color:#171717!important;background:#fff!important}.nm-custom-color button{height:34px;padding:0 12px!important;border-radius:6px;background:#f97316!important;color:#fff!important;border:0!important}
.fp-font-option[data-family=noto]{font-family:'Noto Sans KR',sans-serif}.fp-font-option[data-family=nanum]{font-family:'Nanum Gothic',sans-serif}.fp-font-option[data-family=gothic]{font-family:'Gothic A1',sans-serif}.fp-font-option[data-family=malgun]{font-family:'Malgun Gothic','Noto Sans KR',sans-serif}.fp-font-option[data-family=apple]{font-family:'Apple SD Gothic Neo','Noto Sans KR',sans-serif}.fp-font-option[data-family=segoe]{font-family:'Segoe UI','Noto Sans KR',sans-serif}.fp-font-option[data-family=nanummyeongjo]{font-family:'Nanum Myeongjo',serif}
html body[data-color-theme=dark]{--bg:#191b20;--bg2:#22252c;--bg3:#30343d;--txt:#f1f3f5;--txt2:#d0d5dd;--txt3:#aab2bf;--bdr:#3b414c;--bdr2:#4b5260;--bdr3:#626b79;--acc:#f97316;color-scheme:dark;background:var(--bg);color:var(--txt)}
html body[data-color-theme=dark] :is(#app,#desk,#mba,.mobbrd,.win,.wi,.wl,.mob-memo-list,.mob-input-area,.font-panel,.fp-font-list,.fp-font-option,.fp-font-trigger,.fp-size-preview,.theme-btn-v303w43,.tb-settings-menu,.mw,.modal,.sbar){background:var(--bg2)!important;color:var(--txt)!important;border-color:var(--bdr)!important}
html body[data-color-theme=dark] :is(.win,.mobbrd){--nm-w39018-frame-soft:color-mix(in srgb,var(--board-color) 12%,#22252c)!important;--nm-w39019-frame-soft:color-mix(in srgb,var(--board-color) 12%,#22252c)!important}
html body[data-color-theme=dark] :is(.wh,.mob-unified-hdr){background:color-mix(in srgb,var(--board-color,#f97316) 24%,#22252c)!important;color:#f1f3f5!important}
html body[data-color-theme=dark] :is(.wtitle,.mob-board-title,.rt,.rt-line,.ea,.memo-input,.mob-textarea,.mobi,.fp-label){color:var(--txt)!important}
html body[data-color-theme=dark] :is(.memo-card,.mc,.row,.mob-memo,.mob-memo-card,.mob-input-row textarea,.memo-input,.ea){background:var(--bg2)!important;border-color:var(--bdr)!important;color:var(--txt)!important}
html body[data-color-theme=dark] .bmenu{color-scheme:light}
/* Override inherited board accent, including legacy text-fill rules. */
html body #app .bmenu .mi-label,html body #desk .bmenu .mi-label,html body .bmenu .mi-label{color:#171717!important;-webkit-text-fill-color:#171717!important}
html body[data-color-theme=dark] #app .mobbrd[style*="--board-color"] :is(.mobbdy,.mob-input-area,.mob-input-row),html body[data-color-theme=dark] #desk .win[style*="--board-color"] :is(.wi,.wb,.wh){background:#22252c!important;background-image:none!important;color:#f1f3f5!important}
html body[data-color-theme=dark] #app .mobbrd[style*="--board-color"] .mob-unified-hdr,html body[data-color-theme=dark] #desk .win[style*="--board-color"] > .wi > .wh{background:color-mix(in srgb,var(--board-color) 24%,#22252c)!important;background-image:none!important}
html body[data-color-theme=dark] #app :is(.mob-board-name,.wtitle,.rt,.rt-line,.row .rt,.mob-textarea,.memo-input,.ea){color:#f1f3f5!important;-webkit-text-fill-color:#f1f3f5!important}
html body[data-color-theme=dark] #app .row{background:#292d35!important;background-image:none!important;border-color:#3b414c!important}
html body[data-color-theme=dark] #app :is(.mob-unified-hdr,.mob-input-area)::before,html body[data-color-theme=dark] #app :is(.mob-unified-hdr,.mob-input-area)::after{background:none!important}
html body[data-color-theme=dark] #app .bmenu .nm-custom-color input{color-scheme:light}

/* V166: isolate palette from header button rules and prevent column wrapping. */
html body .bmenu .bc-pal{flex-wrap:nowrap!important;align-items:stretch!important;min-width:0!important;box-sizing:border-box!important}
html body .bmenu .nm-color-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important;width:100%!important;flex:0 0 auto!important;min-width:0!important}
html body .bmenu .nm-color-grid .nm-color-swatch{display:block!important;width:100%!important;height:30px!important;min-height:30px!important;max-height:none!important;aspect-ratio:auto!important;visibility:visible!important;opacity:1!important;background:var(--swatch)!important;box-sizing:border-box!important;margin:0!important}
html body .bmenu .nm-custom-color{flex:0 0 auto!important;color:#171717!important;-webkit-text-fill-color:#171717!important}
html body .bmenu .nm-custom-color label{color:#171717!important;-webkit-text-fill-color:#171717!important}
html body .bmenu .nm-custom-color button{color:#fff!important;-webkit-text-fill-color:#fff!important;width:auto!important;min-width:54px!important;height:34px!important}
.fp-font-option,.fp-font-option.fp-active{font-weight:400!important}
.fp-font-option[data-family=dongle]{font-family:'Dongle',sans-serif;font-size:24px}
.fp-font-option[data-family=plex]{font-family:'IBM Plex Sans KR',sans-serif}
.fp-font-option[data-family=hahmlet]{font-family:'Hahmlet',serif}
.fp-font-option[data-family=nanum]{font-family:'Nanum Gothic',sans-serif}

html body .bmenu .nm-custom-color .nm-color-apply{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 54px!important;height:34px!important;padding:0 8px!important;border-radius:6px!important;background:#f97316!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px!important;white-space:nowrap!important;cursor:pointer!important;box-sizing:border-box!important}

/* V167: compact palette; keep the existing light menu in both themes. */
html body .bmenu .bc-pal{padding:8px!important;gap:8px!important}
html body .bmenu .nm-color-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:4px!important}
html body .bmenu .nm-color-grid .nm-color-swatch{height:19px!important;min-height:19px!important;max-height:19px!important;border-radius:3px!important}
html body .bmenu .nm-custom-color{gap:5px!important}
html body .bmenu .nm-custom-color label{width:auto!important;flex:1 1 100%!important}
/* Dark surfaces are scoped to the actual desktop/mobile board hierarchy.
   Extra specificity deliberately beats the legacy white wave/card rules. */
html body[data-color-theme=dark] #app{--nm-dark-canvas:#15171b;--nm-dark-board:#202329;--nm-dark-card:#2b3038;--nm-dark-line:#414854;--nm-dark-ink:#f1f3f5;--nm-dark-muted:#b9c2ce;background:var(--nm-dark-canvas)!important}
html body[data-color-theme=dark] #app #desk,html body[data-color-theme=dark] #app #mba{background:var(--nm-dark-canvas)!important}
html body[data-color-theme=dark] #app #tb{background:#202329!important;background-image:none!important;border-color:var(--nm-dark-line)!important;color:var(--nm-dark-ink)!important;box-shadow:none!important}
html body[data-color-theme=dark] #app #tb :is(button,i,.chip){color:var(--nm-dark-ink)!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #app #desk > .win[style*="--board-color"],html body[data-color-theme=dark] #app #mba .mobbrd[style*="--board-color"]{--nm-header-surface:var(--nm-dark-board)!important;--nm-board-dark-head:color-mix(in srgb,var(--board-color,#f97316) 23%,#24272e);background:var(--nm-dark-board)!important;border-color:var(--nm-dark-line)!important;box-shadow:0 8px 24px #0005!important}
html body[data-color-theme=dark] #app #desk > .win[style*="--board-color"] > .wi,html body[data-color-theme=dark] #app #desk > .win[style*="--board-color"] > .wi > .wb,html body[data-color-theme=dark] #app #mba .mobbrd[style*="--board-color"] > .mobbdy{background:var(--nm-dark-board)!important;background-image:none!important;mask-image:none!important;-webkit-mask-image:none!important;box-shadow:none!important;color:var(--nm-dark-ink)!important}
html body[data-color-theme=dark] #app #desk > .win[style*="--board-color"] > .wi > .wh,html body[data-color-theme=dark] #app #mba .mobbrd[style*="--board-color"] > .mob-unified-hdr{background:var(--nm-board-dark-head)!important;background-image:none!important;border-bottom:1px solid var(--nm-dark-line)!important;box-shadow:none!important}
html body[data-color-theme=dark] #app #desk > .win[style*="--board-color"] > .wi > .wh > .wtitle,html body[data-color-theme=dark] #app #mba .mobbrd[style*="--board-color"] > .mob-unified-hdr > .mob-board-name,html body[data-color-theme=dark] #app :is(.wh,.mob-unified-hdr) :is(.wb2,.nm-board-icon-v141,.mob-nav-btn){color:var(--nm-dark-ink)!important;-webkit-text-fill-color:var(--nm-dark-ink)!important}
html body[data-color-theme=dark] #app #desk > .win[style*="--board-color"] > .wi > .wb > .row,html body[data-color-theme=dark] #app #mba .mobbrd[style*="--board-color"] > .mobbdy > .row{background:var(--nm-dark-card)!important;background-image:none!important;border:1px solid var(--nm-dark-line)!important;box-shadow:0 2px 5px #0002!important;color:var(--nm-dark-ink)!important}
html body[data-color-theme=dark] #app :is(.wb,.mobbdy) > .row :is(.rt,.rt-line,.rb,.rm,.thread-text,.rsub-date,.rsub,.ra,.rbt){color:var(--nm-dark-ink)!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #app :is(.wb,.mobbdy) > .row :is(.rsub-date,.rsub){color:var(--nm-dark-muted)!important}
html body[data-color-theme=dark] #app #desk > .win[style*="--board-color"] :is(.winp,.wir),html body[data-color-theme=dark] #app #mba .mobbrd[style*="--board-color"] :is(.mob-input-area,.mob-input-row){background:var(--nm-dark-board)!important;background-image:none!important;border-color:var(--nm-dark-line)!important;box-shadow:none!important}
html body[data-color-theme=dark] #app :is(.memo-input,.mob-textarea,.ea,.sinp,.wti){background:#181b20!important;color:var(--nm-dark-ink)!important;border-color:var(--nm-dark-line)!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #app :is(.memo-input,.mob-textarea,.ea,.sinp)::placeholder{color:var(--nm-dark-muted)!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #app :is(.web-plus-btn-v160,.web-send-btn-v160,.mob-plus-btn,.mob-send-btn){color:#ffad70!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #app :is(.nm-cal-box,.nm-cal-head,.nm-cal-grid,.nm-cal-weekdays,.nm-cal-cell,.nm-cal-cell-outside,.nm-cal-cell-empty){background:var(--nm-dark-board)!important;background-image:none!important;border-color:var(--nm-dark-line)!important;color:var(--nm-dark-ink)!important;box-shadow:none!important}
html body[data-color-theme=dark] #app .nm-cal-box :is(.nm-cal-daynum,.nm-cal-wd,.nm-cal-item-own,.nm-cal-today-label){color:var(--nm-dark-ink)!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #app .nm-cal-box .nm-cal-cell.is-today{box-shadow:inset 0 0 0 1px #f97316!important}
html body[data-color-theme=dark] #app .nm-cal-box :is(.nm-cal-daynum,.nm-cal-wd).is-sun{color:#ff9292!important}
html body[data-color-theme=dark] #app .nm-cal-box :is(.nm-cal-daynum,.nm-cal-wd).is-sat{color:#9cc7ff!important}
html body[data-color-theme=dark] #app .bmenu,html body[data-color-theme=dark] #app .bmenu .bc-pal{background:#fff!important;color:#171717!important;color-scheme:light}
html body[data-color-theme=dark] #app #mba .mobbrd[style*="--board-color"] > .mob-unified-hdr{color:var(--nm-dark-ink)!important;-webkit-text-fill-color:currentColor!important}

/* V168: targeted calendar, memo metadata and settings interaction polish. */
html body[data-color-theme=dark] .nm-cal-box .nm-cal-head .nm-cal-title,
html body[data-color-theme=dark] .nm-cal-win .nm-cal-head .nm-cal-title{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body[data-color-theme=dark] .nm-cal-box .nm-cal-head .nm-cal-nav{color:#d0d5dd!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #app .nm-cal-box :is(.nm-cal-daynum,.nm-cal-wd).is-sun,
html body[data-color-theme=dark] .nm-cal-period-popup :is(.due-cal-cell,.due-cal-wd).is-sun{color:#ff6268!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
html body #app .row .rsub:not(.rsub-editing){display:flex!important;align-items:center!important;gap:5px!important}
html body #app .row .rsub:not(.rsub-editing) .thread-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 26px!important;width:26px!important;min-width:26px!important;height:26px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;opacity:1!important;color:#ff7900!important;filter:none!important;transform:none!important}
html body #app .row .rsub .thread-toggle::before{content:'+'!important;display:block!important;color:#ff7900!important;-webkit-text-fill-color:#ff7900!important;font-size:15px!important;font-weight:900!important;line-height:1!important;background:none!important;border:0!important;box-shadow:none!important;transform:none!important}
html body #app .row .rsub .thread-toggle:focus-visible{outline:2px solid #ff7900!important;outline-offset:1px}
html body[data-color-theme=dark] #tb-settings-menu > button,
html body[data-color-theme=dark] #tb-settings-menu .nm-account-backup-menu-group-w3594 > button{background:transparent!important;background-image:none!important;border:1px solid transparent!important;box-shadow:none!important;color:#f1f3f5!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #tb-settings-menu > button[style*="--danger"]{color:#ff6268!important}
html body[data-color-theme=dark] #tb-settings-menu .nm-account-backup-child-w3594{color:#b9c2ce!important}
html body[data-color-theme=dark] #tb-settings-menu > button:is(:hover,:focus-visible),
html body[data-color-theme=dark] #tb-settings-menu .nm-account-backup-menu-group-w3594 > button:is(:hover,:focus-visible){background:transparent!important;background-image:none!important;border-color:#e5e7eb!important;box-shadow:none!important;outline:none!important}

/* V169: dark calendar dialogs, original event hue, readable thread composer. */
html body[data-color-theme=dark] .nm-cal-day-modal-backdrop{background:#0009!important}
html body[data-color-theme=dark] .nm-cal-day-modal-backdrop .nm-cal-day-modal,
html body[data-color-theme=dark] .nm-cal-day-modal :is(.nm-cal-day-modal-head,.nm-cal-day-modal-list,.nm-cal-day-modal-footer){background:#202329!important;background-image:none!important;color:#f1f3f5!important;border-color:#414854!important}
html body[data-color-theme=dark] .nm-cal-day-modal :is(.nm-cal-day-modal-date,.nm-cal-modal-row,.nm-cal-modal-row-text){color:#f1f3f5!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] .nm-cal-day-modal :is(.nm-cal-modal-empty,.nm-cal-day-modal-period-label,.nm-cal-day-modal-close,.nm-cal-modal-row-del,.nm-cal-day-modal-period-clear,.nm-cal-day-modal-cancel-edit){color:#b9c2ce!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] .nm-cal-day-modal :is(.nm-cal-modal-row,.nm-cal-day-modal-period,.nm-cal-day-modal-input-row){border-color:#414854!important}
html body[data-color-theme=dark] .nm-cal-day-modal :is(.nm-cal-day-modal-period-input,.nm-cal-day-modal-input){background:#15171b!important;color:#f1f3f5!important;-webkit-text-fill-color:currentColor!important;border:1px solid #626b79!important;border-radius:8px;color-scheme:dark}
html body[data-color-theme=dark] .nm-cal-day-modal :is(.nm-cal-day-modal-period-input,.nm-cal-day-modal-input)::placeholder{color:#aab2bf!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] .nm-cal-day-modal :is(.nm-cal-day-modal-period-input,.nm-cal-day-modal-input):focus{border-color:#f97316!important;outline:1px solid #f97316!important}
html body[data-color-theme=dark] .nm-cal-day-modal :is(.nm-cal-day-modal-close,.nm-cal-modal-row-del,.nm-cal-day-modal-period-clear,.nm-cal-day-modal-cancel-edit){background:#30343d!important}
html body[data-color-theme=dark] .nm-cal-day-modal .nm-cal-modal-row:hover{background:#30343d!important}
html body[data-color-theme=dark] .nm-cal-day-modal .nm-cal-modal-row.is-editing{background:#493328!important}
html body[data-color-theme=dark] .nm-cal-day-modal .nm-cal-modal-row.is-done .nm-cal-modal-row-text{color:#aab2bf!important}
html body[data-color-theme=dark] .nm-cal-day-modal .nm-cal-modal-row-period{color:#ffad70!important}
html body[data-color-theme=dark] .nm-cal-day-modal .nm-cal-day-modal-submit{background:#f97316!important;color:#fff!important}
html body[data-color-theme=dark] .nm-cal-period-popup{background:#202329!important;color:#f1f3f5!important;border:1px solid #626b79!important;box-shadow:0 8px 24px #0008!important}
html body[data-color-theme=dark] .nm-cal-period-popup :is(.due-cal-head,.due-cal-weekdays,.due-cal-grid){background:#202329!important;border-color:#414854!important}
html body[data-color-theme=dark] .nm-cal-period-popup :is(.due-cal-title,.due-cal-nav,.due-cal-wd,.due-cal-cell,.nm-cal-period-hint){color:#f1f3f5!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] .nm-cal-period-popup .due-cal-cell:not(.due-cal-empty):hover{background:#414854!important}
html body[data-color-theme=dark] .nm-cal-period-popup .due-cal-cell:is(.is-selected,.is-range-start,.is-range-end,.is-range-solo,.is-range-mid){background:#70421f!important;color:#fff!important}
html body[data-color-theme=dark] #app .nm-cal-box .nm-cal-item-own.nm-cal-item-fill{background:color-mix(in srgb,var(--nm-event-color,#f97316) 48%,#202329)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body[data-color-theme=dark] #app .nm-cal-box .nm-cal-item-fill .nm-cal-item-text{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body[data-color-theme=dark] #app .nm-cal-box :is(.nm-cal-daynum,.nm-cal-wd).is-sat,
html body[data-color-theme=dark] .nm-cal-period-popup :is(.due-cal-cell,.due-cal-wd).is-sat{color:#4d9fff!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
html body[data-color-theme=dark] #app .nm-cal-box .nm-cal-head .nm-cal-title{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body[data-color-theme=dark] #app .row .thread-inp{background:#fff!important;color:#202329!important;-webkit-text-fill-color:#202329!important;border:1px solid #cbd5e1!important;border-radius:6px!important;color-scheme:light;min-height:30px!important;padding:5px 8px!important}
html body[data-color-theme=dark] #app .row .thread-inp::placeholder{color:#667085!important;-webkit-text-fill-color:#667085!important}
html body[data-color-theme=dark] #app .row .thread-inp:focus{outline:1px solid #f97316!important;border-color:#f97316!important}

/* V171: board drawer only; preserve native scroll and reorder handlers. */
html body :is(#webBoardDropdownV303W1,#mobBoardDropdownV274){
 border-radius:0 14px 14px 0!important;clip-path:inset(0 round 0 14px 14px 0);scrollbar-width:thin;scrollbar-color:#a0a8b5 transparent;
}
html body :is(#webBoardDropdownV303W1,#mobBoardDropdownV274)::-webkit-scrollbar{width:7px}
html body :is(#webBoardDropdownV303W1,#mobBoardDropdownV274)::-webkit-scrollbar-track{background:transparent;margin:12px 0}
html body :is(#webBoardDropdownV303W1,#mobBoardDropdownV274)::-webkit-scrollbar-thumb{background:#a0a8b5;border:2px solid transparent;background-clip:padding-box;border-radius:10px}
html body[data-color-theme=dark] :is(#webBoardDropdownV303W1,#mobBoardDropdownV274){background:#202329!important;background-image:none!important;color:#f1f3f5!important;border:1px solid #414854!important;border-left:0!important;box-shadow:none!important;scrollbar-color:#626b79 transparent;color-scheme:dark}
html body[data-color-theme=dark] :is(#webBoardDropdownV303W1,#mobBoardDropdownV274)::-webkit-scrollbar-thumb{background:#626b79;background-clip:padding-box}
html body[data-color-theme=dark] :is(#webBoardDropdownV303W1,#mobBoardDropdownV274) :is(.web-board-dropdown-item-v303w1,.mob-board-dropdown-item-v274){background:transparent!important;color:#f1f3f5!important;opacity:1!important}
html body[data-color-theme=dark] :is(#webBoardDropdownV303W1,#mobBoardDropdownV274) :is(.web-board-dropdown-name-v303w1,.mob-board-dropdown-name-v274){color:#e5e7eb!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
html body[data-color-theme=dark] :is(#webBoardDropdownV303W1,#mobBoardDropdownV274) :is(.web-board-dropdown-item-v303w1.visible,.mob-board-dropdown-item-v274.active){background:#30343d!important;box-shadow:inset 3px 0 0 #ff7900!important}
html body[data-color-theme=dark] :is(#webBoardDropdownV303W1,#mobBoardDropdownV274) :is(.web-board-dropdown-item-v303w1,.mob-board-dropdown-item-v274):is(:hover,:focus-visible){background:#383e48!important;outline:1px solid #626b79!important;outline-offset:-1px}
html body[data-color-theme=dark] #webBoardDropdownV303W1 .web-board-dropdown-item-v303w1.visible .web-board-dropdown-state-v303w1{background:#ff7900!important;color:#17191d!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] #webBoardDropdownV303W1 .web-board-dropdown-item-v303w1.hidden .web-board-dropdown-state-v303w1{background:#383e48!important;color:#d0d5dd!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] :is(#webBoardDropdownV303W1,#mobBoardDropdownV274) :is(.web-board-dropdown-delete-v303w1,.mob-board-dropdown-delete-r2g){background:#383e48!important;color:#b9c2ce!important;-webkit-text-fill-color:currentColor!important}
html body[data-color-theme=dark] :is(#webBoardDropdownV303W1,#mobBoardDropdownV274) :is(.web-board-dropdown-delete-v303w1,.mob-board-dropdown-delete-r2g):is(:hover,:focus-visible){background:#493033!important;color:#ff6268!important}

/* V172: dark composer strip and consistent board drawer title contrast. */
html body[data-color-theme=dark] #app :is(.web-draft-tags,.mob-draft-tags){background:#202329!important;background-image:none!important;border-color:#414854!important;color:#f1f3f5!important}
html body[data-color-theme=dark] #app :is(.web-draft-tags,.mob-draft-tags) .draft-row-label-v230{color:#b9c2ce!important;-webkit-text-fill-color:#b9c2ce!important}
html body[data-color-theme=dark] #webBoardDropdownV303W1 .web-board-dropdown-item-v303w1 .web-board-dropdown-name-v303w1,
html body[data-color-theme=dark] #webBoardDropdownV303W1 .web-board-dropdown-item-v303w1.visible .web-board-dropdown-name-v303w1,
html body[data-color-theme=dark] #mobBoardDropdownV274 .mob-board-dropdown-item-v274 .mob-board-dropdown-name-v274,
html body[data-color-theme=dark] #mobBoardDropdownV274 .mob-board-dropdown-item-v274.active .mob-board-dropdown-name-v274{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}

/* V176: restore original dark logo toolbar; retain V173 dark advertisement rail. */
html body[data-color-theme="dark"] #app #ad-bar {
  background:#1b1e23!important;
  background-image:none!important;
  border-top:1px solid #353a43!important;
  color:#c9ced6!important;
  color-scheme:dark;
}
/* Empty advertising slots should blend with the dark rail; real ad artwork is untouched. */
html body[data-color-theme="dark"] #app #ad-bar :is(.nm-ad-item-empty,.nm-ad-empty-slot,.nm-ad-scheduled-base) {
  background:#252a32!important;
  border-color:#3b414c!important;
  color:#c9ced6!important;
}

/* V174 — Native Android status-bar underlay.
   Android 15+ may force a transparent edge-to-edge status bar even when
   StatusBar.setBackgroundColor is requested. This white underlay is limited
   to native Capacitor and does not change the web/PWA or ad rail.
   Native status icons are drawn by Android above the WebView. */
html.capacitor body::before {
  content:"";
  position:fixed;
  top:0;left:0;right:0;
  height:max(24px, env(safe-area-inset-top, 24px));
  background:#fff!important;
  pointer-events:none;
  z-index:2147483646;
}

/* Individual memo delete button: red; check button remains unchanged. */
html body[data-color-theme="dark"] #app .row .ra .rbt.dl,
html body[data-color-theme="dark"] #app .row .ra .rbt.dl i {
 color:#ff6268!important;-webkit-text-fill-color:#ff6268!important;
}
html body[data-color-theme="dark"] #app .row .ra .rbt.dl:is(:hover,:focus-visible){background:rgba(255,98,104,.12)!important}

/* V176: logo toolbar stays dark independently of the white Galaxy status bar. */
html body[data-color-theme="dark"] #app #tb{background:#202329!important;background-image:none!important;color:#f1f3f5!important;border-color:#414854!important;box-shadow:none!important;color-scheme:dark!important}
html body[data-color-theme="dark"] #app #tb :is(button,i,.chip){color:#f1f3f5!important;-webkit-text-fill-color:currentColor!important}

/* V179 — enterprise-style year/month selection, calendar remains single-month. */
.nm-mp179-backdrop{position:fixed;inset:0;z-index:2147482000;background:rgba(0,0,0,.68);display:flex;align-items:center;justify-content:center;padding:18px}
.nm-mp179-panel{box-sizing:border-box;width:min(420px,100%);padding:22px;border-radius:16px;background:#22262e;border:1px solid #414854;color:#f6f7f9;box-shadow:0 18px 50px #0009;font-family:inherit}
.nm-mp179-top,.nm-mp179-year{display:flex;align-items:center;justify-content:space-between}
.nm-mp179-top small{font-size:10px;color:#ff922e;letter-spacing:1.4px}.nm-mp179-top h2{font-size:20px;margin:4px 0 18px}.nm-mp179-close{border:0;background:transparent;color:#ccd2db;font-size:27px;padding:0 5px}
.nm-mp179-year{margin:0 0 18px}.nm-mp179-year strong{font-size:24px}.nm-mp179-year button{border:1px solid #4b535f;background:#343a44;color:#fff;border-radius:9px;min-width:48px;min-height:43px;font-size:26px}
.nm-mp179-months{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.nm-mp179-month{border:1px solid #464e5a;background:#303640;color:#e9edf2;border-radius:10px;padding:13px 4px;font-size:15px;font-weight:600}.nm-mp179-month.active{border-color:#ff922e;color:#ffac59;background:#46372b}.nm-mp179-month:focus-visible,.nm-mp179-month:hover{border-color:#ff922e}
.nm-mp179-bottom{display:flex;justify-content:flex-end;margin-top:18px}.nm-mp179-cancel{background:#343a44;color:#f6f7f9;border:1px solid #4b535f;border-radius:9px;padding:9px 19px}

/* V180: true three-column alignment of previous arrow, centre month/year, next arrow. */
#app .nm-cal-box .nm-cal-head,#app .nm-cal-win .nm-cal-head{
 display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px!important;
 align-items:center!important;justify-items:center!important;gap:0!important;
}
#app .nm-cal-box .nm-cal-head>.nm-cal-nav:first-child,#app .nm-cal-win .nm-cal-head>.nm-cal-nav:first-child{grid-column:1!important;justify-self:center!important}
#app .nm-cal-box .nm-cal-head>.nm-cal-title,#app .nm-cal-win .nm-cal-head>.nm-cal-title{grid-column:2!important;justify-self:center!important;text-align:center!important;min-width:0!important}
#app .nm-cal-box .nm-cal-head>.nm-cal-nav:last-child,#app .nm-cal-win .nm-cal-head>.nm-cal-nav:last-child{grid-column:3!important;justify-self:center!important}
#app .nm-cal-title-picker-v180{border:0!important;background:transparent!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;cursor:pointer!important;font:inherit!important;font-weight:800!important;color:inherit!important;padding:8px!important}
#app .nm-cal-title-picker-v180 .ti{font-size:14px!important;opacity:.72}


/* V182: keep initial single line; grow only while typing, capped at four visible lines. */
html body #app textarea.memo-input,html body #app textarea.mob-textarea{
 min-height:34px!important;max-height:none!important;resize:none!important;
 overflow-x:hidden!important;overflow-y:auto!important;box-sizing:border-box!important;
}

/* V183: legacy main.css has height:36px!important. JS sets measured height inline!important. */
#app .mob-input-row,#app .web-input-row-v160{height:auto!important;max-height:none!important;min-height:0!important;align-items:center!important}
#app textarea.mob-textarea,#app textarea.memo-input{resize:none!important;box-sizing:border-box!important;min-height:0!important;overflow-x:hidden!important;flex-shrink:1!important}

/* V184: Dongle font option visual size only. */
.fp-font-option[data-family="dongle"]{font-size:28px!important;}

/* V185 — Dark mode: readable dark text on light PDF attachment cards only. */
html body[data-color-theme="dark"] #app .row .pdf-card .pdf-title,
html body[data-color-theme="dark"] #app .row .pdf-card > div > div:first-child {
  color:#242831!important; -webkit-text-fill-color:#242831!important;
}
html body[data-color-theme="dark"] #app .row .pdf-card .pdf-meta,
html body[data-color-theme="dark"] #app .row .pdf-card > div > div:last-child {
  color:#626b78!important; -webkit-text-fill-color:#626b78!important;
}

/* V187: move only the composer controls up by 6px, without changing layout height.
   Replaces V186 padding adjustment by building directly from V185. */
@media (max-width:600px){
  html.capacitor #app .mobbrd .mob-input-area .mob-input-row,
  body.mobile-mode #app .mobbrd .mob-input-area .mob-input-row{
    transform:translateY(-6px)!important;
  }
}

/* V188 — Advertising rail surface only. Do not modify ad cards, media, size or position. */
html body:not([data-color-theme="dark"]) #app #ad-bar {
  background:#ffffff!important;
  background-color:#ffffff!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}
html body[data-color-theme="dark"] #app #ad-bar {
  background:#000000!important;
  background-color:#000000!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* V189 — Match the dark advertisement rail to the Android navigation area.
   Keep normal-mode white and preserve advertising cards, position and dimensions. */
html body[data-color-theme="dark"] #app #ad-bar {
  background:#16171b!important;
  background-color:#16171b!important;
  background-image:none!important;
  border-color:#16171b!important;
  box-shadow:none!important;
}

/* V190: Match only the dark-mode NuMemo logo header to the V189 ad rail. */
html body[data-color-theme="dark"] #app #tb {
  background:#16171b!important;
  background-color:#16171b!important;
  background-image:none!important;
  border-color:#16171b!important;
  box-shadow:none!important;
}

/* V192 tablet dark-mode polish: calendar surface only; no sizing, navigation or memo logic changes. */
html body[data-color-theme="dark"] #app .nm-cal-view,
html body[data-color-theme="dark"] #app .win.nm-cal-win,
html body[data-color-theme="dark"] #app .win.nm-cal-win > .wi,
html body[data-color-theme="dark"] #app .win.nm-cal-win .nm-cal-win-body,
html body[data-color-theme="dark"] #app .win.nm-cal-win .nm-cal-box,
html body[data-color-theme="dark"] #app .nm-cal-box {
  background:#202329!important;
  background-color:#202329!important;
  background-image:none!important;
  border-color:#414854!important;
  box-shadow:none!important;
}
html body[data-color-theme="dark"] #app .nm-cal-box .nm-cal-head,
html body[data-color-theme="dark"] #app .nm-cal-box .nm-cal-weekdays,
html body[data-color-theme="dark"] #app .nm-cal-box .nm-cal-grid,
html body[data-color-theme="dark"] #app .nm-cal-box .nm-cal-cell {
  background-color:#202329!important;
  border-color:#414854!important;
}
html body[data-color-theme="dark"] #app .nm-cal-box .nm-cal-head .nm-cal-title,
html body[data-color-theme="dark"] #app .nm-cal-box .nm-cal-head .nm-cal-nav {
  color:#f1f3f5!important;
  -webkit-text-fill-color:currentColor!important;
}
/* V192: memo action icons only, remove tablet's grey circular button surface. */
#app .row .ra .rbt:not(.pending),
#app .row .ra .rbt:not(.pending):is(:hover,:focus,:active,:focus-visible) {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline-offset:2px;
}
html body[data-color-theme="dark"] #app .row .ra .rbt.ok:not(.pending) {
  color:#f1f3f5!important;
  -webkit-text-fill-color:#f1f3f5!important;
}
html body[data-color-theme="dark"] #app .row .ra .rbt.dl:not(.pending),
html body[data-color-theme="dark"] #app .row .ra .rbt.dl:not(.pending) i {
  color:#ff6268!important;
  -webkit-text-fill-color:#ff6268!important;
}


/* V193 — Tablet Capacitor dark calendar frame.
   Root cause: legacy mobile.css/main.css force white on the calendar's
   outer containers and retain a +5px width offset. Do not touch ad cards. */
@media (min-width:601px) {
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open,
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open #app,
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open #app > .wrap,
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open #app > .wrap > .mobv,
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open #mba,
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open .nm-cal-mob-board {
    background:#16171b!important;
    background-color:#16171b!important;
    background-image:none!important;
  }
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open #app > .wrap > .mobv {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    align-self:stretch!important;
    transform:none!important;
  }
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open #mba {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    min-width:0!important;
  }
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open .nm-cal-mob-board,
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open .nm-cal-mob-board[style*="--board-color"] {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    border-color:#16171b!important;
    border-left-color:#16171b!important;
    border-right-color:#16171b!important;
    border-bottom-color:#16171b!important;
    box-shadow:none!important;
  }
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open .nm-cal-mob-body {
    box-sizing:border-box!important;
    min-width:0!important;
    width:100%!important;
    background:#202329!important;
    padding:0!important;
  }
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open .nm-cal-mob-body .nm-cal-box {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    background:#202329!important;
  }
  html.capacitor body[data-color-theme="dark"].nm-cal-view-open #ad-bar {
    background:#16171b!important;
    border-color:#16171b!important;
    box-shadow:none!important;
  }
}

/* V194 — isolated mixed-drop dialog; existing upload modal is unchanged. */
.nm-mixed-confirm-v194{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65);padding:20px;box-sizing:border-box}
.nm-mixed-panel-v194{display:flex;flex-direction:column;gap:14px;width:min(540px,100%);max-height:85vh;box-sizing:border-box;background:#1d2027;color:#f7f7f8;border:1px solid #3b414c;border-radius:20px;padding:24px;box-shadow:0 20px 60px #0006}
.nm-mixed-panel-v194 h2{margin:0;font-size:21px;font-weight:750;color:white}
.nm-mixed-panel-v194 p{margin:0;font-size:13px;line-height:1.6;color:#adb4c0}
.nm-mixed-count-v194{background:#2b3039;border-radius:10px;padding:13px;font-size:14px;font-weight:700}
.nm-mixed-list-v194{overflow-y:auto;min-height:0;display:grid;gap:7px}
.nm-mixed-item-v194{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid #414651;border-radius:9px;font-size:13px}
.nm-mixed-item-v194 b{font-size:11px;color:#ff901d;flex:none}
.nm-mixed-item-v194 span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nm-mixed-actions-v194{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.nm-mixed-actions-v194 button{border:1px solid #515966;border-radius:10px;padding:13px;font-size:14px;font-weight:700;background:#303540;color:white;cursor:pointer}
.nm-mixed-actions-v194 button:last-child{background:#ff7915;border-color:#ff7915}
.nm-mixed-actions-v194 button:disabled{opacity:.55;cursor:default}

/* V195 — upload progress: always above confirmation and application layers. */
#nm-bulk-modal-v503,#nm-bulk-preread-modal-v512{z-index:2147483100!important}
#nm-bulk-modal-v503 .nm-bulk-modal-box{width:min(530px,calc(100vw - 36px));max-height:85vh;overflow:auto;box-sizing:border-box}
#nm-bulk-modal-v503 .nm-bulk-files-v195{display:flex;flex-direction:column;gap:9px;max-height:245px;overflow-y:auto;text-align:left;margin:12px 0 16px;padding:3px 3px 3px 0}
#nm-bulk-modal-v503 .nm-bulk-file-v195{padding:8px 10px;border:1px solid #414652;border-radius:10px;background:#252932}
#nm-bulk-modal-v503 .nm-bulk-file-head-v195{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#f3f4f6;margin-bottom:7px}
#nm-bulk-modal-v503 .nm-bulk-file-name-v195{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
#nm-bulk-modal-v503 .nm-bulk-file-head-v195 span:last-child{flex:none;color:#ff992e;font-weight:700;font-variant-numeric:tabular-nums}
#nm-bulk-modal-v503 .nm-bulk-file-track-v195{height:5px;border-radius:9px;background:#414651;overflow:hidden}
#nm-bulk-modal-v503 .nm-bulk-file-fill-v195{height:100%;width:0;background:#ff841b;border-radius:9px;transition:width .18s ease}

/* V196: desktop memo-board-wide file drag/drop affordance */
/* Do not override .win positioning: desktop windows rely on absolute coordinates. */
.mobv:has(> .nm-board-drop-overlay-v196){position:relative}
.nm-board-drop-overlay-v196{position:absolute;inset:0;z-index:9999;pointer-events:none;display:none;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;background:rgba(14,18,25,.80);border:2px dashed #ff861b;border-radius:14px}
.nm-board-drop-active-v196>.nm-board-drop-overlay-v196{display:flex}
.nm-board-drop-panel-v196{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;color:#fff;font-family:inherit}
.nm-board-drop-icon-v196{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#ff7915;color:#fff;font-size:32px;font-weight:700}
.nm-board-drop-panel-v196 strong{font-size:20px;line-height:1.4;font-weight:750}
.nm-board-drop-panel-v196 span{font-size:13px;line-height:1.5;color:#c8cdd6}
