/**
 * SiteStaffr Settings/Dashboard Page Styles
 *
 * Styles for main settings page and dashboard only
 * Includes: Dashboard widgets, stats, setup progress, phone display
 *
 * @package    SiteStaffr
 * @subpackage SiteStaffr/assets/css
 * @since      0.5.0
 */

/* ==========================================================================
   ICON + TEXT VERTICAL ALIGNMENT (Universal Fix - v0.9.99)
   ========================================================================== */

/* Universal Dashicon Fix - Prevent line-height issues */
.dashicons {
    line-height: 1;
    vertical-align: middle;
}

/* View All Link with Arrow - Proper alignment */
.sitestaffr-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    text-decoration: none;
    color: #2271b1;
}

.sitestaffr-view-all-link:hover {
    color: #135e96;
    text-decoration: none; /* No underline on hover (Task V Fix - v0.10.33) */
}

.sitestaffr-view-all-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Specific icon alignment overrides (v0.9.99) */
.dashicons-calendar-alt {
    line-height: inherit; /* Allow natural alignment for calendar */
}

.dashicons-clock__new-calls {
    line-height: 1.25; /* Specific fix for clock icon in new calls */
}

.dashicons-admin-tools {
    line-height: 1.25; /* Specific fix for admin tools icon */
}

/* Section Headers - Icon + Title Alignment */
.sitestaffr-widget-header h2,
.sitestaffr-widget-header h3,
.sitestaffr-section-header,
.sitestaffr-section-title,
.sitestaffr-new-calls-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Cards - Icon + Content Alignment */
.sitestaffr-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sitestaffr-stat-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure icon circles don't inherit bad sizing */
.sitestaffr-stat-icon-circle,
.sitestaffr-sidebar-icon {
    flex-shrink: 0; /* Don't shrink */
}

/* New Calls - Metadata Icons + Text */
.sitestaffr-new-call-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sitestaffr-new-call-time,
.sitestaffr-new-call-duration {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* New Calls - Phone Number Icon + Text */
.sitestaffr-new-call-phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Recent Calls - Phone Icon + Info */
.sitestaffr-call-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sitestaffr-call-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sitestaffr-call-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Quick Actions - Icons + Text */
.sitestaffr-sidebar-button {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sitestaffr-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Summary Title - Icon + Text Alignment */
.sitestaffr-summary-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Progressive Low Balance Alert System
   NOTE: Alert styles moved to sitestaffr-global.css (v0.14.160) for global
   availability on all admin pages via the header partial.
   ========================================================================== */

/* ==========================================================================
   Dashboard & Settings Page Layout
   ========================================================================== */

/* Legacy dashboard header styles REMOVED in v0.14.50 — all header styles
   now live in sitestaffr-global.css (.sitestaffr-page-header). */

/* Dashboard content wrapper */
.pe-dashboard-content {
    /* max-width and margin now set globally on .wrap in sitestaffr-global.css */
}

/* Settings page — max-width now set globally on .wrap in sitestaffr-global.css */

/* Dashboard grid - use fr units to prevent overflow (v0.8.8) */
.sitestaffr-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch; /* Equal heights for Recent Calls & Quick Actions (v0.10.7) */
}

/* ==========================================================================
   Setup Progress Widget
   ========================================================================== */

.sitestaffr-setup-progress {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    margin-bottom: 0;
}

.sitestaffr-setup-progress .sitestaffr-widget-header {
    border-bottom: none;
    padding: 0 0 12px 0;
}

.sitestaffr-setup-progress h2 {
    color: #fff;
    font-size: 18px;
}

.sitestaffr-setup-progress h2 .dashicons {
    color: #fff;
}

.sitestaffr-progress-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sitestaffr-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.sitestaffr-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.sitestaffr-setup-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.sitestaffr-setup-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sitestaffr-setup-checklist li.completed {
    opacity: 0.7;
}

.sitestaffr-setup-checklist li .dashicons-yes-alt {
    color: #90EE90;
}

.sitestaffr-setup-checklist li .dashicons-marker {
    color: rgba(255, 255, 255, 0.5);
}

.sitestaffr-action-link {
    margin-left: auto;
    background: #fff;
    color: #667eea;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}

.sitestaffr-action-link:hover {
    background: #f0f0f1;
    color: #764ba2;
}

/* ==========================================================================
   Stats Widget
   ========================================================================== */

/* Stats Widget - Remove white container (v0.9.78) */
.sitestaffr-stats-widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    grid-column: 1 / -1;
}

.sitestaffr-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* .sitestaffr-stat-card styling moved to ICON + TEXT VERTICAL ALIGNMENT section above */
.sitestaffr-stat-card {
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); /* Subtle shadow */
    transition: all 0.2s ease;
    /* No background here - specific cards define their own gradients */
}

.sitestaffr-stat-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sitestaffr-stat-card:hover {
    box-shadow: 0 2px 12px rgba(0, 131, 143, 0.12);
    transform: translateY(-1px);
}

/* Calls This Month Card - Ultra-light Teal (v0.10.7) */
.sitestaffr-stat-card.sitestaffr-stat-calls {
    background: rgba(31, 182, 204, 0.03); /* Barely visible teal hint */
    border-left: none !important; /* Guard against stale Claude CSS variants */
}

/* ==========================================================================
   Dashboard Stat Card Border Safety Override
   ========================================================================== */

/* Force-remove any left accent border on right-side dashboard stat cards,
   regardless of stale/injected style sources. */
.sitestaffr-dashboard .sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-card.sitestaffr-stat-calls,
.sitestaffr-dashboard .sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-card.sitestaffr-stat-duration,
.sitestaffr-dashboard .sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-card.sitestaffr-stat-dynamic {
    border-left: 0 !important;
    border-inline-start: 0 !important;
}

/* Average Call Duration Card - Ultra-light Purple (v0.10.7) */
.sitestaffr-stat-card.sitestaffr-stat-duration {
    background: rgba(155, 89, 182, 0.03); /* Barely visible purple hint */
    border-left: none !important; /* Guard against stale Claude CSS variants */
}

