/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #F5D547;
    --yellow-light: #FFF9E6;
    --yellow-dark: #E5C537;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --background: #FFFFFF;
    --gray-100: #F7FAFC;
    --gray-200: #EDF2F7;
    --gray-300: #E2E8F0;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --page-max-width: 1400px;
    --page-gutter: clamp(16px, 5vw, 48px);
    --panel-radius: clamp(18px, 3vw, 28px);
    --card-radius: clamp(12px, 2vw, 20px);
    --stack-gap: clamp(20px, 4vw, 32px);
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: clamp(15px, 1.5vw, 16px);
    min-height: 100vh;
    min-width: 320px;
    overflow-x: hidden;
}

.container {
    width: min(100%, var(--page-max-width));
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-text {
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.navbar ~ .mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    padding: 32px var(--page-gutter) 32px;
    z-index: 90;
    max-height: calc(100vh - 72px - 140px);
    overflow-y: auto;
}

.navbar ~ .mobile-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 12px;
}

.navbar ~ .mobile-menu a:last-of-type:not(.btn-primary):not(.btn-secondary) {
    border-bottom: none;
}

.navbar ~ .mobile-menu .btn-primary,
.navbar ~ .mobile-menu .btn-secondary {
    width: 100%;
    border-bottom: none;
    margin-top: 8px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-yellow);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid var(--primary-yellow);
}

.btn-primary:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid var(--border-color);
}

.studio-session-banner {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 10px 16px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.studio-session-banner[data-variant="error"] {
    border-color: rgba(255, 92, 92, 0.3);
    background: rgba(255, 92, 92, 0.12);
    color: #7a1f1f;
}

.btn-secondary:hover {
    border-color: var(--primary-yellow);
    background: var(--yellow-light);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-yellow);
    background: var(--yellow-light);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: clamp(48px, 10vw, 120px) 0 clamp(64px, 12vw, 140px);
    background: linear-gradient(135deg, var(--yellow-light) 0%, var(--background) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(45, 55, 72, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.6vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-status-list {
    list-style: none;
    margin: 0 auto 40px;
    padding: 0;
    max-width: 620px;
    display: grid;
    gap: 10px;
}

.hero-status-list li {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    width: min(100%, 460px);
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    flex: 1 1 200px;
}

.platform-logos {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-badge {
    background: var(--background);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(20px, 4vw, 32px);
}

.feature-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: clamp(24px, 4vw, 32px);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-yellow);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Pricing Section */
.pricing {
    padding: clamp(72px, 12vw, 120px) 0;
    background: var(--gray-100);
}

.pricing-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 48px;
    max-width: 600px;
    flex-wrap: wrap;
}

.pricing-copy {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
    text-align: center;
}

.billing-toggle {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 999px !important;
    padding: 4px;
    gap: 4px;
    background: var(--background);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.toggle-option {
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-option.active {
    background: var(--primary-yellow);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 360px));
    justify-content: center;
    gap: clamp(24px, 4vw, 36px);
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--panel-radius);
    padding: clamp(28px, 4vw, 44px);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.pricing-card-featured {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-lg);
}


.pricing-card[data-plan-card="free"] {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(148, 163, 184, 0.45);
}

.pricing-card[data-plan-card="free"] .pricing-header {
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.pricing-card[data-plan-card="free"] .pricing-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.pricing-card[data-plan-card="free"] .pricing-note::before {
    content: "✓";
    font-weight: 700;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-yellow);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.price {
    margin-bottom: 16px;
}

.price-amount {
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

.pricing-note {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--background);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
    text-align: left;
}

.about-card {
    border: 1px solid rgba(45, 55, 72, 0.12);
    border-radius: 24px;
    padding: 24px;
    background: rgba(245, 213, 71, 0.08);
}

.about-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.about-card p {
    margin: 0 0 12px;
    color: var(--text-primary);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-footnote {
    margin-top: 28px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-top: 64px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--gray-100);
    border-top: 1px solid var(--border-color);
    padding: clamp(48px, 10vw, 72px) 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(24px, 4vw, 48px);
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

/* Dashboard Experience */
body.dashboard-body {
    --dash-bg: #f8fafc;
    --dash-atmosphere: radial-gradient(circle at 15% 20%, rgba(245, 213, 71, 0.25), transparent 45%),
                      radial-gradient(circle at 80% 0%, rgba(125, 211, 252, 0.25), transparent 45%),
                      radial-gradient(circle at 60% 80%, rgba(196, 181, 253, 0.25), transparent 55%);
    --dash-atmosphere-opacity: 1;
    --dash-text-primary: #0f172a;
    --dash-text-secondary: #475467;
    --dash-text-muted: #94a3b8;
    --dash-card-bg: #ffffff;
    --dash-card-border: rgba(15, 23, 42, 0.08);
    --dash-panel-bg: rgba(255, 255, 255, 0.95);
    --dash-panel-border: rgba(15, 23, 42, 0.08);
    --dash-panel-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    --dash-sidebar-bg: rgba(255, 255, 255, 0.92);
    --dash-sidebar-border: rgba(15, 23, 42, 0.08);
    --dash-sidebar-text: #0f172a;
    --dash-sidebar-muted: rgba(71, 84, 103, 0.8);
    --dash-chip-bg: rgba(245, 213, 71, 0.2);
    --dash-chip-color: #854d0e;
    --dash-chip-outline-color: rgba(15, 23, 42, 0.15);
    --dash-outline-border: rgba(15, 23, 42, 0.12);
    --dash-input-bg: #ffffff;
    --dash-input-border: rgba(15, 23, 42, 0.15);
    --dash-platform-icon-bg: rgba(245, 213, 71, 0.2);
    --dash-platform-icon-color: #92400e;
    --dash-banner-bg: linear-gradient(135deg, #fff7d1, #ffffff);
    --dash-banner-border: rgba(245, 213, 71, 0.4);
    --dash-banner-title: #0f172a;
    --dash-banner-copy: #475467;
    --dash-ghost-link: #7c3aed;
    --dash-lock-overlay-bg: rgba(255, 255, 255, 0.88);
    --dash-lock-overlay-text: #0f172a;
    --dash-toast-bg: #0f172a;
    --dash-toast-border: rgba(255, 255, 255, 0.2);
    --dash-toast-text: #f8fafc;
    --dash-plan-badge-bg: rgba(15, 23, 42, 0.06);
    --dash-plan-badge-text: #0f172a;
    --dash-platform-card-hover: rgba(245, 213, 71, 0.4);
    --dash-mode-control-bg: rgba(15, 23, 42, 0.04);
    --dash-mode-control-border: rgba(15, 23, 42, 0.1);
    --dash-toast-shadow: 0 18px 30px rgba(15, 23, 42, 0.25);
    min-height: 100vh;
    color: var(--dash-text-primary);
    background-color: var(--dash-bg);
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.dashboard-body[data-theme="dark"] {
    --dash-bg: #05060f;
    --dash-atmosphere: radial-gradient(circle at 10% 20%, rgba(245, 213, 71, 0.15), transparent 40%),
                      radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.12), transparent 45%),
                      radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.2), transparent 55%);
    --dash-atmosphere-opacity: 0.9;
    --dash-text-primary: #f8fafc;
    --dash-text-secondary: rgba(226, 232, 240, 0.8);
    --dash-text-muted: rgba(148, 163, 184, 0.8);
    --dash-card-bg: rgba(15, 23, 42, 0.85);
    --dash-card-border: rgba(148, 163, 184, 0.2);
    --dash-panel-bg: rgba(15, 23, 42, 0.7);
    --dash-panel-border: rgba(255, 255, 255, 0.08);
    --dash-panel-shadow: 0 20px 60px rgba(2, 6, 23, 0.5);
    --dash-sidebar-bg: rgba(9, 9, 18, 0.9);
    --dash-sidebar-border: rgba(255, 255, 255, 0.06);
    --dash-sidebar-text: #f8fafc;
    --dash-sidebar-muted: rgba(226, 232, 240, 0.7);
    --dash-chip-bg: rgba(245, 213, 71, 0.15);
    --dash-chip-color: #f5d547;
    --dash-chip-outline-color: rgba(248, 250, 252, 0.3);
    --dash-outline-border: rgba(148, 163, 184, 0.3);
    --dash-input-bg: rgba(15, 23, 42, 0.4);
    --dash-input-border: rgba(148, 163, 184, 0.3);
    --dash-platform-icon-bg: rgba(245, 213, 71, 0.15);
    --dash-platform-icon-color: #f5d547;
    --dash-banner-bg: rgba(15, 23, 42, 0.7);
    --dash-banner-border: rgba(255, 255, 255, 0.08);
    --dash-banner-title: #f8fafc;
    --dash-banner-copy: rgba(226, 232, 240, 0.7);
    --dash-ghost-link: rgba(248, 250, 252, 0.85);
    --dash-lock-overlay-bg: rgba(5, 6, 15, 0.75);
    --dash-lock-overlay-text: #f8fafc;
    --dash-toast-bg: rgba(15, 23, 42, 0.85);
    --dash-toast-border: rgba(248, 250, 252, 0.1);
    --dash-toast-text: #f8fafc;
    --dash-plan-badge-bg: rgba(148, 163, 184, 0.15);
    --dash-plan-badge-text: #f8fafc;
    --dash-platform-card-hover: rgba(245, 213, 71, 0.6);
    --dash-mode-control-bg: rgba(255, 255, 255, 0.04);
    --dash-mode-control-border: rgba(255, 255, 255, 0.08);
    --dash-toast-shadow: 0 18px 30px rgba(2, 6, 23, 0.8);
}

.dashboard-atmosphere {
    position: fixed;
    inset: 0;
    background: var(--dash-atmosphere);
    opacity: var(--dash-atmosphere-opacity);
    z-index: 0;
}

.dashboard-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 32px);
    min-height: 100vh;
    padding: clamp(24px, 4vw, 48px);
    width: 100%;
    box-sizing: border-box;
}

.dashboard-sidebar {
    background: var(--dash-sidebar-bg);
    backdrop-filter: blur(16px);
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-right: 1px solid var(--dash-sidebar-border);
    border-radius: var(--panel-radius);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dash-sidebar-text);
    font-size: 18px;
}

.sidebar-collapse-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
}

.sidebar-collapse-icon {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.dashboard-sidebar.is-collapsed .sidebar-collapse-icon {
    transform: rotate(-180deg);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.user-initial {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f5d547;
    color: #0f172a;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 20px;
}
.user-initial.avatar-icon {
    font-size: 26px;
}

.user-initial.avatar-image {
    overflow: hidden;
    color: transparent;
}

.user-name {
    font-weight: 600;
    color: var(--dash-sidebar-text);
}

.user-plan {
    font-size: 14px;
    color: var(--dash-sidebar-muted);
}

.user-meta-button {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    flex: 1;
    text-align: left;
}

.user-meta-button:focus-visible {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 4px;
    border-radius: 8px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 46px rgba(2, 6, 23, 0.16), 0 4px 10px rgba(2, 6, 23, 0.08);
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 256px;
    max-width: 320px;
    z-index: 3;
}

.user-dropdown.open {
    display: flex;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    top: -7px;
    left: 20px;
    transform: rotate(45deg);
    border-left: 1px solid #dbe3ef;
    border-top: 1px solid #dbe3ef;
    background: #ffffff;
}

.user-dropdown-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dash-card-border);
    margin-bottom: 4px;
}

.user-dropdown-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-initial-compact {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
}

.user-dropdown button {
    background: #ffffff;
    border: 1px solid transparent;
    text-align: left;
    padding: 11px 12px;
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}

.user-dropdown button::before {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.user-dropdown button:hover {
    border-color: #cbd5e1;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.user-dropdown button:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}

.user-dropdown button + button {
    margin-top: 2px;
}

.user-dropdown button[data-user-action="organization"]::before {
    content: '🏢';
}

.user-dropdown button[data-user-action="billing"]::before {
    content: '💳';
}

.user-dropdown button[data-user-action="settings"]::before {
    content: '⚙️';
}

.user-dropdown button[data-user-action="logout"] {
    color: #b42318;
    background: #fff6f5;
    border-color: #ffe0dd;
}

.user-dropdown button[data-user-action="logout"]::before {
    content: '↩';
    background: #ffe4e1;
    border-color: #ffc9c4;
}

.sidebar-section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--dash-text-muted);
    margin-top: 8px;
    margin-bottom: 4px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-impact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sidebar-impact:hover,
.sidebar-impact:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.sidebar-impact[data-impact-choice="water"] {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(14, 116, 144, 0.32);
}

.sidebar-impact[data-impact-choice="water"]:hover,
.sidebar-impact[data-impact-choice="water"]:focus-visible {
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.2);
}

.sidebar-impact[data-impact-choice="trees"] {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(22, 101, 52, 0.3);
}

.sidebar-impact[data-impact-choice="trees"]:hover,
.sidebar-impact[data-impact-choice="trees"]:focus-visible {
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.2);
}

.impact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.12);
    font-size: 16px;
}

.sidebar-impact[data-impact-choice="water"] .impact-icon {
    background: rgba(56, 189, 248, 0.22);
}

.sidebar-impact[data-impact-choice="trees"] .impact-icon {
    background: rgba(74, 222, 128, 0.24);
}

.impact-icon.avatar-image {
    overflow: hidden;
    font-size: 0;
    color: transparent;
}

.impact-icon.avatar-icon {
    font-size: 16px;
}

.impact-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-impact p {
    margin: 0;
}

.impact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--dash-text-muted);
}

.impact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dash-text-primary);
}

.impact-footnote {
    font-size: 11px;
    color: var(--dash-text-secondary);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dash-text-secondary);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav-item .nav-icon {
    font-size: 16px;
}

.sidebar-nav-item:hover {
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-primary);
}

.sidebar-nav-item.active {
    background: rgba(245, 213, 71, 0.2);
    color: var(--dash-text-primary);
}

.sidebar-upgrade {
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    background: linear-gradient(90deg, #f5d547, #fbbf24);
    color: #2d3748;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.sidebar-signout {
    border: 1px solid var(--dash-outline-border);
    border-radius: 999px;
    padding: 10px 20px;
    background: transparent;
    color: var(--dash-text-secondary);
    font-weight: 500;
    cursor: pointer;
}

.dashboard-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--dash-sidebar-bg) 92%, #ffffff 8%);
    border-bottom: 1px solid color-mix(in srgb, var(--dash-sidebar-border) 72%, transparent 28%);
    position: sticky;
    top: 0;
    z-index: 4;
    backdrop-filter: blur(12px);
}

.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dash-sidebar-text);
}

.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid #d9e1ee;
    background: #ffffff;
    color: var(--dash-text-primary);
    padding: 6px 10px 6px 6px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mobile-user-name {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mobile-menu-icon {
    font-size: 17px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.mobile-menu {
    display: none;
    position: sticky;
    top: 68px;
    z-index: 3;
    margin: 0 10px 12px;
    border-radius: 0 0 20px 20px;
    border: 1px solid #e2e8f0;
    border-top: none;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
    padding: 12px;
    gap: 12px;
    flex-direction: column;
}

.dashboard-mobile-bar + .mobile-menu.open {
    margin-top: -1px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid #eef2f7;
}

.mobile-nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #ffffff;
    color: var(--dash-text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus-visible {
    border-color: #d9e2ef;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.mobile-nav-item[aria-current="page"] {
    border-color: #f4dc72;
    background: #fffbea;
}

.mobile-menu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
}

.mobile-menu-actions button {
    flex: 1 1 calc(50% - 4px);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--dash-text-primary);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mobile-menu-actions button:hover,
.mobile-menu-actions button:focus-visible {
    background: #ffffff;
    border-color: #cbd5e1;
}

.mobile-menu-actions button[data-user-action="logout"] {
    color: #b42318;
    border-color: #ffd8d4;
    background: #fff6f5;
}

.dashboard-main {
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap);
    color: var(--dash-text-primary);
    min-width: 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.dashboard-header h1 {
    font-size: 36px;
    color: var(--dash-text-primary);
    margin-bottom: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.plan-theme-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.session-hero-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    padding: 16px 20px;
    border-radius: 22px;
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-card-border);
    box-shadow: var(--dash-panel-shadow);
}

.session-hero-value {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--dash-text-primary);
    line-height: 1.1;
}

.session-hero-subtitle {
    margin: 0;
    color: var(--dash-text-secondary);
    font-weight: 500;
}

@media (max-width: 720px) {
    .session-hero-card {
        width: 100%;
    }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--dash-mode-control-border);
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-secondary);
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--primary-yellow);
}

.theme-toggle-icon {
    font-size: 16px;
}

.theme-toggle-label {
    font-size: 14px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--dash-text-muted);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--dash-text-secondary);
    max-width: 640px;
}

.plan-badge {
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--dash-plan-badge-bg);
    color: var(--dash-plan-badge-text);
    font-weight: 600;
}

.upgrade-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 32px;
    border-radius: 24px;
    background: var(--dash-banner-bg);
    border: 1px solid var(--dash-banner-border);
}

.banner-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dash-banner-title);
}

.banner-copy {
    color: var(--dash-banner-copy);
}

.banner-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ghost-link {
    color: var(--dash-ghost-link);
    text-decoration: none;
    font-weight: 600;
}

.ghost-link.danger-link {
    color: #b42318;
}

.settings-body[data-theme="dark"] .ghost-link.danger-link {
    color: #fda4af;
}

.panel {
    background: var(--dash-panel-bg);
    border-radius: var(--panel-radius);
    padding: clamp(24px, 4vw, 32px);
    border: 1px solid var(--dash-panel-border);
    box-shadow: var(--dash-panel-shadow);
    min-width: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

.section-heading > div {
    flex: 1;
    padding-right: 48px;
}

.section-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}



body.channels-post-mode [data-dashboard-stream-grid] {
    display: none !important;
}

body.dashboard-body:not(.channels-post-mode) [data-dashboard-post-mode] {
    display: none !important;
}


body.dashboard-body.channels-post-mode.dashboard-post-composer-open [data-dashboard-post-mode] {
    display: none !important;
}

body.dashboard-body.channels-post-mode.dashboard-post-composer-open [data-dashboard-post-composer-full] {
    display: grid !important;
}

.destinations-mode-toggle {
    flex: 0 0 auto !important;
    margin-left: 0;
    margin-right: auto;
    padding-right: 0 !important;
    justify-content: flex-start;
}


.panel-dismiss {
    border: 1px solid var(--dash-card-border);
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease, border-color 0.2s ease;
    position: static;
    margin-left: auto;
}

.panel-dismiss:hover {
    background: var(--dash-platform-card-hover);
}

.panel-restore {
    border: 1px dashed var(--dash-card-border);
    background: transparent;
    color: var(--dash-text-primary);
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 700;
    margin-bottom: 12px;
    cursor: pointer;
}

.section-heading h2 {
    color: var(--dash-text-primary);
    font-size: 28px;
    margin-bottom: 8px;
}

.platform-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(14px, 3vw, 20px);
}

.platform-grid.platform-grid--three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-card {
    position: relative;
    padding: clamp(18px, 3vw, 22px);
    border-radius: var(--card-radius);
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-card-border);
    display: grid;
    gap: 12px;
    min-width: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--dash-platform-card-hover);
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--dash-platform-icon-bg);
    display: grid;
    place-items: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% auto;
    color: transparent;
}

.platform-icon.icon-tiktok {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%23010010'/%3E%3Cpath d='M40.5 15c1.8 2.6 4.2 4.7 7.1 6v7.6a18.6 18.6 0 0 1-7.6-2v11.3c0 7-5.4 12.7-12.8 12.7C20 50.6 15 42 17.9 34.7c1.7-4.5 5.9-7.6 10.7-7.9v6.8c-1.3.1-2.5.6-3.4 1.5-2.5 2.4-2.5 6.3-.2 8.8 3.9 4 10.6 1.2 10.6-4.4V13.4h4.9z' fill='%23fff'/%3E%3Cpath d='M40.5 17.8c1.9 2.2 4.2 3.8 7.1 4.5v4.4a18.6 18.6 0 0 1-7.6-2v11.3c0 7-5.4 12.7-12.8 12.7-1.3 0-2.6-.2-3.8-.6 2.3.4 4.7-.2 6.6-1.8 2.5-2.4 2.5-6.3.2-8.8-1-1-2.3-1.6-3.7-1.7V26.8a11.1 11.1 0 0 1 2.9-.1v6.1a6 6 0 0 1 4.2 1.8c2.5 2.5 2.5 6.4.2 8.8-1.8 1.8-4.4 2.5-6.8 1.8 2.1.6 4.4 0 6.1-1.7 2.5-2.4 2.5-6.3.2-8.8-.9-1-2.1-1.6-3.4-1.7v-6.8c1.7-.2 3.4-.1 5 .3v-7.6h4.9z' fill='%23ff0050'/%3E%3Cpath d='M40.5 17.8c1.9 2.2 4.2 3.8 7.1 4.5v4.4a18.6 18.6 0 0 1-7.6-2v11.3c0 7-5.4 12.7-12.8 12.7-1.3 0-2.6-.2-3.8-.6 4 .7 7.8-1.8 8.6-5.8a6.6 6.6 0 0 0-6.6-7.9V26.8a11.1 11.1 0 0 1 2.9-.1v6.1a6 6 0 0 1 4.2 1.8c2.5 2.5 2.5 6.4.2 8.8-1.8 1.8-4.4 2.5-6.8 1.8 2.1.6 4.4 0 6.1-1.7 2.5-2.4 2.5-6.3.2-8.8-.9-1-2.1-1.6-3.4-1.7v-6.8c1.7-.2 3.4-.1 5 .3v-7.6h4.9z' fill='%2306f7f1'/%3E%3C/svg%3E");
}

.platform-icon.icon-instagram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3ClinearGradient id='g' x1='8' y1='56' x2='56' y2='8' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23f58529'/%3E%3Cstop offset='.4' stop-color='%23dd2a7b'/%3E%3Cstop offset='.8' stop-color='%23815dc7'/%3E%3Cstop offset='1' stop-color='%23515bd4'/%3E%3C/linearGradient%3E%3Crect x='8' y='8' width='48' height='48' rx='14' fill='url(%23g)'/%3E%3Ccircle cx='32' cy='32' r='12' fill='none' stroke='%23fff' stroke-width='6'/%3E%3Ccircle cx='45' cy='19' r='4' fill='%23fff'/%3E%3C/svg%3E");
}

.platform-icon.icon-meta {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%230066ff'/%3E%3Cpath d='M40.8 44.3c-3 0-5.4-3.3-7.9-7.2-2.5-4-4.7-8.3-6.7-8.3-2 0-3.6 2.7-4.9 5.4L17 38c-.5 1-.8 1.4-1.6 1.4-.8 0-1.4-.6-1.4-1.4 0-.5.2-1 .5-1.7l3.2-6.8c1.7-3.4 3.5-6.7 7.4-6.7 3 0 5.4 3.2 7.9 7.2 2.5 3.9 4.7 8.2 6.7 8.2 2 0 3.6-2.6 4.9-5.4l2.3-4.4c.5-1 .9-1.4 1.7-1.4.8 0 1.4.6 1.4 1.4 0 .5-.2 1-.5 1.7l-3.2 6.8c-1.7 3.4-3.5 6.7-7.4 6.7z' fill='%23fff'/%3E%3C/svg%3E");
}

.platform-icon.icon-snapchat {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%23fffc00'/%3E%3Cpath d='M32 12c6 0 10.8 4.7 10.8 10.5 0 6 2 10.2 6.5 12.6-1.3 2-4 3.2-7.4 3.8-.8.1-1.2 1-.8 1.7 1.2 1.8 3 3.1 5.2 3.6.6.1 1 .7.9 1.3-.2.9-1.2 1.5-2.3 1.3-1.5-.3-3-.9-4.3-1.8-.6-.4-1.4-.1-1.6.6-.7 2-2.5 3.4-4.7 3.4h-4.8c-2.2 0-4.1-1.4-4.8-3.5-.2-.6-1-.9-1.6-.6-1.3.9-2.7 1.5-4.3 1.8-1 .2-2-.4-2.2-1.3-.2-.6.3-1.2.9-1.3 2.3-.5 4-1.8 5.2-3.6.4-.7 0-1.6-.8-1.7-3.4-.6-6-1.8-7.3-3.8C21 32.8 23 28.6 23 22.6 23 16.8 27.8 12 34 12z' fill='%23000'/%3E%3C/svg%3E");
}

.platform-icon.icon-youtube {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23ff0000'/%3E%3Cpolygon points='26,20 46,32 26,44' fill='%23fff'/%3E%3C/svg%3E");
}

.platform-icon.icon-twitch {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%239044ff'/%3E%3Cpath d='M20 16h28v22l-8 10h-8l-4 4h-5v-9h-3V16zm4 4v20h6v5l5-5h7V20H24zm6 4h4v9h-4zm9 0h4v9h-4z' fill='%23fff'/%3E%3C/svg%3E");
}


.platform-icon.icon-bluesky {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%231185fe'/%3E%3Cpath d='M16 20c4 0 8.8 3.7 12.2 8.2L32 34l3.8-5.8C39.2 23.7 44 20 48 20c2.8 0 5 2.2 5 5 0 5.8-5.4 9.9-10.7 9.7l-.3.4 8.7 9.6H42l-5.9-6.6L32 43l-4.1-4.9-5.9 6.6h-8.7l8.7-9.6-.3-.4C16.4 34.9 11 30.8 11 25c0-2.8 2.2-5 5-5z' fill='%23fff'/%3E%3C/svg%3E");
}
.platform-icon.icon-linkedin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%230e76a8'/%3E%3Cpath d='M20 26h8v18h-8zm4-9a4 4 0 110 8 4 4 0 010-8zm10 9h8v3.6c1.1-2.2 3.5-3.8 6.4-3.8 4.8 0 7.2 3 7.2 8v11.2h-8V35.8c0-2.4-.8-3.8-2.8-3.8-2.5 0-3.8 1.7-3.8 5.2V44h-8z' fill='%23fff'/%3E%3C/svg%3E");
}

.platform-icon.icon-spotify {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%231db954'/%3E%3Cpath d='M44.4 40.1a1.8 1.8 0 0 1-2.5.6c-6.8-4.2-15.4-5.1-25.6-2.7a1.8 1.8 0 1 1-.8-3.5c11.1-2.5 20.6-1.4 28.3 3.3.8.5 1.1 1.6.6 2.3zm3.5-7.7a2.1 2.1 0 0 1-2.9.6c-7.8-4.7-19.7-6.1-28.9-3.3a2.1 2.1 0 0 1-1.2-4c10.5-3.2 23.5-1.6 32.3 3.8 1 .5 1.3 1.8.7 2.9zm.3-8c-9-5.3-23.8-5.8-32.4-3.2a2.5 2.5 0 1 1-1.4-4.8c9.9-3 26.4-2.4 36.4 3.6a2.5 2.5 0 1 1-2.6 4.4z' fill='%23fff'/%3E%3C/svg%3E");
}

.platform-icon.icon-pinterest {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23e60023'/%3E%3Cpath d='M32.2 16c-8.7 0-14.6 6.2-14.6 13.8 0 5.5 3 9.8 7.8 11.5.7.2 1 .1 1.1-.5l1.1-4.2c.1-.5.1-.6-.3-1.1-1-1.2-1.8-3.2-1.8-5.2 0-5 3.8-9.8 10.2-9.8 5.5 0 9.3 3.7 9.3 8.9 0 5.9-3 10-6.8 10-2.1 0-3.7-1.8-3.2-4l1.3-5c.4-1.6-.8-3-2.4-3-2.9 0-5.2 3-5.2 7 0 2.6.9 4.3.9 4.3l-3.4 14c-1 4 .1 10.4.2 10.8.1.2.3.2.4.1.2-.2 3-4.2 4-8.1.3-1.1 1.6-6.3 1.6-6.3.8 1.5 3.1 2.8 5.5 2.8 7.2 0 12.4-6.6 12.4-14.7C50.2 22 43.1 16 32.2 16z' fill='%23fff'/%3E%3C/svg%3E");
}


.platform-icon.icon-x {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23000000'/%3E%3Cpath d='M17 17h9.7l10 13.3L47.6 17H52L38.7 32.2 53 47h-9.7L33 33.3 21.6 47H17l14-16.4L17 17z' fill='%23fff'/%3E%3C/svg%3E");
}

.platform-icon.icon-giphy {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23000'/%3E%3Crect x='14' y='14' width='4' height='36' fill='%2300ff99'/%3E%3Crect x='18' y='14' width='20' height='4' fill='%2300ccff'/%3E%3Crect x='42' y='14' width='8' height='4' fill='%23fff35c'/%3E%3Crect x='46' y='18' width='4' height='10' fill='%23ff66cc'/%3E%3Crect x='46' y='32' width='4' height='18' fill='%23ff9933'/%3E%3Crect x='18' y='46' width='24' height='4' fill='%236a5cff'/%3E%3Crect x='26' y='26' width='12' height='12' fill='%23fff'/%3E%3C/svg%3E");
}

.platform-icon.icon-stripe {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%236355f6'/%3E%3Cpath d='M34.8 24.2c-3.5 0-5.7 1.7-5.7 4.2 0 3.4 4.7 3.6 4.7 5.4 0 .7-.6 1-1.8 1-1.6 0-3.7-.6-5.3-1.5v5.1c1.8.8 3.5 1.1 5.6 1.1 3.7 0 6.1-1.6 6.1-4.3 0-3.7-4.8-3.8-4.8-5.5 0-.6.6-1 1.6-1 1.4 0 3 .5 4.4 1.2v-5c-1.5-.6-3.1-.9-4.8-.9zM24 24.7l-3.8 14.6h4.6l.5-2h3.9l.5 2h4.6L30.4 24.7H24zm3.2 4.4.8 3.5h-1.7l.9-3.5zM39.8 24.7v14.6h4.4V24.7h-4.4z' fill='%23fff'/%3E%3C/svg%3E");
    background-size: 78% auto;
}

.platform-icon.icon-ebay {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/1/1b/EBay_logo.svg");
    background-size: 85% auto;
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.platform-icon.icon-shopify {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/0/0e/Shopify_logo_2018.svg");
    background-size: 80% auto;
    background-color: #ffffff;
    border: 1px solid rgba(22, 163, 74, 0.24);
}

.platform-card--mode-hidden {
    display: none !important;
}

.platform-card h3 {
    color: var(--dash-text-primary);
    margin-bottom: 4px;
}

.platform-card p {
    color: var(--dash-text-secondary);
    font-size: 14px;
}

.platform-card .platform-footnote {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--dash-text-muted) 86%, #94a3b8);
}

.platform-status {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-card.platform-connected {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-md);
}

.platform-card.platform-connected .platform-status {
    color: var(--primary-yellow);
}


.platform-card.post-selected {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-md);
    background: color-mix(in srgb, var(--primary-yellow) 14%, var(--dash-panel-bg));
}

.platform-card.platform-busy .platform-connect {
    opacity: 0.6;
}

.platform-connect {
    border: 1px solid var(--dash-outline-border);
    border-radius: 999px;
    padding: 10px 18px;
    min-width: 108px;
    min-height: 40px;
    background: transparent;
    color: var(--dash-text-primary);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
}

.platform-card > .platform-connect {
    width: 120px;
    margin-top: auto;
    white-space: nowrap;
}


.platform-connect:hover {
    border-color: var(--dash-platform-card-hover);
}


.post-platform-title {
    margin: 0;
}

.post-platform-switcher {
    position: relative;
    margin-top: 8px;
}

body.dashboard-body:not(.channels-post-mode) .post-platform-switcher {
    display: none;
}

.post-platform-title-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
}

.post-platform-title-toggle:hover,
.post-platform-title-toggle:focus-visible {
    outline: none;
}

.post-platform-title-toggle:disabled {
    cursor: default;
    opacity: 1;
}

.post-platform-dropdown-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.post-platform-switcher.is-open .post-platform-dropdown-arrow {
    transform: rotate(180deg);
}

.post-platform-dropdown-menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: min(420px, 80vw);
}

.post-platform-dropdown-menu[hidden] {
    display: none;
}

.post-platform-toggle {
    border: 1px solid var(--dash-card-border);
    border-radius: 14px;
    background: transparent;
    padding: 2px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.post-platform-toggle .platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.post-platform-toggle:hover:not(:disabled),
.post-platform-toggle:focus-visible {
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
    outline: none;
}

.post-platform-toggle.is-active {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-yellow) 35%, transparent);
}

.post-platform-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}


.channel-mode-stack {
    display: inline-flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.channel-mode-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-card-border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.channel-mode-option {
    border: none;
    background: transparent;
    color: var(--dash-text-secondary);
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
}

.channel-mode-option.is-active {
    background: var(--primary-yellow);
    color: #111827;
}

.platform-post-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-action-primary {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #111827;
}

.platform-expand {
    margin-left: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-panel-bg);
    color: var(--dash-text-primary);
    cursor: pointer;
}

.platform-post-insights {
    margin-top: 6px;
    border: 1px solid var(--dash-card-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--dash-card-bg) 92%, var(--primary-yellow));
}

