/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:          #f5f3f0;
  --surface:     #ffffff;
  --surface-2:   #f8f7f5;
  --surface-3:   #edecea;
  --fill:        rgba(120,120,128,0.08);
  --fill-2:      rgba(120,120,128,0.05);
  --sep:         rgba(60,60,67,0.1);
  --text:        #1a1a1a;
  --text-1:      #1a1a1a;
  --text-2:      rgba(60,60,67,0.7);
  --text-3:      rgba(60,60,67,0.42);
  --accent:      #3b82f6;
  --accent-soft: rgba(59,130,246,0.1);
  --cyan:        #0ea5e9;
  --cyan-soft:   rgba(14,165,233,0.12);
  --emerald:     #10b981;
  --emerald-soft:rgba(16,185,129,0.12);
  --border:      rgba(0,0,0,0.06);
  --bg-hover:    rgba(0,0,0,0.04);
  --green:       #22c55e;
  --green-soft:  rgba(34,197,94,0.1);
  --amber:       #d97706;
  --amber-soft:  rgba(217,119,6,0.1);
  --red:         #ef4444;
  --red-soft:    rgba(239,68,68,0.08);
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-modal:0 24px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
  /* Backdrop — human-eye-style defocus for overlays.
     Moderate radius; attention cue is the accommodation animation, not raw blur. */
  --backdrop-bokeh: blur(12px) saturate(1.2);
  --backdrop-tint:  rgba(245, 243, 240, 0.1);
  --backdrop-bokeh-rest: blur(0) saturate(1);
  --backdrop-tint-rest:  rgba(245, 243, 240, 0);
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--sep);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 50;
}

.header-left h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.header-left p {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 1px;
  font-weight: 400;
}

.header-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--sep);
}

/* ── Tooltips ──────────────────────────────────────────────────────────── */
.tooltip-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  transform: translateX(-50%) translateY(-4px);
  z-index: 100;
}
.tooltip::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 4px solid var(--text);
}
.tooltip-wrap:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Search ────────────────────────────────────────────────────────────── */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--fill);
  border-radius: 20px;
  padding: 5px 12px;
  transition: background 0.15s, box-shadow 0.15s;
  border: 1.5px solid transparent;
  /* First right-aligned element since the stats box was merged into the
     header subtitle; pushes everything from here on against the right edge. */
  margin-left: auto;
}
.search-wrapper:focus-within {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-wrapper.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.search-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-3);
}
.search-icon svg { display: block; }
.search-wrapper:focus-within .search-icon,
.search-wrapper.is-active .search-icon { color: var(--accent); }
.search-input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--text);
  width: 120px;
  transition: width 0.2s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { width: 180px; }
.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px;
  font-family: inherit;
}
.search-clear svg { display: block; }
.search-clear:hover { color: var(--text); }

.btn-new {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-new:hover { opacity: 0.82; }
.btn-new:active { opacity: 0.7; transform: scale(0.98); }

/* ── Board ───────────────────────────────────────────────────────────────── */
.board {
  flex: 1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.board::-webkit-scrollbar { height: 5px; }
.board::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

/* ── Column ──────────────────────────────────────────────────────────────── */
.column {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.column.has-substatus { flex: 0 0 420px; }

.col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  flex-shrink: 0;
  border-bottom: 2px solid var(--col-color, var(--sep));
}

.col-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.01em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--text-3);
  min-width: 22px;
  text-align: center;
}
.col-badge.exceeded {
  background: var(--red-soft);
  color: var(--red);
}
.col-badge.has-capacity {
  background: var(--green-soft);
  color: var(--green);
}

/* Pull-Signal: previous column has ready items — soft green glow below the
   column underline, signalling this column is primed to receive a card. */
.col-header.pull-ready {
  box-shadow: 0 2px 8px -3px rgba(34, 197, 94, 0.45);
}

.col-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.col-body::-webkit-scrollbar { width: 3px; }
.col-body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

/* ── Substatus layout ────────────────────────────────────────────────────── */
.sub-row {
  display: flex;
  gap: 6px;
  height: 100%;
}
.sub-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sub-col .card-container {
  flex: 1;
}

/* Wrapper for columns without substatus – mirrors sub-col layout */
.no-sub-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
/* Reserve the same top strip as the DOING/READY lane labels (.sub-label) in
   substatus columns, so card tops align across plain and substatus columns.
   Height must track .sub-label — keep font-size + padding in sync. */
.no-sub-wrapper::before {
  content: '\00a0';
  font-size: 0.6rem;
  padding: 8px 4px 4px;
  flex-shrink: 0;
}
.no-sub-wrapper .card-container {
  flex: 1;
}

.sub-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 8px 4px 4px;
}
.sub-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sep);
  opacity: 0.6;
}
.sub-doing  .sub-label { color: var(--amber); }
.sub-ready  .sub-label { color: var(--accent); }
.sub-waiting .sub-label { color: var(--text-3); }

/* Sortable container */
.card-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 28px;
}
.empty-sub {
  color: var(--text-3);
  font-size: 0.66rem;
  padding: 6px 4px;
  opacity: 0.5;
  text-align: center;
  font-style: italic;
}
.archive-overflow {
  color: var(--text-3);
  font-size: 0.66rem;
  padding: 8px 4px;
  text-align: center;
  font-style: italic;
  opacity: 0.6;
  flex-shrink: 0;
}
.archive-toggle {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.66rem;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-style: italic;
  flex-shrink: 0;
}
.archive-toggle:hover { color: var(--accent); }
.empty-col {
  color: var(--text-3);
  font-size: 0.66rem;
  padding: 6px 4px;
  opacity: 0.5;
  text-align: center;
  font-style: italic;
}

/* While a card is dragged over an empty column SortableJS inserts the
   placeholder into that column's container — the empty-state hint is then
   redundant clutter, so hide it for the hovered column only. */
.no-sub-wrapper:has(.sortable-ghost) .empty-col,
.card-container:has(.sortable-ghost) .empty-sub {
  display: none;
}
.empty-col-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.empty-col-icon {
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.5;
}
.empty-col-text {
  font-size: 0.7rem;
  color: var(--text-3);
  line-height: 1.3;
}
.empty-col-cta {
  margin-top: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.12s;
}
.empty-col-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.03);
}
.empty-search {
  font-size: 0.7rem;
  font-style: italic;
  opacity: 0.5;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 11px 12px;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s, box-shadow 0.12s;
  position: relative;
}
/* Resting cards lie flat on the column surface — no elevation. Separation
   comes from the lighter card fill against the tinted column + a faint border.
   Elevation is reserved as a state signal: only a lifted (dragged) card casts
   a shadow, mirroring how a sheet of paper behaves on a desk. */
.card:hover { background: var(--surface-3); }
.card:active { transform: scale(0.98); }

/* Placeholder slot — the recessed dent the card left behind / will drop into.
   Inset shadow reads as a depression; contents hidden so only the slot shows. */
.card.sortable-ghost {
  background: var(--fill-2);
  border-style: dashed;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}
.card.sortable-ghost > * { visibility: hidden; }

/* The lifted clone that follows the pointer — the only card that casts a
   shadow. Needs forceFallback in board.js so a real DOM node exists to style.
   `transition: none` is load-bearing: SortableJS repositions the clone every
   pointermove via inline `transform`, then reads that transform back to
   compute the next step. A `transform` transition (inherited from `.card`)
   makes it read a stale, mid-animation value — the clone falls progressively
   behind the cursor. No CSS `transform` here either, for the same reason:
   SortableJS owns the clone's transform. */
.card.sortable-drag {
  opacity: 1;
  transition: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.20), 0 5px 12px rgba(0,0,0,0.12);
  cursor: grabbing;
}

.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.card-company {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  flex: 1;
  /* Break a single word too long for the card width instead of letting it
     overflow into the relevance pill (e.g. "Personaldienstleistungen"). */
  overflow-wrap: break-word;
}
.card-position {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.3;
  font-weight: 400;
  overflow-wrap: break-word;
}

/* Relevanz pill */
.relevance {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-top: 1px;
  letter-spacing: 0.01em;
}
.rel-high { background: var(--green-soft);  color: var(--green); }
.rel-mid  { background: var(--amber-soft);  color: var(--amber); }
.rel-low  { background: var(--fill);        color: var(--text-3); }

/* Next step */
.card-next {
  margin-top: 10px;
  font-size: 0.71rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Archiv tag */
.archiv-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 6px;
}
.tag-accepted        { background: var(--green-soft); color: var(--green); }
.tag-rejected        { background: var(--red-soft);   color: var(--red); }
.tag-withdrawn       { background: var(--fill);       color: var(--text-3); }
.tag-position_closed { background: var(--fill);       color: var(--text-3); }
.tag-filtered_out    { background: var(--fill);       color: var(--text-3); }
.tag-duplicate       { background: var(--fill);       color: var(--text-3); }

/* Changed — single relative-time line replacing the three-pill date row.
   `cardChangedLabel()` suppresses it for Stufe-1 cards so the urgency signal
   doesn't compete with itself. Hover surfaces the absolute date as a tooltip. */
.card-changed {
  margin-top: 8px;
  font-size: 0.65rem;
  color: var(--text-3);
  font-weight: 400;
}

/* External link */
.card-link {
  position: absolute;
  top: 9px; right: 9px;
  opacity: 0;
  color: var(--text-3);
  font-size: 0.7rem;
  text-decoration: none;
  transition: opacity 0.15s;
  background: var(--fill);
  border-radius: 5px;
  padding: 2px 5px;
  line-height: 1.4;
}
.card:hover .card-link { opacity: 1; }

