@font-face{font-family:Inter;src:url('/assets/fonts/inter-latin.woff2') format('woff2');font-weight:400 800;font-display:swap}
:root{color-scheme:dark;--bg:#08090b;--panel:#101216;--soft:#191d24;--line:#2b3039;--text:#f5f7fa;--muted:#a3acba;--accent:#ee2034;font-family:Inter,system-ui,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ff6675;outline-offset:4px}[hidden]{display:none!important}
.account-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 30px;background:var(--panel);border-bottom:1px solid var(--line)}.store-brand{display:flex;align-items:center;gap:15px;text-decoration:none;font-weight:800;letter-spacing:-.03em;font-size:20px}.store-brand img{display:block;object-fit:contain;width:56px;height:56px;aspect-ratio:1;border-radius:9px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:11px 17px;font-size:14px;font-weight:600;text-decoration:none;min-height:44px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.secondary{background:var(--panel);color:var(--text)}.button:hover{filter:brightness(1.12)}
h1{font-size:32px;line-height:1.15;letter-spacing:-.04em;margin:0 0 12px;font-weight:800}h2{font-size:20px;line-height:1.25;letter-spacing:-.025em;margin:0}h3{font-size:16px;margin:0 0 6px}p{margin:0 0 16px}.muted{color:var(--muted)}.small{font-size:14px}.eyebrow{font-size:12px;font-weight:600;letter-spacing:.11em;color:var(--muted);margin-bottom:12px;overflow-wrap:anywhere}.login-panel{max-width:470px;margin:70px auto 25px;padding:30px;background:var(--panel);border:1px solid var(--line);border-radius:14px}.login-panel label{display:block;font-size:14px;margin:24px 0 8px}.login-panel input{width:100%;padding:13px;border-radius:8px;background:var(--bg);color:var(--text);border:1px solid var(--line)}.login-panel .button{width:100%;margin:16px 0}.login-panel .small{margin:10px 0 0}.text-button{color:var(--muted);background:none;border:0;text-decoration:underline;text-underline-offset:4px;padding:10px 0}.account-shell{display:grid;grid-template-columns:200px minmax(0,1fr);max-width:1350px;margin:auto;min-height:650px}.sidebar{padding:30px 16px;display:flex;flex-direction:column;align-items:stretch;gap:7px;border-right:1px solid var(--line);background:var(--panel)}.sidebar button,.sidebar a{color:var(--muted);background:transparent;border:0;text-align:left;padding:12px 15px;border-radius:7px;font-size:14px;text-decoration:none}.sidebar [aria-current=page]{background:var(--soft);color:var(--text);box-shadow:inset 3px 0 var(--accent)}.sidebar #supportLink{margin-top:30px}.account-content{padding:36px;min-width:0}.page-heading,.section-heading,.order-top,.order-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.page-heading{margin-bottom:32px}.section-heading{margin:24px 0 15px}.order-card,.detail-panel{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.order-top strong{overflow-wrap:anywhere}.order-top p{margin:4px 0 0}.status-badge{display:inline-block;color:#ced9e7;background:#263142;padding:6px 10px;border-radius:6px;font-size:14px}.order-product{display:flex;align-items:center;gap:20px;margin:24px 0}.order-product img{width:95px;height:95px;object-fit:contain;background:#eee;border-radius:9px}.order-product p{margin:5px 0}.order-bottom{border-top:1px solid var(--line);padding-top:18px}.order-bottom p{margin:0}.design-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.design-card{border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}.design-image{height:190px;background:#e9edf2}.design-image img{height:100%;width:100%;object-fit:contain}.design-info{padding:18px}.design-info .button{width:100%;margin-top:8px}.design-info p{margin:4px 0 12px}.empty-state{padding:35px 24px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}.empty-state h3{color:var(--text)}.detail-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);gap:20px}.detail-panel dl{margin:20px 0}.detail-panel dl div{display:flex;justify-content:space-between;gap:15px;margin:12px 0}.detail-panel dt{color:var(--muted)}.detail-panel dd{margin:0;text-align:right}.detail-panel .total{border-top:1px solid var(--line);padding-top:14px}.order-actions{display:flex;gap:10px;flex-wrap:wrap}.account-status{max-width:900px;margin:20px auto;padding:0 24px;color:var(--muted);overflow-wrap:anywhere}.account-status.error{color:#ff9aa5}.retry-button{display:flex;margin:15px auto}.back-button{margin-bottom:22px}.email-value{overflow-wrap:anywhere}#verifyEmail{color:var(--text);overflow-wrap:anywhere}
@media(min-width:1100px){.design-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.account-shell{grid-template-columns:1fr}.sidebar{flex-direction:row;flex-wrap:wrap;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar #supportLink{margin-top:0}.account-content{padding:26px 20px}.detail-grid{grid-template-columns:1fr}.account-header{padding:15px 20px}.account-header .button{padding:10px}.store-brand{font-size:16px}.store-brand img{width:48px;height:48px}.login-panel{margin:35px 20px;max-width:470px}.page-heading h1{font-size:28px}}
@media(max-width:450px){.account-header{align-items:flex-start}.store-brand{gap:10px;max-width:190px}.account-header .button{font-size:12px}.page-heading{align-items:flex-start;gap:12px}.page-heading .button{width:100%}.order-card{padding:18px}.order-product{gap:12px}.order-product img{width:70px;height:70px}.sidebar button,.sidebar a{padding:10px;font-size:14px}.login-panel{padding:24px}.order-bottom .button{width:100%}}

.account-header-actions{display:flex;align-items:center;gap:10px}
.account-return-button{white-space:nowrap}
.account-return-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.install-app-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 15px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--text);font-size:14px;font-weight:600;white-space:nowrap}
.install-app-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.install-app-button:hover{border-color:var(--accent)}
@media(display-mode:standalone){.install-app-button{display:none!important}}
.version-update-notice{position:fixed;left:50%;bottom:82px;z-index:1600;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 36px);padding:12px 14px 12px 20px;border:2px solid var(--line);border-radius:999px;background:rgba(16,18,22,.97);color:var(--text);box-shadow:0 18px 52px rgba(0,0,0,.52);font-size:20px;font-weight:750;line-height:1;white-space:nowrap;transform:translateX(-50%)}
.version-update-notice button{min-height:48px;padding:12px 20px;border:0;border-radius:999px;background:var(--accent);color:#fff;font-size:18px;font-weight:900;line-height:1}
.version-update-notice button:hover{filter:brightness(1.12)}
@media(max-width:780px){.account-header-actions{gap:8px}.install-app-button{padding:10px;font-size:12px}.version-update-notice{bottom:70px;gap:8px;max-width:calc(100vw - 24px);padding:10px 10px 10px 14px;font-size:16px}.version-update-notice button{min-height:44px;padding:10px 14px;font-size:16px}}

/* Compact account workspace: order rows, a resume panel, and a design strip. */
.account-header{padding:13px 24px;gap:16px}
.store-brand{gap:10px;font-size:18px}.store-brand img{width:40px;height:40px;border-radius:7px}
.header-support{font-size:13px;color:var(--muted);text-decoration:none;padding:8px 0}
.account-shell{grid-template-columns:220px minmax(0,1fr);max-width:none;min-height:0}
.sidebar{padding:22px 10px;gap:5px}.sidebar-label{padding:0 10px 8px;font-size:11px;letter-spacing:.1em;color:var(--muted);font-weight:600}
.sidebar button{padding:10px;font-size:13px}.sidebar #logoutButton{margin-top:auto}
.account-content{width:100%;max-width:1480px;padding:24px;min-width:0}.page-heading{margin-bottom:22px;gap:12px}.page-heading>div{min-width:0}.page-heading h1{font-size:27px;margin:0 0 5px;overflow-wrap:anywhere}.page-heading p{margin:0;font-size:13px}
.section-heading{margin:0 0 10px;gap:8px;align-items:baseline}.section-heading h2{font-size:17px;line-height:1.4}.section-count{font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0;white-space:nowrap;margin-left:6px}
.account-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 0;border:0;background:none;color:var(--text);font-size:13px;font-weight:600;text-decoration:none;text-align:left}
.account-link:hover,.header-support:hover{text-decoration:underline;text-underline-offset:4px}
.overview-workspace{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;align-items:stretch}
.overview-workspace .section-heading{min-height:32px}
.orders-section,.saved-section{min-width:0}.saved-section{display:flex;flex-direction:column}.saved-section>.section-heading{flex:none}
.order-list{border:1px solid var(--line);border-radius:9px;background:var(--panel);overflow:hidden}
.order-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.order-card:last-child{border-bottom:0}.order-thumbnail{width:58px;height:58px;background:#e9edf2;object-fit:contain;border-radius:6px}
.order-info{min-width:0}.order-info h3{font-size:15px;margin:0 0 5px;overflow-wrap:anywhere}.order-info p{margin:0;font-size:12px}.order-reference{font-size:11px!important;color:var(--muted);overflow-wrap:anywhere;margin:6px 0 0!important}
.order-summary{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:220px}.order-summary .status-badge{font-size:12px;padding:4px 8px;border-radius:5px;max-width:100%;text-align:right}
.order-summary-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.order-summary-actions strong{font-size:14px;font-variant-numeric:tabular-nums}
.design-card h3{overflow-wrap:anywhere}.design-saved{margin:0;padding:0 18px;font-size:12px}.design-continue{margin:12px 18px 18px;display:flex}
.resume-card{display:grid;grid-template-columns:66px minmax(0,1fr);gap:10px 12px;padding:14px;align-content:start;flex:1;border-radius:9px}
.resume-card .design-image{width:66px;height:66px;border-radius:6px;overflow:hidden}.resume-card .design-info{padding:0;align-self:center;min-width:0}.resume-card h3{font-size:15px;margin:3px 0}.resume-card .design-info p{font-size:12px;margin:0}.design-kind{font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.06em}
.resume-card .design-saved{grid-column:1/-1;padding:0;margin:0}.resume-card .design-continue{grid-column:1/-1;margin:10px 0 0;font-size:12px;padding:8px;align-self:end}
.purchased-section{margin-top:22px}.purchased-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.purchased-compact{display:grid;grid-template-columns:62px minmax(0,1fr);gap:14px;padding:14px;align-items:center;border-radius:9px}.purchased-compact .design-image{width:62px;height:62px;border-radius:6px;overflow:hidden}.purchased-compact .design-info{padding:0;min-width:0}.purchased-compact h3{font-size:15px;margin:2px 0 4px}.purchased-compact p{font-size:12px;margin:0}.purchased-compact .account-link{margin-top:5px}
.empty-state{padding:22px 18px;font-size:14px;border-radius:9px}.empty-state h3{font-size:16px}.saved-section>.empty-state{flex:1}.load-more{margin-top:16px}.production-unavailable{margin:12px 0 0}
.account-status:empty{display:none}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>main{flex:1;display:flex;flex-direction:column;min-width:0}
.account-shell{flex:1;width:100%;margin:0}
.order-card{position:relative}
.order-hit{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:transparent;cursor:pointer}
.order-hit:hover{background:rgba(255,255,255,.035)}
.order-hit:focus-visible{outline:3px solid #ff6675;outline-offset:-3px}
.drawer-open{overflow:hidden}
.preview-unavailable{display:flex;align-items:center;justify-content:center;min-height:64px;width:100%;height:100%;padding:5px;text-align:center;color:var(--muted);background:var(--soft);font-size:11px;line-height:1.3;border-radius:6px}
.preview-unavailable.order-thumbnail{width:58px;max-width:100%;height:66px}
.order-product>.preview-unavailable{width:95px;height:95px;flex-shrink:0}
.order-drawer{position:fixed;inset:0 0 0 auto;margin:0;padding:0;width:75vw;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;border-left:1px solid var(--line);background:var(--bg);color:var(--text);overflow:auto;overscroll-behavior:contain;box-shadow:-12px 0 48px #0006}
.order-drawer[open]{animation:order-drawer-enter .24s ease-out}
.order-drawer::backdrop{background:rgba(0,0,0,.86)}
.order-drawer{box-shadow:-24px 0 80px rgba(0,0,0,.85),-2px 0 12px rgba(0,0,0,.75);border-left-color:#414854}
.drawer-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:var(--panel);border-bottom:1px solid var(--line)}
.drawer-header>div{min-width:0}.drawer-header h2{overflow-wrap:anywhere}.drawer-header .eyebrow{margin-bottom:5px}.drawer-header button{flex-shrink:0}
.drawer-content{padding:24px}.drawer-error{color:#ff9aa5;overflow-wrap:anywhere}
.order-drawer .detail-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.order-drawer .detail-panel{min-width:0}.order-drawer .detail-panel h2{overflow-wrap:anywhere}
@keyframes order-drawer-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.order-drawer[open]{animation:none}}
@media(max-width:1100px){.order-drawer .detail-grid{grid-template-columns:1fr}}
@media(max-width:540px){.drawer-header{padding:14px;align-items:flex-start;gap:8px}.drawer-header h2{font-size:16px}.drawer-header .button{padding:8px;font-size:12px}.drawer-content{padding:12px}.order-drawer .detail-panel{padding:14px}.order-drawer .order-product{flex-wrap:wrap}.order-drawer .order-actions .button{width:100%;white-space:normal}.order-drawer .detail-panel dl div{flex-wrap:wrap}.order-drawer .detail-panel dd{overflow-wrap:anywhere}}
@media(max-width:780px){.account-shell{flex:none}.sidebar{align-content:start}}
@media(max-width:1150px){.overview-workspace{grid-template-columns:minmax(0,1fr) 220px;gap:14px}.order-card{gap:10px;padding:14px;grid-template-columns:50px minmax(0,1fr)}.order-thumbnail{width:50px;height:50px}.order-summary{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center;max-width:none}.order-summary .status-badge{text-align:left}.order-summary-actions{flex-shrink:0}}
@media(max-width:900px){.overview-workspace{grid-template-columns:1fr}.resume-card{grid-template-columns:66px minmax(0,1fr) auto;align-items:center}.resume-card .design-saved{grid-column:2;grid-row:2}.resume-card .design-image{grid-row:1/3}.resume-card .design-continue{grid-column:3;grid-row:1/3;margin:0;align-self:center}.order-card{grid-template-columns:50px minmax(0,1fr) auto}.order-summary{grid-column:auto;flex-direction:column;align-items:flex-end;max-width:190px}.order-summary .status-badge{text-align:right}}
@media(max-width:780px){.account-shell{grid-template-columns:1fr}.sidebar{flex-direction:row;padding:8px 14px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-label{display:none}.sidebar #logoutButton{margin-top:0;margin-left:auto}.account-content{padding:20px}.account-header{padding:12px 20px;flex-wrap:wrap}.account-header-actions{flex-wrap:wrap}.purchased-grid{gap:12px}.page-heading h1{font-size:25px}}
@media(max-width:540px){.account-header{padding:12px 14px;gap:10px}.account-header-actions{width:100%;justify-content:flex-end}.account-return-button{margin-right:auto}.header-support{margin-right:auto}.store-brand{max-width:none}.account-content{padding:18px 14px}.page-heading .button{width:auto;font-size:12px;padding:9px 12px}.page-heading{align-items:center}.section-heading h2{font-size:16px}.section-count{font-size:11px}.order-card{grid-template-columns:44px minmax(0,1fr);gap:10px;padding:12px}.order-thumbnail{width:44px;height:44px}.order-summary{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;max-width:none;gap:8px;flex-wrap:wrap}.order-summary .status-badge{text-align:left}.order-summary-actions{margin-left:auto}.order-info h3{font-size:14px}.order-summary .status-badge{font-size:11px}.order-summary-actions strong{font-size:13px}.account-link{font-size:12px}.purchased-grid{grid-template-columns:1fr}.resume-card{grid-template-columns:66px minmax(0,1fr)}.resume-card .design-saved{grid-column:1/-1;grid-row:auto}.resume-card .design-image{grid-row:auto}.resume-card .design-continue{grid-column:1/-1;grid-row:auto;margin-top:3px}.sidebar button{font-size:12px;padding:9px 8px}.sidebar{gap:4px;padding:8px}.detail-panel{padding:18px}.account-header .install-app-button{font-size:12px}}
@media(pointer:coarse){.account-link,.header-support,.sidebar button{min-height:44px}}
