/* Central Command */

.app-container .main-content.central-page {
    flex: 1;
    margin-left: calc(240px + var(--sidebar-layout-offset, 0px) - var(--sidebar-main-seam, 0px));
    padding: 20px;
    background: #f2f2f7;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.app-container.sidebar-collapsed .main-content.central-page {
    margin-left: calc(60px + var(--sidebar-layout-offset, 0px) - var(--sidebar-main-seam, 0px));
}

@media (max-width: 768px) {
    .app-container .main-content.central-page {
        margin-left: 0;
        padding: 12px;
    }
}

.central-container {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 140px;
}

.central-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.central-header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.central-header-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.central-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.central-header p {
    color: #6e6e73;
    margin: 6px 0 0;
    font-size: 14px;
    max-width: 520px;
    line-height: 1.45;
}

/* More on Central — collapsed by default (pipeline, cleanings, overviews) */
.central-more-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.central-more-panel-head {
    display: flex;
    align-items: center;
}

.central-more-panel-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    min-width: 0;
}

.central-more-panel-toggle-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.central-more-panel-toggle-main > i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.central-more-panel-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.central-more-panel-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
}

.central-more-panel-subtitle {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
}

.central-more-panel-chevron {
    color: #86868b;
    font-size: 14px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.central-more-panel.is-expanded .central-more-panel-chevron {
    transform: rotate(180deg);
}

.central-more-panel-body {
    padding: 0 16px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.central-more-panel-body > .central-section,
.central-more-panel-body > .central-client-overview,
.central-more-panel-body > .central-overview-section {
    margin-top: 16px;
}

.central-schedule-mismatch-detail {
    margin-top: 4px;
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.4;
}

html[data-theme="dark"] .central-schedule-mismatch-detail {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-more-panel {
    background: rgba(28, 28, 30, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .central-more-panel-title {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-more-panel-subtitle,
html[data-theme="dark"] .central-more-panel-chevron {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-more-panel-body {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Embedded Central (calendar side panel) — Decisions only */
html.central-embed,
html.central-embed body.page-central {
    height: 100%;
    overflow: hidden;
    background: #f5f5f7;
}

html.central-embed body.page-central .sidebar,
html.central-embed body.page-central .mobile-menu-toggle,
html.central-embed .central-command-hero,
html.central-embed #central-more-panel,
html.central-embed #central-history-panel,
html.central-embed #central-history-btn {
    display: none !important;
}

html.central-embed body.page-central .app-container {
    min-height: 100%;
    height: 100%;
}

html.central-embed body.page-central .main-content.central-page {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    height: 100%;
    overflow: auto;
}

html.central-embed .central-container {
    max-width: none;
    padding: 10px 12px 20px;
    margin: 0;
}

html.central-embed #central-section-updates {
    margin: 0;
    box-shadow: none;
    border-radius: 12px;
}

html.central-embed #central-section-updates .central-section-header h2 {
    font-size: 16px;
}

html.central-embed #central-section-updates .central-section-header p {
    font-size: 12px;
}

html.central-embed .central-card {
    margin-bottom: 10px;
}

html[data-theme="dark"].central-embed,
html[data-theme="dark"].central-embed body.page-central {
    background: #1c1c1e;
}

/* Daily Overview (collapsible) */
.central-overview-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.central-overview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 14px;
}

.central-overview-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 8px 18px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    min-width: 0;
}

.central-overview-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.central-overview-meta {
    font-size: 12px;
    color: #6e6e73;
    white-space: nowrap;
}

.central-overview-toggle-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.central-overview-toggle-main > i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.central-overview-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.central-overview-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
}

.central-overview-subtitle {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
}

.central-overview-meta.is-error {
    color: #dc2626;
}

.central-overview-retry {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f2f2f7;
    color: #6366f1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.central-overview-retry:hover {
    background: #e8e8ed;
}

.central-overview-chevron {
    color: #86868b;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.central-overview-section.is-expanded .central-overview-chevron {
    transform: rotate(180deg);
}

.central-overview-body {
    padding: 0 22px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.central-overview-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 4px;
    color: #6e6e73;
    font-size: 14px;
}

.central-overview-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e5ea;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: central-overview-spin 0.8s linear infinite;
}

@keyframes central-overview-spin {
    to { transform: rotate(360deg); }
}

.central-overview-empty {
    padding: 14px 0 4px;
    color: #6e6e73;
    font-size: 14px;
}

.central-overview-empty p {
    margin: 0;
}

.central-overview-content {
    padding: 16px 0 4px;
}

.central-overview-headline {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #1d1d1f;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.central-overview-headline.tone-warning {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: rgba(217, 119, 6, 0.25);
    color: #9a3412;
}

.central-overview-headline.tone-good {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: rgba(22, 163, 74, 0.25);
    color: #166534;
}

.central-overview-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.central-overview-block {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 0;
}

.central-overview-block.tone-warning {
    background: #fffbf5;
    border-color: rgba(217, 119, 6, 0.2);
}

.central-overview-block.tone-good {
    background: #f6fdf9;
    border-color: rgba(22, 163, 74, 0.18);
}

.central-overview-block--recommendations {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    border-color: rgba(99, 102, 241, 0.22);
}

.central-overview-block-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.central-overview-block-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #fff;
}

