:root {
  --page: #f4f6f2;
  --surface: #ffffff;
  --surface-soft: #f9faf8;
  --ink: #28322e;
  --muted: #606d66;
  --line: #d7ded6;
  --line-strong: #c4d0c6;
  --green: #2e765f;
  --green-dark: #205d4a;
  --green-soft: #eaf4f0;
  --blue: #315f91;
  --blue-soft: #eaf2fb;
  --amber: #a45d1d;
  --amber-soft: #fff2e4;
  --shadow: 0 16px 44px rgba(35, 49, 41, 0.07);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  background: var(--page);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.report-header {
  align-items: center;
  background: rgba(244, 246, 242, 0.92);
  border-bottom: 1px solid rgba(215, 222, 214, 0.86);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 5px max(24px, calc((100vw - 1280px) / 2));
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  z-index: 20;
}

.report-brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 21px;
  gap: 10px;
  text-decoration: none;
}

.report-brand img {
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.report-brand span {
  align-items: baseline;
  display: flex;
  gap: 4px;
}

.report-brand b {
  color: #27313d;
  font-weight: 900;
}

.report-brand strong {
  color: #2f8030;
  font-weight: 900;
}

.report-header-actions {
  align-items: center;
  display: flex;
  gap: 9px;
}

.report-share-action {
  align-items: center;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  text-decoration: none;
}

.report-share-action:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.report-share-action svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 17px;
}

.shared-badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
  text-decoration: none;
}

.report-shell {
  margin: 0 auto;
  max-width: 1328px;
  padding: 18px 24px 48px;
}

.report-intro {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.report-intro h1,
.state-card h1 {
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.report-intro h1 {
  font-size: clamp(30px, 3.5vw, 42px);
  max-width: 780px;
}

.report-range {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0;
}

.updated-block {
  align-items: flex-end;
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  text-align: right;
}

.updated-block span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.updated-block strong {
  font-size: 13px;
}

.summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}

.project-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 9px 28px rgba(35, 49, 41, 0.035);
  margin-bottom: 10px;
  padding: 10px 13px 12px;
}

.project-summary > header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.project-summary .eyebrow {
  margin-bottom: 4px;
}

.project-summary h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0;
}

.project-summary > header > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.project-summary-visual {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 140px minmax(0, 1fr);
}

.project-donut-panel {
  align-items: center;
  display: grid;
  justify-items: center;
}

.project-donut-wrap {
  height: 140px;
  position: relative;
  width: 140px;
}

.project-donut-wrap svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.project-donut-track,
.project-donut-segment {
  fill: none;
  stroke-width: 27;
  transform: rotate(-90deg);
  transform-origin: 90px 90px;
}

.project-donut-track {
  stroke: #e3ebe6;
}

.project-donut-segment {
  cursor: default;
  transition: opacity 150ms ease, stroke-width 150ms ease, filter 150ms ease;
}

.project-donut-segment.is-active,
.project-donut-segment:focus-visible {
  filter: drop-shadow(0 3px 4px rgba(32, 93, 74, 0.22));
  stroke-width: 32;
}

.project-donut-segment.is-dimmed {
  opacity: 0.28;
}

.project-donut-center,
.project-chart-tooltip {
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease;
  width: 102px;
}

.project-donut-center {
  display: grid;
  gap: 1px;
  pointer-events: none;
}

.project-donut-center strong {
  font-size: 25px;
  letter-spacing: -0.03em;
}

.project-donut-wrap.has-active-project .project-donut-center {
  opacity: 0;
}

.project-chart-tooltip {
  display: grid;
  gap: 1px;
  pointer-events: none;
}

.project-chart-tooltip strong {
  font-size: 10px;
  line-height: 1.2;
}

.project-chart-tooltip span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
}

