:root {
    --primary: #1877f2;
    --primary-dark: #0d65d9;
    --bg: #f0f2f5;
    --surface: #ffffff;
    --text: #1c1e21;
    --text-muted: #65676b;
    --border: #dddfe2;
    --success: #31a24c;
    --error: #fa383e;
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.guest-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
}

.guest-main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.lead {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.auth-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.input-prefix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.input-prefix span {
    padding: 0.65rem 0.75rem;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
    border-left: 1px solid var(--border);
}

.input-prefix input {
    border: none;
    border-radius: 0;
}

.error {
    display: block;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background: #e7f3ff;
    color: #056162;
    border: 1px solid #b3d9ff;
}

.alert-error {
    background: #ffebe9;
    color: #a12824;
    border: 1px solid #ffcfc7;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
}

.sidebar-brand {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand .logo {
    display: block;
    font-size: 1rem;
}

.tenant-name {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-link {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg);
    text-decoration: none;
}

.nav-link.logout {
    color: var(--error);
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.user-info {
    margin-bottom: 0.5rem;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-role {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: capitalize;
}

.main-wrapper {
    flex: 1;
    margin-right: var(--sidebar-width);
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.topbar h1 {
    font-size: 1.25rem;
}

.main-content {
    padding: 1.5rem;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.empty-state {
    background: var(--surface);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.empty-state h2 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

.error-page {
    text-align: center;
    padding: 3rem 1rem;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform 0.2s ease;
        z-index: 200;
        display: flex;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 150;
    }

    .sidebar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--surface);
        cursor: pointer;
        flex-shrink: 0;
    }

    .sidebar-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--text);
        margin: 0 auto;
    }

    .topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .main-wrapper {
        margin-right: 0;
    }

    .schedule-options {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 60px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .week-calendar {
        grid-template-columns: 1fr;
    }
}

.sidebar-toggle {
    display: none;
}

.sidebar-overlay[hidden] {
    display: none;
}

.dashboard-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.alert-banner-error {
    background: #ffebe9;
    border: 1px solid #ffcfc7;
    color: #a12824;
}

.alert-banner-warning {
    background: #fff8e6;
    border: 1px solid #ffe08a;
    color: #856404;
}

.alert-banner-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #056162;
}

.alert-banner-link {
    white-space: nowrap;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    align-items: start;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.panel-head .panel-title {
    margin-bottom: 0;
}

.dashboard-welcome h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-card-quota .stat-value {
    font-size: 1.5rem;
}

.quota-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0 0.35rem;
}

.quota-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.2s;
}

.stat-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-card-danger {
    border: 1px solid #ffcfc7;
}

.stat-card-danger .stat-value {
    color: var(--error);
}

.post-mini-list {
    list-style: none;
}

.post-mini-list li {
    border-bottom: 1px solid var(--border);
}

.post-mini-list li:last-child {
    border-bottom: none;
}

.post-mini-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.5rem 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.8125rem;
}

.post-mini-list a:hover {
    color: var(--primary);
}

.post-mini-time {
    font-weight: 600;
    min-width: 3.5rem;
    direction: ltr;
    text-align: left;
}

.post-mini-text {
    flex: 1 1 100%;
    color: var(--text-muted);
}

.empty-inline {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.failed-list {
    list-style: none;
}

.failed-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}

.failed-list li:last-child {
    border-bottom: none;
}

.failed-list a {
    color: var(--text);
    text-decoration: none;
}

