/* Inicio: briefing, paneles y mini red de trabajo. */


.page-home {
  max-width: 86rem;
  margin: 0 auto;
}


.page-home {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}

.home-briefing-desktop {
  display: grid;
  min-height: 27rem;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 22rem);
  gap: var(--space-8);
  padding: var(--space-8);
  border: 1px solid var(--color-nav-selected-border);
  border-radius: var(--radius-lg);
  background: var(--color-nav-bg);
  color: var(--color-nav-text-strong);
}

.home-briefing-desktop > section {
  min-width: 0;
  align-self: center;
}

.home-briefing-desktop h1 {
  max-width: 42rem;
  margin: 0 0 var(--space-6);
  color: var(--color-nav-text-strong);
  font-size: clamp(2.25rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-desktop-focus {
  display: grid;
  width: 100%;
  gap: var(--space-3);
}

.home-desktop-focus-card {
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--color-nav-control-border);
  border-radius: var(--radius-md);
  background: var(--color-nav-hover-bg);
}

.home-desktop-focus-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-nav-text-muted);
  font-size: var(--font-size-lg);
}

.home-desktop-focus-card .status {
  border-color: var(--color-nav-selected-border);
  background: var(--color-nav-selected-bg);
  color: var(--color-nav-action);
}

.home-desktop-focus-card .status-dot {
  display: none;
}