.platform-post-insights h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.platform-post-insights ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
}

.post-composer {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.post-dashboard {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.post-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.post-dashboard-card {
    border: 1px solid var(--dash-card-border);
    border-radius: 16px;
    background: var(--dash-card-bg);
    padding: 16px;
}

.post-dashboard-label {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dash-text-muted);
    font-weight: 700;
}

.post-dashboard-card h3 {
    margin: 8px 0;
    color: var(--dash-text-primary);
}

.post-composer-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.post-composer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 16px;
    align-items: start;
}


.post-platform-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.post-platform-cards-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-post-composer-host {
    width: 100%;
    overflow: visible;
}

.dashboard-post-composer-frame {
    width: 100%;
    min-height: 720px;
    height: auto;
    border: 0;
    border-radius: 12px;
    background: transparent;
}


.post-composer-form,
.post-preview {
    border: 1px solid var(--dash-card-border);
    border-radius: 16px;
    background: var(--dash-card-bg);
    padding: 16px;
    display: grid;
    gap: 12px;
    align-content: start;
}


.post-media-actions,
.post-publish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-action-file {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.post-media-actions .platform-connect,
.post-publish-actions .platform-connect {
    border-radius: 999px;
    min-width: 0;
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
}


#youtubeCommunityPreview[hidden],
#linkedinComposerPreview[hidden],
#youtubePostContentField[hidden],
#postDescriptionField[hidden],
#postTitleField[hidden],
#postPreviewLabel[hidden],
#postCoverField[hidden],
#snapchatSettingsField[hidden] {
    display: none !important;
}

.snapchat-settings {
    display: grid;
    gap: 12px;
}

.snapchat-settings h3 {
    margin: 0;
    color: var(--dash-text-primary);
    font-size: 18px;
}

.snapchat-destination-card {
    border: 1px solid var(--dash-outline-border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--dash-panel-bg) 76%, #e5e7eb);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.snapchat-destination-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--dash-text-primary);
    cursor: pointer;
}

.snapchat-destination-toggle > input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.snapchat-toggle-ui {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #d1d5db;
    border: 1px solid #9ca3af;
    position: relative;
    flex: 0 0 auto;
    margin-top: 2px;
    transition: background 120ms ease, border-color 120ms ease;
}

.snapchat-toggle-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    transition: transform 120ms ease;
}

.snapchat-destination-toggle > input[type="checkbox"]:checked + .snapchat-toggle-ui {
    background: #facc15;
    border-color: #ca8a04;
}

.snapchat-destination-toggle > input[type="checkbox"]:checked + .snapchat-toggle-ui::after {
    transform: translateX(18px);
}

.snapchat-destination-toggle strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.snapchat-destination-toggle small {
    display: block;
    color: var(--dash-text-secondary);
    font-size: 14px;
    margin-top: 2px;
}

.snapchat-destination-body {
    padding-top: 4px;
    display: grid;
    gap: 10px;
}

.snapchat-destination-body[hidden] {
    display: none !important;
}

.snapchat-destination-body .post-field select[multiple] {
    min-height: 76px;
}

.snapchat-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dash-text-primary);
}
.post-field {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--dash-text-secondary);
    font-weight: 600;
}

.post-field input,
.post-field textarea,
.post-field select {
    border: 1px solid var(--dash-outline-border);
    border-radius: 10px;
    padding: 8px;
    color: var(--dash-text-primary);
    background: var(--dash-panel-bg);
    font: inherit;
}

.post-field-help {
    font-size: 11px;
    color: var(--dash-text-muted);
    font-weight: 500;
}


.post-cover {
    display: grid;
    gap: 8px;
}

.post-cover-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dash-text-primary);
}

.post-cover-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #d4d4d8;
    aspect-ratio: 9 / 14;
    max-width: 230px;
}

.post-cover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-cover-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-cover-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 12px;
    color: #27272a;
    padding: 12px;
}

.post-cover-card.has-cover .post-cover-empty {
    display: none;
}

.post-cover-edit {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
}


.storage-picker-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    z-index: 340;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.storage-picker-modal[hidden] {
    display: none;
}

.storage-picker-panel {
    width: min(920px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    border-radius: 16px;
    border: 1px solid var(--dash-card-border);
    background: var(--dash-card-bg);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 18px;
}

.storage-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.storage-picker-close {
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-panel-bg);
    color: var(--dash-text-secondary);
    border-radius: 10px;
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.storage-picker-state {
    font-size: 13px;
    color: var(--dash-text-muted);
}

.storage-picker-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    overflow: auto;
    padding-right: 4px;
}

.storage-picker-card {
    border: 1px solid var(--dash-outline-border);
    border-radius: 12px;
    background: var(--dash-panel-bg);
    color: var(--dash-text-primary);
    text-align: left;
    padding: 8px;
    display: grid;
    gap: 8px;
    cursor: pointer;
}

.storage-picker-card:hover {
    border-color: var(--primary-yellow);
}

.storage-picker-thumb-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: color-mix(in srgb, var(--dash-panel-bg) 85%, #0f172a);
    aspect-ratio: 4 / 3;
}

.storage-picker-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.storage-picker-thumb--empty {
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--dash-text-muted);
}

.storage-picker-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(15, 23, 42, 0.74);
    color: #fff;
}

.storage-picker-meta {
    display: grid;
    gap: 3px;
}

.storage-picker-meta strong {
    font-size: 12px;
    color: var(--dash-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storage-picker-meta span {
    font-size: 11px;
    color: var(--dash-text-muted);
}

.storage-picker-footer {
    display: flex;
    justify-content: flex-end;
}

.cover-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.cover-modal[hidden] {
    display: none !important;
}

.cover-modal-panel {
    width: min(900px, 95vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    color: #111827;
}

.cover-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.cover-modal-tabs {
    display: flex;
    align-items: flex-end;
    gap: 22px;
}

.cover-modal-title {
    margin: 0 8px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.cover-modal-tab {
    border: 0;
    background: transparent;
    font-size: 20px;
    color: #9ca3af;
    font-weight: 700;
    padding-bottom: 8px;
    cursor: pointer;
}

.cover-modal-tab.is-active {
    color: #111827;
    border-bottom: 3px solid #111827;
}

.cover-modal-close {
    border: 0;
    background: transparent;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
}

.cover-modal-body {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.cover-modal-preview {
    position: relative;
    width: 220px;
    margin: 0 auto;
    background: #d1d5db;
    aspect-ratio: 9 / 14;
    overflow: hidden;
}

.cover-modal-preview img,
.cover-modal-preview video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-modal-range-label {
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.cover-modal-strip {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
}

.cover-modal-strip img {
    width: 100%;
    aspect-ratio: 9 / 14;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.cover-modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
}

.post-preview-canvas {
    border: 1px solid var(--dash-card-border);
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    color: #fff;
    align-self: start;
}

.preview-media {
    min-height: 180px;
    height: 220px;
    background: linear-gradient(135deg, #1f2937, #0f172a);
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    overflow: hidden;
}

.preview-media img,
.preview-media video {
    width: 100%;
    height: 100%;
    display: block;
}

.preview-media img {
    object-fit: cover;
}

.preview-media video {
    object-fit: contain;
}

.preview-media .preview-media-placeholder {
    font-size: 12px;
    color: color-mix(in srgb, #fff 70%, #94a3b8);
    text-align: center;
    padding: 16px;
}


.post-preview-canvas.snapchat-preview {
    background: #f2f4f7;
    max-width: 360px;
    width: min(100%, 360px);
    margin-inline: auto;
}

.post-preview-canvas.snapchat-preview .preview-media {
    min-height: 520px;
    height: auto;
    background: #f2f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.post-preview-canvas.snapchat-preview .preview-media video {
    object-fit: contain;
}

.post-preview-canvas.snapchat-preview .preview-media::before,
.post-preview-canvas.snapchat-preview .preview-media::after {
    display: none !important;
    content: none !important;
}

.post-preview-canvas.snapchat-preview .tiktok-chrome {
    display: none !important;
}

.post-composer[data-active-platform="snapchat"] .post-preview {
    justify-items: center;
}

.post-preview-canvas.snapchat-preview .preview-copy {
    display: none;
}

.post-preview-canvas.snapchat-preview .preview-media .preview-media-placeholder {
    display: none;
}

.preview-media.has-media .preview-media-placeholder {
    display: none;
}


.post-composer-form [data-tiktok-hide-field][hidden] {
    display: none !important;
}

.post-preview-canvas.tiktok-preview .preview-media .preview-media-placeholder {
    display: none !important;
}

.preview-copy {
    padding: 12px;
}

.preview-copy h3 {
    margin: 0 0 6px;
    color: inherit;
}

.preview-copy p {
    margin: 0;
    color: color-mix(in srgb, #fff 85%, #cbd5e1);
}

.post-preview-canvas.instagram-preview {
    max-width: 320px;
}


.post-preview-canvas.giphy-preview {
    max-width: 380px;
    background: #0b1220;
}

.post-preview-canvas.giphy-preview .preview-media {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 300px;
    background: #0b1220;
    position: relative;
    display: block;
    padding: 0;
}

.post-preview-canvas.giphy-preview .preview-media::before,
.post-preview-canvas.giphy-preview .preview-media::after {
    display: none !important;
    content: none !important;
}

.post-preview-canvas.giphy-preview .preview-media img,
.post-preview-canvas.giphy-preview .preview-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-preview-canvas.giphy-preview .preview-media .preview-media-placeholder:not([hidden]) {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}

.post-preview-canvas.giphy-preview .preview-media .tiktok-chrome {
    display: none !important;
}

.post-preview-canvas.giphy-preview .preview-copy {
    padding: 12px 14px 14px;
}

.post-preview-canvas.giphy-preview .preview-copy h3 {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, #fff 64%, #94a3b8);
    margin-bottom: 4px;
}
.post-preview-canvas.instagram-preview .preview-media {
    min-height: 320px;
    height: 360px;
}

.post-preview-canvas.youtube-preview {
    max-width: 380px;
    background: #0b0f1a;
}

.post-preview-canvas.youtube-preview .preview-media {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
    background: #0b1220;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.post-preview-canvas.youtube-preview .preview-media::after {
    content: 'Thumbnail';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-preview-canvas.youtube-preview .preview-media.is-video::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0.8;
}

.post-preview-canvas.youtube-preview .preview-copy {
    background: #0f172a;
    padding: 14px 16px 16px;
}

.post-preview-canvas.youtube-preview .preview-copy h3 {
    font-size: 14px;
}

.post-preview-canvas.youtube-preview .preview-copy p {
    color: color-mix(in srgb, #fff 70%, #94a3b8);
    font-size: 12px;
}

.post-preview-canvas.youtube-preview.youtube-short {
    max-width: 320px;
}

.post-preview-canvas.youtube-preview.youtube-short .preview-media {
    aspect-ratio: 9 / 16;
    min-height: 420px;
    background: #0b1220;
}

.post-preview-canvas.youtube-preview.youtube-short .preview-media img,
.post-preview-canvas.youtube-preview.youtube-short .preview-media video {
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.post-preview-canvas.youtube-preview.youtube-short .preview-media img {
    object-fit: cover;
}

.post-preview-canvas.youtube-preview.youtube-short .preview-media video {
    object-fit: contain;
}

.post-preview-canvas.youtube-preview.youtube-post {
    max-width: 760px;
    background: #f3f4f6;
    color: #111827;
}

.post-preview-canvas.youtube-preview.youtube-post .preview-copy,
.post-preview-canvas.youtube-preview.youtube-post .preview-media {
    display: none;
}

.post-preview-meta {
    margin-top: 8px;
    font-size: 11px;
    color: color-mix(in srgb, #fff 68%, #94a3b8);
}

.post-preview-attribution {
    margin-top: 8px !important;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, #fff 62%, #94a3b8) !important;
}

.youtube-community-preview {
    display: grid;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    font-family: Roboto, Arial, sans-serif;
}

.community-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f0f0f;
    font-size: 14px;
    line-height: 1.3;
}

.community-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #606060;
    font-size: 16px;
    font-weight: 600;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-avatar.has-image #youtubeCommunityAvatarFallback {
    display: none;
}

.community-visibility {
    margin-left: auto;
    color: #606060;
    font-size: 12px;
    font-weight: 400;
}

.community-message {
    margin: 0;
    color: #0f0f0f;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    white-space: pre-wrap;
}

.community-body {
    display: grid;
    gap: 10px;
}

.community-upload-button {
    justify-self: start;
    border: 1px solid #dadce0;
    border-radius: 18px;
    padding: 8px 16px;
    color: #0f0f0f;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.community-image-preview-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #fff;
}

.community-image-preview {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.community-content-hint {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}


.post-preview-canvas.linkedin-preview {
    max-width: 760px;
    background: #f3f2ef;
    color: #1f2329;
    border-color: #d6d6d6;
}

.post-preview-canvas.linkedin-preview .preview-media,
.post-preview-canvas.linkedin-preview .preview-copy {
    display: none;
}

.linkedin-composer-preview {
    min-height: 360px;
    background: #f3f2ef;
    padding: 18px;
    display: grid;
    gap: 18px;
    align-content: start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.linkedin-composer-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.linkedin-composer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #d1d5db;
    color: #4b5563;
    font-size: 22px;
    font-weight: 700;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.linkedin-composer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linkedin-composer-avatar.has-image #linkedinComposerAvatarFallback {
    display: none;
}

.linkedin-composer-header strong {
    display: block;
    color: #191919;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 600;
}

.linkedin-composer-header small {
    display: block;
    margin-top: 2px;
    color: #191919;
    font-size: 13px;
}

.linkedin-composer-message {
    margin: 20px 0 0;
    color: #666;
    font-size: 22px;
    line-height: 1.1;
    white-space: pre-wrap;
}

.linkedin-composer-media {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d0d0d0;
    background: #fff;
}

.linkedin-composer-media img,
.linkedin-composer-media video {
    width: 100%;
    max-height: 350px;
    display: block;
    object-fit: cover;
}

.preview-media-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.84) 100%);
    color: #fff;
    font-size: 12px;
}

.control-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    color: currentColor;
    flex: 0 0 auto;
}

.control-time {
    font-size: 12px;
    letter-spacing: 0.01em;
}

.control-spacer {
    flex: 1;
}

.post-preview-link-label {
    margin: 10px 0 4px;
    color: color-mix(in srgb, #fff 75%, #cbd5e1);
    font-weight: 600;
}

.post-preview-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-preview-link-row a {
    color: #60a5fa;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-preview-copy-link {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.post-preview-copy-link svg {
    width: 14px;
    height: 14px;
}

.post-preview-canvas.tiktok-preview {
    max-width: 320px;
    border-radius: 28px;
    background: #000;
    border-color: #000;
}

.post-preview-canvas.tiktok-preview .preview-media {
    min-height: 560px;
    height: 620px;
    background: #000;
}

.post-preview-canvas.tiktok-preview.tiktok-story .preview-media {
    min-height: 460px;
    height: 520px;
}

.post-preview-canvas.tiktok-preview .preview-copy,
.post-preview-canvas.tiktok-preview.tiktok-story .preview-copy {
    display: none;
}

.tiktok-chrome {
    position: absolute;
    inset: 0;
    display: none;
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
    pointer-events: none;
}

.post-preview-canvas.tiktok-preview .tiktok-chrome {
    display: block;
}

.tiktok-status-bar,
.tiktok-top-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
    color: #fff;
}

.tiktok-status-bar {
    top: 10px;
}

.tiktok-status-icons {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
}


.status-signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
}

.status-signal i {
    display: block;
    width: 2px;
    border-radius: 2px;
    background: #fff;
}

.status-signal i:nth-child(1) { height: 4px; opacity: 0.65; }
.status-signal i:nth-child(2) { height: 6px; opacity: 0.78; }
.status-signal i:nth-child(3) { height: 8px; opacity: 0.9; }
.status-signal i:nth-child(4) { height: 10px; }

.status-wifi {
    width: 14px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-wifi svg {
    width: 14px;
    height: 10px;
    display: block;
}

.status-wifi path,
.status-wifi circle {
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-wifi circle {
    fill: #fff;
    stroke: none;
}


.status-battery {
    width: 24px;
    height: 12px;
    border: 1.8px solid #fff;
    border-radius: 3px;
    position: relative;
    box-sizing: border-box;
}

.status-battery::before {
    content: '';
    position: absolute;
    left: 1.5px;
    top: 1.5px;
    right: 1.5px;
    bottom: 1.5px;
    border-radius: 1px;
    background: #fff;
}

.status-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 5px;
    border-radius: 1px;
    background: #fff;
}

.tiktok-top-nav {
    top: 42px;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
}

.tiktok-live-pill {
    position: absolute;
    left: 0;
    background: rgba(255, 60, 112, 0.95);
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.tiktok-search-icon {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
}

.tiktok-search-icon::after {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -2px;
    width: 6px;
    height: 2px;
    background: #fff;
    transform: rotate(42deg);
    border-radius: 2px;
}

.tiktok-side-actions {
    position: absolute;
    right: 12px;
    bottom: 110px;
    display: grid;
    gap: 14px;
    justify-items: center;
}

.tiktok-profile-action {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(12, 12, 12, 0.65);
    position: relative;
    overflow: hidden;
}

.tiktok-profile-photo {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 34%, #f5f5f5 0 21%, transparent 22%),
        radial-gradient(circle at 50% 88%, #f5f5f5 0 39%, transparent 40%),
        #2a2a2a;
    background-size: cover;
    background-position: center;
}

.tiktok-profile-action.has-avatar .tiktok-profile-photo {
    background-color: #111;
}

.profile-dot {
    position: absolute;
    right: -1px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff2e63;
    border: 2px solid #fff;
}

.side-icon {
    width: 28px;
    height: 28px;
    position: relative;
}

.side-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.icon-like svg path {
    fill: #fff;
}

.icon-comment svg path,
.icon-save svg path,
.icon-repost svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.tiktok-caption-block {
    position: absolute;
    left: 14px;
    right: 74px;
    bottom: 76px;
    display: grid;
    gap: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.tiktok-caption-block p {
    margin: 0;
    font-size: 13px;
    color: #fff;
}

.tiktok-username {
    font-weight: 700;
}

.tiktok-footer-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    background: rgba(0, 0, 0, 0.94);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
}

.tiktok-footer-nav span {
    display: grid;
    justify-items: center;
    gap: 3px;
}

.nav-icon {
    width: 19px;
    height: 19px;
    display: block;
    position: relative;
}

.nav-friends svg,
.nav-me svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-friends path,
.nav-me path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-home::before {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 1px;
    top: 8px;
    background: #fff;
    border-radius: 2px;
}

.nav-home::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
}


.nav-inbox::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 2px solid #fff;
    border-radius: 3px;
}

.nav-inbox::after {
    content: '';
    position: absolute;
    left: 6px;
    bottom: -1px;
    width: 6px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    background: rgba(0, 0, 0, 0.94);
}


.nav-plus {
    width: 34px;
    height: 22px;
    border-radius: 7px;
    border: none;
    background: linear-gradient(90deg, #27f4fd 0 45%, #fff 45% 55%, #ff2e63 55%);
    position: relative;
}

.nav-plus::before,
.nav-plus::after {
    content: '';
    position: absolute;
    background: #000;
}

.nav-plus::before {
    width: 12px;
    height: 2px;
    top: 10px;
    left: 11px;
}

.nav-plus::after {
    width: 2px;
    height: 12px;
    top: 5px;
    left: 16px;
}

.tiktok-footer-nav small {
    font-size: 10px;
    font-weight: 600;
}


@media (max-width: 960px) {
    .post-composer-layout,
    .post-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.platform-manual-form {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.platform-manual-form[hidden] {
    display: none !important;
}

.platform-manual-form label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dash-text-secondary);
}

.post-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dash-text-secondary);
}

.platform-card .platform-manual-actions[data-instagram-cta-group] {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
    overflow: hidden;
}
.platform-card.instagram-cta-open .platform-manual-actions[data-instagram-cta-group] {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.platform-card.instagram-cta-open button[data-platform="Instagram"] {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}
.platform-card button[data-platform="Instagram"] {
    transition: opacity 160ms ease, transform 160ms ease;
}

.post-field-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.post-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-panel-bg);
    font-size: 12px;
    color: var(--dash-text-primary);
}

.post-radio input {
    accent-color: var(--dash-accent);
}


.post-radio--linkedin-destination {
    position: relative;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    border: 1px solid var(--dash-outline-border);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.post-radio--linkedin-destination:has(input:checked) {
    border-color: var(--dash-accent);
    background: rgba(14, 165, 233, 0.12);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.post-radio--linkedin-destination input {
    accent-color: var(--dash-accent);
}

.post-field-options--youtube-types {
    gap: 8px;
}

.post-radio--youtube-type {
    position: relative;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.post-radio--youtube-type > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-radio--youtube-type > span > span {
    font-size: 15px;
    line-height: 1;
}

.post-radio-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}

.post-radio--youtube-type input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.post-radio--youtube-type.is-active {
    border-color: #111827;
    background: #fff;
}



.platform-manual-form input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--dash-outline-border);
    border-radius: 10px;
    background: var(--dash-panel-bg);
    color: var(--dash-text-primary);
    padding: 9px 10px;
    font-size: 13px;
}

.platform-manual-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-manual-actions .platform-connect {
    padding: 8px 14px;
    flex: 1 1 0;
    min-width: 0;
}


.platform-destination-picker {
    display: grid;
    gap: 8px;
}

.platform-destination-picker[hidden] {
    display: none !important;
}

.platform-destination-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dash-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.platform-destination-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-destination-option {
    border: 1px solid var(--dash-outline-border);
    border-radius: 999px;
    padding: 10px 18px;
    min-width: 108px;
    min-height: 40px;
    background: transparent;
    color: var(--dash-text-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.platform-destination-option:hover,
.platform-destination-option.selected {
    border-color: var(--dash-platform-card-hover);
    background: var(--dash-platform-card-hover);
}

.stream-lab {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(16px, 3vw, 24px);
    grid-auto-rows: 1fr;
}

.stream-lab[hidden],
.panel[hidden] {
    display: none !important;
}

.chat-stream-wide {
    width: calc(100% + clamp(20px, 4vw, 64px));
    margin-left: calc(clamp(20px, 4vw, 64px) * -0.5);
}

.stream-lab .upcoming-pipeline {
    grid-column: 1 / -1;
    background: var(--dash-card-bg);
    border-radius: var(--panel-radius);
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid var(--dash-card-border);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
    position: relative;
}

.stream-type-heading {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.stream-type-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stream-type-panel {
    margin-top: 18px;
}

.stream-type-panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.stream-type-panel-header .post-platform-switcher {
    margin-top: 0;
}

.stream-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(16px, 3vw, 24px);
}

.stream-type-card {
    border-radius: 20px;
    border: 1px solid var(--dash-card-border);
    background: var(--dash-card-bg);
    padding: clamp(18px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.stream-type-card h3 {
    margin: 6px 0 0;
}

.stream-type-card p {
    margin: 6px 0 0;
    color: var(--dash-text-secondary);
}

.stream-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stream-type-pills span {
    background: rgba(245, 213, 71, 0.16);
    color: #7a5d00;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}


.stream-destination-icons {
    margin-left: 10px;
}

.stream-destination-icons-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-destination-icons-row .platform-icon {
    width: 28px;
    height: 28px;
}

.analytics-destination-icon {
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    appearance: none;
}

.analytics-destination-icon.is-active {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-yellow) 28%, transparent);
}

.stream-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.stream-type-buttons .btn-primary,
.stream-type-buttons .btn-secondary {
    flex: 1 1 160px;
}

.stream-type-card--schedule {
    position: relative;
}

.stream-type-card--schedule .schedule-split {
    position: relative;
    min-height: 46px;
}

.stream-type-card--schedule #scheduleEntryButton {
    width: 100%;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.schedule-choice-panel {
    margin-top: 0;
    display: flex;
    gap: 10px;
    width: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.schedule-choice-panel .btn-secondary {
    flex: 1 1 0;
}

.schedule-choice-panel .btn-schedule-choice {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--text-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.schedule-choice-panel .btn-schedule-choice:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    box-shadow: var(--shadow-md);
}

.stream-type-card--schedule.is-schedule-split #scheduleEntryButton {
    opacity: 0;
    transform: scaleX(0.85);
    pointer-events: none;
}

.stream-type-card--schedule.is-schedule-split .schedule-choice-panel {
    opacity: 1;
    transform: scaleX(1);
    pointer-events: auto;
}

.stream-type-card--schedule.is-schedule-split #scheduleMeetingOption {
    transform: translateX(-6px);
}

.stream-type-card--schedule.is-schedule-split #scheduleStreamOption {
    transform: translateX(6px);
}


.analytics-overview-panel {
    display: grid;
    gap: 20px;
}

.analytics-overview-heading {
    margin-bottom: 0;
}

.analytics-overview-heading .section-heading-actions {
    justify-content: flex-start;
}

.analytics-overview-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.analytics-overview-card {
    grid-column: span 6;
}

.analytics-overview-card--growth {
    grid-column: span 8;
}

.analytics-overview-card--impressions {
    grid-column: span 4;
}

.performance-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--dash-card-border);
    border-radius: 16px;
    overflow: hidden;
}

.summary-metric {
    padding: 18px;
    border-right: 1px solid var(--dash-card-border);
    border-bottom: 1px solid var(--dash-card-border);
    display: grid;
    gap: 6px;
}

.summary-metric:nth-child(2n) {
    border-right: 0;
}

.summary-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.summary-metric p {
    margin: 0;
    color: var(--dash-text-secondary);
}

.summary-metric strong {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.summary-metric span {
    font-weight: 600;
    color: #22c55e;
}

.summary-metric span.is-negative {
    color: #ef4444;
}

.engaged-audience-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.audience-pill {
    border: 1px solid var(--dash-card-border);
    background: var(--dash-mode-control-bg);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 4px;
}

.audience-pill span {
    color: var(--dash-text-secondary);
    font-size: 0.9rem;
}

.growth-series {
    display: grid;
    gap: 8px;
}

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

.growth-bars {
    display: grid;
    gap: 5px;
}

.growth-bar {
    height: 7px;
    border-radius: 999px;
}

.growth-bar--impressions {
    background: #2563eb;
}

.growth-bar--followers {
    background: #f59e0b;
}

.growth-values {
    color: var(--dash-text-secondary);
    font-size: 0.85rem;
}

.content-impressions {
    display: grid;
    gap: 12px;
}

.content-row {
    display: grid;
    gap: 6px;
}

.content-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.content-track {
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dash-card-border) 70%, transparent);
    overflow: hidden;
}

.content-bar {
    height: 100%;
    border-radius: inherit;
}

.content-bar--reels {
    background: #2563eb;
}

.content-bar--carousels {
    background: #60a5fa;
}

.content-bar--photos {
    background: #1d4ed8;
}

.content-bar--stories {
    background: #7c3aed;
}

.content-row p {
    margin: 0;
    color: var(--dash-text-secondary);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(12px, 3vw, 18px);
}

.stat-card {
    padding: 16px;
    border: 1px solid var(--dash-card-border);
    border-radius: 16px;
    background: var(--dash-card-bg);
    display: grid;
    gap: 6px;
}

.platform-stat-card {
    gap: 10px;
}

.platform-stat-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.platform-stat-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.platform-stat-metric h2 {
    margin: 0;
}

.analytics-table {
    border: 1px solid var(--dash-card-border);
    border-radius: 16px;
    overflow: hidden;
}

.analytics-table-scrollable {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    display: block;
    background: var(--dash-card-bg);
}

.analytics-table-scrollable .table-head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--dash-card-border);
}

.table-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    padding: 12px 16px;
    gap: clamp(10px, 2vw, 16px);
    align-items: center;
    min-height: 56px;
}

.table-row:nth-child(even) {
    background: var(--dash-panel-gradient);
}

.table-head {
    background: var(--dash-card-border);
    color: var(--dash-text-secondary);
    font-weight: 600;
}

.lab-card {
    background: var(--dash-card-bg);
    border-radius: var(--panel-radius);
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid var(--dash-card-border);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
    height: 100%;
}

.freely-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.freely-card-body > p {
    margin: 0;
    color: var(--dash-text-secondary);
}

.freely-card-list {
    margin: 0;
    padding-left: 18px;
    color: var(--dash-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
}

.freely-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.session-counter-panel {
    padding: clamp(24px, 4vw, 32px);
}

.session-counter-card .lab-header {
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.session-counter-table-actions-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.session-counter-icon-btn {
    border: 1px solid var(--dash-card-border);
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-primary);
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.session-counter-icon-btn:hover,
.session-counter-icon-btn:focus-visible,
.session-counter-icon-btn[aria-pressed="true"] {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
    transform: translateY(-1px);
}

.session-counter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    min-width: 240px;
}

.session-counter-pill {
    border: 1px solid var(--dash-card-border);
    border-radius: 16px;
    padding: 12px 14px;
    background: var(--dash-mode-control-bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-counter-pill p {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dash-text-muted);
}

.session-counter-pill strong {
    font-size: 1.4rem;
    color: var(--dash-text-primary);
}

.session-counter-table .table-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 0.9fr) repeat(2, minmax(0, 1fr)) minmax(190px, 1.4fr);
    min-width: 860px;
}

.session-counter-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.session-counter-name {
    font-weight: 600;
    color: var(--dash-text-primary);
}

.session-counter-meta {
    font-size: 12px;
    color: var(--dash-text-muted);
}

.session-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.session-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    color: var(--dash-text-primary);
    background: rgba(148, 163, 184, 0.15);
}

.session-type-studio {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.35);
}

.session-type-encoder {
    background: rgba(59, 130, 246, 0.16);
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.35);
}

.session-type-schedule {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.35);
}

.session-role-host {
    background: rgba(14, 165, 233, 0.15);
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.3);
}

.session-role-guest {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.3);
}

body.dashboard-body[data-theme="dark"] .session-role-host {
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.4);
}

body.dashboard-body[data-theme="dark"] .session-role-guest {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.4);
}

.session-counter-empty {
    border: 1px dashed var(--dash-outline-border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    color: var(--dash-text-secondary);
    background: var(--dash-mode-control-bg);
}

.session-counter-row-actions {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.session-counter-row-btn {
    border: 1px solid var(--dash-card-border);
    background: transparent;
    color: var(--dash-text-primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    min-height: 34px;
    padding: 7px 14px;
    cursor: pointer;
}

.session-counter-row-btn:hover,
.session-counter-row-btn:focus-visible {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
}

.session-counter-row-btn.is-danger:hover,
.session-counter-row-btn.is-danger:focus-visible {
    border-color: #ef4444;
    color: #ef4444;
}

.session-counter-row-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lab-header h3 {
    color: var(--dash-text-primary);
    font-size: 22px;
}

.chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--dash-chip-bg);
    color: var(--dash-chip-color);
    font-weight: 600;
    font-size: 13px;
}

.chip-outline {
    border: 1px solid var(--dash-chip-outline-color);
    background: transparent;
    color: var(--dash-text-secondary);
}

.lab-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--dash-text-secondary);
}

.field input,
.field select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--dash-input-border);
    background: var(--dash-input-bg);
    color: var(--dash-text-primary);
}

.mode-picker {
    display: flex;
    gap: 16px;
}

.mode-picker label {
    flex: 1;
    border: 1px solid var(--dash-mode-control-border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--dash-mode-control-bg);
    cursor: pointer;
    color: var(--dash-text-secondary);
}

.mode-picker input {
    accent-color: var(--primary-yellow);
}

.timeline {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-card {
    padding: 16px;
    border-radius: 16px;
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-card-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--dash-outline-border);
    color: var(--dash-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: var(--dash-mode-control-bg);
}

.timeline-links a:hover,
.timeline-links a:focus-visible {
    border-color: var(--dash-chip-outline-color);
    color: var(--dash-text-primary);
}

.timeline-card span {
    color: var(--dash-text-muted);
    font-size: 13px;
}

.timeline-empty {
    text-align: center;
    padding: clamp(28px, 6vw, 40px) 16px;
    border-radius: var(--panel-radius);
    background: var(--dash-mode-control-bg);
    border: 1px dashed var(--dash-outline-border);
    color: var(--dash-text-secondary);
}

.calendar-toggle-btn {
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    position: absolute;
    top: clamp(20px, 4vw, 28px);
    right: clamp(20px, 4vw, 28px);
    z-index: 2;
}

.calendar-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.calendar-toggle-btn[aria-pressed="true"] {
    border-color: var(--dash-chip-outline-color);
    background: rgba(245, 213, 71, 0.18);
}

.calendar-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: var(--dash-chip-outline-color);
}

.upcoming-pipeline.is-calendar-mode #pipelineIntro,
.upcoming-pipeline.is-calendar-mode #timeline {
    display: none;
}

.upcoming-pipeline:not(.is-calendar-mode) #teamCalendar {
    display: none;
}

.upcoming-pipeline.is-calendar-mode #teamCalendar {
    margin-top: 0;
}

.upcoming-pipeline.is-calendar-mode {
    padding: clamp(14px, 3.2vw, 22px);
    overflow-x: clip;
}

