.cover-font-picker{margin:20px 0 26px;padding:20px;border:1px solid #dedbcf;border-radius:14px;background:#faf9f4}.fp-top,.fp-actions,.fp-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.fp-top{justify-content:space-between}.fp-top h3{margin:0;font-size:18px}.fp-top p{font-size:13px;color:#66717b;margin:4px 0}.fp-filters{display:grid;grid-template-columns:1fr 160px;gap:12px;margin:16px 0 12px}.cover-font-picker label{font-size:13px;display:grid;gap:5px}.cover-font-picker input,.cover-font-picker select{min-width:0;width:100%;padding:10px 12px;border:1px solid #d7d8d0;border-radius:8px;background:white;color:#253447;font:14px system-ui}.fp-pick-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fp-catalog{margin-top:14px}.fp-catalog summary{font-size:14px}.fp-grid{max-height:520px;overflow-y:auto;overscroll-behavior:contain;padding:2px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.fp-card{border:1px solid #dddcd2;border-radius:10px;overflow:hidden;background:#fff;min-width:0}.fp-card[data-selected=true]{border:2px solid #bb6639;background:#fff9ef}.fp-card button{display:block;width:100%;text-align:left;border:0;border-radius:0;padding:12px;color:#253447;background:transparent;min-height:126px}.fp-name{display:flex;justify-content:space-between;gap:6px;font:600 13px system-ui}.fp-badge{font-size:11px;color:#b05c32}.fp-sample{font-size:32px;line-height:1.5;letter-spacing:0;white-space:nowrap;margin-top:8px;overflow:hidden;font-synthesis:none}.fp-sample[hidden]{display:none}.fp-loading{font:12px/2 system-ui;color:#7a817f;margin-top:10px}.fp-meta{font:11px/1.5 system-ui;display:flex;justify-content:space-between;gap:8px;padding:0 12px 10px;color:#6e7774}.fp-meta a{font-size:11px}.fp-actions{margin-top:16px}.fp-confirm{background:#253c37;color:#fff;border-color:#253c37}.fp-status{font-size:13px;line-height:1.65;margin:10px 0 0;color:#5c6f67}.fp-status[data-error=true]{color:#a93224}.fp-empty{font-size:14px;padding:20px;color:#66717b}.fp-links{margin-top:12px;font-size:12px}.fp-helper{font-size:12px;line-height:1.7;color:#657068;margin:10px 0 0}.cover-font-picker :focus-visible{outline:3px solid #d9a260;outline-offset:3px}@media(max-width:760px){.cover-font-picker{padding:15px}.fp-filters,.fp-pick-row{grid-template-columns:1fr}.fp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fp-card button{padding:10px;min-height:120px}.fp-sample{font-size:27px}.fp-meta{padding:0 10px 8px;flex-wrap:wrap}.fp-actions button{flex:1}.fp-name{font-size:12px}}@media(max-width:400px){.fp-grid{grid-template-columns:1fr}.fp-sample{font-size:34px}}

.fp-design-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.fp-color-tools{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:12px}.fp-color-tools label{max-width:180px}.fp-color-tools input[type=color]{height:42px;width:76px;padding:4px;cursor:pointer}.fp-color-tools .fp-hex{font-family:ui-monospace,monospace}.fp-hex[aria-invalid=true]{border-color:#b84040}.fp-swatches{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.fp-swatches button{width:29px;height:29px;border:1px solid #979d96;border-radius:50%;padding:0;box-shadow:0 0 0 2px white inset}.fp-swatches button:hover{outline:2px solid #48584a;outline-offset:2px}.fp-eyedropper[hidden]{display:none}@media(max-width:760px){.fp-design-row{grid-template-columns:1fr}.fp-color-tools label{flex:1}.fp-color-tools button{font-size:13px}}

.fp-design-row{grid-template-columns:repeat(4,minmax(0,1fr))}.fp-role-note{margin:8px 0 0;font-size:12px;color:#596b65}@media(max-width:660px){.fp-design-row{grid-template-columns:1fr}}

/* Position editable lettering without moving its photo or changing its rotation. */
html[data-position-title="up"] :is(#cover-title, .cover-title, [data-text-role="title"], [data-glyph-role="title"]) { translate: 0 -3cqw; }
html[data-position-title="down"] :is(#cover-title, .cover-title, [data-text-role="title"], [data-glyph-role="title"]) { translate: 0 3cqw; }
html[data-position-subtitle="up"] :is(#cover-nickname, .cover-subtitle, [data-text-role="subtitle"], [data-glyph-role="subtitle"]) { translate: 0 -3cqw; }
html[data-position-subtitle="down"] :is(#cover-nickname, .cover-subtitle, [data-text-role="subtitle"], [data-glyph-role="subtitle"]) { translate: 0 3cqw; }
html[data-position-city="up"] :is([data-text-role="city"], [data-glyph-role="city"]) { translate: 0 -3cqw; }
html[data-position-city="down"] :is([data-text-role="city"], [data-glyph-role="city"]) { translate: 0 3cqw; }

[data-yinchuan-ink] { -webkit-text-fill-color:transparent; text-shadow:none !important; -webkit-text-stroke:0 !important; }
[data-yinchuan-ink]::after { content:""; position:absolute; left:0; top:50%; translate:0 -50%; width:min(100%,calc(1em * var(--brush-aspect))); aspect-ratio:var(--brush-aspect); background:currentColor; mask:var(--brush-file) var(--brush-position) / var(--brush-size) no-repeat; pointer-events:none; }
