/* PRO Community Portal — Minimal, readable design */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
header {
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
    color: #1a1a1a;
    background: #f0f0f0;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
    background: #f0f0f0;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    width: 100%;
}

/* Headings */
h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 .count {
    color: #999;
    font-weight: 400;
    font-size: 1rem;
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

/* ============================================================================
   Dashboard
   ============================================================================ */
.dashboard h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}

.dash-card:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.dash-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
}

.dash-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.35rem;
}

.dashboard-section {
    margin-bottom: 2rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: block;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: border-color 0.15s;
}

.quick-link:hover {
    border-color: #999;
}

/* ============================================================================
   Search & Filters
   ============================================================================ */
.search-bar {
    margin-bottom: 1rem;
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.search-bar input:focus {
    border-color: #999;
}

.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-group select {
    padding: 0.45rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
}

.filter-group select:focus {
    border-color: #999;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
    font-style: italic;
}

/* ============================================================================
   Member Directory
   ============================================================================ */
.directory-header {
    margin-bottom: 0.5rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.member-card {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    align-items: flex-start;
}

.member-card:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.member-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50%;
}

.member-info {
    min-width: 0;
    flex: 1;
}

.member-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.member-profession {
    color: #666;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-city {
    color: #999;
    font-size: 0.8rem;
}

.member-tags {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.pagination-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: border-color 0.2s, background 0.2s;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.pagination-btn:not(:disabled):hover {
    border-color: #999;
    background: #f5f5f5;
}

#page-info {
    color: #666;
    font-size: 0.9rem;
    min-width: 4rem;
    text-align: center;
}

/* ============================================================================
   Tags / Pills
   ============================================================================ */
.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: nowrap;
}

.tag-class {
    background: #e8f4fd;
    color: #1a73a7;
}

.tag-superpower {
    background: #fef3e2;
    color: #b36b00;
}

