/* ─────────────────────────────────────────
   Keel — Global Layout
   Colours match docs/mocks exactly.
   ───────────────────────────────────────── */

:root {
  --keel-bg:         #070614;
  --keel-surface:    #0F172A;
  --keel-card:       #131929;
  --keel-hover:      #1a2236;
  --keel-pink:       #AA044F;
  --keel-pink-dim:   rgba(170, 4, 79, 0.15);
  --keel-orange:     #EA7132;
  --keel-muted:      rgba(255, 255, 255, 0.45);
  --keel-border:     rgba(255, 255, 255, 0.07);
  --keel-green:      #22C55E;
  --keel-amber:      #F59E0B;
  --keel-red:        #EF4444;
  --keel-radius:     8px;
  --keel-sidebar-w:  220px;
  --keel-topbar-h:   56px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--keel-bg);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

/* ── Layout shell ── */
.keel-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ── */
.keel-sidebar {
  width: var(--keel-sidebar-w);
  background: var(--keel-surface);
  border-right: 1px solid var(--keel-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.keel-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--keel-border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.keel-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.keel-logo-text { font-weight: 600; font-size: 13px; }
.keel-logo-sub  { font-size: 10px; color: var(--keel-muted); }

.keel-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.keel-nav-section {
  padding: 0 12px 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--keel-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 16px;
}

.keel-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 1px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--keel-muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.keel-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.keel-nav-item.active {
  background: var(--keel-pink-dim);
  color: #fff;
}

.keel-nav-icon {
  width: 16px !important;
  height: 16px !important;
  font-size: 16px !important;
  opacity: 0.6;
  flex-shrink: 0;
}

.keel-nav-item.active .keel-nav-icon { opacity: 1; }

.keel-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--keel-border);
}

.keel-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.keel-user-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.keel-avatar-wrapper {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
}

.keel-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.keel-avatar {
  width: 26px;
  height: 26px;
  background: var(--keel-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.keel-user-name { font-size: 11px; font-weight: 600; }
.keel-user-role { font-size: 10px; color: var(--keel-muted); }

/* ── Main area ── */
.keel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.keel-topbar {
  height: var(--keel-topbar-h);
  padding: 0 24px;
  border-bottom: 1px solid var(--keel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--keel-bg);
}

.keel-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.keel-topbar-title {
  font-size: 15px;
  font-weight: 600;
}

.keel-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

.keel-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.keel-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── Check-in traffic lights ── */
.checkin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.checkin-green  { background: var(--keel-green); }
.checkin-amber  { background: var(--keel-amber); }
.checkin-red    { background: var(--keel-red); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .keel-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .keel-sidebar--open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }

  .keel-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 6, 20, 0.7);
    z-index: 199;
  }

  .keel-mobile-menu-btn {
    display: flex;
  }
}

/* ── Empty state ── */
.keel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  width: 100%;
}

/* ── MudBlazor overrides ── */
.mud-table-root      { background: transparent !important; }
.mud-paper           { background: var(--keel-card) !important; }
.mud-card            { background: var(--keel-card) !important; border: 1px solid var(--keel-border) !important; }

