/* ============================================================
   PCD Kurusaphan — Modern Monochrome Asset Management
   Design: Linear × Vercel × Notion — black/white/refined
   ============================================================ */

:root {
  /* Surfaces */
  --bg-0: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --bg-elev: #202020;
  --border: #2a2a2a;
  --border-strong: #383838;
  --border-soft: #1f1f1f;

  /* Text */
  --text-1: #fafafa;
  --text-2: #a8a8a8;
  --text-3: #707070;
  --text-4: #4a4a4a;

  /* Accent (subtle, monochrome) */
  --accent: #ffffff;
  --accent-dim: #d4d4d4;

  /* Status (kept neutral) */
  --status-good: #c5c5c5;
  --status-warn: #888888;
  --status-bad:  #4a4a4a;

  /* Type */
  --font-sans: 'Geist', 'Noto Sans Thai', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --font-th:   'Noto Sans Thai', 'Geist', sans-serif;

  /* Sizing */
  --sidebar-w: 264px;
  --topbar-h: 64px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(600px 300px at -10% 100%, rgba(255,255,255,0.02), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
.chart-wrap > svg, .donut-svg { width: 100% !important; height: auto !important; }
.donut-svg { max-width: 132px; max-height: 132px; }

/* ============================================================
   LAYOUT
   ============================================================ */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 22px;
}

.brand-mark {
  width: 36px; height: 36px;
  background: var(--text-1);
  color: var(--bg-0);
  border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 4px 12px rgba(255,255,255,0.05);
}

.brand-mark svg { width: 20px; height: 20px; color: var(--bg-0); }

.brand-text { line-height: 1.2; }
.brand-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-1);
}
.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* Nav */
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 450;
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
  position: relative;
}
.nav-item:hover { background: var(--bg-2); color: var(--text-1); }
.nav-item.active {
  background: var(--bg-3);
  color: var(--text-1);
  font-weight: 500;
}
.nav-item.active::before {
  content: '';
  position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--text-1);
  border-radius: 0 2px 2px 0;
}

.nav-item.nav-sub { padding-left: 12px; font-size: 13px; }

.nav-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}
.nav-item.active .nav-badge { background: var(--bg-elev); color: var(--text-1); }

.nav-section {
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 10px 6px;
  font-weight: 500;
}
.nav-divider { height: 1px; background: var(--border-soft); margin: 12px 0 4px; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-notebook { background: #e8e8e8; }
.dot-ram      { background: #a0a0a0; }
.dot-scanner  { background: #6a6a6a; }
.dot-software { background: #c0c0c0; box-shadow: inset 0 0 0 1.5px #2a2a2a; }

/* Sidebar footer */
.sidebar-footer { padding-top: 16px; border-top: 1px solid var(--border-soft); }
.user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms;
}
.user:hover { background: var(--bg-2); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #f0f0f0, #888);
  color: #000;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-th);
}
.user-info { line-height: 1.3; }
.user-name { font-size: 13px; font-weight: 500; font-family: var(--font-th); }
.user-role { font-size: 11px; color: var(--text-3); }

/* ============================================================
   MAIN
   ============================================================ */

.main { min-width: 0; }

.topbar {
  height: var(--topbar-h);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
}

.breadcrumb { display: flex; align-items: center; gap: 10px; }
.crumb-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.crumb-sep { color: var(--text-4); }
.crumb-current {
  font-size: 14px; font-weight: 500;
  color: var(--text-1);
  font-family: var(--font-th);
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 7px 10px;
  width: 360px;
  transition: border-color 150ms;
}
.search:focus-within { border-color: var(--border-strong); }
.search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 13px;
  color: var(--text-1);
}
.search input::placeholder { color: var(--text-3); font-family: var(--font-th); }
.search svg { color: var(--text-3); }
.search kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
}

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--text-2);
  position: relative;
  transition: background 120ms, color 120ms;
}
.icon-btn:hover { background: var(--bg-2); color: var(--text-1); }
.dot-indicator {
  position: absolute; top: 9px; right: 9px;
  width: 7px; height: 7px;
  background: var(--text-1);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg-0);
}

/* ============================================================
   PAGE CONTAINER
   ============================================================ */

