/* ============================================================
   ai45.xyz — the top of the student home (assets/hometop.js). Owner, 2026-10-28, from the "Kin" reference:
   one frosted panel the height of the window under the top bar, two sides and a slim icon column; light and dark.
   ============================================================ */
#plan.is-home { display: block; max-width: 1480px; padding-top: 14px; }
#plan.is-home > .rail, #plan.is-home > .events, #plan.is-home .tracks, #plan.is-home .main__h { display: none; }

.ht {
  --ht-bg: radial-gradient(60% 55% at 0% 0%, #CFE4F6 0%, transparent 70%), radial-gradient(50% 45% at 100% 6%, #F6D6EA 0%, transparent 70%), radial-gradient(60% 50% at 50% 100%, #D8F0F3 0%, transparent 70%), #EEF2F7;
  --ht-glass: rgba(255, 255, 255, .72); --ht-edge: rgba(255, 255, 255, .9); --ht-ink: #121318; --ht-mut: #6B7080; --ht-chip: #F1EFF8;
  --ht-big: linear-gradient(150deg, var(--ha-wash, #FFE1C7) 0%, #F6C8D9 45%, #D9D3FF 100%); --ht-go: linear-gradient(90deg, #DCEBFF, #E8E1FF); --ht-goc: #2948A8;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 24px;
  height: calc(100svh - 76px - 30px); min-height: 600px; padding: 26px; border-radius: 34px; overflow: hidden;
  background: var(--ht-bg); color: var(--ht-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 30px 60px -44px rgba(30, 40, 80, .4);
}
html[data-theme="dark"] .ht {
  --ht-bg: radial-gradient(60% 55% at 0% 0%, rgba(70, 110, 170, .35) 0%, transparent 70%), radial-gradient(50% 45% at 100% 6%, rgba(160, 80, 140, .28) 0%, transparent 70%), radial-gradient(60% 50% at 50% 100%, rgba(60, 140, 150, .25) 0%, transparent 70%), #13151C;
  --ht-glass: rgba(255, 255, 255, .07); --ht-edge: rgba(255, 255, 255, .1); --ht-ink: #F2F3F7; --ht-mut: #A2A7B6; --ht-chip: rgba(255, 255, 255, .08);
  --ht-big: linear-gradient(150deg, var(--ha-wash, #5A3A2E) 0%, #5A2E46 45%, #3E3870 100%); --ht-go: linear-gradient(90deg, rgba(110, 150, 255, .22), rgba(170, 140, 255, .22)); --ht-goc: #B9CCFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.ht a { color: inherit; text-decoration: none; }
.ht button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.ht svg { width: 20px; height: 20px; flex: none; }
.ht-glass { background: var(--ht-glass); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--ht-edge), 0 10px 30px -24px rgba(30, 40, 80, .45); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

/* ---------- left ---------- */
.ht__l { display: flex; flex-direction: column; min-height: 0; }
.ht__date { color: var(--ht-mut); font-size: 14px; font-weight: 700; }
.ht__hi { margin: 2px 0 18px; font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; color: var(--ht-ink); }
.ht__hi b { font-weight: 900; }
.ht__big { position: relative; flex: 1; min-height: 220px; overflow: hidden; padding: 24px 26px 96px; border-radius: 30px; background: var(--ht-big); }
.ht__big.is-solo { padding-bottom: 26px; }
.ht__big::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 46%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .32) 0 2px, transparent 2px 10px); -webkit-mask: linear-gradient(90deg, transparent, #000 65%); mask: linear-gradient(90deg, transparent, #000 65%); pointer-events: none; }
.ht__tag { position: relative; z-index: 1; display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 700; color: #121318; }
.ht__num { position: relative; z-index: 1; margin: 22px 0 4px; font-size: clamp(76px, 9vw, 124px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.ht__num small { margin-left: 8px; font-size: .28em; letter-spacing: 0; color: var(--ht-mut); }
.ht__num--sm { font-size: 40px; letter-spacing: -.02em; }
.ht__sub { position: relative; z-index: 1; color: var(--ht-mut); font-size: 15px; }
.ht__sub b { color: var(--ht-ink); }
.ht__sub a { text-decoration: underline; }
.ht__ai { position: relative; z-index: 2; margin: -74px 22px 0; padding: 18px 20px; }
.ht__aih { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #5B4BD6; }
html[data-theme="dark"] .ht__aih { color: #C4B8FF; }
.ht__aih span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: conic-gradient(from 200deg, var(--ha-g1, #E37239), var(--ha-glow2, #F2B36B), #B9A6FF, #8EC9FF, var(--ha-g1, #E37239)); }
.ht__aih span svg { width: 14px; height: 14px; }
.ht__aih sub { font-size: .7em; }
.ht__ai p { margin: 10px 0 14px; font-size: 16px; line-height: 1.45; color: var(--ht-ink); }
.ht__days { display: flex; gap: 8px; margin-bottom: 14px; }
.ht__days span { flex: 1; padding: 8px 0; border-radius: 999px; text-align: center; background: var(--ht-chip); color: var(--ht-mut); font-size: 13px; }
.ht__days span b { color: var(--ht-ink); }
.ht__days span.is-zero b { color: #D0452F; }
.ht__days span.is-now { background: var(--ha-wash, #FFD9B8); color: var(--ha-d, #6B4A2E); } .ht__days span.is-now b { color: inherit; }
.ht__acts { display: flex; align-items: center; gap: 14px; }
.ht__go { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--ht-go); color: var(--ht-goc) !important; font-weight: 800; }
.ht__go i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: #2948A8; font-style: normal; }
.ht__go i svg { width: 17px; height: 17px; }
.ht__go > svg { width: 17px; height: 17px; }
.ht__no { color: var(--ht-mut) !important; font-weight: 700; padding: 8px 4px; }

/* ---------- right ---------- */
.ht__r { display: flex; flex-direction: column; min-height: 0; }
.ht__rh { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 6px 12px; }
.ht__rh b { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--ht-mut); }
.ht__rh span, .ht__rh a { color: var(--ht-mut); font-size: 14px; font-weight: 700; }
.ht__fr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.ht__f { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px 10px 10px; transition: transform .2s; }
.ht__f:hover { transform: translateY(-2px); }
.ht__f.is-ghost { opacity: .5; }
.ht__av { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ht-chip); }
.ht__av svg { width: 42px !important; height: 42px !important; border-radius: 50%; }
.ht__dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 2.5px var(--ht-edge); }
.ht__dot.is-li { background: #19A463; }
.ht__f b { display: block; font-size: 15px; }
.ht__f small { color: var(--ht-mut); font-size: 13px; }
.ht__f small.is-li { color: #1F8A5B; font-weight: 700; }
html[data-theme="dark"] .ht__f small.is-li { color: #5FD69A; }
.ht__fcta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 62px; font-weight: 700; color: var(--ht-mut) !important; }
.ht__up { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 6px; scrollbar-width: thin; }
.ht__u { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 16px 20px 16px 26px; transition: transform .2s; }
.ht__u:hover { transform: translateY(-2px); }
.ht__u::before { content: ""; position: absolute; left: 12px; top: 16px; bottom: 16px; width: 4px; border-radius: 4px; background: var(--uc, #F2A65A); }
.ht__u.c-lav { --uc: #8B7CFF; } .ht__u.c-sun { --uc: #F2A65A; } .ht__u.c-rose { --uc: #E5484D; } .ht__u.c-peach { --uc: var(--ha, #FF8A5B); } .ht__u.c-sky { --uc: #4AA8F0; }
.ht__k { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--ht-mut); }
.ht__time { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: start; font-size: 30px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.ht__time small { font-size: 12px; color: var(--ht-mut); }
.ht__time.is-word { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--ht-mut); } /* "Late" and "Due" stay small: only a real clock time is big */
.ht__t { font-size: 20px; font-weight: 900; line-height: 1.2; }
.ht__t small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--ht-mut); }
.ht__w { color: var(--ht-mut); font-size: 14px; }
.ht__rt { grid-column: 2; grid-row: 3 / span 2; justify-self: end; align-self: end; text-align: right; color: var(--ht-mut); font-size: 13px; }
.ht__prog { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.ht__prog i { width: 9px; height: 9px; border-radius: 50%; background: var(--ht-chip); }
.ht__prog i.y { background: #A78BFA; }
.ht__empty { padding: 22px; color: var(--ht-mut); font-weight: 600; }
.ht__empty a { color: var(--ht-ink) !important; text-decoration: underline; }

/* ---------- the icon column ---------- */
.ht__col { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0; }
.ht__pills { display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 999px; background: var(--ht-glass); box-shadow: inset 0 0 0 1px var(--ht-edge), 0 10px 26px -18px rgba(30, 40, 80, .5); }
.ht__pills > *, .ht__search { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ht-ink) !important; transition: background .15s; }
.ht__pills > *:hover, .ht__search:hover { background: var(--ht-chip); }
.ht__pills .is-on { background: #DCEBFF; color: #2948A8 !important; }
html[data-theme="dark"] .ht__pills .is-on { background: rgba(110, 150, 255, .22); color: #B9CCFF !important; }
.ht__search { background: var(--ht-glass); box-shadow: inset 0 0 0 1px var(--ht-edge); }
.ht__search > button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.ht__gap { flex: 1; }

/* ---------- explore strip ---------- */
.hx { margin: 34px 0 10px; }
.hx h2 { margin: 0 0 4px; display: flex; align-items: baseline; gap: 12px; font-size: 22px; font-weight: 900; }
.hx h2 span { color: var(--muted); font-size: 14px; font-weight: 700; }
.hx__strip { display: flex; gap: 20px; overflow-x: auto; padding: 78px 6px 26px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hx__strip::-webkit-scrollbar { display: none; }
.hx__c { position: relative; flex: 0 0 214px; height: 172px; color: #fff !important; text-decoration: none; scroll-snap-align: start; transition: transform .35s cubic-bezier(.32, .72, 0, 1); }
.hx__c:hover { transform: translateY(-6px); }
.hx__bg { position: absolute; inset: 0; border-radius: 36px; background: var(--g); transform: skewY(-6deg); transform-origin: 0 100%; box-shadow: 0 20px 34px -22px var(--sh); }
/* the Explore cards on a non-orange theme (app.css --ha-*): Friends takes the theme's colour, Uni prep a rose with no
   orange; classic, midnight, espresso and Christmas keep the orange cards (hometop.js var(--hx-fr, <orange>)) */
html:is([data-scheme="sky"], [data-scheme="navy"]):not([data-season="christmas"]) .hx__strip, html:is([data-scheme="sage"], [data-scheme="forest"], [data-scheme="lilac"], [data-scheme="plum"], [data-scheme="sand"]) .hx__strip {
  --hx-fr: linear-gradient(140deg, var(--ha-glow1, var(--ha-bar1)), var(--ha-g2)); --hx-fr-sh: color-mix(in srgb, var(--ha-g2) 70%, transparent);
  --hx-uni: linear-gradient(140deg, #FF6F91, #E5484D);
}
.hx__bg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, .3), transparent 55%); }
.hx__art { position: absolute; left: -12px; top: -68px; width: 118px; height: 118px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .25)); pointer-events: none; }
.hx__art svg, .hx__art canvas { width: 100%; height: 100%; display: block; }
.hx__t { position: absolute; left: 18px; right: 14px; bottom: 40px; font-size: 19px; font-weight: 900; line-height: 1.05; }
.hx__t small { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 800; letter-spacing: .1em; opacity: .85; }
.hx__m { position: absolute; left: 18px; right: 14px; bottom: 18px; font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- smaller screens: the panel stacks and grows with its content ---------- */
@media (max-width: 1080px) {
  .ht { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .ht__col { grid-column: 1 / -1; flex-direction: row; justify-content: center; } .ht__pills { flex-direction: row; } .ht__gap { display: none; }
  .ht__up { overflow: visible; }
}
@media (max-width: 760px) {
  .ht { padding: 18px; border-radius: 26px; gap: 18px; }
  .ht__v { grid-template-columns: 1fr !important; gap: 18px; }
  .ht__big { min-height: 200px; } .ht__ai { margin: -64px 12px 0; }
  .ht__fr { grid-template-columns: 1fr; }
  .ht__col { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .ht__f, .ht__u, .hx__c { transition: none; } }
/* the big card fills the left side: its number sits in the middle and grows with the window's height */
.ht__big { display: flex; flex-direction: column; }
.ht__big .ht__tag { align-self: flex-start; }
.ht__big .ht__num { margin-top: auto; font-size: clamp(76px, 15vh, 170px); }
.ht__big .ht__sub { margin-bottom: auto; font-size: 16px; }
@media (max-width: 1080px) { .ht__big .ht__num { font-size: clamp(70px, 12vw, 120px); } }

/* ---------- the panel's views (owner, 2026-10-28: every icon shows something here, not a link away) ---------- */
.ht__v { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 24px; min-height: 0; }
.ht__v.is-in > * { animation: ht-in .42s cubic-bezier(.32, .72, 0, 1) both; }
.ht__v.is-in > *:nth-child(2) { animation-delay: .05s; }
@keyframes ht-in { from { opacity: 0; transform: translateY(10px); } }
.ht__one { grid-column: 1 / -1; display: flex; flex-direction: column; min-height: 0; }
.ht__rh button { color: var(--ht-mut) !important; font-size: 14px; font-weight: 700; padding: 0; }
.ht__rh a:hover, .ht__rh button:hover { color: var(--ht-ink) !important; }
.ht__empty button { color: var(--ht-ink) !important; text-decoration: underline; padding: 0; font-weight: 600; }
.ht__empty.is-ghost { opacity: .5; min-height: 62px; }
.ht__l > .ht__up { flex: 1; }
.ht__hi { font-size: clamp(26px, 2.4vw, 36px); margin-bottom: 14px; }

/* home, left: the big card, the summary, the ask bar */
.ht__big { flex: 1 1 0; min-height: 300px; padding: 18px 20px 86px; display: flex; flex-direction: column; }
.ht__big::after { width: 30%; opacity: .7; }
.ht__ch { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ht__cpick { position: relative; }
.ht__cpick .ht__tag { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ht__cpick .ht__tag svg { width: 14px; height: 14px; }
.ht__cmenu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; min-width: 170px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -16px rgba(20, 24, 40, .45); display: flex; flex-direction: column; }
.ht__cmenu[hidden] { display: none; }
.ht__cmenu button { text-align: left; padding: 9px 12px; border-radius: 10px; color: #121318 !important; font-weight: 700; font-size: 14px; }
.ht__cmenu button:hover { background: #F1EFF8; }
.ht__cmenu button.is-on { background: #DCEBFF; color: #2948A8 !important; }
.ht__cloc { position: relative; z-index: 1; font-weight: 700; color: var(--ht-mut); }
.ht__mnav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.ht__mnav button { width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; background: rgba(255, 255, 255, .5) !important; }
.ht__mnav b { min-width: 128px; text-align: center; }
.ht__mo { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; margin-top: 10px; min-height: 0; }
.ht__mow, .ht__mog { display: grid; grid-template-columns: repeat(7, 1fr); }
.ht__mow span { text-align: center; font-size: 12px; font-weight: 800; color: var(--ht-mut); padding-bottom: 4px; }
.ht__mog { flex: 1; grid-auto-rows: 1fr; gap: 2px; }
.ht__mog button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; font-size: 15px; font-weight: 600; min-height: 30px; }
.ht__mog button:hover { background: rgba(255, 255, 255, .45) !important; }
.ht__mog button.is-past { opacity: .45; }
.ht__mog button.is-now { background: var(--ht-ink) !important; color: var(--ht-glass-solid, #fff) !important; font-weight: 900; }
html[data-theme="dark"] .ht__mog button.is-now { color: #13151C !important; }
.ht__mog i { display: flex; gap: 3px; height: 5px; }
.ht__mog em, .ht__key em { width: 5px; height: 5px; border-radius: 50%; background: var(--dc); }
.c-lav { --dc: #6C5CE7; } .c-sun { --dc: #E8890C; } .c-sky { --dc: #2E86DE; } .c-peach { --dc: var(--ha-solid, #E8553B); } .c-rose { --dc: #E5484D; } .c-mint { --dc: #19A463; }
.ht__key { position: relative; z-index: 1; display: flex; gap: 14px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--ht-mut); }
.ht__key span { display: flex; align-items: center; gap: 5px; }
.ht__key em { width: 7px; height: 7px; }
.ht__big .ht__num { margin-top: auto; font-size: clamp(64px, 11vh, 130px); }
.ht__big .ht__sub { margin-bottom: auto; }
.ht__hrs { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 10px; }
.ht__hrs span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 14px; background: rgba(255, 255, 255, .45); }
html[data-theme="dark"] .ht__hrs span { background: rgba(255, 255, 255, .08); }
.ht__hrs small { font-size: 12px; color: var(--ht-mut); } .ht__hrs b { font-size: 17px; }
.ht__stats { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ht__stats span { display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .5); }
html[data-theme="dark"] .ht__stats span { background: rgba(255, 255, 255, .08); }
.ht__stats b { font-size: clamp(22px, 3vh, 32px); font-weight: 500; letter-spacing: -.02em; }
.ht__stats small { color: var(--ht-mut); font-size: 13px; font-weight: 600; }
.ht__ctank { position: relative; z-index: 1; flex: 1; width: 100%; min-height: 0; margin-top: 10px; border-radius: 20px; display: block; }
.ht__cfoot { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 800; }
.ht__cfoot svg { width: 16px; height: 16px; }
.ht__cmid { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; text-align: center; font-size: 17px; color: var(--ht-mut); }
.ht__cmid a, .ht__cmid b { color: var(--ht-ink); } .ht__cmid a { text-decoration: underline; }
.ht__setup { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ht__bar { height: 6px; margin: 12px 0 8px; border-radius: 6px; background: rgba(255, 255, 255, .5); overflow: hidden; }
.ht__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ha-solid, #E37239), #8B7CFF); }
.ht__chk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; justify-content: space-around; min-height: 0; overflow-y: auto; }
.ht__chk li > *, .ht__chk li { display: flex; align-items: center; gap: 12px; }
.ht__chk li > a { flex: 1; padding: 4px 8px; margin: 0 -8px; border-radius: 12px; font-weight: 700; }
.ht__chk li > a:hover { background: rgba(255, 255, 255, .45); }
.ht__chk li > a > svg { margin-left: auto; width: 16px; height: 16px; opacity: .5; }
.ht__chk i { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ht-mut); display: grid; place-items: center; }
.ht__chk li.is-done { color: var(--ht-mut); padding: 4px 0; }
.ht__chk li.is-done span { text-decoration: line-through; }
.ht__chk li.is-done i { background: #19A463; box-shadow: none; color: #fff; }
.ht__chk li.is-done i svg { width: 14px; height: 14px; }

/* the summary overlaps the bottom of the big card, as the old "AI45 suggests" card did (owner: "on top of each other like that") */
.ht__sum { position: relative; z-index: 2; flex: none; max-height: 48%; margin: -70px 20px 0; padding: 16px 20px; overflow-y: auto; scrollbar-width: thin; }
.ht__aih small { margin-left: auto; color: var(--ht-mut); font-weight: 600; font-size: 12px; }
.ht__sumh { margin: 8px 0 8px; font-size: 17px; font-weight: 800; line-height: 1.35; }
.ht__pts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ht__pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; animation: ht-in .5s cubic-bezier(.32, .72, 0, 1) both; animation-delay: calc(var(--i) * 90ms + .15s); }
.ht__pts li[hidden] { display: none; }
.ht__pts li > i { flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 8px; display: grid; place-items: center; color: var(--dc); background: color-mix(in srgb, var(--dc) 14%, transparent); }
.ht__pts li > i svg { width: 14px; height: 14px; }
.ht__pts b { font-weight: 800; }
.ht__sum .ht__acts { animation: ht-in .5s cubic-bezier(.32, .72, 0, 1) both; animation-delay: calc(var(--i) * 90ms + .15s); }

/* the ask bar: a gradient that drifts round its edge, a prompt typed out inside */
.ht__ask { position: relative; flex: none; display: flex; align-items: center; gap: 12px; margin-top: 14px; height: 60px; padding: 0 18px; border-radius: 20px !important; background: var(--ht-glass) !important; text-align: left; isolation: isolate; }
.ht__askg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px; background: linear-gradient(90deg, #E37239, #F06AA8, #8B7CFF, #4AA8F0, #2FD1A0, #F2B36B, #E37239); background-size: 300% 100%; animation: ht-glide 6s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ht__ask::before { content: ""; position: absolute; inset: 6px 10% -8px; z-index: -2; border-radius: inherit; background: linear-gradient(90deg, #E37239, #F06AA8, #8B7CFF, #4AA8F0, #E37239); background-size: 300% 100%; animation: ht-glide 6s linear infinite; filter: blur(18px); opacity: .35; transition: opacity .3s; }
.ht__ask:hover::before { opacity: .7; }
@keyframes ht-glide { to { background-position: 300% 0; } }
.ht__aski { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; background: conic-gradient(from 200deg, #E37239, #F2B36B, #B9A6FF, #8EC9FF, #E37239); }
.ht__aski svg { width: 17px; height: 17px; }
.ht__tw { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ht-mut); font-size: 16px; }
.ht__tw::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: currentColor; animation: ht-blink 1s steps(1) infinite; }
@keyframes ht-blink { 50% { opacity: 0; } }
.ht kbd, .hts kbd { padding: 3px 8px; border-radius: 8px; background: var(--ht-chip, rgba(0, 0, 0, .06)); font: 700 12px/1.2 inherit; color: var(--ht-mut, #6B7080); }

/* the big search over a blurred page */
html.hts-on, html.hts-on body { overflow: hidden; }
.hts { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: center; align-items: flex-start; padding: 18vh 20px 20px; --ht-mut: #6B7080; }
.hts__bg { position: absolute; inset: 0; background: rgba(240, 242, 248, .45); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); opacity: 0; transition: opacity .28s; }
html[data-theme="dark"] .hts__bg { background: rgba(10, 12, 18, .55); }
.hts__in { position: relative; width: min(780px, 100%); display: flex; flex-direction: column; align-items: center; opacity: 0; transition: opacity .28s; }
.hts.is-open .hts__bg, .hts.is-open .hts__in { opacity: 1; }
.hts__h { margin: 0 0 22px; font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -.03em; text-align: center; color: var(--paper, #121318); transform: translateY(10px); transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
.hts.is-open .hts__h { transform: none; }
.hts__bar { position: relative; isolation: isolate; width: 100%; display: flex; align-items: center; gap: 14px; height: 78px; padding: 0 12px 0 22px; border-radius: 28px; background: var(--card, #fff); box-shadow: 0 30px 70px -30px rgba(30, 30, 80, .5); transform-origin: 0 0; }
.hts__bar::before { content: ""; position: absolute; inset: 10px 6% -14px; z-index: -2; border-radius: inherit; background: linear-gradient(90deg, #E37239, #F06AA8, #8B7CFF, #4AA8F0, #E37239); background-size: 300% 100%; animation: ht-glide 6s linear infinite; filter: blur(26px); opacity: .55; }
.hts__bar .ht__askg { padding: 2.5px; }
.hts__bar .ht__aski { width: 40px; height: 40px; border-radius: 13px; }
.hts__bar input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 21px; color: var(--paper, #121318); }
.hts__bar input::placeholder { color: var(--muted, #6B7080); }
.hts__bar button { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border: 0; border-radius: 18px; background: var(--ink, #121318); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
html[data-theme="dark"] .hts__bar button { background: #fff; color: #121318; }
.hts__bar button svg { width: 17px; height: 17px; }
.hts__bar button sub { font-size: .7em; }
.hts__res { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.hts__res:empty { display: none; }
.hts__res small { padding: 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6B7080); }
.hts__res a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--card, #fff); color: var(--paper, #121318); text-decoration: none; box-shadow: 0 10px 26px -20px rgba(30, 30, 80, .5); }
.hts__res a:hover { transform: translateY(-1px); }
.hts__res a b { font-size: 16px; } .hts__res a span { color: var(--muted, #6B7080); font-size: 13px; }
.hts__res a svg { margin-left: auto; width: 16px; height: 16px; opacity: .5; }
.hts__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hts__chips button { padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .75); color: #121318; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
html[data-theme="dark"] .hts__chips button { background: rgba(255, 255, 255, .1); color: #F2F3F7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hts__chips button:hover { background: #fff; }
html[data-theme="dark"] .hts__chips button:hover { background: rgba(255, 255, 255, .18); }
.hts__k { margin-top: 18px; color: var(--muted, #6B7080); font-size: 13px; }
.hts__k sub { font-size: .7em; }

/* home, right: the student's sections */
.ht__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.ht__tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; transition: transform .2s; min-width: 0; }
.ht__tile:hover { transform: translateY(-2px); }
.ht__tile.is-wide { grid-column: 1 / -1; }
.ht__tile small { color: var(--ht-mut); font-size: 13px; font-weight: 700; }
.ht__tile b { font-size: 19px; font-weight: 800; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ht__tile b em { font-style: normal; font-size: 13px; color: var(--ht-mut); font-weight: 600; }
.ht__tile b svg { width: 16px; height: 16px; align-self: center; }

/* calendar */
.ht__add { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; margin-bottom: 16px; }
.ht__add > span { color: var(--ht-mut); display: grid; }
.ht__add input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ht-ink); outline: none; padding: 8px 0; }
.ht__add input::placeholder { color: var(--ht-mut); }
.ht__add button[type="submit"], .ht__rb button { padding: 10px 18px; border-radius: 14px; background: var(--ht-go); color: var(--ht-goc) !important; font-weight: 800; }
.ht__wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 22px; }
.ht__wk span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 10px; border-radius: 18px; background: var(--ht-glass); box-shadow: inset 0 0 0 1px var(--ht-edge); }
.ht__wk span.is-now { background: var(--ht-big); }
.ht__wk small { font-size: 12px; font-weight: 700; color: var(--ht-mut); }
.ht__wk b { font-size: 22px; font-weight: 500; }
.ht__wk i { display: flex; gap: 3px; height: 6px; }
.ht__wk em { width: 6px; height: 6px; border-radius: 50%; background: #8B7CFF; }
.ht__todos { gap: 8px; }
.ht__td { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; transition: opacity .4s, transform .4s; }
.ht__td input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ht-mut); cursor: pointer; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.ht__td input:checked { background: #19A463; box-shadow: none; }
.ht__td input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.ht__td input:focus-visible { outline: 2px solid #5B4BD6; outline-offset: 2px; }
.ht__td b { display: block; font-size: 15px; font-weight: 700; }
.ht__td small { color: var(--ht-mut); font-size: 13px; }
.ht__td small.is-late { color: #D0452F; font-weight: 700; }
.ht__td.is-done { opacity: .35; transform: translateX(8px); }
.ht__td.is-done b { text-decoration: line-through; }

/* friends */
.ht__fr--all { flex: 1; min-height: 0; overflow-y: auto; align-content: start; scrollbar-width: thin; padding: 2px; }
.ht__reqs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; max-height: 40%; overflow-y: auto; padding: 2px; }
.ht__req { cursor: default; }
.ht__req:hover { transform: none; }
.ht__req > span:nth-child(2) { flex: 1; min-width: 0; }
.ht__rb { display: flex; gap: 8px; }
.ht__rb button { padding: 8px 14px; }
.ht__rb button:not(.is-yes) { background: var(--ht-chip); color: var(--ht-ink) !important; }
.ht__g { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding: 16px 20px; transition: transform .2s; }
.ht__g:hover { transform: translateY(-2px); }
.ht__g b { font-size: 17px; } .ht__g small { grid-row: 2; color: var(--ht-mut); font-size: 13px; }
.ht__gav { grid-column: 2; grid-row: 1 / span 2; display: flex; }
.ht__gav .ht__av { width: 32px; height: 32px; margin-left: -8px; box-shadow: 0 0 0 2px var(--ht-edge); }
.ht__gav .ht__av svg { width: 32px !important; height: 32px !important; }

/* lock in */
.ht__tank { position: relative; flex: 1; min-height: 240px; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #BFE3F5, #4E95C9); }
.ht__tank canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ht__tank0 { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: #fff; font-size: 18px; font-weight: 700; }
.ht__tankt { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 18px; border-radius: 18px; background: rgba(255, 255, 255, .78); color: #121318; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.ht__tankt a { pointer-events: auto; display: flex; align-items: center; gap: 6px; font-weight: 800; color: #2948A8 !important; }
.ht__tankt svg { width: 16px; height: 16px; }
.ht__fw { padding: 20px 22px 16px; margin-bottom: 22px; }
.ht__fwn { font-size: 46px; font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.ht__fwn small { margin-left: 12px; font-size: 14px; letter-spacing: 0; color: var(--ht-mut); }
.ht__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 120px; margin-top: 18px; }
.ht__bars span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.ht__bars i { width: 100%; max-width: 34px; min-height: 4px; border-radius: 8px; background: rgba(139, 124, 255, .45); }
.ht__bars .is-now i { background: linear-gradient(180deg, var(--ha-hi, #F2A65A), var(--ha-solid, #E37239)); }
.ht__bars small { font-size: 12px; color: var(--ht-mut); font-weight: 700; }
.ht__qs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ht__q { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; transition: transform .2s; }
.ht__q:hover { transform: translateY(-3px); }
.ht__q b { font-size: 36px; font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.ht__q b small { font-size: 14px; color: var(--ht-mut); letter-spacing: 0; }
.ht__q span { color: var(--ht-mut); font-size: 14px; font-weight: 600; }
.ht__q > svg { position: absolute; right: 16px; top: 18px; width: 18px; height: 18px; color: var(--ht-mut); }
.ht__note { margin: 14px 6px 0; color: var(--ht-mut); font-size: 14px; }

/* AI₄₅ */
.ht__one .ht__hi sub, .ht__date sub { font-size: .7em; }
.ht__chat { flex: 1; min-height: 0; display: flex; }
.ht__chat > .as { flex: 1; min-height: 0; max-height: 100%; }

/* customise */
.ht__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.ht__opts--5 { grid-template-columns: repeat(5, 1fr); }
.ht__opts--5 .ht__opt { padding: 14px 6px; }
.ht__opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; border-radius: 20px !important; }
.ht__opt b { font-size: 14px; }
.ht__opt.is-on { background: #DCEBFF; box-shadow: inset 0 0 0 2px #7FA2F0; color: #2948A8 !important; }
html[data-theme="dark"] .ht__opt.is-on { background: rgba(110, 150, 255, .22); color: #B9CCFF !important; }
.ht__sw { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.ht__l > .ht__sw { margin-bottom: 16px; }
.ht__rl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.ht__sw > span { flex: 1; min-width: 0; }
.ht__sw b { display: block; font-size: 15px; } .ht__sw small { color: var(--ht-mut); font-size: 13px; }
.ht__sw input { position: absolute; opacity: 0; pointer-events: none; }
.ht__sw i { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--ht-chip); box-shadow: inset 0 0 0 1px var(--ht-edge); transition: background .2s; }
.ht__sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.32, .72, 0, 1); }
.ht__sw input:checked + i { background: #19A463; }
.ht__sw input:checked + i::after { transform: translateX(18px); }
.ht__sw input:focus-visible + i { outline: 2px solid #5B4BD6; outline-offset: 2px; }
.ht__wl { gap: 8px; }
.ht__l > .ht__go { flex: none; }

@media (max-width: 1080px) { .ht__v { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ht__tank { min-height: 320px; } .ht__fr--all { max-height: 420px; } .ht__chat { height: 560px; flex: none; } .ht__big { min-height: 380px; flex: none; } .ht__sum { max-height: none; } }
@media (max-width: 760px) { .ht__opts, .ht__opts--5 { grid-template-columns: repeat(2, 1fr); } .ht__qs { grid-template-columns: 1fr; } .ht__wk { gap: 4px; } .hts { padding-top: 10vh; } .hts__bar { height: 64px; } .hts__bar input { font-size: 17px; } .hts__bar button { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .ht__v.is-in > *, .ht__pts li, .ht__sum .ht__acts { animation: none; } .ht__askg, .ht__ask::before, .hts__bar::before { animation: none; } .ht__tw::after { animation: none; } .ht__td, .ht__q, .ht__g, .ht__tile { transition: none; } }

/* setup as a slim strip of 7 steps on top of the big card, like the streak's week (owner, 2026-10-28) */
.ht__su { position: relative; z-index: 2; margin: -4px -6px 12px; padding: 10px 12px 8px; border-radius: 18px; background: rgba(255, 255, 255, .55); }
html[data-theme="dark"] .ht__su { background: rgba(255, 255, 255, .08); }
.ht__suh { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ht__suh b { font-weight: 900; }
.ht__suh span { color: var(--ht-mut); font-weight: 700; }
.ht__suh a { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: #2948A8 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html[data-theme="dark"] .ht__suh a { color: #B9CCFF !important; }
.ht__suh a svg { width: 14px; height: 14px; }
.ht__suh button { width: 24px; height: 24px; border-radius: 50%; color: var(--ht-mut) !important; font-size: 18px; line-height: 1; }
.ht__suh button:hover { background: rgba(255, 255, 255, .6) !important; }
.ht__sus { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.ht__sus li { position: relative; }
.ht__sus li + li::before { content: ""; position: absolute; top: 10px; right: calc(50% + 12px); width: calc(100% - 24px); height: 2px; border-radius: 2px; background: rgba(18, 19, 24, .15); }
html[data-theme="dark"] .ht__sus li + li::before { background: rgba(255, 255, 255, .15); }
.ht__sus li.is-done + li::before { background: #19A463; }
.ht__sus span, .ht__sus a { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ht__sus i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(18, 19, 24, .3); background: rgba(255, 255, 255, .6); }
html[data-theme="dark"] .ht__sus i { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); background: transparent; }
.ht__sus .is-done i { background: #19A463; box-shadow: none; color: #fff; }
.ht__sus .is-done i svg { width: 13px; height: 13px; }
.ht__sus .is-next i { box-shadow: inset 0 0 0 2px var(--ha-solid, #E37239); background: #fff; animation: ht-pulse 1.8s ease-out infinite; }
@keyframes ht-pulse { 0% { box-shadow: inset 0 0 0 2px var(--ha-solid, #E37239), 0 0 0 0 color-mix(in srgb, var(--ha-solid, #E37239) 50%, transparent); } 100% { box-shadow: inset 0 0 0 2px var(--ha-solid, #E37239), 0 0 0 9px color-mix(in srgb, var(--ha-solid, #E37239) 0%, transparent); } }
.ht__sus small { font-size: 11px; font-weight: 700; color: var(--ht-mut); white-space: nowrap; }
.ht__sus .is-next small { color: var(--ht-ink); }
.ht__sus a:hover i { background: #fff; }
@media (prefers-reduced-motion: reduce) { .ht__sus .is-next i { animation: none; } }

/* the summary is one short paragraph, its key words bigger (owner, 2026-10-28) */
.ht__para { margin: 8px 0 14px; font-size: 16px; line-height: 1.5; color: var(--ht-ink); animation: ht-in .5s cubic-bezier(.32, .72, 0, 1) both .1s; }
.ht__para b { font-size: 1.16em; font-weight: 900; letter-spacing: -.01em; }

/* the calendar card, after the owner's reference: glass over a glow in the colour scheme's own colours (owner,
   2026-10-28: "match the color schemes and the text properly visible"). The card is coloured edge to edge, never grey,
   so the white text reads everywhere; today is a white circle in the scheme's colour. */
:root { --cg1: #C2461A; --cg2: #E2672A; --cg3: #EF9442; } /* Classic: the ai45 logo orange */
html[data-scheme="sky"], html[data-scheme="navy"] { --cg1: #2457C9; --cg2: #1488AE; --cg3: #4F46C8; }
html[data-scheme="sage"], html[data-scheme="forest"] { --cg1: #1C6B4B; --cg2: #2A8661; --cg3: #25667C; }
html[data-scheme="lilac"], html[data-scheme="plum"] { --cg1: #6236C9; --cg2: #B23E90; --cg3: #4140BE; }
html[data-scheme="sand"], html[data-scheme="espresso"] { --cg1: #A3431F; --cg2: #B9701C; --cg3: #823548; }
.ht__big { color: #fff; background: radial-gradient(60% 45% at 18% 0%, rgba(255, 255, 255, .22), transparent 70%), radial-gradient(55% 60% at 75% 62%, var(--cg2) 0%, transparent 75%), radial-gradient(50% 55% at 20% 70%, var(--cg3) 0%, transparent 75%), linear-gradient(155deg, var(--cg1), var(--cg2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 24px 50px -30px var(--cg1); }
html[data-theme="dark"] .ht__big { background: linear-gradient(rgba(10, 10, 16, .28), rgba(10, 10, 16, .28)), radial-gradient(55% 60% at 75% 62%, var(--cg2) 0%, transparent 75%), radial-gradient(50% 55% at 20% 70%, var(--cg3) 0%, transparent 75%), linear-gradient(155deg, var(--cg1), var(--cg2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ht__big::after { display: none; }
.ht__big .ht__su { background: rgba(255, 255, 255, .7); color: #121318; --ht-mut: #5d6170; --ht-ink: #121318; }
.ht__cal { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ht__seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.ht__seg button { padding: 8px 22px; border-radius: 12px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .88) !important; }
.ht__seg button.is-on { background: #fff !important; color: var(--cg1) !important; box-shadow: 0 6px 16px -10px rgba(40, 20, 60, .5); }
.ht__cpick--r .ht__cmenu { left: auto; right: 0; }
.ht__gear { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.ht__gear svg { width: 22px; height: 22px; transition: transform .4s cubic-bezier(.32, .72, 0, 1); }
.ht__gear:hover svg { transform: rotate(60deg); }
.ht__ctitle { display: flex; align-items: baseline; justify-content: center; gap: .45em; margin: auto 0 0; padding-top: 10px; font-size: clamp(46px, 7.4vh, 92px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #fff; text-shadow: 0 6px 30px rgba(90, 20, 80, .25); }
.ht__ctitle span { font-weight: 600; }
.ht__ctitle--sm { margin: 10px 0 4px; padding: 0; font-size: clamp(30px, 4.4vh, 46px); align-items: center; }
.ht__ctitle--sm span { font-size: .5em; opacity: .85; }
.ht__ctitle--sm button { width: 34px; height: 34px; border-radius: 50%; font-size: 24px; line-height: 1; color: #fff !important; background: rgba(255, 255, 255, .18) !important; }
.ht__arc { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); align-items: start; margin: 14px -6px auto; height: 150px; }
.ht__arc svg { position: absolute; left: 0; top: 0; width: 100%; height: 180px; overflow: visible; pointer-events: none; }
.ht__arc path { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ht__arc button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; transform: translateY(var(--y)); color: #fff !important; }
.ht__arc small { height: 20px; font-size: 16px; line-height: 20px; font-weight: 600; opacity: .92; }
.ht__arc b { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 500; transition: background .2s; }
.ht__arc button:hover b { background: rgba(255, 255, 255, .2); }
.ht__arc .is-now b, .ht__cal .ht__mog button.is-now { background: #fff !important; color: var(--cg1) !important; font-weight: 900; text-shadow: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); }
.ht__cal .ht__mog button.is-now em { background: var(--cg1); }
.ht__arc .is-now i em { background: #fff; }
.ht__arc i, .ht__cal .ht__mog i { display: flex; gap: 3px; height: 5px; }
.ht__arc i { position: absolute; top: 82px; }
.ht__arc em, .ht__cal .ht__mog em { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.ht__cal .ht__mow span { color: rgba(255, 255, 255, .8); }
.ht__cal .ht__mog button { color: #fff !important; }
.ht__cal .ht__mog button:hover { background: rgba(255, 255, 255, .2) !important; }
.ht__cfoot2 { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ht__note { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .9); }
.ht__note svg { width: 18px; height: 18px; flex: none; }
.ht__note input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 17px; color: #fff; padding: 8px 0; }
.ht__note input::placeholder { color: rgba(255, 255, 255, .92); }
.ht__newev { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--cg1) !important; font-weight: 800 !important; font-size: 16px; font-weight: 600; transition: background .2s; }
.ht__newev:hover { background: #fff; }
.ht__newev svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) { .ht__para { animation: none; } }
.ht__cal .ht__mog button, .ht__cal .ht__mow span, .ht__arc button, .ht__ctitle, .ht__note { text-shadow: 0 1px 10px rgba(0, 0, 0, .22); }
.ht__cal .ht__mow span { color: rgba(255, 255, 255, .9); }
.ht__cal .ht__mog button.is-past { opacity: .62; }

/* the other cards follow the calendar's design: white text on the scheme's colour (owner, 2026-10-28) */
.ht__big .ht__num small, .ht__big .ht__sub { color: rgba(255, 255, 255, .88); }
.ht__big .ht__sub b, .ht__big .ht__sub a, .ht__big .ht__cmid a, .ht__big .ht__cmid b { color: #fff; }
.ht__big .ht__num { text-shadow: 0 6px 30px rgba(0, 0, 0, .18); font-weight: 600; }
.ht__big .ht__cmid { color: rgba(255, 255, 255, .92); }
.ht__big .ht__hrs span, .ht__big .ht__stats span { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ht__big .ht__hrs small, .ht__big .ht__stats small { color: rgba(255, 255, 255, .85); }
.ht__big .ht__ctank { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.ht__seg > span { padding: 8px 18px; border-radius: 12px; font-size: 15px; font-weight: 800; background: #fff; color: var(--cg1); box-shadow: 0 6px 16px -10px rgba(40, 20, 60, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

/* the ask bars: a soft glow round the outside in the scheme's colours, a clean solid inside (owner: "glowing around
   it, not a gradient"). The glow sits under the bar (z -1 in .ht__l / .hts__in, which make their own layer) */
.ht { isolation: isolate; grid-template-rows: minmax(0, 1fr) auto; row-gap: 18px; }
.ht > .ht__ask { grid-column: 1 / -1; grid-row: 2; margin-top: 0; height: 64px; padding: 0 22px; }
.ht > .ht__ask[hidden] { display: none; }
.ht > .ht__ask .ht__tw { font-size: 17px; }
.hts__in { z-index: 1; }
.ht__ask, .hts__bar { isolation: auto !important; }
.ht__ask { background: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px color-mix(in srgb, var(--cg2) 22%, transparent); }
html[data-theme="dark"] .ht__ask { background: #1C1E26 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px color-mix(in srgb, var(--cg2) 35%, transparent); }
.ht__ask .ht__askg, .hts__bar .ht__askg { display: none; }
.ht__ask::before, .hts__bar::before { z-index: -1 !important; inset: -6px !important; border-radius: inherit; background: linear-gradient(90deg, var(--cg1), var(--cg3), var(--cg2), var(--cg3), var(--cg1)) !important; background-size: 300% 100% !important; filter: blur(16px) !important; opacity: .5 !important; animation: ht-glide 8s linear infinite, ht-breathe 3.2s ease-in-out infinite !important; }
.ht__ask:hover::before, .ht__ask:focus-visible::before { opacity: .8 !important; }
.hts__bar::before { inset: -10px !important; filter: blur(24px) !important; opacity: .65 !important; }
@keyframes ht-breathe { 50% { transform: scale(1.015, 1.08); } }
.ht__aski { background: linear-gradient(135deg, var(--cg1), var(--cg3)); }
html[data-theme="dark"] .hts__bar { background: #1C1E26; }
@media (prefers-reduced-motion: reduce) { .ht__ask::before, .hts__bar::before { animation: none !important; } }
@media (max-width: 1080px) { .ht > .ht__ask { grid-row: auto; } }

/* the brain dump on the Calendar panel (owner, 2026-10-28) */
.ht__dump { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 18px; overflow: hidden; }
.ht__dump .ht__aih small { margin-left: auto; color: var(--ht-mut); font-weight: 600; font-size: 12px; }
.ht__dump .ht__aih small sub { font-size: .75em; }
.ht__dump form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ht__dump textarea { width: 100%; min-height: 110px; resize: vertical; padding: 14px 16px; border-radius: 16px; border: 0; background: var(--ht-chip); color: var(--ht-ink); font: inherit; font-size: 15px; line-height: 1.5; outline: none; box-shadow: inset 0 0 0 1px var(--ht-edge); }
.ht__dump textarea:focus { box-shadow: inset 0 0 0 2px var(--cg2); }
.ht__dump textarea::placeholder { color: var(--ht-mut); }
.ht__dumpb { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ht-mut); font-size: 13px; }
.ht__dumpb .ht__go { flex: none; }
.ht__dumpout { min-height: 0; overflow-y: auto; margin-top: 10px; scrollbar-width: thin; }
.ht__dl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ht__busy { display: flex; align-items: center; gap: 10px; padding: 12px 4px; font-weight: 700; color: var(--ht-ink); }
.ht__busy sub { font-size: .7em; }
.ht__busy span { width: 18px; height: 18px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--cg2) 25%, transparent); border-top-color: var(--cg2); animation: nw-spin .8s linear infinite; }
@keyframes nw-spin { to { transform: rotate(360deg); } }
.ht__err { margin: 6px 2px; color: #C2410C; font-weight: 600; font-size: 14px; }
.ht__err sub { font-size: .7em; }
.ht__today { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ht__today .ht__u { padding: 12px 18px 12px 24px; }
.ht__today .ht__t { font-size: 17px; }
.ht__today .ht__time { font-size: 24px; }

/* add a friend from the home page */
.ht__rhr { display: flex; align-items: center; gap: 12px; }
.ht__addf { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 9px !important; border-radius: 999px; background: var(--ht-glass) !important; box-shadow: inset 0 0 0 1px var(--ht-edge); color: var(--ht-ink) !important; font-size: 13px; font-weight: 800; }
.ht__addf svg { width: 15px !important; height: 15px !important; }
.ht__addf:hover { background: #fff !important; }
html[data-theme="dark"] .ht__addf:hover { background: rgba(255, 255, 255, .14) !important; }
.ht__fadd { margin: -2px 0 14px; padding: 10px; }
.ht__fadd[hidden] { display: none; }
.ht__fq { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--ht-mut); }
.ht__fq input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 16px; padding: 8px 0; color: var(--ht-ink); }
.ht__fq input::placeholder { color: var(--ht-mut); }
.ht__fr1 { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.ht__fr1:hover { background: var(--ht-chip); }
.ht__fr1 > span:nth-child(2) { flex: 1; min-width: 0; }
.ht__fr1 b { display: block; font-size: 15px; } .ht__fr1 small { color: var(--ht-mut); font-size: 13px; }
.ht__fr1 .ht__av { width: 36px; height: 36px; } .ht__fr1 .ht__av svg { width: 36px !important; height: 36px !important; }
.ht__fbtn { padding: 7px 16px !important; border-radius: 999px; background: var(--cg1) !important; color: #fff !important; font-weight: 800; font-size: 13px; }
.ht__fst { color: var(--ht-mut); font-size: 13px; font-weight: 700; }
.ht__fmsg { margin: 6px 8px; color: var(--ht-mut); font-size: 14px; }
button.ht__fcta { width: 100%; }

/* Lock in inside the panel */
.ht__li { gap: 10px; }
.ht__lih { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ht__lih a { display: inline-flex; align-items: center; gap: 6px; color: var(--ht-mut) !important; font-weight: 700; font-size: 14px; }
.ht__lih a:hover { color: var(--ht-ink) !important; }
.ht__lih a svg { width: 15px; height: 15px; }
.ht__lif { flex: 1; min-height: 0; border-radius: 26px; overflow: hidden; background: var(--soft, #F2F3F6); box-shadow: inset 0 0 0 1px var(--ht-edge), 0 18px 40px -30px rgba(30, 40, 80, .5); }
.ht__lif iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 1080px) { .ht__lif { height: 760px; flex: none; } }

/* the home view never squeezes the big card under the summary (owner, 2026-10-28: "add note and add task … the thing
   just covers it"): the panel fills the window when there's room and grows past it on short screens, and the card is
   never shorter than what's in it */
.ht:has(> .ht__v[data-v="home"]) { height: auto; min-height: calc(100svh - 76px - 30px); }
.ht__v[data-v="home"] .ht__big { flex: 1 0 auto; }
.ht__v[data-v="home"] .ht__sum { max-height: none; }
.ht__v[data-v="home"] .ht__r .ht__up { max-height: 460px; }
