:root {
  --bg: #f4f7f6;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(34, 54, 68, 0.1);
  --ink: #1f3442;
  --muted: #657887;
  --accent: #bf6a4a;
  --accent-soft: #f4e5de;
  --sage: #6fb5a4;
  --sage-soft: rgba(111, 181, 164, 0.16);
  --peach-soft: rgba(191, 106, 74, 0.1);
  --blue-soft: rgba(96, 139, 172, 0.12);
  --surface-quiet: rgba(248, 250, 250, 0.78);
  --ok: #2d8a56;
  --warn: #b54708;
  --shadow: 0 10px 28px rgba(31, 52, 66, 0.055);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
}

body.overlay-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.shell > :not(.hero) {
  grid-column: 2;
  min-width: 0;
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 22px 20px;
  margin-bottom: 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-copy > div:first-child {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.hero-toolbar {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  line-height: 1.05;
}

.lede,
.panel-header p,
.status {
  color: var(--muted);
}

.lede {
  max-width: 56ch;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.controls {
  display: grid;
  gap: 8px;
  min-width: 200px;
  max-width: 220px;
  align-content: start;
}

.view-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.view-toolbar-copy {
  display: grid;
  gap: 4px;
}

.view-controls-host {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.view-controls-host .controls {
  width: min(220px, 100%);
  max-width: 220px;
}

.view-switch {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 4px;
  border: 1px solid rgba(31, 52, 66, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  overflow-x: auto;
  scrollbar-width: thin;
  min-width: 0;
}

.view-switch .secondary-button {
  border: none;
  border-radius: 7px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.view-switch .secondary-button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(31, 52, 66, 0.06);
}

.workbench-primary-nav {
  width: 100%;
}

.workbench-primary-nav .secondary-button {
  font-weight: 700;
  color: var(--ink);
}

.workbench-secondary-row {
  display: grid;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
}

.workbench-secondary-nav {
  width: 100%;
}

.workbench-admin-nav {
  width: 100%;
}

.hero .view-switch {
  display: grid;
  gap: 6px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.hero .view-switch .secondary-button {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.hero .view-switch .secondary-button:hover {
  background: rgba(31, 52, 66, 0.035);
}

.hero .view-switch .secondary-button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(111, 181, 164, 0.28);
  box-shadow: inset 3px 0 0 rgba(111, 181, 164, 0.72);
}

.workbench-secondary-nav .secondary-button,
.workbench-admin-nav .secondary-button {
  font-size: 0.92rem;
}

.workbench-admin-nav {
  padding-top: 8px;
  border-top: 1px dashed rgba(23, 48, 66, 0.1);
}

.tool-nav-panel {
  border: 1px solid rgba(31, 52, 66, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
}

.tool-nav-panel.workbench-secondary-row {
  gap: 0;
  padding-top: 0;
  overflow: visible;
}

.tool-nav-panel-inline {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

.tool-nav-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.tool-nav-summary::-webkit-details-marker {
  display: none;
}

.tool-nav-summary strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 0.96rem;
}

.tool-nav-summary strong::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.82rem;
}

.tool-nav-panel.has-active-tool .tool-nav-summary strong {
  color: var(--accent);
}

.tool-nav-panel[open] .tool-nav-summary strong::after {
  content: "▴";
}

.tool-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.tool-nav-admin-group {
  display: contents;
}

.tool-nav-panel-inline .tool-nav-summary {
  padding: 10px 12px;
  border-radius: 10px;
}

.tool-nav-panel-inline .tool-nav-summary strong {
  font-size: 0.95rem;
}

.tool-nav-panel-inline .view-switch-label {
  font-size: 0.7rem;
}

.tool-nav-panel-inline .tool-nav-grid {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 280px;
  width: max-content;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid rgba(31, 52, 66, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(31, 52, 66, 0.1);
}

.tool-nav-grid .secondary-button {
  text-align: left;
  justify-content: flex-start;
}

.action-status {
  min-height: 0;
  padding-top: 0;
  font-size: 0.82rem;
  text-align: right;
}

.controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.month-nav {
  display: flex;
  gap: 8px;
}

.nav-button {
  width: 44px;
  min-width: 44px;
  padding: 10px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.cards-inline {
  margin-bottom: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.my-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.my-overview-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.my-overview-main-column,
.my-overview-side-column {
  display: grid;
  gap: 24px;
}

.my-overview-side-column {
  position: sticky;
  top: 24px;
  align-self: start;
}

.my-overview-main-column > .panel:first-child {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(111, 181, 164, 0.18);
}

.my-overview-side-column > .panel:first-child {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(191, 106, 74, 0.16);
}

.my-overview-side-column > .panel:nth-child(2) {
  background: rgba(255, 255, 255, 0.86);
}

.my-overview-inline-panel {
  background: rgba(255, 255, 255, 0.84);
}

.my-overview-stage {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.my-overview-stage-header {
  display: grid;
  gap: 6px;
  padding-inline: 4px;
  align-items: center;
}

.my-overview-stage-header h2 {
  margin: 0;
}

.my-overview-stage-header p {
  color: var(--muted);
  max-width: 56ch;
}

.my-overview-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.my-overview-grid-priority {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.my-overview-grid-action {
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  align-items: start;
}

.my-overview-grid-action > :nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.my-overview-grid-action > :nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.my-overview-grid-action > :nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.my-overview-grid-support {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.my-overview-support-stack {
  display: grid;
  gap: 16px;
}

.my-overview-stage-compact {
  gap: 12px;
}

.my-overview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.my-overview-toolbar label,
.my-overview-date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.my-overview-date-picker {
  position: relative;
}

.my-overview-date-picker span {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}

.my-overview-date-button {
  min-width: 220px;
  justify-content: space-between;
  text-align: left;
}

#myOverviewTodayButton {
  min-width: 3.9rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.my-overview-date-button::after {
  content: "▾";
  font-size: 0.8rem;
  color: var(--muted);
}

.my-overview-calendar-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 320px;
  padding: 14px;
  border: 1px solid rgba(31, 52, 66, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(31, 52, 66, 0.1);
  backdrop-filter: blur(12px);
}

.my-overview-calendar-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.my-overview-calendar-head strong {
  text-align: center;
  color: var(--ink);
}

.my-overview-calendar-weekdays,
.my-overview-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.my-overview-calendar-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.my-overview-calendar-day {
  min-height: 38px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.my-overview-calendar-day:hover {
  background: rgba(23, 48, 66, 0.06);
}

.my-overview-calendar-day.is-muted {
  color: var(--muted);
}

.my-overview-calendar-day.is-selected {
  border-color: rgba(21, 113, 71, 0.3);
  background: rgba(21, 113, 71, 0.14);
  color: #0f5a36;
  font-weight: 700;
}

.my-overview-calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(23, 48, 66, 0.12);
}

.my-overview-date-context {
  margin-top: -4px;
}

.my-overview-list {
  display: grid;
  gap: 12px;
}

.my-overview-timeline {
  display: grid;
  gap: 18px;
}

.timeline-group {
  display: grid;
  gap: 10px;
}

.timeline-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.timeline-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(23, 48, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline-filter-button:hover {
  background: rgba(23, 48, 66, 0.06);
  color: var(--ink);
}

.timeline-filter-button.is-active {
  background: var(--ink);
  color: #fff;
}

.timeline-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
  font-size: 0.76rem;
  line-height: 1;
}

.timeline-filter-button.is-active .timeline-filter-count {
  background: rgba(255, 255, 255, 0.18);
}

.timeline-group-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-group-items {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-item-time {
  padding-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.timeline-item-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-left-width: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.timeline-item.is-compact .timeline-item-time {
  padding-top: 7px;
  font-size: 0.84rem;
}

.timeline-item.is-compact .timeline-item-card {
  gap: 5px;
  padding: 8px 12px;
  border-left-width: 3px;
  border-radius: 10px;
}

.timeline-item.is-compact .timeline-item-head {
  align-items: center;
}

.timeline-item.is-compact .timeline-item-headline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-item.is-compact .timeline-item-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-item.is-compact .timeline-kind-badge {
  padding: 3px 8px;
  font-size: 0.68rem;
}

.timeline-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline-compact-meta strong {
  color: var(--ink);
}

.timeline-item.is-compact .timeline-item-meta:empty,
.timeline-item.is-compact .my-overview-note:empty {
  display: none;
}

.timeline-item.is-compact .my-overview-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.timeline-item.is-pullrequest .timeline-item-card {
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
}

.timeline-item.is-pullrequest .timeline-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.timeline-item.is-pullrequest .timeline-item-headline {
  display: grid;
  gap: 5px;
}

.timeline-item.is-pullrequest .timeline-kind-badge {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.timeline-item.is-pullrequest .timeline-item-head strong.timeline-item-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.timeline-item.is-pullrequest .timeline-action-link {
  align-self: start;
  padding-top: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-item.is-pullrequest .timeline-compact-meta {
  gap: 3px 8px;
  color: #536b7a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.timeline-item.is-pullrequest .timeline-compact-meta strong {
  color: #173042;
  font-size: 0.84rem;
  font-weight: 700;
}

.timeline-item.is-pullrequest .my-overview-note {
  color: #536b7a;
}

.timeline-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.timeline-item-headline {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.timeline-item-head strong {
  color: var(--ink);
  line-height: 1.25;
}

.timeline-item-title {
  min-width: 0;
}

.timeline-item-kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.timeline-source-chip {
  display: inline-flex;
  align-items: center;
  max-width: min(24rem, 100%);
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(48, 95, 150, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(48, 95, 150, 0.06);
  color: #36566f;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-action-link {
  flex: 0 0 auto;
}

.timeline-kind-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(23, 48, 66, 0.12);
  background: rgba(23, 48, 66, 0.06);
  color: #425866;
}

.timeline-kind-badge.is-meeting {
  background: #fff2d9;
  border-color: rgba(181, 71, 8, 0.18);
  color: #9a5a00;
}

.timeline-kind-badge.is-mail {
  background: #f4e8ff;
  border-color: rgba(112, 67, 154, 0.18);
  color: #5f357f;
}

.timeline-kind-badge.is-call {
  background: #e4f5fb;
  border-color: rgba(28, 112, 138, 0.18);
  color: #17667c;
}

.timeline-kind-badge.is-devops {
  background: #e8f0ff;
  border-color: rgba(48, 95, 150, 0.18);
  color: #1f4f88;
}

.timeline-kind-badge.is-timelog {
  background: #e4f3ef;
  border-color: rgba(30, 100, 95, 0.18);
  color: #175751;
}

.timeline-item-customer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(23, 48, 66, 0.04);
}

.timeline-item-customer.is-matched {
  background: rgba(21, 113, 71, 0.09);
}

.timeline-item-customer.is-unmatched {
  background: rgba(181, 71, 8, 0.08);
}

.timeline-item-customer-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-item-customer strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.timeline-item-customer-context {
  color: var(--muted);
  font-size: 0.86rem;
}

.timeline-item-meta {
  margin-top: -2px;
}

.timeline-kind-meeting .timeline-item-card {
  border-left-color: #b86a10;
  background: rgba(255, 255, 255, 0.88);
}

.timeline-kind-mail .timeline-item-card {
  border-left-color: #7a4aa0;
  background: rgba(255, 255, 255, 0.88);
}

.timeline-kind-call .timeline-item-card {
  border-left-color: #1c708a;
  background: rgba(255, 255, 255, 0.88);
}

.timeline-kind-timelog .timeline-item-card {
  border-left-color: #1e645f;
  background: rgba(255, 255, 255, 0.88);
}

.timeline-kind-workitem .timeline-item-card,
.timeline-kind-pullrequest .timeline-item-card,
.timeline-kind-commit .timeline-item-card {
  border-left-color: #305f96;
  background: rgba(255, 255, 255, 0.88);
}

.timeline-kind-signal .timeline-item-card {
  border-left-color: #7d8a98;
}

.my-overview-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 52, 66, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.my-overview-item.compact {
  gap: 6px;
}

.my-overview-item-head,
.my-overview-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.my-overview-item-head strong,
.my-overview-summary-card strong {
  color: var(--ink);
}

.my-overview-hours {
  font-weight: 700;
  color: #173042;
  white-space: nowrap;
}

.my-overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.my-overview-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f1f0;
  color: #1e645f;
  font-size: 0.78rem;
  font-weight: 700;
}

.my-overview-tag.muted {
  background: rgba(23, 48, 66, 0.08);
  color: #516674;
}

.my-overview-note {
  margin: 0;
  color: #334a58;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.my-overview-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.my-overview-status-panel,
.my-overview-primary-action-panel,
.my-overview-followup-panel,
.my-overview-entries-panel,
.my-overview-memory-panel,
.my-overview-timeline-panel {
  scroll-margin-top: 18px;
}

.my-overview-suggestion-card {
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.9);
}

.my-overview-task-card {
  background: rgba(255, 255, 255, 0.86);
}

.my-overview-followup-card {
  background: rgba(255, 255, 255, 0.88);
}

.my-overview-suggestion-card .my-overview-hours {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.07);
}

.my-overview-scope-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.my-overview-scope-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.compact-button {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.my-overview-action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.my-overview-item-selected-relevant {
  border-color: rgba(21, 113, 71, 0.35);
  box-shadow: 0 0 0 2px rgba(21, 113, 71, 0.1);
}

.my-overview-item-selected-irrelevant {
  opacity: 0.72;
  border-color: rgba(23, 48, 66, 0.14);
}

.my-overview-signal-group {
  display: grid;
  gap: 10px;
}

.my-overview-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #173042;
}

.assigned-devops-project {
  background: rgba(23, 48, 66, 0.04);
  border-color: rgba(23, 48, 66, 0.1);
}

.assigned-devops-project-head {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.assigned-devops-customer {
  padding: 12px 0 0 14px;
  margin-left: 4px;
  border-left: 3px solid rgba(23, 48, 66, 0.08);
}

.assigned-devops-customer-head {
  color: var(--muted);
}

.assigned-devops-customer-head strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.assigned-devops-customer-filter {
  flex: 1 1 18rem;
  min-width: min(22rem, 100%);
}

.assigned-devops-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.assigned-devops-work-item {
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
}

.assigned-devops-work-item .my-overview-item-head {
  gap: 8px;
}

.assigned-devops-work-item .my-overview-item-head strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.assigned-devops-work-item .my-overview-meta {
  gap: 6px 10px;
  font-size: 0.84rem;
}

.assigned-devops-work-item .my-overview-actions {
  gap: 8px;
}

.assigned-devops-work-item .secondary-button {
  padding: 8px 12px;
}

.assigned-devops-stale {
  background: rgba(181, 71, 8, 0.06);
  border-left: 3px solid var(--warn);
}

.customer-devops-item-focused {
  border-color: rgba(21, 113, 71, 0.35);
  box-shadow: 0 0 0 3px rgba(21, 113, 71, 0.12);
}

.my-overview-summary-card {
  gap: 10px;
}

.my-overview-cards .my-overview-summary-card:nth-child(1) {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(191, 106, 74, 0.14);
}

.my-overview-cards .my-overview-summary-card:nth-child(2) {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(111, 181, 164, 0.16);
}

.my-overview-cards .my-overview-summary-card:nth-child(3) {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(96, 139, 172, 0.16);
}

.my-overview-loading-card {
  min-height: 148px;
  display: flex;
  align-items: stretch;
}

.loading-shimmer {
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(23, 48, 66, 0.06) 0%, rgba(23, 48, 66, 0.14) 50%, rgba(23, 48, 66, 0.06) 100%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.4s ease-in-out infinite;
}

.timeline-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 48, 66, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}

.timeline-status-copy {
  display: grid;
  gap: 4px;
}

.timeline-status-copy strong {
  color: var(--ink);
}

.timeline-status-copy span {
  color: var(--muted);
}

.status-action-link {
  text-decoration: none;
  white-space: nowrap;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(23, 48, 66, 0.16);
  border-top-color: var(--accent);
  animation: loading-spin 0.9s linear infinite;
  flex-shrink: 0;
}
.loading-panel-status {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px dashed rgba(23, 48, 66, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

@keyframes loading-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.my-overview-ring-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.my-overview-ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.my-overview-ring {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.my-overview-ring-bg {
  fill: none;
  stroke: rgba(23, 48, 66, 0.08);
  stroke-width: 6;
}

.my-overview-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.my-overview-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.my-overview-ring-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.my-overview-ring-details .eyebrow {
  margin: 0;
}

.my-overview-ring-details strong {
  font-size: 1rem;
  white-space: nowrap;
}

.my-overview-ring-caption {
  font-size: 0.78rem;
  color: var(--muted);
}

.my-overview-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.my-overview-balance {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.my-overview-card-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: -2px;
}

/* Diary week navigation */
.diary-week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.diary-week-nav span {
  font-weight: 600;
}

/* Streak card */
.my-overview-streak-card {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}

.my-overview-streak-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.my-overview-streak-count {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
}

.my-overview-streak-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.my-overview-streak-status {
  margin-top: 7px;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink);
}

.my-overview-streak-milestone {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
}

.my-overview-streak-card {
  position: relative;
}

.my-overview-streak-tooltip-anchor {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--muted);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  opacity: 0.4;
  transition: opacity 0.15s;
}

.my-overview-streak-tooltip-anchor:hover {
  opacity: 0.8;
}

.my-overview-streak-card.streak-fire {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(191, 106, 74, 0.2);
}

.my-overview-streak-card.streak-fire .my-overview-streak-count {
  color: var(--accent);
}

.my-overview-streak-card.streak-star {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(202, 138, 4, 0.18);
}

.my-overview-streak-card.streak-star .my-overview-streak-count {
  color: #b45309;
}

.my-overview-streak-card.streak-ok {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(45, 138, 86, 0.18);
}

.my-overview-streak-card.streak-ok .my-overview-streak-count {
  color: var(--ok);
}

.my-overview-streak-card.streak-none {
  opacity: 0.7;
}

.my-overview-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr);
  margin-bottom: 16px;
}

.my-overview-action-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.my-overview-action-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(31, 52, 66, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(31, 52, 66, 0.045);
}

.my-overview-action-card.is-primary {
  border-color: rgba(191, 106, 74, 0.24);
  box-shadow: inset 3px 0 0 rgba(191, 106, 74, 0.6), 0 8px 22px rgba(31, 52, 66, 0.045);
}

.my-overview-action-card.is-warning {
  border-color: rgba(181, 71, 8, 0.2);
  box-shadow: inset 3px 0 0 rgba(181, 71, 8, 0.45), 0 8px 22px rgba(31, 52, 66, 0.045);
}

.my-overview-action-card.is-calm {
  border-color: rgba(30, 100, 95, 0.18);
  box-shadow: inset 3px 0 0 rgba(111, 181, 164, 0.48), 0 8px 22px rgba(31, 52, 66, 0.045);
}

.my-overview-action-card.is-loading {
  min-height: 128px;
}

.my-overview-action-card-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.my-overview-action-card-copy strong {
  color: var(--ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.my-overview-action-card-copy p {
  color: #405766;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.my-overview-action-label {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
  color: #173042;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.my-overview-action-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.my-overview-action-card-footer span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-overview-action-guide-button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.my-overview-action-card.is-primary .my-overview-action-guide-button {
  border-color: rgba(211, 111, 62, 0.35);
  background: var(--accent);
  color: #fff;
}

.my-overview-action-card.is-primary .my-overview-action-guide-button:hover {
  background: #c55e30;
  color: #fff;
}

/* Quick-register button */
.quick-register-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.quick-register-button:hover:not(:disabled) {
  background: #c55e30;
  transform: translateY(-1px);
}

.quick-register-button:active:not(:disabled) {
  transform: translateY(0);
}

.quick-register-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.quick-register-button.registering {
  background: var(--muted);
}

.quick-register-button.registered {
  background: var(--ok);
}

.quick-register-error {
  margin-top: 6px;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Missing day action cards */
.missing-day-card {
  border-left: 3px solid transparent;
}

.missing-day-card.missing-day-missing {
  border-left-color: #c0392b;
}

.missing-day-card.missing-day-under {
  border-left-color: var(--warn);
}

.missing-day-card.missing-day-below {
  border-left-color: #c8940a;
}

/* Quick-register inline form */
.quick-register-form {
  margin-top: 10px;
  padding: 12px;
  background: rgba(23, 48, 66, 0.03);
  border: 1px solid rgba(23, 48, 66, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-register-fields {
  display: flex;
  gap: 10px;
  align-items: end;
}

.quick-register-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quick-register-field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-register-field input {
  padding: 7px 10px;
  border: 1px solid rgba(23, 48, 66, 0.18);
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--panel);
}

.quick-register-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 109, 58, 0.15);
}

.quick-register-field-wide {
  flex: 1;
}

.quick-register-hours {
  width: 80px;
}

.quick-register-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quick-register-form-status {
  font-size: 0.82rem;
}

.quick-register-form-status.ok {
  color: var(--ok);
  font-weight: 600;
}

.quick-register-form-status.error {
  color: #c0392b;
}

.card {
  padding: 18px;
}

.card .label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.card .value {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
}

.card .subvalue {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.compact-card {
  min-height: 144px;
}

.forecast-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: stretch;
}

.forecast-summary-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 152px;
  overflow: hidden;
  border-left: 4px solid rgba(23, 48, 66, 0.12);
}

.forecast-summary-card .label,
.forecast-summary-card .value,
.forecast-summary-card .subvalue,
.forecast-summary-card .delta {
  margin: 0;
}

.forecast-summary-card .value {
  overflow-wrap: anywhere;
}

.forecast-summary-context {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.forecast-summary-card.is-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 229, 222, 0.42));
  border-color: rgba(191, 106, 74, 0.62);
}

.forecast-summary-card.is-good {
  border-left-color: rgba(45, 138, 86, 0.62);
}

.forecast-summary-card.is-warning {
  border-left-color: rgba(180, 35, 24, 0.68);
}

.forecast-summary-card.is-caution {
  border-left-color: rgba(181, 71, 8, 0.62);
}

.forecast-attention-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.64fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: -4px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 106, 74, 0.22);
  border-radius: 10px;
  background: rgba(255, 250, 246, 0.82);
  box-shadow: 0 12px 24px rgba(31, 52, 66, 0.04);
}

.forecast-attention-panel.is-calm {
  grid-template-columns: 1fr;
  border-color: rgba(45, 138, 86, 0.16);
  background: rgba(238, 248, 243, 0.7);
}

.forecast-attention-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.forecast-attention-copy strong {
  font-size: 1rem;
}

.forecast-attention-copy span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.forecast-attention-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.forecast-attention-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.forecast-attention-item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-attention-item strong,
.forecast-attention-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.forecast-attention-item small {
  color: var(--muted);
  font-size: 0.82rem;
}

.forecast-attention-item.is-warning {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(255, 243, 240, 0.88);
}

.forecast-attention-item.is-caution {
  border-color: rgba(181, 71, 8, 0.2);
  background: rgba(255, 247, 235, 0.9);
}

.forecast-attention-item.is-muted {
  border-color: rgba(96, 139, 172, 0.16);
  background: rgba(96, 139, 172, 0.08);
}

.compact-card-small {
  min-height: 116px;
}

.panel {
  padding: 26px;
  margin-bottom: 24px;
}

.auth-panel {
  margin-bottom: 20px;
}

.settings-section + .settings-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
}

.settings-section[hidden] {
  display: none;
}

.settings-section h3 {
  margin: 0 0 12px;
}

.settings-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.settings-summary-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 248, 0.72);
}

.settings-summary-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.settings-summary-card strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.1;
}

.settings-summary-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.settings-tab {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(23, 48, 66, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.settings-tab:hover {
  color: var(--ink);
  background: rgba(23, 48, 66, 0.04);
}

.settings-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.settings-subsection + .settings-subsection {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
}

.settings-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}


.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
}

.settings-field {
  display: grid;
  gap: 6px;
}

.settings-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.settings-field input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(23, 48, 66, 0.15);
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
}


.settings-operation-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 920px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
}

.settings-operation-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-operation-copy h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.settings-operation-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}
.settings-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.settings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.settings-year-control {
  display: inline-flex;
  align-items: end;
  gap: 8px;
}

.settings-year-control label {
  display: grid;
  gap: 5px;
}

.settings-year-control label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.settings-year-control input {
  width: 92px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 48, 66, 0.15);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
}

.settings-year-control .secondary-button {
  min-width: 40px;
  min-height: 38px;
  padding: 8px 10px;
}

.settings-search-input {
  width: min(100%, 360px);
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 48, 66, 0.15);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
}

.settings-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.settings-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(23, 48, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.settings-filter-button:hover {
  background: rgba(23, 48, 66, 0.05);
}

.settings-filter-button.is-active {
  background: var(--ink);
  color: #fff;
}

.settings-filter-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
  line-height: 1;
}

.settings-filter-button.is-active span {
  background: rgba(255, 255, 255, 0.18);
}

.settings-filter-summary {
  color: var(--muted);
  font-size: 0.82rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.customer-directory-table {
  table-layout: fixed;
}

.customer-directory-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 10px;
}

.customer-directory-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(23, 48, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.customer-directory-filter-button:hover {
  background: rgba(23, 48, 66, 0.06);
}

.customer-directory-filter-button.is-active {
  background: var(--ink);
  color: #fff;
}

.customer-directory-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
  line-height: 1;
}

.customer-directory-filter-button.is-active .customer-directory-filter-count {
  background: rgba(255, 255, 255, 0.18);
}

.customer-directory-table th:nth-child(1),
.customer-directory-table td:nth-child(1) {
  width: 34%;
}

.customer-directory-table th:nth-child(2),
.customer-directory-table td:nth-child(2) {
  width: 8%;
}

.customer-directory-table th:nth-child(3),
.customer-directory-table td:nth-child(3) {
  width: 12%;
}

.customer-directory-table th:nth-child(4),
.customer-directory-table td:nth-child(4) {
  width: 14%;
}

.customer-directory-table th:nth-child(5),
.customer-directory-table td:nth-child(5) {
  width: 15%;
}

.customer-directory-table th:nth-child(6),
.customer-directory-table td:nth-child(6) {
  width: 10%;
}

.customer-directory-table th:nth-child(7),
.customer-directory-table td:nth-child(7) {
  width: 7%;
}

.table-cell-action {
  text-align: right;
}

.non-invoiced-groups {
  display: grid;
  gap: 12px;
}

.customer-directory-table tbody tr {
  cursor: pointer;
}

.customer-directory-table tbody tr:hover,
.customer-directory-table tbody tr:focus-visible {
  background: rgba(23, 48, 66, 0.03);
}

.customer-directory-row td {
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}

.customer-directory-primary {
  display: grid;
  gap: 4px;
}

.customer-directory-primary strong,
.customer-directory-table td,
.customer-directory-table th {
  min-width: 0;
}

.customer-period-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.customer-period-toolbar-row {
  display: grid;
  gap: 12px;
  align-items: end;
}

.customer-period-toolbar-primary {
  grid-template-columns: minmax(280px, 520px) max-content minmax(180px, 1fr);
  align-items: end;
}

.customer-period-toolbar-project {
  grid-template-columns: minmax(280px, 520px);
}

.customer-period-toolbar-secondary {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.customer-period-toolbar-secondary.is-project-gate {
  align-items: flex-start;
}

.customer-period-toolbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.customer-period-toolbar-actions button {
  min-height: 40px;
  white-space: nowrap;
}

.customer-period-toolbar-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.customer-period-report-type-field {
  display: grid;
  gap: 6px;
  min-width: 338px;
}

.customer-period-report-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.customer-period-report-options[hidden] {
  display: none;
}

.customer-period-project-field {
  display: grid;
  gap: 6px;
  min-width: min(100%, 360px);
}

.customer-period-project-field[hidden] {
  display: none;
}

.customer-period-project-hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.customer-period-project-hint[hidden] {
  display: none;
}

.visually-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 3px;
  border: 1px solid rgba(23, 48, 66, 0.12);
  border-radius: 8px;
  background: rgba(23, 48, 66, 0.04);
}

.segmented-control-button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.segmented-control-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.segmented-control-button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 48, 66, 0.12);
}

