:root {
  color-scheme: light;
  --s1000-blue: #0d47a1;
  --s1000-blue-2: #0b5ed7;
  --s1000-admin: #172033;
  --s1000-border: #d9e2ef;
}
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f2937; }
.s1000-topbar .navbar { min-height: 64px; }
.s1000-public-content { min-height: 42vh; }
.s1000-footer { color: #6b7280; }
.s1000-shell { min-height: 100vh; display: flex; }
.s1000-sidebar { width: 268px; flex: 0 0 268px; background: #ffffff; border-right: 1px solid var(--s1000-border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.s1000-sidebar-admin { background: var(--s1000-admin); border-right-color: #26324a; }
.s1000-sidebar-title { font-weight: 700; font-size: .95rem; color: var(--s1000-blue); padding: 0 10px 14px; }
.s1000-sidebar-admin .s1000-sidebar-title { color: #fbbf24; }
.s1000-sidebar .nav-link { border-radius: 6px; color: #334155; padding: .52rem .65rem; font-size: .94rem; }
.s1000-sidebar-admin .nav-link { color: #dbe4f0; }
.s1000-sidebar .nav-link:hover { background: #eef5ff; color: var(--s1000-blue); }
.s1000-sidebar-admin .nav-link:hover { background: #26324a; color: #fff; }
.s1000-sidebar .nav-link.active { background: var(--s1000-blue); color: #fff; }
.s1000-sidebar-admin .nav-link.active { background: #b45309; color: #fff; }
.s1000-main { flex: 1 1 auto; min-width: 0; }
.s1000-page-header { background: #fff; border-bottom: 1px solid var(--s1000-border); padding: 18px 24px; }
.s1000-page-header h1 { font-size: 1.45rem; margin: 0; }
.s1000-admin-header { border-bottom-color: #f59e0b; }
.card { border-color: var(--s1000-border); border-radius: 8px; box-shadow: 0 1px 2px rgb(15 23 42 / 4%); }
.table { --bs-table-striped-bg: #f8fafc; }
.support-banner { background: #fff3cd; border-bottom: 1px solid #f1d37a; padding: .75rem 1rem; }
.s1000-token-box { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; word-break: break-all; }
@media (max-width: 991.98px) {
  .s1000-shell { display: block; }
  .s1000-sidebar { position: relative; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--s1000-border); }
  .s1000-sidebar .nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px; }
}

.s1000-qr-wrap { display: inline-flex; padding: 12px; background: #fff; border: 1px solid var(--s1000-border); border-radius: 8px; }
.s1000-qr { max-width: 260px; width: 100%; height: auto; fill: #111827; }
.s1000-status-dot { width: .7rem; height: .7rem; border-radius: 999px; display: inline-block; margin-right: .4rem; vertical-align: middle; }
.s1000-status-ok { background: #16a34a; }
.s1000-status-warn { background: #f59e0b; }
.s1000-status-bad { background: #dc2626; }
.s1000-actionbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.s1000-page-header { box-shadow: 0 1px 2px rgb(15 23 42 / 3%); }
.form-text { color: #64748b; }
@media (max-width: 575.98px) { .s1000-qr-wrap { width: 100%; justify-content: center; } .s1000-token-box { font-size: .86rem; } }

.s1000-main { background: #f5f8fc; }
.s1000-sidebar { box-shadow: 1px 0 2px rgb(15 23 42 / 3%); }
.s1000-sidebar-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.s1000-area-pill { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .18rem .48rem; background: #e8f1ff; color: #0d47a1; }
.s1000-sidebar-admin .s1000-area-pill { background: #7c2d12; color: #ffedd5; }
.s1000-admin-header { background: linear-gradient(90deg, #172033 0%, #23304a 100%); color: #fff; }
.s1000-admin-header h1 { color: #fff; }
.s1000-admin-header .text-warning { color: #fbbf24 !important; }
.s1000-page-header:not(.s1000-admin-header) { background: #ffffff; }
.s1000-token-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: start; }
.s1000-token-box { background: #f8fafc; border: 1px solid var(--s1000-border); border-radius: 6px; padding: .5rem .6rem; }
.s1000-table-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.s1000-copy-btn { white-space: nowrap; }
@media (max-width: 575.98px) {
  .s1000-token-row { grid-template-columns: 1fr; }
  .s1000-table-actions { display: grid; grid-template-columns: 1fr; }
}
