/* TryCleaning calendar engine styles (calendar.css v1, 24 Sep 2026).
   Tokens live on .tcc (the calendar root) and .tcc-layer (every overlay appended to <body>),
   with dark values under :root[data-theme="dark"] (theme.js sets it on both host pages).
   Shared primitives (.tcc-btn, .tcc-input, .tcc-switch, .tcc-seg, .tcc-pill ...) are used by
   calendar-editor.css too. Brand: navy #0D1B4B, sky #4FC3F7, Inter for the grid. */

.tcc, .tcc-layer {
  --tcc-page: #EEF2FA;
  --tcc-surface: #FCFDFF;
  --tcc-surface-2: #F4F6FC;
  --tcc-surface-3: #E7ECF6;
  --tcc-line: #DDE3EE;
  --tcc-line-2: #C5CEDF;
  --tcc-outline: #7D87A5;
  --tcc-ink: #0D1B4B;
  --tcc-soft: #4F5B7D;
  --tcc-faint: #69738F;
  --tcc-primary: #0D1B4B;
  --tcc-on-primary: #F7F9FF;
  --tcc-accent: #4FC3F7;
  --tcc-accent-ink: #0B5E8C;
  --tcc-band: #D3EDFB;
  --tcc-now: #0A78D1;
  --tcc-danger: #B3261E;
  --tcc-on-danger: #FFF8F7;
  --tcc-danger-bg: #FBE7E4;
  --tcc-ok: #1B7340;
  --tcc-ok-bg: #E1F3E8;
  --tcc-warn: #8A4F00;
  --tcc-warn-bg: #FFF0D9;
  --tcc-info: #0F5A93;
  --tcc-info-bg: #E0F1FC;
  --tcc-hover: rgba(13, 27, 75, .055);
  --tcc-press: rgba(13, 27, 75, .1);
  --tcc-hatch: rgba(13, 27, 75, .09);
  --tcc-hatch-2: rgba(13, 27, 75, .2);
  --tcc-focus: #1466A8;
  --tcc-scrim: rgba(8, 15, 46, .4);
  --tcc-inverse: #1B2441;
  --tcc-on-inverse: #EEF2FF;
  --tcc-inverse-action: #8FD9FF;
  --tcc-shadow-1: 0 1px 2px rgba(13, 27, 75, .1), 0 1px 3px 1px rgba(13, 27, 75, .06);
  --tcc-shadow-2: 0 4px 10px rgba(13, 27, 75, .1), 0 14px 36px rgba(13, 27, 75, .16);
  --tcc-radius: 16px;
  --tcc-font: inherit;
  --tcc-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --tcc-sheen: rgba(255, 255, 255, .9);
  color-scheme: light;
}
:root[data-theme="dark"] .tcc, :root[data-theme="dark"] .tcc-layer {
  --tcc-page: #0D1826;
  --tcc-surface: #132139;
  --tcc-surface-2: #182843;
  --tcc-surface-3: #213353;
  --tcc-line: #243551;
  --tcc-line-2: #34496F;
  --tcc-outline: #6F82A8;
  --tcc-ink: #E9EEFB;
  --tcc-soft: #AEBBD5;
  --tcc-faint: #93A2C0;
  --tcc-primary: #4FC3F7;
  --tcc-on-primary: #0A1526;
  --tcc-accent: #4FC3F7;
  --tcc-accent-ink: #8FD9FF;
  --tcc-band: #1D4466;
  --tcc-now: #5CC8FF;
  --tcc-danger: #FF9B8F;
  --tcc-on-danger: #2B0C08;
  --tcc-danger-bg: rgba(255, 138, 128, .15);
  --tcc-ok: #7DDC9A;
  --tcc-ok-bg: rgba(125, 220, 154, .14);
  --tcc-warn: #F4C27A;
  --tcc-warn-bg: rgba(244, 194, 122, .14);
  --tcc-info: #8FD9FF;
  --tcc-info-bg: rgba(79, 195, 247, .16);
  --tcc-hover: rgba(255, 255, 255, .06);
  --tcc-press: rgba(255, 255, 255, .1);
  --tcc-hatch: rgba(255, 255, 255, .09);
  --tcc-hatch-2: rgba(255, 255, 255, .2);
  --tcc-focus: #8FD9FF;
  --tcc-scrim: rgba(0, 4, 12, .58);
  --tcc-inverse: #E9EEFB;
  --tcc-on-inverse: #101B30;
  --tcc-inverse-action: #0B5E8C;
  --tcc-shadow-1: 0 1px 2px rgba(0, 0, 0, .45), 0 1px 3px 1px rgba(0, 0, 0, .25);
  --tcc-shadow-2: 0 6px 16px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .4);
  --tcc-sheen: rgba(214, 240, 255, .55);
  color-scheme: dark;
}

/* per-item colour: the engine writes --b --f --i (light) and --bd --fd --id (dark) inline */
.tcc [style*="--b:"], .tcc-layer [style*="--b:"] { --eb: var(--b); --ef: var(--f); --ei: var(--i); }
:root[data-theme="dark"] .tcc [style*="--b:"], :root[data-theme="dark"] .tcc-layer [style*="--b:"] { --eb: var(--bd); --ef: var(--fd); --ei: var(--id); }

