/*
 * Zeitfinder 6.9.64 — group scheduling: week-view heatmap, guided setup and
 * polished vote flow. Loaded only on /group/* and /admin/pages/* (groupStyles).
 */
:root {
  --zf-heat-rgb: 108, 160, 18;
  --zf-heat-strong: #4f6f05;
  --zf-heat-mine: #26350a;
  --zf-heat-line: #ebe8e1;
  --zf-heat-line-hour: #dcd8cf;
}

/* ---------- heatmap shell ---------- */
.zf-heat { display: grid; gap: 14px; }
.zf-heat-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; }
.zf-heat-mode { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--zf-surface-muted, #f3f4f1); border: 1px solid var(--zf-line, #e5e3de); }
.zf-heat-mode button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--zf-muted, #79756e); cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.zf-heat-mode button.is-active { background: #fff; color: var(--zf-ink, #2b2e23); box-shadow: 0 2px 8px rgba(43, 46, 35, .1); }
.zf-heat-weeknav { display: inline-flex; align-items: center; gap: 8px; }
.zf-heat-weeknav[hidden] { display: none; }
.zf-heat-weeknav strong { min-width: 150px; text-align: center; font-size: 14px; }
.zf-heat-weeknav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--zf-line, #e5e3de); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--zf-ink, #2b2e23); }
.zf-heat-weeknav button:disabled { opacity: .35; cursor: default; }
.zf-heat-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--zf-ink-soft, #42453d); cursor: pointer; user-select: none; }
.zf-heat-switch { position: relative; }
.zf-heat-switch input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zf-heat-switch i { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #dcd8cf; transition: background .2s ease; }
.zf-heat-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.zf-heat-switch input:checked + i { background: var(--zf-heat-strong); }
.zf-heat-switch input:checked + i::after { transform: translateX(16px); }
.zf-heat-switch input:focus-visible + i { box-shadow: var(--zf-shadow-focus, 0 0 0 3px rgba(91,95,82,.15)); }

.zf-heat-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.zf-heat-stage { min-width: 0; overflow-x: auto; padding-bottom: 4px; }

/* ---------- grid ---------- */
.zf-heat-grid { --heat-cols: 5; display: grid; grid-template-columns: 52px repeat(var(--heat-cols), minmax(64px, 1fr)); min-width: calc(52px + var(--heat-cols) * 64px); user-select: none; -webkit-user-select: none; }
.zf-heat-grid[data-mode="edit"] { touch-action: none; }
.zf-heat-corner { border-bottom: 1px solid var(--zf-heat-line-hour); }
.zf-heat-dayhead { display: grid; justify-items: center; gap: 1px; padding: 0 2px 8px; border-bottom: 1px solid var(--zf-heat-line-hour); }
.zf-heat-dayhead small { font-size: 11px; color: var(--zf-muted, #79756e); }
.zf-heat-dayhead strong { font-size: 15px; font-weight: 600; }
.zf-heat-dayhead.has-gap, .zf-heat-cell.has-gap { border-left: 3px double var(--zf-heat-line-hour) !important; }
.zf-heat-time { position: relative; font-size: 11px; color: var(--zf-muted, #79756e); text-align: right; padding-right: 8px; transform: translateY(-7px); white-space: nowrap; }
.zf-heat-cell { position: relative; height: 22px; border-left: 1px solid var(--zf-heat-line); border-top: 1px dashed transparent; background: #fff; transition: background-color .16s ease, box-shadow .16s ease, opacity .16s ease; cursor: default; }
.zf-heat-cell.is-lastcol { border-right: 1px solid var(--zf-heat-line); }
.zf-heat-cell.is-lastrow { border-bottom: 1px solid var(--zf-heat-line-hour); }
.zf-heat-cell.is-hour { border-top: 1px solid var(--zf-heat-line-hour); }
.zf-heat-cell:not(.is-hour) { border-top-color: #f2f0eb; }
.zf-heat-cell.has-heat { background: rgba(var(--zf-heat-rgb), calc(.1 + var(--heat, 0) * .85)); }
.zf-heat-cell.is-past { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(43,46,35,.05) 5px 6px); cursor: not-allowed; }
.zf-heat-cell.is-hovered { box-shadow: inset 0 0 0 2px var(--zf-heat-mine); z-index: 1; }
.zf-heat-cell:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--zf-heat-mine), 0 0 0 3px rgba(var(--zf-heat-rgb), .35); z-index: 2; }
.zf-heat-cell.is-best { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--zf-heat-strong); }
.zf-heat-cell.is-dimmed { opacity: .32; }
.zf-heat-cell.is-picked { box-shadow: inset 0 0 0 3px var(--zf-mark-slot, #FB6107); z-index: 2; }
.zf-heat-cell.is-flash { animation: zfHeatFlash .9s ease; }
@keyframes zfHeatFlash { 0%, 100% { filter: none; } 35% { filter: brightness(1.25) saturate(1.3); transform: scale(1.04); } }

/* edit mode: the group heat stays as a faint layer under your own selection */
.zf-heat-grid[data-mode="edit"] .zf-heat-cell { cursor: crosshair; }
.zf-heat-grid[data-mode="edit"] .zf-heat-cell.has-heat { background: rgba(var(--zf-heat-rgb), calc(.05 + var(--heat, 0) * .22)); }
.zf-heat-grid[data-mode="edit"] .zf-heat-cell.is-mine { background: var(--zf-heat-mine); border-left-color: rgba(255,255,255,.12); }
.zf-heat-grid[data-mode="edit"] .zf-heat-cell.is-mine.is-hour { border-top-color: rgba(255,255,255,.18); }
.zf-heat-grid[data-mode="edit"] .zf-heat-cell.is-past { cursor: not-allowed; }
.zf-heat-grid.is-dragging .zf-heat-cell { transition: none; }

/* name hover: only that person's painted times */
.zf-heat-grid.is-person-view .zf-heat-cell { background: #fff; opacity: 1; }
.zf-heat-grid.is-person-view .zf-heat-cell.is-person { background: var(--zf-heat-strong); }
.zf-heat-grid.is-person-view[data-mode="edit"] .zf-heat-cell.is-person { background: var(--zf-heat-mine); }

/* ---------- side panel ---------- */
.zf-heat-side { position: sticky; top: 96px; display: grid; gap: 14px; align-content: start; }
.zf-heat-side-head { display: flex; align-items: baseline; gap: 6px; }
.zf-heat-side-head strong { font-size: 17px; }
.zf-heat-side-head span { color: var(--zf-muted, #79756e); font-size: 14px; }
.zf-heat-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.zf-heat-people li { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px; font-size: 14px; cursor: default; transition: background .15s ease, opacity .15s ease, color .15s ease; outline: none; }
.zf-heat-people li i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--zf-surface-muted, #f3f4f1); font-style: normal; font-size: 11px; font-weight: 700; color: var(--zf-ink-soft, #42453d); flex: none; }
.zf-heat-people li.is-me i { background: var(--zf-heat-mine); color: #e9f8b6; }
.zf-heat-people li:hover, .zf-heat-people li:focus-visible, .zf-heat-people li.is-focused { background: var(--zf-surface-muted, #f3f4f1); }
.zf-heat-people li:focus-visible { box-shadow: var(--zf-shadow-focus, 0 0 0 3px rgba(91,95,82,.15)); }
.zf-heat-people li.is-available { background: #e9f8b6; color: var(--zf-heat-mine); font-weight: 600; }
.zf-heat-people li.is-available i { background: var(--zf-heat-strong); color: #fff; }
.zf-heat-people li.is-unavailable { opacity: .42; text-decoration: line-through; text-decoration-color: rgba(43,46,35,.35); }
.zf-heat-people .zf-heat-empty { color: var(--zf-muted, #79756e); font-size: 13px; }
.zf-heat-pending small, .zf-heat-best small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--zf-muted, #79756e); margin-bottom: 6px; }
.zf-heat-pending div { display: flex; flex-wrap: wrap; gap: 6px; }
.zf-heat-pending span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--zf-line-strong, #d5d1ca); color: var(--zf-muted, #79756e); }
.zf-heat-info { min-height: 62px; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--zf-surface-subtle, #fafaf8); border: 1px solid var(--zf-line, #e5e3de); font-size: 13px; }
.zf-heat-info strong { font-size: 13.5px; }
.zf-heat-info b { color: var(--zf-heat-strong); }
.zf-heat-info small { color: var(--zf-muted, #79756e); }
.zf-heat-info-hint { color: var(--zf-muted, #79756e); }
.zf-heat-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--zf-muted, #79756e); }
.zf-heat-legend-bar { display: flex; flex: 1; height: 10px; border-radius: 999px; overflow: hidden; border: 1px solid var(--zf-line, #e5e3de); }
.zf-heat-legend-bar i { flex: 1; background: rgba(var(--zf-heat-rgb), calc(.1 + var(--heat, 0) * .85)); }
.zf-heat-legend-bar i:first-child { background: #fff; }
.zf-heat-best ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zf-heat-best button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--zf-line, #e5e3de); background: #fff; font: inherit; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.zf-heat-best button:hover, .zf-heat-best button:focus-visible { border-color: var(--zf-heat-strong); transform: translateY(-1px); }
.zf-heat-best button strong { font-size: 13px; }
.zf-heat-best button span { grid-column: 1; font-size: 12px; color: var(--zf-muted, #79756e); }
.zf-heat-best button b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #e9f8b6; color: var(--zf-heat-mine); }

/* ---------- footer / save + host pick ---------- */
.zf-heat-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--zf-line, #e5e3de); }
.zf-heat-footer-count { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--zf-muted, #79756e); }
.zf-heat-footer-count strong { font-size: 20px; color: var(--zf-ink, #2b2e23); }
.zf-heat-footer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zf-heat-dirty { font-size: 12.5px; font-weight: 600; color: var(--zf-warning, #906f2b); }
.zf-heat-dirty[hidden] { display: none; }
.zf-heat-saved { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #f1fadb; border: 1px solid #c4dd97; color: var(--zf-heat-mine); font-size: 14px; animation: zfHeatSaved .5s cubic-bezier(.2,.8,.2,1); }
.zf-heat-saved i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--zf-heat-strong); color: #fff; font-style: normal; font-size: 12px; }
@keyframes zfHeatSaved { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.zf-heat-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid #fbc39d; background: #fff6ef; animation: zfHeatSaved .3s ease; }
.zf-heat-pick[hidden] { display: none; }
.zf-heat-pick span { display: grid; font-size: 13px; }
.zf-heat-pick span small { color: var(--zf-muted, #79756e); }

@media (max-width: 860px) {
  .zf-heat-body { grid-template-columns: 1fr; }
  .zf-heat-side { position: static; }
  .zf-heat-people { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 560px) {
  .zf-heat-grid { grid-template-columns: 42px repeat(var(--heat-cols), minmax(44px, 1fr)); min-width: calc(42px + var(--heat-cols) * 44px); }
  .zf-heat-dayhead strong { font-size: 13px; }
  .zf-heat-cell { height: 24px; }
  .zf-heat-weeknav strong { min-width: 110px; font-size: 13px; }
}

/* ---------- vote polish ---------- */
.zf-rank-attend { justify-self: end; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #e9f8b6; color: var(--zf-heat-mine); white-space: nowrap; }
.zf-rank-attend.is-partial { background: var(--zf-warning-soft, #f7f1e5); color: var(--zf-warning, #906f2b); }
.zf-vote-progress { display: grid; gap: 6px; margin: 0 0 14px; }
.zf-vote-progress div { display: flex; justify-content: space-between; font-size: 13px; color: var(--zf-muted, #79756e); }
.zf-vote-progress meter, .zf-vote-progress progress { width: 100%; height: 8px; }
.zf-vote-bar { height: 8px; border-radius: 999px; background: var(--zf-surface-muted, #f3f4f1); overflow: hidden; }
.zf-vote-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--zf-heat-strong); border-radius: inherit; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.zf-group-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: var(--zf-surface-subtle, #fafaf8); border: 1px solid var(--zf-line, #e5e3de); font-size: 13.5px; margin-bottom: 12px; }
.zf-group-note.is-success { background: #f1fadb; border-color: #c4dd97; color: var(--zf-heat-mine); }
.zf-group-note i { font-style: normal; font-weight: 700; }
.zf-standings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zf-standings li { display: grid; grid-template-columns: 28px minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--zf-line, #e5e3de); border-radius: 12px; background: #fff; }
.zf-standings li.is-leader { border-color: var(--zf-heat-strong); background: #f7fdeb; }
.zf-standings li > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--zf-surface-muted, #f3f4f1); font-size: 12px; }
.zf-standings li.is-leader > b { background: var(--zf-heat-strong); color: #fff; }
.zf-standings li div { display: grid; gap: 4px; min-width: 0; }
.zf-standings li small { color: var(--zf-muted, #79756e); font-size: 12px; }
.zf-standings li em { font-style: normal; font-weight: 700; font-size: 14px; }
.zf-voter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.zf-voter-chips span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--zf-surface-muted, #f3f4f1); }
.zf-voter-chips span.is-done { background: #e9f8b6; color: var(--zf-heat-mine); }
.zf-voter-chips span.is-done::before { content: "✓ "; }

/* ---------- guided group setup (Simple / Advanced) ---------- */
.zf-gsetup { display: grid; gap: 14px; }
.zf-gsetup-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--zf-surface-muted, #f3f4f1); border: 1px solid var(--zf-line, #e5e3de); max-width: 300px; }
.zf-gsetup-switch button { position: relative; z-index: 1; border: 0; background: transparent; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--zf-muted, #79756e); cursor: pointer; border-radius: 999px; transition: color .2s ease; }
.zf-gsetup-switch button.is-active { color: var(--zf-ink, #2b2e23); }
.zf-gsetup-switch i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(43,46,35,.12); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.zf-gsetup[data-setup-mode="advanced"] .zf-gsetup-switch i { transform: translateX(100%); }
.zf-gsetup-intro { margin: -4px 0 0; font-size: 13px; color: var(--zf-muted, #79756e); }

.zf-gsetup-step { border: 1px solid var(--zf-line, #e5e3de); border-radius: 16px; background: #fff; transition: box-shadow .3s ease, border-color .3s ease, transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.zf-gsetup-step > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: default; }
.zf-gsetup-step > header > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--zf-surface-muted, #f3f4f1); font-size: 13px; font-weight: 700; flex: none; transition: background .25s ease, color .25s ease; }
.zf-gsetup-step > header div { display: grid; min-width: 0; }
.zf-gsetup-step > header strong { font-size: 15px; }
.zf-gsetup-step > header small { color: var(--zf-muted, #79756e); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zf-gsetup-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.zf-gsetup-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* simple mode: one floating step at a time, done steps collapse into a summary */
.zf-gsetup[data-setup-mode="simple"] [data-setup-advanced] { display: none !important; }
.zf-gsetup[data-setup-mode="advanced"] [data-setup-simple] { display: none !important; }
.zf-gsetup[data-setup-mode="advanced"] .zf-gsetup-actions { display: none; }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step:not(.is-active) .zf-gsetup-body { display: none; }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step.is-active { border-color: var(--zf-heat-strong); box-shadow: 0 18px 40px rgba(43,46,35,.12), 0 0 0 4px rgba(var(--zf-heat-rgb), .12); transform: translateY(-2px); }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step.is-active > header > span { background: var(--zf-heat-strong); color: #fff; }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step.is-done > header { cursor: pointer; }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step.is-done > header > span { background: #e9f8b6; color: var(--zf-heat-mine); }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step.is-done > header > span::before { content: "✓"; }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step.is-done > header > span b { display: none; }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step.is-locked { opacity: .5; }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-step.is-active .zf-gsetup-body { animation: zfSetupOpen .38s cubic-bezier(.2,.8,.2,1); }
.zf-gsetup[data-setup-mode="advanced"] .zf-gsetup-step > header small { display: none; }
@keyframes zfSetupOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.zf-gsetup[data-setup-mode="simple"] .zf-gsetup-submit[data-ready="false"] { display: none; }

.zf-gsetup-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zf-gsetup-preset { display: grid; gap: 6px; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--zf-line, #e5e3de); background: #fff; font: inherit; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.zf-gsetup-preset:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(43,46,35,.08); }
.zf-gsetup-preset.is-selected { border-color: var(--zf-heat-strong); background: #f7fdeb; box-shadow: 0 0 0 3px rgba(var(--zf-heat-rgb), .15); }
.zf-gsetup-preset i { font-style: normal; font-size: 20px; }
.zf-gsetup-preset strong { font-size: 14.5px; }
.zf-gsetup-preset small { font-size: 12.5px; color: var(--zf-muted, #79756e); line-height: 1.4; }

.zf-gsetup-mode-field { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.zf-gsetup-mode-field legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.zf-gsetup-mode-field label { position: relative; display: grid; gap: 3px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--zf-line, #e5e3de); cursor: pointer; }
.zf-gsetup-mode-field input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.zf-gsetup-mode-field label:has(input:checked) { border-color: var(--zf-heat-strong); background: #f7fdeb; }
.zf-gsetup-mode-field label:has(input:focus-visible) { box-shadow: var(--zf-shadow-focus); }
.zf-gsetup-mode-field small { font-size: 12px; color: var(--zf-muted, #79756e); }
.zf-gsetup.is-slots-mode [data-heat-only] { display: none !important; }

/* date pre-selection calendar */
.zf-datepick { display: grid; gap: 10px; }
.zf-datepick-head { display: flex; align-items: center; justify-content: space-between; }
.zf-datepick-head strong { font-size: 14px; text-transform: capitalize; }
.zf-datepick-head button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--zf-line, #e5e3de); background: #fff; cursor: pointer; font-size: 16px; }
.zf-datepick-head button:disabled { opacity: .35; cursor: default; }
.zf-datepick-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; user-select: none; touch-action: none; }
.zf-datepick-grid > span { text-align: center; font-size: 11px; color: var(--zf-muted, #79756e); padding-bottom: 2px; }
.zf-datepick-grid button { aspect-ratio: 1 / 1; min-height: 32px; border-radius: 10px; border: 1px solid transparent; background: var(--zf-surface-subtle, #fafaf8); font: inherit; font-size: 13px; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
.zf-datepick-grid button:hover:not(:disabled) { border-color: var(--zf-heat-strong); }
.zf-datepick-grid button.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.zf-datepick-grid button.is-selected { background: var(--zf-heat-strong); color: #fff; transform: scale(.96); }
.zf-datepick-grid button:disabled { opacity: .3; cursor: not-allowed; background: transparent; }
.zf-datepick-summary { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; align-items: center; }
.zf-datepick-summary span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #e9f8b6; color: var(--zf-heat-mine); }
.zf-datepick-summary span button { border: 0; background: transparent; cursor: pointer; font-size: 13px; color: inherit; padding: 0 4px; }
.zf-datepick-summary em { font-style: normal; font-size: 12.5px; color: var(--zf-muted, #79756e); }
.zf-datepick-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.zf-datepick-quick button { font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--zf-line, #e5e3de); background: #fff; cursor: pointer; }
.zf-datepick-quick button:hover { border-color: var(--zf-heat-strong); }
.zf-time-window { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 620px) {
  .zf-gsetup-presets, .zf-gsetup-mode-field, .zf-time-window { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .zf-heat *, .zf-gsetup * { animation: none !important; transition: none !important; }
}
.zf-gsetup-step.is-attention { animation: zfSetupNudge .5s ease 2; border-color: var(--zf-mark-slot, #FB6107) !important; }
@keyframes zfSetupNudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* layout: give the guided setup room next to the process card */
.zf-group-create-layout.zf-admin-split { grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr); }
@media (max-width: 1080px) { .zf-group-create-layout.zf-admin-split { grid-template-columns: 1fr; } }
.zf-gsetup { counter-reset: zf-setup-step; }
.zf-gsetup-step { min-width: 0; counter-increment: zf-setup-step; }
.zf-gsetup-step > header > span b::before { content: counter(zf-setup-step); }
.zf-gsetup .zf-form-grid-2, .zf-gsetup .zf-group-decision-field, .zf-gsetup-mode-field { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.zf-gsetup label, .zf-gsetup input, .zf-gsetup select, .zf-gsetup textarea { min-width: 0; max-width: 100%; }
.zf-datepick { max-width: 440px; }
.zf-heat-cell.is-final { box-shadow: inset 3px 0 0 var(--zf-mark-slot, #FB6107), inset -3px 0 0 var(--zf-mark-slot, #FB6107); }
.zf-heat-cell.is-final::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(251,97,7,.18) 0 4px, transparent 4px 9px); pointer-events: none; }

/* ---------- wider group pages (6.9.64 feedback) ---------- */
.public-shell.zf-group-v2 { width: min(1480px, calc(100% - 64px)); max-width: none; }
.zf-admin-content.zf-group-admin-v2 { width: min(1640px, calc(100% - 56px)); }
.zf-heat-body { grid-template-columns: minmax(0, 1fr) clamp(240px, 22%, 320px); gap: clamp(16px, calc(2vw / var(--zf-vu, 1)), 28px); }
.zf-heat-grid { grid-template-columns: 56px repeat(var(--heat-cols), minmax(72px, 1fr)); min-width: calc(56px + var(--heat-cols) * 72px); }
@media (min-width: 1400px) { .zf-heat-cell { height: 26px; } .zf-heat-dayhead strong { font-size: 16px; } }
@media (max-width: 860px) { .zf-heat-body { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .public-shell.zf-group-v2 { width: calc(100% - 24px); }
  .zf-admin-content.zf-group-admin-v2 { width: calc(100% - 24px); }
  .zf-heat-grid { grid-template-columns: 42px repeat(var(--heat-cols), minmax(44px, 1fr)); min-width: calc(42px + var(--heat-cols) * 44px); }
}

/* 6.9.67 · Guided booking page setup (Simple / Advanced) on the page form.
   Reuses the group setup switch and step styles; the steps are regular panels in Advanced. */
.zf-psetup-top { display: grid; gap: 8px; }
.zf-psetup .zf-gsetup-intro { margin: 0; }
.zf-psetup[data-setup-mode="advanced"] .zf-gsetup-body { padding: 0; }
.zf-psetup[data-setup-mode="simple"] .zf-gsetup-step { padding: 0 !important; }
.zf-psetup[data-setup-mode="simple"] .zf-gsetup-step > header { padding: 16px 18px; }
.zf-psetup[data-setup-mode="simple"] .zf-gsetup-body { padding: 0 18px 18px; }
.zf-psetup[data-setup-mode="simple"] .zf-gsetup-step .zf-form-grid-2,
.zf-psetup[data-setup-mode="simple"] .zf-gsetup-step .zf-form-grid-3 { grid-template-columns: 1fr; }
.zf-psetup[data-setup-mode="simple"] .zf-gsetup-step.is-active { border-color: var(--zf-heat-strong) !important; box-shadow: 0 18px 40px rgba(43,46,35,.12), 0 0 0 4px rgba(var(--zf-heat-rgb), .12) !important; }
.zf-psetup-durations { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.zf-psetup-durations .zf-gsetup-preset { justify-items: center; gap: 0; padding: 12px 6px; text-align: center; }
.zf-psetup-durations .zf-gsetup-preset strong { font-size: 20px; letter-spacing: -.02em; }
.zf-psetup-next-hint { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f7fdeb; color: var(--zf-heat-mine); font-size: 13px; line-height: 1.45; }
@media (max-width: 640px) { .zf-psetup-durations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 6.9.68 · "Termine erstellen": optional drag-to-mark week calendar. */
.zf-create-modes { display: grid; gap: 14px; }

.zf-paint-form { display: grid; gap: 14px; }
.zf-paint-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.zf-paint-nav, .zf-paint-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zf-paint-nav strong { min-width: 220px; text-align: center; font-size: 14px; }
.zf-paint-tools label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.zf-paint-tools select { width: auto; min-width: 84px; padding: 6px 10px; }
.zf-paint-scroll { overflow: auto; max-height: min(640px, calc(78vh / var(--zf-vu, 1))); border: 1px solid var(--zf-heat-line); border-radius: 14px; background: #fff; overscroll-behavior: contain; }
.zf-paint-grid { --zf-paint-rows: 52; display: grid; grid-template-columns: 52px repeat(7, minmax(72px, 1fr)); grid-auto-rows: 13px; min-width: 620px; user-select: none; -webkit-user-select: none; touch-action: none; }
.zf-paint-corner, .zf-paint-day { position: sticky; top: 0; z-index: 2; height: 34px; grid-row: span 1; background: #fff; border-bottom: 1px solid var(--zf-heat-line-hour); }
.zf-paint-grid > .zf-paint-corner, .zf-paint-grid > .zf-paint-day { grid-row-end: span 3; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--zf-ink, #2b2e23); }
.zf-paint-day.is-today { color: var(--zf-heat-strong); }
.zf-paint-time { font-size: 11px; color: var(--zf-muted, #79756e); text-align: right; padding: 2px 8px 0 0; line-height: 1; }
.zf-paint-cell { border-left: 1px solid var(--zf-heat-line); border-top: 1px solid transparent; cursor: crosshair; transition: background-color .08s ease; }
.zf-paint-cell.is-hour { border-top-color: var(--zf-heat-line); }
.zf-paint-cell:hover { background: rgba(var(--zf-heat-rgb), .1); }
.zf-paint-cell.is-existing { background: repeating-linear-gradient(135deg, rgba(var(--zf-heat-rgb), .14) 0 4px, transparent 4px 8px); }
.zf-paint-cell.is-booked { background: repeating-linear-gradient(135deg, rgba(251, 97, 7, .18) 0 4px, transparent 4px 8px); }
.zf-paint-cell.is-marked { background: rgba(var(--zf-heat-rgb), .72); border-left-color: rgba(var(--zf-heat-rgb), .2); }
.zf-paint-cell.is-preview-add { background: rgba(var(--zf-heat-rgb), .42); }
.zf-paint-cell.is-preview-remove { background: rgba(251, 97, 7, .22); }
.zf-paint-cell.is-past { background: repeating-linear-gradient(0deg, #f6f5f2 0 2px, #fbfaf8 2px 4px); cursor: not-allowed; }
.zf-paint-grid.is-dragging .zf-paint-cell:hover { background: inherit; }
.zf-paint-interval { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.zf-paint-interval input { width: 110px; }
.zf-paint-form .zf-builder-footer { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.zf-paint-form .zf-builder-preview { flex: 1 1 260px; }
@media (max-width: 640px) { .zf-paint-nav strong { min-width: 0; flex: 1; } }
@media (prefers-reduced-motion: reduce) { .zf-paint-cell { transition: none; } }
.zf-psetup[data-page-kind="group"] [data-kind-only="individual"],
.zf-psetup[data-page-kind="individual"] [data-kind-only="group"] { display: none !important; }
.zf-gsetup-preset:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 6.9.88 group tab: running meeting on top, reply counter, notices ---------- */
.zf-group-workspace-v2 > * + * { margin-top: 14px; }
.zf-group-current-panel { border-radius: 14px; border-color: var(--zf-heat-strong, #7c9a1e); box-shadow: 0 0 0 3px rgba(var(--zf-heat-rgb, 124,154,30), .08); }
.zf-group-current-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 18px; }
.zf-group-current-head h2 { margin: 2px 0 4px; }
.zf-group-current-state { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--zf-ink, #2b2e23); }
.zf-group-current-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.zf-group-replies { display: grid; gap: 10px; align-content: start; align-self: start; padding: 16px; border-radius: 14px; background: var(--zf-surface-subtle, #fafaf8); border: 1px solid var(--zf-line, #e5e3de); min-width: 0; }
.zf-group-replies-count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zf-group-replies-count strong { font-size: 44px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.zf-group-replies-count span { font-size: 15px; font-weight: 600; color: var(--zf-muted, #79756e); }
.zf-group-replies-bar { position: relative; height: 10px; border-radius: 999px; background: #ebe9e3; overflow: hidden; }
.zf-group-replies-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--zf-heat-strong, #7c9a1e); transition: width .4s ease; }
.zf-group-replies.is-reached .zf-group-replies-bar i { background: var(--zf-heat-mine, #4c6310); }
.zf-group-replies > p { margin: 0; font-size: 13px; color: var(--zf-muted, #79756e); }
.zf-group-replies.is-reached > p { color: var(--zf-heat-mine, #4c6310); font-weight: 600; }
.zf-group-replies .zf-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 2px 0 0; min-width: 0; }
.zf-group-replies .zf-copy-row code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.zf-group-replies-wide { margin-top: 14px; grid-template-columns: auto minmax(160px, 1fr); align-items: center; column-gap: 22px; }
.zf-group-replies-wide > p { grid-column: 1 / -1; }
.zf-group-replies-wide .zf-group-replies-bar:only-of-type { min-width: 0; }
.zf-group-settings-form { display: grid; gap: 12px; align-content: start; min-width: 0; }
.zf-group-settings-form label, .zf-group-settings-form input { min-width: 0; max-width: 100%; }
.zf-group-settings-form input[type="number"], .zf-gsetup-expected input { max-width: 160px; }
.zf-group-settings-form .zf-gsetup-actions { display: flex; }
.zf-group-mail-field { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.zf-group-mail-field legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0; }
.zf-group-mail-field label { position: relative; display: block; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--zf-line, #e5e3de); background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.zf-group-mail-field label > span { display: grid; gap: 3px; }
.zf-group-mail-field input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.zf-group-mail-field label:has(input:checked) { border-color: var(--zf-heat-strong, #7c9a1e); background: #f7fdeb; }
.zf-group-mail-field label:has(input:focus-visible) { box-shadow: var(--zf-shadow-focus); }
.zf-group-mail-field strong { font-size: 13.5px; }
.zf-group-mail-field small { font-size: 12px; line-height: 1.4; color: var(--zf-muted, #79756e); }
.zf-group-notices-panel { border-radius: 14px; }
.zf-group-notices-panel .zf-panel-head form { margin: 0; }
.zf-group-notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zf-group-notice { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; border: 1px solid #ebe8e3; background: #fcfcfc; }
.zf-group-notice > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--zf-surface-muted, #f3f4f1); font-style: normal; font-size: 13px; }
.zf-group-notice > div { display: grid; min-width: 0; }
.zf-group-notice strong { font-size: 13.5px; overflow-wrap: anywhere; }
.zf-group-notice small { font-size: 12px; color: var(--zf-muted, #79756e); }
.zf-group-notice.is-unseen { border-color: var(--zf-heat-strong, #7c9a1e); background: #f7fdeb; }
.zf-group-notice.is-unseen > i { background: #e9f8b6; color: var(--zf-heat-mine, #4c6310); }
.zf-group-notice.is-locked > i, .zf-group-notice.is-deadline > i { background: #fbecd9; }
.zf-group-notice-new { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--zf-heat-strong, #7c9a1e); color: #fff; }
[data-workspace-tab="group"] .zf-tab-new { margin-left: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--zf-mark-slot, #FB6107); color: #fff; }
.zf-group-create-more { border: 1px dashed var(--zf-line, #d9d6cf); border-radius: 14px; background: transparent; }
.zf-group-create-more > summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; color: var(--zf-muted, #79756e); }
.zf-group-create-more > summary::-webkit-details-marker { display: none; }
.zf-group-create-more > summary > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--zf-surface-muted, #f3f4f1); flex: none; }
.zf-group-create-more > summary div { display: grid; gap: 2px; min-width: 0; }
.zf-group-create-more > summary strong { font-size: 14px; color: var(--zf-ink, #2b2e23); }
.zf-group-create-more > summary small { font-size: 12.5px; line-height: 1.4; }
.zf-group-create-more[open] { border-style: solid; }
.zf-group-create-more[open] > summary { border-bottom: 1px solid var(--zf-line, #e5e3de); }
.zf-group-create-more > .zf-group-create-layout { padding: 14px; }
@media (max-width: 860px) {
  .zf-group-current-body { grid-template-columns: 1fr; }
  .zf-group-replies-wide { grid-template-columns: 1fr; }
}
.zf-group-admin-v2 > .zf-group-notices-panel, .zf-group-admin-v2 > .zf-group-replies-wide + .zf-group-stat-strip { margin-top: 14px; }
.zf-group-mail-field small { font-weight: 400; }

/* ---------- 6.9.91 group tab: the meeting is the default view, settings & setup behind a switch ---------- */
.zf-group-viewswitch { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 16px; padding: 5px; border-radius: 14px; background: var(--zf-surface-muted, #f3f4f1); border: 1px solid var(--zf-line, #e5e3de); isolation: isolate; }
.zf-group-viewswitch-thumb { position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(30, 30, 20, .08), 0 4px 14px rgba(30, 30, 20, .07); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.zf-group-viewswitch[data-active="setup"] .zf-group-viewswitch-thumb { transform: translateX(100%); }
[dir="rtl"] .zf-group-viewswitch-thumb { left: auto; right: 5px; }
[dir="rtl"] .zf-group-viewswitch[data-active="setup"] .zf-group-viewswitch-thumb { transform: translateX(-100%); }
.zf-group-viewswitch > a { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 14px; border-radius: 10px; color: var(--zf-muted, #79756e); text-decoration: none; transition: color .2s ease; }
.zf-group-viewswitch > a:hover { color: var(--zf-ink, #2b2e23); }
.zf-group-viewswitch > a:focus-visible { outline: none; box-shadow: var(--zf-shadow-focus, 0 0 0 3px rgba(124, 154, 30, .35)); }
.zf-group-viewswitch > a > span:last-child { display: grid; gap: 1px; min-width: 0; }
.zf-group-viewswitch strong { font-size: 14.5px; line-height: 1.25; }
.zf-group-viewswitch small { font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zf-group-viewswitch-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .7); font-size: 14px; }
.zf-group-viewswitch > a.is-active { color: var(--zf-ink, #2b2e23); }
.zf-group-viewswitch > a.is-active .zf-group-viewswitch-icon { background: #e9f8b6; color: var(--zf-heat-mine, #4c6310); }
.zf-group-view > * + * { margin-top: 14px; }
.zf-group-view.is-entering { animation: zf-group-view-in .24s ease both; }
@keyframes zf-group-view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.zf-group-embedded-view > .zf-group-admin-stagebar { margin-bottom: 0; }
.zf-group-embedded-view > .zf-group-replies-wide { margin-top: 14px; }
.zf-group-embedded-view > .zf-group-heat-panel { margin-top: 14px; }
.zf-group-settings-jump { justify-self: start; }
.zf-group-setup-link > p { margin: 0; }
.zf-group-settings-panel { border-radius: 14px; }
@media (max-width: 640px) {
  .zf-group-viewswitch > a { padding: 9px 10px; gap: 8px; }
  .zf-group-viewswitch small { display: none; }
  .zf-group-viewswitch strong { font-size: 13.5px; }
  .zf-group-viewswitch-icon { width: 26px; height: 26px; font-size: 12px; }

}
@media (prefers-reduced-motion: reduce) {
  .zf-group-viewswitch-thumb, .zf-group-viewswitch > a { transition: none; }
  .zf-group-view.is-entering { animation: none; }
}
/* 6.9.91: in the tab the reply counter is a card that opens the heatmap, participants and shortlist. */
.zf-group-details { margin-top: 14px; }
.zf-group-details > .zf-group-details-summary { margin-top: 0; list-style: none; cursor: pointer; border: 1.5px solid var(--zf-heat-strong, #7c9a1e); background: #fff; box-shadow: 0 1px 2px rgba(30, 30, 20, .05); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.zf-group-details > .zf-group-details-summary::-webkit-details-marker { display: none; }
.zf-group-details > .zf-group-details-summary:hover { box-shadow: 0 6px 22px rgba(60, 80, 20, .12); transform: translateY(-1px); }
.zf-group-details > .zf-group-details-summary:focus-visible { outline: none; box-shadow: var(--zf-shadow-focus, 0 0 0 3px rgba(124, 154, 30, .35)); }
.zf-group-details-cta { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-self: start; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #e9f8b6; color: var(--zf-heat-mine, #4c6310); font-size: 13.5px; font-weight: 700; }
.zf-group-details-cta i { font-style: normal; font-size: 15px; line-height: 1; transition: transform .25s ease; }
.zf-group-details-hide, .zf-group-details[open] .zf-group-details-show { display: none; }
.zf-group-details[open] .zf-group-details-hide { display: inline; }
.zf-group-details[open] .zf-group-details-cta i { transform: rotate(180deg); }
.zf-group-details[open] > .zf-group-details-summary { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
.zf-group-details-body > * { margin-top: 14px; }
.zf-group-details[open] > .zf-group-details-body { animation: zf-group-view-in .26s ease both; }
@media (max-width: 640px) { .zf-group-details-cta { justify-self: stretch; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) {
  .zf-group-details > .zf-group-details-summary, .zf-group-details-cta i { transition: none; }
  .zf-group-details > .zf-group-details-summary:hover { transform: none; }
  .zf-group-details[open] > .zf-group-details-body { animation: none; }
}
/* 6.9.91: a blurred glimpse of the live calendar peeks out at the bottom edge of the closed card. */
.zf-group-details > .zf-group-details-summary { position: relative; overflow: hidden; padding-bottom: 66px; }
.zf-group-details-peek { position: absolute; left: 16px; right: 16px; bottom: -14px; height: 62px; display: grid; grid-template-columns: repeat(10, 1fr); grid-auto-rows: 18px; gap: 3px; pointer-events: none; filter: blur(2.5px); opacity: .85; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, transparent); mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, transparent); transition: transform .3s ease, opacity .3s ease; }
.zf-group-details-peek i { border-radius: 4px; background: #f1f0ea; }
.zf-group-details-peek i.is-h1 { background: #e2edc4; }
.zf-group-details-peek i.is-h2 { background: #c7dd94; }
.zf-group-details-peek i.is-h3 { background: #a3c45f; }
.zf-group-details-peek i.is-h4 { background: #7c9a1e; }
.zf-group-details > .zf-group-details-summary:hover .zf-group-details-peek { transform: translateY(-6px); opacity: 1; }
.zf-group-details[open] > .zf-group-details-summary { padding-bottom: 16px; }
.zf-group-details[open] .zf-group-details-peek { display: none; }
@media (max-width: 640px) { .zf-group-details-peek { grid-template-columns: repeat(6, 1fr); } .zf-group-details-peek i:nth-child(n+19) { display: none; } }
@media (prefers-reduced-motion: reduce) { .zf-group-details-peek { transition: none; } .zf-group-details > .zf-group-details-summary:hover .zf-group-details-peek { transform: none; } }
/* 6.9.91: the call to action spans the whole card, with a stronger outline and shadow. */
.zf-group-details > .zf-group-details-summary { border-width: 2.5px; box-shadow: 0 2px 4px rgba(60, 80, 20, .06), 0 10px 28px rgba(60, 80, 20, .12); }
.zf-group-details > .zf-group-details-summary:hover { box-shadow: 0 3px 6px rgba(60, 80, 20, .08), 0 16px 38px rgba(60, 80, 20, .18); }
.zf-group-details-cta { justify-self: stretch; justify-content: space-between; padding: 11px 18px; border-radius: 12px; font-size: 14.5px; }
.zf-group-details-cta i { font-size: 18px; }
.zf-group-details > .zf-group-details-summary:hover .zf-group-details-cta { background: #ddf39a; }
/* 6.9.91: news folded by default, with a "new" indicator and unread / read tabs. */
.zf-group-news > summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.zf-group-news > summary::-webkit-details-marker { display: none; }
.zf-group-news > summary > div { flex: 1; min-width: 0; }
.zf-group-news > summary h2 { margin: 2px 0 0; }
.zf-group-news > summary:focus-visible { outline: none; box-shadow: var(--zf-shadow-focus, 0 0 0 3px rgba(124, 154, 30, .35)); border-radius: 10px; }
.zf-group-news-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--zf-surface-muted, #f3f4f1); color: var(--zf-muted, #79756e); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.zf-group-news.has-unseen .zf-group-news-badge { background: var(--zf-mark-slot, #FB6107); color: #fff; }
.zf-group-news-badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: zf-news-pulse 1.6s ease-in-out infinite; }
@keyframes zf-news-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
.zf-group-news-chevron { font-size: 18px; color: var(--zf-muted, #79756e); transition: transform .25s ease; }
.zf-group-news[open] .zf-group-news-chevron { transform: rotate(180deg); }
.zf-group-news-body { margin-top: 12px; display: grid; gap: 12px; }
.zf-group-news-hint { margin: 0; font-size: 13px; color: var(--zf-muted, #79756e); }
.zf-group-news-tabs { display: grid; grid-template-columns: auto auto 1fr; gap: 6px; align-items: center; }
.zf-group-news-tabs > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.zf-group-news-tabs > label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; border: 1px solid var(--zf-line, #e5e3de); background: var(--zf-surface-muted, #f3f4f1); font-size: 13.5px; font-weight: 600; color: var(--zf-muted, #79756e); cursor: pointer; }
.zf-group-news-tabs > label span { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #fff; font-size: 11.5px; text-align: center; }
.zf-group-news-tabs > input:checked + label { background: #fff; color: var(--zf-ink, #2b2e23); border-color: var(--zf-heat-strong, #7c9a1e); box-shadow: 0 1px 3px rgba(30, 30, 20, .08); }
.zf-group-news-tabs > input:checked + label span { background: #e9f8b6; color: var(--zf-heat-mine, #4c6310); }
.zf-group-news-tabs > input:focus-visible + label { box-shadow: var(--zf-shadow-focus, 0 0 0 3px rgba(124, 154, 30, .35)); }
.zf-group-news-panel { grid-column: 1 / -1; display: none; gap: 10px; margin-top: 4px; }
#group-news-unread:checked ~ [data-news-panel="unread"], #group-news-read:checked ~ [data-news-panel="read"] { display: grid; }
.zf-group-news-seen { margin: 0; justify-self: start; }
@media (prefers-reduced-motion: reduce) { .zf-group-news-badge i { animation: none; } .zf-group-news-chevron { transition: none; } }
.zf-group-news > summary h2 { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .zf-group-news > summary { flex-wrap: wrap; row-gap: 8px; }
  .zf-group-news > summary > div { flex: 1 1 calc(100% - 40px); }
  .zf-group-news-chevron { order: 2; }
  .zf-group-news-badge { order: 3; }
}

/* 6.9.107: a person's own week plan (Team-Termine, Zeiten von Hand). Cells where that person already has
   another booking are faint orange («möglicherweise belegt»), whether painted or not. */
.zf-heat .zf-heat-cell.is-overlap { background-image: repeating-linear-gradient(135deg, rgba(217, 137, 58, .30) 0 4px, rgba(217, 137, 58, .08) 4px 8px) !important; }
.zf-heat .zf-heat-grid[data-mode="edit"] .zf-heat-cell.is-mine.is-overlap { box-shadow: inset 0 0 0 2px rgba(217, 137, 58, .85); }
.zf-heat-overlap-note { display: block; margin-top: 6px; color: #8a4b0f; font-size: 12px; line-height: 1.4; }
.zf-heat-legend.is-solo { display: grid; gap: 6px; }
.zf-heat-key { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #4b5244; }
.zf-heat-key i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .08); }
.zf-heat-key.is-mine i { background: var(--zf-heat-mine, #5c8001); }
.zf-heat-key.is-overlap i { background: repeating-linear-gradient(135deg, rgba(217, 137, 58, .45) 0 3px, rgba(217, 137, 58, .12) 3px 6px); border-color: #f0c99c; }
