/* A consistent finish over the supplied Pen composition */
:root{--morph-blue:#2454ff;--morph-focus:#8db4ff;--morph-secondary:#b9bdc7;--morph-ease:cubic-bezier(.23,1,.32,1)}
::selection{background:#2454ff;color:white}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}
:focus-visible{outline-color:var(--morph-focus)!important}
.catalog-status{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#b8bcc5;font-size:14px;font-weight:500;padding:0 2px;margin-top:-10px}
.catalog-status button{color:#f0f2f7;text-decoration:underline;text-underline-offset:4px;min-height:40px}
.filter-active{color:white;background:#2454ff!important;border-radius:8px}
.catalog-filter{position:fixed;z-index:35;width:300px;max-width:calc(100vw - 24px);padding:10px;background:#242426;border:1px solid #4b4b50;border-radius:14px;box-shadow:0 20px 64px #0009;font-weight:500}
.catalog-filter p{font-size:13px;color:#b9bdc7;padding:8px 10px 12px}
.catalog-filter button{width:100%;padding:14px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;border-radius:8px;min-height:48px}
.catalog-filter button span{font-size:13px;color:#b9bdc7;font-variant-numeric:tabular-nums}
.catalog-filter button[aria-pressed=true]{background:#2454ff;color:white}.catalog-filter button[aria-pressed=true] span{color:white}
.empty-services{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.empty-services p{font-size:22px;font-weight:600;letter-spacing:-.4px}.empty-services button{background:#26262b;border:1px solid #505057;border-radius:10px;text-decoration:none;padding:12px 20px;font-weight:500}
.reading-dock{position:fixed;z-index:15;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:4px;padding:6px;background:#202022f5;border:1px solid #49494e;border-radius:18px;box-shadow:0 14px 48px #0008;max-width:calc(100vw - 24px)}
.reading-dock a{font-size:14px;font-weight:500;white-space:nowrap;border-radius:12px;min-height:44px;padding:13px 16px;color:#c9cbd1}
.reading-dock a[aria-current=location]{background:#39393e;color:white}.reading-dock .dock-contact{background:#2454ff;color:white}
body:has(dialog[open]){overflow:hidden}.reading-dock[hidden]{display:none}
#notice{z-index:50;bottom:96px;border-color:#57575d;max-width:min(450px,calc(100vw - 32px))}
.enquiry-form .form-control{font-weight:400}.enquiry-form input,.enquiry-form textarea{caret-color:#79a2ff}
.enquiry-form [aria-invalid=true]:not(.service-picker){outline:2px solid #f28a8a;outline-offset:3px;border-radius:3px}
.field-error{font-size:13px;color:#ffa5a5;line-height:18px;margin-top:8px;font-weight:500}
.draft-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;width:min(960px,100%);padding:0 4px;color:#989ea9;font-size:13px;min-height:36px;margin-top:-16px}
.draft-tools button{padding:8px 0;font-size:13px;color:#b9bdc7;text-decoration:underline;text-underline-offset:4px;font-weight:500}
.draft-tools button[hidden]{display:none}
.enquiry-form .service-picker-options{overscroll-behavior:contain;max-height:min(340px,50dvh)}
.character-count{font-size:12px;color:#a5aab5;font-variant-numeric:tabular-nums;text-align:right;min-height:16px;align-self:flex-end}
.character-count:empty{display:none}
.enquiry-review{padding:0;width:min(760px,calc(100vw - 32px));border-radius:18px;overflow:auto;background:#18181a;border-color:#48484d}
.enquiry-review #dialog-body{padding:32px}.enquiry-review #dialog-title{font-size:32px;letter-spacing:-1px;padding-right:32px;margin:0 0 14px}
.enquiry-review .brief-review{background:#222225;border:1px solid #36363c;border-radius:12px;padding:24px;grid-template-columns:120px minmax(0,1fr);font-size:16px;gap:18px 22px}
.enquiry-review .brief-review dt{font-size:14px;font-weight:500;color:#aeb4bf}.enquiry-review .brief-review dd{font-weight:500;color:#f5f5f7}
.enquiry-review .dialog-actions{padding-top:4px}.enquiry-review .dialog-actions .action-button{min-height:48px}
.enquiry-review .dialog-close{z-index:2;background:#303035;border-radius:50%;top:16px;right:16px;width:36px;height:36px}
.review-edit{display:block;margin-top:20px;padding:10px 0;color:#c1c5cf;font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:4px}
.service-screen div:has(> .preview-viewport){height:auto;min-height:0;padding-block:20px}
.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;width:min(720px,calc(100% - 48px));gap:24px;min-height:40px;margin-top:-20px;padding:0 2px 4px}
.gallery-count,.viewer-count{font-size:14px;color:#a6aab5;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:1px}
.gallery-open{font-size:14px;min-height:40px;color:#e5e8ee;font-weight:500;text-decoration:underline;text-underline-offset:5px}
.openable-preview{cursor:zoom-in}.preview-track:focus-visible{outline-offset:-6px;border-radius:8px}.openable-preview:focus-visible{outline:3px solid #8db4ff;outline-offset:4px}
.gallery-dialog{width:min(1000px,calc(100vw - 32px));padding:28px;border-radius:18px;background:#17171b}
.gallery-viewer-header{display:flex;align-items:center;justify-content:space-between;padding-right:48px;margin-bottom:24px;gap:20px}.gallery-viewer-header #dialog-title{font-size:24px;letter-spacing:-.6px;margin:0;padding:0}
.gallery-stage{position:relative;width:100%;display:flex;justify-content:center;align-items:flex-start;overflow:hidden;margin:0 auto 24px}
.gallery-stage>div{flex-shrink:0!important}.gallery-viewer-controls{display:flex;gap:10px;align-items:center}.gallery-viewer-controls>button{width:44px;height:44px;background:#2e2e35;border:1px solid #51515b;border-radius:50%;text-align:center;font-size:22px}.gallery-viewer-controls>a{margin-left:auto}
.gallery-play[aria-pressed=true]{outline:2px solid #8db4ff}.gallery-play[aria-pressed=true] svg{display:none}.gallery-play[aria-pressed=true]::before{content:'Ⅱ';font-size:22px;font-weight:700}
[data-action=faq][aria-pressed=true]{background:#264bed!important;outline:1px solid #7090ff;outline-offset:0}[data-action=faq][aria-pressed=true] div{color:#fff}
@media(hover:hover) and (pointer:fine){.service-card{transition:outline-color 160ms ease,box-shadow 160ms ease}.service-card:hover{outline-color:#73737c;box-shadow:0 10px 26px #0003}.catalog-filter button:hover:not([aria-pressed=true]){background:#35353c}.reading-dock a:hover:not(.dock-contact){background:#414149;color:white}.option-row>a:hover{outline:1px solid #686873;outline-offset:-1px}.gallery-open:hover,.catalog-status button:hover,.draft-tools button:hover{color:#fff}}
button:active:not([data-story-action]),.action-button:active{scale:.98}
@media(max-width:850px){.home-mobile .catalog-status{padding-inline:16px;margin-top:-8px}.home-mobile .draft-tools{padding-inline:16px}.enquiry-form input,.enquiry-form textarea,.enquiry-form select{font-size:16px}.reading-dock{gap:0;padding:5px}.reading-dock a{padding:12px 10px;font-size:13px;min-height:42px}.reading-dock a[data-section=process]{display:none}}
@media(max-width:500px){.enquiry-review #dialog-body{padding:28px 20px}.enquiry-review #dialog-title{font-size:28px}.enquiry-review .brief-review{padding:18px;grid-template-columns:1fr;gap:6px}.enquiry-review .brief-review dd{margin-bottom:12px}.enquiry-review .dialog-actions{display:grid;grid-template-columns:1fr}.gallery-dialog{padding:20px 16px}.gallery-viewer-header #dialog-title{font-size:20px}.gallery-viewer-header{gap:10px}.gallery-toolbar{width:calc(100% - 40px);margin-top:-12px}.draft-tools{flex-wrap:wrap;gap:4px}.reading-dock a{padding-inline:10px}.gallery-viewer-controls .action-button{font-size:14px}.service-card [data-action=save]{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){button:active,.action-button:active{scale:1}}
.enquiry-form .input-shell:has([aria-invalid=true]),.enquiry-form .message-input:has([aria-invalid=true]){outline:2px solid #f28a8a;outline-offset:2px;border-radius:8px}
.enquiry-form .input-shell [aria-invalid=true],.enquiry-form .message-input [aria-invalid=true]{outline:none!important}
dialog>#notice{position:absolute;bottom:18px;max-width:calc(100% - 32px);width:max-content;font-size:13px}
/* Round story covers and spacing from web.zip */
.story-strip{position:relative}
.stories-viewport{padding:4px 0;overscroll-behavior-x:contain}
.stories-track{gap:28px;padding:0;width:max-content;min-width:100%;justify-content:space-between}
.stories-track [data-action=story]{width:104px;flex:0 0 104px;gap:8px;scale:1!important}
.stories-track .story-cover{width:76px;height:76px;border-radius:50%;background:#242424;outline:2.5px solid #777;outline-offset:-1.25px;box-shadow:none;position:relative;display:grid;place-items:center;padding:3px}
.stories-track .story-cover svg{width:24px;height:24px;pointer-events:none}
.stories-track [data-pencil-name="Story label"]{font-size:12px;line-height:16px;font-weight:400;letter-spacing:0;color:#fff;text-align:center;white-space:nowrap}
.stories-track [data-action=story]:focus-visible{outline:0}
.stories-track [data-action=story]:focus-visible .story-cover{outline:3px solid #8db4ff;outline-offset:4px}
.stories-track [data-action=story]:active .story-cover{background:#343434}
.home-desktop .story-strip{padding-right:52px}
.home-desktop .stories-track{padding-right:24px}
.story-scroll{position:absolute;z-index:3;top:22px;display:grid;place-items:center;width:40px;height:40px;border:1px solid #555;border-radius:50%;background:#282828;color:white}
.story-scroll.previous{left:0}.story-scroll.next{right:0}.story-scroll svg{width:20px;height:20px}
.home-mobile .stories-track{gap:12px;min-width:0}
.home-mobile .stories-track [data-action=story]{width:calc((100vw - 68px)/4);min-width:68px;max-width:110px;flex:none;scroll-snap-align:start}
.home-mobile .stories-track [data-pencil-name="Story label"]{white-space:normal;max-width:85px}
.home-mobile .stories-viewport{scroll-snap-type:x proximity;padding:4px 0}
.home-mobile .story-scroll{display:none}
.home-mobile .service-card [data-action=save]{width:44px;height:44px;border-radius:16px;top:8px;right:8px}
.home-mobile .service-card [data-action=save] svg{width:18px;height:18px}
.home-desktop .service-card [data-action=save]{width:34px;height:34px;border-radius:50%}
.service-card [data-action=save][aria-pressed=true]{background:#1555ff}
.service-card [data-action=save][aria-pressed=true] path{fill:#fff!important}
.home-screen .service-card-link{border-radius:inherit}
.home-screen .service-card{border-radius:20px;overflow:hidden}
.home-screen .service-card-link>[data-pencil-name$="placeholder"]{border-radius:20px 20px 0 0}
@media(max-width:390px){.home-mobile .story-cover{width:76px;height:76px}.home-mobile .stories-track{gap:12px}}
@media(max-width:350px){.home-mobile .story-cover{width:64px;height:64px}.home-mobile .stories-track [data-action=story]{min-width:64px}}
@media(hover:hover) and (pointer:fine){.stories-track [data-action=story]:hover .story-cover{outline-color:#aaa}.stories-track [data-action=story]:hover{filter:none}.service-card:hover{box-shadow:none}}

.draft-tools:has(.draft-status:empty){display:none}

/* Reference measurements from web.zip, without copying its demo saved state */
.home-mobile .service-grid{row-gap:12px}
.home-mobile .country-select{min-width:96px;width:96px;padding-inline:10px}
.home-mobile .add-service{height:36px;min-height:36px;padding:0;line-height:28px;position:relative}
.home-mobile .add-service::after{content:"";position:absolute;inset:-4px}
.screen [data-pencil-name="Footer copyright and build credit"]{min-height:37px}
.enquiry-form .message-input textarea{resize:none}
@media(max-width:360px){
 .home-mobile [data-pencil-name="macOS frosted dock — monochrome shortcuts"]{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:10px 6px}
 .home-mobile [data-pencil-name="macOS frosted dock — monochrome shortcuts"]>a{width:100%;min-width:0}
 .home-mobile [data-pencil-name="macOS frosted dock — monochrome shortcuts"]>a>div:first-child{max-width:40px}
 .home-mobile [data-pencil-name="macOS frosted dock — monochrome shortcuts"]>a>div:last-child{font-size:8px}
 .home-mobile [data-pencil-name="macOS frosted dock — monochrome shortcuts"]> :not(a){display:none}
}
