.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }
.page-grid > .card { min-width: 0; }

.page-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .03em;
}
.page-kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.card-sub-link {
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.card-sub-link:hover { color: var(--ink); }

.detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.detail-card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.detail-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.service-list,
.metric-bars,
.backup-list,
.node-list,
.event-list,
.load-list,
.profile-task-list,
.profile-file-list,
.activity-list,
.project-list {
  display: grid;
}
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 86px 78px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.service-row:last-child { border-bottom: 0; }
.service-name { display: grid; gap: 3px; min-width: 0; }
.service-name strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.service-name em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: .06em;
}
.service-p95 {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.service-row .status { justify-self: end; }

.metric-bars { gap: 18px; padding-top: 15px; }
.metric-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}
.metric-label {
  color: var(--muted);
  font-size: 11px;
}
.metric-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--wash-2);
}
.metric-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}
.metric-value {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}
.metric-note {
  margin: 5px 0 0 72px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}

.backup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.backup-row:last-child { border-bottom: 0; }
.backup-row strong {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.backup-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}
.backup-row .status { justify-self: end; }

.node-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.node-row:last-child { border-bottom: 0; }
.node-row span { color: var(--muted); }
.node-row strong {
  color: var(--ink-2);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 10.5px;
  text-align: right;
}

.event-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.event-row:last-child { border-bottom: 0; }
.event-row time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.event-row p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
}
.event-row span {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.task-desc {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.board-page .work-card { padding-bottom: 22px; }
.board-page .work-grid { align-items: start; }
.board-page .records { padding-left: 18px; }
.load-list { padding-top: 4px; }
.load-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 38px 64px;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.load-row:last-child { border-bottom: 0; }
.load-avatar {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 8px;
}
.load-name {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.load-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--wash-2);
}
.load-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}
.load-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  text-align: right;
  white-space: nowrap;
}
.throughput {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 132px;
  padding-top: 16px;
}
.throughput-item {
  display: grid;
  flex: 1;
  align-content: end;
  justify-items: center;
  gap: 7px;
  height: 100%;
}
.throughput-item i {
  display: block;
  width: 100%;
  max-width: 34px;
  border-radius: 8px 8px 3px 3px;
  background: var(--ink);
}
.throughput-item span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.person-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 13px;
  min-height: 264px;
  text-decoration: none;
  color: inherit;
}
.person-card:hover { border-color: var(--line-strong); }
.person-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.person-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
}
.person-avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
}
.person-avatar.is-editing::after {
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.person-id { min-width: 0; flex: 1; display: grid; gap: 3px; }
.person-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-role {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .03em;
}
.person-presence {
  flex: none;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}
.person-presence.is-editing { border-style: dashed; color: var(--ink); }
.person-bio {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}
.person-focus {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-focus b { color: var(--ink-2); font-weight: 600; }
.person-contact {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.person-stat { display: grid; gap: 3px; }
.person-stat b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.person-stat span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}
.person-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.person-foot .load-track { width: 92px; }
.person-foot span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}
.person-link {
  color: var(--ink);
  font-size: 11px;
  text-decoration: none;
}
.person-link span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 26px;
}
.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 23px;
}
.profile-avatar::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
}
.profile-main { flex: 1; min-width: 0; }
.profile-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-name {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.profile-role {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .03em;
}
.profile-bio {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.profile-tag {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
}
.profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}
.profile-contact b { color: var(--ink-2); font-weight: 500; }
.profile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}
.profile-actions .btn-mini { white-space: nowrap; }
.profile-actions .back-link {
  color: var(--muted);
  font-size: 10.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-task,
.profile-file,
.activity-row,
.project-row {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.profile-task:last-child,
.profile-file:last-child,
.activity-row:last-child,
.project-row:last-child { border-bottom: 0; }
.profile-task {
  grid-template-columns: minmax(0, 1fr) auto;
}
.profile-task h4 {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.profile-task p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}
.profile-task .task-prio { align-self: start; }
.profile-file {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}
.profile-file-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px 9px 7px 7px;
  background: var(--wash);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 7px;
}
.profile-file strong {
  display: block;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}
.profile-file span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}
.profile-file a {
  color: var(--ink);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.activity-row {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
}
.activity-row time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}
.activity-row p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
}
.activity-row span {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}
.profile-load {
  display: grid;
  gap: 15px;
  padding-top: 15px;
}
.profile-load-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}
.profile-load-row span {
  color: var(--muted);
  font-size: 11px;
}
.profile-load-row b {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  text-align: right;
}
.project-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.project-row strong {
  display: block;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}
.project-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}
.project-row .status { justify-self: end; }

.subfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}
.subfoot a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .span-7, .span-8 { grid-column: 1 / -1; }
  .span-5 { grid-column: span 6; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .span-5, .span-4 { grid-column: 1 / -1; }
  .profile-card { flex-wrap: wrap; }
  .profile-actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .board-page .work-grid { grid-template-columns: minmax(0, 1fr); }
  .board-page .records { padding-top: 18px; padding-left: 0; border-top: 1px dashed var(--line); border-left: 0; }
}
@media (max-width: 720px) {
  .page-grid { gap: 12px; }
  .people-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 20px; }
  .profile-avatar { width: 62px; height: 62px; font-size: 19px; }
  .profile-name { font-size: 25px; }
  .service-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .service-p95 { display: none; }
  .task-desc { display: none; }
  .person-card { min-height: 0; }
  .throughput { height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  .person-card, .toast, .card-title .go { transition: none; }
}
