/* Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f5fb;
    color: #111827;
}

/* Layout wrapper */
.acv-wrapper {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header */
.acv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.acv-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acv-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #111827;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.acv-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.acv-title {
    font-weight: 600;
    font-size: 18px;
}

.acv-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* Header actions */
.acv-header-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.acv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.acv-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #f9fafb;
}

.acv-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Main card container */
.acv-main {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 24px 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

/* Hero section */
.acv-hero h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

.acv-hero p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

/* Cards grid */
.acv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.acv-card {
    display: block;
    background: #f9fafb;
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease-in-out;
}

.acv-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.acv-card p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7280;
}

.acv-card:hover {
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    border-color: #c7d2fe;
    transform: translateY(-2px);
}

/* Role pill */
.acv-pill {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #e0ecff;
    color: #1d4ed8;
}

/* Note section */
.acv-note {
    font-size: 12px;
    color: #6b7280;
    border-top: 1px dashed #e5e7eb;
    padding-top: 12px;
    margin-top: 6px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .acv-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .acv-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .acv-main {
        padding: 16px 16px 22px;
    }
}

/* Secondary button (Logout) */
.acv-btn-secondary {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #111827;
}

.acv-btn-secondary:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
}

/* Signed-in label in header */
.acv-signed-in {
    font-size: 13px;
    color: #6b7280;
}

.acv-signed-in strong {
    color: #111827;
    font-weight: 600;
}

/* Disabled / restricted cards */
.acv-card-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.acv-card-disabled:hover {
    transform: none;
    box-shadow: none;
    background: #f9fafb;
    border-color: #e5e7eb;
}

