/* Beersleeves · Fjord (nordisk minimal): fog-blue, navy ink, Manrope, outline pill buttons. */
:root{--bg:#e5ebef;--panel:#d9e1e7;--card:#f2f5f7;--line:#c9d3db;--ink:#14233a;--ink-2:#2b3a50;--muted:#4f5d6e;--subtle:#57667a;--accent:#14233a;--error:#9b2f24;--font:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
/* legacy names used by older saved pages */--paper:var(--bg);--orange:var(--ink);--green:var(--ink)}
*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}button:disabled{cursor:not-allowed;opacity:.45}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
svg{width:22px;height:22px}img{max-width:100%}
.wrap{width:min(1240px,calc(100% - 96px));margin:auto}
.announcement{background:var(--panel);color:var(--ink-2);text-align:center;font-size:12px;font-weight:500;letter-spacing:.12em;padding:9px 16px}
.header{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand{font-size:21px;font-weight:700;letter-spacing:-.01em;white-space:nowrap}.brand span{font-weight:700}.brand i{font-size:12px;vertical-align:top;margin:2px;font-style:normal;font-weight:500;color:var(--subtle)}
.header nav{display:flex;gap:36px;font-size:15px;font-weight:500;color:var(--ink-2)}.header nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.bag{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--ink-2)}.bag span{border-radius:50%;border:1.5px solid var(--ink);width:26px;height:26px;display:grid;place-items:center;font-size:12px}
/* Hero: full-bleed photo, then a calm two-column row */
.hero-photo{position:relative;height:580px;overflow:hidden;background:var(--panel)}
.hero-photo img,.hero-photo video{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 15%;background:#14233a}
.chip{position:absolute;left:48px;bottom:24px;padding:6px 14px;font-size:12px;font-weight:500;background:rgba(20,35,58,.78);color:#fff;border-radius:999px}
.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:80px;align-items:start;padding-top:56px;padding-bottom:88px}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.1em;line-height:1.6;color:var(--subtle);text-transform:uppercase}
.dot{display:none}
h1{font-size:clamp(44px,4.6vw,60px);line-height:1.04;letter-spacing:-.035em;font-weight:600;margin:14px 0 0}
h1 em{font-style:normal;color:var(--ink-2);font-weight:500}
h2{font-size:38px;line-height:1.1;letter-spacing:-.03em;font-weight:600}
h3{font-size:17px;font-weight:600;letter-spacing:-.01em}
.intro{color:var(--muted);font-size:17px;line-height:1.6;max-width:40ch;margin:6px 0 28px}
.hero-copy h1{margin-bottom:18px}.hero-copy>.button{margin-right:24px}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:0 32px;border-radius:999px;border:1.5px solid var(--ink);background:transparent;color:var(--ink);font-weight:600;font-size:15px;transition:background .2s,color .2s}
.button:hover:not(:disabled){background:var(--ink);color:#fff}
.button span{font-size:16px;line-height:1}
.text-link{font-size:15px;font-weight:500;color:var(--ink-2);display:inline-flex;align-items:center;gap:8px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.text-link:hover{color:var(--ink)}
.hero-notes{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:var(--subtle);margin-top:28px}
/* Older saved pages keep the illustrated hero markup: show the photo instead. */
.hero-art{min-height:460px;position:relative;overflow:hidden;background:var(--panel) url(/images/fjord-hero.jpg?v=350bcf) 50% 15%/cover no-repeat}
.hero-art>*{display:none!important}
.benefits{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.benefits .wrap{display:flex;justify-content:space-between;gap:24px;padding:22px 0;font-size:14px;font-weight:500;color:var(--ink-2)}
.benefits b{font-weight:500;margin-right:10px;color:var(--subtle)}
.section{padding-top:96px;padding-bottom:96px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:36px}.section-head .eyebrow{margin-bottom:12px}
/* Collections: quiet panels, navy and fog toned cans */
.collections{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.collection{padding:0;background:none;text-align:left}
.collection-art{height:300px;position:relative;display:grid;place-items:center;overflow:hidden;background:var(--panel)}







.tile-number{position:absolute;bottom:14px;left:16px;font-size:12px;font-weight:500;letter-spacing:.06em;color:var(--subtle)}
.tile-title{display:flex;justify-content:space-between;align-items:center;margin:18px 0 4px}.tile-title>span{font-size:18px;color:var(--ink-2)}
.collection p{font-size:15px;color:var(--muted)}
.design-note{font-size:13px;color:var(--subtle);margin-top:24px}
/* How it works */
.how{border-top:1px solid var(--line);padding:96px 0}
.how>.wrap{display:grid;grid-template-columns:1fr 1fr;gap:80px}.how h2{margin:14px 0 24px}
.how ol{padding:0;margin:0;list-style:none}.how li{display:flex;gap:20px;margin-bottom:32px}.how li:last-child{margin:0}

.how li p{font-size:15px;color:var(--muted);max-width:40ch;margin-top:4px}
/* Designer and cart */
.designer{display:grid;grid-template-columns:.85fr 1.15fr;gap:72px;border-top:1px solid var(--line)}
.designer-copy h2{font-size:42px;margin:14px 0 20px}.designer-copy>p:not(.eyebrow){max-width:36ch;color:var(--muted);font-size:16px}
.aside-note{display:flex;gap:14px;max-width:320px;margin-top:32px;font-size:14px;color:var(--ink-2);padding-top:20px;border-top:1px solid var(--line)}.aside-note>span{color:var(--subtle);font-size:22px;line-height:1.2}
.design-panel{background:var(--panel);padding:36px}
.design-panel label{font-weight:600;font-size:15px}
.chips{display:flex;gap:8px;margin:16px 0 14px;flex-wrap:wrap}
.chips button{font-size:13px;font-weight:500;padding:7px 16px;border:1px solid var(--line);background:var(--bg);border-radius:999px;color:var(--ink-2)}
.chips button:hover,.chips button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
textarea{display:block;width:100%;height:160px;resize:vertical;border:1px solid var(--line);background:var(--card);padding:16px;color:var(--ink);line-height:1.7;font-size:15px;border-radius:12px}
textarea:focus{outline:2px solid var(--ink);outline-offset:2px}textarea::placeholder{color:#6b7889}
.form-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--subtle);margin:10px 0 22px}
.design-panel .button{width:100%}
.demo-note{font-size:12px;text-align:center;color:var(--subtle);margin-top:12px}
#status:not(:empty),#order-status:not(:empty){font-size:14px;margin-top:16px;color:var(--ink-2);font-weight:500}
.results{grid-column:1/-1;padding-top:24px}.results[hidden]{display:none}
.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.result-card{background:var(--card);border:1px solid var(--line);padding:14px}
.result-card img{width:100%;aspect-ratio:1;object-fit:cover;background:var(--panel)}
.result-card>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0 0}
.result-card h3{font-size:15px}
.remove,.subtle{background:none;text-decoration:underline;text-underline-offset:4px;font-size:13px;font-weight:500;padding:8px;color:var(--ink-2)}
.checkout{border-top:1px solid var(--line);margin-top:28px;padding-top:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.checkout strong{font-weight:600}.checkout p{font-size:13px;color:var(--muted);margin-top:4px}
/* FAQ */
.faq{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:72px}.faq h2{margin-top:14px}
.faq details{border-bottom:1px solid var(--line);padding:20px 0}.faq details:first-child{padding-top:0}
.faq summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px;font-size:16px;font-weight:600;list-style:none}.faq summary::-webkit-details-marker{display:none}
.faq summary span{font-weight:400;color:var(--subtle);transition:transform .2s}
.faq details p{font-size:15px;color:var(--muted);margin-top:12px;max-width:52ch}.faq details[open] summary span{transform:rotate(45deg)}
/* Closing band */
.closing{text-align:center;background:var(--panel);color:var(--ink);padding:88px 20px}
.closing p{font-size:12px;font-weight:600;letter-spacing:.1em;color:var(--subtle)}
.closing h2{font-size:44px;margin:14px 0 28px}
.light{background:transparent;color:var(--ink)}
footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:32px 0 48px;margin-top:0;border-top:1px solid var(--line)}
footer p,footer small{font-size:13px;color:var(--subtle)}footer .brand{font-size:17px}
/* Simple status pages (success / cancel) */
.status-page{min-height:calc(100vh - 76px - 120px);padding-top:96px;padding-bottom:96px}.status-page>*{max-width:640px}
.status-page h1{margin-bottom:18px}.status-page p{color:var(--muted);font-size:17px;margin-bottom:12px}.status-page #reference{font-size:14px;color:var(--subtle)}
.status-page .button{margin:12px 0 20px}
.status-page a:not(.button){font-weight:500;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
@media(max-width:1050px){.wrap{width:calc(100% - 56px)}.header nav{gap:22px}.hero{gap:40px}.hero-photo{height:460px}.designer{gap:40px}.how>.wrap{gap:48px}.faq{gap:48px}.result-grid{grid-template-columns:repeat(2,1fr)}h2{font-size:34px}.designer-copy h2{font-size:36px}}
@media(max-width:700px){body{font-size:15px}.wrap{width:calc(100% - 40px)}.announcement{font-size:12px;letter-spacing:.06em}.header{height:64px}.brand{font-size:19px}.header nav{display:none}
.hero-photo{height:300px}.hero-photo img,.hero-photo video{object-position:72% 15%}.chip{left:20px;bottom:16px}
.hero{grid-template-columns:1fr;gap:20px;padding-top:32px;padding-bottom:56px}h1{font-size:44px}.intro{font-size:16px;margin-bottom:24px}
.button{min-height:50px;padding:0 26px}.hero-art{min-height:300px}
.benefits .wrap{flex-direction:column;gap:8px;font-size:14px;padding:18px 0}
.section{padding-top:64px;padding-bottom:64px}.section-head{align-items:start;flex-direction:column;gap:12px}
h2{font-size:30px}.collections{grid-template-columns:1fr;gap:36px}.collection-art{height:260px}
.how{padding:64px 0}.how>.wrap{grid-template-columns:1fr;gap:32px}
.designer{grid-template-columns:1fr;gap:28px}.designer-copy h2{font-size:32px}.designer-copy>p:not(.eyebrow){max-width:none}.aside-note{display:none}.design-panel{padding:22px}
.result-grid{grid-template-columns:1fr;gap:16px}.result-card>div{align-items:start;flex-direction:column}.remove{padding:0}
.section-head .subtle{padding-left:0}.checkout{align-items:stretch;flex-direction:column}.checkout .button{width:100%}
.faq{grid-template-columns:1fr;gap:28px}.closing{padding:64px 20px}.closing h2{font-size:32px}
footer{flex-wrap:wrap;gap:12px}footer p{display:none}.desktop{display:none}.status-page{padding-top:56px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.result-card>.quantity-control{display:flex;flex-direction:row;align-items:center;gap:0;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.quantity-control label{margin-right:auto;font-size:13px;color:var(--muted)}
.quantity-control button{width:38px;height:38px;background:var(--bg);border:1px solid var(--line);font-size:18px;color:var(--ink)}
.quantity-control button:first-of-type{border-radius:999px 0 0 999px}.quantity-control button:last-of-type{border-radius:0 999px 999px 0}
.quantity-input{width:50px;height:38px;text-align:center;border:1px solid var(--line);border-left:0;border-right:0;border-radius:0;background:var(--card);color:var(--ink);appearance:textfield;-moz-appearance:textfield;font-size:15px}
.quantity-input::-webkit-inner-spin-button,.quantity-input::-webkit-outer-spin-button{appearance:none;margin:0}.quantity-input:focus-visible{outline:2px solid var(--ink);outline-offset:1px}

/* Cylindrical product preview (unchanged geometry), Fjord colours. */
/* Cylindrical product preview, shared by saved and newly generated motifs. */
.sleeve-preview{margin:0;padding:0;background:var(--panel);text-align:center;overflow:hidden}
.sleeve-stage{height:310px;display:grid;place-items:center;position:relative}
.sleeve-stage[hidden],.flat-artwork[hidden]{display:none}
.product-can{position:relative;width:154px;height:254px;border-radius:29px 29px 24px 24px;background:linear-gradient(90deg,#8c9089 0%,#c9cfc6 9%,#f2f4eb 25%,#c5cbc2 52%,#a4aca1 84%,#646e64 100%);box-shadow:12px 20px 18px -10px #29372755;transform:rotate(-5deg)}
.product-can:after{content:'';position:absolute;left:9%;right:9%;bottom:-2px;height:12px;border-radius:50%;background:linear-gradient(#636c64,#e3e7dd 45%,#879187 70%,#525e54);z-index:0}
.product-lid{position:absolute;z-index:3;left:4%;top:-3px;width:92%;height:29px;border-radius:50%;border:3px solid #bec5b9;background:radial-gradient(ellipse,#b3beb0 0%,#d9dfd2 55%,#82907e 58%,#e4e9df 64%,#8d9788 75%,#c9d0c2 90%);box-shadow:0 2px 1px #58624e, inset 0 2px 2px #f5f8ee;transform:rotate(0deg)}
.pull-tab{position:absolute;width:39%;height:49%;top:20%;left:32%;border:4px solid #dbe1d4;border-radius:45%;background:#65735f;box-shadow:1px 2px 1px #6c7763,inset 0 2px 1px #3d4b38;transform:rotate(-15deg)}
.pull-tab:after{content:'';position:absolute;width:40%;height:100%;right:-2px;top:0;background:#c5cebc;border-radius:45%}
.product-sleeve{position:absolute;top:52px;left:-3px;right:-3px;bottom:5px;border-radius:9% 9% 14% 14% / 3% 3% 5% 5%;background:#30362e;border-top:5px solid #3e443a;border-bottom:5px solid #343b30;box-shadow:0 -2px 2px #23302166,2px 2px 2px #23302133;overflow:hidden;z-index:2}
.sleeve-artwork{position:absolute;inset:0;overflow:hidden}
.sleeve-artwork>span{position:absolute;top:0;height:100%;background-repeat:no-repeat}
.product-sleeve:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0e1c19a1 0%,#17201b38 10%,#ffffff24 27%,transparent 45%,#13221d14 65%,#0c1b1670 91%,#061610a6 100%),repeating-linear-gradient(0deg,#ffffff08 0 1px,#101b1308 1px 2px);box-shadow:inset 1px 0 3px #ffffff66,inset -2px 0 4px #06120c55}
.preview-toggle{display:inline-block;background:transparent;font-size:13px;font-weight:500;text-decoration:underline;text-underline-offset:4px;padding:8px 12px;color:var(--ink-2)}
.sleeve-preview figcaption{font-size:12px;color:var(--subtle);padding:0 8px 12px}
.result-card .flat-artwork{height:310px;aspect-ratio:auto;object-fit:contain;padding:15px;background:var(--panel)}
@media(max-width:700px){.sleeve-stage{height:240px}.product-can{transform:rotate(-5deg) scale(.72)}.result-card .flat-artwork{height:240px}.preview-toggle{font-size:13px}.sleeve-preview figcaption{font-size:12px}}

/* Front-on product view: matching shallow ellipses; black neoprene and square transfer. */
.result-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.result-card{min-width:0;max-width:440px}
.sleeve-stage{height:400px}
.product-can{width:220px;height:326px;transform:none;border-radius:20px 20px 15px 15px;background:linear-gradient(90deg,#777e80,#c7ccce 10%,#f4f6f6 28%,#d4d8d9 55%,#b9bfc1 85%,#707779);box-shadow:12px 18px 18px -12px #2228}
.product-can:after{height:9px;left:3%;right:3%;bottom:-1px;background:linear-gradient(#92999b,#edf0f0 45%,#8e9597)}
.product-lid{left:3%;width:94%;height:13px;top:-2px;border:2px solid #b9c0c2;background:radial-gradient(ellipse,#aeb6b8 45%,#e6ebec 55%,#899294 65%,#dce1e2 75%);box-shadow:0 1px 1px #626b6d;transform:none}
.pull-tab{width:26%;height:60%;left:37%;top:10%;border-width:2px;transform:none;border-color:#e0e5e6;background:#727c7e;box-shadow:none}
.pull-tab:after{background:#c1cacc}
.product-sleeve{top:50px;bottom:6px;left:-3px;right:-3px;height:270px;border:0;border-radius:50% / 2%;background:linear-gradient(90deg,#0a0a0a,#242424 25%,#1b1b1b 60%,#080808);box-shadow:0 -2px 1px #080808,0 2px 2px #08080855}
.sleeve-artwork{top:11.111111%;bottom:11.111111%;left:0;right:0}
.sleeve-artwork>span{background:#fff}
.sleeve-artwork>span>i{position:absolute;top:5.555556%;bottom:5.555556%;left:0;right:0;background-repeat:no-repeat}
.product-sleeve:after{background:linear-gradient(90deg,#0009,transparent 22%,#ffffff0c 35%,transparent 60%,#0007),repeating-linear-gradient(0deg,#ffffff04 0 1px,#00000004 1px 2px);box-shadow:inset 0 2px 1px #ffffff15,inset 0 -2px 1px #0008}
.result-card .flat-artwork{height:400px}
@media(max-width:700px){.result-grid{grid-template-columns:1fr}.sleeve-stage{height:380px}.product-can{transform:none}.result-card .flat-artwork{height:380px}.preview-toggle{font-size:13px}.sleeve-preview figcaption{font-size:12px}}
/* Neoprene base covers the middle 80%; the metal rim remains visible at the sides. */
.product-can:before{content:'';position:absolute;z-index:3;left:10%;width:80%;bottom:-5px;height:13px;border-radius:0 0 45% 45% / 0 0 65% 65%;background:linear-gradient(#161616,#202020 45%,#0a0a0a);box-shadow:0 2px 2px #0003,inset 0 -1px 1px #ffffff0b}

.generation-notice:empty{display:none}.generation-notice{white-space:pre-line;padding:16px 18px;background:var(--card);border-left:2px solid var(--ink);margin-bottom:20px;font-size:14px}#status{white-space:pre-line}
#cart-empty{padding:32px 0;color:var(--muted)}#cart-totals{font-size:14px;line-height:1.8;max-width:460px;color:var(--ink-2)}.line-total{font-size:13px;margin-top:12px;text-align:right;color:var(--muted)}.checkout p{white-space:normal}
#checkout-dialog{width:min(560px,calc(100% - 28px));max-height:90vh;overflow:auto;border:1px solid var(--line);padding:36px;background:var(--bg);color:var(--ink)}#checkout-dialog::backdrop{background:rgba(20,35,58,.55)}
#checkout-dialog .section-head{align-items:center;flex-direction:row;margin-bottom:18px}#checkout-dialog h2{font-size:28px}#checkout-total{font-weight:600;font-size:16px}#checkout-dialog .demo-note{text-align:left;margin:12px 0 22px}
.address-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.address-fields label{font-size:13px;font-weight:500;color:var(--ink-2);display:flex;flex-direction:column;gap:6px}.address-fields label:nth-child(-n+4){grid-column:1/-1}
.address-fields input,.address-fields select{width:100%;min-width:0;padding:12px 14px;border:1px solid var(--line);background:var(--card);border-radius:10px;font:inherit;font-size:16px;color:var(--ink)}.address-fields input:focus{outline:2px solid var(--ink);outline-offset:1px}
#checkout-error{color:var(--error);white-space:pre-line;margin:16px 0}#confirm-order{width:100%;justify-content:center}@media(max-width:700px){#checkout-dialog{padding:22px}}
#checkout-items{white-space:pre-line;font-size:14px;margin-bottom:12px}#checkout-shipping{font-size:13px;color:var(--muted);margin-bottom:14px}

/* "Så funkar det" step rings: true circles, digits optically centred,
   centred on the first line of the step heading (17px × 1.6 line-height). */
.how li{align-items:flex-start}
.how li>span{flex:none;box-sizing:border-box;width:48px;height:48px;min-width:48px;border:1.5px solid var(--ink);border-radius:50%;display:grid;place-items:center;line-height:1;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0;margin-top:calc((17px * 1.6 - 48px) / 2)}
@media(max-width:700px){.how li>span{width:44px;height:44px;min-width:44px;font-size:13px;margin-top:calc((17px * 1.6 - 44px) / 2)}}

/* Inspiration cards: real generated motifs on the product can, crossfading. */
.collection-art{contain:layout paint}
.example-can{position:absolute;inset:0 0 40px;display:flex;align-items:center;justify-content:center;pointer-events:none}
.example-can .product-can{flex:none;transform:scale(.7) rotate(-4deg);transform-origin:50% 50%;transition:transform .3s}
.collection:hover .example-can .product-can{transform:scale(.7) translateY(-6px)}
.example-can .sleeve-artwork{transition:opacity .9s ease}
.example-can .sleeve-artwork.is-next{opacity:0}
.example-prompt{position:relative;margin-top:10px;height:calc(13px * 1.5 * 4);overflow:hidden;font-size:13px;line-height:1.5;color:var(--subtle)}
.example-prompt q{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;quotes:none;transition:opacity .45s ease}
.example-prompt q.is-fading{opacity:0}
.example-prompt b{display:block;font-weight:600;color:var(--ink-2);margin-right:4px}
@media(max-width:700px){.example-can{inset:0 0 38px}.example-can .product-can{transform:scale(.62) rotate(-4deg)}.collection:hover .example-can .product-can{transform:scale(.62)}}

/* Generation progress: appears in the same input frame as the click and keeps
   one fixed height from then on, so nothing below it moves while it updates. */
.button .spinner{flex:none;width:16px;height:16px;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:bs-spin .7s linear infinite}
.button.is-busy{cursor:progress;opacity:1}
@keyframes bs-spin{to{transform:rotate(360deg)}}
.gen{margin-top:16px;padding:14px 16px 16px;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow-anchor:none}
.gen-head{display:flex;align-items:center;gap:10px;height:22px;font-size:14px;font-weight:500;color:var(--ink-2);white-space:nowrap}
.gen-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--ink);animation:bs-pulse 1.2s ease-in-out infinite}
.gen.is-done .gen-dot{animation:none;background:#2f7a4f}
.gen.is-error .gen-dot{animation:none;background:var(--error)}
@keyframes bs-pulse{50%{opacity:.25}}
.gen-stage{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.gen-time{flex:none;min-width:5ch;text-align:right;font-variant-numeric:tabular-nums;color:var(--subtle);font-weight:500}
.gen-time a{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.gen-bar{height:2px;margin:10px 0 12px;background:var(--line);overflow:hidden;border-radius:2px}
.gen-bar i{display:block;height:100%;width:0;background:var(--ink);transition:width .6s ease}
.gen-body{position:relative;height:148px}
.gen-tiles{display:flex;gap:12px;height:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.gen-tile{flex:none;width:120px;margin:0}
.gen-frame{position:relative;width:100%;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:var(--panel)}
.gen-frame.is-loading:before{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.55) 50%,transparent 80%);transform:translateX(-100%);animation:bs-shimmer 1.4s ease-in-out infinite}
@keyframes bs-shimmer{to{transform:translateX(100%)}}
.gen-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .45s ease}
.gen-frame img.is-shown{opacity:1}
.gen-frame.is-failed{display:grid;place-items:center;padding:10px;text-align:center;font-size:11px;line-height:1.35;color:var(--error);background:#f6e9e7}
.gen-tile figcaption{height:22px;margin-top:6px;font-size:12px;line-height:22px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gen-error{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;padding:0 4px;color:var(--error);font-size:14px;line-height:1.45}
.gen-error p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-line}
.gen-error .button{width:auto;min-height:40px;padding:0 22px;font-size:14px}
@media(max-width:700px){.gen{padding:12px 12px 14px}.gen-body{height:128px}.gen-tile{width:100px}}
@media(prefers-reduced-motion:reduce){.gen-frame.is-loading:before{animation:none;transform:none;background:rgba(255,255,255,.35)}.gen-dot{animation:none}.button .spinner{animation-duration:1.6s}}
.design-panel,#design-form,.gen{min-width:0;max-width:100%}
