/* styles/calconn.css -- connecting a calendar (Calendar connect v1.1, the
   owner's design package of 3-4 Nov 2026; screens/calconn.js and the Busy
   blocks of screens/week.js): CC1's card, the connect sheet (CC2) and its
   Apple and Google sheets, Plan around (MV6 / PC6), the Busy blocks (CC5)
   and the Busy sheet (PC5). The sheets are the training week's
   (weekset.css: `swk-sheet`, `swk-head`, `swk-body`, `swk-mcard`,
   `swk-switch`, `swk-foot`); what is here is only what those lack. Every
   number is the references' (`Vol_CC1_first_prompt`, `Vol_CC2_connect_
   sheet`, `Vol_MV6_plan_around_all`, `Vol_CC5_schedule_names`,
   `Vol_PC5_busy_sheet`, `Vol_PC7_week_plan_around`) unless a comment says
   otherwise. */

/* ───────────────────────── 2026-11-07 (the owner's "Schedule screens,
   1c look" handoff, FINAL, boards 17-24): REDRAWN IN THE 1c LOOK --
   raised = tap it, flat dim = words, sunken = type in it, solid blue =
   chosen, THE one bright button, red text only for Disconnect and Remove.
   Every colour onec.css's token (`--c1-*`), every number the boards'
   references (`reference/17_P1_Connect_Card.html` ... `24_P8_Plan_
   Around.html`). WAS (Calendar connect v1.1) `--card-fill`, outlined
   buttons and green ticks. */

/* CC1 · the one-time card (board 17): a flat card -- the glyph tile, the
   title 17/800 and its line, the × a 44 px round -- and Connect a PLAIN
   RAISED button its width under them. */
section.ccn-card { position: relative; margin: 14px 16px 12px; padding: 16px;
  border-radius: 22px; background: var(--c1-card);
  border: 1px solid var(--c1-card-line); color: var(--c1-ink); }
.ccn-top { display: flex; align-items: flex-start; gap: 12px; }
.ccn-card .swk-mt b { font-size: 17px; font-weight: 800; }
.ccn-card .swk-mt span { margin-top: 3px; font-size: 14px; line-height: 1.4;
  color: var(--c1-sub); }
