:root{--bg:#f8f9fb;--surface:#ffffff;--text:#1a1a2e;--muted:#5c6370;--accent:#2563eb;--accent-hover:#1d4ed8;--border:#e2e8f0;--success:#059669}*{box-sizing:border-box;margin:0;padding:0}body{font-family:Segoe UI,Hiragino Sans,Hiragino Kaku Gothic ProN,Meiryo,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh}.site-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem;background:var(--surface);border-bottom:1px solid var(--border)}.logo{font-weight:700;font-size:1.125rem;color:var(--text);text-decoration:none}.site-header nav{display:flex;gap:1.5rem}.site-header nav a{color:var(--muted);text-decoration:none;font-size:.875rem}main{max-width:1080px;margin:0 auto;padding:2rem 1.5rem 4rem}.site-footer{text-align:center;padding:2rem;border-top:1px solid var(--border);font-size:.875rem}.site-footer a{color:var(--muted);text-decoration:none}.hero{text-align:center;margin-bottom:2.5rem}.hero h1{font-size:1.75rem;margin-bottom:.5rem}.hero p{color:var(--muted)}.private-product-label{display:inline-block;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase;border:1px solid rgba(124,58,237,.25);border-radius:999px;padding:.25rem .75rem;margin-bottom:.75rem}.private-product-label,.visibility-badge{font-weight:600;color:#7c3aed;background:rgba(124,58,237,.1)}.visibility-badge{font-size:.6875rem;border:1px solid rgba(124,58,237,.2);border-radius:6px;padding:.2rem .5rem}.private-link-panel{margin:.75rem 0;padding:.875rem;background:rgba(124,58,237,.06);border:1px solid rgba(124,58,237,.15);border-radius:10px}.private-link-panel strong{display:block;font-size:.8125rem;margin-bottom:.375rem}.private-link-row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.private-link-url{flex:1 1;min-width:0;font-family:monospace;font-size:.75rem;color:var(--muted);word-break:break-all}.visibility-options{display:flex;flex-direction:column;gap:.5rem}.visibility-option{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;border:1px solid var(--border);border-radius:10px;cursor:pointer}.visibility-option:has(input:checked){border-color:#7c3aed;background:rgba(124,58,237,.05)}.visibility-option input{margin-top:.2rem}.visibility-option-text strong{display:block;font-size:.875rem}.visibility-option-text small{display:block;font-size:.75rem;color:var(--muted);margin-top:.125rem}.shop-discord-banner{display:inline-flex;align-items:center;gap:.875rem;margin-top:1.25rem;padding:.875rem 1.25rem;background:#5865f2;color:#fff;border-radius:12px;text-decoration:none;transition:background .15s,transform .15s;box-shadow:0 8px 20px rgba(88,101,242,.25)}.shop-discord-banner:hover{background:#4752c4;transform:translateY(-1px)}.shop-discord-icon{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;background:rgba(255,255,255,.15);border-radius:10px}.shop-discord-text{display:flex;flex-direction:column;align-items:flex-start;gap:.125rem;text-align:left}.shop-discord-text strong{font-size:.9375rem}.shop-discord-text small{font-size:.75rem;opacity:.9}.referral-picker{margin-bottom:1rem}.referral-picker-prominent{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem 1.25rem}.referral-picker-label{display:block;font-size:.875rem;font-weight:600;margin-bottom:.5rem}.referral-picker-select{max-width:100%}.referral-picker-hint{margin-top:.5rem;margin-bottom:0}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:1rem;gap:1rem;align-items:stretch}.product-grid-single{grid-template-columns:minmax(0,360px);justify-content:center}.product-card{display:flex;flex-direction:column;height:100%;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem 1.125rem}.product-card h2{font-size:1rem;line-height:1.35;margin-bottom:.375rem}.product-card .description{color:var(--muted);margin-bottom:.625rem;font-size:.8125rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.product-card .features{list-style:none;margin-bottom:.75rem;flex:1 1}.product-card .features li{font-size:.8125rem;padding:.125rem 0 .125rem 1rem;position:relative}.product-card .features li:before{content:"✓";position:absolute;left:0;color:var(--success);font-size:.75rem}.product-footer{display:flex;flex-direction:column;align-items:stretch;gap:.75rem;margin-top:auto}.price{font-size:1.25rem;font-weight:700}.price span{font-size:.875rem;font-weight:400;color:var(--muted)}.btn{display:inline-block;padding:.75rem 1.5rem;background:var(--accent);color:#fff;border:none;border-radius:8px;font-size:.9375rem;font-weight:600;cursor:pointer;text-decoration:none;transition:background .15s}.btn:hover{background:var(--accent-hover)}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-outline{background:transparent;color:var(--accent);border:1px solid var(--accent)}.btn-outline:hover{background:#eff6ff}.notice{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;margin-bottom:2rem;color:#1e40af}.notice,.shop-disclaimer{padding:1rem 1.25rem;font-size:.875rem}.shop-disclaimer{background:#fffbeb;border:1px solid #fcd34d;border-left:4px solid #f59e0b;border-radius:10px;margin-bottom:1.5rem;color:#78350f}.shop-disclaimer-title{font-weight:700;font-size:.9375rem;margin-bottom:.625rem}.shop-disclaimer-list{margin:0;padding-left:1.25rem;display:flex;flex-direction:column;gap:.5rem;line-height:1.6}.shop-disclaimer-list li::marker{font-weight:700}.shop-disclaimer-list strong{font-weight:700}.shop-announcement{max-width:960px;margin:1rem auto 1.25rem;padding:.875rem 1.25rem;background:#eff6ff;border:1px solid #93c5fd;border-left:4px solid #2563eb;border-radius:10px;font-size:.875rem;color:#1e3a8a}.shop-announcement-title{font-weight:700;font-size:.9375rem;margin:0 0 .375rem}.shop-announcement-message{margin:0;line-height:1.65;white-space:pre-line}.announcement-preview{margin-top:1rem}.announcement-preview-label{font-size:.75rem;font-weight:600;color:var(--muted);margin-bottom:.5rem}.legal-page h1{font-size:1.5rem;margin-bottom:1.5rem}.legal-table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow:hidden}.legal-table td,.legal-table th{padding:.875rem 1rem;text-align:left;border-bottom:1px solid var(--border);vertical-align:top;font-size:.9375rem}.legal-table th{width:30%;background:#f1f5f9;font-weight:600}.legal-table tr:last-child td,.legal-table tr:last-child th{border-bottom:none}.legal-text{white-space:pre-line}.site-header nav a:hover{color:var(--accent)}.nav-link-guide{gap:.375rem;font-weight:600}.nav-guide-icon,.nav-link-guide{display:inline-flex;align-items:center}.nav-guide-icon{justify-content:center;color:var(--accent)}main:has(.guide-page){max-width:1100px}.guide-page-header{display:flex;align-items:center;gap:.875rem;margin-bottom:1.25rem}.guide-page-icon{font-size:3.25rem;line-height:1;flex-shrink:0}.guide-page h1{font-size:1.625rem;margin:0}.guide-content{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem 1.75rem;font-size:.9375rem;line-height:1.75}.guide-content h2{font-size:1.125rem;margin:1.5rem 0 .75rem}.guide-content h2:first-child{margin-top:0}.guide-content h3{font-size:1rem;margin:1.25rem 0 .5rem}.guide-content p{margin-bottom:.875rem;color:var(--text)}.guide-content ol,.guide-content ul{margin:.5rem 0 1rem 1.25rem}.guide-content li{margin-bottom:.375rem}.guide-content img{display:block;width:100%;max-width:100%;height:auto;margin:1rem 0;border-radius:10px;border:1px solid var(--border);box-shadow:0 4px 16px rgba(15,23,42,.08)}.guide-figure{margin:1.25rem 0}.guide-figure img{margin:0;box-shadow:0 4px 16px rgba(15,23,42,.08)}.guide-figure img,.guide-figure svg{display:block;width:100%;max-width:100%;height:auto;border-radius:10px;border:1px solid var(--border)}.guide-figure svg{min-height:140px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.06)}.guide-warning{margin:1.5rem 0;padding:1rem 1.25rem;background:#fff7ed;border:1px solid #fdba74;border-radius:10px;font-size:.9375rem;line-height:1.7}.guide-warning strong{display:block;margin-bottom:.5rem;color:#c2410c}.guide-warning p{margin:.5rem 0 0;color:#9a3412}.guide-content a{color:var(--accent)}.guide-content code{font-size:.8125rem;background:#f1f5f9;padding:.125rem .375rem;border-radius:4px}.guide-content em{color:var(--muted)}.success-box{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2rem;text-align:center}.success-box h1{color:var(--success);margin-bottom:.5rem}.success-box p{color:var(--muted);margin-bottom:1.5rem}.error-box{background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:2rem;text-align:center;color:#991b1b}.payment-options{display:flex;gap:.5rem;flex-wrap:wrap;width:100%}.payment-options .btn{flex:1 1 auto;min-width:0;padding:.625rem .875rem;font-size:.875rem;text-align:center}.purchase-controls{display:flex;flex-direction:column;gap:.625rem;align-items:stretch;width:100%}.quantity-label{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.8125rem;font-weight:600}.quantity-stepper{display:inline-flex;align-items:stretch;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}.quantity-step-btn{width:2.25rem;border:none;background:#f8fafc;color:var(--text);font-size:1.125rem;line-height:1;cursor:pointer}.quantity-step-btn:hover:not(:disabled){background:#eef2ff}.quantity-step-btn:disabled{opacity:.4;cursor:not-allowed}.quantity-input{width:3rem;padding:.4375rem .25rem;border:none;border-left:1px solid var(--border);border-right:1px solid var(--border);border-radius:0;font-size:1rem;text-align:center;-moz-appearance:textfield}.quantity-input::-webkit-inner-spin-button,.quantity-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.stock-badge{font-size:.8125rem;margin-bottom:.75rem;color:var(--muted)}.stock-badge strong{color:var(--text);font-size:1rem}.subtotal{font-size:.875rem;color:var(--accent);font-weight:600;margin-top:.25rem}.serial-list{margin-top:1.5rem;text-align:left;background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:1rem 1.25rem}.serial-list-title{font-size:.875rem;font-weight:600;margin-bottom:.5rem}.serial-list ul{list-style:none;font-family:monospace;font-size:.8125rem;color:var(--muted)}.serial-list li{padding:.125rem 0}.text-muted{color:var(--muted)}.text-center{text-align:center}.footer-sep{margin:0 .5rem;color:var(--border)}.empty-state{text-align:center;padding:3rem 1.5rem;background:var(--surface);border:1px dashed var(--border);border-radius:12px}.empty-state p{color:var(--muted);margin-bottom:1rem}.admin-root main{max-width:none;padding:0}.admin-layout{display:flex;min-height:100vh}.admin-sidebar{width:240px;background:#1e293b;color:#e2e8f0;display:flex;flex-direction:column;flex-shrink:0}.admin-sidebar-header{padding:1.25rem 1rem;border-bottom:1px solid #334155}.admin-logo{font-weight:700;font-size:.9375rem}.admin-nav{flex:1 1;padding:.75rem 0}.admin-nav-link{display:flex;align-items:center;gap:.625rem;padding:.625rem 1rem;color:#94a3b8;text-decoration:none;font-size:.875rem;border:none;background:none;width:100%;cursor:pointer;text-align:left}.admin-nav-link.active,.admin-nav-link:hover{background:#334155;color:#f8fafc}.admin-nav-link.logout:hover{background:#7f1d1d;color:#fecaca}.admin-sidebar-footer{border-top:1px solid #334155;padding:.5rem 0}.admin-main{flex:1 1;padding:2rem 2.5rem;max-width:900px;overflow-y:auto}.admin-page-header{margin-bottom:1.5rem}.admin-page-header h1{font-size:1.5rem;margin-bottom:.25rem}.admin-page-header p{color:var(--muted);font-size:.9375rem}.admin-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:1rem;color:var(--muted)}.spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.admin-section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.admin-section h2{font-size:1.0625rem;margin-bottom:1rem}.subsection-title{font-size:.9375rem;margin:1.25rem 0 .75rem;color:var(--muted)}.section-desc{color:var(--muted);font-size:.875rem;margin-bottom:1rem}.form-grid{gap:1.25rem}.form-field,.form-grid{display:flex;flex-direction:column}.form-field{gap:.375rem}.form-label{font-size:.875rem;font-weight:600}.form-label .required{color:#dc2626;margin-left:.25rem}.form-hint{font-size:.8125rem;color:var(--muted)}.form-input{padding:.625rem .875rem;border:1px solid var(--border);border-radius:8px;font-size:.9375rem;font-family:inherit;transition:border-color .15s}.form-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.1)}.form-textarea{resize:vertical;min-height:60px}.form-error{color:#dc2626;font-size:.875rem}.save-bar{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-bottom:1.5rem;padding:.75rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;position:-webkit-sticky;position:sticky;top:0;z-index:10}.save-success{color:var(--success);font-size:.875rem;font-weight:600}.status-badge{display:inline-block;padding:.2rem .625rem;border-radius:999px;font-size:.75rem;font-weight:600}.status-badge.done{background:#d1fae5;color:#065f46}.status-badge.pending{background:#fef3c7;color:#92400e}.dashboard-hero{gap:2rem;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2rem;margin-bottom:1.5rem}.dashboard-hero,.progress-ring{display:flex;align-items:center}.progress-ring{flex-direction:column;justify-content:center;width:100px;height:100px;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--progress, 0) * 1%),var(--border) 0);flex-shrink:0}.progress-value{font-size:1.5rem;font-weight:700;color:var(--accent)}.progress-label{font-size:.6875rem;color:var(--muted)}.dashboard-status h2{font-size:1.125rem;margin-bottom:.375rem}.dashboard-status p{color:var(--muted);font-size:.9375rem}.checklist{list-style:none;display:flex;flex-direction:column;gap:.75rem}.checklist-item{display:flex;gap:.875rem;padding:1rem;border:1px solid var(--border);border-radius:8px}.checklist-item.done{opacity:.7}.checklist-icon{font-size:1.125rem;flex-shrink:0}.checklist-header{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.25rem}.checklist-body p{font-size:.875rem;color:var(--muted)}.checklist-action{display:inline-block;margin-top:.5rem;font-size:.875rem;color:var(--accent);text-decoration:none;font-weight:600}.optional-tag{font-size:.6875rem;background:#f1f5f9;color:var(--muted);padding:.125rem .5rem;border-radius:4px}.quick-link-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));grid-gap:.75rem;gap:.75rem}.quick-link-card{display:flex;flex-direction:column;gap:.25rem;padding:1rem;border:1px solid var(--border);border-radius:8px;text-decoration:none;color:var(--text);transition:border-color .15s,box-shadow .15s}.quick-link-card:hover{border-color:var(--accent);box-shadow:0 2px 8px rgba(37,99,235,.1)}.quick-link-card span:first-child{font-size:1.5rem}.quick-link-card small{color:var(--muted);font-size:.8125rem}.status-cards{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.status-card{padding:1rem;border:1px solid var(--border);border-radius:8px}.status-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.375rem}.status-card p{font-size:.875rem;color:var(--muted)}.info-box{background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:1.25rem}.info-box h3{font-size:.9375rem;margin-bottom:.75rem}.info-box.info-success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.info-box.info-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.info-box ol{padding-left:1.25rem;font-size:.875rem;color:var(--muted)}.info-box li{margin-bottom:.5rem}.code-block{background:#1e293b;color:#e2e8f0;padding:.875rem;border-radius:6px;overflow-x:auto;margin-top:.5rem}.code-block,code{font-size:.8125rem}code{background:#f1f5f9;padding:.125rem .375rem;border-radius:4px}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1.5rem}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:2.5rem;width:100%;max-width:400px;text-align:center}.login-icon{font-size:2.5rem;margin-bottom:.75rem}.login-card h1{font-size:1.25rem;margin-bottom:.5rem}.login-desc{color:var(--muted);font-size:.875rem;margin-bottom:1.5rem;line-height:1.7}.login-note{margin-top:1.25rem;font-size:.8125rem;color:var(--muted)}.btn-full{width:100%;margin-top:.5rem}.btn-sm{padding:.4375rem .875rem;font-size:.8125rem}.btn-danger:hover{background:#b91c1c}.btn-icon{background:none;border:none;color:var(--muted);cursor:pointer;padding:.25rem .5rem;font-size:.875rem}.products-toolbar{margin-bottom:1.25rem;display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.products-toolbar.compact{margin-bottom:.625rem;justify-content:space-between;gap:.5rem}.products-toolbar-actions{display:flex;flex-wrap:wrap;gap:.375rem}.products-stats{display:flex;align-items:center;gap:.625rem;font-size:.75rem;color:var(--muted)}.products-stats .stat-on{color:#047857;font-weight:600}.products-stats .stat-off{color:#b45309;font-weight:600}.admin-products-page .admin-page-header{margin-bottom:.75rem}.admin-products-page .admin-page-header h1{font-size:1.25rem}.admin-products-page .admin-page-header p{font-size:.8125rem}.admin-product-table{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}.admin-product-table-head{display:grid;grid-template-columns:1rem minmax(0,1fr) 4.5rem 4.5rem 2.75rem 3rem;grid-gap:.5rem;gap:.5rem;align-items:center;padding:.375rem .75rem;background:#f8fafc;border-bottom:1px solid var(--border);font-size:.6875rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.02em}.admin-product-table-head .col-mode,.admin-product-table-head .col-price,.admin-product-table-head .col-status,.admin-product-table-head .col-stock{text-align:right}.admin-product-table .admin-product-list.compact{gap:0}.admin-product-table .admin-product-card.compact{border:none;border-radius:0;border-bottom:1px solid var(--border)}.admin-product-table .admin-product-card.compact:last-child{border-bottom:none}.admin-product-table .admin-product-card.compact.expanded{border-color:var(--border);background:#fafbfc}.product-status-pill{font-size:.6875rem;font-weight:600;text-align:right}.product-status-pill.on{color:#047857}.product-status-pill.off{color:#b45309}.visibility-badge.inline{font-size:.625rem;padding:.0625rem .3125rem;margin-left:.375rem;vertical-align:middle}.product-id-line{font-size:.6875rem;color:var(--muted);font-family:monospace;margin:0 0 .375rem}.admin-product-readiness{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.5rem}.admin-product-readiness span{font-size:.6875rem;padding:.125rem .375rem;border-radius:4px}.admin-product-readiness .ready{background:#d1fae5;color:#065f46}.admin-product-readiness .warn{background:#fef3c7;color:#92400e}.admin-product-section{margin-top:.5rem}.admin-product-section-title{font-size:.6875rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;margin:0 0 .375rem}.inventory-upload-actions{display:flex;flex-wrap:wrap;gap:.375rem}.inventory-upload-btn.inline{width:auto;padding:.3125rem .625rem}.admin-product-table .inventory-file-scroll-list{max-height:140px}.form-row-2col{display:grid;grid-template-columns:1fr 1fr;grid-gap:.75rem;gap:.75rem}.product-form-sections{display:flex;flex-direction:column;gap:.875rem}.product-form-sections .form-field{gap:.25rem}.form-input-sm{padding:.4375rem .625rem;font-size:.875rem}.form-hint-compact{margin:0;font-size:.75rem}.visibility-options.compact{gap:.375rem}.visibility-options.compact .visibility-option{padding:.5rem .625rem}.visibility-options.compact .visibility-option-text small{font-size:.6875rem}.feature-row.compact{margin-bottom:.375rem}.modal-compact{padding:1.25rem;max-width:480px}.modal-compact .modal-header.compact{margin-bottom:.875rem}.modal-compact .modal-header h2{font-size:1rem}.modal-compact .modal-actions.compact{margin-top:1rem}.modal-compact .form-hint{margin-bottom:0}.stock-restock-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border)}.stock-restock-row label{font-size:.875rem;color:var(--muted)}.stock-restock-input{width:5rem}.inventory-upload-panel{margin-top:1rem;padding:1rem 1.125rem;background:#f8fafc;border:1px solid var(--border);border-radius:10px}.inventory-upload-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.875rem}.inventory-upload-header strong{display:block;font-size:.9375rem;margin-bottom:.25rem}.inventory-upload-desc{margin:0;font-size:.8125rem;color:var(--muted)}.inventory-upload-stats{display:flex;flex-direction:column;gap:.25rem;font-size:.8125rem;color:var(--muted);text-align:right;white-space:nowrap}.inventory-upload-btn{width:100%;justify-content:center;padding:.75rem 1rem}.inventory-upload-steps{margin:.75rem 0 0;padding-left:1.25rem;font-size:.8125rem;color:var(--muted);line-height:1.6}.inventory-file-list{margin-top:.875rem;padding-top:.875rem;border-top:1px dashed var(--border)}.inventory-file-list-title{margin:0;font-size:.8125rem;font-weight:600;color:var(--muted)}.inventory-file-list-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.inventory-selection-actions{display:flex;flex-wrap:wrap;gap:.5rem}.inventory-file-scroll-list{list-style:none;margin:0;padding:0;max-height:280px;overflow-y:auto;border:1px solid var(--border);border-radius:8px}.inventory-file-scroll-list>li+li{border-top:1px solid var(--border)}.inventory-file-select{display:flex;align-items:center;gap:.5rem;min-width:0;flex:1 1;cursor:pointer}.inventory-file-select input{flex-shrink:0}.inventory-file-actions{display:flex;flex-wrap:wrap;gap:.375rem}.btn-danger{background:#dc2626;border-color:#dc2626;color:#fff}.btn-danger:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}.btn-danger:disabled{opacity:.6}.inventory-file-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.625rem .75rem}.inventory-file-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.affiliate-quantity-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.875rem 0;padding:.75rem;background:var(--bg);border:1px solid var(--border);border-radius:8px}.affiliate-quantity-row label{font-size:.875rem;font-weight:600}.admin-affiliates-page .admin-page-header{margin-bottom:.75rem}.admin-affiliates-page .admin-page-header h1{font-size:1.25rem}.admin-affiliates-page .admin-page-header p{font-size:.8125rem}.affiliates-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}.affiliates-sort-select{display:flex;align-items:center;gap:.5rem;margin-left:auto;font-size:.8125rem;color:var(--muted)}.affiliates-sort-select select{min-width:12rem;padding:.375rem .625rem;font-size:.8125rem}.affiliates-count{font-size:.8125rem;color:var(--muted)}.affiliate-table{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}.affiliate-row-main,.affiliate-table-head{display:grid;grid-template-columns:minmax(0,1.4fr) 5.5rem 3.5rem 3.5rem minmax(0,1fr);grid-gap:.5rem;gap:.5rem;align-items:center}.affiliate-row-main.has-move,.affiliate-table-head.has-move{grid-template-columns:3.25rem minmax(0,1.4fr) 5.5rem 3.5rem 3.5rem minmax(0,1fr)}.affiliate-table-head.has-move{display:grid}.affiliate-table-head{padding:.375rem .75rem;background:#f8fafc;border-bottom:1px solid var(--border);font-size:.6875rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.02em}.affiliate-table-head .col-qty,.affiliate-table-head .col-status{text-align:center}.col-move{display:flex;flex-direction:column;gap:.125rem}.affiliate-move-btn{min-width:0;padding:.125rem .375rem;line-height:1.2;font-size:.75rem}.affiliate-row{border-bottom:1px solid var(--border)}.affiliate-row:last-child{border-bottom:none}.affiliate-row-main{padding:.5rem .75rem;font-size:.8125rem}.affiliate-row-main .col-name{min-width:0}.affiliate-row-main .col-name strong{display:block;font-size:.875rem;margin-bottom:.125rem}.affiliate-url-hint{display:block;font-family:monospace;font-size:.6875rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.affiliate-row-main .col-code{font-family:monospace;font-size:.75rem;color:var(--muted)}.affiliate-row-main .col-qty{text-align:center;font-weight:600}.affiliate-row-main .col-status{display:flex;justify-content:center}.affiliate-row-main .col-actions{display:flex;flex-wrap:wrap;gap:.25rem;justify-content:flex-end}.empty-state.compact{padding:1.5rem;text-align:center}.empty-state.compact p{margin-bottom:.75rem;font-size:.875rem}.modal.modal-sm{max-width:420px;padding:1.25rem}.modal.modal-sm .modal-header h2{font-size:1rem}@media (max-width:768px){.affiliate-table-head{display:none}.affiliate-row-main{grid-template-columns:1fr;gap:.375rem}.affiliate-row-main .col-qty,.affiliate-row-main .col-status{text-align:left;justify-content:flex-start}.affiliate-row-main .col-actions{justify-content:flex-start}}.bulk-apply-row{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem;padding:.75rem 1rem;background:var(--bg);border:1px solid var(--border);border-radius:8px}.bulk-stock-table{width:100%;border-collapse:collapse;font-size:.9375rem}.bulk-stock-table td,.bulk-stock-table th{padding:.625rem .5rem;text-align:left;border-bottom:1px solid var(--border)}.bulk-stock-table th{font-weight:600;color:var(--muted);font-size:.8125rem}.bulk-stock-table input{width:5.5rem}.bulk-stock-preview{color:var(--muted);font-size:.8125rem}.orders-toolbar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-bottom:1.25rem}.orders-search{flex:1 1;min-width:220px}.orders-count{font-size:.875rem;color:var(--muted);white-space:nowrap}.orders-list{display:flex;flex-direction:column;gap:1rem}.order-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem}.order-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.order-card-header h3{font-size:1rem;margin-bottom:.25rem}.order-meta{font-size:.8125rem;color:var(--muted)}.order-badges{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.order-details{margin:0}.order-detail-row{display:grid;grid-template-columns:140px 1fr;grid-gap:.75rem;gap:.75rem;padding:.625rem 0;border-top:1px solid var(--border);font-size:.875rem}.order-detail-row dt{color:var(--muted);font-weight:600}.order-detail-row dd{margin:0;word-break:break-all}.order-detail-row code{font-size:.8125rem;background:#f1f5f9;padding:.125rem .375rem;border-radius:4px}.order-link{display:inline-block;margin-left:.5rem;font-size:.8125rem}.order-file-list{margin:0;padding-left:1.1rem}.order-file-list li{margin-bottom:.25rem}.order-file-id{color:var(--muted);font-size:.75rem}.order-download-actions{margin-top:.75rem}.admin-product-list{display:flex;flex-direction:column;gap:1rem}.admin-product-list.compact{gap:.375rem}.admin-product-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem}.admin-product-card.compact{padding:0;border-radius:8px;overflow:hidden}.admin-product-card.compact.expanded{border-color:var(--accent,#2563eb)}.admin-product-summary{display:grid;grid-template-columns:1rem minmax(0,1fr) 4.5rem 4.5rem 2.75rem 3rem;grid-gap:.5rem;gap:.5rem;align-items:center;width:100%;padding:.4375rem .75rem;border:none;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}.admin-product-summary:hover{background:rgba(15,23,42,.03)}.admin-product-summary-text{display:flex;align-items:center;min-width:0}.admin-product-summary-text strong{font-size:.8125rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-product-summary .col-mode,.admin-product-summary .col-price,.admin-product-summary .col-status,.admin-product-summary .col-stock{text-align:right;justify-self:end}.admin-product-summary .col-mode{justify-self:stretch;text-align:center}.admin-product-summary .stock-pill{justify-self:end}.admin-product-expand-icon{font-size:.5625rem;color:var(--muted)}.admin-product-summary .price{font-size:.75rem;font-weight:600;white-space:nowrap}.stock-pill{font-size:.6875rem;padding:.125rem .375rem;background:rgba(15,23,42,.06);color:var(--muted)}.fulfillment-badge,.stock-pill{border-radius:999px;white-space:nowrap}.fulfillment-badge{font-size:.625rem;padding:.125rem .3125rem;font-weight:500}.fulfillment-badge.mode-units{background:rgba(37,99,235,.1);color:#1d4ed8}.fulfillment-badge.mode-template{background:rgba(124,58,237,.1);color:#6d28d9}.fulfillment-badge.mode-payment{background:rgba(16,185,129,.12);color:#047857}.fulfillment-badge.mode-reservation{background:rgba(234,88,12,.12);color:#c2410c}.reservation-status-banner{margin-bottom:1.25rem;padding:.75rem 1rem;border-radius:10px;background:#fff7ed;border:1px solid #fdba74;text-align:center;font-size:.9375rem;color:#9a3412}.reservation-status-banner strong{font-size:1.125rem;color:#c2410c}.reservation-product-note{font-size:.8125rem;color:var(--muted);margin:.375rem 0 .5rem;padding:.375rem .5rem;background:rgba(234,88,12,.08);border-radius:6px}.admin-orders-page .admin-page-header{margin-bottom:.75rem}.admin-orders-page .admin-page-header h1{font-size:1.25rem}.admin-orders-page .admin-page-header p{font-size:.8125rem}.orders-toolbar.compact{margin-bottom:.625rem;display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;align-items:center}.orders-toolbar-meta{display:flex;align-items:center;gap:.625rem}.orders-reservation-pill{font-size:.75rem;font-weight:600;color:#c2410c;background:#ffedd5;padding:.125rem .5rem;border-radius:999px}.admin-order-table{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}.admin-order-table-head{display:grid;grid-template-columns:1rem minmax(0,1fr) 2.5rem 4rem 5.5rem 3.5rem;grid-gap:.5rem;gap:.5rem;align-items:center;padding:.375rem .75rem;background:#f8fafc;border-bottom:1px solid var(--border);font-size:.6875rem;font-weight:600;color:var(--muted);text-transform:uppercase}.admin-order-table-head .col-date,.admin-order-table-head .col-mode,.admin-order-table-head .col-qty,.admin-order-table-head .col-status{text-align:right}.orders-list.compact{gap:0}.order-card.compact{border:none;border-radius:0;border-bottom:1px solid var(--border);padding:0;background:transparent}.order-card.compact:last-child{border-bottom:none}.order-card.compact.reservation-pending{background:#fffbf7}.order-card.compact.expanded{background:#fafbfc}.order-summary{display:grid;grid-template-columns:1rem minmax(0,1fr) 2.5rem 4rem 5.5rem 3.5rem;grid-gap:.5rem;gap:.5rem;align-items:center;width:100%;padding:.4375rem .75rem;border:none;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}.order-summary:hover{background:rgba(15,23,42,.03)}.order-expand-icon{font-size:.5625rem;color:var(--muted)}.order-product-name{font-size:.8125rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-summary .col-date,.order-summary .col-qty,.order-summary .col-status{text-align:right;font-size:.75rem}.order-summary .col-mode{justify-self:end}.order-status-pill{font-size:.6875rem;font-weight:600;color:var(--muted)}.order-card.reservation-pending .order-status-pill{color:#c2410c}.order-body{padding:0 .75rem .625rem;border-top:1px solid var(--border)}.order-email-line{font-size:.75rem;color:var(--muted);margin:.375rem 0}.order-details.compact .order-detail-row{grid-template-columns:4.5rem 1fr;padding:.375rem 0;font-size:.75rem}.order-file-list.compact{margin:0 0 .375rem;padding-left:1rem;font-size:.75rem}.order-actions.compact{display:flex;gap:.375rem;padding-top:.375rem}.orders-pagination{display:flex;align-items:center;justify-content:center;gap:.75rem;margin-top:.75rem}.orders-page-info{font-size:.8125rem;color:var(--muted)}.admin-product-body{padding:0 .75rem .625rem;border-top:1px solid var(--border)}.admin-product-body .admin-product-badges{margin-top:.5rem;margin-bottom:.375rem}.admin-product-body .product-desc,.private-link-panel.compact{margin-bottom:.5rem;font-size:.8125rem}.private-link-panel.compact{padding:.5rem .625rem}.private-link-panel.compact .affiliate-hint{margin:.25rem 0;font-size:.75rem}.payment-product-note{font-size:.8125rem;color:var(--muted);margin:.375rem 0 .5rem;padding:.375rem .5rem;background:rgba(16,185,129,.08);border-radius:6px}.inventory-upload-panel.compact{padding:.5rem .625rem;margin-bottom:.5rem}.inventory-upload-panel.compact .inventory-upload-header{margin-bottom:.375rem}.inventory-upload-panel.compact .inventory-upload-desc{font-size:.75rem;margin:0}.inventory-file-list.compact{margin-top:.5rem}.stock-restock-row.compact{margin-bottom:.5rem;font-size:.8125rem}.admin-product-actions.compact{padding-top:.375rem;border-top:1px solid var(--border)}.admin-product-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.5rem}.admin-product-header h3{font-size:1.0625rem}.product-id{font-size:.75rem;color:var(--muted);font-family:monospace}.admin-product-badges{display:flex;gap:.375rem;flex-shrink:0}.product-desc{color:var(--muted)}.admin-product-meta,.product-desc{font-size:.875rem;margin-bottom:.75rem}.admin-product-meta{display:flex;gap:1rem}.file-name{font-family:monospace}.file-name,.product-features-mini{color:var(--muted);font-size:.8125rem}.product-features-mini{list-style:none;margin-bottom:.75rem}.product-features-mini li:before{content:"· "}.admin-product-actions{display:flex;gap:.5rem;flex-wrap:wrap}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal{background:var(--surface);border-radius:16px;padding:2rem;width:100%;max-width:520px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 40px rgba(15,23,42,.2)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.modal-header h2{margin-bottom:0}.modal-close{flex-shrink:0;width:2rem;height:2rem;border:none;border-radius:8px;background:transparent;color:var(--text-muted);font-size:1rem;cursor:pointer}.modal-close:hover{background:#f1f5f9;color:var(--text)}.modal h2{font-size:1.125rem;margin-bottom:1.25rem}.modal-wide{max-width:640px}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.feature-row{display:flex;gap:.5rem;margin-bottom:.5rem}.form-input-mono{font-family:Cascadia Code,Consolas,monospace;font-size:.875rem}.section-save{justify-content:flex-end;gap:1rem;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border)}.checkbox-label,.section-save{display:flex;align-items:center}.checkbox-label{gap:.5rem;font-size:.9375rem;margin-top:.5rem;cursor:pointer}@media (max-width:900px){.product-grid:not(.product-grid-single){grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.site-header{flex-direction:column;gap:.75rem;padding:1rem}.product-grid:not(.product-grid-single){grid-template-columns:1fr}.product-footer{flex-direction:column;align-items:stretch}.btn{text-align:center}.admin-layout{flex-direction:column}.admin-sidebar{width:100%}.admin-main{padding:1.25rem}.dashboard-hero{flex-direction:column;text-align:center}}