/* YouTube 4,000 Watch Hours Calculator Stylesheet (GuinRank V7) */

html.modal-open, body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

#watch-hours-calculator-app,
.watch-hours-calculator-container {
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 80px 16px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#watch-hours-calculator-app.is-wide-mode {
    max-width: 100%!important;
    width: 100%!important;
    padding-left: 24px;
    padding-right: 24px;
}

.tool-main-container {
    max-width: 1320px;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}

#watch-hours-calculator-app.is-wide-mode .tool-main-container {
    max-width: 100%!important;
}

/* Glass Panels */
.glass-panel {
    background: var(--card-bg, var(--border-color));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -2px color-mix(in srgb, var(--border-color) 20%, transparent);
}

/* Floating Expand Action */
.fixed-floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

[dir="rtl"] .fixed-floating-actions {
    right: auto;
    left: 24px;
}

.floating-expand-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg, var(--text-main));
    color: var(--text-main, var(--card-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--border-color) 40%, transparent);
    transition: all 0.2s ease;
}

.floating-expand-btn:hover {
    transform: scale(1.08);
    background: var(--primary-color);
    color: var(--primary-contrast, #ffffff);
    border-color: var(--primary-color);
}

/* Compliance Micro-Bar */
.compliance-micro-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.compliance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--success) 08%, transparent);
    border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compliance-pill:hover {
    background: color-mix(in srgb, var(--success) 15%, transparent);
    transform: translateY(-1px);
}

.compliance-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.compliance-shield-icon, .compliance-info-icon {
    width: 14px;
    height: 14px;
}

/* Console Hero Header */
.console-hero-header {
    text-align: center;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-light, color-mix(in srgb, var(--primary-color) 12%, transparent));
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.hero-badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main, var(--card-bg));
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover, var(--warning)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.hero-description {
    max-width: 820px;
    margin: 0 auto 24px auto;
    font-size: 1.02rem;
    color: var(--text-muted, var(--text-muted));
    line-height: 1.6;
}

.hero-features-belt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.belt-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--card-bg, var(--text-main));
    border: 1px solid var(--border-color, var(--text-main));
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted, var(--text-muted));
}

.belt-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* Unified Command Hub */
.unified-command-hub {
    position: relative;
    z-index: 100;
    margin-bottom: 40px;
}

.command-bar-wrapper {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.command-bar-wrapper.is-focused {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

/* Channel Switcher Dropdown */
.channel-switcher-wrapper {
    position: relative;
    z-index: 110;
    flex-shrink: 0;
}

.channel-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    border: 1px solid var(--border-color, var(--text-main));
    cursor: pointer;
    color: var(--text-main, var(--card-bg));
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.channel-dropdown-trigger:hover {
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
}

.channel-avatar-micro {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.channel-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--card-bg, var(--text-main));
    border: 1px solid var(--border-color, var(--text-main));
    border-radius: 12px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--border-color) 40%, transparent);
    z-index: 99999;
    padding: 8px;
}

[dir="rtl"] .channel-dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-header-strip {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 8px;
}

.dropdown-empty-state {
    padding: 12px 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.dropdown-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-channel-row:hover, .dropdown-channel-row.is-active {
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}

.menu-avatar {
    width: 30px;
    height: 30px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-ch-info {
    flex: 1;
    min-width: 0;
}

.menu-ch-title {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-ch-handle {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.active-check-icon {
    color: var(--primary-color);
}

.active-check-icon i {
    width: 16px;
    height: 16px;
}

/* Target Search Field */
.search-input-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-search-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.console-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-main, var(--card-bg));
}

.input-unit-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* Goal Mode Toggle */
.goal-mode-toggle {
    display: flex;
    gap: 6px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    padding: 4px;
    border-radius: 10px;
}

.goal-pill {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.goal-pill.is-active {
    background: var(--card-bg, var(--text-main));
    color: var(--primary-color);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--border-color) 20%, transparent);
}

.goal-tag {
    font-size: 0.72rem;
    opacity: 0.8;
}

/* Execute Button */
.hub-execute-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--primary-contrast, #ffffff);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hub-execute-btn:hover:not(:disabled) {
    background: var(--primary-hover, var(--warning));
    transform: translateY(-1px);
}