.project-chart-tooltip small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.project-summary-items {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-legend-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 7px 9px;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.project-legend-item.is-active,
.project-legend-item:focus-visible {
  background: #f2f8f5;
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(32, 93, 74, 0.1);
  outline: none;
}

.project-legend-item > div:first-child {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.project-legend-identity {
  align-items: center;
  display: flex;
  gap: 7px;
  min-width: 0;
}

.project-legend-swatch {
  border-radius: 50%;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.project-legend-item strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-legend-item > div:first-child > span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.project-legend-item p,
.project-summary-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}

.project-summary-empty {
  grid-column: 1 / -1;
  padding: 18px 0;
}

.project-effort-track {
  background: #e1ebe6;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.project-effort-track span {
  border-radius: inherit;
  display: block;
  height: 100%;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 9px 28px rgba(35, 49, 41, 0.035);
  display: grid;
  gap: 4px;
  min-height: 90px;
  padding: 12px 14px;
}

.summary-card.accent {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.summary-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-card.accent > span,
.summary-card.accent small {
  color: rgba(255, 255, 255, 0.78);
}

.summary-card strong {
  align-self: center;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.summary-card small {
  color: var(--muted);
  font-size: 11px;
}

.toolbar {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-areas: "date filters";
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 12px;
  padding: 8px 10px;
}

.date-controls,
.view-switch {
  align-items: center;
  display: flex;
  gap: 8px;
}

.date-controls {
  grid-area: date;
}

.filter-controls {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-area: filters;
  grid-template-columns: minmax(135px, 0.8fr) minmax(135px, 0.8fr) minmax(150px, 0.9fr) minmax(220px, 1.5fr) auto;
  width: 100%;
}

.date-controls strong {
  font-size: 14px;
  margin-left: 4px;
  min-width: 134px;
}

.icon-control,
.today-control,
.view-switch button {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  box-sizing: border-box;
  height: 38px;
}

.icon-control {
  font-size: 21px;
  line-height: 1;
  width: 38px;
}

.today-control {
  font-size: 12px;
  padding: 7px 11px;
}

.icon-control:hover,
.today-control:hover,
.view-switch button:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.filter-controls label {
  display: grid;
  gap: 3px;
}

.filter-controls label > span:not(.visually-hidden) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-controls input,
.filter-controls select {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-sizing: border-box;
  height: 38px;
  padding: 7px 9px;
  width: 100%;
}

.filter-controls select {
  max-width: none;
}

.search-field input {
  min-width: 0;
}

.view-switch {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-sizing: border-box;
  gap: 2px;
  height: 38px;
  padding: 2px;
}

.view-switch button {
  border: 0;
  font-size: 12px;
  height: 32px;
  padding: 7px 10px;
}

.view-switch button.is-active {
  background: var(--green);
  color: white;
}

.header-export-button,
.export-dialog-confirm {
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  height: 38px;
  padding: 7px 12px;
  white-space: nowrap;
}

.header-export-button:hover,
.export-dialog-confirm:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.header-export-button {
  height: 36px;
}

.export-dialog {
  background: transparent;
  border: 0;
  max-width: none;
  padding: 0;
  width: min(460px, calc(100vw - 32px));
}

.export-dialog::backdrop {
  background: rgba(22, 31, 26, 0.42);
  backdrop-filter: blur(3px);
}

.export-dialog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 24px 70px rgba(25, 43, 34, 0.24);
  color: var(--ink);
  display: grid;
  gap: 17px;
  padding: 20px;
}

.export-dialog-card > header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.export-dialog-card h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0;
}

.export-dialog-card .eyebrow {
  margin-bottom: 5px;
}

.export-dialog-close {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 34px;
}

.export-template-options {
  display: grid;
  gap: 9px;
}

.export-template-option {
  align-items: start;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px 13px;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.export-template-option:has(input:checked) {
  background: var(--green-soft);
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(46, 118, 95, 0.1);
}

.export-template-option:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.export-template-option input {
  accent-color: var(--green);
  height: 17px;
  margin: 2px 0 0;
  width: 17px;
}

.export-template-option span {
  display: grid;
  gap: 3px;
}

.export-template-option strong {
  font-size: 14px;
}

.export-template-option small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.export-dialog-card > footer {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}

.export-dialog-cancel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  padding: 7px 13px;
}

.print-report {
  display: none;
}

.filter-error {
  background: #fff4f4;
  border: 1px solid #eccbcb;
  border-radius: 8px;
  color: #a72f35;
  font-size: 13px;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.calendar-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.calendar-layout.has-day-detail {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.calendar-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-x: auto;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
}

.weekday-row {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.weekday-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  padding: 10px 12px;
  text-transform: uppercase;
}

.calendar-day {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 150px;
  min-width: 0;
  padding: 9px;
}

.calendar-day:not(.is-outside) {
  cursor: pointer;
}

.calendar-day:not(.is-outside):hover {
  background: #f7fbf9;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day.is-outside {
  background: #fafbf9;
}

.calendar-day.is-outside .day-number,
.calendar-day.is-outside .calendar-item {
  opacity: 0.54;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--green);
}

.calendar-day.is-selected {
  background: #f1f8f5;
  box-shadow: inset 0 0 0 3px var(--green);
  position: relative;
  z-index: 1;
}

.day-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.day-number {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.calendar-day.is-today .day-number {
  background: var(--green);
  border-radius: 50%;
  color: white;
}

.day-total {
  background: var(--green-soft);
  border: 1px solid #bcd9ce;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(32, 93, 74, 0.09);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 5px 7px;
  white-space: nowrap;
}

.calendar-day.is-selected .day-total {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.calendar-items {
  display: grid;
  gap: 6px;
}

.calendar-item {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
}

.calendar-item.meeting {
  background: var(--amber-soft);
  border-left-color: var(--amber);
}

.calendar-item.is-done {
  background: #f5f8f6;
  box-shadow: inset 0 0 0 1px #c8dcd3;
}

.calendar-item-title {
  align-items: start;
  display: flex;
  gap: 5px;
  justify-content: space-between;
  min-width: 0;
}

.calendar-item strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.completion-mark {
  align-items: center;
  background: var(--green-dark);
  border-radius: 50%;
  color: #fff !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px !important;
  font-weight: 900 !important;
  height: 18px;
  justify-content: center;
  line-height: 1 !important;
  width: 18px;
}

.calendar-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.calendar-more {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
  margin: 2px 0 0;
}

.day-detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  position: sticky;
  top: 84px;
}

.day-detail-panel:focus {
  outline: none;
}

.day-detail-header {
  align-items: start;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.day-detail-header .eyebrow {
  margin-bottom: 5px;
}

.day-detail-header h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.day-detail-close {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.day-detail-close:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.day-detail-summary {
  align-items: center;
  background: var(--green-soft);
  border-bottom: 1px solid #cfe2da;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 16px;
}

.day-detail-summary div {
  display: grid;
  gap: 2px;
}

.day-detail-summary span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.day-detail-summary strong {
  color: var(--green-dark);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.day-detail-summary p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.day-detail-items .list-item {
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 15px 16px;
}

.day-detail-items .list-kind {
  justify-self: start;
}

.day-detail-items .list-effort {
  grid-column: 1;
}

.day-detail-empty {
  color: var(--muted);
  display: grid;
  gap: 5px;
  padding: 28px 16px;
  text-align: center;
}

.day-detail-empty strong {
  color: var(--ink);
}

.day-detail-empty p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.day-detail-backdrop {
  display: none;
}

.list-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list-day + .list-day {
  border-top: 1px solid var(--line);
}

.list-day-header {
  align-items: center;
  background: var(--surface-soft);
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
}

.list-day-header h2 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}

.list-day-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.list-item {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 95px minmax(0, 1fr) auto;
  padding: 15px 16px;
}

.list-item + .list-item {
  border-top: 1px solid #ebefea;
}

.list-item.is-done {
  background: #fbfdfc;
  box-shadow: inset 3px 0 0 #bcd9ce;
}

.list-kind {
  align-items: center;
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-height: 25px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.list-kind.meeting {
  background: var(--amber-soft);
  color: var(--amber);
}

.list-item-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.list-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.list-title-row h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.done-pill {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #bcd9ce;
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  min-height: 20px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.list-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 5px 12px;
}

.work-note {
  background: var(--surface-soft);
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  padding: 7px 9px;
  white-space: pre-wrap;
}

.list-effort {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.empty-results,
.state-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 52px 24px;
  text-align: center;
}

.empty-results h2,
.empty-results p,
.state-card p {
  margin: 0;
}

.empty-results h2 {
  font-size: 20px;
}

.empty-results p,
.state-card p {
  color: var(--muted);
  margin-top: 8px;
}

.state-card {
  margin: 12vh auto 0;
  max-width: 560px;
}

.state-card h1 {
  font-size: 30px;
}

.state-icon {
  align-items: center;
  background: var(--amber-soft);
  border-radius: 50%;
  color: var(--amber);
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  margin-bottom: 16px;
  width: 48px;
}

.loading-mark {
  animation: report-spin 0.8s linear infinite;
  border: 3px solid var(--green-soft);
  border-radius: 50%;
  border-top-color: var(--green);
  display: inline-block;
  height: 38px;
  margin-bottom: 18px;
  width: 38px;
}

.home-link {
  background: var(--green);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  margin-top: 20px;
  min-height: 40px;
  padding: 10px 14px;
  text-decoration: none;
}

.report-footnote {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 20px;
  justify-content: flex-end;
  padding: 18px 4px 0;
}

.report-footnote p {
  margin: 0;
}

.report-footnote a {
  color: var(--green-dark);
  font-weight: 800;
}

.noscript-card {
  margin: 20px auto;
}

@keyframes report-spin {
  to { transform: rotate(360deg); }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
    color: #202124;
  }

  body > .report-header,
  .report-shell > :not(#report-content),
  #report-content > :not(#print-report) {
    display: none !important;
  }

  .report-shell {
    margin: 0;
    max-width: none;
    padding: 0;
  }

  #print-report[hidden],
  #print-report {
    display: block !important;
  }

  .print-report {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
  }

  .print-report h1,
  .print-report h2,
  .print-report p {
    margin-top: 0;
  }

  .print-report h2 {
    color: #2e765f;
    font-size: 13px;
    margin: 14px 0 6px;
  }

  .print-report table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
  }

  .print-report thead {
    display: table-header-group;
  }

  .print-report tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-report th,
  .print-report td {
    border: 1px solid #c4ccd1;
    overflow-wrap: anywhere;
    padding: 5px 6px;
    text-align: left;
    vertical-align: top;
  }

  .print-report-logo {
    display: block;
    max-height: 55px;
    max-width: 160px;
    object-fit: contain;
  }

  .print-default-header {
    align-items: flex-start;
    border-bottom: 2px solid #2e765f;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 9px;
  }

  .print-default-identity {
    align-items: center;
    display: flex;
    gap: 12px;
  }

  .print-default-identity h1 {
    font-size: 22px;
    margin-bottom: 3px;
  }

  .print-default-identity p {
    color: #5f6963;
    margin-bottom: 0;
  }

  .print-default-meta {
    color: #5f6963;
    display: grid;
    gap: 3px;
    text-align: right;
  }

  .template-default th {
    background: #eaf4f0;
    color: #344138;
  }

  .print-summary-table {
    max-width: 620px;
  }

  .print-items-table th:nth-child(1) { width: 90px; }
  .print-items-table th:nth-child(2) { width: 64px; }
  .print-items-table th:nth-child(3) { width: 34%; }
  .print-items-table th:nth-child(4) { width: 17%; }
  .print-items-table th:nth-child(5) { width: 90px; }
  .print-items-table th:nth-child(6) { width: 65px; }
  .print-items-table th:nth-child(7) { width: 82px; }

  .print-labc-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    min-height: 63px;
  }

  .print-labc-header > div:last-child {
    text-align: right;
  }

  .print-labc-header h1 {
    color: #315f91;
    font-size: 25px;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }

  .print-labc-header strong {
    font-size: 12px;
  }

  .print-labc-identity {
    border-bottom: 1px solid #86909a;
    border-top: 1px solid #86909a;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 10px 0 16px;
  }

  .print-labc-identity > div {
    min-height: 42px;
    padding: 7px 10px;
  }

  .print-labc-identity > div + div {
    border-left: 1px solid #c0c6cc;
  }

  .print-identity-label {
    color: #666f78;
    display: block;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .template-labc h2 {
    color: #315f91;
    font-size: 12px;
  }

  .template-labc th {
    background: #315f91;
    color: #ffffff;
  }

  .template-labc tbody tr:nth-child(even) {
    background: #f4f6f8;
  }

  .print-labc-summary {
    max-width: 430px;
  }

  .print-labc-summary th:last-child,
  .print-labc-summary td:last-child,
  .print-labc-details th:nth-child(3),
  .print-labc-details td:nth-child(3) {
    text-align: right;
    width: 62px;
  }

  .print-labc-summary tbody tr:last-child {
    background: #e8edf3;
    font-weight: 700;
  }

  .print-labc-details th:nth-child(1) { width: 96px; }
  .print-labc-details th:nth-child(4) { width: 132px; }

  .print-labc-total {
    border-top: 2px solid #315f91;
    display: flex;
    font-size: 11px;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 7px;
  }

  .print-labc-total span {
    margin-left: 28px;
    min-width: 60px;
    text-align: right;
  }
}

@media (max-width: 1080px) {
  .project-summary-visual {
    gap: 10px;
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .project-summary-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar {
    align-items: stretch;
    grid-template-areas:
      "date"
      "filters";
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-field {
    grid-column: span 2;
  }

  .search-field input {
    min-width: 0;
    width: 100%;
  }

}

@media (max-width: 900px) {
  .calendar-layout.has-day-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-detail-backdrop:not([hidden]) {
    background: rgba(25, 34, 29, 0.32);
    border: 0;
    display: block;
    inset: 0;
    padding: 0;
    position: fixed;
    z-index: 29;
  }

  .day-detail-panel:not([hidden]) {
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    bottom: 0;
    left: 0;
    max-height: 72vh;
    position: fixed;
    right: 0;
    top: auto;
    z-index: 30;
  }

  .day-detail-header::before {
    background: var(--line-strong);
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    top: 7px;
    transform: translateX(-50%);
    width: 46px;
  }

  .day-detail-header {
    padding-top: 20px;
  }
}

@media (max-width: 760px) {
  .report-header {
    min-height: 60px;
    padding: 6px 16px;
  }

  .report-brand {
    font-size: 18px;
  }

  .report-brand img {
    height: 42px;
    width: 42px;
  }

  .report-shell {
    padding: 18px 14px 42px;
  }

  .report-intro {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .updated-block {
    align-items: start;
    text-align: left;
  }

  .project-summary-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-summary-visual {
    gap: 8px;
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .summary-card {
    min-height: 88px;
    padding: 12px;
  }

  .summary-card strong {
    font-size: 25px;
  }

  .date-controls {
    flex-wrap: wrap;
  }

  .filter-controls label:not(.search-field) input,
  .filter-controls label:not(.search-field) select {
    max-width: none;
    width: 100%;
  }

  .filter-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .view-switch button {
    flex: 1;
  }

  .search-field {
    grid-column: auto;
  }

  .list-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .list-effort {
    grid-column: 2;
  }

  .report-footnote {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .report-header {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .report-header-actions {
    gap: 6px;
    justify-content: flex-end;
    width: 100%;
  }

  .header-export-button {
    margin-right: auto;
  }

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

  .project-summary-visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-summary-items {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .weekday-row,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 0;
  }

  .weekday-row span {
    font-size: 9px;
    padding: 8px 2px;
    text-align: center;
  }

  .calendar-day {
    min-height: 72px;
    padding: 4px 2px;
  }

  .day-heading {
    display: grid;
    gap: 3px;
    justify-items: center;
    margin-bottom: 0;
  }

  .day-number {
    height: 23px;
    width: 23px;
  }

  .day-total {
    box-shadow: none;
    font-size: 9px;
    max-width: 100%;
    padding: 3px 4px;
  }

  .calendar-items {
    display: none;
  }
}

@media (max-width: 440px) {
  .shared-badge {
    font-size: 10px;
    padding: 6px 8px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .project-summary-items {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 104px;
  }

  .date-controls strong {
    flex: 1 1 100%;
    margin: 4px 0 0;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .list-kind {
    justify-self: start;
  }

  .list-effort {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-mark {
    animation-duration: 2s;
  }
}
