
.dash-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px;
}

.dash-sidebar {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    height: fit-content;
}

.dash-sidebar h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 42px;
    color: #0f172a;
}

.dash-sidebar a {
    display: block;
    margin-bottom: 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: #0f172a;
}

.dash-content {
    min-width: 0;
}

.dash-header {
    background: #fff;
    border-radius: 28px;
    padding: 34px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dash-header h1 {
    margin: 0 0 14px;
    font-size: 56px;
    line-height: 1.05;
    color: #0f172a;
}

.directory-kicker {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 12px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.dash-stats a {
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.dash-stats a:hover {
    transform: translateY(-3px);
}

.dash-stats strong {
    display: block;
    font-size: 54px;
    line-height: 1;
    margin-bottom: 12px;
    color: #2563eb;
}

.dash-stats span {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.dash-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dash-panel {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dash-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.dash-panel__head h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

.dash-panel__head a {
    flex-shrink: 0;
    text-decoration: none;
    font-weight: 700;
    color: #2563eb;
}

.dash-mini-item {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dash-mini-item:last-child {
    border-bottom: none;
}

.dash-mini-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.dash-mini-item span {
    color: #6b7280;
    line-height: 1.5;
}

.dash-empty {
    color: #6b7280;
    margin: 0;
}

.dash-table-wrap {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
}

.dash-table th,
.dash-table td {
    padding: 18px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

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

.dash-actions a,
.dash-actions button {
    border: none;
    background: #eff6ff;
    color: #2563eb;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}

.status-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.status-badge--published {
    background: #dcfce7;
    color: #166534;
}

.status-badge--draft {
    background: #fef3c7;
    color: #92400e;
}

.status-badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

.dash-form-card {
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dash-form-card form p {
    margin-bottom: 20px;
}

.dash-form-card input,
.dash-form-card textarea,
.dash-form-card select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 16px;
    box-sizing: border-box;
}

.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.dashboard-button--primary {
    background: #2563eb;
    color: #fff;
}

.dashboard-button--secondary {
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 768px) {

    .dash-layout {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .dash-sidebar {
        padding: 22px;
    }

    .dash-sidebar h2 {
        font-size: 32px;
    }

    .dash-sidebar a {
        font-size: 18px;
    }

    .dash-header {
        padding: 24px;
    }

    .dash-header h1 {
        font-size: 28px;
        line-height: 1.15;
        word-break: normal;
    }

    .dash-stats {
        grid-template-columns: 1fr;
    }

    .dash-stats strong {
        font-size: 42px;
    }

    .dash-two-columns {
        grid-template-columns: 1fr;
    }

    .dash-panel {
        padding: 22px;
    }

    .dash-panel__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-panel__head a {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .dash-table {
        min-width: 700px;
    }

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

    .dash-actions a,
    .dash-actions button {
        width: 100%;
        text-align: center;
    }
}

/* Dashboard user admin actions */
.dash-actions--users {
    min-width: 150px;
}

.dash-actions--users a,
.dash-actions--users button {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.dash-danger-link,
.dashboard-button--danger {
    background: #fff1f3 !important;
    color: #dc143c !important;
    border-color: rgba(220,20,60,.18) !important;
}

.dashboard-button--danger {
    border: 1px solid rgba(220,20,60,.18);
}

.profile-status-badge.is-vip {
    background: linear-gradient(135deg, #fff7d6, #ffe08a);
    color: #7a4b00;
}

.profile-status-badge.is-verified {
    background: #eef6ff;
    color: #1d4ed8;
}

.profile-status-badge.is-business {
    background: linear-gradient(135deg, #161616, #3b2b08);
    color: #ffe08a;
}

.dash-users-table td {
    vertical-align: top;
}

@media (max-width: 760px) {
    .dash-filter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dash-actions--users {
        min-width: 132px;
    }
}

/* Repair 2026-06-14: dashboard statistics chart */
.dash-chart-panel {
    margin: 22px 0;
}
.dash-stat-chart {
    display: grid;
    gap: 13px;
}
.dash-stat-chart__row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 58px;
    gap: 12px;
    align-items: center;
}
.dash-stat-chart__label {
    color: #475569;
    font-weight: 800;
    font-size: 14px;
}
.dash-stat-chart__track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}
.dash-stat-chart__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #ef3340);
}
.dash-stat-chart__row strong {
    text-align: right;
    color: #0f172a;
}
@media (max-width: 640px) {
    .dash-stat-chart__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .dash-stat-chart__row strong {
        text-align: left;
    }
}


/* Step37: editorial scheduler */
.scheduler-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
}
.scheduler-actions form { margin: 0; }
.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}
.dashboard-button--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.scheduler-stats { grid-template-columns: repeat(3, 1fr); }
.scheduler-warning { border: 1px solid #fecaca; }
.scheduler-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
}
.scheduler-weekdays,
.scheduler-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.scheduler-weekdays b {
    padding: 14px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    text-align: center;
}
.scheduler-day {
    min-height: 148px;
    padding: 10px;
    border-right: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.scheduler-day:nth-child(7n) { border-right: 0; }
.scheduler-day.is-empty { background: #f1f5f9; }
.scheduler-day.is-today { box-shadow: inset 0 0 0 2px #2563eb; }
.scheduler-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 900;
    color: #0f172a;
    background: #f1f5f9;
    margin-bottom: 8px;
}
.scheduler-event {
    display: block;
    margin: 6px 0;
    padding: 8px 9px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}
.scheduler-event span {
    display: block;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 2px;
}
.scheduler-event.status-published {
    background: #ecfdf5;
    color: #047857;
}
.scheduler-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}
.scheduler-row:last-child { border-bottom: 0; }
.scheduler-row strong {
    display: block;
    color: #111827;
    font-size: 17px;
    line-height: 1.3;
}
.scheduler-row span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
}
.scheduler-row.overdue strong { color: #b91c1c; }
.scheduler-row a { font-weight: 800; color: #2563eb; text-decoration: none; }
.scheduler-note code {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #0f172a;
    color: #dbeafe;
    border-radius: 18px;
    padding: 16px;
    font-size: 14px;
}
.status-badge--scheduled {
    background: #fef3c7;
    color: #92400e;
}
@media (max-width: 900px) {
    .scheduler-stats,
    .scheduler-weekdays,
    .scheduler-week {
        grid-template-columns: 1fr;
    }
    .scheduler-weekdays { display: none; }
    .scheduler-day {
        min-height: auto;
        border-right: 0;
    }
}

/* Step49: monitoring dashboard refinement */
.monitoring-hero,
.monitoring-toolbar,
.monitoring-section,
.monitoring-runs {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}
.monitoring-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
}
.monitoring-hero h1,
.monitoring-section h2,
.monitoring-runs h2 {
    margin: 0;
    color: #0f172a;
    line-height: 1.08;
}
.monitoring-hero h1 { font-size: clamp(34px, 5vw, 54px); }
.monitoring-section h2,
.monitoring-runs h2 { font-size: clamp(28px, 4vw, 42px); }
.monitoring-hero .muted {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.55;
}
.monitoring-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.monitoring-pill,
.monitoring-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.15;
    cursor: pointer;
}
.monitoring-button--primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}
.monitoring-button--muted {
    background: #fff;
    color: #64748b;
}
.monitoring-filters {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
}
.monitoring-filters label span {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.monitoring-filters select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
    font-size: 16px;
    color: #0f172a;
}
.monitoring-section__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}
.monitoring-count {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 900;
    white-space: nowrap;
}
.monitoring-list {
    display: grid;
    gap: 16px;
}
.monitoring-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}
.monitoring-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.monitoring-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}
.monitoring-item h3 {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 23px;
    line-height: 1.2;
}
.monitoring-item p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}
.monitoring-item__links {
    margin-top: 12px;
}
.monitoring-item__links a {
    color: #b91c1c;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(185, 28, 28, .25);
}
.monitoring-item__side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.monitoring-status {
    display: inline-flex;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 900;
}
.monitoring-status--new { background: #eff6ff; color: #1d4ed8; }
.monitoring-status--reviewed { background: #fef3c7; color: #92400e; }
.monitoring-status--draft_created { background: #dcfce7; color: #166534; }
.monitoring-status--skipped { background: #f1f5f9; color: #64748b; }
.monitoring-actions {
    display: grid;
    gap: 8px;
}
.monitoring-actions form,
.monitoring-actions button {
    width: 100%;
}
.monitoring-run-list {
    display: grid;
    gap: 10px;
}
.monitoring-run {
    display: grid;
    grid-template-columns: 150px 120px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
}
.monitoring-run:last-child { border-bottom: 0; }
.monitoring-run strong { color: #0f172a; }
@media (max-width: 900px) {
    .monitoring-hero,
    .monitoring-section__head {
        flex-direction: column;
        align-items: flex-start;
    }
    .monitoring-hero__actions {
        justify-content: flex-start;
    }
    .monitoring-filters {
        grid-template-columns: 1fr;
    }
    .monitoring-item {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .monitoring-item__side {
        border-top: 1px solid #e5e7eb;
        padding-top: 14px;
    }
    .monitoring-actions {
        grid-template-columns: 1fr;
    }
    .monitoring-run {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
@media (max-width: 640px) {
    .monitoring-hero,
    .monitoring-toolbar,
    .monitoring-section,
    .monitoring-runs {
        border-radius: 22px;
        padding: 18px;
    }
    .monitoring-hero .muted {
        font-size: 16px;
    }
    .monitoring-item h3 {
        font-size: 20px;
    }
}

/* Step50: monitoring editorial workflow */
.monitoring-item h3 a {
    color: inherit;
    text-decoration: none;
}
.monitoring-item h3 a:hover { color: #2563eb; }
.monitoring-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
    background: #f8fafc;
    color: #475569;
}
.monitoring-priority--important { background: #fff7ed; color: #c2410c; }
.monitoring-priority--urgent { background: #fee2e2; color: #b91c1c; }
.monitoring-priority--low { background: #f1f5f9; color: #64748b; }
.monitoring-status--published { background: #ede9fe; color: #6d28d9; }
.monitoring-detail-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.06;
    color: #0f172a;
}
.monitoring-back a {
    color: #475569;
    text-decoration: none;
    font-weight: 800;
}
.monitoring-back a:hover { color: #2563eb; }
.monitoring-meta--detail { margin-top: 18px; }
.monitoring-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.monitoring-detail-actions form { margin: 0; }
.monitoring-button--danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.workflow-step {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-weight: 900;
    color: #64748b;
    background: #f8fafc;
}
.workflow-step--done {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}
.monitoring-preview-text {
    margin-top: 14px;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.65;
}
.monitoring-preview-text p { margin: 0 0 14px; }
.monitoring-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.monitoring-next-grid > div {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    background: #fff;
}
.monitoring-next-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 18px;
}
.monitoring-next-grid p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}
.monitoring-next-grid .is-muted {
    opacity: .72;
    background: #f8fafc;
}
@media (max-width: 760px) {
    .workflow-steps,
    .monitoring-next-grid {
        grid-template-columns: 1fr;
    }
    .monitoring-detail-actions,
    .monitoring-detail-actions .monitoring-button,
    .monitoring-detail-actions form {
        width: 100%;
    }
    .monitoring-detail-actions .monitoring-button {
        justify-content: center;
    }
}
