/* CRM — heller "SalesSuite"-Look, Akzent in Prozess-Lab-Orange.
   Aufbau: linke Sidebar + heller Main-Bereich, weiße Karten, Inter-Schrift. */

:root {
  --bg:        #dfeae4;   /* green-tinted page background so white panels stand out */
  --brand-dark:  #0a1612; /* Prozess Lab dark green (sidebar) */
  --brand-green: #0D4F3B; /* Prozess Lab visible emerald */
  --surface:   #ffffff;   /* Karten / Flächen */
  --surface-2: #f8f9fb;   /* zarte zweite Ebene (Hover, Tabellen-Header) */
  --accent:    #ff6b35;   /* Marken-Orange — Buttons, aktive Zustände, Links */
  --accent-2:  #fff1ea;   /* Orange ganz hell — aktive Nav/Tab-Flächen */
  --green:     #0D4F3B;   /* brand emerald: confirm / save buttons */
  --green-2:   #e9f7ef;
  --ink:       #0f172a;   /* Headlines / kräftiger Text */
  --text:      #334155;   /* Fließtext */
  --muted:     #64748b;   /* Labels / Sekundärtext */
  --border:    #eceef2;   /* zarte Trennlinien / Karten-Rand */
  --border-2:  #e2e6ec;   /* etwas kräftiger (Inputs) */
  --shadow:    0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-lg: 0 8px 30px rgba(15,23,42,.10);
  --radius:    8px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); }

/* ===== App-Shell (Sidebar + Main) ===== */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar {
  background: radial-gradient(120% 60% at 0% 0%, #133a2d 0%, var(--brand-dark) 60%);
  border-right: 1px solid #0f241c;
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px; }
.brand .brand-logo {
  width: 34px; height: 34px; border-radius: 6px; flex: 0 0 auto;
  display: block; object-fit: contain;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.35);
}
.brand .wordmark { font-weight: 800; color: var(--accent); letter-spacing: .2px; font-size: 16px; }
.brand .wordmark .dim { color: var(--accent); }

