.workspace-board {
    display: grid;
    gap: 18px;
}

.board-hero,
.board-panel,
.board-kpi,
.board-quick-actions {
    border: 1px solid rgba(215, 200, 181, 0.9);
    background: rgba(255, 252, 247, 0.9);
    box-shadow: 0 22px 50px rgba(35, 28, 19, 0.08);
}

.board-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 12%, rgba(191, 75, 44, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(255, 252, 247, 0.95), rgba(244, 233, 218, 0.92));
}

.board-eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.board-hero h2,
.board-panel h3 {
    margin: 0;
    color: var(--ink);
}

.board-hero h2 {
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 0.95;
    font-family: var(--display-font);
}

.board-hero p,
.board-panel p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.board-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.board-kpi {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 96px;
    border-radius: 10px;
    overflow: hidden;
}

.board-kpi-icon {
    display: grid;
    place-items: center;
    color: white;
    font-size: 2rem;
    font-weight: 900;
}

.board-kpi.green .board-kpi-icon { background: #45bd76; }
.board-kpi.indigo .board-kpi-icon { background: #5263a1; }
.board-kpi.blue .board-kpi-icon { background: #338bd3; }
.board-kpi.red .board-kpi-icon { background: #f2646d; }

.board-kpi div:last-child {
    padding: 14px;
}

.board-kpi span,
.board-kpi small {
    display: block;
    color: var(--muted);
}

.board-kpi strong {
    display: block;
    margin: 4px 0;
    color: var(--ink);
    font-size: 2rem;
    line-height: 1;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.board-panel {
    border-radius: 10px;
    overflow: hidden;
}

.board-panel-wide {
    grid-column: span 2;
}

.board-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(215, 200, 181, 0.78);
}

.board-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.board-legend span::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 99px;
}

.board-legend .users::before { background: #79c69f; }
.board-legend .photos::before { background: #4f9ee8; }
.board-legend .messages::before { background: #dd7750; }

.board-chart {
    display: grid;
    grid-template-columns: repeat(14, minmax(24px, 1fr));
    gap: 8px;
    min-height: 270px;
    padding: 18px;
    background:
        linear-gradient(rgba(28, 36, 48, 0.06) 1px, transparent 1px),
        #ffffff;
    background-size: 100% 48px;
}

.board-chart-day {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 8px;
    min-width: 0;
}

.board-chart-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3px;
    min-height: 210px;
}

.board-chart-bars span {
    width: 8px;
    min-height: 4px;
    border-radius: 999px 999px 0 0;
}

.board-chart-bars .users { background: rgba(121, 198, 159, 0.8); }
.board-chart-bars .photos { background: rgba(79, 158, 232, 0.82); }
.board-chart-bars .messages { background: rgba(221, 119, 80, 0.78); }

.board-chart-day small {
    color: #7a8494;
    font-size: 0.72rem;
    text-align: center;
    transform: rotate(-42deg);
    transform-origin: center;
    white-space: nowrap;
}

.board-list {
    display: grid;
}

.board-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(215, 200, 181, 0.68);
}

.board-list div:last-child {
    border-bottom: 0;
}

.board-list span {
    color: var(--muted);
}

.board-list strong {
    color: var(--ink);
    text-align: right;
}

.board-list.compact strong {
    max-width: 64%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-mini-action {
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: rgba(21, 48, 75, 0.06);
    border: 1px solid rgba(21, 48, 75, 0.12);
    font-weight: 800;
    font-size: 0.84rem;
}

.board-profile-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    padding: 18px;
}

.board-profile {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(215, 200, 181, 0.74);
}

.board-profile img,
.board-profile > span {
    width: 100%;
    aspect-ratio: 1.08;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--navy), var(--accent));
}

.board-profile > span {
    display: grid;
    place-items: center;
    color: white;
    font-size: 2rem;
    font-weight: 900;
}

.board-profile strong {
    color: var(--ink);
}

.board-profile small {
    color: var(--muted);
}

.board-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px;
    border-radius: 18px;
}

.board-quick-actions a {
    padding: 10px 13px;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(215, 200, 181, 0.86);
    color: var(--ink);
    font-weight: 800;
}

@media (max-width: 1120px) {
    .board-kpis,
    .board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .board-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .board-kpis,
    .board-grid,
    .board-panel-wide {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .board-chart {
        overflow-x: auto;
        grid-template-columns: repeat(14, 42px);
    }
}
