/* Ultimate admin — brand theme closer to Amo density */

:root {
  --u-purple: #c026d3;
  --u-purple-soft: #a21caf;
  --u-cyan: #22d3ee;
  --u-bg: #0b0b0f;
  --u-panel: #12121a;
  --u-card: #1a1a24;
  --u-border: rgba(192, 38, 211, 0.22);
  --u-text: #f4f4f5;
  --u-muted: #a1a1aa;
}

/* Sidebar / shell polish */
.fi-sidebar {
  background: linear-gradient(180deg, #0d0d14 0%, #09090b 100%) !important;
  border-right: 1px solid var(--u-border) !important;
}

.fi-sidebar-item-button {
  border-radius: 0.5rem !important;
}

.fi-sidebar-item-button:hover,
.fi-sidebar-item-button[aria-current="page"] {
  background: rgba(192, 38, 211, 0.12) !important;
}

.fi-topbar {
  background: rgba(9, 9, 11, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--u-border) !important;
}

.fi-main,
.fi-body {
  background: var(--u-bg) !important;
}

.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-fo-component-ctn {
  border-color: var(--u-border) !important;
}

.fi-btn-primary {
  background: linear-gradient(135deg, #c026d3, #7c3aed) !important;
  box-shadow: 0 0 18px rgba(192, 38, 211, 0.35);
}

.fi-btn-primary:hover {
  filter: brightness(1.08);
}

/* Tables denser like Amo lists */
.fi-ta-table th,
.fi-ta-table td {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

.fi-header-heading {
  letter-spacing: -0.02em;
}

/* —— Kanban (Amo-like) —— */
.u-kanban-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.u-kanban-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.u-kanban-summary {
  margin-left: auto;
  font-size: 13px;
  color: var(--u-muted);
}

.u-kanban-summary strong {
  color: #fff;
  font-weight: 700;
}

.u-new-deal-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: #22c55e;
  color: #052e16;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.u-new-deal-btn:hover {
  background: #4ade80;
}

.u-new-deal-btn:active {
  transform: translateY(1px);
}

.u-kanban-quick-add {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.u-kanban-quick-add-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
}

.u-kanban-quick-add-input:focus {
  border-color: rgba(34, 197, 94, 0.55);
}

.u-kanban-quick-add-input::placeholder {
  color: #71717a;
}

.u-kanban-quick-add-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.u-kanban-quick-add-input.is-phone {
  flex: 1;
  min-width: 0;
}

.u-kanban-quick-add-btn {
  appearance: none;
  flex: 0 0 36px;
  width: 36px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #22c55e;
  color: #052e16;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.u-kanban-quick-add-btn:hover {
  background: #4ade80;
}

.u-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.u-kanban.is-panning {
  cursor: grabbing;
  scroll-behavior: auto;
}

.u-kanban .u-kanban-card,
.u-kanban .u-kanban-card a {
  user-select: auto;
  -webkit-user-select: auto;
}

.u-kanban-col {
  flex: 0 0 280px;
  width: 280px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  /* no max-height / no own vertical scroll — like amoCRM */
  max-height: none;
}

.u-kanban-col.is-drop-target .u-kanban-col-body {
  background: rgba(34, 211, 238, 0.08);
  outline: 1px dashed rgba(34, 211, 238, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

.u-kanban-col-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 10px;
  border-bottom: none;
  border-top: none;
  border-radius: 0;
  position: static;
  background: transparent;
  border-left: 3px solid var(--col-accent, var(--u-purple));
  padding-left: 10px;
  margin-bottom: 8px;
}

.u-kanban-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.u-kanban-col-money {
  margin-top: 3px;
  font-size: 11px;
  color: var(--u-muted);
  font-variant-numeric: tabular-nums;
}

.u-kanban-col-count {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--u-muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.u-kanban-col-body {
  padding: 0;
  overflow: visible;
  flex: none;
  min-height: 80px;
}

.u-kanban-card {
  position: relative;
  background: #1b2230;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 10px 12px 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.u-kanban-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 4px 0 0 4px;
  background: var(--col-accent, #4f8cff);
  opacity: 0.85;
}

.u-kanban-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.u-kanban-card:active,
.u-kanban-card.is-dragging {
  cursor: grabbing;
  opacity: 0.55;
  transform: scale(0.985);
}

.u-kanban-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.u-kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
  cursor: pointer;
}

.u-kanban-card-title:hover {
  color: var(--u-cyan);
}

.u-kanban-card-date {
  font-size: 11px;
  color: #8b93a7;
  white-space: nowrap;
}

.u-kanban-card-meta {
  font-size: 12px;
  color: #c5cad6;
  margin-bottom: 10px;
  line-height: 1.35;
}

.u-kanban-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.u-kanban-price {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.u-kanban-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.u-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: #25d366;
  color: #052e16 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  cursor: pointer;
}

.u-wa-btn:hover {
  filter: brightness(1.08);
}

.u-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: #229ed9;
  color: #041018 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  cursor: pointer;
}

.u-tg-btn:hover {
  filter: brightness(1.08);
}

.u-kanban-task {
  color: #e8b339;
  font-size: 11px;
  white-space: nowrap;
}

.u-kanban-task.is-overdue {
  color: #ff6b6b;
}

.u-kanban-empty {
  color: #52525b;
  font-size: 11px;
  text-align: center;
  padding: 18px 8px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.u-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--u-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.u-chip.is-active {
  background: rgba(192, 38, 211, 0.2);
  border-color: rgba(192, 38, 211, 0.5);
  color: #f5d0fe;
}

.u-hint {
  font-size: 11px;
  color: #71717a;
  margin-top: 8px;
}

/* Login branding */
.fi-simple-main {
  background:
    radial-gradient(ellipse at top right, rgba(192, 38, 211, 0.2), transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(34, 211, 238, 0.12), transparent 40%),
    #050508 !important;
}

/* —— Post schedule —— */
.u-schedule {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.u-schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.u-schedule-week {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.u-schedule-week-label {
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  margin-left: 4px;
}

.u-schedule-filters {
  background: var(--u-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px 4px;
}

.u-schedule-scroll {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: var(--u-panel);
}

.u-schedule-grid {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
}

.u-schedule-grid th,
.u-schedule-grid td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.u-schedule-grid th:last-child,
.u-schedule-grid td:last-child {
  border-right: none;
}

.u-schedule-post-col {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 220px;
  min-width: 220px;
  background: #14141c;
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--u-muted);
}

.u-schedule-day-head {
  padding: 10px 12px;
  text-align: left;
  min-width: 150px;
  background: #14141c;
}

.u-schedule-day-head.is-today {
  background: rgba(192, 38, 211, 0.12);
}

.u-schedule-day-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--u-muted);
}

.u-schedule-day-date {
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  margin-top: 2px;
}

.u-schedule-post-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #12121a;
  padding: 12px 14px;
  min-width: 220px;
}

.u-schedule-post-name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f4f4f5;
  line-height: 1.3;
}

.u-schedule-post-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 4px;
  flex: 0 0 auto;
  box-shadow: 0 0 10px currentColor;
}

.u-schedule-load {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--u-muted);
}

