/* 2.7.0 Today board (web/today.js). Glass cards on the Solar Gain mesh, a sky header that follows the time of day,
   one memorable piece (the sun and crews in 3D), everything else quiet. Colors: navy #243D90, gold #FCB537, service
   teal, Google blue. Four looks: sunrise (default), monsoon, desert, night. */
.tb { --tb-gap: 16px; --tb-pad: 16px; --k-google: #3552B5; --k-install: #E39A17; --k-service: #17988a;
  --tb-sky-a: #ffe6b0; --tb-sky-b: #ffd1a6; --tb-sky-c: #cfdcff; --tb-head-ink: var(--ink); --tb-mod: var(--sg-gold-deep);
  max-width: 1480px; margin: 0 auto; padding: 18px 20px 72px; }
.tb.compact { --tb-gap: 10px; --tb-pad: 12px; }
.tb[data-accent="monsoon"] { --tb-sky-a: #d7def3; --tb-sky-b: #b9c6ea; --tb-sky-c: #e9eef9; --tb-mod: #3552B5; }
.tb[data-accent="desert"] { --tb-sky-a: #f6dcc4; --tb-sky-b: #eab995; --tb-sky-c: #f8ece0; --tb-mod: #b9652e; }
.tb[data-accent="night"] { --tb-sky-a: #1b2a5c; --tb-sky-b: #243D90; --tb-sky-c: #0f1733; --tb-head-ink: #f6f3ea; --tb-mod: #FCB537; }
/* time of day tints the sunrise sky (morning warm, day clear, evening amber, night deep) */
.tb[data-accent="sunrise"][data-tod="day"] { --tb-sky-a: #fff1c9; --tb-sky-b: #ffe2a8; --tb-sky-c: #d6e4ff; }
.tb[data-accent="sunrise"][data-tod="evening"] { --tb-sky-a: #ffd6a0; --tb-sky-b: #f7b08a; --tb-sky-c: #c9c8ef; }
.tb[data-accent="sunrise"][data-tod="night"] { --tb-sky-a: #2b3a6e; --tb-sky-b: #3b3f78; --tb-sky-c: #151d3d; --tb-head-ink: #f6f3ea; }

/* ---------------------------------------------------------------- header */
.tb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: var(--tb-gap); border-radius: 28px; color: var(--tb-head-ink); }
.tb-head.sky { background: radial-gradient(120% 140% at 12% 0%, var(--tb-sky-a), transparent 60%), radial-gradient(90% 120% at 88% 10%, var(--tb-sky-c), transparent 62%), linear-gradient(120deg, var(--tb-sky-b), var(--tb-sky-c));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 10px 30px rgb(var(--sg-blue-rgb) / .10); }
.tb-head-t { min-width: 0; }
.tb-date { font-size: 13px; font-weight: 550; letter-spacing: .01em; opacity: .72; }
.tb-head h1 { margin: 2px 0 4px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.025em; font-weight: 720; }
.tb-sum { margin: 0; font-size: 15px; line-height: 1.4; opacity: .82; }
.tb-head-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-head .tb-seg, .tb-head .tb-ic, .tb-head .tb-btn { background: rgb(255 255 255 / .55); }
.tb[data-accent="night"] .tb-head .tb-seg, .tb[data-accent="night"] .tb-head .tb-ic, .tb[data-accent="night"] .tb-head .tb-btn,
.tb[data-accent="sunrise"][data-tod="night"] .tb-head :is(.tb-seg, .tb-ic, .tb-btn) { background: rgb(255 255 255 / .12); color: #f6f3ea; border-color: rgb(255 255 255 / .2); }
.tb[data-accent="night"] .tb-head .tb-seg button[aria-pressed="true"], .tb[data-accent="sunrise"][data-tod="night"] .tb-head .tb-seg button[aria-pressed="true"] { background: rgb(255 255 255 / .9); color: var(--ink); }

/* ---------------------------------------------------------------- controls */
.tb-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgb(var(--sg-blue-rgb) / .06); border: 1px solid var(--line); }
.tb-seg button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 550; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.tb-seg button[aria-pressed="true"] { background: var(--panel-solid, #fff); color: var(--ink); box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .14); }
.tb-seg button:active, .tb-btn:active, .tb-ic:active, .tb-chip:active, .tb-preset:active { transform: scale(.97); transition: transform 90ms ease-out; }
.tb-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--icon); cursor: pointer; }
.tb-ic:hover { color: var(--ink); background: var(--panel-solid, #fff); }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tb-btn.on { background: var(--sg-blue); color: #fff; border-color: var(--sg-blue); }
.tb-chip { border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.tb-chip[aria-pressed="true"] { background: var(--sg-blue); border-color: var(--sg-blue); color: #fff; }
.tb :is(button, a):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------------------------------------------------------------- grid and cards */
.tb-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tb-gap); align-items: start; }
.tb-grid.stale { opacity: .7; transition: opacity .2s; }
.tb-card { position: relative; grid-column: span 1; min-width: 0; background: var(--panel); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--r-card, 22px); box-shadow: var(--glass-edge), var(--sh-1); display: flex; flex-direction: column; }
.tb-card.sz-m { grid-column: span 2; } .tb-card.sz-l { grid-column: span 4; }
.tb-card-h { display: flex; align-items: center; gap: 8px; padding: 12px var(--tb-pad) 6px 8px; min-height: 44px; }
.tb-card-h h2 { margin: 0; font-size: 14.5px; font-weight: 680; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-card-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgb(var(--sg-blue-rgb) / .07); color: var(--sg-blue-lift); flex: none; }
.w-sun .tb-card-ic, .w-weather .tb-card-ic { background: rgb(var(--sg-gold-rgb) / .2); color: #a86a00; }
.w-calendar .tb-card-ic { background: rgb(53 82 181 / .1); }
.tb-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgb(var(--sg-blue-rgb) / .07); font-size: 12px; font-weight: 650; color: var(--ink-2); text-align: center; text-decoration: none; }
a.tb-count:hover { background: var(--sg-blue); color: #fff; }
.tb-card-b { padding: 0 var(--tb-pad) var(--tb-pad); min-width: 0; }
.tb-grip { display: inline-grid; place-items: center; width: 22px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: grab; touch-action: none; opacity: .45; flex: none; }
.tb-card:hover .tb-grip, .tb-grip:focus-visible, .customizing .tb-grip { opacity: 1; }
.tb-grip:hover { background: var(--hover); color: var(--ink); }
/* drag: the slot keeps the place (dashed), a floating copy follows the pointer */
@media (hover: hover) and (pointer: fine) { .tb-card-h { cursor: grab; } .tb-card-h :is(button, a, input, select, [role="group"]) { cursor: pointer; } }
.tb-card.slot { background: rgb(var(--sg-blue-rgb) / .04); box-shadow: inset 0 0 0 2px rgb(var(--sg-blue-rgb) / .16); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tb-card.slot > * { visibility: hidden; }
.tb-ghost { box-shadow: var(--glass-edge), 0 2px 6px rgb(var(--sg-blue-rgb) / .12), 0 24px 56px rgb(var(--sg-blue-rgb) / .28); cursor: grabbing; will-change: left, top, transform; transform-origin: 50% 30%; background: rgb(255 255 255 / .92); }
.tb-ghost .tb-grip { opacity: 1; color: var(--ink); }
.tb-ghost-canvas { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 110%, rgb(var(--sg-gold-rgb) / .28), transparent 60%), linear-gradient(180deg, #dfe8ff 0%, #f6f1e6 78%); }
body:has(.tb-ghost) { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.tb-grid.dragging .tb-card:not(.slot) { transition: none; }
.customizing .tb-card { outline: 1.5px dashed rgb(var(--sg-blue-rgb) / .18); outline-offset: -1.5px; }
.tb-size { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgb(var(--sg-blue-rgb) / .06); }
.tb-size button { border: 0; background: transparent; font: inherit; font-size: 11px; font-weight: 650; width: 24px; height: 22px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.tb-size button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .14); }
.tb-skel { min-height: 180px; padding: 18px; gap: 10px; }
.tb-skel div, .tb-skel-list span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgb(var(--sg-blue-rgb) / .06), rgb(var(--sg-blue-rgb) / .12), rgb(var(--sg-blue-rgb) / .06)); background-size: 200% 100%; animation: tb-shimmer 1.4s linear infinite; }
.tb-skel div:nth-child(1) { width: 40%; } .tb-skel div:nth-child(2) { width: 80%; } .tb-skel div:nth-child(3) { width: 65%; }
.tb-skel-list { display: grid; gap: 10px; padding: 6px 0; } .tb-skel-list span:nth-child(2) { width: 70%; } .tb-skel-list span:nth-child(3) { width: 50%; }
@keyframes tb-shimmer { to { background-position: -200% 0; } }
.tb-empty { margin: 4px 0; color: var(--muted); font-size: 13px; }
.tb-emptyboard { padding: 28px; text-align: center; align-items: center; gap: 6px; }
.tb-emptyboard h2 { margin: 0; font-size: 18px; }

/* ---------------------------------------------------------------- lists */
.tb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tb-list .nv-row { border-radius: 10px; }
.tb-list-f { display: flex; align-items: center; gap: 8px; padding-top: 8px; }

/* ---------------------------------------------------------------- at a glance */
.tb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.tb-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgb(255 255 255 / .55); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .15s; }
a.tb-stat:hover { background: #fff; }
.tb-stat b { font-size: 26px; line-height: 1; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb-stat span:last-child { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tb-stat-ic { grid-row: 1; width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: rgb(var(--sg-blue-rgb) / .07); color: var(--sg-blue-lift); }
.tb-stat.zero b { color: var(--faint); }

/* ---------------------------------------------------------------- sun and crews */
.tb-sun-stage { position: relative; height: 240px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, rgb(var(--sg-gold-rgb) / .28), transparent 60%), linear-gradient(180deg, #dfe8ff 0%, #f6f1e6 78%); }
.tb[data-accent="night"] .tb-sun-stage, .tb[data-tod="night"] .tb-sun-stage { background: radial-gradient(120% 90% at 50% 110%, rgb(var(--sg-gold-rgb) / .18), transparent 60%), linear-gradient(180deg, #121a37 0%, #233062 85%); }
.tb-card.sz-l .tb-sun-stage { height: 320px; }
.tb-sun-gl { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.tb-sun-gl canvas { display: block; width: 100% !important; height: 100% !important; }
.tb-sun-gl:active { cursor: grabbing; }
.tb-sunflat { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.tb-sunflat .hz { stroke: rgb(var(--sg-blue-rgb) / .25); stroke-width: 1; }
.tb-sunflat .arc { fill: none; stroke: #e39a17; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tb-sunflat .sun { fill: #ffc94a; stroke: #fff; stroke-width: 2; }
.tb-sunflat .pin.k-install { fill: var(--k-install); } .tb-sunflat .pin.k-service { fill: var(--k-service); }
.tb-sun-hint { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: rgb(16 22 43 / .45); pointer-events: none; }
.tb[data-tod="night"] .tb-sun-hint, .tb[data-accent="night"] .tb-sun-hint { color: rgb(255 255 255 / .55); }
.tb-sun-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.tb-sun-facts div { min-width: 0; } .tb-sun-facts dt { font-size: 11.5px; color: var(--muted); } .tb-sun-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tb-sun-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.k { display: inline-block; width: 9px; height: 9px; border-radius: 50%; } .k.k-install { background: var(--k-install); } .k.k-service { background: var(--k-service); }
.tb-heat { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: #a24a12; }
.tb-sun-pins { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.tb-pinrow { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13px; color: var(--ink); text-align: left; cursor: pointer; }
.tb-pinrow:hover { background: var(--row-hover); } .tb-pinrow .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tb-pinrow b { font-variant-numeric: tabular-nums; font-weight: 650; }

/* ---------------------------------------------------------------- calendar */
.tb-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tb-cal-nav { display: flex; align-items: center; gap: 6px; } .tb-cal-nav b { font-size: 14px; min-width: 110px; text-align: center; }
.tb-cal-nav .tb-ic { width: 28px; height: 28px; }
.tb-cal-src { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tb-src { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.tb-src[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: var(--line-3); }
.tb-src[aria-pressed="false"] .tb-ev-dot { opacity: .3; }
.tb-ev-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.k-google .tb-ev-dot, .tb-ev-dot.k-google, .tb-md .dots i.k-google { background: var(--k-google); }
.k-install .tb-ev-dot, .tb-ev-dot.k-install, .tb-md .dots i.k-install { background: var(--k-install); }
.k-service .tb-ev-dot, .tb-ev-dot.k-service, .tb-md .dots i.k-service { background: var(--k-service); }
.tb-cal-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: rgb(var(--sg-blue-rgb) / .05); font-size: 12.5px; color: var(--ink-2); }
.tb-cal-note.warn { background: #fff4e0; color: #7a4b00; }
.tb-cal-body.stale { opacity: .6; }
.tb-cal-day { margin: 10px 0 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); } .tb-cal-day.today { color: var(--sg-blue-lift); }
.tb-evs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tb-ev { display: grid; grid-template-columns: auto 74px 1fr; gap: 8px; align-items: start; width: 100%; padding: 7px 9px; border: 0; border-radius: 10px; background: rgb(255 255 255 / .55); font: inherit; font-size: 13px; color: var(--ink); text-align: left; box-shadow: inset 3px 0 0 var(--k-google); }
button.tb-ev { cursor: pointer; } button.tb-ev:hover { background: #fff; }
.tb-ev.k-install { box-shadow: inset 3px 0 0 var(--k-install); } .tb-ev.k-service { box-shadow: inset 3px 0 0 var(--k-service); }
.tb-ev.free { opacity: .65; }
.tb-ev .tb-ev-dot { margin-top: 5px; }
.tb-ev-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.tb-ev-main { min-width: 0; display: grid; } .tb-ev-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tb-ev-s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tb-wd { min-width: 0; padding: 6px; border-radius: 12px; background: rgb(255 255 255 / .35); min-height: 120px; }
.tb-wd.we { background: rgb(var(--sg-blue-rgb) / .03); } .tb-wd.today { background: rgb(255 255 255 / .8); box-shadow: inset 0 0 0 1.5px rgb(53 82 181 / .35); }
.tb-wd header { display: flex; align-items: baseline; gap: 4px; padding: 2px 2px 6px; font-size: 12px; color: var(--muted); } .tb-wd header b { font-size: 15px; color: var(--ink); } .tb-wd header small { margin-left: auto; font-size: 11px; }
.tb-wd .tb-ev { grid-template-columns: 1fr; gap: 1px; padding: 5px 7px; font-size: 12px; } .tb-wd .tb-ev .tb-ev-dot { display: none; } .tb-wd .tb-ev-time { font-size: 11px; }
.tb-card:not(.sz-l) .tb-week { grid-template-columns: 1fr; } .tb-card:not(.sz-l) .tb-wd { min-height: 0; }
.tb-month-h, .tb-month-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.tb-month-h span { text-align: center; font-size: 11px; color: var(--faint); padding: 2px 0 4px; }
.tb-md { display: grid; justify-items: center; gap: 2px; padding: 5px 0 4px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.tb-md:hover { background: var(--row-hover); } .tb-md.out { color: var(--faint); } .tb-md.today .n { background: var(--sg-blue); color: #fff; border-radius: 999px; padding: 0 6px; }
.tb-md.sel { background: #fff; box-shadow: inset 0 0 0 1.5px rgb(53 82 181 / .3); }
.tb-md .dots { display: flex; gap: 2px; height: 5px; } .tb-md .dots i { width: 5px; height: 5px; border-radius: 50%; }
.tb-agenda section + section { margin-top: 2px; }

/* ---------------------------------------------------------------- weather, notes, links */
.tb-wx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 4px; }
.tb-wx li { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; background: rgb(255 255 255 / .5); font-size: 12px; color: var(--muted); }
.tb-wx li b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; } .tb-wx li small { font-size: 11px; min-height: 13px; }
.tb-wx li.wet { background: rgb(53 82 181 / .1); } .tb-wx li.hot { background: rgb(var(--sg-gold-rgb) / .22); }
.tb-wx-note { display: flex; align-items: center; gap: 4px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.tb-notes { width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / .6); padding: 10px 12px; font: inherit; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.tb-notes:focus { outline: 2px solid var(--focus-ring); background: #fff; }
.tb-notes-s { margin: 4px 0 0; min-height: 16px; font-size: 11.5px; color: var(--faint); }
.tb-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.tb-links a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .55); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.tb-links a:hover { background: #fff; } .tb-links a :first-child { color: var(--sg-blue-lift); }

/* ---------------------------------------------------------------- customize sheet (a floating glass layer, no scrim) */
.tb-sheet { position: fixed; z-index: var(--z-modal, 80); top: calc(var(--topbar-h, 56px) + 12px); right: 12px; bottom: 12px; width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column;
  background: rgb(255 255 255 / .78); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); border-radius: 24px; box-shadow: var(--glass-edge), var(--sh-modal);
  animation: tb-materialize .32s cubic-bezier(.22, .9, .3, 1); transform-origin: 100% 0; }
@keyframes tb-materialize { from { opacity: 0; transform: translateX(14px) scale(.985); filter: blur(6px); } }
.tb-sheet > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 20px; } .tb-sheet h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.tb-sheet-tabs { margin: 0 16px 6px; align-self: flex-start; }
.tb-sheet-b { overflow-y: auto; padding: 6px 20px 20px; overscroll-behavior: contain; }
.tb-sheet h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.tb-hint { margin: 6px 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.tb-cardlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tb-cardlist li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgb(255 255 255 / .6); }
.tb-cardlist li.off { background: transparent; } .tb-cardlist li.off .t { opacity: .6; }
.tb-cardlist .t { display: grid; min-width: 0; } .tb-cardlist .t b { font-size: 13.5px; } .tb-cardlist .t small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-switch { position: relative; width: 40px; height: 24px; border-radius: 999px; border: 0; background: rgb(var(--sg-blue-rgb) / .18); cursor: pointer; flex: none; transition: background .2s; }
.tb-switch span { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .28s cubic-bezier(.22, .9, .3, 1); }
.tb-switch[aria-checked="true"] { background: #2fae6b; } .tb-switch[aria-checked="true"] span { transform: translateX(16px); }
.tb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.tb-row .tb-ev-dot { margin-right: 4px; }
.tb-presets { display: grid; gap: 8px; }
.tb-preset { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .6); font: inherit; cursor: pointer; }
.tb-preset:hover { background: #fff; border-color: var(--line-3); } .tb-preset b { font-size: 14px; } .tb-preset small { font-size: 12.5px; color: var(--muted); }
.tb-reset { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; }
.tb-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tb-sw { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 14px; background: transparent; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.tb-sw span { width: 100%; height: 34px; border-radius: 10px; }
.tb-sw.a-sunrise span { background: linear-gradient(120deg, #ffe6b0, #ffd1a6 50%, #cfdcff); }
.tb-sw.a-monsoon span { background: linear-gradient(120deg, #d7def3, #b9c6ea 50%, #e9eef9); }
.tb-sw.a-desert span { background: linear-gradient(120deg, #f6dcc4, #eab995 50%, #f8ece0); }
.tb-sw.a-night span { background: linear-gradient(120deg, #1b2a5c, #243D90 50%, #0f1733); }
.tb-sw[aria-checked="true"] { border-color: var(--sg-blue); box-shadow: inset 0 0 0 1px var(--sg-blue); color: var(--ink); }
.tb-linkpick { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-steps { margin: 0 0 10px; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--ink-2); } .tb-steps li + li { margin-top: 4px; }
.tb-gform { display: flex; gap: 6px; } .tb-gform input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 12.5px; background: #fff; }
.tb-gcal { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgb(47 174 107 / .1); }
.tb-gcal span { display: grid; } .tb-gcal small { font-size: 12px; color: var(--muted); } .tb-gcal > :first-child { color: #2fae6b; }
.toast { pointer-events: auto; } .toast-act { margin-left: 10px; border: 0; background: rgb(255 255 255 / .16); color: inherit; font: inherit; font-weight: 650; padding: 2px 10px; border-radius: 999px; cursor: pointer; }

/* ---------------------------------------------------------------- sizes */
@media (max-width: 1180px) { .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-card.sz-l { grid-column: span 2; } }
@media (max-width: 720px) {
  .tb { padding: 12px 12px 72px; } .tb-head { padding: 18px; border-radius: 22px; }
  .tb-grid { grid-template-columns: 1fr; } .tb-card.sz-m, .tb-card.sz-l { grid-column: span 1; }
  .tb-sun-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-week { grid-template-columns: 1fr; }
  .tb-sheet { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 78vh; border-radius: 24px; transform-origin: 50% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-sheet { animation: tb-fade .2s ease; } .tb-skel div, .tb-skel-list span { animation: none; }
  .tb-switch span { transition: none; } .tb-card.lifted { transition: none; }
}
@keyframes tb-fade { from { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) { .tb-card, .tb-sheet { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .tb-card, .tb-sheet { border: 1px solid var(--ink); } }
/* while Customize is open on a wide screen, the board slides over so every card stays in view */
@media (min-width: 1200px) { .tb.customizing { padding-right: 404px; transition: padding .32s cubic-bezier(.22, .9, .3, 1); } }
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) { .tb.customizing { transition: none; } }
.tb-wd .tb-ev-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.customizing .tb-card.sz-s .tb-card-ic { display: none; }
.tb-ghost-host { position: fixed; inset: 0; z-index: 90; pointer-events: none; padding: 0; margin: 0; max-width: none; }
body:has(.tb-ghost) { user-select: none; -webkit-user-select: none; cursor: grabbing; }
/* while dragging, the cards drop the frosted blur (costly to redraw while they glide) for a near-solid white */
.tb-grid.dragging .tb-card, .tb-ghost { -webkit-backdrop-filter: none; backdrop-filter: none; }
.tb-grid.dragging .tb-card:not(.slot) { background: rgb(255 255 255 / .86); }
.tb-ghost-host .tb-ghost { background: #fff; }
.tb-card.slot { box-shadow: inset 0 0 0 2px rgb(var(--sg-blue-rgb) / .22); background: rgb(var(--sg-blue-rgb) / .05); }
/* 2.7.3 a card opens up in place */
.tb-exp { width: 26px; height: 26px; opacity: .55; border-color: transparent; background: transparent; }
.tb-card:hover .tb-exp, .tb-exp:focus-visible, .tb-exp[aria-expanded="true"] { opacity: 1; }
.tb-card.expanded { box-shadow: var(--glass-edge), var(--sh-hover); }
.tb-card.expanded.w-sun .tb-sun-stage { height: 380px; }
.tb-more { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 4px 6px; margin-left: -6px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sg-blue-lift); cursor: pointer; }
.tb-more:hover { background: var(--hover); }
button.tb-stat { font: inherit; text-align: left; cursor: pointer; }
.tb-stat.on { background: #fff; box-shadow: inset 0 0 0 1.5px rgb(53 82 181 / .35); }
.tb-stat-panel { margin-top: 10px; padding: 10px 12px 12px; border-radius: 16px; background: rgb(255 255 255 / .6); border: 1px solid var(--line); animation: tb-open .22s cubic-bezier(.22, .9, .3, 1); transform-origin: 50% 0; }
.tb-stat-panel > header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13.5px; }
.tb-stat-panel .tb-ic { width: 26px; height: 26px; }
@keyframes tb-open { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tb-stat-panel { animation: none; } }