.hub-execute-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-action-icon {
    width: 16px;
    height: 16px;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--text-main);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.credit-cost-pill {
    padding: 2px 6px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--text-main) 20%, transparent);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Parameters Production Bar */
.hub-parameters-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.param-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-group {
    flex: 1;
    min-width: 200px;
}

.param-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.stepper-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 24px;
    text-align: center;
}

.param-range-slider {
    flex: 1;
    cursor: pointer;
}

.param-display-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.param-num-input {
    width: 100px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
}

.param-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color, var(--text-main));
}

.hub-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
    color: var(--danger);
    font-size: 0.88rem;
}

.error-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Bento Showcase Grid */
.console-features {
    max-width: 1200px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 2;
}

.bento-features-cluster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--border-color) 20%, transparent);
}

.bento-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--border-color) 20%, transparent);
}

.bc-wide-top {
    grid-column: span 2;
}

.bc-tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bc-wide-mid {
    grid-column: span 2;
}

.bento-decor-icon {
    position: absolute;
    top: 14px;
    inset-inline-end: 16px;
    opacity: 0.12;
    color: var(--primary-color);
    font-size: 28px;
}

.dashed-ring-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light, color-mix(in srgb, var(--primary-color) 12%, transparent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.bc-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.bc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.bc-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.bento-window-demo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    padding: 12px;
    border-radius: 10px;
}

.window-box {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.window-box.expired {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    color: var(--danger);
}

.window-box.active-window {
    background: color-mix(in srgb, var(--success) 12%, transparent);
    color: var(--success);
}

.window-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
}

.window-text {
    font-size: 0.84rem;
    font-weight: 700;
}

.window-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.milestones-preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
}

.ms-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.ms-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
}

.ms-info small {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.highlight-fan .ms-num {
    background: var(--primary-light, color-mix(in srgb, var(--primary-color) 15%, transparent));
    color: var(--primary-color);
}

.highlight-ypp .ms-num {
    background: color-mix(in srgb, var(--success) 15%, transparent);
    color: var(--success);
}

.bento-sync-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
}

.sync-icon {
    width: 16px;
    height: 16px;
}

/* 5. Results Workspace */
.watch-hours-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Trajectory Hero Card */
.trajectory-hero-card {
    padding: 28px 24px;
}

.hero-progress-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: center;
}

.progress-gauge-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kpi-subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.kpi-big-hours {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.kpi-big-hours .current-val {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.kpi-big-hours .target-val {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 600;
}

.kpi-big-hours .unit {
    font-size: 0.9rem;
}

.kpi-remaining-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--warning) 12%, transparent);
    color: var(--warning);
    font-size: 0.82rem;
    font-weight: 700;
}

.macro-progress-track {
    width: 100%;
    height: 14px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}

.macro-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--success) 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-sub-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: monospace;
}

.pct-badge {
    font-weight: 800;
    color: var(--primary-color);
}

/* Forecast Column */
.trajectory-forecast-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    border: 1px solid var(--border-color);
}

.forecast-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.forecast-badge i {
    width: 14px;
    height: 14px;
}

.momentum-hyper {
    background: color-mix(in srgb, var(--success) 15%, transparent);
    color: var(--success);
}

.momentum-high {
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
    color: var(--primary-color);
}

.momentum-steady {
    background: color-mix(in srgb, var(--warning) 15%, transparent);
    color: var(--warning);
}

.date-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.projected-date-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.forecast-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.mini-stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-text {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Velocity Engine Grid */
.velocity-engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.velocity-card {
    padding: 20px;
    border-radius: 14px;
}

.v-card-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.v-card-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 4px;
}

