/* ==========================================================================
   Syndicate Business Center — design system
   Dark · premium · industrial. Red is reserved for warnings, critical
   alerts, primary actions and active states.
   ========================================================================== */

:root {
  --bg: #08090B;
  --bg-2: #0C0D10;
  --card: #111318;
  --card-2: #15171D;
  --card-3: #1A1D24;
  --border: #252830;
  --border-2: #30343E;
  --red: #C62828;
  --red-bright: #E53935;
  --red-soft: rgba(229, 57, 53, .12);
  --red-line: rgba(229, 57, 53, .35);
  --text: #F5F5F5;
  --text-2: #9CA3AF;
  --text-3: #6B7280;
  --green: #22C55E;
  --green-soft: rgba(34, 197, 94, .12);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, .12);
  --blue: #60A5FA;
  --blue-soft: rgba(96, 165, 250, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(198, 40, 40, .10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 var(--font);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
h4 { font-size: 14px; }
p { margin: 0 0 .75em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
code, kbd { font-family: var(--mono); font-size: 12px; }
img { max-width: 100%; }
::selection { background: var(--red); color: #fff; }

.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.icon-xs { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

.text-muted { color: var(--text-2); }
.text-dim { color: var(--text-3); }
.text-danger { color: var(--red-bright); }
.text-success { color: var(--green); }
.text-warning { color: var(--amber); }
.text-info { color: var(--blue); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; justify-content: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.hidden, [hidden] { display: none !important; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- App shell ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0B0C0F, #09090C);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid var(--border); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff;
  background: linear-gradient(145deg, var(--red-bright), #7f1414);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 8px 22px rgba(198,40,40,.35);
}
.brand-mark.lg { width: 48px; height: 48px; font-size: 22px; }
.brand { justify-content: center; }
.brand-logo-full { display: block; width: 150px; height: auto; }
.brand-logo-mark { display: none; width: 36px; height: 36px; object-fit: contain; }
.brand-text strong { display: block; font-size: 15px; letter-spacing: .14em; }
.brand-text small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--text-2); }
.nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.nav-group { margin-top: 10px; }
.nav-group-title { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); padding: 6px 10px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: #B8BDC8; font-size: 13.5px; position: relative; transition: background .15s, color .15s;
}
.nav-link:hover { background: #15171C; color: #fff; }
.nav-link.active { background: linear-gradient(90deg, rgba(198,40,40,.18), rgba(198,40,40,.04)); color: #fff; }
.nav-link.active::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red-bright); }
.nav-link.active .icon { color: var(--red-bright); }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count { min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.sidebar-foot { border-top: 1px solid var(--border); padding: 12px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--radius-sm); }
.sidebar-user:hover { background: #15171C; }
.sidebar-user strong { display: block; font-size: 13px; }
.sidebar-user small { color: var(--text-2); font-size: 11px; }
.sidebar-backdrop { display: none; }

.main { margin-left: var(--sidebar-w); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: rgba(8, 9, 11, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: #fff; }
.crumbs > span:last-child { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumb-sep { color: var(--text-3); }
.global-search { position: relative; margin-left: auto; width: min(420px, 38vw); }
.global-search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; }
.global-search input { width: 100%; height: 38px; padding: 0 40px 0 36px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); outline: none; font: inherit; }
.global-search input:focus { border-color: var(--border-2); box-shadow: 0 0 0 3px rgba(229,57,53,.12); }
.global-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; z-index: 50; }
.search-group { padding: 6px 0; border-bottom: 1px solid var(--border); }
.search-group:last-child { border-bottom: 0; }
.search-group-title { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); padding: 4px 14px; }
.search-item { display: flex; gap: 10px; align-items: center; padding: 8px 14px; }
.search-item:hover, .search-item.focused { background: var(--card-3); }
.search-item small { display: block; color: var(--text-2); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--border-2); background: var(--card-2); }
.dot-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red-bright); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.user-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font: inherit; }
.content { padding: 24px; max-width: 1600px; }
.only-mobile { display: none !important; }
.only-mobile-inline { display: none; }

/* ---------- Dropdowns ---------- */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60; }
.dropdown.open .dropdown-menu { display: block; animation: pop .14s ease-out; }
.dropdown-wide { width: 380px; padding: 0; }
.dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.dropdown-body { max-height: 380px; overflow: auto; }
.dropdown-foot { display: block; text-align: center; padding: 10px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.dropdown-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dropdown-item:hover { background: var(--card-3); }
.notif-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-item:hover { background: var(--card-2); }
.notif-item.unread { background: rgba(229,57,53,.05); }
.notif-item.unread .notif-title::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--red-bright); vertical-align: middle; }
.notif-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.notif-title { font-weight: 600; font-size: 13px; }
.notif-msg { font-size: 12px; color: var(--text-2); }
.notif-time { font-size: 11px; color: var(--text-3); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--card-2); color: var(--text); font: 600 13px var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--card-3); border-color: #3a3f4a; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(180deg, var(--red-bright), var(--red)); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(198,40,40,.25); }
.btn-primary:hover { background: linear-gradient(180deg, #ef4b47, #d32f2f); border-color: var(--red-bright); }
.btn-danger { background: var(--red-soft); border-color: var(--red-line); color: #ff8a86; }
.btn-danger:hover { background: rgba(229,57,53,.2); color: #fff; }
.btn-success { background: var(--green-soft); border-color: rgba(34,197,94,.35); color: #4ade80; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--card-2); border-color: var(--border); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; padding: 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--red-bright); cursor: pointer; font: 600 12px var(--font); padding: 0; }
.link-strong { font-weight: 600; color: #fff; }
.link-strong:hover { color: var(--red-bright); }

/* ---------- Cards ---------- */
.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head h3 .icon { color: var(--text-2); }
.card-body { padding: 16px 18px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); }
.card.critical { border-color: var(--red-line); box-shadow: 0 0 0 1px rgba(229,57,53,.15), 0 10px 30px rgba(198,40,40,.08); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }

.stat-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, transform .15s; min-width: 0; }
a.stat-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--card-3); color: var(--text-2); flex: none; }
.stat-body { min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.stat-hint { font-size: 11px; color: var(--text-3); }
.tone-danger .stat-icon { background: var(--red-soft); color: var(--red-bright); }
.tone-danger .stat-value { color: #ff6b66; }
.tone-danger { border-color: rgba(229,57,53,.28); }
.tone-warning .stat-icon { background: var(--amber-soft); color: var(--amber); }
.tone-success .stat-icon { background: var(--green-soft); color: var(--green); }
.tone-info .stat-icon { background: var(--blue-soft); color: var(--blue); }
.tone-muted .stat-value { color: var(--text-2); }

/* ---------- Badges, counters, progress ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.badge-success { color: #4ade80; background: var(--green-soft); border-color: rgba(34,197,94,.25); }
.badge-warning { color: #fbbf24; background: var(--amber-soft); border-color: rgba(245,158,11,.25); }
.badge-danger { color: #ff7b77; background: var(--red-soft); border-color: var(--red-line); }
.badge-info { color: #93c5fd; background: var(--blue-soft); border-color: rgba(96,165,250,.25); }
.badge-muted { color: var(--text-2); background: #1b1e25; border-color: var(--border); }
.badge-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.45); } 50% { box-shadow: 0 0 0 5px rgba(229,57,53,0); } }
.counter { font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.counter-success { color: #4ade80; background: var(--green-soft); }
.counter-warning { color: #fbbf24; background: var(--amber-soft); }
.counter-danger { color: #ff7b77; background: var(--red-soft); }
.counter-info { color: #93c5fd; background: var(--blue-soft); }
.counter-muted { color: var(--text-2); background: #1b1e25; }
.progress-wrap { display: flex; align-items: center; gap: 10px; min-width: 110px; }
.progress { flex: 1; height: 6px; border-radius: 99px; background: #23262E; overflow: hidden; }
.progress-bar { display: block; height: 100%; border-radius: inherit; transition: width .5s ease; }
.progress-label { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text-2); min-width: 40px; text-align: right; }
.bg-success { background: linear-gradient(90deg, #16a34a, #22c55e); }
.bg-warning { background: linear-gradient(90deg, #d97706, #f59e0b); }
.bg-danger { background: linear-gradient(90deg, var(--red), var(--red-bright)); }
.bg-info { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bg-muted { background: #4b5563; }
.pips { display: inline-flex; gap: 4px; }
.pip { width: 10px; height: 10px; border-radius: 3px; background: #262a33; border: 1px solid #30343e; }
.pip.on { background: var(--red-bright); border-color: var(--red-bright); box-shadow: 0 0 8px rgba(229,57,53,.5); }

/* ---------- Alerts & toasts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); margin-bottom: 14px; }
.alert > span { flex: 1; }
.alert-success { border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.07); }
.alert-success > .icon { color: var(--green); }
.alert-error, .alert-danger { border-color: var(--red-line); background: var(--red-soft); }
.alert-error > .icon, .alert-danger > .icon { color: var(--red-bright); }
.alert-warning { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.07); }
.alert-warning > .icon { color: var(--amber); }
.alert-info { border-color: rgba(96,165,250,.3); background: rgba(96,165,250,.06); }
.alert-info > .icon { color: var(--blue); }
.alert-close { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 0; }
.critical-banner { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--red-line); background: linear-gradient(90deg, rgba(198,40,40,.22), rgba(198,40,40,.05)); margin-bottom: 16px; }
.critical-banner .icon { color: var(--red-bright); width: 26px; height: 26px; }
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red-bright); }
.toast.info { border-left: 3px solid var(--blue); }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-group { margin-bottom: 14px; min-width: 0; }
.form-group > label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.req { color: var(--red-bright); }
.input, select.input, textarea.input {
  width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 10px;
  background: #0D0F13; color: var(--text); border: 1px solid var(--border); outline: none; font: 14px var(--font);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input:focus { border-color: #4b505c; box-shadow: 0 0 0 3px rgba(229,57,53,.14); }
.input.is-invalid, .input:user-invalid { border-color: var(--red-bright); }
.input[readonly] { color: var(--text-2); }
.field-error { color: #ff7b77; font-size: 12px; margin-top: 5px; }
.form-help { color: var(--text-3); font-size: 12px; margin-top: 5px; }
.form-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); margin: 6px 0 12px; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.form-group > label.switch { display: inline-flex; margin: 0; font-size: 14px; font-weight: 400; color: var(--text); }
.switch-track { display: inline-block; width: 38px; height: 22px; border-radius: 99px; background: #2a2e37; position: relative; transition: background .15s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #cfd3db; transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--red); }
.switch input:checked + .switch-track::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(229,57,53,.3); }
.switch-label { font-size: 14px; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 10px; border: 1px solid var(--border); background: #0D0F13; cursor: pointer; font-weight: 600; font-size: 13px; text-align: center; transition: .15s; }
.segmented label .icon { width: 22px; height: 22px; color: var(--text-2); }
.segmented input:checked + label { border-color: var(--red-bright); background: var(--red-soft); color: #fff; }
.segmented input:checked + label .icon { color: var(--red-bright); }
.segmented input:focus-visible + label { box-shadow: 0 0 0 3px rgba(229,57,53,.3); }
.segmented.tone input[value=verified]:checked + label { border-color: var(--green); background: var(--green-soft); }
.segmented.tone input[value=verified]:checked + label .icon { color: var(--green); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-2); color: #fff; font-size: 20px; cursor: pointer; }
.stepper input { text-align: center; font-size: 18px; font-weight: 700; max-width: 90px; }
.file-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border: 1px dashed var(--border-2); border-radius: 10px; color: var(--text-2); text-align: center; cursor: pointer; background: #0D0F13; }
.form-group > label.file-drop { display: flex; margin: 0; font-weight: 400; font-size: 13px; color: var(--text-2); }
.file-drop:hover, .file-drop.drag { border-color: var(--red-bright); color: #fff; }
.file-drop input { display: none; }
.file-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.file-previews figure { margin: 0; width: 72px; font-size: 10px; color: var(--text-2); text-align: center; word-break: break-all; }
.file-previews img, .file-previews .file-ph { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; background: var(--card-2); }

/* ---------- Filters toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); }
.toolbar .input { width: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.toolbar .search-input { flex: 1; min-width: 200px; }
.toolbar .btn { height: 36px; }
.filter-toggle { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font-size: 12px; font-weight: 600; }
.chip:hover { color: #fff; border-color: var(--border-2); }
.chip.active { color: #fff; border-color: var(--red-bright); background: var(--red-soft); }
.chip .chip-n { color: var(--text-3); font-weight: 700; }

/* ---------- Tables (become cards on small screens) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; background: rgba(13,15,19,.6); white-space: nowrap; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.actions { text-align: right; white-space: nowrap; }
.table .sub { display: block; font-size: 12px; color: var(--text-2); }
.table tr.row-critical td:first-child { box-shadow: inset 3px 0 var(--red-bright); }
.table tr.row-muted { opacity: .65; }
.sort-link { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.sort-link.active { color: var(--text); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pagination-info { color: var(--text-2); font-size: 12px; padding: 12px 14px; }
.pagination .pagination-info { padding: 0; }
.pagination-links { display: flex; gap: 4px; }
.page-link { min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-size: 13px; }
.page-link.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-link.disabled { opacity: .35; }
.page-gap { padding: 0 4px; color: var(--text-3); align-self: center; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: rgba(255,255,255,.02); }
.list-item .grow strong { display: block; font-size: 13.5px; }
.list-item .grow small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--card-3); color: var(--text-2); flex: none; }
.list-icon.danger { background: var(--red-soft); color: var(--red-bright); }
.list-icon.warning { background: var(--amber-soft); color: var(--amber); }
.list-icon.success { background: var(--green-soft); color: var(--green); }
.list-icon.info { background: var(--blue-soft); color: var(--blue); }

.task-card { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.task-card:last-child { border-bottom: 0; }
.task-card.done { opacity: .6; }
.task-card .task-main { flex: 1; min-width: 0; }
.task-card .task-main strong { font-size: 14px; }
.task-card .task-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 3px; }
.task-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Avatars ---------- */
.avatar { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(145deg, hsl(var(--hue) 45% 38%), hsl(var(--hue) 40% 24%)); }
.avatar-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: var(--red-bright); }
.tab .tab-n { font-size: 11px; color: var(--text-3); background: var(--card-3); border-radius: 99px; padding: 0 7px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Business hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 20px 22px; margin-bottom: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(600px 200px at 0% 0%, rgba(198,40,40,.14), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); }
.hero-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-title h1 { font-size: 26px; }
.hero-sub { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-2); margin-top: 6px; font-size: 13px; }
.hero-sub span { display: inline-flex; align-items: center; gap: 5px; }
.hero-sub .icon { width: 15px; height: 15px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.metric { padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.metric-label { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 190px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; margin: 0; }
.detail-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); min-width: 0; }
.detail-icon { color: var(--text-3); margin-top: 2px; }
.detail-item dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.detail-item dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 22px; list-style: none; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 16px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--card-3); border: 2px solid var(--border-2); }
.timeline li.t-danger::before { background: var(--red-bright); border-color: var(--red-bright); }
.timeline li.t-success::before { background: var(--green); border-color: var(--green); }
.timeline li.t-info::before { background: var(--blue); border-color: var(--blue); }
.timeline time { font-size: 11px; color: var(--text-3); }

