*{box-sizing:border-box}body{margin:0;background:#f4f7fc;color:#193351;font-family:system-ui,-apple-system,sans-serif}header{display:flex;justify-content:space-between;align-items:center;background:white;padding:20px max(22px,calc((100vw - 1150px)/2));border-bottom:1px solid #dfe7f1}.brand{font-size:25px;font-weight:750;color:#0755b6;text-decoration:none}.brand small{font-size:12px;font-weight:400;margin-left:10px;color:#71849b}main{max-width:1150px;margin:auto;padding:24px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #cfdaea;background:white;color:#285781;padding:10px 16px;border-radius:8px}button:disabled{opacity:.5;cursor:wait}.primary{color:white;background:#0755b6;border-color:#0755b6}.notice{background:#fff6e4;color:#886839;padding:12px 16px;border-radius:8px;font-size:13px}#status{min-height:24px;color:#32668e}.panel{padding:30px;background:white;border:1px solid #e0e7ef;border-radius:14px}#login{max-width:460px;margin:40px auto}.eyebrow{font-size:11px;letter-spacing:3px;color:#7591af}h1{font-size:29px}.muted,p{color:#76879a;line-height:1.7}.muted{font-size:12px}label{display:block;font-size:13px;color:#536c85;margin:14px 0}input,select,textarea{width:100%;padding:11px;border:1px solid #cfd9e7;border-radius:7px;background:#fff;margin-top:7px;color:#193351}textarea{min-height:95px}.identity{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:24px 0;gap:15px;overflow-wrap:anywhere}nav{display:flex;gap:10px;margin-bottom:24px;overflow:auto}nav button{white-space:nowrap}nav .active{background:#e4efff;border-color:#0755b6;color:#0755b6}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:white;border:1px solid #dce5f0;border-radius:12px;padding:24px}.card h3{margin:8px 0;font-size:18px}.price{font-size:28px;color:#0755b6;margin:15px 0}.card img{width:100%;height:150px;object-fit:cover;border-radius:8px}.card button{margin:5px 5px 0 0}.gold{background:radial-gradient(ellipse at top right,#53463088,transparent),#1e2026;border-color:#ba9d67;color:#ead5ad}.gold p,.gold li{color:#c8bcaa}.gold .price{color:#ead5ad}.gold button{background:#d7bc8b;color:#332a1e}.list{background:white;border:1px solid #dce5f0;border-radius:12px;padding:20px;margin-bottom:15px}.list header{background:none;padding:0;border:0}.list button{margin:8px 8px 0 0}.badge{font-size:12px;background:#e8effa;color:#326198;padding:4px 9px;border-radius:5px}ul{padding-left:20px;line-height:2}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}dialog{border:1px solid #d8e2ef;border-radius:15px;max-width:620px;width:90%;padding:25px}dialog::backdrop{background:#132d4e77}#close{float:right}.error{color:#ac3d34!important}a{color:#0755b6}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}.empty{padding:40px;text-align:center;background:white;border-radius:12px;color:#7c8ea3}@media(max-width:750px){.grid,.admin-grid{grid-template-columns:1fr}.brand small{display:block;margin:3px 0 0}main{padding:16px}.panel{padding:22px}.identity{align-items:start}.card{padding:22px}}
[hidden]{display:none!important}.shop-hero{padding:34px;border-radius:20px;background:linear-gradient(125deg,#0755b6,#073b7b);color:#fff;margin:8px 0 28px}.shop-hero>span{font-size:10px;letter-spacing:2px;color:#bdd7ff}.shop-hero h1{max-width:650px;font-size:32px;line-height:1.45;margin:14px 0}.shop-hero p{color:#d0e2ff}.shop-hero a{color:#fff;text-decoration:none;font-size:14px}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.catalog-heading input{max-width:300px;margin:0}.product-art{background:linear-gradient(130deg,#e6f0ff,#cddff7);color:#13477c;aspect-ratio:16/10;display:flex;flex-direction:column;justify-content:space-between;padding:20px;margin:-24px -24px 20px;border-radius:12px 12px 0 0}.product-art small{font-size:11px}.product-art strong{font-size:20px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.product-art>span{font-size:11px}#tabs button>span{display:none}.card{min-width:0}.card h3{overflow-wrap:anywhere}body[data-surface=admin] .brand{color:#163956}body[data-surface=admin] .notice{background:#edf1f6;color:#526981}
@media(max-width:750px){body[data-surface=customer]{padding-bottom:calc(86px + env(safe-area-inset-bottom));background:#f5f7fb}body[data-surface=customer]>header{position:sticky;top:0;z-index:4;padding:12px 16px}.brand{font-size:21px}.notice{font-size:11px;padding:9px 12px}#status{font-size:12px}.identity{margin:14px 0}.identity>span{font-size:12px}body[data-surface=customer] #tabs{position:fixed;left:0;right:0;bottom:0;margin:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fffffffa;border-top:1px solid #dfe7f1;z-index:5;justify-content:space-around;gap:0;backdrop-filter:blur(16px)}body[data-surface=customer] #tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;border-radius:0;background:transparent;font-size:11px;color:#78899e;padding:3px 5px}body[data-surface=customer] #tabs button>span{display:block;font-size:23px;line-height:28px}body[data-surface=customer] #tabs button.active{color:#0755b6;font-weight:700}.shop-hero{padding:24px 20px;margin:8px 0 22px;border-radius:16px}.shop-hero h1{font-size:27px}.shop-hero p{font-size:13px}.catalog-heading{align-items:start;flex-direction:column;gap:12px}.catalog-heading h2{font-size:21px}.catalog-heading input{width:100%;max-width:none;font-size:16px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{padding:14px;border-radius:12px}.card h3{font-size:14px;line-height:1.6}.card>p{font-size:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card .muted{font-size:10px}.price{font-size:23px;margin:12px 0}.card button{width:100%;margin:5px 0 0;padding:10px 5px;font-size:12px;min-height:40px}.product-art{margin:-14px -14px 13px;padding:12px;aspect-ratio:1.2}.product-art strong{font-size:15px;-webkit-line-clamp:3}.product-art small,.product-art>span{font-size:9px}.card img{height:auto;aspect-ratio:1.2;object-fit:cover}.badge{font-size:10px}.grid:has(.gold){grid-template-columns:1fr}.gold{padding:24px}.list{padding:18px;overflow-wrap:anywhere}input,textarea,select{font-size:16px}dialog{max-height:85dvh;overflow:auto}#login{margin:22px auto}.admin-grid{grid-template-columns:1fr}body[data-surface=admin] .grid{grid-template-columns:1fr}}
@media(max-width:350px){.grid{grid-template-columns:1fr}}

.brand{display:inline-flex;align-items:center;gap:9px}.brand img{width:38px;height:38px;object-fit:contain}.brand small{display:block;margin:3px 0 0}#open-login{margin-left:auto}#register-toggle{margin-top:18px}#register-form .check{flex-wrap:wrap}#register-form .check a{font-size:13px}
.media-upload{border:1px solid #dce5ef;border-radius:12px;margin:20px 0;padding:18px}.media-upload legend{font-weight:700;color:#193351}.media-upload>p{font-size:12px}.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.media-tile{border:1px solid #dfe7ef;border-radius:8px;overflow:hidden}.media-tile img{display:block;width:100%;aspect-ratio:16/10;object-fit:contain;background:#f5f7fb}.media-tile>div{padding:8px;font-size:11px}.media-tile button{font-size:11px;padding:4px 7px;margin:4px}.detail-gallery img{width:100%;height:auto;display:block;margin:12px 0}dialog:has(.detail-gallery){max-width:900px;max-height:90dvh;overflow:auto}.media-upload input[type=file]{font-size:13px}

.checkout{padding-top:10px}.checkout h2{margin:14px 0 20px;color:#123766}.checkout h3{font-size:19px;line-height:1.65;margin:0 0 22px;overflow-wrap:anywhere}.checkout-summary{padding:8px 20px;background:#f3f7fd;border:1px solid #dfe9f7;border-radius:13px}.checkout-summary>div{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:13px 0;font-size:14px;color:#596f87}.checkout-summary b{white-space:nowrap;color:#234c7c}.checkout-summary .checkout-total{border-top:1px solid #dce6f3}.checkout-total strong{font-size:29px;color:#0755b6}.checkout ul{margin:20px 0;padding-left:22px;font-size:14px;line-height:1.9;color:#526b85}.checkout-note{font-size:12px;line-height:1.8}.checkout-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:23px}.checkout-actions button{min-height:44px}.checkout #checkout-error{font-size:13px;color:#ab3f31;line-height:1.7}.checkout #checkout-error:empty{display:none}@media(max-width:600px){dialog:has(.checkout){padding:24px 20px}.checkout-actions{display:grid;grid-template-columns:1fr 1.7fr}.checkout-actions button{padding:10px 8px;font-size:13px}.checkout-summary{padding:6px 16px}.checkout-total strong{font-size:26px}}
.product-spec-editor{margin:20px 0;padding:18px;border:1px solid #dce5ef;border-radius:12px}.product-spec-editor legend{font-weight:700;color:#193351}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}input[readonly]{background:#f3f6fa;color:#687f98}.product-detail{padding-top:12px}.product-detail h2{line-height:1.65;font-size:26px;margin:16px 0;color:#123766}.detail-copy{white-space:pre-line;overflow-wrap:anywhere}.detail-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border:1px solid #e0e8f3;background:#e0e8f3;border-radius:12px;overflow:hidden;margin:22px 0}.detail-facts>div{background:#f7faff;padding:16px}.detail-facts span,.detail-facts b{display:block;font-size:12px;line-height:1.8}.detail-facts span{color:#7d90a8}.detail-facts b{font-size:14px;color:#284d7b;overflow-wrap:anywhere}.product-detail>section{margin:26px 0}.product-detail h3{font-size:18px;color:#254d7c}.detail-owned{padding:13px 17px;border-radius:10px;background:#eaf2ff;color:#0755b6;font-size:14px}.product-detail .detail-buy{min-height:46px}.site-footer{padding:35px 20px 45px;text-align:center;color:#8091a6}.site-footer b{font-size:13px;font-weight:600;color:#5d7795}.site-footer p{display:flex;justify-content:center;gap:15px;margin:12px 0}.site-footer a{font-size:12px;color:#587ca5;text-decoration:none}.site-footer a:hover{text-decoration:underline}.site-footer small{font-size:11px;line-height:1.9}@media(max-width:650px){.detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-facts>div{padding:12px 13px}.product-detail h2{font-size:21px}.product-detail .detail-buy{width:100%}.form-columns{grid-template-columns:1fr}.site-footer{padding:30px 18px 110px}}
.load-more{display:block;margin:24px auto;min-height:44px;padding:11px 24px;color:#0755b6;background:#edf4ff;border-color:#c9ddf8}
.list>header{position:static;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0;border:0;z-index:auto;background:transparent}.list>header>b{min-width:0;overflow-wrap:anywhere}.list>header>.badge{flex-shrink:0}@media(max-width:600px){.list>header{flex-wrap:wrap}}
.admin-preview-entry{display:flex;align-items:center;gap:15px;padding:12px 16px;border:1px solid #dce7f7;border-radius:10px;background:#fff;font-size:12px}.admin-preview-entry a{color:#0755b6;white-space:nowrap;font-weight:600;text-decoration:none}.admin-preview-entry span{color:#8093ab;font-size:11px}@media(max-width:600px){.admin-preview-entry{align-items:flex-start;flex-direction:column;gap:5px}}