/* ------------------------------------------------------------------ base */
.tcc {
  position: relative; box-sizing: border-box; width: 100%; height: 100%; min-height: 0;
  background: var(--tcc-page); color: var(--tcc-ink); font-family: var(--tcc-font); font-size: 14px; line-height: 1.4;
  overflow: hidden; -webkit-tap-highlight-color: transparent; text-align: left;
}
.tcc *, .tcc *::before, .tcc *::after, .tcc-layer, .tcc-layer *, .tcc-layer *::before, .tcc-layer *::after { box-sizing: border-box; }
.tcc-layer { font-family: var(--tcc-font); color: var(--tcc-ink); font-size: 14px; line-height: 1.4; text-align: left; }
.tcc button, .tcc-layer button { font-family: inherit; }
.tcc h2, .tcc h3, .tcc p, .tcc-layer h2, .tcc-layer h3, .tcc-layer p { margin: 0; }
.tcc-i { flex: none; display: block; }
.tcc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.tcc-sp { flex: 1; min-width: 4px; }
.tcc [hidden], .tcc-layer [hidden] { display: none !important; }
.tcc-muted { color: var(--tcc-soft); }
.tcc-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 2px 0; font: inherit; font-weight: 600; color: var(--tcc-accent-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tcc :focus-visible, .tcc-layer :focus-visible { outline: 2px solid var(--tcc-focus); outline-offset: 2px; }

/* ------------------------------------------------------------------ shared primitives */
.tcc-btn {
  appearance: none; -webkit-appearance: none; border: 0; margin: 0; background: transparent; color: var(--tcc-ink);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; min-height: 36px; padding: 0 16px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .12s linear, box-shadow .12s linear, color .12s linear; position: relative; flex: none;
}
.tcc-btn:hover { background-color: var(--tcc-hover); }
.tcc-btn:active { background-color: var(--tcc-press); }
.tcc-btn:disabled, .tcc-btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.tcc-btn--primary { background: var(--tcc-primary); color: var(--tcc-on-primary); }
.tcc-btn--primary:hover { background: var(--tcc-primary); box-shadow: var(--tcc-shadow-1); filter: brightness(1.08); }
.tcc-btn--ghost, .tcc-btn--outline { box-shadow: inset 0 0 0 1px var(--tcc-line-2); }
.tcc-btn--outline { box-shadow: inset 0 0 0 1px var(--tcc-outline); }
.tcc-btn--danger { background: var(--tcc-danger); color: var(--tcc-on-danger); }
.tcc-btn--danger:hover { background: var(--tcc-danger); filter: brightness(1.06); }
.tcc-btn--icon { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; color: var(--tcc-soft); }
.tcc-btn--icon:hover { color: var(--tcc-ink); }
.tcc-btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.tcc-btn--icon.tcc-btn--sm { width: 32px; height: 32px; padding: 0; }
.tcc-btn.is-spin .tcc-i { animation: tcc-spin .8s linear infinite; }

.tcc-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tcc-label { font-size: 12px; font-weight: 600; color: var(--tcc-soft); letter-spacing: .01em; }
.tcc .tcc-input, .tcc .tcc-textarea, .tcc .tcc-select, .tcc-layer .tcc-input, .tcc-layer .tcc-textarea, .tcc-layer .tcc-select {
  width: 100%; min-width: 0; font: inherit; font-size: 14px; color: var(--tcc-ink); background: var(--tcc-surface);
  border: 1px solid var(--tcc-line-2); border-radius: 10px; min-height: 40px; padding: 8px 12px; margin: 0; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.tcc .tcc-textarea, .tcc-layer .tcc-textarea { min-height: 80px; resize: vertical; line-height: 1.45; }
.tcc .tcc-input:focus, .tcc .tcc-textarea:focus, .tcc .tcc-select:focus, .tcc-layer .tcc-input:focus, .tcc-layer .tcc-textarea:focus, .tcc-layer .tcc-select:focus { border-color: var(--tcc-focus); box-shadow: 0 0 0 1px var(--tcc-focus); }
:root[data-theme="dark"] .tcc .tcc-input, :root[data-theme="dark"] .tcc .tcc-textarea, :root[data-theme="dark"] .tcc .tcc-select,
:root[data-theme="dark"] .tcc-layer .tcc-input, :root[data-theme="dark"] .tcc-layer .tcc-textarea, :root[data-theme="dark"] .tcc-layer .tcc-select { background: var(--tcc-surface-2); color: var(--tcc-ink); border-color: var(--tcc-line-2); }
.tcc-layer .tcc-input::placeholder, .tcc-layer .tcc-textarea::placeholder, .tcc .tcc-input::placeholder { color: var(--tcc-faint); opacity: 1; }
.tcc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tcc-divider { height: 1px; background: var(--tcc-line); margin: 12px 0; border: 0; }

.tcc-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; min-height: 36px; position: relative; }
.tcc-switch > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tcc-switch-track { width: 36px; height: 20px; border-radius: 10px; background: var(--tcc-line-2); position: relative; flex: none; transition: background .15s; }
.tcc-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--tcc-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.tcc-switch > input:checked + .tcc-switch-track { background: var(--tcc-primary); }
.tcc-switch > input:checked + .tcc-switch-track::after { transform: translateX(16px); background: var(--tcc-on-primary); }
.tcc-switch > input:focus-visible + .tcc-switch-track { outline: 2px solid var(--tcc-focus); outline-offset: 2px; }

.tcc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--tcc-line-2); background: transparent; color: var(--tcc-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tcc-chip.is-on { background: var(--tcc-band); border-color: transparent; }
.tcc-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tcc-seg > button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--tcc-line-2); background: transparent; color: var(--tcc-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s; }
.tcc-seg > button:hover { background: var(--tcc-hover); }
.tcc-seg > button.is-on { background: var(--tcc-band); border-color: transparent; }
.tcc-seg > button:disabled { opacity: .5; cursor: default; }
.tcc-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; line-height: 18px; padding: 1px 8px; border-radius: 999px; background: var(--tcc-surface-3); color: var(--tcc-soft); white-space: nowrap; }
.tcc-pill .tcc-i { width: 13px; height: 13px; }
.tcc-pill--ok { background: var(--tcc-ok-bg); color: var(--tcc-ok); }
.tcc-pill--warn { background: var(--tcc-warn-bg); color: var(--tcc-warn); }
.tcc-pill--bad { background: var(--tcc-danger-bg); color: var(--tcc-danger); }
.tcc-pill--info { background: var(--tcc-info-bg); color: var(--tcc-info); }
.tcc-pill--muted { background: var(--tcc-surface-3); color: var(--tcc-soft); }
.tcc-pill--type { background: transparent; color: var(--tcc-soft); padding-left: 0; }
.tcc-pill[style*="--b:"] { background: var(--ef); color: var(--ei); }
.tcc-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--tcc-surface-3); color: var(--tcc-ink); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; position: relative; }
.tcc-avatar-b { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--tcc-surface); font-style: normal; }
.tcc-avatar-b.is-ok { background: var(--tcc-ok); color: var(--tcc-surface); }
.tcc-avatar-b.is-bad { background: var(--tcc-danger); color: var(--tcc-surface); }
.tcc-avatar-b.is-warn { background: var(--tcc-warn); color: var(--tcc-surface); }
.tcc-avatar-b.is-muted { background: var(--tcc-faint); color: var(--tcc-surface); }
.tcc-list { list-style: none; margin: 0; padding: 0; }
.tcc-list-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--tcc-ink); text-align: left; border-radius: 12px; cursor: pointer; }
.tcc-list-item:hover { background: var(--tcc-hover); }
.tcc-list-item .tcc-i { color: var(--tcc-soft); }
.tcc-empty { text-align: center; color: var(--tcc-soft); padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tcc-spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--tcc-line-2); border-top-color: var(--tcc-primary); animation: tcc-spin .8s linear infinite; }
@keyframes tcc-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ desktop shell */
.tcc[data-layout="desktop"] { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); }
.tcc-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 12px; min-width: 0; }
.tcc-top > [data-act="sidebar"] { margin-right: 6px; }
.tcc-today { min-height: 36px; padding: 0 20px; margin: 0 6px 0 2px; font-weight: 600; }
.tcc-navs { display: flex; }
.tcc-title { font-family: var(--tcc-display); font-size: 23px; font-weight: 700; letter-spacing: -.005em; line-height: 1.2; margin: 0 0 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tcc-ink); min-width: 0; }
.tcc-search { display: flex; align-items: center; position: relative; border-radius: 22px; transition: background .15s; }
.tcc-search-in { width: 0; opacity: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--tcc-ink); padding: 0; min-height: 40px; outline: none; transition: width .18s ease, opacity .18s ease, padding .18s ease; }
.tcc-search.is-open { background: var(--tcc-surface); box-shadow: inset 0 0 0 1px var(--tcc-line-2); }
.tcc-search.is-open .tcc-search-in { width: 220px; opacity: 1; padding: 0 14px 0 0; }
.tcc-search-in::-webkit-search-cancel-button { display: none; }
:root[data-theme="dark"] .tcc .tcc-search-in { background: transparent; border: 0; }
.tcc-tzchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tcc-soft); padding: 4px 10px; border-radius: 999px; background: var(--tcc-surface-3); margin: 0 6px; white-space: nowrap; }
.tcc-viewbtn { min-height: 36px; padding: 0 12px 0 18px; margin: 0 4px 0 6px; gap: 6px; }
.tcc-side { grid-row: 2; width: 0; overflow: hidden; transition: width .2s cubic-bezier(.4, 0, .2, 1); }
.tcc.is-side-open .tcc-side { width: 256px; }
.tcc-side-in { width: 256px; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 24px 16px; scrollbar-width: thin; }
.tcc.is-side-overlay .tcc-side { position: absolute; z-index: 8; top: 64px; bottom: 0; left: 0; background: var(--tcc-page); box-shadow: var(--tcc-shadow-2); border-radius: 0 16px 16px 0; }
.tcc-main { grid-row: 2; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0 16px 16px 16px; }
.tcc.is-side-open:not(.is-side-overlay) .tcc-main { padding-left: 4px; }
.tcc-surface { flex: 1; min-height: 0; background: var(--tcc-surface); border-radius: var(--tcc-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--tcc-line); position: relative; }
.tcc[data-size="s"] .tcc-title { font-size: 19px; }
.tcc[data-size="s"] .tcc-today { padding: 0 14px; }
.tcc[data-size="s"] .tcc-tzchip span { display: none; }

.tcc-create { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px 0 16px; margin: 6px 0 10px; border-radius: 16px; border: 0; background: var(--tcc-surface); color: var(--tcc-ink); box-shadow: var(--tcc-shadow-1); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: box-shadow .15s, background .15s; }
.tcc-create:hover { box-shadow: var(--tcc-shadow-2); }
.tcc-create > .tcc-i:first-child { color: var(--tcc-primary); }
:root[data-theme="dark"] .tcc-create { background: var(--tcc-surface-3); }
.tcc-create > .tcc-i:last-child { color: var(--tcc-soft); margin-left: 4px; }