.upcoming-pipeline .section-heading {
    position: relative;
    padding-right: 108px;
}

.upcoming-pipeline .calendar-toggle-btn {
    position: absolute;
    top: 0;
    right: 0;
}

.upcoming-pipeline .mail-toggle-btn {
    right: 48px;
}

.team-mail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-mail[hidden] {
    display: none !important;
}

.team-calendar[hidden],
.timeline[hidden],
#pipelineIntro[hidden] {
    display: none !important;
}

.mail-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.mail-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mail-header-workspace-menu {
    position: relative;
}

.mail-header-workspace-trigger {
    border: 1px solid transparent;
    border-radius: 999px;
    background: #1f2024;
    color: #ffffff;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.mail-header-workspace-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mail-header-workspace-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.mail-header-workspace-value {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

.mail-header-workspace-chevron {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.mail-header-workspace-trigger[aria-expanded="true"] .mail-header-workspace-chevron {
    transform: rotate(180deg);
}

.chat-workspace-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #2c2d33;
    display: grid;
    gap: 6px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    z-index: 20;
}

.chat-workspace-menu[hidden] {
    display: none !important;
}

.chat-workspace-option {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    padding: 12px 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.chat-workspace-option:hover,
.chat-workspace-option:focus-visible {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.chat-workspace-option.is-active {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.mail-header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mail-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-mode-control-bg);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    color: var(--dash-text-primary);
}

.mail-icon-btn svg {
    width: 18px;
    height: 18px;
}

.mail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.6fr);
    gap: 12px;
}

.mail-inline-composer {
    border: 1px solid var(--dash-outline-border);
    border-radius: 12px;
    background: var(--dash-card-bg);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.mail-inline-composer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mail-inline-composer textarea,
.mail-inline-composer input {
    width: 100%;
    border: 1px solid var(--dash-outline-border);
    border-radius: 10px;
    padding: 10px;
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    font-family: inherit;
}

.mail-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mail-layout--pro .mail-thread-list,
.mail-layout--pro .mail-reader {
    min-height: 540px;
    max-height: 70vh;
    overflow-y: auto;
}

.mail-layout--pro .mail-compose-surface {
    min-height: 540px;
    max-height: 70vh;
    overflow-y: auto;
}

.mail-layout--pro .mail-sidebar {
    min-height: 540px;
}

.dashboard-mail-layout {
    grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 0.95fr) minmax(420px, 1.2fr);
    align-items: start;
}

.dashboard-mail-sidebar-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.dashboard-mail-label {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dash-text-muted);
}

.dashboard-mail-address-chip {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--dash-outline-border);
    border-radius: 12px;
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-primary);
    font-weight: 600;
    word-break: break-word;
}

.dashboard-mail-search {
    margin-top: 4px;
}

.mail-sidebar,
.mail-reader {
    border: 1px solid var(--dash-outline-border);
    border-radius: 12px;
    background: var(--dash-card-bg);
    padding: 12px;
    min-height: 360px;
}

.mail-thread-list {
    border: none;
    background: transparent;
    padding: 0;
    min-height: 200px;
}

.mail-compose-surface {
    grid-column: 1 / -1;
}

.mail-compose-surface[hidden] {
    display: none !important;
}

.chat-youtube-handle {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.mail-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mail-mobile-compose-panel {
    margin: 8px 0 12px;
}

.mail-mobile-compose-back {
    border: none;
    background: transparent;
    color: var(--dash-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.mail-mobile-compose-back svg {
    width: 18px;
    height: 18px;
}

.mail-compose-icon-btn {
    margin-left: auto;
    border: 1px solid var(--dash-outline-border);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-primary);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.mail-compose-icon-btn svg {
    width: 18px;
    height: 18px;
}

.mail-folder-dropdown {
    position: relative;
}

.mail-folder-menu-button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 16px;
    min-width: 110px;
    background: #1f2024;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.mail-folder-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #2c2d33;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    padding: 8px;
    z-index: 20;
}

.mail-folder-menu-item {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mail-folder-menu-item:hover,
.mail-folder-menu-item.is-active {
    background: rgba(255, 255, 255, 0.12);
}

.mail-folder-menu-item-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mail-folder-menu-item-icon {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
}

.mail-folder-menu-item-icon svg {
    width: 18px;
    height: 18px;
}

.mail-folder-menu-item-count {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.74);
}

.mail-unread-toggle {
    border: 1px solid var(--dash-outline-border);
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.mail-unread-toggle.is-active {
    border-color: var(--dash-chip-outline-color);
    box-shadow: 0 0 0 2px rgba(245, 213, 71, 0.2);
    background: rgba(245, 213, 71, 0.12);
}

.mail-thread-list {
    border: none;
    background: transparent;
    padding: 0;
    min-height: 200px;
}

.mail-thread-card {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--dash-text-primary);
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    cursor: pointer;
}

.mail-thread-card:hover {
    background: var(--dash-mode-control-bg);
}

.mail-thread-card.is-active {
    border-color: var(--dash-outline-border);
    background: var(--dash-mode-control-bg);
}

.mail-thread-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #1f2024;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
}

.mail-thread-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mail-avatar-placeholder {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    display: inline-block;
}

.mail-thread-meta {
    min-width: 0;
}

.mail-thread-meta p {
    margin: 0;
}

.mail-thread-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px !important;
}

.mail-thread-top strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.02rem;
}

.mail-thread-top span {
    color: var(--dash-text-muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.mail-thread-subject,
.mail-thread-snippet {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-thread-subject {
    font-weight: 600;
}

.mail-thread-snippet {
    color: var(--dash-text-muted);
}

.mail-reader-person {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.mail-delete-icon-btn {
    border: 1px solid var(--dash-outline-border);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-primary);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}

.mail-delete-icon-btn svg {
    width: 18px;
    height: 18px;
}

.mail-reader-person h5,
.mail-reader-person p {
    margin: 0;
}

.mail-message-bubble {
    border-radius: 16px;
    background: var(--dash-mode-control-bg);
    padding: 12px 14px;
    margin-bottom: 18px;
}

.mail-message-bubble p {
    margin: 0;
}

.mail-message-time {
    color: var(--dash-text-muted);
    font-size: 0.88rem;
    margin-bottom: 8px !important;
}

.mail-reply-box {
    border: 1px solid var(--dash-outline-border);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mail-inline-editor {
    min-height: 48px;
    outline: none;
    font: inherit;
    color: var(--dash-text-primary);
    line-height: 1.45;
}

.mail-inline-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--dash-text-muted);
}

.mail-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mail-media-picker {
    border: 1px solid var(--dash-outline-border);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    background: transparent;
    color: var(--dash-text-primary);
}

.mail-media-picker svg {
    width: 18px;
    height: 18px;
}

#mailQuickReplyMedia {
    display: none;
}

.mail-folder,
.mail-thread {
    width: 100%;
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-primary);
    border-radius: 10px;
    text-align: left;
    padding: 9px 10px;
}

.mail-folder.is-active,
.mail-thread.is-active {
    border-color: var(--dash-chip-outline-color);
    background: rgba(245, 213, 71, 0.14);
}

.mail-thread {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.mail-reader pre {
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.55;
}

.mail-empty {
    color: var(--dash-text-muted);
}

.mail-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: grid;
    place-items: center;
    z-index: 100;
}

.mail-modal[hidden] {
    display: none;
}

.mail-modal-card {
    width: min(520px, calc(100% - 24px));
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-outline-border);
    border-radius: 14px;
    padding: 18px;
    position: relative;
}

.mail-settings-modal-card {
    width: min(640px, calc(100% - 24px));
    border-radius: 20px;
    padding: 22px 22px 16px;
}

.mail-settings-modal-card h3 {
    margin: 4px 0 12px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
}

.mail-settings-list {
    display: grid;
    gap: 8px;
    padding: 12px 6px;
}

.mail-settings-item {
    border: 1px solid transparent;
    background: transparent;
    color: var(--dash-text-primary);
    border-radius: 14px;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
}

.mail-settings-item-icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
}

.mail-settings-item-icon svg {
    width: 20px;
    height: 20px;
}

.mail-settings-profile-card {
    border: 1px solid rgba(245, 213, 71, 0.22);
    border-radius: 20px;
    padding: 18px;
    display: grid;
    gap: 12px;
    background: linear-gradient(180deg, rgba(245, 213, 71, 0.09), rgba(255, 255, 255, 0.04)), var(--dash-card-bg);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}
.mail-settings-profile-card-header {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mail-settings-profile-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dash-text-muted);
}
.mail-settings-profile-heading {
    margin: 0;
    font-size: 1.05rem;
}
.mail-settings-profile-copy {
    margin: 0;
    color: var(--dash-text-muted);
    font-size: 0.9rem;
}
.mail-settings-profile-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}
.mail-settings-profile-preview .mail-thread-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
}
.mail-settings-profile-name {
    margin: 0;
    font-weight: 600;
}
.mail-settings-profile-address {
    margin: 0;
    color: var(--dash-text-muted);
    font-size: 0.85rem;
}
.mail-settings-profile-card label {
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    margin-top: 4px;
}
.mail-settings-profile-card input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--dash-border, rgba(255,255,255,0.12));
    background: rgba(255,255,255,0.06);
    color: var(--dash-text-primary);
}
.mail-settings-emoji-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mail-settings-emoji-row button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    font-size: 1.2rem;
}
.mail-settings-emoji-row button.is-active {
    border-color: var(--dash-accent, #4caf50);
    background: rgba(76,175,80,0.15);
}
.mail-settings-profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.mail-feedback-modal-card {
    width: min(760px, calc(100% - 24px));
    border-radius: 20px;
    padding: 20px 20px 0;
}

.mail-feedback-modal-card h3 {
    margin: 6px 0 6px;
    font-size: 2rem;
    line-height: 1.15;
}

.mail-feedback-modal-card > p {
    margin: 0 0 12px;
    color: var(--dash-text-muted);
    font-size: 0.98rem;
}

.mail-feedback-form {
    display: grid;
    gap: 12px;
}

.mail-feedback-form textarea,
.mail-feedback-form input {
    width: 100%;
    border: 1px solid var(--dash-outline-border);
    border-radius: 16px;
    padding: 14px;
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    font-family: inherit;
}

.mail-feedback-form textarea {
    min-height: 140px;
    resize: vertical;
}

.mail-feedback-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    width: fit-content;
    justify-content: flex-start;
}

.mail-feedback-checkbox input {
    width: 24px;
    height: 24px;
    margin: 0;
    flex: 0 0 auto;
}

.mail-feedback-checkbox span {
    white-space: nowrap;
}

.mail-feedback-actions {
    margin: 6px -20px 0;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--dash-outline-border);
    display: flex;
    justify-content: flex-end;
}

.mail-feedback-actions .btn-primary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.mail-compose-reader h5 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.mail-compose-reader .mail-reply-box input,
.mail-compose-reader .mail-reply-box textarea {
    width: 100%;
    border: 1px solid var(--dash-outline-border);
    border-radius: 10px;
    padding: 10px;
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    font-family: inherit;
}

.mail-compose-reader .mail-reply-box textarea {
    resize: vertical;
    min-height: 180px;
}

#mailMobileComposeForm input,
#mailMobileComposeForm textarea {
    width: 100%;
    border: 1px solid var(--dash-outline-border);
    border-radius: 10px;
    padding: 10px;
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    font-family: inherit;
}

#mailMobileComposeForm textarea {
    min-height: 140px;
    resize: vertical;
}

@media (max-width: 1024px) {
    .chat-page .dashboard-mobile-bar {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--dash-outline-border);
        border-radius: 18px;
        padding: 10px 14px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chat-page .mobile-menu-toggle {
        min-width: 170px;
    }

    .chat-page .panel.stream-lab.chat-stream-wide {
        margin-top: 6px;
    }

    .chat-page .mail-layout {
        display: block;
    }

    .chat-page .mail-sidebar {
        min-height: auto;
        padding: 10px;
    }

    .chat-page .mail-filter-row {
        gap: 8px;
    }

    .chat-page .mail-folder-dropdown,
    .chat-page .mail-folder-menu-button,
    .chat-page .mail-unread-toggle {
        flex: 1;
        min-width: 0;
    }

    .chat-page .mail-compose-icon-btn {
        flex: 0 0 40px;
        margin-left: 0;
    }

    .chat-page .mail-folder-menu {
        min-width: 100%;
    }

    .chat-page .mail-thread-card {
        margin-bottom: 6px;
        border-radius: 14px;
    }

    .chat-page .mail-mobile-compose-panel {
        margin: 6px 0 0;
    }

    .chat-page .mail-mobile-compose-panel .mail-reply-box {
        padding: 10px;
    }

    .chat-page .mail-mobile-compose-title {
        margin: 0;
        font-weight: 600;
    }
}

.mail-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: var(--dash-text-primary);
    font-size: 34px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.mail-inline-editor--compose {
    min-height: 180px;
    max-height: 320px;
    overflow-y: auto;
}

.mail-modal-card form {
    display: grid;
    gap: 8px;
}

.mail-modal-card form input,
.mail-modal-card form textarea {
    width: 100%;
    border: 1px solid var(--dash-outline-border);
    border-radius: 10px;
    padding: 10px;
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    font-family: inherit;
}

.mail-reader-head h5 {
    margin-bottom: 10px;
}

.mail-toolbar-actions {
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mail-toolbar-actions[hidden] {
    display: none !important;
}

.chat-compose-btn {
    border-radius: 999px;
    padding: 10px 16px;
    white-space: nowrap;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--dash-outline-border);
}

.chat-comments-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.05fr) minmax(0, 1.12fr);
    gap: 12px;
    align-items: stretch;
}

.chat-live-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.chat-live-workspace[hidden] {
    display: none !important;
}

.chat-live-embed {
    border: 1px solid var(--dash-outline-border);
    background: #ffffff;
    border-radius: 14px;
    min-height: 72vh;
    overflow: hidden;
}

.chat-live-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 72vh;
    border: 0;
    background: #ffffff;
}

.chat-comments-workspace[hidden],
.mail-layout[hidden] {
    display: none !important;
}

.chat-comments-pane {
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-card-bg);
    border-radius: 16px;
    min-height: 420px;
    padding: 12px;
    min-width: 0;
}

.chat-comments-pane-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 4px 4px 10px;
    border-bottom: 1px solid var(--dash-outline-border);
}

.chat-comments-pane-head h3 {
    margin: 2px 0 0;
    font-size: 0.98rem;
}

.chat-comments-pane-kicker {
    margin: 0;
    color: var(--dash-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.chat-comments-pane-count {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-primary);
    display: inline-grid;
    place-items: center;
    font-weight: 700;
}

.chat-comments-videos,
.chat-comments-list,
.chat-comments-reply {
    min-width: 0;
}

.chat-comments-list,
.chat-comments-reply {
    max-height: 72vh;
    overflow-y: auto;
}

#chatCommentsStatus {
    grid-column: 1 / -1;
    margin: 0;
}

.chat-comments-videos {
    border: 0;
    background: transparent;
    border-radius: 0;
    min-height: 0;
    padding: 0;
    max-height: 72vh;
    overflow-y: auto;
}

.chat-comments-list {
    border: 0;
    background: transparent;
    border-radius: 0;
    min-height: 0;
    padding: 0;
}

.chat-video-item {
    width: 100%;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    padding: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    align-items: center;
}

.chat-video-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ececec;
    background: #111827;
}

.chat-video-item.is-active {
    border-color: #065fd4;
    box-shadow: 0 0 0 1px rgba(6, 95, 212, 0.14);
    background: #f2f7ff;
}

.chat-video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    object-fit: cover;
    background: #f1f1f1;
}

.chat-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: 0;
}

.chat-video-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(15, 15, 15, 0.82);
    color: #fff;
    font-size: 0.86rem;
    line-height: 1;
}

.chat-video-meta {
    display: grid;
    align-content: start;
    gap: 3px;
    text-align: left;
    padding: 2px 2px 2px 0;
    min-width: 0;
}

.chat-video-kicker {
    margin: 0;
    color: #606060;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chat-video-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    color: #0f0f0f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-video-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-video-count {
    margin: 0;
    font-size: 0.8rem;
    color: #606060;
}

.chat-video-state {
    color: #065fd4;
    font-size: 0.75rem;
    font-weight: 600;
}

#chatCommentsStatus[data-kind="success"] {
    color: #15803d;
}

#chatCommentsStatus[data-kind="error"] {
    color: #b91c1c;
}

.chat-comment-item {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f0f0f;
    padding: 10px 12px;
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chat-comment-item:hover {
    border-color: #c7c7c7;
    background: #fcfcfc;
}

.chat-comment-item.is-active {
    border-color: #065fd4;
    background: #f8fbff;
    box-shadow: 0 0 0 1px rgba(6, 95, 212, 0.14);
}

.chat-comment-select {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0;
    margin: 0;
    width: 100%;
    color: inherit;
    cursor: pointer;
}

.chat-comment-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
}

.chat-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    background: #f1f1f1;
    border: 1px solid #e5e5e5;
}

.chat-comment-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.chat-comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.chat-comment-meta {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #606060;
    min-width: 0;
    flex-wrap: wrap;
}

.chat-comment-meta strong {
    color: #0f0f0f;
    font-size: 0.88rem;
}

.chat-comment-video {
    margin: 0;
    color: #606060;
    font-size: 0.78rem;
}

.chat-comment-body {
    margin: 0;
    color: #0f0f0f;
    font-size: 0.88rem;
    line-height: 1.38;
}

.chat-comment-status {
    display: inline-flex;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #f1b4b4;
    background: #fff5f5;
    color: #941b1b;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.chat-comment-thread-meta {
    margin: 0;
    color: #606060;
    font-size: 0.74rem;
    font-weight: 600;
}

.chat-comment-status.is-replied {
    border-color: #b8e0c1;
    background: #edf9f0;
    color: #14532d;
}

.chat-comment-actions-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 2px;
    padding-left: 50px;
}

.chat-comment-action {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #606060;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 2px 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    border-radius: 16px;
}

.chat-comment-action.is-active {
    color: #111827;
    background: #eceff4;
}

.chat-comment-detail-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 4px;
}

.chat-comment-detail-head h4 {
    margin: 0;
}

.chat-existing-reply {
    margin: 0 0 12px;
    border: 1px solid #d3e3fd;
    background: #f8fbff;
    border-radius: 10px;
    padding: 10px;
}

.chat-existing-reply-label {
    margin: 0 0 6px;
    font-size: 0.75rem;
    color: #1a73e8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chat-existing-reply p {
    margin: 0;
    color: #1f1f1f;
    line-height: 1.45;
}

.chat-comments-reply blockquote {
    margin: 0;
    padding: 12px;
    border-left: 3px solid #065fd4;
    background: #f8f9fa;
    border-radius: 10px;
    color: #1f1f1f;
}

.chat-comments-reply {
    padding: 14px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.chat-comment-detail-block {
    display: grid;
    gap: 8px;
}

.chat-comment-detail-label {
    margin: 0;
    color: var(--dash-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chat-comment-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-report-subtitle {
    margin: 4px 0 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.chat-report-options {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.chat-report-option {
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1.05rem;
    text-align: left;
    color: #111827;
    cursor: pointer;
}

.chat-report-radio {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-report-option.is-selected .chat-report-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #111827;
}

.chat-report-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-report-panel-head h3 {
    margin: 0;
}

#reportPanelSubmit[disabled] {
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: #8b8b8b;
    cursor: not-allowed;
}

.chat-comments-reply textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 10px 12px;
    color: #0f0f0f;
    font-family: inherit;
    resize: vertical;
}

.chat-comments-reply textarea:focus {
    outline: none;
    border-color: #065fd4;
    box-shadow: 0 0 0 2px rgba(6, 95, 212, 0.16);
}

.chat-nested-section {
    margin-top: 0;
    padding: 8px 10px;
    border: 1px solid #eceff3;
    border-radius: 10px;
    background: #fafbfc;
    margin-left: 50px;
}

.chat-nested-toggle {
    border: 0;
    background: transparent;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.chat-nested-toggle span {
    font-size: 0.82rem;
}

.chat-nested-replies {
    margin-top: 8px;
    border-left: 2px solid #e5e7eb;
    padding-left: 10px;
    display: none;
    gap: 8px;
    max-height: 176px;
    overflow-y: auto;
}

.chat-nested-replies.is-open {
    display: grid;
}

.chat-nested-reply {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 8px;
    background: #fafafa;
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.chat-nested-reply.is-active {
    border-color: #065fd4;
    background: #eef5ff;
}

.chat-nested-reply p {
    margin: 0;
    font-size: 0.82rem;
    color: #1f2937;
    line-height: 1.4;
}

.chat-nested-reply p + p {
    margin-top: 4px;
}

.chat-comments-list,
.chat-comments-reply {
    min-width: 0;
}

body.dashboard-body[data-theme="dark"] .chat-page .dashboard-mobile-bar {
    background: rgba(15, 23, 42, 0.92);
}

body.dashboard-body[data-theme="dark"] .chat-live-embed,
body.dashboard-body[data-theme="dark"] .chat-live-embed iframe,
body.dashboard-body[data-theme="dark"] .chat-comments-pane {
    background: rgba(15, 23, 42, 0.88);
}

body.dashboard-body[data-theme="dark"] .chat-video-item,
body.dashboard-body[data-theme="dark"] .chat-comment-item,
body.dashboard-body[data-theme="dark"] .chat-nested-section,
body.dashboard-body[data-theme="dark"] .chat-nested-reply,
body.dashboard-body[data-theme="dark"] .chat-comments-reply blockquote,
body.dashboard-body[data-theme="dark"] .chat-existing-reply {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
    color: var(--dash-text-primary);
}

body.dashboard-body[data-theme="dark"] .chat-video-item.is-active,
body.dashboard-body[data-theme="dark"] .chat-comment-item.is-active,
body.dashboard-body[data-theme="dark"] .chat-nested-reply.is-active {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(96, 165, 250, 0.55);
}

body.dashboard-body[data-theme="dark"] .chat-video-title,
body.dashboard-body[data-theme="dark"] .chat-comment-meta strong,
body.dashboard-body[data-theme="dark"] .chat-comment-body,
body.dashboard-body[data-theme="dark"] .chat-existing-reply p,
body.dashboard-body[data-theme="dark"] .chat-nested-reply p,
body.dashboard-body[data-theme="dark"] .chat-report-option {
    color: var(--dash-text-primary);
}

body.dashboard-body[data-theme="dark"] .chat-video-kicker,
body.dashboard-body[data-theme="dark"] .chat-video-count,
body.dashboard-body[data-theme="dark"] .chat-comment-meta,
body.dashboard-body[data-theme="dark"] .chat-comment-video,
body.dashboard-body[data-theme="dark"] .chat-comment-thread-meta,
body.dashboard-body[data-theme="dark"] .chat-comments-pane-kicker,
body.dashboard-body[data-theme="dark"] .chat-comment-detail-label,
body.dashboard-body[data-theme="dark"] .chat-nested-toggle,
body.dashboard-body[data-theme="dark"] .subtitle {
    color: var(--dash-text-muted);
}

body.dashboard-body[data-theme="dark"] .chat-comments-reply textarea {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.28);
    color: var(--dash-text-primary);
}

body.dashboard-body[data-theme="dark"] .chat-video-media {
    border-color: rgba(148, 163, 184, 0.22);
}

body.dashboard-body[data-theme="dark"] .chat-comment-avatar {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.9);
}

@media (max-width: 640px) {
    .chat-video-item {
        grid-template-columns: 1fr;
    }

    .chat-comment-actions-row,
    .chat-nested-section {
        padding-left: 0;
        margin-left: 0;
    }

    .chat-comment-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.mail-handle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
}

.mail-handle-row input,
.mail-sidebar input {
    width: 100%;
    border: 1px solid var(--dash-outline-border);
    border-radius: 10px;
    padding: 10px;
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
}

.mail-setup-checklist {
    margin: 0;
    padding-left: 18px;
    color: var(--dash-text-secondary);
    display: grid;
    gap: 10px;
}

.calendar-event-download,
.calendar-detail-download {
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-mode-control-bg);
    color: var(--dash-text-primary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.calendar-event-download:hover,
.calendar-event-download:focus-visible,
.calendar-detail-download:hover,
.calendar-detail-download:focus-visible {
    border-color: var(--dash-chip-outline-color);
    transform: translateY(-1px);
}

.calendar-event-meta {
    gap: 8px;
}

.team-calendar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.calendar-header h4 {
    margin: 4px 0 0;
    font-size: 1.1rem;
    color: var(--dash-text-primary);
}

.calendar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.calendar-schedule-btn {
    border: 1px solid var(--dash-outline-border);
    background: rgba(245, 213, 71, 0.2);
    color: var(--dash-text-primary);
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.calendar-schedule-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.calendar-schedule {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 38px;
}

.calendar-schedule-btn,
.calendar-schedule-choice {
    grid-area: 1 / 1;
}

.calendar-schedule-choice {
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(4px) scale(0.96);
    transform-origin: center;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.calendar-schedule.is-split .calendar-schedule-choice {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.calendar-schedule.is-split .calendar-schedule-btn {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.calendar-schedule-option {
    border: 1px solid var(--dash-outline-border);
    background: rgba(245, 213, 71, 0.2);
    color: var(--dash-text-primary);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 92px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-schedule-option:hover {
    transform: translateY(-1px);
    border-color: var(--dash-chip-outline-color);
    box-shadow: var(--shadow-sm);
    background: rgba(245, 213, 71, 0.16);
}

.calendar-detail-preview-media {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--dash-outline-border);
}

.calendar-detail-preview-text {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: var(--dash-text-secondary);
}

.calendar-detail-preview-link {
    display: inline-flex;
    margin-top: 8px;
    font-weight: 600;
}

.calendar-nav-btn {
    border: 1px solid var(--dash-outline-border);
    background: var(--dash-card-bg);
    color: var(--dash-text-primary);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.calendar-weekday {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dash-text-muted);
    text-align: center;
    padding-bottom: 6px;
}

.calendar-day {
    border: 1px solid var(--dash-outline-border);
    border-radius: 12px;
    padding: 8px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--dash-card-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.calendar-day[data-outside="true"] {
    opacity: 0.45;
}

.calendar-day[data-selected="true"] {
    border-color: var(--dash-chip-outline-color);
    background: rgba(245, 213, 71, 0.24);
}

.calendar-day-number {
    font-weight: 700;
    color: var(--dash-text-primary);
}

.calendar-day-event {
    font-size: 12px;
    color: var(--dash-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day-dots {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.calendar-day-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--primary-yellow);
}

.calendar-day-count {
    color: var(--dash-text-muted);
    font-weight: 600;
}

.calendar-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.calendar-event-list,
.calendar-event-details {
    min-width: 0;
    border: 1px solid var(--dash-card-border);
    border-radius: 16px;
    padding: 14px;
    background: var(--dash-card-bg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-event-card {
    border: 1px solid var(--dash-outline-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 213, 71, 0.08));
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-event-card:hover {
    transform: translateY(-1px);
    border-color: var(--dash-chip-outline-color);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.calendar-event-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-event-title strong,
.calendar-event-message,
.calendar-event-details strong,
.calendar-event-details p {
    overflow-wrap: anywhere;
}

.calendar-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-yellow);
    box-shadow: 0 0 0 4px rgba(245, 213, 71, 0.2);
}

.calendar-event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-event-time {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dash-text-primary);
    background: rgba(245, 213, 71, 0.2);
    border-radius: 999px;
    padding: 2px 8px;
}

.calendar-event-message {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-meeting-seat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.calendar-meeting-seat-option {
    border: 1px solid var(--dash-outline-border);
    border-radius: 999px;
    padding: 2px 8px 2px 4px;
    background: rgba(255, 255, 255, 0.75);
    max-width: 100%;
}

.calendar-meeting-seat-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.calendar-meeting-seat-avatar {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(245, 213, 71, 0.2);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    overflow: hidden;
    flex-shrink: 0;
}

.calendar-meeting-seat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calendar-meeting-seat-name {
    margin: 0;
    font-size: 0.72rem;
    color: var(--dash-text-primary);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-meeting-seat-count {
    font-size: 0.72rem;
    color: var(--dash-text-muted);
    align-self: center;
}

.calendar-event-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.calendar-event-delete,
.timeline-delete-btn,
.calendar-detail-delete {
    border: 1px solid var(--dash-outline-border);
    background: transparent;
    color: var(--dash-text-secondary);
    border-radius: 10px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    font-weight: 500;
    padding: 0;
}

.calendar-event-delete:hover,
.timeline-delete-btn:hover,
.calendar-detail-delete:hover {
    border-color: var(--dash-chip-outline-color);
    color: var(--dash-text-primary);
    background: rgba(245, 213, 71, 0.14);
}

.calendar-detail-delete {
    width: auto;
    height: auto;
    padding: 8px 12px;
    margin-top: 8px;
    font-weight: 600;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.calendar-event-card[data-active="true"] {
    border-color: var(--dash-chip-outline-color);
    background: linear-gradient(135deg, rgba(245, 213, 71, 0.26), rgba(255, 255, 255, 0.95));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.calendar-event-details {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 213, 71, 0.12));
}

.calendar-detail-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-detail-kicker {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dash-text-muted);
    font-weight: 700;
}

.calendar-event-details strong {
    font-size: 1.1rem;
    line-height: 1.4;
}

.calendar-event-details p {
    margin: 0;
    color: var(--dash-text-secondary);
    line-height: 1.55;
}

.calendar-detail-time {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dash-text-primary);
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 5px 11px;
}

.calendar-detail-actions {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-detail-actions .calendar-detail-download,
.calendar-detail-actions .calendar-detail-delete {
    margin-top: 0;
}

body.dashboard-body[data-theme="dark"] .calendar-event-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(234, 179, 8, 0.2));
    border-color: rgba(245, 213, 71, 0.35);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.4);
}

body.dashboard-body[data-theme="dark"] .calendar-event-card:hover {
    border-color: rgba(245, 213, 71, 0.7);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.5);
}

body.dashboard-body[data-theme="dark"] .calendar-event-card[data-active="true"] {
    background: linear-gradient(135deg, rgba(245, 213, 71, 0.28), rgba(15, 23, 42, 0.96));
    border-color: rgba(245, 213, 71, 0.75);
    box-shadow: 0 18px 32px rgba(2, 6, 23, 0.55);
}

body.dashboard-body[data-theme="dark"] .calendar-event-details {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(245, 213, 71, 0.12));
}

body.dashboard-body[data-theme="dark"] .calendar-meeting-seat-option {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(245, 213, 71, 0.35);
}

body.dashboard-body[data-theme="dark"] .calendar-event-time {
    background: rgba(245, 213, 71, 0.24);
    color: #fef3c7;
}

body.dashboard-body[data-theme="dark"] .calendar-event-details .timeline-links a {
    background: rgba(245, 213, 71, 0.22);
    border-color: rgba(245, 213, 71, 0.48);
    color: #fef3c7;
}

body.dashboard-body[data-theme="dark"] .calendar-event-details .timeline-links a:hover,
body.dashboard-body[data-theme="dark"] .calendar-event-details .timeline-links a:focus-visible {
    background: rgba(245, 213, 71, 0.34);
    border-color: rgba(245, 213, 71, 0.75);
    color: #fff7d1;
}

body.dashboard-body[data-theme="dark"] .calendar-live-preview-block .post-preview-canvas.youtube-preview.youtube-post {
    background: #0b1220;
    color: #f8fafc;
    border-color: rgba(245, 213, 71, 0.3);
}

body.dashboard-body[data-theme="dark"] .calendar-live-preview-block .youtube-community-preview {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.35);
    color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .calendar-live-preview-block .community-header,
body.dashboard-body[data-theme="dark"] .calendar-live-preview-block .community-message {
    color: #e2e8f0;
}

body.dashboard-body[data-theme="dark"] .calendar-live-preview-block .community-visibility,
body.dashboard-body[data-theme="dark"] .calendar-live-preview-block .community-content-hint {
    color: #94a3b8;
}

body.dashboard-body[data-theme="dark"] .calendar-live-preview-block .community-avatar {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

body.dashboard-body[data-theme="dark"] .calendar-detail-preview-link {
    color: #fde68a;
}

body.dashboard-body[data-theme="dark"] .calendar-detail-preview-link:hover,
body.dashboard-body[data-theme="dark"] .calendar-detail-preview-link:focus-visible {
    color: #fef3c7;
}


.calendar-event-details .timeline-links a {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(15, 23, 42, 0.12);
}

.calendar-event-details .timeline-links a:hover,
.calendar-event-details .timeline-links a:focus-visible {
    background: rgba(245, 213, 71, 0.2);
}

.calendar-empty {
    color: var(--dash-text-secondary);
    font-size: 0.95rem;
}

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

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .calendar-nav {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        justify-content: flex-start;
        align-items: stretch;
    }

    .calendar-schedule {
        width: 100%;
    }

    .calendar-schedule-btn {
        width: 100%;
    }

    .calendar-schedule-option {
        flex: 1 1 0;
        min-width: 0;
    }

    .calendar-schedule-choice {
        width: 100%;
    }

    .calendar-grid {
        gap: 6px;
    }

    .calendar-day {
        min-height: 64px;
        padding: 8px 6px;
    }
}

@media (max-width: 560px) {
    .calendar-nav-btn {
        width: 34px;
        height: 34px;
    }

    .calendar-weekday {
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .calendar-day {
        min-height: 56px;
        border-radius: 10px;
        gap: 4px;
        padding: 7px 4px;
    }

    .calendar-day-number {
        font-size: 0.82rem;
    }

    .calendar-day-event {
        display: none;
    }

    .calendar-day-dots {
        display: inline-flex;
    }

    .calendar-day-count {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .calendar-schedule-option {
        min-width: 0;
        padding-inline: 8px;
    }
}

@media (max-width: 420px) {
    .upcoming-pipeline.is-calendar-mode {
        padding: 12px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-weekday {
        font-size: 9px;
        letter-spacing: 0.03em;
    }

    .calendar-day {
        min-height: 52px;
        border-radius: 9px;
        padding: 6px 3px;
    }
}

.lock-required.locked {
    position: relative;
    overflow: hidden;
}

.lock-required.locked::after {
    content: 'Upgrade to unlock';
    position: absolute;
    inset: 0;
    background: var(--dash-lock-overlay-bg);
    color: var(--dash-lock-overlay-text);
    display: grid;
    place-items: center;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.lock-required.locked button,
.lock-required.locked input,
.lock-required.locked select,
.lock-required.locked .platform-connect {
    pointer-events: none;
    opacity: 0.5;
}

.toast {
    position: fixed;
    top: 24px;
    right: 40px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--dash-toast-bg);
    color: var(--dash-toast-text);
    border: 1px solid var(--dash-toast-border);
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.2s ease;
    z-index: 12000;
    box-shadow: var(--dash-toast-shadow);
    max-width: min(420px, calc(100vw - 24px));
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.toast-message {
    flex: 1;
}

.toast[data-persistent='true'] {
    cursor: pointer;
}

.toast-dismiss {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.toast-dismiss:hover,
.toast-dismiss:focus-visible {
    opacity: 1;
}

.global-invite-toast {
    background: var(--dash-toast-bg, #0f172a);
    color: var(--dash-toast-text, #f8fafc);
    border: 1px solid rgba(245, 213, 71, 0.45);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: var(--dash-toast-shadow, 0 18px 30px rgba(15, 23, 42, 0.25));
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.global-invite-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Plans Comparison */
body.plans-body {
    background: radial-gradient(circle at top left, rgba(245, 213, 71, 0.18), transparent 45%),
        radial-gradient(circle at 85% 5%, rgba(120, 170, 255, 0.2), transparent 40%),
        var(--gray-100);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
}

.plans-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) var(--page-gutter) clamp(56px, 8vw, 96px);
}

.plans-hero {
    text-align: center;
    margin-bottom: 48px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(245, 213, 71, 0.08));
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.plans-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(245, 213, 71, 0.18), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.plans-hero h1 {
    font-size: clamp(32px, 5vw, 44px);
    margin-bottom: 16px;
}

.plans-hero p {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.plans-pricing {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 40px);
    margin-bottom: 48px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 360px));
    justify-content: center;
    gap: 24px;
    margin: 0 auto;
    max-width: 1200px;
}

.plan-card {
    background: linear-gradient(160deg, #ffffff 0%, rgba(245, 247, 255, 0.7) 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plans-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.plan-note {
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-card:hover {
    border-color: rgba(245, 213, 71, 0.7);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.plan-card[data-plan-card="pro"] {
    border: 2px solid rgba(245, 213, 71, 0.9);
    box-shadow: 0 35px 80px rgba(245, 213, 71, 0.18);
    position: relative;
    overflow: hidden;
}

.plan-card[data-plan-card="pro"]::after {
    content: 'Most popular';
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(245, 213, 71, 0.95);
    color: #111827;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-price {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
}

.plan-price span {
    font-size: 16px;
    color: var(--text-secondary);
}

.plan-description {
    color: var(--text-secondary);
}

.plan-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.03);
    padding: 8px 10px;
    border-radius: 10px;
}

.pricing-features li.seat-tooltip {
    align-items: center;
}

.pricing-features .seat-tooltip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features .seat-tooltip-icon svg {
    display: block;
}

.pricing-features .seat-tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--text-primary);
    color: var(--background);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.pricing-features .seat-tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pricing-features .seat-tooltip-icon:hover::after,
.pricing-features .seat-tooltip-icon:focus::after,
.pricing-features .seat-tooltip-icon:hover::before,
.pricing-features .seat-tooltip-icon:focus::before {
    opacity: 1;
}

.plan-feature-list li.seat-tooltip {
    position: relative;
    cursor: help;
}

.plan-feature-list li.seat-tooltip::before {
    content: '✔';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--primary-yellow);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    background: var(--yellow-light);
}

.plan-feature-list li.seat-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--text-primary);
    color: var(--background);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.plan-feature-list li.seat-tooltip:hover::after,
.plan-feature-list li.seat-tooltip:focus-within::after {
    opacity: 1;
}

.plan-feature-list li::before {
    content: '✔';
    color: var(--primary-yellow);
    font-weight: 700;
}


.pricing-features li.feature-unavailable,
.plan-feature-list li.feature-unavailable {
    color: #6b7280;
}

.pricing-features li.feature-unavailable::before,
.plan-feature-list li.feature-unavailable::before {
    content: '✕';
    color: #ef4444;
    font-weight: 700;
}

.plans-table {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.plans-table h3 {
    margin-bottom: 16px;
}

.plans-table .table-scroll {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.plans-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 780px;
}

.plans-table th,
.plans-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    font-size: 15px;
}

.plans-table thead th {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
    font-weight: 700;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.plans-table tbody tr:not(.plan-category-row):nth-child(even) {
    background: rgba(15, 23, 42, 0.02);
}

.plans-table tbody tr:not(.plan-category-row):hover {
    background: rgba(245, 213, 71, 0.08);
}

.plans-table .plan-category-row td {
    background: linear-gradient(135deg, rgba(245, 213, 71, 0.2), rgba(120, 170, 255, 0.18));
    border-color: rgba(245, 213, 71, 0.4);
    font-weight: 700;
}

.plans-table .category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plans-table .category-desc {
    margin-left: 12px;
    font-weight: 500;
    color: #1f2937;
    font-size: 0.92rem;
}

.plans-footer-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(245, 213, 71, 0.3), #ffffff);
    border-radius: 28px;
    padding: 48px 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

/* Checkout Page */
.checkout-body {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(245, 213, 71, 0.25), transparent 55%), var(--gray-100);
    padding: 24px clamp(16px, 3vw, 48px) 72px;
    position: relative;
    overflow-x: hidden;
}

.checkout-atmosphere {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(244, 247, 252, 0.9));
    z-index: -1;
}

.checkout-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 16px 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.checkout-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
}

.checkout-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-shell {
    margin: 32px auto 0;
    max-width: 1160px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.checkout-summary,
.checkout-panel {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.12);
    padding: clamp(32px, 4vw, 48px);
}

.checkout-summary {
    position: relative;
    overflow: hidden;
}

.checkout-summary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(245, 213, 71, 0.12), transparent 60%);
    pointer-events: none;
}

.summary-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.summary-price {
    font-size: 42px;
    font-weight: 700;
}

.summary-copy {
    color: var(--text-secondary);
}

.summary-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.summary-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.summary-value {
    font-weight: 600;
}

.summary-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.summary-list li::before {
    content: '•';
    color: var(--primary-yellow);
    font-size: 18px;
}

.summary-footnote {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.panel-header {
    margin-bottom: 24px;
}

.panel-header.with-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.panel-header-copy {
    flex: 1 1 280px;
}

.panel-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.panel-header-actions .ghost-link {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

@media (max-width: 640px) {
    .panel-header.with-actions {
        flex-direction: column;
    }

    .panel-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.payment-element {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 20px;
    padding: 12px;
    background: #fdfdfd;
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.checkout-submit {
    min-width: 200px;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.checkout-support {
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
}

.payment-message {
    font-size: 14px;
    border-radius: 10px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.05);
}

.payment-message[data-status="error"] {
    color: #b42318;
    background: rgba(244, 63, 94, 0.1);
}

.payment-message[data-status="success"] {
    color: #056647;
    background: rgba(16, 185, 129, 0.12);
}

.button-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(15, 23, 42, 0.2);
    border-top-color: rgba(15, 23, 42, 0.6);
    animation: spin 0.8s linear infinite;
    opacity: 0;
    visibility: hidden;
}

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

.checkout-loading {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    z-index: 50;
}

.checkout-loading[hidden] {
    display: none;
}

.loading-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .checkout-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .checkout-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-submit {
        width: 100%;
    }
}

/* Billing Page */
.billing-body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% -10%, rgba(245, 213, 71, 0.35), transparent 55%), var(--gray-100);
    padding: clamp(16px, 3vw, 48px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.billing-body[data-theme="dark"] {
    background: radial-gradient(circle at 20% -10%, rgba(245, 213, 71, 0.2), transparent 55%), #060b18;
    color: #e2e8f0;
}

.billing-atmosphere {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(244, 247, 252, 0.95));
    z-index: -1;
}

.billing-body[data-theme="dark"] .billing-atmosphere {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(6, 11, 24, 0.95));
}

.billing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.billing-body[data-theme="dark"] .billing-nav {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 28, 0.9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.billing-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-primary);
}

.billing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.billing-shell {
    margin: 36px auto 0;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.billing-panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.12);
}

.billing-body[data-theme="dark"] .billing-panel {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
}

.billing-summary {
    position: relative;
    overflow: hidden;
}

.billing-summary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(245, 213, 71, 0.18), transparent 60%);
    pointer-events: none;
}

