/* ============================================
   SOCO DESIGN SYSTEM - COMPONENT STYLES
   ============================================
   Component styles for the Digital Studio aesthetic.

   Design tokens are defined in tokens.css which should
   be loaded before this file.

   See DESIGN_SYSTEM.md for component documentation.
   ============================================ */

/* ============================================
   1. LAYOUT
   ============================================ */

.proto-header {
    background: var(--proto-surface);
    border-bottom: 1px solid var(--proto-slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.proto-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--proto-space-md) 0;
    gap: var(--proto-space-lg);
}

.proto-nav-left,
.proto-nav-right {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.proto-nav-left {
    gap: var(--proto-space-md);
}

.proto-nav-right {
    gap: var(--proto-space-xs);
}

/* Ensure all nav items align vertically */
.proto-nav-left > li,
.proto-nav-right > li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Reset Pico CSS details/summary styles in nav */
.proto-nav details {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.proto-nav details[open] summary {
    margin-bottom: 0;
}

/* Common nav item styles - shared by links and dropdowns */
.proto-nav-link,
.proto-nav .proto-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    color: var(--proto-slate-600);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.5rem 0.875rem;
    border-radius: var(--proto-radius-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color var(--proto-transition-fast), background var(--proto-transition-fast);
    white-space: nowrap;
    margin: 0;
}

.proto-nav-link:hover,
.proto-nav .proto-dropdown-trigger:hover {
    color: var(--proto-electric);
    background: var(--proto-electric-muted);
    text-decoration: none;
}

.proto-nav-active {
    color: var(--proto-electric);
    background: var(--proto-electric-muted);
}

/* Dropdown chevron in nav */
.proto-nav .proto-dropdown-trigger::after {
    content: '';
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    margin-left: 0.25rem;
    margin-top: -2px;
    opacity: 0.5;
    transition: transform var(--proto-transition-fast);
}

.proto-nav details[open] .proto-dropdown-trigger::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* Remove default summary markers in nav */
.proto-nav summary {
    list-style: none;
}

.proto-nav summary::-webkit-details-marker {
    display: none;
}

.proto-nav summary::marker {
    display: none;
    content: '';
}

.proto-logo {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    text-decoration: none;
    color: var(--proto-ink);
}

.proto-logo:hover {
    text-decoration: none;
}

.proto-logo-img {
    height: 1.75rem;
}

.proto-logo-text {
    font-family: var(--proto-font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.proto-logo-badge {
    background: var(--proto-slate-200);
    color: var(--proto-slate-500);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--proto-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proto-nav-credits {
    display: inline-flex;
    align-items: center;
    gap: var(--proto-space-xs);
    font-weight: 600;
    font-size: 0.875rem;
    padding: var(--proto-space-xs) var(--proto-space-sm);
    border-radius: var(--proto-radius-full);
    background: var(--proto-slate-100);
    color: var(--proto-slate-600);
    white-space: nowrap;
}

.proto-credits-good {
    color: var(--proto-success);
    background: var(--proto-success-soft);
}
.proto-credits-medium {
    color: #b45309;
    background: var(--proto-warning-soft);
}
.proto-credits-low {
    color: var(--proto-error);
    background: var(--proto-error-soft);
}

/* Theme Switcher */
.proto-theme-switcher {
    display: flex;
    align-items: center;
    gap: var(--proto-space-xs);
    background: var(--proto-slate-100);
    border-radius: var(--proto-radius-full);
    padding: 3px;
}

.proto-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--proto-radius-full);
    cursor: pointer;
    color: var(--proto-slate-500);
    transition: all var(--proto-transition-fast);
    font-size: 1rem;
}

.proto-theme-btn:hover {
    color: var(--proto-ink);
    background: var(--proto-slate-200);
}

.proto-theme-btn.active {
    background: var(--proto-surface);
    color: var(--proto-electric);
    box-shadow: var(--proto-shadow-sm);
}

.proto-theme-btn span {
    line-height: 1;
}

/* Theme switcher in profile settings */
.proto-theme-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--proto-space-md);
    background: var(--proto-surface-muted);
    border-radius: var(--proto-radius-md);
    margin-bottom: var(--proto-space-md);
}

.proto-theme-setting-label {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-xs);
}

.proto-theme-setting-label strong {
    font-weight: 600;
}

.proto-theme-setting-label small {
    color: var(--proto-slate-500);
    font-size: 0.875rem;
}

.proto-main {
    padding: var(--proto-space-xl) 0;
    min-height: calc(100vh - 200px);
}

.proto-footer {
    background: var(--proto-slate-50);
    border-top: 1px solid var(--proto-slate-200);
    padding: var(--proto-space-lg) 0;
    margin-top: var(--proto-space-2xl);
}

.proto-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proto-footer-left {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
}

.proto-footer-logo {
    height: 1.25rem;
    opacity: 0.6;
}

.proto-footer-text {
    color: var(--proto-slate-500);
    font-size: 0.875rem;
}

.proto-footer-links {
    font-size: 0.875rem;
    color: var(--proto-slate-500);
}

.proto-footer-links a {
    color: var(--proto-slate-500);
    text-decoration: none;
}

.proto-footer-links a:hover {
    color: var(--proto-electric);
}

/* Sidebar Layout */
.proto-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--proto-space-xl);
}

.proto-sidebar-left {
    grid-template-columns: 320px 1fr;
}

.proto-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-md);
}

@media (max-width: 992px) {
    .proto-sidebar-layout {
        grid-template-columns: 1fr;
    }
    .proto-sidebar {
        order: 2;
    }
}

/* Grid */
.proto-grid {
    display: grid;
    gap: var(--proto-space-lg);
}

.proto-grid-2 { grid-template-columns: repeat(2, 1fr); }
.proto-grid-3 { grid-template-columns: repeat(3, 1fr); }
.proto-grid-4 { grid-template-columns: repeat(4, 1fr); }

.proto-gap-sm { gap: var(--proto-space-sm); }
.proto-gap-md { gap: var(--proto-space-md); }
.proto-gap-lg { gap: var(--proto-space-lg); }