.user-block {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}
.user-block .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), #ff9466);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.user-block .u-name { font-weight: 700; color: #fff; font-size: 13px; }
.user-block .u-sub  { color: #b4bfbb; font-size: 11px; }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: #7f928a; padding: 6px 10px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: #d5ddd9; font-weight: 600; font-size: 13.5px;
}
.nav-item .ic { width: 18px; text-align: center; opacity: .8; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(255,107,53,.16); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item.active .ic { opacity: 1; }
.sidebar-foot { margin-top: auto; color: #7f928a; font-size: 11px; padding: 8px 10px; }

/* ===== Main ===== */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 26px; border-bottom: 1px solid var(--border);
  background: rgba(241,245,243,.85); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.searchbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 4px 14px; color: var(--muted);
  min-width: 300px; font-size: 13px;
}
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,.12); }
.searchbar input {
  border: none; background: transparent; padding: 6px 0; flex: 1;
  font-size: 13px; color: var(--ink); box-shadow: none !important;
}
.searchbar input:focus { outline: none; box-shadow: none; }
.searchbar input::placeholder { color: #9aa6b2; }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--muted); display: grid; place-items: center;
  cursor: pointer; font-size: 15px;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.content { padding: 24px 26px 64px; }

/* ===== Flash ===== */
.flashes { padding: 14px 26px 0; }
.flash {
  padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 8px;
  font-size: 13.5px; border: 1px solid var(--border);
}
.flash-ok   { background: var(--green-2); border-color: #bfe6cd; color: #15803d; }
.flash-warn { background: var(--accent-2); border-color: #ffd1bd; color: #c2410c; }

/* ===== Seiten-Kopf ===== */
.page-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.page-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.page-head .total { color: var(--muted); font-size: 14px; }
.page-head .head-actions { margin-left: auto; display: flex; gap: 10px; }

/* ===== Board ===== */
.board {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 12px;
}
.column {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; min-height: 220px;
}
.column-lost { opacity: .85; }
.col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px;
}
.col-title {
  font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ink);
}
.col-count {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; font-weight: 700;
  padding: 1px 9px; border-radius: 999px;
}
.cards { padding: 0 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 9px; min-height: 60px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .05s;
  cursor: grab;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.card:active { cursor: grabbing; }
.card-link { display: block; padding: 12px 13px; -webkit-user-drag: none; user-select: none; }
.card-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.card-company { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-meta { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-next { color: var(--accent); font-size: 11px; font-weight: 600; }

.tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 3px; background: var(--surface-2); color: var(--muted);
}
/* One color per pipeline stage (--st = strong, --st-bg = light tint, --st-line = border).
   Used by column, card, card tag and stage badge, so a stage looks the same everywhere. */
.stage-neu            { --st: #1e40af; --st-bg: #e4ebfa; --st-line: #b9c9f0; }
.stage-erstgespraech  { --st: #0284c7; --st-bg: #e2f3fc; --st-line: #aad9f3; }
.stage-sales          { --st: #a16207; --st-bg: #fbf2dc; --st-line: #eed9a3; }
.stage-angebot        { --st: #e8561f; --st-bg: #ffebe1; --st-line: #fcc6ad; }
.stage-kunde          { --st: #0D4F3B; --st-bg: #dcefe5; --st-line: #a8d3bd; }
.stage-unqualifiziert { --st: #1f2937; --st-bg: #e9eaec; --st-line: #c4c7cc; }
.stage-verloren       { --st: #c0262d; --st-bg: #fbe9e9; --st-line: #f1bfc1; }
.tag.stage-tag { background: var(--st-bg); color: var(--st); }
.column[class*="stage-"] {
  background: var(--st-bg); border: 1px solid var(--st-line); border-top: 5px solid var(--st);
}
.column[class*="stage-"] .col-title { color: var(--st); }
.column[class*="stage-"] .col-count { background: var(--surface); border-color: var(--st-line); color: var(--st); }
.card[class*="stage-"] { border-left: 4px solid var(--st); }
.lead-no {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 5px;
  background: #e2e8f0; color: var(--ink); font-size: .78em; font-weight: 700;
  font-variant-numeric: tabular-nums; vertical-align: 1px;
}

.card-ghost { opacity: .4; }
.card-drag  { transform: rotate(1.5deg); box-shadow: var(--shadow-lg); }

/* ===== Kontakte-Tabelle ===== */
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 12px 16px; background: var(--surface-2);
  color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: var(--surface-2); }
.table .t-name { font-weight: 700; color: var(--ink); }
.table .t-muted { color: var(--muted); }
.table-empty { padding: 40px; text-align: center; color: var(--muted); }
.table .t-id { width: 1%; white-space: nowrap; }
.table .t-id .lead-no { margin-left: 0; }
.table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.table th.sortable:hover { color: var(--accent); }
.table th.sortable::after { content: "↕"; margin-left: 5px; opacity: .35; }
.table th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; color: var(--accent); }
.table th[aria-sort="descending"]::after { content: "↓"; opacity: 1; color: var(--accent); }
.t-mail { color: var(--accent); }

/* ===== Forms ===== */
.form-wrap { max-width: 760px; }
.hint { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.hint code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

.card-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 16px;
}
.card-panel > h2 {
  margin: 0 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink);
}

.lead-form { display: flex; flex-direction: column; gap: 22px; }
.lead-form label, .note-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--ink); font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-link { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 12px; }
.field-link:hover { text-decoration: underline; }
input, select, textarea {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; font-family: inherit;
}
input::placeholder, textarea::placeholder { color: #9aa6b2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,.12); }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }

.btn {
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 10px 18px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; background: var(--surface); color: var(--ink);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,53,.28);
}
.btn-accent:hover { filter: brightness(1.05); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.05); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: transparent; border-color: #f3c0c0; color: #dc2626; }
.btn-danger:hover { background: #fdeaea; color: #dc2626; border-color: #f3c0c0; }
.btn-sm { padding: 8px 13px; font-size: 13px; }

/* ===== Lead-Detail (Tab-Panel) ===== */
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.detail-head h1 { margin: 0; font-size: 22px; }
.back { color: var(--muted); font-size: 13px; font-weight: 600; }
.back:hover { color: var(--accent); }
.stage-badge {
  font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); text-transform: uppercase;
}
.stage-badge[class*="stage-"] { background: var(--st-bg); border-color: transparent; color: var(--st); }
.detail-actions { margin-left: auto; display: flex; gap: 8px; }

.tabs {
  display: inline-flex; gap: 4px; margin: 16px 0 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; box-shadow: var(--shadow);
}
.tab {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted);
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--accent-2); color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.delete-row { margin-top: 8px; }

/* ===== Timeline / Notizen ===== */
.note-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.event {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow);
}
.event-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.event-type {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 6px; background: var(--accent-2); color: var(--accent);
}
.event-type.event-type-stage_change { background: var(--surface-2); color: var(--muted); }
.event-time { font-size: 11px; color: var(--muted); margin-left: auto; }
.event-body { font-size: 14px; color: var(--text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

/* ===== Import-Vorschau ===== */
.preview-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.preview-table th, .preview-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.preview-table th { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .4px; background: var(--surface-2); }
.prow-dublette { opacity: .6; }
.prow-fehlt_name { opacity: .5; }
.pstatus { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pstatus-neu        { background: var(--green-2); color: #15803d; }
.pstatus-dublette   { background: var(--accent-2); color: #c2410c; }
.pstatus-fehlt_name { background: #fdeaea; color: #dc2626; }

/* ===== Mobil: Sidebar wird zur oberen Leiste ===== */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: 8px; overflow-x: auto;
  }
  .sidebar .user-block, .sidebar .nav-label, .sidebar .sidebar-foot { display: none; }
  .nav-group { flex-direction: row; }
  .brand { width: 100%; }
}
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .board { grid-auto-flow: row; grid-auto-columns: 1fr; }
  .content { padding: 18px 14px 50px; }
  .topbar { padding: 12px 14px; }
  .searchbar { min-width: 0; flex: 1; }
  /* Kontakte-Tabelle aufs Wesentliche kürzen: ID, Name, Firma, Stufe.
     E-Mail (4), Telefon (5), Handy (6), Nächste Aktion (8) ausblenden — Detail per Klick. */
  .table-kontakte th:nth-child(4), .table-kontakte td:nth-child(4),
  .table-kontakte th:nth-child(5), .table-kontakte td:nth-child(5),
  .table-kontakte th:nth-child(6), .table-kontakte td:nth-child(6),
  .table-kontakte th:nth-child(8), .table-kontakte td:nth-child(8) { display: none; }
  .table-wrap { overflow-x: auto; }
  .table th, .table td { padding: 12px 12px; }
}

/* ===== Right-click menu on board cards ===== */
.ctx-menu {
  position: fixed; z-index: 1000; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 5px; font-size: 13px;
}
.ctx-menu[hidden] { display: none; }
.ctx-head {
  padding: 6px 10px 7px; font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
.ctx-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.ctx-item[hidden] { display: none; }
.ctx-item .ic { width: 16px; text-align: center; color: var(--muted); }
.ctx-item:hover, .ctx-item:focus-visible { background: var(--accent-2); color: var(--accent); outline: none; }
.ctx-item:hover .ic, .ctx-item:focus-visible .ic { color: var(--accent); }
.ctx-danger { color: #dc2626; }
.ctx-danger:hover, .ctx-danger:focus-visible { background: #fdeaea; color: #dc2626; }
.ctx-sep { height: 1px; background: var(--border); margin: 4px 2px; }

.ctx-sub { position: relative; }
.ctx-arrow { margin-left: auto; color: var(--muted); }
.ctx-submenu {
  display: none; position: absolute; top: -6px; left: 100%;
}
.ctx-sub:hover > .ctx-submenu, .ctx-sub:focus-within > .ctx-submenu { display: block; }
.ctx-menu.flip-sub .ctx-submenu { left: auto; right: 100%; }
.ctx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st); flex: 0 0 auto; margin: 0 3px; }
.ctx-item.is-current { font-weight: 700; }
.ctx-item.is-current::after { content: "✓"; margin-left: auto; color: var(--muted); }

.card-next[hidden] { display: none; }
@keyframes card-flash { from { box-shadow: 0 0 0 3px rgba(255,107,53,.45); } to { box-shadow: var(--shadow); } }
.card-flash { animation: card-flash 1.2s ease-out; }

/* ===== Small dialogs (note / next step) ===== */
.ctx-dialog {
  border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px; width: min(420px, calc(100vw - 32px));
}
.ctx-dialog::backdrop { background: rgba(10,22,18,.35); }
.ctx-dialog h3 { margin: 0 0 14px; font-size: 16px; }
.ctx-dialog .dlg-lead { color: var(--muted); font-weight: 500; }
.ctx-dialog label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.ctx-dialog label > * { display: block; width: 100%; margin-top: 5px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Lead form: breathing room between field rows (labels are bigger since 2026-09-22) */
.lead-form .card-panel { display: flex; flex-direction: column; gap: 18px; }
.lead-form .card-panel > h2 { margin-bottom: 0; }
/* Kontakte: keep badges and phone numbers on one line */
.table-kontakte .stage-badge, .table-kontakte td:nth-child(5), .table-kontakte td:nth-child(6) { white-space: nowrap; }

/* ===== Follow-up: due badges (board cards + "Heute dran") ===== */
.due-badge {
  display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 18px;
}
.due-badge[hidden] { display: none; }
.due-badge.due-overdue { background: #fde2e2; color: #b91c1c; }
.due-badge.due-today   { background: #ffedd5; color: #c2410c; }
.due-badge.due-planned { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.due-badge.due-missing { background: #f1f5f9; color: #475569; border: 1px dashed #94a3b8; }
.card.due-overdue { box-shadow: 0 0 0 2px #fca5a5, var(--shadow); }
.card.due-today   { box-shadow: 0 0 0 2px #fdba74, var(--shadow); }

.nav-count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; text-align: center;
}

.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.today-item {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 5px solid #cbd5e1; box-shadow: var(--shadow); padding: 14px 16px;
}
.today-item.due-overdue { border-left-color: #dc2626; }
.today-item.due-today   { border-left-color: #f97316; }
.today-item.due-missing { border-left-color: #94a3b8; }
.today-main { min-width: 0; flex: 1; }
.today-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.today-top .due-badge { margin-top: 0; }
.today-name { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.today-name:hover { color: var(--accent); }
.today-company { margin-left: 6px; color: var(--muted); font-weight: 500; font-size: 13px; }
.today-next { margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 13px; }
.today-next .t-muted { color: var(--muted); font-weight: 500; }
.today-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.today-actions form { margin: 0; }
.today-edit summary { list-style: none; cursor: pointer; }
.today-edit summary::-webkit-details-marker { display: none; }
.today-edit[open] summary { display: none; }
.today-form { display: flex; gap: 6px; flex-wrap: wrap; }
.today-form input[type=text] { width: 220px; }
.today-form input { padding: 7px 9px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); font: inherit; font-size: 13px; }
.today-empty {
  max-width: 520px; margin: 40px auto; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow);
}
.today-empty-ic {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-2); color: var(--green); font-size: 26px; font-weight: 800;
}
.today-empty h2 { margin: 0 0 6px; }
.today-empty p { margin: 0; color: var(--muted); }
.today-empty a { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .today-item { flex-direction: column; align-items: stretch; }
  .today-actions { justify-content: flex-start; }
  .today-form input[type=text] { width: 100%; }
}