.billing-summary .summary-heading {
    position: relative;
    z-index: 1;
}

.billing-price {
    font-size: 40px;
    font-weight: 700;
    margin-top: 12px;
}

.billing-feature-list {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.billing-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.billing-feature-list li::before {
    content: '•';
    color: var(--primary-yellow);
    font-size: 20px;
}

.billing-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.billing-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 24px;
    background: rgba(248, 250, 252, 0.8);
}

.billing-body[data-theme="dark"] .billing-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.billing-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.billing-subtext {
    color: var(--text-secondary);
    margin-top: 8px;
}

.billing-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.billing-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-secondary.danger {
    border-color: rgba(244, 63, 94, 0.4);
    color: #b42318;
}

.btn-secondary.danger:hover {
    border-color: #b42318;
    background: rgba(244, 63, 94, 0.08);
}

.billing-message {
    max-width: 480px;
    margin: 32px auto 0;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 500;
    text-align: center;
    background: rgba(15, 23, 42, 0.05);
}

.billing-body[data-theme="dark"] .billing-message {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.billing-message[data-tone="success"] {
    background: rgba(16, 185, 129, 0.15);
    color: #056647;
}

.billing-message[data-tone="error"] {
    background: rgba(244, 63, 94, 0.15);
    color: #b42318;
}

.billing-loading {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    z-index: 60;
}

.billing-loading[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .billing-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .billing-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

.plans-footer-cta h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.plans-footer-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Impact modal + badge (dashboard & billing) */
.impact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(245, 213, 71, 0.12);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.impact-chip:hover,
.impact-chip:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(245, 213, 71, 0.24);
    outline: none;
    transform: translateY(-1px);
}
.impact-chip span {
    display: inline-flex;
    align-items: center;
}

.impact-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 18, 32, 0.72);
    backdrop-filter: none;
    z-index: 1600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.impact-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.impact-dialog {
    width: min(520px, 90vw);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.18);
    color: var(--dash-text-primary, #0f172a);
}
.impact-dialog h3 {
    margin: 0 0 10px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
}
.impact-dialog p {
    margin: 0 0 14px;
    color: var(--dash-text-secondary, #475467);
    line-height: 1.5;
}
.impact-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.impact-dialog p + .impact-links {
    margin-top: 4px;
}
.impact-stats {
    margin: 14px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.impact-stat-card {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.03);
}
.impact-stat-card-water {
    border-color: rgba(2, 132, 199, 0.32);
    background: rgba(56, 189, 248, 0.12);
}
.impact-stat-card-trees {
    border-color: rgba(22, 163, 74, 0.32);
    background: rgba(74, 222, 128, 0.12);
}
.impact-stat-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.impact-stat-value {
    margin: 6px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.impact-choice-group {
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.impact-choice-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.12s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.impact-choice-option:hover {
    transform: translateY(-1px);
}
.impact-choice-option-water.is-selected {
    border-color: rgba(2, 132, 199, 0.65);
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.16);
    background: rgba(56, 189, 248, 0.18);
}
.impact-choice-option-trees.is-selected {
    border-color: rgba(22, 163, 74, 0.65);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.15);
    background: rgba(74, 222, 128, 0.18);
}
.impact-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    text-decoration: none;
    font-weight: 700;
    color: inherit;
    background: rgba(15, 23, 42, 0.02);
    transition: transform 0.12s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.impact-links a:hover,
.impact-links a:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 10px 26px rgba(245, 213, 71, 0.24);
    outline: none;
    transform: translateY(-1px);
}

body[data-theme="dark"] .impact-dialog {
    background: rgba(6, 11, 24, 0.94);
    border-color: rgba(248, 250, 252, 0.14);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65);
    color: #f8fafc;
}
body[data-theme="dark"] .impact-dialog p {
    color: rgba(226, 232, 240, 0.85);
}
body[data-theme="dark"] .impact-links a {
    border-color: rgba(248, 250, 252, 0.18);
    background: rgba(248, 250, 252, 0.08);
    color: #f8fafc;
}
body[data-theme="dark"] .impact-stat-card {
    border-color: rgba(248, 250, 252, 0.2);
    background: rgba(248, 250, 252, 0.06);
}
body[data-theme="dark"] .impact-stat-card-water {
    background: rgba(56, 189, 248, 0.2);
}
body[data-theme="dark"] .impact-stat-card-trees {
    background: rgba(74, 222, 128, 0.2);
}
body[data-theme="dark"] .impact-choice-option {
    border-color: rgba(248, 250, 252, 0.24);
}
body[data-theme="dark"] .impact-choice-option-water.is-selected {
    background: rgba(56, 189, 248, 0.22);
}
body[data-theme="dark"] .impact-choice-option-trees.is-selected {
    background: rgba(74, 222, 128, 0.22);
}

body[data-theme="dark"] .impact-choice-option {
    background: #ffffff;
    color: #0f172a;
}
@media (max-width: 640px) {
    .impact-stats,
    .impact-choice-group {
        grid-template-columns: 1fr;
    }
}
body[data-theme="dark"] .sidebar-impact[data-impact-choice="water"] {
    background: rgba(56, 189, 248, 0.16);
}
body[data-theme="dark"] .sidebar-impact[data-impact-choice="trees"] {
    background: rgba(74, 222, 128, 0.16);
}
body[data-theme="dark"] .impact-links a:hover,
body[data-theme="dark"] .impact-links a:focus-visible {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.impact-dismiss {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--accent);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent);
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(245, 213, 71, 0.24);
}
.impact-dismiss:hover,
.impact-dismiss:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 14px 34px rgba(245, 213, 71, 0.28);
    outline: none;
}

/* Settings Page */
.settings-body {
    min-height: 100vh;
    padding: clamp(16px, 3vw, 48px);
    background: radial-gradient(circle at 10% 20%, rgba(245, 213, 71, 0.4), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(125, 211, 252, 0.25), transparent 50%),
                #f8fafc;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
    position: relative;
}

.settings-body[data-theme="dark"] {
    background: radial-gradient(circle at 10% 20%, rgba(245, 213, 71, 0.2), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(125, 211, 252, 0.15), transparent 50%),
                #05060f;
    color: #e2e8f0;
}

.settings-atmosphere {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.95));
    z-index: -2;
}

.settings-body[data-theme="dark"] .settings-atmosphere {
    background: linear-gradient(135deg, rgba(10, 14, 24, 0.75), rgba(6, 10, 20, 0.9));
}

.settings-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 18px 26px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.settings-body[data-theme="dark"] .settings-nav {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 24, 0.85);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
}

.settings-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.settings-nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.settings-shell {
    margin: clamp(32px, 4vw, 56px) auto 0;
    max-width: 1100px;
    display: grid;
    gap: 28px;
}

.settings-panel {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: clamp(24px, 3vw, 40px);
    box-shadow: 0 35px 110px rgba(15, 23, 42, 0.12);
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.02);
}

.settings-toggle-title {
    margin: 0 0 4px;
    font-weight: 700;
}

.settings-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    background: #ffffff;
}

.settings-toggle-pill input {
    width: 16px;
    height: 16px;
}

.settings-body[data-theme="dark"] .settings-toggle-row {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.settings-body[data-theme="dark"] .settings-toggle-pill {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.settings-body[data-theme="dark"] .settings-panel {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.settings-summary {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: linear-gradient(135deg, rgba(245, 213, 71, 0.35), rgba(15, 23, 42, 0.04));
    border: 1px solid rgba(245, 213, 71, 0.4);
}

.settings-body[data-theme="dark"] .settings-summary {
    background: linear-gradient(135deg, rgba(245, 213, 71, 0.18), rgba(15, 23, 42, 0.4));
    border-color: rgba(245, 213, 71, 0.4);
}

.summary-head {
    display: flex;
    gap: 20px;
    align-items: center;
}

.settings-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.summary-impact {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px;
    background: rgba(245, 213, 71, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-impact-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-impact .impact-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.summary-impact .summary-value {
    font-size: 24px;
}

.summary-footnote {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.7);
    margin-top: 4px;
}

.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 600;
}

.settings-body[data-theme="dark"] .avatar-preview {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.avatar-preview.avatar-icon {
    font-size: 36px;
}

.avatar-preview.avatar-image {
    overflow: hidden;
    color: transparent;
}

.settings-plan {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.8);
}

.settings-body[data-theme="dark"] .settings-plan {
    color: rgba(226, 232, 240, 0.8);
}

.settings-plan-price {
    color: rgba(15, 23, 42, 0.6);
    font-size: 14px;
}

.settings-body[data-theme="dark"] .settings-plan-price {
    color: rgba(226, 232, 240, 0.75);
}

.settings-plan-countdown {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.55);
    margin-top: 4px;
}

.settings-body[data-theme="dark"] .settings-plan-countdown {
    color: rgba(226, 232, 240, 0.7);
}

.api-key-reveal {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(245, 213, 71, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.settings-body[data-theme="dark"] .api-key-reveal {
    border-color: rgba(245, 213, 71, 0.35);
    background: rgba(245, 213, 71, 0.12);
}

.api-key-reveal-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.6);
    margin: 0 0 6px;
}

.settings-body[data-theme="dark"] .api-key-reveal-label {
    color: rgba(226, 232, 240, 0.7);
}

.api-key-reveal-value {
    font-family: "Space Grotesk", "Inter", monospace;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    word-break: break-all;
}

.api-key-reveal-hint {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.65);
    margin: 0;
}

.settings-body[data-theme="dark"] .api-key-reveal-hint {
    color: rgba(226, 232, 240, 0.75);
}

.api-key-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.api-key-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.settings-body[data-theme="dark"] .api-key-row {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.55);
}

.api-key-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.api-key-prefix {
    font-family: "Space Grotesk", "Inter", monospace;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.6);
}

.settings-body[data-theme="dark"] .api-key-prefix {
    color: rgba(226, 232, 240, 0.7);
}

.api-key-detail {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.55);
}

.settings-body[data-theme="dark"] .api-key-detail {
    color: rgba(226, 232, 240, 0.65);
}

.api-key-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.api-key-status[data-status="revoked"] {
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}

.api-key-actions {
    display: flex;
    justify-content: flex-end;
}

.api-key-revoke-btn {
    border: 1px solid rgba(185, 28, 28, 0.2);
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.api-key-revoke-btn:hover:not(:disabled),
.api-key-revoke-btn:focus-visible:not(:disabled) {
    background: rgba(220, 38, 38, 0.14);
    border-color: rgba(185, 28, 28, 0.35);
    color: #991b1b;
    transform: translateY(-1px);
}

.api-key-revoke-btn:focus-visible {
    outline: 2px solid rgba(220, 38, 38, 0.35);
    outline-offset: 2px;
}

.api-key-revoke-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}

.settings-body[data-theme="dark"] .api-key-revoke-btn {
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.14);
    color: #fecdd3;
}

.settings-body[data-theme="dark"] .api-key-revoke-btn:hover:not(:disabled),
.settings-body[data-theme="dark"] .api-key-revoke-btn:focus-visible:not(:disabled) {
    background: rgba(251, 113, 133, 0.22);
    border-color: rgba(251, 113, 133, 0.5);
    color: #ffe4e6;
}

.api-key-empty {
    font-size: 14px;
    color: rgba(15, 23, 42, 0.65);
    margin-top: 14px;
}

.settings-body[data-theme="dark"] .api-key-empty {
    color: rgba(226, 232, 240, 0.7);
}

.organization-shell {
    margin: clamp(32px, 4vw, 56px) auto 0;
    max-width: 1180px;
    display: grid;
    gap: 28px;
}

.org-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.org-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.org-emoji-wrap {
    position: relative;
}

.org-emoji-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.org-emoji-dropdown[hidden] {
    display: none;
}

.settings-body[data-theme="dark"] .org-emoji-dropdown {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.org-emoji-dropdown button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.org-emoji-dropdown button.is-selected {
    border-color: #0f172a;
    background: rgba(245, 213, 71, 0.25);
}

.settings-body[data-theme="dark"] .org-emoji-dropdown button {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.settings-body[data-theme="dark"] .org-emoji-dropdown button.is-selected {
    border-color: rgba(245, 213, 71, 0.8);
    background: rgba(245, 213, 71, 0.16);
}

.org-name-editable {
    margin: 0;
    padding: 4px 6px;
    border-radius: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.org-name-editable[contenteditable="true"] {
    cursor: text;
}

.org-name-editable[contenteditable="true"]:hover,
.org-name-editable[contenteditable="true"]:focus {
    background: rgba(245, 213, 71, 0.2);
    box-shadow: 0 0 0 2px rgba(245, 213, 71, 0.4);
    outline: none;
}

.organization-summary,
.organization-roster {
    grid-column: 1 / -1;
}

.organization-seat-bar {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seat-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.settings-body[data-theme="dark"] .seat-bar-track {
    background: rgba(255, 255, 255, 0.12);
}

.seat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f5d547, #f59e0b);
    border-radius: inherit;
    transition: width 0.3s ease;
}

.seat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seat-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.75);
}

.settings-body[data-theme="dark"] .seat-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.6);
}

.seat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(245, 213, 71, 0.25);
    color: #0f172a;
    display: grid;
    place-items: center;
    font-weight: 600;
}

.seat-avatar.avatar-image {
    overflow: hidden;
    font-size: 0;
    color: transparent;
}

.seat-avatar.avatar-icon {
    font-size: 20px;
}

.settings-body[data-theme="dark"] .seat-avatar {
    color: #f8fafc;
}

.seat-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seat-name {
    font-weight: 600;
}

.seat-email {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.65);
}

.settings-body[data-theme="dark"] .seat-email {
    color: rgba(226, 232, 240, 0.7);
}

.seat-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    width: fit-content;
}

.seat-status.invited {
    background: rgba(248, 113, 113, 0.15);
    color: #b91c1c;
}

.seat-role {
    font-size: 13px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.7);
}

.settings-body[data-theme="dark"] .seat-role {
    color: rgba(226, 232, 240, 0.8);
}

.seat-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.seat-actions .seat-remove {
    padding: 6px 12px;
    font-size: 13px;
}

.seat-role-select {
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
}

.settings-body[data-theme="dark"] .seat-role-select {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.6);
}

.seat-empty {
    font-size: 14px;
    color: rgba(15, 23, 42, 0.65);
}

.settings-body[data-theme="dark"] .seat-empty {
    color: rgba(226, 232, 240, 0.7);
}

.organization-addon-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: center;
    margin-bottom: 18px;
}

.org-addon-payment {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    display: grid;
    gap: 12px;
}

.settings-body[data-theme="dark"] .org-addon-payment {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.6);
}

.organization-addon-summary .summary-value {
    font-size: 22px;
    margin-top: 6px;
}

.organization-message {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font-size: 14px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    z-index: 20;
}

.organization-message[data-type="success"] {
    background: rgba(21, 128, 61, 0.92);
}

.organization-message[data-type="error"] {
    background: rgba(185, 28, 28, 0.92);
}

@media (min-width: 980px) {
    .organization-shell {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }
}

@media (max-width: 720px) {
    .organization-roster,
    .organization-addons {
        padding: 20px;
    }

    .organization-roster .panel-header,
    .organization-addons .panel-header {
        margin-bottom: 14px;
    }

    .organization-roster .panel-header-copy,
    .organization-addons .panel-header-copy {
        display: flex;
        flex: 1 1 auto;
        width: 100%;
        flex-direction: column;
        gap: 6px;
    }

    .organization-roster .panel-header-copy .eyebrow,
    .organization-roster .panel-header-copy h2,
    .organization-roster .panel-header-copy .settings-subtext,
    .organization-addons .panel-header-copy .eyebrow,
    .organization-addons .panel-header-copy h2,
    .organization-addons .panel-header-copy .settings-subtext {
        margin: 0;
    }

    .organization-addons .organization-addon-grid {
        gap: 14px;
        margin-bottom: 12px;
    }

    .organization-addons .summary-footnote {
        padding-top: 12px;
    }

    .seat-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .seat-role,
    .seat-actions {
        grid-column: 2 / -1;
        justify-self: start;
        align-items: flex-start;
    }
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.settings-form .field {
    color: rgba(15, 23, 42, 0.65);
    font-size: 14px;
}

.settings-body[data-theme="dark"] .settings-form .field {
    color: rgba(226, 232, 240, 0.78);
}

.settings-form .field input,
.settings-form .field select {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    background: #ffffff;
    color: #0f172a;
}

.settings-body[data-theme="dark"] .settings-form .field input,
.settings-body[data-theme="dark"] .settings-form .field select {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

.avatar-selector {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px;
    background: rgba(248, 250, 252, 0.7);
}

.settings-body[data-theme="dark"] .avatar-selector {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.avatar-selector-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.6);
}

.settings-body[data-theme="dark"] .avatar-selector-head {
    color: rgba(226, 232, 240, 0.72);
}

.avatar-options {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.avatar-choice {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: #ffffff;
    font-size: 24px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.avatar-choice.editing {
    padding: 0 8px;
}

.avatar-choice.editing input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    outline: none;
    color: #0f172a;
}

.settings-body[data-theme="dark"] .avatar-choice.editing input {
    color: #f8fafc;
}

.avatar-choice-image {
    overflow: hidden;
    font-size: 0;
    color: transparent;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.avatar-choice-camera {
    border-style: dashed;
    border-color: rgba(15, 23, 42, 0.2);
    color: rgba(15, 23, 42, 0.6);
    background: transparent;
    font-size: 22px;
}

.settings-body[data-theme="dark"] .avatar-choice-camera {
    color: rgba(226, 232, 240, 0.7);
    border-color: rgba(226, 232, 240, 0.35);
}

.avatar-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.15);
}

.avatar-choice.selected {
    border-color: #0f172a;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.settings-submit {
    gap: 10px;
    justify-content: center;
}

.settings-subtext {
    max-width: 420px;
    color: rgba(15, 23, 42, 0.6);
    font-size: 14px;
}


.domain-instructions {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.domain-instructions-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 14px;
    background: rgba(248, 250, 252, 0.8);
}

.domain-instructions-card.is-verified {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

.domain-instructions-title {
    margin: 0 0 10px;
    font-weight: 700;
}

.domain-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.domain-record-grid div {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    min-height: 66px;
}

.domain-record-grid span {
    display: block;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.6);
    margin-bottom: 4px;
}

.domain-record-grid strong {
    font-family: "Space Grotesk", "Inter", monospace;
    font-size: 13px;
    word-break: break-word;
}

.domain-copy-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.settings-body[data-theme="dark"] .domain-instructions-card {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.55);
}

.settings-body[data-theme="dark"] .domain-record-grid div {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.7);
}

.settings-body[data-theme="dark"] .domain-record-grid span {
    color: rgba(226, 232, 240, 0.72);
}

.settings-danger {
    border: 1px solid rgba(244, 63, 94, 0.18);
    background: rgba(249, 219, 219, 0.35);
}

.settings-message {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    z-index: 20;
}

.settings-message[data-tone="success"] {
    background: rgba(16, 185, 129, 0.95);
}

.settings-message[data-tone="error"] {
    background: rgba(244, 63, 94, 0.95);
}

.settings-message[data-tone="info"] {
    background: rgba(59, 130, 246, 0.95);
}

.settings-loading {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    z-index: 40;
}

.settings-loading[hidden] {
    display: none;
}

.settings-panel .panel-header h2 {
    margin-bottom: 4px;
}

.settings-panel .panel-header .eyebrow {
    color: rgba(15, 23, 42, 0.5);
}

.settings-panel .btn-secondary.danger {
    border-color: rgba(244, 63, 94, 0.4);
    color: #b42318;
}

.settings-panel .btn-secondary.danger:hover {
    border-color: #b42318;
    background: rgba(244, 63, 94, 0.08);
}

.settings-danger-confirm {
    margin-top: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.settings-danger-confirm-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.settings-danger-confirm-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 16px;
    flex-shrink: 0;
}

.settings-danger-confirm-title {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 700;
}

.settings-danger-confirm .settings-subtext {
    margin: 0;
    color: rgba(15, 23, 42, 0.7);
}

.settings-danger-confirm-instruction {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.72);
}

.settings-danger-confirm-phrase {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(15, 23, 42, 0.26);
    background: rgba(255, 255, 255, 0.9);
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.settings-danger-field {
    margin-bottom: 14px;
}

.settings-danger-field input {
    border-color: rgba(15, 23, 42, 0.18);
}

.settings-danger-field input:focus {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.settings-danger-field small {
    display: block;
    margin-top: 8px;
    color: rgba(15, 23, 42, 0.62);
    font-size: 12px;
}

.settings-danger-confirm[data-match="true"] {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, rgba(248, 255, 252, 0.95), rgba(241, 252, 247, 0.95));
}

.settings-danger-confirm[data-match="true"] .settings-danger-confirm-icon {
    background: rgba(16, 185, 129, 0.14);
}

.settings-danger-confirm[data-match="true"] .settings-danger-confirm-title,
.settings-danger-confirm[data-match="true"] .settings-subtext,
.settings-danger-confirm[data-match="true"] .settings-danger-confirm-instruction,
.settings-danger-confirm[data-match="true"] .settings-danger-field small {
    color: rgba(6, 95, 70, 0.9);
}

.settings-danger-confirm[data-match="true"] .settings-danger-confirm-phrase {
    border-color: rgba(16, 185, 129, 0.4);
    color: rgba(6, 95, 70, 0.95);
}

.settings-danger-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.settings-danger-actions .btn-secondary {
    min-width: 180px;
}

.settings-body[data-theme="dark"] .settings-danger-confirm {
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.settings-body[data-theme="dark"] .settings-danger-confirm-title,
.settings-body[data-theme="dark"] .settings-danger-confirm .settings-subtext,
.settings-body[data-theme="dark"] .settings-danger-confirm-instruction,
.settings-body[data-theme="dark"] .settings-danger-field small,
.settings-body[data-theme="dark"] .settings-danger-confirm-phrase {
    color: rgba(226, 232, 240, 0.95);
}

.settings-body[data-theme="dark"] .settings-danger-confirm-icon {
    background: rgba(148, 163, 184, 0.18);
}

.settings-body[data-theme="dark"] .settings-danger-confirm-phrase {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.44);
}

.settings-body[data-theme="dark"] .settings-danger-field input {
    border-color: rgba(148, 163, 184, 0.44);
    background: rgba(15, 23, 42, 0.64);
    color: rgba(248, 250, 252, 0.96);
}

.settings-body[data-theme="dark"] .settings-danger-field input:focus {
    border-color: rgba(125, 211, 252, 0.58);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.settings-body[data-theme="dark"] .settings-danger-confirm[data-match="true"] {
    border-color: rgba(52, 211, 153, 0.48);
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.7), rgba(5, 46, 36, 0.72));
}

.blocked-callers-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blocked-caller-row {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: rgba(248, 250, 252, 0.85);
}

.blocked-caller-row[data-status="unblocked"] {
    background: rgba(248, 250, 252, 0.6);
    border-color: rgba(15, 23, 42, 0.06);
}

.settings-body[data-theme="dark"] .blocked-caller-row {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.75);
}

.settings-body[data-theme="dark"] .blocked-caller-row[data-status="unblocked"] {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.16);
}

.blocked-caller-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blocked-caller-meta strong {
    font-size: 1rem;
}

.blocked-caller-meta span,
.blocked-caller-reason,
.blocked-caller-timestamp {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.65);
}

.settings-body[data-theme="dark"] .blocked-caller-meta span,
.settings-body[data-theme="dark"] .blocked-caller-reason,
.settings-body[data-theme="dark"] .blocked-caller-timestamp {
    color: rgba(226, 232, 240, 0.75);
}