/* New Messages Card - Medium Orange (balanced) - DEPRECATED */
.sitestaffr-stat-card.sitestaffr-stat-messages {
    background: linear-gradient(135deg, #FFF7EB 0%, #FFFBF5 100%);
}

/* Spam Filtered Card - Ultra-light Orange (v0.10.7) - DEPRECATED */
.sitestaffr-stat-card.sitestaffr-stat-filtered {
    background: rgba(255, 152, 0, 0.03); /* Barely visible orange hint */
}

/* Dynamic stat subtitle styling */
.sitestaffr-stat-subtitle {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Icon Circle Base Styling */
.sitestaffr-stat-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Circular */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Calls This Month - Teal circle */
.sitestaffr-stat-calls .sitestaffr-stat-icon-circle {
    background: rgba(31, 182, 204, 0.2); /* Teal with 20% opacity */
}

.sitestaffr-stat-calls .dashicons {
    color: #00838F; /* Darker teal icon */
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Average Duration - Purple circle */
.sitestaffr-stat-duration .sitestaffr-stat-icon-circle {
    background: rgba(156, 39, 176, 0.2); /* Purple with 20% opacity */
}

.sitestaffr-stat-duration .dashicons {
    color: #7b1fa2; /* Darker purple icon */
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* New Messages - Orange circle - DEPRECATED (kept for backward compatibility) */
.sitestaffr-stat-messages .sitestaffr-stat-icon-circle {
    background: rgba(245, 158, 11, 0.2); /* Orange with 20% opacity */
}

.sitestaffr-stat-messages .dashicons {
    color: #f57c00; /* Darker orange icon */
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Spam Filtered - Orange circle (protection/warning theme) */
.sitestaffr-stat-filtered .sitestaffr-stat-icon-circle {
    background: rgba(245, 158, 11, 0.2); /* Orange circle background */
}

.sitestaffr-stat-filtered .dashicons {
    color: #f57c00; /* Darker orange icon */
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Old stat icon style (deprecated - kept for backward compatibility) */
.sitestaffr-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sitestaffr-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* .sitestaffr-stat-content styling moved to ICON + TEXT VERTICAL ALIGNMENT section above */

.sitestaffr-stat-number {
    font-size: 28px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1;
}

.sitestaffr-stat-label {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

.sitestaffr-phone-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

.sitestaffr-phone-display .dashicons {
    color: #388e3c;
}

.sitestaffr-phone-label {
    color: #2e7d32;
    font-size: 13px;
}

.sitestaffr-phone-number {
    color: #1b5e20;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Quick Actions Sidebar (30% Right Column - v0.10.6)
   ========================================================================== */

/* Quick Actions Widget - Ultra-light styling with subtle shadow */
.sitestaffr-actions-sidebar {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-height: 200px;
    margin-bottom: 0;
    order: 0;
    overflow: hidden;
}

.sitestaffr-actions-sidebar .sitestaffr-widget-header {
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sitestaffr-actions-sidebar .sitestaffr-widget-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.sitestaffr-actions-sidebar .sitestaffr-widget-header .dashicons {
    color: #00838F;
    font-size: 18px;
}

.sitestaffr-sidebar-actions {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 20px; /* Add spacing so cards don't touch container edges (v0.10.25) */
}

/* Sidebar Button - Uniform styling matching stat cards (v0.10.24 - Task T Revert) */
.sitestaffr-sidebar-button {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #1d2327;
}

.sitestaffr-sidebar-button:last-child {
    margin-bottom: 0;
}

/* Pastel Backgrounds for Quick Actions Cards (v0.10.25) */

/* View All Calls - Light teal background */
.sitestaffr-sidebar-button:nth-child(1) {
    background: rgba(31, 182, 204, 0.1); /* Very light teal */
}

/* View Usage - Light purple background */
.sitestaffr-sidebar-button:nth-child(2) {
    background: rgba(156, 39, 176, 0.03); /* Very light purple */
}

/* Settings - Light gray background */
.sitestaffr-sidebar-button:nth-child(3) {
    background: rgba(100, 105, 112, 0.03); /* Very light gray */
}

/* Widget Settings - Light warm background */
.sitestaffr-sidebar-button:nth-child(4) {
    background: rgba(100, 105, 112, 0.03); /* Very light gray, matching Settings */
}

/* Buy More Minutes - match Settings/Widget visual family */
.sitestaffr-sidebar-button:nth-child(5) {
    background: rgba(100, 105, 112, 0.03);
}

.sitestaffr-sidebar-button:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(31, 182, 204, 0.3);
    transform: translateY(-1px);
}

.sitestaffr-sidebar-button:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

/* Icon Circle - Teal circle with equal weight for all actions */
.sitestaffr-sidebar-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Icon colors - keep teal theme for first two, gray for settings/widget */
.sitestaffr-sidebar-button:nth-child(1) .sitestaffr-sidebar-icon {
    background: rgba(31, 182, 204, 0.1);
    color: #1FB6CC;
}

.sitestaffr-sidebar-button:nth-child(2) .sitestaffr-sidebar-icon {
    background: rgba(31, 182, 204, 0.1);
    color: #1FB6CC;
}

.sitestaffr-sidebar-button:nth-child(3) .sitestaffr-sidebar-icon {
    background: rgba(100, 105, 112, 0.1);
    color: #646970;
}

.sitestaffr-sidebar-button:nth-child(4) .sitestaffr-sidebar-icon {
    background: rgba(100, 105, 112, 0.1);
    color: #646970;
}

.sitestaffr-sidebar-button:nth-child(5) .sitestaffr-sidebar-icon {
    background: rgba(100, 105, 112, 0.1);
    color: #646970;
}

.sitestaffr-sidebar-icon .dashicons {
    font-size: 20px;
}

/* Text Content - Title + Description stacked vertically */
.sitestaffr-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sitestaffr-sidebar-text {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.sitestaffr-sidebar-desc {
    font-size: 12px;
    color: #646970;
}

/* Arrow - Right-aligned indicator */
.sitestaffr-sidebar-arrow {
    flex-shrink: 0;
    color: #646970;
}

.sitestaffr-sidebar-arrow .dashicons {
    font-size: 18px;
}

.sitestaffr-sidebar-button .dashicons-arrow-right-alt2 {
    margin-left: auto;
    color: #646970;
}

/* Mobile Responsive - Quick Actions */
@media screen and (max-width: 782px) {
    .sitestaffr-actions-sidebar {
        margin-top: 20px; /* Space from Recent Calls on mobile */
    }

    .sitestaffr-sidebar-button {
        padding: 14px 16px;
    }

    .sitestaffr-sidebar-icon {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Quick Actions - Uniform Styling (v0.10.24 - Reverted from Task T)
   ========================================================================== */

/* Action Title/Desc - Typography for action buttons */
.sitestaffr-action-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 2px;
}

.sitestaffr-action-desc {
    font-size: 12px;
    color: #646970;
}

/* Primary Button Variant (Test Your AI) - Deprecated */
.sitestaffr-sidebar-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-color: #1976D2;
    color: #fff;
}

.sitestaffr-sidebar-primary:hover {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    border-color: #1565C0;
}

.sitestaffr-sidebar-primary .sitestaffr-sidebar-icon {
    background: rgba(255, 255, 255, 0.2);
}

.sitestaffr-sidebar-primary .sitestaffr-sidebar-icon .dashicons,
.sitestaffr-sidebar-primary .sitestaffr-sidebar-text,
.sitestaffr-sidebar-primary .sitestaffr-sidebar-desc,
.sitestaffr-sidebar-primary .sitestaffr-sidebar-arrow .dashicons {
    color: #fff;
}

/* Warning Button Variant (Get Phone Number) - Deprecated */
.sitestaffr-sidebar-warning {
    background: #fff8e1;
    border-color: #ffc107;
}

.sitestaffr-sidebar-warning:hover {
    background: #fff3cd;
    border-color: #f57c00;
}

.sitestaffr-sidebar-warning .sitestaffr-sidebar-icon {
    background: rgba(255, 193, 7, 0.2);
}

.sitestaffr-sidebar-warning .sitestaffr-sidebar-icon .dashicons {
    color: #f57c00;
}

/* Loading State - Deprecated */
.sitestaffr-sidebar-button.sitestaffr-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ==========================================================================
   Recent Calls Widget (Dashboard) - Ultra-Light Pastel Styling (v0.9.96)
   ========================================================================== */

.sitestaffr-calls-widget {
    min-height: 200px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); /* Subtle shadow (v0.9.79) */
}

/* Recent Calls Widget - Enhanced styling with teal gradient (v0.10.2) */
.sitestaffr-recent-calls-widget {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 0;
    order: 1;
    overflow: hidden;
}

.sitestaffr-recent-calls-widget .sitestaffr-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #FAF8F4;
}

.sitestaffr-recent-calls-widget .sitestaffr-widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.sitestaffr-recent-calls-widget .sitestaffr-widget-header h3 .dashicons {
    color: #00838F; /* Darker teal for section header icons */
    font-size: 18px;
}

.sitestaffr-recent-calls-widget .sitestaffr-view-all-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sitestaffr-recent-calls-widget .sitestaffr-view-all-link:hover {
    color: #135e96;
}

/* Mobile-only View All link — hidden on desktop */
.sitestaffr-view-all-link-mobile {
    display: none !important;
}

/* Underline only the text, not the chevron icon (v0.10.41) */
.sitestaffr-recent-calls-widget .sitestaffr-view-all-link:hover .sitestaffr-view-all-text {
    text-decoration: underline;
}

.sitestaffr-calls-list {
    padding: 8px;
}

/* ==========================================================================
   DASHBOARD RECENT CONVERSATIONS — Editorial Mini-Card Rows
   ========================================================================== */

/* Call list items — card-style rows with landing-page elevation hover */
.sitestaffr-recent-calls-widget .sitestaffr-call-item {
    padding: 16px 20px;
    margin: 4px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                border-color 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    background: transparent;
}

/* Unread rows — warm cream card */
.sitestaffr-recent-calls-widget .sitestaffr-call-item.sitestaffr-call-unread {
    background: #FFFDF9;
    border-color: #e8e2d8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sitestaffr-recent-calls-widget .sitestaffr-call-item:last-child {
    margin-bottom: 4px;
}

/* Hover — elevation lift + teal-tinted shadow */
.sitestaffr-recent-calls-widget .sitestaffr-call-item:hover {
    cursor: pointer;
    background: #fff;
    border-color: #e8e2d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,131,143,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

.sitestaffr-recent-calls-widget .sitestaffr-call-item.sitestaffr-call-unread:hover {
    box-shadow: 0 4px 16px rgba(0,131,143,0.12), 0 2px 4px rgba(0,131,143,0.06);
}

/* ---- Avatar circle ---- */
.sitestaffr-recent-calls-widget .sitestaffr-call-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1FB6CC, #00838F);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.sitestaffr-recent-calls-widget .sitestaffr-call-avatar-circle .dashicons {
    color: #fff;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ---- Call info — expands to fill middle ---- */
.sitestaffr-recent-calls-widget .sitestaffr-call-info {
    flex: 1 1 0%;
    min-width: 0;
}

/* NEW badge — warm green pill, floats above summary */
.sitestaffr-recent-calls-widget .sitestaffr-badge-new {
    display: inline-flex;
    width: fit-content;
    background: #ecfdf5;
    color: #059669;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
    margin-bottom: 4px;
}

/* AI summary snippet — primary content of each row */
.sitestaffr-recent-calls-widget .sitestaffr-call-summary-snippet {
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #1d2327;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.sitestaffr-recent-calls-widget .sitestaffr-call-summary-empty {
    color: #9ca3af;
    font-style: italic;
    font-weight: 400;
}

/* Time ago — below summary */
.sitestaffr-recent-calls-widget .sitestaffr-call-time {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Duration — top-right corner of the card */
.sitestaffr-recent-calls-widget .sitestaffr-call-meta {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    margin-left: auto;
    margin-top: 2px;
}

.sitestaffr-recent-calls-widget .sitestaffr-call-duration {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #646970;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    white-space: nowrap;
}

/* ==========================================================================
   Stacked Hover Actions for Recent Calls
   ========================================================================== */

/* Action buttons — horizontal row between summary and time, fade in on hover */
.sitestaffr-call-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, height 0.25s ease, margin 0.25s ease;
    background: transparent;
    padding: 0;
    pointer-events: none;
    margin: 0;
}

/* Show on hover */
.sitestaffr-call-item:hover .sitestaffr-call-actions {
    opacity: 1;
    height: auto;
    overflow: visible;
    transform: translateY(0);
    pointer-events: auto;
    margin: 6px 0 2px;
}

/* Primary action — View Details */
.sitestaffr-call-action-primary {
    background: #00838F;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.sitestaffr-call-action-primary:hover {
    background: #006d77;
}

/* Secondary action — Mark Read/Unread */
.sitestaffr-call-action-secondary {
    background: transparent;
    color: #00838F;
    padding: 5px 14px;
    border: 1px solid #b2dfdb;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.sitestaffr-call-action-secondary:hover {
    background: #e0f2f1;
    border-color: #80cbc4;
}

/* Destructive action button - Delete (Red Text) */
.sitestaffr-call-action-destructive {
    background: transparent;
    color: #d63638;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sitestaffr-call-action-destructive:hover {
    color: #a72729;
    text-decoration: underline;
}

/* Success message after marking as read */
.sitestaffr-call-marked {
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile responsive - stack actions below content (Task X - v0.10.30) */
@media screen and (max-width: 782px) {
    .sitestaffr-call-item {
        flex-wrap: wrap;
    }

    .sitestaffr-call-actions {
        width: 100%;
        justify-content: center;
        margin: 8px 0 0 0;
    }
}

/* Legacy styles (kept for backward compatibility) */
.sitestaffr-call-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.sitestaffr-call-card:hover {
    background: #f6f7f7;
}

.sitestaffr-call-unread {
    background: #f0f6fc;
}

.sitestaffr-call-unread:hover {
    background: #e5f0fa;
}

.sitestaffr-call-avatar {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sitestaffr-call-avatar .dashicons {
    color: #1976d2;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* .sitestaffr-call-info base flexbox moved to ICON + TEXT VERTICAL ALIGNMENT section above */
.sitestaffr-call-info {
    flex: 1;
    min-width: 0;
}

.sitestaffr-call-number {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.sitestaffr-call-time {
    display: block;
    font-size: 12px;
    color: #646970;
}

/* .sitestaffr-call-meta base flexbox moved to ICON + TEXT VERTICAL ALIGNMENT section above */
.sitestaffr-call-meta {
    flex-shrink: 0;
}

.sitestaffr-call-duration {
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 12px;
    color: #646970;
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 3px;
}

/* ==========================================================================
   Settings Page Styles
   ========================================================================== */

.sitestaffr-settings-info {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-top: 20px;
}

.sitestaffr-settings-info h2 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

/* Form table styles */
.form-table th {
    font-weight: 600;
}

.form-table input[type="text"],
.form-table input[type="password"] {
    width: 100%;
    max-width: 500px;
}

/* ==========================================================================
   Phone Banner - Dashboard & Settings (Simple)
   ========================================================================== */

.sitestaffr-phone-banner {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #388e3c;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sitestaffr-phone-banner .dashicons {
    color: #388e3c;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sitestaffr-phone-banner-content {
    flex: 1;
}

.sitestaffr-phone-banner-label {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 4px;
}

.sitestaffr-phone-banner-number {
    font-size: 18px;
    font-weight: 600;
    color: #1b5e20;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for phone banner */
@media screen and (max-width: 782px) {
    .sitestaffr-phone-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .sitestaffr-phone-banner .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .sitestaffr-phone-banner-number {
        font-size: 16px;
    }
}

/* ==========================================================================
   Two-Column Grid: Minutes Balance + Stats Cards (v0.10.21 - Task S Fix)
   ========================================================================== */

.sitestaffr-dashboard-balance-stats-grid {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

/* ==========================================================================
   Minutes Balance Section (v0.10.20 - Task S: Circular Progress Ring Refined)
   ========================================================================== */

.sitestaffr-minutes-balance-section {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    background: transparent;
    border-radius: 16px;
    padding: 20px 24px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Dynamic status gradients for AI Minutes Balance */
.sitestaffr-minutes-widget.status-healthy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.10) 0%, rgba(31, 182, 204, 0.08) 100%);
    box-shadow: inset 0 2px 14px rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.sitestaffr-minutes-widget.status-medium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(251, 191, 36, 0.10) 100%);
    box-shadow: inset 0 2px 16px rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.sitestaffr-minutes-widget.status-low {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(251, 191, 36, 0.10) 100%);
    box-shadow: inset 0 2px 16px rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.sitestaffr-minutes-widget.status-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(248, 113, 113, 0.08) 100%);
    box-shadow: inset 0 2px 18px rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.28);
}

/* Header Row: Title + Reset Date in Top-Right (Task S Refinement) */
.sitestaffr-minutes-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sitestaffr-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

.sitestaffr-section-title .dashicons {
    color: #00838F; /* Darker teal for section header icons */
    font-size: 20px;
}

.sitestaffr-section-title .dashicons-warning {
    color: #ff9800; /* Orange for warning icon when low balance */
}

.sitestaffr-minutes-widget.status-critical .sitestaffr-section-title .dashicons-warning {
    color: #ef4444; /* Red exclamation icon for critical/exhausted state */
}

/* Reset date in header (Task S Refinement) */
.sitestaffr-minutes-reset-header {
    font-size: 13px;
    color: #646970;
}

/* Purchase button styling */
.sitestaffr-purchase-button {
    background: linear-gradient(135deg, #1FB6CC 0%, #17A2B8 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(31, 182, 204, 0.2);
}

.sitestaffr-purchase-button:hover {
    background: linear-gradient(135deg, #17A2B8 0%, #138496 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(31, 182, 204, 0.3);
}

/* DEPRECATED - Old conditional button (kept for backward compatibility) */
.sitestaffr-purchase-button.sitestaffr-purchase-now {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.sitestaffr-purchase-button.sitestaffr-purchase-now:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

/* Task 4 - Conditional CTA Behavior (v0.10.54) */
/* Task 6 - Green Gradient for Soft State (v0.10.58) */

/* SOFT state (10-30% balance) - Amber/yellow to match low-balance status */
.sitestaffr-purchase-button.sitestaffr-purchase-soft {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); /* Amber gradient */
    color: #ffffff;
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.sitestaffr-purchase-button.sitestaffr-purchase-soft:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%); /* Darker amber on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* STRONG state (<10% balance) - Urgent, prominent call-to-action */
.sitestaffr-purchase-button.sitestaffr-purchase-strong {
    background: #ef4444; /* Solid red background */
    color: #fff; /* White text */
    border: none;
    font-weight: 700; /* Bold weight */
    padding: 12px 24px; /* Slightly larger padding for prominence */
    box-shadow: 0 3px 6px rgba(239, 68, 68, 0.3); /* Stronger shadow */
}

.sitestaffr-purchase-button.sitestaffr-purchase-strong:hover {
    background: #dc2626; /* Darker red on hover */
    transform: translateY(-2px); /* More pronounced lift */
    box-shadow: 0 5px 10px rgba(239, 68, 68, 0.4); /* Stronger shadow on hover */
}

.sitestaffr-minutes-cta-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.sitestaffr-purchase-button.sitestaffr-purchase-secondary {
    background: transparent;
    border: 1px solid #0f766e;
    color: #0f766e;
    box-shadow: none;
    font-weight: 600;
    text-decoration: none;
}

.sitestaffr-purchase-button.sitestaffr-purchase-secondary:hover {
    background: rgba(15, 118, 110, 0.08);
    border-color: #0f766e;
    color: #0f766e;
    box-shadow: none;
    transform: none;
}

/* Main Content: Circle (Left) + Info Column (Right) */
.sitestaffr-minutes-content {
    display: grid;
    grid-template-columns: auto 1fr; /* Circle auto-width, info takes remaining */
    gap: 24px;
    align-items: center;
}

/* Circular Progress Ring Container (MUCH BIGGER - Task S Refinement) */
.sitestaffr-progress-circle-container {
    position: relative;
    width: 200px; /* Increased from 120px */
    height: 200px; /* Increased from 120px */
    cursor: pointer;
}

.sitestaffr-progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start from top */
}

/* Softer Background Circle (Task S Fix - v0.10.21) */
.sitestaffr-progress-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.06); /* Very light gray - less prominent */
    stroke-width: 6; /* Thinner stroke */
}

/* Softer Progress Ring (Task S Fix - v0.10.21) */
.sitestaffr-progress-ring {
    fill: none;
    stroke-width: 6; /* Thinner stroke - was 8 */
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

/* Progress Ring Color Coding - Softer Colors (Task S Fix - v0.10.21) */
.sitestaffr-progress-ring.status-high {
    stroke: rgba(76, 175, 80, 0.4); /* Softer green with opacity */
}

.sitestaffr-progress-ring.status-medium {
    stroke: rgba(255, 152, 0, 0.4); /* Softer yellow/orange with opacity */
}

.sitestaffr-progress-ring.status-low {
    stroke: rgba(244, 67, 54, 0.4); /* Softer red with opacity */
}

/* Percentage in Center of Circle - Lighter Weight (Task S Fix - v0.10.21) */
/* DEPRECATED - Replaced by status icon in Task 1 (v0.10.46) */
.sitestaffr-progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px; /* Keep size - large but lighter */
    font-weight: 600; /* Reduced from 700 (bold) to 600 (semi-bold) */
    color: rgba(29, 35, 39, 0.7); /* Slight transparency for softer look */
    pointer-events: none;
}

/* Progress circle status icon (Task 1 - v0.10.46) */
.sitestaffr-progress-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.sitestaffr-progress-status .dashicons {
    font-size: 112px;
    width: 112px;
    height: 112px;
    opacity: 1;
}

.sitestaffr-progress-status-exclamation {
    display: inline-block;
    font-size: 116px;
    line-height: 1;
    font-weight: 700;
}

/* Icon colors are inline styles from PHP (based on status) */

/* ==========================================================================
   Custom Tooltips - SiteStaffr Branding (Task 5 - v0.10.40)
   ========================================================================== */

/* Phone Number Tooltip - Text only (Task 2 Revision - v0.10.44) */
.sitestaffr-header-phone-copy .sitestaffr-tooltip {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 100%; /* Position to the right */
    transform: translateY(-50%); /* Center alignment */
    margin-left: 12px; /* Space from phone number */
    background: #1FB6CC; /* Teal brand color */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(31, 182, 204, 0.3);
    font-size: 12px;
    white-space: nowrap;

    /* Animation */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 1000;
}

/* Tooltip - success state (green) */
.sitestaffr-header-phone-copy .sitestaffr-tooltip.sitestaffr-tooltip-success {
    background: #10b981; /* Green background */
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Text inside tooltip */
.sitestaffr-header-phone-copy .sitestaffr-tooltip-text {
    color: #fff; /* White text */
    font-weight: 500;
}

/* Success state - ensure white text */
.sitestaffr-header-phone-copy .sitestaffr-tooltip.sitestaffr-tooltip-success .sitestaffr-tooltip-text {
    color: #fff;
}

/* Arrow pointing left (towards phone number) - default teal */
.sitestaffr-header-phone-copy .sitestaffr-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%; /* Arrow on left side */
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1FB6CC; /* Teal arrow */
    transition: border-color 0.2s ease;
}

/* Arrow - green when success */
.sitestaffr-header-phone-copy .sitestaffr-tooltip.sitestaffr-tooltip-success::before {
    border-right-color: #10b981; /* Green arrow */
}

/* Show on parent hover */
.sitestaffr-header-phone-copy:hover .sitestaffr-tooltip {
    opacity: 1;
}

/* Mobile: Position tooltip below (centered) */
@media screen and (max-width: 782px) {
    .sitestaffr-header-phone-copy .sitestaffr-tooltip {
        left: 50%; /* Center below on mobile */
        top: 100%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-top: 8px;
    }

    .sitestaffr-header-phone-copy .sitestaffr-tooltip::before {
        top: auto;
        bottom: 100%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        border-right-color: transparent;
        border-bottom-color: #1FB6CC;
    }

    .sitestaffr-header-phone-copy .sitestaffr-tooltip.sitestaffr-tooltip-success::before {
        border-bottom-color: #10b981;
    }
}

/* Progress Circle Tooltip - Simple Percentage Display (Task W - v0.10.67) */
.sitestaffr-balance-tooltip {
    position: absolute;
    bottom: 100%; /* Position ABOVE circle */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    margin-bottom: 12px; /* Space from circle */

    /* Compact width for percentage */
    width: auto; /* Auto width for percentage */
    min-width: 50px; /* Minimum width */
    max-width: 100px; /* Max width for percentage */

    /* Styling - Dark background for simple percentage */
    background: rgba(0, 0, 0, 0.8); /* Dark background */
    color: #ffffff; /* White text */
    padding: 8px 12px; /* Compact padding */
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center; /* Center-align percentage */

    /* Appearance */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

/* Arrow points DOWN towards circle - matches dark background (Task W - v0.10.67) */
.sitestaffr-balance-tooltip::before {
    content: '';
    position: absolute;
    top: 100%; /* Arrow at bottom of tooltip */
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8); /* Dark arrow to match tooltip */
}

/* Info Column: Minutes + Purchased + Button (Task S Refinement) */
.sitestaffr-minutes-info {
    display: flex;
    flex-direction: column;
}

/* Primary Message: "X minutes remaining" - LARGEST, MOST PROMINENT (Task 3 - v0.10.53) */
.sitestaffr-minutes-display {
    font-size: 24px;
    font-weight: 600;
    color: #909090;
    line-height: 1.2;
}

/* Secondary Message: Breakdown - SMALLER, SUBTLE (Task 3 - v0.10.53) */
.sitestaffr-purchased-display {
    font-size: 13px; /* Small, de-emphasized */
    font-weight: 400; /* Normal weight */
    color: #8c8f94; /* Lighter gray - more subtle */
    margin-top: 2px; /* Slight spacing from primary */
}

/* Health Message - Status-aware coloring (v0.14.158) */
.sitestaffr-health-message {
    font-size: 13px;
    font-weight: 400;
    color: #515151;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-top: 4px;
    line-height: 1.5;
}

/* Low/medium balance */
.status-medium .sitestaffr-health-message {
    color: #92400e;
}

/* Critical balance */
.status-critical .sitestaffr-health-message {
    color: #991b1b;
}

.sitestaffr-minutes-info .sitestaffr-purchase-button {
    align-self: flex-start; /* Align to left (below purchased) */
    margin-top: 8px;
}

/* Stats Widget - Stack Vertically in Right Column (Task S Fix - v0.10.21) */
.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stats-widget {
    background: transparent;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    padding: 0;
    flex: 0 1 340px;
    max-width: 360px;
    min-width: 280px;
    width: auto;
}

.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-card {
    display: block;
    min-height: 56px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
}

.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-icon-circle {
    display: none;
}

.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 12px;
}

.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-label {
    margin-top: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #5a6f7b;
}

.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-number {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: #0a7f8b;
}

.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-card.sitestaffr-stat-projection .sitestaffr-stat-number {
    font-size: 20px;
    letter-spacing: 0.01em;
}

.sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-card:last-child {
    border-bottom: 0;
}

/* Mobile Responsive */
@media screen and (max-width: 782px) {
    .sitestaffr-dashboard-balance-stats-grid {
        flex-direction: column; /* Stack vertically on mobile */
        overflow: hidden;
    }

    .sitestaffr-minutes-balance-section,
    .sitestaffr-dashboard-balance-stats-grid .sitestaffr-stats-widget {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-basis: 100%;
        box-sizing: border-box;
    }

    .sitestaffr-minutes-balance-section {
        padding: 16px;
    }

    .sitestaffr-minutes-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sitestaffr-minutes-content {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 20px;
    }

    .sitestaffr-progress-circle-container {
        width: 140px; /* Increased from 80px */
        height: 140px; /* Increased from 80px */
        justify-self: center;
    }

    .sitestaffr-progress-percentage {
        font-size: 32px; /* Adjusted for mobile */
    }

    .sitestaffr-balance-tooltip {
        /* Keep positioning above circle on mobile */
        width: auto; /* Auto width for percentage */
        max-width: 80px; /* Compact for percentage on mobile */
        font-size: 13px;
        padding: 6px 10px;
        margin-bottom: 10px; /* Slightly less space on mobile */
    }

    .sitestaffr-balance-tooltip::before {
        border-top-color: rgba(0, 0, 0, 0.8); /* Match dark background (Task W - v0.10.67) */
    }

    .sitestaffr-minutes-info .sitestaffr-purchase-button {
        width: 100%; /* Full width on mobile */
    }

    /* Mobile: Slightly smaller primary text, maintain hierarchy (Task 3 - v0.10.53) */
    .sitestaffr-minutes-display {
        font-size: 24px; /* Slightly smaller on mobile - still prominent */
    }

    .sitestaffr-purchased-display {
        font-size: 12px; /* Proportionally smaller on mobile */
    }

    .sitestaffr-stats-grid {
        gap: 12px; /* Tighter gap on mobile */
    }

    .sitestaffr-dashboard-balance-stats-grid .sitestaffr-stat-number {
        font-size: 20px;
    }
}

/* OLD Progress Bar Styles (Deprecated - kept for backward compatibility) */
.sitestaffr-minute-progress {
    width: 100%;
    height: 28px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.sitestaffr-minute-progress-fill {
    height: 100%;
    transition: width 0.5s ease, background 0.5s ease;
    border-radius: 8px;
}

.sitestaffr-minute-progress-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1;
}

.sitestaffr-minute-progress-fill.status-good {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.sitestaffr-minute-progress-fill.status-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.sitestaffr-minute-progress-fill.status-low {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.sitestaffr-minute-progress-fill.status-critical {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* ==========================================================================
   Header Elements (Copy Button & Status Badge for Header)
   ========================================================================== */

.sitestaffr-status-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
}

.sitestaffr-status-active::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    flex-shrink: 0;
}

.sitestaffr-status-inactive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
}

.sitestaffr-status-inactive::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    flex-shrink: 0;
}

.sitestaffr-copy-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #1FB6CC;
    padding: 6px 14px;
    border: 1.5px solid #1FB6CC;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sitestaffr-copy-button:hover {
    background: rgba(31, 182, 204, 0.1);
    border-color: #17A2B8;
    color: #17A2B8;
}

.sitestaffr-copy-button .dashicons {
    color: currentColor;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   OLD PHONE NUMBER BANNER (Deprecated - kept for backward compatibility)
   ========================================================================== */

.sitestaffr-phone-number-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.sitestaffr-phone-number-banner.sitestaffr-settings-banner {
    margin-bottom: 0;
}

.sitestaffr-phone-number-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.sitestaffr-phone-number-content .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}

.sitestaffr-phone-number-text {
    display: flex;
    flex-direction: column;
}

.sitestaffr-phone-number-banner .sitestaffr-phone-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sitestaffr-phone-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 12px;
}

.sitestaffr-phone-number-banner .sitestaffr-status-badge {
    display: inline-block;
    margin-left: 12px;
}

/* Mobile responsive for phone number banner */
@media screen and (max-width: 782px) {
    .sitestaffr-phone-number-banner {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        text-align: center;
    }

    .sitestaffr-phone-number-content {
        flex-direction: column;
        gap: 12px;
    }

    .sitestaffr-phone-number-value {
        font-size: 20px;
    }

    .sitestaffr-copy-button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Cross-link Boxes Between Pages
   ========================================================================== */
/* NOTE: Tooltip styles moved to sitestaffr-global.css (v0.5.7) */

/* Settings page - light blue info box */
.sitestaffr-settings-cross-link {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 16px 0;
}

/* Train AI page - light gray info banner */
.sitestaffr-ai-cross-link {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 16px 0;
}

/* Cross-link anchor style */
.sitestaffr-cross-link a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.sitestaffr-cross-link a:hover {
    text-decoration: underline;
    color: #135e96;
}

/* ==========================================================================
   New Calls Highlight Section (v0.5.13)
   ========================================================================== */

/* ==================================================
   NEW CALLS CAROUSEL SECTION
   ================================================== */

.sitestaffr-new-calls-widget {
    margin: 12px 0 20px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(31, 182, 204, 0.10);
    border: 1px solid rgba(31, 182, 204, 0.20);
    overflow: visible;
}

.sitestaffr-new-calls-widget.no-new-calls {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: none; /* Remove glow when no new calls (Task 2 - v0.10.40) */
}

.sitestaffr-new-calls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    background: linear-gradient(135deg, #0e898812 0%, #6bba461a 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Subtle separator */
    cursor: pointer;
    user-select: none;
    border-radius: 8px 8px 0 0;
}

.sitestaffr-new-calls-widget.no-new-calls .sitestaffr-new-calls-header {
    background: linear-gradient(135deg, #0e898808 0%, #6bba460f 100%);
    border-bottom-color: #e0e0e0;
}

.sitestaffr-new-calls-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sitestaffr-new-calls-header h2 .dashicons {
    color: #00838F;
    font-size: 20px;
}

.sitestaffr-new-calls-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: #dc3545; /* Red to match "New" badges */
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    flex-shrink: 0;
}

.sitestaffr-toggle-new-calls {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.sitestaffr-toggle-new-calls:hover {
    color: #28a745;
}

.sitestaffr-toggle-new-calls .dashicons {
    font-size: 20px;
}

.sitestaffr-new-calls-content {
    padding: 18px 20px 16px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

/* Carousel Container */
.sitestaffr-new-calls-carousel-wrapper {
    position: relative;
    width: 100%;
    background: #ffffff;
}

.sitestaffr-new-calls-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #ffffff;
}

.sitestaffr-carousel-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.sitestaffr-carousel-slide.active {
    display: block;
    opacity: 1;
}

/* Utility class used by JS to measure hidden slide height without flicker. */
.sitestaffr-carousel-slide.sitestaffr-slide-measuring {
    display: block !important;
    visibility: hidden !important;
    position: absolute !important;
    left: 0;
    right: 0;
    top: 0;
}

/* Carousel Navigation Buttons - Bottom Right Corner */
.sitestaffr-carousel-nav {
    position: absolute;
    top: auto;
    bottom: -30px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dcdcde;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: none;
}

.sitestaffr-carousel-nav:hover {
    background: #fff;
    border-color: #28a745;
    color: #28a745;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.2);
}

.sitestaffr-carousel-nav .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    margin: 0;
    display: block;
}

.sitestaffr-carousel-prev {
    right: 56px;
    left: auto;
}

.sitestaffr-carousel-next {
    right: 16px;
}

.sitestaffr-carousel-prev .dashicons {
    transform: translateX(-0.5px);
}

.sitestaffr-carousel-next .dashicons {
    transform: translateX(1px);
}

/* Carousel Indicators */
.sitestaffr-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.sitestaffr-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4edda;
    border: 2px solid #28a745;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.sitestaffr-carousel-dot:hover {
    background: #a3d9b1;
}

.sitestaffr-carousel-dot.active {
    background: #28a745;
    transform: scale(1.12);
}

/* Call Card Styles - Simplified */
.sitestaffr-new-call-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    position: relative;
    box-shadow: none;
}

/* Mark as Read Link - v0.10.66: Simple link style matching View Full Details */
.sitestaffr-new-call-mark-read-link {
    color: #6b7b86;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.88;
}

.sitestaffr-new-call-mark-read-link:hover {
    color: #188fa3;
    text-decoration: none;
    opacity: 1;
}

.sitestaffr-new-call-mark-read-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #6b7b86;
}

.sitestaffr-new-call-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

/* Enhanced "New" badge for carousel - adds letter-spacing */
.sitestaffr-new-call-badge .sitestaffr-badge-new {
    letter-spacing: 0.5px;
}

.sitestaffr-new-call-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: start;
}

.sitestaffr-new-call-main {
    min-width: 0;
}

.sitestaffr-new-call-side {
    border-left: 0;
    border-radius: 8px;
    background-color: #d3d3d321;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: right;
}

.sitestaffr-new-call-side-metadata {
    display: grid;
    gap: 10px;
}

.sitestaffr-new-call-side-row {
    display: grid;
    gap: 2px;
    justify-items: end;
}

.sitestaffr-new-call-side-label {
    font-size: 11px;
    font-weight: 700;
    color: #5f6f76;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sitestaffr-new-call-side-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    font-size: 13px;
    color: #1d2327;
    line-height: 1.4;
}

.sitestaffr-new-call-side-value .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #5f6f76;
}

