/* TaskPaws redesign tokens. Shared by every mock in wiki/design/mocks. */
:root {
  --navy: #071927;
  --navy-2: #10283a;
  --navy-text: #c9d3dc;
  --navy-muted: #7d8f9e;

  --canvas: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;

  --accent: #2f6f8f;
  --accent-soft: #e8f1f5;

  --ok: #3f8f5f;
  --warn: #b7791f;
  --risk: #b44a3c;
  --risk-soft: #fbefed;

  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 232px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* Shell */
.app { display: flex; height: 100vh; overflow: hidden; }

.side {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy);
  color: var(--navy-text);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}

.side { transition: width .18s ease, padding .18s ease; overflow: hidden; }

.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 20px 8px; }
.side-logo { display: block; min-width: 0; }
.side-logo-full { width: 100%; max-width: 150px; display: block; }
.side-logo-iso { display: none; width: 32px; }

.side-toggle {
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--navy-muted); cursor: pointer;
}
.side-toggle i { font-size: 18px; }
.side-toggle:hover { background: var(--navy-2); color: #fff; }

.side-loc {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; margin-bottom: 16px;
  border: 1px solid var(--navy-2); border-radius: var(--radius-sm);
  font-size: 13px; color: #fff; cursor: pointer;
}
.side-loc > div { flex: 1; min-width: 0; white-space: nowrap; }
.side-loc small { display: block; color: var(--navy-muted); font-size: 11px; }
.side-loc-icon { display: none; font-size: 17px; }

.side-label { white-space: nowrap; }

.side.is-collapsed { width: 68px; padding: 16px 10px; }
.side.is-collapsed .side-head { flex-direction: column; padding: 4px 0 16px; gap: 12px; }
.side.is-collapsed .side-logo-full { display: none; }
.side.is-collapsed .side-logo-iso { display: block; }
.side.is-collapsed .side-toggle i { transform: scaleX(-1); }
.side.is-collapsed .side-label { display: none; }
.side.is-collapsed .side-loc { justify-content: center; padding: 8px 0; }
.side.is-collapsed .side-loc-icon { display: block; }
.side.is-collapsed .side-group > span { height: 1px; padding: 0; margin: 0 8px 10px; background: var(--navy-2); font-size: 0; }
.side.is-collapsed .side-item { justify-content: center; padding: 9px 0; }
.side.is-collapsed .side-user { justify-content: center; padding: 10px 0; }

.side-group { margin-bottom: 16px; }
.side-group > span {
  display: block; padding: 0 10px 6px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-muted);
}
.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--navy-text);
}
.side-item i { font-size: 17px; opacity: .8; }
.side-item:hover { background: var(--navy-2); color: #fff; }
.side-item.is-active { background: var(--navy-2); color: #fff; }
.side-item.is-active i { opacity: 1; }

.side-user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px; border-top: 1px solid var(--navy-2); font-size: 13px;
}
.side-user small { display: block; color: var(--navy-muted); font-size: 11px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

.top {
  height: 60px; flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); min-width: 0; white-space: nowrap; }
.crumbs a:hover { color: var(--text); }
.crumbs strong { color: var(--text); font-weight: 600; }
.crumbs code { font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); }
.top-spacer { flex: 1; }
.top-search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; width: 240px; padding: 0 10px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 13px;
}
.top-search kbd {
  margin-left: auto; font: 500 11px var(--font);
  padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface);
}

.scroll { flex: 1; overflow-y: auto; }
.page { max-width: 1320px; margin: 0 auto; padding: 24px 28px 48px; }

/* Avatar, chips, pills, buttons */
.avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center;
  font-weight: 600; color: var(--text-2); font-size: 18px;
}
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.navy { background: var(--navy-2); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--surface);
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.dot.accent { background: var(--accent); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.risk { background: var(--risk); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 6px;
  background: var(--surface-2); font-size: 12px; color: var(--text-2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); }
.btn i { font-size: 16px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.block { width: 100%; }
.btn.icon { width: 36px; padding: 0; }

.link { font-size: 13px; font-weight: 500; color: var(--accent); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Widgets */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.widget-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px 0;
}
.widget-title {
  margin: 0; font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-3);
}
.widget-body { padding: 12px 18px 18px; }
.widget-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-top: 1px solid var(--border);
}

.label { font-size: 12px; color: var(--text-3); }
.value { font-size: 14px; font-weight: 500; color: var(--text); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

.facts { display: grid; gap: 14px 16px; margin: 0; }
.facts.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts dt { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 14px; font-weight: 500; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.rows li:first-child { padding-top: 0; }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows .title { font-weight: 500; }
.rows .sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

.segmented {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface-2); border-radius: 10px;
  overflow-x: auto; max-width: 100%;
}
.segmented button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 0; border-radius: 7px; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.segmented .count { font-size: 11px; color: var(--text-3); }

.empty { padding: 20px 0; text-align: center; font-size: 13px; color: var(--text-3); }

@media (max-width: 960px) {
  .side { display: none; }
  .top { padding: 0 16px; }
  .top-search { display: none; }
  .page { padding: 16px 16px 40px; }
}
