
@import './linear-theme.css';

.wr-page {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: clamp(16px, 2vw, 24px) clamp(16px, 3vw, 32px) clamp(32px, 4vw, 48px);
  font-family: var(--wr-ln-font-family);
  font-size: var(--wr-ln-font-size-base, 14px);
  color: var(--wr-ln-color-text);
  background: var(--wr-ln-canvas);
  -webkit-font-smoothing: antialiased;
}

/* Icons: clearer strokes on dark canvas */
.wr-page svg {
  stroke-width: 2.25;
}

.wr-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wr-ln-hairline);
}

.wr-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wr-ln-ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wr-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--wr-ln-ink);
}

.wr-hero__sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--wr-ln-ink-muted);
  letter-spacing: -0.01em;
}

.wr-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wr-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  color: var(--wr-ln-color-text-secondary);
}

.wr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--wr-ln-radius-md, 8px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-1);
  color: var(--wr-ln-ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wr-btn:hover {
  background: var(--wr-ln-surface-2);
  border-color: var(--wr-ln-hairline-strong);
}

.wr-btn:focus-visible {
  outline: 2px solid rgba(94, 105, 209, 0.5);
  outline-offset: 2px;
}

.wr-btn--primary {
  background: var(--wr-ln-primary);
  border-color: var(--wr-ln-primary);
  color: var(--wr-ln-on-primary);
}

.wr-btn--primary:hover {
  background: var(--wr-ln-primary-hover);
  border-color: var(--wr-ln-primary-hover);
}

.wr-principle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.wr-principle__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--wr-ln-radius-lg, 12px);
  border: 1px solid var(--wr-ln-color-primary-border);
  background: var(--wr-ln-color-primary-light);
}

.wr-principle__item strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--wr-ln-color-success-text);
}

.wr-principle__item span {
  font-size: 12px;
  color: var(--wr-ln-color-text-muted);
}

.wr-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.wr-kpi-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--wr-ln-radius-lg, 12px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-1);
}

.wr-kpi-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wr-ln-radius-md, 8px);
  background: var(--wr-ln-surface-3);
  border: 1px solid var(--wr-ln-hairline-strong);
  color: var(--wr-ln-color-icon);
}

.wr-kpi-card--primary .wr-kpi-card__icon {
  background: var(--wr-ln-color-primary-light);
  border-color: var(--wr-ln-color-primary-border);
  color: var(--wr-ln-icon-active);
}

.wr-kpi-card--warning .wr-kpi-card__icon {
  background: rgba(240, 180, 90, 0.18);
  border-color: rgba(240, 180, 90, 0.35);
  color: var(--wr-ln-warning);
}

.wr-kpi-card--success .wr-kpi-card__icon {
  background: var(--wr-ln-color-success-bg);
  border-color: rgba(62, 207, 95, 0.35);
  color: var(--wr-ln-color-success-text);
}

.wr-kpi-card__value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--wr-ln-ink);
}

.wr-kpi-card__title {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wr-ln-ink-muted);
}

.wr-kpi-card__desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--wr-ln-color-text-muted);
  line-height: 1.45;
}

.wr-kpi-row--exec {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wr-kpi-card--danger .wr-kpi-card__value {
  color: #fca5a5;
}

.wr-kpi-card--primary .wr-kpi-card__value {
  color: var(--wr-ln-primary-hover);
}

.wr-kpi-card--warning .wr-kpi-card__value {
  color: var(--wr-ln-warning);
}

.wr-kpi-card--success .wr-kpi-card__value {
  color: var(--wr-ln-color-success-text);
}

.wr-exec-summary {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: var(--wr-ln-radius-lg, 12px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-1);
}

.wr-exec-summary__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wr-exec-health {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.wr-exec-health--green {
  color: var(--wr-ln-color-success-text);
  background: var(--wr-ln-color-success-bg);
  border-color: rgba(62, 207, 95, 0.35);
}

.wr-exec-health--amber {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

.wr-exec-health--red {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
}

.wr-exec-summary__headline {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--wr-ln-ink);
}

.wr-exec-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wr-exec-summary__block {
  padding: 12px 14px;
  border-radius: var(--wr-ln-radius-md, 8px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-2);
}

.wr-exec-summary__block--risk {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.06);
}

.wr-exec-summary__block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wr-ln-ink-muted);
}

.wr-exec-summary__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wr-ln-ink);
}

.wr-section__title-icon {
  flex-shrink: 0;
  color: var(--wr-ln-ink-muted);
}

.wr-exec-decision-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wr-exec-decision {
  padding: 14px 16px;
  border-radius: var(--wr-ln-radius-md, 8px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-1);
}

.wr-exec-decision--urgent {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

.wr-exec-decision__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wr-exec-decision__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--wr-ln-ink);
  line-height: 1.4;
}