.central-overview-block-icon.section-schedule { background: linear-gradient(135deg, #f59e0b, #d97706); }
.central-overview-block-icon.section-leads { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.central-overview-block-icon.section-followups { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.central-overview-block-icon.section-pending { background: linear-gradient(135deg, #818cf8, #6366f1); }
.central-overview-block-icon.section-dailyNotes { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.central-overview-block-icon.section-recommendations { background: linear-gradient(135deg, #34d399, #22c55e); }

.central-overview-block-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.3;
}

.central-overview-block-body p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #3a3a3c;
}

.central-overview-block-body p:last-child {
    margin-bottom: 0;
}

.central-overview-text {
    font-size: 14px;
    line-height: 1.65;
    color: #1d1d1f;
    white-space: pre-wrap;
}

.central-overview-text--fallback {
    padding-top: 2px;
}

@media (max-width: 768px) {
    .central-overview-sections {
        grid-template-columns: 1fr;
    }

    .central-overview-block--recommendations {
        grid-column: auto;
    }
}

/* Nested Client Overview inside Daily Overview */
.central-client-overview {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.central-client-overview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 14px;
}

.central-client-overview-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 8px 18px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    min-width: 0;
}

.central-client-overview-toggle-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.central-client-overview-toggle-main > i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.central-client-overview-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.central-client-overview-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
}

.central-client-overview-subtitle {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
}

.central-client-overview-count {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e8e8ed;
    color: #3a3a3c;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.central-client-overview-chevron {
    color: #86868b;
    font-size: 14px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.central-client-overview.is-expanded .central-client-overview-chevron {
    transform: rotate(180deg);
}

.central-client-overview-retry {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f2f2f7;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.central-client-overview-retry:hover {
    background: #e8e8ed;
}

.central-client-overview-body {
    padding: 0 22px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.central-client-overview-daynav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0 4px;
}

.central-client-overview-daynav-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #3a3a3c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.central-client-overview-daynav-btn:hover:not(:disabled) {
    background: #f2f2f7;
}

.central-client-overview-daynav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.central-client-overview-daynav-label {
    min-width: 148px;
    text-align: center;
    font-size: 13px;
    font-weight: 650;
    color: #1d1d1f;
}

.central-client-overview-loading,
.central-client-overview-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 4px;
    color: #6e6e73;
    font-size: 13px;
}

.central-client-overview-empty p {
    margin: 0;
}

.central-client-overview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.central-client-overview-item {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 11px 13px;
}

.central-client-overview-item.tone-warning {
    background: #fffbf5;
    border-color: rgba(217, 119, 6, 0.2);
}

.central-client-overview-item.tone-good {
    background: #f6fdf9;
    border-color: rgba(22, 163, 74, 0.18);
}

.central-client-overview-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.central-client-overview-item-name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
}

.central-client-overview-item-time {
    font-size: 11px;
    color: #86868b;
    white-space: nowrap;
}

.central-client-overview-item-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #3a3a3c;
}

.central-client-overview-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.central-client-overview-badge.is-booked {
    background: #dcfce7;
    color: #166534;
}

.central-client-overview-badge.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.central-client-overview-meta {
    margin-top: 10px;
    font-size: 11px;
    color: #86868b;
}

.central-client-overview-meta.is-error {
    color: #dc2626;
}

.central-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.central-pending-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
}

/* display:inline-flex above would otherwise override the HTML hidden attribute */
.central-pending-pill[hidden] {
    display: none !important;
}

.central-pending-pill i {
    font-size: 8px;
    animation: central-pulse 1.5s ease-in-out infinite;
}

@keyframes central-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.central-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.central-btn:active {
    transform: scale(0.98);
}

.central-btn-secondary {
    background: #e8e8ed;
    color: #1d1d1f;
}

.central-btn-secondary:hover {
    background: #dcdce2;
}

.central-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.central-btn-primary:hover {
    filter: brightness(1.05);
}

.central-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.central-btn-decline {
    background: transparent;
    color: #6e6e73;
    border: 1px solid #d1d1d6;
}

.central-btn-decline:hover {
    background: #f5f5f7;
    color: #dc2626;
    border-color: #fca5a5;
}

.central-btn-edit {
    background: transparent;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.central-btn-edit:hover {
    background: #eef2ff;
}

.central-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.central-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    color: #6e6e73;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.central-filter:hover {
    background: white;
    color: #1d1d1f;
}

.central-filter.active {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.central-filter-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    min-width: 20px;
    text-align: center;
}

.central-filter.active .central-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Central sections */
.central-page {
    /* keep existing if any */
}

.central-command-hero {
    background: linear-gradient(145deg, #1d1d1f 0%, #2c2c2e 55%, #3a3a3c 100%);
    color: #f5f5f7;
    border-radius: 18px;
    padding: 22px 24px 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

.central-command-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.central-command-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a1a6;
    font-weight: 600;
}

.central-command-greeting {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.central-command-promise {
    margin: 8px 0 0;
    font-size: 14px;
    color: #d2d2d7;
    max-width: 36rem;
    line-height: 1.45;
}

.central-command-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.central-command-hero .central-btn-primary {
    background: #fff;
    color: #1d1d1f;
    border-color: #fff;
}

.central-command-hero .central-btn-primary:hover {
    background: #f5f5f7;
}

.central-command-hero .central-btn-secondary {
    background: transparent;
    color: #f5f5f7;
    border-color: rgba(255, 255, 255, 0.35);
}

.central-command-hero .central-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.central-command-status-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.central-command-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
}

.central-command-stat--urgent .central-command-stat-value {
    color: #ffb4a8;
}

.central-command-stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a1a1a6;
    margin-bottom: 4px;
}

.central-command-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.central-command-hint {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #a1a1a6;
}

.central-card--decision {
    position: relative;
}

.central-decision-banner {
    margin: -4px 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f5f7;
    border-left: 3px solid #86868b;
}

.central-decision-banner--lean {
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border-left: none;
    border-radius: 0;
}

.central-decision-banner--urgent {
    background: #fff5f3;
    border-left-color: #e2445c;
}

.central-decision-banner--opportunity {
    background: #f3faf5;
    border-left-color: #34c759;
}

.central-decision-banner--normal {
    background: #f5f5f7;
    border-left-color: #6366f1;
}

.central-decision-banner--lean.central-decision-banner--urgent,
.central-decision-banner--lean.central-decision-banner--opportunity,
.central-decision-banner--lean.central-decision-banner--normal {
    background: transparent;
    border-left: none;
}

.central-decision-rec {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.central-decision-rec-label {
    display: none;
}

.central-decision-reason-line {
    margin: 6px 0 0;
    font-size: 15px;
    color: #3a3a3c;
    line-height: 1.4;
    font-weight: 500;
}

.central-decision-staff-price-line {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: #3a3a3c;
    line-height: 1.4;
}

.central-decision-staff-price-line--missing {
    color: #6e6e73;
    font-style: italic;
}

.central-decision-staff-price-label {
    display: inline-block;
    font-weight: 650;
    color: #1d4ed8;
    margin-right: 4px;
    font-style: normal;
}

.central-decision-when-line {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #6e6e73;
    line-height: 1.4;
}

.central-why {
    margin-top: 10px;
    padding-top: 4px;
}

.central-why--lean {
    margin-top: 4px;
    padding-top: 0;
}

.central-why-toggle {
    appearance: none;
    border: none;
    background: transparent;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.central-why-toggle .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.15s ease;
}

.central-why-toggle.is-open .fa-chevron-down {
    transform: rotate(180deg);
}

.central-why-toggle:hover {
    color: #1d1d1f;
}

.central-why-panel {
    margin-top: 10px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #ececf0;
}

.central-why-intro,
.central-why-foot {
    margin: 0 0 8px;
    font-size: 12.5px;
    color: #6e6e73;
    line-height: 1.45;
}

.central-why-foot {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid #e5e5ea;
}

.central-why-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.5;
}

.central-why-list li {
    margin-bottom: 4px;
}

.central-assign-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.central-assign-why-block {
    margin: 0;
}

.central-assign-why-lead {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

.central-assign-why-block.is-bad .central-assign-why-lead {
    color: #b45309;
}

.central-assign-why-block .central-assign-match-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 13px;
    color: #3a3a3c;
    line-height: 1.45;
}

.central-assign-why-block .central-assign-match-list li + li {
    margin-top: 3px;
}

.central-assign-address {
    margin: 0;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
}

.central-assign-crm-link {
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    width: fit-content;
}

.central-assign-crm-link:hover {
    text-decoration: underline;
}

.central-double-book-jobs {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.45;
}

.central-double-book-jobs li + li {
    margin-top: 3px;
}

.central-double-book-when {
    color: #6e6e73;
    font-weight: 500;
}

.central-assign-detail-links {
    margin-top: 2px;
}

.central-card--ai-ops.central-card--decision {
    padding-top: 18px;
}

.central-card--decision.central-card--ai-ops {
    border-left-color: #c7c7cc;
}

.central-card--tier-urgent {
    box-shadow: 0 0 0 1px rgba(226, 68, 92, 0.2), 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 800px) {
    .central-command-status-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html[data-theme="dark"] .central-decision-banner {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .central-decision-banner--lean,
html[data-theme="dark"] .central-decision-banner--lean.central-decision-banner--urgent,
html[data-theme="dark"] .central-decision-banner--lean.central-decision-banner--opportunity,
html[data-theme="dark"] .central-decision-banner--lean.central-decision-banner--normal {
    background: transparent;
}

html[data-theme="dark"] .central-decision-banner--urgent {
    background: rgba(226, 68, 92, 0.12);
}

html[data-theme="dark"] .central-decision-banner--opportunity {
    background: rgba(52, 199, 89, 0.1);
}

html[data-theme="dark"] .central-decision-rec {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-decision-reason-line,
html[data-theme="dark"] .central-decision-rec-label {
    color: #d1d1d6;
}

html[data-theme="dark"] .central-decision-staff-price-line {
    color: #d1d1d6;
}

html[data-theme="dark"] .central-decision-staff-price-label {
    color: #93c5fd;
}

html[data-theme="dark"] .central-decision-when-line {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-why-panel {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .central-why-list {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-why-intro,
html[data-theme="dark"] .central-why-foot {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-double-book-jobs {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-double-book-when {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-assign-why-lead {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-assign-why-block .central-assign-match-list {
    color: #d1d1d6;
}

html[data-theme="dark"] .central-assign-address {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-assign-crm-link {
    color: #a5b4fc;
}

html[data-theme="dark"] .central-why-toggle {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-why-toggle:hover {
    color: #f5f5f7;
}

.central-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Let the Decisions “!” tip float outside the card */
#central-section-updates {
    overflow: visible;
    position: relative;
    z-index: 5;
}

#central-section-updates .central-section-header,
#central-section-updates .central-section-header-text,
#central-section-updates .central-section-header h2 {
    overflow: visible;
    position: relative;
    z-index: 6;
}

.central-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.central-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.central-section-header h2 i {
    font-size: 18px;
}

/* Hover / focus “!” explainer next to Updates */
.central-info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    outline: none;
}

.central-info-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #86868b;
    color: #6e6e73;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    cursor: help;
    background: #f5f5f7;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.central-info-tip:hover .central-info-tip-btn,
.central-info-tip:focus .central-info-tip-btn,
.central-info-tip:focus-within .central-info-tip-btn {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #fff;
}

.central-info-tip-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: min(400px, calc(100vw - 32px));
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 14px 16px;
    border-radius: 12px;
    background: #1d1d1f;
    color: #f5f5f7;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.15s ease, visibility 0.15s;
    pointer-events: none;
    font-weight: 400;
    text-align: left;
}

.central-info-tip-panel::before {
    display: none;
}

.central-info-tip.is-open .central-info-tip-panel,
.central-info-tip:focus-within .central-info-tip-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hover open is driven by JS class so we can pin position in the viewport */
.central-info-tip:hover .central-info-tip-btn,
.central-info-tip:focus .central-info-tip-btn,
.central-info-tip:focus-within .central-info-tip-btn,
.central-info-tip.is-open .central-info-tip-btn {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #fff;
}

.central-info-tip-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.central-info-tip-lead,
.central-info-tip-foot {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #d2d2d7;
}

.central-info-tip-foot {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #a1a1a6;
}

.central-info-tip-link {
    display: inline-block;
    margin-top: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.central-info-tip-link:hover {
    color: #d2d2d7;
}

.central-info-tip-list {
    margin: 0;
    padding: 0 0 0 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #e8e8ed;
}

.central-info-tip-list li {
    margin-bottom: 6px;
}

.central-info-tip-list li:last-child {
    margin-bottom: 0;
}

.central-info-tip-list strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 640px) {
    .central-info-tip-panel {
        width: min(340px, calc(100vw - 24px));
    }
}

#central-section-updates .central-section-header h2 i { color: #4f46e5; }
#central-section-today .central-section-header h2 i { color: #d97706; }
#central-section-tomorrow .central-section-header h2 i { color: #0369a1; }

html[data-theme="dark"] .central-info-tip-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: #86868b;
    color: #d2d2d7;
}

html[data-theme="dark"] .central-info-tip:hover .central-info-tip-btn,
html[data-theme="dark"] .central-info-tip:focus .central-info-tip-btn,
html[data-theme="dark"] .central-info-tip:focus-within .central-info-tip-btn {
    background: #f5f5f7;
    border-color: #f5f5f7;
    color: #1d1d1f;
}

.central-section-header p {
    color: #6e6e73;
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.45;
}

.central-section-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.central-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

#central-section-updates .central-section-count {
    background: #eef2ff;
    color: #4f46e5;
}

#central-section-today .central-section-count {
    background: #fef3c7;
    color: #b45309;
}

#central-section-tomorrow .central-section-count {
    background: #e0f2fe;
    color: #0369a1;
}

.central-section .daily-notes-ai-status {
    margin-bottom: 12px;
    max-width: none;
}

/* Daily Notes */
.daily-notes-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.daily-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.daily-notes-ai-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 420px;
    flex-shrink: 0;
}

.daily-notes-ai-status-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.daily-notes-ai-status--running {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.daily-notes-ai-status--running .daily-notes-ai-status-icon {
    color: #4f46e5;
}

.daily-notes-ai-status--complete {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.daily-notes-ai-status--complete .daily-notes-ai-status-icon {
    color: #16a34a;
}

.daily-notes-ai-status--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.daily-notes-ai-status--error .daily-notes-ai-status-icon {
    color: #dc2626;
}

.daily-notes-ai-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.daily-notes-ai-retry:hover {
    background: rgba(0, 0, 0, 0.1);
}

.daily-notes-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-notes-header h2 i {
    color: #f59e0b;
}

.daily-notes-header p {
    color: #6e6e73;
    font-size: 13px;
    margin: 6px 0 0;
    max-width: 520px;
    line-height: 1.45;
}

.daily-notes-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.daily-notes-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: #f0f0f5;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.daily-notes-filter:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.daily-notes-filter.active {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.daily-notes-filter-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    min-width: 18px;
    text-align: center;
}

.daily-notes-filter.active .daily-notes-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

.daily-notes-body {
    min-height: 60px;
}

.daily-notes-empty {
    text-align: center;
    padding: 32px 20px;
    color: #6e6e73;
}

.daily-notes-empty i {
    font-size: 32px;
    color: #d1d1d6;
    margin-bottom: 12px;
}

.daily-notes-empty p {
    font-size: 13px;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.5;
}

.daily-notes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.daily-notes-client-group {
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    overflow: hidden;
}

.daily-notes-client-head {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 14px;
    background: #fafafa;
    width: 100%;
    border: none;
    border-bottom: 1px solid #e8e8ed;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
    box-sizing: border-box;
}

.daily-notes-client-head:hover {
    background: #f0f0f5;
}

.daily-notes-client-head:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: -2px;
}

.daily-notes-client-head-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.daily-notes-client-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-notes-client-meta {
    font-size: 12px;
    color: #6e6e73;
    white-space: nowrap;
    justify-self: end;
    grid-column: 2 / -1;
}

@media (min-width: 520px) {
    .daily-notes-client-meta {
        grid-column: auto;
        justify-self: auto;
    }
}

.daily-notes-group-count {
    font-size: 11px;
    font-weight: 600;
    color: #6e6e73;
    background: #e8e8ed;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.daily-note-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #86868b;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    align-self: flex-start;
    margin-top: 2px;
}

.is-expanded > .daily-notes-client-head .daily-note-chevron,
.daily-note-item.is-expanded > .daily-note-toggle .daily-note-chevron {
    transform: rotate(0deg);
}

.is-collapsed > .daily-notes-client-head .daily-note-chevron,
.daily-note-item.is-collapsed > .daily-note-toggle .daily-note-chevron {
    transform: rotate(-90deg);
}

.daily-notes-client-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.daily-notes-client-group.is-collapsed .daily-notes-client-items {
    display: none !important;
}

.daily-notes-client-group.is-expanded .daily-notes-client-items {
    display: flex;
}

.daily-note-item.is-collapsed .daily-note-body {
    display: none !important;
}

.daily-note-item.is-expanded .daily-note-body {
    display: block;
}

.daily-note-item {
    border-bottom: 1px solid #f0f0f5;
    position: relative;
}

.daily-note-item:last-child {
    border-bottom: none;
}

.daily-note-toggle {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: start;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
    box-sizing: border-box;
}

.daily-note-toggle:hover {
    background: #fafafa;
}

.daily-note-toggle-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.daily-note-toggle-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    min-width: 0;
}

.daily-note-preview {
    display: none;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.45;
    overflow: hidden;
    word-break: break-word;
}

.daily-note-item.is-collapsed .daily-note-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.daily-note-item.is-expanded .daily-note-preview {
    display: none;
}

.daily-note-dismiss {
    grid-column: 3;
    grid-row: 1;
    align-self: flex-start;
}

.daily-note-body {
    padding: 0 14px 12px 42px;
}

.daily-note-item--alert {
    background: #fffbeb;
}

.daily-note-item--alert .daily-note-toggle:hover {
    background: #fef3c7;
}

.daily-note-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.daily-note-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 5px;
}

.daily-note-item--ai .daily-note-source { background: #f3e8ff; color: #9333ea; }
.daily-note-item--manual .daily-note-source { background: #dbeafe; color: #2563eb; }
.daily-note-item--client .daily-note-source { background: #dcfce7; color: #16a34a; }

.daily-note-item--ai-generated {
    border-left: 3px solid #9333ea;
    padding-left: 11px;
}

.daily-note-ai-descriptor {
    font-size: 12px;
    color: #7c3aed;
    margin-bottom: 8px;
    line-height: 1.4;
}

.daily-note-quote-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86868b;
    font-style: normal;
    margin-bottom: 4px;
}

.daily-note-date-tag i {
    margin-right: 3px;
    font-size: 10px;
}

.daily-note-ai-descriptor--stale {
    color: #b45309;
    background: #fffbeb;
    border-radius: 8px;
    padding: 8px 10px;
}

.daily-note-ai-descriptor--profile-fill {
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 8px;
    padding: 8px 10px;
}

.daily-note-item--profile-fill {
    border-left-color: #0284c7;
}

.daily-note-fill-badge {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

.daily-note-stale-warn {
    font-size: 12px;
    line-height: 1.45;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.daily-note-stale-warn--outdated {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.daily-note-stale-warn--uncertain {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.daily-note-stale-action {
    margin-top: 6px;
    font-weight: 600;
}

.daily-note-stale-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 8px;
}

.daily-note-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 8px;
}

.daily-note-review-actions .central-btn {
    font-size: 12px;
    padding: 6px 12px;
}

.daily-note-item--scheduling .daily-note-source {
    background: #fce7f3;
    color: #9d174d;
}

.daily-note-item--scheduling {
    border-left-color: #db2777;
}

.daily-note-item--has-stale-warn {
    border-left-color: #f59e0b;
}

.daily-note-item--stale-review {
    border-left-color: #dc2626;
}

.daily-note-item--employee .daily-note-stale-warn,
.daily-note-item--entry .daily-note-stale-warn,
.daily-note-item--admin .daily-note-stale-warn,
.daily-note-item--addon .daily-note-stale-warn {
    margin-top: 0;
}

.daily-note-sublabel {
    font-size: 11px;
    color: #86868b;
    font-weight: 500;
}

.daily-note-category {
    font-size: 10px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.daily-note-date-tag {
    font-size: 11px;
    color: #6e6e73;
    background: #f0f0f5;
    padding: 2px 8px;
    border-radius: 6px;
}

.daily-note-dismiss {
    margin-left: 0;
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 12px;
    flex-shrink: 0;
}

.daily-note-toggle .daily-note-dismiss:hover {
    background: #f0f0f5;
    color: #dc2626;
}

.daily-note-client {
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 4px;
}

.daily-notes-client-group .daily-note-client {
    display: none;
}

.daily-note-content {
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.5;
    white-space: pre-wrap;
}

.daily-note-reason {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 8px;
}

.daily-note-quote {
    font-size: 12px;
    color: #86868b;
    font-style: italic;
    margin-top: 6px;
    padding-left: 10px;
    border-left: 2px solid #e5e7eb;
}

.daily-note-quote--prominent {
    font-size: 14px;
    color: #374151;
    font-style: normal;
    white-space: pre-wrap;
    line-height: 1.5;
    margin-top: 4px;
    padding: 10px 12px;
    border-left: 3px solid #3b82f6;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
}

.daily-note-customer-message {
    padding: 0;
    margin-top: 10px;
}

.daily-note-body .daily-note-customer-message .central-card-customer-message {
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
}

.central-card-customer-message--compact .central-sms-message-panel--compact .central-sms-trigger:empty {
    display: none;
}

.central-card-customer-message--compact .central-sms-message-panel--compact:not(.is-thread-expanded) .central-sms-expand {
    margin-top: 0;
}

.central-card-customer-message--compact.is-thread-expanded .central-sms-message-panel--compact .central-sms-trigger {
    display: block;
    margin-bottom: 8px;
}

.daily-notes-type-filters {
    margin-top: -6px;
}

.daily-notes-type-filters .daily-notes-filter.active {
    background: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.daily-note-item--admin .daily-note-source { background: #f1f5f9; color: #475569; }
.daily-note-item--employee .daily-note-source { background: #e0f2fe; color: #0369a1; }
.daily-note-item--entry .daily-note-source { background: #fef3c7; color: #b45309; }
.daily-note-item--addon .daily-note-source { background: #cffafe; color: #0891b2; }

.central-history-panel {
    margin: 0 0 14px;
    padding: 14px 16px 12px;
    border-radius: 14px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 48%);
    box-shadow: 0 4px 18px rgba(15, 39, 66, 0.06);
}

.central-history-panel[hidden] {
    display: none !important;
}

.central-history-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.central-history-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.central-history-panel-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f2742;
    letter-spacing: -0.02em;
}

.central-history-panel-sub {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

.central-btn-compact {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.central-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(52vh, 420px);
    overflow: auto;
    padding-right: 2px;
}

.central-history-empty {
    text-align: center;
    padding: 28px 16px;
    color: #64748b;
    font-size: 0.9rem;
}

.central-history-empty i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #94a3b8;
}

.central-history-empty p {
    margin: 0;
}

.central-history-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.central-history-row.is-reverted {
    opacity: 0.72;
    background: #f8fafc;
}

.central-history-row-main {
    min-width: 0;
    flex: 1;
}

.central-history-row-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 4px;
}

.central-history-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.central-history-badge--approved {
    background: rgba(15, 123, 108, 0.12);
    color: #0c6559;
}

.central-history-badge--declined {
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

.central-history-badge--reverted {
    background: #e2e8f0;
    color: #475569;
}

.central-history-badge--other {
    background: #eef2ff;
    color: #4338ca;
}

.central-history-type {
    font-size: 0.72rem;
    font-weight: 650;
    color: #64748b;
}

.central-history-when {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-left: auto;
}

.central-history-title {
    margin: 0 0 2px;
    font-size: 0.9rem;
    font-weight: 650;
    color: #0f2742;
    line-height: 1.35;
}

.central-history-sub {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.central-history-row-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex-shrink: 0;
}

.central-history-row-actions .central-btn {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 6px 10px;
}

.central-history-hint {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: right;
    max-width: 110px;
    line-height: 1.3;
}

#central-history-btn.is-active {
    background: #eef2ff;
    border-color: rgba(79, 70, 229, 0.35);
    color: #4338ca;
}

html[data-theme="dark"] .central-history-panel {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.12) 0%, rgba(30, 41, 59, 0.9) 48%);
    border-color: rgba(129, 140, 248, 0.25);
}

html[data-theme="dark"] .central-history-row {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .central-history-title {
    color: #e2e8f0;
}

html[data-theme="dark"] .central-history-panel-title {
    color: #f1f5f9;
}

.central-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.central-empty {
    text-align: center;
    padding: 60px 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.central-empty[hidden] {
    display: none !important;
}

.central-empty-icon {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 16px;
}

.central-empty h2,
.central-empty h3 {
    font-size: 20px;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.central-empty p {
    color: #6e6e73;
    font-size: 14px;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Request cards */
.central-card {
    background: white;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #4f46e5;
    animation: central-card-in 0.25s ease;
}

@keyframes central-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.central-card--client-update { border-left-color: #3b82f6; }
.central-card--name-update { border-left-color: #6366f1; }
.central-card--address-update { border-left-color: #0ea5e9; }
.central-card--phone-update { border-left-color: #14b8a6; }
.central-card--sqft-update { border-left-color: #f59e0b; }
.central-card--entry-instruction-update { border-left-color: #a855f7; }
.central-card--crew-note-update { border-left-color: #8b5cf6; }
.central-card--addon-update { border-left-color: #06b6d4; }
.central-card--general-note-update { border-left-color: #64748b; }
.central-card--notes-update { border-left-color: #8b5cf6; }
.central-card--addons-update { border-left-color: #06b6d4; }
.central-card--booking { border-left-color: #22c55e; }
.central-card--ai-feedback { border-left-color: #a855f7; }
.central-card--time-entry { border-left-color: #f59e0b; }
.central-card--portal-cancel { border-left-color: #ef4444; }
.central-card--portal-reschedule { border-left-color: #f59e0b; }
.central-card--portal-change { border-left-color: #0ea5e9; }
.central-card--portal-question { border-left-color: #64748b; }
.central-card--portal-request { border-left-color: #0f766e; }

.central-card--portal-cancel .central-card-type { background: #fee2e2; color: #b91c1c; }
.central-card--portal-reschedule .central-card-type { background: #fef3c7; color: #d97706; }
.central-card--portal-change .central-card-type { background: #e0f2fe; color: #0369a1; }
.central-card--portal-question .central-card-type { background: #f1f5f9; color: #475569; }
.central-card--portal-request .central-card-type { background: #ccfbf1; color: #0f766e; }


.central-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.central-card-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
}

.central-card--client-update .central-card-type { background: #dbeafe; color: #2563eb; }
.central-card--name-update .central-card-type { background: #e0e7ff; color: #4338ca; }
.central-card--address-update .central-card-type { background: #e0f2fe; color: #0369a1; }
.central-card--phone-update .central-card-type { background: #ccfbf1; color: #0f766e; }
.central-card--sqft-update .central-card-type { background: #fef3c7; color: #d97706; }
.central-card--entry-instruction-update .central-card-type { background: #f3e8ff; color: #9333ea; }
.central-card--crew-note-update .central-card-type { background: #ede9fe; color: #7c3aed; }
.central-card--addon-update .central-card-type { background: #cffafe; color: #0891b2; }
.central-card--general-note-update .central-card-type { background: #f1f5f9; color: #475569; }
.central-card--notes-update .central-card-type { background: #ede9fe; color: #7c3aed; }
.central-card--addons-update .central-card-type { background: #cffafe; color: #0891b2; }
.central-card--booking .central-card-type { background: #dcfce7; color: #16a34a; }
.central-card--ai-feedback .central-card-type { background: #f3e8ff; color: #9333ea; }
.central-card--time-entry .central-card-type { background: #fef3c7; color: #d97706; }
.central-card--portal-cancel .central-card-type { background: #fee2e2; color: #b91c1c; }
.central-card--portal-reschedule .central-card-type { background: #fef3c7; color: #d97706; }
.central-card--portal-change .central-card-type { background: #e0f2fe; color: #0369a1; }
.central-card--portal-question .central-card-type { background: #f1f5f9; color: #475569; }
.central-card--portal-request .central-card-type { background: #ccfbf1; color: #0f766e; }


.central-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.central-card-title-sub {
    font-weight: 500;
    color: #64748b;
    font-size: 0.92em;
}

.central-pipeline-book-opt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    line-height: 1.35;
}

.central-pipeline-book-opt input {
    margin-top: 2px;
}

html[data-theme="dark"] .central-pipeline-book-opt {
    background: rgba(148, 163, 184, 0.08);
    border-color: #334155;
    color: #e2e8f0;
}

.central-assign-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.central-assign-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.central-assign-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.central-assign-type {
    font-weight: 600;
    color: #334155;
    text-transform: capitalize;
}

.central-assign-address {
    opacity: 0.9;
}

.central-assign-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.central-assign-select {
    width: 100%;
    max-width: 100%;
    appearance: none;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
        right 12px center / 12px no-repeat;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
}

.central-assign-select:focus {
    outline: none;
    border-color: #86868b;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.central-assign-match {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.35;
    max-width: 520px;
}

.central-assign-match-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.central-assign-match-list {
    margin: 0;
    padding-left: 1.2rem;
    color: inherit;
}

.central-assign-match-list li + li {
    margin-top: 2px;
}

.central-assign-match.is-good {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.central-assign-match.is-bad {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.central-day-board {
    margin: 0;
    border: 1px solid #ececf0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.central-day-board--compact {
    margin-top: 2px;
}

.central-day-board-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #ececf0;
    background: #fafafa;
}

.central-day-board-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #6e6e73;
}

.central-day-board-date {
    font-size: 12.5px;
    font-weight: 600;
    color: #1d1d1f;
}

.central-day-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
}

.central-day-slot-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
}

.central-day-slot-time {
    flex: 0 0 auto;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.central-day-slot-time strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: #334155;
}

.central-day-slot-time span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.central-day-slot-rows {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.central-day-slot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: 0.84rem;
    line-height: 1.3;
    color: #475569;
}

.central-day-slot-row.is-this {
    margin: 0 -4px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.central-day-slot-client {
    font-weight: 700;
}

.central-day-slot-when {
    font-weight: 600;
    opacity: 0.7;
}

.central-day-slot-assignees {
    font-weight: 600;
    opacity: 0.9;
}

.central-day-slot-assignees.is-assigning {
    font-weight: 800;
    color: #1d4ed8;
}

.central-day-board--conflict .central-day-slot-line.is-conflict-slot {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.central-day-board--conflict .central-day-slot-line.is-current-slot {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.central-day-board--compare .central-conflict-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    padding: 10px 10px 12px;
}

.central-conflict-pane {
    min-width: 0;
}

.central-conflict-pane-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 6px 2px;
}

.central-conflict-pane--planned .central-conflict-pane-label {
    color: #b45309;
}

.central-conflict-pane .central-day-slots {
    padding: 0;
}

.central-conflict-pane-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: #94a3b8;
}

.central-conflict-pane-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.central-double-job-row.is-current {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 8px;
    margin: 0;
}

.central-conflict-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

.central-conflict-badge--keep {
    color: #047857;
}

.central-conflict-badge--remove {
    color: #b91c1c;
}

.central-conflict-badge--add {
    color: #047857;
}

.central-conflict-badge--stay {
    color: #334155;
    font-weight: 700;
}

.central-conflict-badge--open {
    color: #b45309;
}

.central-scope-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 10px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid transparent;
}

.central-scope-chip-label {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.72rem;
    opacity: 0.75;
}

.central-scope-chip--instance {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.central-scope-chip--series {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

html[data-theme="dark"] .central-scope-chip--instance {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

html[data-theme="dark"] .central-scope-chip--series {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.35);
    color: #fdba74;
}

@media (max-width: 640px) {
    .central-day-board--compare .central-conflict-compare {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .central-conflict-pane-divider {
        padding: 2px 0;
    }

    .central-conflict-pane-arrow {
        transform: rotate(90deg);
    }
}

.central-double-job-row.is-keep {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 5px 8px;
    margin: 0 -4px;
}

.central-double-job-row.is-remove {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 5px 8px;
    margin: 0 -4px;
}

.central-day-slot-assignees.is-keep-badge {
    color: #047857;
    font-weight: 800;
}

.central-day-slot-assignees.is-remove-badge {
    color: #b91c1c;
    font-weight: 800;
}

.central-day-slot-assignees.is-remove-badge .central-day-slot-add-arrow {
    color: inherit;
    opacity: 0.95;
}

.central-day-slot-assignees.is-remove-badge .central-day-slot-add-green {
    color: #047857;
    font-weight: 900;
}

html[data-theme="dark"] .central-day-board--conflict .central-day-slot-line.is-conflict-slot {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.35);
}

html[data-theme="dark"] .central-day-board--conflict .central-day-slot-line.is-current-slot {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .central-conflict-pane-label {
    color: #94a3b8;
}

html[data-theme="dark"] .central-conflict-pane--planned .central-conflict-pane-label {
    color: #fdba74;
}

html[data-theme="dark"] .central-conflict-pane-arrow {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}

html[data-theme="dark"] .central-double-job-row.is-current {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .central-double-job-row.is-keep {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

html[data-theme="dark"] .central-double-job-row.is-remove {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

html[data-theme="dark"] .central-day-slot-assignees.is-keep-badge {
    color: #6ee7b7;
}

html[data-theme="dark"] .central-day-slot-assignees.is-remove-badge {
    color: #fca5a5;
}

html[data-theme="dark"] .central-day-slot-assignees.is-remove-badge .central-day-slot-add-green {
    color: #34d399;
}

html[data-theme="dark"] .central-conflict-badge--keep,
html[data-theme="dark"] .central-conflict-badge--add {
    color: #6ee7b7;
}

html[data-theme="dark"] .central-conflict-badge--remove {
    color: #fca5a5;
}

html[data-theme="dark"] .central-conflict-badge--stay {
    color: #cbd5e1;
}

html[data-theme="dark"] .central-conflict-badge--open {
    color: #fdba74;
}

.central-day-slot-row.is-empty {
    font-style: italic;
    font-weight: 600;
    color: #94a3b8;
}

.central-assign-address {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2px;
}

html[data-theme="dark"] .central-day-board {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .central-day-board-head {
    border-color: #334155;
}

html[data-theme="dark"] .central-day-board-date {
    color: #f1f5f9;
}

html[data-theme="dark"] .central-day-slot-line {
    background: #1e293b;
    color: #e2e8f0;
}

html[data-theme="dark"] .central-day-slot-time strong {
    color: #e2e8f0;
}

html[data-theme="dark"] .central-day-slot-time span,
html[data-theme="dark"] .central-day-slot-row {
    color: #94a3b8;
}

html[data-theme="dark"] .central-day-slot-row.is-this {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
}

html[data-theme="dark"] .central-day-slot-assignees.is-assigning {
    color: #93c5fd;
}

.central-assign-match i {
    margin-top: 0;
}

.central-assign-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

html[data-theme="dark"] .central-assign-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

html[data-theme="dark"] .central-assign-match.is-good {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

html[data-theme="dark"] .central-assign-match.is-bad {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.35);
    color: #fdba74;
}

html[data-theme="dark"] .central-assign-pill {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.central-card-time {
    font-size: 12px;
    color: #86868b;
    margin-left: auto;
}

.central-card-change {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    background: #f5f5f7;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #1d1d1f;
}

.central-card-change .fa-arrow-right {
    color: #86868b;
    font-size: 12px;
}

.central-card-change strong {
    color: #1d1d1f;
}

.central-card-change--sqft {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.central-card-sqft-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.central-card-sqft-row--new .central-card-sqft-value strong {
    color: #b45309;
    font-size: 18px;
}

.central-card-sqft-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #92400e;
}

.central-card-sqft-value {
    font-size: 15px;
    color: #1d1d1f;
}

.central-card-sqft-arrow {
    text-align: center;
    color: #d97706;
    font-size: 12px;
}

.central-card-context--compact {
    font-size: 13px;
    color: #6e6e73;
    margin-top: 10px;
}

.central-card-context--reason {
    font-size: 13px;
    color: #424245;
    margin-top: 10px;
    padding: 10px 12px;
    background: #f5f5f7;
    border-radius: 8px;
}

.central-card-context--reason .central-card-context-label {
    display: inline;
    margin: 0;
}

.central-card-context--compact .central-card-context-label {
    display: inline;
    margin: 0;
}

.central-card-booking-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.central-card-booking-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.central-card-booking-date {
    font-size: 20px;
    font-weight: 700;
    color: #166534;
}

.central-card-booking-time {
    font-size: 16px;
    font-weight: 600;
    color: #15803d;
}

.central-card-grid--booking {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.central-card-change--profile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}

.central-card-change--note {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.central-card-note-existing,
.central-card-note-add {
    padding: 12px 14px;
    border-radius: 10px;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
}

.central-card-note-existing {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.central-card-note-add {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #1e1b4b;
}

.central-card--addons-update .central-card-note-add,
.central-card-change--addon-update .central-card-note-add {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #164e63;
}

.central-card-change--entry-instruction-update .central-card-note-add {
    background: #faf5ff;
    border-color: #e9d5ff;
    color: #581c87;
}

.central-card-change--crew-note-update .central-card-note-add {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #1e1b4b;
}

.central-card-change--general-note-update .central-card-note-add {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.central-card-change--entry-instruction-update .central-card-note-label { color: #9333ea; }
.central-card-change--crew-note-update .central-card-note-label { color: #7c3aed; }

.central-card-note-hint {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 8px;
    font-style: italic;
}

.central-card-change--addon-update .central-card-note-label { color: #0891b2; }
.central-card-change--general-note-update .central-card-note-label { color: #475569; }

.central-card-note-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: #7c3aed;
}

.central-card--addons-update .central-card-note-label {
    color: #0891b2;
}

.central-card-context {
    margin-bottom: 12px;
}

.central-card-context-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86868b;
    margin-bottom: 6px;
}

.central-card-quote {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    font-style: italic;
}

.central-card-quote--in {
    border-left: 3px solid #3b82f6;
    white-space: pre-wrap;
    font-style: normal;
}

.central-card-customer-message {
    margin-bottom: 14px;
}

.central-card-customer-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.central-client-profile-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.central-client-profile-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.central-card-title .central-client-profile-link {
    color: #1d1d1f;
}

.central-card-title .central-client-profile-link:hover {
    color: #4f46e5;
}

.central-card-field-value .central-client-profile-link {
    color: #1d1d1f;
    font-weight: 600;
}

.central-client-quick-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.central-client-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4f46e5;
}

.central-client-quick-link:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.central-client-quick-links--compact .central-client-quick-link {
    padding: 4px 8px;
}

.central-client-quick-links--compact .central-client-quick-link span {
    display: none;
}

.daily-notes-client-head-main .central-client-quick-links {
    margin-left: 2px;
}

.daily-notes-client-head-main h3 .central-client-profile-link {
    color: #1d1d1f;
}

.daily-notes-client-head-main h3 .central-client-profile-link:hover {
    color: #4f46e5;
}

.central-card-head .central-client-quick-links {
    order: 3;
}

.central-sms-crm-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    white-space: nowrap;
}

.central-sms-crm-link:hover {
    text-decoration: underline;
}

.central-sms-trigger-time {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-style: normal;
    color: #86868b;
}

.central-sms-loading {
    font-style: normal;
    color: #86868b;
    font-size: 13px;
}

.central-sms-empty {
    font-style: normal;
    color: #86868b;
    font-size: 13px;
}

.central-sms-message-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.central-sms-message-panel .central-sms-trigger {
    white-space: pre-wrap;
}

.central-card-customer-message.is-thread-expanded .central-sms-trigger {
    display: none;
}

.central-sms-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 0 0;
    border: none;
    border-top: 1px solid #e5e7eb;
    background: none;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.central-sms-expand:hover {
    text-decoration: underline;
}

.central-sms-expand[hidden] {
    display: none !important;
}

.central-sms-thread {
    display: none;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.central-card-customer-message.is-thread-expanded .central-sms-thread {
    display: flex;
}

.central-card-customer-message.is-thread-expanded .central-sms-thread[hidden] {
    display: none !important;
}

.central-sms-msg {
    display: flex;
    flex-direction: column;
    max-width: 92%;
}

.central-sms-msg--in {
    align-self: flex-start;
}

.central-sms-msg--out {
    align-self: flex-end;
    align-items: flex-end;
}

.central-sms-msg-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.central-sms-msg--in .central-sms-msg-bubble {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1d1d1f;
}

.central-sms-msg--out .central-sms-msg-bubble {
    background: #4f46e5;
    color: #fff;
}

.central-sms-msg-time {
    font-size: 11px;
    color: #86868b;
    margin-top: 2px;
    padding: 0 4px;
}

.daily-note-customer-message .central-card-customer-message {
    margin: 0;
}

.central-sms-booking-reason {
    font-size: 13px;
    color: #424245;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #f5f5f7;
    border-radius: 8px;
    line-height: 1.45;
}

.central-sms-booking-warn {
    margin-top: 10px;
}

.central-card-customer-message--missing .central-card-message-empty {
    margin: 6px 0 0;
    font-size: 13px;
    color: #86868b;
    line-height: 1.45;
}

.central-card-quote--out {
    border-left: 3px solid #a855f7;
    margin-top: 8px;
    font-style: normal;
    white-space: pre-wrap;
}

.central-card-reason {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 12px;
    line-height: 1.45;
}

.central-card-reason strong {
    color: #1d1d1f;
}

.central-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.central-card-field-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86868b;
    margin-bottom: 2px;
}

.central-card-field-value {
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 500;
}

.central-card-slot {
    font-size: 13px;
    padding: 10px 12px;
    background: #ecfdf5;
    border-radius: 8px;
    color: #166534;
    margin-bottom: 12px;
}

.central-card-slot--warn {
    background: #fef3c7;
    color: #92400e;
}

.central-card-edit {
    margin-bottom: 14px;
}

.central-card-edit label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 6px;
}

.central-card-edit input,
.central-card-edit textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    color: #1d1d1f;
    box-sizing: border-box;
}

.central-card-edit textarea {
    resize: vertical;
    min-height: 72px;
}

.central-card-edit input:focus,
.central-card-edit textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.central-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid #f0f0f5;
    margin-top: 4px;
    padding-top: 14px;
}

.central-card-actions.central-card-actions--lean {
    margin-top: 12px;
    margin-bottom: 4px;
    padding-top: 0;
    border-top: none;
    gap: 10px;
}

.central-staff-msg-draft,
.central-staff-msg-reply {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f5f7;
}

.central-staff-msg-reply {
    background: #f0f7ff;
}

.central-staff-msg-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6e6e73;
    margin-bottom: 6px;
}

.central-staff-msg-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.45;
    color: #1d1d1f;
    white-space: pre-wrap;
}

.central-staff-msg-edit {
    margin-bottom: 10px;
}

/* Unreplied SMS — recommended draft + AI recommend dropdown */
.central-unreplied-rec-draft {
    position: relative;
    margin: 0 0 12px;
    padding: 14px 16px 14px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96)),
        linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(34, 197, 94, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 8px 22px rgba(28, 28, 40, 0.06);
}

.central-unreplied-rec-draft-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.central-unreplied-rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4338ca;
    background: rgba(99, 102, 241, 0.12);
}

.central-unreplied-rec-badge i {
    font-size: 10px;
}

.central-ai-recommend {
    margin: 0 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(28, 28, 40, 0.08);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(28, 28, 40, 0.05);
    overflow: hidden;
}

.central-ai-recommend-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: background 0.15s ease;
}

.central-ai-recommend-toggle:hover {
    background: rgba(99, 102, 241, 0.04);
}

.central-ai-recommend-toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28);
    font-size: 14px;
}

.central-ai-recommend-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.central-ai-recommend-toggle-title {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.central-ai-recommend-toggle-sub {
    font-size: 12px;
    font-weight: 500;
    color: #8e8e93;
    line-height: 1.3;
}

.central-ai-recommend-chevron {
    color: #8e8e93;
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.central-ai-recommend.is-open .central-ai-recommend-chevron {
    transform: rotate(180deg);
}

.central-ai-recommend-panel {
    padding: 0 14px 14px;
    border-top: 1px solid rgba(28, 28, 40, 0.06);
    animation: central-ai-recommend-in 0.18s ease;
}

.central-ai-recommend-panel[hidden] {
    display: none !important;
}

@keyframes central-ai-recommend-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.central-ai-recommend-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #636366;
}

.central-ai-recommend-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 72px;
    resize: vertical;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: #f8f8fc;
    color: #1d1d1f;
    font: inherit;
    font-size: 13.5px;
    line-height: 1.45;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.central-ai-recommend-input:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.central-ai-recommend-input::placeholder {
    color: #a1a1aa;
}

.central-ai-recommend-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.central-ai-recommend-generate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.central-ai-recommend-generate:hover:not(:disabled) {
    filter: brightness(1.05);
}

.central-ai-recommend-generate:active:not(:disabled) {
    transform: scale(0.98);
}

.central-ai-recommend-generate:disabled {
    opacity: 0.6;
    cursor: wait;
}

html[data-theme="dark"] .central-unreplied-rec-draft {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 197, 94, 0.08));
    border-color: rgba(129, 140, 248, 0.28);
    box-shadow: none;
}

html[data-theme="dark"] .central-unreplied-rec-badge {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.22);
}

html[data-theme="dark"] .central-ai-recommend {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

html[data-theme="dark"] .central-ai-recommend-toggle:hover {
    background: rgba(99, 102, 241, 0.12);
}

html[data-theme="dark"] .central-ai-recommend-toggle-title {
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .central-ai-recommend-toggle-sub,
html[data-theme="dark"] .central-ai-recommend-chevron,
html[data-theme="dark"] .central-ai-recommend-label {
    color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .central-ai-recommend-panel {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .central-ai-recommend-input {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(129, 140, 248, 0.35);
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .central-ai-recommend-input:focus {
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

html[data-theme="dark"] .central-ai-recommend-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.central-unreplied-thread {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f5f7;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.central-unreplied-bubble {
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 92%;
}

.central-unreplied-bubble--in {
    align-self: flex-start;
    background: #e8f2ff;
}

.central-unreplied-bubble--out {
    align-self: flex-end;
    background: #ffffff;
    border: 1px solid #e5e5ea;
}

.central-unreplied-who {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6e6e73;
    margin-bottom: 3px;
}

.central-unreplied-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: #1d1d1f;
    white-space: pre-wrap;
    word-break: break-word;
}

html[data-theme="dark"] .central-unreplied-thread {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .central-unreplied-bubble--in {
    background: rgba(90, 160, 255, 0.18);
}

html[data-theme="dark"] .central-unreplied-bubble--out {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .central-unreplied-who {
    color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .central-unreplied-text {
    color: rgba(255, 255, 255, 0.92);
}

.central-pay-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}

.central-pay-fact {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f5f7;
}

.central-pay-fact-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6e6e73;
    margin-bottom: 4px;
}

.central-pay-fact-value {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.35;
}

.central-pay-notes {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f5f7;
}

.central-pay-notes--empty .central-pay-notes-text {
    color: #86868b;
    font-weight: 500;
}

.central-pay-notes-text {
    margin: 4px 0 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: #1d1d1f;
    white-space: pre-wrap;
}

html[data-theme="dark"] .central-pay-fact,
html[data-theme="dark"] .central-pay-notes {
    background: #2c2c2e;
}

html[data-theme="dark"] .central-pay-fact-label {
    color: #98989d;
}

html[data-theme="dark"] .central-pay-fact-value,
html[data-theme="dark"] .central-pay-notes-text {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-pay-notes--empty .central-pay-notes-text {
    color: #98989d;
}

html[data-theme="dark"] .central-staff-msg-draft {
    background: #2c2c2e;
}

html[data-theme="dark"] .central-staff-msg-reply {
    background: #1c2a3a;
}

html[data-theme="dark"] .central-staff-msg-label {
    color: #98989d;
}

html[data-theme="dark"] .central-staff-msg-text {
    color: #f5f5f7;
}

.central-card-actions--split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.central-forgot-checkout-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.central-forgot-checkout-actions > .central-btn {
    flex: 0 1 auto;
    white-space: nowrap;
}

.central-edit-time-hint {
    margin: 0 0 14px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.35;
}

.central-edit-time-sheet .central-collect-input[type="date"],
.central-edit-time-sheet .central-checkin-time-text {
    min-height: 42px;
}

.central-checkin-time-text {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.central-checkin-datetime-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
}

.central-edit-time-pair {
    margin: 0 0 12px;
}

.central-edit-time-pair-label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.central-checkin-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.central-edit-time-sheet--custom .central-checkin-presets .central-btn {
    font-size: 0.8rem;
}

@media (max-width: 520px) {
    .central-checkin-datetime-row {
        grid-template-columns: 1fr;
    }
}

.central-card-actions-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.central-card-actions-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.central-card-mini-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: background 0.15s, color 0.15s;
}

.central-card-mini-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html[data-theme="dark"] .central-card-mini-link {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

html[data-theme="dark"] .central-card-mini-link:hover {
    background: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

.central-card-warn {
    font-size: 12px;
    color: #d97706;
    background: #fffbeb;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.central-decline-sheet {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
}

.central-decline-sheet-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.central-decline-sheet-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.central-decline-sheet-sub {
    margin: 0 0 14px;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.4;
}

.central-decline-sheet-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.central-decline-sheet-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.central-decline-sheet-option:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.central-decline-sheet-option.is-selected {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.central-decline-sheet-other {
    margin-bottom: 12px;
}

.central-decline-sheet-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.92rem;
    resize: vertical;
    min-height: 64px;
}

.central-decline-sheet-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

html[data-theme="dark"] .central-decline-sheet-card {
    background: #1e293b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .central-decline-sheet-title {
    color: #f8fafc;
}

html[data-theme="dark"] .central-decline-sheet-sub {
    color: #94a3b8;
}

html[data-theme="dark"] .central-decline-sheet-option {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

html[data-theme="dark"] .central-decline-sheet-option.is-selected {
    background: rgba(239, 68, 68, 0.15);
    border-color: #f87171;
}

html[data-theme="dark"] .central-decline-sheet-textarea {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

/* Collect payment sheet (Checkout payment unclear → Collected) */
.central-collect-sheet {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
}

.central-collect-sheet-card {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.central-collect-sheet-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.central-collect-sheet-sub {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.4;
}

.central-collect-field {
    margin-bottom: 14px;
}

.central-collect-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.central-collect-amount-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    padding: 0 12px;
    background: #f8fafc;
}

.central-collect-amount-prefix {
    font-weight: 700;
    color: #475569;
}

.central-collect-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.98rem;
    color: #0f172a;
    background: #fff;
}

.central-collect-amount-wrap .central-collect-input {
    border: none;
    background: transparent;
    padding-left: 0;
    box-shadow: none;
}

.central-collect-input:focus {
    outline: none;
    border-color: rgba(15, 23, 42, 0.35);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.central-collect-amount-wrap:focus-within {
    border-color: rgba(15, 23, 42, 0.35);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.central-collect-method-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.central-collect-method-pill {
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.central-collect-method-pill:hover {
    background: #f1f5f9;
}

.central-collect-method-pill.is-selected {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.central-collect-sheet-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

html[data-theme="dark"] .central-collect-sheet-card {
    background: #1e293b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .central-collect-sheet-title {
    color: #f8fafc;
}

html[data-theme="dark"] .central-collect-sheet-sub,
html[data-theme="dark"] .central-collect-label {
    color: #94a3b8;
}

html[data-theme="dark"] .central-collect-input,
html[data-theme="dark"] .central-collect-amount-wrap {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

html[data-theme="dark"] .central-collect-method-pill {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

html[data-theme="dark"] .central-collect-method-pill.is-selected {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #0f172a;
}

.central-toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d1d1f;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
}

.central-toast--error {
    background: #dc2626;
}

/* —— Central Ask Dock —— */
.central-ask-dock {
    position: fixed;
    left: calc(240px + var(--sidebar-layout-offset, 0px) - var(--sidebar-main-seam, 0px));
    right: 0;
    bottom: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    padding: 0 16px 12px;
}

.app-container.sidebar-collapsed .central-ask-dock {
    left: calc(60px + var(--sidebar-layout-offset, 0px) - var(--sidebar-main-seam, 0px));
}

.central-ask-dock > * {
    pointer-events: auto;
    width: 100%;
    max-width: 720px;
}

.central-ask-panel {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px 16px 12px 12px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 8px;
    max-height: min(52vh, 480px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.central-ask-panel[hidden],
.central-ask-loading[hidden],
.central-ask-error[hidden],
.central-ask-content[hidden],
.central-ask-history[hidden],
.central-ask-headline[hidden],
.central-ask-text[hidden] {
    display: none !important;
}

.central-ask-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.central-ask-panel-label {
    font-size: 12px;
    line-height: 1.4;
    color: #6e6e73;
    font-weight: 500;
}

.central-ask-panel-label strong {
    color: #1d1d1f;
    font-weight: 600;
}

.central-ask-panel-close {
    border: none;
    background: transparent;
    color: #8e8e93;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.central-ask-panel-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.central-ask-history {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px 0;
    flex-shrink: 0;
}

.central-ask-history-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
    color: #3a3a3c;
    font-size: 11px;
    line-height: 1.3;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.central-ask-history-item:hover {
    background: #ebebef;
}

.central-ask-loading,
.central-ask-error,
.central-ask-content {
    padding: 12px 14px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.central-ask-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6e6e73;
    font-size: 13px;
}

.central-ask-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: central-ask-spin 0.7s linear infinite;
}

@keyframes central-ask-spin {
    to { transform: rotate(360deg); }
}

.central-ask-error {
    color: #b91c1c;
    font-size: 13px;
    background: #fef2f2;
    border-radius: 10px;
    margin: 12px 14px 16px;
    padding: 10px 12px;
}

.central-ask-headline {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #1d1d1f;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f5f7;
    border-left: 3px solid #8e8e93;
}

.central-ask-headline.tone-warning {
    background: #fffbf5;
    border-left-color: #d97706;
}

.central-ask-headline.tone-good {
    background: #f6fdf9;
    border-left-color: #22c55e;
}

.central-ask-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.central-ask-block {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

.central-ask-block.tone-warning {
    background: #fffbf5;
    border-color: rgba(217, 119, 6, 0.2);
}

.central-ask-block.tone-good {
    background: #f6fdf9;
    border-color: rgba(22, 163, 74, 0.18);
}

.central-ask-block-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.central-ask-block-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}

.central-ask-block-icon.section-schedule { background: linear-gradient(135deg, #f59e0b, #d97706); }
.central-ask-block-icon.section-notes { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.central-ask-block-icon.section-route { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.central-ask-block-icon.section-summary { background: linear-gradient(135deg, #34d399, #22c55e); }

.central-ask-block-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
}

.central-ask-block-body p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.55;
    color: #3a3a3c;
}

.central-ask-block-body p:last-child {
    margin-bottom: 0;
}

.central-ask-rows {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.central-ask-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: 6px 10px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    line-height: 1.4;
}

.central-ask-row-when {
    color: #1d1d1f;
    font-weight: 600;
}

.central-ask-row-when span {
    display: block;
    font-weight: 500;
    color: #6e6e73;
    font-size: 11px;
}

.central-ask-row-client {
    color: #1d1d1f;
    font-weight: 600;
    min-width: 0;
    word-break: break-word;
}

.central-ask-row-client span {
    display: block;
    font-weight: 500;
    color: #6e6e73;
    font-size: 11px;
}

.central-ask-row-meta {
    text-align: right;
    color: #3a3a3c;
    min-width: 0;
}

.central-ask-row-side {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: 2px;
}

.central-ask-row-side.is-west {
    background: #ecfdf5;
    color: #047857;
}

.central-ask-row-side.is-east {
    background: #eff6ff;
    color: #1d4ed8;
}

.central-ask-row-side.is-unknown {
    background: #f3f4f6;
    color: #6b7280;
}

.central-ask-text {
    font-size: 13px;
    line-height: 1.6;
    color: #1d1d1f;
    white-space: pre-wrap;
}

.central-ask-composer {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    padding: 10px 12px 12px;
}

.central-ask-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.central-ask-chip {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
    color: #3a3a3c;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.2;
}

.central-ask-chip:hover {
    background: #ebebef;
    color: #1d1d1f;
}

.central-ask-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.central-ask-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 0 12px;
    border: 1px solid transparent;
}

.central-ask-input-wrap:focus-within {
    border-color: rgba(245, 158, 11, 0.45);
    background: #fff;
}

.central-ask-input-icon {
    color: #f59e0b;
    font-size: 14px;
    flex-shrink: 0;
}

.central-ask-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    line-height: 1.4;
    padding: 11px 0;
    color: #1d1d1f;
}

.central-ask-input::placeholder {
    color: #8e8e93;
}

.central-ask-submit {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
}

.central-ask-submit:hover {
    filter: brightness(1.05);
}

.central-ask-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

html.central-embed .central-ask-dock {
    left: 0;
}

html.central-embed .central-ask-chips {
    display: none;
}

html.central-embed .central-container {
    padding-bottom: 100px;
}

@media (max-width: 768px) {
    .central-ask-dock {
        left: 0;
        padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
        bottom: var(--wr-mobile-nav-h, 58px);
    }

    .central-container {
        padding-bottom: calc(160px + var(--wr-mobile-nav-h, 58px));
        padding-left: 12px;
        padding-right: 12px;
    }

    .central-ask-row {
        grid-template-columns: 1fr;
    }

    .central-ask-row-meta {
        text-align: left;
    }

    .central-ask-panel {
        max-height: min(46vh, 420px);
    }

    .central-toast {
        bottom: calc(110px + var(--wr-mobile-nav-h, 58px));
    }

    .central-ops-grid,
    .central-stats,
    .central-cards {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

html[data-theme="dark"] .central-ask-panel,
html[data-theme="dark"] .central-ask-composer {
    background: rgba(28, 28, 30, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .central-ask-panel-label,
html[data-theme="dark"] .central-ask-loading {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-ask-panel-label strong,
html[data-theme="dark"] .central-ask-headline,
html[data-theme="dark"] .central-ask-block-title,
html[data-theme="dark"] .central-ask-row-when,
html[data-theme="dark"] .central-ask-row-client,
html[data-theme="dark"] .central-ask-text {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-ask-panel-close {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-ask-panel-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
}

html[data-theme="dark"] .central-ask-headline {
    background: #2c2c2e;
    border-left-color: #8e8e93;
}

html[data-theme="dark"] .central-ask-headline.tone-warning {
    background: rgba(217, 119, 6, 0.12);
    border-left-color: #f59e0b;
}

html[data-theme="dark"] .central-ask-headline.tone-good {
    background: rgba(34, 197, 94, 0.12);
    border-left-color: #34d399;
}

html[data-theme="dark"] .central-ask-block,
html[data-theme="dark"] .central-ask-row {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .central-ask-block.tone-warning {
    background: rgba(217, 119, 6, 0.1);
}

html[data-theme="dark"] .central-ask-block.tone-good {
    background: rgba(34, 197, 94, 0.1);
}

html[data-theme="dark"] .central-ask-block-body p,
html[data-theme="dark"] .central-ask-row-meta {
    color: #d1d1d6;
}

html[data-theme="dark"] .central-ask-chip,
html[data-theme="dark"] .central-ask-history-item,
html[data-theme="dark"] .central-ask-input-wrap {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.08);
    color: #d1d1d6;
}

html[data-theme="dark"] .central-ask-chip:hover,
html[data-theme="dark"] .central-ask-history-item:hover {
    background: #3a3a3c;
    color: #f5f5f7;
}

html[data-theme="dark"] .central-ask-input-wrap:focus-within {
    background: #1c1c1e;
    border-color: rgba(245, 158, 11, 0.5);
}

html[data-theme="dark"] .central-ask-input {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-ask-input::placeholder {
    color: #8e8e93;
}

html[data-theme="dark"] .central-ask-error {
    background: rgba(185, 28, 28, 0.18);
    color: #fca5a5;
}

/* Dark theme */
html[data-theme="dark"] .app-container .main-content.central-page {
    background: #0f0f12;
}

html[data-theme="dark"] .central-header,
html[data-theme="dark"] .central-empty,
html[data-theme="dark"] .central-card,
html[data-theme="dark"] .central-overview-section {
    background: #1c1c1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .central-overview-title,
html[data-theme="dark"] .central-overview-text,
html[data-theme="dark"] .central-overview-headline,
html[data-theme="dark"] .central-overview-block-title {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-overview-headline {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .central-overview-headline.tone-warning {
    background: linear-gradient(135deg, #3b2f1f, #422006);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fcd34d;
}

html[data-theme="dark"] .central-overview-headline.tone-good {
    background: linear-gradient(135deg, #1a2e22, #14532d);
    border-color: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

html[data-theme="dark"] .central-overview-block {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .central-overview-block.tone-warning {
    background: #332a1f;
    border-color: rgba(251, 191, 36, 0.18);
}

html[data-theme="dark"] .central-overview-block.tone-good {
    background: #1f2e26;
    border-color: rgba(74, 222, 128, 0.16);
}

html[data-theme="dark"] .central-overview-block--recommendations {
    background: linear-gradient(135deg, #2a2744, #1e293b);
    border-color: rgba(129, 140, 248, 0.25);
}

html[data-theme="dark"] .central-overview-block-body p {
    color: #d1d1d6;
}

html[data-theme="dark"] .central-overview-subtitle,
html[data-theme="dark"] .central-overview-meta,
html[data-theme="dark"] .central-overview-loading,
html[data-theme="dark"] .central-overview-empty {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-overview-body {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .central-overview-retry {
    background: #2c2c2e;
    color: #a5b4fc;
}

html[data-theme="dark"] .central-client-overview {
    background: rgba(28, 28, 30, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .central-client-overview-title,
html[data-theme="dark"] .central-client-overview-item-name {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-client-overview-subtitle,
html[data-theme="dark"] .central-client-overview-loading,
html[data-theme="dark"] .central-client-overview-empty,
html[data-theme="dark"] .central-client-overview-item-time,
html[data-theme="dark"] .central-client-overview-meta {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-client-overview-body {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .central-client-overview-daynav-btn {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

html[data-theme="dark"] .central-client-overview-daynav-btn:hover:not(:disabled) {
    background: #3a3a3c;
}

html[data-theme="dark"] .central-client-overview-daynav-label {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-client-overview-count,
html[data-theme="dark"] .central-client-overview-retry {
    background: #2c2c2e;
    color: #d1d1d6;
}

html[data-theme="dark"] .central-client-overview-item {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .central-client-overview-item.tone-warning {
    background: #332a1f;
    border-color: rgba(251, 191, 36, 0.18);
}

html[data-theme="dark"] .central-client-overview-item.tone-good {
    background: #1f2e26;
    border-color: rgba(74, 222, 128, 0.16);
}

html[data-theme="dark"] .central-client-overview-item-summary {
    color: #d1d1d6;
}

html[data-theme="dark"] .central-client-overview-badge.is-booked {
    background: #14532d;
    color: #86efac;
}

html[data-theme="dark"] .central-client-overview-badge.is-pending {
    background: #422006;
    color: #fcd34d;
}

html[data-theme="dark"] .central-header h1,
html[data-theme="dark"] .central-card-title,
html[data-theme="dark"] .central-empty h2,
html[data-theme="dark"] .central-empty h3,
html[data-theme="dark"] .central-card-field-value {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-header p,
html[data-theme="dark"] .central-empty p,
html[data-theme="dark"] .central-card-reason,
html[data-theme="dark"] .central-card-time {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-filter {
    background: #1c1c1e;
    color: #a1a1a6;
}

html[data-theme="dark"] .central-filter:hover {
    background: #2c2c2e;
    color: #f5f5f7;
}

html[data-theme="dark"] .central-card-change {
    background: #2c2c2e;
    color: #f5f5f7;
}

html[data-theme="dark"] .central-card-quote {
    background: #2c2c2e;
    border-color: #3a3a3c;
    color: #e5e5ea;
}

html[data-theme="dark"] .central-sms-expand {
    border-top-color: #3a3a3c;
    color: #818cf8;
}

html[data-theme="dark"] .central-btn-secondary {
    background: #2c2c2e;
    color: #f5f5f7;
}

html[data-theme="dark"] .central-edit-time-hint {
    color: #94a3b8;
}

html[data-theme="dark"] .central-edit-time-pair-label {
    color: #94a3b8;
}

html[data-theme="dark"] .central-card-edit input,
html[data-theme="dark"] .central-card-edit textarea {
    background: #2c2c2e;
    border-color: #3a3a3c;
    color: #f5f5f7;
}

html[data-theme="dark"] .central-card-actions {
    border-top-color: #3a3a3c;
}

html[data-theme="dark"] .central-section,
html[data-theme="dark"] .daily-notes-section {
    background: #1c1c1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .daily-notes-ai-status--running {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.35);
}

html[data-theme="dark"] .daily-notes-ai-status--complete {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

html[data-theme="dark"] .daily-notes-ai-status--error {
    background: rgba(220, 38, 38, 0.12);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.35);
}

html[data-theme="dark"] .daily-notes-ai-retry {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .daily-notes-header h2,
html[data-theme="dark"] .daily-notes-client-head h3,
html[data-theme="dark"] .daily-note-content {
    color: #f5f5f7;
}

html[data-theme="dark"] .daily-notes-header p,
html[data-theme="dark"] .daily-notes-empty,
html[data-theme="dark"] .daily-note-reason {
    color: #a1a1a6;
}

html[data-theme="dark"] .daily-note-item--ai .daily-note-source {
    background: rgba(147, 51, 234, 0.2);
    color: #d8b4fe;
}

html[data-theme="dark"] .daily-note-item--ai-generated {
    border-left-color: #a855f7;
}

html[data-theme="dark"] .daily-notes-filter {
    background: #2c2c2e;
    color: #a1a1a6;
}

html[data-theme="dark"] .daily-notes-client-group {
    border-color: #3a3a3c;
}

html[data-theme="dark"] .daily-notes-client-head {
    background: #2c2c2e;
    border-bottom-color: #3a3a3c;
}

html[data-theme="dark"] .central-card-title .central-client-profile-link,
html[data-theme="dark"] .central-card-field-value .central-client-profile-link,
html[data-theme="dark"] .daily-notes-client-head-main h3 .central-client-profile-link {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-client-quick-link {
    background: #2c2c2e;
    border-color: #3a3a3c;
    color: #818cf8;
}

html[data-theme="dark"] .central-client-quick-link:hover {
    background: #3a3a3c;
    border-color: #4f46e5;
}

/* Sales funnel pipeline on Central */
.central-pipeline-section {
    margin-bottom: 16px;
}

.central-pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.central-pipeline-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.central-pipeline-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

.central-pipeline-card.is-declined {
    opacity: 0.72;
    background: #fafafa;
}

.central-pipeline-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.central-pipeline-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.central-pipeline-name-link {
    color: inherit;
    text-decoration: none;
}

.central-pipeline-name-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.central-pipeline-remove {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #aeaeb2;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 12px;
    line-height: 1;
    border-radius: 4px;
}

.central-pipeline-remove:hover {
    color: #eb5757;
    background: rgba(235, 87, 87, 0.08);
}

.central-pipeline-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    font-size: 11px;
    line-height: 1.35;
    color: #6e6e73;
}

.central-pipeline-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    color: inherit;
    font: inherit;
    max-width: 100%;
}

.central-pipeline-step:hover {
    background: rgba(99, 102, 241, 0.08);
}

.central-pipeline-step-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.central-pipeline-step-sep {
    color: #c7c7cc;
    margin: 0 4px;
    user-select: none;
}

.central-pipeline-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 8px;
    font-weight: 700;
    border: 1.5px solid #c7c7cc;
    color: transparent;
    background: #fff;
}

.central-pipeline-step.is-done .central-pipeline-mark {
    border-color: #34c759;
    background: #34c759;
    color: #fff;
}

.central-pipeline-step.is-declined .central-pipeline-mark {
    border-color: #ff3b30;
    background: #ff3b30;
    color: #fff;
    border-radius: 3px;
}

.central-pipeline-step.is-pending .central-pipeline-mark {
    border-color: #c7c7cc;
    background: #fff;
}

.central-pipeline-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: #8e8e93;
}

.central-pipeline-empty {
    text-align: center;
    padding: 28px 16px;
    color: #8e8e93;
}

.central-pipeline-empty i {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
    color: #c7c7cc;
}

.central-pipeline-empty p {
    margin: 0;
    font-size: 13px;
}

.central-pipeline-empty a {
    color: #4f46e5;
}

html[data-theme="dark"] .central-pipeline-card {
    background: #1c1c1e;
    border-color: #3a3a3c;
}

html[data-theme="dark"] .central-pipeline-card.is-declined {
    background: #2c2c2e;
}

html[data-theme="dark"] .central-pipeline-name {
    color: #f5f5f7;
}

html[data-theme="dark"] .central-pipeline-steps {
    color: #a1a1a6;
}

html[data-theme="dark"] .central-pipeline-mark {
    background: #1c1c1e;
    border-color: #636366;
}

html[data-theme="dark"] .central-pipeline-step.is-pending .central-pipeline-mark {
    background: #1c1c1e;
}

html[data-theme="dark"] .central-pipeline-step:hover {
    background: rgba(99, 102, 241, 0.18);
}

html[data-theme="dark"] .daily-notes-client-head:hover,
html[data-theme="dark"] .daily-note-toggle:hover {
    background: #3a3a3c;
}

html[data-theme="dark"] .daily-note-item {
    border-bottom-color: #3a3a3c;
}

html[data-theme="dark"] .daily-note-item--alert {
    background: rgba(245, 158, 11, 0.1);
}

html[data-theme="dark"] .daily-note-ai-descriptor {
    color: #c4b5fd;
}

html[data-theme="dark"] .daily-note-ai-descriptor--stale {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
}

html[data-theme="dark"] .daily-note-ai-descriptor--profile-fill {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.14);
}

html[data-theme="dark"] .daily-note-fill-badge {
    background: rgba(14, 165, 233, 0.18) !important;
    color: #7dd3fc !important;
}

html[data-theme="dark"] .daily-note-stale-warn--outdated {
    background: rgba(220, 38, 38, 0.12);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.35);
}

html[data-theme="dark"] .daily-note-stale-warn--uncertain {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.35);
}
