/* ITHelpPro — mobile-first premium design system.
 * Layouts collapse to a single column under 720px. Tables stack as cards
 * (driven by data-label attributes). Nav becomes a slide-down drawer.
 */

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

:root {
  /* Brand accent — overridden inline per-tenant from the layout. */
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-50: rgba(37, 99, 235, 0.08);

  /* Neutrals — refined warm grays for a premium feel */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --border: #e6e8ec;
  --border-strong: #d1d5db;
  --text: #0b1220;
  --text-2: #3b4252;
  --muted: #6b7280;
  --muted-2: #9aa0a6;

  /* Semantic */
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #15803d;
  --success-bg: #ecfdf5;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --info: #1e40af;
  --info-bg: #eff6ff;

  /* Type + space scale */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 1px 1px rgba(11, 18, 32, 0.03);
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 6px 18px rgba(11, 18, 32, 0.05);
  --shadow-lg: 0 10px 30px rgba(11, 18, 32, 0.08), 0 2px 6px rgba(11, 18, 32, 0.04);

  --tap: 44px; /* min touch target */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden; /* never horizontal scroll the page */
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--primary-600); }

code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

/* ---------- Layout containers ---------- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.container-narrow {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1rem;
}

main.container {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

/* Responsive 2-col grid → stacks on narrow screens */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 2fr 1fr; gap: 1.25rem; }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 1.2rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }

@media (min-width: 720px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.35rem; }
}

.lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.975rem;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.page-header h1 { margin: 0; flex: 1; min-width: 0; }

/* ---------- Top nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 56px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; color: var(--text);
  font-size: 1.025rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}
.nav-brand:hover { color: var(--text); }
.nav-brand img {
  height: 28px; width: auto;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.nav-user-chip {
  display: none;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 0.825rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-user-chip { display: inline-flex; }
}

/* Hamburger button — mobile only */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--surface);
  z-index: 49;
  padding: 0.75rem 1rem 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s;
}
.nav-drawer .drawer-link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.75rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-drawer .drawer-link:last-child { border-bottom: none; }
.nav-drawer .drawer-link:active { background: var(--bg); }
.nav-drawer .drawer-section {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 0.75rem 0.25rem;
}
.nav-drawer .drawer-user {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .nav-drawer { display: none !important; }
}