.wr-exec-decision__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wr-exec-decision__meta dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wr-ln-ink-subtle);
}

.wr-exec-decision__meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wr-ln-ink-muted);
}

.wr-exec-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wr-exec-next__col {
  padding: 14px 16px;
  border-radius: var(--wr-ln-radius-md, 8px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-1);
}

.wr-exec-next__col--risk {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.06);
}

.wr-exec-next__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wr-ln-ink);
}

.wr-exec-next__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wr-exec-next__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wr-ln-ink-muted);
}

.wr-exec-next__item strong {
  color: var(--wr-ln-ink);
  font-weight: 600;
}

.wr-section {
  margin-bottom: 28px;
}

.wr-section__head {
  margin-bottom: 14px;
}

.wr-section__head--inline {
  margin-bottom: 0;
  text-align: left;
}

.wr-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--wr-ln-ink);
}

.wr-section__desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--wr-ln-ink-subtle);
}

.wr-track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wr-track-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.wr-track-tab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 14px 16px;
  border-radius: var(--wr-ln-radius-lg, 12px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-1);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wr-track-tab:hover {
  background: var(--wr-ln-surface-2);
  border-color: var(--wr-ln-hairline-strong);
}

.wr-track-tab:focus-visible {
  outline: 2px solid rgba(94, 105, 209, 0.5);
  outline-offset: 2px;
}

.wr-track-tab--active {
  border-color: var(--wr-ln-color-primary-border);
  background: var(--wr-ln-surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wr-track-tab__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wr-ln-radius-md, 8px);
  background: var(--wr-ln-surface-3);
  border: 1px solid var(--wr-ln-hairline-strong);
  color: var(--wr-ln-color-icon);
}

.wr-track-tab--active .wr-track-tab__icon {
  background: var(--wr-ln-color-primary-light);
  border-color: var(--wr-ln-color-primary-border);
  color: var(--wr-ln-icon-active);
}

.wr-track-tab__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wr-track-tab__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wr-ln-ink);
}

.wr-track-tab__value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--wr-ln-color-text);
}

.wr-track-tab__stats {
  font-size: 13px;
  color: var(--wr-ln-ink-subtle);
}

.wr-track-tab__hint {
  margin-top: 2px;
  font-size: 12px;
  color: var(--wr-ln-ink-muted);
}

.wr-track-detail-wrap {
  border: 1px solid var(--wr-ln-hairline);
  border-radius: var(--wr-ln-radius-lg, 12px);
  background: var(--wr-ln-surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.wr-track-detail-wrap--flat {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.wr-track-detail-wrap--flat .wr-phase-grid {
  gap: 12px;
}

.wr-track-detail-wrap--flat .wr-phase-card {
  background: var(--wr-ln-surface-1);
  border-color: var(--wr-ln-hairline);
  padding: 14px 16px;
}

.wr-track-detail {
  padding: 16px 18px 18px;
}

.wr-track-detail__head {
  margin-bottom: 16px;
}

.wr-track-detail__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wr-ln-ink);
}

.wr-phase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wr-phase-card {
  padding: 12px 14px;
  border-radius: var(--wr-ln-radius-lg, 12px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-2);
}

.wr-phase-card__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wr-ln-ink);
}

.wr-phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  padding: 3px;
  border-radius: var(--wr-ln-radius-pill, 9999px);
  background: var(--wr-ln-canvas);
}

.wr-phase-tab {
  min-height: 30px;
  padding: 6px 14px;
  border-radius: var(--wr-ln-radius-pill, 9999px);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--wr-ln-ink-subtle);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.wr-phase-tab:hover {
  color: var(--wr-ln-ink);
}

.wr-phase-tab:focus-visible {
  outline: 2px solid rgba(130, 143, 255, 0.65);
  outline-offset: 1px;
}

.wr-phase-tab--active {
  background: var(--wr-ln-surface-3);
  color: var(--wr-ln-ink);
  box-shadow: inset 0 0 0 1px var(--wr-ln-hairline-strong);
}

.wr-phase-panel {
  min-height: 52px;
}

.wr-phase-panel .wr-work-report + .wr-work-report {
  margin-top: 8px;
}

.wr-work-report {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--wr-ln-radius-md, 8px);
  border: 1px solid var(--wr-ln-hairline);
  background: var(--wr-ln-surface-1);
}

.wr-work-report__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wr-ln-ink-muted);
}

.wr-work-report__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wr-work-report__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}

.wr-work-report__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--wr-ln-ink-subtle);
}

.wr-work-report__item--done .wr-work-report__icon {
  color: var(--wr-ln-color-success-text);
}

.wr-work-report__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wr-work-report__text {
  color: var(--wr-ln-ink);
  font-weight: 500;
}

