/* ── Google Calendar section — clean monochrome design ── */

[data-settings-section="settings-google-calendar"] {
    --gcal-card-bg: #ffffff;
    --gcal-border: #e2e2e2;
    --gcal-border-light: #eeeeee;
    --gcal-text-primary: #111111;
    --gcal-text-secondary: #555555;
    --gcal-text-muted: #999999;
    --gcal-hover-bg: #f7f7f7;
}

/* ── Wrapper ── */
.gcal-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 0 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ── Page heading ── */
.gcal-heading {
    font-size: 1.625rem;
    font-weight: 650;
    color: var(--gcal-text-primary);
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 0.375rem;
}
.gcal-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gcal-text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* ── Section header row ── */
.gcal-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0 1rem;
    border-bottom: 1px solid var(--gcal-border);
    margin-bottom: 0.25rem;
}
.gcal-plan-id {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gcal-plan-icon {
    color: var(--gcal-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gcal-plan-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gcal-text-primary);
    letter-spacing: -0.01em;
}
.gcal-plan-cycle {
    font-size: 0.8125rem;
    color: var(--gcal-text-muted);
    margin-top: 0.125rem;
}

/* ── Content section ── */
.gcal-section {
    padding: 1.5rem 0;
}

/* ── Status row ── */
.gcal-status-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gcal-border-light);
}
.gcal-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gcal-dot-green {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.gcal-dot-gray {
    background: #ccc;
    box-shadow: 0 0 0 3px rgba(204, 204, 204, 0.2);
}
.gcal-status-info {
    flex: 1;
    min-width: 0;
}
.gcal-status-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gcal-text-primary);
}
.gcal-status-detail {
    font-size: 0.8125rem;
    color: var(--gcal-text-muted);
    margin-top: 0.125rem;
}

/* ── Disconnect button ── */
.gcal-btn-disconnect {
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #dc2626;
    background: transparent;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.gcal-btn-disconnect:hover {
    background: #fef2f2;
    border-color: #f87171;
}

/* ── Feature list (connected state) ── */
.gcal-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.25rem 0 0.5rem;
}
.gcal-feature-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--gcal-text-secondary);
    line-height: 1.5;
}
.gcal-feature-item svg {
    color: var(--gcal-text-primary);
    flex-shrink: 0;
}

/* ── Steps (not-connected state) ── */
.gcal-steps {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gcal-border-light);
    margin-bottom: 1.5rem;
}
.gcal-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--gcal-text-secondary);
    line-height: 1.5;
}
.gcal-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gcal-text-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Connect button ── */
.gcal-btn-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 550;
    color: #fff;
    background: var(--gcal-text-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: -0.01em;
}
.gcal-btn-connect:hover {
    background: #333;
}
.gcal-btn-connect svg {
    color: #fff;
}

/* ── Disclaimer ── */
.gcal-disclaimer {
    font-size: 0.75rem;
    color: var(--gcal-text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .gcal-wrap {
        padding: 1.5rem 0.25rem 1.5rem;
    }
    .gcal-heading {
        font-size: 1.375rem;
    }
    .gcal-plan-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .gcal-status-row {
        flex-wrap: wrap;
    }
}