/* ---------- Bonus ---------- */
.bonus-card { padding: 18px; }
.bonus-cond { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bonus-cond:last-of-type { border-bottom: 0; }
.bonus-verdict { margin-top: 14px; padding: 12px; border-radius: 10px; text-align: center; font-weight: 800; letter-spacing: .12em; }
.bonus-verdict.ok { background: var(--green-soft); color: #4ade80; border: 1px solid rgba(34,197,94,.35); }
.bonus-verdict.no { background: var(--red-soft); color: #ff7b77; border: 1px solid var(--red-line); }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; text-align: center; padding: 4px 0; }
.cal-day { min-height: 92px; padding: 6px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); cursor: pointer; text-align: left; color: var(--text); font: inherit; display: flex; flex-direction: column; gap: 4px; }
.cal-day:hover { border-color: var(--border-2); background: var(--card-2); }
.cal-day.other { opacity: .35; }
.cal-day.today { border-color: var(--red-bright); }
.cal-day.selected { background: var(--red-soft); border-color: var(--red-bright); }
.cal-num { font-weight: 700; font-size: 13px; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.cal-tag { font-size: 10px; padding: 1px 6px; border-radius: 99px; font-weight: 700; }
.cal-tag.checks { background: var(--green-soft); color: #4ade80; }
.cal-tag.payments { background: var(--blue-soft); color: #93c5fd; }
.cal-tag.tasks { background: var(--amber-soft); color: #fbbf24; }
.cal-tag.events { background: rgba(167,139,250,.14); color: #c4b5fd; }
.cal-tag.warnings { background: var(--red-soft); color: #ff7b77; }

/* ---------- Charts ---------- */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--text-2); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .bar { transition: opacity .15s; }
.chart .bar:hover { opacity: .8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-tip { position: fixed; pointer-events: none; z-index: 300; background: #000; border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: var(--shadow); }

/* ---------- Modals ---------- */
dialog.modal { padding: 0; border: 0; background: transparent; color: var(--text); max-width: min(640px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
dialog.modal-sm { max-width: min(420px, calc(100vw - 24px)); }
dialog.modal-lg { max-width: min(860px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .16s ease-out; }
.modal-box { background: var(--card); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.modal-close { background: none; border: 0; color: var(--text-2); cursor: pointer; }

/* ---------- Empty & loading ---------- */
.empty-state { text-align: center; padding: 38px 20px; color: var(--text-2); }
.empty-state > .icon { width: 36px; height: 36px; color: var(--text-3); margin-bottom: 10px; }
.empty-state h4 { color: var(--text); margin-bottom: 4px; }
.empty-state p { font-size: 13px; max-width: 420px; margin: 0 auto 12px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--red-bright); animation: spin .7s linear infinite; display: inline-block; }
.loading-row { display: flex; justify-content: center; padding: 22px; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.skeleton { background: linear-gradient(90deg, #15171c 25%, #1d2027 37%, #15171c 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; min-height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Misc pages ---------- */
.error-page { text-align: center; padding: 60px 20px; }
.error-code { font-size: 72px; font-weight: 900; color: var(--red-bright); letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.bare-main { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-shell { width: 100%; max-width: 400px; }
.login-card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.login-brand { display: flex; justify-content: center; margin: 4px 0 24px; }
.login-brand img { width: 200px; height: auto; }
.login-brand strong { display: block; letter-spacing: .16em; }
.login-brand small { display: block; letter-spacing: .22em; font-size: 10px; color: var(--text-2); }
.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-foot { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 16px; }
.rule-card { padding: 16px 18px; display: flex; gap: 14px; }
.rule-num { font-family: var(--mono); font-weight: 800; color: var(--red-bright); font-size: 13px; padding-top: 2px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
pre.json { margin: 0; padding: 10px; background: #0b0c0f; border: 1px solid var(--border); border-radius: 8px; font-size: 11.5px; white-space: pre-wrap; word-break: break-word; max-height: 240px; overflow: auto; color: #cbd5e1; }
.schedule-grid td { vertical-align: top; }
.slot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slot-user { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border-radius: 99px; background: var(--card-3); border: 1px solid var(--border); font-size: 12px; }
.slot-user button { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 0; display: grid; }
.slot-user button:hover { color: var(--red-bright); }
.map-cell { font-size: 12px; }
.bottom-nav { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1400px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet: compact icon sidebar */
@media (max-width: 1100px) {
  :root { --sidebar-w: 72px; }
  .sidebar .nav-label, .sidebar .nav-group-title { display: none; }
  .sidebar .brand { justify-content: center; padding: 16px 0; }
  .sidebar .brand-logo-full { display: none; }
  .sidebar .brand-logo-mark { display: block; }
  .nav-link { justify-content: center; padding: 10px; }
  .nav-count { position: absolute; top: 2px; right: 4px; min-width: 16px; padding: 0 4px; font-size: 10px; }
  .nav-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
  .nav-group:first-child { border-top: 0; }
  .sidebar-user { justify-content: center; }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .global-search { width: min(340px, 40vw); }
}

/* Mobile: off-canvas navigation, bottom bar, cards instead of tables */
@media (max-width: 760px) {
  :root { --sidebar-w: 280px; --topbar-h: 56px; }
  body { font-size: 14px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .sidebar .nav-label, .sidebar .nav-group-title { display: block; }
  .sidebar .brand { justify-content: center; padding: 18px; }
  .sidebar .brand-logo-full { display: block; }
  .sidebar .brand-logo-mark { display: none; }
  .nav-link { justify-content: flex-start; padding: 10px; font-size: 15px; }
  .nav-count { position: static; }
  .nav-group { border-top: 0; }
  .sidebar-user { justify-content: flex-start; }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 0 12px; gap: 8px; }
  .global-search, .hide-mobile { display: none !important; }
  .only-mobile { display: inline-grid !important; }
  .only-mobile-inline { display: inline; }
  .topbar-actions { margin-left: auto; }
  .crumbs > a, .crumbs > .crumb-sep { display: none; }
  .crumbs > *:last-child { display: inline; }
  .content { padding: 14px 12px 20px; }
  .page-head { margin-bottom: 14px; align-items: stretch; }
  .page-head h1 { font-size: 20px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-icon { width: 32px; height: 32px; }
  .stat-value { font-size: 20px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .input, select.input { font-size: 16px; min-height: 44px; } /* prevents iOS zoom */
  .btn { height: 42px; }
  .btn-sm { height: 34px; }
  .hero { padding: 16px; }
  .hero-title h1 { font-size: 21px; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1 1 calc(50% - 8px); }
  .dropdown-wide { width: calc(100vw - 24px); right: -50px; }
  .toolbar { padding: 10px; }
  .toolbar .search-input { min-width: 100%; }
  .filter-toggle { display: inline-flex; }
  .toolbar.collapsible .filter-extra { display: none; }
  .toolbar.collapsible.open .filter-extra { display: block; width: calc(50% - 4px); }
  .toolbar .input { width: 100%; }

  /* Responsive tables: each row becomes a card, cells show their column label */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { margin: 10px; width: auto; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card-2); }
  .table-cards tbody tr:hover { background: var(--card-2); }
  .table-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .table-cards td::before { content: attr(data-label); color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; text-align: left; flex: none; padding-top: 2px; }
  .table-cards td[data-label=""]::before, .table-cards td:not([data-label])::before { content: none; }
  .table-cards td.primary { display: block; text-align: left; font-size: 15px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
  .table-cards td.primary::before { content: none; }
  .table-cards td.actions { justify-content: flex-end; padding-top: 10px; }
  .table-cards td .progress-wrap { min-width: 140px; }
  .table-cards tr.row-critical { border-color: var(--red-line); }
  .table-cards tr.row-critical td:first-child { box-shadow: none; }
  .table-cards td.hide-card { display: none; }

  .cal { gap: 3px; }
  .cal-day { min-height: 54px; padding: 4px; }
  .cal-tag { font-size: 0; width: 7px; height: 7px; padding: 0; }
  .cal-dow { font-size: 10px; }
  .task-card { flex-wrap: wrap; padding: 14px; }
  .task-actions { width: 100%; }
  .task-actions .btn { flex: 1; }
  .toast-stack { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }

  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(12,13,16,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
  .bottom-nav a, .bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--text-2); font: 600 10.5px var(--font); background: none; border: 0; cursor: pointer; }
  .bottom-nav .icon { width: 21px; height: 21px; }
  .bottom-nav .active { color: #fff; }
  .bottom-nav .active .icon { color: var(--red-bright); }
  .bottom-nav .bn-primary .icon { width: 44px; height: 44px; padding: 11px; margin-top: -20px; border-radius: 14px; color: #fff; background: linear-gradient(180deg, var(--red-bright), var(--red)); box-shadow: 0 8px 18px rgba(198,40,40,.4); }
  .bn-count { position: absolute; top: 0; left: 55%; min-width: 16px; height: 16px; border-radius: 99px; background: var(--red-bright); color: #fff; font-size: 9.5px; font-style: normal; display: grid; place-items: center; padding: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sidebar, .topbar, .bottom-nav, .page-actions, .toolbar, .btn { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; color: #000; }
}
