/* High contrast local vectors, generous hit areas, minimal chrome. */
[data-wb-mounted]{position:relative;display:flex!important;flex-direction:column;gap:0;color:#171a20!important;overflow:visible}
[data-wb-mounted][hidden],.wb-view[hidden],.wb-editor[hidden],.wb-suggestion[hidden]{display:none!important}
.pl-sticky-sheet[data-wb-mounted]{height:min(820px,calc(100dvh - 24px));min-height:320px!important;padding:10px 12px!important}
.pl-library-sticky-sheet[data-wb-mounted]{min-height:350px;max-height:700px}
[data-wb-mounted] button,[data-wb-mounted] summary{color:#171a20!important;opacity:1!important;cursor:pointer}
[data-wb-mounted] svg{width:22px!important;height:22px!important;stroke-width:2.2!important;flex:none}
[data-wb-mounted] button:focus-visible,[data-wb-mounted] summary:focus-visible,.wb-dialog button:focus-visible{outline:3px solid #3659e3;outline-offset:3px}
[data-wb-mounted]>.pl-sticky-head,[data-wb-mounted]>header{display:flex;align-items:center;gap:6px;flex:none;padding:3px 0 6px}
[data-wb-mounted]>.pl-sticky-head>b,[data-wb-mounted]>header>strong{margin-right:auto;flex:1}
[data-wb-mounted]>.pl-sticky-head button,[data-wb-mounted]>header button,[data-wb-mounted]>footer>button,[data-wb-mounted]>footer>details>summary{display:grid;place-items:center;width:42px;height:42px;min-width:42px;border:1px solid #aaa174;border-radius:10px;padding:8px;background:#fffdf3;box-shadow:none}
[data-wb-mounted]>footer{display:flex!important;align-items:center;gap:6px;padding:6px 0 2px;flex:none;margin:0!important}
[data-wb-mounted]>footer>.pl-sticky-save,[data-wb-mounted]>footer>.save-note{background:#171a20!important;border-color:#171a20;color:white!important}
[data-wb-mounted]>footer>.putx-profile{order:3;margin-left:0!important}
[data-wb-mounted]>footer>.wb-more{order:4;margin-left:auto!important}
[data-wb-mounted]>footer [data-putx-profile]>summary{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#fffdf3;border:1px solid #aaa174;padding:8px}
[data-wb-mounted]>footer .putx-profile-panel{top:auto!important;bottom:50px!important;right:0;left:auto;z-index:80}
.wb-editor{flex:1;min-height:130px;overflow:auto;outline:none;border:0;padding:10px 4px;font:400 16px/1.65 system-ui,'Malgun Gothic',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;background:transparent;color:#171a20}
.wb-editor:empty:before{content:attr(data-placeholder);color:#6b654b;pointer-events:none}
.wb-editor figure{margin:8px 0;padding:8px;background:#fff9;border:1px solid #aaa174;border-radius:10px;white-space:normal;position:relative}
.wb-editor figure img{display:block;max-width:100%;height:auto;cursor:zoom-in;border-radius:5px}
.wb-editor figcaption{font-size:12px;overflow-wrap:anywhere;color:#3c3f46;margin:5px 0}
.wb-editor figure button{display:inline-grid;place-items:center;width:32px;height:32px;margin-right:5px;border:1px solid #aaa174;border-radius:7px;background:#fff}
.wb-editor figure button svg{width:18px!important;height:18px!important}
.wb-modes{display:flex;justify-content:center;gap:8px;flex:none;border-bottom:1px solid #171a2022;padding:2px 0 7px}
.wb-modes button{width:42px;height:36px;display:grid;place-items:center;background:transparent;border:1px solid transparent;border-radius:9px}
.wb-modes button[aria-pressed=true]{background:#fffdf3;border-color:#8e8252;box-shadow:0 1px 2px #171a2014}
.wb-more{position:relative!important;-webkit-app-region:no-drag}
.wb-more summary{list-style:none!important}
.wb-more-panel{position:absolute!important;top:auto!important;bottom:50px!important;right:0!important;width:min(300px,calc(100vw - 48px))!important;max-height:min(65dvh,480px);overflow:auto;background:#fffef8!important;box-shadow:0 10px 32px #171a2038!important;z-index:70;display:grid!important;grid-template-columns:1fr!important;gap:3px!important;padding:10px!important;border:1px solid #aaa174;border-radius:12px}
.wb-more-panel button{width:100%;display:flex!important;align-items:center;gap:12px;text-align:left;padding:9px 10px!important;background:#fffef8;border:0;border-radius:7px;min-height:40px;font-size:13px}
.wb-more-panel button:hover{background:#f1eee2}.wb-more-panel>p{font-size:11px}
.wb-ticker{display:block;width:100%;text-align:left;border:0;background:#fff7;border-radius:7px;padding:7px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.4;flex:none}
.wb-storage{font-size:10px;color:#4c4b43;padding:3px 2px;flex:none}
.wb-suggestion{display:flex;gap:8px;align-items:center;padding:4px}.wb-suggestion:empty{display:none}.wb-suggestion button{display:grid;place-items:center;width:34px;height:34px;background:#fff;border:1px solid #aaa174;border-radius:8px}
.wb-view{flex:1;min-height:160px;overflow:auto;padding:8px 2px}.wb-view-head,.wb-month-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.wb-view button{border:1px solid #b4ad8b;background:#fffaf0;border-radius:7px;min-height:32px}.wb-view-head button{display:grid;place-items:center;width:36px;height:36px}.wb-month-nav>button{padding:0 14px;font-size:22px}
.wb-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.wb-calendar>small{text-align:center;font-size:11px;padding:5px}.wb-calendar>button{min-height:47px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px;font-size:13px}.wb-calendar>button small{font-size:9px;color:#3659e3}.wb-calendar .today{outline:2px solid #3659e3;outline-offset:-2px}
.wb-day-list{display:grid;gap:6px;margin-top:12px;font-size:13px}.wb-day-list>button{text-align:left;padding:8px}.wb-task{display:flex;align-items:center;gap:7px;padding:9px 0;border-bottom:1px solid #171a2022}.wb-task input{width:20px!important;height:20px!important;flex:none;padding:0!important}.wb-task>span{flex:1;font-size:14px;overflow-wrap:anywhere}.wb-task>small{font-size:10px}.wb-task>button{padding:5px}
.wb-dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #b7b3a4;border-radius:16px;padding:16px;color:#171a20;background:#fffef9;box-shadow:0 15px 70px #171a2044;font-family:system-ui,'Malgun Gothic',sans-serif}
.wb-dialog::backdrop{background:#171a2055}.wb-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:10px;border-bottom:1px solid #ddd}.wb-dialog header button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0!important;white-space:nowrap;flex-shrink:0;border:0;background:transparent}
.wb-dialog form{display:grid;gap:12px;margin-top:12px}.wb-dialog label{display:grid;gap:5px;font-size:13px}.wb-dialog input,.wb-dialog textarea,.wb-dialog select{font:inherit;padding:9px;width:100%;border:1px solid #b7b3a4;background:#fff;border-radius:8px;box-sizing:border-box}.wb-dialog button{font:inherit;padding:9px 12px;border:1px solid #b7b3a4;background:#f6f4eb;border-radius:8px;cursor:pointer;color:#171a20;margin:3px}.wb-dialog p{font-size:13px;line-height:1.6}.wb-dialog .wb-primary{background:#171a20;color:#fff}.wb-dialog .wb-original-image{max-width:100%;height:auto}.wb-capture-preview,.wb-crop{max-width:100%;height:auto;display:block;margin:12px 0}.wb-crop{touch-action:none;cursor:crosshair}.wb-source-preview{display:block;max-width:220px}
.wb-chat-list{max-height:45dvh;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:12px 0}.wb-chat-message{border:1px solid #ded9c8;background:#f7f5eb;border-radius:12px;padding:10px}.wb-chat-message p{white-space:pre-wrap;margin:6px 0}.wb-chat-message small{font-size:10px;color:#52545b}.wb-dialog .wb-chat-compose{grid-template-columns:minmax(0,1fr) 42px 42px;align-items:end}.wb-chat-compose textarea{resize:vertical;min-height:50px}.wb-chat-compose button{display:grid;place-items:center;padding:8px}.wb-restore{position:fixed;bottom:20px;right:20px;width:48px;height:48px;border-radius:14px;background:#f5d94e;color:#171a20;border:1px solid #817544;z-index:100;box-shadow:0 4px 16px #171a2033}.wb-undo{position:absolute;bottom:80px;left:10px;padding:8px!important;background:#171a20!important;color:#fff!important;border-radius:8px}
@media(max-width:520px){.pl-sticky-sheet[data-wb-mounted]{height:calc(100dvh - 12px);padding:8px!important;margin:0!important;border-radius:12px!important}.wb-editor{font-size:16px}.wb-dialog{padding:12px}.wb-more-panel button{min-height:44px}}

[data-wb-mounted]>.pl-sticky-ticker{display:none!important}
[data-wb-mounted] [hidden]{display:none!important}
.wb-material-editor{min-height:200px;max-height:55dvh;border:1px solid #bbb8aa;border-radius:10px;padding:12px;background:#fffdf8}.wb-material-editor .wb-material-files:empty{display:none}.wb-material-file{position:relative}.wb-material-file>button{width:auto!important;padding:4px 8px!important}.wb-update-dot{width:9px;height:9px;border-radius:50%;background:#c53527;position:absolute;top:4px;right:4px}

.wb-version{position:absolute;bottom:8px;right:14px;font-size:10px;color:#615b45;pointer-events:none}.wb-storage{padding-right:50px}[aria-label='항상 위 고정'][aria-pressed=true]{background:#171a20!important;color:white!important}

.wb-legacy-attachments[hidden]{display:none!important}.wb-legacy-attachments{font-size:12px;max-height:150px;overflow:auto;padding:6px}.wb-legacy-attachments a,.wb-legacy-attachments button{margin:4px;display:inline-block}

/* Compact settings: equal icon targets, no loose footer links. */
[data-wb-mounted] .wb-more-panel{width:min(276px,calc(100vw - 40px))!important;box-sizing:border-box;overflow-x:hidden;grid-template-columns:repeat(5,44px)!important;justify-content:center;gap:6px!important;padding:12px!important}
[data-wb-mounted] .wb-more-panel>p{display:none}
[data-wb-mounted] .wb-more-panel button,[data-wb-mounted] .wb-more-panel>a{display:grid!important;place-items:center;min-width:44px!important;width:44px!important;height:44px;min-height:44px;padding:9px!important;border:0;border-radius:10px;text-decoration:none;background:transparent;color:#171a20;font-size:0;box-sizing:border-box;margin:0}
[data-wb-mounted] .wb-more-panel button:hover,[data-wb-mounted] .wb-more-panel>a:hover{background:#ece8d9}
[data-wb-mounted] .wb-more-panel [hidden]{display:none!important}
.putx-site-icon{width:24px;height:24px;display:inline-grid;place-items:center;flex:none}.putx-site-icon img{width:24px;height:24px;object-fit:contain;border-radius:5px}.putx-site-icon img[hidden]{display:none!important}.putx-site-icon svg{width:24px;height:24px}
.pl-sticky-apps a{display:inline-grid;place-items:center;width:44px;height:44px;text-decoration:none}

.putx-review-dialog{width:min(700px,calc(100vw - 24px))}.putx-review-dialog fieldset{margin:12px 0;border:1px solid #d2cbb9;border-radius:12px;padding:14px;display:grid;gap:10px}.putx-review-dialog label{display:grid;gap:4px}.putx-review-dialog input[type=checkbox]{width:20px;height:20px}.putx-review-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.putx-review-dates{display:grid;gap:8px}.putx-review-dialog [hidden]{display:none!important}.putx-review-dialog textarea{min-height:110px}

.wb-note-status{display:block;font-size:10px;padding:3px 2px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:none}

/* Keep connected icons on the profile footer row at the existing 44px size. */
[data-wb-mounted]>footer>.putx-app-dock{order:4;display:flex;flex:0 1 auto;min-width:0;max-width:100%;gap:5px;overflow-x:auto;flex-wrap:nowrap;border-top:0;padding:0;margin:0;scrollbar-width:thin}
[data-wb-mounted]>footer>.putx-app-dock>a,[data-wb-mounted]>footer>.putx-app-dock>button{flex:0 0 44px;width:44px;height:44px;min-width:44px;box-sizing:border-box}
[data-wb-mounted]>footer>.wb-more{order:5;margin-left:auto!important}

/* Per-note color palette (browser-local preference; existing stored notes untouched). */
[data-wb-mounted].pl-sticky-sheet,[data-wb-mounted].pl-library-sticky-sheet{--sticky-color:var(--putx-note-color,#F5D94E);background:var(--putx-note-color,#F5D94E)!important;transition:background-color .16s ease}

.wb-colors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:16px 0}
.wb-colors button{width:100%;aspect-ratio:1;min-height:42px;border:2px solid #817b66;border-radius:12px;padding:0;cursor:pointer}
.wb-colors button:focus-visible{outline:3px solid #3659e3;outline-offset:3px}

[data-wb-mounted] [hidden]{display:none!important}
[data-wb-mounted]>footer>.pl-sticky-save{order:0}[data-wb-mounted]>footer>button{order:1}[data-wb-mounted]>footer>.putx-profile{order:2}[data-wb-mounted]>footer>.putx-app-dock{order:3;flex:1 1 0;max-width:220px}[data-wb-mounted]>footer>.wb-more{order:4;flex:none}

/* Compact AI review: only the first result is expanded; other items remain optional. */
.putx-review-dialog .putx-review-item{border:1px solid #d2cbb9;border-radius:12px;margin:9px 0;padding:0 12px;background:#fff}.putx-review-dialog .putx-review-item>summary{cursor:pointer;padding:12px 0;font-weight:700;overflow-wrap:anywhere}.putx-review-dialog .putx-review-item:not([open])>label,.putx-review-dialog .putx-review-item:not([open])>.putx-review-dates{display:none}.putx-review-dialog .putx-review-item>.putx-review-preview{margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.putx-review-dialog .putx-review-item[open]>.putx-review-preview{display:none}.putx-review-dialog .putx-review-item>label,.putx-review-dialog .putx-review-item>.putx-review-dates{margin:8px 0}.putx-review-dialog form{gap:8px}.putx-review-dialog form>button[type=submit]{position:sticky;bottom:0;width:100%;min-height:44px;z-index:2}@media(max-width:600px){.putx-review-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px}.putx-review-dialog .putx-review-item{padding:0 10px}.putx-review-dialog .putx-review-item>summary{min-height:28px}}

/* PUTX approved note chrome: one icon header and a quiet bottom ticker. */
[data-wb-mounted]{--putx-visual-line:#d8ce9f;background:var(--putx-note-color,#fff0b6)!important;color:#24251e!important}
[data-wb-mounted]>.pl-sticky-head,[data-wb-mounted]>header{gap:3px!important;padding:5px 2px!important;min-height:38px;flex-wrap:nowrap}
[data-wb-mounted]>.pl-sticky-head>b,[data-wb-mounted]>header>strong{flex:0 1 auto;font-size:13px;margin-right:auto}
[data-wb-mounted] .wb-modes{display:flex;gap:2px;padding:0;border:0;min-width:0;flex:0 0 auto}
[data-wb-mounted]>.pl-sticky-head button,[data-wb-mounted]>header button,[data-wb-mounted]>header summary,[data-wb-mounted]>.pl-sticky-head summary{width:28px!important;min-width:28px!important;height:30px!important;padding:4px!important;border-radius:7px;display:grid;place-items:center}
[data-wb-mounted] .wb-modes button[aria-pressed=true]{background:#ffe17e!important;border:1px solid #b7a44e!important}
[data-wb-mounted] .wb-editor{background:#fffdf4!important;border:1px solid #dfd5ad!important;border-radius:12px;min-height:100px;padding:12px!important;margin:8px 1px!important;line-height:1.6}
[data-wb-mounted]>footer,[data-wb-mounted]>.pl-sticky-actions{display:flex!important;align-items:center;flex-wrap:nowrap;gap:3px!important;padding:5px 0!important;overflow:visible}
[data-wb-mounted]>footer>button,[data-wb-mounted]>.pl-sticky-actions>button{width:32px!important;min-width:30px!important;height:34px!important;padding:5px!important;margin:0!important;order:0!important;flex:1 1 32px}
[data-wb-mounted] .wb-ticker{order:99!important;font-size:11px!important;background:transparent!important;border-top:1px solid var(--putx-visual-line)!important;border-radius:0!important;margin-top:5px;padding:5px 7px!important}
[data-wb-mounted] .wb-storage,[data-wb-mounted] .wb-note-status{font-size:11px!important;padding:2px 7px!important}
[data-wb-mounted] .wb-more-panel{top:36px!important;bottom:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;width:min(300px,calc(100vw - 28px))!important;background:#fffef9!important}
[data-wb-mounted] .wb-more-panel button{width:100%!important;height:42px!important;min-width:0!important;padding:8px!important;display:grid!important;place-items:center;text-align:center}
[data-wb-mounted] .wb-more-panel button>span{display:none}
[data-wb-mounted] .wb-more-panel button[disabled]{opacity:.45!important;cursor:not-allowed!important}
[data-wb-mounted] .wb-calendar>small:first-child{color:#c72323!important}[data-wb-mounted] .wb-calendar>small:nth-child(7){color:#205bc9!important}
.wb-dialog .wb-translate-languages,.wb-translation-tools{display:flex;align-items:center;gap:8px}.wb-translate-languages select{min-width:0;flex:1}.wb-translate-input{position:relative}.wb-translate-input textarea{box-sizing:border-box;width:100%;padding-right:50px;min-height:130px}.wb-translate-input>button{position:absolute;right:5px;bottom:10px;width:40px;height:40px;padding:8px}.wb-dialog textarea[readonly]{width:100%;box-sizing:border-box;min-height:130px;background:#f6f7fa}.wb-translation-tools button{width:44px;height:44px;padding:10px}.wb-crop{touch-action:none;cursor:crosshair}
[data-wb-mounted]>.putx-app-dock{display:flex;flex-wrap:wrap;gap:5px;flex:none;padding:5px 0}
[data-wb-mounted]>.putx-app-dock[hidden]{display:none!important}
[data-wb-mounted]>footer>[data-putx-profile]{flex:0 0 34px;order:0!important;margin:0!important}
[data-wb-mounted]>footer>[data-putx-profile]>summary{box-sizing:border-box;width:34px!important;min-width:34px!important;height:34px!important;padding:5px!important}


/* v0.6.8: compact note, no external gutter or horizontal scrollbar. */
body.famos-sticky-app{margin:0;overflow:hidden;background:#fff0b6}
.famos-sticky-app #app,.famos-sticky-app .pl-sticky-focus{width:100%;height:100dvh;min-height:0;padding:0!important;margin:0!important;display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;overflow:hidden}
.famos-sticky-app .pl-sticky-sheet[data-wb-mounted]{width:100%!important;max-width:none!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:6px 8px!important;overflow:hidden}
[data-wb-mounted]>*{min-width:0;max-width:100%;box-sizing:border-box}
[data-wb-mounted]>.wb-view{min-height:0;overflow:auto}
[data-wb-mounted] .wb-editor{min-height:40px;min-width:0}
[data-wb-mounted]>.pl-sticky-head,[data-wb-mounted]>header{min-width:0;flex:none}
[data-wb-mounted]>footer{min-width:0;max-width:100%;overflow:visible}
.wb-saved-list{display:grid;gap:7px;margin:10px 0}.wb-saved-note{display:flex!important;flex-direction:column;align-items:flex-start;text-align:left;padding:10px!important;width:100%;gap:4px;overflow-wrap:anywhere}.wb-saved-note span{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.wb-saved-note small{font-size:10px;color:#6b654b}.wb-contact-image{display:block;max-width:100%;max-height:200px;object-fit:contain;margin:12px auto}.wb-contact [role=status] a{display:block;margin-top:8px}
@media(display-mode:window-controls-overlay){.famos-sticky-app .pl-sticky-head{height:env(titlebar-area-height,34px);width:env(titlebar-area-width,100%);-webkit-app-region:drag;app-region:drag}.famos-sticky-app .pl-sticky-head button,.famos-sticky-app .pl-sticky-head summary{app-region:no-drag;-webkit-app-region:no-drag}}
.note[data-wb-mounted]{height:100dvh;padding:6px 8px;overflow:hidden}

[data-wb-mounted] .wb-editor{background:transparent!important;border:0!important;border-radius:0!important;margin:4px 0!important;padding:10px 4px!important}

/* PUTX v2: memo stays independent of the always visible command field. */
[data-wb-mounted]>.putx-v2-ai-command{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;flex:none;margin:2px 0}
.putx-v2-ai-command input{min-width:0;width:100%;height:30px;padding:3px 7px;border:1px solid #b7ad7c;border-radius:7px;background:#fff9;font:12px system-ui}
.putx-v2-ai-command button{height:30px;padding:3px 8px;border:1px solid #8e8252;border-radius:7px;font:12px system-ui}
.wb-html-preview{width:100%;height:65dvh;border:1px solid #ddd;background:white}
@media(max-width:520px) and (max-height:640px){
 [data-wb-mounted]>.pl-sticky-head,[data-wb-mounted]>header{padding:0;min-height:28px;height:28px}
 [data-wb-mounted] .wb-modes{padding:0;gap:2px;border:0}
 [data-wb-mounted]>.pl-sticky-head button,[data-wb-mounted]>header button,[data-wb-mounted] .wb-modes button,[data-wb-mounted]>header summary{height:24px!important;min-height:24px!important;width:24px!important;min-width:24px!important;padding:3px!important}
 [data-wb-mounted] svg{width:17px!important;height:17px!important}
 [data-wb-mounted]>.wb-storage,[data-wb-mounted]>.wb-version,[data-wb-mounted]>.wb-note-status,[data-wb-mounted]>.pl-sticky-focus-status{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%)}
 [data-wb-mounted]>.wb-ticker{height:20px;min-height:20px;padding:1px 6px;font-size:10px}
 [data-wb-mounted]>footer{padding:1px 0;gap:3px;height:28px}
 [data-wb-mounted]>footer>button,[data-wb-mounted]>footer [data-putx-profile]>summary{height:24px!important;min-height:24px!important;width:24px!important;min-width:24px!important;padding:3px!important}
 [data-wb-mounted]>.wb-editor{margin:0!important;padding:3px!important}
 [data-wb-mounted]>.putx-v2-ai-command input,[data-wb-mounted]>.putx-v2-ai-command button{height:26px}
}

@media(max-width:520px) and (max-height:640px){
 [data-wb-mounted]>.pl-sticky-head,[data-wb-mounted]>header{padding-right:28px}
 [data-wb-mounted]>.wb-ticker{position:absolute;right:8px;top:6px;width:24px;height:24px;min-height:24px;padding:0;font-size:0;background:transparent}
 [data-wb-mounted]>.wb-ticker:before{content:'🔔';font-size:15px}
 [data-wb-mounted]>.wb-ticker:focus-visible{width:calc(100% - 16px);height:26px;padding:2px 6px;font-size:11px;background:#fffdf3;z-index:90}
}

[data-wb-mounted]>footer>.wb-modes{padding:0;border:0;gap:4px;display:flex;margin:0}
[data-wb-mounted]>.putx-v2-ai-command{grid-template-columns:28px minmax(0,1fr) auto}
[data-wb-mounted]>.putx-v2-ai-command>button:first-child{padding:3px;width:28px;min-width:28px;display:grid;place-items:center}
[data-wb-mounted]>.pl-sticky-head>[data-putx-profile]{flex:0 0 auto}
@media(max-width:520px) and (max-height:640px){
 [data-wb-mounted]>.putx-v2-ai-command{margin:0}
 [data-wb-mounted]>footer .wb-modes button,[data-wb-mounted]>footer>details>summary{height:24px!important;min-height:24px!important;width:24px!important;min-width:24px!important;padding:3px!important}
 [data-wb-mounted]>.pl-sticky-head [data-putx-profile]>summary{height:24px!important;width:24px!important;padding:3px!important}
}

[data-wb-mounted]>footer .wb-more-panel{top:auto!important;bottom:34px!important}
[data-wb-mounted] .wb-more-panel>input{grid-column:1/-1;width:100%;font-size:13px!important;padding:6px!important}
@media(max-width:520px) and (max-height:640px){
 [data-wb-mounted]>.pl-sticky-head,[data-wb-mounted]>header{height:28px!important;min-height:28px!important;padding:0 28px 0 0!important}
 [data-wb-mounted]>footer,[data-wb-mounted]>.pl-sticky-actions{height:28px!important;min-height:28px!important;padding:0!important}
 [data-wb-mounted]>footer>button,[data-wb-mounted]>.pl-sticky-actions>button{height:24px!important;min-height:24px!important;min-width:24px!important;width:24px!important;padding:3px!important}
 [data-wb-mounted]>.wb-ticker{font-size:0!important;padding:0!important;margin:0!important;border:0!important}
 [data-wb-mounted]>.wb-ticker:focus-visible{font-size:11px!important;padding:2px 6px!important}
 [data-wb-mounted]>.pl-sticky-head [data-putx-profile]>summary{height:24px!important;min-height:24px!important;width:24px!important;min-width:24px!important;padding:3px!important}
}

@media(max-width:520px) and (max-height:640px){
 [data-wb-mounted]>.putx-registered-menus{position:absolute;left:55px;top:6px;height:24px;max-width:calc(100% - 172px);overflow-x:auto;flex-wrap:nowrap;gap:3px}
 [data-wb-mounted]>.putx-registered-menus button{min-height:24px!important;height:24px!important;white-space:nowrap;padding:2px 5px!important;font-size:10px!important}
}

@media(max-width:520px) and (max-height:640px){
 [data-wb-mounted]>.pl-sticky-head>[data-putx-profile]{margin-left:0!important}
 [data-wb-mounted]>.putx-registered-menus{left:90px;max-width:calc(100% - 210px)}
}

/* Essential note actions remain readable within the existing compact header. */
[data-wb-mounted]>header button[data-wb-note-action],[data-wb-mounted]>.pl-sticky-head button[data-wb-note-action]{font-size:11px!important;font-weight:700;color:#302c20;line-height:1;padding:2px!important}
[data-wb-mounted] button[data-wb-note-action=delete]{color:#a32929!important}


/* Wide web workspace: keep the editor small and add saved notes beside it. */
.wb-note-rail{display:none}
@media(min-width:900px){
 .pl-sticky-focus:has(.wb-note-rail){display:flex!important;align-items:flex-start;gap:18px;overflow-x:auto;max-width:100vw!important;width:100%!important;padding:24px!important;box-sizing:border-box;scroll-snap-type:x proximity}
 .pl-sticky-focus:has(.wb-note-rail)>.pl-sticky-sheet{flex:0 0 400px!important;width:400px!important;max-width:400px!important;margin:0!important;scroll-snap-align:start}
 .wb-note-rail{display:flex;flex:0 0 auto;gap:18px;align-items:flex-start}
 .wb-board-note{display:flex!important;flex:0 0 300px;width:300px;height:400px;padding:22px!important;flex-direction:column;align-items:flex-start;gap:16px;text-align:left;border:1px solid #e9dfa1!important;border-radius:12px!important;background:#fff3a6!important;color:#302b20!important;box-shadow:0 5px 16px #3a321313;scroll-snap-align:start;overflow:hidden;white-space:normal}
 .wb-board-note strong{font-size:18px;line-height:1.45;overflow-wrap:anywhere}.wb-board-note span{font-size:15px;line-height:1.7;white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere;flex:1}.wb-board-note small{font-size:12px;color:#6d644b}
 .wb-board-note:focus-visible{outline:3px solid #3659e3;outline-offset:3px}
}

/* Expanded desktop: centered memo above permission-scoped recent library cards. */
.wb-web-bar,.wb-web-side,.wb-web-recent{display:none}
[data-wb-expand]{display:none!important}
@media(min-width:900px){
 body.famos-sticky-app{background:#f5f6f8!important}
 .pl.pl-sticky-focus.wb-desktop-workspace{display:grid!important;grid-template-columns:170px minmax(0,1fr);gap:0!important;padding:0!important;max-width:100%!important;width:100%!important;overflow:visible!important;min-height:100dvh;align-items:stretch}
 .wb-web-bar{grid-column:1/-1;display:flex;align-items:center;gap:18px;background:white;padding:14px 24px;border-bottom:1px solid #e4e5e8;min-height:64px;box-sizing:border-box}
 .wb-web-brand{font-size:24px;font-weight:800;color:#242731;text-decoration:none}.wb-web-bar span{flex:1;color:#727780;font-size:14px}.wb-web-bar button,.wb-web-bar>a:last-child{border:1px solid #ddd;border-radius:8px;background:#fff;padding:9px 12px;color:#343943;text-decoration:none;font-size:13px}
 .wb-web-side{display:flex;flex-direction:column;gap:6px;padding:22px 12px;background:#fff;border-right:1px solid #e4e5e8;min-width:0}.wb-web-side strong{font-size:12px;color:#747b86;padding:12px 8px}.wb-web-side button{padding:10px;text-align:left;border:0;border-radius:8px;background:transparent;overflow-wrap:anywhere;color:#343943}.wb-web-side button[aria-pressed=true]{background:#fff2bf;font-weight:700}
 .wb-web-main{min-width:0}.wb-web-stage{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:28px 24px;gap:20px;min-width:0}
 .wb-desktop-workspace .pl-sticky-sheet[data-wb-mounted]{width:400px!important;max-width:400px!important;flex:none!important;height:480px!important;min-height:480px!important;margin:0 auto!important;border:1px solid #e4d99e;border-radius:14px!important;box-shadow:0 8px 22px #282c3612;overflow:visible}
 .wb-desktop-workspace [data-wb-expand]{display:grid!important}
 .wb-desktop-workspace .wb-note-rail{display:none!important;width:100%;max-width:100%;min-width:0;overflow-x:auto;padding:5px;box-sizing:border-box}
 .wb-desktop-workspace.wb-show-board[data-expanded=true] .wb-note-rail{display:flex!important}
 .wb-desktop-workspace .wb-web-recent{display:block;background:white;border-top:1px solid #e4e5e8;padding:22px 24px;min-width:0}
 .wb-web-recent-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wb-web-recent h2{font-size:20px;margin:0 8px 0 0}.wb-web-tabs{display:flex;gap:4px}.wb-web-tabs button{border:0;background:transparent;padding:8px 12px;border-radius:8px;font-size:13px}.wb-web-tabs button[aria-pressed=true]{background:#fff0b8;font-weight:700}.wb-web-recent input{flex:1;min-width:120px;max-width:240px;padding:9px;border:1px solid #ddd;border-radius:8px;margin-left:auto}.wb-web-recent-head>button{border:1px solid #ddd;border-radius:8px;background:white;padding:7px;display:grid;place-items:center}.wb-web-recent-head>button svg{width:20px;height:20px}.wb-web-recent [role=status]{font-size:12px;color:#737984;margin:12px 0}
 .wb-web-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}
 .wb-web-card{min-width:0;display:flex;flex-direction:column;text-align:left;gap:10px;border:1px solid #e0e3e8;border-radius:10px;background:#fff;padding:12px;color:#2c313b;cursor:pointer}.wb-web-card:hover{border-color:#d9b844;box-shadow:0 4px 12px #00000009}.wb-web-card strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.wb-web-card small,.wb-web-card>span{font-size:11px;color:#747a84}.wb-web-thumb{display:flex;flex-direction:column;gap:10px;background:#f6f7f9;border:1px solid #eceef1;border-radius:7px;height:130px;padding:12px;overflow:hidden;box-sizing:border-box;width:100%;font-size:12px;line-height:1.6}.wb-web-thumb svg{width:24px;height:24px;flex:none}.wb-web-thumb[data-kind=note]{background:#fff9db}
 .pl.pl-sticky-focus.wb-desktop-workspace[data-expanded=false]{grid-template-columns:minmax(0,1fr);padding:24px!important;min-height:100dvh}
 .wb-desktop-workspace[data-expanded=false]>.wb-web-bar,.wb-desktop-workspace[data-expanded=false]>.wb-web-side,.wb-desktop-workspace[data-expanded=false] .wb-web-recent{display:none}
}
@media(max-width:899px){
 .wb-web-main,.wb-web-stage{display:contents}
 .wb-desktop-workspace .wb-note-rail{display:none!important}
}
.wb-web-preview pre{white-space:pre-wrap;max-height:40dvh;overflow:auto;font:14px/1.7 system-ui}.wb-web-preview-files{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.wb-web-preview a{display:inline-block;margin:10px}

@media(min-width:900px){
 .wb-desktop-workspace[data-expanded=false] .pl-sticky-sheet[data-wb-mounted]{transform:translate(var(--wb-note-x,0px),var(--wb-note-y,0px))}
 .wb-desktop-workspace[data-expanded=false] .pl-sticky-head{cursor:move;touch-action:none}
}
