/* Dashboard — dark UCP home, not marketing-page captions */

.gd-main.gd-dash {
    max-width: none;
    width: 100%;
}

/* Drop duplicate page chrome on this view */
.gd-dash .gd-page-header {
    display: none;
}

.gd-dash-home {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.gd-dash-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.gd-dash-greet h1 {
    margin: 0 0 0.35rem;
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary, #f4f5f7);
    text-transform: none;
}

.gd-dash-greet p {
    margin: 0;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.95rem;
}

.gd-dash-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.7rem;
    background: var(--bg-surface, #12151c);
    border-radius: 6px;
    color: var(--text-muted, #5b6270);
    font-size: 0.82rem;
    font-weight: 500;
}

.gd-dash-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5b6270;
}

.gd-dash-status.is-live {
    color: var(--text-secondary, #9ca3af);
}

.gd-dash-status.is-live .gd-dash-status__dot {
    background: var(--status-good, #34d399);
}

.gd-dash-status strong {
    color: var(--text-primary, #f4f5f7);
    font-weight: 600;
}

.gd-dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.gd-dash-metric {
    padding: 0.85rem 0.95rem;
    background: var(--bg-surface, #12151c);
    border-radius: 8px;
}

.gd-dash-metric__label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-muted, #5b6270);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-dash-metric__value {
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text-primary, #f4f5f7);
    text-transform: none;
}

.gd-dash-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.gd-dash-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--bg-surface-2, #171b24);
    border-radius: 8px;
    color: var(--text-primary, #f4f5f7);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.gd-dash-action:hover {
    background: #1d2330;
    color: #fff;
    text-decoration: none;
}

.gd-dash-action i {
    color: var(--ui-action, #0088cc);
    font-size: 0.85rem;
}

.gd-dash-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.gd-dash-block__head h2 {
    margin: 0;
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text-primary, #f4f5f7);
    text-transform: none;
}

.gd-dash-block__head p {
    margin: 0.2rem 0 0;
    color: var(--text-muted, #5b6270);
    font-size: 0.85rem;
}

.gd-dash-chars {
    display: grid;
    gap: 0.65rem;
}

.gd-char-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.95rem 1rem;
    background: var(--bg-surface, #12151c);
    border-radius: 10px;
    transition: background 0.15s ease;
}

.gd-char-card:hover {
    background: var(--bg-surface-2, #171b24);
}

.gd-char-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e2a38, #121820);
    color: #7ec8e3;
    font-size: 1.05rem;
    font-weight: 700;
}

.gd-char-card__name {
    margin: 0 0 0.2rem;
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #fff;
    text-transform: none;
}

.gd-char-card__meta {
    margin: 0;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.84rem;
}

.gd-char-card__meta span + span::before {
    content: "·";
    margin: 0 0.4rem;
    color: var(--text-muted, #5b6270);
}

.gd-char-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
    background: var(--ui-action, #0088cc);
    border: 0;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.gd-char-open:hover {
    background: var(--ui-action-hover, #0070a8);
    color: #fff;
    text-decoration: none;
}

.gd-char-empty-panel {
    padding: 1.25rem 1rem;
    background: var(--bg-surface, #12151c);
    border-radius: 10px;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.92rem;
}

.gd-dash-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    padding: 1rem 1.05rem;
    background: var(--bg-surface, #12151c);
    border-radius: 10px;
}

.gd-dash-foot__copy {
    min-width: 0;
}

.gd-dash-foot__copy strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text-primary, #f4f5f7);
    font-size: 0.95rem;
    font-weight: 650;
}

.gd-dash-foot__copy span {
    color: var(--text-muted, #5b6270);
    font-size: 0.85rem;
}

.gd-dash-foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gd-dash-foot__links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.gd-dash-foot__links a.primary {
    background: var(--ui-action, #0088cc);
    color: #fff;
}

.gd-dash-foot__links a.primary:hover {
    background: var(--ui-action-hover, #0070a8);
    color: #fff;
}

.gd-dash-foot__links a.secondary {
    background: transparent;
    color: var(--text-secondary, #9ca3af);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.gd-dash-foot__links a.secondary:hover {
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.gd-referral-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: min(100%, 22rem);
    flex: 1 1 16rem;
}

.gd-referral-strip .form-control {
    flex: 1;
    min-width: 12rem;
    background: var(--bg-inset, #0e1015);
    border-color: var(--border-subtle, rgba(255, 255, 255, 0.08));
    color: var(--text-secondary, #9ca3af);
}

#referral-invite-panel {
    margin: 0 0 1.5rem;
}

#ucp-referral-card {
    margin: 0;
}

@media (max-width: 900px) {
    .gd-dash-metrics,
    .gd-dash-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .gd-dash-metrics,
    .gd-dash-actions {
        grid-template-columns: 1fr;
    }

    .gd-char-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .gd-char-open {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
}