.customer-period-actions {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  margin: 0;
}

.customer-period-actions:empty {
  display: none;
}

.customer-period-report-purpose {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 1px solid rgba(23, 48, 66, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.8rem;
}

.customer-period-report-purpose strong {
  color: var(--ink);
}

.customer-period-report-purpose-source {
  color: var(--muted);
  padding-left: 8px;
  border-left: 1px solid rgba(23, 48, 66, 0.12);
}

.customer-period-report-purpose-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.customer-period-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-period-focus-banner {
  margin-bottom: 10px;
}

.customer-period-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.external-link::after {
  content: "\2197";
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1;
}

.customer-period-toolbar label {
  display: grid;
  gap: 6px;
}

.customer-period-toolbar .table-checkbox {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 8px;
  min-height: 34px;
  padding-top: 22px;
}

.customer-period-toolbar .table-checkbox.is-forced {
  color: var(--muted);
}

.customer-period-toolbar .table-checkbox.is-forced input {
  accent-color: var(--muted);
}

.customer-period-groups {
  display: grid;
  gap: 12px;
}

#customerPeriodSummary.cards-inline {
  grid-template-columns: repeat(auto-fit, minmax(230px, 280px));
  gap: 12px;
  margin-bottom: 12px;
}

#customerPeriodSummary .compact-card {
  min-height: 108px;
  padding: 14px 16px;
}

