*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 0,#0b2a66,transparent 55%),#050b1f;color:#eaf4ff;font-family:system-ui,Tahoma,sans-serif;min-height:100vh}
header{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:12px;border:1px solid #1d4a9a;border-radius:16px;padding:10px 14px;background:rgba(8,20,52,.8)}
.brand{font-size:22px;font-weight:700;text-shadow:0 0 10px #2fa8ff}.brand small{display:block;font-size:11px;color:#9bc6ff;font-weight:400}
main{padding:0 12px;max-width:1100px;margin:auto}.bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
input,select,textarea{background:#0a1736;color:#eaf4ff;border:1px solid #1d4a9a;border-radius:10px;padding:10px;font:inherit;min-height:44px}
.bar input{flex:1;min-width:160px}.btn{border-radius:12px;padding:10px 16px;min-height:44px;border:1px solid #2fa8ff;background:transparent;color:#eaf4ff;cursor:pointer;font:inherit}
.btn.glow{background:linear-gradient(#1b7fe0,#0d4fb0);box-shadow:0 0 14px #2fa8ff88}.btn.red{border-color:#ff5a7a}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.card{background:#0a1736;border:1px solid #1d4a9a;border-radius:14px;overflow:hidden;cursor:pointer}.card:hover{box-shadow:0 0 14px #2fa8ff66}
.card img,.ph{width:100%;height:150px;object-fit:cover;display:block;background:#10224d}.ph{display:flex;align-items:center;justify-content:center;font-size:40px}
.card div{padding:10px}.price{color:#6fd0ff;font-weight:700}.muted{color:#9bc6ff;font-size:13px;text-align:center}.sold{color:#ff9f43}
.modal{position:fixed;inset:0;background:#000a;display:flex;align-items:center;justify-content:center;padding:12px;z-index:9}.modal[hidden]{display:none}
.box{background:#081434;border:1px solid #2fa8ff;border-radius:16px;padding:16px;max-width:520px;width:100%;max-height:92vh;overflow:auto;display:flex;flex-direction:column;gap:10px}
.box img.big{width:100%;max-height:260px;object-fit:contain;background:#000;border-radius:10px}.thumbs{display:flex;gap:6px;overflow:auto}.thumbs img{height:60px;border-radius:8px;cursor:pointer}
.err{color:#ff8a9a;font-size:14px}

.tabs{display:flex;gap:4px;margin:0 12px 10px;overflow:auto}.tabs button{background:none;border:0;border-bottom:2px solid transparent;color:#eaf4ff;padding:10px 14px;min-height:44px;font:inherit;cursor:pointer}.tabs button.on{color:#6fd0ff;border-bottom-color:#6fd0ff}
.layout{display:flex;gap:14px;align-items:flex-start}.mainc{flex:1;min-width:0}.side{width:240px;display:flex;flex-direction:column;gap:12px}
.panel,.helpbox{background:#0a1736;border:1px solid #1d4a9a;border-radius:14px;padding:12px;margin-bottom:12px}.panel h3,.helpbox h3{margin:0 0 6px}.panel p,.helpbox p{margin:0;color:#c5dcff;line-height:1.7;font-size:14px}
.hero{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #1d4a9a;border-radius:16px;padding:18px;margin-bottom:12px;background:linear-gradient(120deg,#0b2a66,#06122e);box-shadow:0 0 20px #2fa8ff33}.hero h1{margin:0 0 6px;font-size:24px;text-shadow:0 0 12px #2fa8ff}.hero p{margin:0;color:#c5dcff}.heroart{font-size:56px}
.cats{display:flex;gap:8px;overflow:auto;margin-bottom:12px;padding-bottom:4px}.cats button{flex:0 0 auto;min-width:88px;background:#0a1736;border:1px solid #1d4a9a;border-radius:14px;color:#eaf4ff;padding:10px;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px}.cats button.on{border-color:#6fd0ff;box-shadow:0 0 12px #2fa8ff88}.cats i{font-style:normal;font-size:24px}
@media(max-width:800px){.layout{flex-direction:column}.side{width:100%}.hero h1{font-size:19px}.heroart{font-size:40px}.grid{grid-template-columns:repeat(2,1fr)}.card img,.ph{height:110px}}
html,body{max-width:100%;overflow-x:hidden}
header,main,.tabs,.hero,.bar,.layout,.mainc,.side,.panel,.helpbox{min-width:0;max-width:100%}
.modal{width:100%;max-width:100vw;overflow:hidden}
.box{width:100%;max-width:min(520px,100%);min-width:0}
.box input,.box select,.box textarea,.box button,.box .btn{width:100%;max-width:100%;min-width:0}
.box input[type=file]{font-size:13px}
.bar select{flex:1;min-width:120px;max-width:100%}.bar input{min-width:0;flex:1 1 100%}.bar .btn{flex:1 1 100%}
.hero{overflow:hidden}.brand{min-width:0}
@media(max-width:800px){.grid{gap:8px}header{margin:8px}main{padding:0 8px}.tabs{margin:0 8px 8px}.card div{padding:8px;overflow-wrap:anywhere}}
