:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4f;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #3d9cf5;
  --accent-dim: #2563a8;
  --running: #34d399;
  --danger: #f87171;
  --column-width: 188px;
  --import-log-col-width: 118px;
  --import-log-gap: 0.4rem;
  --import-logs-panel-width: calc(
    4 * var(--import-log-col-width) + 3 * var(--import-log-gap)
  );
  --font: "IBM Plex Sans", system-ui, sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.boot-msg {
  color: var(--muted);
  padding: 2rem;
}

.boot-error {
  color: var(--danger);
  padding: 2rem;
  white-space: pre-wrap;
  font-size: 0.85rem;
}

/* Login */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}

.login-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.login-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-card label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.login-card input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.login-card button {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.login-card button:hover {
  background: var(--accent-dim);
}

.login-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Header */
.board-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.board-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 1.5rem;
}

.nav-tab {
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(61, 156, 245, 0.08);
}

.nav-tab.active {
  color: var(--text);
  background: var(--bg);
  border-color: var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.view-panel {
  display: block;
}

#view-import {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.import-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, min(var(--import-logs-panel-width), 54vw));
  align-items: stretch;
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  gap: 0.5rem;
  padding: 0.6rem 0 0.6rem 1rem;
  overflow: hidden;
  box-sizing: border-box;
}

.import-input-area {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
}

.import-input-stack {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}

.import-textarea {
  flex: 1 1 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 4.5rem;
  height: 0;
  resize: none;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  overflow-y: auto;
}

.import-instructions-label {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.import-instructions {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 3.25rem;
  min-height: 2.75rem;
  max-height: 5rem;
  resize: vertical;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}

.import-textarea:focus,
.import-instructions:focus {
  outline: none;
  border-color: var(--accent);
}

.import-textarea::placeholder,
.import-instructions::placeholder {
  color: var(--muted);
}

.import-error {
  color: var(--danger);
  font-size: 0.85rem;
  line-height: 1.4;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
  align-items: center;
}

.import-btn,
.import-action-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.import-btn:disabled,
.import-action-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Epic cards (Import) */
.epic-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #7c3aed;
  border-radius: 5px;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.28rem;
  background: #4c1d95;
  color: #f5f3ff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.epic-card-header,
.import-task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
}

.log-card-remove {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.log-card-remove:hover {
  background: var(--danger);
  color: #fff;
}

.epic-card-header .epic-title,
.import-task-card-header .import-task-title {
  flex: 1;
  min-width: 0;
}

.epic-title {
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.25;
}

.epic-card-body {
  font-size: 0.68rem;
  color: rgba(237, 233, 254, 0.9);
}

.epic-duration {
  font-weight: 500;
}

.import-editable {
  cursor: pointer;
}

.import-editable:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.import-inline-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  padding: 0.1rem 0.25rem;
}

.import-inline-input-days {
  width: 4.5rem;
}

.epic-badge {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: #4c1d95;
  color: #ede9fe;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-badge {
  font-size: 0.62rem;
  font-weight: 500;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.95);
  max-width: 6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-logs {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--import-log-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  justify-self: end;
  align-self: stretch;
  padding-right: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.import-log-column {
  flex: 0 0 var(--import-log-col-width);
  width: var(--import-log-col-width);
  min-width: var(--import-log-col-width);
  max-width: var(--import-log-col-width);
  height: 100%;
  max-height: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.import-log-header {
  padding: 0.4rem 0.35rem;
  font-weight: 600;
  font-size: 0.65rem;
  line-height: 1.2;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.2rem;
  flex-shrink: 0;
}

.import-log-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.import-log-count {
  flex: 0 0 auto;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
}

.import-log-body {
  padding: 0.35rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.import-task-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #2563eb;
  border-radius: 5px;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.28rem;
  background: #1e3a5f;
  color: #eff6ff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.import-task-title {
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.25;
}

.import-task-card-body {
  font-size: 0.68rem;
  color: rgba(219, 234, 254, 0.9);
}

.import-task-duration {
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.import-task-epic-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.import-task-epic-label {
  font-size: 0.62rem;
  color: rgba(219, 234, 254, 0.75);
  flex-shrink: 0;
}

.import-task-epic-select {
  flex: 1;
  min-width: 0;
  font-size: 0.65rem;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #eff6ff;
}

.user-badge {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dim);
}

.btn-sm {
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  min-width: 1.4rem;
}

/* Board */
.board-toolbar {
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.board-toolbar .toolbar-title {
  flex: 1;
  min-width: 140px;
  max-width: 280px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.toolbar-select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  min-width: 110px;
}

.board {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
  overflow-x: auto;
  align-items: flex-start;
}

#view-plan {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-board {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.plan-epic-column {
  flex: 0 0 var(--column-width);
  max-height: calc(100vh - 180px);
}

.plan-epic-column.plan-unassigned-column,
#plan-col-unassigned {
  border-color: rgba(248, 113, 113, 0.45);
}

#plan-col-unassigned .column-header {
  color: #fca5a5;
}

