/* ===================================================================
 * WETYR DESIGN SYSTEM v1
 * Tokens, typography, layout primitives, component library.
 * Load first on every page: <link rel="stylesheet" href="/_theme.css">
 * =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- TOKENS --- */
:root {
  /* Surface */
  --surface-app:   #f6f8fb;
  --surface-card:  #ffffff;
  --surface-panel: #ffffff;
  --surface-sunk:  #f1f5f9;
  --surface-hover: #f8fafc;

  /* Sidebar - deep, institutional */
  --sidebar-bg:        #0f172a;
  --sidebar-bg-deeper: #0a111e;
  --sidebar-text:      #cbd5e1;
  --sidebar-text-mute: #64748b;
  --sidebar-hover:     rgba(255,255,255,0.04);
  --sidebar-active-bg: rgba(2, 132, 199, 0.18);
  --sidebar-active-fg: #38bdf8;
  --sidebar-border:    rgba(255,255,255,0.06);

  /* Text */
  --ink:       #0f172a;
  --ink-soft:  #334155;
  --muted:     #64748b;
  --muted-2:   #94a3b8;

  /* Brand + semantic */
  --brand:     #0284c7;
  --brand-dk:  #0369a1;
  --brand-lt:  #e0f2fe;
  --ok:        #059669;
  --ok-lt:     #d1fae5;
  --warn:      #d97706;
  --warn-lt:   #fef3c7;
  --danger:    #dc2626;
  --danger-lt: #fee2e2;
  --info:      #2563eb;
  --info-lt:   #dbeafe;

  /* Borders + shadow */
  --border:      #e2e8f0;
  --border-soft: #eef2f6;
  --border-strong:#cbd5e1;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 10px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 10px 25px rgba(15,23,42,0.10), 0 4px 10px rgba(15,23,42,0.04);
  --shadow-xl: 0 20px 40px rgba(15,23,42,0.15);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* Spacing (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --sidebar-w: 232px;
  --topbar-h:  56px;
  --content-max: 1600px;
}

/* --- BASE --- */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--surface-app);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: 24px; letter-spacing: -0.02em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dk); }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }
small, .small { font-size: 12px; color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* --- APP LAYOUT SHELL --- */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
}
.app-sidebar {
  grid-area: sidebar;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--sidebar-border);
  z-index: 30;
}
.app-sidebar::-webkit-scrollbar { width: 6px; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.05); border-radius: 3px; }
.app-sidebar .brand {
  padding: 18px 20px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--sidebar-border);
}
.app-sidebar .brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 12px; letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(14,165,233,0.35);
}
.app-sidebar .brand-name {
  font-weight: 800;
  font-size: 14px;
  color: white;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.app-sidebar .brand-tag {
  font-size: 10px;
  color: var(--sidebar-text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}
.app-sidebar .nav {
  flex: 1;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.app-sidebar .nav-group {
  font-size: 10px;
  font-weight: 700;
  color: var(--sidebar-text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 12px 6px;
}
.app-sidebar .nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sidebar-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.app-sidebar .nav-item:hover {
  background: var(--sidebar-hover);
  color: white;
}
.app-sidebar .nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-fg);
  font-weight: 600;
}
.app-sidebar .nav-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.75;
}
.app-sidebar .nav-item.active svg { opacity: 1; }
.app-sidebar .nav-item .nav-badge {
  margin-left: auto;
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-fg);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--r-pill);
}
.app-sidebar .sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--sidebar-border);
  display: flex; align-items: center; gap: 10px;
}
.app-sidebar .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.app-sidebar .user-name { font-size: 12px; font-weight: 600; color: white; line-height: 1.2; }
.app-sidebar .user-role { font-size: 10px; color: var(--sidebar-text-mute); line-height: 1.2; }
.app-sidebar .logout-btn {
  margin-left: auto;
  width: 28px; height: 28px; border-radius: 6px;
  background: transparent; border: 0; color: var(--sidebar-text-mute);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.app-sidebar .logout-btn:hover { background: var(--sidebar-hover); color: white; }

/* Top bar */
.app-topbar {
  grid-area: topbar;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  position: sticky; top: 0;
  z-index: 20;
}
.app-topbar .crumb {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.app-topbar .crumb .current {
  color: var(--ink); font-weight: 600;
}
.app-topbar .search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-sunk);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 6px 10px 6px 12px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s;
  min-width: 240px;
}
.app-topbar .search:hover { border-color: var(--border-strong); background: white; }
.app-topbar .search kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: white;
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--muted);
  margin-left: auto;
}
.app-topbar .topbar-action {
  width: 34px; height: 34px; border-radius: var(--r-md);
  background: transparent; border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.12s;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}