.page-container { padding: 32px 28px 64px; }

.page { animation: fadeUp 350ms var(--ease-out); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-header { margin-bottom: 32px; }
.page-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font-th);
}
.page-sub {
  color: var(--text-3);
  font-size: 14px;
  margin-top: 4px;
  font-family: var(--font-th);
}
.page-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   KPI CARDS
   ============================================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms, transform 200ms var(--ease);
}
.kpi:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.kpi::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 250ms;
}
.kpi:hover::after { opacity: 1; }

.kpi-label {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 6px;
}
.kpi-label-icon {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: var(--bg-3);
  border-radius: 5px;
  color: var(--text-2);
}
.kpi-label-icon svg { width: 12px; height: 12px; }

.kpi-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 14px;
  font-feature-settings: 'tnum';
}
.kpi-value sup { font-size: 14px; color: var(--text-3); margin-left: 4px; font-weight: 400; }

.kpi-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  margin-top: 10px;
  padding: 3px 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
.kpi-delta.up   { color: #e0e0e0; background: rgba(255,255,255,0.06); }
.kpi-delta.down { color: #888; }

.kpi-spark {
  position: absolute; right: 18px; top: 20px;
  width: 80px; height: 28px;
  opacity: 0.6;
}

/* ============================================================
   PANELS / CARDS
   ============================================================ */

.panel {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.panel-title {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-th);
  display: flex; align-items: center; gap: 8px;
}
.panel-title .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.panel-body { padding: 22px; }
.panel-actions { display: flex; gap: 8px; align-items: center; }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-th);
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  color: var(--text-1);
  transition: background 120ms, border-color 120ms;
  cursor: pointer;
}
.btn:hover { background: var(--bg-3); border-color: var(--border); }
.btn-primary {
  background: var(--text-1);
  color: var(--bg-0);
  border-color: var(--text-1);
  font-weight: 600;
}
.btn-primary:hover { background: #e8e8e8; border-color: #e8e8e8; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text-1); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ============================================================
   TABLE
   ============================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table thead th {
  text-align: left;
  padding: 12px 22px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.table tbody tr {
  border-bottom: 1px solid var(--border-soft);
  transition: background 100ms;
  cursor: pointer;
}
.table tbody tr:hover { background: var(--bg-2); }
.table tbody tr:last-child { border-bottom: none; }
.table td {
  padding: 14px 22px;
  color: var(--text-1);
  vertical-align: middle;
}
.table td.muted { color: var(--text-3); }
.table td.mono { font-family: var(--font-mono); font-size: 12.5px; }

.cell-id {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-1);
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  padding: 2px 8px;
  border-radius: 5px;
}

.cell-name { font-weight: 500; font-family: var(--font-th); }
.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; font-family: var(--font-th); }

.cell-asset-icon {
  display: inline-flex; align-items: center; gap: 8px;
}
.cell-asset-icon .ic {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--bg-3);
  border: 1px solid var(--border-soft);
  display: grid; place-items: center;
  color: var(--text-2);
}
.cell-asset-icon .ic svg { width: 14px; height: 14px; }