@media (max-width: 768px) {
    .proto-grid-3,
    .proto-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .proto-grid-2,
    .proto-grid-3,
    .proto-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   3. BUTTONS
   ============================================ */

.proto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--proto-space-sm);
    font-family: var(--proto-font-display);
    font-weight: 500;
    border-radius: var(--proto-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--proto-transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.proto-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.proto-btn:active {
    transform: translateY(0);
}

/* Sizes */
.proto-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.proto-btn-md {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

.proto-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* Variants */
.proto-btn-primary {
    background: var(--proto-electric);
    color: white;
    border-color: var(--proto-electric);
}

.proto-btn-primary:hover {
    background: var(--proto-electric-hover);
    border-color: var(--proto-electric-hover);
    box-shadow: var(--proto-shadow-hover);
    color: white;
}

.proto-btn-secondary {
    background: var(--proto-slate-200);
    color: var(--proto-ink);
    border-color: var(--proto-slate-200);
}

.proto-btn-secondary:hover {
    background: var(--proto-slate-300);
    border-color: var(--proto-slate-300);
    color: var(--proto-ink);
}

.proto-btn-outline {
    background: transparent;
    color: var(--proto-slate-600);
    border-color: var(--proto-slate-300);
}

.proto-btn-outline:hover {
    background: var(--proto-slate-100);
    border-color: var(--proto-slate-400);
    color: var(--proto-ink);
}

.proto-btn-danger {
    background: var(--proto-error);
    color: white;
    border-color: var(--proto-error);
}

.proto-btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

.proto-btn-ghost {
    background: transparent;
    color: var(--proto-slate-500);
    border-color: transparent;
}

.proto-btn-ghost:hover {
    background: var(--proto-slate-100);
    color: var(--proto-ink);
}

.proto-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   4. CARDS
   ============================================ */

.proto-card {
    background: var(--proto-surface);
    border: 1px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-lg);
    box-shadow: var(--proto-shadow-sm);
    overflow: hidden;
    transition: transform var(--proto-transition-fast), box-shadow var(--proto-transition-fast);
}

.proto-card-hoverable:hover {
    transform: translateY(-2px);
    box-shadow: var(--proto-shadow-md);
}

.proto-card-outlined {
    background: transparent;
    box-shadow: none;
}

.proto-card-elevated {
    box-shadow: var(--proto-shadow-md);
}

.proto-card-accent {
    border-left: 4px solid var(--proto-electric);
}

.proto-card-header {
    padding: var(--proto-space-lg);
    border-bottom: 1px solid var(--proto-slate-200);
}

.proto-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-family: var(--proto-font-display);
    font-weight: 600;
}

.proto-card-body {
    padding: var(--proto-space-lg);
}

.proto-card-footer {
    padding: var(--proto-space-lg);
    border-top: 1px solid var(--proto-slate-200);
    background: var(--proto-slate-50);
    display: flex;
    gap: var(--proto-space-sm);
}

/* ============================================
   5. BADGES
   ============================================ */

.proto-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    border-radius: var(--proto-radius-full);
    white-space: nowrap;
}

.proto-badge-sm {
    padding: 2px 8px;
    font-size: 0.6875rem;
}

.proto-badge-md {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.proto-badge-default {
    background: var(--proto-slate-200);
    color: var(--proto-slate-600);
}

.proto-badge-success {
    background: var(--proto-success-soft);
    color: var(--proto-success);
}

.proto-badge-warning {
    background: var(--proto-warning-soft);
    color: #b45309;
}

.proto-badge-error {
    background: var(--proto-error-soft);
    color: var(--proto-error);
}

.proto-badge-info {
    background: var(--proto-info-soft);
    color: var(--proto-info);
}

.proto-badge-primary {
    background: var(--proto-electric-soft);
    color: var(--proto-electric);
}

.proto-badge-muted {
    background: var(--proto-slate-100);
    color: var(--proto-slate-500);
}

/* ============================================
   6. FORM ELEMENTS
   ============================================ */

.proto-field {
    margin-bottom: var(--proto-space-md);
}

.proto-label {
    display: block;
    font-weight: 500;
    color: var(--proto-ink);
    margin-bottom: var(--proto-space-xs);
}

.proto-required {
    color: var(--proto-error);
    margin-left: 2px;
}

.proto-input,
.proto-textarea,
.proto-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--proto-font-body);
    border: 2px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-md);
    background: var(--proto-surface);
    color: var(--proto-ink);
    transition: border-color var(--proto-transition-fast), box-shadow var(--proto-transition-fast);
}

.proto-input:focus,
.proto-textarea:focus,
.proto-select:focus {
    border-color: var(--proto-electric);
    box-shadow: 0 0 0 3px var(--proto-electric-muted);
    outline: none;
}

.proto-input-error,
.proto-textarea-error {
    border-color: var(--proto-error);
}

.proto-input-error:focus,
.proto-textarea-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.proto-helper-text {
    display: block;
    color: var(--proto-slate-500);
    font-size: 0.8125rem;
    margin-top: var(--proto-space-xs);
}

.proto-error-text {
    display: block;
    color: var(--proto-error);
    font-size: 0.8125rem;
    margin-top: var(--proto-space-xs);
}

.proto-textarea {
    resize: vertical;
    min-height: 100px;
}

.proto-textarea-wrapper {
    position: relative;
}

.proto-has-counter .proto-char-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--proto-slate-400);
    pointer-events: none;
}

/* ============================================
   7. TABS
   ============================================ */

.proto-tabs {
    margin-bottom: var(--proto-space-xl);
}

.proto-tabs-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--proto-slate-200);
}

.proto-tab {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    padding: 0.75rem 1.25rem;
    color: var(--proto-slate-500);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color var(--proto-transition-fast), border-color var(--proto-transition-fast);
}

.proto-tab:hover {
    color: var(--proto-electric);
    text-decoration: none;
}

.proto-tab-active {
    color: var(--proto-electric);
    border-bottom-color: var(--proto-electric);
    font-weight: 500;
}

.proto-tab-icon {
    font-size: 1.1em;
}

@media (max-width: 576px) {
    .proto-tab {
        padding: var(--proto-space-sm) 0.75rem;
    }
    .proto-tab-label {
        display: none;
    }
    .proto-tab-icon {
        font-size: 1.3em;
    }
}

/* ============================================
   8. TAGS
   ============================================ */

.proto-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--proto-space-xs);
    padding: 4px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--proto-radius-full);
    background: var(--proto-slate-200);
    color: var(--proto-slate-600);
    transition: background var(--proto-transition-fast);
}

.proto-tag-primary {
    background: var(--proto-electric-soft);
    color: var(--proto-electric);
}

.proto-tag-success {
    background: var(--proto-success-soft);
    color: var(--proto-success);
}

