:root{color-scheme:light;--background:#f7f5ed;--paper:#fff;--ink:#153033;--secondary:#6e7067;--gold:#a86b06;--pale:#fae8ba;--line:#ded9cc;--keyboard:0px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--background);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ba974c;outline-offset:4px}a{color:inherit}button,textarea,input{border:0}button{background:none}button,a{ -webkit-user-select:none;user-select:none}[hidden]{display:none!important}.app-shell{max-width:688px;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 22px max(20px,env(safe-area-inset-bottom))}.brand-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none}.brand img{border-radius:15px}.brand span{font:36px Georgia,"Times New Roman",serif;letter-spacing:-1.2px}.icon-button{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;font-size:20px;color:var(--secondary)}.icon-button:hover{background:#ebe7dc}.icon-button svg{width:25px;height:25px}.intro{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 22px}h1{font:26px Georgia,"Times New Roman",serif;letter-spacing:-.4px;margin:0}h2{font-size:18px;line-height:1.3;letter-spacing:-.35px;margin:0;font-weight:650}h2>span:first-child:not(.section-title){color:var(--gold);font:700 12px ui-monospace,monospace;letter-spacing:1px;margin-right:10px}.credit-card{padding:22px;background:var(--pale);border:1px solid #e7d6a4;border-radius:21px;display:flex;gap:15px;justify-content:space-between;align-items:center;margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:1.1px;text-transform:uppercase;font-weight:650;color:#796031}.credit-card p{font:24px Georgia,serif;margin:9px 0 7px}.credit-card .muted{font-size:12px;display:block;line-height:1.5}.muted{color:var(--secondary);font-size:14px;line-height:1.6}.small-button{border:1px solid #aa8e4f;border-radius:11px;padding:11px 13px;min-height:44px;white-space:nowrap;font-size:13px;font-weight:600;background:#fff9e9}.small-button span{margin-left:8px}.studio-card{padding:23px;background:var(--paper);border:1px solid #e5e1d7;border-radius:22px;margin-bottom:20px}.studio-card>h2{margin-bottom:20px}.dropzone{width:100%;min-height:185px;display:grid;place-items:center;padding:22px;border:1px dashed #d3cbb9;border-radius:16px;background:var(--background)}.dropzone.dragging{border:2px solid var(--gold);background:var(--pale)}#upload-empty{display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--secondary)}#upload-empty svg{color:var(--gold);margin-bottom:6px}#upload-empty strong{color:var(--ink);font-weight:550;font-size:15px}small{font-size:12px}.desktop-hint{opacity:.65;font-size:11px}.dropzone img,.proof-image img{max-width:100%;max-height:340px;object-fit:contain;display:block;margin:auto}.filename-row{display:flex;justify-content:space-between;gap:12px;margin:12px 0 0;color:var(--secondary);font-size:12px}#filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill{font-size:10px;padding:3px 7px;border:1px solid var(--line);border-radius:5px;white-space:nowrap}.button-row{display:flex;gap:10px;margin-top:17px}.outline-button,.primary-button{display:flex;align-items:center;justify-content:center;text-align:center;gap:9px;border-radius:14px;min-height:49px;padding:12px 16px;text-decoration:none;width:100%;font-size:14px;font-weight:600;line-height:1.4}.outline-button{border:1px solid var(--line);background:white}.outline-button:hover{background:#f9f8f3}.primary-button{color:white;background:var(--ink);min-height:54px;margin-top:17px;font-size:15px}.primary-button:hover{background:#234448}.primary-button:disabled{background:#89918c}.caption{font-size:12px;color:var(--secondary);line-height:1.6;margin:12px 0 0}textarea,input{color:var(--ink);background:var(--background);border:1px solid var(--line);border-radius:13px}textarea{display:block;width:100%;padding:14px 13px;resize:vertical;min-height:136px;max-height:360px;line-height:1.6;scroll-margin-top:22px;caret-color:var(--ink);-webkit-text-fill-color:var(--ink);opacity:1}textarea::placeholder{color:#929487;-webkit-text-fill-color:#929487}input{padding:14px;width:100%;min-height:50px;font-size:16px}.size-row{display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:15px}.size-row label{font-size:14px;font-weight:500}.size-row label span{display:block;font-size:12px;font-weight:400;margin-top:3px}.stepper{display:flex;background:var(--background);border-radius:11px;align-items:center;padding:3px}.step-button{font-size:19px;width:39px;height:42px;border-radius:8px}.step-button:hover{background:#e9e5da}.stepper input{border:0;background:none;width:61px;text-align:center;padding:5px;font-variant-numeric:tabular-nums;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button{appearance:none}.progress-card{display:flex;gap:14px;background:#f9ebc9;border-radius:16px;padding:20px;margin-bottom:20px;font-size:14px}.progress-card p{color:var(--secondary);font-size:12px;margin:6px 0 0}.spinner{width:19px;height:19px;border:2px solid #dfc693;border-top-color:var(--gold);border-radius:50%;animation:spin .9s linear infinite;flex-shrink:0;margin-top:1px}@keyframes spin{to{transform:rotate(360deg)}}.proof-image{padding:18px;background:var(--background);border:1px solid #e8e4d9;border-radius:16px;min-height:200px;display:grid;place-items:center}.section-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px}.text-button{min-height:42px;padding:7px 3px;font-size:12px;font-weight:600;color:var(--gold);text-decoration:none}.saved-list{display:grid;gap:11px}.saved-item{border:1px solid #e9e5da;padding:13px;border-radius:13px;width:100%;display:flex;gap:13px;align-items:center;text-align:left}.saved-item:hover{background:var(--background)}.saved-item img{width:48px;height:48px;object-fit:contain;background:var(--background);border-radius:9px}.saved-item .saved-info{min-width:0;flex:1}.saved-item strong{display:block;font-size:14px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-item small{display:block;color:var(--secondary);margin-top:4px;font-size:11px}.saved-item .saved-cost{font-size:12px;color:var(--gold);white-space:nowrap}.empty-history{text-align:center;padding:15px 0 23px;color:var(--secondary)}.empty-history>span{font:46px Georgia,serif;color:#bcb29b}.empty-history p{font-size:14px;margin:6px 0}.empty-history small{font-size:12px}.run-list{display:grid;gap:10px;margin-top:16px}.run-row{display:flex;gap:10px;justify-content:space-between;font-size:12px;border-top:1px solid #efede7;padding-top:10px;line-height:1.5}.run-row small{color:var(--secondary);font-size:11px;display:block}.stitch-summary{font-size:13px;line-height:1.7;color:var(--secondary)}.error,.notice{display:flex;align-items:center;justify-content:space-between;padding:14px 17px;border-radius:13px;margin-bottom:18px;font-size:13px;line-height:1.5}.error{background:#f9e9e5;color:#80382e}.notice{background:#e9efe6;color:#3e603b}.error .text-button{color:inherit;min-width:35px}.error-text{color:#943e30;font-size:13px;line-height:1.5}footer{padding:9px 4px 0;display:flex;justify-content:space-between;align-items:center;color:var(--secondary);font-size:12px}footer>span{font:17px Georgia,serif}dialog{width:calc(100% - 30px);max-width:430px;max-height:calc(100dvh - 36px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:24px;color:var(--ink);background:var(--paper);box-shadow:0 20px 100px #15303333}dialog::backdrop{background:#10282b66;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin:-6px -8px 21px 0;gap:8px}.dialog-header h2{font:25px Georgia,serif}.dialog-close{width:40px;height:40px;font-size:18px}.dialog-header~p{line-height:1.6}dialog form label{display:block;font-size:15px;margin:10px 0 14px}dialog .account-name{font:28px Georgia,serif;margin:9px 0 16px}.color-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 12px}.color-choice{padding:14px;border:1px solid var(--line);border-radius:14px;font-size:13px;display:flex;align-items:center;gap:11px;min-height:64px}.swatch{height:28px;width:28px;border:1px solid #0002;border-radius:50%}.color-choice:hover{background:var(--background)}.credit-packs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.credit-pack{background:var(--background);border:1px solid var(--line);padding:15px;border-radius:13px}.credit-pack strong{display:block;font-size:19px}.credit-pack small{display:block;color:var(--secondary);margin-top:5px;font-size:11px}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{display:block;padding:12px;background:var(--ink);color:white}html{scroll-padding-bottom:85px;scroll-behavior:smooth}body.keyboard-open #instructions-card{padding-bottom:94px}body.keyboard-open #preview-button{position:fixed;left:max(22px,calc((100vw - 644px)/2));right:max(22px,calc((100vw - 644px)/2));bottom:calc(var(--keyboard) + 12px);width:auto;z-index:8;box-shadow:0 0 0 10px var(--background);margin:0}body.keyboard-open dialog{max-height:calc(var(--visual-height,100dvh) - 24px)}@media(max-width:500px){.app-shell{padding:21px 18px max(22px,env(safe-area-inset-bottom))}.brand-header{margin-bottom:22px}.brand span{font-size:32px}.brand img{width:54px;height:54px}.studio-card{padding:19px}.credit-card{padding:18px;gap:10px}.credit-card p{font-size:22px}.credit-card .muted{font-size:11px;max-width:210px}.eyebrow{font-size:9px;letter-spacing:.8px}.small-button{font-size:12px;padding:10px}.dropzone{min-height:162px}.desktop-hint{display:none}h1{font-size:25px}h2{font-size:17px}.intro .text-button{font-size:11px}body.keyboard-open #preview-button{left:19px;right:19px}dialog{padding:22px}.button-row{gap:9px}}@media(min-width:1000px){.app-shell{padding-top:44px}.brand-header{margin-bottom:30px}.dropzone{min-height:210px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.spinner{animation-duration:2s}}

.queue-list{max-height:320px;overflow:auto;display:grid;gap:8px}.run-row{width:100%;text-align:left;border-radius:8px;padding:10px 6px;align-items:flex-start}.run-row:hover{background:var(--background)}.run-row>span:first-child{flex:1;min-width:0}.run-row>span:last-child{white-space:nowrap}.run-row .run-error{color:#943e30}
.record-row{display:flex;align-items:stretch;gap:8px;min-width:0}.record-row>.run-row,.record-row>.saved-item{flex:1;min-width:0}.delete-button{flex:0 0 52px;min-height:44px;align-self:center;border:1px solid #ead5ce;border-radius:10px;color:#943e30;padding:8px 5px;font-size:11px}.delete-button:hover,.danger-button:hover{background:#f9e9e5}.danger-button{color:#943e30;border-color:#d8b2a8}.run-usage{text-align:right}.run-usage small{font-size:11px}

.color-limit{width:116px;text-align:center}.size-row select{font:inherit;color:var(--ink);background:var(--background);border:1px solid var(--line);border-radius:10px;min-height:44px;max-width:62%;padding:9px 12px}.size-row select:focus-visible{outline:3px solid #ba974c;outline-offset:4px}.pes-revision{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.pes-revision h3{font-size:16px;font-weight:600;margin:0 0 14px}.pes-revision textarea{min-height:105px}body.keyboard-pes-open #pes-revision-section{padding-bottom:94px}body.keyboard-pes-open #revise-pes-button{position:fixed;left:max(22px,calc((100vw - 644px)/2));right:max(22px,calc((100vw - 644px)/2));bottom:calc(var(--keyboard) + 12px);width:auto;z-index:8;box-shadow:0 0 0 10px var(--background);margin:0}@media(max-width:500px){body.keyboard-pes-open #revise-pes-button{left:19px;right:19px}}

body.keyboard-approve-open #review-card{padding-bottom:94px}body.keyboard-approve-open #approve-button,body.keyboard-approve-open #retry-button{position:fixed;left:max(22px,calc((100vw - 644px)/2));right:max(22px,calc((100vw - 644px)/2));bottom:calc(var(--keyboard) + 12px);width:auto;z-index:8;box-shadow:0 0 0 10px var(--background);margin:0}@media(max-width:500px){body.keyboard-approve-open #approve-button,body.keyboard-approve-open #retry-button{left:19px;right:19px}}

.credit-pack{text-align:left;min-height:120px}.credit-pack:hover:not(:disabled){border-color:var(--gold);background:#fff8e4}.credit-pack-action{display:block;margin-top:13px;font-size:12px;font-weight:600;color:var(--gold)}#payment-status{padding:12px;background:var(--pale);border-radius:10px}
.account-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:18px}.recovery-code{display:block;overflow-wrap:anywhere;padding:18px;margin:20px 0;background:var(--background);border:1px solid var(--line);border-radius:12px;font-size:17px;line-height:1.7;user-select:all}.recovery-ack{display:flex;align-items:center;gap:10px;margin-top:20px;font-size:14px}.recovery-ack input{width:20px;height:20px;flex:none}.auth-back{margin-top:12px}

.artwork-inputs{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.artwork-inputs h3{font-size:15px;font-weight:600;margin:0 0 12px}.approval-actions{display:flex;justify-content:flex-start;align-items:center}.approval-actions .approve-primary{width:auto;max-width:100%;margin-right:auto;justify-content:flex-start;text-align:left;padding:15px 24px;color:#153033;background:#efc56c;border:1px solid #c99530;box-shadow:0 3px 12px #a86b0626}.approval-actions .approve-primary:hover:not(:disabled){background:#f5d487}.approval-actions .approve-primary:disabled{background:#e7dfcc}.secondary-preview{color:var(--ink);background:var(--paper);border:1px solid var(--line)}.secondary-preview:hover:not(:disabled){background:var(--background)}

/* Keep profile fields legible in system dark mode and after autofill. */
#account-dialog input:not([type="checkbox"]){color-scheme:light;appearance:none;background:#f7f5ed;color:#153033;-webkit-text-fill-color:#153033;caret-color:#153033;opacity:1}#account-dialog input::placeholder{color:#6e7067;-webkit-text-fill-color:#6e7067;opacity:1}#account-dialog input:autofill{background:#f7f5ed;color:#153033;box-shadow:0 0 0 1000px #f7f5ed inset}#account-dialog input:-webkit-autofill,#account-dialog input:-webkit-autofill:hover,#account-dialog input:-webkit-autofill:focus{-webkit-text-fill-color:#153033;caret-color:#153033;-webkit-box-shadow:0 0 0 1000px #f7f5ed inset}

/* Keep copy compact and prevent isolated words on narrow screens. */
p,small,.caption,.muted,.notice,.error,.error-text,.stitch-summary{ text-wrap:pretty }
h1,h2,h3{ text-wrap:balance }
.section-heading h2,.dialog-header h2{min-width:0}
.section-heading>.text-button,.size-row>label,.primary-button,.outline-button,.text-button,.eyebrow,.operator{white-space:nowrap}
.credit-card>div{min-width:0}.credit-card p{white-space:nowrap}
.density-help{display:flex;flex-wrap:wrap;gap:4px 14px}.density-help span{white-space:nowrap}
footer{flex-wrap:wrap;justify-content:center;gap:4px 20px}
footer>.operator{flex-basis:100%;font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center}
.footer-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 24px}
@media(max-width:380px){.app-shell{padding-left:12px;padding-right:12px}.studio-card{padding:16px}.credit-card{padding:16px;flex-wrap:wrap}.credit-card>div{flex:1}.section-heading{flex-wrap:wrap;gap:4px 12px}.size-row{gap:10px}.size-row select{max-width:60%;padding:9px 7px}.approval-actions .approve-primary{padding:14px 16px}.outline-button,.primary-button{padding-left:12px;padding-right:12px}.run-row{flex-wrap:wrap}.run-row>span:last-child{margin-left:auto}.record-row .run-row>span:first-child{flex-basis:100%}}

/* Gyldan token purchases share the studio's paper, ink, and gold palette. */
.token-dialog{background:var(--background);max-width:460px;padding:25px}.token-brand{display:flex;align-items:center;gap:11px;min-width:0}.token-brand img{border-radius:10px;flex:none}.token-brand .eyebrow{display:block;font-size:10px;margin-bottom:4px}.token-brand h2{font:22px Georgia,serif;letter-spacing:-.4px;white-space:nowrap}.token-dialog .dialog-header{margin-bottom:23px}.token-balance{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:15px 17px;background:var(--paper);border:1px solid var(--line);border-radius:14px}.token-balance strong{font:27px Georgia,serif;white-space:nowrap}.token-purpose{margin-top:10px}.token-dialog .credit-packs{gap:11px;margin:21px 0 13px}.token-dialog .credit-pack{position:relative;min-height:134px;border:1px solid #d9d0bc;background:var(--paper);padding:17px 15px;border-radius:16px;box-shadow:0 2px 8px #15303304}.token-dialog .credit-pack strong{font:29px Georgia,serif;color:var(--ink);white-space:nowrap}.token-dialog .credit-pack small{font-size:11px;white-space:nowrap}.token-dialog .credit-pack:hover:not(:disabled){border-color:var(--gold);background:#fff9eb}.token-dialog .credit-pack-action{font-size:12px;margin-top:17px;white-space:nowrap}.credit-bonus{display:inline-block;font-size:10px;font-weight:700;color:#705013;background:var(--pale);border-radius:5px;padding:3px 6px;margin-bottom:7px;white-space:nowrap}.token-security{text-align:center;font-size:11px}.token-dialog>#refresh-wallet{display:block;margin:6px auto 0}.token-operator{text-align:center;font-size:10px;margin-top:16px}.checkout-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.checkout-actions .outline-button{font-size:12px;padding:10px 6px;min-height:44px}.checkout-actions>.text-button{grid-column:1/-1;justify-self:center;min-height:32px}.payment-receipt{margin-top:18px;border:1px solid #c9d7c2;background:#eef3e9;border-radius:16px;padding:20px;text-align:center}.receipt-check{display:grid;place-items:center;margin:0 auto 10px;width:34px;height:34px;border-radius:50%;background:#153033;color:#fff;font-size:20px}.payment-receipt h3{font:23px Georgia,serif;margin:0}.payment-receipt p{margin:10px 0 0;font-size:14px}.payment-receipt p strong{white-space:nowrap}.payment-receipt .caption{font-size:12px}.payment-receipt .primary-button{min-height:46px;font-size:14px;margin-top:17px}.purchase-history{margin-top:19px;padding-top:18px;border-top:1px solid var(--line)}.purchase-history h3{font-size:13px;margin:0 0 10px}.purchase-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:9px 0;font-size:12px;color:var(--secondary)}.purchase-row+ .purchase-row{border-top:1px solid #e5e0d5}.purchase-row>span{white-space:nowrap}.purchase-row>span:last-child{text-align:right}.purchase-row strong{display:block;font-size:12px;color:var(--ink);font-weight:600}.purchase-row small{display:block;margin-top:3px;font-size:11px}
@media(max-width:500px){.token-dialog{width:100%;max-width:100%;max-height:calc(100dvh - 18px);margin:auto 0 0;border-radius:24px 24px 0 0;padding:22px 22px max(22px,env(safe-area-inset-bottom));border-bottom:0}.token-brand h2{font-size:21px}.token-dialog .dialog-header{margin-right:-4px}.token-balance{padding:13px 15px}.token-dialog .credit-pack{min-height:124px}.token-dialog .credit-pack strong{font-size:27px}}
@media(max-width:350px){.token-dialog{padding-left:17px;padding-right:17px}.token-brand h2{font-size:19px}.token-brand{gap:8px}.token-dialog .credit-pack{padding:15px 12px}.token-dialog .credit-pack small{font-size:10px}}

/* Signup uses eight unlabeled swatches; names remain available to assistive technology. */
.color-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.color-choice{justify-content:center;padding:10px;min-height:65px}.color-choice .swatch{width:38px;height:38px;flex:none}.verified-badge{display:block;color:#35613d;font-size:12px;line-height:1.5;margin-top:8px}.credit-card.starter-eligible{flex-wrap:wrap}.credit-card.starter-eligible #credit-button{width:100%;background:var(--ink);color:#fff;border-color:var(--ink);min-height:49px;font-size:14px}.starter-credit-offer{padding:0 0 14px;border-bottom:1px solid var(--line)}.starter-credit-offer .primary-button{margin-top:15px}.starter-credit-offer .caption{text-align:center;font-size:11px}.starter-dialog h2{text-wrap:balance}.starter-dialog .notice{display:block}.starter-code-actions{display:flex;justify-content:space-between;gap:12px}.starter-dialog #starter-view-credits{display:block;margin:12px auto 0}.starter-success{text-align:center;padding:12px 0}.starter-success h3{font:23px Georgia,serif;margin:16px 0 9px}.starter-success p{font-size:14px}.starter-dialog input{scroll-margin:20px}.starter-dialog{max-height:calc(var(--visual-height,100dvh) - 24px)}