/* ── Bootstrap dark overrides (account pages: login, register, /account/manage) ── */
.card                          { background: var(--keel-card) !important; border: 1px solid var(--keel-border) !important; color: #fff; }
.card-header                   { background: transparent !important; border-bottom: 1px solid var(--keel-border) !important; }
.card-footer                   { background: transparent !important; border-top: 1px solid var(--keel-border) !important; }

.form-control,
.form-select                   { background: var(--keel-surface) !important; border-color: var(--keel-border) !important; color: #fff !important; }
.form-control::placeholder     { color: var(--keel-muted) !important; }
.form-control:focus,
.form-select:focus             { background: var(--keel-hover) !important; border-color: var(--keel-pink) !important; color: #fff !important; box-shadow: 0 0 0 0.2rem rgba(170,4,79,0.25) !important; }

.form-check-input              { background-color: var(--keel-surface) !important; border-color: var(--keel-border) !important; }
.form-check-input:checked      { background-color: var(--keel-pink) !important; border-color: var(--keel-pink) !important; }
.form-check-label,
.form-label,
label:not(.mud-input-label)    { color: rgba(255,255,255,0.7) !important; }

.btn-primary                   { background-color: var(--keel-pink) !important; border-color: var(--keel-pink) !important; }
.btn-primary:hover,
.btn-primary:focus             { background-color: #8a0340 !important; border-color: #8a0340 !important; }
.btn-outline-primary           { color: var(--keel-pink) !important; border-color: var(--keel-pink) !important; }
.btn-outline-primary:hover     { background-color: var(--keel-pink) !important; color: #fff !important; }
.btn-link                      { color: var(--keel-pink) !important; }

.navbar,
.navbar-expand-lg              { background: var(--keel-surface) !important; border-bottom: 1px solid var(--keel-border) !important; }
.navbar-brand                  { color: #fff !important; }
.nav-link                      { color: rgba(255,255,255,0.7) !important; }
.nav-link:hover                { color: #fff !important; }
.nav-tabs .nav-link.active     { background: var(--keel-card) !important; border-color: var(--keel-border) var(--keel-border) var(--keel-card) !important; color: #fff !important; }
.nav-tabs                      { border-color: var(--keel-border) !important; }
.nav-tabs .nav-link            { color: var(--keel-muted) !important; }

.alert-danger                  { background: rgba(239,68,68,0.15) !important; border-color: var(--keel-red) !important; color: #fff !important; }
.alert-success                 { background: rgba(34,197,94,0.15) !important; border-color: var(--keel-green) !important; color: #fff !important; }
.alert-warning                 { background: rgba(245,158,11,0.15) !important; border-color: var(--keel-amber) !important; color: #fff !important; }
.text-muted                    { color: var(--keel-muted) !important; }
hr                             { border-color: var(--keel-border) !important; opacity: 1; }
.abp-brand                     { display: none !important; }

/* ── Breadcrumb (topbar, detail pages) ── */
.keel-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.keel-breadcrumb-parent {
  color: var(--keel-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.keel-breadcrumb-parent:hover { color: #fff; }
.keel-breadcrumb-sep { color: rgba(255,255,255,0.25); }
.keel-breadcrumb-current { font-weight: 600; color: #fff; }

/* ── Detail page layout ── */
.keel-detail-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.keel-detail-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.keel-detail-side {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Hero card ── */
.keel-hero-card {
  background: var(--keel-card);
  border: 1px solid var(--keel-border);
  border-radius: var(--keel-radius);
  overflow: hidden;
}

.keel-hero-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--keel-pink), var(--keel-orange));
}

.keel-hero-body { padding: 20px; }

.keel-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.keel-hero-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.keel-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.keel-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.keel-pill-type  { background: var(--keel-pink-dim); color: #f472b6; }
.keel-pill-stage { background: rgba(234,113,50,0.15); color: var(--keel-orange); }

/* ── Check-in banner ── */
.keel-checkin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  gap: 12px;
}

.keel-checkin-banner.amber { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); }
.keel-checkin-banner.red   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3); }
.keel-checkin-banner.green { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }

.keel-checkin-left { display: flex; align-items: center; gap: 10px; }

.keel-checkin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.keel-checkin-banner.amber .keel-checkin-dot { background: var(--keel-amber); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.keel-checkin-banner.red   .keel-checkin-dot { background: var(--keel-red);   box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.keel-checkin-banner.green .keel-checkin-dot { background: var(--keel-green); box-shadow: 0 0 6px rgba(34,197,94,0.5); }

.keel-checkin-text { font-size: 12px; font-weight: 600; }
.keel-checkin-banner.amber .keel-checkin-text { color: var(--keel-amber); }
.keel-checkin-banner.red   .keel-checkin-text { color: var(--keel-red); }
.keel-checkin-banner.green .keel-checkin-text { color: var(--keel-green); }

.keel-checkin-sub { font-size: 10px; color: var(--keel-muted); margin-top: 1px; }

.keel-checkin-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Fields grid (detail pages) ── */
.keel-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.keel-field { display: flex; flex-direction: column; gap: 4px; }

.keel-field-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--keel-muted);
}

.keel-field-value {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

/* ── Detail cards (sidebar + main) ── */
.keel-detail-card {
  background: var(--keel-card);
  border: 1px solid var(--keel-border);
  border-radius: var(--keel-radius);
}

.keel-detail-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--keel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.keel-detail-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--keel-muted);
}

.keel-detail-card-body { padding: 14px 16px; }

/* ── Stat rows (sidebar financial) ── */
.keel-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--keel-border);
}
.keel-stat-row:last-child { border-bottom: none; }
.keel-stat-label { font-size: 11px; color: var(--keel-muted); }
.keel-stat-value { font-size: 13px; font-weight: 700; }

/* ── Notes ── */
.keel-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--keel-border);
  padding: 0 4px;
}

.keel-tab {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--keel-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.keel-tab.active { color: #fff; border-bottom-color: var(--keel-pink); }
.keel-tab:hover:not(.active) { color: #fff; }

.keel-tab-content { padding: 4px 0; }

.keel-note {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--keel-border);
}
.keel-note:last-child { border-bottom: none; }

.keel-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.keel-note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.keel-note-type-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--keel-muted);
}

.keel-note-date { font-size: 10px; color: rgba(255,255,255,0.3); }

.keel-note-text {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
}

/* ── Tasks ── */
.keel-task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--keel-border);
}
.keel-task-item:last-child { border-bottom: none; }

.keel-task-title { font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.keel-task-title.done { text-decoration: line-through; color: var(--keel-muted); }
.keel-task-due { font-size: 10px; color: var(--keel-muted); }
.keel-task-due.overdue { color: var(--keel-red); }

/* ── Proposal items ── */
.keel-proposal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--keel-border);
}
.keel-proposal-item:last-child { border-bottom: none; }
.keel-proposal-name { font-size: 12px; font-weight: 500; margin-bottom: 3px; }
.keel-proposal-meta { font-size: 10px; color: var(--keel-muted); }
.keel-proposal-amount { font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* Status pills */
.keel-status-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}
.keel-status-open     { background: rgba(107,123,222,0.2); color: #6b7bde; }
.keel-status-won      { background: rgba(34,197,94,0.15);  color: var(--keel-green); }
.keel-status-lost     { background: rgba(239,68,68,0.15);  color: var(--keel-red); }
.keel-status-invoiced { background: rgba(234,113,50,0.15); color: var(--keel-orange); }

/* ── Slide panel ── */
.keel-pane-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 6, 20, 0.65);
  backdrop-filter: blur(2px);
  z-index: 500;
}

.keel-pane {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 95vw;
  background: var(--keel-surface);
  border-left: 1px solid var(--keel-border);
  z-index: 501;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  animation: keelPaneIn 0.22s ease;
}

@keyframes keelPaneIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.keel-pane-header {
  padding: 20px;
  border-bottom: 1px solid var(--keel-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.keel-pane-title { font-size: 15px; font-weight: 700; }
.keel-pane-sub   { font-size: 11px; color: var(--keel-muted); margin-top: 3px; }

.keel-pane-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--keel-muted);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s;
}
.keel-pane-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.keel-pane-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.keel-pane-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--keel-border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Form fields (pane forms) ── */
.keel-form-field { display: flex; flex-direction: column; gap: 6px; }
.keel-form-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--keel-muted);
}