/* ── Modal overlay ───────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--backdrop-tint);
  backdrop-filter: var(--backdrop-bokeh);
  -webkit-backdrop-filter: var(--backdrop-bokeh);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 600px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 16px;
  flex-shrink: 0;
}
.modal-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.modal-header-actions .btn-close {
  margin-left: 6px;
  position: relative;
}
.modal-header-actions .btn-close::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--border, #e5e4e2);
}
.btn-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--fill);
  border: none;
  color: var(--text-2);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
}
.btn-close:hover { background: var(--fill-2); color: var(--text); }
.btn-icon-header {
  position: relative;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fill); border: none; cursor: pointer;
  color: var(--text-2);
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; line-height: 1;
  transition: background 0.12s, color 0.12s, transform 0.12s;
}
.btn-icon-header:hover { background: var(--fill-2); color: var(--text); transform: translateY(-1px); }
.btn-icon-header:active { transform: translateY(0); }
.btn-icon-header.active { background: var(--accent-soft); color: var(--accent); }
.icon-header-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--accent); color: #fff;
  font-size: 0.58rem; font-weight: 700;
  border-radius: 10px;
  min-width: 15px; height: 15px;
  padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

.modal-tabs {
  display: flex;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--border, #e5e4e2);
  flex-shrink: 0;
}
.modal-tabs button {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  font-family: inherit;
}
.modal-tabs button:hover { color: var(--text-1); }
.modal-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.modal-body { padding: 4px 22px 20px; flex: 1; }

/* Form groups – iOS Settings style */
.form-section { margin-bottom: 20px; }

.form-section-label {
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  padding: 0 4px;
  margin-bottom: 6px;
}

.form-group-box {
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.form-row-ios {
  display: flex;
  align-items: center;
  padding: 0 14px;
  min-height: 44px;
  gap: 10px;
}

.form-row-ios.two-col { gap: 0; }
.form-row-ios.two-col .form-half { flex: 1; }
.form-row-ios.two-col .form-half:first-child {
  padding-right: 14px;
}
.form-row-ios.two-col .form-half:last-child { padding-left: 14px; }

.form-row-ios label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
}

.form-row-ios input,
.form-row-ios select {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-2);
  font-size: 0.82rem;
  font-family: inherit;
  text-align: right;
  padding: 0;
}
.form-row-ios input::placeholder { color: var(--text-3); }
.form-row-ios select { text-align-last: right; }
.form-row-ios select option { background: #fff; }

/* Compact inputs that shouldn't stretch — push themselves to the right edge. */
.form-row-ios input[type=checkbox],
.form-row-ios input[type=date],
.form-row-ios input[type=time] {
  flex: none;
  width: auto;
  margin-left: auto;
}
.form-row-ios input[type=checkbox] {
  accent-color: var(--accent);
  cursor: pointer;
}
.form-row-ios input[type=date]::-webkit-datetime-edit,
.form-row-ios input[type=time]::-webkit-datetime-edit { text-align: right; }

/* Trailing content wrapper inside an iOS row (e.g. number input + unit label). */
.form-row-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Compact number input that sizes to content instead of stretching. */
.form-row-ios input.form-row-num {
  flex: none;
  width: auto;
  max-width: 96px;
  text-align: right;
  margin-left: auto;
}
.form-row-unit {
  font-size: 0.8rem;
  color: var(--text-3);
  flex: none;
}

.form-row-textarea {
  padding: 12px 14px;
}
.form-row-textarea label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 7px;
}
.form-row-textarea textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text-2);
  font-size: 0.82rem;
  font-family: inherit;
  resize: vertical;
  min-height: 68px;
  line-height: 1.5;
}
.form-row-textarea textarea::placeholder { color: var(--text-3); }

/* Relevanz row */
.relevance-ios {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}
.relevance-ios input[type=range] {
  flex: 1;
  max-width: 100px;
  accent-color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.relevance-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  min-width: 20px;
  text-align: right;
}

/* ── Modal footer ────────────────────────────────────────────────────────── */
.modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px 20px;
  flex-shrink: 0;
  border-top: 1px solid var(--sep);
}
.btn-save {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.btn-save:hover { opacity: 0.85; }

.btn-cancel {
  background: var(--fill);
  color: var(--text-2);
  border: none;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
.btn-cancel:hover { background: var(--surface-3); }

.btn-folder {
  background: none;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.8;
  transition: opacity 0.12s;
}
.btn-folder:hover { opacity: 1; }
.btn-delete-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.btn-delete-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-delete-cancel {
  background: none;
  color: var(--text-3);
  border: none;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: color 0.12s, background 0.12s;
}
.btn-delete-cancel:hover { color: var(--text-1); background: var(--fill-2); }
.btn-delete-do {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: opacity 0.12s;
}
.btn-delete-do:hover { opacity: 0.88; }
.btn-delete-do:disabled { opacity: 0.5; cursor: default; }
.btn-delete {
  background: none;
  color: var(--red);
  border: none;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.75;
  transition: opacity 0.12s;
}
.btn-delete:hover { opacity: 1; }

/* ── Status History ─────────────────────────────────────────────────────── */
.history-list {
  display: flex;
  flex-direction: column;
  padding: 4px 0 0;
}
.history-empty {
  color: var(--text-3);
  font-size: 0.8rem;
  font-style: italic;
  padding: 6px 0 4px;
}
.history-item {
  display: flex;
  gap: 12px;
  position: relative;
}
.history-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px; top: 17px; bottom: -3px;
  width: 2px;
  background: var(--sep);
}
.history-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--sep);
}
.history-dot.dot-email {
  border-radius: 3px;
  font-size: 8px;
  display: flex; align-items: center; justify-content: center;
}
.history-dot.dot-incoming { background: var(--cyan); }
.history-dot.dot-outgoing { background: var(--emerald); }
.history-badge {
  font-size: 0.67rem; color: var(--text-3);
  border-radius: 4px; padding: 1px 6px;
}
.history-badge-incoming { background: var(--cyan-soft); }
.history-badge-outgoing { background: var(--emerald-soft); }
.history-content {
  padding-bottom: 13px;
  flex: 1;
  min-width: 0;
}
.history-status {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}
.history-sub {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-bottom: 3px;
}
.history-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.history-date {
  font-size: 0.71rem;
  color: var(--text-3);
}
.history-duration {
  font-size: 0.67rem;
  background: var(--fill);
  border-radius: 4px;
  padding: 1px 7px;
  white-space: nowrap;
}
.history-duration.is-current {
  color: var(--amber);
  font-weight: 600;
  background: var(--amber-soft);
}
/* E-Mail-Aktivitäten */
.history-item.is-email .history-icon {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  line-height: 1;
}
.history-betreff {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-betreff a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.history-betreff a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.history-betreff a::after {
  content: ' ↗';
  font-size: 0.65rem;
  opacity: 0.45;
}
.history-betreff a:hover::after {
  opacity: 1;
}
.history-vorschau {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 3px;
  font-style: italic;
}
/* "Mail loggen"-Formular */
.history-log-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--sep);
}
.history-log-form input, .history-log-form select {
  background: var(--surface-3);
  border: 1px solid var(--sep);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.78rem;
  color: var(--text);
}
.history-log-form .btn-row {
  display: flex; gap: 6px; justify-content: flex-end;
}
.history-log-form .btn-save {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 14px;
  font-size: 0.75rem;
  cursor: pointer;
}
.history-log-form .btn-cancel {
  background: none;
  border: 1px solid var(--sep);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-3);
}

/* ── Punkte ──────────────────────────────────────────────────────────────── */
.points-list { padding: 0; }

/* List row — mirrors the kontakt-item pattern: category badge inline with the
   topic, drag handle + actions revealed on hover, subtle hover background. */
.punkt-item { border-bottom: 1px solid var(--sep); }
.punkt-item:last-child { border-bottom: none; }
.punkt-item:not(.is-editing):hover { background: var(--surface-2); }
.punkt-view {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
}
.punkt-drag {
  flex-shrink: 0;
  width: 12px;
  text-align: center;
  cursor: grab;
  color: var(--text-3);
  opacity: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  user-select: none;
  transition: opacity 0.15s;
}
.punkt-view:hover .punkt-drag { opacity: 0.5; }
.punkt-drag:active { cursor: grabbing; }
.punkt-body { flex: 1; min-width: 0; }
.punkt-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.punkt-thema {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.punkt-notiz {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.punkt-actions {
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.punkt-view:hover .punkt-actions { opacity: 1; }
.punkt-del, .punkt-edit {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0 3px;
  line-height: 1.3;
  transition: color 0.15s;
}
.punkt-del:hover  { color: var(--red); }
.punkt-edit:hover { color: var(--text); }
.punkt-sortable-ghost  { opacity: 0.4; background: var(--surface-3); }
.punkt-sortable-chosen { background: var(--surface-2); }
.punkt-sortable-drag   { opacity: 0.9; }
/* Category icon — small round glyph badge (Information neutral, Frage accent).
   'i' / '?' mirror the annotation marker glyphs; full label is the tooltip. */
.punkt-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}
.punkt-badge-information { color: var(--text-3); background: var(--surface-3); font-style: italic; }
.punkt-badge-question    { color: var(--accent); background: var(--accent-soft); }
/* Category picker — labelled icon segmented control, identical in add + edit.
   Both options stay visible (icon + text), the active one is a raised pill, so
   the choice is self-explanatory and discoverable. */
.punkt-type-seg {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  padding: 2px;
  background: var(--surface-3);
  border-radius: 8px;
}
.punkt-type-seg button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-family: inherit;
  color: var(--text-3);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.punkt-type-seg button:hover { color: var(--text); }
.punkt-type-seg button.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}
.punkt-seg-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}
/* Edit form within a list row. */
.punkt-item.is-editing { padding: 8px 12px; }
.punkt-edit-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.punkt-item.is-editing input,
.punkt-item.is-editing textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-3);
  border: 1px solid var(--sep);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.78rem;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
  outline: none;
}
.punkt-item.is-editing input:focus,
.punkt-item.is-editing textarea:focus { border-color: var(--accent); }
.punkt-edit-btns {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.punkt-edit-btns .btn-save {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 14px;
  font-size: 0.75rem;
  cursor: pointer;
}
.punkt-edit-btns .btn-cancel {
  background: none;
  border: 1px solid var(--sep);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-3);
}
/* Live point count appended to the "Punkte" section label. */
.points-count {
  margin-left: 5px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
/* ── Shared list "add" affordance ────────────────────────────────────────────
   One integrated, full-width list row (Apple-style) tinted green so the "+"
   reads instantly as the add action, vs. the red ✕ delete. Shared across every
   modal list (Punkte, Kontakte, Gespräche, Dateien, Aktivität) so they all open
   their add form the same way. `.list-add-area` is the padded wrapper the form
   sits in, anchored at the bottom of the box (new items append). */
.list-add-area { padding: 8px 14px 4px; }
.list-add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  padding: 6px 12px;
  border: none;
  /* Separator via shadow (not border) so it doesn't eat into the border-box
     height — keeps the content band exactly 38px like the list rows. */
  box-shadow: inset 0 1px 0 var(--sep);
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--green);
  transition: background 0.15s;
}
.list-add-row:hover { background: var(--surface-2); }
/* Busy state — file upload in flight (the row is a <label> there). */
.list-add-row.is-busy { opacity: 0.6; cursor: wait; }
/* Circle + "+" live in ONE svg (see markup) so a single renderer rasterises
   them together. With the old split — CSS `background`/`border-radius` circle
   under a separate svg "+" — the two layers could land on slightly different
   sub-pixel grids at fractional positions, so the "+" drifted *relative* to the
   circle (reads as off-centre, esp. in Safari). Co-rendering removes that drift
   in every browser. `color` tints the circle (fill: currentColor); "+" is white. */