.proto-tag-warning {
    background: var(--proto-warning-soft);
    color: #b45309;
}

.proto-tag-muted {
    background: var(--proto-slate-100);
    color: var(--proto-slate-500);
}

.proto-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0 -4px 0 2px;
    font-size: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--proto-transition-fast), background var(--proto-transition-fast);
}

.proto-tag-remove:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.proto-tag-input {
    display: flex;
    flex-wrap: wrap;
    gap: var(--proto-space-sm);
    padding: var(--proto-space-sm);
    border: 2px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-md);
    background: var(--proto-surface);
    min-height: 48px;
}

.proto-tag-input-field {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    padding: 4px;
    font-size: 0.9375rem;
    background: transparent;
}

.proto-tags-filter {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    flex-wrap: wrap;
}

.proto-filter-label {
    font-weight: 500;
    color: var(--proto-slate-500);
    margin-right: var(--proto-space-sm);
}

/* Tag Filter Pills */
.proto-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--proto-slate-600);
    background: var(--proto-slate-100);
    border: 1px solid transparent;
    border-radius: var(--proto-radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--proto-transition-fast);
}

.proto-filter-btn:hover {
    color: var(--proto-ink);
    background: var(--proto-slate-200);
    text-decoration: none;
}

/* Active/Selected filter state */
.proto-filter-active,
.proto-filter-btn.active {
    color: white;
    background: var(--proto-success);
    border-color: var(--proto-success);
}

.proto-filter-active:hover,
.proto-filter-btn.active:hover {
    background: #0d9668;
    border-color: #0d9668;
    color: white;
}

/* Kanban filters container */
.proto-kanban-filters {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--proto-space-md);
}

/* ============================================
   9. AVATARS
   ============================================ */

.proto-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--proto-electric) 0%, #5856d6 100%);
    color: white;
    font-family: var(--proto-font-display);
    font-weight: 600;
    overflow: hidden;
}

.proto-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.proto-avatar-md {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
}

.proto-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.125rem;
}

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

/* ============================================
   10. STAT CARDS
   ============================================ */

.proto-stat-card {
    display: flex;
    flex-direction: column;
    padding: var(--proto-space-lg);
    background: var(--proto-surface);
    border: 1px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-lg);
}

.proto-stat-icon {
    font-size: 1.5rem;
    margin-bottom: var(--proto-space-sm);
}

.proto-stat-label {
    font-size: 0.8125rem;
    color: var(--proto-slate-500);
    margin-bottom: var(--proto-space-xs);
}

.proto-stat-value {
    font-family: var(--proto-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--proto-ink);
}

.proto-stat-trend {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: var(--proto-space-xs);
}

.proto-stat-trend-up {
    color: var(--proto-success);
}

.proto-stat-trend-down {
    color: var(--proto-error);
}

/* Compact Stats Bar */
.proto-stats-bar {
    display: flex;
    align-items: center;
    gap: var(--proto-space-lg);
    padding: var(--proto-space-sm) 0;
    margin-bottom: var(--proto-space-md);
    border-bottom: 1px solid var(--proto-slate-200);
}

.proto-stats-bar-item {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
}

.proto-stats-bar-value {
    font-family: var(--proto-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--proto-ink);
}

.proto-stats-bar-label {
    font-size: 0.8125rem;
    color: var(--proto-slate-500);
}

.proto-stats-bar-divider {
    width: 1px;
    height: 24px;
    background: var(--proto-slate-200);
}

@media (max-width: 768px) {
    .proto-stats-bar {
        flex-wrap: wrap;
        gap: var(--proto-space-md);
    }

    .proto-stats-bar-divider {
        display: none;
    }
}

/* ============================================
   11. EMPTY STATES
   ============================================ */

.proto-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--proto-space-2xl);
    text-align: center;
}

.proto-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--proto-space-md);
    opacity: 0.4;
}

.proto-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--proto-space-sm);
    color: var(--proto-ink);
}

.proto-empty-description {
    color: var(--proto-slate-500);
    max-width: 300px;
    margin-bottom: var(--proto-space-lg);
}

.proto-empty-text {
    color: var(--proto-slate-400);
    font-style: italic;
}

/* ============================================
   12. VERSION TIMELINE
   ============================================ */

.proto-version-timeline {
    position: relative;
    padding-left: var(--proto-space-lg);
}

/* Vertical connecting line */
.proto-version-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--proto-electric-muted);
}

.proto-version-item {
    position: relative;
    padding: var(--proto-space-sm) 0;
    padding-left: var(--proto-space-md);
}

/* Blue dots on the timeline */
.proto-version-dot {
    position: absolute;
    left: -22px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--proto-electric);
    border: 2px solid var(--proto-surface);
    box-shadow: 0 0 0 2px var(--proto-electric-muted);
}

/* Current version has solid blue dot */
.proto-version-current .proto-version-dot {
    background: var(--proto-electric);
    box-shadow: 0 0 0 3px var(--proto-electric-muted);
}

/* Older versions have lighter dots */
.proto-version-item:not(.proto-version-current) .proto-version-dot {
    background: var(--proto-electric);
    opacity: 0.6;
}

.proto-version-header {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    flex-wrap: wrap;
}

.proto-version-number {
    font-weight: 600;
    color: var(--proto-ink);
}

.proto-version-meta {
    font-size: 0.8125rem;
    color: var(--proto-slate-500);
    margin-top: 2px;
}

.proto-version-author {
    font-weight: 500;
}

/* Version action links (Restore, View Changes) */
.proto-version-actions {
    display: flex;
    gap: var(--proto-space-sm);
    margin-top: var(--proto-space-xs);
}

.proto-version-action-link {
    font-size: 0.8125rem;
    color: var(--proto-electric);
    text-decoration: none;
    transition: color var(--proto-transition-fast);
}

.proto-version-action-link:hover {
    color: var(--proto-electric-hover);
    text-decoration: underline;
}

/* Restore link styling */
.proto-version-restore {
    font-weight: 500;
}

/* ============================================
   13. POSTING HISTORY
   ============================================ */

.proto-posting-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 2px 6px;
    background: var(--proto-slate-100);
    border-radius: var(--proto-radius-full);
}

.proto-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: white;
    text-transform: none;
    line-height: 1;
}

/* Platform-specific icon backgrounds */
.proto-platform-linkedin {
    background: #0a66c2;
}