.plan-task-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.4rem 0.45rem;
  margin-bottom: 0.3rem;
  background: var(--bg);
  cursor: grab;
}

.plan-task-card.dragging {
  opacity: 0.55;
}

.plan-task-title {
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.3;
  word-break: break-word;
}

.plan-task-days {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  color: var(--muted);
}

.column {
  flex: 0 0 var(--column-width);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 140px);
}

.column-header {
  padding: 0.45rem 0.55rem;
  font-weight: 600;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-count {
  background: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

.column-body {
  padding: 0.35rem;
  flex: 1;
  overflow-y: auto;
  min-height: 80px;
}

.column-body.drag-over {
  background: rgba(61, 156, 245, 0.08);
  outline: 2px dashed var(--accent);
  outline-offset: -4px;
  border-radius: 0 0 10px 10px;
}

.column-trash {
  flex: 0 0 200px;
  border-color: rgba(148, 163, 184, 0.35);
}

.column-trash-collapsed {
  flex: 0 0 118px;
  max-height: none;
}

.column-trash-header {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.column-trash-actions {
  display: flex;
  gap: 0.2rem;
  width: 100%;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.btn-trash-toggle,
.btn-trash-empty {
  padding: 0.12rem 0.35rem;
  font-size: 0.62rem;
  line-height: 1.2;
}

.btn-trash-empty {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.45);
}

.btn-trash-empty:hover {
  background: rgba(248, 113, 113, 0.12);
}

.column-trash-collapsed-hint {
  padding: 0.5rem 0.4rem;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

/* Cards */
.task-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 0.3rem 0.4rem;
  margin-bottom: 0.28rem;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.task-card:active {
  cursor: grabbing;
}

.task-card.dragging {
  opacity: 0.5;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.15rem;
}

.task-card-collapsed .task-card-header {
  margin-bottom: 0;
}

.task-card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.btn-collapse {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 0.55rem;
  line-height: 1.2;
}

.btn-collapse:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.15);
}

.task-card-collapsed .task-card-body {
  display: none;
}

.task-title {
  font-weight: 600;
  font-size: 0.72rem;
  flex: 1;
  line-height: 1.2;
  color: #fff;
}

.btn-delete {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.btn-delete:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.task-status-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  margin-top: 0.15rem;
}

.project-badge {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: #fff;
  flex-shrink: 0;
}

.task-owner-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.1rem;
}

.assignee-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-owner-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.task-assignee-select {
  flex: 1;
  min-width: 0;
  padding: 0.1rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.task-times {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.task-times-title {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.25rem;
}

.time-by-user-line {
  display: block;
  font-size: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.5;
}

.time-by-user-line.running {
  animation: pulse 1.5s ease-in-out infinite;
}

.timer-badge {
  font-size: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.timer-badge.running {
  color: #bbf7d0;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.65; }
}

.task-status-row .btn-sm {
  flex-shrink: 0;
  margin-left: auto;
}

/* Zeitauswertung */
.time-report {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.report-section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.report-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.report-person {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem 1rem;
}

.report-person-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.report-person-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.report-person .report-empty {
  margin: 0;
  font-size: 0.85rem;
}

.report-person .report-table {
  font-size: 0.82rem;
}

.report-week-box {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.report-week-heading {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-week-meter {
  margin-bottom: 0.65rem;
}

.report-week-meter-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.report-week-meter-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--person-color, var(--accent));
  transition: width 0.35s ease;
}

.report-week-meter-fill.week-behind {
  background: var(--danger);
  opacity: 0.85;
}

.report-week-meter-fill.running {
  animation: pulse 1.5s ease-in-out infinite;
}

.report-week-meter-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.report-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.report-week-cell-label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-week-cell-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
}

.report-week-pace-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.report-week-pace-fill {
  height: 100%;
  background: var(--running);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.report-week-status {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.report-week-status.status-ok {
  color: var(--running);
}

.report-week-status.status-miss,
.report-week-status.status-pending {
  color: #fbbf24;
}

.report-boomer {
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px dashed rgba(251, 191, 36, 0.35);
}

.report-boomer-inner {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.report-boomer-face {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.report-boomer-body {
  flex: 1;
  min-width: 0;
}

.report-boomer-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
  margin-bottom: 0.35rem;
}

.report-boomer-text {
  margin: 0;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(231, 236, 243, 0.92);
}

.report-boomer[data-boomer-mood="disaster"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.06);
}

.report-boomer[data-boomer-mood="hero"] .report-boomer-face,
.report-boomer[data-boomer-mood="ahead"] .report-boomer-face {
  border-color: rgba(52, 211, 153, 0.5);
}

.report-boomer[data-boomer-mood="friday_ok"] .report-boomer-face {
  border-color: rgba(96, 165, 250, 0.5);
}

.report-boomer-shuffle {
  margin-top: 0.55rem;
  width: 100%;
  font-size: 0.78rem;
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.report-boomer-shuffle:hover {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.report-boomer-face.report-boomer-wiggle {
  animation: boomer-wiggle 0.45s ease;
}

.report-boomer.report-boomer-flash {
  animation: boomer-flash 0.45s ease;
}

@keyframes boomer-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg) scale(1.03); }
  75% { transform: rotate(4deg) scale(1.03); }
}

@keyframes boomer-flash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.report-boomer-footer {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.report-chart {
  margin-bottom: 1rem;
}

.report-chart-title {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.report-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.report-stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-stat-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
}

.report-prod-meter {
  flex: 1;
  min-width: 100px;
  height: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  overflow: hidden;
  align-self: center;
}

.report-prod-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.report-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  min-height: 118px;
  padding: 0.25rem 0 0.35rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.report-bar-col {
  flex: 1;
  min-width: 0;
  max-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.report-bar-pct {
  font-size: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  line-height: 1;
}

.report-bar-track {
  position: relative;
  width: 100%;
  height: 96px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.report-bar-target-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 2;
  pointer-events: none;
}

.report-person .report-bar-fill {
  position: relative;
  width: 100%;
  z-index: 1;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.35s ease;
}

.report-person .report-bar-fill.bar-ok,
.report-person .report-bar-fill.bar-pending {
  background: var(--person-color);
}

.report-person .report-bar-fill.bar-pending {
  opacity: 0.85;
  animation: pulse 1.5s ease-in-out infinite;
}

.report-person .report-bar-fill.bar-miss {
  background: var(--danger);
  opacity: 0.8;
}

.report-bar-day {
  font-size: 0.62rem;
  color: var(--muted);
  white-space: nowrap;
}

.report-bar-value {
  font-size: 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  white-space: nowrap;
}

.report-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
}

.legend-swatch.legend-target {
  background: transparent;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  height: 6px;
  border-radius: 0;
}

.legend-swatch.bar-ok,
.legend-swatch.bar-pending {
  background: var(--accent);
}

.legend-swatch.bar-miss {
  background: var(--danger);
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.report-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.report-table th,
.report-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.report-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.report-row-running {
  background: rgba(52, 211, 153, 0.06);
}

.report-row-ok {
  background: rgba(52, 211, 153, 0.04);
}

.report-row-short {
  background: rgba(248, 113, 113, 0.04);
}

.report-user-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.report-day-duration,
.report-target {
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.report-day-duration.running {
  color: var(--running);
  animation: pulse 1.5s ease-in-out infinite;
}

.report-day-status {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.report-day-status.status-ok {
  color: var(--running);
}

.report-day-status.status-miss {
  color: var(--danger);
}

.report-day-status.status-pending {
  color: #fbbf24;
  font-style: italic;
}