.list-add-ico {
  flex-shrink: 0;
  display: block;
  width: 16px;
  height: 16px;
  color: var(--green);
}
.list-add-ico svg { display: block; width: 16px; height: 16px; }
.points-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--sep);
}
.points-form input, .points-form textarea {
  background: var(--surface-3);
  border: 1px solid var(--sep);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.78rem;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}
.points-form .btn-row {
  display: flex; gap: 6px; justify-content: flex-end;
}
.points-form .btn-save {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 14px;
  font-size: 0.75rem;
  cursor: pointer;
}
.points-form .btn-cancel {
  background: none;
  border: 1px solid var(--sep);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-3);
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.milestone { border-left: 3px solid var(--amber); background: linear-gradient(90deg, var(--amber-soft), var(--surface) 40%); }
.toast.error { border-left: 3px solid var(--red); background: linear-gradient(90deg, var(--red-soft), var(--surface) 40%); }
.toast.has-action { display: inline-flex; align-items: center; gap: 14px; padding-right: 8px; pointer-events: auto; }
.toast.has-action.show { pointer-events: auto; }
.toast-action {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.toast-action:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.2); }

/* ── Card-Badges: Termin & Reminder ─────────────────────────────────────── */
.card-termin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 6px;
  padding: 2px 7px;
}
.card-reminder {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 6px;
  padding: 2px 7px;
}
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

/* „+N" overflow pill: how many badges are hiding behind the cap. Quiet by
   design — it's a count, not a Stufe-1 signal; hover reveals the texts. */
.card-badge-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 600;
  background: var(--fill);
  color: var(--text-3);
  border-radius: 4px;
  padding: 1px 6px;
  cursor: help;
}
.card.has-reminder {
  border-left: 3px solid var(--amber);
  padding-left: 9px;
}
.card-reminder-soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--fill);
  border-radius: 6px;
  padding: 2px 7px;
}
.followup-status-hint {
  font-size: 0.75rem;
  color: var(--text-3);
  padding: 2px 12px 8px;
}

/* ── Stellen-Check ───────────────────────────────────────────────────────── */
.card-check-offline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.67rem;
  font-weight: 600;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 4px;
  padding: 1px 6px;
}
.card-check-unklar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.67rem;
  background: var(--amber-soft);
  color: var(--amber);
  border-radius: 4px;
  padding: 1px 6px;
}
.card.has-check-offline {
  border-left: 3px solid var(--red);
  padding-left: 9px;
}
/* Blocker */
.card.is-blocked {
  border-left: 3px solid var(--red);
  padding-left: 9px;
}
/* Suggestion */
.card.has-suggestion {
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.card-suggestion {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.67rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
}
.card-blocker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.67rem;
  font-weight: 600;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.btn-check {
  background: var(--fill);
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-check:hover { background: var(--fill-2); color: var(--text); }
.btn-check:disabled { opacity: 0.5; cursor: default; }

/* ── Sync split-button + dropdown ─────────────────────────────────────────
   Consolidates the four manual triggers (Email Check / Job Check / Kalender
   / Stellen-Check) into one header affordance. Pill shape mirrors the old
   .btn-action so the header rhythm stays familiar; the dropdown carries the
   per-item label + „zuletzt"-line + per-item spinner. */
.sync-group { position: relative; }

.btn-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fill);
  border: none;
  border-radius: 20px;
  padding: 7px 12px 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.btn-sync:hover { background: var(--fill-2); color: var(--text); }
.btn-sync.is-open { background: var(--fill-2); color: var(--text); }
.btn-sync.is-busy { color: var(--accent); }
.btn-sync-icon { display: block; }
.btn-sync-icon.is-spinning { animation: sync-spin 1s linear infinite; }
.btn-sync-caret { margin-left: 2px; opacity: 0.7; }

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

.sync-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: var(--surface-2);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 4px;
  z-index: 100;
}

.sync-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  transition: background 0.12s;
}
.sync-menu-item:hover { background: var(--fill); }
.sync-menu-item:disabled { cursor: default; }
.sync-menu-item:disabled:hover { background: transparent; }

.sync-menu-icon { flex-shrink: 0; color: var(--text-2); }
.sync-menu-icon.is-spinning { color: var(--accent); animation: sync-spin 1s linear infinite; }

.sync-menu-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.sync-menu-label { font-size: 0.84rem; font-weight: 500; color: var(--text); }
.sync-menu-meta  { font-size: 0.7rem; color: var(--text-3); }

/* ── Results Modal ──────────────────────────────────────────────────────── */
.results-overlay { z-index: 600; }
.results-modal { width: 520px; }

.results-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-2);
  font-size: 0.9rem;
}
.results-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--fill-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.results-error {
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--red);
  font-size: 0.85rem;
}
.results-error strong { display: block; margin-bottom: 4px; }

.results-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  padding: 8px 0 20px;
}
.results-stat { text-align: center; }
.results-stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.results-stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.results-stat--error { color: var(--red); }

.results-list { margin-top: 4px; }
.results-list-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.results-list-title--error { color: var(--red); }