.proto-platform-x {
    background: #000;
}

.proto-platform-facebook {
    background: #1877f2;
}

.proto-platform-twitter {
    background: #000;
}

/* Posting count text with visual separation */
.proto-posting-count {
    color: var(--proto-slate-600);
    font-weight: 500;
    margin-left: 2px;
}

/* When icons are present, add a subtle separator */
.proto-posting-badge .proto-platform-icon + .proto-posting-count::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: var(--proto-slate-300);
    margin-right: 6px;
    vertical-align: middle;
}

/* Ensure first platform icon doesn't have extra margin */
.proto-posting-badge .proto-platform-icon:first-child {
    margin-left: 0;
}

/* Stack platform icons slightly overlapping for compact view */
.proto-posting-badge-compact .proto-platform-icon {
    margin-left: -6px;
}

.proto-posting-badge-compact .proto-platform-icon:first-child {
    margin-left: 0;
}

.proto-posting-history {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-sm);
}

.proto-posting-item {
    padding: var(--proto-space-sm);
    border-radius: var(--proto-radius-sm);
    background: var(--proto-slate-50);
}

.proto-posting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--proto-space-xs);
}

/* Platform wrapper with icon and name */
.proto-posting-platform-wrapper {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
}

.proto-posting-platform {
    font-weight: 500;
    color: var(--proto-ink);
}

/* Badges container in header */
.proto-posting-badges {
    display: flex;
    align-items: center;
    gap: var(--proto-space-xs);
}

.proto-posting-meta {
    display: flex;
    align-items: center;
    gap: var(--proto-space-md);
    font-size: 0.8125rem;
    color: var(--proto-slate-500);
}

.proto-posting-link {
    font-size: 0.8125rem;
    color: var(--proto-electric);
    text-decoration: none;
    transition: color var(--proto-transition-fast);
}

.proto-posting-link:hover {
    color: var(--proto-electric-hover);
    text-decoration: underline;
}

.proto-posting-date {
    color: var(--proto-slate-500);
}

.proto-posting-error {
    color: var(--proto-error);
    font-size: 0.8125rem;
    margin-top: var(--proto-space-xs);
}

/* Success state styling */
.proto-posting-success {
    border-left: 3px solid var(--proto-success);
}

/* Failed state styling */
.proto-posting-failed {
    border-left: 3px solid var(--proto-error);
    background: var(--proto-error-soft);
}

/* Pending state styling */
.proto-posting-pending {
    border-left: 3px solid var(--proto-warning);
}

/* ============================================
   14. KANBAN BOARD
   ============================================ */

.proto-kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--proto-space-lg);
}

@media (max-width: 1200px) {
    .proto-kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .proto-kanban-board {
        grid-template-columns: 1fr;
    }
}

.proto-kanban-column {
    background: var(--proto-slate-100);
    border-radius: var(--proto-radius-lg);
    padding: var(--proto-space-md);
    min-height: 300px;
}

.proto-column-header {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    margin-bottom: var(--proto-space-md);
    padding-bottom: var(--proto-space-sm);
    border-bottom: 3px solid transparent;
}

/* Kanban column header colored underlines */
.proto-column-draft .proto-column-header { border-bottom-color: var(--proto-warning); }
.proto-column-generating .proto-column-header { border-bottom-color: var(--proto-electric); }
.proto-column-done .proto-column-header { border-bottom-color: var(--proto-success); }
.proto-column-posted .proto-column-header { border-bottom-color: #8b5cf6; }

/* Alternative class names for kanban columns (used in different components) */
.proto-kanban-drafts .proto-kanban-column-header { border-bottom-color: var(--proto-warning); }
.proto-kanban-ready .proto-kanban-column-header { border-bottom-color: var(--proto-success); }
.proto-kanban-posted .proto-kanban-column-header { border-bottom-color: var(--proto-electric); }

.proto-kanban-column-header {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    margin-bottom: var(--proto-space-md);
    padding-bottom: var(--proto-space-sm);
    border-bottom: 3px solid var(--proto-slate-300);
}

.proto-column-icon {
    font-size: 1.25rem;
}

.proto-column-title {
    font-family: var(--proto-font-display);
    font-weight: 600;
    font-size: 0.9375rem;
}

.proto-column-count {
    margin-left: auto;
    background: var(--proto-slate-200);
    padding: 2px 8px;
    border-radius: var(--proto-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.proto-column-cards {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-sm);
}

.proto-kanban-card {
    display: block;
    background: var(--proto-surface);
    border-radius: var(--proto-radius-md);
    padding: var(--proto-space-md);
    padding-left: calc(var(--proto-space-md) + 1px);
    box-shadow: var(--proto-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform var(--proto-transition-fast), box-shadow var(--proto-transition-fast), border-color var(--proto-transition-fast);
    border-left: 4px solid transparent;
}

.proto-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--proto-shadow-md);
    text-decoration: none;
}

/* Kanban card left accent bars based on status */
.proto-kanban-draft {
    border-left-color: var(--proto-warning);
}

.proto-kanban-generating {
    border-left-color: var(--proto-electric);
    animation: proto-pulse-border 2s ease-in-out infinite;
}

@keyframes proto-pulse-border {
    0%, 100% { border-left-color: var(--proto-electric); }
    50% { border-left-color: rgba(59, 109, 240, 0.4); }
}

.proto-kanban-done {
    border-left-color: var(--proto-success);
}

.proto-kanban-posted {
    border-left-color: #8b5cf6;
}

.proto-kanban-failed {
    border-left-color: var(--proto-error);
}

.proto-kanban-title {
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: var(--proto-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--proto-ink);
}

.proto-kanban-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--proto-space-sm);
}

.proto-kanban-tag {
    font-size: 0.6875rem;
    padding: 2px 6px;
}

.proto-kanban-more-tags {
    font-size: 0.6875rem;
    color: var(--proto-slate-400);
}

.proto-kanban-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--proto-slate-500);
}

/* ============================================
   15. ALERTS
   ============================================ */

.proto-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--proto-space-md);
    padding: var(--proto-space-md) var(--proto-space-lg);
    border-radius: var(--proto-radius-md);
    margin-bottom: var(--proto-space-md);
}

.proto-alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8125rem;
}

.proto-alert-title {
    display: block;
    margin-bottom: var(--proto-space-xs);
}

.proto-alert-message {
    flex: 1;
}

.proto-alert-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
}

.proto-alert-close:hover {
    opacity: 1;
}

