:root {
  --primary: #1e40af; --primary-light: #3b82f6; --accent: #10b981;
  --bg: #f1f5f9; --card: #fff; --text: #0f172a; --text-muted: #64748b; --border: #e2e8f0;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text);
       padding-bottom: 80px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 24px; }
.topnav { background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 24px;
          display: flex; gap: 24px; align-items: center; }
.topnav .brand { font-weight: 800; color: var(--primary); }
.topnav a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--primary); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
        padding: 20px; margin-bottom: 16px; }
.btn { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
       border: none; padding: 10px 20px; border-radius: 10px; font-weight: 600; cursor: pointer;
       text-decoration: none; display: inline-block; }
label { display: block; margin: 10px 0; font-weight: 500; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid var(--border);
                          border-radius: 8px; font-size: 0.95rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
pre { background: #0a0c14; color: #e2e8f0; padding: 14px; border-radius: 10px; overflow-x: auto;
      font-size: 0.8rem; white-space: pre-wrap; word-break: break-all; }
.error { color: #dc2626; margin: 10px 0; }

.powered-by { position: fixed; bottom: 0; left: 0; right: 0; text-align: center;
              font-size: 0.7rem; color: var(--text-muted); opacity: 0.7; padding: 8px;
              padding-bottom: calc(8px + env(safe-area-inset-bottom)); background: var(--bg); }
.powered-by a { color: var(--text-muted); }

.sc-mobile-nav { display: none; }
@media (max-width: 1024px) {
  .topnav .links { display: none; }
  .sc-mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #0a0c14; border-top: 1px solid #1e2535; z-index: 900; }
  .sc-mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 4px; color: #718096; text-decoration: none;
    font-size: 0.58rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
  .sc-mobile-nav a i { font-size: 1.15rem; }
  .sc-mobile-nav a:hover { color: var(--primary-light); }
  .sc-mobile-nav a.active { color: var(--accent); }
  .powered-by { bottom: calc(60px + env(safe-area-inset-bottom)); }
}
