html{background:#07080b;scroll-behavior:smooth}body.ifc-frontend{min-height:100vh;margin:0;padding:0 0 calc(104px + env(safe-area-inset-bottom));background:radial-gradient(circle at 88% 0,rgba(202,0,52,.18),transparent 31rem),#07080b;color:#f7f8fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ifc-fe-skip{position:fixed;left:12px;top:-80px;z-index:100001;padding:10px 14px;border-radius:8px;background:#fff;color:#111;text-decoration:none}.ifc-fe-skip:focus{top:12px}.ifc-fe-header{position:sticky;top:0;z-index:999;display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:0 max(16px,env(safe-area-inset-left)) 0 max(16px,env(safe-area-inset-right));border-bottom:1px solid rgba(255,255,255,.09);background:rgba(7,8,11,.88);backdrop-filter:blur(16px)}.ifc-fe-brand{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none}.ifc-fe-brand img{display:block;width:176px;max-width:48vw;height:auto}.ifc-fe-brand span{padding:4px 7px;border:1px solid #d90036;border-radius:999px;color:#ff4c70;font-size:10px;font-weight:900;letter-spacing:.12em}.ifc-fe-account,.ifc-fe-project-head>a{min-height:44px;display:inline-flex;align-items:center;color:#c9ced7;text-decoration:none;font-size:13px;font-weight:750}.ifc-fe-main{width:min(1180px,100%);margin:0 auto;padding:18px 14px 30px}.ifc-fe-welcome,.ifc-fe-start{max-width:680px;margin:7vh auto 0;padding:clamp(24px,6vw,52px);border-color:#30333a;background:radial-gradient(circle at 95% 4%,rgba(217,0,54,.27),transparent 42%),#111318}.ifc-fe-start-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.ifc-fe-kicker,.ifc-fe-project-head span,.ifc-fe-result-head span{color:#ff3157;font-size:11px;font-weight:900;letter-spacing:.17em}.ifc-fe-daily-limit{margin-left:auto;text-align:right}.ifc-fe-daily-limit.is-exhausted{max-width:280px}.ifc-fe-welcome h1,.ifc-fe-start h1{margin:10px 0 10px;color:#fff;font-size:clamp(32px,8vw,58px);line-height:.98}.ifc-fe-welcome p,.ifc-fe-start p{max-width:560px;color:#c5cad3;line-height:1.55}.ifc-fe-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border:1px solid #d90036!important;border-radius:12px!important;background:#d90036!important;color:#fff!important;font-weight:850;text-decoration:none;cursor:pointer}.ifc-fe-upload-form{display:grid;gap:14px;margin-top:24px}.ifc-fe-upload-form input[type=text]{width:100%;min-height:48px;padding:0 13px;border:1px solid #383d47;border-radius:11px}.ifc-fe-file{position:relative;display:block;min-width:0;cursor:pointer}.ifc-fe-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.ifc-fe-file>span{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:72px;padding:12px 15px;border:1px dashed #555c68;border-radius:12px;background:#15181e}.ifc-fe-file strong,.ifc-fe-file small{display:block}.ifc-fe-file small{max-width:58%;overflow:hidden;color:#aeb5c0;text-overflow:ellipsis;white-space:nowrap}.ifc-fe-file:focus-within>span{outline:3px solid color-mix(in srgb,var(--ifc-ui-focus) 44%,transparent);outline-offset:2px}.ifc-fe-file--compact>span{min-height:48px;padding:7px 11px}.ifc-fe-status{min-height:18px;margin:0;color:#b9c0ca;font-size:12px}.ifc-fe-status.is-working{color:#ffd28b}.ifc-fe-status.is-ready{color:#83edab}.ifc-fe-status.is-error{color:#ff91a6}.ifc-fe-recent{margin-top:34px}.ifc-fe-recent h2{font-size:18px}.ifc-fe-project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.ifc-fe-project-card{display:grid;gap:8px;min-height:132px;padding:17px;border:1px solid #2f333b;border-radius:14px;background:#111318;color:#fff;text-decoration:none}.ifc-fe-project-card span{color:#959eaa;font-size:12px}.ifc-fe-project-card b{align-self:end;color:#ff4165;font-size:12px}.ifc-fe-project-card:hover{border-color:#d90036}.ifc-fe-project-head{display:flex;align-items:center;gap:16px;margin:1px 0 13px}.ifc-fe-project-head>div{min-width:0}.ifc-fe-project-head h1{margin:3px 0 0;overflow:hidden;color:#fff;font-size:clamp(22px,5vw,34px);text-overflow:ellipsis;white-space:nowrap}.ifc-fe-background-upload{margin-bottom:10px;padding:10px;border-color:#2d3037;background:#101216}.ifc-fe-background-upload form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.ifc-fe-background-upload .ifc-fe-status{grid-column:1/-1}.ifc-fe-background-upload .button,.ifc-fe-sticky .button,.ifc-fe-result .button{min-height:44px;padding:0 14px;border:1px solid #3a3d43;border-radius:10px;background:#17191d;color:#fff;font-weight:800;cursor:pointer}.ifc-fe-background-upload .button:hover,.ifc-fe-sticky .button:hover{border-color:#d90036}.ifc-fe-sticky .button-primary{border-color:#d90036;background:#d90036}.ifc-fe-sticky .button:disabled,.ifc-fe-background-upload .button:disabled{opacity:.55;cursor:not-allowed}.ifc-editor-app--frontend{margin:0!important;padding:10px!important;border:1px solid #2e3138;border-radius:16px!important;box-shadow:none!important}.ifc-editor-app--frontend .ifc-editor-source-info{display:none}.ifc-editor-app--frontend .ifc-editor-toolbar{margin:0;padding:9px;gap:8px}.ifc-editor-app--frontend .ifc-editor-format-meta{margin:8px 2px 10px}.ifc-editor-app--frontend .ifc-editor-main{gap:9px}.ifc-editor-app--frontend .ifc-editor-actions{margin-top:9px;padding-top:9px}.ifc-editor-app--frontend #ifc-editor-save,.ifc-editor-app--frontend #ifc-editor-render,.ifc-editor-app--frontend #ifc-editor-download,.ifc-editor-app--frontend #ifc-editor-render-result{display:none!important}.ifc-editor-app--frontend .ifc-editor-actions>div{width:100%;margin:0;display:flex;flex-direction:row;justify-content:space-between}.ifc-fe-result{display:grid;gap:12px;margin-top:12px;padding:14px;border-color:#343843;background:#101216}.ifc-fe-result-head{display:flex;flex-direction:column;gap:3px}.ifc-fe-result-preview{min-height:260px;overflow:hidden;border:1px solid #30343d;border-radius:12px;background:#08090c}.ifc-fe-result-preview>[data-ifc-media-preview-image]{display:block;width:100%;max-height:72vh;object-fit:contain}.ifc-fe-result-preview .ifc-preview-pending{display:grid;place-items:center;min-height:260px;padding:20px;color:#c5cad3;text-align:center}.ifc-fe-sticky{position:fixed;left:50%;bottom:max(8px,env(safe-area-inset-bottom));z-index:1000;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;width:min(760px,calc(100% - 16px));padding:9px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(15,17,22,.94);box-shadow:0 18px 55px rgba(0,0,0,.48);backdrop-filter:blur(18px);transform:translateX(-50%)}.ifc-fe-sticky>div{min-width:0;padding-left:5px}.ifc-fe-sticky strong,.ifc-fe-sticky small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ifc-fe-sticky strong{color:#85efad;font-size:11px;letter-spacing:.08em}.ifc-fe-sticky strong[data-state=busy]{color:#ffd28b}.ifc-fe-sticky strong[data-state=error]{color:#ff7f98}.ifc-fe-sticky small{max-width:270px;color:#aeb5c0;font-size:10px}
@media(max-width:760px){.ifc-fe-main{padding:10px 8px 24px}.ifc-fe-header{height:56px}.ifc-fe-brand img{width:148px}.ifc-fe-project-head{gap:9px}.ifc-editor-app--frontend{padding:7px!important}.ifc-editor-app--frontend .ifc-editor-toolbar{grid-template-columns:1fr 1fr}.ifc-editor-app--frontend .ifc-editor-background-select{grid-column:1/-1}.ifc-editor-app--frontend .ifc-editor-main{display:flex;flex-direction:column}.ifc-editor-app--frontend .ifc-editor-viewport{order:1;min-height:340px;height:50svh;max-height:520px;border-radius:12px}.ifc-editor-app--frontend .ifc-editor-tools{order:2;display:grid;grid-template-columns:1fr;max-height:38svh;overflow:auto;padding:9px;border-radius:12px}.ifc-editor-app--frontend .ifc-editor-layer-switch{grid-template-columns:repeat(3,1fr);position:sticky;top:-9px;z-index:3;padding:5px 0;background:#090a0c}.ifc-editor-app--frontend .ifc-editor-layer-switch button,.ifc-editor-app--frontend .ifc-editor-segmented button{min-height:44px}.ifc-editor-app--frontend .ifc-editor-text-controls{max-height:none;overflow:visible}.ifc-editor-app--frontend .ifc-editor-actions{font-size:11px}.ifc-fe-sticky{grid-template-columns:minmax(0,1fr) 72px minmax(138px,1fr)}.ifc-fe-sticky .button{padding:0 9px}.ifc-fe-sticky small{max-width:145px}.ifc-fe-background-upload form{grid-template-columns:minmax(0,1fr) 86px}}
@media(max-width:390px){.ifc-fe-brand img{width:132px}.ifc-fe-account{font-size:11px}.ifc-editor-app--frontend .ifc-editor-toolbar{grid-template-columns:1fr}.ifc-editor-app--frontend .ifc-editor-background-select{grid-column:auto}.ifc-fe-sticky{grid-template-columns:1fr 64px 126px}.ifc-fe-sticky small{display:none}.ifc-fe-sticky .button{font-size:12px}}
@media(min-width:981px){.ifc-editor-app--frontend .ifc-editor-main{grid-template-columns:250px minmax(0,1fr)}.ifc-editor-app--frontend .ifc-editor-viewport{min-height:620px}.ifc-fe-background-upload{max-width:560px;margin-left:auto}}

/* Frontend Layout Registry / Studio 0.2.1 */
.ifc-fe-layout-shell{width:100%;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.ifc-fe-layout-source-hidden{display:none!important}.ifc-fe-layout-zones{display:grid;gap:var(--ifc-layout-gap,12px);width:min(100%,var(--ifc-layout-max-content,1600px));margin:0 auto;align-items:start}.ifc-fe-layout-shell[data-layout-mode=stacked] .ifc-fe-layout-zones{grid-template-columns:minmax(0,1fr);grid-template-areas:"header" "canvas" "primary" "secondary" "footer"}.ifc-fe-layout-shell[data-layout-mode=split] .ifc-fe-layout-zones{grid-template-columns:minmax(0,1fr) minmax(220px,var(--ifc-layout-primary-width,300px));grid-template-areas:"header header" "canvas primary" "canvas secondary" "footer footer"}.ifc-fe-layout-shell[data-layout-mode=workbench] .ifc-fe-layout-zones{grid-template-columns:minmax(220px,var(--ifc-layout-primary-width,292px)) minmax(0,1fr) minmax(220px,var(--ifc-layout-secondary-width,340px));grid-template-areas:"header header header" "primary canvas secondary" "footer footer footer"}.ifc-fe-layout-zone{display:flex;flex-direction:column;gap:var(--ifc-layout-gap,12px);min-width:0}.ifc-fe-layout-zone--header{grid-area:header}.ifc-fe-layout-zone--primary{grid-area:primary}.ifc-fe-layout-zone--canvas{grid-area:canvas}.ifc-fe-layout-zone--secondary{grid-area:secondary}.ifc-fe-layout-zone--footer{grid-area:footer}.ifc-fe-layout-zone-marker{display:none}.ifc-fe-layout-component{min-width:0}.ifc-fe-layout-component[hidden]{display:none!important}.ifc-fe-layout-component-head{display:none;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:8px 11px;border-bottom:1px solid rgba(255,255,255,.08);color:#f8f9fb}.ifc-fe-layout-component-title{overflow:hidden;font-size:12px;letter-spacing:.03em;text-overflow:ellipsis;white-space:nowrap}.ifc-fe-layout-component-head-actions{display:flex;align-items:center;gap:6px}.ifc-fe-layout-component-head button{min-height:32px;padding:0 9px;border:1px solid #424650;border-radius:8px;background:#181b21;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.ifc-fe-layout-component-body{min-width:0}.ifc-fe-layout-component.is-panel,.ifc-fe-layout-component.is-collapsible{overflow:hidden;border:1px solid #30343d;border-radius:14px;background:#101216}.ifc-fe-layout-component.is-panel>.ifc-fe-layout-component-head,.ifc-fe-layout-component.is-collapsible>.ifc-fe-layout-component-head{display:flex}.ifc-fe-layout-component.is-collapsible.is-collapsed>.ifc-fe-layout-component-body{display:none}.ifc-fe-layout-component:not(.is-collapsible) .ifc-fe-layout-collapse{display:none}.ifc-fe-layout-component.is-panel .ifc-fe-background-upload,.ifc-fe-layout-component.is-collapsible .ifc-fe-background-upload,.ifc-fe-layout-component.is-panel .ifc-fe-result,.ifc-fe-layout-component.is-collapsible .ifc-fe-result{margin:0;border:0;border-radius:0}.ifc-fe-layout-component[data-ifc-layout-component=project_header] .ifc-fe-project-head{margin:0}.ifc-fe-layout-component[data-ifc-layout-component=format_controls] .ifc-editor-toolbar{margin:0!important}.ifc-fe-layout-component[data-ifc-layout-component=canvas] .ifc-editor-viewport{width:100%;min-height:clamp(360px,62vh,820px);margin:0!important;order:initial!important}.ifc-fe-layout-component[data-ifc-layout-component=subject_tools] #ifc-editor-subject-controls,.ifc-fe-layout-component[data-ifc-layout-component=background_tools] #ifc-editor-background-controls,.ifc-fe-layout-component[data-ifc-layout-component=text_controls] #ifc-editor-text-controls{padding:10px}.ifc-fe-layout-component[data-ifc-layout-component=mode_switch] .ifc-editor-layer-switch{margin:0;padding:7px;background:#090a0c}.ifc-fe-layout-component[data-ifc-layout-component=zoom_controls] .ifc-editor-zoom{margin:0;padding:8px}.ifc-fe-layout-component[data-ifc-layout-component=editor_status] .ifc-editor-actions{margin:0;padding:10px;border:1px solid #30343d;border-radius:12px}.ifc-fe-layout-component[data-ifc-layout-component=editor_feedback] .ifc-editor-feedback{margin:0}.ifc-fe-layout-component[data-ifc-layout-component=generation_result] .ifc-fe-result{margin:0}.ifc-fe-layout-component[data-ifc-layout-component=actions]:not(.is-sticky) .ifc-fe-sticky{position:static;left:auto;bottom:auto;width:100%;max-width:none;transform:none}.ifc-fe-layout-component[data-ifc-layout-component=actions].is-panel .ifc-fe-sticky{border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}.ifc-fe-layout-component[data-ifc-layout-component=actions].is-sticky{min-height:0}.ifc-fe-layout-component[data-ifc-layout-component=actions].is-sticky>.ifc-fe-layout-component-body{height:0}.ifc-fe-layout-component[data-ifc-layout-component=actions].is-sticky .ifc-fe-sticky{display:grid}.ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-fe-layout-component[data-ifc-layout-component=actions] .ifc-fe-sticky,.ifc-fe-layout-shell[data-layout-breakpoint=tablet] .ifc-fe-layout-component[data-ifc-layout-component=actions]:not(.is-sticky) .ifc-fe-sticky{grid-template-columns:minmax(180px,1fr) auto auto}.ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-editor-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1fr) minmax(220px,1fr);align-items:end}.ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-editor-text-controls{max-height:calc(100vh - 170px);overflow:auto}.ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-fe-background-upload{max-width:none;margin:0}.ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-fe-layout-zone--primary,.ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-fe-layout-zone--secondary{position:sticky;top:76px;max-height:calc(100vh - 92px);overflow:auto;scrollbar-width:thin}.ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-fe-layout-zone--canvas{min-height:620px}.ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-fe-layout-component[data-ifc-layout-component=canvas] .ifc-editor-viewport{min-height:340px;height:50svh;max-height:560px}.ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-toolbar{grid-template-columns:1fr}.ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-background-select{grid-column:auto}.ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-layer-switch{grid-template-columns:repeat(3,1fr);position:static}.ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-layer-switch button,.ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-segmented button{min-height:44px}.ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-text-controls{max-height:none;overflow:visible}.ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-fe-layout-component[data-ifc-layout-component=actions]:not(.is-sticky) .ifc-fe-sticky{grid-template-columns:minmax(0,1fr) 72px minmax(138px,1fr)}body[data-ifc-layout-breakpoint=desktop]{padding-bottom:24px}body[data-ifc-layout-breakpoint=tablet]:not(.ifc-layout-studio-preview){padding-bottom:32px}body[data-ifc-layout-breakpoint=mobile]:not(.ifc-layout-studio-preview){padding-bottom:calc(104px + env(safe-area-inset-bottom))}

/* Studio preview instrumentation: only active inside the admin iframe. */
body.ifc-layout-studio-preview{padding-bottom:20px!important}.ifc-layout-studio-preview .ifc-fe-header{position:relative}.ifc-layout-studio-preview .ifc-fe-main{width:100%;padding:10px}.ifc-layout-studio-preview .ifc-fe-layout-zones{width:100%}.ifc-layout-studio-preview .ifc-fe-layout-zone{min-height:70px;padding:30px 6px 6px;border:1px dashed rgba(255,49,87,.55);border-radius:13px;background:rgba(217,0,54,.035);transition:border-color .16s,background .16s}.ifc-layout-studio-preview .ifc-fe-layout-zone.is-drop-target{border-color:#ff3157;background:rgba(217,0,54,.14)}.ifc-layout-studio-preview .ifc-fe-layout-zone-marker{position:absolute;display:block;margin:-24px 0 0 3px;color:#ff5b78;font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.ifc-layout-studio-preview .ifc-fe-layout-component{position:relative;border:1px solid rgba(255,255,255,.17);border-radius:12px;background:#0e1014;opacity:1}.ifc-layout-studio-preview .ifc-fe-layout-component.is-selected{outline:3px solid rgba(255,49,87,.72);outline-offset:2px}.ifc-layout-studio-preview .ifc-fe-layout-component.is-dragging{opacity:.42}.ifc-layout-studio-preview .ifc-fe-layout-component.is-layout-hidden{opacity:.46}.ifc-layout-studio-preview .ifc-fe-layout-component.is-intrinsic-hidden>.ifc-fe-layout-component-body{display:none}.ifc-layout-studio-preview .ifc-fe-layout-component.is-intrinsic-hidden::after{display:block;padding:13px;color:#929aa7;font-size:11px;content:"Skjult i nåværende editorstatus – kan fortsatt plasseres"}.ifc-layout-studio-preview .ifc-fe-layout-component-head{display:flex!important;border-bottom:1px solid rgba(255,49,87,.24);background:#15171c}.ifc-layout-studio-preview .ifc-fe-layout-drag-handle{border-color:#d90036;background:#d90036;color:#fff;cursor:grab}.ifc-layout-studio-preview .ifc-fe-layout-drag-handle:active{cursor:grabbing}.ifc-layout-studio-preview .ifc-fe-layout-visibility:disabled{opacity:.45;cursor:not-allowed}.ifc-layout-studio-preview .ifc-fe-layout-component-body{pointer-events:none}.ifc-layout-studio-preview .ifc-fe-layout-component[data-ifc-layout-component=actions].is-sticky>.ifc-fe-layout-component-body{height:auto}.ifc-layout-studio-preview .ifc-fe-layout-component[data-ifc-layout-component=actions] .ifc-fe-sticky{position:static!important;left:auto!important;bottom:auto!important;width:100%!important;transform:none!important}.ifc-layout-studio-preview .ifc-fe-layout-component[data-ifc-layout-component=canvas] .ifc-editor-viewport{min-height:360px;height:54vh;max-height:680px}.ifc-layout-studio-preview .ifc-fe-account{pointer-events:none}

@media(max-width:1099px){.ifc-fe-layout-shell[data-layout-mode=workbench] .ifc-fe-layout-zones{grid-template-columns:minmax(0,1fr) minmax(220px,var(--ifc-layout-secondary-width,320px));grid-template-areas:"header header" "canvas primary" "canvas secondary" "footer footer"}.ifc-fe-layout-shell[data-layout-breakpoint=tablet] .ifc-fe-layout-component[data-ifc-layout-component=canvas] .ifc-editor-viewport{min-height:520px}}
@media(max-width:767px){.ifc-fe-layout-shell[data-layout-mode=split] .ifc-fe-layout-zones,.ifc-fe-layout-shell[data-layout-mode=workbench] .ifc-fe-layout-zones{grid-template-columns:minmax(0,1fr);grid-template-areas:"header" "canvas" "primary" "secondary" "footer"}.ifc-fe-layout-component.is-panel,.ifc-fe-layout-component.is-collapsible{border-radius:12px}.ifc-fe-layout-component[data-ifc-layout-component=actions]:not(.is-sticky) .ifc-fe-sticky{grid-template-columns:1fr 70px minmax(126px,1fr)}.ifc-layout-studio-preview .ifc-fe-layout-zone{padding-left:4px;padding-right:4px}}

/* Frontend 0.2.3: direct authenticated small-thumbnail delivery in shared Asset Library frames. */
.ifc-fe-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ifc-editor-app--frontend .ifc-editor-background-select{display:none!important}
.ifc-fe-background-upload{display:grid;gap:10px}
.ifc-fe-background-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ifc-fe-background-heading strong{font-size:14px;line-height:1.2;color:#fff}
.ifc-fe-background-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ifc-fe-background-actions>.button{width:100%;min-height:48px;margin:0;border:1px solid #3d424b;border-radius:12px;background:#181b20;color:#fff;font-size:14px;font-weight:850;line-height:1.15;white-space:normal}
.ifc-fe-background-actions>.button:hover,.ifc-fe-background-actions>.button:focus-visible{border-color:#ef174d;background:#21151a;color:#fff}
.ifc-fe-background-actions>.button[aria-busy=true]{opacity:.65}
.ifc-fe-background-upload>.ifc-fe-status:empty{display:none}
body.ifc-fe-gallery-open{overflow:hidden}
.ifc-fe-gallery{position:fixed;inset:0;z-index:10020;display:grid;align-items:end;justify-items:stretch}
.ifc-fe-gallery[hidden]{display:none!important}
.ifc-fe-gallery__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(7px)}
.ifc-fe-gallery__panel{position:relative;z-index:1;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;width:100%;max-height:min(88svh,900px);padding:14px max(12px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden;border:1px solid #383d46;border-bottom:0;border-radius:22px 22px 0 0;background:#0d0f13;box-shadow:0 -24px 70px rgba(0,0,0,.55)}
.ifc-fe-gallery__header{display:flex;align-items:center;justify-content:space-between;gap:14px}
.ifc-fe-gallery__header span{display:block;color:#ff4267;font-size:9px;font-weight:900;letter-spacing:.14em}
.ifc-fe-gallery__header h2{margin:3px 0 0;color:#fff;font-size:20px;line-height:1.1}
.ifc-fe-gallery__header>.button{min-height:44px;border-color:#3d424b;background:#171a20;color:#fff}
.ifc-fe-gallery__categories{display:flex;gap:7px;overflow-x:auto;padding:1px 0 4px;scrollbar-width:thin}
.ifc-fe-gallery__category.button{flex:0 0 auto;min-height:42px;padding:0 14px;border:1px solid #343943;border-radius:999px;background:#171a20;color:#cdd2da;font-size:12px;font-weight:800}
.ifc-fe-gallery__category.button.is-active{border-color:#d90036;background:#d90036;color:#fff}
.ifc-fe-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-content:start;overflow:auto;padding:2px 2px 12px;overscroll-behavior:contain}
.ifc-fe-gallery__grid[aria-busy=true]{opacity:.58}
.ifc-fe-gallery__item{position:relative;display:block;min-width:0;aspect-ratio:1/1;padding:0;overflow:hidden;border:2px solid #282d35;border-radius:11px;background:#15181d;color:#fff;cursor:pointer}
.ifc-fe-gallery__item:hover,.ifc-fe-gallery__item:focus-visible{border-color:#ff3157;outline:3px solid rgba(255,49,87,.24);outline-offset:1px}
.ifc-fe-gallery__item.is-selecting{border-color:#ff3157;opacity:.72}
.ifc-fe-gallery__item.is-selected{border-color:#70e89c}
.ifc-fe-gallery__item.is-selected:after{content:'✓';position:absolute;right:5px;top:5px;display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#70e89c;color:#07120b;font-size:14px;font-weight:950;box-shadow:0 2px 10px rgba(0,0,0,.4)}
.ifc-fe-gallery__item>.ifc-asset-thumb{width:100%;height:100%;padding:6px}
.ifc-fe-gallery__item .ifc-asset-preview-status{max-width:90%;padding:0 4px;color:#596170;font-size:9px;white-space:normal}
.ifc-fe-gallery__empty{grid-column:1/-1;display:grid;gap:5px;padding:24px;border:1px dashed #3a4049;border-radius:13px;color:#aeb6c2;text-align:center}
.ifc-fe-gallery__empty strong{color:#fff}
.ifc-fe-gallery__status{min-height:18px;margin:0;color:#969fab;font-size:11px}
.ifc-fe-gallery__status.is-working{color:#ffd187}
.ifc-fe-gallery__status.is-error{color:#ff7f97}

/* iOS Safari zooms and scrolls forms when controls render below 16 px. Keep
   the shared controls and their values unchanged, but give the mobile FE a
   stable visual box so a theme/category selection cannot move the form. */
@media (max-width:767px){
  .ifc-editor-app--frontend :is(select,textarea,input[type=text],input[type=number],input[type=email],input[type=search],input[type=url],input[type=tel]){box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;font-size:16px!important;line-height:1.25!important}
  .ifc-editor-app--frontend select{height:44px;padding-top:0!important;padding-bottom:0!important;white-space:nowrap;text-overflow:ellipsis}
  .ifc-editor-app--frontend label,.ifc-editor-app--frontend .ifc-ui-field,.ifc-editor-app--frontend .ifc-text-template-select-row>*{min-width:0}
}
@media (min-width:768px){
  .ifc-fe-gallery{align-items:center;justify-items:center;padding:24px}
  .ifc-fe-gallery__panel{width:min(1180px,96vw);height:min(820px,90vh);max-height:none;border-bottom:1px solid #383d46;border-radius:20px;padding:18px}
  .ifc-fe-gallery__grid{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:9px}
  .ifc-fe-gallery__item>.ifc-asset-thumb{padding:8px}
}
@media (min-width:1200px){
  .ifc-fe-gallery__panel{width:min(1480px,97vw)}
  .ifc-fe-gallery__grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px}
}

/* 0.2.6: Layout Studio-owned gallery placement and full-frame pointer target. */
.ifc-fe-gallery__item{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ifc-fe-gallery__item>.ifc-asset-thumb,.ifc-fe-gallery__item>.ifc-fe-sr-only{pointer-events:none}
body[data-ifc-background-gallery-position=top] .ifc-fe-gallery{align-items:start!important;padding-top:var(--ifc-background-gallery-offset,0px);padding-bottom:0}
body[data-ifc-background-gallery-position=top] .ifc-fe-gallery__panel{max-height:calc(100svh - var(--ifc-background-gallery-offset,0px));border-top:0;border-bottom:1px solid #383d46;border-radius:0 0 22px 22px;box-shadow:0 24px 70px rgba(0,0,0,.55)}
body[data-ifc-background-gallery-position=center] .ifc-fe-gallery{align-items:center!important;padding-top:var(--ifc-background-gallery-offset,0px);padding-bottom:var(--ifc-background-gallery-offset,0px)}
body[data-ifc-background-gallery-position=bottom] .ifc-fe-gallery{align-items:end!important;padding-top:0;padding-bottom:var(--ifc-background-gallery-offset,0px)}
body[data-ifc-layout-breakpoint=mobile][data-ifc-background-gallery-position=top] .ifc-fe-gallery__panel{width:100%;height:auto;min-height:0}

/* 0.2.8: canvas-first mobile preview; customer format is frozen at project creation while Editor-owned guides remain visible. */
.ifc-fe-layout-component[data-ifc-layout-component=canvas]>.ifc-fe-layout-component-body{position:relative}
.ifc-fe-mobile-editor-overlay[hidden]{display:none!important}

@media(max-width:767px){
  .ifc-fe-layout-shell[data-mobile-preview-sticky="1"] .ifc-fe-layout-zone--canvas{
    position:sticky;
    top:calc(56px + var(--ifc-mobile-preview-top-gap,0px));
    z-index:80;
    padding:0 0 6px;
    background:#07080b;
    isolation:isolate;
  }
  .ifc-fe-layout-shell[data-mobile-preview-sticky="1"] .ifc-fe-layout-component[data-ifc-layout-component=canvas] .ifc-editor-viewport{
    height:var(--ifc-mobile-preview-height,44svh)!important;
    min-height:280px!important;
    max-height:calc(100svh - 132px)!important;
  }
  .ifc-fe-layout-shell[data-mobile-preview-sticky="1"] .ifc-fe-layout-component[data-ifc-layout-component=text_controls]{
    scroll-margin-top:calc(56px + var(--ifc-mobile-preview-height,44svh) + var(--ifc-mobile-preview-top-gap,0px) + 14px);
  }
  .ifc-fe-layout-shell[data-mobile-preview-sticky="1"] .ifc-fe-layout-component[data-ifc-layout-component=text_controls] :is(input,select,textarea,button){
    scroll-margin-top:calc(56px + var(--ifc-mobile-preview-height,44svh) + var(--ifc-mobile-preview-top-gap,0px) + 18px);
  }
  .ifc-fe-layout-shell[data-mobile-image-overlay="1"] .ifc-fe-mobile-editor-overlay{
    position:absolute;
    left:7px;
    right:7px;
    bottom:7px;
    z-index:12;
    display:grid;
    gap:6px;
    max-height:calc(100% - 14px);
    pointer-events:none;
  }
  .ifc-fe-layout-shell[data-mobile-image-overlay="1"] .ifc-fe-mobile-editor-overlay>.ifc-fe-layout-component{
    pointer-events:auto;
  }
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component-head{display:none!important}
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component-body{min-width:0}
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=background_upload],
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=subject_tools],
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=background_tools]{
    max-height:min(31svh,230px);
    overflow:auto;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:12px!important;
    background:rgba(10,12,16,.88)!important;
    box-shadow:0 10px 32px rgba(0,0,0,.38);
    backdrop-filter:blur(15px);
  }
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=background_upload] .ifc-fe-background-upload,
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=subject_tools] #ifc-editor-subject-controls,
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=background_tools] #ifc-editor-background-controls{
    margin:0!important;
    padding:8px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=mode_switch]{
    overflow:hidden;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:12px!important;
    background:rgba(9,10,13,.91)!important;
    box-shadow:0 8px 26px rgba(0,0,0,.34);
    backdrop-filter:blur(15px);
  }
  .ifc-fe-mobile-editor-overlay .ifc-editor-layer-switch{
    position:static!important;
    margin:0!important;
    padding:5px!important;
    gap:5px!important;
    background:transparent!important;
  }
  .ifc-fe-mobile-editor-overlay .ifc-editor-layer-switch button{
    min-height:40px!important;
    padding:0 8px!important;
    font-size:13px!important;
  }
  .ifc-fe-mobile-editor-overlay[data-mode=subject] .ifc-fe-layout-component[data-ifc-layout-component=background_upload],
  .ifc-fe-mobile-editor-overlay[data-mode=text] .ifc-fe-layout-component[data-ifc-layout-component=background_upload],
  .ifc-fe-mobile-editor-overlay[data-mode=text] .ifc-fe-layout-component[data-ifc-layout-component=subject_tools],
  .ifc-fe-mobile-editor-overlay[data-mode=text] .ifc-fe-layout-component[data-ifc-layout-component=background_tools]{
    display:none!important;
  }
  .ifc-fe-layout-shell[data-editor-mode=text] .ifc-fe-layout-zone--primary,
  .ifc-fe-layout-shell[data-editor-mode=text] .ifc-fe-layout-zone--secondary{
    position:relative;
    z-index:2;
  }
}
@media(max-width:767px){
  .ifc-editor-app--frontend.ifc-fe-layout-shell[data-mobile-preview-sticky="1"]{overflow:visible!important}
}

/* 0.2.8: required project setup and canvas-first mobile workflow. */
.ifc-fe-project-question{display:grid;gap:8px;margin:0;padding:0}
.ifc-fe-project-question h2{margin:0 0 2px;color:#fff;font-size:clamp(20px,5vw,28px);line-height:1.15}
.ifc-fe-upload-form>.ifc-ui-field,.ifc-fe-project-question>.ifc-ui-field,.ifc-fe-orientation legend{margin:0;color:#f5f6f8;font-size:13px;font-weight:850}
.ifc-fe-upload-form>input[type=text],.ifc-fe-project-question select{box-sizing:border-box;width:100%;min-height:50px;padding:0 13px;border:1px solid #383d47;border-radius:11px;background:#15181e;color:#fff;font:inherit}
.ifc-fe-project-question select:invalid,.ifc-fe-upload-form>input[type=text]:placeholder-shown{color:#aeb5c0}
.ifc-fe-orientation{min-width:0;margin:0;padding:0;border:0}
.ifc-fe-orientation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:8px}
.ifc-fe-orientation-options label{position:relative;min-width:0;cursor:pointer}
.ifc-fe-orientation-options input{position:absolute;opacity:0;pointer-events:none}
.ifc-fe-orientation-options span{display:flex;align-items:center;justify-content:center;min-height:52px;padding:0 12px;border:1px solid #383d47;border-radius:12px;background:#15181e;color:#fff;font-size:16px;font-weight:850;transition:border-color .15s,background .15s,box-shadow .15s}
.ifc-fe-orientation-options input:checked+span{border-color:#d90036;background:#d90036;color:#fff}
.ifc-fe-orientation-options input:focus-visible+span{outline:3px solid rgba(255,49,87,.38);outline-offset:2px}
.ifc-fe-required-note{margin:-4px 0 0!important;color:#9099a6!important;font-size:11px!important}
.ifc-fe-upload-form .ifc-fe-primary:disabled{border-color:#343842!important;background:#20232a!important;color:#7d8591!important;cursor:not-allowed;opacity:1}
.ifc-editor-app--frontend .ifc-editor-toolbar{display:none!important}

@media(max-width:767px){
  body.ifc-fe-has-project .ifc-fe-main{padding-top:0}
  .ifc-fe-layout-shell[data-mobile-preview-sticky="1"] .ifc-fe-layout-zone--canvas{top:calc(var(--ifc-fe-sticky-top,56px) + var(--ifc-mobile-preview-top-gap,0px))}
  .ifc-fe-layout-shell[data-mobile-preview-sticky="1"] .ifc-fe-layout-component[data-ifc-layout-component=text_controls]{scroll-margin-top:calc(var(--ifc-fe-sticky-top,56px) + var(--ifc-mobile-preview-height,44svh) + var(--ifc-mobile-preview-top-gap,0px) + 14px)}
  .ifc-fe-layout-shell[data-mobile-preview-sticky="1"] .ifc-fe-layout-component[data-ifc-layout-component=text_controls] :is(input,select,textarea,button){scroll-margin-top:calc(var(--ifc-fe-sticky-top,56px) + var(--ifc-mobile-preview-height,44svh) + var(--ifc-mobile-preview-top-gap,0px) + 18px)}
  .ifc-fe-upload-form>input[type=text],.ifc-fe-project-question select{font-size:16px!important}
}

/* The Editor host itself is only a component source in FE. Layout Studio's
   zone grid owns spacing, so the original Editor grid must not add an empty
   row before the canvas. */
.ifc-editor-app--frontend.ifc-fe-layout-shell{display:block!important;gap:0!important}
@media(max-width:767px){
  .ifc-fe-layout-shell[data-layout-mode=stacked] .ifc-fe-layout-zones{grid-template-areas:"canvas" "header" "primary" "secondary" "footer"}
}

/* 0.2.9: account menu, separately placeable editor tools and text-composited result mode. */
.ifc-fe-account-menu{position:relative;display:flex;align-items:center;min-width:0}
.ifc-fe-account-trigger{display:inline-flex;align-items:center;gap:10px;min-height:44px;max-width:min(44vw,280px);padding:0 4px 0 10px;border:0;background:transparent;color:#f5f6f8;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.ifc-fe-account-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ifc-fe-account-trigger>b{display:grid;gap:4px;width:28px;padding:8px 4px}
.ifc-fe-account-trigger i{display:block;width:20px;height:2px;border-radius:2px;background:#f5f6f8}
.ifc-fe-account-trigger:focus-visible{outline:3px solid rgba(255,49,87,.42);outline-offset:2px;border-radius:8px}
.ifc-fe-account-panel{position:absolute;top:calc(100% + 7px);right:0;z-index:1200;display:grid;min-width:250px;padding:10px;border:1px solid #383d47;border-radius:14px;background:#111318;box-shadow:0 22px 58px rgba(0,0,0,.58)}
.ifc-fe-account-panel[hidden]{display:none!important}
.ifc-fe-account-panel strong{padding:8px 10px;color:#ff3157;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.ifc-fe-account-panel a{display:flex;align-items:center;min-height:44px;padding:0 10px;border-radius:9px;color:#f5f6f8;text-decoration:none;font-size:13px;font-weight:750}
.ifc-fe-account-panel a:hover,.ifc-fe-account-panel a:focus-visible{background:#1c2027;color:#fff;outline:none}

.ifc-fe-layout-move{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:30px;padding:0;border:1px solid #414650;border-radius:7px;background:#171a20;color:#fff;font-size:15px;cursor:pointer}
.ifc-fe-layout-move:hover{border-color:#d90036}

.ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-layout-component.is-preview-readonly-hidden,
.ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-mobile-editor-overlay{display:none!important}
.ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-layout-component[data-ifc-layout-component=generation_result]{display:block!important;margin:0!important}
.ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-layout-component[data-ifc-layout-component=generation_result]>.ifc-fe-layout-component-head{display:none!important}
.ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-result{margin:0;padding:8px;border:0;border-radius:0;background:#07080b}
.ifc-fe-result-actions{position:sticky;bottom:max(8px,env(safe-area-inset-bottom));z-index:6;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px;padding:8px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(15,17,22,.94);backdrop-filter:blur(16px)}
.ifc-fe-result-actions .button{min-width:0;min-height:42px;padding:0 6px;font-size:11px;line-height:1.15;white-space:normal}
.ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-result-preview{min-height:0;max-height:calc(100svh - var(--ifc-fe-sticky-top,56px) - 92px)}
.ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-result-preview>[data-ifc-media-preview-image]{width:100%;height:auto;max-height:calc(100svh - var(--ifc-fe-sticky-top,56px) - 112px);object-fit:contain}

@media(max-width:767px){
  .ifc-fe-account-trigger{max-width:45vw;padding-left:4px;font-size:12px}
  .ifc-fe-account-panel{position:fixed;top:calc(var(--ifc-fe-sticky-top,56px) + 6px);right:8px;left:8px;min-width:0}
  .ifc-fe-layout-shell[data-mobile-image-overlay="1"] .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=subject_tools],
  .ifc-fe-layout-shell[data-mobile-image-overlay="1"] .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=background_tools]{
    max-height:min(31svh,230px);overflow:auto;border:1px solid rgba(255,255,255,.16)!important;border-radius:12px!important;background:rgba(10,12,16,.88)!important;box-shadow:0 10px 32px rgba(0,0,0,.38);backdrop-filter:blur(15px)
  }
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=subject_tools] #ifc-editor-subject-controls,
  .ifc-fe-mobile-editor-overlay .ifc-fe-layout-component[data-ifc-layout-component=background_tools] #ifc-editor-background-controls{margin:0!important;padding:8px!important;border:0!important;border-radius:0!important;background:transparent!important}
  .ifc-fe-mobile-editor-overlay[data-mode=subject] .ifc-fe-layout-component[data-ifc-layout-component=background_upload],
  .ifc-fe-mobile-editor-overlay[data-mode=subject] .ifc-fe-layout-component[data-ifc-layout-component=background_tools],
  .ifc-fe-mobile-editor-overlay[data-mode=background] .ifc-fe-layout-component[data-ifc-layout-component=subject_tools],
  .ifc-fe-mobile-editor-overlay[data-mode=text] .ifc-fe-layout-component[data-ifc-layout-component=background_upload],
  .ifc-fe-mobile-editor-overlay[data-mode=text] .ifc-fe-layout-component[data-ifc-layout-component=subject_tools],
  .ifc-fe-mobile-editor-overlay[data-mode=text] .ifc-fe-layout-component[data-ifc-layout-component=background_tools]{display:none!important}
  .ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-layout-zone--canvas{padding-bottom:0}
  .ifc-fe-layout-shell.is-generation-result-mode .ifc-fe-result-head{padding:5px 4px 3px}
}

.ifc-fe-project-field-heading{display:block!important;margin:4px 0 -4px!important;color:#fff!important;font-size:16px!important;font-weight:900!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important}

/* 0.2.14 — mobile text editing and background-control polish. */
body:not(.ifc-layout-studio-preview) .ifc-fe-layout-component.is-panel>.ifc-fe-layout-component-head{
    display:none;
}
body:not(.ifc-layout-studio-preview) .ifc-fe-layout-component.is-collapsible>.ifc-fe-layout-component-head{
    display:flex;
}
.ifc-fe-layout-component.is-mode-hidden{
    display:none!important;
}
.ifc-fe-background-heading{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.ifc-fe-background-upload{
    gap:9px;
    background:#15181f;
}
.ifc-fe-background-actions>.button,
.ifc-editor-app--frontend .ifc-editor-tools .button,
.ifc-editor-app--frontend .ifc-editor-segmented button,
.ifc-editor-app--frontend .ifc-editor-layer-switch button,
.ifc-editor-app--frontend .ifc-editor-zoom button{
    border-color:#454b56;
    background:#292e37;
    color:#fff;
}
.ifc-fe-background-actions>.button:hover,
.ifc-fe-background-actions>.button:focus-visible,
.ifc-editor-app--frontend .ifc-editor-tools .button:hover,
.ifc-editor-app--frontend .ifc-editor-tools .button:focus-visible{
    border-color:#f02a58;
    background:#29202a;
}
.ifc-editor-app--frontend,
.ifc-editor-app--frontend .ifc-editor-tools,
.ifc-fe-layout-component.is-panel,
.ifc-fe-layout-component.is-collapsible{
    background:#161a21;
}
.ifc-editor-app--frontend .ifc-editor-mode-panel,
.ifc-editor-app--frontend .ifc-editor-selected-text,
.ifc-editor-app--frontend .ifc-editor-template-browser,
.ifc-editor-app--frontend .ifc-editor-effect-card{
    background:#1b2028;
}
.ifc-editor-app--frontend :is(textarea,select,input[type=text],input[type=number],input[type=search],input[type=email],input[type=url],input[type=tel]){
    border-color:#454b56;
    background:#242a33;
    color:#fff;
}
.ifc-fe-background-coverage{
    margin:0;
    border:1px solid rgba(73,236,132,.5);
    background:#0c351c;
    color:#75f0a2;
    font-size:12px;
    font-weight:900;
    line-height:1.4;
}
.ifc-fe-background-coverage.is-warning{
    border-color:#ff1748;
    background:#500815;
    color:#ff4267;
}
.ifc-editor-app--frontend .ifc-editor-background-action-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
}
.ifc-editor-app--frontend .ifc-editor-background-action-row .button{
    min-height:44px;
    padding:0 5px;
    font-size:11px;
}
.ifc-editor-app--frontend .ifc-editor-object-tools-heading{
    gap:5px;
}
.ifc-editor-app--frontend .ifc-editor-object-tools-heading strong{
    font-size:14px;
}
.ifc-editor-app--frontend .ifc-editor-object-tools-heading span{
    color:#d0d4dc;
}
.ifc-editor-app--frontend #ifc-editor-text-value{
    min-height:76px;
    background:#20242c;
}
.ifc-editor-app--frontend #ifc-editor-text-value:focus{
    background:#252a33;
}
@media(max-width:767px){
    .ifc-editor-app--frontend .ifc-editor-background-action-row .button{
        font-size:10.5px;
        letter-spacing:-.01em;
    }
}
.ifc-layout-studio-preview .ifc-fe-layout-component:not(.is-collapsible)>.ifc-fe-layout-component-head{
    display:none!important;
}
.ifc-layout-studio-preview .ifc-fe-layout-component.is-collapsible>.ifc-fe-layout-component-head{
    display:flex!important;
}


/* 0.2.15 — clearer active controls and project preview history. */
.ifc-editor-app--frontend .ifc-editor-segmented button.is-active,
.ifc-editor-app--frontend .ifc-editor-layer-switch button.is-active{
    border-color:#d90036!important;
    background:#d90036!important;
    color:#fff!important;
}
.ifc-fe-history{display:grid;gap:10px;padding:12px;border:1px solid #343a45;background:#161a21}
.ifc-fe-history-head{display:flex;align-items:end;justify-content:space-between;gap:10px}
.ifc-fe-history-head span{color:#ff3157;font-size:10px;font-weight:900;letter-spacing:.14em}
.ifc-fe-history-head h2{margin:3px 0 0;color:#fff;font-size:17px}
.ifc-fe-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.ifc-fe-history-item{display:grid;gap:5px;min-width:0;padding:5px;border:1px solid #454b56;border-radius:11px;background:#292e37;color:#fff;cursor:pointer;text-align:left}
.ifc-fe-history-item:hover,.ifc-fe-history-item:focus-visible{border-color:#ff3157;outline:none}
.ifc-fe-history-item.is-selected{border-color:#d90036;box-shadow:0 0 0 2px rgba(217,0,54,.28)}
.ifc-fe-history-thumb{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:7px;background:repeating-conic-gradient(#e7eaee 0 25%,#cfd4da 0 50%) 50%/18px 18px}
.ifc-fe-history-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.ifc-fe-history-thumb .ifc-preview-pending{display:grid;place-items:center;width:100%;height:100%;padding:6px;color:#59616d;font-size:10px;text-align:center}
.ifc-fe-history-meta{overflow:hidden;color:#cbd1da;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.ifc-fe-history-status{min-height:18px;margin:0;color:#aeb5c0;font-size:11px}
.ifc-fe-history-status.is-loading{color:#ffd28b}.ifc-fe-history-status.is-error{color:#ff6d87}
@media(max-width:767px){.ifc-fe-history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* 0.2.16 — balanced mobile zoom controls and complete text-field visibility. */
@media(max-width:767px){
    .ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-zoom{
        display:grid;
        grid-template-columns:minmax(48px,.65fr) minmax(118px,1.6fr) minmax(48px,.65fr) auto;
        align-items:center;
        gap:7px;
        width:100%;
    }
    .ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-zoom button{
        width:100%;
        min-width:0;
        padding:0 7px;
        white-space:nowrap;
        font-size:13px;
        letter-spacing:-.01em;
    }
    .ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-zoom span{
        min-width:46px;
        white-space:nowrap;
    }
    .ifc-fe-layout-shell[data-layout-breakpoint=mobile] .ifc-editor-text-layer-list{
        overflow:visible;
    }
}

/* 0.2.17 — three generation profiles and generation-status overlay. */
.ifc-fe-sticky{
    grid-template-columns:minmax(150px,.9fr) auto minmax(360px,1.8fr)!important;
}
.ifc-fe-action-copy{min-width:0;padding-left:5px}
.ifc-fe-save-button{min-width:74px}
.ifc-fe-generation-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-width:0}
.ifc-fe-generation-modes .button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:5px 8px!important;border-color:#6a1c2a!important;background:#35070f!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 5px 14px rgba(0,0,0,.24);line-height:1.08}
.ifc-fe-generation-modes .button strong{max-width:100%;overflow:visible;color:inherit;font-size:12px;letter-spacing:0;text-align:center;text-overflow:clip;white-space:normal}
.ifc-fe-generation-modes .button small{max-width:100%;margin-top:3px;overflow:hidden;color:#c4cad3;font-size:9px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.ifc-fe-generation-modes .button:hover,.ifc-fe-generation-modes .button:focus-visible{border-color:#8d293c!important;background:#470a15!important;color:#fff!important}
.ifc-fe-generation-modes .button.is-selected{border-color:#a4384d!important;background:#5a0d1c!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 5px 16px rgba(0,0,0,.3)}
.ifc-fe-generation-modes .button.is-selected small{color:#fff}
.ifc-fe-generation-overlay{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:18px;isolation:isolate}
.ifc-fe-generation-overlay[hidden]{display:none!important}
.ifc-fe-generation-overlay-backdrop{position:absolute;inset:0;background:rgba(2,3,5,.76);backdrop-filter:blur(8px)}
.ifc-fe-generation-overlay-card{position:relative;z-index:1;display:grid;justify-items:center;width:min(460px,100%);padding:24px 22px 22px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:linear-gradient(155deg,#20242c,#101217 68%);box-shadow:0 30px 90px rgba(0,0,0,.72);color:#fff;text-align:center}
.ifc-fe-generation-overlay-stage{width:100%;margin-bottom:8px;color:#aeb6c2;font-size:10px;font-weight:900;letter-spacing:.13em;text-align:left}
.ifc-fe-generation-overlay-kicker{color:#ff3157;font-size:10px;font-weight:950;letter-spacing:.18em}
.ifc-fe-generation-overlay-card h2{margin:15px 0 6px;color:#fff;font-size:24px}
.ifc-fe-generation-overlay-card p{margin:0;color:#d5dae2;font-size:14px;line-height:1.45}
.ifc-fe-generation-jokes{width:100%;min-height:104px;margin-top:16px;padding:14px 16px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(0,0,0,.24);text-align:left}
.ifc-fe-generation-jokes>span{display:block;color:#ff3157;font-size:10px;font-weight:950;letter-spacing:.13em}
.ifc-fe-generation-jokes p{margin:8px 0 0;color:#fff;font-size:15px;line-height:1.45}
.ifc-fe-generation-overlay-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:16px}
.ifc-fe-generation-overlay-actions[hidden]{display:none!important}
.ifc-fe-generation-overlay-actions .button{min-height:44px;border:1px solid #454b56;border-radius:10px;background:#292e37;color:#fff;font-weight:850}
.ifc-fe-generation-overlay-actions .button-primary{border-color:#d90036;background:#d90036}
.ifc-fe-generation-overlay.is-error .ifc-fe-generation-overlay-card{border-color:#ff3157}
.ifc-fe-generation-overlay.is-complete .ifc-fe-generation-overlay-card{border-color:#55d78b}
.ifc-fe-pixel-eater{position:relative;width:190px;height:42px;margin-top:20px;overflow:hidden}
.ifc-fe-pixel-eater i{position:absolute;left:0;top:4px;width:34px;height:34px;border-radius:50%;background:#ffcc35;animation:ifc-fe-eater-move 2.5s linear infinite}
.ifc-fe-pixel-eater i:before{content:"";position:absolute;right:-1px;top:0;border-top:17px solid transparent;border-bottom:17px solid transparent;border-right:0;border-left:19px solid #20242c;transform-origin:left center;animation:ifc-fe-eater-mouth .34s ease-in-out infinite alternate}
.ifc-fe-pixel-eater b{position:absolute;top:18px;width:6px;height:6px;border-radius:50%;background:#f7f8fb;animation:ifc-fe-dot-eaten 2.5s linear infinite}
.ifc-fe-pixel-eater b:nth-of-type(1){left:62px}.ifc-fe-pixel-eater b:nth-of-type(2){left:90px}.ifc-fe-pixel-eater b:nth-of-type(3){left:118px}.ifc-fe-pixel-eater b:nth-of-type(4){left:146px}.ifc-fe-pixel-eater b:nth-of-type(5){left:174px}
@keyframes ifc-fe-eater-move{0%{transform:translateX(0)}82%{transform:translateX(156px)}83%{transform:translateX(-34px)}100%{transform:translateX(0)}}
@keyframes ifc-fe-eater-mouth{from{transform:scaleX(1)}to{transform:scaleX(.12)}}
@keyframes ifc-fe-dot-eaten{0%,12%{opacity:1}45%,82%{opacity:0}83%,100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.ifc-fe-pixel-eater i,.ifc-fe-pixel-eater i:before,.ifc-fe-pixel-eater b{animation:none}}
@media(max-width:767px){
    body.ifc-frontend{padding-bottom:calc(154px + env(safe-area-inset-bottom))}
    .ifc-fe-sticky{grid-template-columns:minmax(0,1fr) 66px!important;grid-template-areas:"copy save" "modes modes";gap:7px;width:calc(100% - 12px);padding:7px}
    .ifc-fe-action-copy{grid-area:copy}.ifc-fe-save-button{grid-area:save;min-width:0}.ifc-fe-generation-modes{grid-area:modes;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
    .ifc-fe-generation-modes .button{min-height:46px;padding:4px 4px!important}
    .ifc-fe-generation-modes .button strong{font-size:11px}.ifc-fe-generation-modes .button small{font-size:8.5px}
    .ifc-fe-generation-overlay{align-items:start;padding:calc(68px + env(safe-area-inset-top)) 10px 10px}
    .ifc-fe-generation-overlay-card{padding:22px 16px 18px;border-radius:17px}
}

/* 0.2.20 — stable editor anchor, mobile one-line action bar and compact viewport use. */
.ifc-fe-layout-component[data-ifc-layout-component=mode_switch]{overflow-anchor:none}
.ifc-fe-layout-component[data-ifc-layout-component=subject_tools],
.ifc-fe-layout-component[data-ifc-layout-component=background_tools],
.ifc-fe-layout-component[data-ifc-layout-component=text_controls],
.ifc-fe-mobile-editor-overlay{overflow-anchor:none}
@media(max-width:767px){
    body.ifc-frontend{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
    .ifc-fe-sticky{
        grid-template-columns:44px 54px minmax(0,1fr)!important;
        grid-template-areas:"copy save modes"!important;
        gap:4px!important;
        width:calc(100% - 8px)!important;
        bottom:max(3px,env(safe-area-inset-bottom))!important;
        padding:4px!important;
        border-radius:12px!important;
    }
    .ifc-fe-action-copy{
        grid-area:copy;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:0!important;
        text-align:center;
    }
    .ifc-fe-action-copy strong{font-size:9px!important;line-height:1!important;letter-spacing:.04em!important}
    .ifc-fe-action-copy small{display:none!important}
    .ifc-fe-save-button{
        grid-area:save;
        min-width:0!important;
        min-height:44px!important;
        padding:0 4px!important;
        font-size:10px!important;
    }
    .ifc-fe-generation-modes{
        grid-area:modes;
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:4px!important;
    }
    .ifc-fe-generation-modes .button{
        min-height:44px!important;
        padding:2px 3px!important;
        border-radius:9px!important;
        white-space:normal!important;
    }
    .ifc-fe-generation-modes .button strong{
        overflow:visible!important;
        font-size:9.5px!important;
        line-height:1.05!important;
        text-align:center!important;
        text-overflow:clip!important;
        white-space:normal!important;
    }
    .ifc-fe-generation-modes .button small{display:none!important}
}
@media(max-width:370px){
    .ifc-fe-sticky{grid-template-columns:38px 48px minmax(0,1fr)!important}
    .ifc-fe-generation-modes .button strong{font-size:8.7px!important;letter-spacing:-.02em}
    .ifc-fe-save-button{font-size:9px!important}
}


/* 0.2.22 — keyboard-safe one-line actions and generation confirmation. */
body.ifc-fe-keyboard-open{padding-bottom:env(safe-area-inset-bottom)!important}
body.ifc-fe-keyboard-open .ifc-fe-sticky{display:none!important}
.ifc-fe-generation-confirm{position:fixed;inset:0;z-index:2147483100;display:grid;place-items:center;padding:18px}
.ifc-fe-generation-confirm[hidden]{display:none!important}
.ifc-fe-generation-confirm__backdrop{position:absolute;inset:0;background:rgba(2,3,5,.78);backdrop-filter:blur(8px)}
.ifc-fe-generation-confirm__card{position:relative;z-index:1;width:min(520px,100%);display:grid;gap:14px;padding:20px;border:1px solid rgba(255,255,255,.15);border-radius:18px;background:#151920;box-shadow:0 25px 80px rgba(0,0,0,.62)}
.ifc-fe-generation-confirm__kicker{color:#ff3157;font-size:10px;font-weight:950;letter-spacing:.18em}
.ifc-fe-generation-confirm__card h2{margin:0;color:#fff;font-size:25px;line-height:1.08}
.ifc-fe-generation-confirm__card p{margin:0;color:#c8ced7;line-height:1.5}
.ifc-fe-generation-confirm__summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ifc-fe-generation-confirm__summary>div{display:grid;gap:4px;padding:10px 11px;border:1px solid #343a45;border-radius:11px;background:#20252d}
.ifc-fe-generation-confirm__summary span{color:#9fa8b4;font-size:10px;font-weight:850;text-transform:uppercase}
.ifc-fe-generation-confirm__summary strong{color:#fff;font-size:13px}
.ifc-fe-generation-confirm__privacy{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:10px;padding:11px;border:1px solid #343a45;border-radius:11px;background:#20252d;color:#e1e5eb;line-height:1.4}
.ifc-fe-generation-confirm__privacy input{margin-top:3px}
.ifc-fe-generation-confirm__privacy a{color:#ff6c88}
.ifc-fe-generation-confirm__actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
body.ifc-fe-confirm-open{overflow:hidden}
@media(max-width:560px){
  .ifc-fe-generation-confirm{align-items:start;padding:calc(64px + env(safe-area-inset-top)) 10px 10px}
  .ifc-fe-generation-confirm__card{padding:16px;border-radius:16px}
  .ifc-fe-generation-confirm__summary{grid-template-columns:1fr}
}

/* 0.2.25 — immutable preview/result view. Editing controls are replaced by project navigation. */
.ifc-fe-layout-shell.is-generation-result-mode [data-ifc-layout-zone]:not(.ifc-fe-layout-zone--canvas):not(.ifc-fe-layout-zone--header):empty{display:none!important}

/* 0.2.27 — visible result feedback and resilient project-history bootstrap. */
.ifc-fe-result-status{margin:0;padding:10px 12px;border:1px solid #3b404a;border-radius:10px;background:#171a20;color:#dce1e9;font-size:12px;line-height:1.45}
.ifc-fe-result-status.is-error{border-color:#7e2639;background:#35131c;color:#ff9caf}
.ifc-fe-history-status.is-warning{color:#ffd28b}


/* 0.2.29 — one desktop sidebar scroll owner and project preview thumbnails. */
.ifc-fe-project-card{
    grid-template-columns:72px minmax(0,1fr);
    grid-template-rows:auto auto 1fr;
    align-items:start;
}
.ifc-fe-project-card-thumb{
    grid-column:1;
    grid-row:1/4;
    display:grid;
    place-items:center;
    width:72px;
    aspect-ratio:4/5;
    overflow:hidden;
    border:1px solid #343944;
    border-radius:9px;
    background:repeating-conic-gradient(#e7eaee 0 25%,#cfd4da 0 50%) 50%/16px 16px;
}
.ifc-fe-project-card-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.ifc-fe-project-card-thumb [data-ifc-media-preview-placeholder],
.ifc-fe-project-card-thumb [data-ifc-media-preview-failed]{display:grid;place-items:center;width:100%;height:100%;padding:5px;color:#59616d;font-size:9px;text-align:center}
.ifc-fe-project-card-copy{display:contents}
.ifc-fe-project-card>strong,.ifc-fe-project-card>span,.ifc-fe-project-card>b{grid-column:2}
.ifc-fe-project-card--without-preview{grid-template-columns:minmax(0,1fr)}
.ifc-fe-project-card--without-preview>strong,.ifc-fe-project-card--without-preview>span,.ifc-fe-project-card--without-preview>b{grid-column:1}
@media(min-width:768px){
    .ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-editor-text-controls{
        max-height:none!important;
        overflow:visible!important;
        padding-bottom:24px!important;
    }
    .ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-fe-layout-zone--primary,
    .ifc-fe-layout-shell[data-layout-breakpoint=desktop] .ifc-fe-layout-zone--secondary{
        max-height:calc(100dvh - 92px);
        overflow-x:hidden;
        overflow-y:auto;
        overscroll-behavior:contain;
        scroll-padding-bottom:32px;
        padding-bottom:24px;
    }
}

/* 0.2.30 — Text controls own their desktop/tablet scroll surface. */
@media (min-width:768px){
    .ifc-fe-layout-shell[data-editor-mode="text"] [data-ifc-layout-component="text_controls"]{
        display:flex;
        flex-direction:column;
        height:calc(100dvh - 96px);
        min-height:0;
        max-height:calc(100dvh - 96px);
        overflow:hidden!important;
    }
    .ifc-fe-layout-shell[data-editor-mode="text"] [data-ifc-layout-component="text_controls"]>.ifc-fe-layout-component-head{
        flex:0 0 auto;
    }
    .ifc-fe-layout-shell[data-editor-mode="text"] [data-ifc-layout-component="text_controls"]>.ifc-fe-layout-component-body{
        flex:1 1 auto;
        min-height:0;
        overflow:hidden;
    }
    .ifc-fe-layout-shell[data-editor-mode="text"] [data-ifc-layout-component="text_controls"] #ifc-editor-text-controls{
        display:block;
        width:100%;
        height:100%;
        min-height:0;
        max-height:none!important;
        overflow-x:hidden!important;
        overflow-y:auto!important;
        overscroll-behavior:contain;
        scrollbar-gutter:stable;
        scroll-padding-bottom:96px;
        padding-bottom:96px!important;
        touch-action:pan-y;
    }
    .ifc-fe-layout-shell[data-editor-mode="text"] .ifc-fe-layout-zone--secondary{
        max-height:none!important;
        overflow:visible!important;
    }
}


/* 0.2.30 R7 — measured, single-owner desktop/tablet text scrolling. */
@media (min-width:768px){
    .ifc-fe-layout-shell[data-editor-mode="text"] [data-ifc-layout-component="text_controls"][data-ifc-text-scroll-owner="1"]{
        position:sticky;
        top:var(--ifc-fe-sticky-top,76px);
        align-self:start;
        box-sizing:border-box;
        display:flex!important;
        flex-direction:column!important;
        width:100%;
        height:var(--ifc-text-panel-available-height,calc(100dvh - 96px))!important;
        min-height:280px!important;
        max-height:var(--ifc-text-panel-available-height,calc(100dvh - 96px))!important;
        overflow:hidden!important;
    }
    .ifc-fe-layout-shell[data-editor-mode="text"] [data-ifc-layout-component="text_controls"][data-ifc-text-scroll-owner="1"]>.ifc-fe-layout-component-body{
        box-sizing:border-box;
        display:flex!important;
        flex:1 1 0!important;
        width:100%;
        min-height:0!important;
        max-height:100%!important;
        overflow:hidden!important;
    }
    .ifc-fe-layout-shell[data-editor-mode="text"] [data-ifc-layout-component="text_controls"][data-ifc-text-scroll-owner="1"] #ifc-editor-text-controls{
        box-sizing:border-box;
        display:block!important;
        flex:1 1 0!important;
        width:100%!important;
        height:auto!important;
        min-height:0!important;
        max-height:100%!important;
        overflow-x:hidden!important;
        overflow-y:scroll!important;
        overscroll-behavior:contain!important;
        -webkit-overflow-scrolling:touch;
        scrollbar-gutter:stable;
        scroll-padding-bottom:112px;
        padding-bottom:112px!important;
        touch-action:pan-y;
    }
    .ifc-fe-layout-shell[data-editor-mode="text"] .ifc-fe-layout-zone--secondary{
        position:relative!important;
        top:auto!important;
        align-self:start;
        max-height:none!important;
        overflow:visible!important;
        padding-bottom:0!important;
    }
}

/* 0.2.33: WooCommerce cart bridge. Header cart is visible on both desktop and mobile;
   checkout choice appears only after a completed preview is added server-side. */
.ifc-fe-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.ifc-fe-cart-link{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;border:1px solid #343943;border-radius:12px;background:#15181e;color:#fff;text-decoration:none}
.ifc-fe-cart-link:hover,.ifc-fe-cart-link:focus-visible{border-color:#d90036;background:#211217;outline:none}
.ifc-fe-cart-link svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ifc-fe-cart-link [data-ifc-fe-cart-count]{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:2px solid #07080b;border-radius:999px;background:#d90036;color:#fff;font-size:10px;font-weight:900;line-height:1}
body.ifc-fe-cart-choice-open{overflow:hidden}
.ifc-fe-cart-choice{position:fixed;inset:0;z-index:2147483100;display:grid;place-items:center;padding:18px}
.ifc-fe-cart-choice__backdrop{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:rgba(0,0,0,.78);backdrop-filter:blur(8px);cursor:pointer}
.ifc-fe-cart-choice__card{position:relative;z-index:1;width:min(520px,100%);padding:24px;border:1px solid #444a55;border-radius:20px;background:radial-gradient(circle at 90% 0,rgba(217,0,54,.20),transparent 18rem),#12151a;box-shadow:0 28px 90px rgba(0,0,0,.62)}
.ifc-fe-cart-choice__card>span{display:block;color:#ff3157;font-size:10px;font-weight:950;letter-spacing:.16em}
.ifc-fe-cart-choice__card h2{margin:8px 0 8px;color:#fff;font-size:26px;line-height:1.08}
.ifc-fe-cart-choice__card p{margin:0 0 20px;color:#c4cad3;line-height:1.5}
.ifc-fe-cart-choice__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ifc-fe-cart-choice__actions .button{min-height:50px;border:1px solid #3a3f48;border-radius:12px;background:#20242b;color:#fff;font-weight:850;cursor:pointer}
.ifc-fe-cart-choice__actions .button-primary{border-color:#d90036;background:#d90036}
@media(max-width:560px){.ifc-fe-header-actions{gap:6px}.ifc-fe-cart-link{width:42px;height:42px}.ifc-fe-cart-choice__card{padding:20px 16px}.ifc-fe-cart-choice__actions{grid-template-columns:1fr}.ifc-fe-cart-choice__actions [data-ifc-fe-cart-checkout]{order:-1}}

/* 0.2.34 — IFC customer access gate and opt-in install prompt. */
.ifc-fe-auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,520px);gap:clamp(28px,6vw,92px);align-items:center;width:min(1180px,100%);min-height:calc(100svh - 160px);margin:0 auto;padding:clamp(28px,5vw,72px) 0}
.ifc-fe-auth-intro{max-width:570px;padding:18px 6px}
.ifc-fe-auth-intro .ifc-fe-kicker{display:block;margin-bottom:15px;color:#ff3157;font-size:12px;font-weight:950;letter-spacing:.22em}
.ifc-fe-auth-intro h1{margin:0;color:#fff;font-size:clamp(42px,6.3vw,82px);font-weight:950;line-height:.9;letter-spacing:-.055em;text-transform:uppercase}
.ifc-fe-auth-intro h1 em{color:#d90036;font-style:normal}
.ifc-fe-auth-intro>p{max-width:520px;margin:24px 0 0;color:#c4c9d2;font-size:clamp(16px,1.8vw,20px);line-height:1.55}
.ifc-fe-auth-points{display:grid;gap:9px;margin-top:26px;color:#f4f5f7;font-size:14px;font-weight:760}
.ifc-fe-auth-points span{display:flex;gap:10px;align-items:center}.ifc-fe-auth-points b{display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid rgba(255,49,87,.45);border-radius:8px;background:rgba(217,0,54,.09);color:#ff496b;font-size:9px;font-weight:950;letter-spacing:.06em}
.ifc-fe-auth-card{position:relative;overflow:hidden;padding:clamp(18px,3vw,30px)!important;border:1px solid #383d47!important;border-radius:24px!important;background:linear-gradient(165deg,#191c23 0%,#0b0c10 72%)!important;box-shadow:0 28px 80px rgba(0,0,0,.48)}
.ifc-fe-auth-card::before{position:absolute;top:-72px;right:-45px;width:180px;height:180px;border-radius:50%;background:rgba(217,0,54,.14);filter:blur(10px);content:"";pointer-events:none}.ifc-fe-auth-card-head{position:relative;z-index:1;display:grid;gap:5px;margin:0 2px 18px}.ifc-fe-auth-card-head>span{color:#ff3157;font-size:10px;font-weight:950;letter-spacing:.19em}.ifc-fe-auth-card-head>strong{color:#fff;font-size:18px;font-weight:900;letter-spacing:-.015em}
.ifc-fe-auth-tabs{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:24px;padding:5px;border:1px solid #343945;border-radius:14px;background:#090a0d}
.ifc-fe-auth-tabs button{min-height:48px;padding:0 16px;border:0;border-radius:10px;background:transparent;color:#9ea5b1;font:inherit;font-size:15px;font-weight:900;cursor:pointer}
.ifc-fe-auth-tabs button.is-selected,.ifc-fe-auth-tabs button[aria-selected="true"]{background:#d90036;color:#fff;box-shadow:0 8px 24px rgba(217,0,54,.22)}
.ifc-fe-auth-form{position:relative;z-index:1;display:grid;gap:9px}.ifc-fe-auth-panel-head{display:grid;gap:5px;margin:0 0 10px}.ifc-fe-auth-panel-head>span{color:#ff3157;font-size:9px;font-weight:950;letter-spacing:.16em}.ifc-fe-auth-panel-head h2{margin:0;color:#fff;font-size:clamp(26px,4vw,34px);font-weight:950;line-height:1;letter-spacing:-.035em}.ifc-fe-auth-panel-head p{margin:3px 0 2px;color:#aeb5c0;font-size:13px;line-height:1.48}
.ifc-fe-auth-form[hidden]{display:none!important}
.ifc-fe-auth-form>label{margin-top:5px;color:#f5f6f8;font-size:13px;font-weight:850}.ifc-fe-auth-form>label small{margin-left:5px;color:#8f97a4;font-size:10px;font-weight:750}.ifc-fe-auth-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:5px}.ifc-fe-auth-label-row>label{color:#f5f6f8;font-size:13px;font-weight:850}
.ifc-fe-auth-form>input[type=text],.ifc-fe-auth-form>input[type=email],.ifc-fe-auth-form>input[type=password]{width:100%;min-height:52px;padding:0 15px;border:1px solid #454b57;border-radius:11px;background:#111318;color:#fff;font:inherit;font-size:16px;outline:none}
.ifc-fe-auth-form>input:focus{border-color:#ff3157;box-shadow:0 0 0 3px rgba(255,49,87,.16)}
.ifc-fe-auth-forgot{color:#c9ced7;font-size:12px;font-weight:750;text-decoration:none}
.ifc-fe-auth-forgot:hover,.ifc-fe-auth-forgot:focus{color:#fff;text-decoration:underline}
.ifc-fe-auth-options{display:grid;gap:10px;margin:12px 0 8px;padding:14px;border:1px solid #303540;border-radius:12px;background:#0d0f13}.ifc-fe-auth-options--secondary{margin-top:6px;background:#0a0c10;border-color:#252a33}
.ifc-fe-auth-options label{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;color:#d9dde4;font-size:13px;line-height:1.42;cursor:pointer}
.ifc-fe-auth-options input{width:20px;height:20px;margin:0;accent-color:#d90036}
.ifc-fe-auth-form>.ifc-fe-primary{width:100%;min-height:54px;margin-top:3px;border-radius:11px!important;background:#d90036!important;color:#fff!important;font-size:15px!important;font-weight:950!important}
.ifc-fe-auth-form>.ifc-fe-primary:hover,.ifc-fe-auth-form>.ifc-fe-primary:focus{background:#f0003c!important}.ifc-fe-auth-switch{min-height:42px;margin:0;padding:2px 8px;border:0;background:transparent;color:#aeb5c0;font:inherit;font-size:12px;font-weight:700;cursor:pointer;text-align:center}.ifc-fe-auth-switch strong{color:#fff;font-weight:900}.ifc-fe-auth-switch:hover strong,.ifc-fe-auth-switch:focus strong{color:#ff496b}.ifc-fe-auth-switch:focus-visible{outline:2px solid #ff3157;outline-offset:2px;border-radius:8px}
.ifc-fe-auth-error{position:relative;z-index:1;margin:0 0 16px!important}
.ifc-fe-auth-privacy{position:relative;z-index:1;margin:17px 3px 0;color:#8f97a4;font-size:11px;line-height:1.45}
.ifc-fe-auth-privacy a{color:#d7dbe2}
.ifc-fe-install{position:fixed;inset:0;z-index:99990;display:grid;place-items:center;padding:18px}
.ifc-fe-install[hidden]{display:none!important}
.ifc-fe-install__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(8px)}
.ifc-fe-install__card{position:relative;width:min(500px,100%);padding:28px;border:1px solid #3d424e;border-radius:22px;background:linear-gradient(160deg,#1a1d24,#090a0d);box-shadow:0 30px 90px rgba(0,0,0,.7);color:#fff;text-align:left}
.ifc-fe-install__brand{display:flex;align-items:center;gap:13px;margin-bottom:20px}
.ifc-fe-install__brand img{width:58px;height:58px;border:1px solid #313641;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.ifc-fe-install__brand>div{min-width:0}
.ifc-fe-install__brand span{display:block;margin-bottom:4px;color:#ff3157;font-size:10px;font-weight:950;letter-spacing:.2em}
.ifc-fe-install__brand strong{display:block;color:#fff;font-size:17px;line-height:1.1}
.ifc-fe-install__card h2{margin:0 0 10px;font-size:27px;line-height:1.05}
.ifc-fe-install__card>p{margin:0;color:#c3c8d1;line-height:1.5}
.ifc-fe-install__actions{display:grid;grid-template-columns:1fr 1.45fr;gap:10px;margin-top:22px}
.ifc-fe-install__actions .button{min-height:50px;border-radius:10px}
.ifc-fe-install__actions .button-primary{background:#d90036!important;color:#fff!important}
.ifc-fe-install__actions .button-primary:disabled{opacity:.6;cursor:wait}
.ifc-fe-install__card[data-ifc-install-mode="ios"] .ifc-fe-install__actions,.ifc-fe-install__card[data-ifc-install-mode="manual"] .ifc-fe-install__actions{grid-template-columns:1fr}
.ifc-fe-install__card[data-ifc-install-mode="ios"] [data-ifc-install-dismiss-button],.ifc-fe-install__card[data-ifc-install-mode="manual"] [data-ifc-install-dismiss-button]{width:100%}
.ifc-fe-install__ios-guide{display:grid;gap:9px;margin:22px 0 0;padding:0;list-style:none}
.ifc-fe-install__ios-guide[hidden]{display:none!important}
.ifc-fe-install__ios-guide li{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;padding:12px;border:1px solid #303540;border-radius:12px;background:#0d0f13}
.ifc-fe-install__step-icon{display:grid;width:42px;height:42px;place-items:center;border:1px solid #3c424e;border-radius:11px;background:#191c23;color:#fff}
.ifc-fe-install__step-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ifc-fe-install__ios-guide strong{display:block;color:#fff;font-size:14px}
.ifc-fe-install__ios-guide small{display:block;margin-top:3px;color:#aeb4bf;font-size:12px;line-height:1.35}
.ifc-fe-install__manual-guide{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;margin-top:20px;padding:13px;border:1px solid #363b46;border-radius:12px;background:#0d0f13}
.ifc-fe-install__manual-guide[hidden]{display:none!important}
.ifc-fe-install__menu-icon{display:grid;width:42px;height:42px;place-items:center;border:1px solid #3c424e;border-radius:11px;background:#191c23;color:#fff;font-size:26px;line-height:1}
.ifc-fe-install__instructions{margin:0!important;color:#fff!important;font-size:13px;line-height:1.45}
body.ifc-fe-install-open{overflow:hidden}
@media(max-width:760px){
  .ifc-fe-auth{grid-template-columns:1fr;gap:16px;min-height:0;padding:22px 0 40px}
  .ifc-fe-auth-intro{padding:6px 4px 0}
  .ifc-fe-auth-intro h1{font-size:clamp(39px,14vw,61px)}
  .ifc-fe-auth-intro>p{margin-top:17px;font-size:15px}
  .ifc-fe-auth-points{margin-top:18px;font-size:13px}
  .ifc-fe-auth-card{padding:16px!important;border-radius:18px!important}
  .ifc-fe-auth-card-head{margin-bottom:14px}
  .ifc-fe-auth-card-head>strong{font-size:16px}
  .ifc-fe-auth-tabs{margin-bottom:18px}
  .ifc-fe-auth-tabs button{padding:0 10px;font-size:13px}
  .ifc-fe-auth-panel-head h2{font-size:28px}
  .ifc-fe-auth-form>input[type=text],.ifc-fe-auth-form>input[type=email],.ifc-fe-auth-form>input[type=password]{min-height:54px;font-size:16px}
  .ifc-fe-auth-options{padding:12px}
  .ifc-fe-install__card{padding:22px;border-radius:18px}
}

/* Frontend-owned customer preview presentation. Media owns the protected clean
 * URL and Output owns canonical watermark geometry. This layer only composes
 * the shared watermark descriptor over the visible medium/large image. The
 * same responsive component is used on touch/mobile and desktop. */
.ifc-fe-result-preview{position:relative}

/* R18: once-per-date exhausted daily AI quota popup. */
body.ifc-fe-daily-limit-popup-open{overflow:hidden}
.ifc-fe-daily-limit-popup{position:fixed;inset:0;z-index:10040;display:grid;place-items:center;padding:20px}
.ifc-fe-daily-limit-popup[hidden]{display:none!important}
.ifc-fe-daily-limit-popup__backdrop{position:absolute;inset:0;background:rgba(2,3,5,.82);backdrop-filter:blur(10px)}
.ifc-fe-daily-limit-popup__card{position:relative;z-index:1;width:min(470px,100%);padding:28px;border:1px solid #d90036;border-radius:18px;background:radial-gradient(circle at 90% 0,rgba(217,0,54,.22),transparent 45%),#111318;box-shadow:0 30px 90px rgba(0,0,0,.6);color:#fff}
.ifc-fe-daily-limit-popup__card>span{display:block;margin-bottom:12px;color:#ff3157;font-size:10px;font-weight:900;letter-spacing:.18em}
.ifc-fe-daily-limit-popup__card h2{margin:0 0 12px;color:#fff;font-size:clamp(25px,6vw,34px);line-height:1.05}
.ifc-fe-daily-limit-popup__card p{margin:0 0 22px;color:#c9ced7;font-size:15px;line-height:1.55}
.ifc-fe-daily-limit-popup__card .button{width:100%;min-height:48px}

.ifc-fe-action-copy{display:grid;gap:4px}
.ifc-fe-action-copy small[data-ifc-fe-action-detail]{max-width:none}
.ifc-fe-action-quota{margin:0;color:#c9ced7;font-size:11px;line-height:1.35;white-space:normal;overflow:visible;text-overflow:unset}
.ifc-fe-action-quota.is-exhausted{color:#ff91a6;font-weight:700}
