:root{color-scheme:light;--ink:#1d1d1f;--muted:#6e6e73;--blue:#0071e3}*{box-sizing:border-box}body{margin:0;background:#f5f5f7;color:var(--ink);font:14px/1.65 -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{border:1px solid #d2d2d7;background:#fff;border-radius:20px;padding:9px 16px;cursor:pointer;color:var(--ink);transition:background .15s,transform .15s}button:hover{background:#e8e8ed}button:active{transform:scale(.98)}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--blue);border-color:var(--blue);color:#fff}button[aria-pressed=true]{background:#e4f0ff;border-color:var(--blue);color:#0056ab}a{color:var(--blue);text-decoration:none}header{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:72px;padding:12px 4vw;background:#ffffffec;border-bottom:1px solid #e5e5e7;position:sticky;top:0;z-index:100;backdrop-filter:blur(20px)}header nav,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.wordmark{font-weight:650;font-size:24px;color:#111;white-space:nowrap}.wordmark span{font-size:10px;letter-spacing:.15em;font-weight:500;color:#777;margin-left:14px}main{max-width:1550px;margin:auto;padding:0 4vw}.intro{padding:76px 0 50px}.eyebrow{font-size:11px;letter-spacing:.2em;color:var(--muted);font-weight:650}h1{font-size:clamp(36px,4.5vw,65px);letter-spacing:-.055em;line-height:1.17;margin:18px 0 26px;font-weight:650}h2{font-size:25px;line-height:1.35;letter-spacing:-.035em;margin:10px 0 16px}h3{margin:0 0 14px}.intro>p:not(.eyebrow):not(.caption){font-size:18px}.caption{font-size:12px;color:var(--muted);line-height:1.7;max-width:760px}.library{padding:0 0 45px}#catalog{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px}#catalog button{padding:0;overflow:hidden;border-radius:15px;text-align:left;background:#fff}#catalog img{display:block;width:100%;aspect-ratio:1.5;object-fit:cover}#catalog span{display:block;padding:10px 10px 0;font-size:12px;font-weight:600}#catalog small{display:block;color:var(--muted);font-size:10px;padding:0 10px 10px}#catalog button[aria-pressed=true]{box-shadow:0 0 0 2px var(--blue)}.workspace{scroll-margin-top:90px}.work-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:22px}.work-heading h2{margin:4px 0}.work-heading .actions{max-width:650px;justify-content:flex-end}#save-state{font-size:12px;color:var(--muted);margin:4px 0}.canvas-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start}.set-preview{background:#e9e9ed;border-radius:26px;padding:32px;display:grid;grid-template-columns:minmax(180px,.9fr) minmax(170px,1fr);gap:30px;align-items:start}figure{margin:0}figcaption{font-size:10px;letter-spacing:.14em;color:#58585f;margin-bottom:15px}figcaption span{display:block;font-size:9px;letter-spacing:0;color:#75757a;margin-top:3px}.frame-slot{position:relative;overflow:hidden;background:#fff;box-shadow:0 14px 38px #1c1c2c13;isolation:isolate}.frame-slot iframe{display:block;border:0;transform-origin:top left;position:absolute;left:0;top:0}.phone-wrap .frame-slot{border-radius:19px}.card-pair{display:grid;gap:26px}.card-pair .frame-slot{border-radius:10px}aside{background:#fff;border:1px solid #e9e9ed;border-radius:22px;padding:22px;max-height:calc(100vh - 95px);overflow:auto;position:sticky;top:88px}label{display:block;font-size:12px;margin:12px 0}input:not([type=checkbox]):not([type=range]):not([type=color]),select,textarea{width:100%;display:block;margin-top:5px;background:#fafafa;border:1px solid #d7d7dd;border-radius:8px;padding:8px;min-width:0}input[type=range]{display:block;width:100%;accent-color:var(--blue)}input[type=color]{display:block;width:100%;height:35px;border:1px solid #ddd;margin-top:5px;background:#fff}.check{display:flex;gap:6px;align-items:center}.two{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}fieldset{border:0;padding:0;margin:0}aside .actions button{padding:7px 10px;font-size:11px}summary{cursor:pointer;font-size:13px;font-weight:600;margin-top:24px;padding-top:20px;border-top:1px solid #eee}#reference{padding:45px 0}#reference-set{display:grid;grid-template-columns:1fr 1.1fr;gap:25px;max-width:850px}#reference-set img{max-width:100%;max-height:650px;object-fit:contain}.finish{padding:65px 0 90px}.finish h2{font-size:36px}.finish>p{color:var(--muted)}dialog{width:min(600px,92vw);max-height:86vh;padding:30px;border:0;border-radius:22px;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#1c1c2380;backdrop-filter:blur(5px)}#drafts{display:grid;gap:9px;margin:20px 0}#notice{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#1d1d1f;color:#fff;border-radius:15px;max-width:90vw;padding:12px 22px;z-index:200;margin:0;box-shadow:0 6px 24px #0002}#notice:empty{display:none}#content-error{color:#a02020}:focus-visible{outline:3px solid #73b5ff;outline-offset:3px}@media(max-width:1150px){#catalog{grid-template-columns:repeat(6,minmax(0,1fr))}.canvas-layout{grid-template-columns:minmax(0,1fr) 260px}.set-preview{gap:18px;padding:22px}.work-heading{display:block}.work-heading .actions{justify-content:flex-start;margin-top:18px}.wordmark span{display:none}}@media(max-width:820px){header{position:static;padding:12px 5vw}header nav>a{display:none}header nav{gap:5px}header button{font-size:11px;padding:8px 11px}main{padding:0 5vw}.intro{padding-top:45px}.intro>p:not(.eyebrow):not(.caption){font-size:15px}#catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.canvas-layout{grid-template-columns:1fr}.set-preview{padding:24px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;border-radius:18px}aside{position:static;max-height:none}.workspace{scroll-margin-top:15px}.work-heading .actions button{font-size:11px;padding:8px 12px}#reference-set{grid-template-columns:1fr 1fr}.caption{font-size:11px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

body[data-view]{overflow:hidden;background:#fff}body[data-view] header,body[data-view] main>section:not(.workspace),body[data-view] .work-heading,body[data-view] aside,body[data-view] figcaption,body[data-view] .caption,body[data-view] #notice{display:none}body[data-view] main{padding:0;max-width:none}body[data-view] .canvas-layout,body[data-view] .set-preview,body[data-view] .card-pair{display:contents}body[data-view] figure{display:none}body[data-view=profile] .phone-wrap,body[data-view=front] .card-pair figure:first-child,body[data-view=back] .card-pair figure:nth-child(2){display:block}body[data-view] .frame-slot{position:fixed;inset:0;width:100vw;height:100vh!important;border-radius:0;box-shadow:none}
/* Consistent action surfaces and mobile workflow. */
body:not([data-view]) button{min-height:48px;border-radius:12px}body:not([data-view]) input:not([type=checkbox]):not([type=range]),body:not([data-view]) select,body:not([data-view]) textarea{min-height:46px;font-size:16px}body:not([data-view]) header nav>a,body:not([data-view]) .work-heading .actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 15px;border:1px solid #d8dfe8;border-radius:12px;background:#fff;font-size:12px;font-weight:600}#sample-library>summary{display:flex;justify-content:space-between;align-items:center;border:1px solid #dce2e9;border-radius:14px;background:white;padding:17px 20px;margin:0 0 18px;font-size:16px;min-height:60px}#sample-library>summary span{font-size:11px;font-weight:400;color:#647080}#sample-library>summary::after{content:'＋';font-size:20px}#sample-library[open]>summary::after{content:'−'}#sample-library>summary span{margin-left:auto;margin-right:20px}.sample-faces{display:none}.sample-save-dock{display:flex;align-items:center;gap:20px;background:#fffffff7;border:1px solid #d8dfe8;border-radius:16px;box-shadow:0 8px 32px #20355022;padding:12px 16px;position:fixed;right:26px;bottom:22px;z-index:105;backdrop-filter:blur(16px);max-width:calc(100vw - 30px)}.sample-save-dock>div{flex:1}.sample-save-dock strong{display:block;font-size:12px;line-height:1.5}.sample-save-dock small{display:block;color:#647080;font-size:10px;margin-top:4px}.sample-save-dock button,.sample-save-dock a{white-space:nowrap;font-size:12px}#notice{bottom:110px}body:not([data-view]) .finish{padding-bottom:160px}body[data-view] .sample-save-dock,body[data-view] .sample-faces{display:none}.work-heading .actions #content{background:#0071e3;border-color:#0071e3;color:white}#save-state[data-error=true]{color:#a02020}#content-dialog .actions{position:sticky;bottom:-30px;background:white;padding:15px 0 2px}#content-dialog .actions>button{flex:1}.sample-faces [aria-pressed=true]{background:#e7f1ff;border-color:#83b6ee;color:#0063bc}
@media(max-width:820px){body:not([data-view]) .intro{padding:30px 0 22px}body:not([data-view]) h1{font-size:36px}.library{padding-bottom:20px}#sample-library>summary{padding:15px;font-size:14px}#sample-library>summary span{font-size:10px;margin-right:10px}body:not([data-view]) .work-heading h2{font-size:23px}body:not([data-view]) .work-heading .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:none}body:not([data-view]) .work-heading .actions>*{font-size:11px;min-height:48px;padding:10px 8px;margin:0}body:not([data-view]) .work-heading .actions #content{grid-column:1/-1}body:not([data-view]) .sample-faces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 14px}body:not([data-view]) .sample-faces button{font-size:11px;padding:10px 5px}body:not([data-view]) .set-preview{display:block;padding:18px}body:not([data-view]) .set-preview figure{max-width:390px;margin:auto}body:not([data-view]) .card-pair{display:contents}body:not([data-view]) .card-pair>.caption{display:none}body:not([data-view]) .phone-wrap,body:not([data-view]) .card-pair figure{display:none}body:not([data-view])[data-canvas-face=profile] .phone-wrap,body:not([data-view])[data-canvas-face=front] .card-pair figure:first-child,body:not([data-view])[data-canvas-face=back] .card-pair figure:nth-child(2){display:block}.sample-save-dock{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));padding:11px;gap:10px;max-width:none}.sample-save-dock strong{font-size:11px}.sample-save-dock small{font-size:9px}.sample-save-dock button,.sample-save-dock .flow-button{font-size:11px;padding:10px 12px;min-height:48px}body:not([data-view]) #inspector .actions button{font-size:12px}#content-dialog{padding:22px}#content-dialog .actions{bottom:-22px}header nav #save{display:none}body:not([data-view]) header nav>a{display:none}#notice{bottom:100px;font-size:12px;width:max-content}body:not([data-view]) header{gap:10px}body:not([data-view]) #save-state{font-size:12px;line-height:1.8}}

.account-copy-panel{margin:32px auto 80px;padding:28px;border:1px solid #d2d2d7;border-radius:20px;background:#fff;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.account-copy-panel h2{margin:4px 0 10px}.account-copy-panel p{max-width:700px}.account-copy-panel [role=status]{grid-column:1/-1;margin:0}.account-copy-panel a{margin-top:12px}.account-copy-panel button{min-height:48px}@media(max-width:820px){.account-copy-panel{margin:24px 16px 100px;padding:22px;grid-template-columns:1fr}.account-copy-panel button{width:100%}}

/* Keep the actual active-face preview visible above a scrolling mobile editor. */
.mobile-edit-bar{display:none}
.motion-preview-actions{display:flex;gap:8px;margin:16px 0}
.motion-preview-actions button{flex:1;font-size:11px;padding:8px}
.editor-more{position:relative}
.editor-more>summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:48px;margin:0;padding:10px 16px;border:1px solid #d2d2d7;border-radius:12px;background:#fff;font-size:12px;font-weight:600}
.editor-more>summary::-webkit-details-marker{display:none}
.editor-more[open]>summary{background:#e8e8ed}
.editor-more-items{position:absolute;right:0;top:calc(100% + 8px);z-index:120;width:230px;padding:8px;border:1px solid #dce2e9;border-radius:16px;background:#fff;box-shadow:0 16px 45px #1d1d1f26;display:grid;gap:4px}
.editor-more-items>*{width:100%;text-align:left;display:flex;align-items:center;min-height:48px;margin:0;padding:10px 12px;border:0;border-radius:10px;background:#fff;font-size:12px;color:#1d1d1f}
.editor-more-items>*:hover{background:#f0f3f8}
.editor-more:not([open])>.editor-more-items{display:none}
@media(max-width:820px){
 body:not([data-view]) .work-heading .actions{grid-template-columns:repeat(3,minmax(0,1fr)) 48px;gap:6px}
 body:not([data-view]) .work-heading .actions #content{grid-column:auto}
 body:not([data-view]) .work-heading .actions>button{font-size:13px;font-weight:600;padding:10px 6px}
 body:not([data-view]) .work-heading .actions>.editor-more{padding:0;margin:0;min-height:48px}
 .editor-more>summary{font-size:10px;padding:10px 4px;min-height:48px}
 body:not([data-view]) #inspector{display:none}
 body[data-mobile-panel]{overflow:hidden;overscroll-behavior:none}
 body[data-mobile-panel]>header{visibility:hidden}
 body[data-mobile-panel] #workspace{position:fixed;inset:0 0 auto;height:var(--editor-viewport-height,100dvh);z-index:110;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px 44px minmax(60px,1fr) minmax(150px,42%);gap:6px;padding:6px 12px calc(var(--editor-dock-height,72px) + 16px + env(safe-area-inset-bottom,0px));background:#f5f5f7;overflow:hidden;isolation:isolate}
 body[data-mobile-panel] .work-heading{display:none}
 body[data-mobile-panel] .mobile-edit-bar{display:flex;grid-row:1;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}
 body[data-mobile-panel] .mobile-edit-bar strong{font-size:15px;font-weight:650}
 body[data-mobile-panel] .mobile-edit-bar button{min-height:44px;padding:8px 16px;color:#0071e3;font-size:14px;font-weight:600;border:0;background:transparent}
 body[data-mobile-panel] .sample-faces{grid-row:2;margin:0;gap:6px}
 body[data-mobile-panel] .sample-faces button{min-height:44px;padding:8px 5px}
 body[data-mobile-panel] .canvas-layout{display:contents}
 body[data-mobile-panel] .set-preview{grid-row:3;min-height:0;height:100%;width:100%;padding:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:16px;background:#e8e8ed}
 body[data-mobile-panel] .set-preview figure{min-width:0;max-width:none;flex:none;margin:0}
 body[data-mobile-panel] .set-preview figcaption{display:none}
 body[data-mobile-panel] .set-preview .frame-slot{box-shadow:0 6px 22px #1d1d1f18}
 body[data-mobile-panel] .set-preview .phone-wrap .frame-slot{border-radius:8px}
 body[data-mobile-panel] #inspector{display:block;grid-row:4;min-height:0;height:100%;max-height:none;position:static;overflow:auto;overscroll-behavior:contain;padding:14px 16px 20px;border:1px solid #dfe1e6;border-radius:20px;background:#fff;scroll-padding:15px}
 body[data-mobile-panel] #inspector>h3,body[data-mobile-panel] #inspector>.caption,body[data-mobile-panel] .inspector-face{display:none}
 body[data-mobile-panel] #inspector label:first-child{margin-top:0}
 body[data-mobile-panel=layout] .motion-controls,body[data-mobile-panel=motion] .layout-controls{display:none}
 body[data-mobile-panel=motion] .motion-controls>summary{display:none}
 body[data-mobile-panel] .motion-preview-actions{margin:0 0 14px}
 body[data-mobile-panel] .motion-preview-actions button{min-height:48px;font-size:12px}
 body[data-mobile-panel] #inspector input[type=range]{min-height:44px;margin:7px 0}
 body[data-mobile-panel] #inspector .check{min-height:44px;margin:0;cursor:pointer}
 body[data-mobile-panel] #inspector input[type=checkbox]{width:18px;height:18px;flex:none}
 body[data-mobile-panel] .sample-save-dock{position:absolute;z-index:115;box-shadow:none;border-radius:14px;min-height:68px;bottom:calc(8px + env(safe-area-inset-bottom,0px))}
 body[data-mobile-panel] #notice{z-index:200;bottom:calc(92px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:820px) and (max-height:480px){
 body[data-mobile-panel] #workspace{grid-template-rows:44px 44px minmax(40px,1fr) minmax(100px,40%);gap:5px}
}

/* Primary layout controls use directions and percentages; exact coordinates remain available. */
.quick-layout h4{margin:18px 0 8px;font-size:13px}.quick-layout>.caption{margin:0 0 12px}.quick-nudge{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.quick-size{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;gap:8px}.quick-size label{margin:0}.quick-size input{margin-top:5px!important}.quick-align,.quick-layer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.quick-align [data-arrange=fit]{grid-column:1/-1}.quick-layout button{min-height:44px;padding:8px 5px;font-size:11px!important;border-radius:10px}.quick-size button{font-size:20px!important}.quick-layout button[data-arrange=fit]{color:#0062be;background:#f0f6ff;border-color:#b6d5f5}.layout-details>summary{margin-top:18px;padding:14px 0;font-size:12px;min-height:48px}.layout-details:not([open])>.two{display:none}#node-controls>label:has(#node-color){max-width:110px}body[data-mobile-panel] .quick-layout h4{font-size:13px}body[data-mobile-panel] .quick-layout button{min-height:46px}body[data-mobile-panel] .quick-nudge button{font-size:11px!important}body[data-mobile-panel] .layout-details label:first-child{margin-top:12px}

.quick-add{margin:8px 0 14px}.quick-add>summary{min-height:44px;padding:10px 0;margin:0;border-top:0;font-size:12px}.quick-add>.actions{margin-top:8px}.quick-add:not([open])>.actions{display:none}

.quick-layer-picker{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:8px;align-items:end}.quick-layer-picker label{margin-top:0}.quick-layer-picker .quick-add{position:relative;margin:0 0 12px}.quick-layer-picker .quick-add>summary{display:flex;justify-content:center;align-items:center;border:1px solid #d2d2d7;background:#fff;border-radius:10px;padding:8px;min-height:46px}.quick-layer-picker .quick-add>.actions{position:absolute;right:0;top:100%;z-index:5;display:grid;gap:6px;width:190px;padding:8px;border:1px solid #d2d2d7;border-radius:12px;background:#fff;box-shadow:0 10px 28px #0002}.quick-layer-picker .quick-add:not([open])>.actions{display:none}

.link-editor{margin:24px 0}.link-editor h3{margin:24px 0 8px}.link-editor-row{border:1px solid #c8cdd1;border-radius:12px;padding:14px;margin:16px 0}.link-editor-row legend{font-weight:700}.link-editor .actions button,.link-editor>.add-link{min-height:44px}.link-editor input,.link-editor select{width:100%;min-height:44px}
body[data-view=profile]{overflow-y:auto!important}body[data-view=profile] #profile{position:absolute!important;top:0!important;transform-origin:top center!important}

/* Standalone profiles start at the top and scroll through the complete link collection. */
body[data-view] main>:not(.workspace){display:none}
body[data-view=profile] .phone-wrap .frame-slot{position:relative;inset:auto;width:100%;min-height:100vh;height:var(--profile-preview-height,100vh)!important}
.preview-error{position:fixed;inset:0;z-index:300;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:#f5f5f7;text-align:center}.preview-error h1{font-size:24px;line-height:1.5;max-width:32em}.preview-error p{max-width:32em}.preview-error button{min-height:48px;margin-top:12px}

/* Logo choice belongs to the Web profile, next to its live preview. */
.logo-mode-controls{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:16px 0 22px;padding:16px 20px;border:1px solid #d9d9dd;border-radius:16px;background:#fff}
.logo-mode-controls label{display:flex;align-items:center;gap:16px;font-size:14px;font-weight:600;margin:0}
.logo-mode-controls select{width:190px;min-height:48px;margin:0;font-size:16px;background:#f5f5f7}
.logo-mode-controls p{flex:1;min-width:180px;margin:0;line-height:1.7}
body[data-view] .logo-mode-controls,body[data-canvas-face="front"] .logo-mode-controls,body[data-canvas-face="back"] .logo-mode-controls{display:none}
.link-logo-choice{grid-column:1/-1}.link-logo-choice small{display:block;font-weight:400;line-height:1.7;color:#646469;margin-top:6px}
@media(max-width:820px){.logo-mode-controls{gap:10px;padding:14px;margin:12px 0}.logo-mode-controls label{width:100%;justify-content:space-between;gap:10px}.logo-mode-controls select{width:168px;min-height:48px}.logo-mode-controls p{font-size:12px}}