.blocked-caller-reason {
    margin: 2px 0 4px;
}

.blocked-caller-timestamp {
    font-size: 0.82rem;
}

.blocked-caller-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 220px;
}

.blocked-caller-actions button {
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    background: transparent;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.blocked-caller-actions button:hover,
.blocked-caller-actions button:focus-visible {
    border-color: rgba(15, 23, 42, 0.35);
}

.settings-body[data-theme="dark"] .blocked-caller-actions button {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f8fafc;
}

.blocked-caller-state.blocked-caller-unblocked {
    opacity: 0.7;
    cursor: default;
}

.blocked-caller-confirm {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: rgba(15, 23, 42, 0.04);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.settings-body[data-theme="dark"] .blocked-caller-confirm {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.blocked-caller-confirm-copy strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.blocked-caller-confirm-copy span {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.7);
}

.settings-body[data-theme="dark"] .blocked-caller-confirm-copy span {
    color: rgba(226, 232, 240, 0.78);
}

.blocked-caller-confirm-actions {
    display: flex;
    gap: 8px;
}

.blocked-caller-confirm-actions .blocked-caller-confirm-primary {
    flex: 1;
}

.blocked-caller-confirm-cancel {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.68);
    padding: 8px 0;
}

.settings-body[data-theme="dark"] .blocked-caller-confirm-cancel {
    color: rgba(226, 232, 240, 0.8);
}

.blocked-callers-empty {
    margin: 0;
    color: rgba(15, 23, 42, 0.6);
    font-size: 0.95rem;
}

.settings-body[data-theme="dark"] .blocked-callers-empty {
    color: rgba(226, 232, 240, 0.7);
}

@media (max-width: 720px) {
    .settings-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .settings-nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .summary-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar .container {
        padding: 0 var(--page-gutter);
    }
}

@media (max-width: 1024px) {
    .nav-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pricing-intro,
    .section-header {
        text-align: left;
        align-items: flex-start;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
        padding: clamp(20px, 5vw, 32px);
    }

    .dashboard-sidebar {
        border-right: none;
        border-radius: var(--panel-radius);
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px 16px;
        position: relative;
        top: 0;
    }

    .sidebar-collapse-toggle {
        display: inline-flex;
        width: auto;
        min-width: 98px;
    }

    .sidebar-brand {
        width: auto;
        min-width: 0;
    }

    .dashboard-sidebar > :not(.sidebar-brand):not(.sidebar-collapse-toggle) {
        grid-column: 1 / -1;
    }

    .dashboard-sidebar.is-collapsed {
        gap: 12px 16px;
    }

    .dashboard-sidebar.is-collapsed > :not(.sidebar-brand):not(.sidebar-collapse-toggle) {
        display: none;
    }

    .sidebar-user,
    .sidebar-section-label,
    .sidebar-nav,
    .sidebar-impact,
    .sidebar-upgrade {
        width: 100%;
    }

    .section-heading {
        flex-direction: column;
        gap: 16px;
    }

    .analytics-overview-card,
    .analytics-overview-card--growth,
    .analytics-overview-card--impressions {
        grid-column: span 12;
    }

    .table-row {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .checkout-shell,
    .billing-shell,
    .settings-shell {
        grid-template-columns: 1fr;
    }

    .checkout-summary,
    .checkout-panel,
    .billing-panel {
        padding: clamp(24px, 5vw, 32px);
    }

    .plans-grid,
    .stats-grid,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .storage-shell {
        padding: 0 var(--page-gutter) 48px;
    }

    .storage-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .analytics-page .lab-card,
    .analytics-page .lab-body,
    .analytics-page .analytics-grid {
        min-width: 0;
    }

    .analytics-page .lab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .analytics-overview-heading .section-heading-actions {
        width: 100%;
    }

    .performance-summary-grid,
    .engaged-audience-map {
        grid-template-columns: 1fr;
    }

    .growth-row {
        grid-template-columns: 1fr;
    }

    .analytics-page .session-counter-card .lab-header > div {
        width: 100%;
        min-width: 0;
    }

    .analytics-page .platform-stat-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: flex-start;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .analytics-page .platform-stat-meta .subtitle {
        display: block;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .analytics-page .analytics-table,
    .analytics-page .analytics-table-scrollable {
        max-width: 100%;
        overflow-x: auto;
    }

    .analytics-page .analytics-table .table-row {
        min-width: 620px;
    }

    .analytics-page .session-counter-table .table-row {
        min-width: 980px;
    }

    .analytics-page .session-counter-stats {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        min-width: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
    }

    .plan-theme-group {
        width: 100%;
        justify-content: space-between;
    }

    .stream-lab,
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-body.dashboard-body--has-mobile .dashboard-mobile-bar {
        display: flex;
    }

    .dashboard-body.dashboard-body--has-mobile .dashboard-sidebar,
    .dashboard-body.dashboard-body--has-mobile .sidebar-section-label,
    .dashboard-body.dashboard-body--has-mobile .sidebar-nav {
        display: none;
    }

    .dashboard-body.dashboard-body--has-mobile .dashboard-shell {
        padding: 0;
        gap: 0;
        background: transparent;
    }

    .dashboard-body.dashboard-body--has-mobile .dashboard-atmosphere {
        display: block;
        opacity: 0.45;
    }

    .dashboard-body.dashboard-body--has-mobile {
        background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    }

    .dashboard-body.dashboard-body--has-mobile .monetize-expand-toggle {
        display: none;
    }

    .mobile-nav-links {
        grid-template-columns: 1fr;
    }

    .plans-nav,
    .billing-nav,
    .settings-nav,
    .checkout-nav,
    .storage-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .banner-actions,
    .checkout-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .hero-buttons .btn-large {
        padding: 12px 20px;
        font-size: 15px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: 1 1 auto;
    }
}

@media (max-width: 520px) {
    .hero {
        padding: 40px 0 60px;
    }

    .analytics-page .session-counter-stats {
        grid-template-columns: 1fr;
    }

    .analytics-page .session-counter-table-actions-header {
        gap: 6px;
    }

    .analytics-page .session-counter-icon-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 16px;
    }

    .dashboard-main {
        padding: 10px 0;
    }

    .dashboard-header {
        padding: 0 6px;
    }

    .dashboard-header h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .panel,
    .panel-restore {
        margin: 0 6px;
    }

    .dashboard-main,
    .panel {
        padding: 12px;
    }

    .mobile-menu {
        margin-inline: 4px;
    }

    .plans-footer-cta {
        padding: 32px 16px;
    }

    .pricing-card,
    .feature-card,
    .plan-card {
        padding: 20px;
    }
}

/* Storage gallery */
.storage-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.schedule-folder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.schedule-folder-chip {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.schedule-folder-chip[data-active="true"] {
    border-color: var(--primary-yellow);
    background: rgba(245, 213, 71, 0.18);
}

.storage-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    background: var(--gray-100);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 0;
}

.storage-title-edit {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    font-weight: 600;
    color: var(--dash-text-primary);
    cursor: pointer;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.storage-title-edit:hover,
.storage-title-edit:focus-visible {
    color: var(--primary-yellow);
    outline: none;
}

.storage-card.selected {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(245, 213, 71, 0.35);
}

.storage-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: var(--gray-200);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storage-thumb img,
.storage-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.schedule-folder-card .storage-thumb {
    display: grid;
    place-items: center;
    font-size: 28px;
    color: var(--text-primary);
}

.schedule-folder-card .storage-meta p {
    font-weight: 600;
}

.storage-meta p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.storage-placeholder {
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

.rename-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.rename-modal[hidden] {
    display: none;
}

.rename-dialog {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    width: min(420px, 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rename-dialog header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.rename-dialog h3 {
    margin: 0;
    font-size: 1.1rem;
}

.rename-dialog header button {
    border: 1px solid var(--border-color);
    background: var(--gray-100);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rename-dialog header button:hover,
.rename-dialog header button:focus-visible {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.rename-dialog form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rename-dialog input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.rename-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.rename-actions button {
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background: var(--gray-100);
    cursor: pointer;
    font-weight: 600;
}

.rename-actions .primary {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #1f2937;
}

body.dashboard-body[data-theme="dark"] .storage-card,
body.dashboard-body[data-theme="dark"] .storage-gallery + .field-hint,
body.dashboard-body[data-theme="dark"] .storage-placeholder {
    background: #0f172a;
}

body.dashboard-body[data-theme="dark"] .storage-card {
    border-color: #1e293b;
}

body.dashboard-body[data-theme="dark"] .storage-thumb {
    background: #111827;
}

body.dashboard-body[data-theme="dark"] .storage-title-edit,
body.dashboard-body[data-theme="dark"] .storage-meta p,
body.dashboard-body[data-theme="dark"] .field-hint {
    color: #e2e8f0;
}

body.dashboard-body[data-theme="dark"] .schedule-folder-chip {
    background: #0f172a;
    border-color: #1e293b;
    color: #e2e8f0;
}

body.dashboard-body[data-theme="dark"] .schedule-folder-chip[data-active="true"] {
    background: rgba(245, 213, 71, 0.2);
    border-color: rgba(245, 213, 71, 0.6);
}

body[data-theme="dark"] .rename-dialog {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1e293b;
}

body[data-theme="dark"] .rename-dialog input {
    background: #111827;
    border-color: #1f2937;
    color: #e5e7eb;
}

body[data-theme="dark"] .rename-actions button {
    background: #111827;
    border-color: #1e293b;
    color: #e5e7eb;
}

body[data-theme="dark"] .rename-actions .primary {
    color: #1f2937;
}

.platform-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--gray-100);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.platform-pill input {
    accent-color: var(--primary-yellow);
}

.platform-pill:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
}

.platform-pill.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.field-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Billing Upgrade Controls */
.billing-upgrade {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.billing-upgrade-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.billing-upgrade-label span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.7);
}

.billing-upgrade select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: rgba(15, 23, 42, 0.02);
    color: inherit;
    font: inherit;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.5) 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.5) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.billing-upgrade select:focus-visible {
    outline: 2px solid var(--primary-yellow);
    border-color: var(--primary-yellow);
    background-color: rgba(245, 213, 71, 0.08);
}

.billing-upgrade-note {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}

.billing-upgrade .btn-primary {
    align-self: flex-start;
}

@media (max-width: 600px) {
    .billing-upgrade {
        padding-top: 1rem;
    }

    .billing-upgrade-fields {
        grid-template-columns: 1fr;
    }
}

/* Freely Page */
body.freely-body {
    --freely-text: #0f172a;
    --freely-bg: #f8fafc;
    --freely-panel: rgba(255, 255, 255, 0.96);
    --freely-border: rgba(15, 23, 42, 0.12);
    --freely-muted: #475467;
    --freely-hero-bg: linear-gradient(135deg, rgba(245, 213, 71, 0.18), rgba(59, 130, 246, 0.12));
    --freely-chip-bg: rgba(15, 23, 42, 0.05);
    --freely-chip-border: rgba(15, 23, 42, 0.16);
    --freely-placeholder-bg: rgba(15, 23, 42, 0.02);
    --freely-placeholder-border: rgba(15, 23, 42, 0.08);
    --freely-shortcut-bg: linear-gradient(135deg, rgba(245, 213, 71, 0.98), rgba(245, 213, 71, 0.75));
    --freely-shortcut-text: #1e1b4b;
    --freely-shortcut-shadow: 0 18px 34px rgba(245, 213, 71, 0.25);
    min-height: 100vh;
    background: var(--freely-bg);
    color: var(--freely-text);
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

body.freely-body[data-theme="dark"] {
    --freely-text: #f8fafc;
    --freely-bg: #05060f;
    --freely-panel: rgba(15, 23, 42, 0.82);
    --freely-border: rgba(248, 250, 252, 0.12);
    --freely-muted: rgba(226, 232, 240, 0.78);
    --freely-hero-bg: linear-gradient(145deg, rgba(13, 17, 32, 0.95), rgba(25, 33, 58, 0.9));
    --freely-chip-bg: rgba(248, 250, 252, 0.08);
    --freely-chip-border: rgba(248, 250, 252, 0.16);
    --freely-placeholder-bg: rgba(248, 250, 252, 0.05);
    --freely-placeholder-border: rgba(248, 250, 252, 0.12);
    --freely-shortcut-bg: linear-gradient(135deg, rgba(245, 213, 71, 0.96), rgba(245, 213, 71, 0.7));
    --freely-shortcut-text: #0b0b17;
    --freely-shortcut-shadow: 0 18px 34px rgba(245, 213, 71, 0.22);
}

.freely-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.freely-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.freely-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    color: inherit;
}

.freely-brand span {
    font-size: 1.1rem;
}

.freely-theme-toggle,
.freely-ghost {
    border: 1px solid var(--freely-border);
    border-radius: 999px;
    padding: 10px 16px;
    background: transparent;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.freely-theme-toggle {
    padding: 0;
    width: 36px;
    height: 36px;
    background: var(--freely-panel);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
    overflow: hidden;
}

.freely-theme-toggle:hover,
.freely-theme-toggle:focus-visible,
.freely-ghost:hover,
.freely-ghost:focus-visible {
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
    outline: none;
}

.freely-ghost[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.freely-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.freely-main-theme-toggle {
    position: static;
    align-self: flex-end;
    margin-left: auto;
    z-index: 1;
}

.freely-ad-panel {
    margin: 12px auto;
    max-width: 720px;
    width: 100%;
    background: var(--freely-panel);
    border: 1px solid var(--freely-border);
    border-radius: 22px;
    padding: 12px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.freely-ad-panel ins {
    display: block;
    min-height: 90px;
}

.freely-ad-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--freely-muted);
    margin-bottom: 6px;
}

.freely-controls {
    background: var(--freely-panel);
    border: 1px solid var(--freely-border);
    border-radius: 24px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.freely-controls-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.freely-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.4fr) auto;
    gap: 16px;
    align-items: end;
}

.freely-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.freely-field span {
    font-size: 0.9rem;
    font-weight: 600;
}

.freely-platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.freely-theme-icon {
    font-size: 1rem;
    line-height: 1;
    display: block;
}


.freely-field input {
    border-radius: 14px;
    border: 1px solid var(--freely-border);
    padding: 12px 14px;
    font: inherit;
    background: rgba(15, 23, 42, 0.02);
    color: inherit;
}

.freely-platform-field select {
    border-radius: 14px;
    border: 1px solid var(--freely-border);
    padding: 12px 14px;
    font: inherit;
    background: rgba(15, 23, 42, 0.02);
    color: inherit;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

body.freely-body[data-theme="dark"] .freely-field input,
body.freely-body[data-theme="dark"] .freely-platform-field select {
    background: rgba(248, 250, 252, 0.05);
}

.freely-hint {
    margin-top: 12px;
    color: var(--freely-muted);
    font-size: 0.95rem;
}

.stream-chips {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stream-chip {
    border: 1px solid var(--freely-chip-border);
    background: var(--freely-chip-bg);
    border-radius: 999px;
    padding: 4px 4px 4px 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.stream-chip:hover,
.stream-chip:focus-within {
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
    outline: none;
}

.stream-chip-main {
    border: none;
    background: transparent;
    padding: 4px 0;
    font: inherit;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
}

.stream-chip-main:focus-visible {
    outline: none;
    color: var(--primary-yellow);
}

.stream-chip-remove {
    border: none;
    background: transparent;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.stream-chip-remove:hover,
.stream-chip-remove:focus-visible {
    background: rgba(15, 23, 42, 0.08);
    color: var(--primary-yellow);
    outline: none;
}

body.freely-body[data-theme="dark"] .stream-chip-remove:hover,
body.freely-body[data-theme="dark"] .stream-chip-remove:focus-visible {
    background: rgba(248, 250, 252, 0.15);
}

.stream-chip-remove:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
}

.stream-chip-empty {
    color: var(--freely-muted);
    padding: 6px 12px;
    cursor: default;
}

.freely-share {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.freely-share-button {
    border: 1px solid var(--freely-border);
    border-radius: 999px;
    padding: 8px 18px;
    background: transparent;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.freely-share-button:hover,
.freely-share-button:focus-visible {
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
    outline: none;
}

.freely-share-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.freely-monitor-button {
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    border: none;
    background: var(--freely-text);
    color: var(--freely-bg);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.freely-monitor-button:hover,
.freely-monitor-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.freely-monitor-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.freely-share-url {
    font-size: 0.9rem;
    color: var(--freely-muted);
    word-break: break-all;
    flex: 1;
    user-select: none;
    min-height: 20px;
    white-space: nowrap;
    overflow-x: auto;
}

.freely-share-url[data-state="ready"] {
    color: inherit;
    font-weight: 600;
}

.freely-share-url[data-state="locked"] {
    color: var(--primary-yellow);
    font-weight: 600;
}

.freely-shortcuts {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.freely-shortcuts-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.freely-shortcuts-head strong {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freely-shortcuts-head span {
    font-size: 0.9rem;
    color: var(--freely-muted);
}

.freely-shortcut-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.freely-shortcut-card {
    border: 1px solid var(--freely-border);
    border-radius: 14px;
    background: var(--freely-shortcut-bg);
    padding: 16px;
    min-width: 160px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: var(--freely-shortcut-text);
    box-shadow: var(--freely-shortcut-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    scroll-snap-align: start;
}

.freely-shortcut-card:hover,
.freely-shortcut-card:focus-visible {
    border-color: var(--primary-yellow);
    box-shadow: 0 22px 40px rgba(245, 213, 71, 0.35);
    transform: translateY(-1px);
    outline: none;
}

.freely-shortcut-card[disabled] {
    opacity: 0.5;
    cursor: wait;
    box-shadow: none;
    transform: none;
}

.freely-shortcut-emoji {
    font-size: 2rem;
    line-height: 1;
}

.freely-shortcut-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.freely-shortcut-card[data-loading="true"] .freely-shortcut-name::after {
    content: ' · loading';
    color: var(--freely-shortcut-text);
    opacity: 0.7;
    font-size: 0.85rem;
    font-weight: 600;
}

.freely-layout-filter {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--freely-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.freely-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.freely-filter-toggle {
    display: inline-flex;
    gap: 6px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    padding: 4px;
}

body.freely-body[data-theme="dark"] .freely-filter-toggle {
    background: rgba(248, 250, 252, 0.05);
}

.freely-filter-toggle button {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font: inherit;
    font-weight: 600;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.freely-filter-toggle button[aria-pressed="true"] {
    background: var(--freely-text);
    color: var(--freely-bg);
}

.freely-filter-hint {
    font-size: 0.85rem;
    color: var(--freely-muted);
}

.freely-message {
    margin-top: 16px;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 600;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.04);
}

.freely-message[hidden] {
    display: none;
}

.freely-message[data-tone="success"] {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.freely-message[data-tone="error"] {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
}

.freely-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@keyframes freelyCapacityPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 213, 71, 0.4);
    }
    60% {
        box-shadow: 0 0 0 10px rgba(245, 213, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 213, 71, 0);
    }
}

@keyframes freelyInputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 213, 71, 0.45);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(245, 213, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 213, 71, 0);
    }
}

.freely-grid[data-capacity-warning="true"] .stream-card,
.freely-grid[data-capacity-warning="true"] .stream-placeholder {
    border-color: var(--primary-yellow);
    animation: freelyCapacityPulse 0.9s ease;
}

.freely-field input[data-capacity-warning="true"] {
    border-color: var(--primary-yellow);
    animation: freelyInputPulse 0.9s ease;
}

.freely-grid[data-layout-style="snapped"] {
    gap: 0;
}

.freely-grid[data-columns="1"] {
    grid-template-columns: minmax(0, 1fr);
}

.freely-grid[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.freely-grid[data-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.freely-grid[data-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stream-card {
    background: var(--freely-panel);
    border: 1px solid var(--freely-border);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.stream-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.stream-card-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    background: rgba(5, 6, 15, 0.72);
    color: #f8fafc;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.freely-body[data-theme="dark"] .stream-card-bar {
    background: rgba(8, 10, 24, 0.88);
}

.stream-card:hover .stream-card-bar,
.stream-card:focus-within .stream-card-bar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (hover: none) {
    .stream-card-bar {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.stream-card-meta strong {
    display: block;
    font-size: 1.1rem;
    color: inherit;
}

.stream-card-meta span {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.85);
}

.stream-card-actions {
    display: flex;
    gap: 8px;
}

.stream-card-actions button {
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.45);
    background: rgba(248, 250, 252, 0.1);
    color: #f8fafc;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.stream-card-actions button:hover,
.stream-card-actions button:focus-visible {
    border-color: var(--primary-yellow);
    background: rgba(248, 250, 252, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.stream-card-actions .stream-remove {
    color: #fecaca;
}

.stream-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.stream-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 22px 22px;
}

.freely-grid[data-layout-style="snapped"] .stream-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.freely-grid[data-layout-style="snapped"] .stream-frame iframe {
    border-radius: 0;
}

.freely-grid[data-layout-style="snapped"] .stream-placeholder {
    border-radius: 0;
}

.stream-card[data-locked="true"] .stream-card-actions .stream-remove {
    opacity: 0.35;
    cursor: not-allowed;
}

.stream-placeholder {
    border: 1px solid transparent;
    border-radius: 22px;
    padding: 24px;
    text-align: center;
    background: transparent;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font: inherit;
    color: inherit;
}

.stream-placeholder strong {
    font-size: 1.05rem;
}

.stream-placeholder-empty {
    border-style: dashed;
    border-color: var(--freely-placeholder-border);
    background: var(--freely-placeholder-bg);
    color: var(--freely-muted);
}

.stream-placeholder-empty em {
    font-style: italic;
    color: inherit;
    opacity: 0.8;
}

.stream-placeholder-cta {
    border-color: var(--freely-border);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
    align-items: center;
    text-align: center;
}

.stream-placeholder-cta span {
    font-size: 0.95rem;
    color: var(--freely-muted);
}

.stream-placeholder-cta:hover,
.stream-placeholder-cta:focus-visible {
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
    outline: none;
}

.freely-grid[data-count="2"] .stream-placeholder-cta,
.freely-grid[data-count="4"] .stream-placeholder-cta,
.freely-grid[data-count="6"] .stream-placeholder-cta,
.freely-grid[data-count="8"] .stream-placeholder-cta {
    grid-column: 1 / -1;
    min-height: 140px;
}

@media (max-width: 720px) {
    .freely-form {
        grid-template-columns: 1fr;
    }

    .freely-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .freely-share {
        flex-direction: column;
        align-items: stretch;
    }

    .freely-share-url {
        flex: none;
        width: 100%;
        min-height: auto;
    }

    .freely-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Freely Monitor Page */
body.display-body {
    --display-bg: #f8fafc;
    --display-panel: rgba(255, 255, 255, 0.92);
    --display-border: rgba(15, 23, 42, 0.15);
    --display-text: #0f172a;
    --display-muted: rgba(71, 85, 105, 0.9);
    --display-card-overlay: rgba(15, 23, 42, 0.85);
    --display-card-shadow: rgba(15, 23, 42, 0.18);
    --display-button-bg: rgba(15, 23, 42, 0.06);
    --display-button-bg-hover: rgba(15, 23, 42, 0.12);
    --display-button-border: rgba(15, 23, 42, 0.18);
    background: radial-gradient(circle at top, rgba(45, 212, 191, 0.06), transparent 55%), var(--display-bg);
    color: var(--display-text);
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    transition: background 0.35s ease, color 0.35s ease;
}

body.display-body[data-theme="dark"] {
    --display-bg: #020617;
    --display-panel: rgba(15, 23, 42, 0.85);
    --display-border: rgba(148, 163, 184, 0.25);
    --display-text: #f8fafc;
    --display-muted: rgba(248, 250, 252, 0.7);
    --display-card-overlay: rgba(2, 6, 23, 0.85);
    --display-card-shadow: rgba(2, 6, 23, 0.55);
    --display-button-bg: rgba(248, 250, 252, 0.08);
    --display-button-bg-hover: rgba(248, 250, 252, 0.15);
    --display-button-border: rgba(248, 250, 252, 0.32);
    background: radial-gradient(circle at top, rgba(45, 212, 191, 0.08), transparent 55%), var(--display-bg);
}

.display-shell {
    min-height: 100vh;
    padding: clamp(18px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.display-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.display-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.display-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.display-layout-toggle {
    display: inline-flex;
    border: 1px solid var(--display-border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.display-layout-toggle button {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.display-layout-toggle button[aria-pressed="true"] {
    background: var(--display-button-bg);
}

.display-header,
.display-message {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.display-body[data-idle="true"] .display-header,
.display-body[data-idle="true"] .display-message {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
}

.display-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    opacity: 0.7;
}

.display-brand strong {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.display-link,
.display-theme-button {
    border-radius: 999px;
    padding: 8px 18px;
    background: var(--display-button-bg);
    border: 1px solid var(--display-button-border);
    color: var(--display-text);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.display-link:hover,
.display-link:focus-visible,
.display-theme-button:hover,
.display-theme-button:focus-visible {
    background: var(--display-button-bg-hover);
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
    outline: none;
}

.display-theme-button {
    cursor: pointer;
}

.display-message {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid var(--display-border);
    background: var(--display-panel);
    color: var(--display-text);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 24px 60px var(--display-card-shadow);
}

.display-grid {
    flex: 1;
    display: grid;
    gap: 18px;
    width: min(1800px, 100%);
    margin: 0 auto;
    justify-content: center;
    align-content: center;
}

.display-grid[data-layout-style="snapped"] {
    gap: 0;
}

.display-grid[data-columns="1"] {
    grid-template-columns: minmax(0, 800px);
}

.display-grid[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.display-grid[data-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.display-grid[data-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.display-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--display-border);
    background: var(--display-panel);
    box-shadow: 0 25px 60px var(--display-card-shadow);
    min-height: 120px;
}

.display-grid[data-layout-style="snapped"] .display-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.display-card-bar {
    position: absolute;
    inset: 16px 16px auto 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--display-card-overlay);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.display-card:hover .display-card-bar,
.display-card:focus-within .display-card-bar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (hover: none) {
    .display-card-bar {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.display-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.display-card-bar strong {
    font-size: 1rem;
}

.display-card-bar span {
    font-size: 0.85rem;
    color: var(--display-muted);
}

.display-card-actions {
    display: flex;
    gap: 8px;
}

.display-card-actions button {
    border: 1px solid var(--display-button-border);
    border-radius: 999px;
    padding: 4px 12px;
    background: var(--display-button-bg);
    color: var(--display-text);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.display-card-actions button:hover,
.display-card-actions button:focus-visible {
    border-color: var(--primary-yellow);
    background: var(--display-button-bg-hover);
    transform: translateY(-1px);
    outline: none;
}

.display-frame {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.display-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.display-grid[data-layout-style="snapped"] .display-frame,
.display-grid[data-layout-style="snapped"] .display-frame iframe {
    border-radius: 0;
}

@media (max-width: 960px) {
    .display-grid[data-columns="2"],
    .display-grid[data-columns="3"],
    .display-grid[data-columns="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .display-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 960px) {
    .platform-grid.platform-grid--three-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .platform-grid.platform-grid--three-col {
        grid-template-columns: 1fr;
    }
}

.short-link-panel { margin-top: 20px; }
.short-link-form { display: grid; gap: 12px; }
.short-link-form input,
.short-link-form textarea,
.short-link-form select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border-color, #334155); background: #0f172a; color: #e2e8f0; }
.short-link-item-row { display: grid; gap: 8px; padding: 10px; border: 1px solid rgba(148,163,184,.35); border-radius: 10px; }
.short-link-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.short-link-live-preview { margin-top: 10px; }
#shortLinkPhoneDock { display: grid; place-items: center; padding: 8px 0 4px; }
.short-link-phone { max-width: 364px; width: 100%; height: 720px; margin-top: 8px; border-radius: 40px; padding: 12px; background: linear-gradient(180deg,#0f172a,#111827); border: 1px solid rgba(148,163,184,.38); box-shadow: 0 22px 70px rgba(15,23,42,.32); }
.short-link-phone { position: relative; }
.short-link-phone-inner { border-radius: 22px; min-height: 100%; height: 100%; padding: 24px 16px; overflow-y: auto; overscroll-behavior: contain; }
.short-link-preview-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.short-link-preview-avatar { width: 78px; height: 78px; border-radius: 999px; object-fit: cover; border: 2px solid rgba(255,255,255,.35); }
.short-link-preview-avatar--fallback { display: grid; place-items: center; font-weight: 700; background: rgba(255,255,255,.2); color: #fff; }
.short-link-preview-bio { margin: 0; opacity: .92; max-width: 260px; }
.short-link-preview-links { width: 100%; display: grid; gap: 10px; margin-top: 6px; }
.short-link-preview-btn { width: 100%; border: none; border-radius: 999px; padding: 12px 14px; font-weight: 700; display: block; text-decoration: none; }
.short-link-preview-empty { opacity: .8; font-size: .9rem; margin: 0; }

.short-link-phone-inner.theme-lettuce { background: linear-gradient(180deg,#2f8f46,#1f5f30); color: #f8fafc; }
.short-link-phone-inner.theme-lettuce .short-link-preview-btn { background: #f5d547; color: #0f172a; }
.short-link-phone-inner.theme-night { background: linear-gradient(180deg,#111827,#020617); color: #e2e8f0; }
.short-link-phone-inner.theme-night .short-link-preview-btn { background: #334155; color: #f8fafc; }
.short-link-phone-inner.theme-sunset { background: linear-gradient(180deg,#7c2d12,#ea580c); color: #fff7ed; }
.short-link-phone-inner.theme-sunset .short-link-preview-btn { background: #ffedd5; color: #7c2d12; }
.short-link-phone-inner.theme-ocean { background: linear-gradient(180deg,#0f3b57,#0b7893); color: #e6f7ff; }
.short-link-phone-inner.theme-ocean .short-link-preview-btn { background: #b6ecff; color: #0b2f43; }
.short-link-phone-inner.theme-lavender { background: linear-gradient(180deg,#4c1d95,#a855f7); color: #f5f3ff; }
.short-link-phone-inner.theme-lavender .short-link-preview-btn { background: #ede9fe; color: #4c1d95; }
.short-link-phone-inner.theme-mono { background: linear-gradient(180deg,#1f2937,#111827); color: #f3f4f6; }
.short-link-phone-inner.theme-mono .short-link-preview-btn { background: #f3f4f6; color: #111827; }
.short-link-avatar-picker { display: grid; gap: 8px; }
.short-link-avatar-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.short-link-avatar-actions button { white-space: normal; overflow-wrap: anywhere; text-align: center; min-height: 40px; }
.short-link-avatar-actions [hidden] { display: none !important; }
.short-link-upload-toggle { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 1rem; }
.short-link-avatar-actions.is-open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.short-link-upload-choice { width: 100%; border-color: #e7c83a; background: #f5d547; color: #0f172a; font-weight: 700; font-size: 1rem; }
.media-toggle-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,.45);
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
}
.media-toggle-dot.is-on { background: #22c55e; border-color: #16a34a; }
.media-toggle-dot.is-off { background: transparent; border-color: rgba(15,23,42,.45); }
.short-link-storage-modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1200; display: grid; place-items: center; padding: 18px; }
.short-link-storage-modal[hidden] { display: none !important; }
.short-link-storage-dialog { width: min(720px, 100%); max-height: min(80vh, 700px); overflow: auto; border-radius: 16px; background: #fff; border: 1px solid rgba(148,163,184,.4); box-shadow: 0 24px 56px rgba(15,23,42,.35); padding: 14px; display: grid; gap: 10px; }
.short-link-storage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.short-link-storage-item { border: 1px solid rgba(148,163,184,.45); border-radius: 12px; background: rgba(248,250,252,.95); color: inherit; text-align: left; padding: 8px; display: grid; gap: 6px; cursor: pointer; font: inherit; }
.short-link-storage-thumb { width: 100%; aspect-ratio: 1 / 1; border-radius: 9px; background-size: cover; background-position: center; background-color: rgba(15,23,42,.1); }
.short-link-storage-name { font-size: .76rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


@media (min-width: 1021px) {
  body.is-monetize-workspace-expanded {
    --workspace-sidebar-width: 240px;
    --workspace-sidebar-offset: calc(var(--workspace-sidebar-width) + clamp(20px, 4vw, 32px));
  }

  body.is-monetize-workspace-expanded .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
  }

  body.is-monetize-workspace-expanded .dashboard-sidebar {
    width: var(--workspace-sidebar-width);
    max-width: 100%;
    gap: 20px;
    position: absolute;
    top: clamp(24px, 4vw, 48px);
    left: clamp(24px, 4vw, 48px);
    z-index: 2;
  }

  body.is-monetize-workspace-expanded .dashboard-main.lettuce-id-page {
    padding-left: var(--workspace-sidebar-offset);
    padding-right: 0;
  }

  body.is-monetize-workspace-expanded .lettuce-id-layout.is-monetize-expanded {
    margin-top: 18px;
    margin-left: calc(-1 * var(--workspace-sidebar-offset));
    margin-right: calc(-1 * clamp(24px, 4vw, 48px));
    width: calc(100% + var(--workspace-sidebar-offset) + clamp(24px, 4vw, 48px));
  }

  body.is-monetize-workspace-expanded .dashboard-sidebar .sidebar-section-label,
  body.is-monetize-workspace-expanded .dashboard-sidebar .sidebar-nav {
    display: none;
  }

  body.is-monetize-workspace-expanded .lettuce-id-layout.is-monetize-expanded .short-link-icon-nav {
    grid-template-columns: repeat(7, minmax(88px, 112px));
    justify-content: start;
    width: 100%;
    margin-inline: 0;
  }

  body.is-monetize-workspace-expanded .lettuce-id-layout.is-monetize-expanded .short-link-section-host {
    width: 100%;
    margin-inline: 0;
  }

  body.is-monetize-workspace-expanded .lettuce-id-layout.is-monetize-expanded .short-link-nav-btn {
    aspect-ratio: auto;
    min-height: 94px;
    padding: 8px 6px;
  }

  body.is-analytics-workspace-expanded {
    --workspace-sidebar-width: 240px;
    --workspace-sidebar-offset: calc(var(--workspace-sidebar-width) + clamp(20px, 4vw, 32px));
  }

  body.is-analytics-workspace-expanded .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
  }

  body.is-analytics-workspace-expanded .dashboard-sidebar {
    width: var(--workspace-sidebar-width);
    max-width: 100%;
    gap: 20px;
    position: absolute;
    top: clamp(24px, 4vw, 48px);
    left: clamp(24px, 4vw, 48px);
    z-index: 2;
  }

  body.is-analytics-workspace-expanded .dashboard-main.lettuce-id-page {
    padding-left: var(--workspace-sidebar-offset);
    padding-right: 0;
  }

  body.is-analytics-workspace-expanded .lettuce-id-layout.is-analytics-expanded {
    margin-top: 18px;
    margin-left: calc(-1 * var(--workspace-sidebar-offset));
    margin-right: calc(-1 * clamp(24px, 4vw, 48px));
    width: calc(100% + var(--workspace-sidebar-offset) + clamp(24px, 4vw, 48px));
  }

  body.is-analytics-workspace-expanded .dashboard-sidebar .sidebar-section-label,
  body.is-analytics-workspace-expanded .dashboard-sidebar .sidebar-nav {
    display: none;
  }

  body.is-analytics-workspace-expanded .lettuce-id-layout.is-analytics-expanded .short-link-icon-nav {
    grid-template-columns: repeat(7, minmax(88px, 112px));
    justify-content: start;
    width: 100%;
    margin-inline: 0;
  }

  body.is-analytics-workspace-expanded .lettuce-id-layout.is-analytics-expanded .short-link-section-host {
    width: 100%;
    margin-inline: 0;
  }

  body.is-analytics-workspace-expanded .lettuce-id-layout.is-analytics-expanded .short-link-nav-btn {
    aspect-ratio: auto;
    min-height: 94px;
    padding: 8px 6px;
  }
}

.dashboard-main.lettuce-id-page {
  padding-left: clamp(14px, 2vw, 24px);
}

.lettuce-id-layout { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(320px, 400px); gap: 12px; align-items: start; transition: grid-template-columns .28s ease; }
.lettuce-id-layout.is-monetize-expanded { grid-template-columns: minmax(0, 1fr) 0fr; }
.lettuce-id-layout.is-analytics-expanded { grid-template-columns: minmax(0, 1fr) 0fr; }
.lettuce-id-layout.is-monetize-expanded .lettuce-id-preview-panel {
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
.lettuce-id-layout.is-analytics-expanded .lettuce-id-preview-panel {
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.lettuce-id-editor-layout { display: grid; gap: 10px; align-items: start; }
.short-link-icon-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.short-link-nav-btn { width: 100%; aspect-ratio: 1 / 1; border: 1px solid rgba(148,163,184,.45); background: rgba(15,23,42,.06); color: inherit; border-radius: 12px; padding: 10px 8px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-weight: 700; text-align: center; }
.short-link-nav-btn.is-active { border-color: #f5d547; background: rgba(245,213,71,.18); }
.short-link-nav-icon { width: 30px; height: 30px; border-radius: 999px; background: rgba(15,23,42,.1); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.short-link-nav-label { font-size: .78rem; line-height: 1.15; }
.short-link-section-host { display: grid; gap: 8px; }
.short-link-section { border: 1px solid rgba(148,163,184,.28); border-radius: 14px; padding: 10px; background: rgba(255,255,255,.35); display: none; gap: 8px; }
.short-link-section.is-active { display: grid; }
.short-link-section[hidden] { display: none !important; }
.short-link-actions[hidden] { display: none; }

.lettuce-id-editor { display: grid; gap: 8px; }
.lettuce-id-preview-panel { position: sticky; top: 24px; transition: opacity .24s ease, transform .24s ease, max-height .24s ease, padding .24s ease, border-width .24s ease; max-height: 2200px; }
.short-link-socials { display: grid; gap: 8px; }
.links-widget-toolbar { display: grid; gap: 10px; margin-bottom: 8px; }
.widgets-icon-tray { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-social-icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(148,163,184,.4); background: rgba(255,255,255,.9); font-weight: 700; cursor: pointer; }
.widgets-dropdown { display: grid; gap: 8px; }
.widgets-dropdown .social-row[hidden] { display: none !important; }
.widgets-dropdown .social-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; border: 1px solid rgba(148,163,184,.38); border-radius: 12px; background: rgba(255,255,255,.86); padding: 8px 10px; }
    .widget-cards-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .widget-card { border: 1px solid rgba(148,163,184,.34); background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.88)); border-radius: 20px; padding: 18px; display: grid; gap: 10px; cursor: pointer; min-height: 146px; align-content: start; box-shadow: 0 10px 24px rgba(15,23,42,.06); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
    .widget-card:hover,
    .widget-card:focus-visible { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15,23,42,.1); border-color: rgba(34,197,94,.28); outline: none; }
    .widget-card h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
    .widget-card p { margin: 0; color: #475569; font-size: .92rem; line-height: 1.45; }
    .widget-panel { display: grid; gap: 14px; border: 1px solid rgba(148,163,184,.28); border-radius: 20px; background: rgba(255,255,255,.84); padding: 18px; box-shadow: 0 16px 32px rgba(15,23,42,.08); }
    .widget-panel[hidden] { display: none !important; }
    .widget-panel-header { display: grid; gap: 10px; }
    .widget-panel-header h3 { margin: 0; font-size: 1.02rem; }
    .widget-panel-header p { margin: 0; color: #475569; }
    .widget-panel-back { width: fit-content; }
    .music-widget-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.music-widget-action.is-active { border-color: rgba(22, 163, 74, .45); background: rgba(220, 252, 231, .95); color: #166534; }
.social-names-toggle-inline { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #475569; }
.social-names-toggle-inline input[type="checkbox"] { appearance:none; -webkit-appearance:none; width:42px; height:24px; border-radius:999px; border:1px solid rgba(148,163,184,.45); background:#e2e8f0; position:relative; cursor:pointer; transition:.2s ease; }
.social-names-toggle-inline input[type="checkbox"]::after { content:''; position:absolute; width:18px; height:18px; border-radius:999px; background:#fff; top:2px; left:2px; box-shadow:0 1px 4px rgba(15,23,42,.2); transition:.2s ease; }
.social-names-toggle-inline input[type="checkbox"]:checked { background:#14532d; border-color:#14532d; }
.social-names-toggle-inline input[type="checkbox"]:checked::after { left:20px; }
        @media (max-width: 760px) {
            .widget-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .widget-card { min-height: 128px; padding: 16px; }
  .widgets-icon-tray { overflow-x:auto; flex-wrap:nowrap; scroll-snap-type:x mandatory; padding-bottom:6px; }
  .widget-social-icon { flex:0 0 auto; scroll-snap-align:start; }
}
.livelettuce-schedule-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.livelettuce-card { border: 1px solid rgba(148,163,184,.34); border-radius: 14px; padding: 10px; display: grid; gap: 8px; margin-bottom: 10px; background: rgba(255,255,255,.2); text-align: left; }
.livelettuce-card-head { display: flex; justify-content: space-between; align-items: center; }
.livelettuce-light { width: 12px; height: 12px; border-radius: 999px; background: #94a3b8; box-shadow: 0 0 0 3px rgba(148,163,184,.22); }
.livelettuce-light.is-live { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.24); }
.livelettuce-map { width: 100%; min-height: 120px; border: 0; border-radius: 12px; background: rgba(148,163,184,.18); }
.livelettuce-map--placeholder { display: grid; place-items: center; color: #64748b; font-size: .82rem; padding: 14px; }
.photo-widget-hero { width:100%; min-height:180px; border-radius:12px; background-size:cover; background-position:center; border:1px solid rgba(148,163,184,.3); }
.photo-widget-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.photo-widget-item { width:100%; aspect-ratio:1/1; border-radius:10px; background-size:cover; background-position:center; border:1px solid rgba(148,163,184,.3); }

/* Photo widget preview card (shared between dashboard live preview and the public Lettuce.ID page) */
.photo-widget-shell { position:relative; margin:6px 0 12px; width:100%; }
.photo-widget-card { position:relative; width:100%; border:0; padding:0; border-radius:22px; background:#fff; color:#111827; overflow:hidden; display:grid; text-align:left; cursor:pointer; box-shadow:0 14px 32px rgba(15,23,42,.18); }
.photo-widget-card-collage { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px 10px 0; background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94)); }
.photo-widget-card-collage.is-single { grid-template-columns:1fr; }
.photo-widget-card-tile { display:block; min-height:88px; border-radius:16px; background-size:cover; background-position:center; background-color:rgba(226,232,240,.9); }
.photo-widget-card-tile.is-single { min-height:180px; }
.photo-widget-card-footer { display:grid; gap:2px; justify-items:center; padding:10px 14px 14px; text-align:center; }
.photo-widget-card-footer strong { font-size:.98rem; line-height:1.2; color:#111827; }
.photo-widget-card-footer span { font-size:.84rem; color:#6b7280; }
.photo-widget-menu-btn { position:absolute; top:10px; right:10px; width:32px; height:32px; border:0; border-radius:999px; background:rgba(255,255,255,.94); color:#111827; display:grid; place-items:center; box-shadow:0 6px 14px rgba(15,23,42,.16); cursor:pointer; font-size:1.1rem; line-height:1; z-index:2; }
.photo-widget-modal, .photo-widget-share-sheet, .photo-widget-lightbox { position:fixed; inset:0; z-index:80; display:grid; padding:16px; }
.photo-widget-modal[hidden], .photo-widget-share-sheet[hidden], .photo-widget-lightbox[hidden] { display:none !important; }
.photo-widget-overlay-scrim { position:absolute; inset:0; background:rgba(15,23,42,.5); backdrop-filter:blur(14px); border:0; padding:0; cursor:pointer; }
.photo-widget-modal-dialog, .photo-widget-share-dialog, .photo-widget-lightbox-dialog { position:relative; width:min(520px,100%); max-width:100%; margin:auto; background:rgba(255,255,255,.98); color:#111827; border-radius:24px; overflow:hidden; box-shadow:0 24px 60px rgba(15,23,42,.28); }
.photo-widget-modal-dialog { max-height:min(92vh,860px); display:grid; grid-template-rows:auto 1fr; }
.photo-widget-modal-hero { position:relative; padding:24px 20px 18px; min-height:180px; display:grid; align-content:end; gap:6px; background-size:cover; background-position:center; color:#fff; }
.photo-widget-modal-hero::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(15,23,42,.8)); }
.photo-widget-modal-hero > * { position:relative; z-index:1; }
.photo-widget-eyebrow { margin:0; font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.92; }
.photo-widget-modal-title { margin:0; font-size:1.7rem; line-height:1.05; font-weight:800; }
.photo-widget-modal-count { margin:0; font-size:.92rem; font-weight:600; opacity:.95; }
.photo-widget-modal-note { margin:4px 0 0; font-size:.84rem; opacity:.9; }
.photo-widget-close-btn { position:absolute; top:14px; right:14px; z-index:2; width:36px; height:36px; border:0; border-radius:999px; background:rgba(255,255,255,.94); color:#111827; font-size:1.2rem; line-height:1; display:grid; place-items:center; cursor:pointer; }
.photo-widget-expanded-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px 12px 16px; overflow-y:auto; }
.photo-widget-expanded-item { border:0; padding:0; border-radius:18px; background:#fff; color:inherit; box-shadow:0 10px 22px rgba(15,23,42,.08); overflow:hidden; cursor:pointer; text-align:left; }
.photo-widget-expanded-item-image { display:block; width:100%; aspect-ratio:1/1; background-size:cover; background-position:center; background-color:rgba(226,232,240,.9); }
.photo-widget-expanded-item-copy { display:grid; gap:2px; padding:10px 12px 12px; }
.photo-widget-expanded-item-copy strong { font-size:.94rem; line-height:1.15; color:#111827; }
.photo-widget-expanded-item-copy span { font-size:.82rem; color:#6b7280; }
.photo-widget-share-dialog { padding:18px 0 20px; }
.photo-widget-share-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 18px 12px; }
.photo-widget-share-header h3 { margin:0; font-size:1.25rem; color:#111827; }
.photo-widget-share-preview { margin:0 18px 16px; border-radius:22px; background:#4b2d22; padding:16px; color:#fff; display:grid; place-items:center; text-align:center; box-shadow:0 14px 24px rgba(15,23,42,.16); }
.photo-widget-share-preview-art { width:120px; aspect-ratio:1/1; border-radius:16px; background-size:cover; background-position:center; margin-bottom:14px; background-color:rgba(255,255,255,.18); }
.photo-widget-share-preview h4 { margin:0; font-size:1.4rem; line-height:1.05; }
.photo-widget-share-actions { display:flex; gap:14px; overflow-x:auto; padding:0 18px 2px; }
.photo-widget-share-action { min-width:68px; border:0; background:transparent; color:#111827; display:grid; justify-items:center; gap:8px; cursor:pointer; }
.photo-widget-share-action span:last-child { font-size:.82rem; line-height:1.15; color:#111827; }
.photo-widget-share-icon { width:48px; height:48px; border-radius:999px; background:#f3f4f6; display:grid; place-items:center; font-size:1.4rem; font-weight:700; color:#111827; box-shadow:inset 0 0 0 1px rgba(148,163,184,.18); }
.photo-widget-share-icon.is-dark { background:#111827; color:#fff; }
.photo-widget-share-icon.is-blue { background:#2f80ed; color:#fff; }
.photo-widget-share-icon.is-green { background:#0fda6b; color:#fff; }
.photo-widget-lightbox-dialog { background:rgba(15,23,42,.96); padding:18px; display:grid; place-items:center; }
.photo-widget-lightbox-dialog img { max-width:100%; max-height:min(82vh,920px); object-fit:contain; border-radius:14px; box-shadow:0 18px 36px rgba(0,0,0,.28); }
.photo-widget-lightbox-dialog .photo-widget-close-btn { background:rgba(255,255,255,.16); color:#fff; }

/* Inside the dashboard preview phone, keep modals contained so they don't cover the entire dashboard */
.short-link-phone-inner .photo-widget-modal,
.short-link-phone-inner .photo-widget-share-sheet,
.short-link-phone-inner .photo-widget-lightbox { position:absolute; padding:10px; }
.short-link-phone-inner .photo-widget-modal-dialog,
.short-link-phone-inner .photo-widget-share-dialog,
.short-link-phone-inner .photo-widget-lightbox-dialog { width:100%; border-radius:18px; }
.short-link-phone-inner .photo-widget-modal-hero { min-height:140px; padding:18px 16px 14px; }
.short-link-phone-inner .photo-widget-modal-title { font-size:1.4rem; }
.short-link-phone-inner .photo-widget-card-tile { min-height:74px; }
.short-link-phone-inner .photo-widget-card-tile.is-single { min-height:150px; }
@media (max-width: 480px) {
    .photo-widget-modal-title { font-size:1.4rem; }
    .photo-widget-share-preview h4 { font-size:1.2rem; }
    .photo-widget-share-action { min-width:60px; }
    .photo-widget-share-icon { width:44px; height:44px; font-size:1.2rem; }
    .photo-widget-card-tile { min-height:70px; }
}

/* Gallery link card representation in the editor links list */
.short-link-item-row--gallery { background:linear-gradient(180deg, rgba(241,245,249,.96), rgba(226,232,240,.92)); border-color: rgba(148,163,184,.45); }
.short-link-item-row--gallery .gallery-row-summary { display:flex; align-items:center; gap:10px; padding:6px 4px; color:#0f172a; font-weight:600; }
.short-link-item-row--gallery .gallery-row-summary .gallery-row-icon { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:#fff; box-shadow:0 4px 10px rgba(15,23,42,.08); font-size:1.1rem; }
.short-link-item-row--gallery .gallery-row-summary .gallery-row-text { display:grid; gap:2px; }
.short-link-item-row--gallery .gallery-row-summary .gallery-row-text strong { font-size:.95rem; }
.short-link-item-row--gallery .gallery-row-summary .gallery-row-text span { font-size:.78rem; color:#475569; font-weight:500; }
.short-link-item-row--gallery .gallery-row-summary .gallery-row-edit { margin-left:auto; }

.photo-share-dots { border:0; background:transparent; font-size:1.3rem; line-height:1; cursor:pointer; color:#64748b; }
.photo-share-sheet { margin-top:8px; border:1px solid rgba(148,163,184,.28); background:#fff; border-radius:14px; padding:12px; }
.photo-share-sheet p { margin:0 0 8px; font-weight:700; color:#0f172a; }
.photo-share-icons { display:flex; flex-wrap:wrap; gap:8px; font-size:.85rem; color:#334155; }
.photo-share-icons span { border:1px solid rgba(148,163,184,.35); border-radius:999px; padding:6px 10px; }
.lettuce-id-editor .short-link-toggle-row { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 10px; width: fit-content; border: 1px solid rgba(148,163,184,.35); border-radius: 999px; background: rgba(255,255,255,.86); padding: 9px 14px; font-weight: 600; }
.lettuce-id-editor .short-link-toggle-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(100,116,139,.72);
  background: #fff;
  display: inline-grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
  transition: all .18s ease;
}
.lettuce-id-editor .short-link-toggle-row input[type="checkbox"]:checked {
  border-color: #f5d547;
  background: #f5d547;
}
.lettuce-id-editor .short-link-toggle-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245,213,71,.28);
}
.short-link-socials .social-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; border: 1px solid rgba(148,163,184,.38); border-radius: 12px; background: rgba(255,255,255,.86); padding: 8px 10px; }
.short-link-socials .social-row input { border: 1px solid rgba(148,163,184,.38); border-radius: 10px; background: rgba(255,255,255,.94); padding: 9px 10px; }
.short-link-socials .social-row input:focus { outline: none; border-color: #f5d547; box-shadow: 0 0 0 2px rgba(245,213,71,.2); }
.preview-header { height: 165px; border-radius: 18px 18px 0 0; background-size: cover; background-position: center; margin: -24px -16px 10px; }
.social-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.social-pill { font-size: .7rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--short-link-social-bg, rgba(255,255,255,.22)); text-decoration: none; color: inherit; display: inline-flex; align-items: center; }

@media (max-width: 1200px) {
  .lettuce-id-layout { grid-template-columns: 1fr 1fr; }
  .lettuce-id-preview-panel { grid-column: 1 / -1; }
}

@media (max-width: 1020px) {
  .lettuce-id-layout { grid-template-columns: 1fr; }
  .short-link-icon-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lettuce-id-preview-panel { position: static; }
}

@media (max-width: 640px) {
  .short-link-icon-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .short-link-icon-nav::-webkit-scrollbar { display: none; }
  .short-link-nav-btn {
    flex: 0 0 calc((100vw - 56px) / 3);
    width: calc((100vw - 56px) / 3);
    min-width: 92px;
    max-width: 108px;
    min-height: 80px;
    aspect-ratio: auto;
    scroll-snap-align: start;
    gap: 5px;
    padding: 8px 6px;
  }
  .lettuce-id-preview-panel { padding: 0; border-radius: 0; border: none; box-shadow: none; background: transparent; }
  .short-link-phone { margin-top: 0; }
  .preview-header { border-radius: 0; }
}

.short-link-save-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1400;
  min-width: 240px;
  max-width: min(90vw, 360px);
  border-radius: 14px;
  padding: 12px 14px;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid rgba(186, 230, 253, .55);
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 55%, #16a34a 100%);
  box-shadow: 0 16px 30px rgba(8, 47, 73, 0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.short-link-save-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.short-link-save-toast.is-error {
  background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 45%, #dc2626 100%);
}

/* Lettuce.ID refresh */
.lettuce-id-editor.panel { border-radius: 20px; padding: 14px; }
.lettuce-id-editor label { display:grid; gap:6px; font-weight:600; color: var(--text-secondary, #334155); }
.lettuce-id-editor label input:not([type="color"]),
.lettuce-id-editor label textarea,
.lettuce-id-editor label select,
.lettuce-id-editor .short-link-avatar-actions input {
  border: 1px solid rgba(148,163,184,.45);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: #1f2937;
  padding: 10px 12px;
  font-weight: 500;
}
.lettuce-id-editor label textarea { min-height: 94px; resize: vertical; }
.lettuce-id-editor label input:not([type="color"]):focus,
.lettuce-id-editor label textarea:focus,
.lettuce-id-editor label select:focus,
.lettuce-id-editor .short-link-avatar-actions input:focus {
  outline: none;
  border-color: #f5d547;
  box-shadow: 0 0 0 2px rgba(245,213,71,.2);
}
.short-link-save { width: 100%; background: #f5d547; color: #0f172a; border: 1px solid #e7c83a; font-weight: 800; padding: 12px 16px; border-radius: 999px; }
.short-link-actions { display: grid; gap: 8px; }
.short-link-preview-link {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.14));
  color: #0f172a;
  font-weight: 800;
  letter-spacing: .01em;
}
.short-link-preview-link:hover,
.short-link-preview-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.24));
  box-shadow: 0 8px 22px rgba(14, 116, 144, 0.22);
}
.social-label { display:flex; align-items:center; gap:8px; font-weight:700; }
.social-icon, .social-icon-chip { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:999px; background:rgba(15,23,42,.08); font-size:.82rem; font-weight:700; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.social-icon svg, .social-icon-chip svg { width: 14px; height: 14px; display: block; }
.social-icon-chip { background: var(--short-link-social-bg, rgba(255,255,255,.25)); color: var(--short-link-social-icon, #0f172a); }
.social-pill--with-name { border-radius: 14px; padding: 7px 11px; }
.short-link-item-row { border-radius: 14px; background: rgba(255,255,255,.64); padding: 10px; }
.short-link-item-row { cursor: grab; touch-action: manipulation; transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease; }
.short-link-item-row.is-dragging-link { cursor: grabbing; z-index: 2; opacity: .92; box-shadow: 0 16px 32px rgba(15,23,42,.18); touch-action: none; }
.short-link-item-row--music { border-color: rgba(34, 197, 94, .32); background: rgba(240, 253, 244, .82); }
.link-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; font-weight:700; }
.link-remove { border:none; background:transparent; cursor:pointer; font-size:1rem; }
.link-card-input { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.link-card-input input { flex:1; border-radius: 10px; border: 1px solid rgba(148,163,184,.38); background: rgba(255,255,255,.94); }
.short-link-item-row input[data-item-title] { border-radius: 10px; border: 1px solid rgba(148,163,184,.38); background: rgba(255,255,255,.94); padding: 10px 12px; }
.lettuce-id-editor input[type="url"],
.lettuce-id-editor input[type="text"],
.lettuce-id-editor textarea {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}
.preview-header { height: 205px; margin: -24px -16px 8px; border-radius: 18px 18px 0 0; background-size: cover; background-position: center; }
.short-link-preview-links { margin-top: 14px; gap: 12px; }
.short-link-phone-inner { color: var(--short-link-text, #f8fafc); background-image: var(--short-link-bg-image, none), linear-gradient(180deg, var(--short-link-bg-top, #2f8f46), var(--short-link-bg-bottom, #1f5f30)); background-size: cover, cover; background-position: center; }
.short-link-phone-inner.bg-design-mesh { background-image: var(--short-link-bg-image, none), linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(180deg, var(--short-link-bg-top, #2f8f46), var(--short-link-bg-bottom, #1f5f30)); background-size: cover, 22px 22px, 22px 22px, auto; }
.short-link-phone-inner.bg-design-grain { background-image: var(--short-link-bg-image, none), radial-gradient(rgba(255,255,255,.1) 0.9px, transparent 0.9px), linear-gradient(180deg, var(--short-link-bg-top, #2f8f46), var(--short-link-bg-bottom, #1f5f30)); background-size: cover, 7px 7px, auto; }
.short-link-phone-inner.bg-design-waves { background-image: var(--short-link-bg-image, none), radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.22), transparent 58%), radial-gradient(120% 80% at 50% 100%, rgba(255,255,255,.18), transparent 58%), linear-gradient(180deg, var(--short-link-bg-top, #2f8f46), var(--short-link-bg-bottom, #1f5f30)); background-size: cover, cover, cover, auto; }
.short-link-preview-btn { background: var(--short-link-button-bg, rgba(255,255,255,.92)); color: var(--short-link-button-text, #2b2f37); border: 1px solid rgba(15,23,42,.12); box-shadow: 0 6px 18px rgba(15,23,42,.12); border-radius: 14px; text-align: left; padding: 13px 14px; }
.short-link-preview-btn--template-classic-pill { border-radius: 999px; text-align: center; }
.short-link-preview-btn--template-pool-glass { background: rgba(255,255,255,.84); border-color: rgba(255,255,255,.7); backdrop-filter: blur(3px); }
.short-link-preview-btn--template-street-tape { border-radius: 2px; box-shadow: none; transform: rotate(-.4deg); }
.short-link-preview-btn--template-journal-cards { border-radius: 6px; box-shadow: none; border-color: rgba(120,113,108,.32); }
.short-link-preview-btn--template-neon-outline { background: transparent; border-color: rgba(125,211,252,.76); color: #e0f2fe; }
.short-link-preview-btn--template-clean-stack { background: #fff; border-color: rgba(226,232,240,.92); box-shadow: none; }
.short-link-preview-btn--template-soft-shadow { border-radius: 18px; box-shadow: 0 12px 26px rgba(15,23,42,.2); }
.short-link-preview-btn--template-capsule-glow { border-radius: 18px; box-shadow: 0 0 0 2px rgba(255,255,255,.16), 0 14px 28px rgba(16,185,129,.24); }
.short-link-preview-btn--template-brick-solid { border-radius: 8px; box-shadow: none; border-color: transparent; }
.short-link-preview-card--template-street-tape { align-items: stretch; text-align: left; }
.short-link-preview-card--template-street-tape h3,
.short-link-preview-card--template-street-tape .short-link-preview-bio { text-align: center; }
.short-link-preview-card--template-street-tape .short-link-preview-avatar,
.short-link-preview-card--template-street-tape .short-link-preview-avatar--fallback { margin-left: auto; margin-right: auto; }
.short-link-preview-card--template-journal-cards h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.short-link-phone-inner.template-neon-outline { background-image: var(--short-link-bg-image, none), radial-gradient(circle at 50% 0%, rgba(59,130,246,.28) 0%, var(--short-link-bg-top, #1f5f30) 42%, var(--short-link-bg-bottom, #111827) 100%); background-size: cover, cover; }
.short-link-preview-card--template-street-tape .social-pills { justify-content: center; }
.social-pills--below-links { margin-top: 16px; }
.social-pills--no-circles .social-pill { background: transparent; border: none; min-width: auto; padding: 6px; color: var(--short-link-text, #f8fafc); text-shadow: 0 1px 6px rgba(2,6,23,.55); }
.social-pills--no-circles .social-icon-chip { background: transparent; width: 26px; height: 26px; }
.social-pills--no-circles .social-icon-chip svg { width: 20px; height: 20px; }
.short-link-preview-btn--affiliate-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; text-decoration: none; }
.short-link-preview-btn__media { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(148,163,184,.35); background: #fff; display: block; }
.short-link-preview-btn__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.short-link-preview-btn__copy { display: grid; gap: 3px; line-height: 1.2; }
.short-link-preview-btn__brand { font-size: .78rem; font-weight: 700; opacity: .7; }
.short-link-preview-embed { display: block; text-decoration: none; border-radius: 14px; overflow: hidden; border: 0; box-shadow: none; background: transparent; color: #f8fafc; }
.short-link-preview-embed[type="button"] { width: 100%; padding: 0; cursor: pointer; font: inherit; }
.short-link-preview-embed-media { position: relative; display: grid; place-items: center; min-height: 122px; font-weight: 800; letter-spacing: .02em; }
.short-link-preview-embed-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.short-link-preview-embed-media iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.short-link-preview-embed-media--portrait { aspect-ratio: 9/16; max-width: 220px; margin: 0 auto; }
.short-link-preview-embed-media--spotify { aspect-ratio: auto; height: 152px; }
.short-link-preview-embed-media--apple-music { aspect-ratio: auto; height: 175px; background: #fff; }
.short-link-preview-embed-media--apple-music--tall { height: 450px; }
.short-link-preview-embed-media--tweet { aspect-ratio: auto; height: 250px; background: #fff; }
.short-link-preview-embed-media--pinterest { aspect-ratio: auto; height: 420px; background: #fff; }
.short-link-preview-embed-card { display: grid; place-items: center; text-align: center; width: 100%; height: 100%; padding: 14px; }
.short-link-preview-embed-card--x { background: #fff; color: #111827; }
.short-link-preview-embed-card--spotify { background: linear-gradient(160deg, #1db954, #065f46); color: #f0fdf4; }
.short-link-preview-embed-card--tiktok { background: linear-gradient(160deg, #111827, #ef4444); color: #fff; }
.short-link-preview-embed-card--twitch { background: linear-gradient(160deg, #9146ff, #4c1d95); color: #fff; }

.short-link-theme-toggle { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border:1px solid rgba(148,163,184,.35); border-radius:10px; overflow:hidden; }
.short-link-theme-overlay .short-link-theme-toggle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-mode-btn { border:0; background:rgba(15,23,42,.05); padding:9px 8px; font-weight:700; cursor:pointer; color:inherit; }
.theme-mode-btn + .theme-mode-btn { border-left:1px solid rgba(148,163,184,.35); }
.theme-mode-btn.is-active { background: rgba(245,213,71,.26); color:#0f172a; }
.short-link-theme-palette { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:8px; }
.theme-preset-swatch { border:1px solid rgba(148,163,184,.35); border-radius:10px; background:rgba(255,255,255,.42); display:flex; align-items:center; justify-content:space-between; padding:8px; cursor:pointer; }
.theme-preset-swatch.is-active { border-color:#f5d547; box-shadow:0 0 0 2px rgba(245,213,71,.35); }
.theme-preset-colors { display:inline-flex; gap:4px; }
.theme-preset-colors span { width:18px; height:18px; border-radius:4px; border:1px solid rgba(15,23,42,.14); }
.theme-preset-name { font-size:.78rem; font-weight:700; }
.short-link-theme-colors { display:grid; gap:8px; }
.short-link-theme-colors[hidden] { display:none; }
.theme-color-input { margin-top:4px; display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid rgba(148,163,184,.38); border-radius:12px; padding:8px 10px; background:rgba(255,255,255,.92); }
.theme-color-input input[type="color"] { width:32px; height:32px; border:none; background:transparent; padding:0; border-radius:8px; cursor:pointer; }
.theme-overlay-title { margin:2px 0 0; font-weight:700; }
.panel-header--theme-starters { align-items: flex-start; gap: 12px; }
.theme-starter-scope-toggle { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.theme-starter-scope-btn {
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #334155;
  padding: 6px 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-starter-scope-btn.is-active {
  border-color: #f5d547;
  box-shadow: 0 0 0 2px rgba(245,213,71,.22);
  color: #0f172a;
}
.theme-starter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-starter-card {
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  cursor: pointer;
  padding: 8px;
  display: grid;
  gap: 8px;
  text-align: left;
}
.theme-starter-card:hover,
.theme-starter-card:focus-visible {
  border-color: #f5d547;
  box-shadow: 0 0 0 2px rgba(245,213,71,.25);
  outline: none;
}
.theme-starter-preview {
  border-radius: 10px;
  min-height: 146px;
  border: 1px solid rgba(15,23,42,.12);
  padding: 8px;
  display: grid;
  align-content: space-between;
  gap: 4px;
}
.theme-starter-wire {
  border-radius: 10px;
  min-height: 104px;
  padding: 7px;
  background: rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 4px;
  align-content: start;
}
.theme-starter-wire-avatar { width: 22px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.76); justify-self: center; }
.theme-starter-wire-name { width: 68%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.74); justify-self: center; }
.theme-starter-wire-bio { width: 82%; height: 5px; border-radius: 999px; background: rgba(255,255,255,.5); justify-self: center; }
.theme-starter-wire-link { width: 100%; height: 10px; border-radius: 999px; background: rgba(255,255,255,.86); }
.theme-starter-wire-socials { width: 60%; height: 5px; border-radius: 999px; background: rgba(255,255,255,.52); justify-self: center; margin-top: 2px; }
.theme-starter-card[data-starter-template="street-tape"] .theme-starter-wire-link { border-radius: 2px; transform: rotate(-.6deg); }
.theme-starter-card[data-starter-template="journal-cards"] .theme-starter-wire-link { border-radius: 4px; border: 1px solid rgba(15,23,42,.15); background: rgba(245,241,232,.95); }
.theme-starter-card[data-starter-template="neon-outline"] .theme-starter-wire-link { background: transparent; border: 1px solid rgba(186,230,253,.88); }
.theme-starter-card[data-starter-template="brick-solid"] .theme-starter-wire-link { border-radius: 5px; background: rgba(251,191,36,.85); }
.theme-starter-card[data-starter-template="wedding-suite"] .theme-starter-wire-link { border-radius: 999px; background: rgba(232,220,196,.88); }
.theme-starter-title { font-size: .78rem; font-weight: 800; line-height: 1.2; }
.theme-starter-subtitle { font-size: .65rem; opacity: .78; line-height: 1.2; }
.theme-starter-meta { font-size: .72rem; font-weight: 700; line-height: 1.2; color: #334155; }
.wedding-header-fields { display: grid; gap: 8px; }
.wedding-header-fields[hidden] { display: none; }

.podcast-header-fields { display:grid; gap:8px; }
.podcast-header-fields[hidden] { display:none; }
.short-link-phone-inner.template-podcast-starts { background:#eceef3; color:#0b1020; overflow-y:auto; overflow-x:hidden; font-family:var(--podcast-font, Inter, system-ui, sans-serif); padding:0; }
.podcast-preview { min-height:100%; background:#eceef3; color:#0b1020; }
.podcast-preview * { box-sizing:border-box; }
.podcast-preview .podcast-header { position:sticky; top:0; background:#fff; z-index:20; border-bottom:1px solid rgba(15,23,42,.1); display:grid; grid-template-columns:1fr auto auto; grid-template-areas:"brand nav follow" "search search search"; gap:10px; padding:10px 12px; }
.podcast-preview .podcast-brand { grid-area:brand; display:flex; align-items:center; gap:10px; font-weight:800; white-space:nowrap; }
.podcast-preview .podcast-brand-mark { width:24px; height:24px; border-radius:999px; display:grid; place-items:center; background:var(--podcast-accent,#7c3aed); color:#fff; font-size:12px; flex:0 0 auto; }
.podcast-preview .podcast-nav { grid-area:nav; display:flex; gap:8px; align-items:center; min-width:0; }
.podcast-preview .podcast-nav a { text-decoration:none; font-weight:700; font-size:.95rem; color:inherit; }
.podcast-preview .podcast-follow-btn { grid-area:follow; padding:10px 14px; border-radius:10px; border:0; background:var(--podcast-accent,#7c3aed); color:#fff; font-weight:800; cursor:pointer; text-decoration:none; }
.podcast-preview .podcast-search { grid-area:search; display:flex; align-items:center; gap:8px; border:1px solid rgba(148,163,184,.4); background:#fff; border-radius:999px; padding:8px 12px; }
.podcast-preview .podcast-search input { border:0; background:transparent; outline:none; flex:1; min-width:0; font:inherit; color:inherit; }
.podcast-preview .podcast-hero { height:170px; background:radial-gradient(circle at 10% 0,#8b5cf6 0,#2e1065 44%,#12052e 100%); background-size:cover; background-position:center; }
.podcast-preview .podcast-main { max-width:1220px; margin:-42px auto 0; padding:0 12px 24px; display:grid; gap:14px; }
.podcast-preview .podcast-summary { background:#fff; border:1px solid rgba(148,163,184,.35); border-radius:14px; padding:12px; display:grid; grid-template-columns:96px 1fr; gap:10px; align-items:start; }
.podcast-preview .podcast-cover { width:96px; height:96px; border-radius:12px; background:#d1d5db center/cover no-repeat; box-shadow:0 10px 24px rgba(15,23,42,.2); }
.podcast-preview .podcast-cover--empty { border:0; cursor:pointer; padding:0; display:grid; place-items:center; color:#64748b; font-size:1.65rem; }
.podcast-preview .podcast-cover--empty span { line-height:1; }
.podcast-preview .podcast-summary h1 { margin:0 0 8px; font-size:2.2rem; line-height:1.05; }
.podcast-preview .podcast-summary p { margin:0 0 6px; }
.podcast-preview .podcast-meta { color:#64748b; font-weight:600; }
.podcast-preview .podcast-aside { background:#fff; border:1px solid rgba(148,163,184,.35); border-radius:14px; padding:12px; }
.podcast-preview .podcast-aside h3 { margin:0 0 12px; font-size:1.8rem; }
.podcast-preview .podcast-aside p { margin:0; line-height:1.45; }
.podcast-preview .podcast-aside--about-card { margin-top:10px; }
.podcast-preview .podcast-aside--about-card h3 { margin-bottom:6px; font-size:1.4rem; }
.podcast-preview .podcast-section-title { margin:14px 0 10px; font-size:2rem; line-height:1.1; }
.podcast-preview .podcast-episodes { display:grid; gap:10px; }
.podcast-preview .episode-card { background:#fff; border:1px solid rgba(148,163,184,.35); border-radius:14px; padding:10px; display:grid; grid-template-columns:46px 1fr; gap:10px; }
.podcast-preview .episode-play { width:46px; height:46px; border-radius:999px; border:0; background:var(--podcast-accent,#7c3aed); color:#fff; cursor:pointer; font-size:18px; }
.podcast-preview .episode-card h3 { margin:0 0 6px; font-size:1.9rem; line-height:1.06; }
.podcast-preview .episode-card p { margin:0 0 8px; color:#1e293b; }
.podcast-preview .episode-meta { color:#64748b; font-weight:600; }
.podcast-preview .episode-card audio { width:100%; margin-top:8px; }
.podcast-preview .follow-chip { display:block; padding:10px 12px; border:1px solid rgba(148,163,184,.4); background:#fff; border-radius:999px; text-decoration:none; margin-bottom:8px; font-weight:700; color:inherit; }
.podcast-preview .podcast-follow-view { display:none; max-width:1220px; margin:0 auto; padding:0 12px 24px; }
.podcast-preview .podcast-follow-view.is-open { display:block; }
.podcast-preview .podcast-follow-panel { background:#fff; border:1px solid rgba(148,163,184,.35); border-radius:16px; padding:16px; }
.podcast-preview .podcast-follow-topbar { display:flex; justify-content:flex-end; margin-bottom:8px; }
.podcast-preview .podcast-follow-close { border:0; background:transparent; padding:0; font-weight:700; cursor:pointer; color:#0b1020; }
.podcast-preview .podcast-follow-panel h2 { margin:0 0 14px; font-size:1.6rem; }
.podcast-preview .podcast-follow-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.podcast-preview .podcast-follow-card { display:flex; align-items:center; justify-content:center; padding:12px 14px; border:1px solid rgba(148,163,184,.35); border-radius:999px; text-decoration:none; background:#f8fafc; font-weight:700; color:inherit; }
.podcast-preview .podcast-rss { margin-top:16px; border:1px dashed rgba(148,163,184,.42); padding:12px; border-radius:12px; display:flex; justify-content:space-between; gap:8px; align-items:center; word-break:break-all; }
.podcast-preview .podcast-rss button { border:0; background:var(--podcast-accent,#7c3aed); color:#fff; padding:10px 12px; border-radius:10px; font-weight:700; cursor:pointer; white-space:nowrap; }
.podcast-preview .podcast-see-more { width:100%; margin-top:8px; border:1px solid rgba(124,58,237,.35); border-radius:999px; background:#f5f3ff; color:#5b21b6; font-weight:700; padding:10px; cursor:pointer; }
@media(min-width:980px){
    .podcast-preview .podcast-header { grid-template-columns:auto auto 1fr auto; grid-template-areas:"brand nav search follow"; align-items:center; padding:14px 20px; }
    .podcast-preview .podcast-main { grid-template-columns:1fr 280px; margin-top:-60px; padding:0 20px 40px; }
    .podcast-preview .podcast-summary h1 { font-size:3.4rem; }
    .podcast-preview .episode-card h3 { font-size:2.4rem; }
}

.short-link-phone-inner.template-wedding-suite {
  background: var(--short-link-bg-top, #fdfaf6);
  color: #2d2d2d;
  padding: 0;
  overflow: hidden auto;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
.short-link-preview-wedding { min-height: 100%; height: 100%; background: var(--short-link-bg-top, #fdfaf6); color: #2d2d2d; position: relative; display:flex; flex-direction:column; }
.short-link-preview-wedding [data-preview-edit] { cursor: text; outline: none; border-radius: 6px; }
.short-link-preview-wedding [data-preview-edit]:focus { box-shadow: inset 0 -2px 0 rgba(193,102,70,.45); background: rgba(255,255,255,.2); }
.wedding-scroll-container { height: 100%; overflow-y: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; display:flex; flex-direction:column; }
.wedding-clay-header {
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  padding: 20px 28px; position: relative; z-index: 20; background: var(--short-link-button-bg, #c16646); color: #2d2d2d;
  display: grid;
}
.wedding-clay-header-link {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.wedding-clay-header-link:last-child { justify-self: end; }
.wedding-clay-brand {
  font-family: "Young Serif", Georgia, serif;
  font-size: 18px; font-weight: 400; letter-spacing: .02em;
  justify-self: center;
  text-align: center;
  width: 100%;
}
.wedding-clay-hero {
  background: var(--short-link-button-bg, #c16646);
  color: var(--short-link-button-text, #fdfaf6);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 430px; position: relative; padding: 20px 28px 40px;
}
.wedding-clay-hero.is-compact { min-height: 210px; padding-bottom: 18px; }
.wedding-clay-utility-row { width: 100%; display: flex; justify-content: space-between; margin-bottom: 18px; }
.wedding-clay-utility {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .8;
}
.wedding-clay-photo {
  width: 196px; height: 258px; border-radius: 24px; overflow: hidden;
  background: #e8dcc4; border: 2px solid #fdfaf6; box-shadow: 0 12px 30px rgba(0,0,0,.1); position: relative; z-index: 2;
}
.wedding-clay-photo-inner { width: 100%; height: 100%; background: linear-gradient(140deg,#e8dcc4,#d4b89c); display: grid; place-items: center; }
.wedding-clay-headline {
  margin: 16px 0 0; font-family: "Young Serif", Georgia, serif; font-size: 42px; color: #3f1d10; text-align: center; line-height: 1; letter-spacing: -.02em; text-transform: lowercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
}
.wedding-clay-scroll-text {
  font-family: "Young Serif", Georgia, serif; font-size: 14px; font-weight: 500; color: #3f1d10; opacity: 1; text-align: center; line-height: 1.5; margin-top: 14px;
}
.wedding-clay-cream-zone {
  background: var(--short-link-bg-top, #fdfaf6);
  padding: 24px 20px 92px;
  border-top-left-radius: 32px; border-top-right-radius: 32px;
  margin-top: -28px; position: relative; z-index: 15; box-shadow: 0 -10px 40px rgba(0,0,0,.05);
}
.wedding-action-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.wedding-action-pill {
  font-family: "Inter", system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; padding: 10px 14px; border: 1.5px solid #c16646; color: #c16646; background: transparent; display: inline-flex; align-items: center; gap: 7px;
}
.wedding-action-pill.is-filled { background: #c16646; color: #fdfaf6; border-color: #c16646; }
.wedding-event-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.wedding-icon-circle {
  width: 40px; height: 40px; border-radius: 50%; background: #e8dcc4; display: grid; place-items: center; color: #a65133; flex: 0 0 auto;
}
.wedding-event-label { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; opacity: .4; margin: 0 0 2px; }
.wedding-event-copy { font-weight: 600; color: #2d2d2d; margin: 0; }
.wedding-event-copy-button {
  border: 0;
  background: #f7efe6;
  color: #8e4429;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: .86rem;
  text-align: left;
}
.wedding-clay-divider { width: 100%; height: 1px; background: #c16646; opacity: .12; margin: 0; border: 0; }
.wedding-home-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 120px; gap: 10px; overflow-x: auto; padding-top: 16px; }
.wedding-home-carousel .wedding-gallery-item { min-height: 120px; width: 120px; }
.wedding-preview-page.wedding-subpage { background: var(--short-link-bg-top, #fdfaf6); border-radius: 32px 32px 0 0; margin-top: -12px; padding: 20px 20px 92px; box-shadow: 0 -10px 30px rgba(0,0,0,.05); }
.wedding-preview-page.wedding-subpage .wedding-registry-chip { border: 1px solid rgba(193,102,70,.2); box-shadow: 0 8px 20px rgba(193,102,70,.08); }
.wedding-gallery-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 22px 0 10px; }
.wedding-gallery-title { margin: 0; font-family: "Young Serif", Georgia, serif; font-size: 1.6rem; color: #a65133; text-transform: lowercase; }
.wedding-gallery-link { font-size: 10px; font-weight: 700; color: #c16646; letter-spacing: .18em; text-transform: uppercase; }
.wedding-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wedding-gallery-item { aspect-ratio: 1; border-radius: 12px; background: #e8dcc4; overflow: hidden; position: relative; border: 1px solid rgba(193,102,70,.15); }
.wedding-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wedding-gallery-item-plus { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #c16646; background: rgba(253,250,246,.72); cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.wedding-gallery-item.is-armed .wedding-gallery-item-plus { opacity: 1; }
.wedding-registry {
  margin-top: 24px; padding: 16px; border-radius: 24px; background: rgba(232,220,196,.4); border: 1px solid rgba(193,102,70,.1);
}
.wedding-registry-title { margin: 0 0 12px; font-family: "Young Serif", Georgia, serif; font-size: 1.35rem; color: #a65133; text-transform: lowercase; }
.wedding-registry-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.wedding-registry-chip { background:#fdfaf6; padding:12px 8px; border-radius:16px; display:grid; gap:2px; text-align:center; }
.wedding-registry-chip small { font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; opacity:.4; }
.wedding-registry-chip strong { font-size:.84rem; font-weight:700; color:#2d2d2d; }
.wedding-footer-note { text-align:center; font-size:11px; font-weight:500; opacity:.3; margin:22px 0 0; letter-spacing:.2em; text-transform:uppercase; }
.wedding-bottom-nav {
  position: relative; width: 100%; height: 68px; background: #fdfaf6;
  border-top: 1px solid rgba(193,102,70,.1); display: flex; justify-content: space-around; align-items: center;
  padding: 0 10px 10px; z-index: 40; margin-top: auto;
}
.wedding-bottom-nav-item { display:flex; flex-direction:column; align-items:center; gap:3px; color:#2d2d2d; opacity:.5; text-decoration:none; }
.wedding-bottom-nav-item,.wedding-bottom-nav-plus{border:0;background:transparent;font:inherit;cursor:pointer}
.wedding-bottom-nav-item.is-active { opacity: 1; color:#c16646; }
.wedding-bottom-nav-item span { font-size:9px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.wedding-bottom-nav-plus {
  width: 42px; height: 42px; border-radius: 999px; background: #c16646; color:#fdfaf6;
  display:grid; place-items:center; margin-top:-20px; border: 4px solid #fdfaf6; box-shadow: 0 8px 18px rgba(193,102,70,.2);
}
.wedding-rsvp-modal { position: absolute; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; padding: 14px; z-index: 70; }
.wedding-rsvp-dialog { width: min(340px, 100%); border-radius: 18px; background: linear-gradient(180deg,#fff7ef,#ffffff); padding: 16px; display: grid; gap: 10px; color: #7c2d12; border:1px solid rgba(193,102,70,.2); box-shadow: 0 20px 40px rgba(193,102,70,.15); }
.wedding-rsvp-dialog input,.wedding-rsvp-dialog textarea,.wedding-rsvp-dialog select { width: 100%; border: 1px solid rgba(148,163,184,.35); border-radius: 10px; padding: 8px; }
.wedding-rsvp-name-grid { display: grid; gap: 8px; max-height: 200px; overflow: auto; }
.wedding-rsvp-actions { display: flex; justify-content: flex-end; gap: 8px; }
.wedding-rsvp-actions button { border: 1px solid rgba(148,163,184,.4); border-radius: 10px; background: #fff; padding: 8px 10px; cursor: pointer; }
.wedding-rsvp-modal[hidden] { display: none !important; }
.wedding-attending-note { margin: 0; font-weight: 600; color: #7c2d12; background: #f7efe6; border-radius: 12px; padding: 10px 12px; }
.wedding-details-photo-preview { width: calc(100% + 48px); max-width: none; margin: 0 -24px 16px; display: block; max-height: 220px; object-fit: cover; border-radius: 0; }
.wedding-details-card-preview { background: #fff7ef; border: 1px solid rgba(193,102,70,.18); border-radius: 16px; padding: 14px; }

.short-link-preview-avatar--image { background-size: cover; background-position: center; }
.preview-booking-overlay { position: absolute; inset: 10px; border-radius: 22px; background: rgba(17,24,39,.62); display: none; align-items: center; justify-content: center; z-index: 20; padding: 12px; }
.preview-booking-overlay.is-open { display: flex; }
.preview-booking-modal { width: 100%; height: 100%; border-radius: 20px; background: #f4f4f3; color: #111827; padding: 14px; overflow-y: auto; display: grid; align-content: start; gap: 12px; }
.preview-booking-head { display: flex; align-items: center; justify-content: space-between; }
.preview-booking-card { border: 1px solid rgba(148,163,184,.35); border-radius: 14px; padding: 10px; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.preview-booking-pill { border-radius: 999px; background: #111827; color: #fff; padding: 6px 12px; font-weight: 700; }
.preview-booking-calendar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.preview-booking-calendar button { border: 1px solid rgba(148,163,184,.4); border-radius: 999px; background: #fff; min-height: 36px; }
.preview-booking-slots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.preview-booking-slots button { border: 1px solid rgba(148,163,184,.4); border-radius: 999px; background: #fff; padding: 8px; }
.preview-booking-slots button[disabled] { opacity: .45; text-decoration: line-through; }

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-nav-btn {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.48);
  color: #e2e8f0;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-nav-btn.is-active {
  border-color: #f5d547;
  background: rgba(245, 213, 71, 0.2);
  color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-nav-btn:hover,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-nav-btn:focus-visible {
  border-color: rgba(245, 213, 71, 0.72);
  background: rgba(245, 213, 71, 0.16);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-nav-icon {
  background: rgba(148, 163, 184, 0.2);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-section {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.4);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .lettuce-id-editor label {
  color: rgba(241, 245, 249, 0.95);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .lettuce-id-editor label input:not([type="color"]),
body.dashboard-body[data-theme="dark"] .lettuce-id-page .lettuce-id-editor label textarea,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .lettuce-id-editor label select,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .link-card-input input,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-item-row input[data-item-title],
body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-socials .social-row input {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.48);
  color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .lettuce-id-editor label input::placeholder,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .lettuce-id-editor label textarea::placeholder,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-socials .social-row input::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-socials .social-row,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-item-row,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .theme-starter-card,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .theme-preset-swatch,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .theme-color-input,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .lettuce-id-editor .short-link-toggle-row {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.44);
  color: #f8fafc;
}
body.dashboard-body[data-theme="dark"] .lettuce-id-page .theme-starter-meta {
  color: rgba(226, 232, 240, 0.92);
}
body.dashboard-body[data-theme="dark"] .lettuce-id-page .theme-starter-scope-btn {
  background: rgba(15,23,42,.82);
  border-color: rgba(148,163,184,.44);
  color: #e2e8f0;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .social-icon {
  background: rgba(248, 250, 252, 0.14);
  color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .theme-mode-btn {
  background: rgba(15, 23, 42, 0.9);
  color: rgba(241, 245, 249, 0.95);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .theme-mode-btn.is-active {
  background: rgba(245, 213, 71, 0.28);
  color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-preview-link {
  border-color: rgba(56, 189, 248, 0.52);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4), rgba(14, 116, 144, 0.48));
  color: #f8fafc;
  text-shadow: 0 1px 0 rgba(2, 6, 23, 0.35);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-preview-link:hover,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-preview-link:focus-visible {
  border-color: rgba(125, 211, 252, 0.72);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.52), rgba(14, 116, 144, 0.66));
  box-shadow: 0 10px 24px rgba(3, 105, 161, 0.42);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page #shortLinkPreview.subtitle {
  color: rgba(226, 232, 240, 0.92);
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .btn-secondary {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(148, 163, 184, 0.58);
  color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .btn-secondary:hover,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .btn-secondary:focus-visible {
  background: rgba(51, 65, 85, 0.95);
  border-color: #f5d547;
  color: #fef3c7;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .btn-primary {
  color: #111827;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-section a {
  color: #93c5fd;
}

body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-section a:hover,
body.dashboard-body[data-theme="dark"] .lettuce-id-page .short-link-section a:focus-visible {
  color: #bfdbfe;
}

@media (max-width: 640px) {
    .dashboard-main.lettuce-id-page { padding-left: 12px; padding-right: 12px; }
    .lettuce-id-editor.panel { padding: 12px; }
    .short-link-section,
    .short-link-theme-toggle,
    .short-link-theme-palette,
    .theme-preset-swatch {
        min-width: 0;
    }
    .short-link-theme-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-preset-swatch {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
    }
    .theme-preset-name {
        font-size: .72rem;
        overflow-wrap: anywhere;
    }
    .short-link-socials .social-row { grid-template-columns: 1fr; }
}


@media (max-width: 1100px) {
    .pricing-grid,
    .plans-grid {
        grid-template-columns: repeat(2, minmax(280px, 360px));
    }
}

@media (max-width: 760px) {
    .pricing-grid,
    .plans-grid {
        grid-template-columns: minmax(260px, 1fr);
    }
}

/* Lettuce.ID Home */
.lettuce-id-home-body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 15% 0%, rgba(245, 213, 71, 0.25), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(120, 170, 255, 0.22), transparent 38%),
        #f5f7fb;
    color: var(--text-primary);
}

.lettuce-id-home {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 56px) var(--page-gutter) clamp(56px, 7vw, 96px);
}

.lettuce-id-hero {
    text-align: center;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 230, 0.92));
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 54px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.lettuce-id-hero h1 {
    font-size: clamp(32px, 5.2vw, 54px);
    line-height: 1.1;
    max-width: 760px;
    margin: 14px auto;
}

.lettuce-id-subtitle {
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(17px, 2vw, 20px);
}

.lettuce-id-hero-ctas {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.lettuce-id-hero-note {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.lettuce-id-home-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 18px;
}

.lettuce-id-home-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
}

.lettuce-id-home-card h2 { margin-bottom: 10px; }
.lettuce-id-home-card p { color: var(--text-secondary); }
.lettuce-id-home-card ul,
.lettuce-id-home-card ol {
    margin: 12px 0 0 20px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.lettuce-id-home-card-accent {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(31, 41, 55, 0.95));
    color: #f8fafc;
}

.lettuce-id-home-card-accent p,
.lettuce-id-home-card-accent small,
.lettuce-id-home-card-accent span { color: rgba(248, 250, 252, 0.88); }

.lettuce-id-pricing-mini {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.lettuce-id-pricing-mini div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.15);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 2px;
}

.lettuce-id-pricing-mini strong { color: #f5d547; font-size: 1.2rem; }


.lettuce-id-home-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.lettuce-id-home-footer a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.lettuce-id-home-footer a:hover,
.lettuce-id-home-footer a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .lettuce-id-home-grid {
        grid-template-columns: 1fr;
    }
}


.lettuce-command-shell {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.lettuce-command-shell h3 {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 54px);
    text-align: center;
    letter-spacing: -0.02em;
}

.lettuce-command-input {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    padding: 12px 14px;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.lettuce-attach-toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    background: rgba(15, 23, 42, 0.07);
    color: #111827;
    cursor: pointer;
}


.lettuce-attach-menu[hidden] {
    display: none !important;
}

.lettuce-attach-menu {
    position: absolute;
    left: 12px;
    top: calc(100% + 8px);
    z-index: 12;
    width: min(280px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    padding: 8px;
    display: grid;
    gap: 4px;
}

.lettuce-attach-menu button {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.lettuce-attach-menu button:hover,
.lettuce-attach-menu button:focus-visible {
    background: rgba(15, 23, 42, 0.07);
}

.lettuce-command-input textarea {
    width: 100%;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: #111827;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.25;
    min-height: 40px;
    padding-top: 8px;
}

.lettuce-command-input textarea::placeholder {
    color: rgba(17, 24, 39, 0.46);
}

.lettuce-generate {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #0f172a;
    color: #f8fafc;
    font-weight: 700;
    cursor: pointer;
}

.lettuce-draft-preview {
    display: none;
    gap: 12px;
    margin-top: 16px;
}

.lettuce-draft-preview.is-visible {
    display: grid;
}

.lettuce-draft-preview textarea,
.lettuce-draft-preview input[type="text"],
.lettuce-draft-preview input[type="datetime-local"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    padding: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-primary);
}

.lettuce-confirm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lettuce-live-preview {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.86);
    display: grid;
    gap: 8px;
}

.lettuce-live-preview p {
    margin: 0;
}

.lettuce-history-panel {
    display: grid;
    gap: 10px;
}

.lettuce-history-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lettuce-history-back {
    border: 0;
    background: rgba(15, 23, 42, 0.08);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.lettuce-history-scroll {
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.lettuce-history-item {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
    padding: 6px;
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.lettuce-history-open {
    border: 0;
    background: transparent;
    flex: 1;
    text-align: left;
    padding: 6px 4px;
    cursor: pointer;
    display: grid;
    gap: 2px;
}

.lettuce-history-remove {
    border: 0;
    width: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
}

.lettuce-history-item strong {
    font-size: 0.92rem;
}

.lettuce-history-item span {
    font-size: 0.8rem;
    opacity: 0.76;
}

.lettuce-history-detail-card {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.95);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.lettuce-history-detail-card h4 {
    margin: 0;
    line-height: 1.35;
}

.lettuce-history-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.72rem;
    text-transform: capitalize;
}

.lettuce-live-meta {
    display: grid;
    gap: 8px;
}

.lettuce-platform-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
    gap: 10px;
    align-items: start;
}

.lettuce-platform-preview-card {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 10px;
}

.lettuce-platform-preview-card p {
    margin: 0;
}

.lettuce-platform-preview-caption {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lettuce-preview-empty-state {
    font-size: 0.84rem;
    opacity: 0.85;
}

.lettuce-platform-preview-card--youtube {
    background: #f9fafb;
}

.lettuce-youtube-preview-shell {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    display: grid;
    gap: 10px;
}

.lettuce-youtube-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lettuce-youtube-avatar-img,
.lettuce-youtube-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
}

.lettuce-youtube-avatar-img {
    object-fit: cover;
}

.lettuce-youtube-avatar-placeholder {
    color: #fff;
    font-size: 0.8rem;
    background: linear-gradient(140deg, #ef4444, #dc2626);
}

.lettuce-youtube-preview-message {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.45;
}

.lettuce-youtube-preview-body {
    min-height: 96px;
    border: 1px dashed rgba(15, 23, 42, 0.2);
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fafc;
}

.lettuce-youtube-preview-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lettuce-preview-upload-placeholder {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    font-weight: 600;
}

.lettuce-platform-preview-card--tiktok {
    background: radial-gradient(circle at top, #1f2937, #111827 60%);
    border-color: rgba(148, 163, 184, 0.2);
}

.lettuce-platform-preview-card--tiktok .eyebrow,
.lettuce-platform-preview-card--tiktok .lettuce-platform-preview-caption,
.lettuce-platform-preview-card--tiktok .lettuce-preview-note {
    color: #e2e8f0;
}

.lettuce-tiktok-preview-shell {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.82));
    display: grid;
    gap: 8px;
}

.lettuce-platform-preview-card--pinterest .lettuce-pinterest-preview-media {
    border-radius: 14px;
    background: linear-gradient(140deg, #111827, #1e293b);
    min-height: 110px;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lettuce-platform-preview-card--pinterest .lettuce-pinterest-preview-media img,
.lettuce-platform-preview-card--linkedin img {
    width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    max-height: 140px;
}

.lettuce-platform-preview-card--linkedin {
    background: #f8fafc;
    gap: 8px;
}

.lettuce-linkedin-preview-shell {
    background: #f3f2ef;
    border: 1px solid #d9d9d6;
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 10px;
}

.lettuce-linkedin-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lettuce-linkedin-preview-message {
    color: #1f2329;
    font-size: 0.92rem;
    line-height: 1.45;
}

.lettuce-linkedin-preview-media {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #fff;
}

.lettuce-linkedin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(140deg, #cbd5e1, #94a3b8);
}

.lettuce-linkedin-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 999px !important;
    object-fit: cover;
}

.lettuce-meta-label { margin-top: 10px; }

.lettuce-preview-note {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.lettuce-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
    color: var(--text-secondary);
}

.lettuce-media-preview figure {
    margin: 0;
    display: grid;
    gap: 6px;
}

.lettuce-media-thumb {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    aspect-ratio: 1 / 1;
    background: rgba(15, 23, 42, 0.04);
}

.lettuce-media-thumb img,
.lettuce-media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .lettuce-command-input textarea { font-size: 1.1rem; }
    .lettuce-command-shell h3 { font-size: clamp(26px, 8vw, 40px); }
}

.stream-type-panel .channel-mode-toggle {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.lettuce-id-domain-options { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.lettuce-id-domain-pill { display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; border:1px solid rgba(148,163,184,.35); background:rgba(255,255,255,.9); font-weight:700; color:#0f172a; }

/* Monetize workspace */
.monetize-panel {
    margin-top: 18px;
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 4px;
}

.analytics-panel {
    margin-top: 18px;
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 4px;
}

.monetize-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.monetize-panel .panel-header.monetize-header {
    margin-bottom: 8px;
}

.monetize-header > div:first-child {
    display: grid;
    gap: 2px;
}

.monetize-header h2 {
    margin: 0;
}

.monetize-header .subtitle {
    max-width: 860px;
}

.monetize-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    line-height: 1;
    align-self: flex-start;
}

.monetize-expand-toggle {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.monetize-expand-toggle span[aria-hidden="true"] {
    font-size: 1.1rem;
    line-height: 1;
}

.monetize-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.monetize-kpi {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
}

.monetize-kpi p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.monetize-kpi strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.monetize-tabbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
    padding-bottom: 10px;
}

.monetize-tab {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
}

.monetize-tab.is-active {
    background: #14532d;
    color: #f8fafc;
    border-color: #14532d;
}

.monetize-pane {
    display: none;
}

.monetize-pane.is-active {
    display: block;
}

.monetize-pane-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.analytics-panel .monetize-card--analytics-links {
    order: -1;
    gap: 8px;
}

.analytics-panel .monetize-card--analytics {
    order: 1;
}

body.is-analytics-workspace-expanded .analytics-panel .monetize-pane-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr);
}

body.is-analytics-workspace-expanded .analytics-panel .monetize-card--analytics-links {
    order: 0;
    gap: 12px;
}

[data-monetize-pane="payouts"] .monetize-pane-grid {
    grid-template-columns: minmax(0, 1fr);
}

[data-monetize-pane="storefront"] .monetize-pane-grid {
    grid-template-columns: minmax(0, 1fr);
}

[data-monetize-pane="products"] .monetize-pane-grid {
    grid-template-columns: minmax(0, 1fr);
}

.monetize-card {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 12px;
    background: #ffffff;
    min-width: 0;
}

.monetize-card h3 {
    margin: 0;
}

.monetize-status-list {
    display: grid;
    gap: 8px;
}

.monetize-status-list p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.93rem;
    align-items: center;
    gap: 10px;
}

.monetize-status-list span {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.analytics-panel .analytics-link-list span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.monetize-status-list em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 2px 8px;
}

.monetize-status-list strong {
    color: #0f172a;
    white-space: nowrap;
}

.monetize-card--analytics .monetize-analytics-grid {
    gap: 10px;
}

.analytics-toolbar {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.analytics-toolbar-main,
.analytics-toolbar-actions,
.analytics-status-cluster,
.analytics-range-pills,
.analytics-filter-summary,
.analytics-overview-strip,
.analytics-item-head,
.analytics-kpi-meta,
.analytics-breakdown-hero,
.analytics-insight-badges,
.analytics-recommendations-head {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.analytics-toolbar-main {
    align-items: center;
    justify-content: space-between;
    flex: 1 1 540px;
}

.analytics-toolbar-actions {
    align-items: center;
    justify-content: flex-end;
}

.analytics-status-cluster {
    align-items: center;
}

.analytics-status-badge,
.analytics-filter-chip,
.analytics-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.analytics-status-badge {
    background: rgba(20, 83, 45, 0.1);
    color: #166534;
    border: 1px solid rgba(20, 83, 45, 0.16);
}

.analytics-toolbar-copy {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 680px;
}

.analytics-range-pill,
.analytics-compare-toggle.is-active,
.analytics-export-button {
    border-radius: 999px;
}

.analytics-range-pill {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: #fff;
    color: #0f172a;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.analytics-range-pill.is-active,
.analytics-compare-toggle.is-active {
    background: #0f172a;
    color: #f8fafc;
    border-color: #0f172a;
}

.analytics-filter-summary {
    gap: 8px;
}

.analytics-filter-chip {
    background: rgba(15, 23, 42, 0.04);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.analytics-overview-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.analytics-overview-card {
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 8px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.95));
}

.analytics-overview-card p,
.analytics-overview-card span {
    margin: 0;
    color: #475569;
}

.analytics-overview-card p {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.analytics-overview-card strong {
    font-size: 1.08rem;
    color: #0f172a;
}

.analytics-overview-card span {
    font-size: 0.86rem;
    line-height: 1.4;
}

.analytics-overview-card--primary {
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.08), rgba(20, 83, 45, 0.02));
}

.analytics-overview-card--revenue {
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.08), rgba(29, 78, 216, 0.02));
}

.analytics-overview-card--catalog {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.03));
}

.analytics-overview-card--meta {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
}

.analytics-item {
    min-width: 0;
}

.analytics-item {
    display: grid;
    gap: 10px;
    min-height: 156px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.analytics-item-head {
    justify-content: space-between;
    align-items: center;
}

.analytics-item strong {
    overflow-wrap: anywhere;
    font-size: 1.35rem;
    line-height: 1.2;
}

.analytics-item.is-selected {
    outline: 2px solid rgba(20, 83, 45, 0.35);
    outline-offset: 1px;
    box-shadow: 0 14px 34px rgba(20, 83, 45, 0.12);
}

.analytics-kpi-meta {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.analytics-kpi-helper,
.analytics-kpi-delta {
    font-size: 0.78rem;
    line-height: 1.35;
}

.analytics-kpi-helper {
    color: #64748b;
}

.analytics-kpi-delta {
    font-weight: 700;
}

.analytics-kpi-delta--up {
    color: #166534;
}

.analytics-kpi-delta--down {
    color: #b91c1c;
}

.analytics-kpi-delta--flat {
    color: #475569;
}

.analytics-sparkline {
    min-height: 34px;
    display: flex;
    align-items: flex-end;
}

.analytics-sparkline--empty {
    min-height: 34px;
}

.analytics-sparkline-svg {
    width: 100%;
    height: 34px;
}

.analytics-sparkline-svg polygon {
    fill: rgba(15, 23, 42, 0.06);
}

.analytics-sparkline-svg polyline {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-sparkline-svg--primary polyline {
    stroke: #166534;
}

.analytics-sparkline-svg--revenue polyline {
    stroke: #1d4ed8;
}

.analytics-sparkline-svg--catalog polyline {
    stroke: #475569;
}

.analytics-sparkline-svg--meta polyline {
    stroke: #0f172a;
}

.analytics-insight-chart {
    display: grid;
    gap: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 10px;
}

.analytics-breakdown-hero {
    justify-content: space-between;
    align-items: flex-start;
}

.analytics-insight-badges {
    justify-content: flex-end;
}

.analytics-badge--quiet {
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.analytics-badge--accent {
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, 0.14);
}

.analytics-badge--success {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.14);
}

.analytics-link-list {
    display: grid;
    gap: 8px;
}

.analytics-link-list p {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.analytics-link-list small {
    color: #64748b;
    font-size: 0.76rem;
}

.analytics-insight-head h4,
.analytics-insight-chart h5 {
    margin: 0;
    font-size: 0.95rem;
}

.analytics-insight-head p {
    margin: 4px 0 0;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.4;
    background: linear-gradient(90deg, rgba(20, 83, 45, 0.08), rgba(29, 78, 216, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 8px 10px;
}

.analytics-insight-details {
    display: grid;
    gap: 6px;
}

.analytics-insight-details p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}

.analytics-mini-bars {
    display: grid;
    gap: 7px;
}

.analytics-mini-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(110px, 1fr) auto;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
}

.analytics-mini-bar-track {
    height: 7px;
    background: rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    overflow: hidden;
}

.analytics-mini-bar-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14532d, #1d4ed8);
}

.analytics-mini-bars--revenue .analytics-mini-bar-row--revenue .analytics-mini-bar-track i {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.analytics-mini-bars--revenue .analytics-mini-bar-row--primary .analytics-mini-bar-track i {
    background: linear-gradient(90deg, #14532d, #22c55e);
}

.analytics-mini-bars--revenue .analytics-mini-bar-row--catalog .analytics-mini-bar-track i {
    background: linear-gradient(90deg, #475569, #94a3b8);
}

.analytics-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.analytics-chart-grid.is-focus-mode section {
    display: none;
}

.analytics-chart-grid.is-focus-mode section.is-expanded {
    display: grid;
    grid-column: 1 / -1;
}

.analytics-chart-grid section {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    padding: 8px;
    display: grid;
    gap: 8px;
}

.analytics-pie-wrap {
    display: grid;
    gap: 6px;
    justify-items: center;
    position: relative;
}

.analytics-pie {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: conic-gradient(#14532d calc(var(--click-share, 0) * 1%), rgba(148, 163, 184, 0.35) 0);
    margin: 0 auto;
}

.analytics-pie--multi {
    background: conic-gradient(var(--pie-segments, #14532d 0% 100%));
}

.analytics-pie-total {
    position: absolute;
    top: 30px;
    font-size: 1.05rem;
    color: #0f172a;
}

.analytics-pie-caption {
    position: absolute;
    top: 49px;
    font-size: 0.7rem;
    color: #64748b;
}

.analytics-pie-wrap button {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    border-radius: 999px;
    padding: 5px 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.analytics-rank-curve {
    width: 100%;
    height: 92px;
}

.analytics-rank-curve polygon {
    fill: rgba(29, 78, 216, 0.08);
}

.analytics-rank-curve polyline {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-rank-curve line {
    stroke: rgba(100, 116, 139, 0.55);
    stroke-width: 1.2;
}

.analytics-curve-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    font-size: 0.7rem;
    color: #64748b;
}

.analytics-item--primary {
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.08), rgba(20, 83, 45, 0.03));
}

.analytics-item--revenue {
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.08), rgba(30, 64, 175, 0.03));
}

.analytics-item--catalog {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.05));
}

.analytics-item--meta {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
}

.analytics-funnel {
    display: grid;
    gap: 10px;
}

.analytics-funnel-stage {
    display: grid;
    gap: 6px;
}

.analytics-funnel-bar {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #14532d, #1d4ed8);
}

.analytics-funnel-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: center;
}

.analytics-funnel-copy span,
.analytics-funnel-copy small {
    color: #64748b;
}

.analytics-funnel-copy small {
    grid-column: 1 / -1;
    font-size: 0.76rem;
}

.analytics-recommendations-panel {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 12px;
    display: grid;
    gap: 12px;
}

.analytics-recommendations-head {
    justify-content: space-between;
    align-items: flex-end;
}

.analytics-recommendations-head h4,
.analytics-recommendations-head p,
.analytics-recommendation p,
.analytics-recommendation strong,
.analytics-recommendation-kicker {
    margin: 0;
}

.analytics-recommendations-head p {
    color: #64748b;
    font-size: 0.82rem;
}

.analytics-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.analytics-recommendation {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: grid;
    gap: 8px;
    background: rgba(248, 250, 252, 0.9);
}

.analytics-recommendation-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
}

.analytics-recommendation strong {
    color: #0f172a;
}

.analytics-recommendation p {
    color: #475569;
    line-height: 1.45;
    font-size: 0.85rem;
}

.analytics-recommendation--primary {
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.08), rgba(20, 83, 45, 0.02));
}

.analytics-recommendation--revenue {
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.08), rgba(29, 78, 216, 0.02));
}

.analytics-recommendation--catalog {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.04));
}

#stripeStatusBadge.is-positive {
    color: #166534;
}

.monetize-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.affiliate-showcase {
    gap: 18px;
}

.affiliate-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.affiliate-section-head h3 {
    margin: 0;
}

.affiliate-link {
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.affiliate-retailer-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.affiliate-retailer-item {
    min-width: 118px;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.product-type-option {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.affiliate-retailer-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.product-type-option.is-active .product-type-circle {
    border-color: #14532d;
    box-shadow: inset 0 0 0 2px rgba(20, 83, 45, 0.12);
}

.product-type-circle {
    font-size: 2rem;
}

.booking-flow-panel {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 10px;
    background: #f8fafc;
}

.booking-flow-panel.is-add-card {
    padding: 0;
    background: transparent;
    border-style: dashed;
}

.booking-flow-add-btn {
    width: 100%;
    min-height: 78px;
    border-radius: 14px;
    border: 1px dashed rgba(71, 85, 105, 0.45);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.monetize-pane[data-monetize-pane="products"] .monetize-pane-grid > div {
    width: 100%;
    margin: 0;
}

.booking-catalog-card {
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: linear-gradient(145deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.98));
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 16px 18px;
}

.booking-catalog-card .product-row-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.booking-catalog-card .product-row-head strong {
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.booking-catalog-card .subtitle {
    margin: 6px 0 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #334155;
}

.booking-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.booking-circle-action {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: #ecfdf5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.booking-circle-action--danger {
    background: #fff1f2;
    border-color: rgba(244, 63, 94, 0.35);
}

.booking-flow-panel h4 {
    margin: 0;
}

.booking-flow-panel .monetize-inline-actions {
    flex-wrap: nowrap;
}

.booking-flow-panel.is-add-card .monetize-inline-actions {
    display: none !important;
}

.booking-flow-panel .monetize-inline-actions .btn-secondary,
.booking-flow-panel .monetize-inline-actions .btn-primary {
    flex: 1 1 0;
}

.booking-flow-step-body {
    display: grid;
    gap: 10px;
}

.booking-connected-row,
.booking-type-chip {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
}

.booking-availability-days {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.booking-day-pill {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    min-width: 38px;
    height: 38px;
}

.booking-day-pill.is-active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.booking-catalog-card .btn-primary {
    width: fit-content;
}

.booking-flow-progress p {
    margin: 0;
}

.booking-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.booking-progress-fill {
    height: 100%;
    width: 20%;
    background: #111827;
    transition: width 0.2s ease;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.affiliate-retailer-btn.is-active .affiliate-logo-circle {
    border-color: rgba(20, 83, 45, 0.7);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.affiliate-retailer-item p {
    margin: 0;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.2;
}

.affiliate-logo-circle {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.affiliate-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.affiliate-section-head-products {
    margin-top: 6px;
}

.affiliate-product-list {
    display: grid;
    gap: 12px;
}

.affiliate-product-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.affiliate-product-main {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.affiliate-product-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.affiliate-add-btn {
    width: 190px;
    min-width: 0;
    padding: 10px 14px;
    font-size: 0.84rem;
    border-radius: 10px;
    white-space: nowrap;
}

.affiliate-product-card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #fff;
}

.affiliate-product-copy {
    display: grid;
    gap: 4px;
}

.affiliate-product-brand {
    margin: 0;
    color: #64748b;
    font-weight: 600;
}

.affiliate-product-copy h4 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    line-height: 1.3;
}

.affiliate-product-price {
    margin: 0;
    color: #14532d;
    font-size: 1.08rem;
    font-weight: 700;
}

.monetize-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.monetize-filters label {
    display: grid;
    gap: 4px;
    font-size: 0.86rem;
    color: #334155;
}

.monetize-filters input,
.monetize-filters select,
.monetize-card input,
.monetize-card select,
.monetize-card textarea,
.monetize-product-form input,
.monetize-product-form select,
.monetize-product-form textarea,
.storefront-link-row input,
.storefront-link-row select,
.product-row input,
.product-row textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    padding: 9px 10px;
    font-size: 0.92rem;
}

.monetize-offer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.monetize-offer-card {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.offer-cover {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.offer-body {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.offer-body h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.98rem;
}

.offer-body p {
    margin: 0;
    color: #475569;
    font-size: 0.85rem;
}

.offer-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #166534 !important;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: #0f172a;
    font-weight: 600;
}

.offer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.storefront-link-list,
.monetize-product-list {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.integration-tile {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 8px;
    background: #f8fafc;
}

#marketplaceProviderRow {
    margin: 10px 0 12px;
}

#marketplaceProviderRow .affiliate-retailer-item p {
    min-width: 72px;
    text-align: center;
}

.integration-product-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.storefront-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.storefront-workspace-main {
    display: grid;
    gap: 12px;
}

.integration-product-row {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
        "media content"
        "actions actions";
    align-items: center;
    background: #f8fafc;
}

.integration-product-media {
    grid-area: media;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.integration-product-actions {
    grid-area: actions;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.storefront-link-row,
.product-row {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 8px;
    background: #f8fafc;
}

.storefront-link-head,
.product-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.storefront-link-actions {
    display: flex;
    gap: 6px;
}

.storefront-preview {
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    min-height: 440px;
    padding: 12px;
    background: #f8fafc;
}

.storefront-preview-phone {
    border-radius: 22px;
    min-height: 400px;
    background: linear-gradient(180deg, #14532d 0%, #0f3b22 100%);
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.storefront-preview-card {
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-columns: 94px 1fr;
    align-items: stretch;
}

.storefront-preview-card.is-hero {
    grid-template-columns: 1fr;
}

.preview-card-image {
    background-size: cover;
    background-position: center;
    min-height: 80px;
}

.storefront-preview-card.is-hero .preview-card-image {
    min-height: 136px;
}

.preview-card-body {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.preview-card-body strong {
    color: #f8fafc;
    font-size: 0.93rem;
}

.preview-card-body span {
    color: rgba(248, 250, 252, 0.86);
    font-size: 0.8rem;
}

.monetize-product-form {
    display: grid;
    gap: 8px;
}

.storage-asset-option {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    display: grid;
    gap: 6px;
    text-align: left;
    cursor: pointer;
}

.storage-asset-option img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.monetize-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.monetize-analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.analytics-item {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 10px;
    background: #f8fafc;
}

.analytics-item p {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.analytics-item strong {
    color: #0f172a;
    font-size: 1rem;
}

.monetize-recommendations {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.monetize-recommendations li {
    color: #334155;
    line-height: 1.4;
}

.monetize-status-error {
    color: #b91c1c;
}

body.dashboard-body[data-theme="dark"] .monetize-card,
body.dashboard-body[data-theme="dark"] .monetize-kpi,
body.dashboard-body[data-theme="dark"] .monetize-offer-card {
    background: #0f172a;
    border-color: rgba(71, 85, 105, 0.8);
}

body.dashboard-body[data-theme="dark"] .monetize-kpi p,
body.dashboard-body[data-theme="dark"] .monetize-status-list span,
body.dashboard-body[data-theme="dark"] .offer-body p,
body.dashboard-body[data-theme="dark"] .analytics-item p,
body.dashboard-body[data-theme="dark"] .monetize-recommendations li,
body.dashboard-body[data-theme="dark"] .analytics-toolbar-copy,
body.dashboard-body[data-theme="dark"] .analytics-overview-card span,
body.dashboard-body[data-theme="dark"] .analytics-overview-card p,
body.dashboard-body[data-theme="dark"] .analytics-kpi-helper,
body.dashboard-body[data-theme="dark"] .analytics-link-list small,
body.dashboard-body[data-theme="dark"] .analytics-filter-chip,
body.dashboard-body[data-theme="dark"] .analytics-recommendations-head p,
body.dashboard-body[data-theme="dark"] .analytics-recommendation p,
body.dashboard-body[data-theme="dark"] .analytics-funnel-copy span,
body.dashboard-body[data-theme="dark"] .analytics-funnel-copy small,
body.dashboard-body[data-theme="dark"] .analytics-pie-caption {
    color: #cbd5e1;
}

body.dashboard-body[data-theme="dark"] .monetize-kpi strong,
body.dashboard-body[data-theme="dark"] .offer-body h4,
body.dashboard-body[data-theme="dark"] .offer-meta,
body.dashboard-body[data-theme="dark"] .analytics-item strong,
body.dashboard-body[data-theme="dark"] .monetize-status-list strong,
body.dashboard-body[data-theme="dark"] .analytics-overview-card strong,
body.dashboard-body[data-theme="dark"] .analytics-recommendation strong,
body.dashboard-body[data-theme="dark"] .analytics-pie-total {
    color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .monetize-tab {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(71, 85, 105, 0.8);
}

body.dashboard-body[data-theme="dark"] .monetize-tab.is-active {
    background: #f5d547;
    color: #0f172a;
    border-color: #f5d547;
}

body.dashboard-body[data-theme="dark"] .monetize-filters input,
body.dashboard-body[data-theme="dark"] .monetize-filters select,
body.dashboard-body[data-theme="dark"] .monetize-card input,
body.dashboard-body[data-theme="dark"] .monetize-card select,
body.dashboard-body[data-theme="dark"] .monetize-card textarea,
body.dashboard-body[data-theme="dark"] .monetize-product-form input,
body.dashboard-body[data-theme="dark"] .monetize-product-form select,
body.dashboard-body[data-theme="dark"] .monetize-product-form textarea,
body.dashboard-body[data-theme="dark"] .storefront-link-row input,
body.dashboard-body[data-theme="dark"] .storefront-link-row select,
body.dashboard-body[data-theme="dark"] .product-row input,
body.dashboard-body[data-theme="dark"] .product-row textarea {
    background: #020617;
    border-color: rgba(71, 85, 105, 0.9);
    color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .storefront-link-row,
body.dashboard-body[data-theme="dark"] .product-row,
body.dashboard-body[data-theme="dark"] .integration-tile,
body.dashboard-body[data-theme="dark"] .integration-product-row,
body.dashboard-body[data-theme="dark"] .analytics-item,
body.dashboard-body[data-theme="dark"] .storefront-preview,
body.dashboard-body[data-theme="dark"] .analytics-toolbar,
body.dashboard-body[data-theme="dark"] .analytics-overview-card,
body.dashboard-body[data-theme="dark"] .analytics-link-list p,
body.dashboard-body[data-theme="dark"] .analytics-recommendation {
    background: #111827;
    border-color: rgba(71, 85, 105, 0.85);
}

body.dashboard-body[data-theme="dark"] .analytics-status-badge {
    background: rgba(245, 213, 71, 0.14);
    color: #fde68a;
    border-color: rgba(245, 213, 71, 0.2);
}

body.dashboard-body[data-theme="dark"] .analytics-range-pill,
body.dashboard-body[data-theme="dark"] .analytics-filter-chip,
body.dashboard-body[data-theme="dark"] .analytics-badge--quiet,
body.dashboard-body[data-theme="dark"] .analytics-badge--accent,
body.dashboard-body[data-theme="dark"] .analytics-badge--success,
body.dashboard-body[data-theme="dark"] .analytics-pie-wrap button {
    background: #0f172a;
    color: #f8fafc;
    border-color: rgba(71, 85, 105, 0.82);
}

body.dashboard-body[data-theme="dark"] .analytics-range-pill.is-active,
body.dashboard-body[data-theme="dark"] .analytics-compare-toggle.is-active {
    background: #f5d547;
    color: #111827;
    border-color: #f5d547;
}

body.dashboard-body[data-theme="dark"] .analytics-sparkline-svg polygon,
body.dashboard-body[data-theme="dark"] .analytics-rank-curve polygon {
    fill: rgba(148, 163, 184, 0.14);
}

body.dashboard-body[data-theme="dark"] .analytics-kpi-delta--up {
    color: #86efac;
}

body.dashboard-body[data-theme="dark"] .analytics-kpi-delta--down {
    color: #fca5a5;
}


body.dashboard-body[data-theme="dark"] .affiliate-link {
    color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .affiliate-logo-circle {
    background: #0f172a;
    border-color: rgba(71, 85, 105, 0.9);
}

body.dashboard-body[data-theme="dark"] .affiliate-retailer-item p,
body.dashboard-body[data-theme="dark"] .affiliate-product-copy h4 {
    color: #f8fafc;
}

body.dashboard-body[data-theme="dark"] .affiliate-product-brand {
    color: #cbd5e1;
}

body.dashboard-body[data-theme="dark"] .affiliate-product-card {
    background: #111827;
    border-color: rgba(71, 85, 105, 0.8);
}
body.dashboard-body[data-theme="dark"] .monetize-panel .btn-secondary {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(100, 116, 139, 0.9);
}

body.dashboard-body[data-theme="dark"] .monetize-panel .btn-secondary:hover,
body.dashboard-body[data-theme="dark"] .monetize-panel .btn-secondary:focus-visible {
    background: #334155;
    border-color: #f5d547;
    color: #fef3c7;
}

body.dashboard-body[data-theme="dark"] .monetize-panel .btn-primary {
    color: #111827;
}

body.dashboard-body[data-theme="dark"] .monetize-panel a {
    color: #93c5fd;
}

body.dashboard-body[data-theme="dark"] .monetize-panel a:hover,
body.dashboard-body[data-theme="dark"] .monetize-panel a:focus-visible {
    color: #bfdbfe;
}

@media (max-width: 1200px) {
    .monetize-pane-grid {
        grid-template-columns: 1fr;
    }

    .monetize-offer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .monetize-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .monetize-analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-overview-strip,
    .analytics-recommendations-grid,
    .analytics-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .monetize-header {
        flex-direction: column;
    }

    .monetize-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .monetize-offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .monetize-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .affiliate-product-card {
        grid-template-columns: 1fr;
    }

    .affiliate-product-main {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .affiliate-product-card img {
        width: 72px;
        height: 72px;
    }

    .affiliate-product-action {
        justify-content: flex-start;
    }

    .monetize-two-col,
    .offer-actions {
        grid-template-columns: 1fr;
    }

    .integration-product-row {
        grid-template-columns: 1fr;
    }

    .integration-product-actions {
        justify-content: flex-start;
    }

    .storefront-workspace {
        grid-template-columns: 1fr;
    }

    .analytics-toolbar,
    .analytics-toolbar-main,
    .analytics-breakdown-hero,
    .analytics-recommendations-head {
        flex-direction: column;
        align-items: stretch;
    }

    .analytics-overview-strip,
    .analytics-recommendations-grid,
    .analytics-chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .monetize-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .monetize-kpi {
        border-radius: 12px;
    }

    .monetize-offer-grid,
    .monetize-filters,
    .monetize-analytics-grid {
        grid-template-columns: 1fr;
    }

    .analytics-link-list p,
    .analytics-funnel-copy {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .mail-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-mail-layout {
        grid-template-columns: 1fr;
    }

    .chat-comments-workspace,
    .chat-live-workspace {
        grid-template-columns: 1fr;
    }

    .chat-comments-videos,
    .chat-comments-list,
    .chat-comments-reply {
        max-height: none;
    }

    .mail-inline-composer-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-pipeline .section-heading {
        padding-right: 108px;
    }
}

.document-lab .upcoming-pipeline {
    padding: clamp(18px, 3.2vw, 28px);
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.98));
}

.document-workspace .section-heading {
    padding-right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.document-heading-actions,
.document-topbar-actions,
.document-editor-topbar,
.document-sidebar-header,
.document-meta-row,
.document-toolbar,
.document-toolbar-group,
.document-template-strip,
.document-export-grid {
    display: flex;
    align-items: center;
    gap: 10px;
}

.document-heading-actions,
.document-topbar-actions,
.document-template-strip,
.document-export-grid,
.document-toolbar,
.document-meta-row {
    flex-wrap: wrap;
}

.document-workspace-shell {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 260px);
    gap: 18px;
    align-items: start;
}

@media (min-width: 1600px) {
    .document-workspace-shell {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(240px, 280px);
    }
}

.document-sidebar,
.document-editor-stage,
.document-actions-rail,
.document-actions-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

.document-sidebar,
.document-editor-stage,
.document-actions-rail {
    min-height: 100%;
}

.document-sidebar,
.document-editor-stage {
    padding: 18px;
}

.document-actions-rail {
    padding: 16px;
    display: grid;
    gap: 14px;
    position: sticky;
    top: 16px;
}

.document-actions-card {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.document-sidebar {
    display: grid;
    gap: 16px;
}

.document-search-field {
    display: grid;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--dash-text-secondary);
}

.document-search-field input,
.document-title-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    color: var(--dash-text-primary);
    padding: 12px 14px;
    font: inherit;
}

.document-title-input {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 700;
    border-radius: 18px;
}

.document-list {
    display: grid;
    gap: 10px;
    max-height: 860px;
    overflow: auto;
    padding-right: 4px;
}

.document-list-item,
.document-list-empty,
.document-template-chip,
.document-toolbar-btn {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--dash-text-primary);
}

.document-list-item {
    display: grid;
    gap: 6px;
    text-align: left;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.document-list-item strong {
    font-size: 0.96rem;
}

.document-list-item span,
.document-list-item small,
.document-list-empty span,
.document-tip-list {
    color: var(--dash-text-secondary);
}

.document-list-item:hover,
.document-list-item.is-active {
    transform: translateY(-1px);
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(240, 253, 244, 0.95);
}

.document-list-empty {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.document-template-chip,
.document-toolbar-btn {
    padding: 10px 12px;
    cursor: pointer;
    font: inherit;
}

.document-template-chip:hover,
.document-toolbar-btn:hover {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(239, 246, 255, 0.95);
}

.document-editor-stage {
    display: grid;
    gap: 16px;
}

.document-editor-topbar {
    justify-content: space-between;
    gap: 16px;
}

.document-title-stack {
    display: grid;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.document-meta-row {
    font-size: 0.84rem;
    color: var(--dash-text-secondary);
}

.document-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    color: #334155;
    font-weight: 700;
}

.document-status-pill.is-dirty {
    background: rgba(251, 191, 36, 0.18);
    color: #92400e;
}

.document-status-pill.is-saving {
    background: rgba(14, 165, 233, 0.16);
    color: #0369a1;
}

.document-status-pill.is-saved {
    background: rgba(22, 163, 74, 0.16);
    color: #166534;
}

.document-toolbar {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248,250,252,0.88);
    align-items: stretch;
}

.document-toolbar-group {
    gap: 8px;
}

.document-page-shell {
    padding: clamp(14px, 2vw, 24px);
    border-radius: 24px;
    background: linear-gradient(180deg, #e2e8f0, #f8fafc);
    overflow: auto;
}

.document-editor {
    min-height: 960px;
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
    padding: clamp(28px, 5vw, 64px);
    outline: none;
    font-size: 1rem;
    line-height: 1.8;
    color: #0f172a;
}

.document-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

.document-editor h1,
.document-editor h2,
.document-editor h3 {
    line-height: 1.15;
    color: #0f172a;
    margin: 1.2em 0 0.55em;
}

.document-editor p,
.document-editor li,
.document-editor blockquote {
    color: #1e293b;
}

.document-editor blockquote {
    margin: 1.2rem 0;
    border-left: 4px solid #16a34a;
    padding-left: 16px;
    color: #334155;
}

.document-editor ul,
.document-editor ol {
    padding-left: 1.5rem;
}

.document-export-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-tip-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.document-storage-save {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.document-storage-field {
    display: grid;
    gap: 6px;
    color: var(--dash-text-secondary);
    font-size: 0.84rem;
}

.document-storage-field select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: rgba(255,255,255,0.94);
    color: var(--dash-text-primary);
    padding: 11px 12px;
    font: inherit;
}

.document-storage-status {
    margin: 0;
    font-size: 0.84rem;
    color: var(--dash-text-secondary);
}

.document-storage-status[data-tone="saving"] {
    color: #0369a1;
}

.document-storage-status[data-tone="saved"] {
    color: #166534;
}

.document-storage-status[data-tone="error"] {
    color: #b91c1c;
}

body.dashboard-body[data-theme="dark"] .document-lab .upcoming-pipeline,
body.dashboard-body[data-theme="dark"] .document-sidebar,
body.dashboard-body[data-theme="dark"] .document-editor-stage,
body.dashboard-body[data-theme="dark"] .document-actions-rail,
body.dashboard-body[data-theme="dark"] .document-actions-card {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
}

body.dashboard-body[data-theme="dark"] .document-search-field input,
body.dashboard-body[data-theme="dark"] .document-title-input,
body.dashboard-body[data-theme="dark"] .document-storage-field select,
body.dashboard-body[data-theme="dark"] .document-list-item,
body.dashboard-body[data-theme="dark"] .document-list-empty,
body.dashboard-body[data-theme="dark"] .document-template-chip,
body.dashboard-body[data-theme="dark"] .document-toolbar-btn,
body.dashboard-body[data-theme="dark"] .document-toolbar {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.22);
}

body.dashboard-body[data-theme="dark"] .document-editor {
    background: #020617;
    color: #e2e8f0;
}

body.dashboard-body[data-theme="dark"] .document-editor h1,
body.dashboard-body[data-theme="dark"] .document-editor h2,
body.dashboard-body[data-theme="dark"] .document-editor h3,
body.dashboard-body[data-theme="dark"] .document-meta-row,
body.dashboard-body[data-theme="dark"] .document-list-item span,
body.dashboard-body[data-theme="dark"] .document-list-item small,
body.dashboard-body[data-theme="dark"] .document-list-empty span,
body.dashboard-body[data-theme="dark"] .document-tip-list,
body.dashboard-body[data-theme="dark"] .document-editor p,
body.dashboard-body[data-theme="dark"] .document-editor li,
body.dashboard-body[data-theme="dark"] .document-editor blockquote {
    color: #cbd5e1;
}

#documentMobileLibraryToggle {
    display: none;
}

@media (max-width: 1280px) {
    .document-workspace-shell {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }

    .document-actions-rail {
        grid-column: 1 / -1;
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    #documentMobileLibraryToggle {
        display: inline-flex;
    }

    .document-workspace-shell {
        grid-template-columns: 1fr;
    }

    .document-sidebar {
        display: none;
    }

    .document-sidebar.is-open {
        display: grid;
    }

    .document-actions-rail {
        grid-template-columns: 1fr 1fr;
    }

    .document-editor {
        min-height: 720px;
    }
}

@media (max-width: 720px) {
    .document-workspace .section-heading,
    .document-editor-topbar,
    .document-heading-actions,
    .document-topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .document-actions-rail,
    .document-export-grid {
        grid-template-columns: 1fr;
    }

    .document-page-shell {
        padding: 10px;
    }

    .document-editor {
        min-height: 560px;
        padding: 24px 18px 92px;
    }

    .document-toolbar {
        position: sticky;
        bottom: 8px;
        z-index: 4;
        background: rgba(248,250,252,0.98);
        box-shadow: 0 16px 32px rgba(15,23,42,0.14);
    }
}

@media (max-width: 1280px) and (min-width: 1025px) {
    .chat-comments-workspace {
        grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
    }

    .chat-comments-reply {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .chat-video-item {
        grid-template-columns: 1fr;
    }

    .chat-video-meta {
        gap: 4px;
    }

    .chat-comment-detail-head {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .chat-comment-detail-head .chat-comment-status {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }
}

.podcast-episode-editor-list { display:grid; gap:8px; margin-top:8px; }
.podcast-episode-editor-item { border:1px solid rgba(148,163,184,.35); border-radius:10px; padding:8px; background:#fff; display:grid; gap:6px; }
.podcast-episode-editor-item input,.podcast-episode-editor-item textarea { width:100%; border:1px solid rgba(148,163,184,.45); border-radius:8px; padding:8px; font:inherit; }
.podcast-episode-editor-item small { color:#64748b; }

.podcast-cover--empty { border:1px dashed rgba(148,163,184,.8); background:#e5e7eb; display:grid; place-items:center; color:#64748b; font-size:2rem; }

.podcast-design-fields { display:grid; gap:8px; margin:10px 0; }
.podcast-design-fields[hidden] { display:none; }

/* Simplified document panel (Word-style top bar with paper) */
.document-lab .document-simple {
    display: grid;
    gap: 12px;
}

.document-simple-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    position: sticky;
    top: 0;
    z-index: 4;
}

.document-simple-topbar .document-title-input {
    flex: 1 1 220px;
    min-width: 180px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    padding: 6px 4px;
    outline: none;
}

.document-simple-topbar .document-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 10px;
    background: #fff;
}

.document-simple-topbar .document-toolbar-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #0f172a;
    display: inline-grid;
    place-items: center;
    font-size: 0.95rem;
}

.document-simple-topbar .document-toolbar-btn:hover {
    background: rgba(15, 23, 42, 0.06);
}

.document-toolbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(148, 163, 184, 0.4);
    margin: 0 4px;
}

.document-simple-topbar .document-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.document-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.document-close-btn:hover {
    background: rgba(15, 23, 42, 0.06);
}

.document-lab .document-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--dash-text-muted);
    padding: 0 8px;
}

body[data-theme="dark"] .document-simple-topbar {
    background: rgba(20, 24, 31, 0.85);
    border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .document-simple-topbar .document-title-input {
    color: #f8fafc;
}

body[data-theme="dark"] .document-simple-topbar .document-toolbar {
    background: rgba(30, 35, 44, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
}

body[data-theme="dark"] .document-simple-topbar .document-toolbar-btn {
    color: #f8fafc;
}

body[data-theme="dark"] .document-close-btn {
    background: rgba(30, 35, 44, 0.9);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.2);
}