.tcc-mini { padding: 10px 0 6px; }
.tcc-mini-head { display: flex; align-items: center; gap: 2px; padding: 0 0 2px 0; }
.tcc-mini-title { flex: 1; text-align: left; font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; color: var(--tcc-ink); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.tcc-mini-title:hover { background: var(--tcc-hover); }
.tcc-mini-dows, .tcc-mini-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.tcc-mini-dows span { font-size: 10px; font-weight: 600; color: var(--tcc-soft); text-align: center; line-height: 24px; }
.tcc-mini-cell { height: 28px; display: grid; place-items: center; position: relative; }
.tcc-mini-cell.is-band { background: var(--tcc-band); }
.tcc-mini-cell.is-bs { border-top-left-radius: 14px; border-bottom-left-radius: 14px; }
.tcc-mini-cell.is-be { border-top-right-radius: 14px; border-bottom-right-radius: 14px; }
.tcc-mini-d { width: 26px; height: 26px; border-radius: 50%; font: inherit; font-size: 11px; font-weight: 600; border: 0; padding: 0; background: none; color: var(--tcc-ink); position: relative; cursor: pointer; transition: background .1s linear; }
.tcc-mini-d:hover { background: var(--tcc-surface-3); }
.tcc-mini-d.is-out { color: var(--tcc-soft); font-weight: 400; }
.tcc-mini-d.is-today { background: var(--tcc-primary); color: var(--tcc-on-primary); }
.tcc-mini-dot { position: absolute; bottom: 2px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; opacity: .7; }
.tcc-side-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 14px 8px 6px; color: var(--tcc-ink); }
.tcc-side-h .tcc-i { color: var(--tcc-soft); }
.tcc-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--tcc-on-primary); background: var(--tcc-primary); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
.tcc-pend-list { list-style: none; margin: 0; padding: 0; }
.tcc-pend-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: var(--tcc-ink); padding: 6px 8px 6px 12px; border-radius: 10px; cursor: pointer; box-shadow: inset 3px 0 0 var(--tcc-accent); margin: 2px 0; }
.tcc-pend-item:hover { background: var(--tcc-hover); }
.tcc-pend-t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tcc-pend-w { font-size: 12px; color: var(--tcc-soft); }
.tcc-cal-list { display: flex; flex-direction: column; }
.tcc-cal-row { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 0 8px; border-radius: 8px; cursor: pointer; font-size: 14px; position: relative; }
.tcc-cal-row:hover { background: var(--tcc-hover); }
.tcc-cal-row > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tcc-cal-box { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--eb, var(--tcc-soft)); display: grid; place-items: center; color: transparent; flex: none; transition: background .1s; }
.tcc-cal-box.is-plain { --eb: var(--tcc-soft); }
.tcc-cal-row > input:checked + .tcc-cal-box { background: var(--eb, var(--tcc-soft)); color: var(--tcc-surface); }
.tcc-cal-row > input:focus-visible + .tcc-cal-box { outline: 2px solid var(--tcc-focus); outline-offset: 2px; }
.tcc-cal-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcc-tzline { margin: 14px 8px 0; }
.tcc-tznote { display: flex; align-items: center; gap: 6px; font-size: 12px; }

.tcc-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 10px 8px 14px; border-radius: 12px; background: var(--tcc-warn-bg); color: var(--tcc-warn); font-size: 13px; font-weight: 600; flex: none; }
.tcc-banner[hidden] { display: none; }
.tcc-banner > span { flex: 1; }
.tcc-banner .tcc-btn { color: var(--tcc-warn); box-shadow: inset 0 0 0 1px currentColor; }

/* ------------------------------------------------------------------ time grid */
.tcc-grid { display: flex; flex-direction: column; height: 100%; min-height: 0; --gut: 64px; }
.tcc-gut { flex: none; width: var(--gut); position: relative; }
.tcc-gh, .tcc-ad { display: flex; flex: none; overflow: hidden; scrollbar-gutter: stable; }
.tcc-gh-days, .tcc-ad-days, .tcc-cols { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--ncol), minmax(0, 1fr)); }
.tcc-gh-gut { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 8px 6px 0; }
.tcc-gmt { font-size: 10px; font-weight: 600; color: var(--tcc-faint); letter-spacing: .02em; }
.tcc-gh-day { text-align: center; padding: 6px 0 4px; min-width: 0; position: relative; }
.tcc-gh-day::after { content: ''; position: absolute; left: 0; bottom: 0; height: 10px; border-left: 1px solid var(--tcc-line); }
.tcc-gh-btn { display: inline-flex; flex-direction: column; align-items: center; background: none; border: 0; color: inherit; cursor: pointer; padding: 0 2px; font: inherit; border-radius: 12px; }
.tcc-gh-dow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tcc-soft); line-height: 26px; }
.tcc-gh-num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; font-weight: 400; color: var(--tcc-ink); margin-top: -4px; transition: background .1s linear; font-variant-numeric: tabular-nums; }
.tcc-gh-btn:hover .tcc-gh-num { background: var(--tcc-surface-3); }
.tcc-gh-day.is-past .tcc-gh-num { color: var(--tcc-soft); }
.tcc-gh-day.is-today .tcc-gh-dow { color: var(--tcc-primary); font-weight: 700; }
.tcc-gh-day.is-today .tcc-gh-num { background: var(--tcc-primary); color: var(--tcc-on-primary); font-weight: 600; }
.tcc-ad { border-bottom: 1px solid var(--tcc-line); }
.tcc-ad-gut { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.tcc-ad-days { position: relative; padding: 2px 0 4px; min-height: 14px; }
.tcc-ad.is-empty .tcc-ad-days { min-height: 12px; padding: 0; }
.tcc-ad-cell { border-left: 1px solid var(--tcc-line); cursor: pointer; min-height: 8px; }
.tcc-ad-more { grid-row: auto; margin: 1px 4px; height: 22px; border: 0; background: none; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 600; color: var(--tcc-soft); text-align: left; padding: 0 8px; cursor: pointer; position: relative; z-index: 1; }
.tcc-ad-more:hover { background: var(--tcc-hover); color: var(--tcc-ink); }
.tcc-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; overscroll-behavior: contain; position: relative; scrollbar-width: thin; }
.tcc-tg { position: relative; display: flex; }
.tcc-hours span { position: absolute; right: 14px; transform: translateY(-50%); font-size: 11px; font-weight: 500; color: var(--tcc-soft); letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.tcc-hours::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 8px; background-image: linear-gradient(to bottom, var(--tcc-line) 1px, transparent 1px); background-size: 100% var(--hour); }
.tcc-cols { position: relative; background-image: linear-gradient(to bottom, var(--tcc-line) 1px, transparent 1px); background-size: 100% var(--hour); }
.tcc-col { position: relative; border-left: 1px solid var(--tcc-line); min-width: 0; }
.tcc-col.is-today { background-color: rgba(79, 195, 247, .045); }
.tcc-col-ev { position: absolute; top: 0; bottom: 0; left: 0; right: 12px; }
.tcc-tg, .tcc-ad, .tcc-gh, .tcc-month, .tcc-strip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tcc-now { position: absolute; left: -1px; right: 0; top: 0; height: 0; border-top: 2px solid var(--tcc-now); z-index: 4; pointer-events: none; will-change: transform; }
.tcc-now-drop { position: absolute; left: -6px; top: -9px; color: var(--tcc-now); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }

/* chips */
.tcc-ev { position: relative; background: var(--ef); color: var(--ei); border-radius: 6px; cursor: pointer; overflow: hidden; font-size: 12px; line-height: 16px; min-width: 0; outline-offset: 1px; transition: box-shadow .12s linear, opacity .12s linear; }
.tcc-ev b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.tcc-ev-l1, .tcc-ev-l2, .tcc-ev-l3 { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; }
.tcc-ev-l2, .tcc-ev-l3 { font-weight: 400; }
.tcc-ev-l2 { text-overflow: ellipsis; display: block; }
.tcc-ev-l3 { display: block; text-overflow: ellipsis; }
.tcc-ev-ic { display: inline-flex; flex: none; color: var(--eb); }
.tcc-ev-tm { flex: none; font-weight: 400; white-space: nowrap; }
.tcc-ev--t, .tcc-ev--bar { container-type: inline-size; }
@container (max-width: 150px) { .tcc-ev--t .tcc-ev-tm, .tcc-ev--bar .tcc-ev-tm { display: none; } }
@container (max-width: 110px) { .tcc-ev--t .tcc-ev-flag, .tcc-ev--t .tcc-ev-rep, .tcc-ev--bar .tcc-ev-flag { display: none; } }
@container (max-width: 64px) { .tcc-ev--t .tcc-ev-ic { display: none; } }
.tcc-ev-flag, .tcc-ev-rep { display: inline-flex; flex: none; margin-left: auto; opacity: .85; }
.tcc-ev-rep + .tcc-ev-flag, .tcc-ev-flag + .tcc-ev-rep { margin-left: 2px; }
.tcc-ev--t { position: absolute; padding: 2px 6px 2px 9px; box-shadow: inset 3px 0 0 var(--eb); display: flex; flex-direction: column; }
.tcc-ev--t .tcc-ev-in { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.tcc-ev--t.is-short { padding-top: 0; padding-bottom: 0; justify-content: center; }
.tcc-ev--t.is-point { border-radius: 11px; padding: 0 8px; justify-content: center; box-shadow: none; max-width: 340px; }
.tcc-ev--t.is-point .tcc-ev-ic { color: var(--eb); }
.tcc-ev--t.is-side { box-shadow: inset 3px 0 0 var(--eb), 0 0 0 1px var(--tcc-surface); }
.tcc-ev--t.is-ct { border-top-left-radius: 0; border-top-right-radius: 0; }
.tcc-ev--t.is-cb { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tcc-ev--t:hover, .tcc-ev--t.is-open { box-shadow: inset 3px 0 0 var(--eb), var(--tcc-shadow-1); z-index: 3; }
.tcc-ev--t.is-point:hover, .tcc-ev--t.is-point.is-open { box-shadow: var(--tcc-shadow-1); }
.tcc-ev--t .tcc-ev-l1 .tcc-ev-tm { opacity: 1; }
.tcc-ev--t.is-short .tcc-ev-tm::before { content: ', '; white-space: pre; margin-left: -4px; }
.tcc-ev-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.tcc-ev-rs::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 16px; margin-left: -8px; height: 3px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: 0; transition: opacity .1s; }
.tcc-ev--t:hover .tcc-ev-rs::after { opacity: .6; }
.tcc-ev--bar { height: 22px; margin: 1px 4px 1px 2px; padding: 0 8px; display: flex; align-items: center; box-shadow: inset 3px 0 0 var(--eb); z-index: 1; line-height: 20px; }
.tcc-ev--bar .tcc-ev-l1 { width: 100%; gap: 5px; }
.tcc-ev--bar .tcc-ev-tm { margin-left: auto; }
.tcc-ev--bar.is-cl { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; box-shadow: none; }
.tcc-ev--bar.is-cr { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.tcc-ev--bar:hover, .tcc-ev--bar.is-open { box-shadow: inset 3px 0 0 var(--eb), var(--tcc-shadow-1); }
/* states */
.tcc-ev.is-needs { background: var(--tcc-surface); color: var(--ei); box-shadow: inset 0 0 0 1.5px var(--eb); }
.tcc-ev.is-needs::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1.5px dashed var(--eb); pointer-events: none; }
.tcc-ev.is-needs { box-shadow: none; }
.tcc-ev.is-maybe { background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--tcc-hatch) 6px 9px); }
.tcc-ev.is-declined { opacity: .6; }
.tcc-ev.is-declined b, .tcc-ev.is-declined .tcc-s-title, .tcc-ev.is-declined .tcc-c-title { text-decoration: line-through; }
.tcc-ev.is-done { opacity: .62; }
.tcc-ev.is-done b, .tcc-ev.is-done .tcc-s-title, .tcc-ev.is-done .tcc-c-title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tcc-ev.is-job.is-done { opacity: .78; }
.tcc-ev.is-job.is-done b { text-decoration: none; }
.tcc-ev.is-past { opacity: .7; }
.tcc-ev.is-dashed { background: var(--tcc-surface); }
.tcc-ev.is-dashed::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1.5px dashed var(--eb); pointer-events: none; }
/* ExtraItem hatched:true (staff "Not available"): diagonal hatch over the tone fill; rows and schedule lines hatch the dot */
.tcc-ev.is-hatched { background-color: var(--ef); background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--tcc-hatch-2) 5px 8px); }
.tcc-ev.is-origin { opacity: .45; }
.tcc-drag { z-index: 20; pointer-events: none; box-shadow: inset 3px 0 0 var(--eb), 0 6px 10px rgba(0, 0, 0, .14), 0 1px 18px rgba(0, 0, 0, .12), 0 3px 5px -1px rgba(0, 0, 0, .2) !important; opacity: 1 !important; width: auto; transition: none !important; }
.tcc.is-dragging, .tcc.is-dragging * { cursor: grabbing !important; }
/* the trade touch: a squeegee wipe across a chip when a task is ticked done */
.tcc-ev.is-wiping::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 70%; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, transparent 0%, transparent 25%, var(--tcc-sheen) 78%, var(--tcc-sheen) 90%, var(--eb) 90%, var(--eb) 94%, transparent 94%);
  transform: translateX(-110%); animation: tcc-wipe .5s cubic-bezier(.45, .05, .25, 1) forwards; }
@keyframes tcc-wipe { to { transform: translateX(160%); } }
.tcc-ghost { position: absolute; left: 0; right: 0; border-radius: 6px; background: var(--tcc-band); color: var(--tcc-ink); box-shadow: inset 3px 0 0 var(--tcc-primary), var(--tcc-shadow-2); padding: 2px 8px 2px 10px; font-size: 12px; line-height: 16px; z-index: 5; overflow: hidden; display: flex; flex-direction: column; pointer-events: none; animation: tcc-ghost 3s ease-in-out infinite; }
.tcc-ghost b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcc-ghost span { white-space: nowrap; }
@keyframes tcc-ghost { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }

/* ------------------------------------------------------------------ month */
.tcc-month { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.tcc-mhead { display: grid; grid-template-columns: repeat(var(--mcols), minmax(0, 1fr)); flex: none; height: 30px; align-items: end; padding-bottom: 4px; }
.tcc-mhead span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tcc-soft); text-align: center; }
.tcc-mrow { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--mcols), minmax(0, 1fr)); border-top: 1px solid var(--tcc-line); }
.tcc-mcell { border-left: 1px solid var(--tcc-line); position: relative; text-align: center; padding-top: 4px; min-width: 0; cursor: pointer; }
.tcc-mcell:first-child { border-left: 0; }
.tcc-mnum { font: inherit; font-size: 12px; font-weight: 600; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--tcc-ink); cursor: pointer; transition: background .1s linear; white-space: nowrap; }
.tcc-mnum:hover { background: var(--tcc-surface-3); }
.tcc-mcell.is-out .tcc-mnum { color: var(--tcc-soft); font-weight: 400; }
.tcc-mcell.is-today .tcc-mnum { background: var(--tcc-primary); color: var(--tcc-on-primary); }
.tcc-mrow-ev { position: absolute; left: 0; right: 0; bottom: 2px; display: grid; grid-template-columns: repeat(var(--mcols), minmax(0, 1fr)); grid-auto-rows: var(--chiph); row-gap: 2px; pointer-events: none; align-content: start; }
.tcc-mrow-ev > * { pointer-events: auto; min-width: 0; }
.tcc-ev--row { margin: 0 4px; height: 22px; border-radius: 6px; display: flex; align-items: center; padding: 0 6px; background: transparent; color: var(--tcc-ink); }
.tcc-ev--row .tcc-ev-l1 { gap: 6px; width: 100%; }
.tcc-ev--row .tcc-ev-tm { color: var(--tcc-soft); }
.tcc-ev--row:hover, .tcc-ev--row.is-open { background: var(--tcc-surface-3); }
.tcc-ev--row.is-needs { background: transparent; color: var(--tcc-ink); }
.tcc-ev--row.is-needs::before { display: none; }
.tcc-ev--row.is-needs .tcc-ev-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--eb); }
.tcc-ev--row.is-maybe { background-image: none; }
.tcc-ev--row.is-maybe .tcc-ev-dot { background: repeating-linear-gradient(135deg, var(--eb) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px var(--eb); }
.tcc-ev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--eb); flex: none; }
.tcc-mmore { margin: 0 4px; font: inherit; font-size: 12px; font-weight: 600; color: var(--tcc-soft); background: none; border: 0; text-align: left; padding: 0 6px; border-radius: 6px; cursor: pointer; height: var(--chiph); line-height: var(--chiph); white-space: nowrap; overflow: hidden; }
.tcc-mmore:hover { background: var(--tcc-surface-3); color: var(--tcc-ink); }