.results-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--fill);
  margin-bottom: 4px;
  font-size: 0.83rem;
}
.results-item--error { background: var(--red-soft); color: var(--red); }
.results-item--skipped { background: var(--fill); color: var(--text-2); }
.results-item--warning { background: var(--amber-soft, rgba(245, 158, 11, 0.12)); color: var(--text-2); }
.results-item-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  margin-left: auto;
}
.results-item-link:hover { text-decoration: underline; }
.results-item--stacked { align-items: flex-start; }
.results-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.results-item-text .results-item-company {
  white-space: normal;
  overflow-wrap: anywhere;
  flex-shrink: 1;
}
.results-item-reason {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.3;
}
.results-item-company { font-weight: 600; color: var(--text); flex-shrink: 0; }
.results-item-cls {
  font-size: 0.72rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  flex-shrink: 0;
}
.results-item-detail {
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.results-empty {
  text-align: center;
  color: var(--text-3);
  padding: 20px 0;
  font-size: 0.88rem;
}
.results-duration {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* Check-Ergebnis-Panel (ähnlich Email-Panel) */
.check-panel-overlay {
  position: fixed;
  inset: 0;
  background: var(--backdrop-tint);
  backdrop-filter: var(--backdrop-bokeh);
  -webkit-backdrop-filter: var(--backdrop-bokeh);
  z-index: 200;
  display: block;
}
.check-panel {
  position: fixed;
  top: 60px; right: 16px;
  width: 360px;
  max-height: calc(100vh - 80px);
  background: var(--surface-2);
  border: 1px solid var(--sep);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  z-index: 201;
  overflow: hidden;
}
.check-panel-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--sep);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.check-panel-title {
  font-size: 0.88rem;
  font-weight: 600;
}
.check-panel-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
}
.check-panel-summary {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--sep);
  display: flex;
  gap: 14px;
}
.check-sum-item { display: flex; align-items: center; gap: 4px; }
.check-panel-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}
.check-panel-entry {
  padding: 8px 16px;
  border-bottom: 1px solid var(--sep);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-panel-entry:last-child { border-bottom: none; }
.check-entry-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.check-entry-text { flex: 1; min-width: 0; }
.check-entry-company { font-size: 0.81rem; font-weight: 600; }
.check-entry-pos { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-archive-btn {
  flex-shrink: 0;
  align-self: center;
  background: none;
  border: 1px solid var(--sep);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.68rem;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.check-archive-btn:hover {
  background: var(--fill);
  color: var(--text-1);
  border-color: var(--text-3);
}

/* ── Icon-Buttons (Header Info-Panels) ───────────────────────────────────── */
.btn-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--fill);
  border: none;
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.btn-icon:hover { background: var(--fill-2); color: var(--text); }
.btn-icon svg { display: block; }
.btn-icon .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 14px;
  border: 2px solid var(--bg);
}
.badge-accent { background: var(--accent); }
.badge-amber  { background: var(--amber); }
.badge-red    { background: var(--red); }

/* ── Email-Panel ─────────────────────────────────────────────────────────── */
.email-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--backdrop-tint);
  backdrop-filter: var(--backdrop-bokeh);
  -webkit-backdrop-filter: var(--backdrop-bokeh);
  display: block;
}
.email-panel {
  position: absolute;
  top: 60px;
  right: 16px;
  width: 420px;
  max-height: 560px;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.email-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--sep);
}
.email-panel-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.email-panel-body {
  overflow-y: auto;
  padding: 12px;
  flex: 1;
}
.email-item {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.email-item:last-child { margin-bottom: 0; }
.email-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.email-item-cls {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.email-mark-all-btn {
  background: var(--fill);
  color: var(--text-2);
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
}
.email-mark-all-btn:hover { background: var(--fill-2); }
.email-mark-read-btn {
  margin-left: auto;
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--sep);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.email-mark-read-btn:hover { background: var(--green-soft); color: var(--green); border-color: var(--green); }

.cls-rejection    { background: var(--red-soft);   color: var(--red);   }
.cls-invitation   { background: var(--green-soft);  color: var(--green); }
.cls-offer        { background: var(--accent-soft); color: var(--accent); }
.cls-inquiry      { background: var(--amber-soft);  color: var(--amber); }
.cls-receipt_confirmation { background: var(--fill); color: var(--text-3); }
.cls-update       { background: var(--fill); color: var(--text-3); }

/* ── Suggestion-Panel ────────────────────────────────────────────────────── */
.suggestion-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--sep);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.suggestion-item-company {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
}
.suggestion-item-subject {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 4px;
}
.suggestion-item-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.suggestion-item-detail {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-bottom: 2px;
}
.suggestion-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.suggestion-accept-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.suggestion-accept-btn:hover { opacity: 0.85; }
.suggestion-dismiss-btn {
  background: var(--fill);
  color: var(--text-2);
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.suggestion-dismiss-btn:hover { background: var(--fill-2); }

/* ── Reminder-Panel ──────────────────────────────────────────────────────── */
.reminder-item {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 3px solid var(--amber);
}
.reminder-item:last-child { margin-bottom: 0; }
.reminder-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
.reminder-item-company {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.reminder-item-days {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 2px 8px;
  border-radius: 10px;
}
.reminder-item-position {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 3px;
}
.reminder-item-meta {
  font-size: 0.72rem;
  color: var(--text-3);
}
.reminder-open-btn {
  font-size: 0.72rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin-top: 5px;
  display: inline;
}

.email-item-company {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.email-item-subject {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-item-meta {
  font-size: 0.72rem;
  color: var(--text-3);
  display: flex;
  gap: 8px;
}
.email-panel-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
  padding: 32px 16px;
}

/* ── Inbox sections (Welle 10a fused panel) ─────────────────────────────
   One panel, three sections: Vorschläge / Nicht zugeordnet / Klassifiziert.
   Each section reuses the same wrapper + header shape; the section-count
   pill picks its colour per section so the eye groups the right items
   without the panel having to label-shout. */
.inbox-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sep);
}
.inbox-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.inbox-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.inbox-section-title { flex: 1; }
.inbox-section-count {
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.72rem;
}
.inbox-section--suggestions .inbox-section-count {
  background: var(--accent-soft); color: var(--accent);
}
.inbox-section--unassigned .inbox-section-count {
  background: var(--orange-soft, #fff4e0); color: var(--orange, #c77700);
}
.inbox-section--classified .inbox-section-count {
  background: var(--fill); color: var(--text-3);
}
.unassigned-item {
  background: var(--surface-2);
  border-left: 3px solid var(--orange, #c77700);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.unassigned-item:last-child { margin-bottom: 0; }
.unassigned-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.unassigned-item-sender {
  font-size: 0.78rem;
  color: var(--text-3);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unassigned-item-subject {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.unassigned-item-subject a { color: inherit; text-decoration: none; }
.unassigned-item-subject a:hover { text-decoration: underline; }
.unassigned-item-snippet {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.unassigned-item-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.unassigned-select {
  flex: 1;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--sep);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.78rem;
}
.unassigned-assign-btn {
  background: var(--accent, #1a73e8);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.unassigned-assign-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.unassigned-assign-btn:not(:disabled):hover { filter: brightness(1.08); }
.unassigned-dismiss-btn {
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--sep);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}
.unassigned-dismiss-btn:hover { color: var(--text-2); border-color: var(--text-3); }

/* Aussortierte (Decision = not_relevant) — quiet recovery surface for LLM
   false-negatives. Toggle is muted to discourage casual exploration; items
   keep the orange accent so the visual relationship to pending unassigned
   stays intact, just dimmed. */
.dismissed-toggle-row {
  margin: 12px 0 8px;
  text-align: left;
}
.dismissed-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dismissed-toggle-btn:hover { color: var(--text-2); }
.dismissed-toggle-btn.is-open { color: var(--text-2); }
.dismissed-toggle-count {
  background: var(--fill-2);
  color: var(--text-2);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.72rem;
}
.inbox-section--dismissed .unassigned-item {
  border-left-color: var(--text-3);
  opacity: 0.82;
}
.inbox-section--dismissed .unassigned-item:hover { opacity: 1; }

/* ── Wochenreport-Panel ──────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

.report-overlay {
  position: fixed; inset: 0;
  background: var(--backdrop-tint);
  backdrop-filter: var(--backdrop-bokeh);
  -webkit-backdrop-filter: var(--backdrop-bokeh);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5vh;
  overflow-y: auto;
}

.report-panel {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: min(520px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  margin-bottom: 5vh;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.report-header h3 { margin: 0; font-size: 1rem; }

.report-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.report-body { padding: 16px 20px 20px; }

/* KW-Header mit Navigation */
.report-tabs {
  display: flex; gap: 0; margin-bottom: 16px;
  border-bottom: 1.5px solid var(--fill);
}
.report-tab {
  padding: 6px 14px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-3); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex; align-items: center; gap: 5px;
}
.report-tab:hover { color: var(--text); }
.report-tab.active { color: var(--text); border-bottom-color: var(--text); }
.report-tab-count {
  font-size: 0.65rem; font-weight: 700; background: var(--fill);
  color: var(--text-2); padding: 1px 6px; border-radius: 8px; line-height: 1.3;
}
.report-kw-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.report-kw-center {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.report-kw {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
}
.report-kw-year {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 400;
}
.report-kw-range {
  font-size: 0.78rem;
  color: var(--text-3);
}
.report-kw-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
}
.report-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.report-nav-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-1);
}
.report-nav-btn--disabled,
.report-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Kennzahlen */
.report-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.report-metric {
  background: var(--surface-2, #f8f7f5);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.report-metric-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.1;
}
.report-metric-lbl {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.report-metric-delta {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}
.delta-up { color: var(--emerald); background: var(--emerald-soft); }
.delta-down { color: var(--red); background: var(--red-soft); }

/* Sections */
.report-section { margin-bottom: 18px; }
.report-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Pipeline */
.report-pipeline { display: flex; flex-direction: column; gap: 8px; }
.report-pipe-item {
  display: grid;
  grid-template-columns: auto 130px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}
.report-pipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.report-pipe-label { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-pipe-bar-wrap {
  height: 8px;
  background: var(--fill);
  border-radius: 4px;
  overflow: hidden;
}
.report-pipe-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.report-pipe-count { font-weight: 600; color: var(--text-1); min-width: 20px; text-align: right; }

/* Termine */
.report-termin {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background 0.15s;
}
.report-termin:hover { background: var(--surface-2, #f8f7f5); }
.report-termin-date {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.report-termin-company { color: var(--text-1); font-weight: 500; }
.report-termin-pos { color: var(--text-3); text-align: right; }

/* Nachfass */
.report-nachfass {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 18px;
}

.report-total-context {
  border-top: 1px solid var(--sep);
  padding-top: 12px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
}

.report-perspective {
  border-left: 2px solid var(--green);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 18px;
}

/* Aktivitäten-Timeline */
.report-list-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; cursor: pointer;
  font-size: 0.78rem; transition: background 0.15s;
}
.report-list-item:hover { background: var(--surface-2, #f8f7f5); }
.report-list-icon { font-size: 0.85rem; flex-shrink: 0; }
.report-list-company { font-weight: 600; color: var(--text); }
.report-list-pos { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-list-tag {
  font-size: 0.67rem; color: var(--text-3); background: var(--fill);
  padding: 1px 7px; border-radius: 4px; white-space: nowrap; margin-left: auto;
}
.report-section-count {
  font-weight: 500; color: var(--text-3); font-size: 0.67rem;
  background: var(--fill); padding: 1px 7px; border-radius: 10px;
  margin-left: 4px; vertical-align: middle;
}
.report-toggle-btn {
  display: block; width: 100%; padding: 6px 8px; margin-top: 2px;
  font-size: 0.72rem; color: var(--accent); background: none;
  border: none; border-radius: 8px; cursor: pointer;
  text-align: left; transition: background 0.15s;
}
.report-toggle-btn:hover { background: var(--accent-soft); }
.report-day-group + .report-day-group { margin-top: 14px; }
.report-day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--border-1, #e8e6e0);
  margin-bottom: 4px;
}
.report-day-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.report-day-count {
  font-size: 0.68rem;
  color: var(--text-3);
}

.report-cluster.is-multi {
  position: relative;
  padding-left: 10px;
  margin: 2px 0;
}
.report-cluster.is-multi::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border-1, #e8e6e0);
  border-radius: 1px;
}
.report-activity.is-cluster-child { padding-top: 3px; padding-bottom: 3px; }
.report-activity.is-cluster-child .report-act-content { gap: 0; }

.report-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-3);
  min-width: 0;
}
.report-status-pill .pill-from {
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-status-pill .pill-arrow { opacity: 0.5; flex-shrink: 0; }
.report-status-pill .pill-to {
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-status-pill.dir-backward .pill-arrow { color: #d97706; opacity: 0.8; }
.report-status-pill.dir-archive .pill-to { color: var(--text-3); }

.report-activity.is-merged { cursor: default; }
.report-activity.is-merged:hover { background: transparent; }
.report-merge-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--surface-2, #f0eee8);
  color: var(--text-2);
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  vertical-align: middle;
}
.report-merge-companies {
  color: var(--text-3);
  font-size: 0.66rem;
  margin-top: 1px;
  white-space: normal;
  line-height: 1.35;
}

.report-activity {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background 0.15s;
  align-items: center;
}
.report-activity:hover { background: var(--surface-2, #f8f7f5); }
.report-act-icon { font-size: 0.85rem; text-align: center; }
.report-act-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.report-act-company {
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-act-detail {
  color: var(--text-3);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-act-time {
  color: var(--text-3);
  font-size: 0.65rem;
  white-space: nowrap;
}

.report-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 0.8rem;
  padding: 16px 0;
}

/* ── Kontakte ────────────────────────────────────────────────────────────── */
.contacts-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 0.8rem;
  padding: 14px;
}

.kontakt-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #e5e4e2);
  transition: background 0.15s;
}
.kontakt-item:last-child { border-bottom: none; }
.kontakt-item:hover { background: var(--surface-2, #f8f7f5); }

.kontakt-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kontakt-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-1);
}
.kontakt-haupt-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kontakt-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.kontakt-item:hover .kontakt-actions { opacity: 1; }
.kontakt-edit-btn, .kontakt-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-3);
  transition: all 0.15s;
}
.kontakt-edit-btn:hover { background: var(--surface-2, #f8f7f5); color: var(--text-1); }
.kontakt-del-btn:hover { background: var(--red-soft); color: var(--red); }

.kontakt-rolle {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 2px;
}
.kontakt-details {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.kontakt-link {
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
.kontakt-link:hover { text-decoration: underline; }

.kontakt-notiz {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 4px;
  font-style: italic;
}

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contacts-form input,
.contacts-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--border, #e5e4e2);
  border-radius: 8px;
  background: var(--surface-2, #f8f7f5);
  color: var(--text-1);
  font-size: 0.8rem;
}
.kontakt-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-2);
  cursor: pointer;
}
.kontakt-checkbox input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

/* ── Files ────────────────────────────────────────────────────────────── */
.file-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #e5e4e2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.file-item:last-child { border-bottom: none; }
.file-item:hover { background: var(--surface-2, #f8f7f5); }

.file-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.file-name {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-info:hover .file-name { color: var(--accent); }

.file-meta {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 2px;
}

.file-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.file-item:hover .file-actions { opacity: 1; }

.file-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-3);
  transition: all 0.15s;
}
.file-del-btn:hover { background: var(--red-soft); color: var(--red); }

.files-dropzone {
  position: relative;
  transition: background 0.15s, outline-color 0.15s;
  outline: 2px dashed transparent;
  outline-offset: -2px;
}
.files-dropzone.drag-over {
  background: var(--surface-2, #f8f7f5);
  outline-color: var(--accent);
}

/* ── Avatar Menu (header profile dropdown) ───────────────────────────────── */
.header-group-end {
  gap: 10px;
}
.avatar-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 900;
}
.avatar-initials svg { display: block; color: var(--text-2); }
.avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--fill);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.15s;
  color: var(--text-2);
  font-family: inherit;
}
.avatar-btn:hover {
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-initials {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.avatar-initials-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--fill-2);
  border-radius: 50%;
  font-size: 0.84rem;
}
.avatar-dropdown {
  position: fixed;
  top: 56px;
  right: 16px;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 6px;
  z-index: 9999;
}
.avatar-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: calc(var(--radius) - 4px);
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}
.avatar-dropdown-header:hover { background: var(--fill); }
.avatar-dropdown-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.avatar-meta { min-width: 0; flex: 1; }
.avatar-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar-email {
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar-dropdown-sep {
  height: 1px;
  background: var(--sep);
  margin: 4px 2px;
}
.avatar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.avatar-dropdown-item:hover { background: var(--fill); color: var(--text); }
.avatar-dropdown-item svg { flex-shrink: 0; color: var(--text-3); }
.avatar-dropdown-item:hover svg { color: var(--text); }

/* ── Settings Modal (legacy) ────────────────────────────────────────────── */
.btn-settings {
  background: var(--fill);
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-settings:hover { background: var(--fill-2); color: var(--text); }
.btn-logout { text-decoration: none; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; }

/* Settings Page Layout */
.settings-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.settings-hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
.settings-hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.settings-hero p {
  font-size: 0.9rem;
  color: var(--text-3);
}
.settings-page-loading {
  text-align: center;
  color: var(--text-3);
  padding: 40px 0;
}
.settings-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.settings-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.settings-subsection { margin-bottom: 18px; }
.settings-subsection:last-of-type { margin-bottom: 0; }
.settings-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.settings-hint {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 10px;
}
.settings-input {
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}
.settings-input:focus {
  outline: none;
  border-color: var(--accent);
}
.settings-input-wide { flex: 1; }
.settings-input-sm { width: 70px; }
.settings-textarea {
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.5;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s;
}
.settings-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.settings-job-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.settings-remove-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
}
.settings-remove-btn:hover { color: var(--red); }
.settings-add-btn {
  background: none;
  border: 1px dashed var(--sep);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.75rem;
  color: var(--text-3);
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: border-color 0.15s, color 0.15s;
}
.settings-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.settings-add-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.settings-stations-paste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px dashed var(--sep);
  border-radius: var(--radius-sm);
  background: var(--surface-alt, transparent);
}
.settings-stations-paste-input {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  resize: vertical;
}
.settings-stations-paste .settings-add-btn { align-self: flex-start; margin-top: 0; }

.settings-station {
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-station-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.settings-station-role { flex: 1 1 200px; }
.settings-station-company { flex: 1 1 200px; }
.settings-station-at { color: var(--text-3); font-size: 0.85rem; }
.settings-station-sep { color: var(--text-3); }
.settings-station-date { width: 100px; }
.settings-station-location { flex: 1 1 140px; }
.settings-station-summary {
  width: 100%;
  font-family: inherit;
  font-size: 0.8rem;
  resize: vertical;
}

/* ── /cv — Lebenslauf timeline ────────────────────────────────────────── */
/* 640px column matches .settings-content / .settings-hero — the established
   width for subordinate pages, so navigating between them never shifts.
   `width: 100%` is load-bearing: <body> is a flex column, so without an
   explicit width the wrap shrink-wraps its content (narrow when the station
   list is empty, ~640 when populated). The explicit width pins it. */
.cv-wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 24px 140px; }

.cv-head { padding: 44px 0 0; }
.cv-head h1 { font-size: 1.65rem; font-weight: 680; margin: 0; letter-spacing: -0.01em; }
.cv-head p { color: var(--text-2); font-size: 0.9rem; margin: 7px 0 0; }

.cv-toolbar {
  display: flex; gap: 10px; align-items: center;
  margin: 24px 0 18px; flex-wrap: wrap;
}
.cv-btn {
  font-family: inherit; cursor: pointer; border-radius: var(--radius-sm);
  font-size: 0.82rem; padding: 9px 16px; border: 1px solid var(--sep);
  background: var(--surface); color: var(--text-1);
  transition: border-color .15s, color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.cv-btn:hover { border-color: var(--accent); color: var(--accent); }
.cv-btn.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.cv-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cv-btn-primary:hover { background: #2f6fd6; border-color: #2f6fd6; color: #fff; }
.cv-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cv-btn:disabled:hover { border-color: var(--sep); color: var(--text-1); }
.cv-btn-primary:disabled:hover { background: var(--accent); color: #fff; }

/* paste panel — full-column block below the toolbar, toggled by the button */
.cv-paste-panel {
  margin: 0 0 18px; padding: 14px;
  border: 1px solid var(--sep); border-radius: var(--radius); background: var(--surface);
}
.cv-paste-input {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 104px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem;
  line-height: 1.5; padding: 11px 12px; color: var(--text-1);
  border: 1px solid var(--sep); border-radius: var(--radius-sm); background: var(--surface-2);
}
.cv-paste-input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.cv-paste-hint { font-size: 0.75rem; color: var(--text-3); margin: 9px 0 0; }
.cv-paste-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

.cv-section {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 16px;
}

/* timeline — vertical spine with a node per station */
.cv-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.cv-timeline::before {
  content: ""; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--sep) 55%);
  border-radius: 2px;
}
.cv-node { position: relative; padding-bottom: 28px; }
.cv-node:last-child { padding-bottom: 0; }
.cv-node::before {
  content: ""; position: absolute; left: -28px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box;
  background: var(--surface); border: 2.5px solid var(--text-3);
}
.cv-node.is-current::before {
  border-color: var(--accent); background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.cv-period {
  font-size: 0.7rem; font-weight: 650; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 7px;
}
.cv-node.is-current .cv-period { color: var(--accent); }

.cv-card {
  background: var(--surface); border-radius: var(--radius); padding: 15px 17px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.035);
  transition: box-shadow .15s;
}
.cv-card.is-editing { box-shadow: 0 0 0 2px var(--accent); }

.cv-card-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.cv-role { font-size: 1.04rem; font-weight: 650; margin: 0; line-height: 1.3; }
.cv-org { font-size: 0.86rem; color: var(--text-2); margin-top: 3px; }
.cv-org-name { font-weight: 550; color: var(--text-1); }
.cv-loc { color: var(--text-3); }
.cv-summary { font-size: 0.85rem; line-height: 1.6; color: var(--text-2); margin: 9px 0 0; }

.cv-current-pill {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; margin-top: 8px;
}

.cv-actions { display: flex; gap: 2px; flex: 0 0 auto; }
.cv-icon-btn {
  background: none; border: none; cursor: pointer; color: var(--text-3);
  padding: 5px; border-radius: 6px; display: inline-flex;
  transition: color .15s, background .15s;
}
.cv-icon-btn:hover { color: var(--accent); background: var(--bg-hover); }
.cv-icon-btn.cv-icon-danger:hover { color: var(--red); }

/* inline edit form */
.cv-field { margin-bottom: 11px; }
.cv-field label {
  display: block; font-size: 0.67rem; font-weight: 650; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 4px;
}
.cv-field input, .cv-field textarea {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 0.88rem;
  padding: 8px 11px; border: 1px solid var(--sep); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-1);
}
.cv-field textarea { resize: vertical; line-height: 1.5; }
.cv-field input:focus, .cv-field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
}
.cv-field-row { display: flex; gap: 11px; }
.cv-field-row .cv-field { flex: 1; min-width: 0; }
.cv-edit-actions {
  display: flex; justify-content: space-between; align-items: center; margin-top: 14px;
}
.cv-link-danger {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.8rem; color: var(--text-3); padding: 6px 4px;
}
.cv-link-danger:hover { color: var(--red); }

.cv-empty {
  text-align: center; padding: 56px 24px; color: var(--text-3);
  font-size: 0.88rem; line-height: 1.6;
}

.settings-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
.settings-save-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.settings-save-btn:hover { opacity: 0.85; }
.settings-save-btn:disabled { opacity: 0.5; cursor: default; }

/* Dirty Bar (unified save for all settings sections) */
.settings-dirty-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 20px;
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 900;
}
.settings-dirty-bar.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.settings-dirty-label {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}
.settings-dirty-actions {
  display: flex;
  gap: 8px;
}
.settings-dirty-discard {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.settings-dirty-discard:hover { color: var(--text-1); background: var(--fill-2); }
.settings-dirty-discard:disabled { opacity: 0.5; cursor: default; }
.settings-dirty-save {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.settings-dirty-save:hover { opacity: 0.88; }
.settings-dirty-save:disabled { opacity: 0.5; cursor: default; }

/* ── Share link (guest) ────────────────────────────────────────────────── */
.share-header {
  background: var(--surface);
  border-bottom: 1px solid var(--sep);
  padding: 14px 24px;
}
.share-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.share-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}
.share-subtitle {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
}
.share-readonly-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fill-2);
  color: var(--text-3);
}
.share-board { padding: 18px 24px 40px; }
.share-card { cursor: default; }
.share-substatus {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.share-empty {
  font-size: 0.75rem;
  color: var(--text-3);
  padding: 8px 0 2px;
  text-align: center;
}
.share-loading {
  text-align: center;
  color: var(--text-3);
  padding: 60px 20px;
}
.share-unlock-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 280px;
  margin: 24px auto 0;
}
.share-unlock-form input {
  padding: 10px 14px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
}
.share-unlock-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.share-unlock-form button {
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.share-unlock-form button:hover { opacity: 0.9; }

/* ── Share link (owner card on /profile) ─────────────────────────────── */
.profile-share-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.profile-share-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--text-3);
}
.profile-share-form input {
  padding: 8px 12px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-family: inherit;
  background: var(--surface);
}
.profile-share-form input:focus { outline: none; border-color: var(--accent); }
/* Higher specificity than the base `.profile-btn` block below: that rule is
   defined later in the file with equal (0,1,0) specificity, so a plain
   `.profile-btn-secondary` would lose the background/color cascade and render
   as a dark primary button — leaving white text on the light hover background
   (effectively invisible). `.profile-btn.profile-btn-secondary` (0,2,0) wins. */
.profile-btn.profile-btn-secondary {
  background: var(--fill-2);
  color: var(--text-2);
}
.profile-btn.profile-btn-secondary:hover {
  opacity: 1;
  background: var(--fill);
  color: var(--text-1);
}
.profile-share-status { display: flex; flex-direction: column; gap: 12px; }
.profile-share-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 0.8rem;
}
.profile-share-meta > div { color: var(--text-3); }
.profile-share-meta strong { color: var(--text-1); font-weight: 600; margin-left: 4px; }
.profile-share-actions { display: flex; gap: 8px; align-items: center; }

/* ── Meetings ──────────────────────────────────────────────────────────── */

.meetings-empty {
  padding: 14px;
  color: var(--text-3);
  font-size: 0.8rem;
}

.meeting-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #e5e4e2);
  transition: background 0.15s;
}
.meeting-item:last-child { border-bottom: none; }
.meeting-item:hover { background: var(--surface-2, #f8f7f5); }

.meeting-item.is-next {
  border-left: 3px solid var(--green);
  padding-left: 11px;
}
.meeting-item.is-past {
  opacity: 0.7;
}

.meeting-collapsed {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 2px 0;
}
.meeting-collapsed:hover { opacity: 1; }
.meeting-expand {
  margin-left: auto;
  color: var(--text-3);
  font-size: 0.7rem;
}

.meeting-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.meeting-round-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2, #f0eeeb);
  padding: 2px 8px;
  border-radius: 4px;
}
.meeting-next-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meeting-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.meeting-item:hover .meeting-actions { opacity: 1; }

.meeting-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-3);
  transition: all 0.15s;
}
.meeting-action-btn:hover { background: var(--surface-2, #f8f7f5); color: var(--text-1); }
.meeting-action-btn.del:hover { background: var(--red-soft); color: var(--red); }

.meeting-datetime {
  font-size: 0.8rem;
  color: var(--text-1);
  font-weight: 500;
}

.meeting-location {
  font-size: 0.72rem;
  color: var(--text-2);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.meeting-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.72rem;
  word-break: break-all;
}
.meeting-link:hover { text-decoration: underline; }

.meeting-meta {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 3px;
}

.meeting-notes {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 4px;
  font-style: italic;
  white-space: pre-line;
}

.meeting-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.meeting-date-short {
  font-size: 0.75rem;
  color: var(--text-2);
}

.meetings-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meetings-form input,
.meetings-form select,
.meetings-form textarea {
  font-size: 0.8rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text-1);
  font-family: inherit;
}
.meetings-form textarea { resize: vertical; }
.meetings-form select { cursor: pointer; }

/* ── Annotations Page ──────────────────────────────────────────────── */

.ann-page-body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.ann-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ann-count {
  font-size: 0.72rem;
  color: var(--text-3);
}
.ann-extract-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.ann-extract-btn:hover { opacity: 0.9; }
.ann-extract-btn-secondary {
  background: var(--fill);
  color: var(--text-2);
  padding: 6px 10px;
}
.ann-extract-btn-secondary:hover { background: var(--fill-2); }
.ann-loading-indicator { font-size: 0.78rem; color: var(--text-3); }

/* Body: two columns */
.ann-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 32px 0 64px;
}

/* Reading column (centered) with right-side gutter for marker symbols */
.ann-reading {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.ann-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 0.82rem;
  padding: 40px 0;
  justify-content: center;
}
.ann-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--sep);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ann-spin 0.8s linear infinite;
}
@keyframes ann-spin { to { transform: rotate(360deg); } }

/* Job posting content */
.ann-section {
  margin-bottom: 32px;
}
.ann-section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-1);
  cursor: text;
  user-select: text;
}
.ann-section-body p {
  margin: 0 0 0.85em;
}
.ann-section-body p:last-child { margin-bottom: 0; }
.ann-section-body ul, .ann-section-body ol {
  margin: 0.3em 0 0.85em;
  padding-left: 1.1em;
  list-style: none;
}
.ann-section-body li {
  margin-bottom: 0.35em;
  padding-left: 0.6em;
  position: relative;
}
.ann-section-body li::before {
  content: "–";
  position: absolute;
  left: -0.9em;
  color: var(--text-3, #999);
  font-weight: 400;
}
.ann-section-body li:last-child { margin-bottom: 0; }
.ann-section-body ol { list-style: decimal; }
.ann-section-body ol li::before { content: none; }
.ann-section-body strong { font-weight: 600; }
.ann-section-body em { font-style: italic; color: var(--text-2, #555); }
.ann-section-body h2 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 1.2em 0 0.4em;
  color: var(--text-1);
}
.ann-section-body h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1em 0 0.3em;
  color: var(--text-2, #555);
}
.ann-section-body code {
  font-size: 0.85em;
  padding: 0.15em 0.35em;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
}
.ann-section-body blockquote {
  margin: 0.5em 0 0.85em;
  padding: 0.4em 0 0.4em 1em;
  border-left: 3px solid var(--sep);
  color: var(--text-2, #555);
  font-style: italic;
}

/* Highlights */
.ann-hl {
  border-radius: 2px;
  padding: 1px 0;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.ann-hl:hover { box-shadow: 0 0 0 2px rgba(0,0,0,0.08); }
.ann-hl-erfahrung  { background: rgba(16, 185, 129, 0.18); }
.ann-hl-interessant { background: rgba(14, 165, 233, 0.15); }
.ann-hl-frage      { background: rgba(59, 130, 246, 0.15); }
.ann-hl-warnsignal { background: rgba(217, 119, 6, 0.18); }
.ann-hl-pulse {
  animation: ann-pulse 1.2s ease-out;
}
@keyframes ann-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  70%  { box-shadow: 0 0 0 6px rgba(59,130,246,0); }
  100% { box-shadow: none; }
}

/* Type dots (still used in selection popup) */
.ann-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ann-dot-erfahrung   { background: var(--emerald); }
.ann-dot-interessant { background: var(--cyan); }
.ann-dot-frage       { background: var(--accent); }
.ann-dot-warnsignal  { background: var(--amber); }

/* Marginal symbol layer (right of reading column) */
.ann-margin-layer {
  position: absolute;
  top: 0;
  left: calc(100% - 32px);
  width: 0;
  pointer-events: none;
}
.ann-marker-group {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  pointer-events: auto;
  transform: translateY(2px);
}
.ann-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--sep);
  background: var(--surface);
  color: var(--text-2);
  transition: transform 0.12s, box-shadow 0.12s;
  padding: 0;
}
.ann-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.ann-marker-erfahrung   { color: var(--emerald); border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.08); }
.ann-marker-interessant { color: var(--cyan); border-color: rgba(14,165,233,0.4); background: rgba(14,165,233,0.08); }
.ann-marker-frage       { color: var(--accent); border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.08); }
.ann-marker-warnsignal  { color: var(--amber); border-color: rgba(217,119,6,0.4); background: rgba(217,119,6,0.08); }