.app-topbar .topbar-action:hover { background: var(--surface-sunk); color: var(--ink); }
.app-topbar .topbar-action svg { width: 17px; height: 17px; }
.app-topbar .topbar-action .dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  border: 2px solid white;
}
.app-topbar .topbar-stats {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.app-topbar .topbar-stats .stat {
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.app-topbar .topbar-stats .stat strong {
  color: var(--ink); font-weight: 700; font-size: 13px;
}
.app-topbar .topbar-stats .stat .divider {
  width: 1px; height: 16px; background: var(--border);
}
@media (max-width: 1080px) {
  .app-topbar .topbar-stats { display: none; }
}

/* Main content area */
.app-main {
  grid-area: main;
  padding: 24px 28px 80px;
  max-width: var(--content-max);
  width: 100%;
}
.app-main > h1:first-child {
  margin-bottom: 6px;
}
.page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  flex-wrap: wrap;
}
.page-header .page-title h1 { font-size: 22px; }
.page-header .page-title .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.page-header .page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card-padded { padding: 20px 22px; }
.card-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.card-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.card-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-body { padding: 18px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border-soft); background: var(--surface-hover); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Metric cards */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.metric {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: box-shadow .15s, transform .15s;
}
.metric:hover { box-shadow: var(--shadow-sm); }
.metric-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric-value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric-value.money { color: var(--ok); }
.metric-value.warn { color: var(--warn); }
.metric-value.danger { color: var(--danger); }
.metric-delta { font-size: 12px; margin-top: 6px; color: var(--muted); }
.metric-delta.up { color: var(--ok); }
.metric-delta.down { color: var(--danger); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 1px 2px rgba(2,132,199,0.3); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dk); box-shadow: 0 2px 6px rgba(2,132,199,0.4); }
.btn-secondary { background: var(--surface-card); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-sunk); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-sunk); color: var(--ink); }
.btn-success { background: var(--ok); color: white; }
.btn-success:hover:not(:disabled) { background: #047857; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-warning { background: var(--warn); color: white; }
.btn-warning:hover:not(:disabled) { background: #b45309; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 10px 18px; font-size: 14px; }
.btn-icon { width: 34px; padding: 0; }

/* Form controls */
.input, .select, .textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink);
  font-family: inherit;
  transition: border 0.12s, box-shadow 0.12s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
}
.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.field { margin-bottom: 14px; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-neutral { background: var(--surface-sunk); color: var(--ink-soft); }
.badge-brand { background: var(--brand-lt); color: var(--brand-dk); }
.badge-ok { background: var(--ok-lt); color: #065f46; }
.badge-warn { background: var(--warn-lt); color: #92400e; }
.badge-danger { background: var(--danger-lt); color: #991b1b; }
.badge-info { background: var(--info-lt); color: #1e40af; }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Tier badges */
.tier {
  display: inline-block; font-weight: 700; font-size: 11px;
  padding: 2px 8px; border-radius: var(--r-sm);
  color: white;
  letter-spacing: 0.02em;
}
.tier-A { background: #dc2626; }
.tier-B { background: #d97706; }
.tier-C { background: #059669; }
.tier-D { background: #64748b; }

/* Tables */
.table-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-hover); }
.table .tabular { font-variant-numeric: tabular-nums; }
.table-empty { padding: 48px 24px; text-align: center; color: var(--muted); }

/* Empty state */
.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state .icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  background: var(--surface-sunk);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.empty-state h3 { font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.empty-state p { font-size: 13px; color: var(--muted); max-width: 360px; margin: 0 auto; }

/* Skeleton loaders */
@keyframes skeleton-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.85; } }
.skel {
  background: linear-gradient(90deg, var(--surface-sunk) 0%, #e9edf2 50%, var(--surface-sunk) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.3s infinite;
  border-radius: var(--r-sm);
  height: 14px;
}
.skel-line { height: 10px; margin: 6px 0; }
.skel-title { height: 22px; margin-bottom: 14px; width: 60%; }
.skel-card { height: 140px; border-radius: var(--r-lg); }

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  min-width: 280px; max-width: 420px;
  display: flex; align-items: flex-start; gap: 10px;
  pointer-events: auto;
  animation: toast-in .25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left-width: 4px;
}
.toast.out { animation: toast-out .2s forwards; }
.toast .toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast .toast-title { font-weight: 700; font-size: 13px; }
.toast .toast-msg { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.toast .toast-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; margin-left: auto; }
.toast-ok    { border-left-color: var(--ok); }
.toast-ok .toast-icon    { color: var(--ok); }
.toast-warn  { border-left-color: var(--warn); }
.toast-warn .toast-icon  { color: var(--warn); }
.toast-error { border-left-color: var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info  { border-left-color: var(--brand); }
.toast-info .toast-icon  { color: var(--brand); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 60px 20px;
  overflow-y: auto;
  animation: fade-in .15s;
}
.modal {
  background: var(--surface-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  animation: modal-in .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-hover); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Command palette */
.cmdk-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  z-index: 1100;
  padding: 110px 20px 20px;
  display: flex; justify-content: center;
  animation: fade-in .15s;
}
.cmdk {
  background: var(--surface-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 640px;
  max-height: 500px;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modal-in .15s;
}
.cmdk-search {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.cmdk-search input {
  flex: 1; border: 0; outline: 0;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
}
.cmdk-search input::placeholder { color: var(--muted-2); }
.cmdk-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.cmdk-item {
  padding: 9px 12px;
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: 13px;
}
.cmdk-item:hover, .cmdk-item.selected { background: var(--brand-lt); color: var(--brand-dk); }
.cmdk-item .grp { margin-left: auto; font-size: 11px; color: var(--muted); }
.cmdk-section {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px 4px;
}
.cmdk-foot {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 12px;
  font-size: 11px; color: var(--muted);
}
.cmdk-foot kbd { font-family: var(--font-mono); background: var(--surface-sunk); padding: 2px 5px; border-radius: 3px; font-size: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; grid-template-areas: "topbar" "main"; }
  .app-sidebar { position: fixed; top: 0; left: -100%; width: 260px; transition: left .2s; box-shadow: var(--shadow-xl); }
  .app-sidebar.open { left: 0; }
  .app-topbar .burger { display: flex; }
  .app-main { padding: 18px 16px 80px; }
}
.burger { display: none; width: 34px; height: 34px; border-radius: 6px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.burger:hover { background: var(--surface-sunk); }

/* Utility helpers */
.flex { display: flex; } .col { flex-direction: column; }
.row { display: flex; flex-direction: row; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.grow { flex: 1; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }
.text-brand { color: var(--brand); }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 12px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.font-bold { font-weight: 700; }
.font-semi { font-weight: 600; }
.hidden { display: none !important; }

/* Legacy overrides so older inline-styled admin sections don't break */
.wrap { max-width: none; padding: 0; }
.topnav, #wetyr-tabs { display: none !important; }
.panel { display: none; }
.panel.active { display: block; }