/* ------------------------------------------------------------------ schedule */
.tcc-sch { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 24px; scrollbar-width: thin; position: relative; }
.tcc-sch-day { display: grid; grid-template-columns: 124px minmax(0, 1fr); border-bottom: 1px solid var(--tcc-line); padding: 10px 16px 10px 12px; content-visibility: auto; contain-intrinsic-size: auto 72px; }
/* theme.css paints every <section> with the page colour in dark mode: day groups stay transparent */
.tcc .tcc-sch .tcc-sch-day { background-color: transparent; }
.tcc-sch-date-in { display: flex; align-items: center; gap: 8px; height: 36px; }
.tcc-sch-num { width: 36px; height: 36px; border-radius: 50%; font: inherit; font-size: 18px; font-weight: 500; border: 0; background: none; color: var(--tcc-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.tcc-sch-num:hover { background: var(--tcc-surface-3); }
.tcc-sch-dow { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--tcc-soft); white-space: nowrap; }
.tcc-sch-day.is-today .tcc-sch-num { background: var(--tcc-primary); color: var(--tcc-on-primary); }
.tcc-sch-day.is-today .tcc-sch-dow { color: var(--tcc-primary); }
.tcc-sch-rows { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tcc-sch-empty { padding: 8px 12px; color: var(--tcc-soft); font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.tcc-ev--s { display: grid; grid-template-columns: 150px 20px minmax(0, 1fr); align-items: center; min-height: 36px; border-radius: 999px; padding: 4px 16px 4px 12px; background: transparent; color: var(--tcc-ink); font-size: 14px; line-height: 20px; }
.tcc-ev--s:hover, .tcc-ev--s.is-open { background: var(--tcc-surface-3); }
.tcc-ev--s.is-needs { background: transparent; color: var(--tcc-ink); }
.tcc-ev--s.is-needs::before, .tcc-ev--s.is-dashed::before { display: none; }
.tcc-ev--s.is-needs .tcc-s-dot, .tcc-ev--s.is-dashed .tcc-s-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--eb); }
.tcc-ev--s.is-maybe { background-image: none; }
.tcc-ev--s.is-maybe .tcc-s-dot { background-image: repeating-linear-gradient(135deg, var(--eb) 0 2px, transparent 2px 4px); background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--eb); }
/* hatched extras (see .tcc-ev.is-hatched): month rows and schedule lines hatch the dot; after the dashed rules so hatched wins */
.tcc-ev--row.is-hatched, .tcc-ev--s.is-hatched { background-image: none; }
.tcc-ev--row.is-hatched:not(:hover):not(.is-open), .tcc-ev--s.is-hatched:not(:hover):not(.is-open) { background-color: transparent; }
.tcc-ev--row.is-hatched .tcc-ev-dot, .tcc-ev--s.is-hatched .tcc-s-dot { background: repeating-linear-gradient(135deg, var(--eb) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px var(--eb); }
.tcc-s-time { font-size: 14px; color: var(--tcc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcc-s-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--eb); display: grid; place-items: center; color: var(--tcc-surface); }
.tcc-s-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tcc-s-main .tcc-ev-flag, .tcc-s-main .tcc-ev-rep { margin-left: 0; align-self: center; color: var(--tcc-soft); }
.tcc-s-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcc-s-place { color: var(--tcc-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.tcc-s-now { position: relative; height: 2px; background: var(--tcc-now); margin: 5px 0 5px 4px; border-radius: 1px; }
.tcc-s-now .tcc-now-drop { left: -8px; top: -7px; }
.tcc-sch-sent { height: 40px; display: grid; place-items: center; }
.tcc-sch-sent[data-sent="top"] { height: 1px; }
.tcc-sch-sent[data-sent="top"] .tcc-spinner { display: none; }

/* ------------------------------------------------------------------ overlays */
.tcc-layer--modal, .tcc-layer--fab { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.tcc-layer--pop { position: fixed; inset: 0; z-index: 1210; pointer-events: none; }
/* a layer that is animating out never catches clicks meant for what is under it */
.tcc-layer.is-closing, .tcc-layer.is-closing * { pointer-events: none !important; }
.tcc-scrim { position: absolute; inset: 0; background: var(--tcc-scrim); opacity: 0; transition: opacity .16s linear; }
.tcc-layer.is-open .tcc-scrim { opacity: 1; }
.tcc-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 720px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: var(--tcc-surface); color: var(--tcc-ink); border-radius: 28px; box-shadow: var(--tcc-shadow-2); overflow: hidden; outline: none; transform: translateY(10px) scale(.985); opacity: 0; transition: transform .18s cubic-bezier(.2, 0, 0, 1), opacity .16s linear; }
.tcc-dialog.is-wide { max-width: 960px; }
.tcc-dialog.is-small { max-width: 440px; }
.tcc-layer.is-open .tcc-dialog { transform: none; opacity: 1; }
.tcc-dlg-head { display: flex; align-items: center; gap: 8px; padding: 18px 12px 6px 24px; flex: none; }
.tcc-dlg-title { flex: 1; font-size: 22px; line-height: 28px; font-weight: 600; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tcc-dlg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 20px; }
.tcc-dlg-text { font-size: 15px; color: var(--tcc-soft); line-height: 1.5; overflow-wrap: anywhere; }
.tcc-dlg-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 20px 18px; flex: none; }
.tcc-grab { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 112px; height: 44px; border: 0; background: none; padding: 0; cursor: grab; z-index: 3; display: flex; justify-content: center; border-radius: 0 0 14px 14px; }
.tcc-grab span { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--tcc-line-2); margin-top: 10px; }
.tcc-layer[data-layout="phone"].tcc-layer--modal { align-items: flex-end; padding: 0; }
.tcc-dialog.is-sheet { max-width: 640px; border-radius: 24px 24px 0 0; transform: translateY(100%); opacity: 1; transition: transform .24s cubic-bezier(.2, 0, 0, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tcc-dialog.is-sheet.is-full { height: 92vh; height: 92dvh; max-height: 92dvh; }
.tcc-dialog.is-sheet.is-peek { max-height: 88vh; max-height: 88dvh; }
.tcc-layer.is-open .tcc-dialog.is-sheet { transform: none; }
.tcc-layer.is-closing .tcc-dialog.is-sheet { transform: translateY(100%); }
.tcc-layer.is-closing .tcc-scrim { opacity: 0; }
.tcc-dialog.is-sheet .tcc-dlg-head { padding: 26px 8px 4px 20px; }
.tcc-dialog.is-sheet .tcc-dlg-body { padding: 6px 20px 16px; }
.tcc-dialog.is-sheet .tcc-dlg-foot { padding: 10px 16px 14px; border-top: 1px solid var(--tcc-line); }
.tcc-dialog.is-sheet .tcc-btn { min-height: 44px; }
.tcc-dialog.is-sheet .tcc-btn--primary, .tcc-dialog.is-sheet .tcc-btn--danger { min-height: 48px; }
.tcc-dialog.is-sheet .tcc-btn--icon { width: 44px; height: 44px; min-height: 44px; }
.tcc-dialog.is-sheet .tcc-dlg-foot .tcc-btn { flex: 1; }

.tcc-pop { position: fixed; pointer-events: auto; background: var(--tcc-surface); color: var(--tcc-ink); border-radius: 24px; box-shadow: var(--tcc-shadow-2); max-height: calc(100vh - 16px); overflow: auto; overscroll-behavior: contain; outline: none; opacity: 0; transform: scale(.97); transform-origin: top left; transition: opacity .12s linear, transform .14s cubic-bezier(.2, 0, 0, 1); }
:root[data-theme="dark"] .tcc-pop, :root[data-theme="dark"] .tcc-dialog { background: var(--tcc-surface-2); }
:root[data-theme="dark"] .tcc-pop [style*="--b:"], :root[data-theme="dark"] .tcc-dialog [style*="--b:"] { --ef: var(--fd); }
.tcc-layer.is-open .tcc-pop { opacity: 1; transform: none; }
.tcc-pop.tcc-menu { border-radius: 12px; padding: 6px 0; }
.tcc-menu-list { display: flex; flex-direction: column; }
.tcc-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 16px 0 14px; border: 0; background: none; color: var(--tcc-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.tcc-menu-item .tcc-i { color: var(--tcc-soft); }
.tcc-menu-item:hover, .tcc-menu-item:focus-visible { background: var(--tcc-hover); outline: none; }
.tcc-menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--tcc-focus); }
.tcc-menu-item.is-current { background: var(--tcc-band); font-weight: 600; }
.tcc-menu-item.is-danger { color: var(--tcc-danger); }
.tcc-menu-check { width: 18px; height: 18px; display: inline-flex; flex: none; color: var(--tcc-ink); }
.tcc-menu-label { flex: 1; min-width: 0; }
.tcc-menu-hint { margin-left: auto; color: var(--tcc-soft); font-size: 12px; font-weight: 600; }
.tcc-menu-div { height: 1px; background: var(--tcc-line); margin: 6px 0; }
.tcc-menu-head { font-size: 12px; font-weight: 700; color: var(--tcc-soft); padding: 8px 16px 4px; }
.tcc-menu-sheet .tcc-dlg-body { padding: 36px 8px 12px; }
.tcc-menu-sheet .tcc-menu-item { min-height: 52px; font-size: 16px; border-radius: 12px; padding: 0 16px; }

.tcc-scope { display: flex; flex-direction: column; gap: 4px; }
.tcc-scope-opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.tcc-scope-opt:hover { background: var(--tcc-hover); }
.tcc-layer .tcc-scope-opt input { width: 18px; height: 18px; min-height: 0; accent-color: var(--tcc-primary); margin: 0; padding: 0; border: 0; background: none; box-shadow: none; flex: none; }
.tcc .tcc-cal-row > input, .tcc-layer .tcc-cal-row > input, .tcc .tcc-switch > input, .tcc-layer .tcc-switch > input { padding: 0; border: 0; }

.tcc-layer--toast { position: fixed; left: 24px; bottom: 24px; z-index: 1220; pointer-events: none; max-width: calc(100vw - 32px); }
.tcc-layer--toast[data-layout="phone"] { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); display: flex; justify-content: center; }
.tcc-toast { pointer-events: auto; display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 4px 6px 4px 16px; border-radius: 12px; background: var(--tcc-inverse); color: var(--tcc-on-inverse); box-shadow: var(--tcc-shadow-2); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity .16s linear, transform .2s cubic-bezier(.2, 0, 0, 1); max-width: 560px; }
.tcc-layer--toast.is-open .tcc-toast { opacity: 1; transform: none; }
/* a hidden toast must not block the buttons under it */
.tcc-layer--toast:not(.is-open) .tcc-toast { pointer-events: none; visibility: hidden; transition: opacity .16s linear, transform .2s cubic-bezier(.2, 0, 0, 1), visibility 0s linear .2s; }
.tcc-layer--toast[data-layout="phone"] .tcc-toast-undo { min-height: 44px; }
.tcc-layer--toast[data-layout="phone"] .tcc-toast-x { width: 44px; height: 44px; }
.tcc-toast-msg { padding-right: 8px; }
.tcc-toast-undo { background: none; border: 0; color: var(--tcc-inverse-action); font: inherit; font-weight: 700; font-size: 14px; min-height: 40px; padding: 0 12px; border-radius: 8px; cursor: pointer; }
.tcc-toast-undo:hover { background: rgba(127, 127, 127, .16); }
.tcc-toast-x { background: none; border: 0; color: var(--tcc-on-inverse); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; opacity: .8; }

/* quick create */
.tcc-qc { padding: 10px 16px 16px 8px; }
.tcc-qc-head { display: flex; align-items: center; gap: 4px; padding: 4px 0 6px 48px; }
.tcc-layer .tcc-qc-title { flex: 1; min-width: 0; font: inherit; font-size: 22px; line-height: 30px; border: 0; border-bottom: 1px solid var(--tcc-line-2); border-radius: 0; background: transparent; color: var(--tcc-ink); padding: 6px 2px; outline: none; transition: border-color .12s; }
.tcc-layer .tcc-qc-title:focus { border-bottom: 2px solid var(--tcc-focus); padding-bottom: 5px; }
:root[data-theme="dark"] .tcc-layer .tcc-qc-title { background: transparent; }
.tcc-qc-types { margin: 8px 0 8px 48px; }
.tcc-qc-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; min-height: 40px; width: 100%; border: 0; background: none; color: var(--tcc-ink); font: inherit; font-size: 14px; text-align: left; border-radius: 10px; padding: 0 8px 0 0; margin: 1px 0; }
.tcc-qc-act { cursor: pointer; color: var(--tcc-soft); }
.tcc-qc-act:hover { background: var(--tcc-hover); color: var(--tcc-ink); }
.tcc-qc-on b { font-weight: 600; }
.tcc-qc-ic { display: flex; justify-content: center; color: var(--tcc-soft); }
.tcc-qc-when { border: 0; background: none; font: inherit; font-size: 14px; color: var(--tcc-ink); text-align: left; padding: 8px 10px; margin-left: -10px; border-radius: 8px; cursor: pointer; }
.tcc-qc-when:hover { background: var(--tcc-hover); }
.tcc-qc-whenedit { margin: 0 0 6px 48px; display: flex; flex-direction: column; gap: 8px; }
.tcc-qc-whenedit[hidden] { display: none; }
.tcc-qc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.tcc-qc-row .tcc-input, .tcc-qc-row .tcc-textarea { grid-column: 2 / 4; }
.tcc-qc-err { margin: 6px 0 0 48px; color: var(--tcc-danger); font-size: 13px; font-weight: 600; }
.tcc-qc-err[hidden] { display: none; }
.tcc-qc-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 14px; }
.tcc-qc-foot [hidden] { display: none; }
.tcc-qc-sheet .tcc-dlg-body { padding: 30px 12px 12px 4px; }
.tcc-qc-sheet .tcc-qc { padding: 0 8px 4px 0; }
.tcc-qc-sheet .tcc-qc-head { padding-left: 44px; }
.tcc-qc-sheet .tcc-qc-types, .tcc-qc-sheet .tcc-qc-whenedit, .tcc-qc-sheet .tcc-qc-err { margin-left: 44px; }
.tcc-qc-sheet .tcc-qc-row { grid-template-columns: 44px minmax(0, 1fr) auto; min-height: 44px; }
.tcc-qc-sheet .tcc-seg > button { min-height: 44px; font-size: 14px; }
.tcc-qc-sheet .tcc-qc-foot .tcc-btn { min-height: 48px; flex: 1; }
.tcc-qc-sheet .tcc-input { font-size: 16px; min-height: 44px; }
.tcc-qc-sheet .tcc-qc-title { font-size: 22px; }
.tcc-qc-sheet .tcc-switch { min-height: 44px; }

