
:root{
  --ground:#13090a; --ground-2:#1f1213; --surface:#261617; --surface-2:#311d1f;
  --ink:#F4F1E8; --ink-soft:#d0c9b9; --slate:#a07c7f; --line:#402a2c; --line-soft:#311e20;
  --brass:#EFBE6C; --brass-strong:#F7D394; --court:#c95660; --stitch:#FF6259;
  --holo-gold:#F5C56B; --holo-pink:#FF6FA8; --holo-violet:#e9d098; --holo-cyan:#ddb660;
  --shadow-lg: 0 30px 70px -25px rgba(0,0,0,.65);
}
*{box-sizing:border-box;}
body{background:var(--ground); color:var(--ink); font-family:'Arial',system-ui,sans-serif;}
.app{max-width:1180px; margin:0 auto; padding:26px 20px 70px; position:relative;}
button, input, select{font-family:inherit; color:inherit;}
:focus-visible{outline:2px solid var(--brass); outline-offset:2px;}
h1,h2,p{text-wrap:balance;}

/* ---- ambient glow ---- */
.bg-glow{position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none;}
.bg-glow span{position:absolute; border-radius:50%; filter:blur(90px);}
.bg-glow span:nth-child(1){width:44vw; height:44vw; max-width:640px; max-height:640px; background:var(--holo-violet); opacity:.22; top:-14%; left:-12%;}
.bg-glow span:nth-child(2){width:40vw; height:40vw; max-width:600px; max-height:600px; background:var(--holo-pink); opacity:.18; bottom:-16%; right:-10%;}
.bg-glow span:nth-child(3){width:26vw; height:26vw; max-width:420px; max-height:420px; background:var(--brass); opacity:.14; top:32%; right:14%;}
@media (prefers-reduced-motion:no-preference){
  .bg-glow span:nth-child(1){animation:drift1 24s ease-in-out infinite;}
  .bg-glow span:nth-child(2){animation:drift2 28s ease-in-out infinite;}
  .bg-glow span:nth-child(3){animation:drift1 34s ease-in-out infinite reverse;}
}
@keyframes drift1{ 0%,100%{transform:translate(0,0);} 50%{transform:translate(4%,6%);} }
@keyframes drift2{ 0%,100%{transform:translate(0,0);} 50%{transform:translate(-5%,-4%);} }

/* ---- topbar ---- */
.topbar{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:8px;}
.brand{display:flex; align-items:baseline; gap:12px;}
.brand-mark{font-family:'Impact',sans-serif; font-size:38px; letter-spacing:1px; line-height:1;
  background:linear-gradient(100deg,var(--holo-gold),var(--holo-pink) 35%,var(--holo-violet) 65%,var(--holo-cyan));
  background-size:280% 100%; -webkit-background-clip:text; background-clip:text; color:transparent;}
@media (prefers-reduced-motion:no-preference){ .brand-mark{animation:holoShift 7s ease-in-out infinite;} }
@keyframes holoShift{ 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }
.brand-tag{font-family:'Courier New',monospace; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--slate);}

.tier-switch{display:flex; background:rgba(22,27,38,.7); backdrop-filter:blur(10px); border:1px solid var(--line); border-radius:12px; padding:4px; gap:2px;}
.tier-btn{position:relative; border:none; background:transparent; padding:9px 16px; border-radius:9px; font-size:13.5px; font-weight:700; cursor:pointer; color:var(--ink-soft); transition:color .15s;}
.tier-btn.active{color:var(--ground); background:linear-gradient(120deg,var(--holo-gold),var(--holo-pink)); box-shadow:0 6px 20px -6px rgba(255,111,168,.55);}
.tier-btn:not(.active):hover{color:var(--ink);}
.badge-pop{position:absolute; top:-9px; right:-4px; background:linear-gradient(120deg,var(--holo-violet),var(--holo-cyan)); color:var(--ground); font-size:8.5px; font-weight:800; letter-spacing:.05em; padding:2px 6px; border-radius:20px;}

.hero-line{font-size:15px; color:var(--ink-soft); margin:2px 0 30px; max-width:46ch;}
.hero-line b{color:var(--ink); font-weight:700;}

/* ---- layout ---- */
.layout{display:grid; grid-template-columns:340px 1fr; gap:26px; align-items:start;}
@media (max-width:860px){ .layout{grid-template-columns:1fr;} .stage{order:-1;} }

/* ---- panel ---- */
.panel{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:22px; display:flex; flex-direction:column; gap:20px;}
.section-label{font-family:'Courier New',monospace; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--slate); margin:0 0 9px;}
.field{display:flex; flex-direction:column; gap:6px;}
.field label, .two-col label{display:flex; flex-direction:column; gap:6px; font-size:12.5px; font-weight:600; color:var(--ink-soft);}
.field input, .two-col input, select{background:var(--surface-2); border:1px solid var(--line); border-radius:9px; padding:10px 11px; font-size:14px; color:var(--ink);}
.field input:focus, .two-col input:focus, select:focus{border-color:var(--brass);}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:10px;}

/* dropzone */
.dropzone{border:1.5px dashed var(--line); border-radius:12px; padding:18px; text-align:center; cursor:pointer; background:var(--surface-2); transition:border-color .15s, background .15s;}
.dropzone:hover, .dropzone.drag{border-color:var(--holo-pink); background:color-mix(in srgb, var(--holo-pink) 8%, var(--surface-2));}
.dropzone svg{width:26px; height:26px; margin-bottom:6px; color:var(--slate);}
.dropzone-text{font-size:13px; color:var(--ink-soft); font-weight:600;}
.dropzone-sub{font-size:11px; color:var(--slate); margin-top:2px;}
.photo-controls{display:flex; flex-direction:column; gap:8px;}
.photo-row{display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--ink-soft);}
.photo-row input[type="range"]{flex:1;}
.link-btn{background:none; border:none; color:var(--brass); font-size:12.5px; font-weight:700; cursor:pointer; padding:0; text-align:left;}

.logo-row{display:flex; align-items:center; gap:12px;}
.logo-preview{width:44px; height:44px; border-radius:50%; background:var(--surface-2) center/cover no-repeat; border:1.5px dashed var(--line); flex-shrink:0;}
.logo-preview.has-logo{border-style:solid; border-color:var(--line);}
.logo-actions{display:flex; flex-direction:column; gap:4px; align-items:flex-start;}

