.btn { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; color: #35445f; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 650; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.btn:hover { transform: translateY(-1px); border-color: var(--ink-300); box-shadow: var(--shadow-sm); }
.btn .lucide { width: 14px; height: 14px; stroke-width: 1.9; }
.btn-primary { color: #fff; background: var(--blue-600); border-color: var(--blue-600); box-shadow: 0 5px 13px rgba(36,99,235,.20); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn-danger { color: var(--red-700); background: var(--red-50); border-color: var(--red-100); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; color: var(--ink-600); background: transparent; border: 0; border-radius: 9px; font-weight: 850; }
.icon-btn .lucide { width: 17px; height: 17px; stroke-width: 1.9; }
.icon-btn:hover { background: var(--ink-100); }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card.secondary { background: var(--surface-muted); box-shadow: none; }
.card-header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-bottom: 1px solid var(--border); }
.card-header > div { min-width: 0; }
.card-header h2 { margin: 0; }
.card-header p { margin: 2px 0 0; font-size: 11px; line-height: 1.35; }
.card-body { padding: 14px 15px; }
.card-body > .table-wrap { margin: -14px -15px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.metric { position: relative; min-height: 134px; padding: 15px; overflow: hidden; }
.metric::after { content: ""; position: absolute; right: -20px; bottom: -26px; width: 90px; height: 70px; background: radial-gradient(circle, rgba(59,130,246,.11), transparent 65%); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: var(--ink-500); font-size: 12px; font-weight: 680; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; color: #2160e7; background: #e9f0ff; border: 0; border-radius: 9px; font-size: 10px; font-weight: 850; }
.metric-icon .lucide { width: 15px; height: 15px; stroke-width: 1.9; }
.metric-value { color: var(--ink-950); font-size: 28px; line-height: 1; font-weight: 780; letter-spacing: -.035em; }
.metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--ink-500); font-size: 10px; }
.trend-up { color: var(--green-700); font-weight: 750; }
.trend-warn { color: var(--amber-700); font-weight: 750; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 20px; padding: 2px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge.success { color: #199b54; background: #e8f7ee; border: 0; }
.badge.warning { color: #d97900; background: #fff1dc; border: 0; }
.badge.danger { color: #d33e50; background: #ffe8eb; border: 0; }
.badge.info { color: #2470dc; background: #e8f2ff; border: 0; }
.badge.violet { color: #7842cb; background: #f0e8ff; border: 0; }
.badge.neutral { color: #6f7d93; background: #edf1f6; border: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.toolbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.field, .select { height: 38px; padding: 0 11px; color: var(--ink-700); background: #fff; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; font-size: 12px; }
.field { width: min(280px, 100%); }
.field:focus, .select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; min-width: 740px; font-size: 12px; }
.data-table th { position: sticky; top: 0; z-index: 1; height: 38px; padding: 0 10px; color: #8290a7; background: #fff; border-bottom: 1px solid #edf0f5; font-size: 8px; font-weight: 760; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { height: 48px; padding: 5px 10px; color: var(--ink-600); border-bottom: 1px solid #edf0f5; vertical-align: middle; font-size: 10px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: #fafcff; }
.entity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.entity-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #2160e7; background: #e9f0ff; border: 0; border-radius: 9px; font-size: 9px; font-weight: 850; }
.entity-icon .lucide { width: 15px; height: 15px; stroke-width: 1.9; }
.entity-title { max-width: 260px; color: var(--ink-900); line-height: 1.3; font-weight: 750; }
.entity-meta { margin-top: 3px; color: var(--ink-500); font-size: 10px; line-height: 1.3; }
.chip { display: inline-flex; padding: 4px 7px; color: var(--ink-600); background: var(--ink-100); border-radius: 6px; font-size: 10px; font-weight: 650; }
.progress { height: 7px; overflow: hidden; background: var(--ink-100); border-radius: 99px; }
.data-table td > .progress { min-width: 96px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), #6ea8ff); border-radius: inherit; }
.progress.success > span { background: linear-gradient(90deg, var(--green-600), #39bb72); }
.progress.warning > span { background: linear-gradient(90deg, var(--amber-600), #f59a23); }
.progress.danger > span { background: linear-gradient(90deg, var(--red-600), #ef5867); }
.progress.neutral > span { background: #b7c0cf; }
.list { margin: 0; padding: 0; list-style: none; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-title { color: var(--ink-900); font-size: 12px; line-height: 1.35; font-weight: 700; }
.list-meta { margin-top: 3px; color: var(--ink-500); font-size: 10px; line-height: 1.4; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; display: grid; grid-template-columns: 42px 20px minmax(0,1fr) auto; align-items: start; column-gap: 8px; min-height: 54px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 59px; top: 23px; bottom: -2px; width: 1px; background: #dce4f0; }
.timeline-time { padding-top: 5px; color: var(--ink-400); font-size: 9px; }
.timeline-dot { position: relative; z-index: 1; width: 18px; height: 18px; margin-top: 2px; background: var(--blue-600); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #cbd7eb; }
.timeline-dot.success { background: var(--green-600); box-shadow: 0 0 0 1px var(--green-100); }
.timeline-dot.warning { background: var(--amber-600); box-shadow: 0 0 0 1px var(--amber-100); }
.timeline-dot.danger { background: var(--red-600); box-shadow: 0 0 0 1px var(--red-100); }
.timeline-item > span:nth-child(3) { min-width: 0; padding: 1px 8px 6px 0; }
.timeline-item > .badge { min-width: 76px; align-self: start; justify-self: end; justify-content: center; margin-top: 0; }
.timeline-title { display: block; color: var(--ink-900); font-size: 11px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.timeline-copy { display: block; margin-top: 3px; color: var(--ink-500); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.pipeline { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 7px; overflow-x: auto; }
.pipeline-step { position: relative; min-width: 110px; padding: 13px; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-md); }
.pipeline-step.done { background: var(--green-50); border-color: var(--green-100); }
.pipeline-step.active { background: var(--blue-50); border-color: var(--blue-100); box-shadow: inset 0 -3px 0 var(--blue-600); }
.pipeline-step.failed { background: var(--red-50); border-color: var(--red-100); }
.step-index { width: 24px; height: 24px; display: grid; place-items: center; margin-bottom: 10px; color: var(--ink-500); background: #fff; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 9px; font-weight: 850; }
.step-name { color: var(--ink-900); font-size: 11px; font-weight: 750; }
.step-meta { margin-top: 4px; color: var(--ink-500); font-size: 9px; }
.stat-line { display: grid; grid-template-columns: minmax(90px, 1fr) 1.4fr auto; align-items: center; gap: 12px; min-height: 40px; font-size: 11px; }
.stat-line strong { color: var(--ink-900); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.detail-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); font-size: 11px; line-height: 1.4; }
.detail-row span:first-child { color: var(--ink-500); }
.detail-row strong { color: var(--ink-900); text-align: right; }
.hero { position: relative; padding: 24px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #13203a, #344966 55%, #2864e8); border-radius: 14px; box-shadow: var(--shadow-sm); }
.hero::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 260px; height: 260px; border: 46px solid rgba(255,255,255,.06); border-radius: 50%; }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: #d0d5dd; }
.hero .placeholder-note { color: #d0d5dd; }
.hero-kicker { margin-bottom: 10px; color: #84adff; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.delivery-path { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px; overflow-x: auto; }
.delivery-node { min-width: 110px; text-align: center; }
.delivery-node .entity-icon { margin: 0 auto 8px; }
.delivery-connector { flex: 1 0 42px; height: 2px; background: var(--border-strong); }
.delivery-connector.done { background: var(--green-600); }
.empty { padding: 40px 24px; text-align: center; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 16px; font-weight: 850; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-md); font-size: 11px; line-height: 1.45; }
.notice.warning { color: var(--amber-700); background: var(--amber-50); border-color: var(--amber-100); }
.notification { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.notification > div { min-width: 0; }
.notification.unread { background: var(--blue-50); }
.notification-dot { width: 9px; height: 9px; margin-top: 5px; background: var(--blue-600); border-radius: 50%; }
.notification.read .notification-dot { background: var(--ink-300); }
.calendar-strip { display: grid; grid-template-columns: repeat(7, minmax(80px, 1fr)); gap: 8px; overflow-x: auto; }
.calendar-day { min-width: 80px; min-height: 105px; padding: 10px; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; }
.calendar-day.active { background: var(--blue-50); border-color: var(--blue-100); }
.calendar-date { color: var(--ink-500); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.calendar-count { margin-top: 13px; color: var(--ink-900); font-size: 21px; font-weight: 800; }
.calendar-meta { margin-top: 4px; color: var(--ink-500); font-size: 9px; }
@media (max-width: 720px) {
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-group { width: 100%; }
  .field { flex: 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 48px 20px minmax(0,1fr); }
  .timeline-item .badge { display: none; }
  .timeline-item:not(:last-child)::after { left: 65px; }
}