.v-card-value .unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.text-accent {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-monthly {
    color: var(--primary-color) !important;
}

.v-card-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Milestones Section */
.milestones-section, .acceleration-playbook-section {
    padding: 22px;
}

.section-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.section-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.milestones-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.ms-phase-card {
    padding: 16px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.2s ease;
}

.ms-phase-card.is-completed {
    border-color: var(--success);
    background: color-mix(in srgb, var(--success) 04%, transparent);
}

.ms-phase-card.is-next {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.ms-phase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ms-phase-icon {
    color: var(--text-muted);
}

.is-completed .ms-phase-icon {
    color: var(--success);
}

.is-next .ms-phase-icon {
    color: var(--primary-color);
}

.ms-phase-icon i {
    width: 18px;
    height: 18px;
}

.ms-phase-date {
    font-size: 0.76rem;
    font-family: monospace;
    color: var(--text-muted);
}

.is-completed .ms-phase-date {
    color: var(--success);
    font-weight: 700;
}

.ms-phase-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.ms-phase-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    font-size: 0.72rem;
}

.pill-label {
    color: var(--text-muted);
}

.pill-val {
    font-weight: 700;
    color: var(--text-main);
}

/* Playbook List */
.copy-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-action-btn:hover {
    background: var(--primary-color);
    color: var(--primary-contrast, #ffffff);
    border-color: var(--primary-color);
}

.copy-action-btn i {
    width: 14px;
    height: 14px;
}

.playbook-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.playbook-item-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    border: 1px solid var(--border-color);
}

.playbook-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    margin-top: 2px;
}

.playbook-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

/* Toast */
.hub-toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--card-bg, color-mix(in srgb, var(--card-bg) 75%, var(--bg-body)));
    color: var(--text-main, var(--text-main));
    border: 1px solid var(--border-color, var(--border-color));
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--border-color) 60%, transparent);
    z-index: 9999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.hub-toast-notification.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Compliance Modal */
.custom-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    background: color-mix(in srgb, var(--card-bg) 50%, var(--bg-body)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-modal-card {
    background: var(--card-bg, var(--text-main));
    border: 1px solid var(--border-color, var(--text-main));
    border-radius: 18px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--border-color) 60%, transparent);
}

.modal-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color, var(--text-main));
    flex-shrink: 0;
}

.modal-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--success) 12%, transparent);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header-icon i {
    width: 20px;
    height: 20px;
}

.modal-header-titles {
    flex: 1;
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
}

.modal-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.modal-close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
}

.modal-close-btn i {
    width: 18px;
    height: 18px;
}

.modal-card-body {
    padding: 22px;
    overflow-y: auto !important;
    max-height: calc(85vh - 135px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.compliance-clause-card {
    padding: 14px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--border-color) 20%, transparent);
    border: 1px solid var(--border-color);
}

.compliance-clause-card h4 {
    margin: 0 0 6px 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.compliance-clause-card p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-color, var(--text-main));
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-modal-dismiss {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: var(--primary-contrast, #ffffff);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-modal-dismiss:hover {
    background: var(--primary-hover);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .canonical-bento-grid {
        grid-template-columns: 1fr;
    }
    .bc-wide-top, .bc-tall, .bc-wide-mid {
        grid-column: span 1;
        grid-row: span 1;
    }
    .hero-progress-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .command-bar-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .hub-execute-btn {
        justify-content: center;
    }
    .hero-title {
        font-size: 1.7rem;
    }
}

.quick-chips-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 22px;
}

.quick-chips-strip.col-span-2 {
    grid-column: 1 / -1;
}

.chips-label,
.quick-chip-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-inline-end: 4px;
    user-select: none;
}

.quick-chip-btn,
.quick-chip,
.channel-chip-btn,
.chip-btn,
.chapter-chip-btn,
.competitor-chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    background: color-mix(in srgb, var(--card-bg) 70%, var(--bg-body));
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--border-color) 20%, transparent);
}

.quick-chip-btn:hover,
.quick-chip:hover,
.channel-chip-btn:hover,
.chip-btn:hover,
.chapter-chip-btn:hover,
.competitor-chip-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--card-bg));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.quick-chip-btn:active,
.quick-chip:active,
.channel-chip-btn:active,
.chip-btn:active,
.chapter-chip-btn:active,
.competitor-chip-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.quick-chip-btn:focus-visible,
.quick-chip:focus-visible,
.channel-chip-btn:focus-visible,
.chip-btn:focus-visible,
.chapter-chip-btn:focus-visible,
.competitor-chip-btn:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