/* Hover popover */
.ann-popover {
  position: absolute;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ann-popover-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border-left: 3px solid transparent;
}
.ann-popover-item + .ann-popover-item { margin-top: 0; }
.ann-card-erfahrung   { border-left-color: var(--emerald); }
.ann-card-interessant { border-left-color: var(--cyan); }
.ann-card-frage       { border-left-color: var(--accent); }
.ann-card-warnsignal  { border-left-color: var(--amber); }

.ann-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.ann-type-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
}
.ann-badge-erfahrung   { color: var(--emerald); background: rgba(16,185,129,0.1); }
.ann-badge-interessant { color: var(--cyan); background: var(--cyan-soft); }
.ann-badge-frage       { color: var(--accent); background: var(--accent-soft); }
.ann-badge-warnsignal  { color: var(--amber); background: rgba(217,119,6,0.1); }

.ann-card-actions {
  display: flex;
  gap: 2px;
}
.ann-card-actions button {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.ann-card-actions button:hover { color: var(--text-1); background: var(--fill); }

.ann-card-text {
  font-size: 0.78rem;
  color: var(--text-1);
  line-height: 1.45;
  margin-bottom: 4px;
}
.ann-card-comment {
  font-size: 0.75rem;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 4px;
}
.ann-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ann-card-date {
  font-size: 0.65rem;
  color: var(--text-3);
}
.ann-btn-to-point {
  font-size: 0.65rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.ann-btn-to-point:hover { opacity: 0.8; }
.ann-point-linked {
  font-size: 0.65rem;
  color: var(--emerald);
}

/* Edit form inside card */
.ann-card-edit { display: flex; flex-direction: column; gap: 6px; }
.ann-card-edit-type {
  display: flex;
  gap: 4px;
}
.ann-card-edit-type button {
  font-size: 0.68rem;
  padding: 3px 8px;
  border: 1px solid var(--sep);
  border-radius: 4px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.ann-card-edit-type button.active {
  background: var(--text-1);
  color: var(--surface);
  border-color: var(--text-1);
}
.ann-card-edit textarea {
  font-size: 0.75rem;
  padding: 6px 8px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-1);
  font-family: inherit;
  resize: vertical;
}
.ann-card-edit-actions {
  display: flex;
  gap: 6px;
}
.ann-btn-save {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.ann-btn-cancel {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--fill);
  color: var(--text-2);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Empty states */
.ann-empty {
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
  padding: 24px 16px;
}
.ann-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-3);
}
.ann-empty-icon { font-size: 2.4rem; }
.ann-empty-state h3 {
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 600;
}
.ann-empty-state p {
  font-size: 0.8rem;
  max-width: 320px;
  text-align: center;
  line-height: 1.5;
}
.ann-empty-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ann-manual-link {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 4px;
}
.ann-manual-link:hover { color: var(--text-2); }
.ann-manual-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 65ch;
}
.ann-manual-form h3 {
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 600;
}
.ann-manual-form p {
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
}
.ann-manual-textarea {
  width: 100%;
  font-size: 0.78rem;
  padding: 12px;
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-1);
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
}
.ann-manual-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ann-manual-editor {
  width: 100%;
  min-height: 300px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px 24px;
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: text;
}
.ann-manual-editor:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ann-manual-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-3, #999);
  pointer-events: none;
}
.ann-manual-actions {
  display: flex;
  gap: 8px;
}