.tag-quest {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-more {
    background: #f0f0f0;
    color: #888;
}

/* Recording tag variant */
.tag-recording {
    background: #f0f0f0;
    color: #444;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hero-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #444;
}

/* ============================================================================
   Member Profile
   ============================================================================ */
.profile-back {
    margin-bottom: 1.5rem;
}

.profile-back a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.profile-back a:hover {
    color: #1a1a1a;
}

.profile-header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

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

.avatar-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.profile-title h1 {
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
}

.profile-profession {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.profile-location {
    color: #999;
    font-size: 0.9rem;
}

.profile-section {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.profile-section:last-of-type {
    border-bottom: none;
}

/* Semantic Card section */
.card-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
}

.card-summary {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.card-block {
    margin-bottom: 0.75rem;
}

.card-block:last-child {
    margin-bottom: 0;
}

.card-block h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 0.25rem;
}

.card-block p {
    color: #444;
    font-size: 0.95rem;
}

/* Subscription badge */
.subscription-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.subscription-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.subscription-badge-pro {
    background: #1a1a1a;
    color: #fff;
}

.subscription-badge-alumni {
    background: #e8f4fd;
    color: #1a73a7;
}

.subscription-badge-guest {
    background: #f0f0f0;
    color: #666;
}

.subscription-detail {
    color: #888;
    font-size: 0.9rem;
}

/* Profile info rows */
.profile-info-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.info-label {
    color: #888;
    flex-shrink: 0;
}

.info-value {
    color: #333;
}

/* Profile actions */
.profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #1a1a1a;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ============================================================================
   Recordings
   ============================================================================ */
.recordings-header {
    margin-bottom: 0.5rem;
}

.recordings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recording-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.recording-card:hover {
    border-color: #999;
}

.recording-info h2 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.recording-info time {
    font-size: 0.85rem;
    color: #888;
}

.recording-info p {
    margin-top: 0.35rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.recording-info p:first-of-type {
    margin-top: 0.35rem;
}

.recording-info p + p {
    margin-top: 0.5rem;
}

.recording-info strong {
    color: #333;
    font-weight: 600;
}

/* Tag list in recording cards */
.recording-info .tag-list {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.recording-info a {
    color: #4a90d9;
    text-decoration: underline;
}

.recording-link-icon {
    color: #ccc;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-decoration: none;
}

/* Recording thumbnail */
.recording-thumbnail {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Page info in header */
.page-info {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Pagination controls */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.15s, background 0.15s;
}

.pagination-link:hover:not(.disabled) {
    border-color: #999;
    background: #f8f8f8;
}

.pagination-link.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive: stack card content on mobile */
@media (max-width: 600px) {
    .recording-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .recording-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================================
   Articles (existing)
   ============================================================================ */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-card {
    display: block;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.article-card:hover {
    border-color: #999;
}

.article-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.article-card time {
    font-size: 0.85rem;
    color: #888;
}

.article-card p {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

/* Article page */
.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    margin-bottom: 0.25rem;
}

.article-header time {
    color: #888;
    font-size: 0.9rem;
}

.article-body {
    line-height: 1.75;
}

.article-body h2 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    color: #1a1a1a;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.35rem;
}

.article-body code {
    background: #f0f0f0;
    padding: 0.15em 0.35em;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-body pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-body blockquote {
    border-left: 3px solid #ccc;
    padding-left: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.article-body th,
.article-body td {
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.article-body th {
    background: #f5f5f5;
    font-weight: 600;
}

.article-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.article-nav a {
    color: #555;
    text-decoration: none;
}

.article-nav a:hover {
    color: #1a1a1a;
}

/* ============================================================================
   Login & Error Pages
   ============================================================================ */
.login-box,
.error-box {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.login-box h1,
.error-box h1 {
    margin-bottom: 1rem;
}

.login-box p,
.error-box p {
    margin-bottom: 0.75rem;
    color: #555;
}

.login-box code {
    background: #f0f0f0;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    font-size: 0.95em;
}

.error {
    color: #c0392b;
    font-weight: 500;
}

.hint {
    font-size: 0.9rem;
    color: #888;
}

.empty {
    color: #888;
    font-style: italic;
}

/* ============================================================================
   Footer
   ============================================================================ */
footer {
    border-top: 1px solid #e0e0e0;
    background: #fff;
    text-align: center;
    padding: 1rem;
    color: #999;
    font-size: 0.85rem;
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 600px) {
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #e0e0e0;
        padding-top: 0.5rem;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-link {
        padding: 0.6rem 0.25rem;
        font-size: 0.95rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .article-card {
        padding: 1rem;
    }
}

/* ================================================================
   Admin Status Dashboard
   ================================================================ */

.admin-dashboard h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.admin-refresh-note {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.status-table {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.status-row:last-child {
    border-bottom: none;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-ok {
    background: #2e7d32;
}

.status-error {
    background: #c0392b;
}

.status-name {
    font-weight: 600;
    min-width: 120px;
    font-size: 0.9rem;
}

.status-detail {
    color: #666;
    font-size: 0.9rem;
}

.error-log {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.85rem;
}

.error-entry {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f5f5f5;
    align-items: baseline;
}

.error-entry:last-child {
    border-bottom: none;
}

.error-time {
    color: #999;
    font-family: monospace;
    flex-shrink: 0;
}

.error-path {
    color: #1a1a1a;
    font-family: monospace;
    flex-shrink: 0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-type {
    color: #c0392b;
    font-weight: 600;
    flex-shrink: 0;
}

.error-msg {
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================================================================
   Analytics Dashboard
   ================================================================ */

.analytics-top-cmd {
    font-size: 1rem;
    word-break: break-all;
}

.analytics-table {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}

.analytics-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f9f9f9;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

.analytics-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.analytics-row:last-child {
    border-bottom: none;
}

.analytics-col-date {
    width: 90px;
    flex-shrink: 0;
    font-family: monospace;
    font-size: 0.85rem;
    color: #666;
}

.analytics-col-bar {
    flex: 1;
    min-width: 0;
}

.analytics-bar {
    display: block;
    height: 18px;
    background: #e8f4fd;
    border-radius: 3px;
    min-width: 2px;
}

.analytics-col-num {
    width: 60px;
    flex-shrink: 0;
    text-align: right;
    font-family: monospace;
    font-size: 0.85rem;
    color: #444;
}

.analytics-col-event {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-col-event code {
    background: #f0f0f0;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.85rem;
}

.analytics-col-type {
    width: 80px;
    flex-shrink: 0;
}

.analytics-col-user {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-feed {
    max-height: 500px;
    overflow-y: auto;
}

.analytics-feed-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.analytics-feed-row:last-child {
    border-bottom: none;
}

.analytics-feed-time {
    font-family: monospace;
    font-size: 0.8rem;
    color: #999;
    flex-shrink: 0;
}

.analytics-feed-user {
    color: #555;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================================
   Inline Profile Editing
   ============================================================================ */

/* Editable wrapper */
.editable {
    position: relative;
}

.editable-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pencil button — hidden by default, shown on hover */
.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: #999;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    flex-shrink: 0;
}

.editable:hover .edit-btn,
.editable-row:hover .edit-btn {
    opacity: 1;
}

.edit-btn:hover {
    color: #333;
    background: #f0f0f0;
}

/* Small variant for inline editable (e.g. timezone inside location line) */
.edit-btn-sm {
    font-size: 0.75rem;
    padding: 0.1rem 0.25rem;
}

/* Edit form — hidden by default via HTML hidden attribute.
   display:flex only when [hidden] is removed by JS. */
.editable-form {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.editable-form:not([hidden]) {
    display: flex;
}

.editable-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.edit-input {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    min-width: 0;
}

.edit-input:focus {
    border-color: #666;
}

.edit-input-sm {
    font-size: 0.85rem;
    padding: 0.2rem 0.35rem;
    width: 80px;
}

/* Save / Cancel buttons */
.editable-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.save-btn,
.cancel-btn {
    background: none;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s;
    line-height: 1;
}

.save-btn {
    color: #2e7d32;
    border-color: #2e7d32;
}

.save-btn:hover {
    background: #e8f5e9;
}

.cancel-btn {
    color: #c0392b;
    border-color: #c0392b;
}

.cancel-btn:hover {
    background: #fdecea;
}

.save-btn-sm,
.cancel-btn-sm {
    font-size: 0.75rem;
    padding: 0.15rem 0.3rem;
}

/* Checkbox inside edit form */
.edit-checkbox {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
}

.edit-checkbox input[type="checkbox"] {
    cursor: pointer;
}

/* Error message */
.edit-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Avatar overlay */
.editable-avatar {
    position: relative;
    cursor: pointer;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.editable-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay-icon {
    font-size: 1.5rem;
    color: #fff;
}

/* Disabled state for editable fields (no hover for empty profession placeholder) */
.profile-profession.editable-display {
    color: inherit;
}

.editable[data-value=""] .profile-profession.editable-display {
    color: #999;
    font-style: italic;
}

/* Timezone editable (pencil next to tz text) */
.tz-editable {
    display: inline;
    position: relative;
}

.tz-editable:hover .edit-btn {
    opacity: 1;
}

/* ============================================================================
   Modal
   ============================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

.modal-body {
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* Timezone option buttons */
.tz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.9rem;
    color: #333;
    transition: background 0.1s;
}

.tz-option:hover {
    background: #f5f5f5;
}

.tz-option-active {
    background: #e8f5e9;
    font-weight: 600;
}

.tz-option-active:hover {
    background: #c8e6c9;
}

.tz-option-saving {
    opacity: 0.5;
}

.tz-option-short {
    font-weight: 600;
    min-width: 65px;
    color: #555;
}

.tz-option-full {
    color: #888;
    font-size: 0.85rem;
}

/* ============================================================================
   Admin Broadcast
   ============================================================================ */

.bc-page {
    max-width: 1000px;
}

/* Bot selector */
.bc-bot-selector {
    display: flex;
    gap: 1rem;
}

.bc-bot-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem 1rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    font-family: inherit;
}

.bc-bot-btn:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.bc-bot-active {
    border-color: #1a1a1a;
    background: #f8f8f8;
}

.bc-bot-icon {
    font-size: 1.8rem;
}

.bc-bot-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

/* Target toggle */
.bc-target-toggle {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.bc-target-btn {
    flex: 1;
    padding: 0.6rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.15s;
}

.bc-target-btn:hover {
    background: #eebdca33;
    border-color: #eebdca;
    color: #d6336c;
}

.bc-target-btn.active {
    background: #d6336c;
    border-color: #d6336c;
    color: #fff;
    font-weight: 500;
}

.bc-bot-table {
    font-size: 0.8rem;
    color: #888;
}

/* Event filter dropdown */
.bc-event-filter {
    margin-top: 1rem;
    max-width: 400px;
}

.bc-event-filter h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.bc-event-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.bc-event-select:focus {
    border-color: #999;
}

.bc-event-loading {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.4rem;
}

/* Users toolbar */
.bc-users-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.bc-select-all {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.bc-selected-count {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: #f0f0f0;
    border-radius: 100px;
}

.bc-search {
    margin-left: auto;
}

.bc-search input {
    padding: 0.4rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    width: 200px;
    transition: border-color 0.15s;
}

.bc-search input:focus {
    border-color: #999;
}

/* Users table */
.bc-users-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    max-height: 400px;
    overflow-y: auto;
}

.bc-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.bc-users-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.bc-users-table th {
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: #555;
    white-space: nowrap;
}

.bc-users-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    white-space: nowrap;
}

.bc-users-table tr:hover td {
    background: #fafafa;
}

.bc-users-table a {
    color: #1a73a7;
    text-decoration: none;
}

.bc-users-table a:hover {
    text-decoration: underline;
}

.bc-col-check {
    width: 36px;
    text-align: center;
}

.bc-col-name {
    font-weight: 500;
    min-width: 140px;
}

.bc-col-id {
    font-family: monospace;
    font-size: 0.8rem;
    color: #888;
}

.bc-na {
    color: #ccc;
}

.bc-empty,
.bc-error {
    text-align: center;
    padding: 2rem 1rem;
    color: #888;
    font-style: italic;
}

.bc-error {
    color: #c0392b;
}

/* Loading spinner */
.bc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
}

.bc-loading[hidden] {
    display: none;
}

.bc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: bc-spin 0.6s linear infinite;
}

@keyframes bc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message editor */
.bc-variables {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.bc-var-label {
    font-size: 0.8rem;
    color: #888;
}

.bc-var-btn {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #e8f4fd;
    color: #1a73a7;
    border: 1px solid #b3d9f2;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
    cursor: pointer;
    transition: background 0.15s;
}

.bc-var-btn:hover {
    background: #d0ebf7;
}

.bc-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.15s;
    line-height: 1.5;
}

.bc-textarea:focus {
    border-color: #999;
}

.bc-char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

/* Actions */
.bc-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bc-confirm-row {
    flex: 1;
}

.bc-confirm-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    color: #555;
}

.bc-confirm-label strong {
    color: #1a1a1a;
}

.bc-send-btn {
    padding: 0.7rem 2rem;
    font-size: 1rem;
}

.bc-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Test status */
.bc-test-status {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.bc-test-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.bc-test-error {
    background: #fdecea;
    color: #c0392b;
}

/* Delivery log */
.bc-log-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.bc-log-ok {
    color: #2e7d32;
}

.bc-log-fail {
    color: #c0392b;
}

.bc-log-total {
    color: #888;
    font-weight: 400;
}

.bc-log-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bc-progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.bc-progress-fill {
    height: 100%;
    background: #2e7d32;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0;
}

.bc-progress-text {
    font-size: 0.8rem;
    color: #888;
    font-family: monospace;
    flex-shrink: 0;
}

.bc-log-entries {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.bc-log-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.85rem;
}

.bc-log-entry:last-child {
    border-bottom: none;
}

.bc-log-entry-ok {
    color: #333;
}

.bc-log-entry-fail {
    color: #c0392b;
    background: #fef8f7;
}

.bc-log-icon {
    flex-shrink: 0;
}

.bc-log-name {
    font-weight: 500;
    min-width: 120px;
}

.bc-log-id {
    font-family: monospace;
    font-size: 0.8rem;
    color: #888;
    min-width: 80px;
}

.bc-log-error {
    color: #c0392b;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Broadcast responsive */
@media (max-width: 600px) {
    .bc-bot-selector {
        flex-direction: column;
    }

    .bc-users-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .bc-search {
        margin-left: 0;
        width: 100%;
    }

    .bc-search input {
        width: 100%;
    }

    .bc-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bc-log-entry {
        flex-wrap: wrap;
    }
}

/* ============================================================================
   Admin Digest
   ============================================================================ */

/* Calendar */
.dg-calendar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 1rem;
}

.dg-cal-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.dg-cal-day-sm {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-left: 0.5rem;
}

.dg-cal-week {
    display: flex;
    gap: 2px;
}

.dg-cal-day {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-decoration: none;
    color: #333;
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
}

.dg-cal-day:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.dg-cal-num {
    font-weight: 500;
}

.dg-cal-outside {
    width: 32px;
    height: 32px;
    background: transparent;
}

.dg-cal-published {
    background: #c8e6c9;
    color: #1b5e20;
}

.dg-cal-approved {
    background: #bbdefb;
    color: #0d47a1;
}

.dg-cal-draft {
    background: #fff9c4;
    color: #f57f17;
}

.dg-cal-failed {
    background: #ffcdd2;
    color: #b71c1c;
}

.dg-cal-empty {
    background: #f0f0f0;
    color: #999;
}

.dg-cal-weekly {
    border: 2px solid #1a73a7;
}

/* Table */
.dg-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.dg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.dg-table th {
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: #555;
    white-space: nowrap;
}

.dg-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    white-space: nowrap;
}

.dg-table tr:hover td {
    background: #fafafa;
}

.dg-table a {
    color: #1a73a7;
    text-decoration: none;
}

.dg-table a:hover {
    text-decoration: underline;
}

.dg-col-date {
    font-family: monospace;
    font-size: 0.85rem;
}

/* Badges */
.dg-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dg-badge-daily {
    background: #e8f4fd;
    color: #1a73a7;
}

.dg-badge-weekly {
    background: #f3e5f5;
    color: #7b1fa2;
}

.dg-badge-published {
    background: #e8f5e9;
    color: #2e7d32;
}

.dg-badge-approved {
    background: #e3f2fd;
    color: #1565c0;
}

.dg-badge-draft {
    background: #fff8e1;
    color: #f57f17;
}

.dg-badge-failed {
    background: #fce4ec;
    color: #c62828;
}

/* Status text colors for dash-number */
.dg-status-published {
    color: #2e7d32;
}

.dg-status-approved {
    color: #1565c0;
}

.dg-status-draft {
    color: #f57f17;
}

.dg-status-failed {
    color: #c62828;
}

/* Generate section */
.dg-generate {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dg-gen-status {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.dg-gen-ok {
    color: #2e7d32;
    background: #e8f5e9;
}

.dg-gen-error {
    color: #c62828;
    background: #fce4ec;
}

/* Progress indicator */
.dg-progress {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.dg-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.dg-progress-fill {
    height: 100%;
    background: #1a73a7;
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0;
}

.dg-progress-fill.dg-progress-error {
    background: #c62828;
}

.dg-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dg-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #bbb;
    transition: color 0.2s;
}

.dg-step-active {
    color: #1a73a7;
    font-weight: 600;
}

.dg-step-done {
    color: #2e7d32;
}

.dg-step-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.dg-step-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #c8ddf0;
    border-top-color: #1a73a7;
    border-radius: 50%;
    animation: dg-spin 0.6s linear infinite;
}

@keyframes dg-spin {
    to { transform: rotate(360deg); }
}

.dg-progress-timer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
    font-family: monospace;
}

/* Content box */
.dg-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
    max-height: 600px;
    overflow-y: auto;
}

.dg-content b {
    font-weight: 600;
}

.dg-content a {
    color: #1a73a7;
}

/* Actions */
.dg-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Action status */
.dg-action-status {
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.dg-action-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.dg-action-error {
    background: #fce4ec;
    color: #c62828;
}

/* Responsive */
@media (max-width: 600px) {
    .dg-cal-day {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .dg-generate {
        flex-direction: column;
        align-items: stretch;
    }

    .dg-actions {
        flex-direction: column;
    }
}

/* ============================================================================
   Admin Random Coffee
   ============================================================================ */

/* Tables */
.rc-table-wrap { overflow-x: auto; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.rc-table th { background: #f9f9f9; border-bottom: 1px solid #e0e0e0; padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; font-size: 0.8rem; color: #555; white-space: nowrap; }
.rc-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #f5f5f5; color: #333; }
.rc-table tr:hover td { background: #fafafa; }
.rc-col-date { font-family: monospace; font-size: 0.85rem; white-space: nowrap; }

/* Badges */
.rc-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }

/* Signup statuses */
.rc-badge-waiting { background: #fff8e1; color: #f57f17; }
.rc-badge-matched { background: #e8f5e9; color: #2e7d32; }
.rc-badge-reserve { background: #e3f2fd; color: #1565c0; }
.rc-badge-skipped { background: #f5f5f5; color: #999; }

/* Match met statuses */
.rc-badge-pending { background: #fff8e1; color: #f57f17; }
.rc-badge-yes { background: #e8f5e9; color: #2e7d32; }
.rc-badge-no { background: #fce4ec; color: #c62828; }

/* Source badges */
.rc-badge-manual { background: #e3f2fd; color: #1565c0; }
.rc-badge-auto { background: #e8f5e9; color: #2e7d32; }
.rc-badge-reminder { background: #f3e5f5; color: #7b1fa2; }

/* Delivery status */
.rc-badge-sent { background: #e8f5e9; color: #2e7d32; }
.rc-badge-failed { background: #fce4ec; color: #c62828; }

/* Week controls */
.rc-week-controls { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Trend chart */
.rc-trend { display: flex; align-items: flex-end; gap: 4px; height: 100px; padding: 0.5rem 0; }
.rc-trend-bar { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; }
.rc-trend-fills { display: flex; flex-direction: column; gap: 1px; width: 100%; align-items: stretch; }
.rc-trend-fill { width: 100%; border-radius: 2px 2px 0 0; min-height: 0; }
.rc-trend-signups { background: #bbdefb; }
.rc-trend-matches { background: #1565c0; }
.rc-trend-label { font-size: 0.6rem; color: #999; white-space: nowrap; margin-top: 4px; }
.rc-trend-legend { display: flex; gap: 1rem; font-size: 0.75rem; color: #888; margin-top: 0.5rem; align-items: center; }
.rc-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.rc-legend-signups { background: #bbdefb; }
.rc-legend-matches { background: #1565c0; }

/* Message filters */
.rc-msg-filters { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }

/* Progress bar */
.rc-progress { margin-top: 0.75rem; padding: 1rem; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; }
.rc-progress-bar { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; margin-bottom: 0.75rem; }
.rc-progress-fill { height: 100%; background: #1565c0; border-radius: 3px; transition: width 0.5s ease; width: 0; }
.rc-progress-steps { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.rc-step-active { color: #1565c0; font-weight: 600; }
.rc-step-done { color: #999; text-decoration: line-through; }

/* Action status */
.rc-action-status { margin-top: 0.5rem; padding: 0.6rem 1rem; border-radius: 6px; font-size: 0.9rem; }
.rc-action-ok { background: #e8f5e9; color: #2e7d32; }
.rc-action-error { background: #fce4ec; color: #c62828; }

/* Count span in headings */
.count { font-weight: normal; color: #999; font-size: 0.85em; }

/* Responsive */
@media (max-width: 600px) {
    .rc-week-controls { flex-direction: column; align-items: stretch; }
    .rc-trend { height: 60px; }
    .rc-msg-filters { flex-direction: column; }
}