/* The calendar and call-list review share a compact header/body/footer layout. */
.spark-calendar-review-backdrop { position:fixed; inset:0; background:rgba(28,26,23,.32); z-index:40; }
.spark-calendar-review { position:fixed; z-index:41; top:50%; left:50%; transform:translate(-50%,-50%); width:min(560px,calc(100vw - 24px)); max-height:calc(100dvh - 110px); display:flex; flex-direction:column; overflow:hidden; background:#fffaf1; color:#35263d; border:1px solid #ded5c9; border-radius:16px; box-shadow:0 16px 45px #21172926; }
.spark-calendar-review-heading { flex:none; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px; background:#35263d; color:#fffaf1; border-bottom:3px solid #d0af43; }
.spark-calendar-review-heading small { font-size:10px; letter-spacing:.1em; color:#e3c768; }
.spark-calendar-review-heading h2 { margin:10px 0 0; font-size:19px; line-height:1.3; }
.spark-calendar-review-heading button { width:32px; height:32px; border:0; background:transparent; color:inherit; font-size:26px; cursor:pointer; }
.spark-calendar-review-body { padding:22px; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.spark-calendar-event-summary h2 { display:none; }
.spark-calendar-review-footer { flex:none; padding:14px 22px 18px; border-top:1px solid #dfd4c4; background:#fffaf1; }
.spark-calendar-review-footer>small { display:block; color:#807284; margin-bottom:9px; font-size:11px; }
.spark-calendar-review-footer nav { display:flex; align-items:stretch; gap:8px; }
.spark-calendar-review-footer button { padding:11px 12px; border:1px solid #dfd4c4; border-radius:8px; background:#fffaf1; font-size:12px; color:#49394f; cursor:pointer; }
.spark-calendar-review-footer button.spark-calendar-call-next { flex:1; background:#176747; border-color:#176747; color:white; font-weight:700; }
.spark-calendar-call-next small { display:block; margin-top:4px; font-weight:400; font-size:11px; opacity:.85; }
.spark-calendar-review-footer button:disabled { opacity:.45; cursor:default; }
.spark-calendar-focus-summary { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px; margin:4px 0; }
.spark-calendar-focus-summary>small { padding:8px 6px 8px 0; color:#746a5b; }
.spark-calendar-focus-summary details { border:1px solid #ded5c9; background:#fffaf1; border-radius:8px; max-width:100%; }
.spark-calendar-focus-summary summary { padding:7px 11px; font-size:12px; cursor:pointer; }
.spark-calendar-focus-summary summary b { color:#856315; }
.spark-calendar-focus-summary summary span { color:#746a5b; }
.spark-calendar-focus-summary details>div { padding:10px 12px; display:grid; gap:7px; max-height:240px; overflow:auto; min-width:min(280px,70vw); }
.spark-calendar-focus-summary details button { text-align:left; background:white; border:1px solid #ded5c9; border-radius:5px; padding:7px; cursor:pointer; }
.spark-calendar-focus-summary details small { color:#746a5b; font-size:11px; max-width:280px; }
/* These controls remain reachable while reviewing appointments and contacts. */
[data-interface="redesigned"] > .tsp-contact-standing-tools { position:fixed!important; inset:auto 12px 12px auto!important; margin:0!important; z-index:11000!important; background:var(--spark-surface,#fffaf1); box-shadow:0 3px 14px #2117291f; }
.tsp-live-notes-panel { z-index:11002!important; }
@media(max-width:767px) { [data-interface="redesigned"] > .tsp-contact-standing-tools { bottom:calc(76px + env(safe-area-inset-bottom))!important; } .spark-calendar-review { top:44%; max-height:calc(100dvh - 180px); } .spark-calendar-review-heading,.spark-calendar-review-body { padding:16px; } }
.spark-calendar-review-heading-actions { display:flex; gap:8px; align-items:center; }
.spark-calendar-review-heading-actions button[aria-pressed] { border:1px solid #ad98b5; border-radius:50%; font-size:18px; font-weight:800; }
.spark-calendar-review-heading-actions button[aria-pressed="true"] { color:#35263d; background:#e3c768; border-color:#e3c768; }

/* A bright, chunky importance badge stays distinct from calling stars. */
.spark-important-icon,.spark-calendar-review-heading-actions button.spark-important-icon[aria-pressed] { display:inline-flex; align-items:center; justify-content:center; flex:none; width:34px; height:34px; padding:0; border:2px solid #a43d20; border-radius:10px; background:#fff0d2; color:#ba321c; font-family:Arial,sans-serif; font-size:27px; font-weight:900; line-height:1; box-shadow:0 2px 0 #a43d20; cursor:pointer; }
.spark-important-icon[aria-pressed="true"],.spark-calendar-review-heading-actions button.spark-important-icon[aria-pressed="true"] { background:#f85b36; color:white; border-color:#96331c; }
.spark-important-icon--small { width:16px; height:18px; margin-right:4px; border-width:1px; border-radius:4px; font-size:16px; box-shadow:0 1px 0 #a43d20; background:#f85b36; color:#fff; vertical-align:middle; }
.spark-important-icon:focus-visible { outline:3px solid #dfb64a; outline-offset:3px; }
.spark-calendar-call-notes { margin:12px 0; }
.spark-calendar-call-notes .tsp-oppsec { padding:12px; }
.spark-calendar-own { padding:10px 12px; border:2px solid #d0af43; border-radius:10px; background:#fff9e9; }
.spark-calendar-own>strong { display:block; font-size:13px; margin-bottom:7px; }
.spark-calendar-own>strong small { margin-left:6px; color:#75644b; font-size:11px; font-weight:400; }
.spark-calendar-own>div { display:flex; gap:7px; overflow-x:auto; padding-bottom:4px; }
.spark-calendar-own button { flex:none; max-width:250px; display:grid; gap:3px; text-align:left; background:#fffdf7; color:#35263d; border:1px solid #d6bf8b; border-radius:7px; padding:6px 9px; cursor:pointer; }
.spark-calendar-own button>small { color:#75644b; font-size:11px; }
.spark-calendar-own button>span { font-size:12px; font-weight:700; }
.spark-calendar-own { border-color:#242020; background:#f7f3e9; }
.spark-calendar-own>strong { color:#171514; font-weight:900; }
.spark-calendar-own button { border:2px solid #242020; color:#171514; background:#fffaf1; }
.spark-calendar-own button>span { font-weight:900; }
button.spark-calendar-own-event { background:#fff4cd!important; color:#171514!important; border:2px solid #242020!important; box-shadow:0 1px 0 #242020!important; }
button.spark-calendar-own-event>span { font-weight:900!important; }