/* Selection popup */
.ann-selection-popup {
  position: absolute;
  z-index: 650;
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}
.ann-popup-types {
  display: flex;
  gap: 4px;
}
.ann-popup-type {
  font-size: 0.72rem;
  padding: 5px 10px;
  border: 1px solid var(--sep);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.ann-popup-type:hover { background: var(--fill); }
.ann-popup-comment {
  font-size: 0.75rem;
  padding: 6px 8px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-1);
  font-family: inherit;
  resize: none;
}

/* ── Landing Page ───────────────────────────────────────────────────────── */
.landing-body {
  background: var(--bg);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  /* Always reserve the scrollbar gutter so the centered content keeps a
     constant width whether or not the page is tall enough to scroll. */
  scrollbar-gutter: stable;
  height: auto;
  position: relative;
}
.landing-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 720px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(40% 45% at 30% 30%, rgba(217,119,6,0.12), transparent 70%),
    radial-gradient(45% 50% at 70% 40%, rgba(59,130,246,0.08), transparent 70%),
    radial-gradient(60% 60% at 50% 55%, rgba(245,230,210,0.55), transparent 75%);
  filter: blur(4px);
}
.landing-body > nav,
.landing-body > section,
.landing-body > footer { position: relative; z-index: 1; }

/* ── Topnav (slim nav for subordinate pages) ─────────────────────────────── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sep);
  position: relative;
  z-index: 50;
}
.topnav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topnav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.topnav-back:hover { background: var(--fill); color: var(--text); }
.topnav-back svg { display: block; }
.topnav-sep { color: var(--text-3); font-size: 0.82rem; }
.topnav-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topnav-sep-inline { margin: 0 4px; }

.landing-nav {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.landing-nav-brand {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
  transition: opacity 0.15s;
}
.landing-nav-brand:hover { opacity: 0.75; }
.landing-nav-user {
  font-size: 0.85rem;
  color: var(--text-2);
}
.landing-nav-link {
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.landing-nav-link:hover { color: var(--text-1); }
.landing-nav-logout { color: var(--text-3); }

.landing-nav + .landing-hero { padding-top: 40px; }

.landing-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}
.landing-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.landing-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.landing-tagline {
  font-size: 1.2rem;
  color: var(--text-2);
  margin-top: 12px;
}
.landing-subtitle {
  font-size: 1rem;
  color: var(--text-3);
  margin-top: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.landing-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 32px;
  background: var(--text-1);
  color: var(--surface);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.15s;
}
.landing-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.landing-hero-visual {
  margin: 56px auto 0;
  max-width: 440px;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.08)) drop-shadow(0 4px 10px rgba(0,0,0,0.04));
}
.landing-hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.landing-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.landing-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.landing-section-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.landing-section h2 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin: 0;
}
.landing-section-intro {
  font-size: 1.05rem;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 600px;
  line-height: 1.55;
}

.landing-grid {
  display: grid;
  gap: 16px;
}
.landing-grid-1 { grid-template-columns: 1fr; }
.landing-grid-2 { grid-template-columns: 1fr 1fr; }

.landing-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.landing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
}
.landing-card-icon {
  color: var(--amber);
  margin-bottom: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--amber-soft);
  border-radius: 10px;
}
.landing-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.landing-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

.landing-closing {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  text-align: center;
}
.landing-closing h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.landing-closing p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin: 0 auto;
  max-width: 440px;
}

.landing-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  border-top: 1px solid var(--sep);
}
.landing-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.landing-footer-col-brand { max-width: 440px; }
.landing-footer-brand {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.landing-footer-tagline {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0;
  line-height: 1.55;
}
.landing-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.landing-footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.landing-footer-links a {
  font-size: 0.88rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.landing-footer-links a:hover { color: var(--text-1); }
.landing-footer-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--sep);
  font-size: 0.78rem;
  color: var(--text-3);
}
.landing-footer-sep { opacity: 0.6; }
.landing-footer-meta a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.landing-footer-meta a:hover { color: var(--text-1); }

/* Legal pages (Impressum, Datenschutz) — static content in one column, grouped
   by proximity. No card: the content IS the page, not a module on it. Spacing
   carries the grouping — the label sits tight to its value, a wider gap separates
   the field groups. Column width + horizontal padding match .landing-nav so the
   heading and footer rule align under the brand. */
