/* Caption picker only: compact, quiet cards; no shared app navigation changes. */
@font-face{font-family:"DejaVu Sans";src:url("/static/caption-fonts/DejaVuSans.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"DejaVu Sans";src:url("/static/caption-fonts/DejaVuSans-Bold.ttf") format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"DejaVu Sans Condensed";src:url("/static/caption-fonts/DejaVuSansCondensed-Bold.ttf") format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"DejaVu Sans Mono";src:url("/static/caption-fonts/DejaVuSansMono.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"DejaVu Sans Mono";src:url("/static/caption-fonts/DejaVuSansMono-Bold.ttf") format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"DejaVu Serif";src:url("/static/caption-fonts/DejaVuSerif.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"DejaVu Serif";src:url("/static/caption-fonts/DejaVuSerif-Bold.ttf") format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"DejaVu Serif";src:url("/static/caption-fonts/DejaVuSerif-Italic.ttf") format("truetype");font-weight:400;font-style:italic;font-display:swap}
.gcpControls{display:grid;gap:13px;margin-bottom:18px;min-width:0}
.gcpHeading{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.gcpHeading>b{font-size:11px;font-weight:600;color:var(--text);background:#8b5cf617;padding:4px 8px;border-radius:20px}
.gcpOff{margin-left:auto;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--muted);font-size:10px;cursor:pointer}
.gcpOff.on{color:var(--text);border-color:#a78bfa}
.gcpFeatured,.gcpLibrary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.gcpTile{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;width:100%;padding:7px 7px 10px;background:transparent;color:var(--text);border:1px solid transparent;border-radius:12px;cursor:pointer;text-align:center;box-shadow:none;overflow:hidden}
.gcpTile:hover{background:#8b5cf608;border-color:#a78bfa60}
.gcpTile.is-selected{border-color:#9b87f5;background:#8b5cf60d;box-shadow:0 0 0 1px #a78bfa30}
.gcpTile:focus-visible,.gcpMore:focus-visible,.gcpClose:focus-visible,.gcpFilters button:focus-visible{outline:2px solid #38bdf8;outline-offset:2px}
.gcpDemo{position:relative;display:block;height:78px;width:100%;overflow:hidden;border-radius:9px;background:linear-gradient(135deg,#ffffff0c,#ffffff06);isolation:isolate;pointer-events:none}
.gcpDemo,.gcpLabel{flex:none}.gcpDemo span{z-index:1}.gcpDemo i{z-index:0}
.gcpLabel{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;line-height:1.4;font-weight:500;color:var(--muted)}
.gcpTile.is-selected .gcpLabel{color:var(--text)}
.gcpCheck{position:absolute;right:11px;top:10px;border-radius:50%;background:#8b5cf6;color:#fff;width:16px;height:16px;display:grid;place-items:center;font-size:10px;line-height:1}
.gcpMore{display:grid;align-content:center;justify-items:center;gap:8px;padding:12px;min-height:110px;border:1px dashed var(--line);border-radius:12px;background:#8b5cf606;color:var(--muted);font-size:11px;cursor:pointer}
.gcpMore>span{font-size:23px;line-height:1;color:#a78bfa}.gcpMore:hover{border-color:#a78bfa;color:var(--text)}
.gcpHint{margin:0;font-size:10px;line-height:1.5;color:var(--muted)}
.gcpDialog{box-sizing:border-box;width:min(720px,calc(100vw - 28px));max-width:720px;max-height:min(84vh,850px);margin:auto;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--panel,#181922);color:var(--text,#f5f5fa);box-shadow:0 24px 100px #0008;overflow:hidden}
.gcpDialog[open]{display:flex;flex-direction:column}.gcpDialog::backdrop{background:#050612bb;backdrop-filter:blur(3px)}
.gcpDialog>header{display:flex;flex:none;align-items:flex-start;justify-content:space-between;gap:12px;padding:23px 24px 15px}
.gcpDialog h2{margin:0;font-size:20px;line-height:1.3;font-weight:700;letter-spacing:-.5px}
.gcpDialog header p{margin:6px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
.gcpClose{display:grid;place-items:center;width:28px;height:28px;flex:none;border:0;border-radius:8px;background:#ffffff08;color:var(--muted);font-size:23px;line-height:1;cursor:pointer}
.gcpFilters{display:flex;flex:none;gap:6px;padding:0 24px 15px;overflow-x:auto}
.gcpFilters button{padding:6px 10px;border-radius:20px;border:1px solid transparent;background:transparent;color:var(--muted);font-size:11px;white-space:nowrap;cursor:pointer}
.gcpFilters button[aria-pressed=true]{border-color:#a78bfa60;background:#8b5cf61a;color:var(--text)}
.gcpLibrary{padding:0 17px 18px;min-height:0;grid-auto-rows:max-content;align-content:start;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8b5cf660 transparent}
.gcpLibrary .gcpDemo{height:92px}.gcpLibrary .gcpTile[hidden]{display:none}
.gcpDialog>footer{flex:none;border-top:1px solid var(--line);padding:12px 24px;font-size:10px;line-height:1.5;color:var(--muted)}
.theme-light .gcpDemo{background:linear-gradient(135deg,#e4eaf2,#dce4ef)}.theme-light .gcpDialog{background:#fff}
.theme-light .gcpMore{background:#f7f8fc}.theme-light .gcpClose{background:#f3f4f8}
.cl3DemoCaption:has(>span[style*="position: absolute"]){font-size:inherit}
@media(max-width:700px){.gcpFeatured,.gcpLibrary{grid-template-columns:repeat(3,minmax(0,1fr))}.gcpDemo{height:72px}.gcpLibrary .gcpDemo{height:82px}}
@media(max-width:420px){.gcpDialog{width:calc(100vw - 18px);max-height:88vh;border-radius:15px}.gcpDialog>header{padding:18px 17px 13px}.gcpFilters{padding:0 13px 12px}.gcpLibrary{padding:0 9px 12px;gap:5px}.gcpTile{padding:5px 4px 8px;gap:6px;border-radius:10px}.gcpLibrary .gcpDemo{height:73px}.gcpLabel{font-size:9px}.gcpDialog>footer{padding:11px 17px}.gcpMore{font-size:10px;min-height:102px}}
