/* Poster controls are shared by the local dashboard and authenticated shared client. */
.quote-controls .toolbar{flex-wrap:wrap}
.quote-controls .toolbar #search{flex:0 1 400px;width:400px;max-width:100%;min-width:220px}
#quotePoster{width:min(1440px,96vw);max-width:96vw;height:92vh;max-height:92vh;padding:0;border:1px solid #dce4f1;border-radius:18px;color:#203754;background:#f7f9fd;overflow:hidden}
#quotePoster::backdrop{background:#14233b88;backdrop-filter:blur(4px)}
#quotePoster .poster-shell{height:100%;display:flex;flex-direction:column}
#quotePoster .poster-head,#quotePoster .poster-actions{display:flex;align-items:center;gap:10px;padding:16px 22px;background:white;flex-wrap:wrap;border-bottom:1px solid #e4eaf4}
#quotePoster h2{font-size:20px;margin:0;flex:1}#quotePoster h3{font-size:15px;margin:12px 0}
#quotePoster .poster-body{display:grid;grid-template-columns:minmax(350px,1fr) minmax(360px,1fr);flex:1;min-height:0}
#quotePoster .poster-settings{overflow:auto;padding:18px;border-right:1px solid #e0e7f2}
#quotePoster .poster-stage{overflow:auto;display:flex;flex-direction:column;align-items:center;padding:18px;gap:12px;background:#eaf0f8}
#quotePoster .poster-stage canvas{display:block;width:min(100%,360px);height:auto;box-shadow:0 12px 40px #12234626;border-radius:4px;background:white}
#quotePoster .poster-templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
#quotePoster .poster-templates button{text-align:left;font-size:13px;white-space:normal}
#quotePoster .poster-templates button[aria-pressed=true]{border-color:#3e63ec;box-shadow:inset 0 0 0 1px #3e63ec;background:#edf2ff;color:#254bd0}
#quotePoster .poster-actions{border-top:1px solid #e4eaf4;border-bottom:0}
#quotePoster .poster-message{flex:1;min-width:220px;white-space:pre-wrap;font-size:13px;color:#58708e}
#quotePoster .poster-message.error{color:#b42318}
#quotePoster .poster-tools,#quotePoster .poster-pages{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
#quotePoster .poster-hint{font-size:12px;color:#647995;line-height:1.6;margin:8px 0}
#quotePoster .poster-tree details{border-left:2px solid #e6ecf6;margin:6px 0;padding-left:10px}
#quotePoster .poster-tree summary{cursor:pointer;line-height:1.8;color:#2d4465}
#quotePoster input[type=checkbox]{width:16px;height:16px;margin:0 7px 0 0;vertical-align:middle;accent-color:#4263eb}
#quotePoster .poster-leaf{padding:9px;background:#fff;border:1px solid #e2e8f1;border-radius:9px;margin:7px 0}
#quotePoster .poster-leaf>label{display:flex;align-items:flex-start;font-size:13px;gap:3px}
#quotePoster .poster-leaf .poster-original{font-size:12px;line-height:1.5;color:#7b6b4d;overflow-wrap:anywhere;margin:6px 0}
#quotePoster .poster-leaf input[type=text],#quotePoster .poster-leaf textarea{width:100%;margin-top:5px;padding:7px;font-size:12px;box-sizing:border-box}
#quotePoster .poster-leaf textarea{height:64px;min-height:48px;resize:vertical}
#quotePoster .poster-leaf.needs-english{border-color:#e9ad69}
#quotePoster button:disabled{opacity:.5;cursor:default}
#quotePoster [hidden]{display:none!important}
#quotePoster .poster-count{font-size:13px;color:#536984}
@media(max-width:800px){.quote-controls .toolbar #search{flex:1 1 100%;width:100%;min-width:0}#quotePoster{width:98vw;max-width:98vw;height:96vh;max-height:96vh}#quotePoster .poster-body{display:block;overflow:auto}#quotePoster .poster-settings,#quotePoster .poster-stage{overflow:visible;border:0}#quotePoster .poster-head,#quotePoster .poster-actions{padding:12px}#quotePoster .poster-stage canvas{width:min(100%,320px)}}

.quote-more-actions{position:relative}
.quote-more-actions>summary{cursor:pointer;white-space:nowrap;padding:9px 12px;border:1px solid #d9e3f0;border-radius:7px;background:#fff;color:inherit}
.quote-more-actions>div{position:absolute;right:0;top:calc(100% + 5px);z-index:9;min-width:140px;padding:6px;background:#fff;border:1px solid #dce5f1;border-radius:8px;box-shadow:0 6px 20px #18395722}
.quote-more-actions>div>button{width:100%;white-space:nowrap;text-align:left}
/* Settings scroll independently while the current one-page poster stays visible. */
#quotePoster .poster-body{grid-template-columns:minmax(360px,1fr) minmax(360px,.95fr)}
#quotePoster .poster-settings>input[type=search]{width:100%;position:sticky;top:0;z-index:2;margin:6px 0 12px;background:white;box-shadow:0 3px 12px #19385c0d}
#quotePoster .poster-stage{position:relative;overscroll-behavior:contain}
#quotePoster .poster-head .monkey-mark{width:52px;height:52px}
#quotePoster .poster-health-warning{color:#9c6717;background:#fff3df;border:1px solid #f0d8b1;padding:10px;border-radius:9px;font-size:.8rem;width:100%;box-sizing:border-box;margin:0}
#quotePoster .poster-stage canvas{width:auto;max-width:100%;max-height:calc(92dvh - 340px);object-fit:contain}
#quotePoster .poster-count{font-weight:650;color:#3558ae}
@media(max-width:800px){#quotePoster .poster-body{display:flex;flex-direction:column;overflow:auto}#quotePoster .poster-settings{flex:none;max-height:48dvh;overflow:auto}#quotePoster .poster-stage{flex:none;overflow:visible}#quotePoster .poster-stage canvas{width:min(100%,320px);max-height:none}#quotePoster .poster-head .monkey-mark{width:38px;height:38px}}