.u-schedule-load-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.u-schedule-load-fill {
  height: 100%;
  border-radius: 999px;
}

.u-schedule-cell {
  padding: 8px;
  min-height: 88px;
  background: rgba(0, 0, 0, 0.15);
}

.u-schedule-cell.is-today {
  background: rgba(192, 38, 211, 0.05);
}

.u-schedule-booking {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 9px;
  margin-bottom: 6px;
  background: color-mix(in srgb, var(--slot, #c026d3) 88%, #000);
  border: 1px solid color-mix(in srgb, var(--slot, #c026d3) 55%, #fff 10%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: #fff;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
  cursor: grab;
  user-select: none;
}

.u-schedule-booking:active {
  cursor: grabbing;
}

.u-schedule-booking.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.u-schedule-booking:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.u-schedule-booking-title {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  display: block;
}

.u-schedule-booking-title:hover {
  color: #a5f3fc;
  text-decoration: underline;
}

.u-schedule-booking-time {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.u-schedule-booking-meta {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.u-schedule-booking-hint {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.u-schedule-cell.is-drop-target {
  background: rgba(34, 211, 238, 0.12) !important;
  outline: 1px dashed rgba(34, 211, 238, 0.65);
  outline-offset: -3px;
}

.u-schedule-free {
  width: 100%;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.04);
  color: #67e8f9;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.u-schedule-free:hover {
  background: rgba(192, 38, 211, 0.12);
  border-color: rgba(192, 38, 211, 0.55);
  color: #f5d0fe;
}

.u-schedule-free-mini {
  min-height: 28px;
  margin-top: 2px;
  flex-direction: row;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--u-muted);
}

.u-schedule-free-plus {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1;
}

/* —— Help center —— */
.u-help {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.u-help-nav {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 6rem);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.u-help-nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717a;
  margin-bottom: 10px;
}

.u-help-group + .u-help-group {
  margin-top: 14px;
}

.u-help-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 6px;
}

.u-help-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.u-help-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #a1a1aa;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.u-help-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.u-help-link.is-active {
  background: rgba(192, 38, 211, 0.18);
  color: #f5d0fe;
}

.u-help-article {
  min-width: 0;
  padding: 4px 8px 24px;
}

.u-help-lead {
  font-size: 15px;
  color: #a1a1aa;
  margin: 0 0 18px;
  line-height: 1.5;
}

.u-help-body {
  font-size: 14px;
  line-height: 1.65;
  color: #d4d4d8;
}

.u-help-body h1 {
  display: none;
}

.u-help-body h2 {
  margin: 1.6em 0 0.6em;
  font-size: 1.15rem;
  color: #fff;
}

.u-help-body h3 {
  margin: 1.3em 0 0.5em;
  font-size: 1rem;
  color: #f4f4f5;
}

.u-help-body p,
.u-help-body ul,
.u-help-body ol,
.u-help-body table {
  margin: 0 0 0.9em;
}

.u-help-body ul,
.u-help-body ol {
  padding-left: 1.25rem;
}

.u-help-body a {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.u-help-body a:hover {
  color: #a5f3fc;
}

.u-help-body code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.u-help-body pre {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1em;
}

.u-help-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.u-help-body th,
.u-help-body td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.u-help-body th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.u-help-related {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.u-help-related h2 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: #fff;
}

.u-help-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.u-help-related-card {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  color: inherit;
}

.u-help-related-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
}

.u-help-related-card strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
  font-size: 13px;
}

.u-help-related-card span {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .u-help {
    grid-template-columns: 1fr;
  }

  .u-help-nav {
    position: static;
    max-height: none;
  }
}

/* —— Amo-like kanban filter —— */
.u-kanban-toolbar--amo {
  gap: 12px;
  margin-bottom: 10px;
}

.u-filter-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 320px;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.u-filter-search-icon {
  padding: 0 10px;
  color: #71717a;
  font-size: 14px;
}

.u-filter-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 9px 4px;
  font-size: 13px;
  outline: none;
}

.u-filter-search-input::placeholder {
  color: #71717a;
}

.u-filter-toggle {
  appearance: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #c4c4c8;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.u-filter-toggle:hover,
.u-filter-toggle.is-open,
.u-filter-toggle.has-filters {
  color: #f5d0fe;
  background: rgba(192, 38, 211, 0.12);
}

.u-filter-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c026d3;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.u-amo-filter {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #0c1018;
}

.u-amo-filter-presets {
  padding: 12px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.u-amo-filter-props {
  padding: 12px 14px 14px;
}

.u-amo-filter-caption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  margin-bottom: 10px;
}

.u-amo-preset {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #c4c4c8;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.u-amo-preset:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.u-amo-preset.is-active {
  background: rgba(192, 38, 211, 0.18);
  color: #f5d0fe;
}

.u-amo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.u-amo-dot.is-yellow { background: #eab308; }
.u-amo-dot.is-red { background: #ef4444; }

.u-amo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #a1a1aa;
}

.u-amo-field select,
.u-amo-field input[type="date"],
.u-amo-field input[type="number"],
.u-amo-field-row input {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  width: 100%;
}

.u-amo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.u-amo-stages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 10px;
  max-height: 160px;
  overflow: auto;
  padding: 4px 0;
}

.u-amo-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d4d4d8;
  cursor: pointer;
}

.u-amo-filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .u-amo-filter {
    grid-template-columns: 1fr;
  }

  .u-amo-filter-presets {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* —— Dashboard quick nav —— */
.u-dash-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.u-dash-quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--u-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--u-text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.u-dash-quick-btn:hover {
  border-color: var(--quick-accent, var(--u-purple));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--quick-accent, var(--u-purple)) 35%, transparent);
  transform: translateY(-1px);
}

