/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; line-height: 1; white-space: nowrap; text-decoration: none !important;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
  background: var(--navy); color: #fff; user-select: none;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(245, 124, 0, .4); outline-offset: 2px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--bg); border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: rgba(11, 31, 58, .06); }
.btn-danger { background: #fff; color: var(--red); border-color: #F5C2C2; }
.btn-danger:hover { background: var(--red-light); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #128a3e; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0c8679; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: #6a2ed6; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; border: 0; background: transparent; color: inherit; position: relative; transition: background var(--t);
}
.icon-btn:hover { background: rgba(11, 31, 58, .07); }
.count-dot {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Badges, chips, pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  line-height: 1.4; white-space: nowrap; background: #EEF2F7; color: var(--ink);
}
.badge .i { width: 13px; height: 13px; }
.badge-orange { background: var(--orange-light); color: #B45309; }
.badge-teal { background: var(--teal-light); color: #0B7A6F; }
.badge-blue { background: var(--blue-light); color: #1D4ED8; }
.badge-purple { background: var(--purple-light); color: #6D28D9; }
.badge-green { background: var(--green-light); color: #15803D; }
.badge-red { background: var(--red-light); color: #B91C1C; }
.badge-amber { background: var(--amber-light); color: #B45309; }
.badge-navy { background: var(--navy); color: #fff; }
.badge-outline { background: #fff; border: 1px solid var(--line-2); color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: all var(--t);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .x { opacity: .7; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-green { background: var(--green-light); color: #15803D; }
.st-blue { background: var(--blue-light); color: #1D4ED8; }
.st-amber { background: var(--amber-light); color: #B45309; }
.st-red { background: var(--red-light); color: #B91C1C; }
.st-grey { background: #EEF2F7; color: var(--muted); }
.st-purple { background: var(--purple-light); color: #6D28D9; }
.st-teal { background: var(--teal-light); color: #0B7A6F; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); }
.card-hover { transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; }
.alert .i { margin-top: 1px; }
.alert-info { background: var(--blue-light); border-color: #C7DAFC; color: #1E3A8A; }
.alert-warn { background: var(--amber-light); border-color: #F6D8A8; color: #7C4A03; }
.alert-ok { background: var(--green-light); border-color: #BFE7CD; color: #14532D; }
.alert-err { background: var(--red-light); border-color: #F5C2C2; color: #7F1D1D; }
.alert-ai { background: var(--teal-light); border-color: #B5E3DD; color: #0B5A52; }
.alert-p4 { background: var(--purple-light); border-color: #DCCBFB; color: #4C1D95; }
.alert strong { font-weight: 700; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--red); font-weight: 500; }
.input, select.input, textarea.input {
  height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.input-sm { height: 34px; font-size: 13.5px; }
.radio-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  cursor: pointer; background: #fff; transition: border-color var(--t), background var(--t); margin-bottom: 10px;
}
.radio-card:hover { border-color: var(--navy); }
.radio-card.selected { border-color: var(--orange); background: var(--orange-light); }
.radio-card input { margin-top: 3px; accent-color: var(--orange); }
.radio-card .rc-title { font-weight: 650; color: var(--navy); }
.radio-card .rc-sub { font-size: 13px; color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--orange); width: 16px; height: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; padding: 3px 0; }
.check .cnt { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.check.disabled { opacity: .4; }

/* Toggle switch */
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background var(--t); cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--t); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }

/* Qty stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button { width: 36px; height: 40px; border: 0; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--bg); }
.qty input { width: 48px; height: 40px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { height: 32px; width: 30px; } .qty-sm input { height: 32px; width: 40px; }

/* ---------- Tables ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-wrap.tall { max-height: 520px; }
.table { font-size: 14px; }
.table th {
  position: sticky; top: 0; z-index: 1; background: #F1F5F9; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--navy); }
.table td a[href^="#/order/"], .table td b:first-child:last-child { white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t); }
.table tbody tr:hover { background: #FAFBFD; }
.table tr.clickable { cursor: pointer; }
.table tr.row-hl { background: var(--amber-light) !important; }
.table tr.row-err { background: var(--red-light) !important; }
.table tr.row-ok { background: var(--green-light) !important; }
.table tfoot td { font-weight: 700; background: #F8FAFC; border-top: 1px solid var(--line); }
.table .strike { text-decoration: line-through; color: var(--muted); }
.table-compact td { padding: 8px 12px; }

/* ---------- Stat tiles ---------- */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat .s-label { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .s-value { font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .s-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat .s-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.ico-orange { background: var(--orange-light); color: var(--orange); }
.ico-teal { background: var(--teal-light); color: var(--teal); }
.ico-blue { background: var(--blue-light); color: var(--blue); }
.ico-purple { background: var(--purple-light); color: var(--purple); }
.ico-green { background: var(--green-light); color: var(--green); }
.ico-red { background: var(--red-light); color: var(--red); }
.ico-amber { background: var(--amber-light); color: var(--amber); }
.ico-navy { background: #E7ECF3; color: var(--navy); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 11px 14px; border: 0; background: none; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent;
  margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; transition: color var(--t), border-color var(--t);
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--orange); }
.tab .badge { font-size: 11px; padding: 1px 7px; }
.seg { display: inline-flex; background: #EEF2F7; padding: 3px; border-radius: 10px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 0; margin-bottom: 26px; overflow-x: auto; padding-bottom: 4px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 120px; position: relative; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.step:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--line); margin: 0 10px; min-width: 16px; }
.step .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 13px; background: #fff; flex-shrink: 0; transition: all var(--t); }
.step.active { color: var(--navy); }
.step.active .dot { border-color: var(--orange); background: var(--orange); color: #fff; animation: pulse 2s infinite; }
.step.done { color: var(--navy); }
.step.done .dot { border-color: var(--green); background: var(--green); color: #fff; }
.step.done:not(:last-child)::after { background: var(--green); }
.step-label { white-space: nowrap; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 31, 58, .5); z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fadeIn 160ms ease both; backdrop-filter: blur(2px);
}
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: modalIn 200ms ease both; }
.modal.wide { max-width: 820px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px; overflow: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Side drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(11, 31, 58, .45); z-index: 900; animation: fadeIn 160ms ease both; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 901; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: drawerIn 220ms ease both; }
.drawer.left { left: 0; right: auto; animation-name: drawerInL; }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerInL { from { transform: translateX(-100%); } to { transform: none; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(560px, calc(100vw - 32px)); }
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn 220ms ease both; width: 100%;
}
.toast.out { animation: toastOut 200ms ease both; }
.toast .i { flex-shrink: 0; margin-top: 1px; }
.toast.ok .i { color: #4ADE80; } .toast.warn .i { color: #FBBF24; } .toast.err .i { color: #F87171; } .toast.info .i { color: #93C5FD; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Progress ---------- */
.progress { height: 8px; background: #E9EEF5; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width 300ms ease; }
.conf { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.conf .progress { flex: 1; height: 6px; }
.conf b { font-size: 12.5px; font-variant-numeric: tabular-nums; width: 34px; text-align: right; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 42px; opacity: .45; transition: opacity 300ms ease; }
.timeline li::before { content: ''; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li .t-dot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all 300ms ease; }
.timeline li.on { opacity: 1; }
.timeline li.on .t-dot { background: var(--purple); border-color: var(--purple); color: #fff; }
.timeline li.on::before { background: var(--purple); }
.timeline li.wait .t-dot { background: var(--amber); border-color: var(--amber); color: #fff; }
.timeline li.wait { opacity: 1; }
.timeline li.future .t-dot { border-style: dashed; }
.timeline .t-title { font-weight: 650; color: var(--navy); padding-top: 4px; }
.timeline .t-sub { font-size: 13px; color: var(--muted); }
.timeline .t-sub code { font-size: 12px; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; background: #F1F5F9; padding: 1px 6px; border-radius: 5px; color: var(--navy-2); }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs .i { width: 14px; height: 14px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .e-ico { width: 64px; height: 64px; border-radius: 50%; background: #EEF2F7; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--navy); }
.empty h3 { margin-bottom: 6px; }

/* ---------- Price block ---------- */
.price-block { display: flex; flex-direction: column; gap: 4px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--navy); font-size: 18px; letter-spacing: -.01em; }
.price-lg .price { font-size: 30px; }
.price-was { font-size: 13px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-vat { font-size: 12px; color: var(--muted); }
.pbadge { position: relative; cursor: help; align-self: flex-start; }
.pbadge[data-tip]:hover::after, .tip[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 260px; white-space: normal;
  background: var(--navy); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; line-height: 1.4; z-index: 50; box-shadow: var(--shadow);
}
.tip { position: relative; cursor: help; }
.src-contract { background: var(--purple-light); color: #6D28D9; }
.src-discount { background: var(--teal-light); color: #0B7A6F; }
.src-school { background: #FEF6D8; color: #8A6500; }
.src-list { background: #EEF2F7; color: var(--muted); }
.src-quote { background: var(--orange-light); color: #B45309; }

/* ---------- Product tiles & cards ---------- */
.ptile { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ptile svg.sil { width: 58%; height: 58%; filter: drop-shadow(0 6px 10px rgba(11, 31, 58, .12)); }
.ptile .pt-brand { position: absolute; left: 10px; bottom: 9px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(11, 31, 58, .55); }
.ptile .pt-flag { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--t), transform var(--t), border-color var(--t); color: inherit; text-decoration: none !important; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.pcard .ptile { border-radius: 0; }
.pcard-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .p-brand { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pcard .p-name { font-weight: 650; color: var(--navy); font-size: 14.5px; line-height: 1.35; }
.pcard .p-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .p-swatches { display: flex; gap: 4px; }
.pcard .price-block { margin-top: auto; padding-top: 6px; }
.pcard.disabled { opacity: .55; }
.plist .pcard { flex-direction: row; }
.plist .pcard .ptile { width: 150px; flex-shrink: 0; aspect-ratio: auto; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); display: inline-block; }
.swatch-lg { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow var(--t); }
.swatch-lg.active { box-shadow: 0 0 0 2px var(--orange); }
.size-btn { min-width: 48px; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-weight: 600; font-size: 13.5px; transition: all var(--t); }
.size-btn:hover { border-color: var(--navy); }
.size-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Dropdown ---------- */
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 600; display: none; color: var(--ink);
}
.dd.open .dd-menu { display: block; animation: fadeIn 140ms ease both; }
.dd-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; }
.dd-item:hover { background: var(--bg); }
.dd-item.active { background: var(--orange-light); }
.dd-item .di-title { font-weight: 650; color: var(--navy); font-size: 14px; }
.dd-item .di-sub { font-size: 12px; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; color: #fff; flex-shrink: 0; }

/* ---------- Charts ---------- */
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .bar { transition: opacity var(--t); }
.chart .bar:hover { opacity: .8; }
.chart text { font-family: var(--font); }
.hbar-row { display: grid; grid-template-columns: 120px 1fr 90px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; transition: background var(--t); }
.hbar-row:hover { background: var(--bg); }
.hbar-row.active { background: var(--orange-light); }
.hbar-row .hb-label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.hbar-row .hb-track { height: 14px; background: #EEF2F7; border-radius: 4px; overflow: hidden; }
.hbar-row .hb-fill { height: 100%; background: var(--navy); border-radius: 4px; transition: width 400ms ease; }
.hbar-row .hb-val { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Kbd & misc ---------- */
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--navy); }
.divider-v { width: 1px; align-self: stretch; background: var(--line); }
.dot-sep::before { content: '·'; margin: 0 6px; color: var(--line-2); }
.lock { display: inline-flex; align-items: center; gap: 4px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
.spinner.dark { border-color: var(--line-2); border-top-color: var(--navy); }
.kicker-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.list-check li .i { color: var(--green); margin-top: 2px; }