.proto-alert-info {
    background: var(--proto-info-soft);
    color: #0369a1;
}

.proto-alert-info .proto-alert-icon {
    background: var(--proto-info);
    color: white;
}

.proto-alert-success {
    background: var(--proto-success-soft);
    color: #047857;
}

.proto-alert-success .proto-alert-icon {
    background: var(--proto-success);
    color: white;
}

.proto-alert-warning {
    background: var(--proto-warning-soft);
    color: #92400e;
}

.proto-alert-warning .proto-alert-icon {
    background: var(--proto-warning);
    color: white;
}

.proto-alert-error {
    background: var(--proto-error-soft);
    color: #b91c1c;
}

.proto-alert-error .proto-alert-icon {
    background: var(--proto-error);
    color: white;
}

/* ============================================
   16. DROPDOWNS
   ============================================ */

/* Reset details/summary browser defaults for nav dropdowns */
.proto-dropdown {
    position: relative;
    display: inline-block;
    margin: 0;
}

.proto-dropdown[open] > .proto-dropdown-trigger::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.proto-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--proto-space-xs);
    padding: var(--proto-space-sm) var(--proto-space-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--proto-slate-600);
    background: transparent;
    border: none;
    border-radius: var(--proto-radius-sm);
    cursor: pointer;
    transition: color var(--proto-transition-fast), background var(--proto-transition-fast);
    list-style: none;
    margin: 0;
}

/* Remove default summary marker */
.proto-dropdown-trigger::-webkit-details-marker {
    display: none;
}

.proto-dropdown-trigger::marker {
    display: none;
    content: '';
}

.proto-dropdown-trigger:hover {
    color: var(--proto-electric);
    background: var(--proto-electric-muted);
}

.proto-dropdown-trigger::after {
    content: '';
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    margin-top: -2px;
    opacity: 0.6;
    transition: transform var(--proto-transition-fast);
}

.proto-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 180px;
    padding: var(--proto-space-sm) 0;
    margin-top: var(--proto-space-xs);
    background: var(--proto-surface);
    border: 1px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-md);
    box-shadow: var(--proto-shadow-lg);
    list-style: none;
}

.proto-dropdown-right {
    left: auto;
    right: 0;
}

.proto-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    padding: var(--proto-space-sm) var(--proto-space-md);
    color: var(--proto-ink);
    text-decoration: none;
    transition: background var(--proto-transition-fast);
}

.proto-dropdown-item:hover {
    background: var(--proto-slate-100);
    text-decoration: none;
}

.proto-dropdown-divider {
    margin: var(--proto-space-sm) 0;
    border: none;
    border-top: 1px solid var(--proto-slate-200);
}

/* ============================================
   17. PAGE HEADERS
   ============================================ */

.proto-page-header {
    margin-bottom: var(--proto-space-xl);
}

.proto-page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--proto-space-lg);
}

.proto-page-title {
    font-size: 2rem;
    font-family: var(--proto-font-display);
    font-weight: 700;
    margin: 0 0 var(--proto-space-xs) 0;
    color: var(--proto-ink);
}

.proto-page-subtitle {
    color: var(--proto-slate-500);
    margin: 0;
}

.proto-page-actions {
    display: flex;
    gap: var(--proto-space-sm);
}

.proto-breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: var(--proto-space-sm);
}

.proto-breadcrumb-link {
    color: var(--proto-slate-500);
    text-decoration: none;
}

.proto-breadcrumb-link:hover {
    color: var(--proto-electric);
}

.proto-breadcrumb-sep {
    color: var(--proto-slate-400);
    margin: 0 var(--proto-space-sm);
}

.proto-breadcrumb-current {
    color: var(--proto-ink);
    font-weight: 500;
}

/* ============================================
   18. SECTIONS
   ============================================ */

.proto-section {
    margin-bottom: var(--proto-space-2xl);
}

.proto-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--proto-space-lg);
}

.proto-section-title {
    font-size: 1.25rem;
    font-family: var(--proto-font-display);
    font-weight: 600;
    margin: 0 0 var(--proto-space-xs) 0;
}

.proto-section-description {
    color: var(--proto-slate-500);
    margin: 0;
}

/* ============================================
   19. WIZARD
   ============================================ */

.proto-wizard-container {
    max-width: 720px;
    margin: 0 auto;
}

.proto-wizard-progress {
    display: flex;
    justify-content: center;
    gap: var(--proto-space-xl);
    margin-bottom: var(--proto-space-2xl);
    position: relative;
}

.proto-wizard-progress::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--proto-slate-200);
    z-index: 0;
}

.proto-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.proto-wizard-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--proto-font-display);
    font-weight: 600;
    font-size: 1rem;
    background: var(--proto-surface);
    border: 2px solid var(--proto-slate-300);
    color: var(--proto-slate-500);
    box-shadow: var(--proto-shadow-sm);
    transition: all var(--proto-transition-normal);
}

.proto-wizard-step-active .proto-wizard-step-circle {
    background: var(--proto-electric);
    border-color: var(--proto-electric);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 109, 240, 0.4);
    transform: scale(1.1);
}

.proto-wizard-step-completed .proto-wizard-step-circle {
    background: var(--proto-success);
    border-color: var(--proto-success);
    color: white;
}

.proto-wizard-step-label {
    margin-top: var(--proto-space-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--proto-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proto-wizard-step-active .proto-wizard-step-label {
    color: var(--proto-electric);
}

.proto-wizard-step-completed .proto-wizard-step-label {
    color: var(--proto-success);
}

.proto-wizard-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: var(--proto-space-sm);
}

.proto-wizard-subtitle {
    text-align: center;
    color: var(--proto-slate-500);
    margin-bottom: var(--proto-space-xl);
}

.proto-wizard-section-title {
    margin-bottom: var(--proto-space-lg);
}

.proto-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--proto-space-2xl);
    padding-top: var(--proto-space-lg);
    border-top: 1px solid var(--proto-slate-200);
}

/* Mood Grid */
.proto-mood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--proto-space-md);
}

@media (max-width: 576px) {
    .proto-mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.proto-mood-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--proto-space-md);
    border: 2px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-md);
    cursor: pointer;
    transition: all var(--proto-transition-fast);
    text-align: center;
}

.proto-mood-card:hover {
    border-color: var(--proto-slate-300);
    transform: translateY(-2px);
}