.wr-work-report__item--done .wr-work-report__text {
  color: var(--wr-ln-ink-muted);
}

.wr-work-report__note {
  font-size: 12px;
  color: var(--wr-ln-ink-subtle);
}

.wr-work-report__empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wr-ln-ink-muted);
}

.wr-req-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wr-req-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.wr-req-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.wr-req-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wr-req-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
}

.wr-req-tag--stage {
  color: var(--wr-ln-primary-hover);
  background: color-mix(in srgb, var(--wr-ln-primary) 16%, transparent);
  border-color: color-mix(in srgb, var(--wr-ln-primary) 28%, transparent);
}

.wr-req-tag--priority.wr-req-tag--high {
  color: #fca5a5;
  background: color-mix(in srgb, #ef4444 14%, transparent);
  border-color: color-mix(in srgb, #ef4444 24%, transparent);
}

.wr-req-tag--priority.wr-req-tag--mid {
  color: #fcd34d;
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  border-color: color-mix(in srgb, #f59e0b 24%, transparent);
}

.wr-req-tag--priority.wr-req-tag--low {
  color: var(--wr-ln-ink-muted);
  background: var(--wr-ln-surface-2);
  border-color: var(--wr-ln-hairline);
}

.wr-req-item__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--wr-ln-ink);
}

.wr-req-progress {
  flex-shrink: 0;
}

.wr-req-progress__track {
  stroke: var(--wr-ln-hairline);
}

.wr-req-progress__fill {
  stroke: var(--wr-ln-primary);
  transition: stroke-dashoffset 0.35s ease;
}

.wr-req-progress__fill--done {
  stroke: var(--wr-ln-color-success-text, #4ade80);
}

.wr-req-progress__text {
  fill: var(--wr-ln-ink-muted);
  font-size: 9px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .wr-req-progress__fill {
    transition: none;
  }
}

.wr-phase-card__stats {
  font-size: 13px;
  color: var(--wr-ln-ink-muted);
}

.wr-phase-card__stats strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--wr-ln-icon-active);
}

.wr-phase-card__note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wr-ln-ink-muted);
}

.wr-track-card {
  padding: 16px;
  border-radius: var(--wr-ln-radius-lg, 12px);
  border: 1px solid var(--wr-ln-color-border);
  background: var(--wr-ln-color-bg-card);
}

.wr-track-card--wide {
  grid-column: 1 / -1;
}

.wr-req-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.wr-req-group__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wr-ln-color-text-secondary);
}

.wr-req-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wr-req-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.wr-req-item__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--wr-ln-color-text-muted);
}

.wr-req-item--done .wr-req-item__icon {
  color: var(--wr-ln-color-primary);
}

.wr-req-item__body {
  min-width: 0;
  flex: 1;
}

.wr-req-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wr-req-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--wr-ln-color-text);
}

.wr-req-item--done .wr-req-item__title {
  color: var(--wr-ln-color-text-muted);
}

.wr-req-item__note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wr-ln-color-text-muted);
}

.wr-track-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wr-track-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--wr-ln-color-bg-muted);
  color: var(--wr-ln-color-primary);
}

.wr-track-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.wr-track-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wr-track-line {
  padding-top: 14px;
  border-top: 1px solid var(--wr-ln-color-border-light);
}

.wr-track-line:first-child {
  padding-top: 0;
  border-top: 0;
}

.wr-track-line__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wr-ln-color-text-secondary);
}

.wr-progress {
  margin-bottom: 12px;
}

.wr-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--wr-ln-color-text-muted);
}

.wr-progress__pct {
  font-weight: 700;
  color: var(--wr-ln-color-text);
}

.wr-progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--wr-ln-color-bg-page-alt);
  overflow: hidden;
}

.wr-progress__track--sm {
  height: 6px;
  flex: 1;
  min-width: 60px;
}

.wr-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--wr-ln-primary);
  transition: width 0.3s ease;
}

.wr-track-stats {
  display: flex;
  gap: 16px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.wr-track-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--wr-ln-color-text-muted);
}

.wr-track-stats strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--wr-ln-ink);
}

.wr-text-warning {
  color: var(--wr-ln-color-warning) !important;
}

.wr-track-card__highlight {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--wr-ln-color-text-secondary);
}

.wr-issue-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wr-issue-card {
  padding: 18px 20px;
  border-radius: var(--wr-ln-radius-lg, 12px);
  border: 1px solid var(--wr-ln-color-border);
  background: var(--wr-ln-color-bg-card);
  border-left-width: 4px;
}

.wr-issue-card--p0 {
  border-left-color: var(--wr-ln-color-error);
}

.wr-issue-card--p1 {
  border-left-color: var(--wr-ln-color-warning);
}