.ccn-card .ccn-top > button.c-close { flex: none; width: 44px; height: 44px;
  min-height: 0; margin: 0; padding: 13px; border: 1px solid #2f4262;
  background: #17233a; color: #c3cddb; }
.ccn-card > button.ccn-go { display: flex; align-items: center;
  justify-content: center; width: 100%; min-height: 52px; margin: 14px 0 0;
  padding: 0 14px; border-radius: 14px; background: var(--c1-tile);
  border: 1px solid var(--c1-tile-line); box-shadow: var(--c1-tile-lift);
  color: var(--c1-ink); font-size: 16px; font-weight: 800; }
.ccn-card > button.ccn-go:active, button.ccn-row:active, button.ccn-red:active,
button.ccn-mini:active { transform: translateY(2px); box-shadow: none; }

/* A glyph in its soft tile, 44 px (the boards' `.ic2`). */
.ccn-ic { flex: none; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(140, 196, 245, .14); display: flex; align-items: center;
  justify-content: center; }
.ccn-ic svg { width: 23px; height: 23px; fill: none; stroke: var(--c1-icon);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── the sheets */
/* The caps line over a title, in the soft blue (board 11's "TIME OFF");
   in a body, a section's label (the boards' `.lab`). */
.ccn-cap { display: block; margin: 0; font-size: 12.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c1-icon); }
.swk-ht > .ccn-cap { margin: 8px 0 0; }
.swk-ht > .ccn-cap + h3.swk-title { margin-top: 4px; }
h4.ccn-cap { margin: 6px 4px -6px; color: var(--c1-lab); }
.ccn-sheet .swk-sub { font-size: 15px; line-height: 1.5; color: var(--c1-sub); }
.ccn-line { margin: 0; padding: 0 4px; font-size: 15px; line-height: 1.5;
  color: var(--c1-sub); }
.ccn-small { margin: 0; padding: 0 4px; font-size: 13px; line-height: 1.45;
  color: var(--c1-hint); }
/* A refusal: the app's own red (board 22), plain words. */
.ccn-body .ccn-err { margin: 0; padding: 0 4px; font-size: 14px;
  line-height: 1.45; color: var(--bad-ink); }
/* A card of rows inside a sheet's body: the body's gutter, not its own. */
.ccn-body > .swk-mcard { margin: 0; }
/* Rows that are each a raised tile, 10 apart. */
.ccn-list { display: flex; flex-direction: column; gap: 10px; }

/* CC2 (boards 18-19): a calendar with nothing connected, ITSELF the door
   -- raised, "Connect" and the round chevron; a connected one, a flat card
   -- "✓ Connected" over a small raised Disconnect in red text. */
.ccn-row { display: flex; align-items: center; gap: 12px; width: 100%;
  box-sizing: border-box; min-height: 72px; margin: 0; padding: 10px 14px;
  border-radius: 14px; text-align: left; font: inherit; color: var(--c1-ink); }
button.ccn-row { background: var(--c1-tile); border: 1px solid var(--c1-tile-line);
  box-shadow: var(--c1-tile-lift); }
.ccn-row.on { padding: 14px; border-radius: 22px; background: var(--c1-card);
  border: 1px solid var(--c1-card-line); }
.ccn-row .swk-mt span { font-size: 14px; }
.ccn-pill { flex: none; font-size: 14px; font-weight: 800; color: #c9d3e0; }
.ccn-side { flex: none; display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px; }
.ccn-side:empty { display: none; }
.ccn-ok { flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; color: var(--c1-icon); }
.ccn-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
button.ccn-mini { display: inline-flex; align-items: center; width: auto;
  height: 36px; min-height: 0; margin: 0; padding: 0 14px; border-radius: 12px;
  background: var(--c1-tile); border: 1px solid var(--c1-tile-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 2px 0 #070b12;
  color: var(--c1-ink); font-size: 14px; font-weight: 800; }
button.ccn-mini.ccn-disc { color: var(--c1-red); }

/* The three promises: the glyph in a 30 px round, the line 14 px. */
.ccn-promises { display: flex; flex-direction: column; gap: 14px;
  padding: 6px 4px 0; }
.ccn-promise { display: flex; gap: 12px; align-items: flex-start; margin: 0;
  font-size: 14px; line-height: 1.45; color: #a9b4c4; }
.ccn-promise i { flex: none; display: inline-flex; align-items: center;
  justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: #17233a; }
.ccn-promise svg { width: 16px; height: 16px; fill: none;
  stroke: var(--c1-icon); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }

/* A sheet's foot of two (board 20: Keep it, THE bright one, and
   Disconnect raised in red text), and the bright button of any calendar
   sheet's foot -- the 1c one. */
.swk-foot.ccn-two { display: flex; gap: 10px; }
.swk-foot.ccn-two > button { flex: 1 1 0; width: auto; min-height: 56px;
  margin: 0; justify-content: center; text-align: center;
  border-radius: 14px; font-size: 16px; font-weight: 800; }
.ccn-sheet .swk-foot > button.c-btn { border: 1px solid var(--c1-on-line);
  background: var(--c1-pri); box-shadow: var(--c1-pri-lift); color: #ffffff;
  font-size: 17px; font-weight: 800; }
.ccn-sheet .swk-foot:not(.ccn-two) > button.c-btn { min-height: 58px;
  border: 0; border-radius: 18px; }
.ccn-sheet .swk-foot > button.c-btn:disabled { opacity: 1;
  background: var(--c1-tile); box-shadow: none; color: var(--c1-hint); }
/* Red text on a raised button -- Disconnect and Remove only. */
button.ccn-red { display: flex; align-items: center; width: 100%;
  min-height: 56px; margin: 0; padding: 10px 14px; border-radius: 14px;
  background: var(--c1-tile); border: 1px solid var(--c1-tile-line);
  box-shadow: var(--c1-tile-lift); color: var(--c1-red); text-align: left;
  font-size: 16px; font-weight: 800; }

/* The Apple sheet (boards 21-22): each label a caps line, each box
   sunken; refused, the box ringed in the app's red. */
label.ccn-field { display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c1-lab); }
label.ccn-field > span { padding: 6px 4px 0; }
label.ccn-field input { width: 100%; height: 56px; min-height: 0; margin: 0;
  box-sizing: border-box; padding: 0 16px; border-radius: 14px;
  background: var(--c1-field); border: 1px solid var(--c1-field-line);
  box-shadow: var(--c1-field-sink); color: var(--c1-ink);
  font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; }
label.ccn-field input::placeholder { color: #8294ad; }
label.ccn-field.bad input { border-color: #b86a6a; }

/* The Google sheet (board 23): the address and the code each in a flat
   card -- the code large and spaced; until when, centred. */
.ccn-url, .ccn-code { margin: 0; padding: 18px 16px; border-radius: 22px;
  background: var(--c1-card); border: 1px solid var(--c1-card-line);
  text-align: center; color: var(--c1-ink); user-select: text;
  -webkit-user-select: text; }
.ccn-url { font-size: 19px; font-weight: 800; word-break: break-all; }
.ccn-code { font-size: 34px; font-weight: 800; letter-spacing: .14em;
  color: #ffffff; font-variant-numeric: tabular-nums; }
.ccn-small.ccn-until { text-align: center; }

/* MV6 · Plan around (board 24): All events a raised row, solid blue while
   on; the picks a card of rows, dimmed while All events is on; the chips
   raised; the options raised rows. */
.ccn-all, .ccn-opt { display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 14px; border-radius: 14px;
  background: var(--c1-tile); border: 1px solid var(--c1-tile-line);
  box-shadow: var(--c1-tile-lift); color: var(--c1-ink); }
.ccn-all.on { background: var(--c1-on); border-color: var(--c1-on-line);
  box-shadow: var(--c1-on-lift); color: #ffffff; }
.ccn-all.on .swk-mt span { color: rgba(255, 255, 255, .92); }
.ccn-all.on .ccn-ai { background: rgba(255, 255, 255, .18); }
.ccn-all.on .ccn-ai svg { stroke: #ffffff; }
.ccn-all.on button.swk-switch { background: rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .7); }
.ccn-ai { flex: none; display: flex; align-items: center;
  justify-content: center; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(140, 196, 245, .14); }
.ccn-ai svg { width: 23px; height: 23px; fill: none; stroke: var(--c1-icon);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ccn-cals.off { opacity: .5; }
.ccn-cals .ccn-cal { display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 12px 4px; }
.ccn-cals .ccn-cal + .ccn-cal { border-top: 1px solid #22324a; }
.ccn-cal .swk-mt b { font-size: 15.5px; }
.ccn-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; }
/* Time around events: the server's chips in a row. */
.ccn-chips { display: flex; gap: 6px; }
button.ccn-chip { flex: 1 1 0; min-width: 0; width: auto; height: 52px;
  min-height: 0; margin: 0; padding: 0; border-radius: 14px;
  background: var(--c1-tile); border: 1px solid var(--c1-tile-line);
  box-shadow: var(--c1-tile-lift); color: var(--c1-ink);
  font-size: 15px; font-weight: 800; white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  text-align: center; }
button.ccn-chip.on { background: var(--c1-on); border-color: var(--c1-on-line);
  box-shadow: var(--c1-on-lift); color: #ffffff; }

/* PC5 / a can't-train block (board 11) · the facts: label left, value
   right, bold, under rules. */
.ccn-fact { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 50px; padding: 12px 0; }
.ccn-fact + .ccn-fact { border-top: 1px solid #22324a; }
.ccn-fact span { flex: none; font-size: 15px; color: #9aa6b6; }
.ccn-fact b { font-size: 15px; font-weight: 800; text-align: right; }

/* ───────────────────────── CC5 · A BUSY BLOCK: one of the athlete's own
   events, striped grey so it never reads as training -- "Busy", or the
   event's name with names on. Under the sessions; a tap opens its sheet. */
.cal .calbusy { position: absolute; left: 1.5px; right: 1.5px; width: auto;
  min-height: 0; margin: 0; padding: 2px 2px 2px 3px; z-index: 0;
  border-radius: 7px; box-sizing: border-box; overflow: hidden;
  /* 2026-11-05 (the owner: "a single plain colour for Google / Apple
     events"): WAS one solid steel-grey -- and, later that day (Schedule
     changes v1, tweak 3, Max), NOW can't train's warm red stripes, the
     same style for both: an event's title #fbd9d0, its time #e8a190.
     All-day chips too.
     2026-11-06 (Schedule changes v2 §5a, "Red 3"; Max: the full-strength
     stripes were ugly): the same stripes DIMMED -- the whole block, words
     and all, at .55, its border and left edge softened. WAS (v1) border
     #6b3a32, left edge #e8a190, full strength. Can't train's blocks are
     identical (cantrain.css). Never a Tenxetic session's look. */
  background: repeating-linear-gradient(135deg, rgba(232, 128, 98, .30)
    0 5px, rgba(232, 128, 98, .18) 5px 10px);
  border: 1px solid rgba(232, 128, 98, .55);
  border-left: 2px solid rgba(232, 161, 144, .9);
  color: #fbd9d0; text-shadow: none; opacity: .55;
  text-align: left; font-size: 9.5px; font-weight: 700; line-height: 1.15;
  display: flex; flex-direction: column; }
.cal .calbusy span { display: block; overflow: hidden; }
/* The title: wrapped and cut at the block's edge, as many WHOLE lines as
   its height holds, no "…" -- broken between any two letters on the narrow
   week, as Google's phone calendar draws it (2026-11-06, the owner's
   Schedule list, items 1-2; a pinch that makes the block taller shows
   more). WAS `-webkit-line-clamp`, its count worked out when drawn. The
   time under it on a block tall enough to hold it. */
.cal .calbusy .cbt { flex: 0 1 auto; min-height: 0; color: #fbd9d0;
  display: block; letter-spacing: -.1px; line-height: 11px;
  white-space: normal; word-break: break-all; text-overflow: clip;
  max-height: round(down, 100%, 11px); }
.cal.one .calbusy .cbt { line-height: 16px; word-break: normal;
  overflow-wrap: anywhere; max-height: round(down, 100%, 16px); }
.cal .calbusy .cbm { flex: none; margin-top: 1px; font-size: 9.5px;
  font-weight: 600; color: #e8a190; white-space: nowrap; }
/* ... only on a block tall enough for both lines (`tall`, set again as
   the hour moves -- week.js `calBusyFit`, 2026-11-06): the title keeps
   the room. WAS the time drawn or not when the block was built. */
.cal .calbusy:not(.tall) .cbm { display: none; }
.cal.one .calbusy { left: 4px; right: 16px; border-radius: 12px;
  padding: 6px 12px; font-size: 14px; }
.cal.one .calbusy .cbm { font-size: 12px; }
/* Events that overlap sit side by side (`calBusyLanes`), so no title is
   hidden under another. */
.cal .calbusy.lane { left: calc(1.5px + var(--ln) * (100% - 3px) / var(--lns));
  right: auto; width: calc((100% - 3px) / var(--lns) - 1px); }
.cal.one .calbusy.lane { left: calc(4px + var(--ln) * (100% - 20px) / var(--lns));
  width: calc((100% - 20px) / var(--lns) - 3px); }

/* (2026-11-07, Schedule 1c board 16: WAS the all-day sheet's own
   choices -- `.ccn-allq`, `.ccn-allopt` side by side, `.ccn-allgym`, the
   COMING SOON pill `.ccn-soon` -- NOW cantrain.css's `ct-what` tiles.) */

/* The all-day strip: under the day headers, the same columns as the grid.
   An all-day event is a chip, never a block in the hours. */
.caldays { display: grid; grid-template-columns: var(--calcols); gap: 2px;
  padding: 3px 0 4px; border-bottom: 1px solid var(--line);
  background: var(--bg); }
.caldays .calgut { display: flex; align-items: center; justify-content: flex-end;
  padding-right: 4px; font-size: 8.5px; font-weight: 800; color: var(--quiet);
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.05;
  text-align: right; }
.caldays { position: relative; row-gap: 2px; }
.caldays .cadtoday { background: rgba(20, 121, 209, .10); pointer-events: none;
  margin: -3px 0 -4px; }
.caldays .cadchip { position: static; display: block; width: auto; height: auto;
  min-height: 18px; padding: 2px 5px; margin: 0 1.5px; z-index: 1;
  font-size: 10px; border-radius: 5px; min-width: 0; }
/* One line, cut at the chip's edge -- no "…" (2026-11-06, the owner's
   Schedule list, item 1: Google's "Guy Fa"). */
.caldays .cadchip .cbt { display: block; max-height: none;
  white-space: nowrap; text-overflow: clip; overflow: hidden; }
.caldays .cadmore { margin: 0 1.5px; min-height: 0; padding: 0 4px; border: 0;
  background: none; color: var(--quiet); font-size: 10px; font-weight: 800;
  text-align: left; }
.cal.one .caldays .cadchip { font-size: 13px; padding: 5px 10px; margin: 0 4px;
  border-radius: 10px; }
.cal.one .caldays .calgut { font-size: 10px; }
/* (Drawn BEFORE the column's sessions, so they paint over it -- no
   z-index of theirs is touched: a held tile's is the drag's.) */

/* ── A CALENDAR EVENT'S SHEET (boards 15-16, Schedule 1c 2026-11-07): MORE's
   two doors, raised rows with the round chevron, "Show event names" saying
   its state at the right; the all-day answers are cantrain.css's
   `ct-what` tiles, stacked. */
.ccn-doors { display: flex; flex-direction: column; gap: 10px; }
button.c1-tile.ccn-door { width: 100%; min-height: 56px; margin: 0;
  padding: 0 12px 0 16px; text-align: left; font-size: 17px;
  font-weight: 600; }
.ccn-dl { flex: 1 1 auto; min-width: 0; }
.ccn-dv { flex: none; color: var(--c1-sub); font-weight: 600; }
.ccn-dhint.c1-hint { margin: 10px 4px 0; font-size: 14px; }
.ccn-allpick.ct-whats { display: flex; flex-direction: column; gap: 10px; }
.ccn-allpick .ct-what .ct-wt > span { display: block; }