/* ── Note type grid (pane) ── */
.keel-type-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.keel-type-option {
  flex: 1;
  min-width: 70px;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--keel-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--keel-muted);
  transition: all 0.15s;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
}

.keel-type-option.selected {
  border-color: var(--keel-pink);
  background: var(--keel-pink-dim);
  color: #fff;
}

.keel-type-option:hover:not(.selected) {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* ── Stage select ── */
.keel-stage-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--keel-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--keel-orange);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  transition: border-color 0.15s;
}

.keel-stage-select:focus {
  outline: none;
  border-color: var(--keel-orange);
}

.keel-stage-select option { background: var(--keel-surface); color: #fff; }

/* ── Responsive detail ── */
@media (max-width: 900px) {
  .keel-detail-columns { flex-direction: column; }
  .keel-detail-side { width: 100%; }
  .keel-fields-grid { grid-template-columns: 1fr; }
  .keel-pane { width: 100%; }
}

/* ── View toggle ── */
.keel-view-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--keel-border);
  border-radius: var(--keel-radius);
  padding: 3px;
  gap: 2px;
}

.keel-view-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--keel-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.15s;
}

.keel-view-btn.active {
  background: var(--keel-pink-dim);
  color: #fff;
}

/* ── Kanban board ── */
.keel-kanban-wrap {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  min-height: 400px;
}

.keel-kanban-col {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.keel-kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 4px;
}

.keel-kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--keel-muted);
}

.keel-kanban-col-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.keel-kanban-col-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--keel-muted);
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1px 7px;
}

.keel-kanban-col-weight {
  font-size: 10px;
  color: var(--keel-muted);
  font-weight: 600;
}

.keel-kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.keel-kanban-card {
  background: var(--keel-card);
  border: 1px solid var(--keel-border);
  border-radius: var(--keel-radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.keel-kanban-card:hover {
  background: var(--keel-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.keel-kanban-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.keel-kanban-card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.keel-checkin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.keel-dot-green { background: var(--keel-green); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.keel-dot-amber { background: var(--keel-amber); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.keel-dot-red   { background: var(--keel-red);   box-shadow: 0 0 6px rgba(239,68,68,0.5); }

.keel-kanban-card-company {
  font-size: 11px;
  color: var(--keel-muted);
  margin-bottom: 10px;
}

.keel-kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--keel-border);
}

.keel-kanban-card-date {
  font-size: 10px;
  color: var(--keel-muted);
}

.keel-kanban-card-date.overdue {
  color: var(--keel-red);
}

/* Drag-and-drop */
.keel-card-dragging {
    opacity: 0.4;
    transform: scale(0.98);
}

.keel-drag-over {
    outline: 2px dashed rgba(170,4,79,0.5);
    outline-offset: -4px;
    background: rgba(170,4,79,0.06);
    border-radius: 8px;
}

.keel-kanban-empty {
  border: 1px dashed var(--keel-border);
  border-radius: var(--keel-radius);
  padding: 20px;
  text-align: center;
  color: var(--keel-muted);
  font-size: 11px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Floating Action Menu ── */
.keel-fab-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.keel-fab-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.keel-fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--keel-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(170,4,79,0.5);
    transition: transform 0.2s, background 0.2s;
}

.keel-fab-btn:hover  { background: #c8055c; transform: scale(1.06); }
.keel-fab-btn.active { background: rgba(255,255,255,0.12); box-shadow: none; }

.keel-fab-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.keel-fab-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 20px;
    background: var(--keel-surface);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--keel-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: background 0.15s, border-color 0.15s;
}

.keel-fab-option:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
}