/* .sitestaffr-summary-title base flexbox moved to ICON + TEXT VERTICAL ALIGNMENT section above */
.sitestaffr-summary-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sitestaffr-summary-title .dashicons {
    font-size: 16px;
    color: #646970;
}

.sitestaffr-ai-summary-text {
    font-size: 14px;
    line-height: 1.75;
    color: #1d2327;
    white-space: normal;
}

.sitestaffr-ai-summary-text > :first-child {
    margin-top: 0;
}

.sitestaffr-ai-summary-text > :last-child {
    margin-bottom: 0;
}

.sitestaffr-ai-summary-text ul {
    margin: 10px 0 14px 22px;
    padding: 0;
    list-style: disc;
}

.sitestaffr-ai-summary-text li {
    margin: 0 0 6px;
    padding: 0;
}

/* Actions - v0.10.65: Reverted to simple right-aligned link */
.sitestaffr-new-call-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.sitestaffr-new-call-view-link {
    color: #6b7b86;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.88;
}

.sitestaffr-new-call-view-link:hover {
    color: #218838;
    text-decoration: underline;
    opacity: 1;
}

/* Empty State */
.sitestaffr-new-calls-empty {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.sitestaffr-new-calls-empty .dashicons {
    font-size: 54px;
    width: 54px;
    height: 54px;
    color: #28a745;
    margin-bottom: 20px;
}

.sitestaffr-new-calls-empty p {
    font-size: 19px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.sitestaffr-empty-subtitle {
    font-size: 14px;
    color: #6c757d;
}

/* Mobile Responsive */
@media screen and (max-width: 782px) {
    .sitestaffr-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sitestaffr-stats-grid {
        grid-template-columns: 1fr;
    }

    /* Sidebar buttons remain full width on mobile */
    .sitestaffr-sidebar-actions {
        padding: 8px;
    }

    .sitestaffr-sidebar-button {
        padding: 12px 14px;
    }

    /* Recent Calls Widget - Mobile: center header, move View All below cards */
    .sitestaffr-recent-calls-widget {
        display: flex;
        flex-direction: column;
    }

    .sitestaffr-recent-calls-widget .sitestaffr-widget-header .sitestaffr-view-all-link {
        display: none;
    }

    .sitestaffr-recent-calls-widget .sitestaffr-calls-list {
        order: 1;
    }

    .sitestaffr-recent-calls-widget .sitestaffr-view-all-link-mobile {
        display: flex !important;
        order: 2;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        padding: 10px 20px 14px;
        color: #2271b1;
        text-decoration: none;
        font-size: 14px;
    }

    .sitestaffr-recent-calls-widget .sitestaffr-call-item {
        padding: 10px 16px;
    }

    .sitestaffr-carousel-nav {
        width: 28px;
        height: 28px;
        top: auto;
        bottom: -30px;
    }

    .sitestaffr-carousel-nav .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
        line-height: 16px;
    }

    .sitestaffr-carousel-prev {
        right: 46px;
        left: auto;
    }

    .sitestaffr-carousel-next {
        right: 8px;
    }

    .sitestaffr-new-call-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sitestaffr-new-call-side {
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.28);
        padding-left: 0;
        padding-top: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        text-align: left;
    }

    .sitestaffr-new-call-side-metadata {
        flex: 1;
        min-width: 0;
        padding-left: 10px;
    }

    .sitestaffr-new-call-side-row {
        justify-items: start;
    }

    .sitestaffr-new-call-side-value {
        justify-content: flex-start;
    }

    .sitestaffr-new-call-actions {
        flex: 1;
        min-width: 0;
        margin-top: 0;
        border-top: 0;
        padding-top: 0;
        border-left: 1px solid rgba(148, 163, 184, 0.28);
        padding-left: 10px;
    }

    .sitestaffr-new-call-card {
        padding: 0;
    }
}

