/* ==========================================================================
   LH Enterprise OS — Componentes
   ========================================================================== */

.ico { flex-shrink: 0; }

/* --- GRID --- */
.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-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- CARD --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 1rem; color: var(--text); }
.card h3 { font-size: 1rem; }
.card-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; }
.card-note { margin-top: 14px; color: var(--text-muted); font-size: 0.82rem; }
.card .grid { margin-top: 2px; }

/* --- STAT CARD (KPI) --- */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.stat-card--accent { border-top: 3px solid var(--orange); }
.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.3; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.stat-hint { font-size: 0.74rem; color: var(--text-soft); }
.mini-stats { margin-bottom: 14px; }
.mini-stats .stat-card { padding: 12px; }
.mini-stats .stat-value { font-size: 1.25rem; }

.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 0.76rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.trend--up { color: var(--green); background: var(--green-soft); }
.trend--down { color: var(--red); background: var(--red-soft); }
.trend--flat { color: var(--text-muted); background: var(--surface-3); }

/* --- KPI secundarios (desplegable) --- */
.kpi-more { border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.kpi-more > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-weight: 700; color: var(--text); font-size: 0.9rem;
}
.kpi-more > summary::-webkit-details-marker { display: none; }
.kpi-more > summary .ico { transition: transform 0.2s ease; color: var(--text-muted); }
.kpi-more[open] > summary .ico { transform: rotate(180deg); }
.kpi-more-grid { padding: 0 16px 16px; }

/* --- BADGES --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { background: var(--green-soft); color: var(--green); }
.badge--info { background: var(--blue-soft); color: var(--blue); }
.badge--progress { background: var(--orange-soft); color: var(--orange-strong); }
.badge--warning { background: var(--yellow-soft); color: var(--yellow); }
.badge--danger { background: var(--red-soft); color: var(--red); }
.badge--neutral { background: var(--surface-3); color: var(--text-muted); }

/* --- TABLE --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th {
  text-align: left; padding: 12px 14px;
  background: var(--surface-2); color: var(--text-muted);
  font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700;
  border-bottom: 1px solid var(--border); position: sticky; top: 0;
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
.table--dense tbody td, .table--dense thead th { padding: 9px 12px; font-size: 0.82rem; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.table-empty { text-align: center; color: var(--text-muted); padding: 26px; }
.row-clickable { cursor: pointer; }
.row-clickable:hover { background: var(--orange-soft); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 9px 14px; cursor: pointer; font-weight: 700; font-size: 0.85rem;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 6px 10px; font-size: 0.8rem; border-radius: 8px; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 87, 34, 0.22); }
.btn--primary:hover { background: var(--orange-strong); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-3); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* --- DROPDOWNS --- */
.dropdown { position: relative; }
.dropdown-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px 10px; cursor: pointer; color: var(--text); font-size: 0.85rem;
}
.dropdown-trigger:hover { background: var(--surface-2); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 260px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.menu-panel--sm { min-width: 220px; }
.menu-panel--notif { min-width: 320px; }
.menu-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.menu-head strong { font-size: 0.92rem; }
.menu-head span { font-size: 0.78rem; color: var(--text-muted); }
.menu-head--row { flex-direction: row; align-items: center; justify-content: space-between; }
.menu-caption { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); padding: 8px 10px 4px; font-weight: 700; }
.menu-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; color: var(--text);
  padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 0.86rem; text-align: left;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item.is-active { background: var(--orange-soft); color: var(--orange-strong); }
.menu-item--danger { color: var(--red); }
.menu-item--danger:hover { background: var(--red-soft); }
.menu-item--center { justify-content: center; color: var(--text-muted); font-weight: 700; }
.menu-item-main { display: flex; flex-direction: column; gap: 1px; margin-right: auto; }
.menu-item-main strong { font-size: 0.86rem; }
.menu-item-main small { font-size: 0.74rem; color: var(--text-muted); }
.tag-soon { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); background: var(--surface-3); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }
.tag-soft { font-size: 0.72rem; color: var(--orange-strong); background: var(--orange-soft); padding: 3px 9px; border-radius: 999px; font-weight: 700; }

