/* ==========================================================================
   ShipWoven — design system
   Tokens → base → shell (sidebar/topbar) → components → pages → overlays → responsive
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* surfaces */
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e3e8ef;
  --border-strong: #cbd5e1;

  /* ink */
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;          /* decorative only, never body text */

  /* brand */
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-ink: #3730a3;
  --accent-soft: #eef2ff;
  --accent-ring: rgba(79, 70, 229, .22);

  /* status — reserved */
  --good: #15803d;      --good-soft: #dcfce7;
  --warn: #b45309;      --warn-soft: #fef3c7;
  --danger: #b91c1c;    --danger-soft: #fee2e2;
  --info: #1d4ed8;      --info-soft: #dbeafe;
  --purple: #6d28d9;    --purple-soft: #ede9fe;

  /* progress ramp (single hue, sequential) */
  --prog-3: #4f46e5;
  --prog-2: #a5b4fc;
  --prog-1: #e2e8f0;

  /* sidebar */
  --side-bg: #0b1220;
  --side-bg-2: #121b30;
  --side-line: rgba(148, 163, 184, .14);
  --side-text: #94a3b8;
  --side-text-strong: #e2e8f0;
  --side-active: rgba(99, 102, 241, .18);

  /* geometry */
  --side-w: 76px;          /* collapsed rail */
  --side-open: 268px;      /* expanded on hover */
  --top-h: 64px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, .35);

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
h1, h2, h3, p, dl { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
svg { display: block; flex-shrink: 0; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 15px; height: 15px; }
.muted { color: var(--ink-3); }
.num, .stat-value, td strong, .donut strong, .pulse > strong, .y-labels, .roadmap-bar > span:last-child, .epic-row > span:last-child, .issue-metrics strong {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  color: var(--side-text);
  z-index: 30;
  border-right: 1px solid rgba(255, 255, 255, .04);
  overflow: hidden;
  transition: width .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s;
  will-change: width;
}
.sidebar:hover, .sidebar:focus-within { width: var(--side-open); box-shadow: 24px 0 60px -20px rgba(2, 6, 23, .6); }
/* labels fade in as the rail expands */
.sidebar .nav-item b, .sidebar .workspace > div, .sidebar .nav-label, .sidebar .workspace-status b, .sidebar .workspace-status small, .sidebar .profile > span, .sidebar .brand > b {
  opacity: 0; white-space: nowrap; transition: opacity .18s .04s;
}
.sidebar:hover .nav-item b, .sidebar:hover .workspace > div, .sidebar:hover .nav-label, .sidebar:hover .workspace-status b, .sidebar:hover .workspace-status small, .sidebar:hover .profile > span, .sidebar:hover .brand > b,
.sidebar:focus-within .nav-item b, .sidebar:focus-within .workspace > div, .sidebar:focus-within .nav-label, .sidebar:focus-within .workspace-status b, .sidebar:focus-within .workspace-status small, .sidebar:focus-within .profile > span, .sidebar:focus-within .brand > b { opacity: 1; }
.sidebar .nav-label { height: 14px; margin-bottom: 8px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 7px 22px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.brand > b { font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #4f46e5 60%, #3730a3);
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
}
.brand-mark .ico { width: 20px; height: 20px; stroke-width: 2; }
.brand-dot { color: #818cf8; margin-left: -9px; }

.workspace {
  display: flex; align-items: center; gap: 12px;
  padding: 6px;
  margin: 0 0 22px;
  border: 1px solid var(--side-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
}
.workspace-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--side-text-strong);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.workspace > div { min-width: 0; flex: 1; }
.workspace strong { display: block; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace small { display: block; font-size: 11.5px; color: var(--side-text); margin-top: 2px; }
.workspace .muted { color: var(--ink-4); display: flex; }

.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #64748b;
  margin: 0 12px 8px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; margin: 0 -4px; padding: 0 4px 8px; overflow: hidden auto; scrollbar-width: none; }
.sidebar nav::-webkit-scrollbar { display: none; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .06); }
.nav-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 24px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: #64748b; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: left; cursor: pointer; transition: color .15s; }
.nav-group-head:hover { color: #a5b4fc; }
.nav-group-head b, .nav-group-head .ico { opacity: 0; transition: opacity .18s .04s; }
.sidebar:hover .nav-group-head b, .sidebar:hover .nav-group-head .ico, .sidebar:focus-within .nav-group-head b, .sidebar:focus-within .nav-group-head .ico { opacity: 1; }
.nav-group-head .ico { transform: rotate(0deg); transition: transform .15s, opacity .18s .04s; }
.nav-group.closed .nav-group-head .ico { transform: rotate(-90deg); }
.nav-group-head:focus-visible { outline: 2px solid #818cf8; outline-offset: -2px; }
/* Folding belongs to the expanded sidebar: the icon rail always shows every page, so nothing floats alone in it */
.nav-group-items { display: flex; flex-direction: column; gap: 2px; overflow: hidden; max-height: 480px; transition: max-height .2s ease; }
.sidebar:hover .nav-group.closed .nav-group-items, .sidebar:focus-within .nav-group.closed .nav-group-items { max-height: 0; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 8px 13px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--side-text);
  font-size: 13.5px; font-weight: 500;
  text-align: left;
  transition: background .15s, color .15s;
}
.nav-item > span { display: flex; color: #64748b; transition: color .15s; flex-shrink: 0; }
.nav-item > span .ico { width: 22px; height: 22px; stroke-width: 1.5; }
.nav-item b { font-weight: inherit; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: var(--side-text-strong); }
.nav-item:hover > span { color: #a5b4fc; }
.nav-item.active { background: var(--side-active); color: #fff; font-weight: 600; }
.nav-item.active > span { color: #a5b4fc; }
.nav-item.active::before {
  content: ""; position: absolute; left: -18px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: #818cf8;
}
.nav-item em {
  position: absolute; top: 3px; left: 27px;
  min-width: 16px; height: 16px; padding: 0 4px; line-height: 16px;
  border: 2px solid var(--side-bg); box-sizing: content-box;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums;
}
.sidebar:hover .nav-item em, .sidebar:focus-within .nav-item em {
  position: static; margin-left: auto; height: auto; line-height: 1.5; border: 0; box-sizing: border-box;
  min-width: 22px; padding: 1px 7px;
  background: rgba(255, 255, 255, .09);
  color: var(--side-text-strong);
  font-size: 11px; font-weight: 600;
}
.sidebar:hover .nav-item.active em, .sidebar:focus-within .nav-item.active em { background: #4f46e5; color: #fff; }
.nav-item.active em { background: #4f46e5; color: #fff; }

.sidebar-bottom { margin-top: auto; flex-shrink: 0; }
.workspace-status {
  display: flex; flex-wrap: wrap; align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--side-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
  color: var(--side-text-strong);
  font-size: 12.5px; font-weight: 600;
}
.status-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 10px; flex-shrink: 0;
  border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.status-dot.idle, .live-label i.idle { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.workspace-status small { flex-basis: 100%; margin: 4px 0 0 18px; font-size: 11.5px; font-weight: 400; color: var(--side-text); }
.profile {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  margin-top: 14px; padding: 14px 7px 4px;
  border: 0; border-top: 1px solid var(--side-line);
  background: transparent;
  color: var(--side-text-strong);
  text-align: left;
  border-radius: 0;
}
.profile:hover strong { color: #fff; }
.profile > span:nth-child(2) { flex: 1; min-width: 0; }
.profile strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile small { display: block; font-size: 11.5px; color: var(--side-text); margin-top: 2px; text-transform: capitalize; }
.profile > span:last-child { color: var(--ink-4); display: flex; }
.profile .avatar { background: rgba(129, 140, 248, .18); color: #c7d2fe; }

.avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Main shell
   -------------------------------------------------------------------------- */
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.breadcrumb strong { font-weight: 600; color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.role-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12px; font-weight: 600;
}
.live-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.live-label i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.top-divider { width: 1px; height: 20px; background: var(--border); }
.today { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.header-profile { border: 0; background: none; padding: 0; border-radius: 50%; display: flex; }
.header-profile:hover { box-shadow: 0 0 0 3px var(--accent-ring); }
.top-actions .avatar { width: 32px; height: 32px; }

main { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 32px 32px 0; }

.page-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); }
.page-heading p { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.heading-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.button:hover { background: var(--surface-2); border-color: #b6c2d3; }
.button:active { transform: translateY(1px); }
.button.primary {
  background: linear-gradient(180deg, #5b54ee, var(--accent));
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.button.primary:hover { background: linear-gradient(180deg, #514ae6, var(--accent-hover)); }
.button.full { width: 100%; height: 44px; font-size: 14px; }
.text-button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 6px; margin: -4px -6px;
  border: 0; border-radius: 6px; background: none;
  color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.text-button:hover { background: var(--accent-soft); color: var(--accent-ink); }
.icon-button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none;
  color: var(--ink-3); font-size: 22px; line-height: 1;
}
.icon-button:hover { background: var(--surface-3); color: var(--ink); }

/* Inputs */
select, input, textarea {
  width: auto;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
select {
  padding-right: 34px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
select[multiple] { background-image: none; }

/* Filters */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.segmented {
  display: inline-flex; gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-3);
}
.segmented button {
  height: 32px; padding: 0 14px;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--ink-3); font-size: 13px; font-weight: 500;
  transition: background .15s, color .15s;
}
.segmented button:hover { color: var(--ink); }
.segmented .selected { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.filter-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.filter-right .muted { display: inline-flex; align-items: center; gap: 6px; }
.filter-right select { min-width: 150px; }

/* --------------------------------------------------------------------------
   Panels, cards, tags
   -------------------------------------------------------------------------- */
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px 0;
}
h2, .panel-heading h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
h3 { font-size: 14px; font-weight: 600; }
.panel-heading p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.panel-heading .muted { display: flex; color: var(--ink-4); }
.panel-note {
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12.5px; line-height: 1.6;
}
.count {
  display: inline-flex; align-items: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-3); color: var(--ink-2);
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  text-transform: capitalize;
  border: 1px solid transparent;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.neutral { background: var(--surface-3); color: var(--ink-2); border-color: var(--border); }
.tag.green   { background: var(--good-soft); color: var(--good); }
.tag.purple  { background: var(--purple-soft); color: var(--purple); }
.tag.blue    { background: var(--info-soft); color: var(--info); }
.tag.orange  { background: var(--warn-soft); color: var(--warn); }

/* --------------------------------------------------------------------------
   Overview
   -------------------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  position: relative;
  padding: 20px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.stat-icon .ico { width: 17px; height: 17px; }
.stat-icon.green  { background: var(--accent-soft); color: var(--accent); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-icon.blue   { background: var(--good-soft); color: var(--good); }
.stat-icon.orange { background: var(--warn-soft); color: var(--warn); }
.stat-value { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.stat-value small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.stat-sub { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

.dashboard-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 20px; margin-bottom: 20px; }
.bottom-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

/* bar chart */
.chart { display: flex; gap: 12px; height: 232px; margin: 24px 22px 0 18px; }
.y-labels {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 28px; padding-bottom: 26px;
  font-size: 11px; color: var(--ink-3); text-align: right;
}
.plot { flex: 1; position: relative; min-width: 0; }
.gridlines { position: absolute; inset: 0 0 26px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.gridlines i { width: 100%; border-top: 1px solid var(--border); }
.gridlines i:last-child { border-top-color: var(--border-strong); }
.bars { position: absolute; inset: 0; display: flex; justify-content: space-around; gap: 10px; }
.bar-column { flex: 1; max-width: 56px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-stack {
  width: 100%; height: calc(100% - 26px);
  display: flex; flex-direction: column-reverse; justify-content: flex-start;
  border-radius: 4px 4px 0 0; overflow: hidden;
}
.bar-stack > div { flex-shrink: 0; min-height: 0; border-top: 2px solid var(--surface); transition: height .3s, opacity .15s; }
.bar-stack > div:first-child { border-top: 0; }
.bar-stack:hover > div { opacity: .9; }
.bar-column > span { height: 14px; margin-top: 12px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 16px 0 20px; font-size: 12px; color: var(--ink-2); }
.chart-legend i, .status-list i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; vertical-align: -1px; }

/* donut */
.donut {
  width: 164px; height: 164px; margin: 22px auto 18px;
  padding: 16px;
  border-radius: 50%;
  background: conic-gradient(var(--prog-3) 0 var(--pct), var(--prog-2) var(--pct) var(--active), var(--prog-1) var(--active) 100%);
  transform: rotate(-90deg);
}
.donut > div { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); transform: rotate(90deg); }
.donut strong { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.donut small { font-size: 16px; font-weight: 500; color: var(--ink-3); margin-left: 1px; }
.donut span { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.status-list { display: grid; gap: 10px; padding: 0 22px 22px; }
.status-list > div { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); }
.status-list strong { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* team pulse */
.team-pulses { padding: 6px 22px 0; }
.pulse { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pulse:last-child { border-bottom: 0; }
.team-icon { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; font-size: 14px; font-weight: 700; }
.pulse-name { flex: 1; min-width: 0; }
.pulse-name strong { font-size: 13.5px; font-weight: 600; }
.pulse-name small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.pulse-bar { width: 96px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.pulse-bar > div { height: 100%; border-radius: 999px; }
.pulse > strong { min-width: 44px; text-align: right; font-size: 14px; font-weight: 700; color: var(--ink); }
.pulse > strong small { font-size: 12px; font-weight: 500; color: var(--ink-3); }

/* latest updates */
.activity { display: flex; gap: 12px; width: 100%; padding: 16px 22px; border: 0; background: none; text-align: left; transition: background .15s; }
.activity:hover { background: var(--surface-2); }
.activity + .activity { border-top: 1px solid var(--border); }
.activity > div { flex: 1; min-width: 0; }
.activity strong { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.activity strong small { font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.activity p { margin-top: 3px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity > div > span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.activity b { margin: 0 6px; font-weight: 400; color: var(--ink-4); }

/* banner */
.insight-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  border: 1px solid #c7d2fe;
  background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 100%);
}
.insight-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.insight-banner strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.insight-banner p { margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.insight-banner .button { margin-left: auto; }

footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 24px; font-size: 12px; color: var(--ink-3); }
.footer-dot { margin: 0 8px; color: var(--ink-4); font-size: 7px; vertical-align: 2px; }

/* --------------------------------------------------------------------------
   Tables & lists
   -------------------------------------------------------------------------- */
.table-scroll { overflow: auto; }
table { width: 100%; margin-top: 18px; border-collapse: collapse; text-align: left; }
th {
  padding: 11px 22px;
  border-block: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
td { padding: 14px 22px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
td strong { color: var(--ink); font-weight: 600; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 12px; }
.person strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.person small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.report-summary { min-width: 260px; max-width: 460px; white-space: normal; line-height: 1.55; }
.demo-label { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-4); }
.search { width: 240px; font-size: 13px; }
.panel-heading .search { margin-top: -2px; }

.empty { padding: 56px 20px; text-align: center; color: var(--ink-3); }
.empty > span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 12px; background: var(--surface-3); color: var(--ink-4); }
.empty h3, .empty h2 { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
.empty p { margin-top: 6px; font-size: 13px; }
.empty a { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------------
   Roadmap
   -------------------------------------------------------------------------- */
.roadmap-summary { display: flex; flex-wrap: wrap; gap: 20px; margin: -4px 0 18px; font-size: 13px; color: var(--ink-3); }
.roadmap-summary span { display: inline-flex; align-items: center; }
.roadmap-summary .status-dot { margin-right: 8px; box-shadow: none; }
.roadmap-panel { overflow: auto; }
.roadmap-grid { min-width: 860px; }
.roadmap-header, .roadmap-sprint-header, .roadmap-row { display: grid; grid-template-columns: 280px 1fr; }
.roadmap-header { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.roadmap-header > strong { padding: 16px 22px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); align-self: center; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.months span { padding: 16px 0; border-left: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--ink); }
.roadmap-sprint-header { font-size: 11.5px; color: var(--ink-3); border-bottom: 1px solid var(--border); }
.roadmap-sprint-header > span { padding: 10px 22px; font-weight: 500; }
.roadmap-sprint-header > div { display: grid; grid-template-columns: repeat(var(--sprints), 1fr); text-align: center; }
.roadmap-sprint-header > div span { padding: 10px 0; border-left: 1px solid var(--border); }
.roadmap-row { height: 86px; border-bottom: 1px solid var(--border); }
.roadmap-row:last-child { border-bottom: 0; }
.roadmap-row:hover { background: var(--surface-2); }
.roadmap-title { display: block; padding: 18px 22px; border: 0; background: none; text-align: left; min-width: 0; }
.roadmap-title strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roadmap-title:hover strong { color: var(--accent); }
.roadmap-title small { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.roadmap-title small i { width: 8px; height: 8px; border-radius: 50%; }
.roadmap-title small span { margin-left: auto; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-4); }
.roadmap-track { position: relative; display: grid; grid-template-columns: repeat(var(--sprints), 1fr); }
.roadmap-track > i { border-left: 1px solid var(--border); }
.roadmap-bar {
  position: absolute; top: 24px; height: 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 12px 0 14px;
  border: 1px solid color-mix(in srgb, var(--team-color) 35%, white);
  border-left: 4px solid var(--team-color);
  border-radius: 8px;
  background: color-mix(in srgb, var(--team-color) 10%, white);
  color: color-mix(in srgb, var(--team-color) 70%, black);
  isolation: isolate; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}
.roadmap-bar:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.roadmap-fill { position: absolute; inset: 0 auto 0 0; z-index: -1; background: var(--team-color); opacity: .18; }
.roadmap-bar strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roadmap-bar > span:last-child { font-size: 12px; font-weight: 700; white-space: nowrap; }
.roadmap-bottom { display: grid; gap: 20px; margin-top: 20px; }
.epic-list { padding-top: 12px; }
.epic-row { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--border); font-size: 13.5px; }
.epic-row:hover { background: var(--surface-2); }
.epic-row strong { flex: 1; font-weight: 500; color: var(--ink); }
.epic-key { min-width: 84px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.epic-row > span:last-child { min-width: 40px; text-align: right; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.epic-title { flex: 1; padding: 0; border: 0; background: none; text-align: left; font-size: 13.5px; color: var(--ink); }
.epic-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Teams
   -------------------------------------------------------------------------- */
.team-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.team-card { padding: 22px; }
.team-card-top { display: flex; justify-content: space-between; align-items: center; }
.team-icon.large { width: 46px; height: 46px; font-size: 18px; border-radius: 12px; }
.team-card h2 { margin-top: 18px; font-size: 18px; }
.team-card p { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.avatar-stack { display: flex; margin: 18px 0; }
.avatar-stack .avatar { width: 32px; height: 32px; margin-right: -8px; border: 2px solid var(--surface); font-size: 11px; }
.team-card dl { border-top: 1px solid var(--border); padding-top: 6px; }
.team-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.team-card dl > div:last-child { border-bottom: 0; }
.team-card dt { color: var(--ink-3); }
.team-card dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; line-height: 1.45; text-transform: capitalize; }

/* --------------------------------------------------------------------------
   Forms page
   -------------------------------------------------------------------------- */
.forms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.form-card { display: flex; flex-direction: column; }
.form-card > h2, .form-card > p { margin: 16px 22px 0; }
.form-card > h2 { font-size: 17px; }
.form-card > p { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.form-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.form-preview { flex: 1; margin: 18px 22px 20px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.form-preview > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--ink); }
.form-preview > div:nth-child(odd) { background: var(--surface-2); }
.form-preview > div:last-child { border-bottom: 0; }
.form-preview small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.form-preview b, .field b { color: var(--danger); font-weight: 700; }
.form-card-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px; color: var(--ink-3);
}
.form-card-footer > span { margin-right: auto; }
.form-card-footer .button { height: 34px; padding: 0 12px; font-size: 13px; }

/* --------------------------------------------------------------------------
   Integrations & settings
   -------------------------------------------------------------------------- */
.integration-card { display: flex; align-items: flex-start; gap: 24px; padding: 28px; margin-bottom: 20px; }
.integration-logo { width: 68px; height: 68px; display: grid; place-items: center; flex-shrink: 0; border-radius: 16px; background: linear-gradient(135deg, #2684ff, #0052cc); color: #fff; box-shadow: 0 8px 20px -6px rgba(0, 82, 204, .5); }
.integration-logo .ico { width: 30px; height: 30px; stroke-width: 2; }
.integration-description { flex: 1; min-width: 0; }
.integration-title { display: flex; align-items: center; gap: 12px; }
.integration-title h2 { font-size: 20px; }
.integration-description p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.integration-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.integration-features span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 12.5px; font-weight: 600; }
.integration-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.connection-details { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; }
.connection-details strong { color: var(--ink); }
.connection-details small { font-size: 12.5px; color: var(--ink-3); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { padding: 26px; }
.info-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.info-card h2 { margin-top: 16px; font-size: 16px; }
.info-card p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.settings-panel { max-width: 760px; margin-bottom: 20px; }
.settings-panel .panel-heading { padding-bottom: 20px; align-items: center; }
.settings-form { padding: 0 22px 22px; border-top: 1px solid var(--border); }
.settings-form .field:first-child { margin-top: 20px; }
.settings-form p { margin: -4px 0 20px; font-size: 13px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Modal & fields
   -------------------------------------------------------------------------- */
dialog {
  width: 640px; max-width: calc(100vw - 32px); max-height: 92vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 20px; letter-spacing: -.02em; }
.modal-head .eyebrow { margin-bottom: 4px; }
.modal-body { padding: 24px 26px; max-height: 66vh; overflow: auto; }
.modal-body > p { margin-bottom: 18px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--border); background: var(--surface-2); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; }
.field small { font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.field textarea { resize: vertical; min-height: 84px; }
.field select[multiple] { padding: 6px; }
.field select[multiple] option { padding: 7px 8px; border-radius: 4px; }
.field input[type=color] { height: 40px; padding: 4px; }
.two-col .field { margin-bottom: 16px; }
.modal-body .two-col { gap: 14px; }
.checkbox[hidden] { display: none; } .checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.form-error, .error { font-size: 13px; line-height: 1.55; color: var(--danger); }
.form-error:not(:empty) { margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); }
.builder-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; font-size: 13.5px; }
.builder-row { display: grid; grid-template-columns: 22px minmax(90px, 1fr) 150px auto 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.builder-row input, .builder-row select { font-size: 13px; padding: 8px 10px; }
.builder-row select { padding-right: 30px; }
.builder-row .checkbox { margin: 0; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.drag-handle { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-3); font-size: 11px; font-weight: 700; color: var(--ink-3); }
.form-section-label { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; margin: 4px 0 6px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 700; }
.report-author { margin-bottom: 20px; }
.report-detail { padding: 14px 0; border-top: 1px solid var(--border); }
.report-detail > span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.report-detail > p { margin-top: 6px; font-size: 14px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; }
.issue-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.issue-metrics > div { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.issue-metrics span { display: block; font-size: 12px; color: var(--ink-3); }
.issue-metrics strong { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.detail-heading { margin: 24px 0 10px; font-size: 14px; font-weight: 700; }
.modal-body .epic-row { padding: 12px 0; }
.modal-body .epic-row:hover { background: none; }
.timeline-entry { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.timeline-date { font-weight: 600; color: var(--ink); }
.timeline-date span { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.timeline-entry strong { font-size: 13.5px; font-weight: 600; }
.timeline-entry p { margin-top: 5px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.timeline-entry .tag { height: auto; padding: 5px 9px; margin-top: 8px; white-space: normal; }
.jira-source-note {
  display: flex; gap: 10px;
  margin-bottom: 18px; padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid #bfdbfe; background: #eff6ff;
  font-size: 13px; line-height: 1.6; color: #1e40af;
}

/* story multi-select */
.story-dropdown { border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); font-size: 13.5px; }
.story-dropdown summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; cursor: pointer; list-style: none; color: var(--ink); overflow-wrap: anywhere;
}
.story-dropdown summary::-webkit-details-marker { display: none; }
.story-dropdown summary::after {
  content: ""; width: 16px; height: 16px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .15s;
}
.story-dropdown[open] summary { border-bottom: 1px solid var(--border); }
.story-dropdown[open] summary::after { transform: rotate(180deg); }
.story-menu { padding: 10px; }
.story-menu input[type=search] { width: 100%; font-size: 13px; }
.story-options { max-height: 220px; margin-top: 8px; overflow-y: auto; }
.story-option { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 6px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.story-option:hover { background: var(--accent-soft); }
.story-option input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0; flex-shrink: 0; accent-color: var(--accent); }
.story-option strong { margin-right: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.story-option[hidden] { display: none; }
.story-empty { padding: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

/* toast */
#toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 100;
  max-width: 90vw; padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 40px -8px rgba(15, 23, 42, .5);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast[popover] { inset: auto; top: auto; right: auto; bottom: 24px; left: 50%; margin: 0; border: 0; overflow: visible; }   /* undo the browser's popover box */

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */
.login-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.login-story {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 56px;
  background: var(--side-bg);
  color: #cbd5e1;
}
.login-story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 500px at 15% 0%, rgba(99, 102, 241, .35), transparent 60%),
    radial-gradient(600px 500px at 100% 100%, rgba(45, 212, 191, .18), transparent 60%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .25));
}
.login-story::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
}
.login-story > * { position: relative; z-index: 1; }
.login-story .brand { padding: 0; }
.login-story .eyebrow { color: #a5b4fc; }
.login-story h1 { font-size: 46px; line-height: 1.1; font-weight: 700; letter-spacing: -.035em; color: #fff; }
.login-story p { margin-top: 20px; max-width: 460px; font-size: 15px; line-height: 1.7; color: #94a3b8; }
.login-story > small { font-size: 12.5px; color: #64748b; }
.login-art { display: grid; gap: 10px; max-width: 380px; margin-top: 40px; }
.login-art > div {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
  color: #a5b4fc;
}
.login-art > div:nth-child(2) { margin-left: 24px; margin-right: -24px; }
.login-art span { flex: 1; font-size: 14px; font-weight: 500; color: #e2e8f0; }
.login-art b { display: flex; color: #34d399; font-weight: 400; }
.login-form-wrap { display: grid; place-items: center; padding: 40px; background: var(--surface); }
.login-form { width: 380px; max-width: 100%; }
.login-form h2 { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.login-form > p { margin: 8px 0 28px; font-size: 14px; color: var(--ink-3); }
.login-form .field { margin-bottom: 16px; }
.login-form .field input { padding: 11px 13px; font-size: 14px; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 12px; color: var(--ink-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-note { display: block; margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
#login-error:not(:empty) { margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  .chart { height: 260px; }
  .donut { width: 184px; height: 184px; }
}

@media (max-width: 1240px) {
  main { padding: 26px 24px 0; }
  .topbar { padding: 0 24px; }
  .dashboard-row { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
  .team-card-grid { gap: 16px; }
  .role-pill { display: none; }
}

@media (max-width: 1000px) {
  h1 { font-size: 25px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-row, .bottom-row { grid-template-columns: 1fr; }
  .health-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .health-panel .panel-heading { grid-column: 1 / -1; }
  .health-panel .status-list { padding: 20px 22px; }
  .team-card-grid { grid-template-columns: 1fr; }
  .forms-grid { grid-template-columns: 1fr; }
  .integration-card { flex-wrap: wrap; }
  .integration-actions { flex-direction: row; width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .top-actions .today { display: none; }
  .login-story { padding: 36px; }
  .login-story h1 { font-size: 36px; }
}

@media (max-width: 720px) {
  :root { --side-w: 0px; --top-h: 56px; }
  .sidebar {
    position: sticky; top: 0; inset: auto;
    width: 100%; height: auto;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 12px;
    border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .sidebar:hover, .sidebar:focus-within { width: 100%; box-shadow: none; }
  .brand { padding: 0; }
  .brand > b, .sidebar:hover .brand > b { opacity: 1; }
  .workspace, .nav-label, .sidebar-bottom { display: none; }
  .sidebar nav { flex-direction: row; gap: 2px; overflow: auto; }
  .nav-group, .nav-group-items, .sidebar:hover .nav-group.closed .nav-group-items { display: contents; max-height: none; }
  .nav-group-head { display: none; }
  .nav-item, .sidebar:hover .nav-item { width: 42px; height: 40px; padding: 0; justify-content: center; }
  .nav-item b, .sidebar:hover .nav-item b { display: none; }
  .nav-item::before { display: none; }
  .nav-item em, .sidebar:hover .nav-item em { position: absolute; top: 2px; left: auto; right: 2px; margin: 0; height: 16px; line-height: 16px; min-width: 16px; padding: 0 4px; font-size: 10px; border: 2px solid var(--side-bg); box-sizing: content-box; }
  .main { margin: 0; }
  .topbar { position: static; padding: 0 16px; }
  .top-actions { gap: 8px; }
  .top-divider, .top-actions > .avatar, .header-profile { display: none; }
  main { padding: 20px 16px 0; }
  .page-heading { margin-bottom: 20px; }
  .heading-actions { flex-wrap: wrap; }
  .filters { flex-wrap: wrap; }
  .filter-right { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .filter-right .search-box { flex: 1 1 100%; } .filter-right select { flex: 1 1 0; min-width: 0; }
  .segmented button { padding: 0 10px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 28px; }
  .panel-heading { padding: 18px 16px 0; }
  .chart { margin-inline: 10px 14px; height: 200px; }
  .bars { gap: 6px; }
  .team-pulses, .status-list, .activity, .epic-row, td, th { padding-inline: 16px; }
  .panel-note { padding: 12px 16px; }
  .insight-banner { flex-wrap: wrap; padding: 16px; }
  .insight-banner .button { margin-left: 0; width: 100%; }
  .insight-banner > div:nth-child(2) { flex: 1; min-width: 180px; }
  footer { flex-direction: column; gap: 6px; }
  .health-panel { grid-template-columns: 1fr; }
  .roadmap-summary { gap: 12px; }
  .integration-card { padding: 20px; }
  .integration-logo { width: 52px; height: 52px; }
  .panel-heading .search { width: 150px; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 18px; }
  .modal-head { padding-block: 16px; }
  .builder-row { grid-template-columns: 22px minmax(70px, 1fr) 34px; }
  .builder-row select { grid-column: 2 / 3; }
  .builder-row .checkbox { grid-column: 2 / 3; }
  .builder-row .icon-button { grid-column: 3; grid-row: 1; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { padding: 24px 24px 32px; min-height: 0; }
  .login-story > div { margin-top: 28px; }
  .login-story h1 { font-size: 32px; }
  .login-story p, .login-story > small, .login-art { display: none; }
  .login-form-wrap { padding: 36px 24px; align-items: start; }
  .login-form { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Additions: pickers, chips, performance, company, invitations
   -------------------------------------------------------------------------- */
.ico.xs { width: 12px; height: 12px; stroke-width: 2.2; }
.tag.red { background: var(--danger-soft); color: var(--danger); }
.button.subtle { border-color: transparent; background: transparent; box-shadow: none; color: var(--ink-3); }
.button.subtle:hover { background: var(--surface-3); color: var(--ink); }
.text-button.danger { color: var(--danger); }
.text-button.danger:hover { background: var(--danger-soft); color: var(--danger); }
.row-actions { display: flex; align-items: center; gap: 14px; }
.you { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.avatar.more { background: var(--surface-3); color: var(--ink-2); font-size: 11px; }
.muted.tiny { font-size: 12px; }
em.danger { font-style: normal; color: var(--danger); font-weight: 600; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink-4); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.search-box .search { border: 0; padding: 9px 0; box-shadow: none !important; width: 220px; }
.mini-bar { display: inline-block; vertical-align: middle; width: 56px; height: 6px; margin-right: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mini-bar.wide { width: 90px; }
.mini-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* pickers */
.picker-field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.picker { position: relative; }
.picker-control {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 42px; padding: 6px 12px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); text-align: left; font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}
.picker-control:hover { border-color: #b6c2d3; }
.picker.open .picker-control, .picker-control:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }
.picker-control:disabled, .picker-control.disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.picker-control > .ico { color: var(--ink-4); transition: transform .15s; }
.picker.open .picker-control > .ico { transform: rotate(180deg); }
.picker-value { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.picker-value .placeholder { color: var(--ink-4); }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; line-height: 1.4; }
.chip b { font-weight: 700; white-space: nowrap; }
.chip i { display: grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 4px; color: var(--accent-ink); cursor: pointer; }
.chip i:hover { background: #c7d2fe; }
.chip.more { background: var(--surface-3); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.picker-menu { margin-top: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.picker-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--ink-4); }
.picker-search input { flex: 1; border: 0; padding: 4px 0; font-size: 13.5px; box-shadow: none !important; background: transparent; }
.picker-options { max-height: 240px; overflow-y: auto; padding: 6px; }
.picker-option { display: grid; grid-template-columns: 16px auto 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.picker-option:hover { background: var(--surface-2); }
.picker-option:has(input:checked) { background: var(--accent-soft); }
.picker-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.picker-option[hidden] { display: none; }
.picker-key { font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.picker-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.picker-meta { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); }
.picker-empty { padding: 14px 12px; font-size: 13px; color: var(--ink-3); }
.picker-foot { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--ink-3); }
.picker-foot .text-button { margin-left: auto; }
.picker-foot .button { height: 30px; padding: 0 12px; font-size: 12.5px; }
.jira-source-note { align-items: flex-start; }
.jira-source-note .ico { margin-top: 2px; flex-shrink: 0; }

/* modal variants */
dialog.wide { width: 760px; }
.invite-link { display: flex; gap: 8px; margin: 4px 0 18px; }
.invite-link input { flex: 1; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); }
.invite-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.invite-summary > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.invite-summary span { display: block; font-size: 12px; color: var(--ink-3); }
.invite-summary strong { display: block; margin-top: 4px; font-size: 14px; }
.panel-note.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; border: 1px solid var(--border); border-radius: var(--r-md); }
.modal-body .panel-note { display: flex; align-items: center; gap: 8px; margin-top: 4px; border: 1px solid var(--border); border-radius: var(--r-md); }
.builder-row { grid-template-columns: 22px minmax(90px, 1fr) 160px auto auto 34px; }

/* company */
.dept-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 14px; }
.dept-metrics > div { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.dept-metrics strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dept-metrics span { font-size: 12px; color: var(--ink-3); }
.dept-card dd { text-transform: none; }

/* integrations */
.integration-logo.mail { background: linear-gradient(135deg, #f97316, #db2777); box-shadow: 0 8px 20px -6px rgba(219, 39, 119, .45); }
.sync-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.sync-stats > div { padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.sync-stats span { display: block; font-size: 11.5px; color: var(--ink-3); }
.sync-stats strong { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.integration-actions .button { justify-content: center; }
.workspace-status b { font-weight: 600; }
.demo-note a { color: var(--accent); font-weight: 600; }

@media (max-width: 720px) {
  .sync-stats, .invite-summary { grid-template-columns: 1fr 1fr; }
  .builder-row { grid-template-columns: 22px minmax(70px, 1fr) 34px; }
  .builder-row select, .builder-row .checkbox, .builder-row .muted { grid-column: 2 / 3; }
  .picker-option { grid-template-columns: 16px auto 1fr; }
  .picker-meta { display: none; }
}

.field .chip b, .chip b { color: inherit; }

/* --------------------------------------------------------------------------
   Projects and access
   -------------------------------------------------------------------------- */
.project-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 6px; border: 1px solid #c7d2fe;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.project-chip.large { height: 40px; min-width: 56px; justify-content: center; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.scope-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; margin: 2px 0 2px 4px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: none;
}
.scope-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }
.projects-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.project-card { padding: 22px; }
.project-card .team-card-top { align-items: flex-start; gap: 12px; }
.project-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.project-title h2 { margin: 0; font-size: 17px; }
.project-title p { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); text-transform: capitalize; }
.project-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.project-progress strong { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-bar.full { flex: 1; width: auto; height: 8px; margin: 0; }
.dept-metrics.four { grid-template-columns: repeat(4, 1fr); margin: 14px 0; }
.project-card dl > div { align-items: center; }
.project-card dd { display: flex; flex-wrap: wrap; justify-content: flex-end; text-transform: none; }
.team-card dd .project-chip { margin-left: 4px; }
.flow-note { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.flow-note strong { color: var(--ink); }

.roadmap-group {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.roadmap-group strong { font-weight: 600; color: var(--ink); }
.roadmap-group small { margin-left: auto; font-size: 12px; color: var(--ink-3); }

.check-list { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; padding: 6px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); }
.check-list.tall { max-height: 340px; margin-top: 10px; }
.check-list > p { padding: 10px; font-size: 13px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.check-row:hover { background: var(--surface-2); }
.check-row:has(input:checked) { background: var(--accent-soft); }
.check-row[hidden] { display: none; }
.check-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.check-row small { margin-left: auto; font-size: 12px; white-space: nowrap; }
.team-icon.small { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }

.picker-projects { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.picker-projects button { height: 26px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.picker-projects button.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.picker-search.boxed { border: 1px solid var(--border-strong); border-radius: 8px; }
.picker-search.boxed:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.picker-foot.inline { margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; }
.picker-foot.inline .text-button + .text-button { margin-left: 0; }

@media (max-width: 720px) {
  .projects-grid { grid-template-columns: 1fr; }
  .dept-metrics.four { grid-template-columns: 1fr 1fr; }
}

.project-card dl { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--border); }
.project-card dl > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.project-card dl > div:last-child { border-bottom: 0; }
.project-card dt { color: var(--ink-3); white-space: nowrap; }
.project-card dd { margin: 0; }
.dept-metrics.four span { white-space: nowrap; }
.dept-metrics.four > div { padding: 10px; }

/* --------------------------------------------------------------------------
   Jira timeline, delete zones
   -------------------------------------------------------------------------- */
.filter-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.roadmap-summary .legend { margin-left: auto; gap: 0; font-size: 12px; }
.roadmap-summary .legend i { display: inline-block; width: 10px; height: 10px; margin: 0 6px 0 14px; border-radius: 3px; }
.roadmap-summary em.danger { font-weight: 600; }
.roadmap-sprint-header > .weeks { display: grid; text-align: left; }
.roadmap-sprint-header > .weeks span { padding: 10px 0 10px 6px; border-left: 1px solid var(--border); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.roadmap-row.jira { height: 72px; }
.roadmap-row.jira .roadmap-title { padding: 13px 22px; }
.roadmap-row.jira .roadmap-title small { gap: 8px; }
.roadmap-row.jira .roadmap-title small .epic-key { min-width: 0; font-size: 11.5px; }
.roadmap-track.timeline { display: block; }
.roadmap-track.timeline > i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--border); opacity: .7; }
.roadmap-track.timeline > i.month { border-left-color: var(--border-strong); opacity: 1; }
.roadmap-track.timeline > i.today { border-left: 2px solid var(--accent); opacity: 1; z-index: 2; }
.roadmap-track.timeline > i.today::before { content: ""; position: absolute; top: -1px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.roadmap-row.jira .roadmap-bar { top: 18px; height: 36px; min-width: 26px; z-index: 1; }
.roadmap-bar.open { border-right-style: dashed; border-top-right-radius: 0; border-bottom-right-radius: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--team-color) 10%, white) 70%, transparent); }
.roadmap-bar.estimated { border-left-style: dashed; }
.roadmap-bar.clip-left { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.roadmap-bar.clip-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.roadmap-group .text-button { margin: 0 0 0 4px; font-size: 12px; }
.issue-metrics.dates { margin-top: 10px; }
.jira-open { margin: 12px 0 0 !important; }
.inline-link { color: var(--accent); font-weight: 600; text-transform: none; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.panel-note.danger-zone.stack { align-items: flex-end; margin-top: 20px; padding: 14px 16px; border-color: #fecaca; background: #fff7f7; }
.danger-zone.stack > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.danger-zone.stack strong { font-size: 13.5px; color: var(--danger); }
.danger-zone.stack span { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.danger-zone.stack .field { margin: 8px 0 0; }
.danger-zone.stack .field > span { font-size: 12.5px; }
.text-button.danger { padding: 7px 12px; margin: 0; border: 1px solid #fecaca; background: #fff; border-radius: 8px; }
.text-button.danger.armed { background: var(--danger); border-color: var(--danger); color: #fff; }
td .text-button.danger, .row-actions .text-button.danger { padding: 4px 6px; border: 0; background: none; }

@media (max-width: 720px) {
  .roadmap-summary .legend { margin-left: 0; }
  .panel-note.danger-zone.stack { flex-direction: column; align-items: stretch; }
}

.roadmap-panel { overflow-x: auto; overflow-y: hidden; }
.roadmap-track.timeline > i.today::before { display: none; }
.roadmap-row.jira { overflow: hidden; }
.roadmap-row.jira .roadmap-title small { display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.roadmap-row.jira .roadmap-title small .epic-key { flex-shrink: 0; white-space: nowrap; }
.roadmap-row.jira .roadmap-title small > span { margin-left: auto; padding-left: 8px; flex-shrink: 0; }

/* getting started */
.onboarding { margin-bottom: 20px; }
.onboarding .panel-heading { align-items: center; padding-bottom: 16px; }
.onboarding-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.onboarding-step { display: grid; gap: 6px; justify-items: start; padding: 16px 18px; border: 0; border-right: 1px solid var(--border); background: none; text-align: left; transition: background .15s; }
.onboarding-step:last-child { border-right: 0; }
.onboarding-step:hover { background: var(--surface-2); }
.onboarding-step > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.onboarding-step.done > span { background: var(--good-soft); color: var(--good); }
.onboarding-step strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.onboarding-step.done strong { color: var(--ink-3); }
.onboarding-step small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.onboarding-step.done small { color: var(--good); }
@media (max-width: 1000px) { .onboarding-steps { grid-template-columns: 1fr; } .onboarding-step { grid-template-columns: 26px 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); } }

/* Jira people */
.jira-chip { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }
.person-row { gap: 12px; cursor: default; }
.person-row.locked { opacity: .72; }
.person-row .avatar { width: 30px; height: 30px; font-size: 10.5px; }
.person-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.person-main strong { font-size: 13.5px; font-weight: 600; }
.person-main small { margin: 0; font-size: 12px; color: var(--ink-3); white-space: normal; }
.person-main input { width: 100%; max-width: 340px; padding: 6px 9px; font-size: 12.5px; }
.person-tickets { min-width: 120px; font-size: 12.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.person-tickets strong { color: var(--ink); }
.person-row .tag { flex-shrink: 0; }
.sync-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.sync-result > div:first-child { display: grid; gap: 2px; min-width: 0; }
.sync-result strong { font-size: 13.5px; }
.sync-result small { font-size: 12.5px; color: var(--ink-3); }
.sync-result .invite-link { margin: 0; flex: 1; max-width: 420px; }
@media (max-width: 720px) { .person-row { flex-wrap: wrap; } .person-tickets { min-width: 0; text-align: left; } .sync-result { flex-direction: column; align-items: stretch; } }
.check-row .person-main input[type=email] { width: 100%; max-width: 360px; height: 32px; margin-top: 2px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; }

/* form builder: configurable fields */
.builder-heading { align-items: flex-end; gap: 16px; }
.builder-heading > div:first-child { display: grid; gap: 2px; }
.builder-heading small { font-size: 12.5px; }
.builder-card { margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.builder-card:focus-within { border-color: #c7d2fe; box-shadow: 0 0 0 3px var(--accent-ring); }
.builder-card .builder-row { grid-template-columns: 22px minmax(120px, 1fr) 190px auto auto auto; margin-bottom: 0; }
.builder-moves { display: inline-flex; gap: 2px; }
.builder-moves .icon-button { width: 28px; height: 28px; }
.builder-moves .icon-button.up svg { transform: rotate(180deg); }
.builder-moves .icon-button:disabled { opacity: .3; cursor: default; }
.builder-extra { margin: 10px 0 2px 30px; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.builder-extra.slim { padding: 8px 14px; }
.builder-extra.slim .checkbox { margin: 0; font-size: 12.5px; }
.builder-extra-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.option-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.option-item { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); overflow: hidden; }
.option-item:focus-within { border-color: var(--accent); }
.option-item input { flex: 1; min-width: 0; border: 0; padding: 7px 10px; font-size: 13px; box-shadow: none !important; }
.option-item .icon-button { width: 28px; height: 28px; border-radius: 0; }
.builder-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; font-size: 12.5px; }
.builder-extra > .builder-rule:first-child { margin-top: 0; }
.builder-rule .checkbox { margin: 0; font-size: 12.5px; }
.inline-select { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.inline-select select { padding: 6px 30px 6px 10px; font-size: 12.5px; }
.check-list.choices { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); max-height: none; }
[data-duration] { font-weight: 600; color: var(--good); }
[data-duration].error { color: var(--danger); }
@media (max-width: 720px) {
  .builder-card .builder-row { grid-template-columns: 22px minmax(0, 1fr); }
  .builder-card .builder-row > select, .builder-card .builder-row > .checkbox, .builder-card .builder-row > .builder-moves { grid-column: 2; }
  .builder-extra { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Issues
   -------------------------------------------------------------------------- */
.segmented.icons button { padding: 0 10px; display: grid; place-items: center; }
.issue-scope-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 16px; font-size: 13px; color: var(--ink-3); }
.issue-scope-note .text-button { margin: 0; }
.issue-board { display: grid; grid-template-columns: repeat(var(--cols), minmax(264px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.issue-column { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-3); }
.issue-column > header { display: grid; gap: 2px; padding: 12px 14px 10px; border-bottom: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); }
.issue-column > header > span { display: flex; align-items: center; gap: 8px; }
.issue-column > header i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.issue-column > header strong { font-size: 13.5px; font-weight: 700; }
.issue-column > header em { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); font-size: 11.5px; font-style: normal; font-weight: 700; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.issue-column > header small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issue-cards { display: grid; gap: 8px; padding: 10px; max-height: 68vh; overflow-y: auto; }
.issue-empty { padding: 18px 8px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.issue-card { display: grid; gap: 8px; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); text-align: left; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s, border-color .15s; }
.issue-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.issue-card-top { display: flex; align-items: center; gap: 6px; }
.issue-card-top .project-chip { margin-left: auto; }
.issue-card-top .tag { height: 20px; padding: 0 7px; font-size: 10.5px; }
.issue-num { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.issue-card > strong { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.issue-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.issue-who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issue-who .avatar { width: 22px; height: 22px; font-size: 9px; }
.issue-who.pending { color: var(--warn); font-weight: 600; }
.issue-who.pending i { width: 8px; height: 8px; border-radius: 50%; border: 2px dashed var(--warn); }
.issue-meta { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 11.5px; color: var(--ink-3); }
.issue-meta .ico { margin-left: 6px; }
.issue-meta em { margin-left: 8px; font-style: normal; }
.issue-jira, .issue-warn { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.issue-warn { color: var(--warn); font-weight: 600; }
.stage-pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 78%, black); font-size: 12px; font-weight: 600; white-space: nowrap; }
.stage-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
tr.row-link { cursor: pointer; }

/* issue dialog */
dialog.ticket-modal { width: 980px; }
dialog.ticket-modal .modal-body { max-height: 72vh; }
.stage-track { display: flex; gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow-x: auto; }
.stage-step { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.stage-step i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--border-strong); }
.stage-step.past { color: var(--ink-2); }
.stage-step.past i { border-color: var(--c); background: var(--c); }
.stage-step.current { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); opacity: 1; }
.stage-step.current i { border-color: var(--c); background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, white); }
.stage-step:not(:disabled):hover { background: var(--surface); color: var(--ink); }
.stage-step:disabled { cursor: default; opacity: 1; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.ticket-main .report-detail:first-child { border-top: 0; padding-top: 0; }
.ticket-side { display: grid; gap: 12px; position: sticky; top: 0; }
.side-block { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.side-block > span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.side-block small { font-size: 12px; color: var(--ink-3); }
.side-block p { font-size: 13px; }
.side-block select { width: 100%; }
.side-block dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.side-block dt { color: var(--ink-3); } .side-block dd { margin: 0; font-weight: 500; text-align: right; }
.button.full-width { width: 100%; }
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.attachment { display: grid; gap: 6px; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; font-size: 12px; color: var(--ink-2); }
.attachment img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--surface-3); }
.attachment.video { grid-column: span 2; }
.attachment video { width: 100%; max-height: 260px; display: block; background: #000; }
.attachment > span { padding: 0 10px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attachment.file { grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 12px; }
.attachment.file > span { padding: 0; display: grid; gap: 2px; }
.attachment.file strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink); }
.attachment:hover { border-color: #c7d2fe; }
.history { display: grid; gap: 2px; }
.history-item { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 8px 0; }
.history-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--ink-3); }
.history-item.comment .history-dot { background: var(--accent-soft); color: var(--accent); }
.history-item.jira .history-dot { background: #dbeafe; color: #1d4ed8; }
.history-item p { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.history-item p strong { color: var(--ink); } .history-item p b { font-weight: 600; color: var(--ink); }
.history-item em { margin-left: 6px; font-size: 12px; font-style: normal; color: var(--ink-4); }
.history-item blockquote { margin: 6px 0 0; padding: 10px 12px; border-radius: 0 10px 10px 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.comment-box { display: grid; gap: 8px; margin-top: 14px; padding: 10px; border: 1.5px dashed transparent; border-radius: var(--r-md); transition: border-color .15s, background .15s; }
.comment-box.over { border-color: var(--accent); background: var(--accent-soft); }
.comment-box textarea { width: 100%; resize: vertical; min-height: 44px; }
.comment-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment-actions .spacer { flex: 1; }
.comment-actions label.text-button { cursor: pointer; }
.comment-actions input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.edited-note { margin-top: -6px; font-size: 12px; }
.attachments.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.attachments.small .attachment img { height: 80px; }
.attachments.small .attachment.video { grid-column: span 2; }
.file-pill img { width: 26px; height: 26px; object-fit: cover; border-radius: 5px; background: var(--surface-3); }
.file-list.kept { margin: 0 0 8px; }
.file-list.kept:empty { display: none; }
.file-pill.removed { opacity: .55; }
.file-pill.removed b { text-decoration: line-through; }
.file-pill.removed button { color: var(--accent); }

/* new issue */
.dropzone { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-3); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone strong { font-size: 13.5px; color: var(--ink); } .dropzone small { font-size: 12px; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-list:empty { display: none; }
.file-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 12.5px; }
.file-pill b { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill em { font-style: normal; color: var(--ink-3); }
.file-pill button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 5px; background: none; color: var(--ink-3); }
.file-pill button:hover { background: var(--danger-soft); color: var(--danger); }
#upload-status:empty { display: none; }

/* workflow editor */
.builder-card .builder-row.stage-row { grid-template-columns: 22px minmax(140px, 1fr) 230px 44px auto; }
.stage-row input[type=color] { width: 44px; height: 34px; padding: 3px; }
.owner-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.owner-lists > div > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.owner-lists .check-list { max-height: 132px; }
.owner-lists .check-row { padding: 6px 8px; font-size: 13px; }
/* the issue form has no blocker or work-time rules */
dialog.issue-kind .builder-rule, dialog.issue-kind .builder-extra.slim { display: none; }
dialog.issue-kind .builder-extra:not(:has(.option-list)) { display: none; }

@media (max-width: 900px) {
  .ticket-layout { grid-template-columns: 1fr; }
  .ticket-side { position: static; }
  .owner-lists { grid-template-columns: 1fr; }
  .attachment.video { grid-column: span 1; }
}
@media (max-width: 720px) {
  .issue-board { grid-template-columns: repeat(var(--cols), 82vw); }
  .builder-card .builder-row.stage-row { grid-template-columns: 22px minmax(0, 1fr); }
  .stage-row > select, .stage-row > input[type=color], .stage-row > .builder-moves { grid-column: 2; }
  .comment-box { flex-direction: column; align-items: stretch; }
}

/* issues: layout fixes */
.issue-board { grid-template-columns: repeat(var(--cols), minmax(232px, 1fr)); }
.issue-cards { overflow-x: hidden; }
.issue-card, .issue-card > * { min-width: 0; }
.issue-card-foot { min-width: 0; }
.issue-who { flex: 1 1 auto; }
.issue-who.pending { overflow: hidden; text-overflow: ellipsis; }
.issue-who.pending i { flex-shrink: 0; }
.side-block .stage-pill { justify-self: start; }
.issue-card-top .tag::before { display: none; }

/* report approval */
.review-filters { margin-top: -6px; }
.segmented button em { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; font-style: normal; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.segmented .selected em { background: var(--accent-soft); border-color: #c7d2fe; color: var(--accent-ink); }
tr.day-row td { padding: 10px 22px; background: var(--surface-2); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
tr.day-row:hover { background: var(--surface-2); }
tr.day-row strong { font-size: 13px; font-weight: 700; color: var(--ink); }
tr.day-row span { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
tbody + tbody tr.day-row td { border-top: 1px solid var(--border); }
.return-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); font-size: 12px; line-height: 1.45; }
.return-note .ico { margin-top: 2px; }
.text-button.approve { color: var(--good); }
.text-button.approve:hover { background: var(--good-soft); color: var(--good); }
.review-banner { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.review-banner > div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.review-banner.pending { border-color: #fde68a; background: #fffbeb; }
.review-banner.approved { border-color: #bbf7d0; background: #f0fdf4; }
.review-banner.returned { border-color: #fecaca; background: #fff7f7; }
.review-box { margin-top: 20px; padding: 16px; border: 1px solid #c7d2fe; border-radius: var(--r-md); background: var(--accent-soft); }
.review-box .field { margin-bottom: 12px; }
.review-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* action cells stay real table cells */
td.row-actions { display: table-cell; white-space: nowrap; text-align: right; }
td.row-actions > * { display: inline-flex; vertical-align: middle; margin: 0 0 0 12px; }
td.row-actions > *:first-child { margin-left: 0; }
.report-summary { min-width: 200px; }
table:has(tr.day-row) th, table:has(tr.day-row) td { padding-inline: 14px; }
table:has(tr.day-row) th:first-child, table:has(tr.day-row) td:first-child { padding-left: 22px; }
table:has(tr.day-row) td:last-child { padding-right: 22px; }
table:has(tr.day-row) .report-summary { min-width: 180px; }
@media (max-width: 1400px) { table:has(tr.day-row) th:nth-child(5), table:has(tr.day-row) tr:not(.day-row) td:nth-child(5) { display: none; } }

/* ShipWoven wordmark */
.brand-accent { color: #a5b4fc; }
.brand > b { letter-spacing: -.025em; }
.brand-mark .ico { stroke-width: 2.2; }

/* issue board: drag and drop */
.board-hint { display: flex; align-items: center; gap: 6px; margin: -8px 0 12px; font-size: 12.5px; color: var(--ink-3); }
.issue-card { cursor: pointer; user-select: none; }
.issue-card[draggable=true] { cursor: grab; }
.issue-card[draggable=true]:active { cursor: grabbing; }
.issue-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.issue-card.dragging { opacity: .4; transform: rotate(1.5deg) scale(.98); box-shadow: none; }
.issue-column { transition: background .15s, box-shadow .15s; }
body.is-dragging .issue-column .issue-cards { min-height: 120px; }
.issue-column.over { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.issue-column.over .issue-cards::after { content: "Drop here"; display: block; padding: 14px; border: 1.5px dashed var(--accent); border-radius: var(--r-md); text-align: center; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }

/* resources: documentation and credentials */
.resource-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.resource-search { flex: 1; max-width: 420px; }
.resource-section { margin-bottom: 24px; }
.resource-section > .panel-heading { margin-bottom: 12px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.doc-card { display: grid; gap: 8px; align-content: start; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.doc-card:hover, .doc-card:focus-visible { border-color: #c7d2fe; box-shadow: var(--shadow-md); outline: none; }
.doc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.doc-card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.doc-card p { font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.doc-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.doc-meta .text-button { margin-left: auto; }
.doc-body { font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.doc-body p { margin: 0 0 12px; } .doc-body h3, .doc-body h4, .doc-body h5 { margin: 18px 0 8px; font-weight: 700; letter-spacing: -.01em; } .doc-body h3 { font-size: 18px; } .doc-body h4 { font-size: 16px; } .doc-body h5 { font-size: 14.5px; }
.doc-body ul, .doc-body ol { margin: 0 0 12px 22px; } .doc-body li { margin: 3px 0; }
.doc-body code, .secret-value, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.doc-body code { padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); }
.doc-body pre { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-md); background: #0b1220; color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; overflow: auto; white-space: pre; }
.doc-body a { color: var(--accent); font-weight: 600; }
.doc-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; resize: vertical; }
.secrets td { vertical-align: top; }
.secret-cell { min-width: 220px; }
.secret-mask { letter-spacing: 2px; color: var(--ink-3); }
.secret-value { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); word-break: break-all; user-select: all; }
.secret-notes { display: block; margin-top: 6px; white-space: pre-wrap; color: var(--ink-2); }
.secret-cell .row-actions { margin-top: 6px; }
.icon-button.tiny { width: 22px; height: 22px; vertical-align: middle; }
.password-input { display: flex; gap: 8px; } .password-input input { flex: 1; }
.access-table select { min-width: 150px; }
.vault-unlock { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.vault-unlock > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; } .vault-unlock > div .ico { grid-row: span 2; color: var(--accent); } .vault-unlock > div small { color: var(--ink-3); }
.vault-unlock input { min-width: 200px; } .vault-unlock .error { grid-column: 1 / -1; } .vault-unlock .error:empty { display: none; }
.vault-keys { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 12.5px; color: var(--ink-3); } .vault-keys span { display: inline-flex; align-items: center; gap: 6px; }
.kit-box { margin: 14px 0; padding: 14px 16px; border-radius: var(--r-md); background: #0b1220; color: #e2e8f0; text-align: center; } .kit-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .04em; word-break: break-all; user-select: all; }
@media (max-width: 720px) { .vault-unlock { grid-template-columns: 1fr; } }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 4px 2px 12px; }
.section-heading p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.user-cell { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.vault-unlock { margin: 14px 22px; }
.vault-keys { margin: 0 22px 12px; }
.resource-section .panel-note { border-top: 0; border-bottom: 1px solid var(--border); }
/* reporting compliance */
.reporting-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid; }
.reporting-notice > div { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.reporting-notice > div > .ico { flex-shrink: 0; margin-top: 2px; width: 22px; height: 22px; }
.reporting-notice strong { display: block; font-size: 14px; font-weight: 700; }
.reporting-notice p { margin-top: 3px; font-size: 13px; line-height: 1.5; }
.reporting-notice.missing { border-color: #fca5a5; background: #fff1f2; color: #991b1b; } .reporting-notice.missing p { color: #b91c1c; }
.reporting-notice.due { border-color: #fde68a; background: #fffbeb; color: #92400e; } .reporting-notice.due p { color: #b45309; }
.reporting-notice .button { flex-shrink: 0; }
.missed { color: var(--danger); font-weight: 600; } .ok { color: var(--good); font-weight: 600; }

/* --------------------------------------------------------------------------
   Notification centre
-------------------------------------------------------------------------- */
.notify { position: relative; }
.notify-bell { position: relative; }
.notify-bell.has-unread { color: var(--accent); }
.notify-bell em {
  position: absolute; top: 1px; right: 0;
  min-width: 15px; height: 15px; padding: 0 3px;
  display: grid; place-items: center;
  border-radius: 999px; border: 2px solid var(--surface);
  background: var(--danger); color: #fff;
  font-size: 9px; font-style: normal; font-weight: 700; line-height: 1;
}
.notify-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  width: 380px; max-width: calc(100vw - 32px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.notify-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notify-head strong { font-size: 13px; font-weight: 700; }
.notify-list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 460px); overflow-y: auto; }
.notify-list li + li { border-top: 1px solid var(--border); }
.notify-list button {
  width: 100%; display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border: 0; background: none; text-align: left; cursor: pointer;
}
.notify-list button:hover { background: var(--surface-2); }
.notify-list li.unread { background: var(--accent-soft); }
.notify-list li.unread:hover button { background: transparent; }
.notify-icon { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); }
.notify-icon.mention, .notify-icon.assign { background: var(--accent-soft); color: var(--accent); }
.notify-icon.note { background: #fef2f2; color: var(--danger); }
.notify-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink); }
.notify-body small { font-size: 12px; color: var(--ink-3); }
.notify-body .clamp { font-size: 12px; color: var(--ink-2); font-style: italic; }
.notify-list em { flex-shrink: 0; font-style: normal; font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.notify-dot { flex-shrink: 0; width: 7px; height: 7px; margin-top: 5px; border-radius: 999px; background: var(--accent); }
.notify-empty { padding: 30px 22px; text-align: center; color: var(--ink-3); }
.notify-empty .ico { width: 28px; height: 28px; color: var(--ink-4); }
.notify-empty strong { display: block; margin: 8px 0 4px; font-size: 13px; color: var(--ink-2); }
.notify-empty p { font-size: 12px; line-height: 1.5; }
.mention { color: var(--accent); font-weight: 600; }
@media (max-width: 720px) { .notify-panel { position: fixed; top: 58px; right: 12px; left: 12px; width: auto; } }
@media (max-width: 720px) { .reporting-notice { flex-direction: column; align-items: stretch; } }
/* days off calendar */
.cal { margin: 8px 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .cal-head strong { font-size: 14px; }
.cal-head #cal-prev .ico { transform: rotate(90deg); } .cal-head #cal-next .ico { transform: rotate(-90deg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); text-align: center; padding: 4px 0; }
.cal-day { position: relative; display: grid; align-content: start; justify-items: center; gap: 3px; height: 44px; padding: 5px 0 0; border: 1px solid transparent; border-radius: 8px; background: var(--surface); font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.cal-day.pad { background: transparent; cursor: default; } .cal-day.weekend { color: var(--ink-4); } .cal-day:hover:not(.pad) { border-color: #c7d2fe; }
.cal-day.today b { color: var(--accent); font-weight: 700; } .cal-day.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-ring); }
.cal-day i { display: flex; gap: 3px; } .cal-day em, .off-dot, .cal-legend em { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cal-day em.all, .off-dot.all, .cal-legend em.all { background: #7c3aed; } .cal-day em.department, .off-dot.department, .cal-legend em.department { background: #db2777; } .cal-day em.team, .off-dot.team, .cal-legend em.team { background: #0d9488; } .cal-day em.user, .off-dot.user, .cal-legend em.user { background: var(--accent); }
.cal-day em.requested, .off-dot.requested, .cal-legend em.requested { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); } .off-dot.declined { background: var(--ink-4); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--ink-3); } .cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.off-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; } .off-row > div { flex: 1; min-width: 0; } .off-row .off-dot { flex-shrink: 0; width: 9px; height: 9px; }
.off-list { max-height: 260px; overflow: auto; }
.policy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; } .policy-row select { max-width: 260px; }
.off-target { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .off-target { grid-template-columns: 1fr; } }
.cal-day.holiday { background: #fffbeb; border-color: #fde68a; } .cal-day.holiday small { font-size: 9.5px; line-height: 1.1; color: #92400e; text-align: center; padding: 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cal-day.holiday { height: 52px; }
.off-dot.holiday, .cal-legend em.holiday { background: #f59e0b; }
.holiday-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.holiday-list { max-height: 220px; overflow: auto; margin-bottom: 8px; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.clamp.two { -webkit-line-clamp: 2; line-clamp: 2; }
.read-more { margin-top: 4px; font-size: 12px; }
.return-note.signed { background: var(--accent-soft); color: var(--accent-ink); }
.new-dot { flex-shrink: 0; margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; }
.review-note { display: flex; gap: 10px; margin: -6px 0 18px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid #c7d2fe; background: var(--accent-soft); }
.review-note.returned { border-color: #fecaca; background: #fff7f7; } .review-note > .ico { flex-shrink: 0; margin-top: 2px; color: var(--accent); } .review-note.returned > .ico { color: var(--danger); }
.review-note span { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); } .review-note p { margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.reporting-notice.comment { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; } .reporting-notice.comment p { color: #4338ca; }
.note-list { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.note-list li { display: grid; gap: 1px; } .note-list .clamp { -webkit-line-clamp: 1; line-clamp: 1; opacity: .85; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.note-list strong { display: inline; font-size: inherit; }
.note-list .link-button { text-decoration: none; } .note-list .link-button:hover strong { text-decoration: underline; text-underline-offset: 2px; }
/* reviewer comments: one line per report, no comment text */
.reporting-notice.notes { align-items: flex-start; } .reporting-notice.notes > div { flex: 1; }
.notes-body { flex: 1; min-width: 0; }
.note-rows { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 6px; }
.note-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(99, 102, 241, .18); }
.reporting-notice.missing .note-rows li { border-color: rgba(220, 38, 38, .18); }
.note-when { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--ink-2); } .note-when strong { display: inline; font-size: inherit; color: var(--ink); }
.note-when .ico { flex-shrink: 0; }
.button.small { height: 30px; padding: 0 12px; font-size: 12.5px; flex-shrink: 0; }
.reporting-notice.notes .text-button { margin-top: 4px; }
@media (max-width: 720px) { .note-rows li { flex-direction: column; align-items: stretch; } }
.policy-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); cursor: pointer; }
.policy-toggle input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.policy-toggle span { display: grid; gap: 4px; } .policy-toggle strong { font-size: 14px; } .policy-toggle small { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.inline-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid #fecaca; background: #fff1f2; color: #991b1b; font-size: 13.5px; line-height: 1.5; }
.inline-alert .ico { flex-shrink: 0; margin-top: 2px; }
/* hidden file inputs stay inside their own label, so they never stretch a dialog's scroll area */
.comment-actions label.text-button, .dropzone, .password-input { position: relative; }

/* --------------------------------------------------------------------------
   Resources: tabs, documentation cards, finance, access grants
-------------------------------------------------------------------------- */
.resource-tabs { display: flex; gap: 4px; margin: 0 0 18px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.resource-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ink-3); font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.resource-tabs button:hover { color: var(--ink); }
.resource-tabs button.selected { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.resource-tabs .count { margin-left: 2px; }
/* documentation cards: text kept inside the card, lines clamped, footer at the bottom */
.doc-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.doc-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; min-height: 190px; }
.doc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.doc-card-top .tag { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-card-top small { flex-shrink: 0; white-space: nowrap; }
.doc-card h3 { font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.doc-card p { flex: 1; font-size: 13px; line-height: 1.6; color: var(--ink-3); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.doc-card > small { padding-top: 10px; border-top: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* finance */
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.fin-filters .picker-search { flex: 1 1 260px; min-width: 200px; }
.fin-filters select { width: auto; min-width: 150px; }
.fin-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); } .fin-date input { width: 150px; }
.fin-stats { margin: 18px 22px; }
.fin-value { font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.fin-table td { vertical-align: top; } .fin-table .num { text-align: right; white-space: nowrap; }
.fin-row { cursor: pointer; } .fin-row:hover td { background: var(--surface-2); }
.fin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.fin-breakdown td.num { text-align: right; white-space: nowrap; }
.fin-amount { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.fin-amount strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.fin-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 16px; }
.fin-detail dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); } .fin-detail dd { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.fin-actions { margin-top: 16px; justify-content: flex-end; }
@media (max-width: 900px) { .fin-grid, .three-col, .fin-detail { grid-template-columns: 1fr; } }
.receipt-count { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* access: departments, teams and people against projects, the report form or resources */
#modal.access-modal { width: min(1120px, calc(100vw - 32px)); }
.access-modal .modal-body { display: flex; flex-direction: column; max-height: calc(92vh - 180px); }
.access-modal .modal-body > p { flex-shrink: 0; margin-bottom: 14px; }
.am-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-shrink: 0; }
.am-views .count { margin-left: 4px; }
#am-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: 12px; }
#am-body > .panel-note { flex-shrink: 0; margin: 0; }
.am-scroll { flex: 1 1 auto; min-height: 180px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: auto; }
.am-legend { flex-shrink: 0; }
.access-matrix { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.access-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.access-matrix tbody th, .access-matrix td { padding: 7px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; background: var(--surface); white-space: normal; }
.access-matrix th { border-top: 0; }
.access-matrix tbody th { text-transform: none; letter-spacing: normal; font-size: 13px; color: var(--ink-2); }
.access-matrix th:first-child { position: sticky; left: 0; z-index: 1; min-width: 230px; max-width: 280px; text-align: left; font-weight: 400; box-shadow: 1px 0 0 var(--border); }
.access-matrix thead th:first-child { z-index: 3; }
.access-matrix tr:last-child > * { border-bottom: 0; }
.access-matrix td { min-width: 168px; }
.access-matrix .am-dept > * { background: var(--surface-2); }
.access-matrix .am-dept:not(:first-child) > * { border-top: 2px solid var(--border-strong); }
.am-who, .am-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; }
.am-who > span:last-child, .am-toggle > span:last-child { display: grid; min-width: 0; }
.am-who strong, .am-toggle strong { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-who small, .am-toggle small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.am-who .avatar { width: 26px; height: 26px; font-size: 10px; flex-shrink: 0; }
.am-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.am-toggle { width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.am-toggle:disabled { cursor: default; }
.am-toggle > .ico { flex-shrink: 0; color: var(--ink-3); transform: rotate(-90deg); transition: transform .15s; }
.am-toggle[aria-expanded="true"] > .ico { transform: none; }
.am-toggle:disabled > .ico { visibility: hidden; }
.am-person.depth-1 th:first-child { padding-left: 24px; }
.am-person.depth-2 th:first-child { padding-left: 46px; }
.am-cell { display: grid; gap: 3px; }
.am-cell select { width: 100%; height: 32px; padding: 0 28px 0 10px; font-size: 12.5px; border-radius: 7px; border: 1px solid var(--border-strong); background-color: var(--surface); color: var(--ink-3); }
.am-cell.on select, .am-cell.on .am-value { color: var(--good); font-weight: 600; }
.am-cell.on select { background-color: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.am-cell.set select { border-width: 2px; border-color: var(--accent); }
.am-cell.set.on select { border-color: var(--good); }
.am-value { display: inline-flex; align-items: center; height: 32px; padding: 0 2px; font-size: 12.5px; color: var(--ink-3); }
.am-up { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--good); white-space: nowrap; }
.am-up .ico { transform: rotate(-45deg); }
.am-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.am-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.am-legend .ico { transform: rotate(-45deg); color: var(--good); }
.am-dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border-strong); }
.am-dot.on { background: var(--good-soft); border-color: var(--good); }
.am-dot.set { border: 2px solid var(--accent); }
.am-exceptions { display: block; min-height: 0; }
.am-exception { display: flex; align-items: center; gap: 12px; padding: 9px 14px; font-size: 13px; }
.am-exception + .am-exception { border-top: 1px solid var(--border); }
.am-exc-who { display: grid; flex: 1; min-width: 0; } .am-exc-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .am-exc-who small { font-size: 11.5px; color: var(--ink-3); }
.am-exc-what { display: inline-flex; align-items: center; gap: 8px; }
.am-none { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.text-button.inline { height: auto; padding: 0; }
@media (max-width: 720px) {
  .access-matrix th:first-child { min-width: 170px; max-width: 190px; }
  .access-matrix td { min-width: 150px; }
  .am-exception { flex-wrap: wrap; }
}

/* finance: who paid and what a cost belongs to, the transfers behind a payment, and the import */
.org-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.org-picker [hidden] { display: none; }
.org-picker [data-org-other] { grid-column: span 2; }
.tx-rows { display: grid; gap: 8px; }
.tx-rows:empty { display: none; }
.tx-row { display: grid; grid-template-columns: 130px minmax(0, 1.4fr) 100px minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
#fin-tx > .text-button { justify-self: start; margin-top: 4px; }
.tx-list { display: grid; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-top: 6px; }
.tx-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px minmax(0, 1fr); gap: 12px; padding: 9px 14px; font-size: 13px; align-items: center; }
.tx-item + .tx-item { border-top: 1px solid var(--border); }
.tx-item .num { text-align: right; }
.receipt-missing { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 11.5px; font-weight: 600; }
#modal.import-modal { width: min(1320px, calc(100vw - 32px)); }
.import-paste textarea { width: 100%; min-height: 150px; font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; }
.import-actions { display: flex; align-items: center; gap: 14px; margin: 12px 0 16px; }
.import-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 12px; font-size: 13px; }
.import-bar #import-summary { margin-right: auto; }
.import-modal .modal-body { display: flex; flex-direction: column; max-height: calc(92vh - 180px); }
.import-modal .modal-body > * { flex-shrink: 0; }
.import-modal .modal-body > .import-scroll { flex: 1 1 auto; min-height: 200px; }
.import-scroll { border: 1px solid var(--border); border-radius: var(--r-md); overflow: auto; }
.import-table { margin: 0; font-size: 12.5px; }
.import-table th { position: sticky; top: 0; z-index: 1; padding: 9px 8px; border-top: 0; }
.import-table td { padding: 6px 8px; vertical-align: top; white-space: normal; }
.import-table input:not([type=checkbox]), .import-table select { width: 100%; height: 32px; padding: 0 8px; font-size: 12.5px; }
.import-table td > input + input { margin-top: 4px; }
.import-table td:nth-child(3) { min-width: 138px; } .import-table td:nth-child(4) { min-width: 190px; } .import-table td:nth-child(5) { min-width: 140px; }
.import-table td:nth-child(6) { min-width: 110px; } .import-table td:nth-child(7), .import-table td:nth-child(8) { min-width: 170px; } .import-table td:nth-child(9) { min-width: 96px; }
.import-amount { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 4px; }
.import-tx { min-width: 150px; } .import-tx .mono { display: block; font-size: 11.5px; white-space: nowrap; }
.import-check { min-width: 170px; max-width: 200px; } .import-check small { display: block; line-height: 1.4; }
.import-warn { color: var(--warn); } .import-warn + .import-warn { margin-top: 3px; }
.import-table tr.has-error td { background: color-mix(in srgb, var(--danger-soft) 45%, var(--surface)); }
.danger-text { color: var(--danger); font-weight: 600; }
.ok-text { display: inline-flex; align-items: center; gap: 4px; color: var(--good); font-weight: 600; }
@media (max-width: 720px) {
  .org-picker { grid-template-columns: 1fr; } .org-picker [data-org-other] { grid-column: auto; }
  .tx-row { grid-template-columns: 1fr 1fr; } .tx-row [data-tx=note] { grid-column: 1; }
  .tx-item { grid-template-columns: 1fr 1fr; }
}
.login-notice { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 500; }
/* hours worked against the work schedule */
.hv-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 14px; }
.hours-table th:not(:first-child), .hours-table td:not(:first-child) { text-align: center; }
.hours-table th:not(:first-child):not(:last-child) { padding-inline: 4px; }
.hours-table td.hv, .hours-table td.hv-off, .hours-table td.hv-empty { padding: 10px 4px; min-width: 52px; }
.hours-table td:first-child { padding-right: 12px; }
.hours-table td.hv strong { display: block; font-size: 13.5px; }
.hours-table td.hv small, .hours-table td.hv-off small { display: block; font-size: 11.5px; font-weight: 600; }
.hours-table td.hv.over { background: color-mix(in srgb, var(--purple-soft) 70%, transparent); } .hours-table td.hv.over small { color: var(--purple); }
.hours-table td.hv.under { background: color-mix(in srgb, var(--danger-soft) 60%, transparent); } .hours-table td.hv.under small { color: var(--danger); }
.hours-table td.hv.even small { color: var(--good); }
.hours-table td.hv-off { color: var(--ink-3); font-size: 12px; background: var(--surface-2); }
.hours-table td.hv-empty { color: var(--ink-4); }
.hours-table td.hv-total { text-align: left !important; white-space: nowrap; min-width: 150px; padding-inline: 14px; }
.hours-table td.hv-total .tag { margin-top: 4px; }
.hv-team { display: block; margin-top: 3px; }
.reporting-block[hidden] { display: none; }
.reporting-block > small { display: block; margin-top: -4px; margin-bottom: 8px; font-size: 12px; }
.reporting-cell { display: grid; gap: 2px; font-size: 13px; } .reporting-cell small b { color: var(--accent-ink); font-weight: 600; }
/* issue workflow: who may move issues into a stage, the board while dragging, and the stage audit */
.movers { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.movers-head { display: grid; gap: 2px; margin-bottom: 8px; } .movers-head strong { font-size: 13px; }
.owner-lists.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.owner-lists.three .check-list { max-height: 170px; overflow: hidden auto; }
.owner-lists.three .check-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-lists.three .check-row small { min-width: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.owner-lists.three > div > span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 720px) { .owner-lists.three { grid-template-columns: 1fr; } }
.issue-column.drop-no { opacity: .45; position: relative; }
.issue-column.drop-ok { outline: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -2px; }
.issue-column.drop-no::before, .issue-column.drop-ok::before { content: attr(data-drop-why); position: absolute; left: 10px; right: 10px; top: 74px; z-index: 2; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; text-align: center; pointer-events: none; }
.issue-column.drop-no::before { background: var(--surface); color: var(--danger); border: 1px solid var(--danger-soft); }
.issue-column.drop-ok::before { background: var(--accent-soft); color: var(--accent-ink); }
.issue-column { position: relative; }
.stage-audit { margin: 0; font-size: 12.5px; }
.stage-audit td { white-space: normal; padding: 9px 12px; vertical-align: top; }
.stage-audit tr.back td { background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
.stage-audit tr.override td { background: color-mix(in srgb, var(--purple-soft) 55%, transparent); }
.stage-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c); }
.audit-flag { display: inline-block; padding: 1px 6px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 600; }
.audit-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; } .audit-filters select { width: auto; min-width: 150px; } .audit-filters .button { margin-left: auto; }
.audit-scroll { border: 1px solid var(--border); border-radius: var(--r-md); max-height: calc(92vh - 330px); }
.move-why { margin: 8px 0 0; font-size: 12px; }
/* issue workflow editor: forward and backward rules per stage, folded under each stage */
.stage-rules { margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.stage-rules > summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.stage-rules > summary::-webkit-details-marker { display: none; }
.stage-rules > summary > span { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.stage-rules > summary > small { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--ink-3); }
.stage-rules > summary::after { content: '▾'; flex-shrink: 0; color: var(--ink-3); transition: transform .15s; }
.stage-rules[open] > summary::after { transform: rotate(180deg); }
.stage-rules[open] > summary { border-bottom: 1px solid var(--border); }
.rule-block { padding: 12px; }
.rule-block + .rule-block { border-top: 1px dashed var(--border); }
.rule-block.back { background: color-mix(in srgb, var(--warn-soft) 30%, transparent); border-radius: 0 0 8px 8px; }
.rule-block.back .movers-head + .owner-lists, .back-targets + .movers-head { margin-top: 12px; }
.back-targets { display: flex; flex-wrap: wrap; gap: 6px; }
.back-targets .check-row { padding: 6px 10px; border: 1px solid var(--border); background: var(--surface); }
.stage-card.just-added { animation: stage-added 1.6s ease-out; }
@keyframes stage-added { from { box-shadow: 0 0 0 3px var(--accent); } to { box-shadow: 0 0 0 3px transparent; } }
@media (max-width: 720px) { .stage-rules > summary { flex-wrap: wrap; } .stage-rules > summary > small { order: 3; flex-basis: 100%; margin-left: 0; white-space: normal; } .stage-rules > summary::after { margin-left: auto; } }
.nobody-row { margin-bottom: 8px; border: 1px dashed var(--border-strong); }
.nobody-row:has(input:checked) { border-style: solid; border-color: var(--danger); background: var(--danger-soft); }
.nobody-row small { white-space: normal; text-align: right; }
.owner-lists.locked { opacity: .45; pointer-events: none; }
@media (max-width: 720px) { .nobody-row { flex-wrap: wrap; } .nobody-row small { flex-basis: 100%; margin-left: 26px; text-align: left; } }
/* import preview: each payment as it will be recorded */
.import-hint { margin: 0 0 10px; font-size: 13px; }
.import-modal .modal-body > .import-cards { flex: 1 1 auto; min-height: 200px; overflow: auto; }
.import-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; align-content: start; padding: 2px; }
.import-card { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.import-card.has-error { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger-soft); }
.import-card.off { opacity: .5; }
.import-card-head { display: flex; align-items: flex-start; gap: 10px; }
.import-card-head .check-row { padding: 4px 6px; font-weight: 600; flex-shrink: 0; }
.import-card-head .import-status { flex: 1; min-width: 0; font-size: 12.5px; padding-top: 5px; } .import-card-head .import-status small { display: block; line-height: 1.4; }
.import-card-head .button { flex-shrink: 0; height: 32px; }
.import-card .fin-amount { margin: 0; padding: 10px 12px; } .import-card .fin-amount strong { font-size: 20px; } .import-card .fin-amount span { min-width: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.import-card .fin-detail { margin: 0; gap: 8px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .import-card .fin-detail dd { font-size: 13px; }
.import-card .tx-list { margin: 0; } .import-card .tx-item { grid-template-columns: 70px minmax(0, 1fr) auto; padding: 7px 10px; font-size: 12.5px; } .import-card .tx-item small { grid-column: 2 / -1; margin-top: -6px; }
.import-card .tx-item .num:empty { display: none; }
.import-notes { margin: 0; font-size: 12.5px; }
.import-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.import-table td:first-child { white-space: nowrap; } .import-table td:first-child .icon-button { width: 28px; height: 28px; margin-left: 4px; vertical-align: middle; }
.import-source { margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.import-source summary { padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 600; } .import-source p { margin: 0; padding: 0 12px 10px; font-size: 12.5px; }
@media (max-width: 720px) { .import-bar .segmented { order: -1; } .import-card .fin-detail { grid-template-columns: 1fr 1fr; } .import-modal .modal-body { display: block; } .import-modal .modal-body > .import-cards { overflow: visible; } }
.field[hidden] { display: none; }
.cost-trail { display: block; line-height: 1.5; } .cost-trail svg { display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--good); } .cost-trail strong { color: var(--ink-2); font-weight: 600; }
.import-what { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 6px; }
.import-what select, .import-what input { width: 100%; height: 34px; padding: 0 8px; font-size: 13px; }
.import-what select.needs { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.import-table .import-what { grid-template-columns: 1fr; min-width: 200px; } .import-table .import-what select, .import-table .import-what input { height: 32px; font-size: 12.5px; }
.drive-get { display: grid; justify-items: start; gap: 4px; margin-top: 8px; }
.import-thumbs { display: flex; flex-wrap: wrap; gap: 6px; } .import-thumbs img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
.verify-list { max-height: 320px; overflow: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: var(--r-md); } .verify-list table { margin: 0; font-size: 13px; } .verify-list th { position: sticky; top: 0; z-index: 1; }
.verify-list tr.left-out td { opacity: .4; text-decoration: line-through; }
/* credentials: logins and app keys; domains */
.vault-sub { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; font-size: 15px; } .vault-sub .ico { align-self: center; color: var(--ink-3); } .vault-sub small { font-size: 12.5px; font-weight: 400; }
.vault-empty { margin: 0 0 6px; font-size: 13px; }
.app-keys { display: grid; gap: 6px; }
.app-key { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding-bottom: 8px; } .app-key + .app-key { padding-top: 8px; border-top: 1px dashed var(--border); } .app-key > span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.app-key code { grid-column: 1 / -1; display: block; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; line-height: 1.5; padding: 6px 10px; max-height: 240px; overflow-y: auto; }
.app-key .tiny-copy { padding: 2px 6px; font-size: 12px; }
table.secrets.apps td { vertical-align: top; } table.secrets.apps td.secret-cell { white-space: normal; min-width: 280px; width: 45%; }
.key-row { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 720px) { .key-row { grid-template-columns: 1fr auto; } .key-row .password-input { grid-column: 1 / -1; grid-row: 2; } table.secrets.apps td.secret-cell { width: 100%; min-width: 0; } }
.warn-note { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
table.domains tr.domain-row { cursor: pointer; } table.domains tr.domain-row:hover td { background: var(--surface-2); } table.domains td { vertical-align: top; }
.resource-section > .vault-sub, .resource-section > .vault-empty { padding-inline: 22px; } .resource-section > .vault-empty { padding-bottom: 6px; }
@media (max-width: 720px) {
  table.secrets.apps thead, table.domains thead { display: none; }
  table.secrets.apps, table.secrets.apps tbody, table.secrets.apps tr, table.secrets.apps td, table.domains, table.domains tbody, table.domains tr, table.domains td { display: block; width: 100%; }
  table.secrets.apps tr, table.domains tr { padding: 12px 18px; border-top: 1px solid var(--border); }
  table.secrets.apps td, table.domains td { padding: 3px 0; border: 0; white-space: normal; }
  table.secrets.apps td.row-actions { text-align: left; }
}
/* subdomains: nested under their domain, edited as rows */
table.domains tr.sub-row td { padding-top: 7px; padding-bottom: 7px; background: color-mix(in srgb, var(--surface-2) 55%, transparent); border-top: 1px dashed var(--border); }
table.domains .sub-mark { margin: 0 6px 0 4px; color: var(--ink-4); } table.domains .sub-purpose { padding-left: 24px; }
.sub-count { margin-left: 8px; font-size: 12.5px; font-weight: 400; }
.sub-row-edit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 130px) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.sub-host { display: flex; align-items: center; gap: 4px; min-width: 0; } .sub-host input { min-width: 70px; flex: 1; } .sub-host > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; max-width: 55%; }
.sub-item { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 100px minmax(0, 1fr); }
@media (max-width: 720px) { .sub-row-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; padding-bottom: 10px; border-bottom: 1px dashed var(--border); } .sub-row-edit .sub-host { grid-column: 1 / 3; grid-row: 1; } .sub-row-edit .sub-host > span { max-width: 60%; } .sub-row-edit [data-sub-remove] { grid-column: 3; grid-row: 1; } .sub-row-edit [data-sub=purpose] { grid-column: 1 / -1; grid-row: 2; } .sub-row-edit [data-sub=environment] { grid-column: 1; grid-row: 3; } .sub-row-edit [data-sub=dns] { grid-column: 2 / -1; grid-row: 3; } table.domains tr.sub-row { padding-left: 30px; } .sub-item { grid-template-columns: 1fr; } }
/* a domain's subdomains fold under it */
.sub-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 8px 2px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.sub-toggle:hover { border-color: var(--accent); color: var(--accent-ink); } .sub-toggle .ico { transition: transform .15s; transform: rotate(-90deg); } .sub-toggle[aria-expanded="true"] .ico { transform: none; }
table.domains td:first-child .sub-toggle { display: flex; width: max-content; }
/* app keys: long ids wrap in their column; key fields take several lines and stay masked until shown */
table.secrets.apps td:nth-child(3) { white-space: normal; word-break: break-all; min-width: 180px; max-width: 280px; }
table.secrets.apps td:nth-child(3) .user-cell { display: inline; } table.secrets.apps td:nth-child(3) .mono { word-break: break-all; }
.key-value { align-items: flex-start; } .key-value textarea { flex: 1; min-height: 40px; padding: 9px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; resize: vertical; white-space: pre-wrap; word-break: break-all; }
.key-value textarea.masked { -webkit-text-security: disc; text-security: disc; }
@media (max-width: 720px) { table.secrets.apps td:nth-child(3) { max-width: none; } }
table.secrets.apps td:nth-child(3) { width: 24%; } table.secrets.apps td:nth-child(3) .user-cell { display: flex; align-items: flex-start; gap: 6px; white-space: normal; } table.secrets.apps td:nth-child(3) .user-cell .mono { min-width: 0; flex: 1; word-break: break-all; white-space: normal; }
.key-row { align-items: start; } .key-row [data-key-remove] { margin-top: 6px; }
/* report conversations */
.report-comments { display: grid; gap: 10px; margin-bottom: 10px; }
.report-comment { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.report-comment.mine { background: var(--surface-2); } .report-comment.new { border-color: #fcd34d; background: #fffbeb; }
.report-comment > div { min-width: 0; flex: 1; } .report-comment p.pre { margin: 4px 0 0; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font-size: 13px; } .report-comment-head em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-4); }
.new-dot { padding: 1px 7px; border-radius: 999px; background: #fde68a; color: #92400e; font-size: 11px; font-weight: 700; }
.comment-box { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 18px; } .comment-box textarea { flex: 1; min-height: 44px; resize: vertical; }
@media (max-width: 720px) { .comment-box { flex-direction: column; align-items: stretch; } }
.comments-notice .note-rows li { gap: 10px; }
.notify-pref { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--border); cursor: pointer; } .notify-pref input { margin-top: 3px; accent-color: var(--accent); } .notify-pref span { display: grid; gap: 2px; font-size: 13px; } .notify-pref small { color: var(--ink-3); font-size: 12px; }
/* working on now */
.roadmap-views { margin-bottom: 16px; }
.now-card { margin-bottom: 18px; padding: 20px 22px; } .now-card.paused { opacity: .8; } .now-card.done { opacity: .6; }
.now-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.now-head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 4px; } .now-head p { margin: 0 0 6px; color: var(--ink-2); font-size: 13.5px; }
.now-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: var(--ink-3); } .now-meta span { display: inline-flex; align-items: center; gap: 5px; }
.now-total { display: grid; justify-items: end; gap: 4px; min-width: 180px; } .now-total strong { font-size: 26px; letter-spacing: -.02em; } .now-total small { color: var(--ink-3); font-size: 12px; }
.now-total .bar, .now-progress .bar { display: block; width: 160px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .now-total .bar i, .now-progress .bar i { display: block; height: 100%; background: var(--good); border-radius: inherit; }
.now-epics { display: grid; gap: 10px; }
.now-epic { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.now-epic.missing { display: flex; gap: 10px; padding: 10px 14px; font-size: 13px; }
.now-epic > summary { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.now-epic > summary::-webkit-details-marker { display: none; } .now-epic[open] > summary { border-bottom: 1px solid var(--border); }
.now-progress { display: inline-flex; align-items: center; gap: 6px; } .now-progress .bar { width: 90px; } .now-progress small { color: var(--ink-3); font-size: 12px; }
.now-tickets { padding: 6px 8px 8px; } .now-tickets > p { margin: 6px 8px; font-size: 13px; }
.now-ticket { display: grid; grid-template-columns: 72px 92px minmax(0, 1fr) 150px minmax(170px, auto); align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13px; }
.now-ticket:hover { background: var(--surface-2); } .now-ticket.mine { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); } .now-ticket.done .now-summary { color: var(--ink-3); text-decoration: line-through; }
.now-ticket.depth-2 { padding-left: 30px; } .now-ticket.depth-3 { padding-left: 52px; }
.now-type { display: inline-flex; justify-content: center; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 700; white-space: nowrap; } .now-type.epic { background: var(--purple-soft); color: var(--purple); }
.now-summary { min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .now-summary:hover { color: var(--accent-ink); text-decoration: underline; }
.now-assignee { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.now-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.status-pill, .status-select { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.status-select { padding-right: 26px; cursor: pointer; }
.cat-new { background: var(--surface-3); color: var(--ink-2); } .cat-indeterminate { background: var(--info-soft); color: var(--info); } .cat-done { background: var(--good-soft); color: var(--good); }
.jira-lock, .jira-failed { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; } .jira-lock { background: var(--warn-soft); color: var(--warn); } .jira-failed { background: var(--danger-soft); color: var(--danger); max-width: 420px; }
.jira-lock .ico, .jira-failed .ico { flex-shrink: 0; }
.work-notice { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; } .work-notice p { color: #4338ca; } .work-actions { display: flex; gap: 8px; flex-shrink: 0; }
.check-group-label { display: block; padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); } .check-group[hidden] { display: none; }
@media (max-width: 900px) {
  .now-head { flex-direction: column; } .now-total { justify-items: start; }
  .now-epic > summary { grid-template-columns: auto auto minmax(0, 1fr); } .now-epic > summary .now-progress, .now-epic > summary .now-status, .now-epic > summary .tag { grid-column: 1 / -1; justify-content: flex-start; }
  .now-ticket { grid-template-columns: auto auto minmax(0, 1fr); } .now-ticket .now-assignee { grid-column: 1 / 3; } .now-ticket .now-status { grid-column: 3; }
  .now-ticket.depth-2, .now-ticket.depth-3 { padding-left: 16px; }
}
.work-notice p strong { display: inline; font-size: inherit; }
.now-ticket { grid-template-columns: 72px 92px minmax(0, 1fr) 130px 270px; } .now-status .jira-lock, .now-status .jira-failed { white-space: normal; text-align: left; line-height: 1.35; }
.now-epic > summary { grid-template-columns: auto auto minmax(0, 1fr) auto auto 270px; } .now-epic > summary .now-status { justify-content: flex-end; }
@media (max-width: 900px) { .now-ticket { grid-template-columns: auto auto minmax(0, 1fr); } .now-epic > summary { grid-template-columns: auto auto minmax(0, 1fr); } }
.now-epic > summary .tag { justify-self: start; }
/* a Jira ticket in the portal */
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 6px; } .ticket-head .jira-open { flex-shrink: 0; }
.issue-metrics.facts { flex: 1; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .issue-metrics.facts > div > div { margin-top: 4px; }
.issue-metrics.live { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.issue-description { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-loading { display: flex; align-items: center; gap: 8px; } .live-loading .ico { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.report-comment .via { font-size: 11.5px; } .report-comment.pending { border-style: dashed; } .report-comment small.jira-lock, .report-comment small.jira-failed { padding: 2px 8px; }
.now-tickets.boxed { border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px; margin-bottom: 8px; }
@media (max-width: 720px) { .ticket-head { flex-direction: column; } }
/* inside the ticket window: lock and refusal notes read as one line of text, and child rows give the summary room */
.issue-metrics .jira-lock span, .issue-metrics .jira-failed span { display: inline; font-size: 12px; color: inherit; } .issue-metrics .jira-lock strong { display: inline; margin: 0; font-size: 12px; color: inherit; }
.issue-metrics.facts > div:has(.jira-lock, .jira-failed) { grid-column: span 2; } .issue-metrics .jira-lock, .issue-metrics .jira-failed { display: flex; flex-wrap: wrap; line-height: 1.4; }
.now-tickets.boxed .now-ticket { grid-template-columns: 64px 64px minmax(0, 1fr) 80px minmax(110px, auto); } .now-tickets.boxed .now-summary { white-space: normal; }
.now-tickets.boxed .now-status .jira-lock, .now-tickets.boxed .now-status .jira-failed { max-width: 220px; }
@media (max-width: 720px) { .issue-metrics.facts > div:has(.jira-lock, .jira-failed) { grid-column: 1 / -1; } .now-tickets.boxed .now-ticket { grid-template-columns: auto auto minmax(0, 1fr); } }
/* the category colour must not wipe the select's chevron, or the status looks like a label rather than something to change */
.status-select.cat-new { background-color: var(--surface-3); } .status-select.cat-indeterminate { background-color: var(--info-soft); } .status-select.cat-done { background-color: var(--good-soft); }
.status-select.cat-new, .status-select.cat-indeterminate, .status-select.cat-done { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
@media (max-width: 720px) { .ticket-head { align-items: stretch; } .issue-metrics.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.issue-metrics.facts .text-button { white-space: normal; text-align: left; overflow-wrap: anywhere; }
/* a comment Jira shows under the admin's name, because the writer has no Jira access of their own */
.jira-warn { display: inline-flex; align-items: flex-start; gap: 5px; color: var(--warn); font-size: 11.5px; line-height: 1.4; } .jira-warn .ico { flex-shrink: 0; margin-top: 2px; }
.report-comment small.jira-warn { padding: 2px 8px; border-radius: 6px; background: var(--warn-soft); }
p.jira-warn { display: flex; font-size: 12.5px; }
.jira-me-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.jira-me-form[hidden] { display: none; } .jira-me-form label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); } .jira-me-form p { grid-column: 1 / -1; margin: 0; }
.jira-me-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 720px) { .jira-me-form { grid-template-columns: 1fr; } }
/* finance: payments listed month by month, each month a divider that folds */
.fin-month td { padding: 0; background: var(--surface-2); border-top: 1px solid var(--border); }
.fin-month:first-child td { border-top: 0; }
.fin-month-head { position: sticky; left: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; width: 100%; max-width: calc(100vw - 48px); padding: 10px 14px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.fin-month-head strong { font-size: 14px; } .fin-month-head:hover strong { color: var(--accent-ink); }
.fin-month-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.fin-chevron { color: var(--ink-3); transition: transform .15s; } .fin-month.folded .fin-chevron { transform: rotate(-90deg); }
.fin-month-flag { padding: 2px 8px; border-radius: 99px; font-size: 11.5px; background: var(--warn-soft); color: var(--warn); } .fin-month-flag.ok { background: var(--good-soft); color: var(--good); }
.fin-fold-all { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; margin: 4px 0 6px; padding: 0 14px; }
/* points: scores, ledgers and the policy editor */
.pos { color: var(--good); } .neg { color: var(--danger); } .zero { color: var(--ink-3); }
.points-card { margin-bottom: 20px; } .points-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.points-big { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; } .points-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.points-panel { margin-top: 20px; } .points-panel .panel-heading { flex-wrap: wrap; gap: 10px; } .points-teams { margin: 0 0 12px; } .points-teams .chip i { width: 10px; height: 10px; border-radius: 3px; margin: 0; }
.points-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .points-table .row-actions { justify-content: flex-end; gap: 8px; }
.points-settings { padding-bottom: 22px; } .points-settings .policy-list { margin: 16px 22px 0; } .policy-list { display: grid; gap: 10px; } .points-settings > p.muted { margin: 16px 22px 0; } .policy-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.policy-row strong { margin-right: 8px; } .policy-row .tag { margin-right: 6px; vertical-align: middle; } .policy-row p { margin: 4px 0 0; }
.rule-group { margin: 14px 0 0; padding: 12px 14px 14px; border: 1px solid var(--border); border-radius: var(--r-md); } .rule-group legend { padding: 0 6px; font-size: 13px; font-weight: 700; }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; } .rule-grid .field.small { margin: 0; } .rule-grid .field.small > span { font-size: 12px; line-height: 1.35; min-height: 32px; display: flex; align-items: flex-end; }
.rule-check { grid-column: 1 / -1; margin-top: 4px; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ledger { display: grid; gap: 6px; } .ledger-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.ledger-row p { margin: 2px 0 0; color: var(--ink-2); } .ledger-points { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; } .ledger-row em { font-style: normal; font-size: 12px; white-space: nowrap; }
@media (max-width: 720px) { .rule-grid { grid-template-columns: 1fr 1fr; } .ledger-row { grid-template-columns: 56px minmax(0, 1fr); } .ledger-row em { grid-column: 2; } .policy-row { flex-direction: column; } }
/* how points work: the policy's rules written out */
.points-guide .lead { font-size: 14px; line-height: 1.6; } .points-guide h3 { margin: 18px 0 6px; font-size: 14px; } .points-guide ul { margin: 0; padding-left: 20px; } .points-guide li { margin: 4px 0; font-size: 13.5px; line-height: 1.55; } .points-guide p { font-size: 13.5px; line-height: 1.55; }
.guide-table { width: 100%; margin: 10px 0 4px; border-collapse: collapse; font-size: 13px; } .guide-table th, .guide-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; } .guide-table .num { text-align: right; }
.points-card .row-actions { flex-wrap: wrap; }
/* teams: the organisation with points, awards and the leaderboard */
.pts-badge { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface-3); } .pts-badge.pos { background: var(--good-soft); } .pts-badge.neg { background: var(--danger-soft); } .pts-badge.none { color: var(--ink-3); font-weight: 500; }
.leaderboard td { vertical-align: middle; } .leaderboard .rank { width: 44px; } .leaderboard .bar-cell { width: 26%; min-width: 120px; } .leaderboard .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .leaderboard tr.me td { background: var(--accent-soft); } .leaderboard .row-actions { justify-content: flex-end; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12.5px; font-weight: 800; color: #fff; } .medal.m1 { background: #d97706; } .medal.m2 { background: #64748b; } .medal.m3 { background: #b45309; opacity: .85; } .rank-n { display: inline-block; width: 28px; text-align: center; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .org-depts { grid-template-columns: 1fr; } .org-teams { padding-left: 8px; } .leaderboard .bar-cell { display: none; } }
.leaderboard .mini-bar { display: block; width: 100%; margin: 0; }
@media (max-width: 720px) { .leaderboard td, .leaderboard th { padding-left: 8px; padding-right: 8px; } .leaderboard .rank { width: 36px; } .leaderboard td:nth-child(5), .leaderboard th:nth-child(5), .leaderboard .row-actions { display: none; } .leaderboard .person { gap: 8px; } .leaderboard .person strong { white-space: normal; } }
/* the organisation chart: a tree that draws itself, lights up along a hovered branch, and folds teams */
.oc-panel { margin-bottom: 20px; } .oc-scroll { overflow-x: auto; padding: 6px 2px 14px; }
.orgchart { --line: var(--border-strong); --w: 2px; min-width: max-content; margin: 0 auto; }
.oc-level { display: flex; justify-content: center; align-items: flex-start; gap: 28px; position: relative; }
.oc-top { padding-bottom: 34px; } .oc-top::after { content: ""; position: absolute; left: 50%; bottom: 0; width: var(--w); height: 34px; background: var(--line); transform-origin: top; animation: oc-grow-y .5s .25s both; }
.oc-depts { padding-top: 34px; width: max-content; margin: 0 auto; } .oc-depts::before { content: ""; position: absolute; top: 0; left: 50%; right: 50%; height: var(--w); background: var(--line); animation: oc-bar .5s .55s both; }
.oc-depts:has(> .oc-branch:nth-child(2))::before { left: calc(0% + var(--edge, 0px)); right: calc(0% + var(--edge, 0px)); }
.oc-branch { position: relative; display: flex; flex-direction: column; align-items: center; }
.oc-depts > .oc-branch::before { content: ""; position: absolute; top: -34px; left: 50%; width: var(--w); height: 34px; background: var(--line); transform-origin: top; animation: oc-grow-y .4s .75s both; }
.oc-depts > .oc-branch:first-child:nth-last-child(n+2)::after, .oc-depts > .oc-branch:last-child:nth-child(n+2)::after { content: ""; position: absolute; top: -34px; height: var(--w); width: 50%; background: var(--surface); z-index: 1; }
.oc-depts > .oc-branch::before { z-index: 2; }
.oc-depts > .oc-branch:first-child:nth-last-child(n+2)::after { left: 0; } .oc-depts > .oc-branch:last-child:nth-child(n+2)::after { right: 0; }
.oc-dept-branch { padding: 0 6px; }
.oc-managers { display: flex; gap: 10px; margin-top: 12px; position: relative; padding-top: 14px; } .oc-managers::before { content: ""; position: absolute; top: 0; left: 50%; width: var(--w); height: 14px; background: var(--line); }
.oc-teams { margin-top: 14px; padding-top: 30px; gap: 18px; align-items: flex-start; }
.oc-teams::before { content: ""; position: absolute; top: 0; left: 50%; width: var(--w); height: 30px; background: var(--line); }
.oc-teams > .oc-branch::before { content: ""; position: absolute; top: -30px; left: 50%; width: var(--w); height: 30px; background: var(--line); }
.oc-teams:has(> .oc-branch:nth-child(2))::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--w); background: var(--line); }
.oc-teams > .oc-branch:first-child:nth-last-child(n+2)::after, .oc-teams > .oc-branch:last-child:nth-child(n+2)::after { content: ""; position: absolute; top: -30px; height: var(--w); width: 50%; background: var(--surface); z-index: 1; }
.oc-teams > .oc-branch:first-child:nth-last-child(n+2)::after { left: 0; } .oc-teams > .oc-branch:last-child:nth-child(n+2)::after { right: 0; } .oc-teams > .oc-branch::before { z-index: 2; }
.oc-node { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); text-align: left; font: inherit; color: var(--ink); animation: oc-in .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + .3s); transition: transform .2s, box-shadow .2s, border-color .2s; }
.oc-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c, var(--accent)) 55%, var(--border)); }
.oc-text { min-width: 0; } .oc-text strong { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; } .oc-text small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.oc-count { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.oc-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--ring, var(--accent)); background: color-mix(in srgb, var(--ring, var(--accent)) 14%, var(--surface)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--ring, var(--accent)) 45%, transparent); transition: box-shadow .25s; }
.oc-node:hover .oc-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--ring, var(--accent)); } .oc-avatar.more { --ring: #64748b; }
.oc-avatars { display: flex; } .oc-avatars .oc-avatar { margin-right: -10px; } .oc-avatars .oc-avatar:last-child { margin-right: 0; }
.oc-root { background: linear-gradient(135deg, #0f172a, #1e1b4b); color: #fff; border-color: transparent; padding: 14px 18px; } .oc-root .oc-text small { color: #c7d2fe; } .oc-root .oc-count { background: rgba(255,255,255,.14); color: #fff; }
.oc-glyph { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; font-size: 16px; font-weight: 800; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--surface)); } .oc-glyph .ico { width: 20px; height: 20px; }
.oc-dept { border-top: 3px solid var(--c, var(--accent)); min-width: 260px; }
.oc-team { width: 286px; cursor: pointer; } .oc-team .oc-text { flex: 1; } .oc-team .oc-text small { white-space: normal; line-height: 1.3; } .oc-count { flex-shrink: 0; }
.oc-chevron { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; color: var(--ink-3); background: var(--surface-2); transition: transform .3s cubic-bezier(.2,.8,.2,1); } .folded .oc-chevron { transform: rotate(-90deg); }
.oc-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1), opacity .3s; opacity: 1; width: 100%; } .folded .oc-fold { grid-template-rows: 0fr; opacity: 0; }
.oc-people { overflow: hidden; display: grid; gap: 8px; padding: 14px 0 0 22px; position: relative; }
.oc-people::before { content: ""; position: absolute; top: 0; bottom: 18px; left: 10px; width: var(--w); background: var(--line); }
.oc-person { width: 264px; padding: 8px 10px; border-radius: 12px; } .oc-person::before { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; height: var(--w); background: var(--line); }
.oc-person.lead { border-color: color-mix(in srgb, var(--c, var(--accent)) 40%, var(--border)); background: color-mix(in srgb, var(--c, var(--accent)) 5%, var(--surface)); } .oc-person.manager { width: auto; min-width: 200px; }
.oc-person .oc-avatar { width: 32px; height: 32px; font-size: 11px; }
.oc-empty { padding: 10px 12px; font-size: 12.5px; color: var(--ink-3); border: 1px dashed var(--border-strong); border-radius: 10px; }
/* a hovered branch lights up: the team's line, its people, and the department it belongs to */
.oc-branch:hover { --line: var(--c, var(--accent)); } .oc-branch:hover > .oc-node { border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, var(--border)); }
@keyframes oc-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes oc-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes oc-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .oc-node, .oc-top::after, .oc-depts::before, .oc-depts > .oc-branch::before { animation: none; } .oc-fold, .oc-chevron, .oc-node { transition: none; } }
/* on a phone the tree stands on its side: departments stacked, each with its teams and people under a coloured rail */
@media (max-width: 720px) {
  .orgchart { min-width: 0; } .oc-scroll { overflow: visible; padding: 0; }
  .oc-level, .oc-branch { flex-direction: column; align-items: stretch; gap: 12px; }
  .oc-top::after, .oc-depts::before, .oc-depts > .oc-branch::before, .oc-depts > .oc-branch::after, .oc-teams::before, .oc-teams::after, .oc-teams > .oc-branch::before, .oc-teams > .oc-branch::after, .oc-managers::before, .oc-person::before, .oc-people::before { display: none; }
  .oc-top { padding-bottom: 0; } .oc-depts { padding-top: 14px; }
  .oc-dept-branch { padding: 0 0 0 12px; border-left: 3px solid var(--c); } .oc-dept { min-width: 0; border-top: 1px solid var(--border); border-left: 3px solid var(--c); }
  .oc-managers { flex-direction: column; padding-top: 0; margin-top: 10px; gap: 8px; } .oc-person.manager { min-width: 0; }
  .oc-teams { margin-top: 10px; padding-top: 0; gap: 10px; } .oc-team-branch { padding-left: 10px; border-left: 2px solid var(--border-strong); }
  .oc-team, .oc-person { width: 100%; } .oc-people { padding: 10px 0 0 10px; }
  .oc-text small { max-width: none; white-space: normal; }
}
/* employee of the month: a podium for the company, a named card per department and team */
.podium-card { position: relative; overflow: hidden; margin-bottom: 18px; padding: 22px 24px 0; border-radius: var(--r-md); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #312e81 0%, #0f172a 55%, #020617 100%); }
.podium-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(closest-side, rgba(251,191,36,.28), transparent 70%); pointer-events: none; animation: podium-glow 6s ease-in-out infinite alternate; }
.podium-card.me { box-shadow: 0 0 0 2px #fbbf24 inset; }
.podium-head { position: relative; text-align: center; max-width: 620px; margin: 0 auto 6px; } .podium-head .award-kind { color: #c7d2fe; } .podium-head h3 { margin: 6px 0 4px; font-size: 22px; letter-spacing: -0.01em; } .podium-head p { margin: 0; font-size: 13.5px; color: #cbd5e1; }
.podium { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; max-width: 640px; margin: 14px auto 0; }
.podium-spot { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 6px 0; text-align: center; animation: podium-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.podium-spot.p1 { animation-delay: .15s; } .podium-spot.p2 { animation-delay: .35s; } .podium-spot.p3 { animation-delay: .5s; }
.podium-spot strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .podium-spot small { font-size: 11.5px; color: #cbd5e1; } .podium-spot b { font-size: 15px; font-variant-numeric: tabular-nums; } .podium-spot .pos { color: #86efac; } .podium-spot .neg { color: #fca5a5; }
.podium-step { display: grid; place-items: center; width: 100%; margin-top: 8px; border-radius: 10px 10px 0 0; font-size: 22px; font-weight: 800; color: rgba(255,255,255,.85); background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); }
.p1 .podium-step { height: 84px; background: linear-gradient(180deg, #fbbf24, #b45309); color: #1f1300; } .p2 .podium-step { height: 60px; background: linear-gradient(180deg, #e2e8f0, #64748b); color: #0f172a; } .p3 .podium-step { height: 44px; background: linear-gradient(180deg, #f59e0b, #7c2d12); color: #fff7ed; }
.podium-spot.empty { opacity: .55; } .podium-spot.me strong { color: #fde68a; }
.award-avatar { position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; font-size: 15px; font-weight: 800; color: var(--ring, var(--accent)); background: color-mix(in srgb, var(--ring, var(--accent)) 16%, #fff); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ring, var(--accent)); }
.podium .award-avatar { background: color-mix(in srgb, var(--ring, var(--accent)) 30%, #0f172a); color: #fff; box-shadow: 0 0 0 3px #0f172a, 0 0 0 5px var(--ring, var(--accent)); } .p1 .award-avatar { width: 64px; height: 64px; font-size: 18px; box-shadow: 0 0 0 3px #0f172a, 0 0 0 6px #fbbf24, 0 0 28px rgba(251,191,36,.45); }
.award-avatar.hollow { color: #94a3b8; background: transparent; box-shadow: 0 0 0 2px #94a3b8 inset; border: 2px dashed #94a3b8; }
.award-star { position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fbbf24; color: #1f1300; box-shadow: 0 0 0 2px #fff; } .award-star .ico { width: 12px; height: 12px; }
.awards-group { margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.award-card { position: relative; overflow: hidden; padding: 12px 14px 12px; border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: var(--r-md); background: var(--surface); transition: transform .2s, box-shadow .2s; animation: oc-in .5s cubic-bezier(.2,.8,.2,1) both; }
.award-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } .award-card.me { background: color-mix(in srgb, var(--c) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.award-ribbon { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; } .award-ribbon strong { font-size: 14.5px; color: var(--c); }
.award-kind { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.award-who { display: flex; align-items: center; gap: 12px; } .award-who > div { flex: 1; min-width: 0; } .award-who strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .award-who strong em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--c); margin-left: 4px; } .award-who small { display: block; font-size: 12px; color: var(--ink-3); }
.award-score { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; } .award-margin { margin: 8px 0 0 64px; font-size: 12px; color: var(--ink-3); } .award-who.empty .award-avatar { width: 44px; height: 44px; }
@keyframes podium-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes podium-glow { from { transform: translateX(-6%); opacity: .8; } to { transform: translateX(8%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .podium-spot, .podium-card::before, .award-card { animation: none; } }
@media (max-width: 720px) { .podium-card { padding: 18px 14px 0; } .podium-spot strong { white-space: normal; font-size: 13px; line-height: 1.2; } .podium-head h3 { font-size: 18px; } .podium { gap: 8px; } .p1 .podium-step { height: 64px; } .p2 .podium-step { height: 46px; } .p3 .podium-step { height: 34px; } .award-margin { margin-left: 0; } }
/* the period picker: month, months, year, years or all time, with the matching inputs */
.period-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.range-inputs { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.range-inputs input, .range-inputs select { height: 30px; padding: 0 8px; font-size: 12.5px; border-radius: 7px; border-color: transparent; background: var(--surface); min-width: 0; } .range-inputs select { padding-right: 26px; }
.range-inputs .icon-button.tiny { width: 26px; height: 26px; border-radius: 7px; } .range-dash { color: var(--ink-3); font-size: 12px; }
.ico.left { transform: rotate(90deg); } .ico.right { transform: rotate(-90deg); }
/* the awards sit inside the panel's padding, and the podium card keeps its own corners */
.awards-body { padding: 16px 22px 22px; } .podium-card { border-radius: var(--r-md); }
@media (max-width: 720px) { .awards-body { padding: 12px 14px 16px; } .awards-panel .panel-heading, .points-panel .panel-heading { flex-direction: column; align-items: stretch; } .period-picker { width: 100%; } .period-picker .segmented { overflow-x: auto; max-width: 100%; } .range-inputs { flex-wrap: wrap; } }
/* legal documents: the other party's card, expiry flags, the notes thread */
.legal-row { cursor: pointer; } .legal-row:hover td { background: var(--surface-2); } .legal-table td { vertical-align: top; }
.legal-due.soon { color: var(--warn); font-weight: 600; } .legal-due.late { color: var(--danger); font-weight: 600; }
.legal-party { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.legal-party strong { display: block; font-size: 15px; } .legal-party small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); } .legal-party a { color: var(--accent-ink); }
.fin-amount small.mono { font-size: 13px; font-weight: 500; margin-left: 8px; }

/* documents on file about a person (Company → People): one chip per document, flagged when it expires */
.doc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.doc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.doc-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.doc-chip.soon { border-color: #fcd34d; background: #fffbeb; color: #b45309; } .doc-chip.late { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }
.doc-chip.add { padding: 3px 7px; border-style: dashed; color: var(--ink-2); background: transparent; } .doc-chip.add:hover { color: var(--accent-ink); }
.person.compact strong { font-size: 13px; } .person.compact small { display: block; }

/* Roadmap: the board's sprints across the quarter, and epics planned in the portal */
.roadmap-sprint-band { display: grid; grid-template-columns: 300px 1fr; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.roadmap-sprint-band > span { padding: 8px 22px; color: var(--ink-3); font-weight: 500; }
.roadmap-sprint-band .track { position: relative; height: 30px; }
.roadmap-sprint-band .track b { position: absolute; top: 5px; height: 20px; padding: 0 8px; box-sizing: border-box; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roadmap-sprint-band .track b.active { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; } .roadmap-sprint-band .track b.future { border-style: dashed; }
.plan-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 10.5px; font-weight: 700; }
/* Working on now: the epics of a focus on one axis */
.now-timeline { margin: 4px 0 14px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.now-tl-head, .now-tl-row { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(220px, 3fr) minmax(150px, auto); align-items: center; gap: 12px; padding: 6px 12px; border-top: 1px solid var(--border); }
.now-tl-head { border-top: 0; background: var(--surface-2); font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.now-tl-head .now-tl-track { height: 20px; } .now-tl-head .now-tl-track em { position: absolute; top: 2px; font-style: normal; font-size: 10.5px; padding-left: 4px; border-left: 1px solid var(--border); text-transform: none; letter-spacing: 0; }
.now-tl-head .now-tl-track i.today small { position: absolute; top: -1px; left: 4px; font-size: 10px; color: var(--danger); text-transform: none; letter-spacing: 0; }
.now-tl-name { text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .now-tl-name:hover { color: var(--accent-ink); } .now-tl-name b { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.now-tl-track { position: relative; height: 26px; }
.now-tl-track > i { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--border); } .now-tl-track > i.today { border-left: 2px solid var(--danger); z-index: 2; }
.now-tl-window { position: absolute; top: 2px; bottom: 2px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.now-tl-bar { position: absolute; top: 4px; height: 18px; border-radius: 5px; background: #e2e8f0; overflow: hidden; display: flex; align-items: center; box-sizing: border-box; border: 1px solid transparent; z-index: 1; }
.now-tl-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #94a3b8; } .now-tl-bar em { position: relative; z-index: 1; margin-left: 6px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #0f172a; }
.now-tl-bar.green { background: #dcfce7; } .now-tl-bar.green i { background: #22c55e; } .now-tl-bar.orange { background: #ffedd5; } .now-tl-bar.orange i { background: #f59e0b; } .now-tl-bar.red { background: #fee2e2; } .now-tl-bar.red i { background: #ef4444; } .now-tl-bar.purple { background: #ede9fe; } .now-tl-bar.purple i { background: #8b5cf6; }
.now-tl-bar.open { border-right: 2px dashed #94a3b8; border-radius: 5px 0 0 5px; } .now-tl-bar.estimated { border-left: 2px dashed #94a3b8; }
.now-tl-none { position: absolute; top: 5px; font-size: 11.5px; color: var(--ink-3); }
.now-tl-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; } .now-tl-when small { color: var(--ink-3); }
.text-button.tiny { font-size: 11.5px; padding: 2px 6px; }
@media (max-width: 720px) { .now-tl-head, .now-tl-row { grid-template-columns: 1fr; gap: 4px; } .now-tl-head span:last-child { display: none; } .now-tl-head .now-tl-track i.today small { display: none; } .roadmap-sprint-band { grid-template-columns: 90px 1fr; } .roadmap-sprint-band > span { padding-left: 12px; } }
.pace-detail { font-size: 11.5px; } .plan-chip .ico { width: 12px; height: 12px; }
.roadmap-bar.planned { outline: 2px solid color-mix(in srgb, var(--team-color) 35%, white); outline-offset: -2px; } .plan-mark { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: inherit; opacity: .8; } .plan-mark .ico { width: 12px; height: 12px; }

/* Year roadmap: what we work on, across quarters and sprints */
.roadmap-grid.year { min-width: 1100px; }
.roadmap-grid.year .roadmap-sprint-header > .weeks span { text-align: center; padding-left: 0; font-size: 10.5px; color: var(--ink-4); }
.roadmap-grid.year .roadmap-sprint-header > .weeks span.first { color: var(--ink-3); font-weight: 600; }
.roadmap-row.year { height: 74px; }
.roadmap-row.year .roadmap-title small em { font-style: normal; color: var(--ink-3); cursor: help; }
.focus-description { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; white-space: pre-wrap; }
.now-total.inline { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; margin: 8px 0 4px; } .now-total.inline .bar { grid-column: 1 / -1; }
.epic-row small.muted { white-space: nowrap; }
.worked-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; } .worked-list li { display: grid; } .worked-list .text-button { justify-content: flex-start; padding: 0; font-size: 13px; } .worked-list small { font-size: 11.5px; }
button.chip { cursor: pointer; font: inherit; border: 1px solid var(--border); } button.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.progress-policy { margin-bottom: 20px; } .progress-table td { vertical-align: middle; } .weight-cell { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; } .weight-cell input { width: 72px; text-align: right; padding: 6px 8px; } .weight-cell input[data-default] { color: var(--ink-2); }
.issue-metrics small { display: block; font-size: 11.5px; }