.home-desktop-focus-overdue {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  padding-inline: var(--space-2);
  border: 1px solid var(--color-status-danger-border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-status-danger-solid) 24%, transparent);
  color: var(--color-status-danger-border);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.home-desktop-focus h2 {
  margin: var(--space-1) 0 0;
  color: var(--color-nav-text-strong);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.home-desktop-focus > p,
.home-desktop-focus-footer > small {
  margin: 0;
  color: var(--color-nav-text);
  font-size: var(--font-size-xl);
  line-height: 1.5;
}

.home-desktop-focus > p {
  max-width: 60ch;
}

.home-desktop-focus-footer > small {
  font-size: var(--font-size-md);
}

.home-desktop-focus-footer {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.home-desktop-focus-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.home-desktop-focus-card .home-desktop-focus-actions {
  margin-top: 0;
}

.home-desktop-focus-actions .button-primary {
  min-width: 10rem;
  min-height: 3rem;
  font-size: var(--font-size-xl);
}

.home-desktop-wait {
  min-height: var(--control-height-md);
  padding-inline: var(--space-3);
  border: 0;
  background: transparent;
  color: var(--color-nav-action);
  font: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.home-desktop-wait:hover {
  color: var(--color-nav-text-strong);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-desktop-wait:focus-visible,
.home-desktop-metric:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-nav-action);
  outline-offset: var(--focus-ring-offset);
}

.home-desktop-focus-empty p {
  margin: 0;
}

.home-desktop-journey {
  display: grid;
  align-content: center;
  gap: var(--space-3);
  padding-left: var(--space-6);
  border-left: 1px solid var(--color-nav-border);
}

.home-desktop-journey h2 {
  margin: 0;
  color: var(--color-nav-text-muted);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-desktop-journey ul {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-desktop-metric {
  display: grid;
  width: 100%;
  min-height: 4.75rem;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-nav-control-border);
  border-radius: var(--radius-md);
  background: var(--color-nav-hover-bg);
  color: var(--color-nav-text-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-desktop-metric:hover {
  border-color: var(--color-nav-selected-border);
  background: var(--color-nav-selected-bg);
}

.home-desktop-metric > strong {
  font-size: 1.75rem;
}

.home-desktop-metric > span:not(.home-desktop-metric-go) {
  display: grid;
  gap: var(--space-1);
}

.home-desktop-metric b {
  font-size: var(--font-size-xl);
}

.home-desktop-metric small {
  overflow: hidden;
  color: var(--color-nav-text);
  font-size: var(--font-size-md);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-desktop-metric-go {
  display: inline-flex;
  color: var(--color-nav-action);
}

.home-desktop-metric.is-danger {
  border-color: var(--color-status-danger-border);
  background: color-mix(in srgb, var(--color-status-danger-bg) 12%, transparent);
}

.home-desktop-metric.is-danger > strong,
.home-desktop-metric.is-danger b {
  color: var(--color-status-danger-border);
}

.home-briefing-hero.home-briefing-hero-compact {
  display: none;
}

.home-briefing-hero {
  position: relative;
  display: grid;
  min-height: 18.75rem;
  grid-template-columns: minmax(25rem, 1.35fr) minmax(14rem, 0.7fr) minmax(14rem, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--color-nav-selected-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--color-nav-bg) 0%, var(--color-nav-bg) 58%, var(--color-violet-700) 145%);
  color: var(--color-nav-text-strong);
}

.home-briefing-copy {
  align-self: center;
  padding: var(--space-8);
}

.home-kicker {
  margin-bottom: var(--space-3);
  color: var(--color-nav-action);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-briefing-copy h1 {
  max-width: 36rem;
  margin-bottom: var(--space-4);
  color: var(--color-nav-text-strong);
  font-size: clamp(var(--font-size-3xl), 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-briefing-copy > p:last-of-type {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--color-nav-text);
  font-size: var(--font-size-lg);
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.home-hero-primary {
  max-width: 27rem;
  min-width: 0;
}

.home-hero-primary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-focus-card {
  display: grid;
  min-width: 0;
  max-width: 30rem;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-nav-control-border);
  border-radius: var(--radius-md);
  background: var(--color-nav-hover-bg);
  color: var(--color-nav-text-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-focus-card:hover {
  border-color: var(--color-nav-selected-border);
  background: var(--color-nav-selected-bg);
}

.home-focus-card:focus-visible,
.home-hero-metric:focus-visible {
  outline: 2px solid var(--color-nav-action);
  outline-offset: 2px;
}

.home-focus-icon {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-nav-selected-bg);
  color: var(--color-nav-action);
}

.home-focus-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.home-focus-copy small {
  color: var(--color-nav-action);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.home-focus-copy strong,
.home-focus-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-focus-copy strong {
  font-size: var(--font-size-md);
}

.home-focus-copy > span {
  color: var(--color-nav-text);
  font-size: var(--font-size-xs);
}

.home-focus-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-nav-action);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.button.home-hero-secondary {
  display: inline-flex;
  min-height: var(--control-height-md);
  align-items: center;
  gap: var(--space-2);
  border-color: var(--color-nav-control-border);
  background: var(--color-nav-hover-bg);
  color: var(--color-nav-action);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
}

.button.home-hero-secondary:hover {
  border-color: var(--color-nav-selected-border);
  background: var(--color-nav-selected-bg);
  color: var(--color-nav-text-strong);
}

.home-hero-metrics {
  display: grid;
  align-self: center;
  margin: var(--space-8) 0;
  padding: 0 var(--space-6);
  border-left: 1px solid var(--color-nav-border);
  list-style: none;
}

.home-hero-metric {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 2rem 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-hero-metric:hover {
  background: var(--color-nav-hover-bg);
}

.home-hero-metrics li + li {
  border-top: 1px solid var(--color-nav-border);
}

.home-hero-metric-icon {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--color-nav-text-strong);
}

.home-hero-metric > strong {
  color: var(--color-nav-text-strong);
  font-size: var(--font-size-2xl);
}

.home-hero-metric-copy {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.home-hero-metric-go {
  display: inline-flex;
  color: var(--color-nav-action);
}

.home-hero-metrics b {
  color: var(--color-nav-text-strong);
  font-size: var(--font-size-md);
}

.home-hero-metrics small {
  overflow: hidden;
  color: var(--color-nav-text);
  font-size: var(--font-size-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero-art {
  align-self: center;
  width: min(100%, 17rem);
  color: var(--color-nav-action);
  filter: drop-shadow(0 8px 16px var(--color-nav-bg));
}

.home-art-platform,
.home-art-platform-side,
.home-art-ring,
.home-art-center {
  fill: currentColor;
  stroke: var(--color-nav-text-strong);
  stroke-width: 2;
}

.home-art-platform {
  fill-opacity: 0.28;
}

.home-art-platform-side {
  fill-opacity: 0.42;
}

.home-art-ring {
  fill: var(--color-nav-bg);
  stroke: currentColor;
  stroke-width: 8;
}

.home-art-ring-inner {
  stroke-width: 6;
}

.home-art-center {
  fill: var(--color-nav-text-strong);
  stroke: currentColor;
}

.home-art-arrow,
.home-art-grid,
.home-art-guide {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-art-arrow {
  stroke: var(--color-nav-text-strong);
  stroke-width: 5;
}

.home-art-grid {
  opacity: 0.35;
}

.home-art-guide {
  opacity: 0.24;
  stroke-dasharray: 5 7;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

.home-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.home-dashboard-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-content: start;
  gap: var(--space-6);
  grid-column: span 5;
  grid-row: span 2;
}

.home-network-panel {
  grid-column: span 7;
  grid-row: span 2;
}

.home-updates-panel,
.home-activity-panel {
  grid-column: span 6;
}

.home-panel-heading {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
}

.home-panel-heading > div,
.home-panel-heading > div > h2 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
}

.home-panel-heading h2 {
  margin: 0;
  font-size: var(--font-size-xl);
  line-height: 1.3;
}

.home-panel-heading h2 small {
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
}

.home-panel-heading .text-link,
.home-panel-footer .text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-1);
}

.home-panel-count {
  display: inline-grid;
  min-width: 1.75rem;
  height: 1.75rem;
  padding-inline: var(--space-1);
  place-items: center;
  border-radius: 999px;
  background: var(--color-selected-bg);
  color: var(--color-selected-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.home-today-list {
  flex: 1;
}

.data-row.home-today-row {
  display: grid;
  min-height: 4.75rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(4.75rem, auto);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
}

.home-task-copy {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.home-task-copy > strong {
  overflow: hidden;
  font-size: var(--font-size-lg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-task-copy small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.home-task-copy small span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-task-copy small span + span:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.home-task-badge {
  justify-self: end;
}

.data-row.home-today-row .home-task-badge .status {
  min-height: 1.5rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: var(--radius-sm);
}

.data-row.home-today-row .home-task-badge .status-dot {
  display: none;
}

.data-row.home-today-row .home-task-badge .status-in_progress {
  background: var(--color-status-warning-bg);
  color: var(--color-status-warning-text);
}

.home-row-action {
  min-height: var(--control-height-sm);
  padding-inline: var(--space-2);
  border: 0;
  background: transparent;
  color: var(--color-link);
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.home-row-action:hover {
  color: var(--color-link-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-row-action:disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.home-panel-footer {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  padding: var(--space-3) var(--space-6);
}

.home-row-go {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-secondary);
}

.data-row.home-activity-row {
  display: grid;
  min-height: 3.5rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.home-activity-row time {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  white-space: nowrap;
}

.home-updates-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4);
  list-style: none;
}

.home-attention-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-attention-item {
  display: grid;
  width: 100%;
  min-height: 4.75rem;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border: 0;
  border-bottom: 1px solid var(--color-border-subtle);
  border-radius: 0;
  background: transparent;
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
}

.home-attention-list li:last-child .home-attention-item {
  border-bottom: 0;
}

.home-attention-item:hover,
.home-attention-item:focus-visible {
  background: var(--color-surface-hover);
}

.home-attention-item:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: calc(-1 * var(--focus-ring-width));
}

.home-attention-waiting {
  box-shadow: inset 3px 0 0 var(--color-status-waiting-solid);
}

.home-attention-waiting .home-attention-icon {
  background: var(--color-status-waiting-bg);
  color: var(--color-status-waiting-text);
}

.home-attention-danger {
  box-shadow: inset 3px 0 0 var(--color-status-danger-solid);
}

.home-attention-danger .home-attention-icon {
  background: var(--color-status-danger-bg);
  color: var(--color-status-danger-text);
}

.home-attention-warning {
  box-shadow: inset 3px 0 0 var(--color-status-warning-solid);
}

.home-attention-warning .home-attention-icon {
  background: var(--color-status-warning-bg);
  color: var(--color-status-warning-text);
}

.home-attention-review {
  box-shadow: inset 3px 0 0 var(--color-border-strong);
}

.home-attention-review .home-attention-icon {
  background: var(--color-surface-subtle);
  color: var(--color-text-secondary);
}

.home-attention-icon,
.home-update-icon,
.home-milestone-icon,
.home-empty-icon {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface);
}

.home-attention-copy {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.home-attention-item strong,
.home-attention-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-attention-item strong {
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
}

.home-attention-item small {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.home-attention-item > b {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-secondary);
}

.home-milestone-body {
  display: grid;
  min-height: 9.25rem;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
}

.home-milestone-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--color-selected-bg);
  color: var(--color-selected-text);
}

.home-milestone-body p b {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.home-milestone-body h3 {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xl);
}

.home-milestone-body p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
}

.home-milestone-progress {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.home-milestone-progress progress {
  width: 100%;
  height: 0.375rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--color-selected-bg);
  accent-color: var(--color-action-primary);
}

.home-milestone-progress progress::-webkit-progress-bar {
  background: var(--color-selected-bg);
}

.home-milestone-progress progress::-webkit-progress-value {
  background: var(--color-action-primary);
}

.home-milestone-progress progress::-moz-progress-bar {
  background: var(--color-action-primary);
}

.home-milestone-progress span {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.home-updates-list {
  gap: 0;
  padding-block: 0;
}

.home-update-item {
  display: grid;
  width: 100%;
  min-height: 3.5rem;
  grid-template-columns: 0.4rem 2.25rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border: 0;
  background: transparent;
  color: var(--color-text-primary);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.home-update-item:hover {
  background: var(--color-surface-subtle);
}

.home-updates-list li + li {
  border-top: 1px solid var(--color-border-subtle);
}

.home-update-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-status-info-bg);
  color: var(--color-status-info-text);
}

.home-update-item.is-unread .inbox-unread-dot {
  background: var(--color-selected);
}

.home-update-item.is-unread .home-update-icon {
  background: var(--color-status-review-bg);
  color: var(--color-status-review-text);
}

.home-update-item.is-unread strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
}

.home-update-copy {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.home-update-item strong,
.home-update-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-update-item strong {
  font-size: var(--font-size-md);
}

.home-update-item small,
.home-update-item time {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.home-update-item time {
  white-space: nowrap;
}

.home-empty {
  display: grid;
  min-height: 10rem;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
}

.home-empty-icon {
  background: var(--color-selected-bg);
  color: var(--color-selected-text);
}

.home-empty strong {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-lg);
}

.home-empty p {
  max-width: 38rem;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
  line-height: 1.5;
}

.home-attention-empty,
.home-empty-compact {
  grid-template-columns: 2.75rem minmax(0, 1fr);
}

.home-empty-compact {
  min-height: 9.25rem;
}

@media (max-width: 74rem) {

  .home-briefing-desktop {
    display: none;
  }

  .home-briefing-hero.home-briefing-hero-compact {
    display: grid;
  }

  .home-briefing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.65fr);
  }

  .home-hero-art {
    display: none;
  }

  .home-dashboard-column,
  .home-updates-panel {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 46rem) {
  .page-home {
    padding-bottom: calc(var(--layout-mobile-bottom-nav-height) + env(safe-area-inset-bottom) + var(--space-2) + var(--space-6));
  }


  .page-home {
    gap: var(--space-4);
  }

  .home-briefing-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-briefing-copy {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }

  .home-briefing-copy h1 {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-3xl);
  }

  .home-briefing-copy > p:last-of-type {
    line-height: 1.45;
  }

  .home-hero-actions {
    display: grid;
    gap: var(--space-1);
    margin-top: var(--space-3);
  }

  .home-hero-primary,
  .home-hero-secondary,
  .home-focus-card {
    width: 100%;
    min-height: var(--target-size-touch);
    justify-content: center;
  }

  .home-focus-card {
    max-width: none;
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .home-focus-action {
    grid-column: 2;
    justify-self: start;
  }

  .home-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0 var(--space-2) var(--space-3);
    border-top: 1px solid var(--color-nav-border);
    border-left: 0;
  }

  .home-hero-metric {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-1);
    text-align: center;
  }

  .home-hero-metrics li + li {
    border-top: 0;
    border-left: 1px solid var(--color-nav-border);
  }

  .home-hero-metric-icon {
    display: none;
  }

  .home-hero-metric-copy {
    justify-items: center;
  }

  .home-hero-metric-go {
    display: none;
  }

  .home-hero-metric > strong {
    font-size: var(--font-size-xl);
  }

  .home-hero-metrics small {
    display: none;
  }

  .home-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .home-network-panel,
  .home-dashboard-column,
  .home-updates-panel,
  .home-activity-panel {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .home-dashboard-column {
    order: 1;
    gap: var(--space-4);
  }

  .home-network-panel { order: 3; }
  .home-updates-panel { order: 5; }
  .home-activity-panel { order: 6; }

  .home-panel-heading {
    min-height: 3.5rem;
    padding: var(--space-3) var(--space-4);
  }

  .home-panel-heading h2 small {
    display: block;
  }

  .data-row.home-today-row {
    min-height: 5.75rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
  }

  .home-task-badge {
    grid-column: 2;
    justify-self: start;
  }

  .home-row-action {
    min-width: 3.75rem;
    min-height: var(--target-size-touch);
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .home-task-copy small {
    gap: var(--space-1);
  }

  .home-panel-footer {
    min-height: var(--target-size-touch);
    padding: var(--space-2) var(--space-4);
  }

  .home-attention-item {
    min-height: var(--target-size-touch);
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
  }

  .home-attention-icon {
    width: 2.5rem;
    height: 2.5rem;
  }


  .home-milestone-body {
    min-height: 0;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .home-milestone-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .home-milestone-progress {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .home-milestone-progress span {
    white-space: normal;
  }

  .home-updates-list {
    padding-inline: var(--space-4);
  }

  .home-update-item {
    min-height: 4.5rem;
    grid-template-columns: 0.4rem 2.25rem minmax(0, 1fr);
  }

  .home-update-item time {
    grid-column: 3;
  }

  .home-update-item .home-row-go,
  .home-activity-row .home-row-go {
    display: none;
  }

  .data-row.home-activity-row {
    min-height: var(--target-size-touch);
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
    padding: var(--space-3) var(--space-2);
  }

  .home-activity-row time {
    justify-self: start;
  }

  .home-empty {
    min-height: 0;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    padding: var(--space-4);
  }

  .home-empty .text-link {
    min-height: var(--target-size-touch);
    grid-column: 2;
    justify-self: start;
  }
}


.home-network-panel {
  overflow: hidden;
  border-color: var(--graph-canvas-boundary);
}

.home-network-header {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6) var(--space-2);
}

.home-network-header h2 {
  margin: 0;
  font-size: var(--font-size-2xl);
  letter-spacing: -0.02em;
}

.home-network-insights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
  list-style: none;
}

.home-network-insights li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.home-network-insights li > span:first-child {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--graph-person-hover);
  color: var(--graph-person-icon);
}

.home-network-insights li.is-attention > span:first-child {
  background: var(--color-status-danger-bg);
  color: var(--graph-incident-icon);
}

.home-network-body {
  display: grid;
  flex: 1;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4) 0;
}

.home-network-stage {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--graph-canvas-bg);
  background-image:
    radial-gradient(circle at center, var(--graph-focus-glow), transparent 34%),
    radial-gradient(var(--graph-canvas-grid) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  isolation: isolate;
}

.home-network-stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--graph-canvas-bg-secondary));
  content: "";
  opacity: 0.44;
  pointer-events: none;
}

.home-network-reset {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 5;
  background: var(--color-surface);
  box-shadow: var(--graph-node-shadow);
}

.home-network-engine,
.home-network-overlay {
  position: absolute;
  inset: 0;
}

.home-network-engine {
  pointer-events: none;
}

.home-network-overlay {
  pointer-events: none;
}

.home-network-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 11.125rem;
  min-height: 5.25rem;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--graph-context-border);
  border-radius: var(--radius-lg);
  background: var(--graph-context-surface);
  box-shadow: var(--graph-node-shadow);
  color: var(--color-text-primary);
  cursor: grab;
  opacity: 0;
  pointer-events: auto;
  touch-action: none;
  text-align: left;
  transform: translate(-50%, -50%);
  transition:
    opacity var(--graph-node-enter-duration) var(--graph-easing),
    transform var(--graph-focus-duration) var(--graph-easing),
    box-shadow var(--graph-focus-duration) var(--graph-easing),
    border-color var(--graph-edge-emphasis-duration) var(--motion-ease-standard);
}

.home-network-stage.is-ready .home-network-node {
  opacity: 1;
}

.home-network-node:hover,
.home-network-node:focus-visible,
.home-network-node.is-related {
  z-index: 4;
  border-color: var(--graph-focus-ring);
  box-shadow: var(--graph-node-hover-shadow);
  transform: translate(-50%, -50%) scale(1.025);
}

.home-network-node:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.home-network-node.is-selected {
  border-color: var(--graph-focus-ring);
  box-shadow: var(--graph-node-selected-shadow);
}

.home-network-node.is-dimmed {
  opacity: 0.34;
}

.home-network-node--person {
  border-color: var(--graph-person-border);
  border-radius: 1.5rem;
  background: var(--graph-person-surface);
}

.home-network-node--task {
  border-color: var(--graph-task-border);
  background: var(--graph-task-surface);
}

.home-network-node--task.attention-blocked {
  border-color: var(--graph-incident-border);
  background: var(--graph-incident-surface);
}

.home-network-node--project {
  border-color: var(--graph-project-border);
  border-top-width: 3px;
  border-radius: 1.125rem 1.125rem var(--radius-md) var(--radius-md);
  background: var(--graph-project-surface);
}

.home-network-node--incident {
  border-color: var(--graph-incident-border);
  background: var(--graph-incident-surface);
}

.home-network-node--department,
.home-network-node--client {
  border-style: dashed;
}

.home-network-node.is-center {
  width: 7.75rem;
  min-height: 7.75rem;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 2px solid var(--graph-focus-ring);
  border-radius: 50%;
  background: var(--graph-focus-surface);
  box-shadow: var(--graph-focus-shadow);
  color: var(--graph-focus-text);
  text-align: center;
}

.home-network-node.is-center:hover,
.home-network-node.is-center:focus-visible,
.home-network-node.is-center.is-related {
  transform: translate(-50%, -50%) scale(1.035);
}

.home-network-node.is-dragging,
.home-network-node.is-center.is-dragging {
  z-index: 6;
  cursor: grabbing;
  transform: translate(-50%, -50%);
  transition: none;
  user-select: none;
}

.home-network-node__avatar,
.home-network-node__icon {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--graph-person-hover);
  color: var(--graph-person-icon);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
}

.home-network-node.is-center .home-network-node__avatar {
  width: 2.875rem;
  height: 2.875rem;
  border: 1px solid var(--graph-person-border);
  background: var(--graph-person-hover);
  box-shadow: 0 0 0 5px var(--graph-focus-halo);
  font-size: var(--font-size-xl);
}

.home-network-node--task .home-network-node__icon {
  background: var(--color-status-success-bg);
  color: var(--graph-task-icon);
}

.home-network-node--project .home-network-node__icon {
  background: var(--color-status-info-bg);
  color: var(--graph-project-icon);
}

.home-network-node--incident .home-network-node__icon,
.home-network-node.has-attention .home-network-node__icon {
  background: var(--color-status-danger-bg);
  color: var(--graph-incident-icon);
}

.home-network-node--department .home-network-node__icon,
.home-network-node--client .home-network-node__icon {
  color: var(--graph-context-icon);
}

.home-network-node__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.home-network-node__copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--font-size-md);
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-network-node__relation,
.home-network-node__meta {
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-network-node__relation {
  color: var(--graph-focus-text);
  font-weight: var(--font-weight-semibold);
}

.home-network-node.is-center .home-network-node__relation {
  display: none;
}

.home-network-node.is-center .home-network-node__copy strong {
  font-size: var(--font-size-xl);
}

.home-network-node.is-center .home-network-node__meta {
  white-space: normal;
}

.home-network-node__status {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 2px var(--space-2);
  border-radius: 999px;
  background: var(--color-status-success-bg);
  color: var(--color-status-success-text);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.home-network-node.has-attention .home-network-node__status {
  background: var(--color-status-danger-bg);
  color: var(--color-status-danger-text);
}

.home-network-node.attention-paused .home-network-node__status {
  background: var(--color-status-waiting-bg);
  color: var(--color-status-waiting-text);
}

.home-network-node.is-center .home-network-node__status {
  display: none;
}

.home-network-empty {
  position: absolute;
  inset: auto 50% var(--space-6);
  z-index: 1;
  display: grid;
  width: min(22rem, calc(100% - var(--space-8)));
  gap: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  text-align: center;
  transform: translateX(50%);
}

.home-network-empty strong {
  color: var(--color-text-primary);
}

.home-network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: var(--space-2) var(--space-3);
}

.home-network-legend div,
.home-network-legend dt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

.home-network-legend dt > span {
  display: inline-block;
  width: 1.75rem;
  border-top: 2px solid var(--graph-edge-assignment);
}

.home-network-legend dt > .is-dependency {
  border-top-color: var(--graph-edge-blocking);
  border-top-style: dashed;
}

.home-network-legend dt > .is-attention {
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--color-status-warning-border);
  border-radius: 50%;
  background: var(--color-status-warning-bg);
}

.home-network-footer {
  border-top-color: var(--graph-canvas-boundary);
}

.home-network-footer .text-link svg {
  transition: transform var(--graph-focus-duration) var(--graph-easing);
}

.home-network-footer .text-link:hover svg,
.home-network-footer .text-link:focus-visible svg {
  transform: translateX(var(--space-1));
}

.home-activity-list {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  list-style: none;
}

@media (max-width: 46rem) {
  .home-network-header {
    padding: var(--space-4) var(--space-4) var(--space-2);
  }

  .home-network-insights {
    display: grid;
    gap: var(--space-2);
  }

  .home-network-body {
    padding-inline: var(--space-4);
  }

  .home-network-legend {
    display: none;
  }

  .home-network-stage {
    min-height: 24rem;
  }

  .home-network-node {
    width: 6.25rem;
    min-height: 4.25rem;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: var(--space-1);
    padding: var(--space-2);
  }

  .home-network-node.is-center {
    width: 5.25rem;
    min-height: 5.25rem;
    padding: var(--space-2);
  }

  .home-network-node__avatar,
  .home-network-node__icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: var(--font-size-xs);
  }

  .home-network-node.is-center .home-network-node__avatar {
    width: 2.25rem;
    height: 2.25rem;
    font-size: var(--font-size-md);
  }

  .home-network-node.is-center .home-network-node__meta {
    display: none;
  }

  .home-network-node__copy strong,
  .home-network-node.is-center .home-network-node__copy strong {
    font-size: var(--font-size-sm);
  }

  .home-network-node__relation,
  .home-network-node__meta,
  .home-network-node__status {
    font-size: var(--font-size-xs);
  }

  .home-network-node__status {
    padding-inline: var(--space-1);
  }

  .home-network-empty {
    bottom: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-network-node,
  .home-network-footer .text-link svg {
    transition-duration: 0.01ms;
  }
}