#customerPeriodSummary .card .value {
  font-size: 1.45rem;
}

.release-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(140px, 180px)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.release-workbench {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
}

.operations-workbench-status {
  min-height: 0;
  padding-top: 0;
}

.release-mode-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin: 0 0 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.release-mode-tabs .secondary-button {
  border-radius: 999px;
}

.release-mode-tabs .secondary-button.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.release-deployment-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 4px 0 16px;
}

.release-toolbar label {
  display: grid;
  gap: 6px;
}

.release-deployment-toolbar label {
  display: grid;
  gap: 6px;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.release-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.release-grid-bottom {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  align-items: start;
}

.release-list {
  display: grid;
  gap: 12px;
}

.release-item {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.release-item.compact {
  gap: 10px;
}

.release-item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.release-item-head > div {
  min-width: 0;
}

.release-item-aside {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
  color: var(--muted);
  font-size: 0.86rem;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.release-meta span {
  min-width: 0;
}

.release-meta strong {
  color: var(--ink);
}

.release-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
  color: #425866;
  font-size: 0.76rem;
  font-weight: 700;
}

.release-pill.is-low {
  background: #e2efff;
  color: #184f96;
}

.release-pill.is-medium {
  background: #fff1de;
  color: #9a5a00;
}

.release-pill.is-high,
.release-pill.is-critical {
  background: #fde7e5;
  color: #8c1d18;
}

.release-copy {
  margin: 0;
  color: #334a58;
  font-size: 0.92rem;
}

.release-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.release-column {
  display: grid;
  gap: 8px;
}

.release-bullet-list {
  margin: 0;
  padding-left: 18px;
  color: #425866;
  display: grid;
  gap: 6px;
  overflow-wrap: anywhere;
}

.release-item.compact .release-bullet-list {
  max-height: 15rem;
  overflow: auto;
  padding-right: 6px;
}

.release-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.release-warning {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.release-warning.low {
  background: #e2efff;
  color: #184f96;
}

.release-warning.medium {
  background: #fff1de;
  color: #9a5a00;
}

.release-warning.high {
  background: #fde7e5;
  color: #8c1d18;
}

.release-notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.release-notes-block {
  display: grid;
  gap: 8px;
}

.release-notes-block h3 {
  margin: 0;
  font-size: 1.02rem;
}

.release-notes-surface {
  margin: 0;
  width: 100%;
  min-height: 220px;
  max-height: 22rem;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid rgba(23, 48, 66, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 244, 236, 0.82), rgba(255, 255, 255, 0.96));
  font: 400 0.95rem/1.65 "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.release-pr-evidence {
  display: grid;
  gap: 10px;
}

.release-pr-evidence summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.release-pr-evidence[open] summary {
  color: var(--ink);
}

.customer-period-progress-overview {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.customer-period-progress-project {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(23, 48, 66, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(23, 48, 66, 0.06);
}

.customer-period-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.customer-period-progress-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.customer-period-progress-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.customer-period-progress-milestones {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 16px;
  align-items: start;
  text-align: right;
}

.customer-period-progress-milestones span {
  display: grid;
  gap: 2px;
}

.customer-period-progress-milestones small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.customer-period-progress-milestones strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.customer-period-progress-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-period-progress-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 248, 0.78);
}

.customer-period-progress-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.customer-period-progress-metric strong {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 650;
}

.customer-period-progress-metric em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.phase-progress-table {
  display: grid;
  overflow-x: hidden;
  padding-bottom: 2px;
  min-width: 0;
}

.phase-progress-header,
.phase-progress-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.phase-progress-header {
  padding: 6px 0 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.phase-progress-row {
  min-height: 48px;
  padding: 9px 0;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
}

.phase-progress-row.is-child {
  min-height: 42px;
  background: rgba(23, 48, 66, 0.025);
}

.phase-progress-copy {
  display: grid;
  grid-template-columns: calc(var(--phase-depth, 0) * 18px) 22px minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
}

.phase-progress-toggle,
.phase-progress-toggle-spacer {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: start;
  width: 22px;
  height: 22px;
}

.phase-progress-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.phase-progress-toggle:hover {
  background: rgba(21, 113, 71, 0.08);
}

.phase-progress-toggle-spacer {
  display: inline-block;
}

.phase-progress-copy strong {
  grid-column: 3;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.phase-progress-copy > span:not(.phase-progress-toggle-spacer) {
  grid-column: 3;
  color: var(--muted);
  font-size: 0.74rem;
}

.phase-progress-week-axis {
  position: relative;
  display: block;
  min-height: 16px;
  min-width: 0;
}

.phase-progress-week-axis span {
  position: absolute;
  left: var(--week-label-position, 0%);
  transform: translateX(-50%);
  min-width: 0;
  max-width: 24px;
  overflow: hidden;
  text-align: center;
  font-size: 0.66rem;
}

.phase-progress-week-axis span:empty::before {
  content: "";
}

.phase-progress-week-axis span.is-current {
  color: #166534;
  font-weight: 900;
}

.phase-progress-week-axis span.is-kickoff,
.phase-progress-week-axis span.is-go-live {
  color: var(--ink);
  font-weight: 800;
}

.phase-progress-bar {
  position: relative;
  min-height: 18px;
}

.phase-progress-track,
.phase-progress-plan,
.phase-progress-fill,
.phase-progress-now {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
}

.phase-progress-track {
  left: 0;
  right: 0;
  height: 16px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
}

.phase-progress-plan {
  left: var(--phase-start);
  width: var(--phase-width);
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.12);
}

.phase-progress-fill {
  left: 0;
  width: var(--phase-progress);
  height: 100%;
  border-radius: inherit;
  background: #78c69b;
}

.phase-progress-bar.is-undated .phase-progress-plan {
  left: 0;
  width: 100%;
  background: rgba(23, 48, 66, 0.08);
}

.phase-progress-now {
  left: var(--phase-now);
  width: 2px;
  height: 28px;
  background: rgba(23, 48, 66, 0.45);
}

.phase-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(23, 48, 66, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.phase-status.is-done {
  background: #dfe8f1;
  color: #173042;
}

.phase-status.is-active {
  background: #dff5e6;
  color: #166534;
}

.phase-status.is-planned,
.phase-status.is-not-started {
  background: rgba(23, 48, 66, 0.08);
  color: #5a6972;
}

.phase-status.is-late,
.phase-status.is-over {
  background: #fde7e5;
  color: #8c1d18;
}

.customer-period-group {
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.customer-period-group summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
}

.customer-period-group summary::-webkit-details-marker {
  display: none;
}

.customer-period-group[open] summary {
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.customer-period-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px 16px;
  align-items: start;
  justify-items: end;
  text-align: right;
  width: min(100%, 620px);
  flex: 0 0 620px;
}

.customer-period-metrics .non-invoiced-project-metric.is-placeholder {
  visibility: hidden;
}

.customer-period-secondary-metrics {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 18px 12px;
  flex-wrap: wrap;
  color: rgba(23, 48, 66, 0.76);
  font-size: 0.9rem;
}

.customer-period-secondary-metrics strong {
  color: var(--ink);
}

.customer-period-task-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.customer-period-task {
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 12px;
  background: rgba(23, 48, 66, 0.02);
  overflow: hidden;
}

.customer-period-task-focused {
  border-color: rgba(21, 113, 71, 0.35);
  box-shadow: 0 0 0 3px rgba(21, 113, 71, 0.12);
}

.customer-period-task summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.customer-period-task summary::-webkit-details-marker {
  display: none;
}

.customer-period-task[open] summary {
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.customer-period-group .non-invoiced-project-copy,
.customer-period-task .non-invoiced-project-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.customer-period-task-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px 14px;
}

.customer-period-detail-metric {
  display: grid;
  gap: 4px;
}

.customer-period-entry-table-wrap {
  grid-column: 1 / -1;
  overflow-x: auto;
}

.customer-period-task-flat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 12px;
  background: rgba(23, 48, 66, 0.02);
}

.customer-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.customer-card:hover,
.customer-card:focus-visible {
  border-color: rgba(23, 48, 66, 0.22);
  box-shadow: 0 12px 24px rgba(23, 48, 66, 0.08);
}

.customer-card-header,
.customer-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.customer-card-title {
  display: grid;
  gap: 4px;
}

.customer-card-title strong {
  font-size: 1.02rem;
}

.customer-card-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-card-kpi {
  display: grid;
  gap: 3px;
}

.customer-card-kpi strong {
  font-size: 0.98rem;
}

.metadata-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(23, 48, 66, 0.08);
  color: var(--muted);
}

.metadata-pill.ready {
  background: #dff5e6;
  color: var(--ok);
}

.metadata-pill.partial {
  background: #e9f1ff;
  color: #2457a6;
}

.metadata-pill.missing {
  background: #fff1de;
  color: var(--warn);
}

.metadata-pill.critical {
  background: #ffe4e6;
  color: #b42318;
}

.metadata-warning {
  margin-top: 4px;
  color: #b42318;
  font-weight: 700;
}

.non-invoiced-section-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


.non-invoiced-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
}

/* ── Customer-facing report table layout ──────────────── */

.cf-project {
  margin-bottom: 20px;
  overflow-x: auto;
}

.cf-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  padding: 8px 0 7px;
  border-bottom: 2px solid var(--ink);
}