/* ==========================================================================
   AI Voice Agent Section (v0.12.29)
   ========================================================================== */

.sitestaffr-ai-voice-container {
    max-width: 1200px;
    margin: 0 auto;
}

#sitestaffr-voice-select {
    margin-bottom: 20px;
}

/* Wrapper for arrows + card (v0.12.30 - centered) */
.sitestaffr-voice-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    max-width: 100%;
}

/* Fixed-height voice display card (v0.12.30 - center alignment) */
.sitestaffr-voice-display {
    flex: 0 1 auto; /* Don't force growth, allow natural size */
    max-width: 800px; /* Constrain width for centering */
    min-width: 800px;
    min-height: 200px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    display: flex;
    gap: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    align-items: stretch; /* Avatar must stretch full height */
    overflow: hidden;
}

/* Image container - left side (150px width, full height) - FILLS ENTIRE HEIGHT (v0.12.30) */
.sitestaffr-voice-image {
    flex-shrink: 0;
    width: 150px;
    min-height: 400px; /* Ensure larger portrait display */
    align-self: stretch; /* STRETCH to fill full card height */
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch; /* Allow img to stretch */
}

/* Avatar image styling - FILLS ENTIRE HEIGHT (v0.12.30) */
.sitestaffr-voice-image img {
    width: 100%;
    height: 100%; /* Fill full height */
    min-height: 100%; /* Ensure no white space at bottom */
    object-fit: cover; /* Cover entire area */
    object-position: center; /* Center the image */
    display: block;
}