/* detail */
.tcc-dt { display: flex; flex-direction: column; min-height: 0; }
.tcc-dt-bar { display: flex; justify-content: flex-end; gap: 2px; padding: 8px 8px 0; flex: none; }
.tcc-dt-body { padding: 0 24px 12px 0; }
.tcc-dt-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; padding: 7px 0; }
.tcc-dt-lead { display: flex; justify-content: center; padding-top: 1px; color: var(--tcc-soft); }
.tcc-dt-c { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.tcc-dt-c p + p, .tcc-dt-c p + a, .tcc-dt-c p + .tcc-link { margin-top: 2px; }
.tcc-dt-titlerow { padding-top: 0; }
.tcc-dt-sw { width: 16px; height: 16px; border-radius: 5px; background: var(--eb); margin-top: 7px; }
.tcc-dt-title { font-size: 22px; line-height: 28px; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.tcc-dt-when { margin-top: 4px; font-size: 14px; color: var(--tcc-ink); }
.tcc-dt-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--tcc-soft); font-size: 13px; }
.tcc-dt-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tcc-dt-h { font-weight: 600; margin-bottom: 4px; }
.tcc-dt-desc { white-space: normal; color: var(--tcc-ink); max-height: 220px; overflow: auto; }
.tcc-dt-note .tcc-dt-c { color: var(--tcc-danger); font-weight: 500; }
.tcc-dt-foot { padding: 12px 20px 16px; border-top: 1px solid var(--tcc-line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: none; }
.tcc-btn--join { min-height: 40px; }
.tcc-going { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.tcc-going-q { font-weight: 600; font-size: 14px; }
.tcc-going .tcc-seg > button { min-height: 36px; padding: 0 14px; }
.tcc-going .tcc-seg > button.is-on { background: var(--tcc-primary); color: var(--tcc-on-primary); }
.tcc-dt-offnote { width: 100%; font-size: 12px; }
.tcc-guests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tcc-guests li { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.tcc-guests.is-clipped li:nth-child(n+7) { display: none; }
.tcc-g-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcc-atts { display: flex; flex-wrap: wrap; gap: 6px; }
.tcc-att { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tcc-line-2); background: var(--tcc-surface); color: var(--tcc-ink); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.tcc-att:hover { background: var(--tcc-hover); }
.tcc-att .tcc-i { color: var(--tcc-soft); }
.tcc-att-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tcc-att-s { color: var(--tcc-soft); font-size: 12px; white-space: nowrap; }
.tcc-att-lock { display: inline-flex; color: var(--tcc-soft); }
.tcc-dt-sheet .tcc-dlg-body { padding: 0; }
.tcc-dt-sheet .tcc-dt-bar { padding: 4px 8px 0; min-height: 48px; }
.tcc-dt-sheet .tcc-dt-body { padding-right: 20px; }
.tcc-dt-sheet .tcc-dt-bar .tcc-btn--icon { width: 44px; height: 44px; }
.tcc-dt-sheet .tcc-dt-foot { padding-bottom: 16px; }
/* the reply and Mark done buttons stay in reach on a long item: the footer sticks to the bottom of the sheet or card */
.tcc-dt-sheet .tcc-dt-foot, .tcc-dt-pop .tcc-dt-foot { position: sticky; bottom: 0; z-index: 2; background: var(--tcc-surface); }
:root[data-theme="dark"] .tcc-dt-sheet .tcc-dt-foot, :root[data-theme="dark"] .tcc-dt-pop .tcc-dt-foot { background: var(--tcc-surface-2); }
.tcc-dialog.is-sheet.tcc-dt-sheet .tcc-dlg-body { padding-bottom: 0; }
.tcc-dt-sheet .tcc-going .tcc-seg { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.tcc-dt-sheet .tcc-going .tcc-seg > button { min-height: 44px; justify-content: center; }
.tcc-dt-sheet .tcc-going-q { flex-basis: 100%; }
.tcc-dt-sheet .tcc-going .tcc-seg { grid-template-columns: 1fr 1fr 1.7fr; }
.tcc-dt-sheet .tcc-going .tcc-seg > button { padding: 0 8px; text-align: center; line-height: 1.2; }
.tcc-dt-sheet .tcc-dt-foot > .tcc-btn { flex: 1; min-height: 48px; }
.tcc-dt-sheet .tcc-att, .tcc-dt-sheet .tcc-btn--join { min-height: 44px; }
.tcc-dt-sheet .tcc-link { min-height: 44px; }
.tcc-daylist { padding: 8px 8px 12px; }
.tcc-daylist-head { display: flex; flex-direction: column; align-items: center; position: relative; padding: 4px 0 8px; }
.tcc-daylist-head .tcc-btn--icon { position: absolute; right: 0; top: 0; }
.tcc-daylist-dow { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--tcc-soft); }
.tcc-daylist-num { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; font: inherit; font-size: 24px; color: var(--tcc-ink); cursor: pointer; }
.tcc-daylist-num:hover { background: var(--tcc-surface-3); }
.tcc-daylist-list { display: flex; flex-direction: column; gap: 2px; }
.tcc-daylist-list .tcc-ev--bar, .tcc-daylist-list .tcc-ev--row { margin: 0; }
.tcc-results { display: flex; flex-direction: column; padding: 6px; }
.tcc-result { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; min-height: 48px; }
.tcc-result:hover, .tcc-result:focus { background: var(--tcc-hover); outline: none; }
.tcc-result:focus-visible { box-shadow: inset 0 0 0 2px var(--tcc-focus); }
.tcc-result-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--eb); flex: none; }
.tcc-result-m { display: flex; flex-direction: column; min-width: 0; }
.tcc-result-m b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcc-result-m span { font-size: 12px; color: var(--tcc-soft); }
.tcc-sr-hint { padding: 14px 16px; font-size: 13px; }
.tcc-search-pop { border-radius: 16px; }
.tcc-searchsheet .tcc-input { font-size: 16px; min-height: 48px; }
.tcc-keys { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.tcc-keys div { display: flex; align-items: center; gap: 12px; }
.tcc-keys dt { min-width: 64px; }
.tcc-keys dd { margin: 0; color: var(--tcc-soft); }
.tcc-keys kbd { font: inherit; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--tcc-surface-3); box-shadow: inset 0 -1px 0 var(--tcc-line-2); }
.tcc-layers .tcc-cal-row { min-height: 48px; font-size: 15px; }
.tcc-layers .tcc-tzline { margin: 8px 12px; }
.tcc-layers .tcc-switch { padding: 0 12px; min-height: 48px; font-size: 15px; }
.tcc-layers-sheet .tcc-dlg-body { padding-left: 12px; padding-right: 12px; }

/* ------------------------------------------------------------------ phone layout */
.tcc[data-layout="phone"] { display: flex; flex-direction: column; }
.tcc-ph-head { display: flex; align-items: center; gap: 0; padding: 6px 4px 0 8px; min-height: 56px; flex: none; }
.tcc-ph-title { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-family: var(--tcc-display); font-size: 22px; font-weight: 700; line-height: 1.1; background: none; border: 0; color: var(--tcc-ink); padding: 0 8px; border-radius: 12px; cursor: pointer; white-space: nowrap; min-width: 0; }
.tcc-ph-title .tcc-i { color: var(--tcc-soft); transition: transform .18s; }
.tcc.is-strip-open .tcc-ph-title .tcc-i { transform: rotate(180deg); }
.tcc-ph-title-t { overflow: hidden; text-overflow: ellipsis; }
.tcc[data-layout="phone"] .tcc-btn--icon { width: 44px; height: 44px; color: var(--tcc-ink); }
.tcc-todaybox { width: 22px; height: 22px; border: 2px solid currentColor; border-top-width: 5px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; line-height: 1; padding-top: 1px; }
.tcc-strip { flex: none; padding: 0 8px; position: relative; touch-action: none; }
.tcc-strip[hidden] { display: none; }
.tcc.is-strip-open .tcc-strip-week { display: none; }
.tcc-strip-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; will-change: transform; }
.tcc-sd { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; border: 0; background: none; border-radius: 14px; color: var(--tcc-ink); padding: 4px 0 0; cursor: pointer; font: inherit; min-width: 0; }
.tcc-sd-dow { font-size: 11px; font-weight: 600; color: var(--tcc-soft); line-height: 14px; }
.tcc-sd-num { font-size: 16px; font-weight: 600; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.tcc-sd.is-today .tcc-sd-num { box-shadow: inset 0 0 0 2px var(--tcc-primary); color: var(--tcc-primary); }
.tcc-sd.is-sel .tcc-sd-num { background: var(--tcc-primary); color: var(--tcc-on-primary); box-shadow: none; }
.tcc-sd-dots { display: flex; gap: 3px; height: 5px; justify-content: center; }
.tcc-sd-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--eb); display: block; }
.tcc-strip-grab { display: flex; justify-content: center; width: 100%; height: 14px; border: 0; background: none; padding: 0; cursor: pointer; }
.tcc-strip-grab span { display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--tcc-line-2); margin-top: 4px; }
.tcc-mexp { padding: 4px 0 2px; }
.tcc-mexp[hidden] { display: none; }
.tcc-mexp-head { display: flex; align-items: center; justify-content: space-between; }
.tcc-mexp-title { font-weight: 700; font-size: 15px; }
.tcc-mexp-dows { display: grid; grid-template-columns: repeat(7, 1fr); }
.tcc-mexp-dows span { text-align: center; font-size: 11px; font-weight: 600; color: var(--tcc-soft); line-height: 20px; }
.tcc-mexp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); will-change: transform; }
.tcc-md { min-height: 44px; border: 0; background: none; font: inherit; color: var(--tcc-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; cursor: pointer; padding: 0; }
.tcc-md-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.tcc-md.is-out { color: var(--tcc-soft); }
.tcc-md.is-out .tcc-md-num { font-weight: 400; }
.tcc-md.is-today .tcc-md-num { box-shadow: inset 0 0 0 2px var(--tcc-primary); color: var(--tcc-primary); }
.tcc-md.is-sel .tcc-md-num { background: var(--tcc-primary); color: var(--tcc-on-primary); box-shadow: none; }
.tcc[data-layout="phone"] .tcc-banner { margin: 2px 8px 6px; }
.tcc-ph-body { flex: 1; min-height: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -1px 0 var(--tcc-line), 0 -6px 18px rgba(13, 27, 75, .05); margin-top: 2px; }
:root[data-theme="dark"] .tcc-ph-body { box-shadow: 0 -1px 0 var(--tcc-line); }
.tcc[data-layout="phone"] .tcc-grid { --gut: 46px; }
.tcc[data-layout="phone"] .tcc-gh-day { padding: 4px 0 2px; }
.tcc[data-layout="phone"] .tcc-gh-btn { min-width: 44px; min-height: 50px; }
.tcc[data-layout="phone"] .tcc-gh-dow { font-size: 11px; line-height: 18px; letter-spacing: .05em; }
.tcc[data-layout="phone"] .tcc-gh-num { width: 32px; height: 32px; font-size: 17px; margin-top: 0; }
.tcc[data-layout="phone"] .tcc-gh-gut { padding: 0 4px 8px 0; }
.tcc[data-layout="phone"] .tcc-gmt { font-size: 9px; }
.tcc[data-layout="phone"] .tcc-hours span { right: 11px; font-size: 10.5px; }
.tcc[data-layout="phone"] .tcc-col-ev { right: 6px; }
.tcc[data-layout="phone"] .tcc-scroll { touch-action: pan-y; }
.tcc[data-layout="phone"] .tcc-ev--t { font-size: 12.5px; line-height: 16px; padding: 3px 5px 3px 8px; }
.tcc[data-layout="phone"] .tcc-ev--bar { height: 20px; margin: 1px 2px; font-size: 12px; }
.tcc[data-layout="phone"] .tcc-ad-more { height: 20px; font-size: 11.5px; padding: 0 4px; margin: 1px 2px; }
.tcc[data-layout="phone"] .tcc-month { touch-action: pan-y; }
.tcc[data-layout="phone"] .tcc-mhead { height: 26px; }
.tcc[data-layout="phone"] .tcc-mcell { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; width: 100%; height: 100%; border: 0; border-left: 1px solid var(--tcc-line); border-radius: 0; background: none; font: inherit; color: inherit; padding: 3px 0 0; }
.tcc[data-layout="phone"] .tcc-mcell:first-child { border-left: 0; }
.tcc[data-layout="phone"] .tcc-mcell .tcc-mnum { font-size: 12px; height: 20px; min-width: 20px; padding: 0 5px; }
.tcc[data-layout="phone"] .tcc-mrow-ev, .tcc[data-layout="phone"] .tcc-mrow-ev > * { pointer-events: none; }
.tcc-ev--mini { margin: 0 2px; height: 17px; border-radius: 4px; font-size: 10.5px; line-height: 17px; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: clip; box-shadow: inset 2px 0 0 var(--eb); }
.tcc-ev--mini b { font-weight: 600; }
.tcc[data-layout="phone"] .tcc-mmore { font-size: 10.5px; padding: 0 3px; margin: 0 2px; }
.tcc[data-layout="phone"] .tcc-sch { padding: 0 0 96px; }
.tcc[data-layout="phone"] .tcc-sch-day { grid-template-columns: 52px minmax(0, 1fr); padding: 4px 12px 4px 2px; border-bottom: 0; contain-intrinsic-size: auto 90px; }
.tcc[data-layout="phone"] .tcc-sch-date { position: relative; }
.tcc[data-layout="phone"] .tcc-sch-date-in { position: sticky; top: 6px; flex-direction: column; justify-content: flex-start; gap: 0; height: auto; padding-top: 6px; }
.tcc[data-layout="phone"] .tcc-sch-dow { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.tcc[data-layout="phone"] .tcc-sch-num { font-size: 20px; font-weight: 600; width: 36px; height: 36px; cursor: default; }
.tcc[data-layout="phone"] .tcc-sch-num:hover { background: none; }
.tcc[data-layout="phone"] .tcc-sch-day.is-today .tcc-sch-num { background: var(--tcc-primary); color: var(--tcc-on-primary); }
.tcc[data-layout="phone"] .tcc-sch-rows { gap: 6px; padding: 6px 0; }
.tcc-sch-week { padding: 14px 16px 2px 56px; font-size: 12px; font-weight: 600; color: var(--tcc-soft); letter-spacing: .02em; }
.tcc[data-layout="phone"] .tcc-sch-empty { padding: 10px 2px; min-height: 48px; }
.tcc-ev--card { display: block; border-radius: 12px; background: var(--ef); color: var(--ei); box-shadow: inset 4px 0 0 var(--eb); padding: 8px 12px 9px 14px; min-height: 56px; font-size: 13px; line-height: 18px; }
.tcc-ev--card .tcc-ev-in { display: flex; flex-direction: column; gap: 1px; }
.tcc-c-top { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; min-width: 0; }
.tcc-c-time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcc-c-pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 999px; background: var(--tcc-surface); color: var(--ei); white-space: nowrap; line-height: 18px; }
.tcc-c-title { display: block; font-size: 15px; font-weight: 600; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcc-c-sub { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcc-ev--card.is-needs::before, .tcc-ev--card.is-dashed::before { border-width: 1.5px; }
.tcc[data-layout="phone"] .tcc-s-now { margin: 2px 0 2px 6px; }
.tcc-fab { position: absolute; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--tcc-primary); color: var(--tcc-on-primary); box-shadow: var(--tcc-shadow-2); z-index: 6; display: grid; place-items: center; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tcc-fab:active { transform: scale(.96); }
.tcc-fab[hidden] { display: none; }
.tcc-layer--fab { display: block; padding: 0; }
.tcc-layer--fab .tcc-fab--close { position: fixed; right: auto; bottom: auto; }
.tcc-fabmenu { position: fixed; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.tcc-fabitem { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 6px 0 20px; border-radius: 26px; border: 0; background: var(--tcc-surface); color: var(--tcc-ink); box-shadow: var(--tcc-shadow-2); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .16s linear, transform .2s cubic-bezier(.2, 0, 0, 1); }
:root[data-theme="dark"] .tcc-fabitem { background: var(--tcc-surface-3); }
.tcc-fabitem-i { width: 40px; height: 40px; border-radius: 50%; background: var(--tcc-band); display: grid; place-items: center; color: var(--tcc-ink); }
.tcc-layer--fab.is-open .tcc-fabitem { opacity: 1; transform: none; }
.tcc-layer--fab.is-open .tcc-fabitem:nth-last-child(2) { transition-delay: .02s; }
.tcc-layer--fab.is-open .tcc-fabitem:nth-last-child(3) { transition-delay: .04s; }
.tcc-layer--fab.is-open .tcc-fabitem:nth-last-child(4) { transition-delay: .06s; }
.tcc-layer--fab.is-open .tcc-fabitem:nth-last-child(5) { transition-delay: .08s; }
.tcc-layer--fab.is-open .tcc-fabitem:nth-last-child(6) { transition-delay: .1s; }

/* touch screens keep :hover after a tap; drop the hover tints there */
@media (hover: none) {
  .tcc-qc-act:hover, .tcc-list-item:hover, .tcc-menu-item:hover, .tcc-att:hover, .tcc-result:hover, .tcc-cal-row:hover, .tcc-scope-opt:hover,
  .tcc-seg > button:not(.is-on):hover, .tcc-btn:not(.tcc-btn--primary):not(.tcc-btn--danger):hover, .tcc-mini-d:hover, .tcc-mnum:hover { background-color: transparent; }
  .tcc-qc-act:hover { color: var(--tcc-soft); }
}

/* ------------------------------------------------------------------ motion, contrast modes */
@media (prefers-reduced-motion: reduce) {
  .tcc *, .tcc-layer, .tcc-layer * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; }
  .tcc-ghost { animation: none !important; }
  .tcc-ev.is-wiping::after { display: none; }
  .tcc-dialog.is-sheet { transform: none; }
}
@media (forced-colors: active) {
  .tcc-ev { border: 1px solid CanvasText; forced-color-adjust: auto; }
  .tcc-now { border-top-color: Mark; }
  .tcc-now-drop, .tcc-s-now { color: Mark; background: Mark; }
  .tcc-gh-day.is-today .tcc-gh-num, .tcc-mini-d.is-today, .tcc-sd.is-sel .tcc-sd-num, .tcc-mcell.is-today .tcc-mnum { border: 2px solid Highlight; }
  .tcc-mini-cell.is-band { outline: 1px solid Highlight; }
  .tcc-dialog, .tcc-pop { border: 1px solid CanvasText; }
}
@media print {
  .tcc-side, .tcc-top .tcc-btn, .tcc-fab { display: none !important; }
}
/* host pages: the floating light switch (theme.js, z 99997) sits above our overlays; hide it while any calendar
   sheet, dialog, popover or menu is open (our own toast layer stays in the page after it fades, so it does not count) */
body:has(.tcc-layer:not(.tcc-layer--toast)) #tc-theme-toggle { display: none !important; }