.cf-project-heading {
  min-width: 0;
}

.cf-project-type {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.cf-project-tree-toggle {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.cf-task-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.cf-wbs {
  width: 58px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cf-task-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 8px 4px;
  border-bottom: 1px solid var(--panel-border);
}

.cf-task-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(23, 48, 66, 0.06);
  vertical-align: top;
}

.cf-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cf-project-total td {
  font-weight: 600;
  border-top: 2px solid var(--panel-border);
  border-bottom: none;
  padding-top: 6px;
}

.cf-budget-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}

.cf-budget-usage {
  display: grid;
  grid-template-columns: minmax(54px, 92px) max-content;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  padding-left: calc(var(--task-depth, 0) * 18px + 28px);
  color: var(--muted);
  font-size: 0.72rem;
}

.cf-budget-track {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.1);
}

.cf-budget-fill {
  display: block;
  width: var(--budget-used, 0%);
  height: 100%;
  border-radius: inherit;
  background: #32715f;
}

.cf-budget-usage.is-over-budget .cf-budget-fill {
  background: #b42318;
}

.cf-task-row {
  cursor: pointer;
}

.cf-task-row:hover {
  background: rgba(23, 48, 66, 0.03);
}

.cf-task-row.is-parent {
  background: rgba(23, 48, 66, 0.045);
}

.cf-task-row.is-parent td {
  border-bottom-color: rgba(23, 48, 66, 0.1);
  padding-top: 8px;
  padding-bottom: 8px;
}

.cf-task-row.customer-period-task-focused td {
  background: rgba(21, 113, 71, 0.08);
}

.cf-task-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  min-width: 0;
  padding-left: calc(var(--task-depth, 0) * 18px);
}

.cf-task-row.is-parent .cf-task-name {
  font-weight: 700;
}

.cf-task-name > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cf-task-toggle,
.cf-task-toggle-spacer {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.cf-task-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.cf-task-toggle:hover {
  background: rgba(21, 113, 71, 0.08);
}

.cf-task-toggle-spacer {
  display: inline-block;
}

.cf-entry-row {
  background: rgba(23, 48, 66, 0.02);
}

.cf-entries {
  padding: 4px 0 8px 16px;
}

.cf-entry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  color: var(--muted);
}

.cf-entry-table th {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 6px;
  border-bottom: 1px solid var(--panel-border);
  text-align: left;
}

.cf-entry-table td {
  padding: 2px 6px;
  border-bottom: 1px solid rgba(23, 48, 66, 0.04);
}

.budget-bar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.budget-bar {
  display: inline-block;
  width: 80px;
  height: 6px;
  background: var(--panel-border);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
}

.budget-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.non-invoiced-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.non-invoiced-group {
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.non-invoiced-group summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
}

.non-invoiced-group summary::-webkit-details-marker {
  display: none;
}

.non-invoiced-group[open] summary {
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.non-invoiced-group-metrics {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.non-invoiced-group-metrics span {
  font-weight: 700;
}

.non-invoiced-group-metrics small {
  color: var(--muted);
  font-size: 0.82rem;
}

.non-invoiced-project-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.non-invoiced-project {
  display: block;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.non-invoiced-project summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
}

.non-invoiced-project summary::-webkit-details-marker {
  display: none;
}

.non-invoiced-project[open] summary {
  background: rgba(23, 48, 66, 0.03);
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.non-invoiced-project-copy {
  display: grid;
  gap: 4px;
}

.non-invoiced-project-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 16px;
  align-items: start;
}

.non-invoiced-project-metric {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.non-invoiced-project-metric strong {
  white-space: nowrap;
}

.metric-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.non-invoiced-project-table-wrap {
  padding: 0 12px 12px;
}

.non-invoiced-task-list {
  display: grid;
  gap: 10px;
}

.non-invoiced-task {
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 12px;
  background: rgba(23, 48, 66, 0.02);
  overflow: hidden;
}

.non-invoiced-task summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.non-invoiced-task summary::-webkit-details-marker {
  display: none;
}

.non-invoiced-task[open] summary {
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.non-invoiced-task-metrics {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.non-invoiced-task-metrics span {
  font-weight: 700;
}

.non-invoiced-task-metrics small {
  color: var(--muted);
  font-size: 0.82rem;
}

.non-invoiced-entry-table th,
.non-invoiced-entry-table td {
  white-space: normal;
  vertical-align: top;
}

.non-invoiced-table th,
.non-invoiced-table td {
  white-space: normal;
}

.employee-row {
  cursor: pointer;
}

.forecast-table {
  min-width: 960px;
}

.forecast-table th,
.forecast-table td {
  vertical-align: top;
}

.forecast-table th:not(:first-child),
.forecast-table td.number-cell {
  text-align: right;
}

.forecast-table .forecast-person-cell {
  min-width: 210px;
}

.forecast-table .metric-stack {
  justify-items: end;
}

.forecast-table .forecast-person-cell .metric-stack,
.forecast-table .person {
  justify-items: start;
}

.employee-row.is-under-target td:first-child {
  box-shadow: inset 4px 0 0 rgba(180, 35, 24, 0.62);
}

.employee-row.has-absence-risk td:first-child {
  background: linear-gradient(90deg, rgba(255, 247, 235, 0.82), transparent 62%);
}

.employee-row:hover td,
.employee-row:focus-visible td {
  background: rgba(23, 48, 66, 0.04);
}

.employee-row:focus-visible {
  outline: 2px solid rgba(23, 48, 66, 0.2);
  outline-offset: 3px;
}

.forecast-row-action {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-stack .good-text {
  color: #237347;
}

.metric-stack .bad-text {
  color: #a43124;
}

.settings-table td {
  white-space: normal;
  vertical-align: top;
}

.settings-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
}

.settings-table input {
  width: 100%;
}

.table-save-button {
  min-width: 88px;
}

.settings-row-save:not(.is-pending-change) {
  visibility: hidden;
}

.settings-table tr.is-dirty td {
  background: rgba(21, 113, 71, 0.035);
}

.table-delete-button {
  min-width: 64px;
  background: transparent;
  color: #c0392b;
  border: 1px solid #c0392b;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.table-delete-button:hover {
  background: #c0392b;
  color: #fff;
}

.roles-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.roles-input {
  padding: 8px 12px;
  border: 1px solid rgba(23, 48, 66, 0.15);
  border-radius: 6px;
  font-size: 0.9rem;
}

.roles-input[type="email"] {
  min-width: 260px;
}

.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.role-badge--admin {
  background: #e8d5f5;
  color: #6c3483;
}

.role-badge--manager {
  background: #d5e8f5;
  color: #2874a6;
}

.role-badge--employee {
  background: #d5f5e3;
  color: #1e8449;
}

.settings-section-description {
  color: rgba(23, 48, 66, 0.55);
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.empty-state {
  color: rgba(23, 48, 66, 0.55);
  font-style: italic;
}

.table-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.row-meta {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
  white-space: nowrap;
}

th {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-panel[hidden] {
  display: none;
}

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  overscroll-behavior: contain;
}

.detail-panel-nested {
  z-index: 50;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 48, 66, 0.28);
  backdrop-filter: blur(2px);
  touch-action: none;
}

.detail-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(900px, 100vw);
  height: 100%;
  max-height: 100dvh;
  background: rgba(250, 252, 252, 0.99);
  border-left: 1px solid rgba(23, 48, 66, 0.12);
  box-shadow: -24px 0 48px rgba(23, 48, 66, 0.12);
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-drawer:focus {
  outline: none;
}

.detail-drawer-editor {
  width: min(980px, 100vw);
}

.detail-drawer-devops {
  width: min(980px, 100vw);
}

.detail-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-header,
.detail-layout,
.detail-summary {
  display: grid;
  gap: 16px;
}

.detail-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  position: sticky;
  top: -24px;
  z-index: 40;
  padding: 0 0 10px;
  background: rgba(250, 252, 252, 0.99);
}

.detail-drawer .customer-form-footer {
  position: sticky;
  bottom: -24px;
  z-index: 38;
  margin-top: auto;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(250, 252, 252, 0), rgba(250, 252, 252, 0.99) 32%);
}

.detail-subtitle,
.detail-section-header p {
  color: #4e6270;
}

.detail-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: sticky;
  top: 72px;
  z-index: 35;
  padding-bottom: 10px;
  background: rgba(250, 252, 252, 0.99);
}

.detail-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 16px;
  min-height: 84px;
}

.detail-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.detail-card .value {
  font-size: 1.16rem;
  font-weight: 700;
}

.detail-card .subvalue {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.86rem;
}

.detail-layout {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-height: 0;
}

.detail-days,
.detail-entries {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.detail-days {
  position: sticky;
  top: 188px;
  align-self: start;
}

.detail-section-header {
  margin-bottom: 12px;
}

.compact-panel-header {
  margin-bottom: 12px;
}

.compact-panel-header h3 {
  margin: 0 0 4px;
}

.customer-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.customer-detail-overview,
.customer-detail-metadata {
  margin-bottom: 0;
  padding: 18px;
}

.customer-info-grid {
  display: grid;
  gap: 12px;
}

.customer-info-row {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.customer-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.customer-info-row .label {
  color: var(--muted);
  font-size: 0.82rem;
}

.customer-info-row .value {
  font-weight: 600;
  color: var(--ink);
}

.customer-devops-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-devops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-devops-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.customer-devops-scope-item {
  display: inline-grid;
  gap: 2px;
  min-width: 160px;
}

.customer-devops-scope-item .label {
  color: var(--muted);
  font-size: 0.78rem;
}

.customer-devops-scope-item .value {
  color: var(--ink);
  font-weight: 600;
}

.customer-devops-list {
  display: grid;
  gap: 12px;
}

.customer-devops-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.customer-devops-item-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.customer-devops-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-devops-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.customer-devops-link:hover {
  color: var(--accent);
}

.customer-devops-state {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(23, 48, 66, 0.08);
  color: #425866;
}

.customer-devops-state.is-new {
  background: #fff1de;
  color: #9a5a00;
}

.customer-devops-state.is-active {
  background: #e2efff;
  color: #184f96;
}

.customer-devops-state.is-done {
  background: #dff5e6;
  color: #17603b;
}

.customer-devops-link-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.customer-devops-link-status.good {
  background: #dff5e6;
  color: #17603b;
}

.customer-devops-link-status.warn {
  background: #fff1de;
  color: #9a5a00;
}

.customer-devops-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.customer-devops-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.customer-devops-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-devops-match-box {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 12px;
  background: rgba(248, 245, 239, 0.7);
}

.customer-devops-suggestions {
  display: grid;
  gap: 8px;
}

.customer-devops-suggestion-button {
  justify-self: start;
}

.customer-devops-match-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.customer-devops-manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.customer-devops-manual-select {
  display: grid;
  gap: 6px;
}

.customer-devops-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.06);
  color: #425866;
  font-size: 0.76rem;
}

.customer-devops-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.customer-devops-action-panel {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.customer-metadata-form {
  display: grid;
  gap: 18px;
}

.customer-metadata-form.readonly-mode .customer-integration-provider-body {
  display: none;
}

.customer-metadata-form.readonly-mode .customer-integration-provider-summary {
  cursor: default;
}
.customer-metadata-form.readonly-mode input,
.customer-metadata-form.readonly-mode textarea {
  opacity: 0.65;
  background: var(--bg);
  cursor: text;
}

.customer-metadata-form.readonly-mode select {
  opacity: 0.65;
  background: var(--bg);
  cursor: default;
}

.customer-metadata-form.readonly-mode button:not(#openCustomerAccessDocumentationEditorButton):not(#openCustomerSqlEditorButton) {
  display: none;
}

.customer-form-section {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
}

.customer-form-section h4 {
  margin: 0;
}

.customer-integration-section {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 48, 66, 0.1);
  border-radius: 14px;
  background: rgba(248, 251, 251, 0.78);
}

.customer-integration-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  list-style: none;
}