/* Fallback dashicons if image fails to load */
.sitestaffr-voice-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #646970;
}

/* Voice details - right side (v0.12.29 - added padding since removed from card) */
.sitestaffr-voice-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
}

/* Voice Navigation Arrows - Outside card (v0.12.28) */
.sitestaffr-voice-nav {
    background: transparent;
    border: none;
    color: #2271b1;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
    border-radius: 4px;
}

.sitestaffr-voice-nav:hover {
    opacity: 1;
    background: rgba(34, 113, 177, 0.08);
    color: #135e96;
}

.sitestaffr-voice-nav:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.sitestaffr-voice-nav .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* Voice header row - name + badge */
.sitestaffr-voice-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sitestaffr-voice-name {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
}

/* Voice category badge */
.sitestaffr-voice-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recommended badge - gold */
.sitestaffr-voice-badge:contains("Recommended"),
.sitestaffr-voice-badge:contains("⭐") {
    background: rgba(240, 180, 41, 0.15);
    color: #856404;
}

/* Standard badge - gray */
.sitestaffr-voice-badge:contains("Standard") {
    background: rgba(100, 105, 112, 0.1);
    color: #646970;
}

/* Expressive badge - purple */
.sitestaffr-voice-badge:contains("Expressive") {
    background: rgba(142, 68, 173, 0.15);
    color: #6a1b9a;
}

