:root {
  color-scheme: light;
  --canvas: #f7f7f8;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #98989d;
  --line: #e8e8ed;
  --line-strong: #d2d2d7;
  --blue: #0071e3;
  --blue-soft: #eaf4ff;
  --green: #248a3d;
  --green-soft: #eaf7ed;
  --amber: #b45f06;
  --amber-soft: #fff6e6;
  --red: #d70015;
  --red-soft: #fff0f1;
  --purple: #7d43c5;
  --purple-soft: #f5effc;
  --shadow: 0 1px 2px rgba(0, 0, 0, .025), 0 12px 34px rgba(0, 0, 0, .045);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .04), 0 18px 48px rgba(0, 0, 0, .075);
}

* { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.mobile-only { display: none !important; }

.topbar {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 142px;
  align-items: center;
  gap: 18px;
  padding: 8px max(24px, calc((100vw - 1440px) / 2));
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  backdrop-filter: saturate(180%) blur(22px);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; font-weight: 600; letter-spacing: -.015em; }
.brand img { width: 154px; height: 53px; flex: 0 0 154px; object-fit: contain; object-position: left center; }
.brand span { min-width: 0; padding-left: 13px; border-left: 1px solid var(--line-strong); color: var(--secondary); font-size: 12px; white-space: nowrap; }
.nav { display: flex; justify-content: center; gap: 6px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 11px; border-radius: 999px; color: var(--secondary); font-size: 12px; font-weight: 500; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.nav a:hover { background: #f1f1f3; color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; }
.freshness { min-width: 142px; color: var(--secondary); font-size: 11px; text-align: right; white-space: nowrap; }
.freshness strong { display: block; color: var(--ink); font-weight: 500; }
body[data-page="overview"] .nav [data-nav="overview"], body[data-page="weekly-issues"] .nav [data-nav="weekly-issues"], body[data-page="weekly-updates"] .nav [data-nav="weekly-updates"], body[data-page="inbox"] .nav [data-nav="inbox"], body[data-page="decisions"] .nav [data-nav="inbox"], body[data-page="workgroups"] .nav [data-nav="workgroups"], body[data-page="tree"] .nav [data-nav="tree"], body[data-page="team"] .nav [data-nav="team"], body[data-page="contributors"] .nav [data-nav="contributors"] { background: var(--ink); color: #fff; }

.page { width: min(1480px, calc(100% - 48px)); flex: 1 0 auto; margin: 0 auto; padding: 48px 0 88px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 30px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
h1 { margin: 7px 0 9px; font-size: clamp(34px, 4vw, 56px); line-height: 1.03; letter-spacing: -.047em; font-weight: 650; }
h2 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; font-weight: 600; }
.lede { max-width: 710px; margin: 0; color: var(--secondary); font-size: 17px; line-height: 1.55; }
.timestamp { display: grid; gap: 2px; color: var(--secondary); text-align: right; font-size: 11px; }
.timestamp strong { color: var(--ink); font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; margin: 0 0 26px; }
.metric {
  position: relative;
  height: 100%;
  min-height: 136px;
  padding: 19px 20px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .045);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--secondary); }
.metric-icon svg { width: 18px; height: 18px; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.metric-value { margin-top: 18px; font-size: 31px; line-height: 1; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-label { margin-top: 6px; color: var(--secondary); }
.metric-note { color: var(--tertiary); font-size: 11px; text-align: right; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 2px 12px; }
.section-head p { margin: 5px 0 0; color: var(--secondary); }
.section-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.text-link { color: var(--blue); font-weight: 500; }

.surface { background: var(--surface); border: 1px solid rgba(0, 0, 0, .05); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.surface-pad { padding: 24px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: 16px; }
.graph-shell { min-height: 560px; position: relative; }
.wg-graph { width: 100%; min-height: 540px; display: block; }
.graph-edge { stroke: #dedee3; stroke-width: 1.2; }
.graph-node { cursor: pointer; }
.graph-node:hover circle.outer { stroke: var(--blue); }
.graph-node circle.outer { fill: #fff; stroke: #e1e1e5; stroke-width: 1.3; filter: drop-shadow(0 8px 12px rgba(0,0,0,.06)); }
.graph-node circle.health { fill: none; stroke-width: 4; }
.graph-node text.name { fill: var(--ink); font-size: 12px; font-weight: 600; text-anchor: middle; }
.graph-node text.count { fill: var(--secondary); font-size: 10px; text-anchor: middle; }
.graph-center circle { fill: var(--ink); }
.graph-center text { fill: #fff; text-anchor: middle; font-weight: 650; }
.graph-legend { position: absolute; bottom: 18px; left: 22px; display: flex; gap: 14px; color: var(--secondary); font-size: 11px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; margin-right: 5px; }

.priority-list { display: grid; }
.priority-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.priority-item:last-child { border-bottom: 0; }
.priority-rank { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.priority-item > span:nth-child(2) { min-width: 0; }
.priority-title { display: block; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; }
.priority-meta { display: block; margin-top: 4px; color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px; margin-bottom: 16px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 18px; }
.field { position: relative; display: grid; gap: 5px; min-width: 170px; }
.field.grow { flex: 1 1 290px; }
.field label { color: var(--secondary); font-size: 11px; font-weight: 500; }
.input, .select { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; color: var(--ink); padding: 8px 11px; outline: none; }
.input:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.13); }
.segmented { display: flex; padding: 3px; background: #ededf0; border-radius: 11px; }
.segmented button { min-height: 34px; border: 0; border-radius: 8px; padding: 6px 12px; background: transparent; color: var(--secondary); }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 3px 8px; border-radius: 999px; background: #f0f0f2; color: var(--secondary); font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge.blue, .badge.NEEDS_REVIEW, .badge.NEEDS_ACCEPTANCE, .badge.POTENTIAL { background: var(--blue-soft); color: var(--blue); }
.badge.green, .badge.HEALTHY, .badge.READY_TO_MERGE { background: var(--green-soft); color: var(--green); }
.badge.amber, .badge.MODIFY, .badge.NEEDS_AUTHOR, .badge.FIX_CI { background: var(--amber-soft); color: var(--amber); }
.badge.red, .badge.CLOSE_REVIEW, .badge.CLOSE_RECOMMENDED, .badge.RESOLVE_CONFLICTS { background: var(--red-soft); color: var(--red); }
.badge.purple, .badge.DIRECTION_REVIEW, .badge.HUMAN_DECISION, .badge.PROMOTION_REVIEW { background: var(--purple-soft); color: var(--purple); }
.badge.READY_FOR_ROSTER { background: var(--green-soft); color: var(--green); }
.badge.NEEDS_TASK, .badge.ASSIGN_STARTER_TASK { background: var(--red-soft); color: var(--red); }
.badge.NEEDS_REPLY { background: var(--blue-soft); color: var(--blue); }
.badge.TASK_ASSIGNED, .badge.FOLLOW_UP_APPLICATION { background: var(--amber-soft); color: var(--amber); }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tertiary); }
.health-dot.healthy { background: var(--green); }
.health-dot.attention { background: var(--amber); }
.health-dot.unhealthy { background: var(--red); }

.data-list { background: var(--surface); border: 1px solid rgba(0,0,0,.05); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.data-row { border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; }
.row-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 17px 20px; }
.row-title { display: flex; gap: 9px; align-items: flex-start; font-weight: 550; line-height: 1.35; }
.row-sub { margin: 6px 0 0 17px; display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--secondary); font-size: 12px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.row-details { padding: 0 20px 18px 37px; }
.row-details details { border-top: 1px solid var(--line); padding-top: 13px; }
.row-details summary { color: var(--blue); cursor: pointer; font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.detail-cell { padding: 12px; border-radius: 14px; background: var(--surface-soft); }
.detail-label { color: var(--secondary); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.detail-value { margin-top: 4px; word-break: break-word; font-variant-numeric: tabular-nums; }
.finding-list { display: grid; gap: 8px; margin-top: 12px; }
.finding { padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); }
.finding strong { font-size: 11px; letter-spacing: .02em; }
.finding p { margin: 4px 0 0; color: var(--secondary); font-size: 12px; }

.issue-layout { display: grid; grid-template-columns: minmax(360px, .72fr) minmax(480px, 1.28fr); gap: 16px; }
.tree-panel { max-height: 760px; overflow: auto; padding: 12px; }
.tree details { margin: 2px 0; }
.tree summary { list-style: none; cursor: pointer; }
.tree summary::-webkit-details-marker { display: none; }
.tree-children { margin-left: 16px; padding-left: 8px; border-left: 1px solid var(--line); }
.tree-row { width: 100%; display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 8px; align-items: center; border: 0; background: transparent; padding: 8px; border-radius: 10px; text-align: left; }
.tree-row:hover, .tree-row.selected { background: #f2f2f4; }
.tree-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-count { color: var(--tertiary); font-size: 10px; }
.issue-detail { min-height: 430px; padding: 24px; }
.empty { min-height: 250px; display: grid; place-items: center; color: var(--secondary); text-align: center; padding: 30px; }

.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.person { padding: 20px; background: var(--surface); border: 1px solid rgba(0,0,0,.05); border-radius: 22px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.person-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #e8e8ed; }
.avatar-fallback { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; }
.person-name { font-size: 16px; font-weight: 600; }
.person-role { color: var(--secondary); font-size: 12px; }
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; }
.activity { padding: 10px; border-radius: 13px; background: var(--surface-soft); }
.activity-value { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.activity-label { margin-top: 2px; color: var(--secondary); font-size: 10px; }
.scorebar { height: 4px; margin-top: 16px; border-radius: 3px; background: #ededf0; overflow: hidden; }
.scorebar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }

.rank-list { counter-reset: rank; }
.rank-row { display: grid; grid-template-columns: 50px minmax(180px, 1fr) repeat(5, minmax(74px, .32fr)) 150px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-number { font-size: 22px; font-weight: 600; color: var(--tertiary); font-variant-numeric: tabular-nums; }
.rank-person { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.rank-person .avatar, .rank-person .avatar-fallback { width: 34px; height: 34px; }
.rank-metric { font-variant-numeric: tabular-nums; text-align: right; }
.rank-labels { display: none; }

.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.decision { padding: 22px; background: var(--surface); border: 1px solid rgba(0,0,0,.05); border-radius: 22px; box-shadow: var(--shadow); }
.decision-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.decision h3 { margin-top: 12px; line-height: 1.4; }
.decision p { margin: 9px 0 0; color: var(--secondary); }
.decision-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.decision-resolved { opacity: .58; }

.inbox-toolbar { margin-top: 16px; }
.inbox-actions { display: flex; gap: 8px; margin-left: auto; align-items: flex-end; }
.button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--ink); font-weight: 550; }
.button:hover { background: var(--surface-soft); }
.button-primary { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.button-primary:hover { background: #37373a; }
.inbox-layout { display: grid; grid-template-columns: minmax(340px, .76fr) minmax(520px, 1.24fr); gap: 16px; align-items: stretch; }
.inbox-list, .inbox-editor { height: 760px; min-height: 760px; overflow: auto; }
.inbox-list-head { position: sticky; top: 0; z-index: 2; padding: 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.inbox-list-head p { margin: 4px 0 0; color: var(--secondary); }
.inbox-item { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.inbox-item:hover, .inbox-item.selected { background: var(--surface-soft); }
.inbox-item.selected { box-shadow: inset 3px 0 var(--blue); }
.inbox-item-main { min-width: 0; }
.inbox-item-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.inbox-item-meta { display: block; margin-top: 4px; color: var(--secondary); font-size: 11px; }
.inbox-editor { padding: 24px; }
.inbox-editor-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.inbox-editor-head h2 { margin-top: 7px; max-width: 760px; }
.decision-question { margin: 22px 0; padding: 18px; border-radius: 16px; background: var(--surface-soft); }
.decision-question p { margin: 7px 0 0; color: var(--secondary); }
.feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feedback-note { margin-top: 12px; }
.feedback-note textarea { width: 100%; resize: vertical; line-height: 1.5; cursor: text; }
.feedback-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.inbox-status { min-height: 20px; margin: 10px 2px 0; text-align: right; }

.activity-toolbar { align-items: flex-end; }
.activity-toolbar .field { min-width: 148px; }
.activity-toolbar .activity-view-field { min-width: 218px; }
.activity-toolbar .input, .activity-toolbar .select { width: 100%; min-width: 0; max-width: 100%; }
.activity-view-field .segmented button { min-width: 0; flex: 1; white-space: nowrap; }
.activity-surface { min-height: 420px; }
.activity-list-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.activity-list-head p { margin: 5px 0 0; color: var(--secondary); font-size: 12px; }
.activity-list-actions { display: flex; align-items: center; gap: 8px; }
.activity-share { min-height: 31px; padding: 5px 10px; font-size: 11px; white-space: nowrap; }
.activity-day { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 11px 22px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.activity-day span { font-size: 12px; font-weight: 600; }
.activity-day small { color: var(--tertiary); font-size: 10px; }
.activity-event { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 78px; gap: 14px; align-items: flex-start; min-height: 108px; padding: 19px 22px; border-bottom: 1px solid var(--line); transition: background .16s ease; }
.activity-event:hover { background: #fcfcfd; }
.activity-event.needs-reply { background: linear-gradient(90deg, rgba(215,0,21,.055), transparent 54%); box-shadow: inset 3px 0 var(--red); }
.activity-event.needs-reply:hover { background: linear-gradient(90deg, rgba(215,0,21,.075), #fcfcfd 60%); }
.activity-identity { position: relative; width: 42px; min-height: 42px; }
.activity-identity .avatar, .activity-identity .avatar-fallback { width: 38px; height: 38px; }
.activity-type-icon { position: absolute; right: -2px; bottom: -2px; width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 7px; background: #f0f0f2; color: var(--secondary); }
.activity-type-icon svg { width: 10px; height: 10px; }
.activity-type-icon.blue { background: var(--blue-soft); color: var(--blue); }
.activity-type-icon.green { background: var(--green-soft); color: var(--green); }
.activity-type-icon.amber { background: var(--amber-soft); color: var(--amber); }
.activity-type-icon.purple { background: var(--purple-soft); color: var(--purple); }
.activity-type-icon.red { background: var(--red-soft); color: var(--red); }
.activity-event-main { min-width: 0; }
.activity-event-line { line-height: 1.5; overflow-wrap: anywhere; }
.activity-event-line > span { color: var(--secondary); }
.activity-event-line strong { font-weight: 600; }
.activity-target { color: var(--ink); font-weight: 560; }
.activity-target:hover, .activity-event-line > a:first-child:hover { color: var(--blue); }
.activity-excerpt { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.activity-application { width: min(760px,100%); display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 11px; padding: 11px 13px; border: 1px solid rgba(0,113,227,.1); border-radius: 13px; background: linear-gradient(135deg,var(--blue-soft),rgba(255,255,255,.72)); }
.activity-application > div { min-width: 0; }
.activity-application strong, .activity-application > div > span { display: block; }
.activity-application strong { font-size: 12px; }
.activity-application > div > span { margin-top: 2px; color: var(--secondary); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-application p { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px 7px; margin: 0; color: var(--secondary); font-size: 10px; text-align: right; }
.activity-application p > span { color: var(--line-strong); }
.activity-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; }
.activity-event-type { display: inline-flex; align-items: center; gap: 5px; color: var(--tertiary); font-size: 10px; }
.activity-event-type svg { width: 13px; height: 13px; }
.activity-time { padding-top: 2px; color: var(--tertiary); font-size: 11px; text-align: right; white-space: nowrap; }
.activity-mention { display: flex; align-items: flex-start; gap: 9px; width: min(620px, 100%); margin-top: 11px; padding: 10px 12px; border: 1px solid rgba(215,0,21,.1); border-radius: 12px; background: rgba(255,255,255,.72); color: var(--red); }
.activity-mention > span { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 7px; background: var(--red-soft); }
.activity-mention svg { width: 13px; height: 13px; }
.activity-mention p, .activity-mention strong, .activity-mention small { display: block; margin: 0; }
.activity-mention p { min-width: 0; }
.activity-mention strong { font-size: 11px; font-weight: 600; }
.activity-mention strong a:hover { text-decoration: underline; }
.activity-mention small { margin-top: 2px; color: var(--secondary); font-size: 10px; }
.activity-pagination { padding: 16px 20px; }
.activity-empty { min-height: 300px; }

.health-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr); gap: 16px; align-items: stretch; }
.health-layout > .surface { height: 100%; }
.health-overview { display: flex; align-items: center; gap: 30px; padding: 28px; }
.health-ring { --ring-color: var(--red); flex: 0 0 154px; width: 154px; height: 154px; padding: 11px; border-radius: 50%; background: conic-gradient(var(--ring-color) calc(var(--score) * 1%), var(--line) 0); }
.health-ring.good { --ring-color: var(--green); }
.health-ring.attention { --ring-color: var(--amber); }
.health-ring > div { width: 100%; height: 100%; display: grid; align-content: center; justify-items: center; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.health-ring strong { font-size: 42px; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.health-ring span { margin-top: 6px; color: var(--secondary); font-size: 11px; }
.health-copy h2 { margin-top: 8px; font-size: 27px; }
.health-copy p { max-width: 540px; margin: 9px 0 17px; color: var(--secondary); }
.health-dimensions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 24px 12px; }
.health-dimension { min-width: 0; padding: 6px 14px; border-right: 1px solid var(--line); }
.health-dimension:last-child { border-right: 0; }
.health-dimension-head { display: flex; justify-content: space-between; gap: 8px; }
.health-dimension-head span { color: var(--secondary); font-size: 11px; }
.health-dimension-head strong { font-variant-numeric: tabular-nums; }
.health-track { height: 5px; margin-top: 12px; border-radius: 4px; overflow: hidden; background: var(--line); }
.health-track span, .health-track i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.health-track .good { background: var(--green); }
.health-track .attention { background: var(--amber); }
.health-dimension p { margin: 9px 0 0; color: var(--tertiary); font-size: 10px; line-height: 1.35; }
.snapshot-badge { padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--secondary); font-size: 11px; }
.trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.trend-panel { min-width: 0; height: 100%; padding: 21px 21px 14px; }
.trend-title { display: flex; align-items: center; gap: 11px; }
.trend-title > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--secondary); }
.trend-title svg { width: 17px; height: 17px; }
.trend-title p { margin: 3px 0 0; color: var(--secondary); font-size: 11px; }
.chart-container { position: relative; height: 248px; margin-top: 15px; }
.overview-split { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); gap: 16px; align-items: stretch; }
.overview-split > div { min-width: 0; display: grid; grid-template-rows: 72px minmax(0,1fr); }
.overview-split > div > .section-head { align-items: flex-start; }
.overview-split > div > .surface { height: 100%; }
.wg-landscape { display: grid; }
.wg-health-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 14px 17px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.wg-health-row:last-child { border-bottom: 0; }
.wg-health-row:hover { background: var(--surface-soft); }
.wg-health-score { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--red-soft); color: var(--red); font-weight: 650; font-variant-numeric: tabular-nums; }
.wg-health-score.good { background: var(--green-soft); color: var(--green); }
.wg-health-score.attention { background: var(--amber-soft); color: var(--amber); }
.wg-health-main { min-width: 0; }
.wg-health-main strong, .wg-health-main > span { display: block; }
.wg-health-main > span { margin-top: 2px; color: var(--secondary); font-size: 11px; }
.wg-health-main .health-track { margin-top: 8px; }
.wg-health-arrow { color: var(--tertiary); font-size: 18px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin-top: 12px; color: var(--secondary); font-size: 11px; }
.inset-pagination { padding: 4px 16px 10px; margin: 0; border-top: 1px solid var(--line); }
.pagination-summary { font-variant-numeric: tabular-nums; }
.pagination-controls { display: flex; align-items: center; gap: 7px; }
.pagination-controls label { display: flex; align-items: center; gap: 6px; }
.page-size { min-height: 32px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 4px 7px; }
.page-button, .page-number { min-height: 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 5px 9px; }
.page-button:disabled { opacity: .4; cursor: default; }
.page-numbers { display: flex; gap: 4px; }
.page-number { min-width: 32px; padding: 5px; }
.page-number.active { border-color: var(--ink); background: var(--ink); color: var(--surface); }

.table-shell { overflow-x: auto; scrollbar-gutter: stable; }
.management-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.management-table th { padding: 0; border-bottom: 1px solid var(--line-strong); background: var(--surface-soft); text-align: left; white-space: nowrap; }
.management-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.management-table tbody tr:last-child td { border-bottom: 0; }
.management-table tbody tr:hover { background: var(--surface-soft); }
.management-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.management-table .strong { color: var(--ink); font-weight: 650; }
.sort-button { width: 100%; display: flex; justify-content: flex-start; align-items: center; gap: 5px; padding: 12px 15px; border: 0; background: transparent; color: var(--secondary); font-size: 11px; text-align: inherit; }
.numeric .sort-button { justify-content: flex-end; }
.sort-button.active { color: var(--ink); }
.person-inline { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.person-inline span { display: grid; }
.person-inline small { margin-top: 2px; color: var(--secondary); font-size: 10px; }
.person-share-cell { min-width: 250px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.share-card-trigger { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--secondary); font-size: 10px; font-weight: 600; white-space: nowrap; transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease; }
.share-card-trigger:hover { border-color: var(--line-strong); background: #fff; color: var(--ink); transform: translateY(-1px); }
.share-card-trigger svg { width: 14px; height: 14px; }
.avatar.avatar-small, .avatar-fallback.avatar-small { width: 34px; height: 34px; flex: 0 0 34px; }
.role-evidence { display: inline-flex; align-items: center; min-width: 132px; }
.score-signal { display: inline-grid; justify-items: start; gap: 5px; min-width: 164px; }
.score-signal small { color: var(--secondary); font-size: 9px; white-space: nowrap; }
.table-empty { padding: 44px !important; color: var(--secondary); text-align: center; }

.share-card-dialog { width: min(780px, calc(100vw - 28px)); max-width: none; max-height: calc(100vh - 24px); padding: 0; border: 0; overflow: auto; border-radius: 30px; background: transparent; color: var(--ink); scrollbar-width: none; }
.share-card-dialog::-webkit-scrollbar { display: none; }
.share-card-dialog::backdrop { background: rgba(15,15,18,.58); backdrop-filter: blur(18px); }
.share-card-dialog[open] { animation: share-card-enter .22s ease-out; }
.share-card-modal { overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; background: #f5f5f7; box-shadow: 0 40px 110px rgba(0,0,0,.32); }
.share-card-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 25px 27px 20px; }
.share-card-kicker { display: block; margin-bottom: 7px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.share-card-modal-head h2 { font-size: 24px; letter-spacing: -.035em; }
.share-card-modal-head p { margin: 5px 0 0; color: var(--secondary); font-size: 12px; }
.share-card-close { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.055); color: var(--secondary); }
.share-card-close:hover { background: rgba(0,0,0,.09); color: var(--ink); }
.share-card-close svg { width: 16px; height: 16px; }
.share-card-stage { position: relative; min-height: min(62vh, 680px); display: grid; place-items: center; margin: 0 14px; padding: 15px; overflow: hidden; border: 1px solid rgba(0,0,0,.055); border-radius: 24px; background: linear-gradient(145deg,#eaeaed,#f9f9fa); }
.share-card-stage::before { position: absolute; inset: 0; content: ''; opacity: .28; background-image: radial-gradient(rgba(0,0,0,.14) .55px, transparent .55px); background-size: 7px 7px; pointer-events: none; }
.share-card-stage img { position: relative; z-index: 1; width: auto; max-width: 100%; height: min(62vh, 680px); display: block; object-fit: contain; border-radius: 21px; box-shadow: 0 22px 55px rgba(26,26,30,.18); }
.share-card-loading { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; color: var(--secondary); }
.share-card-loading[hidden] { display: none; }
.share-card-loading span { width: 28px; height: 28px; border: 2px solid rgba(0,0,0,.1); border-top-color: var(--ink); border-radius: 50%; animation: share-card-spin .7s linear infinite; }
.share-card-loading p { margin: 0; font-size: 12px; }
.share-card-modal-foot { min-height: 82px; display: grid; grid-template-columns: minmax(180px,1fr) auto auto; align-items: center; gap: 20px; padding: 18px 26px 20px; }
.share-card-modal-foot > div:first-child { display: grid; gap: 3px; }
.share-card-modal-foot > div:first-child strong { font-size: 13px; }
.share-card-modal-foot > div:first-child span { color: var(--tertiary); font-size: 10px; }
.share-card-direct-link { width: max-content; margin-top: 2px; color: var(--blue); font-size: 10px; font-weight: 600; }
.share-card-direct-link[hidden] { display: none; }
.share-card-status { min-width: 126px; margin: 0; color: var(--secondary); font-size: 11px; text-align: right; }
.share-card-status[data-tone="success"] { color: var(--green); }
.share-card-status[data-tone="error"] { color: var(--red); }
.share-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.share-card-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.share-card-actions .button svg { width: 15px; height: 15px; }
.share-card-actions .button:disabled { opacity: .46; cursor: wait; }
.application-queue-share-dialog { width: min(1180px, calc(100vw - 28px)); }
.application-queue-share-dialog .share-card-modal { display: block; }
.application-queue-share-dialog .share-card-stage { min-height: min(68vh, 760px); }
.application-queue-share-dialog .share-card-stage img { width: 100%; max-width: 100%; height: auto; max-height: min(68vh, 760px); border-radius: 16px; }
@keyframes share-card-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes share-card-spin { to { transform: rotate(360deg); } }

.workgroup-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 1fr; gap: 16px; align-items: stretch; }
.workgroup-card { height: 100%; display: flex; flex-direction: column; padding: 24px; }
.workgroup-card-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: start; }
.workgroup-card-head h2 { margin-top: 7px; }
.workgroup-card-head p { max-width: 620px; margin: 7px 0 0; color: var(--secondary); }
.workgroup-card-head .wg-health-score { text-decoration: none; }
.wg-delivery-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.wg-delivery-strip span { padding: 11px; border-radius: 13px; background: var(--surface-soft); color: var(--secondary); font-size: 11px; }
.wg-delivery-strip strong { display: block; color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.wg-roster-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; flex: 1; margin-top: 16px; }
.wg-roster-column { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 17px; }
.wg-roster-heading { display: flex; justify-content: space-between; gap: 10px; color: var(--secondary); font-size: 11px; }
.wg-roster-heading strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.wg-roster-people { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.roster-person { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 12px; background: var(--surface-soft); }
.roster-avatar-share { position: relative; width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.roster-avatar-share .avatar, .roster-avatar-share .avatar-fallback { transition: transform .18s ease, box-shadow .18s ease; }
.roster-avatar-share:hover .avatar, .roster-avatar-share:hover .avatar-fallback, .roster-avatar-share:focus-visible .avatar, .roster-avatar-share:focus-visible .avatar-fallback { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(0,113,227,.13); }
.roster-avatar-share:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.roster-share-mark { position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; display: grid; place-items: center; border: 2px solid var(--surface-soft); border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 2px 6px rgba(0,113,227,.24); pointer-events: none; }
.roster-share-mark svg { width: 9px; height: 9px; stroke-width: 2.2; }
.roster-person-profile { min-width: 0; flex: 1; display: block; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.roster-person-profile > span { min-width: 0; }
.roster-person strong, .roster-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-person strong { font-size: 11px; }
.roster-person small { color: var(--secondary); font-size: 10px; }
.roster-person-profile:hover strong { color: var(--blue); }
.roster-person-profile:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 5px; }
.roster-empty { color: var(--tertiary); font-size: 11px; }
.workgroup-card-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 10px; }
.workgroup-card-footer code { color: var(--secondary); }
.application-table-shell { position: relative; isolation: isolate; }
.workgroup-application-table { min-width: 1380px; }
.workgroup-application-table td { max-width: 250px; }
.workgroup-application-table th:first-child, .workgroup-application-table td:first-child { position: sticky; left: 0; min-width: 284px; padding-left: 24px; background: var(--surface); box-shadow: 1px 0 var(--line), 10px 0 18px rgba(0,0,0,.025); }
.workgroup-application-table th:first-child { z-index: 4; background: var(--surface-soft); }
.workgroup-application-table td:first-child { z-index: 2; }
.workgroup-application-table tbody tr:hover td:first-child { background: var(--surface-soft); }
.workgroup-application-table .person-inline { padding-right: 16px; }
.application-status { display: flex; flex-wrap: wrap; gap: 5px; min-width: 150px; }
.application-export-trigger { min-height: 34px; padding-inline: 11px; border-color: rgba(0,113,227,.18); background: #f3f8ff; color: var(--blue); }
.application-export-trigger:hover { border-color: rgba(0,113,227,.34); background: #eaf4ff; color: #0059b2; }

.panel-label { margin: 2px 8px 10px; color: var(--tertiary); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail-heading h2 { margin-top: 7px; }
.compact-empty { min-height: 120px; }
.graph-toolbar { align-items: flex-end; padding-bottom: 38px; }
.hierarchy-control { display: grid; gap: 5px; min-width: 190px; margin: 0; padding: 0; border: 0; }
.hierarchy-control legend { margin: 0 0 5px; padding: 0; color: var(--secondary); font-size: 11px; font-weight: 500; }
.hierarchy-control .segmented { width: 100%; }
.hierarchy-control .segmented button { flex: 1; }
.search-action { display: flex; gap: 7px; }
.search-action .input { flex: 1; min-width: 0; }
.graph-toolbar #graph-search-status { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; }
.graph-actions { min-height: 40px; display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px; }
.graph-actions .button { min-height: 40px; }
.graph-statline { display: flex; justify-content: space-between; gap: 16px; margin: -4px 2px 10px; color: var(--secondary); font-size: 11px; }
.cytoscape-shell { height: 720px; min-height: 520px; }
#cy { width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #fff 0, #fbfbfc 56%, #f5f5f7 100%); }
.graph-overlay-actions { position: absolute; top: 14px; right: 14px; z-index: 4; display: flex; gap: 7px; }
.cytoscape-shell { position: relative; }
.fullscreen-only { display: none; }
.cytoscape-shell:fullscreen { width: 100vw; height: 100vh; min-height: 100vh; border: 0; border-radius: 0; background: var(--surface); }
.cytoscape-shell:fullscreen .fullscreen-only { display: inline-flex; }
.cytoscape-shell:fullscreen #cy { height: 100vh; }
.graph-key { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; color: var(--secondary); font-size: 11px; }
.graph-key span { display: inline-flex; align-items: center; gap: 6px; }
.graph-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.graph-key .key-group { background: var(--purple); }
.graph-key .key-health { background: var(--amber); }
.graph-detail { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; padding: 22px 24px; }
.graph-detail h2 { margin-top: 6px; }
.graph-detail p { margin: 7px 0 0; color: var(--secondary); }
.graph-detail-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; }

.weekly-toolbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 16px 20px; }
.weekly-toolbar > div { display: grid; gap: 5px; }
.weekly-toolbar strong { font-size: 13px; letter-spacing: -.01em; }
.weekly-toolbar .field { min-width: 230px; }
.weekly-cover { position: relative; min-height: 540px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 34px; padding: clamp(28px,4.2vw,64px); overflow: hidden; border-radius: 34px; background: radial-gradient(circle at 83% 18%,rgba(0,113,227,.16),transparent 30%),radial-gradient(circle at 20% 100%,rgba(175,82,222,.12),transparent 34%),linear-gradient(145deg,#fff 0%,#f7f7f9 66%,#eceef4 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.045),0 24px 70px rgba(24,24,28,.08); isolation: isolate; }
.weekly-cover::before { position: absolute; width: 420px; height: 420px; right: -160px; top: 70px; content: ''; border: 1px solid rgba(0,113,227,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(0,113,227,.025),0 0 0 140px rgba(175,82,222,.018); pointer-events: none; }
.weekly-cover-orbit { position: absolute; width: 9px; height: 9px; right: 12.9%; top: 39%; border-radius: 50%; background: var(--blue); box-shadow: 0 0 26px rgba(0,113,227,.72); }
.weekly-cover > *:not(.weekly-cover-orbit) { position: relative; z-index: 1; }
.weekly-cover > header,.weekly-cover > footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--secondary); font-size: 11px; }
.weekly-cover-brand { display: flex; align-items: center; gap: 16px; }
.weekly-cover-brand img { width: 126px; height: 34px; object-fit: contain; object-position: left center; }
.weekly-cover-brand span { padding-left: 16px; border-left: 1px solid rgba(0,0,0,.12); }
.weekly-cover-copy { max-width: 900px; align-self: center; }
.weekly-cover-copy h2 { max-width: 820px; margin-top: 14px; font-size: clamp(43px,6vw,82px); line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.weekly-cover-copy p { max-width: 650px; margin: 22px 0 0; color: var(--secondary); font-size: clamp(14px,1.4vw,18px); line-height: 1.55; text-wrap: balance; }
.weekly-cover-numbers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; border-radius: 19px; background: rgba(0,0,0,.07); }
.weekly-cover-numbers div { min-height: 108px; display: grid; align-content: center; gap: 5px; padding: 20px 24px; background: rgba(255,255,255,.76); backdrop-filter: blur(16px); }
.weekly-cover-numbers strong { font-size: 30px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.weekly-cover-numbers span { color: var(--secondary); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.weekly-cover > footer { padding-top: 4px; }
.weekly-cover > footer span { max-width: 540px; }
.weekly-cover > footer strong { color: var(--ink); font-size: 11px; }
.weekly-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin: 18px 0 30px; }
.weekly-metric-card { min-height: 174px; display: grid; grid-template-rows: auto 1fr auto; gap: 15px; padding: 19px; border-radius: 21px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line),0 8px 24px rgba(24,24,28,.025); }
.weekly-metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--blue); }
.weekly-metric-icon svg { width: 17px; height: 17px; }
.weekly-metric-card > div:nth-child(2) { align-self: end; display: grid; gap: 4px; }
.weekly-metric-card > div:nth-child(2) strong { font-size: 30px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.weekly-metric-card > div:nth-child(2) span { color: var(--secondary); font-size: 11px; }
.weekly-metric-card footer { padding-top: 11px; border-top: 1px solid var(--line); color: var(--tertiary); font-size: 9px; }
.weekly-delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.weekly-delta.up { color: var(--green); }
.weekly-delta.down { color: var(--red); }
.weekly-delta.flat { color: var(--tertiary); }
.weekly-story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.weekly-secondary-grid { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); }
.weekly-panel { min-width: 0; height: 100%; overflow: hidden; }
.weekly-panel > header { min-height: 89px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 21px 23px 18px; border-bottom: 1px solid var(--line); }
.weekly-panel > header h2 { margin-top: 5px; font-size: 20px; letter-spacing: -.035em; }
.weekly-panel > header > span { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--secondary); font-size: 9px; }
.weekly-event-list,.weekly-contributor-list,.weekly-discussion-list,.weekly-workgroup-list { display: grid; }
.weekly-event { min-height: 78px; display: grid; grid-template-columns: 39px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px 20px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.weekly-event:last-child,.weekly-contributor-list a:last-child,.weekly-discussion-list a:last-child,.weekly-workgroup-list a:last-child { border-bottom: 0; }
.weekly-event:hover,.weekly-contributor-list a:hover,.weekly-discussion-list a:hover,.weekly-workgroup-list a:hover { background: var(--surface-soft); }
.weekly-event-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.weekly-event-icon.welcome { background: var(--green-soft); color: var(--green); }
.weekly-event-icon.accepted { background: rgba(175,82,222,.1); color: var(--purple); }
.weekly-event-icon.discussion { background: var(--amber-soft); color: var(--amber); }
.weekly-event-icon svg { width: 17px; height: 17px; }
.weekly-event > span:nth-child(2),.weekly-event strong,.weekly-event small { min-width: 0; display: block; }
.weekly-event strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.weekly-event small { margin-top: 4px; color: var(--secondary); font-size: 10px; line-height: 1.35; }
.weekly-event > i { color: var(--tertiary); font-style: normal; }
.weekly-contributor-list a { min-height: 65px; display: grid; grid-template-columns: 28px 34px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.weekly-rank { color: var(--tertiary); font-size: 10px; font-variant-numeric: tabular-nums; }
.weekly-person { min-width: 0; display: grid; gap: 3px; }
.weekly-person strong,.weekly-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-person strong { font-size: 12px; }
.weekly-person small { color: var(--secondary); font-size: 9px; }
.weekly-score { min-width: 34px; color: var(--secondary); font-size: 12px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.weekly-discussion-list a { min-height: 70px; display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.weekly-discussion-list > a > span { color: var(--tertiary); font-size: 9px; }
.weekly-discussion-list div,.weekly-discussion-list strong,.weekly-discussion-list small { min-width: 0; display: block; }
.weekly-discussion-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.weekly-discussion-list small { margin-top: 4px; color: var(--secondary); font-size: 9px; }
.weekly-discussion-list i { color: var(--tertiary); font-style: normal; }
.weekly-workgroup-list a { min-height: 70px; display: grid; grid-template-columns: minmax(210px,1fr) minmax(90px,.55fr) 30px; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.weekly-workgroup-list a > div:first-child { min-width: 0; display: grid; gap: 4px; }
.weekly-workgroup-list strong,.weekly-workgroup-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-workgroup-list strong { font-size: 11px; }
.weekly-workgroup-list span { color: var(--secondary); font-size: 9px; }
.weekly-workgroup-volume { height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.weekly-workgroup-volume i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--purple)); }
.weekly-workgroup-list b { color: var(--secondary); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.weekly-empty { min-height: 180px; display: grid; place-items: center; padding: 28px; color: var(--secondary); font-size: 11px; text-align: center; }
.weekly-archive { margin-top: 34px; }
.weekly-archive .section-head { margin-bottom: 14px; }
.weekly-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.weekly-archive-card { min-height: 190px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 21px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); color: var(--ink); text-align: left; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.weekly-archive-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(24,24,28,.07); }
.weekly-archive-card.active { border-color: rgba(0,113,227,.34); box-shadow: inset 0 0 0 1px rgba(0,113,227,.12); }
.weekly-archive-card > span { color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.weekly-archive-card > strong { font-size: 14px; }
.weekly-archive-card p { margin: 0; color: var(--secondary); font-size: 11px; line-height: 1.45; }
.weekly-archive-card footer { display: flex; gap: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--tertiary); font-size: 9px; }
.weekly-issues-hero { min-height: 310px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(380px,.8fr); align-items: center; gap: clamp(34px,5vw,72px); padding: clamp(34px,4vw,56px); border: 1px solid rgba(0,0,0,.05); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.weekly-issues-hero::before,.weekly-issues-hero::after { display: none; }
.weekly-issues-hero > * { position: relative; z-index: 1; }
.weekly-hero-copy { align-self: center; }
.weekly-hero-kicker { display: flex; flex-wrap: wrap; gap: 9px 22px; color: var(--tertiary); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.weekly-hero-kicker span:first-child { color: var(--blue); }
.weekly-hero-copy h1 { max-width: 740px; margin: 13px 0 14px; color: var(--ink); font-size: clamp(42px,5vw,64px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.weekly-hero-copy p { max-width: 670px; margin: 0; color: var(--secondary); font-size: clamp(14px,1.2vw,17px); line-height: 1.55; }
.weekly-hero-copy code { padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(255,255,255,.7); color: var(--ink); font-size: .88em; }
.weekly-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 22px; margin-top: 24px; }
.weekly-hero-primary { min-height: 43px; padding: 10px 16px; border: 0; background: var(--ink); color: #fff; font-weight: 650; box-shadow: none; }
.weekly-hero-primary:hover { background: #333338; }
.weekly-hero-actions > a { color: var(--blue); font-size: 12px; font-weight: 600; }
.weekly-hero-actions > a:hover { color: #0058b0; }
.weekly-progress-card { align-self: stretch; min-height: 240px; display: grid; align-content: center; gap: 18px; padding: 10px 0 10px clamp(30px,4vw,58px); border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.weekly-progress-card header,.weekly-progress-card footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.weekly-progress-card header { color: var(--secondary); font-size: 11px; }
.weekly-progress-card header strong { color: var(--ink); font-size: 13px; }
.weekly-progress-highlight { display: flex; align-items: flex-end; gap: 16px; }
.weekly-progress-highlight > strong { font-size: clamp(54px,6vw,72px); line-height: .8; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.weekly-progress-highlight > span { color: var(--secondary); font-size: 12px; line-height: 1.35; }
.weekly-progress-track { height: 13px; display: flex; gap: 3px; overflow: hidden; border-radius: 999px; background: var(--line); }
.weekly-progress-track i { display: block; height: 100%; min-width: 3px; }
.weekly-progress-track .available { background: var(--blue); }
.weekly-progress-track .in-progress { background: #d9942b; }
.weekly-progress-track .merged { background: var(--green); }
.weekly-progress-legend { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.weekly-progress-legend span { min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 9px; white-space: nowrap; }
.weekly-progress-legend span > i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.weekly-progress-legend span > i.available { background: var(--blue); }
.weekly-progress-legend span > i.in-progress { background: #d9942b; }
.weekly-progress-legend span > i.merged { background: var(--green); }
.weekly-progress-legend strong { color: var(--ink); font-size: 10px; }
.weekly-progress-card footer { padding-top: 15px; border-top: 1px solid var(--line); color: var(--tertiary); font-size: 9px; }
.weekly-progress-card footer a { color: var(--blue); font-weight: 600; }
.weekly-empty-hero { margin-bottom: 18px; padding: 56px; border-radius: 32px; background: #151622; color: #fff; }
.weekly-empty-hero h1 { margin-top: 10px; }
.weekly-empty-hero p { color: rgba(255,255,255,.68); }
.weekly-toolbar { position: sticky; top: 78px; z-index: 8; min-height: 78px; margin: 18px 0 34px; padding: 14px; border-color: var(--line); background: rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.weekly-toolbar .field { min-width: 250px; }
.weekly-toolbar .field.grow { min-width: 330px; }
.weekly-status-filter { align-self: end; min-height: 40px; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.weekly-toolbar > .weekly-status-filter { display: flex; }
.weekly-status-filter button { padding: 7px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--secondary); font: inherit; font-size: 10px; cursor: pointer; }
.weekly-status-filter button:hover { color: var(--ink); }
.weekly-status-filter button.active { background: var(--ink); color: #fff; }
.weekly-workgroups-section { scroll-margin-top: 174px; }
.weekly-pool-head { align-items: flex-end; margin-bottom: 20px; }
.weekly-pool-head h2 { margin-top: 7px; font-size: clamp(28px,3.2vw,42px); letter-spacing: -.045em; }
.weekly-workgroup-listing { display: grid; gap: 22px; }
.weekly-workgroup { --wg-color:#6e6e73; --wg-soft:#f5f5f7; --wg-strong:#424245; position: relative; overflow: hidden; border: 1px solid color-mix(in srgb,var(--wg-color) 24%,#e8e8ed); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.weekly-workgroup::before { position: absolute; inset: 0 0 auto; height: 4px; content: ''; background: var(--wg-color); }
.weekly-workgroup-mom { --wg-color:#7d43c5; --wg-soft:#f5effc; --wg-strong:#60319a; }
.weekly-workgroup-router { --wg-color:#0071e3; --wg-soft:#eaf4ff; --wg-strong:#0059b4; }
.weekly-workgroup-data { --wg-color:#168a9c; --wg-soft:#edf8fa; --wg-strong:#0d6977; }
.weekly-workgroup-enterprise { --wg-color:#b45f06; --wg-soft:#fff6e6; --wg-strong:#884704; }
.weekly-workgroup-agentic { --wg-color:#596fcb; --wg-soft:#f0f2fc; --wg-strong:#4054a5; }
.weekly-workgroup-devex { --wg-color:#248a3d; --wg-soft:#eaf7ed; --wg-strong:#19692d; }
.weekly-workgroup-evaluation { --wg-color:#c4473a; --wg-soft:#fff1ef; --wg-strong:#97342b; }
.weekly-workgroup-head { min-height: 154px; display: grid; grid-template-columns: minmax(0,1fr) 108px; align-items: start; gap: 30px; padding: 31px 34px 24px; background: var(--surface); }
.weekly-workgroup-copy .eyebrow { color: var(--wg-strong); }
.weekly-workgroup-copy h2 { max-width: 760px; margin-top: 7px; color: var(--ink); font-size: clamp(25px,2.7vw,34px); letter-spacing: -.04em; }
.weekly-workgroup-copy p { max-width: 900px; margin: 11px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.55; }
.weekly-workgroup-mark { width: 104px; height: 76px; display: grid; place-content: center; gap: 3px; border: 1px solid color-mix(in srgb,var(--wg-color) 30%,var(--line)); border-radius: 17px; background: var(--surface); color: var(--wg-strong); text-align: center; box-shadow: none; transition: border-color .16s ease,background .16s ease; }
.weekly-workgroup-mark:hover { border-color: var(--wg-color); background: var(--wg-soft); }
.weekly-workgroup-mark span { font-size: 21px; font-weight: 720; letter-spacing: -.04em; }
.weekly-workgroup-mark small { color: color-mix(in srgb,var(--wg-strong) 70%,white); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.weekly-workgroup-stats { min-height: 54px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; padding: 12px 38px; border-top: 1px solid color-mix(in srgb,var(--wg-color) 15%,#eee); border-bottom: 1px solid var(--line); color: var(--secondary); font-size: 10px; }
.weekly-workgroup-stats span { display: inline-flex; align-items: center; gap: 7px; }
.weekly-workgroup-stats strong { color: var(--wg-strong); font-size: 13px; }
.weekly-workgroup-stats i,.weekly-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.weekly-workgroup-stats i.available,.weekly-status-lane.available .weekly-status-dot { background: var(--blue); }
.weekly-workgroup-stats i.in-progress,.weekly-status-lane.in_progress .weekly-status-dot { background: #d68918; }
.weekly-workgroup-stats i.merged,.weekly-status-lane.merged .weekly-status-dot { background: var(--green); }
.weekly-workgroup-lanes { display: grid; gap: 22px; padding: 25px; background: var(--surface-soft); }
.weekly-status-lane { min-width: 0; }
.weekly-status-lane > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 3px 10px; }
.weekly-status-lane > header > div { display: flex; align-items: center; gap: 8px; }
.weekly-status-lane > header strong { font-size: 12px; }
.weekly-status-lane > header > span { color: var(--tertiary); font-size: 10px; font-variant-numeric: tabular-nums; }
.weekly-issue-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.weekly-issue-card { min-width: 0; min-height: 260px; display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 11px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: none; transition: border-color .16s ease,box-shadow .16s ease; }
.weekly-issue-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.weekly-issue-card.available,.weekly-issue-card.in_progress,.weekly-issue-card.merged { box-shadow: none; }
.weekly-issue-card-top,.weekly-issue-byline,.weekly-issue-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weekly-status { display: inline-flex; align-items: center; min-height: 24px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.weekly-status.available { background: var(--blue-soft); color: var(--blue); }
.weekly-status.in_progress { background: var(--amber-soft); color: var(--amber); }
.weekly-status.merged { background: var(--green-soft); color: var(--green); }
.weekly-issue-number { color: var(--tertiary); font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.weekly-issue-card h3 { margin: 0; font-size: 15px; line-height: 1.38; letter-spacing: -.018em; }
.weekly-issue-card h3 a { color: var(--ink); }
.weekly-issue-card h3 a:hover { color: var(--wg-strong); }
.weekly-path { margin: 0; color: var(--tertiary); font-size: 9px; }
.weekly-active-people { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.weekly-active-people > span:first-child { width: 100%; color: var(--wg-strong); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.weekly-person-chip { min-width: 0; display: flex; align-items: center; gap: 8px; }
.weekly-person-chip > span:last-child { min-width: 0; display: grid; gap: 1px; }
.weekly-person-chip small,.weekly-person-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-person-chip small { color: var(--tertiary); font-size: 8px; font-weight: 500; }
.weekly-person-chip strong { max-width: 145px; color: var(--ink); font-size: 10px; font-weight: 650; }
.weekly-person-chip .avatar,.weekly-person-chip .avatar-fallback { width: 30px; height: 30px; flex: 0 0 30px; border: 2px solid #fff; box-shadow: 0 2px 7px rgba(0,0,0,.1); }
.weekly-issue-byline { align-self: end; padding-top: 8px; }
.weekly-issue-byline time { color: var(--tertiary); font-size: 8px; white-space: nowrap; }
.weekly-issue-action { min-height: 41px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 10px; }
.weekly-delivery-links { display: flex; flex-wrap: wrap; gap: 7px; }
.weekly-delivery-links a { padding: 5px 8px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-weight: 650; }
.weekly-claim { width: 100%; min-height: 36px; display: flex; justify-content: space-between; padding: 9px 11px; border-color: color-mix(in srgb,var(--wg-color) 30%,#ddd); background: var(--wg-soft); color: var(--wg-strong); font-size: 9px; font-weight: 700; }
.weekly-claim:hover { border-color: var(--wg-color); background: color-mix(in srgb,var(--wg-soft) 84%,white); }
@media (max-width:1120px) {
  .weekly-issues-hero { grid-template-columns: minmax(0,1fr) minmax(330px,.72fr); gap: 32px; padding: 42px; }
  .weekly-issue-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .weekly-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .weekly-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
  .weekly-issues-hero { grid-template-columns: 1fr; }
  .weekly-progress-card { width: 100%; min-height: 0; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .weekly-toolbar { position: relative; top: auto; }
}
@media (max-width:720px) {
  .weekly-source { align-items: stretch; flex-direction: column; }
  .weekly-source-meta { text-align: left; }
  .weekly-status-filter { width: 100%; align-self: stretch; overflow-x: auto; }
  .weekly-status-filter button { flex: 1 0 auto; }
  .weekly-issue-grid { grid-template-columns: 1fr; }
  .weekly-toolbar { align-items: stretch; flex-direction: column; gap: 15px; }
  .weekly-toolbar .field { min-width: 0; }
  .weekly-issues-hero { min-height: 0; gap: 28px; padding: 34px 22px; border-radius: 27px; }
  .weekly-hero-copy h1 { font-size: clamp(50px,16vw,72px); }
  .weekly-hero-copy p { font-size: 15px; }
  .weekly-hero-actions { align-items: flex-start; flex-direction: column; }
  .weekly-progress-card { gap: 19px; padding: 24px 0 0; border-radius: 0; }
  .weekly-progress-highlight > strong { font-size: 67px; }
  .weekly-progress-legend { grid-template-columns: 1fr; }
  .weekly-progress-card footer { align-items: flex-start; flex-direction: column; }
  .weekly-pool-head { align-items: flex-start; flex-direction: column; }
  .weekly-workgroup { border-radius: 24px; }
  .weekly-workgroup-head { min-height: 0; grid-template-columns: minmax(0,1fr) 82px; gap: 17px; padding: 29px 22px 22px; }
  .weekly-workgroup-copy h2 { font-size: 26px; }
  .weekly-workgroup-copy p { font-size: 11px; }
  .weekly-workgroup-mark { width: 78px; height: 78px; border-radius: 21px; }
  .weekly-workgroup-mark span { font-size: 20px; }
  .weekly-workgroup-stats { gap: 9px 16px; padding: 12px 22px; }
  .weekly-workgroup-lanes { padding: 18px; }
  .weekly-cover { min-height: 500px; gap: 25px; padding: 25px 20px; border-radius: 25px; }
  .weekly-cover::before { width: 280px; height: 280px; right: -150px; }
  .weekly-cover-orbit { display: none; }
  .weekly-cover > header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .weekly-cover-brand { width: 100%; justify-content: space-between; }
  .weekly-cover-brand img { width: 110px; }
  .weekly-cover-copy h2 { font-size: clamp(38px,12vw,58px); }
  .weekly-cover-copy p { margin-top: 16px; }
  .weekly-cover-numbers div { min-height: 92px; padding: 16px 13px; }
  .weekly-cover-numbers strong { font-size: 25px; }
  .weekly-cover-numbers span { font-size: 8px; }
  .weekly-cover > footer { align-items: flex-end; }
  .weekly-cover > footer span { max-width: 68%; font-size: 9px; line-height: 1.4; }
  .weekly-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .weekly-metric-card { min-height: 158px; padding: 16px; }
  .weekly-story-grid,.weekly-secondary-grid { grid-template-columns: 1fr; }
  .weekly-panel > header { min-height: 82px; padding: 18px; }
  .weekly-event,.weekly-contributor-list a,.weekly-discussion-list a,.weekly-workgroup-list a { padding-left: 15px; padding-right: 15px; }
  .weekly-workgroup-list a { grid-template-columns: minmax(0,1fr) 30px; }
  .weekly-workgroup-volume { display: none; }
  .weekly-archive-grid { grid-template-columns: 1fr; }
}
@media (max-width:380px) {
  .weekly-cover-numbers { grid-template-columns: 1fr; }
  .weekly-cover-numbers div { min-height: 74px; }
  .weekly-cover-brand span { font-size: 9px; }
  .weekly-metrics { grid-template-columns: 1fr; }
}

.notice { padding: 18px 20px; border-radius: 18px; background: var(--amber-soft); color: #744000; }
.notice strong { display: block; margin-bottom: 4px; }
.field-help { display: block; margin-top: 7px; color: var(--tertiary); font-size: 10px; line-height: 1.35; }
.small { color: var(--secondary); font-size: 12px; }
.right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }

.site-footer { visibility: visible; flex: 0 0 auto; margin-top: auto; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer-inner { width: min(1480px, calc(100% - 48px)); min-height: 116px; margin: 0 auto; display: grid; grid-template-columns: minmax(250px,1fr) auto minmax(250px,1fr); align-items: center; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 134px; height: 46px; object-fit: contain; object-position: left center; }
.footer-brand span, .footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { font-size: 12px; }
.footer-brand small, .site-footer p { color: var(--secondary); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--secondary); font-size: 12px; }
.footer-links a:hover { color: var(--blue); }
.site-footer p { margin: 0; text-align: right; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: auto 1fr; }
  .freshness { display: none; }
  .nav { justify-content: flex-end; overflow-x: auto; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-grid, .issue-layout, .inbox-layout, .health-layout, .overview-split { grid-template-columns: 1fr; }
  .trend-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .people-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .workgroup-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rank-row { grid-template-columns: 44px minmax(180px,1fr) repeat(3, 70px) 140px; }
  .rank-row .hide-medium { display: none; }
  .cytoscape-shell { height: 640px; }
  .inbox-list, .inbox-editor { height: auto; min-height: 0; }
  .inbox-list { max-height: 680px; }
  .activity-toolbar .field.grow { flex-basis: 100%; }
  .site-footer-inner { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 720px) {
  .topbar { position: static; display: block; padding: 10px 16px; }
  .brand { margin-bottom: 8px; }
  .brand img { width: 142px; height: 49px; flex-basis: 142px; }
  .nav { max-width: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav a { padding: 7px 9px; }
  .page { width: calc(100% - 28px); max-width: 1440px; padding-top: 30px; }
  .page-header { display: block; }
  .timestamp { margin-top: 12px; text-align: left; }
  .metric-grid, .people-grid, .decision-grid { grid-template-columns: 1fr; }
  .metric-grid, .metric, .inbox-layout, .inbox-list, .inbox-editor { min-width: 0; }
  .metric { min-height: 126px; }
  .row-main { grid-template-columns: 1fr; }
  .row-actions { justify-content: flex-start; }
  .row-details { padding-left: 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 36px minmax(150px,1fr) 90px; }
  .rank-row .rank-metric, .rank-row .hide-medium { display: none; }
  .share-card-dialog { width: calc(100vw - 18px); border-radius: 23px; }
  .share-card-modal { border-radius: 23px; }
  .share-card-modal-head { padding: 20px 19px 16px; }
  .share-card-modal-head p { display: none; }
  .share-card-stage { min-height: min(53vh, 500px); margin: 0 8px; padding: 7px; border-radius: 17px; }
  .share-card-stage img { height: min(53vh, 500px); }
  .share-card-stage img { border-radius: 13px; }
  .share-card-modal-foot { grid-template-columns: 1fr; gap: 11px; padding: 16px 18px 18px; }
  .share-card-status { min-width: 0; text-align: left; }
  .share-card-actions { width: 100%; }
  .share-card-actions .button { flex: 1; }
  .graph-shell { min-height: 430px; overflow: hidden; }
  .wg-graph { min-height: 420px; }
  .health-overview { align-items: flex-start; flex-direction: column; }
  .health-ring { flex-basis: 132px; width: 132px; height: 132px; }
  .health-dimensions { grid-template-columns: 1fr; padding: 10px 16px; }
  .health-dimension { padding: 13px 2px; border-right: 0; border-bottom: 1px solid var(--line); }
  .health-dimension:last-child { border-bottom: 0; }
  .trend-grid { grid-template-columns: 1fr; }
  .chart-container { height: 230px; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .pagination-controls { width: 100%; flex-wrap: wrap; }
  .page-numbers { order: 4; width: 100%; }
  .page-number { flex: 1; }
  .graph-statline, .graph-detail { align-items: flex-start; flex-direction: column; }
  .graph-detail-meta { justify-content: flex-start; }
  .cytoscape-shell { height: 540px; min-height: 440px; border-radius: 18px; }
  .graph-actions { width: 100%; }
  .graph-actions .button { flex: 1; }
  .inbox-toolbar .field { min-width: 0; width: 100%; }
  .inbox-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .inbox-actions .button { flex: 1; }
  .activity-toolbar .field { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); }
  .activity-toolbar .activity-view-field { min-width: 100%; flex-basis: 100%; }
  .activity-toolbar .field.grow { flex-basis: 100%; }
  .activity-event { grid-template-columns: 40px minmax(0, 1fr); padding: 17px 16px; }
  .activity-time { grid-column: 2; grid-row: 2; padding: 0; text-align: left; }
  .activity-list-head, .activity-day { padding-left: 16px; padding-right: 16px; }
  .activity-list-head { align-items: flex-start; flex-direction: column; }
  .activity-list-actions { width: 100%; justify-content: space-between; }
  .activity-pagination { padding: 14px 16px; }
  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-footer { align-items: stretch; flex-direction: column; }
  .wg-delivery-strip, .wg-roster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wg-roster-people { grid-template-columns: 1fr; }
  .workgroup-card { padding: 19px; }
  .workgroup-card-footer { align-items: flex-start; flex-direction: column; }
  .site-footer-inner { width: calc(100% - 32px); padding: 24px 0; grid-template-columns: 1fr; gap: 18px; }
  .footer-links { justify-content: flex-start; }
  .graph-overlay-actions { top: 9px; right: 9px; }
}

/* Handheld layout: preserve hierarchy while replacing desktop-width interactions. */
@media (max-width: 720px) {
  a, button, input, select, textarea { touch-action: manipulation; }
  .topbar {
    padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left));
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(22px);
  }
  .brand { min-height: 38px; margin-bottom: 7px; }
  .brand img { width: 142px; height: 49px; flex-basis: 142px; }
  .brand span { padding-left: 11px; font-size: 11px; }
  .nav {
    max-width: none;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left)));
    padding: 1px max(16px, env(safe-area-inset-right)) 3px max(16px, env(safe-area-inset-left));
    gap: 4px;
    scroll-padding-inline: max(16px, env(safe-area-inset-left));
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 11px; }
  .page {
    width: 100%;
    padding: 27px max(14px, env(safe-area-inset-right)) max(58px, calc(42px + env(safe-area-inset-bottom))) max(14px, env(safe-area-inset-left));
  }
  .page-header { gap: 14px; margin-bottom: 22px; }
  h1 { margin-top: 6px; font-size: clamp(32px, 10.5vw, 42px); line-height: 1.02; }
  h2 { font-size: 19px; }
  .lede { font-size: 15px; line-height: 1.45; }
  .timestamp { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 11px; }
  .timestamp strong { order: 3; flex-basis: 100%; }

  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
  .metric { min-height: 116px; padding: 15px; border-radius: 18px; }
  .metric-icon { width: 31px; height: 31px; border-radius: 9px; }
  .metric-icon svg { width: 16px; height: 16px; }
  .metric-value { margin-top: 15px; font-size: 27px; }
  .metric-label { margin-top: 5px; font-size: 12px; line-height: 1.3; }
  .metric-note { max-width: 82px; font-size: 9px; line-height: 1.25; }
  .section { margin-top: 24px; }
  .section-head { align-items: flex-start; margin-bottom: 10px; }
  .section-head p { font-size: 12px; line-height: 1.45; }
  .section-head-actions { gap: 8px; }
  .surface { border-radius: 19px; }
  .surface-pad { padding: 18px; }

  .toolbar { gap: 9px; padding: 11px; margin-bottom: 14px; border-radius: 16px; }
  .toolbar > .field, .toolbar > .hierarchy-control { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
  .toolbar > .field.grow { min-width: 100%; flex-basis: 100%; }
  .input, .select, .button, .segmented button { min-height: 44px; }
  .input, .select { width: 100%; padding: 10px 11px; font-size: 16px; }
  .button { display: inline-flex; align-items: center; justify-content: center; }
  .segmented { min-height: 44px; padding: 3px; }
  .segmented button { padding: 8px 10px; }
  .mobile-only { display: grid !important; }
  .mobile-sort-field { min-width: 100% !important; flex-basis: 100% !important; }
  .snapshot-badge { align-self: flex-start; }

  .row-main { gap: 12px; padding: 15px; }
  .row-sub { margin-left: 0; }
  .row-actions { width: 100%; max-width: 100%; overflow: hidden; }
  .row-actions .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .row-details { padding: 0 15px 16px; }
  .detail-heading { flex-direction: column; gap: 12px; }
  .detail-heading .row-actions { justify-content: flex-start; }
  .issue-detail { min-height: 0; padding: 18px; }
  .tree-panel { max-height: min(56dvh, 560px); padding: 8px; }
  .tree-children { margin-left: 9px; padding-left: 5px; }
  .tree-row { min-height: 44px; padding: 9px 7px; }
  .detail-cell { min-width: 0; }

  .pagination { width: 100%; gap: 8px; }
  .pagination-summary { min-height: 22px; display: flex; align-items: center; }
  .pagination-controls { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,1fr); gap: 7px; }
  .pagination-controls label { min-height: 44px; }
  .page-size, .page-button, .page-number { min-height: 44px; }
  .page-button { width: 100%; }
  .page-numbers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 5px; }
  .page-number { min-width: 0; width: 100%; }

  .mobile-card-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mobile-card-table, .mobile-card-table tbody { width: 100%; min-width: 0; display: block; }
  .mobile-card-table thead { display: none; }
  .mobile-card-table tbody { display: grid; gap: 10px; }
  .mobile-card-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.055);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .mobile-card-table tbody tr:hover { background: var(--surface); }
  .mobile-card-table td,
  .mobile-card-table td:first-child {
    position: static;
    min-width: 0;
    max-width: none;
    min-height: 64px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 11px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .mobile-card-table td:nth-child(2n + 1) { border-right: 0; }
  .mobile-card-table td::before {
    content: attr(data-label);
    color: var(--tertiary);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
  }
  .mobile-card-table td.mobile-primary {
    order: -1;
    grid-column: 1 / -1;
    min-height: 70px;
    padding: 13px 14px;
    border-top: 0;
    border-right: 0;
  }
  .mobile-card-table td.mobile-primary::before { display: none; }
  .mobile-card-table td.mobile-wide { grid-column: 1 / -1; border-right: 0; }
  .mobile-card-table .numeric { text-align: left; }
  .mobile-card-table .person-share-cell { width: 100%; min-width: 0; gap: 10px; }
  .mobile-card-table .person-inline { min-width: 0; min-height: 44px; padding-right: 0; }
  .mobile-card-table .person-inline > span { min-width: 0; }
  .mobile-card-table .person-inline strong, .mobile-card-table .person-inline small { overflow-wrap: anywhere; }
  .mobile-card-table .share-card-trigger { flex: 0 0 auto; }
  .mobile-card-table .role-evidence { min-width: 0; }
  .mobile-card-table .table-empty { grid-column: 1 / -1; display: block; min-height: 110px; padding: 38px 16px !important; border: 0; }
  .application-table-shell { isolation: auto; }
  .workgroup-application-table { min-width: 0; }
  .workgroup-application-table td:nth-child(6), .workgroup-application-table td:nth-child(7), .workgroup-application-table td:nth-child(8) { grid-column: 1 / -1; border-right: 0; }
  .application-status { min-width: 0; }
  .share-card-trigger, .activity-share { min-width: 44px; min-height: 44px; padding: 9px 11px; }

  .priority-item { grid-template-columns: 38px minmax(0,1fr); padding: 14px; }
  .priority-item > .badge { grid-column: 2; justify-self: start; }
  .wg-health-row { grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; padding: 13px; }
  .overview-split > div { grid-template-rows: auto minmax(0,1fr); }
  .overview-split > div > .section-head { min-height: 0; }
  .health-overview { gap: 20px; padding: 20px; }
  .health-copy h2 { font-size: 24px; }
  .health-dimensions { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 10px; }
  .health-dimension { padding: 13px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .health-dimension:nth-child(odd) { border-right: 1px solid var(--line); }
  .health-dimension:last-child { grid-column: 1 / -1; border-right: 0; }
  .chart-container { height: 220px; }

  .activity-toolbar .field { min-width: calc(50% - 5px); flex-basis: calc(50% - 5px); }
  .activity-toolbar .activity-view-field, .activity-toolbar .field.grow { min-width: 100%; flex-basis: 100%; }
  .activity-list-head { min-height: 0; }
  .activity-list-actions { flex-wrap: wrap; }
  .activity-event { min-height: 0; gap: 12px; }
  .activity-mention { width: 100%; }
  .activity-application { align-items: flex-start; flex-direction: column; gap: 7px; }
  .activity-application p { justify-content: flex-start; text-align: left; }

  .workgroup-card { padding: 17px; }
  .workgroup-card-head { grid-template-columns: minmax(0,1fr) 42px; gap: 12px; }
  .wg-delivery-strip { gap: 6px; margin-top: 16px; }
  .wg-delivery-strip span { padding: 9px; }
  .wg-roster-grid { gap: 8px; }
  .wg-roster-column { padding: 12px; border-radius: 14px; }
  .roster-avatar-share { width: 44px; height: 44px; flex-basis: 44px; }

  .graph-toolbar { align-items: stretch; padding-bottom: 11px; }
  .graph-toolbar > .graph-workgroup-field, .graph-toolbar > .graph-search-field { min-width: 100%; flex-basis: 100%; }
  .graph-toolbar > .hierarchy-control { min-width: calc(50% - 5px); }
  .graph-toolbar #graph-search-status { position: static; margin-top: 2px; }
  .graph-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .graph-actions .button { width: 100%; min-height: 44px; white-space: normal; }
  .graph-statline { gap: 8px; margin-top: 0; }
  .graph-key { gap: 6px 12px; line-height: 1.4; }
  .cytoscape-shell { height: min(62dvh, 560px); min-height: 420px; }
  .cytoscape-shell:fullscreen, .cytoscape-shell:fullscreen #cy,
  .cytoscape-shell.is-mobile-fullscreen, .cytoscape-shell.is-mobile-fullscreen #cy { height: 100dvh; min-height: 100dvh; }
  .cytoscape-shell.is-mobile-fullscreen { position: fixed; inset: 0; z-index: 100; width: 100vw; border: 0; border-radius: 0; background: var(--surface); }
  .cytoscape-shell.is-mobile-fullscreen .fullscreen-only { display: inline-flex; }
  body.graph-fullscreen-open { overflow: hidden; }
  .graph-overlay-actions { top: max(9px, env(safe-area-inset-top)); right: max(9px, env(safe-area-inset-right)); }
  .graph-detail { gap: 14px; padding: 18px; }
  .graph-detail-meta { width: 100%; }

  .share-card-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - max(14px, env(safe-area-inset-top)) - max(14px, env(safe-area-inset-bottom)));
    border-radius: 22px;
  }
  .share-card-close { width: 44px; height: 44px; flex-basis: 44px; }
  .share-card-stage { min-height: min(49dvh, 470px); }
  .share-card-stage img { height: min(49dvh, 470px); }
  .share-card-actions .button { min-height: 46px; }
  .application-queue-share-dialog .share-card-stage { min-height: min(49dvh, 470px); }
  .application-queue-share-dialog .share-card-stage img { max-height: min(49dvh, 470px); }

  .site-footer-inner { width: 100%; padding: 23px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); gap: 16px; }
  .footer-brand img { width: 124px; height: 43px; }
  .footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 14px; }
  .footer-links a { min-height: 40px; display: flex; align-items: center; }
  .site-footer p { text-align: left; }
}

@media (max-width: 360px) {
  h1 { font-size: 31px; }
  .brand img { width: 132px; height: 46px; flex-basis: 132px; }
  .brand span { font-size: 10px; }
  .metric { min-height: 112px; padding: 13px; }
  .metric-value { font-size: 25px; }
  .metric-note { max-width: 66px; }
  .toolbar > .field, .toolbar > .hierarchy-control { min-width: 100%; flex-basis: 100%; }
  .graph-toolbar > .hierarchy-control { min-width: calc(50% - 5px); flex-basis: calc(50% - 5px); }
  .search-action { gap: 5px; }
  .search-action .button { padding-inline: 11px; }
  .workgroup-card-head { grid-template-columns: minmax(0,1fr) 40px; }
  .wg-delivery-strip span { padding: 8px; font-size: 10px; }
  .wg-roster-grid { grid-template-columns: 1fr; }
  .page-numbers { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .share-card-trigger span { display: none; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .share-card-dialog { width: min(920px, calc(100vw - 18px)); }
  .share-card-modal { display: grid; grid-template-columns: minmax(280px,1fr) minmax(280px,.8fr); }
  .share-card-modal-head, .share-card-modal-foot { grid-column: 2; }
  .share-card-stage { grid-column: 1; grid-row: 1 / 3; min-height: calc(100dvh - 26px); }
  .share-card-stage img { height: calc(100dvh - 54px); }
  .cytoscape-shell { height: 78dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
