/* Strony od Studentow - CRM workspace 1.7.2 */
:root {
  --font-panelu-sans: "Plus Jakarta Sans";
  --font-panelu-fallback: "Segoe UI", sans-serif;
  --font-tech: "IBM Plex Mono", monospace;
  --bg: #f4f6fb;
  --bg-rgb: 244, 246, 251;
  --surface: #ffffff;
  --surface-2: #edf0f8;
  --panel-bg: #ffffff;
  --panel-subtle: #f8f9fd;
  --text: #20273f;
  --muted: #67728a;
  --muted-soft: #75809a;
  --border: #e2e7f1;
  --border-strong: #cbd4e7;
  --accent: #6552eb;
  --accent-strong: #5240d4;
  --accent-soft: #eeebff;
  --accent-soft-2: #f4f2ff;
  --shadow-soft: 0 4px 18px #21152e04;
  --shadow: 0 12px 36px #21152e0d;
  --shadow-strong: 0 24px 90px #140d2330;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: .2s cubic-bezier(.2,.7,.2,1);
}
html[data-theme="dark"] {
  --bg: #101425;
  --bg-rgb: 16, 20, 37;
  --surface: #171d31;
  --surface-2: #222a43;
  --panel-bg: #171d31;
  --panel-subtle: #12172a;
  --text: #edf0fa;
  --muted: #b0bad0;
  --muted-soft: #8c99b5;
  --border: #2c3550;
  --border-strong: #414d6c;
  --accent: #a295ff;
  --accent-strong: #b8aeff;
  --accent-soft: #a295ff16;
  --accent-soft-2: #a295ff0c;
  --success: #7cc9ae;
  --success-soft: #7cc9ae14;
  --danger: #f09aa7;
  --danger-soft: #f09aa714;
  --warning: #e5bc80;
  --warning-soft: #e5bc8014;
  --shadow-soft: 0 4px 18px #0000000a;
  --shadow: 0 12px 36px #00000025;
  --shadow-strong: 0 24px 90px #00000065;
}
html { font-size: 15px; }
body, input, button, textarea, select { font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; }
body { line-height: 1.55; }
html, body { scroll-behavior: auto; }
::selection { background: #a295ff4d; color: var(--text); }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { opacity: .5; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 12px; transform: translateY(-180%); padding: 10px 16px; border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }
input::placeholder, textarea::placeholder { color: var(--muted-soft); opacity: .85; }
.mono, .kpi-card-value, .panel-metric-value, .stats-kpi-value,
.closing-card-timer strong, [data-panel-clock] { font-family: var(--font-tech); font-variant-numeric: tabular-nums; }
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.brand-logo { display: block; width: 204px; height: auto; max-width: 100%; flex-shrink: 0; }
html[data-theme="light"] .brand-logo path[fill="#eee7f6"] { fill: #20273f; }
html[data-theme="light"] .brand-logo path[fill="#b9a1cb"] { fill: #746080; }
.panel-body::before, .panel-auth-body::before { display: none; }
.panel-shell { height: 100dvh; min-height: 0; }
.panel-main-wrap { height: 100%; min-height: 0; }
.panel-sidebar, html[data-theme="dark"] .panel-sidebar {
  background: var(--panel-subtle); backdrop-filter: none; transition: none;
}
.panel-sidebar-inner { height: 100dvh; padding: 30px 16px 18px; gap: 28px; }
.brand-lockup { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 10px; }
.panel-brand-eyebrow { font-family: var(--font-tech); font-size: 10px; letter-spacing: .16em; color: var(--muted-soft); }
.panel-nav { gap: 5px; }
.sidebar-link { padding: 11px 13px; border-radius: 9px; font-size: 13px; gap: 13px; }
.sidebar-link-icon { width: 21px; height: 21px; color: var(--muted-soft); }
.sidebar-link-label { font-weight: 500; }
.sidebar-link:hover, html[data-theme="dark"] .sidebar-link:hover,
.mobile-nav-link:hover, html[data-theme="dark"] .mobile-nav-link:hover {
  transform: none; background: var(--surface-2); border-color: transparent; box-shadow: none;
}
.sidebar-link.is-active, html[data-theme="dark"] .sidebar-link.is-active,
.mobile-nav-link.is-active, html[data-theme="dark"] .mobile-nav-link.is-active {
  background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; box-shadow: none;
}
.sidebar-link.is-active .sidebar-link-icon { color: var(--accent); }
.sidebar-link.is-active .sidebar-link-label { font-weight: 700; }
.panel-user-card { background: transparent; padding: 14px 7px; border: 0; border-radius: 0; }
.panel-sidebar-footer { border-top: 1px solid var(--border); padding-top: 4px; gap: 8px; }
.panel-user-avatar { width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--accent-soft); box-shadow: none; color: var(--accent); }
.panel-user-label { display: none; }
.panel-user-name { font-size: 13px; font-weight: 600; }
.panel-user-role { margin-top: 2px; font-size: 11px; color: var(--muted-soft); }
.panel-meta-list { gap: 4px; padding: 10px 7px 0; }
.panel-meta-row, .panel-meta-row + .panel-meta-row { padding: 3px 0; border: 0; }
.panel-meta-label { font-family: var(--font-tech); font-size: 10px; letter-spacing: .04em; }
.panel-meta-value { font-family: var(--font-tech); font-size: 10px; gap: 6px; }
.status-dot { width: 5px; height: 5px; box-shadow: none !important; }
.panel-topbar { min-height: 82px; padding: 15px 30px; background: var(--bg); backdrop-filter: none; }
.panel-topbar-title { font-size: 16px; font-weight: 600; margin-top: 3px; }
.panel-topbar .panel-overline { font-size: 10px; }
.panel-topbar-actions { gap: 8px; }
.panel-overline { font-family: var(--font-tech); font-size: 10px; letter-spacing: .13em; line-height: 1.5; }
.panel-heading-xl { font-size: clamp(24px,2.35vw,34px); font-weight: 600; line-height: 1.25; letter-spacing: -.05em; }
.panel-heading-lg { font-size: 18px; line-height: 1.4; letter-spacing: -.035em; font-weight: 600; }
.panel-heading-sm { font-size: 15px; line-height: 1.4; }
.panel-muted { font-size: 13px; line-height: 1.8; }
.panel-inline-note { font-size: 12px; }
.panel-scroll-area { padding: 30px 30px 50px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
#panelPageContainer { max-width: 1640px; }
.panel-card, .card-surface, .glass, .auth-card, .kpi-card { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--shadow-soft); }
.dashboard-intro { background: transparent; border: 0; border-radius: 0; padding: 4px 0 8px; box-shadow: none; }
.dashboard-intro-copy .panel-overline { color: var(--accent); margin-bottom: 10px; }
.dashboard-intro-copy .panel-muted { max-width: 440px; }
.dashboard-intro .field-label { font-size: 11px; }
.kpi-card { padding: 19px; position: relative; overflow: hidden; }
.kpi-card-label { font-size: 11px; line-height: 1.6; letter-spacing: 0; text-transform: none; color: var(--muted); }
.kpi-card-icon { color: var(--accent); opacity: .8; }
.kpi-card-icon .ui-icon { width: 18px; height: 18px; }
.kpi-card-value { margin-top: 17px; font-weight: 500; font-size: 29px; letter-spacing: -.06em; }
.kpi-card-head { align-items: flex-start; gap: 8px; min-height: 34px; }
.panel-metric-box, html[data-theme="dark"] .panel-metric-box { background: var(--panel-subtle); padding: 13px 14px; border-radius: 10px; }
.panel-metric-label { font-size: 10px; letter-spacing: .02em; line-height: 1.4; }
.panel-metric-value { font-size: 22px; font-weight: 500; }
.panel-chart-box { border-radius: 10px; }
.field-label { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--muted); }
.panel-input, .panel-select, .panel-textarea { border-radius: 9px; padding: 10px 13px; font-size: 13px; min-height: 43px; }
.panel-textarea { line-height: 1.8; }
.panel-textarea--editor { font-family: var(--font-tech); }
.search-field { border-radius: 9px; min-height: 43px; }
.icon-button, .logout-button, .settings-chip, .settings-line, .filter-chip, .btn, .search-field,
html[data-theme="dark"] .icon-button, html[data-theme="dark"] .logout-button,
html[data-theme="dark"] .settings-chip, html[data-theme="dark"] .settings-line,
html[data-theme="dark"] .filter-chip, html[data-theme="dark"] .btn,
html[data-theme="dark"] .search-field { background: var(--surface); box-shadow: none; }
.icon-button, .logout-button { border-radius: 9px; min-height: 39px; height: 39px; }
.icon-button { width: 39px; }
.logout-button { font-size: 12px; }
.logout-form { margin: 0; }
.btn { min-height: 41px; border-radius: 9px; padding: 0 17px; font-size: 12px; font-weight: 600; }
.btn-xs { min-height: 32px; padding: 0 11px; font-size: 11px; border-radius: 7px; }
.btn-primary, html[data-theme="dark"] .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
html[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover, html[data-theme="dark"] .btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 4px 20px #a295ff1a; }
.btn-success-soft, html[data-theme="dark"] .btn-success-soft { background: var(--success-soft); color: var(--success); }
.btn-danger-soft, html[data-theme="dark"] .btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.icon-button:hover, .logout-button:hover, .settings-chip:hover, .settings-line:hover,
.filter-chip:hover, .btn:hover, .search-field:focus-within { transform: none; border-color: var(--border-strong); box-shadow: none; }
.filter-chip { font-size: 11px; min-height: 34px; padding: 0 13px; border-radius: 7px; font-weight: 500; }
.filter-chip.is-active, html[data-theme="dark"] .filter-chip.is-active { background: var(--accent-soft); border-color: var(--border-strong); color: var(--accent-strong); }
.panel-empty { border-style: solid; background: var(--panel-subtle); font-size: 13px; line-height: 1.8; padding: 24px 20px; }
.panel-table th { font-family: var(--font-tech); font-size: 10px; font-weight: 500; letter-spacing: .05em; white-space: nowrap; }
.panel-table td { font-size: 12px; padding-top: 15px; padding-bottom: 15px; }
.panel-table tbody tr:hover { background: var(--accent-soft-2); }
.panel-table-note { font-size: 11px; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.tag-pill, .priority-pill { font-size: 10px; min-height: 24px; border-radius: 5px; font-weight: 500; }
.panel-dropdown, .mobile-drawer, .lead-modal, .narrow-modal-card, .calendar-day-modal,
.tutorial-card, .changelog-card { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-strong); }
.panel-dropdown-title { font-size: 15px; }
.lead-modal { max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.lead-modal-header { flex-shrink: 0; align-items: center; padding: 3px 4px 14px; margin-bottom: 0; border-bottom: 1px solid var(--border); }
.lead-modal-body { overflow: auto; overscroll-behavior: contain; min-height: 0; padding-top: 18px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.lead-modal-title { font-size: 18px; }
.mobile-drawer-backdrop, .modal-backdrop { background: #07050bb3; }
.toast { background: var(--surface); backdrop-filter: none; }
.panel-dropdown-header { padding: 18px; }
.settings-chip, .settings-line { font-size: 12px; border-radius: 8px; }
.route-progress { background: var(--accent); height: 2px; }
.panel-flash { padding: 12px 16px; border-radius: 10px; }
.panel-flash-copy { font-size: 13px; }
.panel-flash-icon { background: transparent; }
.kanban-column, html[data-theme="dark"] .kanban-column,
.closing-column, html[data-theme="dark"] .closing-column { background: var(--panel-subtle); border-color: var(--border); border-radius: 13px; box-shadow: none; }
.kanban-column-head, .closing-column-head { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.kanban-column-title, .closing-column-title { font-size: 13px; }
.kanban-column-subtitle, .kanban-card-meta { font-size: 10px; letter-spacing: .01em; line-height: 1.5; }
.kanban-count, .closing-count { font-family: var(--font-tech); font-size: 11px; min-width: 25px; height: 25px; border-radius: 7px; }
.kanban-card, html[data-theme="dark"] .kanban-card,
.closing-card, html[data-theme="dark"] .closing-card { background: var(--surface); border-color: var(--border); border-radius: 10px; box-shadow: none; }
.kanban-card:hover, .closing-card:hover { transform: translateY(-1px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.kanban-card.priority-p1 { border-left: 3px solid var(--danger); box-shadow: none; }
.kanban-card-name, .closing-card-name { font-size: 13px; line-height: 1.5; }
.kanban-card-origin--ai-call, .tag-pill--ai-call,
html[data-theme="dark"] .kanban-card-origin--ai-call, html[data-theme="dark"] .tag-pill--ai-call { background: var(--accent-soft); border-color: var(--border-strong); color: var(--accent); box-shadow: none; }
.kanban-card-origin .ui-icon, .tag-pill .ui-icon { width: 12px; height: 12px; }
.kanban-card-phone, .lead-summary-meta { font-size: 12px; }
/* Keep every status in the same row; desktop tracks share the available width. */
.kanban-board-wrap { width: 100%; max-width: 100%; min-width: 0; overflow: visible; padding-bottom: 14px; }
.kanban-board, .kanban-board--compact, .kanban-board--secondary { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); width: 100%; max-width: 100%; gap: 8px; align-items: start; }
.kanban-column { width: auto; min-width: 0; max-width: 100%; padding: 9px; }
.kanban-column-head, html[data-theme="dark"] .kanban-column-head { position: static; background: transparent; padding-bottom: 11px; min-width: 0; gap: 6px; align-items: flex-start; }
.kanban-column-head > div { min-width: 0; }
.kanban-column-title { overflow-wrap: anywhere; }
.kanban-column-subtitle { display: none; }
.kanban-count { flex-shrink: 0; }
.kanban-card { padding: 9px; min-width: 0; max-width: 100%; }
.kanban-card-name-line { flex-wrap: wrap; }
.kanban-card-name { flex-basis: 100%; white-space: normal; overflow-wrap: anywhere; }
.kanban-card-status-inline { display: none; }
.kanban-card-bottom { flex-direction: column; align-items: stretch; gap: 7px; }
.kanban-card-bottom .btn { width: 100%; min-width: 0; flex: 0 0 auto; margin-left: 0; padding-inline: 5px; font-size: 11px; }
.kanban-card-phone { font-family: var(--font-tech); font-size: 10px; }
@media (min-width:768px) and (max-width:1599px) {
  .kanban-column-head { flex-direction: column; }
  .kanban-column-title { min-height: 32px; font-size: 12px; line-height: 1.3; }
  .kanban-card-top { flex-wrap: wrap; }
  .kanban-card-heading { flex-basis: 100%; }
}
@media (min-width:768px) and (max-width:1099px) {
  .kanban-board { gap: 5px; }
  .kanban-column { padding: 6px; border-radius: 9px; }
  .kanban-card { padding: 6px; border-radius: 7px; }
  .kanban-card-name { font-size: 11px; }
  .kanban-card-meta { font-size: 9px; }
  .kanban-card-phone { font-size: 9px; }
  .kanban-card-bottom .btn { font-size: 10px; padding-inline: 2px; }
}
@media (max-width:767px) {
  .kanban-board-wrap { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
  .kanban-board { grid-auto-columns: minmax(240px,80vw); gap: 12px; }
  .kanban-column { padding: 13px; scroll-snap-align: start; }
  .kanban-card { padding: 12px; }
  .kanban-card-bottom { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .kanban-card-bottom .btn { width: auto; margin-left: auto; }
  .kanban-card-phone { font-size: 11px; }
}
.closing-card-grid, .closing-card-meta, .closing-card-timer strong, .closing-card-no-date { font-size: 11px; }
.closing-column--late, html[data-theme="dark"] .closing-column--late { border-top: 2px solid var(--warning); }
.closing-column--follow, html[data-theme="dark"] .closing-column--follow { border-top: 2px solid var(--accent); }
.closing-card-timer strong { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--border-strong); }
.lead-highlight-card, .timeline-card, .notification-card, .calendar-week-card,
.calendar-day-cell, html[data-theme="dark"] .calendar-day-cell { border-color: var(--border); border-radius: 10px; }
.timeline-card-meta, .lead-highlight-meta { font-size: 10px; line-height: 1.6; letter-spacing: .02em; }
.lead-highlight-name, .calendar-list-title, .notification-card-title { font-size: 13px; }
.norm-topbar-badge { border-radius: 9px; box-shadow: none; }
.norm-topbar-label { font-size: 9px; letter-spacing: .04em; }
.norm-topbar-value { font-family: var(--font-tech); font-size: 12px; }
.calendar-month-head div { font-family: var(--font-tech); font-size: 10px; letter-spacing: .05em; }
.calendar-day-cell.is-today { border-color: var(--accent); background: var(--accent-soft); }
.mobile-drawer { padding: 24px 20px; width: min(340px,90vw); }
.mobile-brand-logo { margin-bottom: 12px; }
.mobile-brand-logo .brand-logo { width: 198px; }
.mobile-nav-link { padding: 12px; font-size: 14px; border-radius: 9px; }
.mobile-drawer-overlay { transition: opacity .28s ease, visibility .28s ease; }
.mobile-drawer { transition: transform .34s cubic-bezier(.2,.7,.2,1); }

@media (min-width: 1100px) {
  .panel-sidebar, .panel-sidebar:hover { width: 250px; min-width: 250px; }
  .panel-brand-copy, .sidebar-link-copy, .panel-user-copy, .panel-meta-list { opacity: 1; max-width: 1000px; transform: none; }
  .sidebar-link { justify-content: flex-start; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .panel-sidebar, .panel-sidebar:hover { width: 76px; min-width: 76px; }
  .panel-sidebar-inner { padding: 24px 10px 16px; }
  .brand-lockup { padding: 0 6px; height: 48px; overflow: hidden; display: block; }
  .brand-lockup .brand-logo { width: 204px; max-width: none; }
  .brand-lockup .panel-brand-eyebrow { display: none; }
  .panel-sidebar:hover .sidebar-link-copy, .panel-sidebar:hover .panel-user-copy,
  .panel-sidebar:hover .panel-meta-list, .sidebar-link-copy, .panel-user-copy, .panel-meta-list { opacity: 0; max-width: 0; }
  .sidebar-link, .panel-sidebar:hover .sidebar-link { justify-content: flex-start; gap: 0; }
  .panel-user-card { padding: 12px 10px; }
}
@media (max-width: 1199px) {
  .auth-story { padding: 38px 34px; }
  .auth-story-copy h2 { font-size: 39px; }
  .auth-story-steps { gap: 12px; }
  .auth-step-line { width: 12px; margin-left: 0; }
  .panel-topbar { padding-inline: 22px; }
  .panel-scroll-area { padding: 24px 22px 40px; }
}
@media (max-width: 767px) {
  html { font-size: 15px; }
  .panel-shell, .panel-main-wrap { height: 100dvh; min-height: 0; }
  .panel-topbar { min-height: 73px; padding: 12px 14px; gap: 8px; }
  .panel-topbar-left, .panel-topbar-actions { gap: 7px; min-width: 0; }
  .panel-topbar-title { font-size: 13px; max-width: 112px; }
  .panel-topbar .panel-overline { font-size: 8px; }
  .panel-topbar .icon-button, .panel-topbar .logout-button { min-height: 36px; height: 36px; width: 36px; padding: 0; flex-shrink: 0; }
  .panel-scroll-area { padding: 23px 16px 32px; }
  .panel-heading-xl { font-size: 26px; }
  .panel-heading-lg { font-size: 17px; }
  .panel-card.p-5 { padding: 18px; }
  .dashboard-intro.panel-card { padding: 0; }
  .kpi-card { padding: 17px; }
  .kpi-card-value { font-size: 26px; }
  .dashboard-intro + section { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .panel-input, .panel-select, .panel-textarea, .search-field input { font-size: 16px; }
  .norm-topbar-badge { display: none; }
  .lead-bulk-control { flex: 0 0 auto; }
  .lead-bulk-control .panel-select { height: 44px; }
  .panel-dropdown { max-width: calc(100vw - 28px); }
  .lead-modal { max-height: calc(100dvh - 16px); border-radius: 14px; }
  .calendar-day-cell { padding: 6px 3px; min-height: 75px; border-radius: 6px; }
  .calendar-day-preview { display: none; }
  .calendar-day-count { font-size: 9px; }
  .calendar-month-grid, .calendar-month-head { gap: 4px; }
  .auth-layout { display: block; }
  .auth-story { display: none; }
  .auth-form-panel { min-height: 100dvh; padding: 40px 24px; }
  .auth-mobile-brand { display: block; margin-bottom: 58px; }
  .auth-mobile-brand .brand-logo { width: 205px; }
  .auth-title { font-size: 29px; }
  .auth-form .panel-input { font-size: 16px; }
  .auth-form { margin-top: 30px; }
}
@media (max-height: 600px) and (min-width: 768px) {
  .auth-story { padding-block: 25px; }
  .auth-story-copy { margin-block: 40px; }
  .auth-story-steps { margin-top: 30px; }
  .auth-form-panel { padding-block: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Original brand: a focused sales workspace, not the marketing site. */
html { font-size: 15px; }
body { font-weight: 450; }
.panel-sidebar, html[data-theme="dark"] .panel-sidebar { background: #151b32; border-right: 0; color: #edf0ff; }
.panel-sidebar-inner { padding: 28px 16px 18px; gap: 24px; }
.panel-sidebar .brand-lockup { flex-direction: row; align-items: center; gap: 12px; padding: 0 8px 18px; border-bottom: 1px solid #ffffff12; }
.brand-lockup .panel-brand-avatar, .brand-lockup .brand-mark { width: 36px; height: 46px; flex: 0 0 36px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.brand-lockup img { width: 36px; height: 46px; object-fit: contain; }
.brand-lockup .panel-brand-copy { opacity: 1; max-width: none; transform: none; }
.panel-brand-title { color: #f4f6ff; font-size: 13px; line-height: 1.5; font-weight: 750; letter-spacing: -.025em; }
.panel-brand-eyebrow { color: #8290bc; font-size: 9px; letter-spacing: .14em; margin-bottom: 3px; }
.panel-brand-subtitle { color: #98a5cb; font-size: 10px; }
.panel-sidebar .sidebar-link { color: #a7b3d3; padding: 12px; gap: 12px; }
.panel-sidebar .sidebar-link-icon { color: #8292bc; }
.panel-sidebar .sidebar-link:hover, html[data-theme="dark"] .panel-sidebar .sidebar-link:hover { background: #ffffff07; color: #f4f6ff; }
.panel-sidebar .sidebar-link.is-active, html[data-theme="dark"] .panel-sidebar .sidebar-link.is-active { background: #7364f627; color: #e1dcff; border: 1px solid #a398ff20; }
.panel-sidebar .sidebar-link.is-active .sidebar-link-icon { color: #a69aff; }
.panel-sidebar .sidebar-link-copy { display: block; }
.panel-sidebar .panel-user-name { color: #eef1ff; }
.panel-sidebar .panel-user-role, .panel-sidebar .panel-meta-label { color: #8190b8; }
.panel-sidebar .panel-meta-value { color: #bac5e2; }
.panel-sidebar .panel-user-avatar { color: #c7bfff; background: #7364f623; border: 1px solid #7364f642; }
.panel-sidebar .panel-sidebar-footer { border-color: #ffffff14; }
.panel-sidebar .panel-meta-list { border: 0; background: #ffffff04; border-radius: 10px; padding: 12px; }
.panel-topbar { gap: 18px; padding: 15px 26px; min-height: 82px; }
.panel-topbar-left { gap: 18px; }
.panel-topbar-title { font-weight: 750; }
.panel-heading-xl { font-weight: 700; letter-spacing: -.045em; }
.panel-heading-lg { font-weight: 700; }
.panel-scroll-area { padding: 28px 26px 45px; }
.dashboard-intro { padding-block: 8px 15px; }
.panel-card, .card-surface, .kpi-card { box-shadow: 0 3px 18px #273d7210; }
html[data-theme="dark"] .panel-card, html[data-theme="dark"] .card-surface, html[data-theme="dark"] .kpi-card { box-shadow: 0 3px 18px #00000010; }
.kpi-card-value { color: var(--text); font-size: 30px; letter-spacing: -.07em; }
.kpi-card-icon { display: grid; place-items: center; width: 29px; height: 29px; background: var(--accent-soft); border-radius: 8px; color: var(--accent); }
.kpi-card-head { align-items: center; }
.kpi-card-label { font-size: 11px; font-weight: 550; }
.btn-primary, html[data-theme="dark"] .btn-primary { background: #6552eb; border-color: #6552eb; color: #fff; }
.btn-primary:hover, html[data-theme="dark"] .btn-primary:hover { background: #5643df; color: #fff; }
.btn-primary:disabled { opacity: .55; }
.panel-empty { background: var(--panel-subtle); }
.panel-input, .panel-select, .panel-textarea { font-size: 13px; }
.field-label { color: var(--text); font-weight: 600; font-size: 12px; }
.panel-chart-box { background: var(--panel-subtle); }
.tag-pill, .priority-pill { font-family: var(--font-tech); font-size: 10px; }
.logout-button .ui-icon { width: 18px; height: 18px; }
@media (min-width: 640px) { .logout-button .sm\:inline { display: inline !important; } }

.quick-search-trigger { display: flex; align-items: center; gap: 10px; min-width: 245px; width: clamp(220px,24vw,360px); height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: var(--surface); text-align: left; font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.quick-search-trigger:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.quick-search-trigger .ui-icon { color: var(--muted-soft); width: 17px; height: 17px; }
.quick-search-trigger kbd, kbd.command-key { font-family: var(--font-tech); color: var(--muted-soft); padding: 3px 6px; margin-left: auto; font-size: 10px; border: 1px solid var(--border); border-radius: 5px; }
.quick-add-trigger { gap: 7px; }
.quick-add-trigger .ui-icon { width: 17px; height: 17px; }
.quick-add-trigger span { white-space: nowrap; }

dialog.command-dialog, dialog.quick-lead-dialog { position: fixed; padding: 0; margin: auto; width: min(610px,calc(100vw - 32px)); max-height: min(780px,calc(100dvh - 48px)); border-radius: 17px; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); box-shadow: 0 25px 100px #070b335c; overflow: auto; }
dialog.command-dialog::backdrop, dialog.quick-lead-dialog::backdrop { background: #0d15366e; backdrop-filter: blur(6px); }
dialog.command-dialog[open], dialog.quick-lead-dialog[open] { animation: dialogArrive .2s cubic-bezier(.2,.7,.2,1); }
@keyframes dialogArrive { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: none; } }
.command-search-field { display: flex; align-items: center; gap: 11px; padding: 18px; border-bottom: 1px solid var(--border); }
.command-search-field .ui-icon { color: var(--accent); }
.command-search-field input { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 8px 0; font-size: 15px; width: 100%; min-width: 0; }
.command-search-field input:focus { box-shadow: none; outline: none; }
.command-search-field .icon-button { width: 32px; height: 32px; min-height: 32px; flex-shrink: 0; }
.command-results { padding: 8px; max-height: min(480px,57dvh); overflow-y: auto; }
.command-result { display: flex; align-items: center; gap: 12px; padding: 13px 12px; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); transition: background .15s; }
.command-result:hover, .command-result[aria-selected="true"], .command-result.is-active { border-color: var(--border); background: var(--accent-soft); }
.command-result-copy { flex: 1; min-width: 0; }
.command-result-copy strong { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-result-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.command-result-copy > span, .command-result-copy > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-result-copy > small { font-size: 10px; color: var(--muted-soft); }
.command-result-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.command-result .tag-pill { flex-shrink: 0; }
.command-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--border); color: var(--muted-soft); font-size: 11px; background: var(--panel-subtle); }
.command-empty { padding: 36px 22px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.9; }
.command-empty strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 15px; }
.quick-lead-dialog form { padding: 24px; }
.quick-lead-dialog .lead-modal-header { margin-bottom: 22px; padding: 0 0 17px; }
.quick-lead-dialog .lead-modal-title { margin-top: 5px; font-size: 24px; letter-spacing: -.045em; }
.quick-lead-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.quick-lead-body > p { margin-bottom: 20px; font-size: 13px; line-height: 1.8; }
.quick-lead-full { grid-column: 1/-1; }
.quick-lead-duplicate { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.quick-lead-duplicate[hidden] { display: none; }
.quick-lead-error { margin-top: 18px; }
.quick-lead-grid .field-wrap:has([name="name"]), .quick-lead-grid .field-wrap:has([name="notes"]) { grid-column: 1/-1; }
.quick-lead-dialog details { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; }
.quick-lead-dialog summary { color: var(--accent); cursor: pointer; margin-bottom: 16px; font-weight: 650; }
.quick-lead-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.quick-lead-error { font-size: 12px; line-height: 1.7; background: var(--danger-soft); border-radius: 8px; color: var(--danger); margin-bottom: 15px; padding: 10px 13px; }
.quick-lead-error:empty { display: none; }

.lead-contact-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-subtle); margin-bottom: 16px; }
.lead-contact-strip a { color: var(--accent-strong); font-weight: 700; font-size: 14px; letter-spacing: -.015em; }
.lead-contact-strip button { margin-left: auto; }
.lead-contact-strip .ui-icon { width: 16px; height: 16px; }
.lead-call-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 0; }
.lead-call-details { margin-block: 14px; }
.lead-call-details summary { color: var(--muted); font-size: 11px; cursor: pointer; padding-block: 8px; }
.lead-call-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-call-metrics > * { min-width: 90px; flex: 1; }
.lead-call-recorder--primary { border-color: var(--border-strong); background: var(--surface); }
.lead-tabs { gap: 6px; }
.lead-tab { font-size: 12px; border-radius: 8px; padding: 9px 13px; }
.lead-modal { width: min(1280px,100%); }
.lead-modal-header { background: var(--surface); }
.lead-modal-body { padding: 18px 2px 0; }

/* Sign-in of the original WBZ CRM. */
.panel-auth-body { overflow: auto; background: var(--bg); }
.panel-auth-wrap { display: grid; place-items: center; min-height: 100dvh; padding: 30px; }
.auth-workspace { width: min(1120px,calc(100vw - 60px)); min-height: 700px; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 90px #1c255019; }
.auth-story { position: relative; isolation: isolate; overflow: hidden; padding: 48px 44px; color: #eff2ff; background: #151b32; display: flex; flex-direction: column; justify-content: center; }
.auth-story::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; top: -325px; right: -315px; border-radius: 50%; border: 1px solid #8e8bdf70; box-shadow: 0 0 0 60px #6b5cff09,0 0 0 61px #8e8bdf40,0 0 0 122px #6b5cff06,0 0 0 123px #8e8bdf25; }
.auth-story-brand { position: relative; display: flex; align-items: center; gap: 13px; margin-bottom: 70px; }
.auth-story-brand img { width: 44px; height: 54px; object-fit: contain; }
.auth-story-brand strong { font-size: 16px; }
.auth-eyebrow { font-family: var(--font-tech); color: #9f97ff; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; }
.auth-story-title { position: relative; font-size: clamp(35px,3.7vw,50px); font-weight: 650; line-height: 1.15; letter-spacing: -.055em; margin: 0; max-width: 480px; }
.auth-story-copy > p { color: #a4b1d1; font-size: 14px; line-height: 1.8; max-width: 360px; margin-top: 23px; }
.auth-story-points { margin-top: 42px; display: grid; gap: 15px; padding: 0; list-style: none; }
.auth-story-points li { display: flex; align-items: center; gap: 11px; font-size: 13px; color: #ccd5ec; }
.auth-story-points .ui-icon { color: #9c90ff; width: 18px; height: 18px; }
.auth-card { width: auto; max-width: none; padding: 52px clamp(30px,4.3vw,64px); border: 0; border-radius: 0; box-shadow: none; background: var(--surface); align-content: center; }
.auth-card .auth-brand { margin-bottom: 27px; }
.auth-brand-avatar { display: none; }
.auth-brand-title { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.auth-brand-subtitle { display: none; }
.auth-title { font-size: 29px; font-weight: 750; line-height: 1.35; letter-spacing: -.045em; }
.auth-text { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.auth-form { margin-top: 32px; gap: 20px; }
.auth-form .panel-input { min-height: 49px; padding: 12px 14px; font-size: 14px; }
.auth-form .btn-primary { height: 48px; margin-top: 8px; }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 48px !important; }
.auth-password-wrap .icon-button { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 39px; height: 39px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; }
.auth-password-wrap .icon-button:hover { background: var(--accent-soft); color: var(--accent); }
.auth-footer { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; font-size: 11px; line-height: 1.8; }
.auth-footer-version { font-family: var(--font-tech); font-size: 9px; letter-spacing: .04em; }
.auth-alert { font-size: 12px; color: var(--danger); border: 1px solid var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 13px; }

@media (min-width: 1100px) {
  .panel-body[data-path] .panel-sidebar, .panel-body[data-path] .panel-sidebar:hover { width: 252px; min-width: 252px; }
  .panel-body[data-path] .panel-sidebar :is(.panel-brand-copy,.sidebar-link-copy,.panel-user-copy,.panel-meta-list),
  .panel-body[data-path] .panel-sidebar:hover :is(.panel-brand-copy,.sidebar-link-copy,.panel-user-copy,.panel-meta-list) { opacity: 1; max-width: 1000px; overflow: visible; transform: none; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .panel-body[data-path] .panel-sidebar, .panel-body[data-path] .panel-sidebar:hover { width: 76px; min-width: 76px; }
  .panel-body[data-path] .panel-sidebar :is(.sidebar-link-copy,.panel-user-copy,.panel-meta-list),
  .panel-body[data-path] .panel-sidebar:hover :is(.sidebar-link-copy,.panel-user-copy,.panel-meta-list) { opacity: 0; max-width: 0; overflow: hidden; transform: none; }
  .panel-sidebar .brand-lockup { height: 66px; padding: 0 10px 15px; border: 0; }
  .brand-lockup .panel-brand-copy { display: none; }
  .panel-sidebar .sidebar-link { padding: 12px; justify-content: center; }
  .panel-sidebar .panel-meta-list { display: none; }
  .panel-topbar-copy { display: none; }
  .panel-topbar { gap: 10px; padding-inline: 20px; }
  .quick-search-trigger { min-width: 220px; width: 220px; }
  .norm-topbar-badge { display: none; }
}
@media (max-width: 1250px) and (min-width: 1100px) {
  .panel-topbar-copy { display: none; }
  .quick-search-trigger { width: 260px; }
  .norm-topbar-badge { display: none; }
}
@media (max-width: 767px) {
  .panel-topbar { min-height: 69px; padding: 11px 14px; gap: 8px; }
  .panel-topbar-left { gap: 7px; }
  .panel-topbar-actions { gap: 7px; }
  .panel-topbar-copy { display: none; }
  .quick-search-trigger { min-width: 36px; width: 36px; height: 36px; padding: 0; justify-content: center; }
  .quick-search-trigger span, .quick-search-trigger kbd { display: none; }
  .quick-add-trigger { min-height: 36px; padding-inline: 10px; font-size: 11px; }
  .quick-add-trigger .ui-icon { width: 15px; height: 15px; }
  .panel-scroll-area { padding: 21px 14px 30px; }
  .panel-input, .panel-select, .panel-textarea { font-size: 16px; }
  .lead-bulk-control { flex: 0 0 auto; }
  .lead-bulk-control .panel-select { height: 44px; }
  .quick-lead-grid { grid-template-columns: 1fr; gap: 16px; }
  .quick-lead-dialog form { padding: 20px; }
  .quick-lead-footer { position: sticky; bottom: -20px; background: var(--surface); padding-block: 16px; margin-bottom: -20px; }
  dialog.quick-lead-dialog, dialog.command-dialog { max-height: calc(100dvh - 24px); width: calc(100vw - 24px); border-radius: 14px; }
  .command-search-field input { font-size: 16px; }
  .command-search-field { padding: 12px; }
  .command-footer { font-size: 10px; }
  .command-result .tag-pill { max-width: 85px; white-space: normal; text-align: center; font-size: 9px; }
  .lead-contact-strip { padding: 11px; }
  .lead-call-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lead-call-metrics > * { min-width: 0; }
  .lead-call-metrics .panel-metric-label { font-size: 9px; }
  .lead-call-metrics .panel-metric-value { font-size: 13px; }
  .panel-auth-wrap { padding: 0; }
  .auth-workspace { display: block; width: 100vw; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-story { display: none; }
  .auth-card { min-height: 100dvh; padding: 35px 26px; }
  .auth-brand-avatar { display: block; width: 40px; height: 50px; box-shadow: none; background: transparent; border: 0; }
  .auth-brand-avatar img { width: 100%; height: 100%; object-fit: contain; }
  .auth-card .auth-brand { margin-bottom: 42px; }
  .auth-form .panel-input { font-size: 16px; }
}
@media (max-height: 740px) and (min-width: 768px) {
  .auth-workspace { min-height: 620px; }
  .auth-story { padding-block: 35px; }
  .auth-story-brand { margin-bottom: 45px; }
  .auth-card { padding-block: 35px; }
}

/* Keep actions visible while long quick-add forms scroll inside the dialog. */
dialog.quick-lead-dialog[open] { display: flex; overflow: hidden; }
#quickLeadForm { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: min(778px,calc(100dvh - 50px)); overflow: hidden; }
.quick-lead-dialog .lead-modal-header { flex-shrink: 0; }
.quick-lead-body { min-height: 0; overflow-y: auto; padding: 2px 6px; margin-inline: -6px; overscroll-behavior: contain; }
.quick-lead-footer { position: static; flex-shrink: 0; margin-bottom: 0; padding-bottom: 0; }
@media (max-width: 767px) {
  #quickLeadForm { max-height: calc(100dvh - 26px); }
  .quick-lead-footer { margin-top: 16px; gap: 12px; }
  .quick-lead-footer .btn { flex-shrink: 0; }
  .quick-lead-footer .panel-table-note { font-size: 10px; line-height: 1.6; }
}
@media (max-width: 360px) {
  .quick-add-trigger span { display: none; }
  .quick-add-trigger { width: 36px; padding-inline: 0; justify-content: center; }
}