.u-dash-quick-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--quick-accent, var(--u-purple)) 18%, transparent);
  color: var(--quick-accent, var(--u-purple));
}

.u-dash-quick-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.u-dash-quick-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.u-dash-quick-hint {
  font-size: 12px;
  color: var(--u-muted);
}

.u-dash-quick-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--u-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.u-dash-quick-btn:hover .u-dash-quick-arrow {
  color: var(--quick-accent, var(--u-purple));
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .u-dash-quick {
    grid-template-columns: 1fr;
  }
}

/* —— Deal slide-over (kanban card) —— */
@media (min-width: 1024px) {
  body:has(.u-deal-slideover) .fi-main-sidebar {
    z-index: 50 !important;
  }

  body:has(.u-deal-slideover) .fi-modal-close-overlay {
    left: var(--collapsed-sidebar-width, 4.5rem);
  }

  body:has(.u-deal-slideover) .fi-modal-window.u-deal-slideover {
    inset: 0 0 0 auto !important;
    width: calc(100vw - var(--collapsed-sidebar-width, 4.5rem)) !important;
    max-width: none !important;
  }

  body:has(.u-deal-slideover):has(.fi-main-ctn-sidebar-open) .fi-modal-close-overlay {
    left: var(--sidebar-width, 20rem);
  }

  body:has(.u-deal-slideover):has(.fi-main-ctn-sidebar-open) .fi-modal-window.u-deal-slideover {
    width: calc(100vw - var(--sidebar-width, 20rem)) !important;
  }
}

body:has(.u-deal-slideover) .fi-modal-footer {
  flex-wrap: wrap;
  gap: 8px;
}

body:has(.u-deal-slideover) .fi-modal-footer-actions {
  flex-wrap: wrap;
  gap: 8px;
}

/* —— Deal timeline (kanban slide-over) —— */
.u-deal-timeline {
  display: flex;
  flex-direction: column;
  height: min(72vh, 720px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 16px;
}

.u-deal-timeline-head {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--u-text);
}

.u-deal-timeline-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.u-deal-timeline-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.u-deal-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--u-muted);
  margin-bottom: 6px;
}

.u-deal-timeline-body {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.u-deal-timeline-empty {
  color: var(--u-muted);
  font-size: 13px;
  padding: 24px 0;
  text-align: center;
}

.u-deal-timeline-compose {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.u-deal-timeline-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--u-text);
  padding: 10px 12px;
  font-size: 13px;
  resize: vertical;
}

.u-deal-timeline-send {
  align-self: flex-end;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--u-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
