/* Application chrome only. Invitation canvas and envelope colors remain user-controlled. */
:root{--paper:#ffffff;--ink:#20283d;--accent:#254bd7;--muted:#586276;--line:#dbe1ec;--gold:#254bd7;--brand-apricot:#ffe1c7;--brand-wash:#fff4e9;--brand-bluewash:#edf2ff}
body,body>header,body>footer{background:var(--paper);color:var(--ink)}
.brand,.brand span{color:var(--accent)}
.btn{border-color:#c6d1e9;color:var(--ink)}
.btn:hover{background:var(--brand-bluewash)}
.btn.primary,.btn.primary:focus{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 4px 12px #254bd71a}
.btn.primary:hover{background:#193bb5;border-color:#193bb5}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #254bd7;outline-offset:3px}
input:not([type=color]):not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{background:#fff;color:var(--ink);border-color:var(--line)}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--accent)}
::selection{background:#dbe5ff;color:#142447}
.welcome h1 em{color:var(--accent)}
.welcome .poster:not(.artwork){background:var(--brand-apricot);color:var(--ink);box-shadow:0 16px 42px #243f7914}
.welcome .poster .eyebrow,.welcome .poster h2 em,.welcome .poster .star,.welcome .poster .sparkle{color:var(--accent)}
.welcome .poster:before,.welcome .poster:after{border-color:#254bd744}
.auth-wrap,.modal,.event-card,.guest-panel,.experience-card,.planning-card,.art-tile,.occasion-result{background:#fff;border-color:var(--line)}
.occasion-group{background:#fff1e4;border-color:#efcfb4;color:var(--ink)}
.occasion-group:nth-child(3n+2){background:#edf2ff;border-color:#cbd7fa}
.occasion-group:nth-child(3n){background:#f7f9ff;border-color:#dbe1ec}
.art-style-tabs a,.art-pages a{color:var(--accent);border-color:#cad6fa}
.art-style-tabs [aria-current=page],.gift-steps [aria-current=step],.potluck-tabs button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.occasion-layout aside a[aria-current]{background:var(--brand-bluewash);color:var(--accent)}
.art-editor .editor-details-panel{background:#fff3e8;border-color:#f0cfb4;border-left-color:#d48b4d}
.art-editor .art-photo{background:#edf2ff;border-color:#cbd7fa;border-left-color:#254bd7}
.art-editor .photo-canvas-tools{background:#f5f7fc;border-color:#d5ddec;border-left-color:#748db8}
.art-editor .appearance-options{background:#fff8f0;border-color:#eed8c0;border-left-color:#dc9f61}
.art-editor .editor-step,.art-editor .art-photo>summary,.art-editor .photo-canvas-tools>summary,.art-editor .appearance-options>summary{color:var(--ink)}
.text-style>summary,.wording-ideas summary,.wording-preset-note,.art-editor .rsvp-card-note{color:#3e537a}
.font-dropdown-trigger,.font-dropdown-menu,.text-inline-box textarea{border-color:#bdccef;background:#fff}
.font-dropdown-menu [aria-selected=true],.font-dropdown-menu button:hover{background:var(--brand-bluewash);color:var(--accent)}
.text-edit-target:hover,.text-edit-target:focus-visible{border-color:#8293b580!important;outline:none}.text-edit-target:focus-visible{outline:1px solid #8293b5;outline-offset:2px}
.inline-type-tools{background:#fff;border-color:#bdccef;box-shadow:0 4px 16px #254bd71a}
.inline-type-tools button[aria-pressed=true]{background:var(--accent);color:#fff}
.photo-batch-tools,.setup-extras,.premium-package,.promotion-tools{background:var(--brand-wash);border-color:#efcfb4}
.journey-steps li,.journey-steps li:first-child{background:#f0f3fa;color:var(--ink)}
.journey-steps li:nth-child(2){background:var(--brand-apricot)}
.palette-current,.palette-group[open] summary{background:var(--brand-bluewash)}
.palette-choice[aria-pressed=true]{border-color:var(--accent);background:var(--brand-bluewash);box-shadow:0 0 0 1px var(--accent)}
.palette-choice:hover{border-color:var(--accent);background:#f6f8ff}
.palette-group summary{background:#fff}
.private-reply,.experience-card.audience-private{background:#edf2ff;border-color:#4768bc}
.experience-card.audience-shared{background:#fff4e9;border-color:#b67944}
.audience-private .audience-badge{background:#dce6ff;color:#203e70}
.audience-shared .audience-badge{background:#ffe1c7;color:#75421f}
.mail-dialog{background:#fff;color:var(--ink);border-color:var(--line)}

/* Shared cobalt/apricot atmosphere across the app; never applied inside artwork. */
:root{--brand-gradient:linear-gradient(125deg,#e5edff 0%,#f5f7ff 46%,#ffe1c7 100%);--brand-panel:linear-gradient(120deg,#f0f4ff 0%,#fff 55%,#fff0e2 100%);--brand-border:#c9d6f1;--brand-heading:#14284c}
body{background:radial-gradient(ellipse at 0 160px,#dce7ff99,transparent 48%),radial-gradient(ellipse at 100% 480px,#ffe1c780,transparent 48%),#fff;background-attachment:fixed;color:var(--ink)}
body>header,body>footer{background:transparent}
body>header{border-bottom-color:var(--brand-border)}

.auth-wrap,.event-card,.guest-panel,.experience-card,.planning-card,.occasion-result,.guided-body form,.guided-results article{background:var(--brand-panel);border-color:var(--brand-border)}
.create-showcase,.guided-availability,.guided-editor-hint,.guided-advanced>summary,.photo-batch-tools,.setup-extras,.premium-package,.promotion-tools{background:var(--brand-gradient);border-color:var(--brand-border);color:var(--brand-heading)}
.occasion-group,.occasion-group:nth-child(3n+2),.occasion-group:nth-child(3n){background:var(--brand-panel);border-color:var(--brand-border);color:var(--brand-heading)}
.occasion-group:hover,.art-style-tabs a:hover{background:var(--brand-gradient);border-color:var(--accent)}
.art-editor .editor-details-panel,.art-editor .art-photo,.art-editor .photo-canvas-tools,.art-editor .appearance-options{background:var(--brand-panel);border:1px solid var(--brand-border);border-left:3px solid var(--accent);box-shadow:0 4px 16px #254bd708;border-radius:12px}
.art-editor .art-photo{border-left-color:#5478df}
.art-editor .photo-canvas-tools{border-left-color:#a65d2d}
.art-editor .appearance-options{border-left-color:#6b7fa8}
.art-editor .editor-details-panel[open],.art-editor .art-photo[open],.art-editor .photo-canvas-tools[open],.art-editor .appearance-options[open]{background:linear-gradient(120deg,#edf3ff 0%,#fff 65%,#fff3e8 100%);border-top-color:#9ab2ee}
.art-editor .editor-step,.art-editor .art-photo>summary,.art-editor .photo-canvas-tools>summary,.art-editor .appearance-options>summary{color:var(--brand-heading)}
.art-editor summary svg{color:var(--accent)}
.art-editor .text-style,.art-editor .color-style{background:#ffffffc9;border-color:#d5dff2;box-shadow:none}
.art-editor .text-style>summary,.art-editor .color-style>summary,.wording-ideas summary{color:#294a88}
.art-editor .text-style[open]{border-color:#a9bfed;background:#fff}
.art-editor .font-dropdown-trigger,.art-editor .font-dropdown-menu{border-color:var(--brand-border);background:#fff;color:var(--ink)}
.art-editor .font-dropdown-menu button:hover,.art-editor .font-dropdown-menu [aria-selected=true]{background:var(--brand-bluewash);color:var(--accent)}
.art-editor input:not([type=color]):not([type=checkbox]):not([type=radio]):not([type=range]),.art-editor textarea,.art-editor select{background:#fff;border-color:var(--brand-border);color:var(--ink)}
/* Field dots retain the actual invitation text colors; warnings retain their amber meaning. */
.art-editor .contrast-summary,.art-editor .contrast-warning{background:#fff5df;border-color:#bd8b30;color:#523a13}
@media(max-width:600px){body{background-attachment:scroll;background-size:100% 1100px;background-repeat:no-repeat}}
/* Compact field-specific typography controls. */
.art-editor .text-style[open]{padding:0 8px 6px}
.art-editor .text-style-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 8px;align-items:end}
.art-editor .text-style-body>.type-grid,.art-editor .text-style-body>.contrast-warning{grid-column:1/-1}
.art-editor .text-style .type-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px}
.art-editor .text-style label{margin:0;font-size:12px;line-height:1.3;min-width:0}
.art-editor .text-style .type-grid .font-dropdown{margin-top:3px}
.art-editor .text-style input:not([type=checkbox]):not([type=color]),.art-editor .text-style .font-dropdown-trigger{height:34px;min-height:34px;margin-top:3px;padding:4px 7px;font-size:14px}
.art-editor .text-style .font-dropdown-trigger{padding-right:22px;font-size:16px}
.art-editor .text-style .font-dropdown-trigger:after{top:9px;right:8px}
.art-editor .text-style .type-toggles{margin:0;gap:4px;align-items:end}
.art-editor .text-style .type-toggles label{min-height:34px;padding:4px 6px;gap:4px;margin:0}
.art-editor .text-style .type-toggles input{width:15px;height:15px;flex-basis:15px}
.art-editor .text-style .color-pair{grid-template-columns:32px minmax(0,1fr);gap:4px;margin:3px 0 0}
.art-editor .text-style .color-pair input[type=color]{width:32px;height:34px;min-height:34px;padding:2px;margin:0}
.art-editor .text-style .color-pair input:not([type=color]){margin:0;font-size:12px;padding:4px}
@media(max-width:600px),(pointer:coarse){.art-editor .text-style input:not([type=checkbox]):not([type=color]),.art-editor .text-style .font-dropdown-trigger,.art-editor .text-style .color-pair input[type=color],.art-editor .text-style .type-toggles label{height:44px;min-height:44px}.art-editor .text-style input:not([type=checkbox]):not([type=color]){font-size:16px}.art-editor .text-style .font-dropdown-trigger:after{top:14px}.art-editor .text-style .color-pair{grid-template-columns:36px minmax(0,1fr)}.art-editor .text-style .color-pair input[type=color]{width:36px}}
/* Keep formatting toggles separate from the color picker on narrow editor columns. */
.art-editor .text-style-body>.type-toggles,.art-editor .text-style-body>label{grid-column:1/-1}
.art-editor .text-style-body{row-gap:7px}
.art-editor .text-style .type-toggles{gap:8px}
.art-editor .text-style .type-toggles label{min-width:72px;justify-content:center}
.art-editor .text-style .color-pair{grid-template-columns:40px minmax(0,1fr);gap:8px}
.art-editor .text-style .color-pair input[type=color]{width:40px}
.contrast-popover{position:fixed;z-index:120;width:250px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:12px 32px 12px 12px;box-shadow:0 6px 24px #14284c26;font-size:13px;line-height:1.4}.contrast-popover .contrast-dismiss{position:absolute;right:2px;top:2px;width:30px;height:30px;border:0;background:transparent;font-size:22px;color:#523a13}.contrast-popover .btn{min-height:44px}.text-edit-target.low-contrast-text{border:1px dashed #b77a20}

/* Contextual wording suggestions: one flat list beside the active field. */
.wording-popover{position:fixed;z-index:125;width:270px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:7px;border:1px solid #c5d4f5;border-radius:12px;background:#fff;box-shadow:0 12px 35px #183d8033;color:#18345f;font:13px/1.3 Lato,sans-serif}
.wording-popover[hidden]{display:none}
.wording-popover button{font:inherit;cursor:pointer}
.wording-choices{display:grid;gap:3px}
.wording-choices button{border:1px solid transparent;border-radius:7px;text-align:left;background:#f3f6ff;color:#213e71;padding:6px 8px;min-height:32px;white-space:normal}
.wording-popover button:hover,.wording-popover button[aria-pressed=true]{background:#e8efff;border-color:#486fce}
.wording-popover .wording-case{border-top:1px solid #e2e8f3;margin-top:5px;padding-top:5px;gap:5px}
.wording-case button{flex:1;border:1px solid #c9d6ef;background:white;color:#244d9b;padding:5px 8px;border-radius:7px;min-height:32px}
@media(max-width:600px){.wording-choices button,.wording-case button{min-height:44px}}
.wording-popover .wording-dismiss{position:absolute;right:3px;top:3px;border:0;background:transparent;color:#38527d;width:28px;height:32px;font-size:20px}
.wording-popover .wording-choices{margin-right:25px}

.footer-resources{display:flex;flex-wrap:wrap;gap:12px 24px;width:100%;padding-top:12px;border-top:1px solid var(--brand-border)}
.info-page{max-width:1120px;margin:0 auto;padding:32px 0 64px}.info-hero{display:block;background:linear-gradient(120deg,#edf3ff,#fff1e6);border:1px solid #dce5f7;border-radius:22px;padding:32px;margin-bottom:28px}.info-hero h1{font-size:clamp(28px,4vw,46px);margin:0 0 12px;color:#193b88}.info-hero p{max-width:680px;line-height:1.6;margin:0;color:#445575}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.info-card{background:white;border:1px solid #dce5f7;border-radius:16px;padding:24px}.info-card h2{font-size:22px;margin:8px 0 16px}.info-card p,.info-article p{line-height:1.7}.info-card ul{list-style:none;padding:0;margin:0;display:grid;gap:14px}.info-page a{color:#254bd7}.info-number{font-size:13px;letter-spacing:.12em;color:#6c4b33;background:#ffead9;padding:5px 9px;border-radius:6px}.info-faq{max-width:800px;margin:auto}.info-faq details{background:white;border:1px solid #dce5f7;border-radius:12px;padding:16px 20px;margin-bottom:10px}.info-faq summary{cursor:pointer;font-weight:700;min-height:28px}.info-faq p{line-height:1.7;color:#445575}.info-article{max-width:740px;margin:28px auto}.info-article section{margin-bottom:30px}.info-note{padding:20px;background:#fff1e6;border-radius:12px;margin:24px 0}
@media(max-width:600px){.info-page{padding-top:16px}.info-hero{padding:22px}.info-grid{grid-template-columns:1fr}.info-card{padding:20px}.footer-resources a{padding:8px 0}}

body>footer{flex-wrap:wrap}.footer-resources{flex-basis:100%}

body>footer.site-footer{display:block;padding:32px 24px 24px;border-top:1px solid #d7e1f5;text-align:left}
.site-footer .footer-brand{display:flex;align-items:center;gap:24px;margin-bottom:26px}.site-footer .footer-brand p{margin:0;color:#53617b;font-size:14px}
.site-footer .footer-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.site-footer .footer-groups h2{font-size:15px;font-weight:700;margin:0 0 12px;color:#243e70}
.site-footer .footer-groups ul{list-style:none;padding:0;margin:0}.site-footer .footer-groups li{margin:0}
.site-footer .footer-groups a{display:inline-block;font-size:14px;line-height:1.5;color:#53617b;padding:6px 0;text-decoration:none;margin:0;overflow-wrap:anywhere}
.site-footer .footer-groups a:hover{color:#254bd7;text-decoration:underline;text-underline-offset:3px}.site-footer a:focus-visible{outline:2px solid #254bd7;outline-offset:3px;border-radius:3px}
.site-footer>a{display:inline-block;margin-top:22px;font-size:12px;color:#53617b}
@media(max-width:650px){body>footer.site-footer{padding:24px 22px}.site-footer .footer-brand{display:block;margin-bottom:24px}.site-footer .footer-brand p{margin-top:10px}.site-footer .footer-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}.site-footer .footer-groups h2{margin-bottom:6px}.site-footer .footer-groups a{display:flex;align-items:center;min-height:44px;padding:7px 0}}

.art-editor .detail-field-group{margin:10px 0;padding:12px;border:1px solid #cedbf1;border-left:3px solid #8ca9eb;border-radius:10px;background:#fff;min-width:0}
.art-editor .detail-field-group:nth-of-type(even){background:#fffaf6;border-left-color:#e7b691}
.art-editor .detail-field-group:focus-within{border-color:#7c9de7;box-shadow:0 0 0 2px #254bd710}
.art-editor .detail-field-group>.art-field-label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;margin:0 0 7px;color:#243e70}
.art-editor .detail-field-group>input,.art-editor .detail-field-group>textarea{margin:0;width:100%;box-sizing:border-box}
.art-editor .detail-field-group>.text-style{margin:7px 0 0;border:0;border-top:1px solid #e2e8f3;border-radius:0;background:transparent}
.art-editor .detail-field-group>.text-style>summary{padding:6px 0 0}
.art-editor .detail-field-group>.text-style[open]{padding:0 0 4px}
@media(max-width:600px){.art-editor .detail-field-group{padding:10px;margin:10px 0}}

.text-palette-options{margin:10px 0 14px}.text-palette-options h3{font-size:14px;margin:0 0 8px;color:#243e70}.text-palette-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.text-palette-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:68px;padding:8px 4px;border:1px solid #cddbf2;border-radius:9px;background:white;color:#30476f;font:12px/1.3 Lato,sans-serif;cursor:pointer}.text-palette-choice[aria-pressed=true]{border:2px solid #254bd7;background:#edf3ff}.text-palette-choice:focus-visible{outline:2px solid #254bd7;outline-offset:2px}.text-palette-dots{display:flex;gap:3px}.text-palette-dots span{display:block;width:17px;height:17px;border-radius:50%;border:1px solid #0002}.art-editor .text-style-body>.text-custom-color{grid-column:1/-1}.text-custom-color>summary{cursor:pointer;color:#294a88;font-size:12px;padding:7px 0}.text-custom-color[open]>label{display:block;margin-top:5px}

.art-editor .text-palette-family{width:100%;min-height:40px;margin:0 0 8px;padding:7px 10px;font-size:14px;border:1px solid #cddbf2;border-radius:8px;background:white;color:#30476f}@media(max-width:600px){.art-editor .text-palette-family{min-height:44px;font-size:16px}}

/* Shared editor controls use the same cobalt/apricot language as the homepage. */
.art-editor .type-toggles label{background:#fff;border-color:var(--brand-border);color:var(--brand-heading);transition:background .15s,border-color .15s}
.art-editor .type-toggles label:hover{background:var(--brand-bluewash);border-color:var(--accent)}
.art-editor .type-toggles label:has(input:checked){background:var(--brand-gradient);border-color:var(--accent);color:#193bb5;box-shadow:inset 0 0 0 1px var(--accent)}
.art-editor .type-toggles input{accent-color:var(--accent)}
.art-editor .type-toggles label:focus-within{outline:2px solid var(--accent);outline-offset:3px}
/* Compact history pair: icons, no enclosing panel or redundant labels. */
.art-editor .editor-history{display:flex;gap:4px;align-items:center;width:fit-content;padding:0;border:0;background:transparent;margin:0 0 8px;box-shadow:none}
.art-editor .editor-history .btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--accent);cursor:pointer}
.art-editor .editor-history .btn svg{width:17px;height:17px;stroke-width:2;flex-shrink:0}
.art-editor .editor-history .btn:hover:not(:disabled){background:var(--brand-bluewash);border-color:var(--brand-border)}
.art-editor .editor-history .btn:active:not(:disabled){background:#dbe5ff}
.art-editor .editor-history .btn:disabled{background:transparent;color:#8893a7;cursor:not-allowed;opacity:.65;box-shadow:none}
@media(max-width:600px),(pointer:coarse){.art-editor .editor-history{gap:2px}.art-editor .editor-history .btn{width:40px;height:40px;min-height:40px}}

/* Shared app surfaces and states, including host and guest screens. */
.notice,.billing-status,.occasion-selection,.upload-guidance,.occasion-upload,.thank-you,.occasion-empty{background:var(--brand-panel);border-color:var(--brand-border);color:var(--ink)}
.plan-card,.mail-card,.integration-card,.modal,.guest-list,.activity-list,.rsvp,.setup-section{background:#fff;border-color:var(--brand-border)}
.modal>h2,.billing-status h2,.plan-card h2,.integration-card h2{color:var(--brand-heading)}
.activity.unread,.tab.active,.count-pill,.row.head,.guest-name .avatar,.upload-workspace figure,.occasion-nav-mobile a[aria-current]{background:var(--brand-bluewash);color:var(--brand-heading)}
.tab,.note,.under-list,.guest-source,.team-list span,.realtime-label,.palette-count,.palette-current small{color:var(--muted)}
.tab.active{color:var(--accent)}
.row,.team-list>div{border-color:var(--brand-border)}
.badge{background:#edf1f7;color:#44536a}.badge.yes{background:#e3edff;color:#2249a1}.badge.no{background:#fff0e5;color:#8b462b}
.art-tile-paper,.art-tile:nth-child(3n+2) .art-tile-paper,.art-tile:nth-child(3n) .art-tile-paper{background:var(--brand-panel)}
.upload-workspace input::file-selector-button{background:var(--brand-bluewash);color:var(--accent);border:1px solid var(--brand-border)}
.btn{background:#fff;border-color:var(--brand-border)}
.btn:disabled{cursor:not-allowed;opacity:.55;box-shadow:none}
.btn.primary:hover:not(:disabled){background:#193bb5;border-color:#193bb5;color:white}
.choices .selected,.gift-steps [aria-current=step]{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.danger{color:#922f30;border-color:#e4b8b8;background:#fff5f5}.btn.danger:hover{background:#ffe8e8}
input:focus,textarea:focus,select:focus{border-color:var(--accent)}
dialog::backdrop{background:#14284c66}
@media(prefers-reduced-motion:reduce){.art-editor .type-toggles label{transition:none}}/* Canvas editing affordances are interface controls, not invitation artwork. */
.photo-frame-target:hover{border-color:var(--accent)}
.photo-frame-target.selected{border-color:var(--accent)}
.photo-frame-target:focus-visible,.art-editor details[name="editor-section"]>summary:focus-visible{outline-color:var(--accent)}
.photo-frame-number,.photo-resize-handle{background:var(--accent)}
.photo-guide{background:var(--accent)}
.photo-canvas-tools button{border-color:var(--brand-border);color:var(--brand-heading);background:#fff}
.photo-canvas-tools button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.photo-drop-zone{background:var(--brand-panel);border-color:var(--brand-border)}
.photo-drop-zone.drag-over,.photo-frame-target.drop-target{background:#dce7ff88;outline-color:var(--accent)}
.art-editor .font-dropdown-menu button:focus-visible{background:var(--brand-bluewash);outline-color:var(--accent);color:var(--accent)}

/* Phone workspace: switch views without scrolling past the form. */
.mobile-editor-switch{display:none}
@media(max-width:600px){
 .art-editor{padding-bottom:88px}
 .art-editor[data-mobile-view=edit]>.art-preview,.art-editor[data-mobile-view=preview]>.editor-fields{display:none!important}
 .art-editor>.mobile-editor-switch{display:flex;position:fixed;z-index:90;bottom:0;left:0;right:0;gap:6px;padding:8px 16px calc(8px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid var(--brand-border);box-shadow:0 -3px 18px #14284c12}
 .mobile-editor-switch button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:44px;border:1px solid var(--brand-border);border-radius:9px;background:#fff;color:var(--accent);font:700 15px Lato,sans-serif}
 .mobile-editor-switch button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
 .mobile-editor-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
 .mobile-editor-switch svg{width:18px;height:18px}
 .art-editor[data-mobile-view=preview]>.art-preview{position:static!important;width:min(100%,calc((100svh - 155px) * var(--card-ratio)));margin:0 auto;scroll-margin-top:12px}
}
@media(max-width:600px){body:has(.mobile-editor-switch){overflow-anchor:none}}

@media(max-width:600px){
 .text-inline-box{border:1px solid var(--brand-border);border-radius:10px;padding:6px;background:#fff;box-sizing:border-box;box-shadow:0 6px 24px #14284c26}
 .inline-field-name{display:block;font:700 12px/1.4 Lato,sans-serif;color:var(--brand-heading);padding:0 3px 4px}
 .text-inline-box textarea{background:#fff;color:var(--ink);border-color:var(--accent);font-size:16px;min-width:0}
 .inline-type-tools{border:0;box-shadow:none;padding:6px 0 0;gap:5px}
 .inline-type-tools select,.inline-type-tools input[type=number],.inline-type-tools input[type=color],.inline-type-tools button{height:44px;min-height:44px;font-size:16px;box-sizing:border-box}
 .inline-type-tools button,.inline-type-tools input[type=color]{min-width:40px}
 .inline-type-tools button{color:var(--accent);border:1px solid var(--brand-border);background:white;border-radius:6px}
 .inline-type-tools button[aria-pressed=true]{color:white;background:var(--accent)}
 .text-edit-target.empty-text-target{font:12px Lato,sans-serif;color:var(--accent);border:1px dashed var(--brand-border)!important;background:#ffffffd9!important}
}
/* View-only zoom keeps the canvas export and draft dimensions unchanged. */
.preview-zoom-tools{display:flex;align-items:center;gap:6px;margin:8px 0;flex-wrap:wrap}.preview-zoom-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:36px;min-height:36px;padding:6px 9px;border:1px solid var(--brand-border);border-radius:8px;background:#fff;color:var(--accent);font:600 13px Lato,sans-serif;cursor:pointer}.preview-zoom-tools button[aria-pressed=true]{background:var(--accent);color:#fff}.preview-zoom-tools svg{width:17px;height:17px}.preview-zoom-value{font:600 13px Lato,sans-serif;min-width:42px;text-align:center}.preview-zoom-hint{font-size:13px!important;margin:4px 0 10px!important;color:var(--brand-heading)}.preview-viewport{width:100%;max-height:70svh;overflow:auto;overscroll-behavior:contain;touch-action:none;position:relative;border-radius:8px}.preview-viewport>.photo-edit-stage{max-width:none!important;flex-shrink:0;margin:0!important}.preview-viewport canvas{display:block;max-width:none!important;width:100%!important;height:auto!important}.preview-pan{cursor:grab}.preview-pan .text-edit-target,.preview-pan .photo-frame-target{cursor:grab}.preview-zoom-tools button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:600px){.preview-zoom-tools button{min-width:44px;min-height:44px}.preview-viewport{max-height:65svh}.art-editor[data-mobile-view=preview]>.art-preview{width:100%}}

.preview-viewport .text-edit-target{cursor:grab;touch-action:none;user-select:none}.preview-viewport .text-edit-target.text-dragging{cursor:grabbing;border:1px solid #8293b5a6!important;outline:none!important;background:transparent!important;z-index:5}

.text-center-guides{position:absolute;inset:0;z-index:8;pointer-events:none}.text-center-guides[hidden]{display:none}.text-center-axis{position:absolute;box-shadow:none;opacity:.3}.text-center-axis.vertical{left:50%;top:0;bottom:0;border-left:1px dashed #8293b5}.text-center-axis.horizontal{top:50%;left:0;right:0;border-top:1px dashed #8293b5}.text-center-guides.snap-x .vertical{border-left:1px solid #52698f;opacity:.95}.text-center-guides.snap-y .horizontal{border-top:1px solid #52698f;opacity:.95}

/* Keep text editing calm while retaining a visible keyboard focus boundary. */
.art-editor .text-inline-box textarea,.art-editor .text-inline-box textarea:focus,.art-editor .text-inline-box textarea:focus-visible{border:1px solid #8293b599;outline:0;outline-offset:0;box-shadow:none}.art-editor .text-inline-box:focus-within{border-color:#8293b580}@media(max-width:600px){.art-editor .text-inline-box{border-color:#8293b54d;box-shadow:0 3px 12px #14284c12}}

/* Shared quiet selection treatment for photo and text editing. */
.art-editor .photo-frame-target:hover,.art-editor .photo-frame-target.selected{border:1px solid #8293b580;box-shadow:none}
.art-editor .photo-frame-target.photo-dragging{border-color:#8293b5a6;outline:none;box-shadow:none}
.art-editor .photo-frame-target:focus-visible{outline:1px solid #8293b5;outline-offset:2px}
.art-editor .photo-frame-target.drop-target{outline:1px solid #52698f;background:#8293b51a}
.art-editor .photo-frame-number,.art-editor .photo-resize-handle{background:#52698f;box-shadow:none}
.art-editor .text-inline-box{border:1px solid #8293b54d;border-radius:9px;padding:5px;background:#fff;box-shadow:0 3px 12px #14284c12;box-sizing:border-box}
.art-editor .inline-type-tools{border:0;box-shadow:none;background:transparent;padding:5px 0 0;gap:5px}
.art-editor .inline-type-tools select,.art-editor .inline-type-tools input,.art-editor .inline-type-tools button{border:1px solid #8293b54d;border-radius:5px;box-sizing:border-box}
.art-editor .inline-type-tools input[type=number]{width:72px}
.art-editor .inline-type-tools :is(input,select,button):focus{outline:1px solid #8293b5;outline-offset:1px;box-shadow:none}
@media(max-width:600px){.art-editor .inline-type-tools{display:grid;grid-template-columns:minmax(70px,1fr) repeat(3,44px)}.art-editor .inline-type-tools select{grid-column:1/-1;width:100%}.art-editor .inline-type-tools input[type=number]{width:100%}.art-editor .inline-type-tools input[type=color]{width:44px}}

/* A compact contextual strip, with explicit touch-safe size buttons. */
.art-editor .inline-type-tools{display:flex;flex-wrap:nowrap;gap:3px;overflow-x:auto;max-width:100%;align-items:center}
.art-editor .inline-type-tools select{flex:1 0 80px;width:90px;min-width:80px;max-width:145px;font-size:13px;height:36px;padding:3px}
.art-editor .inline-size-stepper{display:flex;flex:0 0 auto;align-items:center;border:1px solid #8293b54d;border-radius:5px}
.art-editor .inline-type-tools .inline-size-stepper input{width:44px!important;min-width:0;text-align:center;appearance:textfield;border:0;border-radius:0;font-size:13px;padding:2px;height:36px;min-height:36px}
.art-editor .inline-size-stepper input::-webkit-inner-spin-button,.art-editor .inline-size-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.art-editor .inline-type-tools button,.art-editor .inline-type-tools input[type=color]{flex:0 0 32px;width:32px;min-width:32px;height:36px;min-height:36px;padding:3px}
.art-editor .inline-size-stepper button{border:0;font-size:20px;background:transparent;color:var(--accent)}
@media(max-width:600px){.art-editor .inline-type-tools button,.art-editor .inline-type-tools input[type=color]{flex-basis:36px;width:36px;min-width:36px;height:44px;min-height:44px}.art-editor .inline-type-tools select{height:44px;min-height:44px;max-width:110px}.art-editor .inline-type-tools .inline-size-stepper input{height:44px;min-height:44px;width:40px!important}}

/* Give the font preview priority over the compact size stepper. */
.art-editor .inline-type-tools select{flex:1 0 115px;min-width:115px;max-width:none;width:150px;font-size:17px;padding:3px 5px}
.art-editor .inline-type-tools .inline-size-stepper button{flex:0 0 24px;width:24px;min-width:24px;padding:0;font-size:17px}
.art-editor .inline-type-tools .inline-size-stepper input{width:32px!important;padding:0;font-size:12px}
.art-editor .inline-type-tools select{min-width:108px;flex-basis:108px}
@media(max-width:600px){.art-editor .inline-type-tools select{min-width:120px;flex-basis:120px}.art-editor .inline-type-tools>button,.art-editor .inline-type-tools>input[type=color]{flex-basis:32px;min-width:32px;width:32px}}

.art-editor .inline-type-tools .inline-font-trigger{flex:1 0 108px;width:150px;min-width:108px;max-width:none;font-size:17px;font-weight:400;text-align:left;padding:3px 18px 3px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;color:var(--ink);background:#fff}
.inline-font-trigger::after{content:'⌄';position:absolute;right:4px;font:14px system-ui;top:50%;transform:translateY(-50%)}
.art-editor .inline-font-menu{position:absolute;left:5px;top:calc(100% + 4px);width:min(240px,calc(100% - 10px));max-height:240px;overflow:auto;background:#fff;border:1px solid #8293b566;border-radius:7px;padding:4px;box-shadow:0 4px 14px #14284c18;z-index:20;box-sizing:border-box}
.inline-font-menu[hidden]{display:none!important}
.art-editor .inline-font-menu button{display:block;width:100%;text-align:left;font-size:18px;font-weight:400;line-height:1.3;min-height:32px;padding:5px 9px;margin:0;background:#fff;color:#25334b;border:0;border-radius:4px;white-space:nowrap}
.art-editor .inline-font-menu button[aria-selected=true],.art-editor .inline-font-menu button:hover{background:#edf2ff}
.art-editor .inline-font-menu button:focus-visible{outline:1px solid #8293b5;outline-offset:-1px;background:#edf2ff}
@media(max-width:600px){.art-editor .inline-type-tools .inline-font-trigger{min-width:120px;flex-basis:120px;height:44px}.art-editor .inline-font-menu button{min-height:40px}}

/* At the default zoom, show the whole card and center it in the preview panel. */
.preview-viewport[data-zoom="1"]>.photo-edit-stage{margin-inline:auto!important}

@media(pointer:coarse){.text-edit-target:not(.empty-text-target)::before{content:'';position:absolute;left:0;right:0;top:calc(-1 * var(--touch-above,0px));bottom:calc(-1 * var(--touch-below,0px));background:transparent}.text-edit-target.text-dragging::before{display:none}}
