/* Karen OS: Calendar (calendar.js). Google Calendar's look, scoped to #gcroot. Like the Inbox, this page is a
   full-width exception to the Leads-page template. Colours of events come from each calendar (--c, --ink via CSSOM). */
#v-diary { padding: 0; }
.gc {
  --gc-bg: #F8FAFD; --gc-card: #FFFFFF; --gc-line: #DDE3EA; --gc-line2: #EEF1F5; --gc-ink: #1F1F1F; --gc-mute: #444746; --gc-soft: #70757A;
  --gc-blue: #0B57D0; --gc-blue-bg: #D3E3FD; --gc-hover: #F1F3F4; --gc-red: #EA4335;
  display: flex; flex-direction: column; height: calc(100vh - 0px); min-height: 520px; background: var(--gc-bg); color: var(--gc-ink);
  font-family: "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.gc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.gc-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 20px; flex: none; }
.gc-top h1 { margin: 0 0 0 8px; font-size: 22px; font-weight: 400; color: var(--gc-ink); letter-spacing: 0; white-space: nowrap; }
.gc-sp { flex: 1; }
.gc-btn { height: 40px; padding: 0 22px; border: 1px solid #747775; border-radius: 20px; background: transparent; color: var(--gc-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.gc-btn:hover { background: var(--gc-hover); }
.gc-nav { display: inline-flex; }
.gc-ib { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--gc-mute); cursor: pointer; text-decoration: none; }
.gc-ib:hover, .gc-ib:focus-visible { background: var(--gc-hover); }
.gc-ib.sm { width: 28px; height: 28px; }
.gc-ib.sm svg { width: 16px; height: 16px; }
.gc-seg { display: inline-flex; border: 1px solid #747775; border-radius: 20px; overflow: hidden; }
.gc-seg button { height: 38px; padding: 0 16px; border: 0; background: transparent; color: var(--gc-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.gc-seg button + button { border-left: 1px solid #747775; }
.gc-seg button.on { background: var(--gc-blue-bg); color: #041E49; }

/* Body: side panel + main card */
.gc-body { flex: 1; min-height: 0; display: flex; gap: 0; padding: 0 16px 16px 0; }
.gc-side { width: 256px; flex: none; overflow-y: auto; padding: 4px 16px 16px 20px; }
.gc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--gc-card); border-radius: 24px; overflow: hidden; }

/* Mini month */
.gc-mh { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 6px 6px; font-size: 14px; }
.gc-mh b { font-weight: 500; }
.gc-mg { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: 2px; }
.gc-mg i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--gc-mute); line-height: 24px; }
.gc-mg button { width: 28px; height: 28px; margin: 0 auto; border: 0; border-radius: 50%; background: transparent; color: var(--gc-ink); font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; }
.gc-mg button:hover { background: var(--gc-hover); }
.gc-mg button.out { color: var(--gc-soft); font-weight: 400; }
.gc-mg button.inwk { background: var(--gc-blue-bg); border-radius: 0; }
.gc-mg button.sel { background: var(--gc-blue-bg); color: #041E49; }
.gc-mg button.today { background: var(--gc-blue); color: #FFFFFF; }

/* My calendars */
.gc-cals { margin-top: 20px; }
.gc-cals h2 { margin: 0 0 6px 6px; font-size: 16px; font-weight: 500; color: var(--gc-ink); }
.gc-cal { position: relative; display: flex; align-items: center; gap: 12px; min-height: 32px; padding: 0 6px; border-radius: 16px; font-size: 14px; color: var(--gc-ink); cursor: pointer; }
.gc-cal:hover { background: var(--gc-hover); }
.gc-cal input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.gc-cal i { flex: none; width: 18px; height: 18px; border: 2px solid var(--c); border-radius: 3px; box-sizing: border-box; display: grid; place-items: center; }
.gc-cal input:checked + i { background: var(--c); }
.gc-cal input:checked + i::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gc-cal input:focus-visible + i { outline: 2px solid var(--gc-blue); outline-offset: 2px; }
.gc-cal span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-none { font-size: 13px; color: var(--gc-soft); }

/* Week / day grid */
.gc-scroll { flex: 1; min-height: 0; overflow: auto; position: relative; }
.gc-inner { min-width: 100%; }
.gc-sticky { position: sticky; top: 0; z-index: 25; background: var(--gc-card); }
.gc-headrow, .gc-adrow { display: grid; grid-template-columns: 64px repeat(var(--n), minmax(0, 1fr)); }
.gc-headrow { padding-top: 8px; }
.gc-adrow { border-bottom: 1px solid var(--gc-line); }
.gc-gut { display: flex; align-items: flex-end; justify-content: center; }
.gc-gut small { font-size: 10px; color: var(--gc-soft); padding-bottom: 4px; }
.gc-dh { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 6px; border-left: 2px solid #C5CED8; }
.gc-dh span { font-size: 11px; font-weight: 500; color: var(--gc-mute); letter-spacing: 0.8px; }
.gc-dh button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: var(--gc-ink); font: inherit; font-size: 24px; cursor: pointer; }
.gc-dh button:hover { background: var(--gc-hover); }
.gc-dh.today span { color: var(--gc-blue); }
.gc-dh.today button { background: var(--gc-blue); color: #FFFFFF; }
.gc-ad { min-height: 24px; padding: 2px 6px 4px 2px; border-left: 2px solid #C5CED8; display: flex; flex-direction: column; gap: 2px; }
.gc-chip { display: block; width: 100%; padding: 1px 8px; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--c) 76%, #FFFFFF); color: #17211C; font: inherit; font-size: 12px; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.gc-grid { position: relative; display: grid; grid-template-columns: 64px 1fr; }
.gc-lines { grid-column: 1 / -1; grid-row: 1; }
.gc-hr { height: 48px; border-top: 1px solid var(--gc-line2); margin-left: 56px; position: relative; }
.gc-hr:first-child { border-top: 0; }
.gc-hr span { position: absolute; left: -54px; top: -8px; width: 44px; text-align: right; font-size: 10px; color: var(--gc-soft); }
.gc-cols { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.gc-col { position: relative; border-left: 2px solid #C5CED8; height: 1152px; background: #FFFFFF; }
.gc-col:nth-child(even) { background: #F8FAFC; }
.gc-col.today { background: #F1F6FD; }
.gc-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--gc-red); z-index: 20; pointer-events: none; }
.gc-now::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--gc-red); }
.gc-loading { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 16px; background: #E9EEF6; font-size: 13px; color: var(--gc-mute); z-index: 30; }

/* Events */
/* Like Google: a pale tint of the person's colour with dark words, and titles that wrap instead of being cut off (Finn, 6 Nov 2026) */
.gc-ev { display: block; position: absolute; box-sizing: border-box; padding: 3px 6px 2px; border-radius: 5px; background: color-mix(in srgb, var(--c) 76%, #FFFFFF);
  color: #17211C; border: 1px solid color-mix(in srgb, var(--c) 88%, #26352D); font-size: 12px; line-height: 15px; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.gc-ev b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.gc-ev span { display: block; color: inherit; opacity: .96; overflow-wrap: anywhere; }
.gc-ev.short b, .gc-ev.short span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-ev.over { box-shadow: -1px 0 0 #FFFFFF; }
.gc-wknd { display: flex; align-items: center; gap: 10px; margin: 14px 6px 0; font-size: 14px; color: var(--gc-ink); cursor: pointer; }
.gc-wknd input { width: 16px; height: 16px; margin: 0; accent-color: var(--gc-blue); }
.gc-ev.short { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.gc-ev.short b, .gc-ev.short span { display: inline; }
.gc-ev.short span { white-space: pre; }
.gc-ev:hover { box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15); z-index: 15; }
.gc-ev:focus-visible { outline: 2px solid var(--gc-blue); outline-offset: 1px; }
.gc-ev.gc-mv { cursor: grab; }
.gc-ev.lifting, .gc-ev.sizing { box-shadow: 0 6px 10px rgba(60, 64, 67, 0.3), 0 2px 3px rgba(60, 64, 67, 0.3); z-index: 40; opacity: 0.92; cursor: grabbing; }
.gc-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
body.gc-dragging { cursor: grabbing; user-select: none; }

/* Month */
.gc-month { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.gc-mhead { display: grid; grid-template-columns: repeat(7, 1fr); }
.gc-mdh { padding: 8px 0 2px; text-align: center; font-size: 11px; font-weight: 500; color: var(--gc-mute); }
.gc-mbody { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(96px, 1fr); }
.gc-mc { border-right: 1px solid var(--gc-line); border-bottom: 1px solid var(--gc-line); padding: 2px 4px 4px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gc-mc.out .gc-mn { color: var(--gc-soft); }
.gc-mn { align-self: center; min-width: 24px; height: 24px; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; color: var(--gc-ink); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.gc-mn:hover { background: var(--gc-hover); }
.gc-mc.today .gc-mn { background: var(--gc-blue); color: #FFFFFF; }
.gc-mi { display: flex; align-items: center; gap: 4px; width: 100%; padding: 1px 4px; border: 0; border-radius: 4px; background: transparent; color: var(--gc-ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
.gc-mi:hover { background: var(--gc-hover); }
.gc-mi i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gc-mi b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.gc-more { align-self: flex-start; padding: 1px 6px; border: 0; border-radius: 4px; background: transparent; color: var(--gc-mute); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.gc-more:hover { background: var(--gc-hover); }

/* The event card (Google's pop-up) */
.gc-card { position: fixed; z-index: 900; width: 448px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow-y: auto; box-sizing: border-box; padding: 6px 6px 18px; border-radius: 28px; background: #F0F4F9; color: var(--gc-ink, #1F1F1F);
  box-shadow: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.3); font-family: "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.gc-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gc-card .gc-ib { color: #444746; }
.gc-card .gc-ib:hover { background: rgba(68, 71, 70, 0.08); }
.gc-cbar { display: flex; align-items: center; }
/* The card moves by its top bar (calendar.js draggableCard): a grab cursor and a small handle in the middle, desktop only */
@media (min-width: 721px) {
  .gc-new > .gc-cbar { cursor: grab; touch-action: none; position: relative; }
  .gc-new > .gc-cbar::after { content: ""; position: absolute; left: 50%; top: 8px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--input); }
  .gc-new.dragging, .gc-new.dragging > .gc-cbar { cursor: grabbing; user-select: none; }
}
.gc-crow { display: grid; grid-template-columns: 52px 1fr; align-items: start; padding: 6px 22px 6px 6px; font-size: 14px; line-height: 20px; color: #1F1F1F; }
.gc-crow > svg { justify-self: center; color: #444746; margin-top: 1px; }
.gc-crow h3 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 400; overflow-wrap: anywhere; }
.gc-when { margin: 4px 0 0; font-size: 14px; color: #1F1F1F; }
.gc-sq { justify-self: center; width: 14px; height: 14px; margin-top: 7px; border-radius: 4px; background: var(--c); }
.gc-loc { color: #1F1F1F; text-decoration: none; overflow-wrap: anywhere; }
.gc-loc:hover { text-decoration: underline; }
.gc-desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.gc-desc a { color: #0B57D0; }
.gc-hint { margin: 10px 22px 0 58px; font-size: 12px; color: #444746; }
.gc-card.sheet { left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; max-height: 75vh; }

/* Making appointments: + Create, the ghost slot and the quick-create card */
.gc-create { display: inline-flex; align-items: center; gap: 12px; height: 56px; margin: 4px 0 16px; padding: 0 22px 0 16px; border: 0; border-radius: 16px; background: #FFFFFF; color: #1F1F1F; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15); }
.gc-create:hover { background: #F6F9FE; box-shadow: 0 2px 3px rgba(60, 64, 67, 0.3), 0 6px 10px 4px rgba(60, 64, 67, 0.15); }
.gc-create svg, .gc-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gc-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 800; width: 56px; height: 56px; border: 0; border-radius: 16px; background: #C2E7FF; color: #001D35; cursor: pointer; place-items: center;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15); }
.gc-ghost { position: absolute; left: 0; right: 8px; z-index: 30; box-sizing: border-box; padding: 3px 7px; border-radius: 6px; background: var(--c, #039BE5); color: var(--ink, #FFFFFF); opacity: 0.85; font-size: 12px; line-height: 15px; pointer-events: none;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.14), 0 1px 18px rgba(0, 0, 0, 0.12); overflow: hidden; }
.gc-new { padding-bottom: 14px; }
.gc-new.mid { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gc-new.full { inset: 0; width: auto; max-width: none; max-height: none; border-radius: 0; padding-top: 8px; }
.gc-nrow { display: grid; grid-template-columns: 52px 1fr; align-items: center; padding: 4px 22px 4px 6px; font-size: 14px; color: #1F1F1F; }
.gc-nrow > svg { justify-self: center; align-self: start; margin-top: 10px; color: #444746; }
.gc-nrow[hidden], .gc-nmore[hidden], .gc-nerr[hidden], .gc-nlink[hidden] { display: none; }
.gc-new input[type=text], .gc-new input[type=tel], .gc-new input[type=email], .gc-new select, .gc-new textarea { width: 100%; min-width: 0; box-sizing: border-box; padding: 7px 10px; border: 0; border-radius: 4px; background: #E1E5EA; color: #1F1F1F; font: inherit; font-size: 14px; }
.gc-new input:focus, .gc-new select:focus, .gc-new textarea:focus { outline: 2px solid #0B57D0; outline-offset: 0; }
.gc-new textarea { resize: vertical; min-height: 72px; }
.gc-ntitle input[type=text] { padding: 4px 2px; border-radius: 0; background: transparent; border-bottom: 1px solid #747775; font-size: 22px; line-height: 30px; }
.gc-ntitle input[type=text]:focus { outline: 0; border-bottom: 2px solid #0B57D0; }
.gc-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-kinds button { height: 32px; padding: 0 12px; border: 1px solid #747775; border-radius: 8px; background: transparent; color: #444746; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.gc-kinds button:hover { background: rgba(68, 71, 70, 0.08); }
.gc-kinds button[aria-pressed=true] { border-color: transparent; background: #C2E7FF; color: #001D35; }
.gc-nf2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; }
.gc-ncheck { display: inline-flex; align-items: center; gap: 8px; grid-column: 1 / -1; font-size: 14px; cursor: pointer; }
.gc-ncheck input { width: 18px; height: 18px; margin: 0; accent-color: #0B57D0; }
.gc-nwhen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gc-nwhen select { width: auto; }
.gc-nwhen #gcnDate { flex: 1 1 100%; }
.gc-nwhen span { color: #444746; }
.gc-nerr { margin: 6px 22px 0 58px; font-size: 13px; color: #B3261E; }
.gc-nfoot { display: flex; align-items: center; gap: 8px; padding: 12px 22px 0 58px; }
.gc-nlink { height: 40px; padding: 0 12px; border: 0; border-radius: 20px; background: transparent; color: #0B57D0; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.gc-nlink:hover { background: rgba(11, 87, 208, 0.08); }
.gc-nsave { height: 40px; padding: 0 24px; border: 0; border-radius: 20px; background: #0B57D0; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.gc-nsave:hover { background: #0A4DB8; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3); }
.gc-nsave:disabled { opacity: 0.6; cursor: default; }

/* Phone */
@media (max-width: 720px) {
  .gc { height: auto; min-height: calc(100vh - 60px); }
  .gc-top { flex-wrap: wrap; padding: 8px 12px; }
  .gc-top h1 { font-size: 18px; order: 5; width: 100%; margin: 4px 0 0; }
  .gc-btn { height: 36px; padding: 0 14px; }
  .gc-seg button { height: 34px; padding: 0 10px; }
  .gc-body { padding: 0 0 8px; }
  .gc-side { display: none; }
  .gc-main { border-radius: 16px; margin: 0 8px; }
  .gc-scroll { max-height: calc(100vh - 170px); }
  .gc-headrow, .gc-adrow { grid-template-columns: 48px repeat(var(--n), minmax(0, 1fr)); }
  .gc-grid { grid-template-columns: 48px 1fr; }
  .gc-hr { margin-left: 44px; }
  .gc-hr span { left: -42px; width: 36px; }
  .gc-mbody { grid-auto-rows: minmax(64px, 1fr); }
  .gc-mi span { display: none; }
  .gc-fab { display: grid; }
  .gc-new.full .gc-nfoot { padding-left: 22px; }
  .gc-nf2 { grid-template-columns: 1fr; }
}

/* Editing an appointment (the pencil on the card) */
.gc-edit .gc-hint { margin: 6px 22px 10px; }
.gc-enote { margin: 6px 0; font-size: 13px; line-height: 1.5; color: #444746; }
/* Phone: the + button steps up while a message (with its Undo) is showing, so Undo can be pressed */
@media (max-width: 720px) { body:has(.toast:not([hidden])) .gc-fab { bottom: 92px; } }

/* Booking types: the icon on each appointment, and the lock when it's confirmed */
.gc-marks { display: inline-flex; align-items: center; gap: 1px; margin-right: 3px; vertical-align: -2px; }
.gc-marks svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gc-card h3 .gc-marks { margin-right: 6px; vertical-align: -1px; }
.gc-card h3 .gc-marks svg { width: 18px; height: 18px; }
.gc-ktag { display: inline-flex; align-items: center; gap: 4px; padding-left: 16px; color: #444746; }
.gc-kinds button { display: inline-flex; align-items: center; gap: 6px; }
.gc-kinds .gc-ki { width: 16px; height: 16px; }
.gc-prods button { height: 30px; padding: 0 10px; }
.gc-sf .gc-nrow + .gc-nrow { padding-top: 2px; }
.gc-nf1 { display: grid; gap: 6px; }
.gc-nticks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gc-nticks .gc-ncheck { grid-column: auto; }
.gc-tstate { color: #444746; font-size: 12px; }
.gc-nq { display: grid; gap: 6px; }
.gc-nlab { font-size: 13px; color: #444746; }
.gc-route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: #444746; }
.gc-route .gc-nlink { height: 32px; margin-left: -12px; }
.gc-cact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; padding: 6px 22px 0 20px; }
.gc-cact > svg { margin-right: 14px; color: #444746; }
.gc-cact .gc-nlink { height: 32px; padding: 0 10px; font-size: 13px; }
.gc-confwarn { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #8C1D18; }
.gc-confwarn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gc-ev b .gc-marks { display: inline-flex; opacity: 1; }

/* Whose calendars: All / Sales consultants / Admin / Installers, and the list grouped by team */
.gc-cals .gc-cal + h2 { margin-top: 16px; }
@media (max-width: 1180px) {
  .gc-top { flex-wrap: wrap; }
  .gc-teams { order: 6; }
}
@media (max-width: 720px) {
  .gc-teams { width: 100%; overflow-x: auto; }
  .gc-teams button { flex: 1 0 auto; }
}

/* "CONFIRMED" shown as a lock in front of the title (calendar.js showTitle) */
.gc-ev b .gc-lock, .gc-chip .gc-lock, .gc-mi b .gc-lock { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gc-card h3 .gc-lock { width: 18px; height: 18px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The booking's details on its card, always in the same order (calendar.js detailsHtml) */
.gc-dl { margin: 4px 22px 4px 20px; display: grid; gap: 2px; font-size: 14px; line-height: 20px; }
.gc-dr { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 3px 0; border-bottom: 1px solid #E1E5EA; }
.gc-dr:last-child { border-bottom: 0; }
.gc-dr dt, .gc-dlab { color: #5F6368; font-size: 13px; }
.gc-dr dd { margin: 0; overflow-wrap: anywhere; color: #1F1F1F; }
.gc-dr dd a, .gc-dnotes a { color: #0B57D0; }
.gc-dr .gc-lock { width: 14px; height: 14px; margin: 0 3px 0 2px; vertical-align: -2px; }
.gc-dnotes { margin: 8px 22px 4px 20px; font-size: 14px; line-height: 20px; }
.gc-dlab { margin-bottom: 2px; }

/* Calendars heading with the admin's gear, and the settings card (calendar.js openSettings) */
.gc-calh { display: flex; align-items: center; justify-content: space-between; }
.gc-set { width: 560px; }
.gc-seth { margin: 0 0 0 16px; font-size: 20px; font-weight: 400; }
.gc-seth2 { margin: 0 22px 10px 20px; }
.gc-setlist { margin: 0 12px; display: grid; gap: 2px; max-height: 56vh; overflow-y: auto; }
.gc-setrow { display: grid; grid-template-columns: 28px 36px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #FFFFFF; }
.gc-setrow.off { opacity: 0.55; }
.gc-setck input { width: 18px; height: 18px; margin: 0; accent-color: #0B57D0; cursor: pointer; }
.gc-setwarn { margin: 8px 22px 0 20px; color: #7A4F00; }
.gc-setrow input[type=color] { width: 32px; height: 32px; padding: 0; border: 1px solid #C4C7C5; border-radius: 8px; background: transparent; cursor: pointer; }
.gc-setname { display: grid; min-width: 0; }
.gc-setname input { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 0; border-radius: 4px; background: #E1E5EA; color: #1F1F1F; font: inherit; font-size: 14px; }
.gc-setname input:focus { outline: 2px solid #0B57D0; }
.gc-setname small { font-size: 11px; color: #5F6368; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-setord { display: inline-flex; }
.gc-setord .gc-ib:disabled { opacity: 0.3; cursor: default; }
.gc-set .gc-nfoot { padding-left: 22px; }
/* The words of the confirmation text, in the check before it sends */
.gc-smsq { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid #0B57D0; background: #F0F4F9; border-radius: 4px; font-size: 14px; line-height: 1.45; }
/* Not confirmed yet: stripes (calendar.js tbc) */
.gc-ev.tbc { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 32%, #FFFFFF) 0 7px, color-mix(in srgb, var(--c) 12%, #FFFFFF) 7px 14px); }
/* A long leave or away block sits in the all-day row with its times (calendar.js allDayish) */
.gc-chipt { font-weight: 400; }
/* Busy days: words wrap whole (never split letter by letter) and narrow cards use smaller type */
.gc-ev b, .gc-ev span { overflow-wrap: normal; word-break: normal; }
.gc-ev.thin { padding: 2px 3px 1px; font-size: 11px; line-height: 13px; }

/* Search, like Google Calendar's (calendar.js searchHtml) */
.gc-search { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; margin-right: 8px; border-radius: 20px; background: #E9EEF6; color: var(--gc-mute); width: min(320px, 32vw); }
.gc-search:focus-within { background: #FFFFFF; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3); }
.gc-search svg { flex: none; }
.gc-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--gc-ink); outline: 0; }
.gc-search input::-webkit-search-cancel-button { display: none; }
.gc-sres { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.gc-sres h2 { margin: 16px 8px 6px; font-size: 13px; font-weight: 500; color: var(--gc-mute); letter-spacing: .3px; }
.gc-sres h2 span { color: var(--gc-soft); font-weight: 400; margin-left: 4px; }
.gc-sr { display: grid; grid-template-columns: 64px 120px 14px 1fr; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-bottom: 1px solid var(--gc-line2); background: transparent; font: inherit; text-align: left; color: var(--gc-ink); cursor: pointer; border-radius: 8px; }
.gc-sr:hover { background: var(--gc-hover); }
.gc-srd { display: flex; align-items: baseline; gap: 6px; }
.gc-srd b { font-size: 22px; font-weight: 400; }
.gc-srd small, .gc-srw small { font-size: 12px; color: var(--gc-soft); }
.gc-srt { font-size: 13px; color: var(--gc-mute); }
.gc-sr i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.gc-srw { display: flex; flex-direction: column; min-width: 0; }
.gc-srw b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-srw small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-sr.past { opacity: .6; }
@media (max-width: 720px) {
  .gc-search { order: 4; width: 100%; margin: 6px 0 0; }
  .gc-sr { grid-template-columns: 52px 1fr; }
  .gc-srt, .gc-sr i { display: none; }
}

/* Done and dusted: finished appointments dull, ones to come bright (calendar.js isPast) */
.gc-ev { background: var(--c); color: var(--ink, #202124); }
.gc-ev.past { background: color-mix(in srgb, var(--c) 22%, #FFFFFF); color: #263238; border-color: color-mix(in srgb, var(--c) 30%, #FFFFFF); }
.gc-ev.past span { color: inherit; opacity: .88; }
.gc-ev.tbc { background: repeating-linear-gradient(135deg, var(--c) 0 7px, color-mix(in srgb, var(--c) 82%, #FFFFFF) 7px 14px); }
.gc-ev.tbc.past { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, #FFFFFF) 0 7px, color-mix(in srgb, var(--c) 10%, #FFFFFF) 7px 14px); }
.gc-chip.past, .gc-mi.past { opacity: .55; }
.gc-srw b .gc-lock { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gc-search .gc-ib[hidden] { display: none; }


/* Readability refresh: larger cards and a roomier time grid */
.gc-headrow .gc-dh { padding-top: 4px; padding-bottom: 10px; }
.gc-dh span { font-size: 13px; letter-spacing: .7px; }
.gc-dh button { width: 48px; height: 48px; font-size: 26px; font-weight: 600; }
.gc-hr { height: 56px; border-top-color: #D5DCE5; }
.gc-hr span { top: -9px; font-size: 12px; font-weight: 600; color: #3C4043; }
.gc-ev {
  padding: 5px 7px 4px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 18px;
  border-width: 1px;
}
.gc-ev b { font-size: 14px; line-height: 18px; font-weight: 650; }
.gc-ev span { font-size: 13px; line-height: 17px; opacity: .96; }
.gc-ev.short { padding: 2px 6px; }
.gc-ev.short b, .gc-ev.short span { font-size: 13px; line-height: 16px; }
.gc-ev.thin { padding: 3px 4px; font-size: 13px; line-height: 16px; }
.gc-ev.thin b { font-size: 13px; line-height: 16px; font-weight: 650; }
.gc-ev.thin span { display: none; }
.gc-ev.over { box-shadow: -2px 0 0 #FFFFFF; }
.gc-ad { gap: 4px; padding-top: 4px; padding-bottom: 6px; }
.gc-chip { padding: 3px 8px; font-size: 13px; line-height: 17px; border-radius: 6px; }
.gc-side { width: 264px; }
.gc-mh { font-size: 15px; }
.gc-mg i { font-size: 12px; }
.gc-mg button { font-size: 12px; }
.gc-cal { min-height: 34px; font-size: 14px; }
@media (max-width: 720px) {
  .gc-hr { height: 56px; }
  .gc-ev { font-size: 13px; line-height: 16px; }
  .gc-ev b { font-size: 13px; line-height: 16px; }
  .gc-ev span { font-size: 12px; line-height: 15px; }
}


/* Strong colours and bigger words (admin staff, 26 Nov 2026: the pale tints were hard to read and to tell apart).
   Bookings still to come are filled with the person's colour, words in black or white, whichever reads better (calendar.js inkOn).
   Not confirmed yet: light stripes with a solid edge. Finished: a pale tint. Initials say whose it is (calendar.js whoTag). */
.gc-ev {
  background: var(--c);
  color: var(--ink, #202124);
  border: 1px solid color-mix(in srgb, var(--c) 72%, #000000);
  border-radius: 6px;
  padding: 4px 6px 3px;
  box-shadow: none;
}
.gc-ev b { color: inherit; font-size: 14px; line-height: 18px; font-weight: 650; }
.gc-ev span { color: inherit; font-size: 13px; line-height: 17px; opacity: 1; }
.gc-ev:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 3px 8px rgba(60,64,67,.18); z-index: 18; }
.gc-ev.tbc {
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--c) 55%, #FFFFFF) 0 7px,
    color-mix(in srgb, var(--c) 35%, #FFFFFF) 7px 14px);
  color: #202124;
  border-color: color-mix(in srgb, var(--c) 60%, #FFFFFF);
  border-left: 4px solid var(--c);
}
.gc-ev.past {
  background: color-mix(in srgb, var(--c) 16%, #FFFFFF);
  color: #3C4043;
  border-color: color-mix(in srgb, var(--c) 35%, #FFFFFF);
  border-left: 4px solid color-mix(in srgb, var(--c) 60%, #FFFFFF);
}
.gc-ev.tbc.past {
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--c) 14%, #FFFFFF) 0 7px,
    color-mix(in srgb, var(--c) 6%, #FFFFFF) 7px 14px);
}
.gc-ev.short { padding: 1px 6px; }
.gc-ev.short b, .gc-ev.short span { font-size: 13px; line-height: 16px; }
.gc-ev.thin { padding: 2px 3px; }
.gc-ev.thin b { font-size: 12px; line-height: 15px; }
.gc-ev.over { box-shadow: 0 0 0 1px #FFFFFF; }   /* a white edge where one booking sits over another */
/* All-day bookings: filled the same way */
.gc-chip { background: var(--c); color: var(--ink, #202124); border-left: 0; font-weight: 600; }
/* Whose booking: initials in a small outlined tag at the start of the title */
.gc-who { display: inline-block; margin-right: 5px; padding: 0 4px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px currentColor;
  font-style: normal; font-size: 11px; line-height: 15px; font-weight: 700; letter-spacing: .3px; vertical-align: 1px; }
.gc-ev.thin .gc-who { display: block; width: max-content; max-width: 100%; box-sizing: border-box; margin: 0 0 2px; padding: 0 2px; font-size: 10px; line-height: 13px; letter-spacing: 0; }   /* narrow: initials first, so whose it is always reads */
.gc-ev.short .gc-who { font-size: 10px; line-height: 13px; margin-right: 3px; padding: 0 3px; }
.gc-mi:has(.gc-who) > i { display: none; }   /* the initials carry the colour */
.gc-mi i.gc-who { width: auto; height: auto; border-radius: 4px; background: var(--c); color: var(--ink, #202124); box-shadow: none; }
/* Bigger words around the grid */
.gc-gut small { font-size: 12px; }
.gc-mdh { font-size: 13px; }
.gc-mi { font-size: 13px; }
.gc-mi i { width: 10px; height: 10px; }
.gc-mi.past { opacity: .6; }
@media (max-width: 720px) {
  .gc-ev b { font-size: 13px; line-height: 16px; }
  .gc-ev span { font-size: 12px; line-height: 15px; }
}

/* Lighter structure so appointments stand out without the grid shouting */
.gc-col { border-left: 1px solid #DADCE0; background: #FFFFFF; }
.gc-col:nth-child(even) { background: #FFFFFF; }
.gc-col.today { background: #F8FBFF; }
.gc-col { height: auto; }   /* fills all 24 hours (it stopped at 1152px, about 8:30 pm, once hours grew to 56px) */
.gc-dh { border-left: 1px solid #DADCE0; }
.gc-ad { border-left: 1px solid #DADCE0; }
.gc-hr { border-top: 1px solid #E8EAED; }
.gc-hr span { color: #5F6368; font-weight: 600; }
.gc-headrow { border-bottom: 1px solid #DADCE0; }
.gc-adrow { border-bottom: 1px solid #DADCE0; }

/* Filter groups and "Only" (calendar.js GROUPS, admin staff, 26 Nov 2026) */
.gc-row { display: flex; align-items: center; gap: 2px; }
.gc-row .gc-cal { flex: 1; min-width: 0; }
.gc-only { flex: none; height: 28px; padding: 0 8px; border: 0; border-radius: 14px; background: transparent; color: var(--gc-blue); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; opacity: 0; }
.gc-row:hover .gc-only, .gc-only:focus-visible { opacity: 1; }
.gc-only:hover { background: var(--gc-hover); }
.gc-only:focus-visible { outline: 2px solid var(--gc-blue); outline-offset: 1px; }
.gc-calh .gc-all { opacity: 1; margin-left: auto; }
.gc-grp + .gc-grp { margin-top: 10px; }
.gc-grph .gc-cal span { font-weight: 600; }
.gc-grp > .gc-row:not(.gc-grph) { padding-left: 14px; }
.gc-cal input:indeterminate + i { background: var(--c); }
.gc-cal input:indeterminate + i::after { content: ""; width: 8px; height: 2px; background: #FFFFFF; }
.gc-setrow select { height: 32px; padding: 0 6px; border: 0; border-radius: 4px; background: #E1E5EA; color: #1F1F1F; font: inherit; font-size: 13px; }
.gc-setrow select:focus { outline: 2px solid #0B57D0; }
@media (pointer: coarse) { .gc-only { opacity: 1; } }

/* Fold the side panel away for a wider calendar (calendar.js folded, admin staff, 26 Nov 2026).
   Folded, Create moves to the round button in the corner, as on a phone. */
.gc-fold { margin-left: -8px; }
.gc-fold svg { width: 22px; height: 22px; }
.gc-side[hidden] { display: none; }
.gc-folded .gc-body { padding-left: 16px; }
.gc-folded .gc-fab { display: grid; }
@media (max-width: 720px) {
  .gc-fold { display: none; }
  .gc-folded .gc-body { padding-left: 0; }
}

/* Bookings overlap (calendar.js layout): later starts sit on top. Hovering or focusing one brings it to the front to
   read in full. The day columns keep all of this below the sticky day headings. */
.gc-cols { position: relative; z-index: 1; }
.gc-ev:hover, .gc-ev:focus-visible { z-index: 800 !important; }
.gc-now { z-index: 900; }
.gc-ghost { z-index: 950; }
.gc-ev.lifting, .gc-ev.sizing { z-index: 1000 !important; }

/* Duplicate a booking (calendar.js openCopy): one line under the title saying it's a copy */
.gc-ncopy { margin: 2px 22px 6px 58px; color: #7A4F00; }