/* Voice tagline */
.sitestaffr-voice-tagline {
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
    margin: 0;
}

/* Fixed-height description wrapper - Prevents layout shift (v0.12.28) */
.sitestaffr-voice-description-wrapper {
    min-height: 48px;
    overflow: hidden;
}

/* Voice description */
.sitestaffr-voice-description {
    font-size: 13px;
    line-height: 1.6;
    color: #646970;
    margin: 0;
}

/* Preview button */
.sitestaffr-voice-preview-btn {
    align-self: flex-start;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sitestaffr-voice-preview-btn .dashicons {
    font-size: 16px;
}

/* Mobile responsive (v0.12.29) */
@media screen and (max-width: 782px) {
    /* Stack wrapper vertically on mobile */
    .sitestaffr-voice-selector-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    /* Arrows on top and bottom on mobile */
    .sitestaffr-voice-nav {
        width: 100%;
        padding: 12px;
    }

    .sitestaffr-voice-display {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        min-height: auto;
    }

    /* Avatar full-width on mobile */
    .sitestaffr-voice-image {
        width: 100%;
        height: 150px;
    }

    .sitestaffr-voice-details {
        padding: 20px;
    }

    .sitestaffr-voice-header {
        flex-direction: column;
        gap: 6px;
    }

    .sitestaffr-voice-preview-btn {
        align-self: center;
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Settings Page Refresh (v0.14.105)
   ========================================================================== */

.sitestaffr-settings .dashicons.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.sitestaffr-settings .sitestaffr-settings-form {
    margin-top: 12px;
}

.sitestaffr-settings .sitestaffr-settings-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.sitestaffr-settings .sitestaffr-settings-card {
    background: #fff;
    border: 1px solid #e8e2d8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sitestaffr-settings .sitestaffr-settings-card-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #f0ebe0;
    background: #FAF8F4;
}

.sitestaffr-settings .sitestaffr-settings-card-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    color: #1d2327;
}

.sitestaffr-settings .sitestaffr-settings-card-header .dashicons {
    color: #00838f;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.sitestaffr-settings .sitestaffr-settings-card-body {
    padding: 12px 18px 14px;
}

.sitestaffr-settings .sitestaffr-settings-card-body > p:first-child {
    margin-top: 0;
    margin-bottom: 10px;
    color: #50575e;
}

.sitestaffr-settings .sitestaffr-settings-card-voice .sitestaffr-settings-card-body > p:first-child {
    margin-bottom: 8px;
}

.sitestaffr-settings .sitestaffr-tooltip {
    max-width: 320px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Business Information: 65/35 split */
.sitestaffr-settings .sitestaffr-business-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 14px;
    align-items: stretch;
}

.sitestaffr-settings .sitestaffr-business-main {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 8px;
    min-height: 100%;
}

.sitestaffr-settings .sitestaffr-business-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.sitestaffr-settings .sitestaffr-business-label {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #1d2327;
    padding-top: 8px;
}

.sitestaffr-optional-label {
    font-weight: 400;
    color: #757575;
    font-size: 12px;
}

.sitestaffr-settings .sitestaffr-business-label .sitestaffr-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
    vertical-align: middle;
    transform: translateY(-1px);
    line-height: 1;
}

.sitestaffr-settings .sitestaffr-business-label .sitestaffr-tooltip-trigger .dashicons {
    display: block;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.sitestaffr-settings .sitestaffr-business-control {
    min-width: 0;
    height: 100% !important;
}

.sitestaffr-settings .sitestaffr-business-row-business_context .sitestaffr-business-control textarea {
    min-height: 210px;
    height: 100%;
    resize: vertical;
    width: 100%;
}

.sitestaffr-settings .sitestaffr-business-row-business_context {
    height: 100%;
}

.sitestaffr-settings .sitestaffr-business-row-business_context .sitestaffr-business-control {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sitestaffr-settings #sitestaffr-business-context-counter,
.sitestaffr-settings #sitestaffr-custom-greeting-counter {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.sitestaffr-settings #sitestaffr-business-context-counter.warning,
.sitestaffr-settings #sitestaffr-custom-greeting-counter.warning {
    color: #d97706;
}

/* Generate card — sits in the label column below "Business Description" */
.sitestaffr-settings .sitestaffr-generate-card {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #d5e2ec;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.sitestaffr-settings .sitestaffr-generate-card #btn-settings-generate-description {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    justify-content: center;
    min-height: 34px;
    border-color: #bcd6ea;
    color: #0d5e99;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(17, 74, 122, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.sitestaffr-settings .sitestaffr-generate-card #btn-settings-generate-description:hover {
    border-color: #8db9d8;
    color: #094f83;
    background: #f6fbff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(17, 74, 122, 0.12);
}

.sitestaffr-settings .sitestaffr-generate-card #btn-settings-generate-description.is-pressing {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px rgba(17, 74, 122, 0.12);
}

.sitestaffr-settings .sitestaffr-generate-card #btn-settings-generate-description:disabled {
    color: #7a8692;
    border-color: #d3dee8;
    background: #f7fafc;
    box-shadow: none;
}

.sitestaffr-settings .sitestaffr-generate-card .sitestaffr-gen-button-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 124px;
    height: 124px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.sitestaffr-settings .sitestaffr-generate-card #btn-settings-generate-description.is-pressing .sitestaffr-gen-button-ripple {
    animation: sitestaffr-gen-ripple 460ms ease-out;
}

@keyframes sitestaffr-gen-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0.24;
        background: rgba(16, 114, 186, 0.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        background: rgba(16, 114, 186, 0.05);
    }
}

.sitestaffr-settings .sitestaffr-generate-card #btn-settings-generate-description .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.sitestaffr-settings .sitestaffr-gen-status {
    display: none;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    text-align: left;
}

.sitestaffr-settings .sitestaffr-gen-status.sitestaffr-gen-success {
    display: block;
    color: #0d6b48;
}

.sitestaffr-settings .sitestaffr-gen-status.sitestaffr-gen-error {
    display: block;
    color: #8a1e30;
}

.sitestaffr-settings .sitestaffr-gen-status.sitestaffr-gen-loading {
    display: block;
    color: #2f5f86;
}

@keyframes sitestaffr-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sitestaffr-spin {
    animation: sitestaffr-spin 1s linear infinite;
}

/* ── Generate Description: Indeterminate Progress Bar ── */
.sitestaffr-gen-progress {
	display: none;
	height: 3px;
	margin-top: 8px;
	background: #e5e7eb;
	border-radius: 2px;
	overflow: hidden;
}

.sitestaffr-gen-progress.is-active {
	display: block;
}

.sitestaffr-gen-progress-bar {
	width: 30%;
	height: 100%;
	background: #1FB6CC;
	border-radius: 2px;
	animation: sitestaffr-gen-slide 1.4s ease-in-out infinite;
}

@keyframes sitestaffr-gen-slide {
	0% { transform: translateX(-100%); }
	50% { transform: translateX(233%); }
	100% { transform: translateX(-100%); }
}