body.drawer-open { overflow: hidden; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
@media (min-width: 720px) {
  .card { padding: 1.5rem; }
}
.card + .card { margin-top: 1rem; }
.card h2:first-child, .card h3:first-child, .card h1:first-child { margin-top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--tap);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { background: var(--primary-600); color: #fff; text-decoration: none; }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--bg); color: var(--text); text-decoration: none; }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; color: #fff; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); text-decoration: none; }

.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0.4rem 0.85rem; font-size: 0.85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Forms ---------- */

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=url],
.field input[type=tel],
.field input[type=number],
.field input[type=date],
.field input[type=time],
.field input[type=search],
.field textarea,
.field select,
input.input,
textarea.input,
select.input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input[type=color] {
  width: 60px; height: 44px;
  padding: 4px;
  cursor: pointer;
}
.field input[type=file] {
  font-size: 0.9rem;
  color: var(--text-2);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
input.input:focus,
textarea.input:focus,
select.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.field .hint { color: var(--muted); font-size: 0.825rem; margin-top: 0.35rem; }
.field.error input,
.field.error textarea,
.field.error select { border-color: var(--danger); }
.field .error-msg {
  color: var(--danger);
  font-size: 0.825rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.field.inline-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.field.inline-check label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}
.field.inline-check input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Row layout: stacks on mobile, side-by-side on tablet+ */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}
@media (min-width: 600px) {
  .row { grid-template-columns: repeat(2, 1fr); }
  .row.row-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Alerts ---------- */

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.925rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  border: 1px solid;
}
.alert-error   { background: var(--danger-bg);  color: #991b1b; border-color: rgba(220,38,38,0.18); }
.alert-success { background: var(--success-bg); color: #166534; border-color: rgba(21,128,61,0.18); }
.alert-info    { background: var(--info-bg);    color: #1e3a8a; border-color: rgba(30,64,175,0.18); }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: rgba(180,83,9,0.18); }

/* ---------- Pills / badges ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--bg);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.pill-success { background: var(--success-bg); color: var(--success); border-color: rgba(21,128,61,0.2); }
.pill-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(220,38,38,0.2); }
.pill-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(180,83,9,0.2); }
.pill-info    { background: var(--info-bg);    color: var(--info);    border-color: rgba(30,64,175,0.2); }
.pill-muted   { background: var(--bg);         color: var(--muted);   border-color: var(--border); }

/* ---------- Stats grid ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.stat .stat-num {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat .stat-label {
  color: var(--muted);
  font-size: 0.825rem;
  font-weight: 500;
  margin-top: 0.25rem;
}
.stat a { color: var(--primary); font-weight: 500; }

/* Features grid on marketing/landing */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 3rem;
}
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.feature h3 { margin-top: 0; }
.feature p { color: var(--muted); margin: 0; font-size: 0.925rem; }

/* ---------- Hero ---------- */

.hero {
  padding: 2rem 0 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 1.875rem;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 0.75rem;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
@media (min-width: 720px) {
  .hero { padding: 4rem 0 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
  .hero p { font-size: 1.15rem; }
}

/* ---------- Tables / responsive lists ---------- */

.tbl-wrap {
  /* The card wrapping a table is borderless on mobile so cards aren't doubly bordered */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}
table.tbl thead tr {
  background: var(--surface-2);
  text-align: left;
}
table.tbl th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
table.tbl tbody tr { border-top: 1px solid var(--border); }
table.tbl tbody tr:first-child { border-top: none; }
table.tbl td {
  padding: 0.85rem 1rem;
  color: var(--text);
  vertical-align: top;
}
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl a { font-weight: 500; }
table.tbl .num { font-variant-numeric: tabular-nums; text-align: right; }
table.tbl .actions { text-align: right; white-space: nowrap; }

/* Mobile: tables become card stacks. Each row is its own card; each cell
 * pulls its label from data-label and stacks vertically. */
@media (max-width: 719px) {
  .tbl-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  table.tbl { display: block; }
  table.tbl thead { display: none; }
  table.tbl tbody { display: block; }
  table.tbl tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
  }
  table.tbl tr:hover { background: var(--surface); }
  table.tbl td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.4rem 0;
    border: none;
  }
  table.tbl td:before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
    padding-top: 2px;
  }
  table.tbl td.actions {
    text-align: left;
    border-top: 1px dashed var(--border);
    margin-top: 0.5rem;
    padding-top: 0.6rem;
  }
  table.tbl td.actions:before { content: ''; }
  table.tbl .num { text-align: left; }
  table.tbl td[data-label=""]:before { content: ''; }
  /* hide cells flagged as desktop-only */
  table.tbl td.hide-mobile { display: none; }
}

/* Optional empty-state */
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.empty-state p { margin: 0; }

/* ---------- Tabs (used on tickets list) ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tab {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 36px;
  transition: all 0.15s ease;
}
.tab:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.tab.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.825rem;
  margin-top: 3rem;
  text-align: center;
}

/* ---------- Auth pages ---------- */

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.5rem;
  width: 100%;
  max-width: 460px;
}
@media (min-width: 600px) { .auth-card { padding: 2.25rem; } }
.auth-card h1 { margin-bottom: 0.25rem; }
.auth-card .lead { margin-bottom: 1.5rem; }
.auth-meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.url-prefix {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.url-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.url-prefix .prefix {
  padding: 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  align-self: stretch;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.url-prefix input {
  border: none !important;
  box-shadow: none !important;
  min-height: var(--tap);
  flex: 1;
  min-width: 0;
}

/* ---------- Ticket conversation bubbles ---------- */

.bubble {
  border-left: 3px solid var(--primary);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.bubble.internal { border-left-color: var(--warning); background: var(--warning-bg); }
.bubble-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.bubble-body { white-space: pre-wrap; line-height: 1.55; }

/* ---------- Invoice line items (mobile stacked) ---------- */

.line-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-bottom: 0.6rem;
}
.line-row .line-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.line-row .line-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 720px) {
  .line-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .line-row .line-fields {
    grid-template-columns: 1fr 100px 130px;
    align-items: end;
  }
  .line-row .line-total { justify-content: flex-end; gap: 1rem; }
}

.totals {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
}
.totals .totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.totals .totals-row.grand { font-size: 1.2rem; font-weight: 700; }

/* ---------- Misc helpers ---------- */

.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.full-width { width: 100%; }
.tabular { font-variant-numeric: tabular-nums; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