/* Status pill */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  color: var(--text-2);
}
.pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.pill-active   { color: #e8e8e8; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.pill-repair   { color: #b0b0b0; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }
.pill-stock    { color: #c8c8c8; background: rgba(255,255,255,0.03); border-color: var(--border-soft); }
.pill-retired  { color: #707070; background: transparent; border-color: var(--border-soft); }
.pill-expired  { color: #909090; background: var(--bg-2); border-color: var(--border); }

/* ============================================================
   FILTER BAR
   ============================================================ */

.filterbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 120ms;
  font-family: var(--font-th);
}
.chip:hover { color: var(--text-1); border-color: var(--border); }
.chip.active { background: var(--text-1); color: var(--bg-0); border-color: var(--text-1); font-weight: 500; }
.chip .count { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

/* ============================================================
   ASSET DETAIL
   ============================================================ */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
}
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-hero {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.2) 50%, transparent 90%);
}

.detail-id-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.detail-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font-th);
  margin-bottom: 4px;
}
.detail-meta {
  display: flex; gap: 18px;
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--font-th);
  flex-wrap: wrap;
  margin-top: 6px;
}
.detail-meta b { color: var(--text-2); font-weight: 500; margin-right: 4px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 22px;
}
.spec-cell {
  background: var(--bg-1);
  padding: 14px 18px;
}
.spec-label {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.spec-value {
  font-size: 14px;
  color: var(--text-1);
  font-family: var(--font-th);
}
.spec-value.mono { font-family: var(--font-mono); font-size: 13px; }

.timeline { list-style: none; }
.timeline-item {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-2);
  margin-top: 6px;
  box-shadow: 0 0 0 4px var(--bg-1), 0 0 0 5px var(--border);
  flex-shrink: 0;
}
.timeline-dot.success { background: #e0e0e0; }
.timeline-dot.warn { background: #888; }
.timeline-body { flex: 1; min-width: 0; }
.timeline-title { font-size: 13.5px; font-weight: 500; font-family: var(--font-th); }
.timeline-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; font-family: var(--font-th); }
.timeline-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

/* ============================================================
   FORM
   ============================================================ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field-label {
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-th);
  font-weight: 500;
}
.field-label .req { color: #d0d0d0; }
.field-hint { font-size: 11.5px; color: var(--text-3); font-family: var(--font-th); }
.input, .select, .textarea {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text-1);
  outline: none;
  transition: border-color 150ms, background 150ms;
  font-family: var(--font-th);
  width: 100%;
}
.input.mono, .select.mono { font-family: var(--font-mono); font-size: 13px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--border-strong); background: var(--bg-2); }
.textarea { min-height: 90px; resize: vertical; font-family: var(--font-th); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.segmented {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.segmented button {
  padding: 6px 12px;
  font-size: 12.5px;
  font-family: var(--font-th);
  color: var(--text-2);
  border-radius: 5px;
  transition: all 120ms;
}
.segmented button.active { background: var(--bg-elev); color: var(--text-1); }

.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  background: var(--bg-1);
  color: var(--text-3);
  transition: all 150ms;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--border-strong); background: var(--bg-2); color: var(--text-2); }
.upload-zone svg { width: 28px; height: 28px; margin-bottom: 8px; }
.upload-zone b { color: var(--text-1); font-weight: 500; }

/* ============================================================
   CHART (pure CSS / SVG)
   ============================================================ */

.chart-wrap { padding: 8px 0 0; }
.chart svg { width: 100%; height: auto; display: block; }

.legend { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); font-family: var(--font-th); }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; }

/* ============================================================
   ALERTS / NOTIFICATIONS
   ============================================================ */

.alert {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  font-family: var(--font-th);
  margin-bottom: 8px;
}
.alert-icon {
  width: 32px; height: 32px;
  background: var(--bg-3);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.alert-icon svg { width: 16px; height: 16px; color: var(--text-2); }
.alert-body { flex: 1; }
.alert-title { font-weight: 500; color: var(--text-1); margin-bottom: 2px; }
.alert-desc { color: var(--text-3); font-size: 12.5px; }
.alert-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); white-space: nowrap; }

/* ============================================================
   CATEGORY DONUT
   ============================================================ */

.donut-row {
  display: flex; align-items: center; gap: 16px;
}
.donut-svg { width: 132px; height: 132px; flex-shrink: 0; }
.donut-list { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.donut-list-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-family: var(--font-th);
}
.donut-list-item .sw { width: 10px; height: 10px; border-radius: 2px; }
.donut-list-item .lbl { flex: 1; color: var(--text-1); }
.donut-list-item .val { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.donut-list-item .pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-4); width: 42px; text-align: right; }

/* ============================================================
   ACTIVITY (right column on dashboard)
   ============================================================ */

.activity { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.activity-item:last-child { border-bottom: none; }
.activity-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-family: var(--font-th);
  flex-shrink: 0;
}
.activity-body { flex: 1; min-width: 0; font-size: 13px; font-family: var(--font-th); }
.activity-body b { font-weight: 500; color: var(--text-1); }
.activity-body .muted { color: var(--text-3); }
.activity-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ============================================================
   FOOTNOTE
   ============================================================ */

.footnote {
  margin-top: 24px;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-th);
  border-top: 1px dashed var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}
.footnote svg { width: 14px; height: 14px; color: var(--text-4); }