/* ── Generate Description: Success Checkmark ── */
.sitestaffr-gen-checkmark {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	gap: 4px;
	animation: sitestaffr-gen-check-in 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.sitestaffr-gen-checkmark svg {
	width: 16px;
	height: 16px;
	color: #10b981;
}

@keyframes sitestaffr-gen-check-in {
	0% { transform: scale(0); opacity: 0; }
	70% { transform: scale(1.15); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

.sitestaffr-settings .sitestaffr-business-guidance-trigger {
    display: block;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1a76be;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.sitestaffr-settings .sitestaffr-business-guidance-trigger:hover,
.sitestaffr-settings .sitestaffr-business-guidance-trigger:focus {
    color: #0b5f9e;
}

.sitestaffr-modal-open {
    overflow: hidden;
}

.sitestaffr-business-guidance-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 160000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sitestaffr-business-guidance-modal.is-open {
    display: flex;
}

.sitestaffr-business-guidance-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.sitestaffr-business-guidance-dialog {
    position: relative;
    width: min(620px, calc(100vw - 48px));
    max-height: calc(100vh - 72px);
    overflow: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid #cfe3ef;
    border-radius: 12px;
    padding: 28px 30px 24px;
    box-shadow: 0 24px 56px rgba(2, 12, 27, 0.24);
}

.sitestaffr-business-guidance-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.sitestaffr-business-guidance-close:hover,
.sitestaffr-business-guidance-close:focus {
    color: #1f2937;
}

.sitestaffr-business-guidance-dialog h3 {
    margin: 0 30px 12px 0;
    font-size: 20px;
    line-height: 1.25;
    color: #0a7f91;
}

.sitestaffr-business-guidance-dialog ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitestaffr-business-guidance-dialog li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 20px;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.sitestaffr-business-guidance-dialog li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14a3b8;
    box-shadow: 0 0 0 3px rgba(20, 163, 184, 0.16);
}

.sitestaffr-business-guidance-dialog li:last-child {
    margin-bottom: 0;
}

.sitestaffr-settings .sitestaffr-business-hours-panel {
    background: #f8fbfd;
    border: 1px solid #d7e2eb;
    border-radius: 8px;
    padding: 12px;
}

.sitestaffr-settings .sitestaffr-business-hours-panel h3 {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.3;
}

.sitestaffr-settings .sitestaffr-business-hours-panel h3 .dashicons {
    color: #00838f;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    transform: translateY(-1px);
}

.sitestaffr-settings .sitestaffr-business-hours-panel h3 .sitestaffr-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
    line-height: 1;
}

.sitestaffr-settings .sitestaffr-business-hours-panel .sitestaffr-hours-editor {
    max-width: none;
}

.sitestaffr-settings .form-table {
    margin-top: 0;
}

.sitestaffr-settings .form-table th {
    width: 200px;
    padding: 9px 10px 8px 0;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.4;
}

.sitestaffr-settings .form-table td {
    padding: 5px 0 8px;
}

.sitestaffr-settings .form-table .description {
    margin-top: 8px;
    color: #646970;
}

.sitestaffr-settings input[type="text"],
.sitestaffr-settings input[type="tel"],
.sitestaffr-settings input[type="email"],
.sitestaffr-settings textarea,
.sitestaffr-settings select {
    font-size: 14px;
}

.sitestaffr-settings input.regular-text,
.sitestaffr-settings textarea.large-text,
.sitestaffr-settings #sitestaffr-voice-select {
    max-width: 520px;
    width: 100%;
}

.sitestaffr-settings .sitestaffr-settings-save-wrap {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.sitestaffr-settings .sitestaffr-settings-save-wrap .button-primary {
    min-width: 140px;
    font-weight: 600;
}

/* Business hours editor */
.sitestaffr-settings .sitestaffr-hours-editor {
    max-width: none;
}

.sitestaffr-settings .sitestaffr-hours-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.sitestaffr-settings .sitestaffr-hours-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    column-gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.sitestaffr-settings .sitestaffr-hours-option:hover {
    border-color: #7fb7de;
}

.sitestaffr-settings .sitestaffr-hours-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    border: 1px solid #8da2b5;
    border-radius: 50%;
    background: #fff;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.sitestaffr-settings .sitestaffr-hours-option input[type="radio"]::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sitestaffr-settings .sitestaffr-hours-option input[type="radio"]::before {
    content: none !important;
    display: none !important;
}

.sitestaffr-settings .sitestaffr-hours-option input[type="radio"]:checked::before {
    content: none !important;
    display: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.sitestaffr-settings .sitestaffr-hours-option input[type="radio"]:checked {
    border-color: #2271b1;
}

.sitestaffr-settings .sitestaffr-hours-option input[type="radio"]:checked::after {
    background: #2271b1;
}

.sitestaffr-settings .sitestaffr-hours-option input[type="radio"]:focus-visible {
    outline: 2px solid #85c6ff;
    outline-offset: 1px;
}

.sitestaffr-settings .sitestaffr-hours-option .option-content strong {
    display: block;
    margin-bottom: 4px;
}

.sitestaffr-settings .sitestaffr-hours-option .option-content p {
    margin: 0;
    color: #646970;
    font-size: 13px;
}

.sitestaffr-settings .sitestaffr-schedule-builder {
    margin-top: 10px;
    padding: 10px;
    background: #f7f9fa;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.sitestaffr-settings .sitestaffr-schedule-day {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e7eaed;
}

.sitestaffr-settings .sitestaffr-schedule-day:last-child {
    border-bottom: none;
}

.sitestaffr-settings .sitestaffr-day-name {
    font-weight: 600;
    width: 92px;
    flex: 0 0 92px;
    color: #1d2327;
}

.sitestaffr-settings .sitestaffr-day-controls {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
}

.sitestaffr-settings .sitestaffr-day-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 72px;
}

.sitestaffr-settings .sitestaffr-day-toggle input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.sitestaffr-settings .sitestaffr-day-toggle .toggle-label {
    display: inline-block;
    min-width: 44px;
}

.sitestaffr-settings .sitestaffr-time-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.sitestaffr-settings .sitestaffr-time-select {
    width: auto;
    min-width: 86px;
    max-width: 100%;
    flex: 0 0 auto;
    padding: 4px 26px 4px 8px;
}

.sitestaffr-settings .sitestaffr-time-separator {
    color: #646970;
    font-size: 13px;
    margin: 0 2px;
}

/* Voice selector polish */
.sitestaffr-settings .sitestaffr-ai-voice-container {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.sitestaffr-settings .sitestaffr-settings-voice-field {
    display: grid;
    gap: 4px;
}

.sitestaffr-settings .sitestaffr-settings-voice-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}

.sitestaffr-settings .sitestaffr-voice-select-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sitestaffr-settings .sitestaffr-voice-selector-wrapper {
    position: relative;
    width: 100%;
    justify-content: stretch;
    margin-top: 0;
}

.sitestaffr-settings .sitestaffr-voice-display {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 185px;
    display: grid;
    grid-template-columns: minmax(190px, 25%) minmax(0, 1fr) 220px;
    border: 1px solid #d8dee3;
    border-radius: 8px;
    box-shadow: none;
}

.sitestaffr-settings .sitestaffr-voice-image {
    position: relative;
    width: 100%;
    min-height: 185px;
    background: linear-gradient(180deg, #f3f7fa 0%, #e9f1f7 100%);
    overflow: hidden;
}

.sitestaffr-settings .sitestaffr-voice-details {
    gap: 14px;
    padding: 22px 30px 22px;
    justify-content: flex-start;
}

.sitestaffr-settings .sitestaffr-voice-name {
    font-size: 25px;
    line-height: 1.1;
}

.sitestaffr-settings .sitestaffr-voice-tagline {
    font-size: 15px;
    margin: 0;
}

.sitestaffr-settings .sitestaffr-voice-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.sitestaffr-settings .sitestaffr-voice-description-wrapper {
    min-height: 0;
}

.sitestaffr-settings .sitestaffr-voice-preview-column {
    border-left: 1px solid #e7ecf0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
}

.sitestaffr-settings .sitestaffr-voice-preview-btn--icon {
    width: 176px !important;
    min-height: 176px !important;
    height: 176px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
    align-self: center !important;
    border: 7px solid rgba(31, 182, 204, 0.24) !important;
    background: transparent !important;
    color: rgba(15, 111, 128, 0.24) !important;
    box-shadow: none !important;
}

.sitestaffr-settings .sitestaffr-voice-preview-btn--icon:hover,
.sitestaffr-settings .sitestaffr-voice-preview-btn--icon:focus {
    background: transparent !important;
    border-color: rgba(31, 182, 204, 0.36) !important;
    color: rgba(12, 97, 112, 0.36) !important;
}

.sitestaffr-settings .sitestaffr-voice-preview-btn--icon .dashicons {
    font-size: 92px;
    width: 92px;
    height: 92px;
}

.sitestaffr-settings .sitestaffr-voice-preview-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
    line-height: 1.2;
    text-align: center;
}

.sitestaffr-settings .sitestaffr-voice-preview-btn--icon.is-playing {
    background: transparent !important;
    border-color: rgba(31, 182, 204, 0.48) !important;
}

.sitestaffr-settings .sitestaffr-voice-preview-caption {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: #0f6f80;
    text-align: center;
}

.sitestaffr-settings .sitestaffr-voice-best-for {
    margin: 2px 0 0;
    padding: 10px 12px;
    border: 1px solid #d9e6ee;
    border-radius: 8px;
    background: #f8fcff;
}

.sitestaffr-settings .sitestaffr-voice-best-for-label {
    font-size: 12px;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    font-weight: 700;
    color: #3a6478;
    margin-bottom: 6px;
}

.sitestaffr-settings .sitestaffr-voice-best-for-values {
    font-size: 13px;
    line-height: 1.45;
    color: #324451;
}

.sitestaffr-settings .sitestaffr-voice-best-for-separator {
    color: #7f95a2;
    margin: 0 4px;
}

.sitestaffr-settings .sitestaffr-voice-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d0d6dc;
    background: #fff;
    opacity: 1;
    color: #2271b1;
}

.sitestaffr-settings .sitestaffr-voice-prev {
    left: 10px;
}

.sitestaffr-settings .sitestaffr-voice-next {
    right: 10px;
}

.sitestaffr-settings .sitestaffr-voice-nav .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sitestaffr-settings .sitestaffr-voice-save-status {
    min-height: 18px;
    margin: 0 0 2px;
    font-size: 12px;
    color: #646970;
}

.sitestaffr-settings .sitestaffr-voice-badge {
    border-radius: 999px;
    padding: 4px 10px;
    line-height: 1.1;
}

.sitestaffr-settings .sitestaffr-voice-badge-standard {
    background: rgba(100, 105, 112, 0.14);
    color: #4f555b;
}

.sitestaffr-settings .sitestaffr-voice-badge-expressive {
    background: rgba(111, 66, 193, 0.14);
    color: #5933a8;
}

.sitestaffr-settings .sitestaffr-voice-badge-recommended {
    background: rgba(231, 180, 35, 0.2);
    color: #7a5c00;
}

.sitestaffr-settings .sitestaffr-voice-avatar-strip {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
}

