/* dashboard.css — Home calendar/tasks/news layout, ported from EquiCopy inline <style> (light-themed; var() tokens carry Juris colors). */


    .users-card { background: var(--surface, #fff); border: 1px solid var(--border, #d4dff0); border-radius: 8px; padding: 18px 20px; }
    .users-toolbar { display:flex; gap:10px; align-items:center; margin-bottom: 14px; }
    .users-toolbar h2 { margin: 0; font-size: 1.1rem; color: var(--navy, #0d2b4e); }
    .users-toolbar .spacer { flex:1; }
    .users-btn { padding: 7px 14px; border: 1px solid var(--border, #d4dff0); border-radius: 6px; background: #fff; cursor: pointer; font-size: 0.85rem; color: var(--navy-light, #1a3a6e); font-weight: 500; }
    .users-btn:hover { background: #f4f8fd; }
    .users-btn.primary { background: var(--accent, #4f46e5); color: #fff; border-color: var(--accent, #4f46e5); }
    .users-btn.primary:hover { background: var(--accent-2, #6366f1); }
    .users-btn.danger { color: #c0392b; border-color: #f3c5bf; }
    .users-btn.danger:hover { background: #fdf3f2; }
    .users-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
    .users-table th { text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--border, #e2e8f0); color: var(--navy-light, #1a3a6e); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
    .users-table td { padding: 12px; border-bottom: 1px solid var(--border, #e2e8f0); vertical-align: top; }
    .users-table tr:hover { background: #fafbfd; }
    .users-tab-chips { display: flex; flex-wrap: wrap; gap: 4px; }
    .users-tab-chip { background: #eaf1fb; color: var(--navy-light, #1a3a6e); font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
    .users-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
    .users-modal-bg { position: fixed; inset: 0; background: rgba(13,43,78,0.45); display: flex; align-items: center; justify-content: center; z-index: 9999; }
    .users-modal { background: #fff; border-radius: 12px; padding: 26px 28px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
    .users-modal h3 { margin: 0 0 16px; font-size: 1.1rem; color: var(--navy, #0d2b4e); }
    .users-modal label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--navy-light, #1a3a6e); margin: 12px 0 5px; text-transform: uppercase; letter-spacing: 0.04em; }
    .users-modal input[type=text], .users-modal input[type=password], .users-modal select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border, #d4dff0); border-radius: 6px; font-size: 0.9rem; box-sizing: border-box; font-family: inherit; background: #fff; }
    .users-modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 6px; }
    .users-modal-tabs label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; cursor: pointer; }
    .users-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
    .users-err { color: #c0392b; font-size: 0.83rem; margin-top: 10px; min-height: 1.1em; }

    /* ── Dashboard / Home tab ───────────────────────────── */
    .dash { padding: 20px 28px 60px; max-width: 1400px; margin: 0 auto; }
    /* ── Header card ── */
    .dash-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; color: #fff; border-radius: 18px; padding: 24px 28px; box-shadow: var(--sh-lg, 0 18px 40px rgba(15,23,42,0.12)); position: relative; overflow: hidden; background: radial-gradient(120% 160% at 0% 0%, #4c1d95 0%, #2a1a63 46%, #1e1b4b 100%); }
    .dash-header::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,0.45), transparent 70%); pointer-events: none; }
    .dash-greeting { position: relative; z-index: 1; }
    .dash-greeting h1 { font-size: 1.55rem; color: #fff; margin: 0 0 5px; font-weight: 700; letter-spacing: -0.02em; }
    .dash-subtitle { display: flex; align-items: center; gap: 10px; color: #c9d6ea; font-size: 0.9rem; }
    .dash-position { font-weight: 500; }
    .dash-tag-chip { font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
    .dash-tag-chip[data-tag=""] { display: none; }
    .dash-tag-chip[data-tag="sales"],
    .dash-tag-chip[data-tag="caller"],
    .dash-tag-chip[data-tag="staff"],
    .dash-tag-chip[data-tag="manager"] { background: rgba(255,255,255,0.16); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    /* ── Stat tiles (glassy, on the gradient hero) ── */
    .dash-stat-tiles { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
    .dash-stat-tile { display: grid; grid-template-areas: "icon val" "icon lbl"; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 2px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 13px; padding: 12px 18px; min-width: 132px; cursor: pointer; transition: background 0.15s, transform 0.15s; }
    .dash-stat-tile:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
    .dst-icon { grid-area: icon; width: 22px; height: 22px; color: #fff; flex-shrink: 0; opacity: 0.9; }
    .dst-val { grid-area: val; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1; }
    .dst-lbl { grid-area: lbl; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #c9d6ea; }
    .dash-stat-tile[data-stat="tasks-overdue"] .dst-val { color: #fda4af; }
    .dash-stat-tile[data-stat="tasks-overdue"] .dst-icon { color: #fda4af; }
    /* ── Grid ──
       align-items: stretch makes the two columns end at the same height.
       The calendar card uses flex + overflow on its inner grid so it caps
       at the right column's natural height instead of forcing the right
       column to grow to match 6-row months. */
    .dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
    @media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
    .dash-side-col { display: flex; flex-direction: column; gap: 18px; }
    .dash-calendar { display: flex; flex-direction: column; min-height: 0; }
    /* ── Cards ── */
    .dash-card { background: #fff; border: none; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05); overflow: hidden; }
    .dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef1f6; }
    .dash-card-head h2 { font-size: 0.92rem; font-weight: 600; color: var(--navy, #0d2b4e); margin: 0; letter-spacing: 0.01em; }
    .dash-primary-btn { background: var(--accent, #4f46e5); color: #fff; border: none; border-radius: 10px; padding: 9px 16px; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.12s, box-shadow 0.15s; font-family: inherit; box-shadow: 0 4px 14px rgba(79,70,229,0.32); }
    .dash-primary-btn:hover { background: var(--accent-2, #6366f1); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,70,229,0.40); }
    /* Calendar cell + chip styles (shared by the dashboard month/week/day views) */
    .dash-cal-dowhead { padding: 8px 6px; font-size: 0.7rem; font-weight: 600; color: var(--text-muted, #6b7a90); text-transform: uppercase; letter-spacing: 0.06em; background: #f8fafd; border-bottom: 1px solid var(--border, #d4dff0); border-right: 1px solid var(--border, #d4dff0); text-align: center; }
    .dash-cal-dowhead:nth-child(7n) { border-right: none; }
    .dash-cal-cell { min-width: 0; padding: 5px 7px; border-right: 1px solid var(--border, #d4dff0); border-bottom: 1px solid var(--border, #d4dff0); cursor: pointer; transition: background 0.1s; position: relative; overflow: hidden; }
    .dash-cal-cell:nth-child(7n) { border-right: none; }
    .dash-cal-cell:hover { background: #f8fafd; }
    .dash-cal-cell.dim { background: #fafbfd; color: #b8c2d4; }
    .dash-cal-cell.today { background: #eef5ff; }
    .dash-cal-cell.today .dash-cal-day { color: var(--navy, #0d2b4e); font-weight: 700; }
    .dash-cal-day { font-size: 0.78rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
    .dash-cal-event { display: block; font-size: 0.72rem; line-height: 1.25; padding: 2px 6px; border-radius: 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
    .dash-cal-event[data-kind="meeting"]  { background: #eef0fe; color: #3730a3; }
    .dash-cal-event[data-kind="deadline"] { background: #ffe9ee; color: #9f1239; }
    .dash-cal-event[data-kind="personal"] { background: #e7f7f1; color: #0f766e; }
    .dash-cal-event[data-kind="other"]    { background: #f1f4fb; color: #334155; }
    /* External (subscribed) events — visually distinct so they don't look like local EquiCopy events */
    .dash-cal-event[data-source="external"] { background: #f3f0fa !important; color: #4a3a7a !important; border: 1px dashed #c4b8e0; }
    /* Tasks with due dates — amber so they pop as "this is a task, not a meeting" */
    .dash-cal-event[data-source="task"] { background: #fff5d6 !important; color: #7a5300 !important; border: 1px solid #f0d57a; }
    .dash-cal-event-more { font-size: 0.7rem; color: var(--text-muted, #6b7a90); padding-left: 6px; }
    /* Task list */
    .dash-task-tabs { display: flex; gap: 0; padding: 0 18px; border-bottom: 1px solid var(--border, #d4dff0); background: #fafbfd; }
    .dash-task-tab { background: transparent; border: none; border-bottom: 2px solid transparent; padding: 9px 12px; font-size: 0.82rem; color: var(--text-muted, #6b7a90); cursor: pointer; font-weight: 500; font-family: inherit; }
    .dash-task-tab.active { color: var(--navy, #0d2b4e); border-bottom-color: var(--navy, #0d2b4e); font-weight: 600; }
    .dash-task-tab[hidden] { display: none; }
    .dash-task-list { padding: 6px 0; max-height: 200px; overflow-y: auto; }
    .dash-task-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 18px; border-bottom: 1px solid #eef2f8; transition: background 0.1s; }
    .dash-task-row:last-child { border-bottom: none; }
    .dash-task-row:hover { background: #f8fafd; }
    .dash-task-row.done .dash-task-title { text-decoration: line-through; color: var(--text-muted, #6b7a90); }
    .dash-task-check { margin-top: 3px; cursor: pointer; flex-shrink: 0; width: 16px; height: 16px; }
    .dash-task-body { flex: 1; min-width: 0; }
    .dash-task-title { font-size: 0.86rem; color: var(--text); font-weight: 500; }
    .dash-task-meta { display: flex; gap: 8px; font-size: 0.72rem; color: var(--text-muted, #6b7a90); margin-top: 3px; flex-wrap: wrap; align-items: center; }
    .dash-task-meta .due { font-weight: 500; }
    .dash-task-meta .due.overdue { color: #c0392b; font-weight: 600; }
    .dash-task-meta .due.soon { color: #b87800; font-weight: 600; }
    .dash-task-assignee { background: #eef2f8; padding: 1px 7px; border-radius: 9px; }
    .dash-task-actions { opacity: 0; transition: opacity 0.15s; display: flex; gap: 4px; }
    .dash-task-row:hover .dash-task-actions { opacity: 1; }
    .dash-task-empty { padding: 28px 18px; text-align: center; color: var(--text-muted, #6b7a90); font-style: italic; font-size: 0.85rem; }
    .dash-task-divider { padding: 10px 18px 4px; font-size: 0.7rem; font-weight: 600; color: var(--text-muted, #6b7a90); text-transform: uppercase; letter-spacing: 0.05em; }
    /* Activity */
    .dash-activity-list { padding: 4px 0; max-height: 360px; overflow-y: auto; }
    .dash-activity-row { display: flex; gap: 10px; padding: 8px 18px; font-size: 0.82rem; border-bottom: 1px solid #eef2f8; }
    .dash-activity-row:last-child { border-bottom: none; }
    .dash-activity-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; background: var(--navy-light, #1a3a6e); }
    .dash-activity-dot.event    { background: #0b3d91; }
    .dash-activity-dot.task     { background: #1f5f3a; }
    .dash-activity-dot.completed{ background: #6b7a90; }
    .dash-activity-text { flex: 1; min-width: 0; color: var(--text); }
    .dash-activity-when { font-size: 0.72rem; color: var(--text-muted, #6b7a90); margin-top: 1px; }
    .dash-activity-empty { padding: 22px 18px; text-align: center; color: var(--text-muted, #6b7a90); font-style: italic; font-size: 0.82rem; }
    /* News widget */
    .dash-news { margin-top: 0; }
    .dash-news-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; background: #e8f0fb; color: #1a5fa8; border-radius: 4px; padding: 2px 7px; }
    .dash-news-body { padding: 4px 18px 16px; max-height: 200px; overflow-y: auto; }
    .dash-news-item { padding: 10px 0; border-top: 1px solid var(--border, #d4dff0); }
    .dash-news-item:first-child { padding-top: 4px; border-top: none; }
    .dash-news-item:last-child { padding-bottom: 0; }
    .dash-news-headline { display: block; font-size: 0.93rem; font-weight: 600; color: var(--navy, #0d2b4e); text-decoration: none; line-height: 1.4; margin-bottom: 4px; transition: color 0.12s; }
    .dash-news-headline::after { content: '↗'; font-size: 0.8em; margin-left: 4px; color: var(--accent, #4f46e5); opacity: 0; transition: opacity 0.12s; }
    .dash-news-headline:hover { color: var(--accent, #4f46e5); text-decoration: underline; }
    .dash-news-headline:hover::after { opacity: 0.75; }
    .dash-news-meta { font-size: 0.72rem; color: var(--text-muted, #6b7a90); margin-bottom: 6px; }
    .dash-news-snippet { font-size: 0.82rem; color: var(--text, #2b3547); line-height: 1.55; margin: 0; }
    .dash-news-err { font-size: 0.82rem; color: #b0390a; font-style: italic; }
    /* Generic modal (shared by event + task forms) */
    .dash-modal-bg { position: fixed; inset: 0; background: rgba(13,43,78,0.45); display: flex; align-items: center; justify-content: center; z-index: 9999; }
    .dash-modal { background: #fff; border-radius: 12px; padding: 24px 26px; width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
    .dash-modal h3 { margin: 0 0 16px; font-size: 1.05rem; color: var(--navy, #0d2b4e); }
    .dash-modal label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--navy-light, #1a3a6e); margin: 12px 0 5px; text-transform: uppercase; letter-spacing: 0.04em; }
    .dash-modal input, .dash-modal select, .dash-modal textarea { width: 100%; padding: 8px 11px; border: 1.5px solid var(--border, #d4dff0); border-radius: 6px; font-size: 0.88rem; box-sizing: border-box; font-family: inherit; background: #fff; }
    .dash-modal textarea { resize: vertical; min-height: 60px; }
    .dash-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    /* Sticky footer so Create/Save is always visible while the modal body scrolls */
    .dash-modal-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; position: sticky; bottom: -24px; background: #fff; padding: 12px 0 0; border-top: 1px solid #eef2f7; z-index: 2; }
    .dash-modal-actions .right { display: flex; gap: 10px; }
    /* Checkboxes must not inherit the full-width input rule (fixes the floating "All-day" box) */
    .dash-modal input[type="checkbox"] { width: auto; margin: 0; }
    .dash-modal-err { color: #c0392b; font-size: 0.82rem; margin-top: 10px; min-height: 1.1em; }
    /* Invitee chip picker (replaces the native multi-select listbox) */
    .evm-invitee-picker { border: 1.5px solid var(--border, #d4dff0); border-radius: 6px; padding: 6px; }
    .evm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
    .evm-chips:empty { display: none; }
    .evm-chip { display: inline-flex; align-items: center; gap: 5px; background: #eaf3ff; color: #0b3d91; border: 1px solid #bcd6f5; border-radius: 13px; padding: 2px 6px 2px 9px; font-size: 0.78rem; }
    .evm-chip button { border: none; background: none; color: #0b3d91; cursor: pointer; font-size: 0.95rem; line-height: 1; padding: 0; }
    .evm-invitee-search { width: 100%; box-sizing: border-box; padding: 6px 9px; border: 1px solid var(--border, #d4dff0); border-radius: 5px; font-size: 0.84rem; font-family: inherit; }
    .evm-invitee-list { max-height: 132px; overflow-y: auto; margin-top: 6px; }
    .evm-invitee-row { display: flex; align-items: center; gap: 8px; padding: 4px 5px; border-radius: 5px; cursor: pointer; font-size: 0.86rem; }
    .evm-invitee-row:hover { background: #f3f7fd; }
    .evm-invitee-row .evm-avatar { width: 22px; height: 22px; border-radius: 50%; background: #1e40af; color: #fff; font-size: 0.66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
    .evm-invitee-row.checked { background: #eef5ff; }
    .evm-invitee-empty { font-size: 0.8rem; color: #94a3b8; padding: 8px 5px; }
    /* Recurring-event scope selector ("This event" vs "Entire series") */
    .evm-scope { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f6f9ff; border: 1px solid #dbe7fb; border-radius: 8px; padding: 8px 10px; margin: 4px 0 6px; flex-wrap: wrap; }
    .evm-scope-label { font-size: 0.78rem; color: #1a3a6e; font-weight: 600; }
    .evm-scope-btns { display: inline-flex; border: 1px solid #c3d6f0; border-radius: 7px; overflow: hidden; }
    .evm-scope-btn { border: none; background: #fff; color: #475569; font-size: 0.78rem; padding: 4px 11px; cursor: pointer; font-family: inherit; }
    .evm-scope-btn.active { background: #1e40af; color: #fff; }
    /* Stronger "today" marker — filled navy badge on the date number */
    .dash-cal-cell.today { background: var(--accent-soft, #eef0fe); box-shadow: inset 0 0 0 1.5px var(--accent, #4f46e5); }
    .dash-cal-cell.today .dash-cal-day { background: var(--accent, #4f46e5); color: #fff !important; border-radius: 50%; width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; }
    /* Day-detail popover (opens from "+N more" / the day number) */
    .dash-day-pop { background: #fff; border-radius: 12px; padding: 16px 18px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.22); max-height: 80vh; overflow-y: auto; }
    .dash-day-pop h3 { margin: 0 0 12px; font-size: 1rem; color: var(--navy, #0d2b4e); }
    .dash-day-pop-event { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 7px; cursor: pointer; margin-bottom: 4px; border: 1px solid #eef2f7; }
    .dash-day-pop-event:hover { background: #f6f9fd; }
    .dash-day-pop-time { font-size: 0.74rem; font-weight: 700; color: var(--navy-light, #1a3a6e); white-space: nowrap; min-width: 52px; }
    .dash-day-pop-title { font-size: 0.86rem; color: #1f2937; }
    .dash-day-pop-empty { font-size: 0.84rem; color: #94a3b8; padding: 6px 2px 12px; }
    .dash-btn { padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border, #d4dff0); background: #fff; font-size: 0.84rem; cursor: pointer; font-family: inherit; color: var(--navy-light, #1a3a6e); font-weight: 500; }
    .dash-btn:hover { background: #f3f6fb; }
    .dash-btn.primary { background: var(--accent, #4f46e5); color: #fff; border-color: var(--accent, #4f46e5); font-weight: 600; }
    .dash-btn.primary:hover { background: var(--accent-2, #6366f1); }
    .dash-btn.danger { color: #c0392b; }
    .dash-btn.danger:hover { background: #fdf0f0; }

    /* ── Settings modal ───────────────────────────────────── */
    #header-settings-btn:hover { background: #f3f6fb; }
    .settings-modal-bg { position: fixed; inset: 0; background: rgba(13,43,78,0.45); display: flex; align-items: center; justify-content: center; z-index: 9999; }
    .settings-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
    .settings-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border, #d4dff0); position: sticky; top: 0; background: #fff; z-index: 1; }
    .settings-modal-head h3 { margin: 0; font-size: 1.05rem; color: var(--navy, #0d2b4e); }
    .settings-close-btn { background: transparent; border: none; font-size: 1.4rem; line-height: 1; color: var(--text-muted, #6b7a90); cursor: pointer; padding: 0 4px; }
    .settings-section { padding: 20px 24px; border-bottom: 1px solid var(--border, #d4dff0); }
    .settings-section:last-child { border-bottom: none; }
    .settings-section h4 { font-size: 0.78rem; font-weight: 700; color: var(--navy, #0d2b4e); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.06em; }
    .settings-section .section-desc { font-size: 0.83rem; color: var(--text-muted, #6b7a90); margin: 0 0 14px; line-height: 1.4; }
    .settings-modal label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--navy-light, #1a3a6e); margin: 12px 0 5px; text-transform: uppercase; letter-spacing: 0.04em; }
    .settings-modal input { width: 100%; padding: 8px 11px; border: 1.5px solid var(--border, #d4dff0); border-radius: 6px; font-size: 0.88rem; box-sizing: border-box; font-family: inherit; background: #fff; }
    .settings-row-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
    .settings-msg { font-size: 0.83rem; margin-top: 10px; min-height: 1.1em; }
    .settings-msg.error { color: #c0392b; }
    .settings-msg.success { color: #1f5f3a; }
    /* Calendar sync section */
    .cal-sync-block { padding: 14px; border: 1px solid var(--border, #d4dff0); border-radius: 10px; background: #fafbfd; margin-top: 12px; }
    .cal-sync-block-title { font-size: 0.95rem; font-weight: 700; color: var(--navy, #0d2b4e); margin-bottom: 4px; }
    .cal-sync-block-desc { font-size: 0.8rem; color: var(--text-muted, #6b7a90); line-height: 1.45; margin-bottom: 10px; }
    .cal-feed-row { display: flex; gap: 8px; align-items: center; }
    .cal-feed-row input { flex: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; background: #fff; }
    .cal-feed-row button { flex-shrink: 0; padding: 8px 14px; }
    .cal-helper-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
    .cal-helper-link { font-size: 0.83rem; color: var(--navy, #0d2b4e); text-decoration: none; padding: 6px 10px; background: #eaf2fd; border-radius: 6px; border: 1px solid #cfddf2; }
    .cal-helper-link:hover { background: #dcebfb; }
    .cal-helper-btn { font-size: 0.83rem !important; padding: 6px 12px !important; background: transparent; border: 1px solid var(--border, #d4dff0); color: var(--navy, #0d2b4e); }
    .cal-instructions { margin-top: 12px; padding: 12px; border-radius: 8px; background: #fff; border: 1px solid var(--border, #d4dff0); }
    .cal-prov-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; border-bottom: 1px solid var(--border, #d4dff0); padding-bottom: 8px; }
    .cal-prov-tab { background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted, #6b7a90); cursor: pointer; font-family: inherit; }
    .cal-prov-tab:hover { background: #f3f6fb; color: var(--navy, #0d2b4e); }
    .cal-prov-tab.active { background: var(--navy, #0d2b4e); color: #fff; }
    .cal-prov-body { font-size: 0.85rem; color: var(--text, #1f2a44); line-height: 1.55; }
    .cal-prov-body ol { padding-left: 22px; margin: 6px 0; }
    .cal-prov-body li { margin-bottom: 6px; }
    .cal-prov-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: #f3f6fb; padding: 1px 4px; border-radius: 3px; }
    .cal-prov-body a { color: var(--navy, #0d2b4e); }
    .cal-prov-tip { font-size: 0.78rem; color: var(--text-muted, #6b7a90); padding: 8px 10px; background: #fffbe6; border: 1px solid #ffe58f; border-radius: 6px; margin-top: 8px; }
    .cal-danger { margin-top: 12px; font-size: 0.82rem; color: var(--text-muted, #6b7a90); }
    .cal-danger summary { cursor: pointer; padding: 4px 0; }
    .cal-danger p { margin: 8px 0; line-height: 1.4; }
    .cal-sync-status { font-size: 0.78rem; color: var(--text-muted, #6b7a90); margin-top: 8px; font-style: italic; }
    .cal-sync-status.error { color: #c0392b; font-style: normal; }
    @media (max-width: 640px) {
      .cal-feed-row { flex-direction: column; align-items: stretch; }
      .cal-feed-row button { width: 100%; }
      .cal-prov-tabs { gap: 6px; }
      .cal-prov-tab { flex: 1; min-width: 70px; padding: 8px 6px; font-size: 0.78rem; }
    }
  