.customer-integration-summary::-webkit-details-marker,
.customer-integration-provider-summary::-webkit-details-marker {
  display: none;
}

.customer-integration-summary::after,
.customer-integration-provider-summary::after {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
  content: "";
}

.customer-integration-section[open] > .customer-integration-summary::after,
.customer-integration-provider[open] > .customer-integration-provider-summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.customer-integration-summary-heading,
.customer-integration-provider-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customer-integration-summary-heading strong {
  color: var(--text);
  font-size: 0.98rem;
}

.customer-integration-summary-heading small,
.customer-integration-provider-heading small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.customer-integration-summary-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
}

.customer-integration-status-pill,
.customer-integration-provider-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(23, 48, 66, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: #f6f8f8;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.customer-integration-status-pill {
  padding: 7px 9px;
}

.customer-integration-status-pill strong {
  color: currentColor;
  font-size: inherit;
  font-weight: 700;
}

.customer-integration-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.customer-integration-status-pill[data-state="ready"],
.customer-integration-provider-status[data-state="ready"] {
  border-color: #b9decf;
  color: #176044;
  background: #eef9f3;
}

.customer-integration-status-pill[data-state="disabled"],
.customer-integration-provider-status[data-state="disabled"] {
  border-color: #d8dde0;
  color: #64727a;
  background: #f3f5f5;
}

.customer-integration-status-pill[data-state="incomplete"],
.customer-integration-provider-status[data-state="incomplete"] {
  border-color: #efd7a4;
  color: #8a5a00;
  background: #fff8e8;
}

.customer-integration-status-pill[data-state="error"],
.customer-integration-provider-status[data-state="error"] {
  border-color: #edc2c2;
  color: #a52f2f;
  background: #fff1f1;
}

.customer-integration-status-pill[data-state="restricted"],
.customer-integration-provider-status[data-state="restricted"] {
  border-color: #d5c9eb;
  color: #634991;
  background: #f5f0fc;
}

.customer-integration-health-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(23, 48, 66, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: #f6f8f8;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.customer-integration-health-summary strong {
  color: currentColor;
  font-size: inherit;
  font-weight: 700;
}

.customer-integration-health-summary[data-state="ready"] {
  border-color: #b9decf;
  color: #176044;
  background: #eef9f3;
}

.customer-integration-health-summary[data-state="incomplete"] {
  border-color: #efd7a4;
  color: #8a5a00;
  background: #fff8e8;
}

.customer-integration-health-summary[data-state="error"] {
  border-color: #edc2c2;
  color: #a52f2f;
  background: #fff1f1;
}

.customer-integration-health-summary[data-state="restricted"] {
  border-color: #d5c9eb;
  color: #634991;
  background: #f5f0fc;
}
.customer-integration-provider {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(23, 48, 66, 0.1);
  border-radius: 12px;
  background: #fff;
}

.customer-integration-provider-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.customer-integration-provider-summary::after {
  margin-left: 2px;
}

.customer-integration-provider-heading {
  flex: 1 1 auto;
}

.customer-integration-provider-heading strong {
  color: var(--text);
  font-size: 0.95rem;
}

.customer-integration-provider-status {
  flex: 0 0 auto;
  padding: 7px 10px;
}

.customer-integration-provider-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
  background: #fbfcfc;
}

.customer-form-grid {
  display: grid;
  gap: 12px;
}

.customer-form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.customer-form-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  align-content: start;
}

.customer-form-grid label.table-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
  white-space: normal;
}

.customer-form-grid .full-width {
  grid-column: 1 / -1;
}

.customer-form-grid .field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.customer-form-grid textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.customer-link-field {
  gap: 8px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(23, 48, 66, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease;
}

.icon-link-button::before {
  content: "\2197";
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.icon-link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 48, 66, 0.28);
}

.icon-link-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.icon-link-placeholder::before {
  content: "↗";
}

.customer-readonly-field {
  display: grid;
  gap: 6px;
  align-content: start;
  font-weight: 600;
  min-width: 0;
}

.customer-readonly-field strong {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(23, 48, 66, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.customer-period-project-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-period-project-link {
  font-weight: 600;
}

.sql-editor-launcher {
  display: grid;
  gap: 10px;
}

.code-summary {
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 48, 66, 0.14);
  border-radius: 18px;
  background: rgba(247, 242, 232, 0.65);
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow: hidden;
}

.empty-state-inline {
  color: rgba(23, 48, 66, 0.62);
  font-family: inherit;
}

.customer-form-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.operations-caption {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.customer-editor-shell {
  min-height: 0;
}

.customer-editor-textarea {
  width: 100%;
  min-height: min(60vh, 640px);
  padding: 16px;
  resize: vertical;
  border: 1px solid rgba(23, 48, 66, 0.14);
  border-radius: 18px;
  background: white;
  font: 400 14px/1.6 "Cascadia Code", Consolas, monospace;
}

.customer-editor-shell .CodeMirror {
  height: min(60vh, 640px);
  border: 1px solid rgba(23, 48, 66, 0.14);
  border-radius: 18px;
  background: white;
  font-size: 14px;
}

.day-list,
.entry-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: 60vh;
  overflow: auto;
  padding-right: 4px;
}

.day-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding-bottom: 8px;
  background: rgba(249, 248, 244, 0.99);
}

.day-filter-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(23, 48, 66, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
}

.day-filter-button:hover {
  background: rgba(23, 48, 66, 0.06);
}

.day-filter-button.is-active {
  background: var(--ink);
  color: #fff;
}

.day-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
  color: inherit;
  font-size: 0.74rem;
  line-height: 1;
}

.day-filter-button.is-active .day-filter-count {
  background: rgba(255, 255, 255, 0.18);
}

.day-button,
.entry-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(23, 48, 66, 0.08);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 12px 14px;
}

.day-button {
  cursor: pointer;
  display: grid;
  gap: 6px;
  border-color: rgba(23, 48, 66, 0.12);
  justify-items: stretch;
  color: var(--ink);
}

.day-button:hover,
.day-button.is-active {
  border-color: rgba(23, 48, 66, 0.26);
  box-shadow: 0 10px 24px rgba(23, 48, 66, 0.08);
}

.day-button.is-active {
  background: rgba(255, 255, 255, 1);
}

.day-button.weekend {
  background: rgba(23, 48, 66, 0.03);
}

.day-button.status-missing {
  border-left: 5px solid #b42318;
}

.day-button.status-under {
  border-left: 5px solid #b54708;
}

.day-button.status-met {
  border-left: 5px solid #2d8a56;
}

.day-button.status-over {
  border-left: 5px solid #1f6feb;
}

.day-button.status-absence {
  border-left: 5px solid #8e6ad8;
}

.day-button.status-future {
  border-left: 5px solid #8aa0ae;
  background: rgba(255, 255, 255, 0.72);
}

.day-row,
.day-meta,
.entry-meta,
.entry-tags {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.day-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.day-metric {
  display: grid;
  gap: 2px;
}

.day-metric-label {
  color: #617583;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-metric strong {
  color: #213847;
  font-size: 0.95rem;
}

.day-date,
.entry-title {
  font-weight: 700;
}

.day-date {
  color: #213847;
  font-size: 0.92rem;
  line-height: 1.2;
}

.day-meta,
.entry-meta,
.entry-note,
.empty-state {
  color: #4e6270;
  font-size: 0.86rem;
}

.day-meta-strong {
  color: #213847;
  font-weight: 500;
  justify-content: flex-start;
}

.day-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(23, 48, 66, 0.12);
  background: rgba(23, 48, 66, 0.06);
  color: #213847;
}

.day-status-badge.status-missing {
  background: #fde7e5;
  color: #8c1d18;
}

.day-status-badge.status-under {
  background: #fff1de;
  color: #9a5a00;
}

.day-status-badge.status-below {
  background: #fff8ea;
  color: #8a6400;
}

.day-status-badge.status-met {
  background: #dff5e6;
  color: #17603b;
}

.day-status-badge.status-over {
  background: #e2efff;
  color: #184f96;
}

.day-status-badge.status-absence {
  background: #ede7fb;
  color: #5f43a6;
}

.day-status-badge.status-future {
  background: rgba(23, 48, 66, 0.08);
  color: #4e6270;
}

.day-status-badge.status-weekend {
  background: rgba(23, 48, 66, 0.08);
  color: #425866;
}

.entry-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 4px;
}

.entry-title {
  font-size: 1rem;
  line-height: 1.2;
}

.entry-amount {
  white-space: nowrap;
}

.entry-path {
  margin-bottom: 8px;
}

.entry-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #425866;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
  border: 1px solid rgba(23, 48, 66, 0.08);
}

.entry-note {
  margin-top: 8px;
  white-space: pre-wrap;
}

tr:last-child td {
  border-bottom: none;
}

.person strong {
  display: block;
}

.person span {
  color: var(--muted);
  font-size: 0.85rem;
}

.person .employee-streak {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(23, 48, 66, 0.1);
  background: rgba(23, 48, 66, 0.05);
  color: #4e6270;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.person .employee-streak.streak-started {
  background: #eef6ff;
  color: #24618f;
}

.person .employee-streak.streak-ok {
  background: #e7f6ef;
  color: #1b7c55;
}

.person .employee-streak.streak-strong {
  background: #dff5e6;
  color: var(--ok);
}

.forecast-row-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.forecast-row-flag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.person .forecast-row-flag {
  color: var(--muted);
}

.forecast-row-flag.is-good {
  background: #e7f6ef;
  color: #1b7c55;
}

.forecast-row-flag.is-warning {
  background: #fff1de;
  color: var(--warn);
}

.forecast-row-flag.is-muted {
  background: #eef6ff;
  color: #24618f;
}

.metric-stack {
  display: grid;
  gap: 4px;
  white-space: normal;
}

.metric-stack strong,
.metric-stack span {
  display: block;
}

.metric-stack strong {
  font-size: 0.95rem;
}

.metric-stack span {
  color: var(--muted);
  font-size: 0.83rem;
}

.forecast-rate-pill {
  min-width: 66px;
  justify-content: center;
}

.forecast-rate-bar {
  display: block;
  width: 100%;
  min-width: 76px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.08);
}

.forecast-rate-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sage));
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

.profile-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.checkbox {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
}

.notes {
  grid-column: span 2;
}

input,
select,
button {
  font: inherit;
  border-radius: 12px;
  border: 1px solid rgba(23, 48, 66, 0.16);
  padding: 10px 12px;
  background: #fff;
}

#monthPicker,
#monthPicker {
  width: 100%;
}

