/* ── BASE ── */
html, body { height: 100%; margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: var(--text-default, #1a1a1a); background: var(--bg-default, #fff); }

/* ── SIDENAV THEME ── */
.sidenav-container { transition: width 150ms ease; }
.sidenav-company-menu-avatar { flex-shrink: 0; padding-top: 0 !important; }
.sidenav-features-item-icon.meetings { top: 10px; left: 11px; width: 14px; }

/* ── PAGE LAYOUT ── */
/* page-content is display:flex flex-direction:column min-height:100vh — flex:1 fills remaining space */
#view-list { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; overflow: hidden; }
#view-detail { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; overflow: hidden; }

/* ── CLIENTS LIST ── */
.clients-toolbar-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 8px; flex-shrink: 0;
}
.clients-toolbar-left { display: flex; align-items: center; gap: 8px; }
.clients-toolbar-right { display: flex; align-items: center; gap: 6px; }
.toolbar-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary, #22AD01); color: white;
  font-size: 10px; font-weight: 600; border-radius: 8px;
  padding: 1px 5px; min-width: 16px; line-height: 1.4;
}

/* Fix search input — remove browser-native inset border and focus ring */
.clients-search-field { background: #fff; }
.clients-search-input { outline: none !important; box-shadow: none !important; border: none !important; background: transparent; }

/* ── TABLE + MINI PANEL FLEX BODY ── */
.clients-view-body {
  display: flex; flex: 1 1 0; min-height: 0; overflow: hidden;
}

/* ── RECORD TABLE ── */
.clients-table-area {
  flex: 1 1 0; min-width: 0; overflow: auto;
}
.rt-table { display: flex; flex-direction: column; min-width: 700px; margin-right: 40px; }
.rt-header-row, .rt-row {
  display: flex; align-items: center; border-bottom: 1px solid var(--border-content, #e8e8e8);
}
.rt-header-row {
  font-size: 12px; font-weight: 500; color: var(--text-muted, #888);
  background: #fff; position: sticky; top: 0; z-index: 10;
}
.rt-header-row .rt-cell { padding-top: 10px; padding-bottom: 10px; }
.rt-row {
  font-size: 13px; cursor: pointer; min-height: 44px;
  transition: background 80ms;
}
.rt-row:hover { background: var(--bg-grey-fa, #fafafa); }
.rt-row.active { background: var(--bg-grey-f5, #f5f5f5); }

.rt-cell { padding: 0 12px; display: flex; align-items: center; flex-shrink: 0; }
.rt-cell--name {
  width: 220px; font-weight: 500; gap: 10px;
  position: sticky; left: 0; z-index: 8; background: inherit;
}
.rt-header-row .rt-cell--name { background: #fff; }
.rt-cell--contact { width: 160px; }
.rt-cell--email { width: 200px; color: var(--text-muted, #888); font-size: 12px; }
.rt-cell--tags { width: 160px; gap: 4px; flex-wrap: wrap; }
.rt-cell--website { flex: 1; color: var(--text-muted, #888); font-size: 12px; }
.rt-cell--actions { width: 60px; justify-content: flex-end; gap: 4px; }
.rt-row-dot { color: var(--text-lighter, #bbb); font-size: 18px; line-height: 1; opacity: 0.35; transition: opacity 100ms; cursor: default; }
.rt-row-more { opacity: 0.35; transition: opacity 100ms; border: none; background: none; cursor: pointer; padding: 4px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.rt-row:hover .rt-row-dot,
.rt-row:hover .rt-row-more { opacity: 1; }
.rt-row-more:hover { background: var(--bg-grey-f1, #f1f1f1); }

.rt-name-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}
.rt-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── MINI PANEL ── */
.client-mini-panel {
  width: 0; flex-shrink: 0; overflow: hidden;
  border-left: 1px solid var(--border-content, #e8e8e8);
  display: flex; flex-direction: column;
  transition: width 150ms ease;
  background: #fff;
}
.client-mini-panel.open { width: 400px; }

.mp-header-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--border-content, #e8e8e8);
  flex-shrink: 0;
}
.mp-close-btn {
  width: 28px; height: 28px; border: none; background: none; cursor: pointer;
  color: var(--text-muted, #888); border-radius: 4px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mp-close-btn:hover { background: var(--bg-grey-f1, #f1f1f1); }
.mp-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mp-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white; background: #2563eb;
}
.mp-name-meta { min-width: 0; }
.mp-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-date { font-size: 11px; color: var(--text-muted, #888); margin-top: 2px; }

.mp-tabs {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--border-content, #e8e8e8);
  padding: 0 8px; flex-shrink: 0; position: relative; overflow: hidden;
}
.mp-tab {
  font-size: 13px; font-weight: 500; color: var(--text-muted, #888);
  border: none; background: none; cursor: pointer; padding: 10px 10px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; flex-shrink: 0;
}
.mp-tab:hover { color: var(--text-default, #1a1a1a); }
.mp-tab.active {
  color: var(--text-default, #1a1a1a);
  border-bottom-color: var(--color-primary, #22AD01);
}
.mp-more-wrap { position: relative; margin-left: auto; }
.mp-body { flex: 1 1 0; overflow-y: auto; padding: 16px; }
.mp-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border-content, #e8e8e8);
  flex-shrink: 0;
}
.mp-options { font-size: 12px; color: var(--text-muted, #888); }
.mp-options kbd {
  font-family: inherit; font-size: 11px; background: var(--bg-grey-f1, #f1f1f1);
  border: 1px solid var(--border-content, #e8e8e8); border-radius: 4px; padding: 1px 5px;
}

/* Mini panel home content */
.mp-field-row {
  display: flex; align-items: flex-start; gap: 8px; padding: 5px 0;
  font-size: 13px;
}
.mp-field-label { width: 100px; flex-shrink: 0; color: var(--text-muted, #888); font-size: 12px; }
.mp-field-value { flex: 1; min-width: 0; }

.mp-section-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-lighter, #bbb); margin: 16px 0 8px;
}

/* Mini panel timeline */
.mp-timeline-item { display: flex; gap: 10px; padding: 8px 0; position: relative; }
.mp-timeline-item + .mp-timeline-item { border-top: 1px solid var(--border-content, #e8e8e8); }
.mp-tl-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: white; flex-shrink: 0; margin-top: 2px; }
.mp-tl-body { flex: 1; min-width: 0; }
.mp-tl-meta { font-size: 11px; color: var(--text-muted, #888); margin-bottom: 2px; }
.mp-tl-text { font-size: 13px; }

/* ── CLIENT DETAIL VIEW ── */
.client-detail-view {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
}

.top-header-section.company.mb0 {
  border-bottom: none !important;
}

.client-detail-body {
  display: flex; flex: 1 1 0; min-height: 0; overflow: hidden;
}

/* Left sidebar */
.client-detail-sidebar {
  width: 260px; flex-shrink: 0; border-right: 1px solid var(--border-content, #e8e8e8);
  overflow-y: auto; padding: 20px 0;
}

.cd-sidebar-identity { padding: 0 20px 20px; border-bottom: 1px solid var(--border-content, #e8e8e8); margin-bottom: 4px; }
.cd-sb-avatar { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: white; margin-bottom: 10px; }
.cd-sb-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cd-sb-since { font-size: 12px; color: var(--text-muted, #888); }

/* Sidebar field rows */
.cd-sidebar-section { padding: 16px 20px; border-bottom: 1px solid var(--border-content, #e8e8e8); }
.cd-sidebar-section:last-child { border-bottom: none; }
.cd-sidebar-section-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-lighter, #bbb); margin-bottom: 10px;
}

.field-row {
  display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; min-height: 28px;
}
.field-row-left { display: flex; align-items: center; gap: 6px; width: 110px; flex-shrink: 0; }
.field-icon { opacity: 0.5; flex-shrink: 0; }
.field-label { font-size: 12px; color: var(--text-muted, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-row-value { flex: 1; min-width: 0; font-size: 13px; }
.field-row-value a { color: var(--color-primary, #22AD01); text-decoration: none; }
.field-row-value a:hover { text-decoration: underline; }

/* Sidebar relationship rows */
.cd-rel-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  font-size: 13px; cursor: pointer; border-radius: 4px;
}
.cd-rel-item:hover { background: var(--bg-grey-fa, #fafafa); margin: 0 -4px; padding: 5px 4px; }
.cd-rel-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: white;
}
.cd-rel-name { font-size: 13px; font-weight: 500; }
.cd-rel-title { font-size: 11px; color: var(--text-muted, #888); }

/* Right content area */
.client-detail-content {
  flex: 1 1 0; min-width: 0; overflow-y: auto;
}

/* Tab panels */
.tab-panel { display: none; padding: 24px 28px; }
.tab-panel.active { display: block; }

/* Tab settings button */
.cd-tab-settings-btn:hover { background: var(--bg-grey-f1, #f1f1f1) !important; color: var(--text-default, #1a1a1a) !important; }

/* ── OVERVIEW TAB ── */
.snapshot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px;
}
.snapshot-card {
  border: 1px solid var(--border-content, #e8e8e8); border-radius: 8px;
  padding: 16px; background: #fff;
}
.snapshot-card-label { font-size: 12px; color: var(--text-muted, #888); margin-bottom: 6px; }
.snapshot-card-value { font-size: 22px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
.snapshot-card-sub { font-size: 12px; color: var(--text-muted, #888); }
.snapshot-card-detail { font-size: 11px; color: var(--text-lighter, #bbb); margin-top: 2px; }
.snapshot-progress { height: 4px; border-radius: 2px; background: var(--bg-grey-f1, #f1f1f1); margin-top: 8px; overflow: hidden; }
.snapshot-progress-bar { height: 100%; border-radius: 2px; background: var(--color-primary, #22AD01); }

.ov-section-container { margin-bottom: 28px; }
.ov-section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ov-section-title { font-size: 14px; font-weight: 600; }

.project-row-compact {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--border-content, #e8e8e8); font-size: 13px;
}
.project-row-compact:first-child { border-top: 1px solid var(--border-content, #e8e8e8); }
.project-status {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.project-status.active { background: #22AD01; }
.project-status.review { background: #f59e0b; }
.project-status.completed { background: var(--text-lighter, #bbb); }
.project-row-name { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-row-date { font-size: 12px; color: var(--text-muted, #888); flex-shrink: 0; }
.project-row-status-label { font-size: 11px; color: var(--text-muted, #888); flex-shrink: 0; }

/* Activity preview items (in overview) */
.ov-activity-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-content, #e8e8e8); font-size: 13px;
}
.ov-activity-item:first-child { border-top: 1px solid var(--border-content, #e8e8e8); }
.ov-act-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white;
}
.ov-act-body { flex: 1; min-width: 0; }
.ov-act-meta { font-size: 11px; color: var(--text-muted, #888); margin-bottom: 2px; }
.ov-act-text { line-height: 1.45; }

/* ── PORTAL TAB ── */
.portal-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-content, #e8e8e8); }
.portal-section:last-child { border-bottom: none; }
.portal-section-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

.portal-field-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border-content, #e8e8e8);
}
.portal-field-row:last-child { border-bottom: none; }
.portal-field-left { flex: 1; min-width: 0; }
.portal-field-label { font-size: 13px; font-weight: 500; }
.portal-field-desc { font-size: 12px; color: var(--text-muted, #888); margin-top: 2px; }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-grey-dd, #ddd); border-radius: 20px; transition: background 0.2s;
}
.toggle-slider:before {
  position: absolute; content: ''; height: 14px; width: 14px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-primary, #22AD01); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(16px); }

/* Portal status dot */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.active { background: #22AD01; }
.status-dot.inactive { background: var(--text-lighter, #bbb); }

/* Portal select */
.portal-select {
  border: 1px solid var(--border-content, #e8e8e8); border-radius: 6px;
  padding: 6px 10px; font-size: 13px; background: #fff; cursor: pointer;
  color: var(--text-default, #1a1a1a); outline: none;
}
.portal-select:focus { border-color: var(--color-primary, #22AD01); }

/* Portal RTE */
.portal-rte {
  border: 1px solid var(--border-content, #e8e8e8); border-radius: 6px; overflow: hidden;
  margin-top: 8px;
}
.portal-rte-toolbar {
  display: flex; gap: 2px; padding: 6px 8px;
  border-bottom: 1px solid var(--border-content, #e8e8e8);
  background: var(--bg-grey-fa, #fafafa);
}
.portal-rte-btn {
  width: 26px; height: 26px; border: none; background: none; cursor: pointer;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--text-muted, #888);
}
.portal-rte-btn:hover { background: var(--bg-grey-f1, #f1f1f1); color: var(--text-default, #1a1a1a); }
.portal-rte-body {
  min-height: 80px; padding: 10px 12px; font-size: 13px; color: var(--text-default, #1a1a1a);
  outline: none; line-height: 1.5;
}

/* Portal task checklist */
.portal-task-list { margin-top: 8px; }
.portal-task-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  font-size: 13px; border-bottom: 1px solid var(--border-content, #e8e8e8);
}
.portal-task-item:last-child { border-bottom: none; }
.portal-task-item input[type="checkbox"] { cursor: pointer; }

/* ── ACTIVITY TAB ── */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-content, #e8e8e8);
  position: relative;
}
.activity-item:first-child { border-top: 1px solid var(--border-content, #e8e8e8); }
.activity-item-left { display: flex; flex-direction: column; align-items: center; gap: 0; }
.act-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}
.activity-item-body { flex: 1; min-width: 0; }
.act-meta { font-size: 12px; color: var(--text-muted, #888); margin-bottom: 4px; }
.act-meta strong { color: var(--text-default, #1a1a1a); }
.act-content { font-size: 13px; line-height: 1.5; }
.act-subject { font-weight: 500; margin-bottom: 2px; }
.act-preview { color: var(--text-muted, #888); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── NOTES TAB ── */
.note-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border-content, #e8e8e8);
  position: relative;
}
.note-item:first-child { border-top: 1px solid var(--border-content, #e8e8e8); }
.note-item-body { flex: 1; min-width: 0; }
.note-meta { font-size: 12px; color: var(--text-muted, #888); margin-bottom: 6px; }
.note-meta strong { color: var(--text-default, #1a1a1a); }
.note-text { font-size: 13px; line-height: 1.55; }
.note-actions { flex-shrink: 0; }
.note-menu-btn {
  opacity: 0; border: none; background: none; cursor: pointer;
  color: var(--text-muted, #888); font-size: 16px; padding: 2px 6px;
  border-radius: 4px; letter-spacing: 1px; line-height: 1;
}
.note-item:hover .note-menu-btn { opacity: 1; }
.note-menu-btn:hover { background: var(--bg-grey-f1, #f1f1f1); }

/* Note add toggle */
.contact-note-toggle {
  display: flex; align-items: center; width: 100%; text-decoration: none !important;
  background: var(--bg-grey-fa, #fafafa); padding: 13px 15px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--text-default, #1a1a1a) !important;
  margin-bottom: 16px; box-sizing: border-box; border: 1px solid var(--border-content, #e8e8e8);
}
.contact-note-toggle:hover { background: var(--bg-grey-f5, #f5f5f5) !important; color: var(--text-default, #1a1a1a) !important; }
.contact-note-toggle-icon {
  width: 20px; height: 20px; padding: 4px; background: var(--bg-grey-f1, #f1f1f1);
  border-radius: 5px; margin-right: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-sizing: border-box;
}

/* ── CONTACTS / PEOPLE TAB ── */
.contact-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-content, #e8e8e8);
}
.contact-card:first-child { border-top: 1px solid var(--border-content, #e8e8e8); }
.contact-card-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
}
.contact-card-info { flex: 1; min-width: 0; }
.contact-card-name { font-size: 14px; font-weight: 500; }
.contact-card-title { font-size: 12px; color: var(--text-muted, #888); margin-top: 1px; }
.contact-card-email { font-size: 12px; color: var(--text-muted, #888); margin-top: 2px; }

/* ── DEALS TAB ── */
.deal-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-content, #e8e8e8); font-size: 13px;
}
.deal-row:first-child { border-top: 1px solid var(--border-content, #e8e8e8); }
.deal-stage-badge {
  font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 10px;
  background: var(--bg-grey-f1, #f1f1f1); color: var(--text-muted, #888);
}
.deal-stage-badge.won { background: #dcfce7; color: #166534; }
.deal-stage-badge.lost { background: #fee2e2; color: #991b1b; }
.deal-stage-badge.open { background: #eff6ff; color: #1d4ed8; }
.deal-amount { font-weight: 600; margin-left: auto; flex-shrink: 0; }

/* ── MEETINGS TAB ── */
.meeting-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-content, #e8e8e8); font-size: 13px;
}
.meeting-row:first-child { border-top: 1px solid var(--border-content, #e8e8e8); }
.meeting-date-badge {
  width: 44px; flex-shrink: 0; text-align: center; padding: 6px 0;
  background: var(--bg-grey-fa, #fafafa); border: 1px solid var(--border-content, #e8e8e8);
  border-radius: 6px;
}
.meeting-date-month { font-size: 10px; color: var(--text-muted, #888); text-transform: uppercase; font-weight: 600; }
.meeting-date-day { font-size: 18px; font-weight: 700; line-height: 1.1; }
.meeting-body { flex: 1; min-width: 0; }
.meeting-title { font-weight: 500; margin-bottom: 3px; }
.meeting-meta { font-size: 12px; color: var(--text-muted, #888); }

/* ── GENERIC TAB EMPTY / PLACEHOLDER ── */
.tab-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center; color: var(--text-muted, #888);
}
.tab-empty-icon { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.3; }
.tab-empty-title { font-size: 15px; font-weight: 600; color: var(--text-default, #1a1a1a); margin-bottom: 6px; }
.tab-empty-desc { font-size: 13px; line-height: 1.5; }

/* Tab section title row */
.tab-section-title-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.tab-section-title { font-size: 15px; font-weight: 600; }

/* ── TAB SETTINGS MODAL LIST ── */
.tab-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border-content, #e8e8e8);
  font-size: 13px;
}
.tab-toggle-row:last-child { border-bottom: none; }
.tab-toggle-name { font-weight: 500; }

/* ── TOAST NOTIFICATION ── */
#toast-notification {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: white; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; z-index: 999;
  white-space: nowrap;
}
#toast-notification.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-close { cursor: pointer; opacity: 0.6; font-size: 16px; }
.toast-close:hover { opacity: 1; }

/* ── MODAL OVERLAY ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 39;
  display: flex; align-items: center; justify-content: center;
}
.modal-dialog {
  background: #fff; border-radius: 10px; position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.modal-close-x {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 18px; cursor: pointer; color: var(--text-muted, #888); line-height: 1;
}
.modal-close-x:hover { color: var(--text-default, #1a1a1a); }