.wr-issue-card__head {
  margin-bottom: 14px;
}

.wr-issue-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.wr-issue-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wr-ln-ink);
}

.wr-issue-card__meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--wr-ln-color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wr-four-r-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.wr-four-r-item {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--wr-ln-color-bg-muted);
  border: 1px solid var(--wr-ln-color-border-light);
}

.wr-four-r-item dt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wr-ln-ink-muted);
}

.wr-four-r-item dt svg {
  color: var(--wr-ln-color-icon);
}

.wr-four-r-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wr-ln-ink);
}

.wr-four-r-item--feedback {
  grid-column: 1 / -1;
  background: rgba(94, 106, 210, 0.08);
  border-color: rgba(94, 106, 210, 0.28);
}

.wr-four-r-item--feedback dt {
  color: var(--wr-ln-primary-hover);
}

.wr-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--wr-ln-radius-pill, 9999px);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.wr-badge--priority-p0 {
  background: var(--wr-ln-color-error-bg);
  color: #ff8a8f;
}

.wr-badge--priority-p1 {
  background: rgba(229, 160, 69, 0.14);
  color: #f0b56a;
}

.wr-badge--gray {
  background: var(--wr-ln-surface-2);
  color: var(--wr-ln-ink-subtle);
}

.wr-badge--blue {
  background: var(--wr-ln-color-primary-light);
  color: var(--wr-ln-primary-hover);
}

.wr-badge--green {
  background: var(--wr-ln-color-success-bg);
  color: var(--wr-ln-color-success-text);
}

.wr-badge--amber {
  background: rgba(229, 160, 69, 0.14);
  color: #f0b56a;
}

.wr-badge--red {
  background: var(--wr-ln-color-error-bg);
  color: #ff8a8f;
}

.wr-badge--track {
  background: var(--wr-ln-color-bg-page-alt);
  color: var(--wr-ln-color-text-secondary);
}

.wr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--wr-ln-color-border);
  border-radius: var(--wr-ln-radius-lg, 12px);
  background: var(--wr-ln-color-bg-card);
}

.wr-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.wr-table th,
.wr-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--wr-ln-color-border-light);
  text-align: left;
  vertical-align: middle;
}

.wr-table th {
  background: var(--wr-ln-surface-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--wr-ln-ink-muted);
  white-space: nowrap;
}

.wr-table td {
  color: var(--wr-ln-ink);
}

.wr-table tbody tr:last-child td {
  border-bottom: none;
}

.wr-table tbody tr:hover td {
  background: var(--wr-ln-surface-2);
}

.wr-table-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.wr-section--minor {
  border: 1px solid var(--wr-ln-hairline);
  border-radius: var(--wr-ln-radius-lg, 12px);
  padding: 14px 16px;
  background: var(--wr-ln-surface-1);
}

.wr-minor-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.wr-minor-toggle:focus-visible {
  outline: 2px solid var(--wr-ln-color-primary);
  outline-offset: 4px;
  border-radius: 8px;
}

.wr-minor-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wr-minor-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--wr-ln-color-text-secondary);
  background: var(--wr-ln-color-bg-muted);
  border: 1px solid var(--wr-ln-color-border-light);
}

.wr-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--wr-ln-color-border);
  font-size: 12px;
  color: var(--wr-ln-color-text-muted);
  text-align: center;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .wr-principle,
  .wr-kpi-row,
  .wr-kpi-row--exec,
  .wr-track-grid,
  .wr-track-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wr-exec-summary__grid,
  .wr-exec-next,
  .wr-exec-decision__meta {
    grid-template-columns: 1fr;
  }

  .wr-req-groups {
    grid-template-columns: 1fr;
  }

  .wr-phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wr-four-r-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wr-page {
    padding: 16px 16px 32px;
  }

  .wr-principle,
  .wr-kpi-row,
  .wr-track-grid,
  .wr-track-switcher {
    grid-template-columns: 1fr;
  }

  .wr-hero__aside {
    align-items: flex-start;
    width: 100%;
  }

  .wr-hero__meta {
    align-items: flex-start;
  }

  .wr-phase-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wr-progress__fill,
  .wr-btn,
  .wr-track-tab,
  .wr-phase-tab {
    transition: none;
  }
}

@media print {
  .wr-btn {
    display: none;
  }

  .wr-page {
    color-scheme: light;
    background: #fff;
    color: #18181b;
    padding: 12px;
  }

  .wr-kpi-card,
  .wr-track-detail-wrap,
  .wr-issue-card,
  .wr-table-wrap,
  .wr-phase-card {
    background: #fff;
    border-color: #e5e7eb;
  }

  .wr-minor-toggle {
    pointer-events: none;
  }

  .wr-table-wrap {
    break-inside: avoid;
  }
}