.failed-error {
    margin-top: 0.25rem;
    color: var(--error);
    font-size: 0.75rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.panel-failed {
    border: 1px solid #ffcfc7;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.view-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.view-toggle-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
}

.view-toggle-btn:hover {
    background: var(--bg);
    text-decoration: none;
}

.view-toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

.calendar-day.is-today {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-day.is-today .day-number {
    color: var(--primary);
}

.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.week-day-column {
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.week-day-column.is-today {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.week-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    border-radius: 8px 8px 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
}

.week-day-count {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

.week-day-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.week-day-posts {
    list-style: none;
    padding: 0.5rem;
    flex: 1;
}

.week-day-posts li {
    margin-bottom: 0.5rem;
}

.week-post-card {
    display: block;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    text-decoration: none;
    color: var(--text);
    font-size: 0.75rem;
}

.week-post-card:hover {
    border-color: var(--primary);
    text-decoration: none;
}

.week-post-time {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
    direction: ltr;
    text-align: left;
}

.week-post-text {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
}

.log-table .log-detail {
    max-width: 420px;
}

.log-error {
    color: var(--error);
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.log-json-details {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.log-json-details summary {
    cursor: pointer;
    color: var(--primary);
}

.log-json-details pre {
    margin-top: 0.25rem;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.7rem;
    max-height: 120px;
}

@media (max-width: 992px) {
    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: var(--surface);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.page-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.form-narrow {
    max-width: 480px;
}

.readonly-info .readonly-value {
    padding: 0.65rem 0;
    color: var(--text-muted);
    font-family: monospace;
    direction: ltr;
    text-align: left;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
}

.data-table tbody tr:hover {
    background: #fafbfc;
}

.empty-cell {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem !important;
}

.inline-form {
    display: inline;
}

.text-muted {
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #e6f4ea;
    color: #1e7e34;
}

.badge-muted {
    background: var(--bg);
    color: var(--text-muted);
}

.badge-role {
    background: #e7f3ff;
    color: #1877f2;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e4e6eb;
    text-decoration: none;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #d32f2f;
    text-decoration: none;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

code {
    background: var(--bg);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    direction: ltr;
}

.admin-layout .sidebar-brand .logo {
    color: #6b21a8;
}

.meta-header {
    margin-bottom: 1rem;
}

.meta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.panel-compact {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.panel-title {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.connection-status .status-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.connection-status .label {
    color: var(--text-muted);
    min-width: 120px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.account-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: var(--bg);
}

.account-card.account-inactive {
    opacity: 0.65;
}

.account-card-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.account-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.account-username {
    display: block;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.account-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
}

.badge-platform.badge-facebook {
    background: #e7f3ff;
    color: #1877f2;
}

.badge-platform.badge-instagram {
    background: #fce7f3;
    color: #c13584;
}

.account-card-action {
    margin: 0;
}

.empty-state-inline {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.meta-help .help-list {
    margin-right: 1.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.8;
}

.meta-help .help-list code {
    word-break: break-all;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.filter-tab {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 0.8125rem;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

.post-excerpt {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-status-draft { background: #f0f2f5; color: #65676b; }
.badge-status-confirmed { background: #e7f3ff; color: #1877f2; }
.badge-status-scheduled { background: #fff3cd; color: #856404; }
.badge-status-publishing { background: #cce5ff; color: #004085; }
.badge-status-published { background: #e6f4ea; color: #1e7e34; }
.badge-status-failed { background: #ffebe9; color: #a12824; }
.badge-status-cancelled { background: #f0f2f5; color: #65676b; }

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.media-preview-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
}

.media-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.media-video-placeholder {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

.remove-media-label {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    cursor: pointer;
}

.post-detail .detail-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.post-detail .label {
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
}

.post-detail .detail-block {
    margin-bottom: 1rem;
}

.post-message {
    margin-top: 0.35rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 6px;
    line-height: 1.6;
}

.post-next-step {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.confirm-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.confirm-panel h3 {
    margin-bottom: 0.5rem;
}

.quota-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.schedule-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-card-body {
    display: block;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s;
}

.radio-card input:checked + .radio-card-body {
    border-color: var(--primary);
    background: #e7f3ff;
}

.radio-card-body strong {
    display: block;
}

.radio-card-body small {
    color: var(--text-muted);
}

.publish-logs {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.log-list {
    list-style: none;
    font-size: 0.875rem;
}

.log-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.upcoming-list {
    list-style: none;
    margin-bottom: 1rem;
}

.upcoming-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.upcoming-list a {
    text-decoration: none;
    color: var(--text);
}

.calendar-header {
    margin-bottom: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.calendar-nav h2 {
    font-size: 1.25rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-weekday {
    background: var(--bg);
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.calendar-day {
    background: var(--surface);
    min-height: 90px;
    padding: 0.35rem;
    font-size: 0.75rem;
}

.calendar-day.empty {
    background: #fafbfc;
}

.calendar-day.has-posts {
    background: #f0f8ff;
}

.day-number {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.day-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.day-posts li {
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.day-posts a {
    color: var(--text);
    text-decoration: none;
}

.day-posts .more {
    color: var(--text-muted);
}