.proto-mood-selected {
    border-color: var(--proto-electric);
    background: var(--proto-electric-muted);
}

.proto-mood-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.proto-mood-emoji {
    font-size: 1.75rem;
    margin-bottom: var(--proto-space-xs);
}

.proto-mood-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.proto-mood-selected .proto-mood-label {
    color: var(--proto-electric);
}

/* Mode Toggle */
.proto-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--proto-space-md);
}

.proto-mode-option {
    position: relative;
    padding: var(--proto-space-md);
    border: 2px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-md);
    cursor: pointer;
    transition: all var(--proto-transition-fast);
}

.proto-mode-option:has(input:checked) {
    border-color: var(--proto-electric);
    background: var(--proto-electric-muted);
}

.proto-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.proto-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--proto-space-xs);
}

.proto-mode-name {
    font-weight: 600;
}

.proto-mode-credits {
    font-size: 0.8125rem;
    color: var(--proto-slate-500);
}

.proto-mode-premium {
    background: linear-gradient(135deg, var(--proto-electric) 0%, #7c3aed 100%);
    color: white;
    padding: 2px 8px;
    border-radius: var(--proto-radius-full);
}

.proto-mode-desc {
    font-size: 0.8125rem;
    color: var(--proto-slate-500);
    margin: 0;
}

.proto-mode-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--proto-electric);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: var(--proto-radius-sm);
}

/* Option Section */
.proto-option-section {
    margin-bottom: var(--proto-space-xl);
}

.proto-option-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--proto-slate-500);
    margin-bottom: var(--proto-space-md);
}

/* Toggles Section */
.proto-toggles-section {
    background: var(--proto-slate-100);
    border-radius: var(--proto-radius-md);
    padding: var(--proto-space-lg);
    margin-top: var(--proto-space-xl);
}

.proto-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--proto-space-sm) 0;
}

.proto-toggle-row + .proto-toggle-row {
    border-top: 1px solid var(--proto-slate-200);
}

.proto-toggle-icon {
    margin-right: var(--proto-space-sm);
}

.proto-toggle-label {
    font-weight: 500;
}

/* Credits Floating Badge */
.proto-credits-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
    padding: var(--proto-space-md) var(--proto-space-lg);
    background: var(--proto-surface);
    border: 1px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-full);
    box-shadow: var(--proto-shadow-lg);
    z-index: 100;
}

.proto-credits-icon {
    font-size: 1.2rem;
}

.proto-credits-value {
    font-family: var(--proto-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--proto-success);
}

.proto-credits-label {
    color: var(--proto-slate-500);
    font-size: 0.875rem;
}

/* ============================================
   20. SOCIAL CARDS
   ============================================ */

.proto-social-card {
    margin-bottom: var(--proto-space-lg);
}

.proto-social-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--proto-space-md) var(--proto-space-lg);
    border-bottom: 1px solid var(--proto-slate-200);
    background: var(--proto-slate-50);
}

.proto-social-header-left {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
}

.proto-social-platform {
    margin: 0;
    font-size: 1rem;
}

.proto-social-chars {
    font-size: 0.8125rem;
    color: var(--proto-slate-500);
}

.proto-social-chars-warning {
    color: var(--proto-error);
    font-weight: 600;
}

.proto-social-actions {
    display: flex;
    gap: var(--proto-space-sm);
}

.proto-social-body {
    padding: var(--proto-space-lg);
}

.proto-social-content {
    white-space: pre-wrap;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    font-family: var(--proto-font-body);
    color: var(--proto-ink);
}

/* ============================================
   21. ARTICLE PAGE
   ============================================ */

.proto-article-card {
    margin-bottom: var(--proto-space-xl);
}

.proto-article-content {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    font-family: var(--proto-font-body);
}

.proto-article-actions {
    display: flex;
    gap: var(--proto-space-sm);
}

.proto-sources-section {
    margin-top: var(--proto-space-lg);
}

.proto-sources-summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--proto-ink);
}

.proto-sources-list {
    margin-top: var(--proto-space-md);
    padding-left: var(--proto-space-lg);
}

.proto-sources-list li {
    margin-bottom: var(--proto-space-sm);
}

/* ============================================
   22. PROFILE PAGE
   ============================================ */

.proto-style-card {
    margin-bottom: var(--proto-space-md);
}

.proto-style-content {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-sm);
}

.proto-style-preview {
    color: var(--proto-slate-500);
    font-size: 0.875rem;
    margin: 0;
}

.proto-style-actions {
    display: flex;
    gap: var(--proto-space-sm);
}

.proto-email-row {
    display: flex;
    align-items: center;
    gap: var(--proto-space-md);
    margin-top: var(--proto-space-md);
}

.proto-email-code {
    font-family: var(--proto-font-mono);
    padding: var(--proto-space-sm) var(--proto-space-md);
    background: var(--proto-slate-100);
    border-radius: var(--proto-radius-sm);
}

.proto-channels-list {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-sm);
    margin: var(--proto-space-md) 0;
}

.proto-channel-option {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
}

.proto-linkedin-org-settings {
    margin-left: var(--proto-space-xl);
    padding: var(--proto-space-md);
    background: var(--proto-slate-50);
    border-radius: var(--proto-radius-md);
    margin-top: var(--proto-space-md);
}

/* ============================================
   23. ORG SETTINGS PAGE
   ============================================ */

.proto-team-table {
    width: 100%;
    border-collapse: collapse;
}

.proto-team-table th,
.proto-team-table td {
    padding: var(--proto-space-md);
    text-align: left;
    border-bottom: 1px solid var(--proto-slate-200);
}

.proto-team-table th {
    font-weight: 600;
    color: var(--proto-slate-500);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proto-member-cell {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
}

.proto-danger-card {
    border-color: var(--proto-error);
}

.proto-danger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--proto-space-lg);
}

.proto-danger-info {
    flex: 1;
}

.proto-danger-text {
    color: var(--proto-slate-500);
    margin: var(--proto-space-xs) 0 0 0;
    font-size: 0.875rem;
}

.proto-credits-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   24. SHOWCASE (Index Page)
   ============================================ */

.proto-showcase-section {
    margin-bottom: var(--proto-space-xl);
    padding-bottom: var(--proto-space-xl);
    border-bottom: 1px solid var(--proto-slate-200);
}

.proto-showcase-section:last-child {
    border-bottom: none;
}