/* chips / swatches */
.chip-group{display:flex; flex-wrap:wrap; gap:8px;}
.chip{position:relative; border:1px solid var(--line); background:var(--surface-2); border-radius:9px; padding:8px 13px; font-size:12.5px; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:6px; transition:border-color .15s, box-shadow .15s, transform .1s;}
.chip:hover{transform:translateY(-1px);}
.chip.active{border-color:transparent; background:linear-gradient(var(--surface-2),var(--surface-2)) padding-box, linear-gradient(120deg,var(--holo-gold),var(--holo-pink)) border-box; border:1.5px solid transparent; box-shadow:0 0 0 1px rgba(255,111,168,.25), 0 8px 20px -10px rgba(255,111,168,.5);}
.chip.locked{opacity:.5;}
.chip .lock{font-size:11px;}
.color-slot{display:flex; flex-direction:column; gap:7px;}
.color-slot-head{display:flex; justify-content:space-between; align-items:baseline; font-size:12px; font-weight:700; color:var(--ink-soft);}
.color-hex{font-family:'Courier New',monospace; font-size:10.5px; color:var(--slate); font-weight:500;}
.swatch-grid{display:flex; flex-wrap:wrap; gap:8px;}
.swatch-mini{width:25px; height:25px; border-radius:50%; border:2px solid var(--surface); box-shadow:0 0 0 1px var(--line); cursor:pointer; padding:0; flex-shrink:0; transition:transform .1s, box-shadow .15s;}
.swatch-mini:hover{transform:translateY(-1px);}
.swatch-mini.active{box-shadow:0 0 0 2px var(--ground), 0 0 0 4px var(--brass);}
.swatch-mini.custom{-webkit-appearance:none; appearance:none; background:conic-gradient(from 90deg,#ff5f5f,#ffd24d,#deb761,#cd606a,#e5c785,#ff5f5f);}
.swatch-mini.custom::-webkit-color-swatch-wrapper{padding:0; border-radius:50%;}
.swatch-mini.custom::-webkit-color-swatch{border:none; border-radius:50%;}
.field-hint{font-size:11.5px; color:var(--slate); margin:-4px 0 2px; line-height:1.4;}
#colorField{border-radius:12px; transition:box-shadow .3s, background .3s;}
#colorField.attn{box-shadow:0 0 0 2px var(--holo-pink), 0 0 24px -4px rgba(255,111,168,.5); background:color-mix(in srgb, var(--holo-pink) 6%, transparent);}
@media (prefers-reduced-motion:no-preference){
  #colorField.attn .swatch-grid{animation:attnPulse 1.6s ease-in-out 2;}
}
@keyframes attnPulse{ 0%,100%{transform:scale(1);} 50%{transform:scale(1.03);} }

/* grade block */
.grade-block{display:flex; flex-direction:column; gap:10px; border-top:1px solid var(--line); padding-top:18px;}
.grade-head{display:flex; justify-content:space-between; align-items:baseline;}
.grade-head b{font-family:'Courier New',monospace; font-variant-numeric:tabular-nums; font-size:16px; color:var(--brass-strong);}
input[type="range"]{accent-color:var(--brass);}
input[type="range"]:disabled{opacity:.4; cursor:not-allowed;}
.subgrades{display:flex; flex-direction:column; gap:6px;}
.subgrade-row{display:grid; grid-template-columns:70px 1fr 30px; align-items:center; gap:8px; font-size:11.5px; color:var(--ink-soft);}
.subgrade-bar{height:5px; border-radius:3px; background:var(--surface-2); overflow:hidden;}
.subgrade-fill{height:100%; background:linear-gradient(90deg,var(--court),var(--holo-cyan)); border-radius:3px;}
.subgrade-row span:last-child{font-family:'Courier New',monospace; text-align:right; font-variant-numeric:tabular-nums;}
.btn-ghost{align-self:flex-start; border:none; background:linear-gradient(120deg,var(--brass),var(--brass-strong)); color:#241705; border-radius:9px; padding:10px 16px; font-size:12.5px; font-weight:800; cursor:pointer; transition:transform .1s, box-shadow .15s; box-shadow:0 8px 18px -8px rgba(239,190,108,.6);}
.btn-ghost:hover{transform:translateY(-1px); box-shadow:0 10px 22px -8px rgba(239,190,108,.75);}
.toast{font-size:11.5px; color:var(--stitch); min-height:14px; font-weight:600;}

/* ---- stage / slab ---- */
.stage{display:flex; flex-direction:column; align-items:center; gap:14px; padding-top:6px;}
.tilt-wrap{perspective:1000px; width:min(100%,400px);}
.slab{position:relative; width:100%; background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:16px;
  box-shadow:var(--shadow-lg), 0 0 60px -18px rgba(156,130,255,.35), 0 0 40px -14px rgba(255,111,168,.25);
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transform-style:preserve-3d; will-change:transform;}
@media (prefers-reduced-motion:no-preference){ .slab{transition:transform .12s ease-out;} }
.slab::after{content:""; position:absolute; inset:0; border-radius:18px; pointer-events:none;
  background:radial-gradient(circle at var(--mx,50%) var(--my,20%), rgba(255,255,255,.22), rgba(255,255,255,0) 42%);
  mix-blend-mode:overlay; opacity:var(--glare,0.5);}
.slab-label{position:relative; display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; padding:11px 13px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); margin-bottom:13px;}
.grade-shield{background:linear-gradient(145deg,var(--brass-strong),var(--brass)); color:#241705; border-radius:9px; width:56px; height:56px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-family:'Courier New',monospace; font-weight:700; flex-shrink:0;}
.grade-shield b{font-size:16px; line-height:1; font-variant-numeric:tabular-nums;}
.grade-shield small{font-size:7px; letter-spacing:.05em;}
.label-text{min-width:0;}
.label-brand{font-family:'Courier New',monospace; font-size:9.5px; letter-spacing:.13em; color:var(--slate); text-transform:uppercase;}
.label-line{font-size:11px; color:var(--ink-soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.label-line.strong{font-family:'Impact',sans-serif; font-size:20px; letter-spacing:.5px; color:var(--ink); margin-top:1px;}
.label-cert{text-align:right; flex-shrink:0;}
.cert-num{font-family:'Courier New',monospace; font-size:9.5px; color:var(--slate); margin-bottom:4px; white-space:nowrap;}
.barcode{display:flex; align-items:flex-end; gap:1px; height:16px; justify-content:flex-end;}
.barcode span{display:block; width:2px; background:var(--ink-soft); opacity:.8;}
.slab-window{position:relative; border-radius:11px; overflow:hidden;}
canvas{display:block; width:100%; height:auto; max-width:100%; cursor:grab;}
.stage-caption{font-size:12px; color:var(--slate); text-align:center; font-weight:500;}
.stage-caption b{color:var(--holo-pink); font-weight:700;}

dialog{max-width:480px;width:calc(100% - 32px);border:1px solid #e2dfd7;border-radius:20px;padding:26px;color:#24191a;background:#faf8f5;box-shadow:0 30px 90px #0003}dialog::backdrop{background:#241718cc;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px}dialog h2{font-size:28px;letter-spacing:-1px;line-height:1.15}dialog p{font-size:12px;line-height:1.7;color:#645254}.purchase-option{border:1px solid #e2dfd7;border-radius:10px;padding:16px;margin:12px 0;background:white}.purchase-option b{font-size:14px}.purchase-option p{margin-bottom:0}.purchase-status{padding:8px 0}#orderSummary{text-transform:capitalize}
.slab.bare-card{padding:0;background:transparent;border:0;box-shadow:0 16px 30px -20px #39171a55;transform:none!important}.slab.bare-card::after{display:none}#gradingControls{display:flex;flex-direction:column;gap:10px}.slab-label{border-left:4px solid #efbe6c}#headline:disabled{opacity:.5}.field input[type=checkbox]{width:auto}
#maskDialog{max-width:900px;max-height:94dvh;overflow-y:auto}#maskTitle{margin:8px 0 0;font-size:24px}.mask-toolbar,.mask-footer{display:flex;flex-wrap:wrap;gap:8px}.mask-tool[aria-pressed=true]{background:#3c2123;color:#f5e9cf}.mask-settings{display:flex;flex-wrap:wrap;gap:20px;margin:15px 0;font-size:12px}.mask-settings label{display:flex;align-items:center;gap:8px}.mask-settings input{max-width:120px}.mask-settings output{min-width:28px}.mask-workspace{display:flex;justify-content:center;max-height:52dvh;overflow:auto;margin:12px 0;background-color:#eee;background-image:conic-gradient(#d7d7d7 25%,transparent 0 50%,#d7d7d7 0 75%,transparent 0);background-size:20px 20px;border:1px solid #d3cfc5;border-radius:8px}#maskCanvas{width:auto;height:auto;max-height:52dvh;max-width:100%;object-fit:contain;cursor:crosshair;touch-action:none}.mask-footer{justify-content:space-between;margin-bottom:12px}.background-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.background-options button{display:flex;flex-direction:column;text-align:center;font-size:11px;padding:6px}.background-options img{width:100%;height:58px;object-fit:cover;border-radius:4px}.original-swatch{height:58px;display:grid;place-items:center;background:#ece9e1;border-radius:4px;font-size:20px}.mask-settings input{min-width:0}
textarea{font:inherit;width:100%;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--surface-2);color:var(--ink)}.cleanup-callout{border:1px solid #d9d3b7;background:#fbf9ed;border-radius:8px;padding:12px;font-size:12px;line-height:1.6}.cleanup-callout p{margin:5px 0}.cleanup-actions{display:flex;flex-wrap:wrap;gap:8px}
/* Studio tools and live layout previews */
.studio-tools{display:flex;align-items:center;gap:18px}.history-controls{display:flex;gap:3px}.history-btn{display:flex;align-items:center;gap:5px;border:0;border-radius:6px;background:transparent;padding:8px;color:#553c3e;font-size:15px}.history-btn span{font-size:10px;font-weight:600}.history-btn:hover:not(:disabled){background:#f3efe7}#layoutGroup{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#layoutGroup .chip{display:flex;flex-direction:column;align-items:stretch;padding:8px;gap:8px;text-align:center;min-width:0;font-size:11px}#layoutGroup canvas{width:100%;max-height:125px;object-fit:contain;cursor:pointer;touch-action:auto;pointer-events:none;border-radius:5px}#designForm .field input{width:100%}#designForm>.primary-btn{width:100%;margin-top:8px}.preset-actions{flex-wrap:wrap}.preset-actions button{min-width:75px}
@media(max-width:640px){.studio-bar{align-items:flex-start}.studio-tools{flex-direction:column;align-items:flex-end;gap:3px}.history-btn{padding:4px 6px}.studio-title{padding-top:5px}#layoutGroup canvas{max-height:120px}}
/* Customer studio */
:root{--ground:#f6f7f2;--ground-2:#f0eee8;--surface:#fff;--surface-2:#f5f6f1;--ink:#24191a;--ink-soft:#5b4c4d;--slate:#726364;--line:#e2dfd7;--line-soft:#eceae5;--brass:#73393e;--brass-strong:#582328;--court:#77383e;--holo-pink:#73393e;--shadow-lg:0 24px 65px -22px #38121540}
[hidden]{display:none!important}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0}.bg-glow{display:none}a{color:inherit;text-decoration:none}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.app{max-width:1380px;padding:0 40px 32px}.topbar{height:88px;margin:0;border-bottom:1px solid var(--line);flex-wrap:nowrap}.brand{align-items:center;gap:10px}.brand-icon{display:grid;place-items:center;background:#331d1f;color:#e8cd92;border-radius:10px;width:34px;height:39px;font-size:24px;transform:rotate(-8deg)}.brand-mark{font-family:Arial,sans-serif;font-size:26px;font-weight:900;letter-spacing:-1.3px;color:var(--ink);background:none;animation:none!important}.brand-tag{display:none}.nav-links{display:flex;align-items:center;gap:28px;font-size:13px;font-weight:600}.nav-links a:hover{color:#73393e}.nav-pill{border:1px solid var(--line);padding:10px 15px;border-radius:100px}.hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:42px 0 34px}.eyebrow{font:700 10px Arial,sans-serif;text-transform:uppercase;letter-spacing:1.8px;color:var(--slate)}.hero h1{font:800 clamp(30px,4vw,52px)/1.06 Arial,sans-serif;letter-spacing:-2px;margin:13px 0}.hero h1 em{font-style:normal;color:#82484d}.hero p{font-size:14px;line-height:1.7;max-width:490px;margin:0;color:var(--ink-soft)}.privacy-chip{display:flex;gap:12px;align-items:center;min-width:210px;font-size:12px;line-height:1.6}.privacy-chip .privacy-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#ede9df;color:#653438;font-size:21px}.privacy-chip b{display:block}.studio{border:1px solid var(--line);border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 12px 36px -24px #45353644}.studio-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid var(--line);font-size:13px}.studio-title{font-weight:700;display:flex;align-items:center;gap:10px}.live-dot{width:7px;height:7px;background:#83444a;border-radius:50%}.studio-meta{color:var(--slate);font-size:11px}.layout{grid-template-columns:minmax(350px, .9fr) minmax(0,1.3fr);gap:0;align-items:stretch}.panel{border:0;border-right:1px solid var(--line);border-radius:0;padding:24px;gap:22px;min-width:0}.editor-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:4px;border-radius:10px;background:#f3f1ed}.editor-tab{background:none;border:0;padding:11px 4px;border-radius:7px;color:var(--slate);font-size:12px;font-weight:700}.editor-tab[aria-selected=true]{background:white;color:var(--ink);box-shadow:0 2px 5px #30202110}.editor-page{display:flex;flex-direction:column;gap:22px;min-height:405px}.step-heading h2{font-size:22px;letter-spacing:-.7px;margin:4px 0 8px}.step-heading p{font-size:12px;line-height:1.6;color:var(--slate);margin:0}.step-heading .eyebrow{font-size:9px}.section-label{font-family:Arial,sans-serif;letter-spacing:1px;font-size:10px;font-weight:700}.dropzone{padding:36px 18px;background:#faf8f5;border:1.5px dashed #cdc7b9}.dropzone svg{width:32px;height:32px;color:#815054;margin-bottom:14px}.dropzone-sub{margin-top:8px;font-size:11px}.dropzone-text{color:#3d2628}.dropzone:hover,.dropzone.drag{background:#f4f0e6;border-color:#815054}.field input,.two-col input,select{padding:12px;border-radius:8px}.chip{border-radius:8px;font-size:12px;padding:10px 12px;min-height:40px}.chip.active{background:#f3efe7;border:1px solid #915157;box-shadow:none;color:#412326}.chip.locked{opacity:.65}.color-hex{font-family:monospace}.swatch-mini{width:28px;height:28px}.btn-ghost{background:#f3efe7;color:#532f32;box-shadow:none}.stage{position:relative;background:radial-gradient(ellipse at 50% 40%,#e8e2d5,transparent 65%),#f2f0ea;padding:23px 30px 26px;gap:14px;min-width:0}.preview-head{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:7px}.preview-head span:first-child{font-size:10px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase}.preview-badge{font-size:10px;background:#ffffffa8;border:1px solid #e2dfd7;border-radius:20px;padding:6px 10px;color:#654f51}.tilt-wrap{width:min(100%,310px)}.slab{--surface:#261617;--surface-2:#311d1f;--ink:#f4f1e8;--ink-soft:#d0c9b9;--slate:#b08c8f;--line:#53393b;--brass:#efbe6c;--brass-strong:#f7d394;background:linear-gradient(145deg,#ffffffba,#c6c2b944);border:1px solid #ffffff;padding:12px;border-radius:17px;box-shadow:0 24px 40px -22px #3b212380,inset 0 0 0 4px #ffffff40}.slab-label{padding:8px;gap:8px;border-radius:8px;margin-bottom:10px}.grade-shield{width:42px;height:45px;border-radius:5px}.label-line.strong{font-size:17px}.label-brand{font-size:8px}.label-line{font-size:8px}.cert-num{font-size:7px}.label-cert{max-width:70px}.stage-caption{font-size:10px;margin:0}.stage-caption b{color:#73393e}.export-actions{display:flex;gap:8px;width:min(100%,360px);margin-top:5px}.primary-btn,.secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:9px;padding:13px 17px;font-size:12px;font-weight:700}.primary-btn{background:#3c2123;color:#f5e9cf}.primary-btn:hover{background:#583336}.secondary-btn{background:#fff;color:var(--ink);border-color:var(--line)}.secondary-btn:hover{background:#f4f1ea}.export-actions .primary-btn{flex:1}.export-note{font-size:10px;color:var(--slate);margin:0;text-align:center}.editor-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px;gap:10px}.editor-bottom span{font-size:10px;color:var(--slate)}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;max-width:calc(100% - 32px);background:#3c2123;color:white;border-radius:10px;padding:14px 20px;font-size:12px;box-shadow:0 8px 24px #0003;pointer-events:none}.toast:empty{display:none}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding:28px 12px}.benefit{display:flex;gap:12px;align-items:flex-start}.benefit-icon{font-size:19px;color:#72474b}.benefit b{font-size:12px}.benefit p{font-size:11px;line-height:1.6;color:var(--slate);margin:5px 0 0}.plans{padding:38px 0 25px;border-top:1px solid var(--line)}.plans-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}.plans h2{font-size:30px;letter-spacing:-1px;margin:10px 0}.plans-heading p{font-size:12px;color:var(--slate);line-height:1.6;max-width:440px}.demo-note{font-size:10px;line-height:1.7;border:1px solid var(--line);border-radius:8px;padding:10px 14px;max-width:230px;color:var(--ink-soft)}.plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.plan-card{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:white;padding:25px}.plan-card.featured{background:#f2ebdc;border-color:#cdc0a4}.plan-card h3{font-size:18px;margin:0 0 8px}.plan-card p{font-size:12px;color:var(--slate);line-height:1.6;margin:0}.plan-price{font-size:27px;font-weight:800;letter-spacing:-1px;margin:21px 0 4px}.plan-price small{font-size:11px;font-weight:400;letter-spacing:0;color:var(--slate)}.plan-card ul{list-style:none;padding:0;margin:21px 0;flex:1;font-size:12px;line-height:2.2}.plan-card li:before{content:'✓';margin-right:9px;color:#7c484d}.plan-card button{width:100%}.plan-recommend{position:absolute;right:20px;top:25px;font-size:9px;font-weight:700;background:#e7d7b2;padding:5px 8px;border-radius:20px}.faq{margin-top:26px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.faq details{border:1px solid var(--line);border-radius:10px;padding:16px;font-size:12px;background:#ffffff80}.faq summary{cursor:pointer;font-weight:700}.faq p{font-size:12px;line-height:1.7;color:var(--ink-soft);margin-bottom:0}.footer{border-top:1px solid var(--line);padding-top:22px;margin-top:32px;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--slate)}.presets-box{border:1px solid var(--line);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px}.preset-actions{display:flex;gap:8px}.preset-actions button{flex:1;padding:10px}.preset-status{font-size:11px;color:var(--slate);line-height:1.5;margin:0}canvas{touch-action:none}.photo-row input{min-width:0}.photo-row label{min-width:48px}.grade-block{margin-top:0}.tier-switch{display:none}
@media(min-width:1100px){.panel{padding:28px 32px}.stage{padding-top:26px}}
@media(max-width:860px){.app{padding:0 20px 24px}.hero{padding:30px 0;gap:18px}.hero h1{font-size:38px}.privacy-chip{display:none}.layout{grid-template-columns:minmax(300px,1fr) minmax(0,1fr)}.panel{padding:18px}.stage{order:0;padding:20px 16px}.label-cert{display:none}.slab-label{grid-template-columns:auto 1fr}.benefits{gap:16px;padding:24px 0}.nav-links{gap:15px}.plan-card{padding:20px}.plan-recommend{position:static;align-self:flex-start;margin-bottom:10px}}
@media(max-width:640px){.app{padding:0 14px 24px}.topbar{height:70px}.brand-mark{font-size:24px}.nav-links{font-size:11px;gap:14px}.nav-pill{display:none}.hero h1{font-size:36px}.hero p{font-size:13px}.studio-bar{padding:16px}.studio-meta{font-size:9px}.layout{grid-template-columns:1fr}.panel{border-right:0;border-bottom:1px solid var(--line)}.editor-page{min-height:0}.stage{padding:24px 22px}.tilt-wrap{max-width:280px}.label-cert{display:block}.slab-label{grid-template-columns:auto 1fr auto}.benefits{grid-template-columns:1fr;gap:18px;padding:25px 8px}.plans{padding-top:26px}.plans-heading{display:block}.demo-note{max-width:none}.plan-grid,.faq{grid-template-columns:1fr}.plan-recommend{position:absolute;right:20px;top:22px}.footer{line-height:1.7}.editor-tab{min-height:42px}.swatch-mini{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

#layoutGroup{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#layoutGroup .collection-heading{grid-column:1/-1;padding:14px 0 2px;text-align:left}
#layoutGroup .collection-heading:first-child{padding-top:4px}
.collection-heading span{font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#653539}
.collection-heading p{margin:6px 0 0;color:var(--slate);font-size:12px;line-height:1.5}
#layoutGroup .chip{padding:10px;gap:7px;background:#faf8f5;transition:border-color .15s,background .15s}
#layoutGroup .chip.active{background:#f3efe7}
#layoutGroup canvas{max-height:170px}
#layoutGroup .template-name{font-size:13px;font-weight:800}
#layoutGroup .template-description{font-size:10px;font-weight:400;line-height:1.4;color:var(--slate)}

.tilt-wrap.landscape-card{width:min(100%,600px);max-width:600px}
#layoutGroup [data-layout="fieldview"] canvas,#layoutGroup [data-layout="powerdrive"] canvas,#layoutGroup [data-layout="actionclub"] canvas{aspect-ratio:7/5}

.enhance-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.enhance-actions label{display:flex;align-items:center;gap:7px}#enhanceAmount{min-width:0;flex:1}#enhanceValue{min-width:35px}

#maskDialog .mask-tool[aria-pressed="true"]{background:#3c2123;color:#f5e9cf;border-color:#3c2123}
#artColorControls input[type=color]{display:block;width:100%;height:44px;padding:4px;cursor:pointer}#artColorControls input[type=color]::-webkit-color-swatch-wrapper{padding:0}#artColorControls input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
.ink-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0 12px}.ink-choice{display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 3px;background:#fff;border:2px solid #e2dfd8;border-radius:9px;font:inherit;font-size:11px;cursor:pointer;color:#3a2426}.ink-choice[aria-pressed=true]{border-color:#3c2123;background:#f3eddf}.ink-choice:focus-visible{outline:3px solid #7b393f;outline-offset:2px}.ink-dot{width:24px;height:24px;border:1px solid #aeb5aa;border-radius:50%}.ink-section{margin:14px 0}.ink-section summary{cursor:pointer;font-size:13px;margin:8px 0}

.toast{bottom:auto;top:12px;z-index:20}
/* Preview-first workspace: only the active controls scroll. */
.studio{scroll-margin-top:8px}
.studio-bar{height:54px;padding:10px 18px}
.layout{height:calc(100dvh - 70px);min-height:460px;grid-template-columns:minmax(320px,.95fr) minmax(0,1.1fr)}
.panel{display:flex;min-height:0;overflow:hidden;padding:16px;gap:12px}
.editor-tabs,.editor-bottom{flex-shrink:0}
.editor-page{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:2px 8px 20px 2px;scrollbar-gutter:stable;gap:18px}
.editor-bottom{padding-top:10px;min-height:54px}
.editor-bottom span{max-width:125px}
.stage{min-height:0;overflow:hidden;padding:16px;gap:8px}
.preview-head{flex-shrink:0;margin:0;gap:8px}
.preview-art{position:relative;flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.stage .tilt-wrap{position:absolute;left:50%;top:50%;flex:none;max-width:none;width:310px;transform-origin:center}
.stage .slab{transform:none!important}
.stage .stage-caption,.stage .export-actions,.stage .export-note{flex-shrink:0}
.stage .export-actions{margin:0;width:100%;max-width:420px}
.stage .export-note:last-child{display:none}
.preview-toggle{padding:8px 12px;min-height:40px;font-size:11px;white-space:nowrap}
.design-jumps{display:flex;gap:6px;position:sticky;top:-2px;background:#fff;z-index:2;padding:6px 0;flex-wrap:wrap}
.design-jumps button{padding:9px 12px;min-height:40px;border:1px solid var(--line);border-radius:20px;background:#f7f5ef;font-size:12px;font-weight:700}
#photoRights{padding:0;accent-color:#653438}
.field label:has(#photoRights){flex-direction:row!important;align-items:flex-start;font-weight:400;font-size:12px}
#photoRightsHelp{font-size:11px}
.editor-page input:not([type=range]):not([type=checkbox]):not([type=color]),.editor-page select,.editor-page textarea{font-size:16px}
.studio.preview-expanded .layout{grid-template-columns:1fr}
.studio.preview-expanded .panel{display:none}
.studio.preview-expanded .stage{grid-column:1/-1;grid-row:1/-1}
@media(max-width:640px){
 .app{padding:0 8px 24px}.topbar{height:56px}.hero{padding:18px 8px}.hero h1{font-size:30px}.hero .eyebrow{font-size:10px}.hero p{font-size:12px}.hero h1 br{display:none}
 .studio{border-radius:16px}.studio-bar{height:44px;padding:8px 12px}.studio-title{font-size:12px}.studio-meta{display:none}
 .layout{height:calc(100dvh - 52px);min-height:510px;grid-template-columns:minmax(0,1fr);grid-template-rows:42% minmax(0,1fr)}
 .stage{grid-row:1;order:-1;padding:8px 12px;gap:5px;border-bottom:1px solid var(--line)}
 .panel{grid-row:2;padding:8px 10px;gap:8px;border:0}
 .preview-head span:first-child{font-size:9px;letter-spacing:.7px}.preview-badge{padding:4px 7px;font-size:9px}
 .preview-toggle{min-height:32px;padding:6px 9px}.stage .export-actions button{min-height:36px;padding:8px;font-size:11px}.stage .export-note{display:none}
 .stage-caption{font-size:10px}.editor-tab{min-height:44px;padding:9px 2px;font-size:12px}
 .step-heading h2{font-size:19px}.step-heading p{font-size:12px}.editor-bottom{padding-top:6px;min-height:48px}.editor-bottom button{min-height:40px;padding:9px 12px}.editor-bottom span{font-size:9px}
 .dropzone{padding:20px 10px}.dropzone svg{margin-bottom:5px;width:24px;height:24px}
 .editor-page{padding-bottom:18px;gap:14px}.design-jumps{gap:4px}.design-jumps button{padding:8px 10px;font-size:11px}
 .studio.preview-expanded .layout{grid-template-rows:1fr}
}
@media(min-width:641px) and (max-height:600px){.layout{min-height:340px}.stage .export-note{display:none}}

.inline-help{font-size:12px;color:var(--slate)}.inline-help summary{cursor:pointer;padding:6px 0}.inline-help p{margin:6px 0}

/* The decorative label belongs to the case, outside the printed artwork. */
.slab:not(.bare-card){padding:16px;background:linear-gradient(130deg,#f5f3ee,#d5d0c6 48%,#f5f3ee);border:3px solid #c0b9a9;box-shadow:0 14px 30px #3b232540,inset 0 0 0 5px #ffffffa8;border-radius:19px}
.slab:not(.bare-card) .slab-label{margin:0;border:1px solid #806567;border-left:4px solid #efbe6c;box-shadow:0 2px 4px #0003}
.case-divider{height:32px;display:flex;align-items:center;justify-content:center;color:#624548;font:700 9px Arial,sans-serif;letter-spacing:1.1px;text-transform:uppercase;border-bottom:2px solid #c0b9a9;margin-bottom:10px}
.slab:not(.bare-card) .slab-window{border:5px solid #f0eee8;outline:1px solid #aea693;border-radius:3px;box-shadow:inset 0 0 8px #0002,0 2px 5px #0002}
.bare-card .case-divider{display:none}
#photoColorDialog{max-width:660px;max-height:94dvh;overflow:auto}#photoColorCanvas{width:auto;height:auto;max-width:100%;max-height:52dvh;margin:16px auto;cursor:crosshair;touch-action:none}#photoColorDialog label{display:flex;gap:12px;align-items:center}.sample-result{display:flex;align-items:center;gap:12px;margin:12px 0}#photoColorSwatch{width:36px;height:36px;border:1px solid #888;border-radius:8px}#photoColorValue{font:14px monospace}#photoColorDialog select{font-size:16px}

/* Shared studio chrome. Card art and color swatches retain their own palettes. */
body{background:#231012;color:#f8f5ed;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;isolation:isolate;color-scheme:dark}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 12% 42%,#7d272f60,transparent 58%),radial-gradient(ellipse at 90% 70%,#a5535a5c,transparent 55%),#231012}
.ui-help{margin:8px 0;padding:0;border:0;font-size:12px;color:#d7ceb9}.ui-help>summary{min-height:36px;padding:8px 0;font-size:12px;color:#d7ceb9}.ui-help>p{margin:4px 0 12px;line-height:1.6}
.app{--ink:#f8f5ed;--ink-soft:#d9d0bd;--slate:#cdc2aa;--line:#f8f1e029;--line-soft:#ffffff12;--surface:#39191c;--surface-2:#4a2226;--brass:#ebdfc5;--brass-strong:#faf3e5;color:var(--ink)}
.topbar{height:64px}.brand-mark{font-size:21px;letter-spacing:-.5px}.brand-icon{background:linear-gradient(155deg,#fbf6eb30,#ffffff05);color:#ebdfc5;border:1px solid #faf4e840;transform:none}.nav-links a:hover{color:#ebdfc5}.hero{display:none}
.studio{margin-top:16px;background:linear-gradient(155deg,#fbf6ea17,transparent 25%,#f1e1bc0d),#33181ab3;border:1px solid #fcf8ef38;border-top-color:#fcf9f380;box-shadow:inset 0 1px 0 #ffffff38,0 20px 50px #0003;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.studio-bar{border-color:#f8f1e026}.history-btn{color:#dfd6c1}.history-btn:hover:not(:disabled){background:#faf3e512}.panel{background:transparent}.stage{background:radial-gradient(ellipse at center,#e6d7b610,transparent 72%)}.editor-tabs{background:#290d0f70;border:1px solid #f8f1e020;border-radius:12px}.editor-tab{color:#d6cdb8;min-height:44px}.editor-tab[aria-selected=true]{background:linear-gradient(165deg,#faf4e736,#ccba9212 48%,#35161970 49%);color:#fbf6ec;box-shadow:inset 0 1px 0 #ffffff45;border:1px solid #f8efdc65}
.panel :is(.field input:not([type=checkbox]):not([type=range]):not([type=color]),select,textarea){background:#280d0f70;color:#f8f5ed;border:1px solid #f7eed933;border-radius:10px;min-height:44px}.panel option{background:#3d1c1f;color:#f8f5ed}
.panel :is(.chip,.ink-choice),#layoutGroup .chip{background:linear-gradient(163deg,#fcf9f316,#ffffff03 40%,#270d0f33 41%);color:#f5f1e8;border:1px solid #f9f2e230;box-shadow:inset 0 1px 0 #ffffff20;border-radius:10px}.panel .chip.active,#layoutGroup .chip.active,.panel .ink-choice[aria-pressed=true]{background:#f1e1bd20;border-color:#e6d9bd;color:#f8f1e3}.collection-heading span{color:#ebdfc5}.presets-box{background:#ffffff04;border-color:#f8f1e026}.panel .link-btn{color:#ebdfc5}.panel .dropzone{background:linear-gradient(160deg,#ffffff15,transparent 45%);border-color:#f7eed950}.dropzone-text,.dropzone svg{color:#efe6d1}.dropzone:hover,.dropzone.drag{background:#ebdfc515}
.app :is(.primary-btn,.btn-ghost){background:linear-gradient(165deg,#f6ecd5,#d8c9a9 48%,#cabb98 49%);color:#2b1416;border:1px solid #faf5ea80;box-shadow:inset 0 1px 0 #fff8}.app :is(.secondary-btn,.design-jumps button){background:linear-gradient(165deg,#ffffff20,#ffffff05 45%,#2b0e1070 46%);color:#eae6dc;border:1px solid #f8f0dd40}.design-jumps{background:#3e1b1eef;border-radius:10px;padding:6px}.preview-badge{background:#ffffff0c;border-color:#f8f1e030;color:#d9d0bd}.stage-caption b{color:#ebdfc5}.editor-page{scrollbar-color:#99676c80 transparent}.panel input[type=range],.panel input[type=checkbox]{accent-color:#e6d9bd}.editor-bottom{border-color:#f8f1e026}
.app :is(.plan-card,.faq details,.demo-note){background:linear-gradient(160deg,#ffffff14,#ffffff03);border-color:#f9f2e230}.app .plan-card.featured{background:#e6d9bd14}.plan-recommend{background:#e6d9bd;color:#33181a}.benefit-icon{background:#ffffff12;color:#ebdfc5}.step-heading h2{font-size:21px}.step-heading p{font-size:12px}.studio-meta{display:none}
@media(max-width:640px){.topbar{height:52px}.studio{margin-top:8px}.app{padding:0 8px 24px}.step-heading h2{font-size:19px}}
/* Keep the footer actions inside the initial studio viewport. */
.layout{height:calc(100dvh - 154px);min-height:0}
@media(max-width:640px){.layout{height:calc(100dvh - 114px);min-height:0}.nav-links a[href="#studio"]{display:none}}
@media(max-height:600px) and (min-width:641px){.topbar{height:44px}.studio{margin-top:6px}.studio-bar{height:38px}.layout{height:calc(100dvh - 100px);min-height:0}.panel{padding:8px;gap:6px}.editor-bottom{min-height:44px}.editor-tabs .editor-tab{min-height:36px}}

.app dialog,dialog{background:#3c1c1f;color:#f8f5ed;border:1px solid #f8f0dd50;border-radius:16px;box-shadow:0 24px 70px #0008}dialog::backdrop{background:#190809cc;backdrop-filter:blur(5px)}dialog :is(select,textarea,input:not([type=range]):not([type=color]):not([type=checkbox])){background:#2e1013;color:#f8f5ed;border-color:#f8f0dd40}dialog option{background:#3c1c1f;color:#f8f5ed}
@media(prefers-reduced-transparency:reduce){.studio{background:#3c1c1f;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Sportify signature palette: garnet glass, warm gold, and ivory lettering. */
:root{--sportify-red:#B82032;--sportify-gold:#D9AF50;--sportify-gold-light:#F5D98C;--sportify-ground:#1B0C10;--sportify-text:#FFF5E5;--sportify-muted:#D3BDB2}
body{background:var(--sportify-ground);color:var(--sportify-text)}
body::before{background:radial-gradient(ellipse at 12% 42%,#b8203255,transparent 58%),radial-gradient(ellipse at 90% 70%,#d9af502b,transparent 55%),var(--sportify-ground)}
:focus-visible{outline-color:var(--sportify-gold-light)}

.app{--ink:var(--sportify-text);--ink-soft:var(--sportify-muted);--slate:#C7ACA0;--line:#d9af503b;--line-soft:#f5d98c18;--surface:#301920;--surface-2:#44212a;--brass:var(--sportify-gold);--brass-strong:var(--sportify-gold-light)}
.brand-mark,.brand-icon,.collection-heading span,.panel .link-btn,.stage-caption b,.benefit-icon{color:var(--sportify-gold-light)}
.brand-mark{background:none;-webkit-text-fill-color:var(--sportify-gold-light);animation:none}
.live-dot{background:var(--sportify-gold);box-shadow:0 0 10px #d9af5060}
.studio{background:linear-gradient(155deg,#f5d98c17,transparent 25%,#b8203220),#30171fcc;border-color:#d9af5045;border-top-color:#f5d98c80}
.editor-tab[aria-selected=true]{background:linear-gradient(165deg,#c740504a,#8c1b2c70 48%,#4f152280 49%);color:var(--sportify-gold-light);border-color:#d9af5080}
.panel .chip.active,#layoutGroup .chip.active,.panel .ink-choice[aria-pressed=true]{background:#b8203233;border-color:var(--sportify-gold);color:var(--sportify-gold-light)}
.app :is(.primary-btn,.btn-ghost),dialog .primary-btn{background:linear-gradient(165deg,#f5d98c,#dfb957 48%,#c99a3d 49%);color:#30150D;border:1px solid #ffe5a5a0;box-shadow:inset 0 1px 0 #fff6}
.app :is(.primary-btn,.btn-ghost):hover,dialog .primary-btn:hover{background:linear-gradient(165deg,#ffe8ac,#eac468 48%,#d9af50 49%)}
.app :is(.secondary-btn,.design-jumps button),dialog .secondary-btn{background:linear-gradient(165deg,#f5d98c18,#ffffff05 45%,#45121d80 46%);color:var(--sportify-text);border:1px solid #d9af5045}
.panel input[type=range],.panel input[type=checkbox],dialog input[type=range]{accent-color:var(--sportify-gold)}
.plan-recommend{background:var(--sportify-gold);color:#30150D}.plan-card li:before{color:var(--sportify-gold)}
.toast{background:#651b2b;color:var(--sportify-text);border:1px solid #d9af5070}
#maskDialog .mask-tool[aria-pressed="true"]{background:#781e30;color:var(--sportify-gold-light);border-color:var(--sportify-gold)}
@media(prefers-reduced-transparency:reduce){.studio{background:#301920}}

/* Modern glass: restrained red/gold light behind neutral translucent surfaces. */
:root{--glass-edge:#ffffff24;--glass-rim:#ffffff66;--glass-fill:linear-gradient(135deg,#ffffff14,#ffffff04 48%,#ffffff09);--glass-shadow:inset 0 1px 0 #ffffff24,inset 0 -1px 0 #ffffff08,0 24px 64px #00000040}
body{background:#100d12}
body::before{background:radial-gradient(ellipse 38% 52% at 4% 30%,#bd203c80,transparent 78%),radial-gradient(ellipse 30% 46% at 96% 68%,#d9af5055,transparent 80%),radial-gradient(ellipse 42% 30% at 58% -5%,#c6bca22b,transparent 82%),linear-gradient(135deg,#18121a,#100d12 65%)}
button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent }
button{transition:background .18s,border-color .18s,box-shadow .18s}
:focus-visible{outline:2px solid var(--sportify-gold-light);outline-offset:3px}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.app{--line:#ffffff22;--line-soft:#ffffff10;--ink-soft:#d7c9c4;--slate:#c1b0ac}
.topbar{border-color:#ffffff16}
.brand-icon{background:linear-gradient(145deg,#ffffff25,#ffffff04);border-color:#ffffff35;box-shadow:inset 0 1px 0 #ffffff3b,0 6px 16px #0003}
.nav-links a{transition:color .18s}.nav-pill{background:#ffffff08;border-color:#ffffff20}
.studio{background:var(--glass-fill),#241e27f2;border:1px solid var(--glass-edge);border-top-color:var(--glass-rim);border-radius:24px;box-shadow:var(--glass-shadow);backdrop-filter:none;-webkit-backdrop-filter:none}
.studio-bar{background:linear-gradient(100deg,#ffffff06,transparent);border-bottom:1px solid #ffffff18;border-radius:24px 24px 0 0}
.panel{background:linear-gradient(150deg,#ffffff04,#ffffff01);border-color:#ffffff16}
.stage{background:radial-gradient(ellipse at 50% 40%,#f5d98c0c,transparent 68%)}
.preview-art{border-radius:18px;background:radial-gradient(ellipse at center,#ffffff05,transparent 70%)}
.editor-tabs{background:#09070e42;border:1px solid #ffffff18;border-radius:15px;padding:4px;gap:3px;box-shadow:inset 0 1px 6px #0002}
.editor-tab{border:1px solid transparent;border-radius:11px;color:#d3c4c0}
.editor-tab[aria-selected=true]{background:linear-gradient(150deg,#f0aaa136,#c4445430),#76223440;border:1px solid #f5d98c66;box-shadow:inset 0 1px 0 #ffffff45,0 3px 12px #0002;color:#fff1c5}
.panel :is(.field input:not([type=checkbox]):not([type=range]):not([type=color]),select,textarea){background:#0e0b134d;border-color:#ffffff20;box-shadow:inset 0 1px 5px #0002;color:#fff5e5}
.panel :is(input,select,textarea):focus{border-color:#d9af5099}
.panel option,dialog option{background:#29212a}
.panel :is(.chip,.ink-choice),#layoutGroup .chip{background:linear-gradient(145deg,#ffffff0c,#ffffff03);border-color:#ffffff20;box-shadow:inset 0 1px 0 #ffffff12;border-radius:13px}
.panel .chip:hover,#layoutGroup .chip:hover{background:#ffffff0f;border-color:#ffffff45}
.panel .chip.active,#layoutGroup .chip.active,.panel .ink-choice[aria-pressed=true]{background:linear-gradient(145deg,#b8203233,#d9af5010);border-color:#d9af50b3;box-shadow:inset 0 1px 0 #ffe8aa38,0 0 0 1px #d9af5010}
.presets-box{background:#ffffff04;border-color:#ffffff18;border-radius:14px}
.panel .dropzone{background:linear-gradient(145deg,#ffffff08,#ffffff02);border:1px dashed #ffffff35;border-radius:16px}
.panel .dropzone:hover,.panel .dropzone.drag{background:#ffffff0d;border-color:var(--sportify-gold)}
.app :is(.primary-btn,.btn-ghost),dialog .primary-btn{background:linear-gradient(155deg,#fae4a3,#e4bf67 55%,#d5ab4d);border-color:#fff1c280;border-radius:12px;box-shadow:inset 0 1px 0 #ffffff80,0 4px 14px #d9af501c;color:#2c1b10}
.app :is(.primary-btn,.btn-ghost):hover,dialog .primary-btn:hover{background:linear-gradient(155deg,#fff0c6,#efd083 55%,#ddb655);box-shadow:inset 0 1px 0 #fff9,0 6px 20px #d9af5029}
.app :is(.secondary-btn,.design-jumps button),dialog .secondary-btn{background:linear-gradient(155deg,#ffffff16,#ffffff05);border-color:#ffffff2e;border-radius:12px;box-shadow:inset 0 1px 0 #ffffff20;color:#fff5e5}
.app .secondary-btn:hover,dialog .secondary-btn:hover{background:#ffffff18;border-color:#ffffff55}
.design-jumps{background:#29212bf5;border:1px solid #ffffff14;border-radius:14px}
.preview-badge{background:#ffffff08;border-color:#ffffff20;border-radius:20px;color:#e1d3cc}
.editor-bottom{border-color:#ffffff18}.history-btn:hover:not(:disabled){background:#ffffff10}
.app :is(.plan-card,.faq details,.demo-note){background:var(--glass-fill),#211c24b3;border-color:#ffffff24;box-shadow:inset 0 1px 0 #ffffff20}
.app .plan-card.featured{background:linear-gradient(145deg,#b820322b,#d9af5010),#211c24b3;border-color:#d9af5070}
.app dialog,dialog{background:var(--glass-fill),#29212bf2;border-color:#ffffff40;border-radius:22px;box-shadow:var(--glass-shadow),0 40px 100px #0007}
dialog::backdrop{background:#09070cb3;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
dialog :is(select,textarea,input:not([type=range]):not([type=color]):not([type=checkbox])){background:#100c164d;border-color:#ffffff30}
.toast{background:#34232ef2;border-color:#f5d98c55;border-radius:14px;box-shadow:inset 0 1px 0 #ffffff26,0 12px 36px #0005}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .studio{background:var(--glass-fill),#1e18224d;backdrop-filter:blur(28px) saturate(120%);-webkit-backdrop-filter:blur(28px) saturate(120%)}
 .app dialog,dialog{background:var(--glass-fill),#241b26cc;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px)}
}
@media(max-width:640px){.studio{border-radius:20px}.studio-bar{border-radius:20px 20px 0 0}.editor-tabs{padding:3px;gap:1px}.editor-tab{border-radius:10px}.stage{border-color:#ffffff18}}
@media(prefers-reduced-transparency:reduce){
 .studio,.app dialog,dialog,.app :is(.plan-card,.faq details,.demo-note){background:#29212b;backdrop-filter:none;-webkit-backdrop-filter:none}
 dialog::backdrop{background:#09070ce6;backdrop-filter:none;-webkit-backdrop-filter:none}.toast{background:#34232e}
}

/* Polished glass: visible softbox reflections, crisp rims and dark lower faces. */
:root{--polished-face:linear-gradient(160deg,#ffffff38 0%,#ffffff14 28%,#ffffff05 48%,#08050d38 49%,#ffffff03 84%,#fff1ce16 100%);--polished-rim:inset 0 1px 0 #ffffffa6,inset 1px 0 0 #ffffff38,inset -1px 0 0 #fff0cd20,inset 0 -1px 0 #ffffff2b,0 16px 40px #0005}

.studio{background:linear-gradient(118deg,transparent 9%,#ffffff03 19%,#ffffff18 19.2%,#ffffff05 36%,transparent 36.2%,transparent 79%,#ffe9bc0b 79.2%,transparent 92%),var(--polished-face),#251b2973;border-color:#ffffff42;border-top-color:#fff5de99;box-shadow:var(--polished-rim);backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%)}
.studio-bar{background:linear-gradient(180deg,#ffffff32,#ffffff0d 48%,#140d1c40 49%,#ffffff06);box-shadow:inset 0 1px 0 #ffffff70,inset 0 -1px 0 #ffffff18;border-bottom-color:#ffffff30}
.panel{background:linear-gradient(135deg,#ffffff0b,transparent 45%)}
.stage{background:linear-gradient(124deg,transparent 15%,#ffffff03 26%,#ffffff0d 26.2%,transparent 48%),radial-gradient(ellipse at 50% 45%,#f5d98c13,transparent 70%)}
.editor-tabs{background:linear-gradient(180deg,#ffffff10,#0b061d35);border-color:#ffffff30;box-shadow:inset 0 1px 0 #ffffff38,inset 0 -1px 0 #ffffff0f}
.editor-tab[aria-selected=true]{background:linear-gradient(165deg,#e9adaf70,#a7505c55 48%,#5f182d80 49%,#b5576735);border-color:#f5d98c99;box-shadow:inset 0 1px 0 #fff7dba6,inset 0 -1px 0 #ffffff26,0 3px 10px #0004}
.app :is(.secondary-btn,.design-jumps button),dialog .secondary-btn{background:linear-gradient(170deg,#ffffff38,#ffffff12 48%,#160e234d 49%,#ffffff0b);border-color:#ffffff45;box-shadow:inset 0 1px 0 #ffffff70,inset 0 -1px 0 #ffffff20,0 3px 8px #0002}
.app :is(.primary-btn,.btn-ghost),dialog .primary-btn{background:linear-gradient(170deg,#fff3c9 0%,#efd28a 46%,#c99b3c 48%,#dbb55e 88%,#f4d695);border-color:#fff0bfc0;box-shadow:inset 0 1px 0 #ffffffdd,inset 1px 0 0 #ffffff55,inset 0 -1px 0 #9b6b2566,0 5px 16px #0003}
.app :is(.primary-btn,.btn-ghost):hover,dialog .primary-btn:hover{background:linear-gradient(170deg,#fff9e4,#f9dfa1 46%,#d5aa52 48%,#e8c576 88%,#ffe5a8);box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #ffffff55,0 5px 20px #d9af5033}
.panel :is(.chip,.ink-choice),#layoutGroup .chip{background:linear-gradient(155deg,#ffffff24,#ffffff08 47%,#120b1f30 48%,#ffffff05);border-color:#ffffff32;box-shadow:inset 0 1px 0 #ffffff45,inset 0 -1px 0 #ffffff12}
.panel .chip.active,#layoutGroup .chip.active,.panel .ink-choice[aria-pressed=true]{background:linear-gradient(160deg,#e2949950,#9c394943 47%,#4d14244d 48%,#d9af501b);border-color:#efc96da6;box-shadow:inset 0 1px 0 #ffeab180,inset 0 -1px 0 #ffffff20,0 0 12px #d9af5010}
.presets-box,.panel .dropzone{background:linear-gradient(150deg,#ffffff16,#ffffff04 42%,#0d061b12 43%);border-color:#ffffff29;box-shadow:inset 0 1px 0 #ffffff30,inset 0 -1px 0 #ffffff0d}
.brand-icon,.preview-badge{background:linear-gradient(160deg,#ffffff38,#ffffff10 48%,#180d264d 49%,#ffffff07);border-color:#ffffff40;box-shadow:inset 0 1px 0 #ffffff75,inset 0 -1px 0 #ffffff1c}
.app dialog,dialog,.app :is(.plan-card,.faq details,.demo-note){background:var(--polished-face),#302331e8;border-color:#ffffff42;border-top-color:#ffffff80;box-shadow:var(--polished-rim)}
@media(prefers-reduced-transparency:reduce){.studio{background:var(--polished-face),#302331;backdrop-filter:none;-webkit-backdrop-filter:none}.app dialog,dialog{background:var(--polished-face),#302331;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Sportbound identity: condensed athletic display with clear everyday UI type. */
@font-face{font-family:'Teko Sportbound';src:url('/sportbound/assets/brand/teko-bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
.sportbound-logo{display:block;width:220px;height:auto;max-width:100%;object-fit:contain}
.brand{flex-shrink:0}.step-heading h2,.plans h2{font-family:'Teko Sportbound',Impact,sans-serif;font-weight:700;font-size:30px;letter-spacing:.3px;line-height:1.1}
@media(max-width:640px){.sportbound-logo{width:160px}.nav-links{gap:9px;font-size:10px}.step-heading h2{font-size:25px}}

/* Photo-step group composition controls. */
.group-player{display:grid;gap:10px;padding:14px 0;border-top:1px solid #ffffff24}.group-player strong{color:var(--sportify-gold-light)}.group-player label{display:grid;gap:6px;font-size:12px}.group-player input[type=file]{width:100%;max-width:100%;font-size:12px}.group-player input[type=range]{width:100%}#groupPlayers{min-width:0}#cardModeControls [aria-pressed=true]{border-color:var(--sportify-gold);background:#b8203233}

/* Card backs share the front's dimensions and colors. */
.card-side-switch{display:flex;justify-content:center;gap:8px;margin:0 0 14px;position:relative;z-index:2}
.card-side-switch button[aria-pressed="true"]{border-color:#D9AF50;color:#ffe6a7;box-shadow:inset 0 0 0 1px #D9AF50}
#statsFields fieldset{border:1px solid rgba(217,175,80,.25);border-radius:12px;margin:14px 0;padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#statsFields legend{color:#ecd4a1;padding:0 6px;font-weight:700}
#statsFields label{min-width:0;font-size:12px}
#statsFields input{width:100%;min-width:0;box-sizing:border-box}
#statsFields input[readonly]{color:#ecd4a1}

.preview-head .card-side-switch{margin:0;gap:4px;flex-shrink:0}
.preview-head .card-side-switch button{min-height:32px;padding:5px 9px;font-size:11px}
@media(max-width:640px){.preview-head{gap:5px}.preview-head .card-side-switch button{padding:5px 7px;font-size:10px}.preview-head .preview-badge{font-size:8px}}

#cardBackControls label{display:flex;flex-direction:column;gap:6px}
#cardBackControls input,#cardBackControls select{padding:10px 12px;border:1px solid #ffffff30;border-radius:9px;background:linear-gradient(160deg,#ffffff12,#1c1118cc);color:#f8f5ed}
#cardBackControls input:focus,#cardBackControls select:focus{outline:2px solid #D9AF50;outline-offset:2px}

/* Layered frame controls */
#layeredFrameFields{display:grid;gap:12px;margin-top:14px}#layeredFrameFields[hidden]{display:none}.panel label.frame-check{display:flex;align-items:center;gap:9px;font-size:13px}.panel .frame-check input[type=checkbox]{width:18px;min-width:18px;height:18px;margin:0;accent-color:#d9af50}.frame-export{border-top:1px solid #ffffff28;padding-top:12px}.frame-export summary{cursor:pointer;font-size:13px;margin-bottom:12px}
body[data-new-lineup="true"] #layoutGroup .chip:not([data-layout="color-rush"]),
body[data-new-lineup="true"] #layoutGroup .collection-heading{display:none!important}
.stage .cutout-preview-notice:not([hidden]){position:relative;z-index:2;flex-shrink:0;width:min(100%,420px);margin:0;padding:9px 11px;border:1px solid #e5be7e88;border-radius:9px;background:#23161eea;color:#f8f1e6;font-size:11px;line-height:1.35;text-align:left}
.stage .cutout-preview-notice strong{display:block;color:#f5d98c;margin-bottom:2px}
#studio-final-proof{margin-top:16px}#studio-final-proof .section-label{color:#f5d98c}
#studio-proof-pair:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#studio-proof-pair figure{margin:0;min-width:0;text-align:center;font-size:12px}
#studio-proof-pair img{display:block;width:100%;height:auto;border:1px solid #e5be7e88;border-radius:6px}
#studio-proof-status,#studio-proof-approved{color:#f5d98c}