/* The .landing-body is a centering flex column whose children carry margin:0 auto,
   so without an explicit width they shrink-wrap to content and only share a center
   axis (ragged left edges). .legal-body pins nav, content and footer to one 640px
   column so all three share the same left/right edge. Scoped so the landing and
   login pages keep their shrink-wrapped centered nav. */
.legal-body > .landing-nav { width: 100%; }
.legal-page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-page h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.legal-lede {
  font-size: 0.92rem;
  color: var(--text-3);
  margin: 0 0 40px;
}
.legal-group + .legal-group { margin-top: 28px; }
.legal-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin: 0 0 6px;
}
.legal-value {
  font-size: 0.95rem;
  color: var(--text-1);
  line-height: 1.65;
  font-style: normal;
  margin: 0;
}
.legal-value a {
  color: var(--amber);
  text-decoration: none;
}
.legal-value a:hover { text-decoration: underline; }
.legal-footer {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  border-top: 1px solid var(--sep);
  font-size: 0.78rem;
  color: var(--text-3);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.legal-footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.legal-footer a:hover { color: var(--text-1); }

/* Prose for longer legal documents (Datenschutz). Scoped to .legal-section so the
   page lede, the responsible-party block and the disclaimer keep their own styles. */
.legal-section { margin-top: 36px; }
.legal-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.legal-section p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 12px;
}
.legal-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section li {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.6;
}
.legal-section strong { color: var(--text-1); font-weight: 600; }
.legal-note {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.6;
}
.legal-disclaimer {
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* Login page */

.login-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 28px;
  background: var(--surface);
  color: var(--text-1);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s;
  cursor: pointer;
}
.login-google-btn:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.login-google-btn svg { width: 20px; height: 20px; }