/* Company / branch / user triggers */
.company-trigger { padding: 6px 12px; }
.company-ico { display: inline-flex; color: var(--orange); }
.company-logo { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.company-menu-head { flex-direction: row; align-items: center; gap: 10px; }
.company-card-logo { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.company-card-text { display: flex; flex-direction: column; gap: 2px; }
.company-card-text > span { color: var(--text-muted); font-size: .78rem; }
.company-option-logo { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.company-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.company-eyebrow { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); font-weight: 700; }
.company-name { font-size: 0.9rem; font-weight: 800; color: var(--text); }
.branch-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.branch-eyebrow { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); font-weight: 700; }
.branch-name { font-size: 0.84rem; font-weight: 700; }
.user-dd { margin-left: auto; }
.user-trigger { padding: 5px 10px 5px 6px; max-width: min(320px, 34vw); }
.user-dd .dropdown-menu { right: 0; max-width: min(320px, calc(100vw - 24px)); }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: #fff;
  font-size: 0.78rem; font-weight: 800;
}
.user-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; min-width: 0; }
.user-name, .user-role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-name { font-size: 0.85rem; font-weight: 700; }
.user-role { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.03em; }

/* Tenant facts */
.tenant-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 6px 10px 4px; }
.tenant-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.8rem; }
.tenant-facts span { color: var(--text-muted); }
.tenant-facts b { color: var(--text); font-weight: 700; }
.tenant-facts .ok { color: var(--green); }
.tenant-facts .warn { color: var(--yellow); }
.tenant-facts .muted { color: var(--text-soft); font-weight: 600; }
.tenant-facts--page { grid-template-columns: repeat(3, 1fr); gap: 12px 18px; padding: 4px 0; }
.tenant-facts--page > div { flex-direction: column; align-items: flex-start; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }

/* Notifications */
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 0.62rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
}
.notif-list { list-style: none; margin: 0; padding: 4px; display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 9px 8px; border-radius: 8px; }
.notif-item:hover { background: var(--surface-2); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--text-soft); }
.notif--success .notif-dot { background: var(--green); }
.notif--info .notif-dot { background: var(--blue); }
.notif--danger .notif-dot { background: var(--red); }
.notif-body { display: flex; flex-direction: column; gap: 1px; }
.notif-body strong { font-size: 0.84rem; }
.notif-body span { font-size: 0.78rem; color: var(--text-muted); }
.notif-body small { font-size: 0.7rem; color: var(--text-soft); }

/* --- CHARTS --- */
.chartbox { display: flex; flex-direction: column; gap: 8px; }
.svg-chart { width: 100%; height: 150px; display: block; }
.chart-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-hit { fill: transparent; cursor: pointer; }
.chart-hit:hover { fill: var(--orange-soft); }
.chart-dot { fill: var(--surface); stroke: var(--orange); stroke-width: 2; }
.chart-bar-svg { transition: opacity 0.15s ease; }
.chart-bar-svg:hover { opacity: 0.82; }
.chart-xlabels { display: flex; justify-content: space-between; gap: 6px; }
.chart-xlabels span { font-size: 0.72rem; color: var(--text-muted); flex: 1; text-align: center; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }
.legend-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-seg { transition: stroke-width 0.15s ease; }
.donut-seg:hover { stroke-width: 7; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font-size: 1.2rem; font-weight: 800; }
.donut-center span { font-size: 0.72rem; color: var(--text-muted); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 140px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-legend .lg-label { color: var(--text-muted); }
.donut-legend .lg-value { margin-left: auto; font-weight: 700; color: var(--text); }

/* --- FILTER BAR --- */
.filter-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.input {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; font-family: inherit; min-width: 150px;
}
.input:hover { border-color: var(--border-strong); }
.field--search .input { min-width: 220px; border: 0; background: transparent; padding: 0; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px 12px; color: var(--text-muted); }
.search-box:focus-within { border-color: var(--orange); box-shadow: var(--ring); }
.result-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }

