/* Selbstversorger - mobile-first */
:root {
  --primary: #3c6e2e;
  --primary-dark: #2a4f1f;
  --primary-light: #6b9c4d;
  --bg: #f3f6ef;
  --card: #ffffff;
  --text: #1f2a18;
  --text-light: #5d6b56;
  --border: #d8e0d0;
  --danger: #b54040;
  --warning: #d68b22;
  --success: #3c8a3c;
  --info: #2a6c9c;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.45;
  background: var(--bg); color: var(--text);
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
#app {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--primary); color: #fff;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.topbar-main {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
}
.topbar h1 { font-size: 1.1rem; margin: 0; font-weight: 600; flex: 1; }
.topbar select { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 6px 10px; border-radius: 6px; }
.topbar select option { color: #000; }

/* Topbar tabs */
.topbar .tabs {
  display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(255,255,255,.18);
  scrollbar-width: none;
}
.topbar .tabs::-webkit-scrollbar { display: none; }
.topbar .tabs a {
  flex: 1 0 auto; text-align: center; padding: 8px 14px;
  color: rgba(255,255,255,0.75); font-size: 0.8rem;
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.topbar .tabs a:hover { color: #fff; text-decoration: none; }
.topbar .tabs a.active {
  color: #fff;
  border-bottom-color: #fff;
  font-weight: 500;
}
.topbar .tabs a .ico { font-size: 1.1rem; line-height: 1; }

.content { flex: 1; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; width: 100%; }
.content.full-width { max-width: none; }

@media (max-width: 560px) {
  .topbar .tabs a { padding: 8px 10px; font-size: .72rem; }
  .topbar .tabs a .ico { font-size: 1rem; }
}

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  margin-bottom: 12px; box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 10px; font-size: 1.05rem; }
.card.compact { padding: 10px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: 0;
  padding: 11px 18px; border-radius: 8px; font-weight: 500;
  min-height: 44px; font-size: 0.95rem;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: var(--card); color: var(--primary-dark); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 12px; min-height: 32px; font-size: 0.85rem; }
.btn.full { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Forms */
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 4px; font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary-light); border-color: var(--primary-light); }
.field textarea { min-height: 90px; resize: vertical; }
.field-row { display: flex; gap: 8px; }
.field-row .field { flex: 1; }

/* Task / List Item */
.task {
  display: flex; gap: 12px; padding: 12px 14px;
  background: var(--card); border-radius: 10px; margin-bottom: 8px;
  box-shadow: var(--shadow); align-items: flex-start;
}
.task.done { opacity: .6; }
.task.done .titel { text-decoration: line-through; }
.task .check {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; padding: 0; font-size: .9rem;
}
.task.done .check { background: var(--primary); border-color: var(--primary); color: #fff; }
.task .body { flex: 1; min-width: 0; }
.task .titel { font-weight: 500; }
.task .meta { font-size: .78rem; color: var(--text-light); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.task .meta .pill { background: var(--bg); padding: 1px 8px; border-radius: 10px; }
.task .crop { font-size: 1.3rem; }

/* Pills / Badges */
.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .75rem; background: var(--bg); }
.pill.green { background: #d8efd0; color: var(--primary-dark); }
.pill.amber { background: #f7e2b8; color: #7c5113; }
.pill.red { background: #f5cccc; color: var(--danger); }
.pill.blue { background: #cde0ef; color: var(--info); }

/* Crop Picker */
.crop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px;
}
.crop-card {
  background: var(--card); border-radius: var(--radius); padding: 14px 8px;
  text-align: center; cursor: pointer; border: 2px solid transparent;
  transition: transform .05s, border-color .1s;
}
.crop-card:active { transform: scale(0.96); }
.crop-card.selected { border-color: var(--primary); background: #ecf3e6; }
.crop-card .ico { font-size: 2rem; }
.crop-card .name { font-size: .85rem; margin-top: 4px; font-weight: 500; }
.crop-card .meta { font-size: .7rem; color: var(--text-light); }

/* Kategorie-Header */
.section-title { font-weight: 600; color: var(--text-light); text-transform: uppercase; font-size: .75rem; margin: 16px 0 6px; letter-spacing: .04em; }

/* Empty State */
.empty {
  text-align: center; padding: 40px 20px; color: var(--text-light);
}
.empty .ico { font-size: 3rem; }
.empty p { margin: 12px 0; }

/* Toast */
#toast {
  position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.85); color: #fff;
  padding: 10px 18px; border-radius: 20px;
  font-size: .9rem; z-index: 100;
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,30,15,.55);
  z-index: 90; display: flex; align-items: flex-end; justify-content: center;
  animation: fade-in .15s;
}
.modal {
  background: var(--card); width: 100%; max-width: 720px;
  border-top-left-radius: 18px; border-top-right-radius: 18px;
  padding: 20px; max-height: 90vh; overflow-y: auto;
  animation: slide-up .2s;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.modal h2 { margin-top: 0; }
.modal .close { float: right; background: none; border: 0; font-size: 1.4rem; color: var(--text-light); padding: 0 8px; cursor: pointer; }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Login / Standalone */
.login-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; background: linear-gradient(160deg, #d6e6c4 0%, #f3f6ef 100%); }
.login-page .logo { font-size: 4rem; margin-bottom: 6px; }
.login-page h1 { margin: 0 0 30px; color: var(--primary-dark); }
.login-card { background: var(--card); padding: 24px; border-radius: var(--radius); width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.login-tab { display: flex; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.login-tab button { flex: 1; padding: 10px; border: 0; background: none; color: var(--text-light); border-bottom: 2px solid transparent; }
.login-tab button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Detail */
.detail-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.detail-header .ico { font-size: 3rem; line-height: 1; }
.detail-header h1 { margin: 0; font-size: 1.4rem; }
.detail-header .sub { color: var(--text-light); font-size: .85rem; }

.kvgrid { display: grid; grid-template-columns: 100px 1fr; gap: 4px 12px; font-size: .9rem; }
.kvgrid .k { color: var(--text-light); }

.timeline { border-left: 2px solid var(--border); margin-left: 12px; padding-left: 16px; }
.timeline .item { margin-bottom: 14px; position: relative; }
.timeline .item::before {
  content: ''; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary);
}
.timeline .date { font-size: .78rem; color: var(--text-light); font-weight: 500; }
.timeline .titel { font-weight: 500; }
.timeline .text { font-size: .85rem; color: var(--text-light); }

/* Companion */
.companion-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .9rem; }
.companion-row.gut { color: var(--success); }
.companion-row.schlecht { color: var(--danger); }

/* Responsiv */
@media (min-width: 700px) {
  .tabbar { position: static; }
  .content { padding: 24px; }
  .crop-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Suchfeld */
.search-bar { position: relative; margin-bottom: 12px; }
.search-bar input { width: 100%; padding: 12px 14px 12px 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); }
.search-bar .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); }

/* Pflanz-Wizard */
.wiz-step { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.wiz-step h3 { margin: 0 0 10px; font-size: 1rem; color: var(--primary-dark); }
.wiz-summary li { margin: 4px 0; }
.wiz-summary .icon { display: inline-block; width: 24px; }

/* Tag-Buttons */
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-row button {
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  padding: 6px 12px; border-radius: 16px; font-size: .85rem;
}
.tag-row button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Recipe steps */
ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 6px; }

/* Inline-Aufgabenliste in Modals */
.task-quick-list { margin-top: 8px; }
.task-quick {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 4px;
  background: var(--card);
}
.task-quick.done { opacity: .55; }
.task-quick.done .titel { text-decoration: line-through; }
.task-quick .check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--card);
  flex-shrink: 0; padding: 0; font-size: .8rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.task-quick.done .check { background: var(--primary); border-color: var(--primary); color: #fff; }
.task-quick .body { flex: 1; min-width: 0; cursor: pointer; }
.task-quick .titel { font-size: .9rem; font-weight: 500; }
.task-quick .meta { font-size: .75rem; color: var(--text-light); }
.task-quick .task-person-select {
  border: 1px solid var(--border); border-radius: 5px;
  padding: 4px 6px; font-size: .8rem; background: var(--bg);
  max-width: 110px;
}

/* Dashboard Tiles */
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.dash-tile { background: var(--card); border-radius: 10px; padding: 12px 8px; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s; }
.dash-tile:hover { transform: translateY(-2px); }
.dash-tile .dt-num { font-size: 1.6rem; font-weight: 700; color: var(--primary); line-height: 1; }
.dash-tile .dt-label { font-size: .72rem; color: var(--text-light); margin-top: 4px; }
@media (max-width: 480px) {
  .dash-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Wochenplan Mobile */
.weekplan-mobile { display: flex; flex-direction: column; gap: 10px; }
.wp-day { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.wp-day.wp-today { border-left: 4px solid var(--primary); }
.wp-day-head { padding: 10px 14px; background: var(--bg); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.wp-day-empty { padding: 10px 14px; color: var(--text-light); font-size: .85rem; }
.wp-task-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); cursor: pointer; }
.wp-task-row:hover { background: var(--bg); }
.wp-task-row.done { opacity: .55; }
.wp-task-row.done .wp-titel { text-decoration: line-through; }
.wp-task-row .wp-icon { font-size: 1.2rem; }
.wp-task-row .wp-titel { font-size: .9rem; }

/* Wochenplan-Kalender */
.weekplan-wrap { overflow-x: auto; border-radius: 8px; background: var(--card); box-shadow: var(--shadow); }
table.weekplan { border-collapse: collapse; width: 100%; min-width: 700px; }
table.weekplan th, table.weekplan td {
  border: 1px solid var(--border);
  vertical-align: top;
  padding: 4px;
  background: var(--card);
}
table.weekplan thead th {
  background: var(--bg);
  font-weight: 600;
  font-size: .85rem;
  text-align: center;
  padding: 6px 4px;
  position: sticky;
  top: 0;
  z-index: 2;
}
table.weekplan thead th .wp-date { color: var(--text-light); font-weight: 400; font-size: .75rem; }
table.weekplan .wp-today { background: #ecf3e6; }
table.weekplan .wp-person-head {
  width: 110px;
  position: sticky;
  left: 0;
  background: var(--bg);
  z-index: 3;
}
table.weekplan .wp-person-name {
  display: block;
  padding: 4px 8px;
  border-left: 5px solid var(--primary-light);
  font-size: .85rem;
  font-weight: 500;
}
table.weekplan td { min-width: 80px; min-height: 50px; height: 50px; }
table.weekplan .wp-drag-over { background: #d8efd0 !important; outline: 2px dashed var(--primary); }

.wp-task {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 6px;
  margin-bottom: 3px;
  cursor: grab;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  user-select: none;
}
.wp-task:hover { border-color: var(--primary-light); }
.wp-task.done { opacity: .5; text-decoration: line-through; }
.wp-task.wp-dragging { opacity: .3; cursor: grabbing; }
.wp-task .wp-icon { font-size: .95rem; }
.wp-task .wp-titel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 700px) {
  table.weekplan { min-width: 540px; }
  table.weekplan .wp-person-head { width: 80px; }
  table.weekplan .wp-person-name { font-size: .8rem; padding: 3px 6px; }
  .wp-task { font-size: .72rem; padding: 3px 5px; }
}

/* Wikipedia-Box + Skizzen-Galerie */
.wiki-box { background: #f9f7f0; border-left: 4px solid #b8a07a; }
.wiki-extract { font-size: .9rem; line-height: 1.5; color: var(--text); }
.wiki-toggle {
  background: none; border: 0;
  color: var(--primary-dark); cursor: pointer;
  font-size: .85rem; padding: 0; margin-left: 4px;
  text-decoration: underline;
}
.wiki-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 6px; margin-top: 8px;
}
.wiki-thumb-tile {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #d8d2bd;
  display: flex; align-items: center; justify-content: center;
}
.wiki-thumb-tile img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.wiki-thumb-tile:hover { border-color: var(--primary-light); }

/* Statistik */
.stat-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; }
.stat-label { flex: 0 0 35%; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-bar { flex: 1; height: 18px; background: var(--bg); border-radius: 9px; overflow: hidden; }
.stat-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.stat-val { flex: 0 0 auto; font-weight: 600; font-size: .85rem; min-width: 60px; text-align: right; }

.month-bars { display: flex; gap: 4px; align-items: flex-end; height: 140px; padding: 12px 0; }
.month-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.month-bar .mb-fill { width: 100%; min-height: 2px; background: var(--primary-light); border-radius: 4px 4px 0 0; }
.month-bar .mb-lbl { font-size: .7rem; color: var(--text-light); }
.month-bar .mb-val { font-size: .7rem; min-height: 14px; }

/* Wetter-Widget */
.weather { padding: 12px 14px; }
.wx-main { display: flex; gap: 12px; }
.wx-now { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.wx-icon { font-size: 2.5rem; line-height: 1; }
.wx-temp { font-size: 1.4rem; font-weight: 600; }
.wx-desc { font-size: .85rem; color: var(--text-light); }
.wx-days { display: flex; flex: 1; gap: 4px; overflow-x: auto; padding-left: 8px; border-left: 1px solid var(--border); }
.wx-day { text-align: center; min-width: 50px; font-size: .8rem; }
.wx-day .wx-wd { color: var(--text-light); }
.wx-day .wx-di { font-size: 1.4rem; line-height: 1.2; }
.wx-day .wx-rg { font-size: .78rem; }
.wx-day .wx-mm { font-size: .7rem; color: var(--info); }
.wx-warn { margin-top: 10px; padding: 8px 12px; background: var(--bg); border-left: 4px solid var(--info); border-radius: 4px; font-size: .9rem; }

/* Task-Icon-Foto */
.task-icon-img {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  object-fit: cover; vertical-align: middle;
  display: inline-block;
}

/* Foto-Galerie */
.photo-section { margin-top: 16px; }
.photo-section h3 { margin: 0 0 8px; font-size: 1rem; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
}
.photo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile .date {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; font-size: .7rem; padding: 14px 4px 3px;
  text-align: center;
}
.photo-tile.add {
  display: flex; align-items: center; justify-content: center;
  background: #ecf3e6; border-color: var(--primary-light); color: var(--primary-dark);
  font-size: 2rem; font-weight: 300;
}
.photo-tile.add span { line-height: 1; }
.photo-tile.uploading { opacity: 0.5; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 0.9; } }

.photo-view {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.photo-view img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.photo-view .ctrls {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.7); padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; justify-content: center;
}
.photo-view .ctrls button { color: #fff; background: rgba(255,255,255,0.15); border: 0; padding: 10px 16px; border-radius: 6px; }
.photo-view .close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.2); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.4rem; }
.photo-view .meta { color: #fff; padding: 8px 16px; opacity: 0.8; font-size: .9rem; text-align: center; }

/* Etikett 102x76mm */
.etikett-page { padding: 24px; text-align: center; background: var(--bg); min-height: 100vh; }
.etikett {
  display: inline-block;
  width: 102mm;
  min-height: 76mm;
  padding: 5mm 6mm;
  background: white;
  border: 1px dashed #999;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  text-align: left;
  font-family: Arial, sans-serif;
  color: #000;
  box-sizing: border-box;
}
.etikett .e-head { display: flex; align-items: center; gap: 4mm; border-bottom: 1px solid #000; padding-bottom: 3mm; margin-bottom: 3mm; }
.etikett .e-icon { font-size: 16mm; line-height: 1; }
.etikett .e-title { font-size: 7mm; font-weight: 700; word-break: break-word; }
.etikett .e-line { font-size: 4.5mm; line-height: 1.4; margin-bottom: 1.5mm; }
.etikett .e-line.strong { font-weight: 700; font-size: 5mm; }
.etikett .e-line.muted { color: #555; font-size: 3.8mm; margin-top: 3mm; }
.etikett-controls { margin-top: 24px; display: flex; gap: 8px; justify-content: center; }

@media print {
  body, html { background: white !important; margin: 0 !important; padding: 0 !important; }
  .topbar, .tabbar, .etikett-controls, #toast { display: none !important; }
  .etikett-page { padding: 0 !important; background: white !important; }
  .etikett { border: none !important; box-shadow: none !important; margin: 0 !important; }
  @page { size: 102mm 76mm; margin: 0; }
}

/* Saisonkalender Heatmap */
.heatmap { border-collapse: collapse; font-size: .8rem; }
.heatmap th, .heatmap td { padding: 4px 6px; text-align: center; border: 1px solid var(--border); }
.heatmap th.current { background: var(--primary); color: #fff; }
.heatmap td.current { box-shadow: inset 0 0 0 2px var(--primary); }
.heatmap td.rowlabel { text-align: left; white-space: nowrap; padding: 4px 8px; min-width: 130px; cursor: pointer; }
.heatmap td.rowlabel:hover { background: var(--bg); }
.heatmap td.sa { background: #c5d99e; }
.heatmap td.pf { background: #8fc581; }
.heatmap td.er { background: #f0c179; }
.heatmap td.sa.er { background: linear-gradient(135deg, #c5d99e 50%, #f0c179 50%); }
.heatmap td.pf.er { background: linear-gradient(135deg, #8fc581 50%, #f0c179 50%); }