.proto-showcase-section h4 {
    margin-bottom: var(--proto-space-md);
    color: var(--proto-slate-500);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proto-showcase-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--proto-space-md);
    margin-bottom: var(--proto-space-md);
}

/* ============================================
   25. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .proto-page-header-row {
        flex-direction: column;
    }

    .proto-wizard-progress {
        gap: var(--proto-space-md);
    }

    .proto-wizard-step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .proto-wizard-nav {
        flex-direction: column-reverse;
        gap: var(--proto-space-md);
    }

    .proto-wizard-nav > * {
        width: 100%;
    }

    .proto-credits-floating {
        bottom: 16px;
        right: 16px;
        padding: var(--proto-space-sm) var(--proto-space-md);
    }

    .proto-header-actions {
        flex-direction: column;
    }
}

/* ============================================
   26. MOTION ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .proto-btn:hover,
    .proto-card-hoverable:hover,
    .proto-kanban-card:hover,
    .proto-mood-card:hover,
    .proto-wizard-step-active .proto-wizard-step-circle {
        transform: none !important;
    }
}

/* ============================================
   27. ADMIN STYLES
   ============================================ */

.proto-admin-table {
    width: 100%;
}

.proto-admin-table th {
    font-weight: 600;
    text-align: left;
    padding: var(--proto-space-sm) var(--proto-space-md);
    background: var(--proto-slate-50);
    border-bottom: 2px solid var(--proto-slate-200);
}

.proto-admin-table td {
    padding: var(--proto-space-sm) var(--proto-space-md);
    border-bottom: 1px solid var(--proto-slate-200);
    vertical-align: middle;
}

.proto-admin-table tr:hover td {
    background: var(--proto-slate-50);
}

.proto-analytics-placeholder {
    text-align: center;
    padding: var(--proto-space-xl);
}

.proto-placeholder-chart {
    margin-top: var(--proto-space-lg);
    padding: var(--proto-space-xl);
    background: var(--proto-slate-100);
    border-radius: var(--proto-radius-lg);
    font-size: 1.25rem;
    color: var(--proto-slate-500);
}

/* ============================================
   28. TWO-COLUMN LAYOUT (Article Detail)
   ============================================ */

.proto-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--proto-space-xl);
    align-items: start;
}

.proto-main-content {
    min-width: 0;  /* Prevent overflow */
}

.proto-sidebar {
    position: sticky;
    top: var(--proto-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-md);
}

.proto-sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--proto-slate-700);
    margin: 0 0 var(--proto-space-sm) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proto-detail-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--proto-space-xs) var(--proto-space-md);
    margin: 0;
}

.proto-detail-list dt {
    font-size: 0.8125rem;
    color: var(--proto-slate-500);
}

.proto-detail-list dd {
    font-size: 0.875rem;
    color: var(--proto-slate-900);
    margin: 0;
}

.proto-card-compact {
    padding: var(--proto-space-md);
    background: var(--proto-slate-50);
    border-radius: var(--proto-radius-md);
    border: 1px solid var(--proto-slate-200);
}

.proto-post-list {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-xs);
}

.proto-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--proto-space-xs) 0;
    border-bottom: 1px solid var(--proto-slate-200);
}

.proto-post-item:last-child {
    border-bottom: none;
}

.proto-post-platform {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--proto-slate-700);
}

.proto-action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-xs);
}

.proto-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--proto-slate-800);
    margin: var(--proto-space-xl) 0 var(--proto-space-md) 0;
}

.proto-article-image {
    max-width: 100%;
    border-radius: var(--proto-radius-md);
    box-shadow: var(--proto-shadow-md);
}

.proto-generating-state,
.proto-error-state {
    padding: var(--proto-space-xl);
    text-align: center;
    background: var(--proto-slate-50);
    border-radius: var(--proto-radius-lg);
}

.proto-error-text {
    color: var(--proto-rose-600);
    font-weight: 500;
}

/* Responsive: Stack on mobile */
@media (max-width: 1024px) {
    .proto-two-column-layout {
        grid-template-columns: 1fr;
    }

    .proto-sidebar {
        position: static;
        order: -1;  /* Show sidebar first on mobile */
    }
}

/* ============================================
   29. DASHBOARD STYLES
   ============================================ */

.proto-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-lg);
}

.proto-dashboard-actions {
    display: flex;
    gap: var(--proto-space-sm);
}

.proto-dashboard-content {
    margin-top: var(--proto-space-md);
}

/* ============================================
   30. DANGER ZONE
   ============================================ */

.proto-danger-zone {
    padding: var(--proto-space-lg);
    background: var(--proto-rose-50);
    border: 2px solid var(--proto-rose-200);
    border-radius: var(--proto-radius-lg);
    margin-top: var(--proto-space-xl);
}

.proto-danger-title {
    color: var(--proto-rose-700);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--proto-space-sm) 0;
}

.proto-btn-danger-outline {
    background: transparent;
    color: var(--proto-rose-600);
    border: 1px solid var(--proto-rose-300);
}

.proto-btn-danger-outline:hover {
    background: var(--proto-rose-100);
    border-color: var(--proto-rose-400);
}

/* ============================================
   31. MEMBER TABLE STYLES
   ============================================ */

.proto-member-cell {
    display: flex;
    align-items: center;
    gap: var(--proto-space-sm);
}

.proto-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--proto-indigo-100);
    color: var(--proto-indigo-700);
    font-weight: 600;
    font-size: 0.875rem;
}

.proto-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.proto-member-name {
    font-weight: 500;
    color: var(--proto-slate-900);
}

.proto-select-sm {
    padding: var(--proto-space-xs) var(--proto-space-sm);
    font-size: 0.8125rem;
    border-radius: var(--proto-radius-sm);
}

.proto-actions-cell {
    white-space: nowrap;
}

/* ============================================
   32. KANBAN EMPTY STATES
   ============================================ */

.proto-kanban-empty {
    padding: var(--proto-space-lg);
    text-align: center;
    color: var(--proto-slate-500);
    font-style: italic;
}

.proto-empty-text {
    margin: 0;
    font-size: 0.875rem;
}

/* ============================================
   33. ADMIN DASHBOARD
   ============================================ */

.proto-admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--proto-space-lg);
}

.proto-tabs-nav {
    margin-bottom: var(--proto-space-md);
}

.proto-section {
    margin-top: var(--proto-space-md);
}

/* Dark mode adjustments for new components */
[data-theme="dark"] .proto-card-compact {
    background: var(--proto-slate-800);
    border-color: var(--proto-slate-700);
}