button {
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  background: #244a62;
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover {
  background: rgba(23, 48, 66, 0.06);
}

.auth-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-actions > button {
  min-height: 44px;
}

.auth-action-primary {
  padding-inline: 18px;
}

.auth-action-secondary {
  background: rgba(23, 48, 66, 0.04);
  border-color: rgba(23, 48, 66, 0.14);
}

.auth-action-reset {
  color: var(--muted);
  border-style: dashed;
}

.auth-action-reset:hover {
  color: var(--ink);
}

.auth-actions-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status {
  min-height: 24px;
  padding-top: 10px;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: #b42318;
}

.site-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
  padding: 6px 4px 0;
}

.sync-summary {
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.sync-summary.fresh {
  color: var(--muted);
}

.sync-summary.stale {
  color: #b42318;
  font-weight: 600;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  min-width: 140px;
}

.footer-actions .action-status {
  text-align: right;
}

.footer-button-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.subtle-action {
  padding: 9px 14px;
  font-size: 0.92rem;
}

.settings-panel {
  justify-self: end;
  border: none;
  background: transparent;
}

.settings-panel-footer {
  width: min(920px, 100%);
}

.settings-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.settings-panel summary::-webkit-details-marker {
  display: none;
}

.settings-panel summary::after {
  content: " +";
  color: var(--muted);
}

.settings-panel[open] summary::after {
  content: " -";
}

.settings-body {
  margin-top: 10px;
  padding: 18px;
  border: 1px solid rgba(23, 48, 66, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
}

.settings-intro {
  margin-bottom: 14px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
}

.pill.good {
  background: #dff5e6;
  color: var(--ok);
}

.pill.warn {
  background: #fff1de;
  color: var(--warn);
}

.delta {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.delta.good {
  color: var(--ok);
}

.delta.bad {
  color: #b42318;
}

.delta.neutral {
  color: var(--muted);
}

@media (min-width: 901px) and (max-width: 1240px) {
  .forecast-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .detail-drawer {
    width: min(760px, 100vw);
    padding: 20px;
    gap: 18px;
  }

  .detail-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    top: 68px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .customer-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .customer-devops-item {
    flex-direction: column;
  }

  .customer-devops-actions {
    justify-items: start;
  }

  .detail-days {
    position: static;
  }

  .day-list,
  .entry-list {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .shell > :not(.hero) {
    grid-column: auto;
  }

  .forecast-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-attention-panel {
    grid-template-columns: 1fr;
  }

  .forecast-attention-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    position: static;
  }

  .view-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .cards-inline {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .my-overview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-overview-action-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-overview-grid,
  .my-overview-grid-action,
  .my-overview-grid-support {
    grid-template-columns: 1fr;
  }

  .controls {
    max-width: none;
  }

  .hero-toolbar,
  .workbench-primary-nav,
  .workbench-secondary-nav,
  .workbench-admin-nav {
    width: 100%;
  }

  .my-overview-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero .view-switch {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .hero .view-switch .secondary-button {
    width: auto;
    scroll-snap-align: start;
  }

  .view-controls-host {
    justify-content: flex-start;
  }

  .workbench-secondary-row {
    gap: 10px;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-actions {
    justify-items: stretch;
  }

  .detail-header,
  .detail-summary,
  .day-filter-bar {
    position: static;
    top: auto;
    background: transparent;
    padding-bottom: 0;
  }

  .day-list,
  .entry-list {
    overflow: visible;
  }

  .day-list,
  .entry-list {
    max-height: none;
    overflow: visible;
  }

  .timeline-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .my-overview-workbench {
    grid-template-columns: 1fr;
  }

  .my-overview-side-column {
    position: static;
  }
}

@media (max-width: 720px) {
  .my-overview-calendar-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 60;
    width: auto;
    max-width: none;
    border-radius: 14px;
  }

  .shell {
    padding: 16px;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell > *,
  main,
  section {
    min-width: 0;
    max-width: 100%;
  }

  .hero,
  .panel {
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .card {
    border-radius: 8px;
  }

  .hero {
    padding: 14px;
  }

  .hero-copy {
    gap: 10px;
  }

  .hero-copy > div:first-child {
    gap: 4px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero-copy h1 {
    font-size: 1.45rem;
  }

  .hero .lede {
    display: none;
  }

  .hero-toolbar {
    gap: 8px;
    min-width: 0;
  }

  .hero .view-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-inline: 0;
    padding-bottom: 0;
    overflow: visible;
    scroll-snap-type: none;
    min-width: 0;
  }

  .hero .view-switch .secondary-button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding-inline: 8px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    scroll-snap-align: unset;
  }

  .hero .view-switch .secondary-button.is-active {
    box-shadow: inset 0 0 0 2px rgba(111, 181, 164, 0.35);
  }

  .workbench-secondary-row {
    gap: 12px;
    min-width: 0;
  }

  .tool-nav-summary {
    padding: 10px 12px;
  }

  .tool-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }

  .tool-nav-grid .secondary-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    justify-content: center;
    padding-inline: 8px;
    text-align: center;
    white-space: normal;
  }

  .workbench-admin-nav {
    grid-template-columns: 1fr;
  }

  .my-overview-toolbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #myOverviewPreviousDayButton {
    grid-column: 1;
    grid-row: 1;
  }

  .my-overview-date-picker {
    grid-column: 2;
    grid-row: 1;
  }

  #myOverviewNextDayButton {
    grid-column: 3;
    grid-row: 1;
  }

  #myOverviewTodayButton {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .my-overview-date-picker {
    min-width: 0;
  }

  .my-overview-date-picker span {
    display: none;
  }

  .my-overview-date-button {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #myOverviewTodayButton {
    min-width: 0;
    padding-inline: 10px;
  }

  .my-overview-status-panel .panel-header {
    gap: 8px;
  }

  .my-overview-status-panel > * {
    min-width: 0;
  }

  .my-overview-status-panel .panel-header p {
    display: none;
  }

  .my-overview-date-context {
    min-height: auto;
    padding-top: 8px;
  }

  #myOverviewStatus:empty {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cards-inline {
    grid-template-columns: 1fr;
  }

  .forecast-toolbar {
    gap: 12px;
  }

  .forecast-summary-grid {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }

  .forecast-summary-card,
  .forecast-summary-card.is-primary {
    grid-column: auto;
    min-height: auto;
  }

  .forecast-attention-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px;
  }

  .forecast-attention-items {
    grid-template-columns: 1fr;
  }

  .forecast-employees-panel .panel-header p {
    font-size: 0.92rem;
  }

  .my-overview-cards {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    gap: 8px;
    margin-inline: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .my-overview-cards .my-overview-summary-card {
    gap: 8px;
    width: min(100%, calc(100vw - 48px));
    padding: 10px 12px;
    max-width: calc(100vw - 48px);
    box-shadow: none;
    justify-self: start;
    scroll-snap-align: unset;
  }

  .my-overview-ring-row {
    align-items: center;
    gap: 10px;
  }

  .my-overview-ring-wrap,
  .my-overview-ring {
    width: 52px;
    height: 52px;
  }

  .my-overview-ring-label {
    font-size: 0.84rem;
  }

  .my-overview-ring-details strong {
    font-size: 0.94rem;
    white-space: normal;
  }

  .my-overview-ring-caption,
  .my-overview-streak-label {
    font-size: 0.78rem;
  }

  .my-overview-card-footer {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .my-overview-card-hint {
    display: none;
  }

  .my-overview-streak-card {
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    box-shadow: none;
  }

  .my-overview-streak-count {
    font-size: 1.2rem;
  }

  .my-overview-streak-tooltip-anchor {
    top: 0.35rem;
    right: 0.35rem;
  }

  .my-overview-action-guide {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .my-overview-action-card {
    gap: 12px;
    width: min(100%, calc(100vw - 48px));
    min-height: auto;
    min-width: 0;
    max-width: calc(100vw - 48px);
    padding: 14px;
    justify-self: start;
  }

  .my-overview-action-card:not(:first-child) {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    box-shadow: none;
  }

  .my-overview-action-card:not(:first-child) .my-overview-action-card-copy {
    gap: 3px;
  }

  .my-overview-action-card-copy p,
  .my-overview-action-card:not(:first-child) .my-overview-action-card-copy p {
    display: none;
  }

  .my-overview-action-card-footer {
    display: grid;
    align-items: stretch;
  }

  .my-overview-action-card:not(:first-child) .my-overview-action-card-footer {
    display: grid;
    justify-content: stretch;
  }

  .my-overview-action-card:not(:first-child) .my-overview-action-card-footer > span {
    display: none;
  }

  .my-overview-action-guide-button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    white-space: normal;
  }

  .my-overview-action-card:not(:first-child) .my-overview-action-guide-button {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
  }

  .panel-header {
    display: grid;
    gap: 10px;
  }

  .my-overview-workbench {
    gap: 14px;
    margin-top: 16px;
  }

  .my-overview-main-column,
  .my-overview-side-column {
    display: contents;
  }

  .my-overview-workbench .panel,
  .my-overview-workbench .my-overview-inline-panel {
    margin-bottom: 0;
  }

  .my-overview-primary-action-panel {
    order: 1;
  }

  .my-overview-followup-panel {
    order: 2;
  }

  .my-overview-attention-panel {
    order: 3;
  }

  .my-overview-entries-panel {
    order: 4;
  }

  .my-overview-memory-panel {
    order: 5;
  }

  .my-overview-timeline-panel {
    order: 6;
  }

  .settings-summary {
    grid-template-columns: 1fr;
  }

  .settings-section-head,
  .settings-toolbar {
    display: grid;
    justify-content: stretch;
  }


  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-operation-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-operation-panel .table-save-button {
    width: 100%;
  }
  .settings-filter-group {
    justify-content: flex-start;
  }

  .settings-year-control {
    justify-content: flex-start;
  }

  .settings-search-input {
    width: 100%;
  }

  .release-workbench {
    padding-top: 12px;
  }

  .my-overview-item-head,
  .my-overview-summary-head {
    flex-direction: column;
    align-items: stretch;
  }

  .my-overview-item {
    padding: 12px;
    border-radius: 12px;
  }

  .my-overview-suggestion-card {
    border-left-width: 3px;
  }

  .my-overview-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .my-overview-actions > button,
  .my-overview-actions > .quick-register-button,
  .my-overview-action-panel > button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .quick-register-button {
    min-height: 44px;
    justify-content: center;
  }

  .quick-register-form {
    padding: 12px;
  }

  .quick-register-fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-register-field input {
    min-height: 44px;
    font-size: 1rem;
  }

  .quick-register-hours {
    width: 100%;
  }

  .quick-register-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-register-form-actions > button {
    width: 100%;
    min-height: 44px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-filter-bar,
  .customer-directory-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .timeline-filter-button,
  .customer-directory-filter-button {
    flex: 0 0 auto;
  }

  .timeline-item-time {
    padding-top: 0;
  }

  .auth-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-actions > button {
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-table tr {
    padding: 14px;
    border: 1px solid rgba(23, 48, 66, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 24px rgba(23, 48, 66, 0.06);
  }

  .responsive-table td {
    padding: 8px 0;
    white-space: normal;
    border: 0;
  }

  .responsive-table td + td {
    border-top: 1px solid rgba(23, 48, 66, 0.08);
  }

  .forecast-table {
    min-width: 0;
  }

  .forecast-table th:not(:first-child),
  .forecast-table td.number-cell {
    text-align: left;
  }

  .forecast-table .metric-stack {
    justify-items: start;
  }

  .forecast-table .forecast-person-cell {
    min-width: 0;
  }

  .forecast-table .forecast-person-cell::before {
    content: none;
  }

  .employee-row.is-under-target td:first-child,
  .employee-row.has-absence-risk td:first-child {
    border-radius: 10px;
  }

  .forecast-row-flags {
    gap: 6px;
  }

  .forecast-rate-bar {
    max-width: 220px;
  }

  .responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4e6270;
  }

  .responsive-table td[data-label=""]::before {
    display: none;
  }

  .responsive-table td.table-cell-action {
    padding-top: 12px;
    text-align: left;
  }

  .responsive-table td.table-cell-action::before {
    content: none;
  }

  .responsive-table td input,
  .responsive-table td select,
  .responsive-table td button,
  .responsive-table td .table-save-button,
  .responsive-table td .table-delete-button {
    width: 100%;
    min-height: 44px;
  }

  .customer-directory-row {
    cursor: pointer;
  }

  .customer-directory-row td {
    padding: 8px 0;
  }

  .panel {
    padding: 18px;
  }

  .detail-panel {
    background: rgba(23, 48, 66, 0.16);
  }

  .detail-backdrop {
    background: rgba(23, 48, 66, 0.18);
    backdrop-filter: blur(1px);
  }

  .detail-drawer {
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    gap: 16px;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .detail-header-actions {
    justify-content: stretch;
  }

  .detail-header-actions .secondary-button {
    flex: 1 1 180px;
  }

  .detail-header {
    top: -18px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(23, 48, 66, 0.08);
    background: rgba(250, 252, 252, 0.99);
  }

  .detail-drawer .customer-form-footer {
    bottom: -16px;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(250, 252, 252, 0), rgba(250, 252, 252, 0.99) 28%);
  }

  .detail-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-form-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .customer-readonly-grid {
    grid-template-columns: 1fr;

  }

  .customer-form-footer {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: auto;
    padding: 12px;
  }

  .detail-layout,
  .customer-detail-layout {
    gap: 14px;
  }

  .detail-layout {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .detail-days,
  .detail-entries {
    display: block;
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .detail-days {
    display: block;
    grid-template-rows: none;
  }

  .detail-entries {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 48, 66, 0.08);
  }

  .diary-week-nav {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .diary-week-nav span {
    flex: 1 1 150px;
    padding-top: 9px;
  }

  .customer-form-section {
    padding-top: 12px;
    gap: 10px;
  }

  .customer-devops-toolbar,
  .release-toolbar,
  .release-deployment-toolbar {
    grid-template-columns: 1fr;
  }

  .customer-devops-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .customer-devops-toolbar-actions > button,
  .release-toolbar > button,
  .release-deployment-toolbar > button {
    width: 100%;
  }

  .release-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .detail-section-header {
    margin-bottom: 8px;
  }

  .day-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    margin: 0;
    padding: 0 0 10px;
  }

  .day-filter-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    justify-content: center;
    padding: 8px 9px;
    white-space: normal;
  }

  .day-list,
  .entry-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .day-button,
  .entry-card {
    flex: 0 0 auto;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .day-row,
  .day-meta,
  .entry-tags {
    gap: 6px;
  }

  .day-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .day-metrics {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }

  .day-date {
    font-size: 0.98rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .day-meta,
  .entry-meta,
  .entry-note,
  .empty-state {
    font-size: 0.9rem;
  }

  .detail-section-header h3,
  .entry-title {
    overflow-wrap: anywhere;
  }

  .entry-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-amount {
    align-self: flex-start;
  }

  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .non-invoiced-group summary {
    flex-direction: column;
  }

  .non-invoiced-group-metrics {
    justify-items: start;
    text-align: left;
  }

  .non-invoiced-project summary {
    flex-direction: column;
  }

  .non-invoiced-project-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .non-invoiced-project-metric {
    justify-items: start;
    text-align: left;
  }

  .non-invoiced-task summary {
    flex-direction: column;
  }

  .non-invoiced-task-metrics {
    justify-items: start;
    text-align: left;
  }

  .non-invoiced-toolbar {
    justify-content: flex-start;
  }

  .customer-period-toolbar {
    align-items: stretch;
  }

  .customer-period-toolbar-primary {
    grid-template-columns: 1fr;
  }

  .customer-period-toolbar-secondary,
  .customer-period-toolbar-actions {
    align-items: stretch;
  }

  .customer-period-toolbar-actions {
    flex-direction: column;
  }

  .customer-period-project-field,
  .customer-period-report-options,
  .customer-period-report-type-field {
    min-width: min(100%, 338px);
    width: 100%;
  }

  .customer-period-toolbar .table-checkbox {
    padding-top: 0;
  }

  .customer-period-progress-head {
    display: grid;
  }

  .customer-period-progress-milestones {
    justify-content: start;
    text-align: left;
  }

  .customer-period-progress-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-toolbar,
  .release-deployment-toolbar,
  .release-brief-grid,
  .release-grid,
  .release-columns,
  .release-notes-layout {
    grid-template-columns: 1fr;
  }

  .release-item-head {
    flex-direction: column;
  }

  .release-item-aside {
    justify-items: start;
    text-align: left;
  }

  .customer-period-actions {
      justify-content: flex-start;
    }

  .customer-period-group summary,
  .customer-period-task summary,
  .customer-period-task-flat {
    flex-direction: column;
  }

  .customer-period-metrics,
  .customer-period-task-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-period-secondary-metrics {
    justify-content: flex-start;
    padding: 0 14px 12px;
  }
}

/* ── Print-only report header ─────────────────────────── */

.print-only-report-header {
  display: none;
}

/* ── Print styles for customer report ─────────────────── */

@media print {
  /* Hide everything except the report content */
  body.printing-customer-report nav,
  body.printing-customer-report .tabs,
  body.printing-customer-report .hero,
  body.printing-customer-report #monthControls,
  body.printing-customer-report .controls,
  body.printing-customer-report .customer-period-toolbar,
  body.printing-customer-report #customerPeriodActions,
  body.printing-customer-report #customerPeriodReportPurpose,
  body.printing-customer-report #customerPeriodStatusMessage,
  body.printing-customer-report footer,
  body.printing-customer-report .detail-panel,
  body.printing-customer-report #printCustomerPeriodReportButton,
  body.printing-customer-report main:not(#customerPeriodView),
  body.printing-customer-report .panel-header,
  body.printing-customer-report .external-link,
  body.printing-customer-report .customer-period-project-link {
    display: none !important;
  }

  body.printing-customer-report .print-only-report-header {
    display: block !important;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #173042;
  }

  body.printing-customer-report .print-only-report-header h1 {
    font-size: 1.3rem;
    margin: 0 0 2px;
  }

  body.printing-customer-report .report-period {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
  }

  body.printing-customer-report {
    background: white !important;
    font-size: 11px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-customer-report .shell {
    max-width: 100%;
    padding: 0;
  }

  body.printing-customer-report .panel {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  /* Compact summary cards — horizontal row */
  body.printing-customer-report .cards-inline {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.printing-customer-report .card.compact-card {
    box-shadow: none;
    border: 1px solid #ddd;
    padding: 8px 12px;
    flex: 1 1 0;
    min-width: 0;
  }

  body.printing-customer-report .card .label {
    font-size: 0.7rem;
  }

  body.printing-customer-report .card .value {
    font-size: 1rem;
  }

  body.printing-customer-report .card .subvalue,
  body.printing-customer-report .card .row-meta {
    font-size: 0.7rem;
  }

  /* Compact project & task summaries — keep flex row, not column */
  body.printing-customer-report .customer-period-progress-project {
    gap: 8px;
    padding: 10px;
    box-shadow: none;
    break-inside: avoid;
  }

  body.printing-customer-report .customer-period-progress-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body.printing-customer-report .customer-period-progress-metric {
    padding: 6px 8px;
  }

  body.printing-customer-report .customer-period-progress-metric strong {
    font-size: 1rem;
  }

  body.printing-customer-report .phase-progress-header,
  body.printing-customer-report .phase-progress-row {
    min-width: 0;
    grid-template-columns: 170px minmax(260px, 1fr) 82px;
    gap: 8px;
  }

  body.printing-customer-report .phase-progress-table,
  body.printing-customer-report .phase-progress-bar {
    overflow: visible;
  }

  body.printing-customer-report .phase-progress-bar {
    position: relative;
    min-height: 18px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-customer-report .phase-progress-row {
    min-height: 34px;
    padding: 5px 0;
  }

  body.printing-customer-report .phase-progress-copy strong {
    font-size: 0.72rem;
  }

  body.printing-customer-report .phase-progress-copy span,
  body.printing-customer-report .phase-status {
    font-size: 0.62rem;
  }

  body.printing-customer-report .phase-progress-track,
  body.printing-customer-report .phase-progress-plan {
    box-sizing: border-box;
    height: 12px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-customer-report .phase-progress-track {
    z-index: 0;
    border: 1px solid #c8d1d6;
    background: #edf2f4 !important;
  }

  body.printing-customer-report .phase-progress-plan {
    z-index: 1;
    border: 1px solid #9facb4;
    background: #d9e0e3 !important;
  }

  body.printing-customer-report .phase-progress-fill {
    z-index: 2;
    background: #56a878 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-customer-report .phase-progress-now {
    z-index: 3;
    height: 24px;
    background: #173042 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-customer-report .phase-status {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-customer-report .phase-progress-toggle,
  body.printing-customer-report .phase-progress-toggle-spacer {
    display: none;
  }

  body.printing-customer-report .phase-progress-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  body.printing-customer-report .phase-progress-copy strong,
  body.printing-customer-report .phase-progress-copy span {
    grid-column: 1;
  }

  body.printing-customer-report .customer-period-group summary,
  body.printing-customer-report .customer-period-task summary {
    flex-direction: row !important;
    padding: 8px 10px;
    gap: 8px;
  }

  /* Compact metric grid */
  body.printing-customer-report .customer-period-metrics {
    grid-template-columns: repeat(4, auto) !important;
    gap: 4px 12px;
    flex: 0 0 auto;
    width: auto;
  }

  body.printing-customer-report .non-invoiced-project-metric .metric-label {
    font-size: 0.65rem;
  }

  body.printing-customer-report .non-invoiced-project-metric strong {
    font-size: 0.8rem;
  }

  /* Compact secondary metrics */
  body.printing-customer-report .customer-period-secondary-metrics {
    padding: 2px 10px 6px;
    font-size: 0.75rem;
    gap: 10px;
  }

  /* Compact entry tables */
  body.printing-customer-report .customer-period-entry-table {
    font-size: 0.7rem;
  }

  body.printing-customer-report .customer-period-entry-table th,
  body.printing-customer-report .customer-period-entry-table td {
    padding: 3px 6px;
  }

  /* Avoid page breaks inside tasks, but allow inside project groups */
  body.printing-customer-report .customer-period-task {
    break-inside: avoid;
  }

  body.printing-customer-report .customer-period-group {
    break-before: auto;
  }

  /* Budget bar in print */
  body.printing-customer-report .budget-bar {
    width: 60px;
  }

  /* Project heading compact */
  body.printing-customer-report .customer-period-project-heading {
    font-size: 0.9rem;
  }

  body.printing-customer-report .non-invoiced-project-copy .row-meta {
    font-size: 0.7rem;
  }

  /* Task detail grid compact */
  body.printing-customer-report .customer-period-task-detail-grid {
    padding: 4px 10px 8px;
  }

  body.printing-customer-report .cf-project {
    margin-bottom: 14px;
    break-inside: avoid;
  }

  body.printing-customer-report .cf-project-header {
    font-size: 0.85rem;
    padding: 4px 0 3px;
  }

  body.printing-customer-report .cf-project-tree-toggle {
    display: none;
  }

  body.printing-customer-report .cf-task-table {
    font-size: 0.75rem;
  }

  body.printing-customer-report .cf-task-table th {
    font-size: 0.65rem;
    padding: 3px 6px 2px;
  }

  body.printing-customer-report .cf-task-table td {
    padding: 3px 6px;
  }

  body.printing-customer-report .cf-budget-note {
    font-size: 0.65rem;
  }

  body.printing-customer-report .cf-entry-row {
    display: none !important;
  }

  body.printing-customer-report .cf-task-row {
    cursor: default;
  }

  body.printing-customer-report .cf-task-toggle {
    display: none;
  }

  body.printing-customer-report .customer-period-task-flat {
    flex-direction: row !important;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: none;
  }
}

.release-approval-badge { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; padding: 0.5rem 0.75rem; background: #dcfce7; border-radius: 8px; }
.release-approval-ok { font-weight: 600; color: #166534; }
.release-approval-actions { margin-top: 0.75rem; }
.release-revoke-button { font-size: 0.8rem; }

/* ── Task 1: Traffic light banner ────────────────────────────── */
.traffic-light-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
}

.traffic-light-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.traffic-light-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.traffic-light-green {
  background: rgba(45, 138, 86, 0.1);
}
.traffic-light-green .traffic-light-dot {
  background: #2d8a56;
  box-shadow: 0 0 6px rgba(45, 138, 86, 0.4);
}
.traffic-light-green .traffic-light-label {
  color: #166534;
}

.traffic-light-yellow {
  background: rgba(181, 71, 8, 0.08);
}
.traffic-light-yellow .traffic-light-dot {
  background: #d97706;
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.4);
}
.traffic-light-yellow .traffic-light-label {
  color: #92400e;
}

.traffic-light-red {
  background: rgba(220, 38, 38, 0.08);
}
.traffic-light-red .traffic-light-dot {
  background: #dc2626;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
}
.traffic-light-red .traffic-light-label {
  color: #991b1b;
}

/* ── Task 2: Copy button in AI briefing ──────────────────────── */
.release-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.release-copy-button {
  font-size: 0.78rem;
  padding: 3px 10px;
  white-space: nowrap;
}

.release-ai-briefing-section {
  margin-top: 16px;
}

/* ── Task 3: Risk-colored work item rows ─────────────────────── */
.release-risk-high {
  background: rgba(253, 231, 229, 0.55);
  border-color: rgba(140, 29, 24, 0.15);
}

.release-risk-medium {
  background: rgba(255, 241, 222, 0.55);
  border-color: rgba(154, 90, 0, 0.12);
}

.release-risk-low {
  background: rgba(226, 239, 255, 0.35);
}

/* ── Task 4: Approve form ────────────────────────────────────── */
.release-approve-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(248, 247, 241, 0.7);
  max-width: 480px;
}

.release-approve-field {
  display: grid;
  gap: 4px;
}

.release-approve-field span {
  font-size: 0.86rem;
  color: var(--muted);
}

.release-approve-field input,
.release-approve-field textarea {
  padding: 6px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
}

.release-approve-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.my-overview-inline-panel {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(30, 56, 84, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.my-overview-attention-panel {
  order: -1;
  margin-top: 0;
  border-color: rgba(191, 106, 74, 0.24);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(31, 52, 66, 0.055);
}

.my-overview-attention-panel .compact-panel-header {
  align-items: flex-start;
}

.my-overview-attention-panel .section-kicker {
  color: #a65312;
}

.my-overview-attention-panel h3 {
  margin: 0;
  font-size: 1.24rem;
}

.my-overview-attention-panel .status.subtle-status {
  color: #4f3b1f;
  font-weight: 650;
}

.my-overview-attention-panel .secondary-button {
  border-color: rgba(191, 106, 74, 0.26);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.my-overview-attention-panel .secondary-button:hover {
  background: rgba(250, 252, 252, 0.98);
}

@media (max-width: 720px) {
  .my-overview-workbench .my-overview-attention-panel {
    order: 3;
    margin-top: 0;
  }
}

.section-kicker {
  margin: 0 0 0.35rem;
  color: #587181;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unknown-parent-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.unknown-parent-summary-card {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(30, 56, 84, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(31, 52, 66, 0.04);
}

.unknown-parent-summary-card .label,
.unknown-parent-fact .label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.unknown-parent-summary-card .value {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.unknown-parent-summary-card .subvalue {
  display: block;
  margin-top: 0.35rem;
  color: #4f6676;
  font-size: 0.86rem;
  line-height: 1.4;
}

.unknown-parent-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 22.5rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.unknown-parent-projects,
.unknown-parent-details {
  min-width: 0;
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(30, 56, 84, 0.1);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.62);
}

.unknown-parent-section-heading h3,
.unknown-parent-details-header h3 {
  margin: 0 0 0.25rem;
}

.unknown-parent-section-heading p,
.unknown-parent-details-header p:not(.section-kicker) {
  margin: 0;
}

.unknown-parent-guidance {
  padding: 0.75rem 0.9rem;
  border: 1px dashed rgba(30, 56, 84, 0.14);
  border-radius: 0.95rem;
  background: rgba(247, 250, 251, 0.82);
}

.unknown-parent-guidance strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.unknown-parent-guidance p {
  margin: 0;
  color: #4f6676;
  line-height: 1.45;
  font-size: 0.95rem;
}

.unknown-parent-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.unknown-parent-fact {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 0.95rem;
  background: rgba(248, 250, 251, 0.72);
}

.unknown-parent-fact strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
}

.unknown-parent-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-bottom: 0.8rem;
  align-items: end;
}

.unknown-parent-toolbar label,
.unknown-parent-row-grid label {
  display: grid;
  gap: 0.4rem;
}

.unknown-parent-toolbar > label:first-child {
  grid-column: 1 / -1;
}

.unknown-parent-toolbar input,
.unknown-parent-toolbar select,
.unknown-parent-row-grid select {
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(30, 56, 84, 0.16);
  border-radius: 0.9rem;
  background: #fff;
  font: inherit;
}

.unknown-parent-project-card {
  gap: 0.75rem;
  padding: 16px 18px;
  border-color: rgba(23, 48, 66, 0.09);
}

.unknown-parent-project-card-top,
.unknown-parent-project-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.unknown-parent-project-card-caption {
  color: #587181;
  font-size: 0.84rem;
  line-height: 1.45;
}

.unknown-parent-project-card strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.unknown-parent-project-selected {
  border-color: rgba(30, 56, 84, 0.28);
  box-shadow: 0 8px 22px rgba(31, 52, 66, 0.06);
  background: rgba(255, 255, 255, 0.9);
}

.unknown-parent-task-card {
  gap: 1rem;
  padding: 16px 18px;
  border-color: rgba(23, 48, 66, 0.09);
  box-shadow: 0 8px 24px rgba(23, 48, 66, 0.04);
  min-width: 0;
}

.unknown-parent-task-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  align-items: start;
  flex-wrap: wrap;
}

.unknown-parent-task-card-headline {
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}

.unknown-parent-task-card-headline strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.unknown-parent-task-card-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
}

.unknown-parent-task-card-meta {
  gap: 0.5rem 0.75rem;
  font-size: 0.86rem;
}

.unknown-parent-task-status {
  background: rgba(23, 48, 66, 0.07);
  color: #516674;
}

.unknown-parent-task-planner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 8px;
  background: var(--surface-quiet);
  min-width: 0;
}

.unknown-parent-task-planner label {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.unknown-parent-task-planner select {
  min-height: 2.9rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(30, 56, 84, 0.16);
  border-radius: 0.9rem;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}

.unknown-parent-task-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(23, 48, 66, 0.08);
}

.unknown-parent-task-helper {
  margin: 0;
  color: #4f6676;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 38rem;
}

.unknown-parent-secondary-link {
  color: #4f6676;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.unknown-parent-secondary-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.unknown-parent-empty-state {
  padding: 1rem 1.05rem;
  border: 1px dashed rgba(30, 56, 84, 0.18);
  border-radius: 1rem;
  background: rgba(248, 250, 251, 0.75);
}

.unknown-parent-empty-state strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.unknown-parent-empty-state p {
  margin: 0;
  color: #4f6676;
  line-height: 1.5;
}

.unknown-parent-row-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(18rem, 1fr) auto;
  gap: 0.9rem;
  align-items: end;
  margin-top: 0.9rem;
}

.unknown-parent-actions {
  display: flex;
  justify-content: flex-end;
}

.compact-panel-header {
  margin-bottom: 1rem;
}

@media (max-width: 960px) {
  .unknown-parent-summary-grid,
  .unknown-parent-facts {
    grid-template-columns: 1fr;
  }

  .unknown-parent-layout {
    grid-template-columns: 1fr;
  }

  .unknown-parent-toolbar {
    grid-template-columns: 1fr;
  }

  .unknown-parent-task-card-header,
  .unknown-parent-task-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .unknown-parent-task-card-links {
    justify-content: flex-start;
  }

  .unknown-parent-task-planner {
    grid-template-columns: 1fr;
  }

  .unknown-parent-row-grid {
    grid-template-columns: 1fr;
  }

  .unknown-parent-actions {
    justify-content: flex-start;
  }
}

/* Customer details need a compact status strip so the editable sections stay in view. */
#customerDetailPanel .detail-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  top: 64px;
  padding-bottom: 8px;
}

#customerDetailPanel .detail-card {
  min-height: 64px;
  padding: 8px 10px;
  border-radius: 10px;
}

#customerDetailPanel .detail-card .label {
  margin-bottom: 3px;
  font-size: 0.74rem;
}

#customerDetailPanel .detail-card .value {
  font-size: 1rem;
}

#customerDetailPanel .detail-card .subvalue {
  margin-top: 1px;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  #customerDetailPanel .detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: auto;
    position: static;
  }

  #customerDetailPanel .detail-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  #customerDetailPanel .detail-summary {
    grid-template-columns: 1fr;
  }

  #customerDetailPanel .detail-card:last-child {
    grid-column: auto;
  }

  .customer-integration-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-integration-summary-values {
    justify-content: flex-start;
    width: 100%;
  }

  .customer-integration-status-pill {
    flex: 1 1 auto;
  }

  .customer-integration-provider-summary {
    align-items: flex-start;
  }

  .customer-integration-provider-status {
    margin-left: auto;
  }

  .customer-integration-provider-body {
    grid-template-columns: 1fr;
  }
}