.sitestaffr-settings .sitestaffr-voice-avatar-option {
    border: 1px solid #d4dde5;
    background: #fff;
    border-radius: 8px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.sitestaffr-settings .sitestaffr-voice-avatar-option img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.sitestaffr-settings .sitestaffr-voice-avatar-name {
    font-size: 11px;
    line-height: 1.1;
    color: #2c3338;
}

.sitestaffr-settings .sitestaffr-voice-avatar-option:hover {
    border-color: #8ec7dd;
    background: #f3fbff;
}

.sitestaffr-settings .sitestaffr-voice-avatar-option.is-active {
    border-color: #1fb6cc;
    box-shadow: inset 0 0 0 1px #1fb6cc;
    background: #edf9fc;
}

.sitestaffr-settings .sitestaffr-voice-save-status.is-saving {
    color: #2271b1;
}

.sitestaffr-settings .sitestaffr-voice-save-status.is-success {
    color: #2f7f3f;
}

.sitestaffr-settings .sitestaffr-voice-save-status.is-error {
    color: #b32d2e;
}

/* --- Voice locking (plan-gated) --- */

.sitestaffr-settings .sitestaffr-voice-display.is-voice-locked img {
    opacity: 0.45;
    filter: grayscale(60%);
    transition: opacity 0.2s, filter 0.2s;
}

.sitestaffr-settings .sitestaffr-voice-save-status.is-locked {
    color: #7a5b00;
    font-size: 13px;
}

.sitestaffr-settings .sitestaffr-voice-save-status.is-locked .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 0.75;
    vertical-align: middle;
    margin-right: 3px;
    color: #7a5b00;
}

.sitestaffr-settings .sitestaffr-voice-save-status.is-locked a {
    color: #2271b1;
    text-decoration: underline;
}

.sitestaffr-settings .sitestaffr-voice-avatar-option.is-locked {
    opacity: 0.45;
    position: relative;
}

.sitestaffr-settings .sitestaffr-voice-avatar-option.is-locked::after {
    content: "\f160";
    font-family: dashicons;
    font-size: 11px;
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: #7a5b00;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
}

.sitestaffr-settings .sitestaffr-voice-avatar-option.is-locked:hover {
    opacity: 0.65;
}

/* Widget page locked radio buttons */
.voice-option.is-locked {
    opacity: 0.6;
}

.voice-option.is-locked label {
    color: #8c8f94;
}

.voice-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #7a5b00;
    margin-left: 6px;
}

.voice-lock-badge .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    color: #7a5b00;
}

.voice-lock-badge a {
    color: #2271b1;
    text-decoration: underline;
    font-size: 12px;
}

/* Email + dev cards */
.sitestaffr-settings .sitestaffr-settings-card-email {
    margin-top: 14px;
}

.sitestaffr-settings .sitestaffr-email-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
}

.sitestaffr-settings .sitestaffr-email-primary {
    display: grid;
    gap: 12px;
}

.sitestaffr-settings .sitestaffr-email-intro {
    margin: 0 0 12px 0;
    color: #50575e;
}

.sitestaffr-settings .sitestaffr-smtp-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f9f6f1;
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b5e50;
}

.sitestaffr-settings .sitestaffr-smtp-tip > .dashicons {
    color: #a0937e;
    flex-shrink: 0;
    margin-top: 1px;
}

.sitestaffr-settings .sitestaffr-smtp-tip strong {
    display: block;
    margin-bottom: 2px;
    color: #4a3f35;
}

.sitestaffr-settings .sitestaffr-smtp-tip p {
    margin: 0;
}

.sitestaffr-settings .sitestaffr-email-row {
    padding-top: 12px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.sitestaffr-settings .sitestaffr-email-row-label {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #1d2327;
    padding-top: 8px;
}

.sitestaffr-settings .sitestaffr-email-row-label .sitestaffr-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
    vertical-align: middle;
    transform: translateY(-1px);
    line-height: 1;
}

.sitestaffr-settings .sitestaffr-email-row-label .sitestaffr-tooltip-trigger .dashicons {
    display: block;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.sitestaffr-settings .sitestaffr-email-row-control {
    min-width: 0;
}

.sitestaffr-settings .sitestaffr-notification-cc-input {
    width: 100%;
    max-width: none;
}

/* Keep CC + Custom Greeting placeholders equally subtle (lighter than input value text). */
.sitestaffr-settings .sitestaffr-notification-cc-input::placeholder,
.sitestaffr-settings .sitestaffr-custom-greeting-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.sitestaffr-settings .sitestaffr-email-row-control .description {
    margin: 6px 0 0;
    color: #646970;
}

.sitestaffr-settings .sitestaffr-email-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

.sitestaffr-settings .sitestaffr-email-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    margin: 2px 0 0;
    width: 16px;
    height: 16px;
}

.sitestaffr-settings .sitestaffr-notification-email-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.sitestaffr-settings .sitestaffr-notification-email-row .regular-text {
    width: 100%;
    max-width: none;
}

.sitestaffr-settings .sitestaffr-notification-email-row .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.sitestaffr-settings .sitestaffr-email-test-panel .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sitestaffr-settings .sitestaffr-email-test-panel .button .dashicons {
    margin-right: 0 !important;
    margin-top: 0;
    line-height: 1;
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.sitestaffr-settings .sitestaffr-email-test-panel {
    border: 1px solid #d9e4ec;
    border-radius: 8px;
    background: #f8fbfd;
    padding: 14px;
}

.sitestaffr-settings .sitestaffr-email-test-panel h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.3;
}

.sitestaffr-settings .sitestaffr-email-test-panel p {
    margin: 0 0 12px;
    color: #4d5863;
}

.sitestaffr-settings .sitestaffr-email-test-panel .sitestaffr-inline-status {
    margin-left: 0;
    margin-top: 10px;
}

.sitestaffr-settings .sitestaffr-settings-subsection {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf0f2;
}

.sitestaffr-settings .sitestaffr-settings-subsection h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.sitestaffr-settings .sitestaffr-inline-status {
    display: inline-block;
    margin-left: 10px;
}

@media screen and (max-width: 900px) {
    .sitestaffr-settings .sitestaffr-form-table th,
    .sitestaffr-settings .form-table th {
        width: auto;
    }

    .sitestaffr-settings .sitestaffr-business-grid {
        grid-template-columns: 1fr;
    }

    .sitestaffr-settings .sitestaffr-business-main {
        grid-template-rows: auto auto auto;
    }

    .sitestaffr-settings .sitestaffr-business-row-business_context .sitestaffr-business-control textarea {
        min-height: 140px;
    }

    .sitestaffr-settings .sitestaffr-voice-display {
        grid-template-columns: minmax(180px, 32%) minmax(0, 1fr) 170px;
    }

    .sitestaffr-settings .sitestaffr-email-layout {
        grid-template-columns: 1fr;
    }

    .sitestaffr-settings .sitestaffr-email-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .sitestaffr-settings .sitestaffr-email-row-label {
        padding-top: 0;
    }
}

@media screen and (max-width: 782px) {
    .sitestaffr-settings .sitestaffr-settings-card-header {
        padding: 0 14px;
    }

    .sitestaffr-settings .sitestaffr-settings-card-body {
        padding: 14px;
    }

    .sitestaffr-settings .sitestaffr-voice-name {
        font-size: 21px;
    }

    .sitestaffr-settings .sitestaffr-voice-details {
        padding: 14px 16px 16px;
        gap: 10px;
    }

    .sitestaffr-settings .sitestaffr-voice-toolbar-controls {
        width: 100%;
    }

    .sitestaffr-settings .sitestaffr-business-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .sitestaffr-settings .sitestaffr-business-label {
        padding-top: 0;
    }

    .sitestaffr-settings .sitestaffr-voice-image {
        width: 100%;
        min-height: 400px;
    }

    .sitestaffr-settings .sitestaffr-voice-display {
        grid-template-columns: 1fr;
    }

    .sitestaffr-settings .sitestaffr-voice-preview-column {
        border-left: 0;
        border-top: 1px solid #e7ecf0;
        padding: 10px 0 12px;
    }

    .sitestaffr-settings .sitestaffr-voice-preview-btn--icon {
        width: 120px !important;
        min-height: 120px !important;
        height: 120px !important;
        flex-direction: row !important;
        border-width: 4px !important;
    }

    .sitestaffr-settings .sitestaffr-voice-preview-btn--icon .dashicons {
        font-size: 64px;
        width: 64px;
        height: 64px;
    }

    .sitestaffr-settings .sitestaffr-voice-preview-caption {
        font-size: 14px;
    }

    .sitestaffr-settings .sitestaffr-voice-avatar-strip {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .sitestaffr-settings .sitestaffr-day-controls {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        width: auto;
    }
}

.sitestaffr-settings .sitestaffr-custom-greeting-locked {
    border: 1px solid #d7dde3;
    border-radius: 8px;
    background: #f7fafc;
    padding: 12px;
}

.sitestaffr-settings .sitestaffr-custom-greeting-locked p {
    margin: 0;
}

.sitestaffr-settings .sitestaffr-custom-greeting-locked .description {
    margin: 1rem 0;
}

.sitestaffr-settings .sitestaffr-custom-greeting-locked .dashicons {
    margin-right: 6px;
    color: #7a5b00;
}

.sitestaffr-settings .sitestaffr-custom-greeting-tone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.sitestaffr-settings .sitestaffr-custom-greeting-tone-label {
    display: inline-block;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.sitestaffr-settings .sitestaffr-custom-greeting-tone-select {
    min-width: 240px;
}

.sitestaffr-settings .sitestaffr-greeting-tone-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sitestaffr-settings .sitestaffr-greeting-tone-preview-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