[data-theme="dark"] .proto-detail-list dt {
    color: var(--proto-slate-400);
}

[data-theme="dark"] .proto-detail-list dd {
    color: var(--proto-slate-100);
}

[data-theme="dark"] .proto-post-item {
    border-color: var(--proto-slate-700);
}

[data-theme="dark"] .proto-post-platform {
    color: var(--proto-slate-300);
}

[data-theme="dark"] .proto-danger-zone {
    background: rgba(244, 63, 94, 0.1);
    border-color: var(--proto-rose-800);
}

[data-theme="dark"] .proto-danger-title {
    color: var(--proto-rose-400);
}

[data-theme="dark"] .proto-btn-danger-outline {
    color: var(--proto-rose-400);
    border-color: var(--proto-rose-700);
}

[data-theme="dark"] .proto-btn-danger-outline:hover {
    background: rgba(244, 63, 94, 0.2);
}

[data-theme="dark"] .proto-avatar {
    background: var(--proto-indigo-900);
    color: var(--proto-indigo-300);
}

[data-theme="dark"] .proto-member-name {
    color: var(--proto-slate-100);
}

/* Dark mode: Posting badges */
[data-theme="dark"] .proto-posting-badge {
    background: var(--proto-slate-700);
}

[data-theme="dark"] .proto-posting-count {
    color: var(--proto-slate-400);
}

[data-theme="dark"] .proto-posting-badge .proto-platform-icon + .proto-posting-count::before {
    background: var(--proto-slate-500);
}

/* Dark mode: Filter buttons */
[data-theme="dark"] .proto-filter-btn {
    color: var(--proto-slate-400);
    background: var(--proto-slate-700);
}

[data-theme="dark"] .proto-filter-btn:hover {
    color: var(--proto-slate-100);
    background: var(--proto-slate-600);
}

[data-theme="dark"] .proto-filter-active,
[data-theme="dark"] .proto-filter-btn.active {
    color: white;
    background: var(--proto-success);
}

/* Dark mode: Kanban card accent borders */
[data-theme="dark"] .proto-kanban-card {
    border-left-color: transparent;
}

[data-theme="dark"] .proto-kanban-draft {
    border-left-color: var(--proto-warning);
}

[data-theme="dark"] .proto-kanban-generating {
    border-left-color: var(--proto-electric);
}

[data-theme="dark"] .proto-kanban-done {
    border-left-color: var(--proto-success);
}

[data-theme="dark"] .proto-kanban-posted {
    border-left-color: #a78bfa;
}

[data-theme="dark"] .proto-kanban-failed {
    border-left-color: var(--proto-error);
}

/* Dark mode: Kanban column headers */
[data-theme="dark"] .proto-kanban-column-header {
    border-bottom-color: var(--proto-slate-600);
}

/* Dark mode: Stats bar */
[data-theme="dark"] .proto-stats-bar {
    border-bottom-color: var(--proto-slate-600);
}

[data-theme="dark"] .proto-stats-bar-divider {
    background: var(--proto-slate-600);
}

[data-theme="dark"] .proto-stats-bar-value {
    color: var(--proto-slate-100);
}

[data-theme="dark"] .proto-stats-bar-label {
    color: var(--proto-slate-400);
}

/* ============================================
   34. WIZARD VISUAL IMPROVEMENTS
   ============================================ */

/* Step indicator checkmark styling */
.step-circle .step-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Character counter improvements */
.char-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.8125rem;
    color: var(--proto-slate-400);
    pointer-events: none;
    font-family: var(--proto-font-mono);
    font-weight: 500;
}

.char-counter.near-limit {
    color: var(--proto-warning);
}

.char-counter.at-limit {
    color: var(--proto-error);
    font-weight: 600;
}

/* RECOMMENDED badge for Advanced generation mode */
.recommended-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    padding: 4px 10px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border-radius: var(--proto-radius-sm);
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    z-index: 1;
}

/* Hide the CSS ::before badge since we now use an explicit element */
.credit-option.advanced::before {
    display: none;
}

/* Emoji mood grid - 3x2 layout */
.mood-grid-emoji {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--proto-space-md);
}

@media (max-width: 576px) {
    .mood-grid-emoji {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Emoji mood card styling */
.mood-grid-emoji .mood-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--proto-space-lg) var(--proto-space-md);
    border: 2px solid var(--proto-slate-200);
    border-radius: var(--proto-radius-md);
    background: var(--proto-surface);
    cursor: pointer;
    transition: all var(--proto-transition-fast);
    text-align: center;
    min-height: 100px;
}

.mood-grid-emoji .mood-card:hover {
    border-color: var(--proto-slate-300);
    transform: translateY(-2px);
    box-shadow: var(--proto-shadow-md);
}

.mood-grid-emoji .mood-card.selected {
    border-color: var(--proto-electric);
    background: var(--proto-electric-muted);
    box-shadow: 0 0 0 3px var(--proto-electric-soft);
}

.mood-grid-emoji .mood-emoji {
    font-size: 2rem;
    margin-bottom: var(--proto-space-sm);
    display: block;
    line-height: 1;
}

.mood-grid-emoji .mood-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--proto-ink);
}

.mood-grid-emoji .mood-card.selected .mood-name {
    color: var(--proto-electric);
}

/* Dark mode adjustments */
[data-theme="dark"] .mood-grid-emoji .mood-card {
    border-color: var(--proto-slate-300);
    background: var(--proto-surface-elevated);
}

[data-theme="dark"] .mood-grid-emoji .mood-card:hover {
    border-color: var(--proto-slate-400);
}

[data-theme="dark"] .mood-grid-emoji .mood-card.selected {
    border-color: var(--proto-electric);
    background: var(--proto-electric-muted);
}

[data-theme="dark"] .recommended-badge {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Ensure credit option position is relative for badge positioning */
.credit-option {
    position: relative;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mood-grid-emoji .mood-card {
        border-color: var(--proto-slate-300);
        background: var(--proto-surface-elevated);
    }

    :root:not([data-theme="light"]) .mood-grid-emoji .mood-card:hover {
        border-color: var(--proto-slate-400);
    }

    :root:not([data-theme="light"]) .mood-grid-emoji .mood-card.selected {
        border-color: var(--proto-electric);
        background: var(--proto-electric-muted);
    }

    :root:not([data-theme="light"]) .recommended-badge {
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    }
}
