:root{--bg: #0b1120;--surface: #111827;--surface-2: #1e293b;--border: #263248;--text: #f8fafc;--muted: #94a3b8;--primary: #3b82f6;--primary-hover: #2563eb;--success: #22c55e;--danger: #ef4444;--warning: #f59e0b;--radius: 14px;--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-top: env(safe-area-inset-top, 0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;padding:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,sans-serif;-webkit-font-smoothing:antialiased}.app-shell{max-width:560px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg)}.top-bar{position:sticky;top:0;z-index:20;padding:calc(12px + var(--safe-top)) 16px 12px;background:#0f172aeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px}.brand-group{display:flex;flex-direction:column;min-width:0}.brand-sub{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--primary)}.site-select{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:6px 10px;font-size:14px;font-weight:600;max-width:240px;margin-top:2px}.site-name-static{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-content{flex:1;padding:16px 16px calc(88px + var(--safe-bottom));display:flex;flex-direction:column;gap:14px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title{margin:0;font-size:20px;font-weight:700}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:10px}.card-muted{opacity:.6}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.row-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 12px;text-align:center}.stat-num{font-size:24px;font-weight:800;line-height:1.1}.stat-label{font-size:12px;color:var(--muted);margin-top:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 14px;border-radius:10px;border:1px solid transparent;font-size:14px;font-weight:600;cursor:pointer;background:var(--surface-2);color:var(--text);transition:opacity .15s,background .15s}.btn:active{opacity:.8}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-danger{background:#ef444426;color:#fca5a5;border-color:#ef44444d}.btn-ghost{background:transparent;border-color:var(--border);color:var(--muted)}.btn-sm{min-height:34px;padding:0 10px;font-size:13px}.btn-full{width:100%}.badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:#3b82f62e;color:#93c5fd}.badge-green{background:#22c55e29;color:#86efac}.badge-amber{background:#f59e0b2e;color:#fcd34d}.badge-gray{background:#94a3b829;color:#cbd5e1}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:13px;font-weight:600;color:var(--muted)}.input,.textarea,.select{width:100%;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:11px 12px;font-size:15px;font-family:inherit}.textarea{min-height:82px;resize:vertical}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.promo-preview{padding:10px 12px;border-radius:10px;color:#fff;font-size:14px}.item-thumb{width:56px;height:56px;border-radius:10px;object-fit:cover;flex-shrink:0;background:var(--surface-2)}.media-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.media-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}.media-card img{width:100%;height:130px;object-fit:cover;background:var(--surface-2)}.media-card-body{padding:10px;display:flex;flex-direction:column;gap:6px}.code-box{background:#020617;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#93c5fd;overflow-x:auto;white-space:pre-wrap;word-break:break-all}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:560px;background:#0f172af5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--border);display:flex;justify-content:space-around;padding:6px 6px calc(8px + var(--safe-bottom));z-index:30}.nav-btn{flex:1;background:transparent;border:0;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;font-size:11px;font-weight:600;cursor:pointer}.nav-btn.active{color:var(--primary)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#020617b8;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet-panel{width:100%;max-width:560px;max-height:90dvh;overflow-y:auto;background:var(--surface);border-top-left-radius:20px;border-top-right-radius:20px;border:1px solid var(--border);border-bottom:0;padding:16px 16px calc(24px + var(--safe-bottom));display:flex;flex-direction:column;gap:14px}.toast{position:fixed;top:calc(16px + var(--safe-top));left:50%;transform:translate(-50%);z-index:80;background:#1e293b;color:#f8fafc;border:1px solid var(--primary);padding:10px 16px;border-radius:999px;font-size:13px;font-weight:600;box-shadow:0 10px 30px #00000073}.login-wrap{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px}.login-card{width:100%;max-width:400px}.error-banner{background:#ef444424;border:1px solid rgba(239,68,68,.35);color:#fca5a5;padding:10px 12px;border-radius:10px;font-size:13px}.muted{color:var(--muted);font-size:13px}.switch{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;cursor:pointer}.switch input{width:18px;height:18px;accent-color:var(--primary)}