/* --- PAGER --- */
.pager { display: flex; gap: 6px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.pager-btn {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 0.84rem; font-weight: 700;
}
.pager-btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-strong); }
.pager-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- MODAL --- */
.overlay-root { position: fixed; inset: 0; z-index: 200; display: none; }
.overlay-root.active { display: block; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(11, 21, 38, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade 0.16s ease;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  width: min(760px, 96vw); max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column; animation: pop 0.18s ease;
}
.modal--side { width: min(520px, 96vw); max-height: 94vh; margin-left: auto; border-radius: var(--radius-xl); animation: slideIn 0.2s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 1.05rem; }
.modal-body { padding: 18px; overflow-y: auto; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

/* --- SHIPMENT DETAIL --- */
.shipment-detail { display: flex; flex-direction: column; gap: 14px; }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.detail-code { font-size: 1.15rem; font-weight: 800; margin-right: 8px; }
.detail-created { font-size: 0.8rem; color: var(--text-muted); margin-left: 8px; }
.tag-express { font-size: 0.68rem; font-weight: 800; color: #fff; background: var(--orange); padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-express--sm { font-size: 0.6rem; padding: 1px 6px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-grid--3 { grid-template-columns: repeat(3, 1fr); }
.detail-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.detail-card--wide { grid-column: 1 / -1; }

.operation-detail { display: flex; flex-direction: column; gap: 12px; }
.operation-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 4px; }
.operation-tabs span { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: .76rem; }
.operation-section { margin: 0; }
.operation-section p { margin: 4px 0; }
.operation-pending { padding: 8px 0; }
.operation-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; }
.operation-metrics span { padding: 9px; border-radius: var(--radius-md); background: var(--surface-2); font-size: .78rem; }
.operation-metrics b { display: block; margin-top: 3px; color: var(--text); font-size: 1.05rem; }
.fleet-map-shell { min-height: 220px; }
.fleet-map-canvas { height: 280px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.fleet-map-empty { min-height: 180px; display: grid; place-content: center; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.fleet-map-empty p { margin-top: 6px; }
.fleet-map-status { margin: -44px 12px 18px; position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--surface); color: var(--text-muted); font-size: .75rem; box-shadow: var(--shadow-sm); }
.fleet-map-status strong { color: var(--text); }
.fleet-map-status--ready { margin-top: 8px; background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
.fleet-map-status--error { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.fleet-map-status--loading, .fleet-map-status--unconfigured { background: var(--surface); }
.driver-detail-map { margin-top: 10px; }
.driver-detail-map .fleet-map-canvas { height: 220px; }
.fleet-location-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.fleet-location-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); text-align: left; }
.fleet-location-card span, .fleet-location-card small { color: var(--text-muted); }
.detail-eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); font-weight: 700; }
.detail-card strong { font-size: 0.92rem; }
.detail-line { font-size: 0.82rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.detail-line b { color: var(--text); }
.detail-evidence { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-muted); }
.detail-note { font-size: 0.78rem; color: var(--text-soft); font-style: italic; }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline-step { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.timeline-step:not(:last-child)::before { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline-node { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: #fff; z-index: 1; }
.timeline-step.is-done .timeline-node { background: var(--green); border-color: var(--green); }
.timeline-step:not(.is-done):last-child .timeline-node { border-color: var(--orange); }
.timeline-content { display: flex; flex-direction: column; }
.timeline-content strong { font-size: 0.85rem; }
.timeline-content small { font-size: 0.74rem; color: var(--text-muted); }

/* --- EMPTY / LOADING / ERROR --- */
.empty-state { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ico { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-muted); font-weight: 800; }
.empty-state h3 { font-size: 1.05rem; }
.empty-state p { color: var(--text-muted); font-size: 0.88rem; max-width: 380px; }
.empty-action { margin-top: 8px; }
.empty-card, .error-card { padding: 8px; }
.error-card { border-color: var(--red); }
.error-card h3 { color: var(--red); margin-bottom: 6px; }

.loading-state { display: flex; flex-direction: column; gap: 16px; }
.skeleton-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sk-card { height: 96px; border-radius: var(--radius); }
.skeleton-row { display: flex; gap: 12px; }
.sk { height: 16px; border-radius: 6px; }
.sk-1 { flex: 2; } .sk-2 { flex: 3; } .sk-3 { flex: 1; }
.sk, .sk-card {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* --- TOAST --- */
.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-left: 4px solid var(--navy-mid); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 0.86rem; max-width: 340px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast--success { border-left-color: var(--green); }
.toast--info { border-left-color: var(--blue); }
.toast--danger { border-left-color: var(--red); }

/* --- SETTINGS --- */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.setting-info { display: flex; flex-direction: column; gap: 3px; }
.setting-info strong { font-size: 0.92rem; }
.setting-info span { font-size: 0.82rem; color: var(--text-muted); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg-btn { border: 0; background: var(--surface); color: var(--text); padding: 8px 14px; cursor: pointer; font-size: 0.82rem; font-weight: 700; }
.seg-btn.is-active { background: var(--orange); color: #fff; }
.seg-btn:disabled { color: var(--text-soft); cursor: not-allowed; background: var(--surface-2); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.86rem; color: var(--text); }
.feature-list .ico { color: var(--orange); }
.pill { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); background: var(--surface-3); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
