:root { --sidebar-w: 230px; --sidebar-bg: #111827; --sidebar-fg: #e5e7eb; --topbar-h: 60px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4f6f9; }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: var(--sidebar-w); background: var(--sidebar-bg); color: var(--sidebar-fg); display: flex; flex-direction: column; padding: 20px 0; position: fixed; top: 0; left: 0; bottom: 0; }
.app-brand { padding: 0 20px 20px; font-weight: 700; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.app-nav { flex: 1; padding: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.app-nav-link { color: var(--sidebar-fg); text-decoration: none; padding: 10px 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.app-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav-link.active { background: rgba(34,197,94,.18); color: #fff; border-left: 3px solid #22c55e; padding-left: 17px; }
.app-nav-icon { width: 22px; text-align: center; }
.app-sidebar-footer { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.app-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar { height: var(--topbar-h); background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.app-content { padding: 24px; flex: 1; }
.card-bot { color: inherit; transition: box-shadow .15s; }
.card-bot:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.stat-value { font-size: 26px; font-weight: 700; }
.stat-label { color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; padding: 24px; background: #fff; border-radius: 8px; }
.qr-wrap img { max-width: 280px; border: 1px solid #e5e7eb; padding: 8px; background: #fff; }
.wh-copy { display: flex; gap: 8px; }
.wh-copy input { background: #f9fafb; }
.wh-code { background: #1f2937; color: #e5e7eb; border-radius: 6px; padding: 14px 16px; font-size: 13px; line-height: 1.5; overflow-x: auto; margin-bottom: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.docs h2 { margin-top: 2rem; font-size: 1.35rem; }
.docs h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.docs table { font-size: 14px; }
.docs code { color: #b91c1c; background: #fef2f2; padding: 1px 5px; border-radius: 3px; font-size: 13px; }
.docs pre code { color: inherit; background: none; padding: 0; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 768px) {
  .app-sidebar { position: static; width: auto; padding: 8px 0; }
  .app-nav { flex-direction: row; flex-wrap: wrap; }
  .app-main { margin-left: 0; }
  .app-shell { flex-direction: column; }
}