/* TimeLog task picker: a compact hierarchy that only exposes leaf tasks for registration. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.time-log-task-suggestion-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(18, 38, 54, 0.32);
}

.time-log-task-suggestion-overlay .time-log-task-suggestion-picker {
  width: min(100%, 760px);
  max-height: min(760px, calc(100vh - 48px));
  margin: 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid rgba(23, 48, 66, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 64px rgba(23, 48, 66, 0.25);
}

.time-log-task-suggestion-overlay .time-log-task-suggestion-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.time-log-task-suggestion-overlay .time-log-task-suggestion-head .text-link {
  flex: 0 0 auto;
  margin-left: auto;
}

.time-log-task-suggestion-overlay .time-log-task-suggestion-head strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.time-log-task-suggestion-overlay .time-log-task-suggestion-head span {
  display: block;
  margin-top: 3px;
}

.time-log-task-suggestion-overlay .time-log-task-suggestion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.time-log-task-search {
  flex: 1 1 12rem;
}

.time-log-task-search input {
  width: 100%;
  min-height: 2.45rem;
  box-sizing: border-box;
  padding: 0.55rem 0.72rem;
  border: 1px solid rgba(23, 48, 66, 0.18);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.time-log-task-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.time-log-task-suggestion-overlay .time-log-task-suggestion-list {
  gap: 8px;
}

.time-log-task-project,
.time-log-task-tree-group {
  overflow: hidden;
  border: 1px solid rgba(23, 48, 66, 0.11);
  border-radius: 10px;
  background: #fff;
}

.time-log-task-project-toggle,
.time-log-task-group-toggle {
  display: flex;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: rgba(23, 48, 66, 0.035);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.time-log-task-project-toggle {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.time-log-task-project-toggle small,
.time-log-task-group-toggle small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.time-log-task-group-toggle {
  align-items: flex-start;
}

.time-log-task-group-toggle > span {
  display: grid;
  gap: 3px;
}

.time-log-task-tree-children {
  display: grid;
  gap: 0;
  padding: 4px 0;
}

.time-log-task-tree-group {
  margin: 5px 8px;
  border-color: rgba(23, 48, 66, 0.09);
}

.time-log-task-tree-group .time-log-task-tree-children {
  padding-left: 12px;
}

.time-log-task-leaf {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid rgba(23, 48, 66, 0.07);
}

.time-log-task-leaf > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.time-log-task-leaf strong {
  color: var(--ink);
  line-height: 1.35;
}

.time-log-task-leaf span,
.time-log-task-leaf small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.time-log-task-leaf .quick-register-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .time-log-task-suggestion-overlay {
    place-items: end stretch;
    padding: 0;
  }

  .time-log-task-suggestion-overlay .time-log-task-suggestion-picker {
    width: 100%;
    max-height: 88vh;
    padding: 16px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .time-log-task-suggestion-overlay .time-log-task-suggestion-controls {
    align-items: stretch;
  }

  .time-log-task-suggestion-overlay .compact-button {
    flex: 1 1 0;
  }

  .time-log-task-search {
    flex-basis: 100%;
  }

  .time-log-task-project-toggle {
    align-items: flex-start;
    flex-direction: column;
  }

  .time-log-task-leaf {
    align-items: flex-start;
    flex-direction: column;
  }

  .time-log-task-leaf .quick-register-button {
    width: 100%;
  }
}


.local-qa-notice {
  margin: 10px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--sage);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
