
[data-customer-preview="true"] [data-studio-only],html:not([data-customer-preview="true"]) [data-client-only]{display:none!important}
.wrap.studio-view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;width:calc(100% - 56px);max-width:1184px;margin:22px auto 6px;padding:16px 20px;border:1px solid #c9ded7;border-radius:17px;background:#f0f7f2}
.studio-view-toolbar[hidden]{display:none}
.studio-view-toolbar strong{display:block;font-size:.92rem;font-weight:600;color:#345b50}
.studio-view-toolbar p{font-size:.75rem;color:#65776f;margin:3px 0 0;line-height:1.4}
.studio-mode-switch{display:flex;flex-shrink:0;gap:4px;padding:4px;background:#fffdf9;border:1px solid #d4e3dc;border-radius:12px}
.studio-mode-switch button{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;min-height:42px;border-radius:9px;font-size:.83rem;color:#486458;white-space:nowrap}
.studio-mode-switch button[aria-pressed="true"]{background:#355e51;color:#fff}
.studio-mode-switch svg{width:18px;height:18px;flex-shrink:0}
@media(max-width:700px){.wrap.studio-view-toolbar{width:calc(100% - 32px);flex-direction:column;align-items:stretch;padding:14px 16px;gap:12px}.studio-mode-switch{align-self:stretch}.studio-mode-switch button{flex:1;padding:9px 11px;font-size:.79rem}}


.cards-catalog-note{margin-bottom:26px;color:var(--muted);max-width:60ch}
.cards-catalog .thumb{position:relative}


.cards-catalog .meta{font-size:.85rem}
.card-editor-page{padding:34px 0 64px}
.card-editor-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:18px 0 30px}
.card-editor-heading h1{font-size:clamp(2rem,4vw,3rem)}
.card-editor-heading p{margin-top:10px;color:var(--muted);font-size:.98rem}
.card-editor-heading .hand{font-size:1.5rem;transform:rotate(-4deg);white-space:nowrap;padding-bottom:4px}
.card-editor-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,.85fr);gap:40px;align-items:start}
.card-preview-panel{position:sticky;top:138px;min-width:0}
.card-view-switch{display:flex;gap:5px;justify-content:center;margin-bottom:16px}
.card-view-switch button{min-height:42px;border-radius:999px;padding:8px 18px;font-size:.88rem;transition:background .2s ease,color .2s ease}
.card-view-switch button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.card-preview-mat{display:grid;place-items:center;min-height:390px;padding:30px;background-color:#f4e8df;background-image:radial-gradient(#d9c5b4 1px,transparent 1px);background-size:16px 16px;border:1px solid var(--line);border-radius:22px}
.card-preview-mat canvas{display:block;max-width:100%;height:auto;box-shadow:0 12px 28px -10px #76513a55;background:var(--paper)}
.card-preview-mat canvas[hidden]{display:none}
#card-preview{width:420px;aspect-ratio:1}
#card-sheet{width:340px;aspect-ratio:215.9/279.4}
.card-preview-caption{text-align:center;color:var(--muted);font-size:.82rem;margin-top:13px}
.card-controls{padding:25px 27px;background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.card-controls h2{font-size:1.4rem;margin-bottom:7px}
.card-controls .card-description{color:var(--muted);font-size:.85rem;margin-bottom:24px}
.card-field{border:0;padding:0;margin:0 0 22px;min-width:0}
.card-field label,.card-field legend{display:block;font-size:.92rem;font-weight:600;margin-bottom:9px;padding:0}
.card-name-label{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.card-name-label span{color:var(--muted);font-size:.72rem}
#card-name,#card-name-secondary,[data-text-input]{width:100%;min-height:48px;border:1.5px solid #dfcabb;background:#fff;border-radius:12px;padding:11px 13px;font:inherit;font-size:1rem;color:var(--ink)}
#card-name:focus,#card-name-secondary:focus,[data-text-input]:focus{border-color:var(--coral-deep)}
.card-field small{display:block;font-size:.76rem;color:var(--muted);line-height:1.5;margin-top:7px}
.card-font-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.card-font-grid button{border:1px solid var(--line);border-radius:12px;min-height:86px;padding:9px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.73rem;line-height:1.3;transition:background .2s ease,border-color .2s ease}
.card-font-grid button[aria-pressed="true"]{border:2px solid var(--coral-deep);background:#fff0e9}
.card-font-sample{font-size:1.8rem;font-weight:400;line-height:1.2}
.card-font-grid [data-font="witchat"] .card-font-sample{font-size:2.8rem;line-height:.77}
/* The samples show the customer's text: smaller for longer names, always on one line inside the button. */
.card-font-sample{max-width:100%;overflow:hidden;white-space:nowrap}
.card-font-grid[data-sample="medium"] .card-font-sample{font-size:1.45rem}
.card-font-grid[data-sample="long"] .card-font-sample{font-size:1.15rem}
.card-font-grid[data-sample="medium"] [data-font="witchat"] .card-font-sample{font-size:2.25rem}
.card-font-grid[data-sample="long"] [data-font="witchat"] .card-font-sample{font-size:1.8rem}
.card-font-grid button[hidden],.card-font-toggle[hidden]{display:none}
.card-font-toggle{width:100%;min-height:44px;margin-top:10px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;color:#965141;font-size:.83rem;font-weight:600;scroll-margin-block:140px 16px}
.card-font-toggle:focus-visible{outline:2px solid var(--coral-deep);outline-offset:3px}
.card-font-grid button:disabled{opacity:.5;cursor:not-allowed}
.card-font-support{font-size:.65rem;color:var(--muted)}
#card-font-note{margin-top:10px;min-height:1.5em}
.card-color-list{display:flex;gap:10px;flex-wrap:wrap}
.card-color-list button{width:42px;height:42px;border:1px solid #d9c9bd;border-radius:50%;background:var(--swatch);display:grid;place-items:center}
.card-color-list button[aria-pressed="true"]{outline:2px solid var(--coral-deep);outline-offset:3px}
.card-color-list span{color:#fff;opacity:0;font-size:1rem;text-shadow:0 1px 3px #333}
.card-color-list button[aria-pressed="true"] span{opacity:1}
.card-design-options{display:flex;gap:10px}
.card-design-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.card-design-categories button{min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--paper);font:inherit;font-weight:600}
.card-design-categories button[aria-pressed="true"]{background:var(--coral-deep);border-color:var(--coral-deep);color:white}
.card-design-options a{display:block;width:65px;border:2px solid transparent;border-radius:10px;padding:3px;transition:border-color .2s ease}
.card-design-options a[aria-current]{border-color:var(--coral-deep);background:#fff0e9}
.card-design-options img{width:100%;height:auto;border-radius:5px}
.card-download-area{padding-top:20px;border-top:1px dashed #e0c6b2}
#card-download{width:100%;justify-content:center;min-height:50px}
#card-download:disabled{opacity:.5;cursor:default;transform:none;box-shadow:none}
#card-status{font-size:.8rem;line-height:1.5;color:var(--muted);margin-top:12px;min-height:36px}
#card-save-pdf,#card-retry{font-size:.85rem;color:#965141;text-underline-offset:3px;margin-top:7px}
#card-save-pdf[hidden],#card-retry[hidden]{display:none}
.card-print-tip{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;margin-top:18px;background:#fff4d9;border-radius:12px;color:#78603f;font-size:.78rem;line-height:1.55}
.card-print-tip svg{width:20px;min-width:20px;height:20px;margin-top:2px}
#card-save-note{font-size:.72rem;line-height:1.5;color:var(--muted);margin-top:14px;text-align:center}
.card-editor-page[aria-busy="true"] .card-preview-mat{opacity:.75}
@media(hover:hover) and (pointer:fine){
 .card-font-grid button:not(:disabled):hover,.card-design-options a:hover{border-color:var(--coral)}
 .card-view-switch button:not([aria-pressed="true"]):hover{background:var(--soft)}
}
@media(max-width:980px){.card-editor-layout{gap:24px;grid-template-columns:minmax(0,1fr) minmax(295px,1fr)}.card-preview-mat{padding:20px;min-height:300px}.card-controls{padding:22px}.card-editor-heading .hand{display:none}}
@media(max-width:700px){
 .card-editor-page{padding-top:24px}.card-editor-layout{grid-template-columns:minmax(0,1fr);gap:25px}.card-preview-panel{position:static}.card-preview-mat{padding:22px;min-height:0}.card-controls{padding:22px}.card-editor-heading{margin-bottom:24px}.card-editor-heading h1{font-size:2.1rem}
}
@media(max-width:360px){.card-controls{padding:19px 16px}.card-font-grid{gap:5px}.card-font-grid button{font-size:.69rem}.card-preview-mat{padding:15px}}

.card-field .card-shadow-option{display:flex;align-items:center;gap:10px;min-height:44px;margin:12px 0 0;font-size:.87rem;font-weight:500;cursor:pointer}
#card-shadow{width:19px;height:19px;margin:0;accent-color:var(--coral-deep);cursor:pointer}

.card-size-field output{font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
#card-size,#card-spacing{display:block;width:100%;height:32px;margin:0;accent-color:var(--coral-deep);cursor:pointer}

.card-stage{position:relative;width:420px;max-width:100%;line-height:0}
.card-stage[hidden]{display:none}
.card-stage #card-preview{width:100%}
.card-text-handles{position:absolute;inset:0;pointer-events:none}
.card-text-handles button{position:absolute;min-width:36px;min-height:32px;transform:translate(-50%,-50%);padding:0;border:1px dashed transparent;border-radius:5px;background:transparent;pointer-events:auto;touch-action:none;cursor:grab}
.card-text-handles button[hidden]{display:none}
/* Selected text: a clear coral box with a white halo (visible on light and dark designs), corner dots and a name tag. */
.card-text-handles button[data-text-handle][aria-pressed="true"]{border:2.5px solid #d16f61;border-radius:6px;background:#d16f6114;box-shadow:0 0 0 2px #fffdf9,0 0 0 4px #d16f6159,0 4px 14px #49372c33;animation:card-select-pop .22s ease-out}
.card-text-handles button[data-text-handle][aria-pressed="true"]::before{content:attr(data-label);position:absolute;left:-2.5px;top:calc(100% + 7px);padding:3px 9px;border-radius:999px;background:#965141;color:#fff;font-family:inherit;font-size:.72rem;font-weight:600;line-height:1.3;white-space:nowrap;box-shadow:0 0 0 2px #fffdf9,0 2px 6px #49372c40;pointer-events:none}
/* The name tag sits below the box; when the turn handle drops below the text, the tag moves above. */
.card-text-handles:has(.card-rotate-handle[data-flip="1"]) button[data-text-handle][aria-pressed="true"]::before{top:auto;bottom:calc(100% + 7px)}
.card-text-handles button[data-text-handle][aria-pressed="true"]::after{content:"";position:absolute;inset:-6px;pointer-events:none;background:
 radial-gradient(circle,#fffdf9 0 3px,#d16f61 3.5px 5px,transparent 5.5px) 0 0/11px 11px no-repeat,
 radial-gradient(circle,#fffdf9 0 3px,#d16f61 3.5px 5px,transparent 5.5px) 100% 0/11px 11px no-repeat,
 radial-gradient(circle,#fffdf9 0 3px,#d16f61 3.5px 5px,transparent 5.5px) 0 100%/11px 11px no-repeat,
 radial-gradient(circle,#fffdf9 0 3px,#d16f61 3.5px 5px,transparent 5.5px) 100% 100%/11px 11px no-repeat}
@keyframes card-select-pop{from{scale:.96;opacity:.4}}
@media(prefers-reduced-motion:reduce){.card-text-handles button[data-text-handle][aria-pressed="true"]{animation:none}}
.card-text-handles button:focus-visible{outline:2px solid #d16f61;outline-offset:3px}
.card-text-handles button:active{cursor:grabbing}
.card-move-help{font-size:.72rem;line-height:1.5;color:var(--muted);text-align:center;max-width:50ch;margin:8px auto 0}
.card-text-field[data-active="true"] input{border-color:var(--coral-deep)!important;background:#fff7f2!important;box-shadow:0 0 0 2px #d16f6126}
.card-text-field[data-active="true"] label{color:#965141}
.card-name-label .card-edit-badge{display:inline-block;visibility:hidden;margin-left:5px;padding:3px 7px;border-radius:999px;background:#965141;color:#fff;font-size:.65rem;font-weight:600;vertical-align:middle}
.card-text-field[data-active="true"] .card-edit-badge{visibility:visible}
/* Kept only for screen readers: the selection box on the card shows the active text. */
.card-style-target{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.card-center-text{font-size:.82rem;color:#965141;text-decoration:underline;text-underline-offset:3px;min-height:44px;margin:-8px 0 15px}
@media(hover:hover) and (pointer:fine){.card-text-handles button:hover{border-color:#d16f61}}
/* The private design library follows Lumimila's paper, coral and handwritten accents. */
.library-toolbar{display:flex;align-items:start;justify-content:space-between;gap:22px}.library-toolbar .cards-catalog-note{margin:0;max-width:60ch}
.library-text-button{color:#965141;text-decoration:underline;text-underline-offset:4px;min-height:42px;font-size:.85rem;flex-shrink:0}
.library-storage-note{font-size:.79rem;color:var(--muted);max-width:82ch;margin:13px 0 24px;line-height:1.6}
#library-status{color:#965141;margin:0 0 20px;font-size:.88rem}#library-status:empty{display:none}
.cards-catalog .product-card h2{overflow-wrap:anywhere}.card-design-options{flex-wrap:wrap}.card-design-options a{flex-shrink:0}
#design-upload-dialog{width:min(510px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid var(--line);border-radius:26px;color:var(--ink);background:var(--paper);box-shadow:0 28px 90px #49372c3b;overflow:auto}
#design-upload-dialog::backdrop{background:#44372e77;backdrop-filter:blur(4px)}
.upload-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.upload-heading .eyebrow{font-size:.7rem}
#design-upload-close{width:40px;height:40px;border-radius:50%;font-size:1.7rem;background:var(--soft);line-height:1}
#design-upload-title{font-size:2rem;margin:9px 0 12px}.upload-intro{font-size:.92rem;color:var(--muted);line-height:1.55}
.upload-zone{display:grid;place-items:center;position:relative;min-height:205px;margin:21px 0;background:#fff3e8;border:1.5px dashed #dda994;border-radius:18px;cursor:pointer;overflow:hidden}
.upload-zone:focus-within{outline:3px solid var(--coral-deep);outline-offset:3px}.upload-zone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
#design-file-prompt{display:flex;align-items:center;gap:6px;flex-direction:column;padding:18px;text-align:center;font-size:.77rem;color:var(--muted)}
#design-file-prompt[hidden]{display:none}#design-file-prompt strong{color:var(--ink);font-size:1.05rem}.upload-plus{font-size:2.5rem;line-height:1;color:#c47862}
#design-file-preview{width:205px;max-height:250px;object-fit:contain;padding:12px}#design-file-preview[hidden]{display:none}
.upload-title-label{display:block;font-size:.88rem;font-weight:600;margin-bottom:8px}#design-title,#design-description,#design-rename-description{width:100%;min-height:48px;padding:11px 13px;border:1.5px solid #dfcabb;border-radius:12px;background:white;color:var(--ink);font:inherit}
#design-upload-status{font-size:.78rem;line-height:1.5;color:var(--muted);margin:12px 0 18px;min-height:2em}#design-upload-submit{width:100%;justify-content:center;font-size:.88rem}#design-upload-submit:disabled{opacity:.45;cursor:default}
.template-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-top:1px dashed #e0c6b2;padding-top:20px;margin-bottom:20px}.template-actions[hidden]{display:none}.template-actions .btn{font-size:.85rem;padding:12px 18px}.template-actions p{font-size:.74rem;line-height:1.5;color:var(--muted);width:100%}
@media(max-width:700px){.library-toolbar{flex-direction:column;gap:6px}#design-upload-dialog{padding:22px}#design-upload-title{font-size:1.7rem}}
#design-rename-open{font-size:.76rem;min-height:32px;display:block;margin:-3px 0 9px}
.rename-dialog{margin:auto;padding:28px;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);width:min(440px,calc(100vw - 32px));box-shadow:0 28px 90px #49372c3b;max-height:calc(100dvh - 32px);overflow:auto}.rename-dialog::backdrop{background:#44372e77;backdrop-filter:blur(4px)}
#design-rename-heading{font-size:1.7rem;margin:12px 0 20px}#design-rename-close{font-size:1.7rem;width:40px;height:40px;border-radius:50%;background:var(--soft)}#design-rename-title{width:100%;min-height:48px;padding:11px 13px;border:1.5px solid #dfcabb;border-radius:12px;background:white;font:inherit;color:var(--ink)}#design-rename-status{font-size:.8rem;color:var(--muted);line-height:1.5;margin:12px 0 22px}
.watermark-note{font-size:.72rem;line-height:1.5;color:var(--muted);text-align:center;max-width:52ch;margin:7px auto 0}
.watermark-library-note{font-size:.78rem;color:#965141;margin-top:15px}
.cards-catalog img[data-watermark="loading"],.card-design-options img[data-watermark="loading"]{visibility:hidden}
.cards-catalog img[data-watermark="error"],.card-design-options img[data-watermark="error"]{font-size:.8rem;padding:12px}

/* Purchase disclosure preview inside the owner's private studio. */
.purchase-preview-entry .eyebrow{font-size:.66rem;letter-spacing:.1em;margin-bottom:10px;display:block}
#card-purchase{width:100%;justify-content:center;gap:12px;min-height:52px;font-size:.95rem}
#card-purchase:disabled{opacity:.5;cursor:default;transform:none;box-shadow:none}
.purchase-preview-entry p{margin:9px 0 22px;text-align:center;color:var(--muted);font-size:.79rem}
.studio-download-label{font-size:.72rem;color:var(--muted);padding-top:17px;border-top:1px dashed var(--line);margin:0 0 9px}
.card-download-area #card-download{background:transparent;border:1px solid #cfae9d;color:#945347;box-shadow:none;font-size:.88rem}
#purchase-notice{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;margin:auto;padding:25px 30px 22px;border:1px solid var(--line);border-radius:28px;background:var(--paper);color:var(--ink);box-shadow:0 30px 100px #44312955;overscroll-behavior:contain}
#purchase-notice::backdrop{background:#392d286b;backdrop-filter:blur(5px)}
.purchase-topline{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}
.purchase-topline .eyebrow{font-size:.62rem;letter-spacing:.13em}
#purchase-close{width:38px;height:38px;flex-shrink:0;border-radius:50%;background:var(--panel);font-size:1.6rem;line-height:1}
#purchase-heading{font-size:clamp(1.65rem,3vw,2rem)}
#purchase-heading:focus{outline:none}
#purchase-intro{font-size:.89rem;color:var(--muted);margin:11px 0 19px}
.purchase-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px;background:var(--panel);border:1px solid var(--line);border-radius:18px}
#purchase-design-preview{grid-column:1 / -1;justify-self:center;width:min(100%,300px);height:auto;aspect-ratio:1;border-radius:10px;display:block}
.purchase-format{font-size:.58rem;letter-spacing:.075em;color:#8c5848;font-weight:700}
#purchase-design-name{font-size:1.14rem;margin-top:5px;overflow-wrap:anywhere}
#purchase-design-texts{font-size:.77rem;color:var(--muted);line-height:1.4;margin:6px 0 0;overflow-wrap:anywhere}
.purchase-price{text-align:right;white-space:nowrap;display:flex;flex-direction:column;align-self:center}
.purchase-price strong{font-family:var(--f-display);font-size:1.6rem;line-height:1.15;font-weight:500}
.purchase-price span{font-size:.62rem;color:var(--muted);margin-top:4px}
.purchase-details{display:grid;gap:14px;margin:18px 0}
.purchase-details>div{display:flex;gap:13px;align-items:flex-start}
.purchase-detail-icon{display:grid;place-items:center;flex-shrink:0;width:31px;height:31px;border-radius:50%;background:#f2ece3;color:#8e6553;font-size:.75rem;font-weight:600}
.purchase-details p{font-size:.8rem;line-height:1.5;color:var(--muted);margin:0}
.purchase-details strong{display:block;font-size:.87rem;font-weight:600;color:var(--ink);margin-bottom:2px}
.purchase-digital-note{padding:13px 15px;background:#fff1d5;border-left:3px solid #edba55;border-radius:3px 11px 11px 3px;font-size:.81rem;line-height:1.5;color:#705731;margin:0}
.purchase-digital-note strong{font-weight:700}
.purchase-review-note{font-size:.76rem;color:var(--muted);line-height:1.5;margin:14px 0}
.purchase-ack{display:flex;align-items:flex-start;gap:10px;padding:13px 0;border-top:1px solid var(--line);cursor:pointer;font-size:.79rem;line-height:1.5}
#purchase-digital-ack{width:19px;height:19px;flex-shrink:0;margin:1px 0 0;accent-color:var(--coral-deep);cursor:pointer}
.purchase-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:9px}
#purchase-back{font-size:.8rem;min-height:44px;text-decoration:underline;text-underline-offset:4px;color:#965141}
#purchase-continue{font-size:.85rem;gap:10px;padding:13px 21px;justify-content:center}
#purchase-continue:disabled{opacity:.52;cursor:not-allowed;transform:none;box-shadow:none}
#purchase-payment-status{font-size:.69rem;line-height:1.45;color:var(--muted);margin:13px 0 0;text-align:center}
.purchase-paypal-panel{margin:12px 0 15px;border:1px solid var(--line);border-radius:18px;padding:17px;background:#fff}
.purchase-paypal-panel[hidden]{display:none}
.purchase-paypal-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.84rem}
.purchase-paypal-heading span{border-radius:20px;padding:5px 9px;background:#fff1d5;color:#705731;font-size:.65rem;white-space:nowrap}
.purchase-paypal-note{font-size:.74rem;color:var(--muted);line-height:1.5;margin:10px 0 15px}
#paypal-load-status{font-size:.77rem;color:var(--muted);margin:12px 0;line-height:1.5}
.paypal-preview-frame{width:100%;min-width:0;overflow:hidden;pointer-events:none;user-select:none}
.paypal-preview-frame>div{min-width:0;width:100%}
@media(max-width:520px){#purchase-notice{padding:20px;border-radius:22px}.purchase-topline .eyebrow{font-size:.56rem}.purchase-summary{grid-template-columns:minmax(0,1fr);padding:12px;gap:14px}.purchase-price{grid-column:1;text-align:left;flex-direction:row;align-items:baseline;gap:7px}.purchase-price strong{font-size:1.35rem}.purchase-actions{flex-direction:column-reverse;gap:3px}#purchase-continue,#purchase-back{width:100%}.purchase-details{margin:17px 0;gap:12px}}

#purchase-notice [hidden]{display:none!important}
#purchase-paid-download{width:100%;justify-content:center;margin-top:16px}
#purchase-recover{margin-top:14px}

.my-fonts{margin:0 0 24px;padding:15px;border:1px dashed #d7b9a8;border-radius:15px;background:#fff7f0}
.my-fonts summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-size:.9rem;font-weight:600;list-style:none}
.my-fonts summary::-webkit-details-marker{display:none}
.my-fonts summary::after{content:'＋';color:var(--coral-deep)}
.my-fonts[open] summary::after{content:'−'}
#my-font-count{margin-left:auto;font-size:.73rem;font-weight:500;color:var(--muted)}
.my-fonts>p{font-size:.77rem;line-height:1.5;color:var(--muted);margin:12px 0}
.my-font-row{display:grid;grid-template-columns:35px minmax(0,1fr);gap:7px 10px;border-bottom:1px solid var(--line);padding:12px 0;align-items:center}
.my-font-sample{font-size:1.6rem;text-align:center;overflow:hidden}
.my-font-row input{min-width:0;width:100%;font:inherit;font-size:.8rem;border:1px solid var(--line);border-radius:8px;padding:8px;background:#fff;color:var(--ink)}
.my-font-actions{grid-column:2;display:flex;justify-content:space-between;gap:10px}
.my-font-actions button{font-size:.7rem;text-decoration:underline;text-underline-offset:3px;color:var(--coral-deep);min-height:30px}
.my-fonts button:disabled{opacity:.45;cursor:not-allowed}
#my-font-upload{width:100%;border:1px solid #d9aea0;border-radius:10px;padding:11px;margin-top:15px;color:var(--coral-deep);font:inherit;font-size:.82rem;font-weight:600;background:#fff}
.my-fonts small{display:block;font-size:.68rem;line-height:1.5;color:var(--muted)}
.my-fonts input[hidden]{display:none!important}
#design-delete-open{font-size:.76rem;min-height:32px;display:block;margin:-3px 0 9px}#design-delete-open[hidden]{display:none}
#card-editor .product-back{display:inline-flex;align-items:center;min-height:42px;padding:8px 18px;margin-bottom:14px;border:1px solid var(--coral);border-radius:999px;background:var(--paper);color:var(--coral-deep);font-weight:600;font-size:.95rem;text-decoration:none}#card-editor .product-back:hover{background:var(--soft);text-decoration:none}

.library-cloud-panel{padding:18px 22px;border:1px solid #b8d5c8;background:#f2f8f4;border-radius:18px;margin:16px 0 22px;color:#355f4b}.library-cloud-panel p{margin:0 0 9px}.library-cloud-actions{display:flex;flex-wrap:wrap;gap:8px 24px}.library-cloud-panel details{margin-top:12px}.library-cloud-panel summary{cursor:pointer}.library-cloud-panel details p{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:10px}.my-font-actions{flex-wrap:wrap}
/* Save state of the owner's designs: always visible, never only a gray sentence. */
#template-status[data-tone]{font-size:.82rem;font-weight:600}
#template-status[data-tone="dirty"]{color:#9a5a00}
#template-status[data-tone="saved"],#template-status[data-tone="clean"]{color:#2e7650}
#template-status[data-tone="error"]{color:#b3261e}
#template-status[data-tone="saving"]{color:var(--muted)}
#template-save[data-tone="saved"],#template-save[data-tone="clean"]{opacity:1;background:#e3f2e8;color:#2e7650;box-shadow:none;transform:none}
.dialog-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:18px}
/* Replace the illustration of a saved design. */
#design-replace-open,#design-undo-image{font-size:.76rem;min-height:32px;display:block;margin:-3px 0 9px}
#design-replace-open[hidden],#design-undo-image[hidden]{display:none}
.design-image-status{font-size:.78rem;font-weight:600;line-height:1.5;margin:-3px 0 9px;color:#2e7650}
.design-image-status:empty{display:none}
.design-image-status[data-tone="error"],#design-replace-status[data-tone="error"]{color:#b3261e;font-weight:600}
.replace-dialog{width:min(560px,calc(100vw - 32px))}
.replace-help{font-size:.82rem;line-height:1.5;color:var(--muted)}
.replace-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
.replace-compare figure{margin:0;display:grid;gap:6px}
.replace-compare figcaption{font-size:.75rem;font-weight:600;color:var(--muted);text-align:center}
.replace-compare img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:14px;border:1px solid var(--line);background:#fff;object-fit:cover}
.replace-zone{min-height:0;aspect-ratio:1;margin:0}
.replace-zone img{position:absolute;inset:0;height:100%;border:0;border-radius:0}
.replace-zone img[hidden],#design-replace-prompt[hidden]{display:none}
#design-replace-status{font-size:.8rem;line-height:1.5}
/* ---------- Celular (10 oct 2026) ---------- */
/* The card preview never gets wider than its container. It used to stay at 420 px on a 375 px phone,
   which cut the card, let the page slide sideways and pushed dialogs off-center. */
.card-preview-mat{grid-template-columns:minmax(0,1fr)}
@media(max-width:700px){
 /* Compact header: smaller logo, menu right below it. */
 header.top .wrap{gap:2px;padding-top:6px;padding-bottom:2px}
 header.top .brand img{width:clamp(128px,36vw,150px)}
 header.top nav.main{gap:20px}
 header.top nav.main a{min-height:36px;font-size:.88rem}
 html #inicio,html [data-page]{scroll-margin-top:100px}
 /* Catalog: the view switch on one line and the long help texts left for the computer view. */
 .wrap.studio-view-toolbar{margin:10px auto 0;padding:5px;gap:0;border-radius:14px}
 .studio-view-toolbar>div:first-child{display:none}
 .studio-mode-switch button{min-height:38px}
 .catalog-heading{margin-bottom:12px;gap:12px}
 .catalog-heading h1{font-size:2rem}
 .catalog-heading p{margin-top:6px;font-size:.92rem}
 .library-toolbar .cards-catalog-note,.watermark-library-note,.library-storage-note{display:none}
 .library-cloud-panel{padding:12px 14px;margin:8px 0 16px}
 .library-cloud-panel p{margin-bottom:4px}
 .library-cloud-actions{gap:2px 16px}
 .library-cloud-actions button{min-height:34px;font-size:.8rem}
 /* Editor: the card stays visible at the top while the controls scroll below it. */
 body:has(#card-editor:not([hidden])) header.top{position:relative}
 .card-editor-page{padding-top:6px}
 .card-editor-page .product-back{min-height:34px;font-size:.84rem}
 .card-editor-heading{margin:2px 0 10px}
 .card-editor-heading p{display:none}
 .card-editor-heading h1{font-size:1.55rem}
 .card-preview-panel{position:sticky;top:0;z-index:6;margin:0 -16px;padding:8px 16px 10px;background:var(--bg);box-shadow:0 12px 14px -14px #49372c66}
 .card-view-switch{margin-bottom:6px}
 .card-view-switch button{min-height:34px;padding:4px 14px;font-size:.8rem}
 .card-preview-mat{padding:8px;border-radius:16px}
 .card-stage{width:min(100%,62vw,36vh)}
 #card-sheet{width:auto;height:min(62vw,36vh);max-width:100%}
 .card-preview-caption,.card-preview-panel .watermark-note,.card-move-help{display:none}
 /* While typing (keyboard open) the card gets smaller so the field stays in view. */
 .card-editor-layout:has(.card-controls input[type="text"]:focus) .card-stage{width:min(100%,40vw,22vh)}
 .card-editor-layout:has(.card-controls input[type="text"]:focus) #card-sheet{height:min(40vw,22vh)}
 .card-controls input[type="text"]{scroll-margin-top:230px}
}
/* Text style (10 oct 2026): bold, rotation and shadow settings, inside the existing text panel. */
.card-bold-row{display:flex;align-items:center;gap:10px;margin-top:12px}
.card-bold-toggle{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:700 1.2rem/1 var(--f-body)}
.card-bold-toggle[aria-pressed="true"]{border:2px solid var(--coral-deep);background:#fff0e9;color:#8e5147}
.card-field .card-bold-row small{margin:0}
#card-rotation,#card-shadow-strength,#card-outline-width{display:block;width:100%;height:32px;margin:0;accent-color:var(--coral-deep);cursor:pointer}
.card-rotation-actions{display:flex;align-items:center;gap:10px}
.card-mini-button{font-size:.76rem;color:#965141;text-decoration:underline;text-underline-offset:3px;min-height:32px;padding:0 2px}
.card-mini-button:disabled{color:var(--muted);text-decoration:none}
.card-shadow-settings{margin-top:8px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fffaf5}
.card-shadow-settings[hidden]{display:none}
.card-field .card-shadow-settings label{margin-bottom:2px;font-size:.84rem}
.card-shadow-settings output{font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.card-shadow-colors{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.card-shadow-colors button,.card-field .card-shadow-custom{position:relative;width:34px;height:34px;margin:0;padding:0;border:1px solid #d9c9bd;border-radius:50%;background:var(--swatch);cursor:pointer}
.card-field .card-shadow-custom{background:conic-gradient(#f88c80,#ffc765,#8fd3c8,#9c7bd3,#f88c80)}
.card-shadow-colors button[aria-pressed="true"],.card-field .card-shadow-custom[data-active="true"]{outline:2px solid var(--coral-deep);outline-offset:2px}
.card-shadow-custom input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.card-shadow-custom:focus-within{outline:2px solid #d16f61;outline-offset:3px}
/* Rotation handle on the card: drag it around the text, or use the arrow keys. */
.card-text-handles .card-rotate-handle{width:30px;height:30px;min-width:0;min-height:0;display:grid;place-items:center;border:1.5px solid #d16f61;border-radius:50%;background:#fffdf9;color:#c45a4c;font-size:17px;line-height:1;box-shadow:0 2px 8px #49372c40;z-index:3}
@media(pointer:coarse){.card-text-handles .card-rotate-handle{width:40px;height:40px}}
/* Text and shadow colors, with the native color picker. */
.card-color-list .card-color-more{background:conic-gradient(#f88c80,#ffc765,#8fd3c8,#9c7bd3,#f88c80);cursor:pointer}
.card-color-list .card-color-more[data-active="true"],.card-field .card-shadow-custom[data-active="true"]{background:radial-gradient(circle,var(--custom) 0 45%,#fffdf9 46% 57%,transparent 58%),conic-gradient(#f88c80,#ffc765,#8fd3c8,#9c7bd3,#f88c80)}
.card-color-list .card-color-more[data-active="true"]{outline:2px solid var(--coral-deep);outline-offset:3px}
.card-color-more[aria-expanded="true"],.card-field .card-shadow-custom[aria-expanded="true"]{box-shadow:0 0 0 3px #fffdf9,0 0 0 5px #c9b3a3}
.card-pick-panel{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fffdf9}
.card-pick-panel[hidden]{display:none}
.card-pick-heading{margin:0;font-size:.78rem;font-weight:600;color:var(--muted)}
.card-pick-swatches{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:34px;font-size:.78rem;color:var(--muted)}
.card-pick-swatches button{width:34px;height:34px;margin:0;padding:0;border:1px solid #d9c9bd;border-radius:50%;background:var(--swatch);cursor:pointer}
.card-pick-swatches button[aria-pressed="true"]{outline:2px solid var(--coral-deep);outline-offset:2px}
.card-pick-tools{display:flex;flex-wrap:wrap;gap:8px}
/* .card-pick-panel raises the priority over .card-field label (block, bold, margin). */
.card-pick-panel .card-pick-tools>*{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:40px;margin:0;padding:0 14px;font-weight:500;border:1px solid #d9c9bd;border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:.82rem;cursor:pointer}
.card-pick-other input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.card-pick-other:focus-within{outline:2px solid #d16f61;outline-offset:2px}
.card-pick-other-dot{width:18px;height:18px;border:1px solid #d9c9bd;border-radius:50%;background:var(--custom,#513068)}
/* Card size: 6 × 6 cm (12 per sheet) or 4 × 4 cm (24 per sheet), chosen before writing the texts. */
.card-format-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.card-format-options button{display:grid;justify-items:center;gap:2px;min-height:58px;margin:0;padding:9px 8px;border:1.5px solid #e6d6ca;border-radius:12px;background:#fff;color:var(--ink);font:inherit;cursor:pointer}
.card-format-options button strong{font-size:.95rem;font-weight:600}
.card-format-options button span{font-size:.72rem;color:var(--muted)}
.card-format-options button[aria-pressed="true"]{border:2px solid var(--coral-deep);background:#fff0e9}
.card-format-options button:focus-visible{outline:2px solid #d16f61;outline-offset:2px}
#card-format-note[data-tone="warn"]{color:#a5402f;font-weight:500}

/* Confirmación visible únicamente después de verificar el pago. */
#purchase-notice.is-paid .purchase-details,
#purchase-notice.is-paid .purchase-digital-note,
#purchase-notice.is-paid .purchase-review-note,
#purchase-notice.is-paid .purchase-ack,
#purchase-notice.is-paid .purchase-paypal-heading,
#purchase-notice.is-paid .purchase-paypal-note { display: none; }
.purchase-success { color: var(--ink, #403c38); line-height: 1.65; }
.purchase-success p { margin: 0 0 16px; }
.purchase-success .purchase-thanks { color: #91547c; font-weight: 700; }
#purchase-notice.is-paid #purchase-paid-download { width: 100%; }

/* Keep the purchased size visible before and after payment. */
#purchase-sheet-summary{font-size:.77rem;line-height:1.4;color:var(--ink);font-weight:600;margin:7px 0 0}
.purchase-size-options{display:block;margin-top:6px}

.purchase-success .purchase-thanks{display:flex;align-items:center;gap:9px}
.purchase-thanks img{display:block;width:32px;height:32px;flex:0 0 32px}

/* Categories share the catalog's cream, coral and ink palette. */
.card-category-section{margin:28px 0 24px}
.card-category-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.card-category-tabs :is(button,a){padding:12px 22px;border:1px solid #dfc4b5;border-radius:99px;background:#fffaf5;color:#403a35;font:inherit;cursor:pointer;min-height:44px}
.card-category-upcoming{display:inline-block;margin-left:6px;padding:3px 8px;border-radius:99px;background:#f2e4d7;color:#755340;font-size:.75rem;font-weight:500;vertical-align:middle}
.card-category-tabs :is(button[aria-pressed="true"],a[aria-current="page"]) .card-category-upcoming{background:#fffaf526;color:#fffaf5}
.card-category-tabs :is(button[aria-pressed="true"],a[aria-current="page"]){background:#403a35;border-color:#403a35;color:#fffaf5}
.card-category-tabs :is(button,a):focus-visible,.category-manager summary:focus-visible{outline:3px solid #fa8c80;outline-offset:4px}
.cards-catalog>[hidden],.category-empty[hidden]{display:none!important}
.category-empty{padding:42px 24px;border:1px dashed #dfc4b5;border-radius:24px;text-align:center;color:#776b64;background:#fffaf5}
.category-manager{margin-top:20px;padding:18px 22px;border:1px solid #edd7ca;border-radius:20px;background:#fffaf5}
.category-manager summary{cursor:pointer;color:#a74f3e;font-weight:600}
.category-manager form{margin-top:18px}.category-manager label{display:block;margin-bottom:8px}
.category-create-row{display:flex;gap:12px;align-items:center}.category-create-row input{flex:1;min-width:0}
.category-create-row input,#design-category,#design-category-edit{font:inherit;padding:12px 14px;border:1px solid #d9bdad;border-radius:12px;background:#fff;color:#403a35;min-height:46px}
#design-category,#design-category-edit{width:100%}
#category-status{color:#776b64;font-size:.9em;margin:12px 0 0}
@media(max-width:600px){.category-create-row{flex-direction:column;align-items:stretch}.card-category-tabs :is(button,a){padding:10px 16px}.category-manager{padding:16px}}

.purchase-preview-entry .card-welcome-price{display:flex;flex-direction:column;align-items:center;gap:5px;margin:20px 0 8px;color:#403a35;text-align:center}
.card-welcome-price strong{font-family:var(--f-display);font-weight:600;font-size:clamp(34px,3vw,46px);line-height:1.12;color:#403a35}
.card-welcome-price strong span{font-family:var(--f-body,inherit);font-size:18px;letter-spacing:.02em}
.card-welcome-price .card-price-label{font-size:17px;font-weight:700;color:#a74f3e}
.card-welcome-price .card-price-detail{font-size:15px;color:#776b64;line-height:1.45}

#card-status:empty{display:none}

.cards-catalog .thumb,.card-preview-mat,.card-design-options,#purchase-design-preview,#design-file-preview,.replace-compare img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.cards-catalog .thumb img,.card-design-options img,#design-file-preview,.replace-compare img{-webkit-user-drag:none}
/* A quiet suggestion panel below the products; Mila belongs to the footer. */
.cards-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:40px 0 0;padding:24px 28px;border:1px solid #eadbd0;border-radius:20px;background:#fffaf5}
.cards-welcome p{margin:0;color:var(--muted);font-size:.93rem;line-height:1.6}
.cards-welcome .cards-welcome-title{margin:0 0 6px;font-size:1.25rem;line-height:1.3;color:var(--ink)}
.cards-welcome .cards-welcome-link{flex-shrink:0;min-height:44px;padding:10px 18px;border:1px solid #d4a28f;background:transparent;color:#934c3e;font-size:.88rem;justify-content:center}
.cards-welcome .cards-welcome-link:hover{background:#fcece3;border-color:#b56a53}
@media(max-width:680px){.cards-welcome{flex-direction:column;align-items:flex-start;gap:18px;padding:22px}.cards-welcome .cards-welcome-link{max-width:100%}}

/* Keep optional text effects and alternative designs out of the main path. */
.card-extra-options{margin:0 0 18px;border:1px solid var(--line);border-radius:14px;background:#fffaf5}
.card-extra-options>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:14px 16px;list-style:none;cursor:pointer;font-size:.92rem;font-weight:600;line-height:1.4}
.card-extra-options>summary::-webkit-details-marker{display:none}
.card-extra-options>summary::after{content:'+';font-size:1.4rem;font-weight:400;color:#965141;flex:none}
.card-extra-options[open]>summary::after{content:'−'}
.card-extra-options>summary small{display:block;margin-top:4px;color:var(--muted);font-size:.78rem;font-weight:400}
.card-extra-options>summary:focus-visible{outline:2px solid #d16f61;outline-offset:2px;border-radius:14px}
.card-extra-body{padding:0 16px 16px}
.card-extra-note{font-size:.82rem;line-height:1.5;color:var(--muted);margin:0 0 18px}
.card-extra-body .card-bold-row{margin-top:0}
.card-extra-body .card-center-text{margin-bottom:0}
.card-extra-body .card-shadow-option{margin-top:0}
.card-extra-body .card-shadow-settings{padding:12px 10px}

/* History stays next to the preview, including on small screens. */
.card-history{display:flex;justify-content:center;gap:8px}
.card-history button{min-height:44px;padding:8px 14px;border:1px solid #dfc4b5;border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;font-size:.85rem;cursor:pointer}
.card-history button:disabled{opacity:.45;cursor:default}
.card-history button:focus-visible{outline:3px solid #d16f61;outline-offset:2px}
.card-history button:not(:disabled):hover{background:#fff0e9}
.card-history-help,.card-history-status{max-width:52ch;margin:7px auto 10px;text-align:center;font-size:.76rem;line-height:1.45;color:var(--muted)}
.card-history-status:empty{display:none}
#card-restore-text{margin-top:14px;line-height:1.65;color:var(--muted)}
@media(max-width:700px){.card-history{gap:6px}.card-history button{flex:1;padding:7px 8px;font-size:.78rem}.card-history-help{margin:5px auto 7px;font-size:.69rem}.card-history-status{margin:4px auto;font-size:.72rem}.card-preview-panel .card-stage{width:min(100%,54vw,29vh)}.card-preview-panel #card-sheet{height:min(54vw,29vh)}}

/* Compact purchase summary; keep the digital-file confirmation beside the action. */
.purchase-summary + .purchase-digital-note{margin-top:16px}
#purchase-payment-status:empty{display:none}
@media(max-width:520px){.purchase-price{flex-wrap:wrap;white-space:normal;row-gap:0}}

/* Keep the review and its actions together, adapting the preview to screen height. */
#purchase-notice{padding:20px 24px}
.purchase-topline{float:right;margin:0 0 0 8px}
.purchase-topline .eyebrow{display:none}
#purchase-intro{margin:6px 0 12px}
.purchase-summary{grid-template-columns:min(38%,220px) minmax(0,1fr);gap:10px 16px;padding:12px}
#purchase-design-preview{grid-column:1;grid-row:1 / 3;width:100%;max-width:220px}
.purchase-price{grid-column:2;text-align:left;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 7px;white-space:normal}
.purchase-price strong{font-size:1.4rem}
.purchase-price span{margin:0}
.purchase-summary + .purchase-digital-note{margin-top:10px}
.purchase-digital-note{padding:9px 12px}
.purchase-ack{padding:10px 0}
.purchase-actions{margin-top:0}
@media(max-width:520px){
 #purchase-notice{padding:16px;max-height:calc(100dvh - 16px)}
 #purchase-heading{font-size:1.5rem}
 #purchase-intro{font-size:.82rem;margin:5px 0 10px}
 .purchase-summary{grid-template-columns:minmax(0,1fr);gap:6px;padding:10px}
 #purchase-design-preview{grid-column:1;grid-row:auto;width:min(100%,200px,max(120px,calc(100dvh - 440px)))}
 .purchase-format{display:none}
 #purchase-design-name{font-size:1rem;margin:2px 0 0}
 #purchase-design-texts{margin:2px 0 0}
 #purchase-sheet-summary{margin:3px 0 0}
 .purchase-price{grid-column:1;gap:3px 7px}
 .purchase-digital-note{font-size:.76rem;line-height:1.4;padding:7px 10px}
 .purchase-ack{font-size:.76rem;line-height:1.4;padding:8px 0}
 .purchase-actions{gap:0}
 #purchase-continue{padding:10px 14px;min-height:44px}
}
/* Texto avanzado · colores por letra (14 Oct 2026) */
#card-color-note[hidden],.card-letter-custom[hidden],.card-letter-auto[hidden],.card-letter-colors[hidden],.card-letter-empty[hidden]{display:none}
.card-letter-modes{grid-template-columns:repeat(3,1fr)}
.card-letter-modes button span{text-align:center}
.card-letter-chips{display:flex;flex-wrap:wrap;gap:6px}
.card-letter-chips:empty{display:none}
.card-letter-chips button{min-width:40px;height:50px;margin:0;padding:0 7px 5px;border:1.5px solid #e6d6ca;border-radius:10px;background:#f4ede6;color:var(--letter);font-size:1.6rem;line-height:1;text-shadow:0 0 1px rgba(0,0,0,.5);box-shadow:inset 0 -5px 0 var(--letter);cursor:pointer}
.card-letter-chips button[aria-pressed="true"]{border:2px solid var(--coral-deep);outline:3px solid #f9d6cc;outline-offset:0}
.card-letter-chips button:focus-visible{outline:2px solid #d16f61;outline-offset:2px}
.card-letter-empty{margin:0;font-size:.82rem;color:var(--muted)}
.card-letter-actions{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:8px}
.card-extra-body .card-letter-custom .card-shadow-option{margin-top:6px}
.card-letter-auto{display:grid;gap:10px}
.card-palette-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px}
.card-palette-list button{display:grid;justify-items:start;gap:6px;margin:0;padding:9px 10px;border:1.5px solid #e6d6ca;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:.8rem;cursor:pointer}
.card-palette-list button[aria-pressed="true"]{border:2px solid var(--coral-deep);background:#fff0e9}
.card-palette-list button:focus-visible,.card-palette-slots button:focus-visible,.card-palette-step:focus-visible{outline:2px solid #d16f61;outline-offset:2px}
.card-palette-dots{display:flex;padding-left:4px}
.card-palette-dots i{width:18px;height:18px;margin-left:-4px;border:1.5px solid #fff;border-radius:50%;background:var(--swatch)}
.card-palette-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.card-palette-slots{display:flex;flex-wrap:wrap;gap:8px}
.card-palette-slots button{width:38px;height:38px;margin:0;padding:0;border:1px solid #d9c9bd;border-radius:50%;background:var(--swatch);cursor:pointer}
.card-palette-slots button[aria-pressed="true"]{outline:2px solid var(--coral-deep);outline-offset:3px}
.card-palette-step{width:38px;height:38px;margin:0;padding:0;border:1px dashed #c9b3a3;border-radius:50%;background:#fff;color:#965141;font-size:1.1rem;cursor:pointer}
.card-palette-step:disabled{opacity:.4;cursor:default}
.card-letter-colors{display:grid;gap:10px;margin-bottom:0}
.card-letter-colors .card-color-list button:disabled{opacity:.4;cursor:default}
/* Espacio del texto (14 Oct 2026): dashed space of the selected text with side handles to widen it */
.card-text-handles .card-text-box{position:absolute;transform:translate(-50%,-50%);border:1.5px dashed #965141;border-radius:4px;pointer-events:none;z-index:2}
.card-text-handles .card-text-box[hidden]{display:none}
.card-text-handles .card-text-box button{top:50%;width:12px;height:30px;min-width:0;min-height:0;border:1.5px solid #d16f61;border-radius:999px;background:#fffdf9;box-shadow:0 1px 4px #49372c40;cursor:ew-resize}
.card-text-handles .card-text-box [data-box-side="left"]{left:0}
.card-text-handles .card-text-box [data-box-side="right"]{left:100%}
@media(pointer:coarse){.card-text-handles .card-text-box button{width:18px;height:42px}}
/* Textos extra (Texto 3 a 5) */
.card-extra-text-row{display:flex;gap:10px;align-items:center}
.card-extra-text-row input{flex:1;min-width:0}
.card-add-text-row{margin:-8px 0 22px}
.card-add-text{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 16px;border:1.5px dashed #d9bfac;border-radius:999px;background:#fffdf9;color:#965141;font:inherit;font-size:.86rem;font-weight:600;cursor:pointer}
.card-add-text[hidden]{display:none}
.card-add-text:focus-visible{outline:2px solid #d16f61;outline-offset:2px}
@media(hover:hover) and (pointer:fine){.card-add-text:hover{border-color:var(--coral);background:#fff7f2}}
.card-add-text-row small:empty{display:none}


#library-cloud-actions[hidden],#library-cloud-actions button[hidden]{display:none}

.card-category-tabs a{text-decoration:none;display:inline-flex;align-items:center}