.login-error {
  margin-top: 24px;
  padding: 12px 16px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Profile Page */

.profile-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.profile-hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
.profile-hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.profile-hero p {
  font-size: 0.9rem;
  color: var(--text-3);
}

.profile-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.profile-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* User info */
.profile-user {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 1.2rem;
}
.profile-user-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}
.profile-user-email {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* Google connection */
.profile-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.profile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-dot.connected { background: var(--green); }
.profile-dot.disconnected { background: var(--red); }
.profile-status-text {
  font-size: 0.9rem;
  color: var(--text-2);
}
.profile-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-scope-tag {
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--surface-3);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Token create form */
.profile-token-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.profile-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text-1);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.profile-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.profile-btn {
  padding: 8px 20px;
  background: var(--text-1);
  color: var(--surface);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.profile-btn:hover { opacity: 0.85; }
.profile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Render `<a class="profile-btn">` download links identically to the button form. */
a.profile-btn { display: inline-block; text-decoration: none; text-align: center; }

/* Newly created token (one-time display) */
.profile-new-token {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.profile-new-token-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 6px;
}
.profile-new-token-value {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-new-token-value code {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-1);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.profile-copy-btn {
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.profile-copy-btn:hover { background: var(--surface-3); }

/* Token list */
.profile-token-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-token-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-3);
}
.profile-token-row:last-child { border-bottom: none; }
.profile-token-info { flex: 1; }
.profile-token-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-1);
}
.profile-token-meta {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
}
.profile-revoke-btn {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
}
.profile-revoke-btn:hover {
  color: var(--red);
  border-color: var(--red);
}
.profile-revoke-btn.confirming {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.profile-empty {
  font-size: 0.85rem;
  color: var(--text-3);
  padding: 8px 0;
}

/* AI Actions */
.ai-actions-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--surface-3);
  font-size: 0.85rem;
  color: var(--text-2);
}
.ai-actions-stats span { color: var(--text-3); margin-right: 4px; }
.ai-actions-stats strong { color: var(--text-1); font-weight: 500; }

.ai-actions-list {
  display: flex;
  flex-direction: column;
}
.ai-action-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-3);
  font-size: 0.85rem;
}
.ai-action-row:last-child { border-bottom: none; }
.ai-action-time {
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ai-action-what {
  color: var(--text-1);
  min-width: 0;
}
.ai-action-type { font-weight: 500; }
.ai-action-app { color: var(--text-3); }
.ai-action-cost {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ai-action-error .ai-action-time,
.ai-action-error .ai-action-what,
.ai-action-error .ai-action-type,
.ai-action-error .ai-action-app { color: var(--red); }
.ai-action-err-label { color: var(--red); font-weight: 500; }

/* Multi-action run: the header behaves like a single row but is also a
   button. Strip the default browser button styling so it lines up with the
   .ai-action-row grid above. */
.ai-action-group {
  border-bottom: 1px solid var(--surface-3);
}
.ai-action-group:last-child { border-bottom: none; }
.ai-action-group-header {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 0.85rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.ai-action-group-header:hover { background: var(--surface-2); }
.ai-action-group-caret {
  color: var(--text-3);
  font-size: 0.75rem;
  width: 0.9em;
  display: inline-block;
}
.ai-action-group-error .ai-action-time,
.ai-action-group-error .ai-action-type,
.ai-action-group-error .ai-action-app { color: var(--red); }
.ai-action-sub-loading {
  padding: 8px 0 8px 28px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.ai-action-sub-list {
  padding-left: 28px;
  border-top: 1px dashed var(--surface-3);
}
.ai-action-sub-row { border-bottom: 1px dashed var(--surface-3); }
.ai-action-sub-list .ai-action-row:last-child { border-bottom: none; }


@media (max-width: 600px) {
  .landing-hero { padding: 70px 20px 60px; }
  .landing-hero h1 { font-size: 1.9rem; }
  .landing-hero-visual { margin-top: 40px; }
  .landing-section { padding: 0 20px 72px; }
  .landing-grid-2 { grid-template-columns: 1fr; }
  .landing-closing { padding: 24px 20px 72px; }
  .landing-footer { padding: 40px 20px 40px; }
  .landing-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .landing-glow { width: 800px; height: 540px; }

  .profile-hero { padding: 40px 20px 24px; }
  .profile-content { padding: 0 20px 60px; }
  .profile-token-form { flex-direction: column; }

  .settings-hero { padding: 40px 20px 24px; }
  .settings-content { padding: 0 20px 60px; }
}

/* ── Overlay accommodation transitions ──────────────────────────────────────
   Placed at the end so they override the per-overlay background/backdrop-filter
   rules defined earlier. Enter ~320ms ease-out (active focus lock); leave
   ~220ms ease-in (passive release), mimicking the eye's asymmetric accommodation. */
.overlay-accom-enter,
.overlay-accom-leave {
  transition: opacity 280ms ease-out,
              backdrop-filter 320ms ease-out,
              -webkit-backdrop-filter 320ms ease-out,
              background-color 320ms ease-out;
}
.overlay-accom-leave {
  transition: opacity 180ms ease-in,
              backdrop-filter 220ms ease-in,
              -webkit-backdrop-filter 220ms ease-in,
              background-color 220ms ease-in;
}
.overlay-accom-enter-start,
.overlay-accom-leave-end {
  opacity: 0;
  background-color: var(--backdrop-tint-rest);
  backdrop-filter: var(--backdrop-bokeh-rest);
  -webkit-backdrop-filter: var(--backdrop-bokeh-rest);
}
.overlay-accom-enter-end,
.overlay-accom-leave-start {
  opacity: 1;
  background-color: var(--backdrop-tint);
  backdrop-filter: var(--backdrop-bokeh);
  -webkit-backdrop-filter: var(--backdrop-bokeh);
}

/* ── Cover Letter Editor (Welle 9a) ──────────────────────────────────── */

.cl-body { display: flex; }
.cl-content {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  overflow-y: auto;
}
.cl-col-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.cl-editor {
  width: 52%;
  min-width: 420px;
  border-left: 1px solid var(--sep);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cl-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sep);
  background: var(--surface);
}
.cl-toolbar-right {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.cl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cl-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cl-btn-primary {
  background: var(--accent);
  color: #fff;
}
.cl-btn-primary:not(:disabled):hover { opacity: 0.92; }
.cl-btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--sep);
}
.cl-btn-ghost:not(:disabled):hover {
  background: var(--fill);
  color: var(--text-1);
}
.cl-btn-danger {
  background: var(--red, #dc2626);
  color: #fff;
}
.cl-btn-danger:not(:disabled):hover { opacity: 0.92; }
.cl-textarea {
  flex: 1;
  border: none;
  outline: none;
  padding: 28px 32px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-1);
  background: transparent;
  resize: none;
}
.cl-textarea::placeholder { color: var(--text-3); }
.cl-hint {
  padding: 10px 20px;
  font-size: 0.75rem;
  color: var(--text-3);
  border-top: 1px solid var(--sep);
  background: var(--fill);
}
.cl-hint a { color: var(--accent); text-decoration: none; }
.cl-hint a:hover { text-decoration: underline; }
.cl-save-state {
  font-size: 0.72rem;
  color: var(--text-3);
}
.cl-confirm {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px;
}
.cl-confirm-card {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  max-width: 360px;
  text-align: center;
}
.cl-confirm-text {
  font-size: 0.9rem;
  color: var(--text-1);
  margin-bottom: 16px;
}
.cl-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.cl-empty-jobs {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  color: var(--text-2);
}
.cl-empty-jobs h3 {
  font-size: 1.05rem;
  margin: 12px 0 8px;
  color: var(--text-1);
}
.cl-empty-jobs p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-3);
  margin-bottom: 18px;
}

/* ── Meeting Mode ───────────────────────────────────────────────────────── */
.mm-wrapper { display: flex; flex-direction: column; height: 100vh; }
.mm-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.mm-content { flex: 1; overflow-y: auto; padding: 32px 40px; }

.mm-sidebar {
  width: 52%;
  min-width: 420px;
  border-left: 1px solid var(--sep);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mm-qa {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--sep);
}
.mm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 6px;
  gap: 8px;
}
.mm-seed-btn { font-size: 0.74rem; padding: 5px 10px; }

.mm-q-list { flex: 1; overflow-y: auto; padding: 6px 20px 12px; }
.mm-q-item {
  background: var(--fill);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--sep);
}
.mm-q-head { display: flex; align-items: center; gap: 6px; }
.mm-q-topic {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
  padding: 2px 0;
  min-width: 0;
}
.mm-q-topic:focus { outline: 1px solid var(--accent); border-radius: 4px; padding: 2px 6px; }
.mm-q-del {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.78rem;
}
.mm-q-del:hover { color: var(--red, #dc2626); }
.mm-q-answer {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--surface);
  resize: vertical;
  min-height: 38px;
}
.mm-q-answer:focus { outline: none; border-color: var(--accent); }

.mm-q-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.5;
}
.mm-q-empty em { color: var(--text-2); font-style: normal; font-weight: 500; }

.mm-q-add {
  display: flex;
  gap: 6px;
  padding: 8px 20px 14px;
  border-top: 1px solid var(--sep);
  background: var(--surface);
}
.mm-q-add input {
  flex: 1;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-family: inherit;
}
.mm-q-add input:focus { outline: none; border-color: var(--accent); }

.mm-notes {
  flex: 0 0 32%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
}
.mm-notes-area {
  flex: 1;
  border: 1px solid var(--sep);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--surface);
  resize: none;
  outline: none;
}
.mm-notes-area:focus { border-color: var(--accent); }
