/* v172: bounded caption fields, sticker tiles and session dialog. */
html body #meme-caption-list .pg759-editor{box-sizing:border-box!important;padding:12px!important;gap:12px!important;box-shadow:none!important;border-radius:16px!important;--pg759-surface:#f5f7fc;--pg172-text:#243653;--pg172-line:#dce4f0;color:var(--pg172-text)!important}
html[data-theme=dark] body #meme-caption-list .pg759-editor{--pg759-surface:#202f49;--pg172-text:#e7effc;--pg172-line:#3a4e6a;background:#17263e!important}
html body #meme-caption-list .pg759-editor *{box-sizing:border-box;min-width:0}
html body #meme-caption-list .pg759-style-line{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
html body #meme-caption-list .pg759-field>label{margin:0!important;font-size:11px!important;line-height:1.4!important;color:inherit!important}
html body #meme-caption-list .pg759-field select{margin:0!important;height:42px!important;color:inherit!important;background:var(--pg759-surface)!important;border-color:var(--pg172-line)!important}
html body #meme-caption-list .pg759-background{width:100%!important;min-width:0!important;min-height:46px;gap:10px!important;padding:6px 9px!important;background:var(--pg759-surface)!important;border-color:var(--pg172-line)!important}
html body #meme-caption-list .pg759-bgclear{display:flex!important;flex:1 1 0!important;align-items:center!important;margin:0!important;gap:7px!important;white-space:normal!important;line-height:1.35!important;font-size:11px!important}
html body #meme-caption-list .pg759-bgclear input{width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px!important;margin:0!important;accent-color:#5267f6}
html body #meme-caption-list .pg759-background input[type=color]{width:38px!important;min-width:38px!important;max-width:38px!important;height:34px!important;flex:0 0 38px!important;margin:0!important}
html body #meme-caption-list .pg759-footer{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;background:transparent!important;position:static!important;padding:4px 0!important}
html body #meme-caption-list .pg759-footer button{margin:0!important;padding:8px 5px!important;font-size:11px!important;white-space:normal!important;line-height:1.3!important}
html body #meme-caption-list .pg759-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body #meme-caption-list .pg759-tool{margin:0!important;color:inherit!important;background:var(--pg759-surface)!important;border-color:var(--pg172-line)!important}
html body #meme-caption-list .pg759-apply{color:inherit!important;border-color:var(--pg172-line)!important;white-space:normal!important}
/* Override legacy grid auto-rows/button minima: each tile owns its complete row. */
html body .pg170-shelf{container-type:inline-size;padding:0 1px 14px!important}
html body .pg170-shelf-heading{padding:12px!important;background:linear-gradient(130deg,#4687ff13,#8662ff13);border:1px solid var(--pg170-line);border-radius:16px;margin:0 0 14px!important}
html body .pg170-shelf-heading h2{font-size:17px!important;margin:0 0 4px!important}
html body .pg170-shelf-heading p{font-size:11px!important}
html body .pg170-shelf label{margin:0 0 10px!important}
html body .pg170-shelf .pg170-quick{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:4px!important;background:var(--pg170-card)!important;border-radius:13px!important;margin-bottom:10px!important}
html body .pg170-shelf .pg170-quick button{min-width:0!important;margin:0!important;min-height:36px!important;padding:6px 3px!important;font-size:10px!important;white-space:normal!important;line-height:1.25!important}
html body .pg170-shelf .pg170-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto!important;align-items:stretch!important;gap:9px!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important}
html body .pg170-shelf .pg170-grid .pg170-sticker{box-sizing:border-box!important;display:grid!important;grid-template-rows:88px minmax(26px,auto)!important;align-content:start!important;align-items:center!important;gap:6px!important;margin:0!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;padding:9px 5px!important;position:relative!important;transform:none!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 2px 5px #18366006!important}
html body .pg170-shelf .pg170-grid .pg170-sticker img{width:100%!important;height:88px!important;max-height:88px!important;min-height:0!important;object-fit:contain!important;margin:0!important;position:static!important}
html body .pg170-shelf .pg170-grid .pg170-sticker>span{font-size:10px!important;line-height:13px!important;max-height:26px!important;align-self:start!important;color:var(--pg170-text)!important}
html body .pg170-shelf .pg170-sticker:hover{border-color:#5687fa!important;background:var(--pg170-panel)!important}
@container(max-width:245px){html body .pg170-shelf .pg170-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
#pg172-recovery{box-sizing:border-box!important;position:fixed!important;inset:0!important;margin:auto!important;width:min(440px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 36px)!important;height:fit-content!important;padding:24px!important;border:1px solid #dce5f2!important;border-radius:24px!important;background:#fff!important;color:#233853!important;box-shadow:0 24px 90px #101f4940!important;overflow:auto!important;font-family:inherit!important}
#pg172-recovery::backdrop{background:#0d1c3b80;backdrop-filter:blur(5px)}
#pg172-recovery form{margin:0;display:block!important}
#pg172-recovery header{display:flex!important;justify-content:space-between;align-items:center;margin-bottom:18px}
#pg172-recovery .pg172-recovery-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#edf1ff;color:#5267f6}
#pg172-recovery svg{width:25px;height:25px}
#pg172-recovery h2{font-size:23px!important;line-height:1.25;margin:0 0 12px!important;color:inherit!important}
#pg172-recovery p{font-size:14px!important;line-height:1.6!important;margin:0 0 12px!important;color:inherit!important;overflow-wrap:anywhere}
#pg172-recovery .pg172-recovery-date{font-size:12px!important;opacity:.65}
#pg172-recovery p:empty{display:none}
#pg172-recovery footer{display:flex!important;flex-wrap:wrap;gap:10px!important;margin-top:22px!important;padding:0!important;border:0!important;position:static!important;background:transparent!important}
#pg172-recovery button{min-height:43px!important;width:auto!important;min-width:0!important;border-radius:12px!important;border:1px solid #dce5f2!important;padding:10px 15px!important;margin:0!important;font:600 13px/1.35 inherit;color:inherit!important;background:#f5f7fc!important;cursor:pointer}
#pg172-recovery footer button{flex:1 1 130px;font-size:13px!important}
#pg172-recovery .pg172-close{width:36px!important;min-height:36px!important;height:36px!important;padding:0!important;font-size:23px!important;line-height:1!important}
#pg172-recovery .pg172-restore{background:#5267f6!important;border-color:#5267f6!important;color:#fff!important}
#pg172-recovery [hidden]{display:none!important}
#pg172-recovery button:disabled{opacity:.55;cursor:wait}
#pg172-recovery button:focus-visible{outline:3px solid #8babff;outline-offset:3px}
html[data-theme=dark] #pg172-recovery{background:#17263e!important;color:#e7effc!important;border-color:#3a4e6a!important}
html[data-theme=dark] #pg172-recovery button{background:#20334f!important;border-color:#3a4e6a!important}
html[data-theme=dark] #pg172-recovery .pg172-restore{background:#6277ff!important}
html[data-theme=dark] #pg172-recovery .pg172-recovery-icon{background:#2b3c67;color:#a9bcff}
#pg172-recovery header{position:static!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
