@font-face { font-family: Bricolage; src: url(/static/fonts/bricolage.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: Figtree; src: url(/static/fonts/figtree.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #F4F5FB; --card: #fff; --ink: #14162B; --soft: #626783; --faint: #9A9EB5; --line: #E7E8F3;
  --brand: #3B5BFF; --hot: #FF3D81; --gold: #FFB800; --gold-soft: #FFF4CC; --danger: #E5243B; --good: #00936A;
  --radius: 24px; --shadow: 0 1px 2px rgba(20,22,43,.05), 0 10px 28px -12px rgba(20,22,43,.16);
  --spring: cubic-bezier(.2,.9,.25,1.12); --display: Bricolage, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 Figtree, -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
body { padding: env(safe-area-inset-top) 0 calc(112px + env(safe-area-inset-bottom)); overflow-x: hidden; }
body.center { padding: 24px 16px; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(90% 60% at 10% 0%, #FFD8E6 0, transparent 70%), radial-gradient(90% 60% at 100% 100%, #CFD8FF 0, transparent 70%), var(--bg); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; transition: transform .16s var(--spring), background .16s; }
button:active { transform: scale(.96); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, white); outline-offset: 2px; }
[hidden] { display: none !important; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Sign in */
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.narrow { width: 100%; max-width: 390px; text-align: center; padding: 28px 22px; } .narrow form, .narrow .steps { text-align: left; }
.narrow h1 { font-size: 2rem; font-weight: 800; margin: 12px 0 6px; }
.logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 28px -10px rgba(59,91,255,.55); }
.hint { color: var(--soft); font-size: .86rem; margin: 8px 0; } .error { color: var(--danger); font-size: .92rem; font-weight: 600; } .good { color: var(--good); font-weight: 700; }

/* Forms */
label, .field { display: block; margin: 14px 0; font-size: .8rem; font-weight: 700; color: var(--soft); letter-spacing: .01em; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: 500 16px Figtree, sans-serif; color: var(--ink);
  background: var(--bg); border: 0; border-radius: 14px; min-height: 48px; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
input.big { font: 700 1.5rem var(--display); background: none; padding: 6px 0; border-bottom: 2px solid var(--line); border-radius: 0; letter-spacing: -.02em; }
input.big:focus { outline: 0; border-color: var(--brand); }
input[type=checkbox] { display: none; }
.primary { display: block; width: 100%; padding: 15px; min-height: 52px; border-radius: 16px; color: #fff; font-weight: 700; background: linear-gradient(120deg, var(--brand), #7A4BFF);
  box-shadow: 0 12px 22px -12px rgba(59,91,255,.8); }
.primary[disabled] { opacity: .45; box-shadow: none; }
.ghost { padding: 12px 16px; min-height: 46px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.ghost.danger { color: var(--danger); background: #FFEEF0; }
.text { color: var(--brand); font-weight: 700; padding: 8px; min-height: 40px; }
.row { display: flex; gap: 10px; align-items: flex-start; } .row > * { flex: 1; min-width: 0; } .spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Screens */
.page { padding: 12px 16px; max-width: 620px; margin: 0 auto; }
.enter > .page > * { animation: rise .5s var(--spring) both; }
.enter > .page > *:nth-child(2) { animation-delay: .05s; } .enter > .page > *:nth-child(3) { animation-delay: .1s; } .enter > .page > *:nth-child(4) { animation-delay: .15s; } .enter > .page > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.title { font-size: 2.2rem; font-weight: 800; line-height: 1.05; margin: 8px 2px 14px; }
.section { font-size: 1.12rem; font-weight: 800; margin: 24px 2px 10px; }

/* Hero: its colour follows the time of day */
.hero { position: relative; overflow: hidden; border-radius: 30px; padding: 20px 20px 18px; margin-bottom: 14px; color: var(--ink); box-shadow: 0 18px 34px -20px var(--glow, rgba(59,91,255,.7)); }
.hero[data-mood=morning] { background: linear-gradient(135deg, #FFE15A, #FFA94D); --glow: rgba(255,150,40,.8); }
.hero[data-mood=day] { background: linear-gradient(135deg, #8FD3FF, #A7B8FF); --glow: rgba(90,130,255,.8); }
.hero[data-mood=evening] { background: linear-gradient(135deg, #FFB199, #FF8FB8); --glow: rgba(255,80,130,.8); }
.hero[data-mood=night] { background: linear-gradient(135deg, #C9C2FF, #A9C6FF); --glow: rgba(110,100,255,.8); }
.hero[data-mood=shabbos] { background: linear-gradient(135deg, #FFE27A, #FFC93C 60%, #FFB000); --glow: rgba(255,176,0,.9); }
.hero::after { content: ""; position: absolute; width: 190px; height: 190px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.28); }
.hero > * { position: relative; z-index: 1; }
.hero .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .86rem; font-weight: 700; opacity: .82; }
.hero h1 { font-size: 2.15rem; font-weight: 800; line-height: 1.05; margin: 12px 0 14px; overflow-wrap: anywhere; }
.next { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.62); border-radius: 18px; padding: 11px 13px; width: 100%; text-align: left; }
.next .when { font-family: var(--display); font-weight: 800; font-size: 1.02rem; white-space: nowrap; } .next .what { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next .col { min-width: 0; }
.candle { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: .85rem; font-weight: 700; }
.candle svg { width: 17px; height: 17px; flex: none; }

/* People */
.avatars { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -16px; padding-inline: 18px; scrollbar-width: none; } .avatars::-webkit-scrollbar { display: none; }
.who { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--soft); flex: none; width: 56px; }
.who span:last-child { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who.on { color: var(--ink); } .who.on .av { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--c, var(--ink)); }
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 50%; color: #fff; font: 800 1.08rem var(--display); background: var(--c, var(--ink)); }
.av.all { background: conic-gradient(from 210deg, #3B5BFF, #FF3D81, #FF8A00, #00B37E, #3B5BFF); }
.av.sm { width: 26px; height: 26px; font-size: .72rem; } .stack { display: flex; } .stack .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--card); } .stack .av:first-child { margin-left: 0; }

/* Month */
.month { background: var(--card); border-radius: var(--radius); padding: 14px 7px 9px; box-shadow: var(--shadow); touch-action: pan-y; }
.month-head { display: flex; align-items: center; gap: 4px; padding: 0 8px 10px; }
.month-head .names { flex: 1; min-width: 0; } .month-head h2 { font-size: 1.65rem; font-weight: 800; line-height: 1.1; }
.month-head .year { color: var(--faint); font-weight: 600; } .month-head .heb { color: var(--soft); font-size: .8rem; font-weight: 600; }
.nav { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex: none; } .nav svg { width: 18px; height: 18px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid.next-in { animation: inRight .32s var(--spring); } .grid.prev-in { animation: inLeft .32s var(--spring); }
@keyframes inRight { from { opacity: 0; transform: translateX(26px); } } @keyframes inLeft { from { opacity: 0; transform: translateX(-26px); } }
.dow { text-align: center; color: var(--faint); font-size: .7rem; font-weight: 700; padding-bottom: 4px; }
.day { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 76px; padding: 3px 2px 4px; border-radius: 12px; text-align: center; overflow: hidden; min-width: 0; }
.day .num { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 25px; }
.day .n { width: 25px; height: 25px; line-height: 25px; border-radius: 50%; font-size: .88rem; font-weight: 700; flex: none; }
.day .hd { font-size: .56rem; font-weight: 600; color: var(--faint); direction: rtl; line-height: 1; margin-top: -1px; min-height: 8px; }
.day.out { opacity: .32; } .day.closed { background: var(--gold-soft); }
.day.today .n { background: linear-gradient(135deg, var(--hot), #FF8A00); color: #fff; }
.day.sel { background: color-mix(in srgb, var(--brand) 11%, white); box-shadow: inset 0 0 0 1.5px var(--brand); }
.pill { display: block; border-radius: 4px; padding: 0 3px; font-size: .58rem; line-height: 13px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: clip;
  background: color-mix(in srgb, var(--c, var(--soft)) 20%, white); color: color-mix(in srgb, var(--c, var(--soft)) 72%, black); }
.more { font-size: .56rem; font-weight: 700; color: var(--soft); line-height: 11px; }

/* Day and its events */
.dayhead { margin: 20px 2px 10px; } .dayhead h2 { font-size: 1.28rem; font-weight: 800; } .dayhead .sub { color: var(--soft); font-size: .84rem; font-weight: 600; }
.jewish { display: flex; gap: 8px; align-items: center; background: var(--gold-soft); border-radius: 16px; padding: 10px 13px; margin-bottom: 10px; font-size: .88rem; font-weight: 600; }
.jewish svg { width: 18px; height: 18px; flex: none; }
.event { display: flex; gap: 13px; align-items: center; width: 100%; text-align: left; margin-bottom: 9px; padding: 13px 14px; border-radius: 20px; background: color-mix(in srgb, var(--c, var(--soft)) 14%, white); }
.event .time { flex: none; width: 54px; font: 800 1rem/1.15 var(--display); color: color-mix(in srgb, var(--c, var(--soft)) 78%, black); } .event .time small { display: block; font: 600 .72rem Figtree, sans-serif; opacity: .78; margin-top: 2px; }
.event .body { flex: 1; min-width: 0; } .event .t { font-weight: 700; font-size: 1.03rem; overflow-wrap: anywhere; } .event .m { color: var(--soft); font-size: .8rem; font-weight: 500; }
.empty { text-align: center; color: var(--soft); padding: 26px 16px; background: var(--card); border-radius: 20px; font-weight: 500; } .empty svg { display: block; width: 34px; height: 34px; margin: 0 auto 8px; color: var(--faint); }
.banner { background: linear-gradient(120deg, #E6EBFF, #FFE6F0); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; font-size: .88rem; font-weight: 500; }

/* Dock */
#tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 480px); display: flex; align-items: center; padding: 6px; border-radius: 26px; z-index: 5;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 16px 34px -12px rgba(20,22,43,.35), 0 0 0 1px rgba(20,22,43,.04); }
#tabs .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 0 5px; min-height: 52px; font-size: .67rem; font-weight: 700; color: var(--faint); border-radius: 20px; position: relative; }
#tabs .tab svg { width: 23px; height: 23px; } #tabs .tab.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, white); }
#tabs .add { flex: none; width: 56px; height: 56px; margin: 0 5px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--hot), #FF8A00); box-shadow: 0 12px 20px -8px rgba(255,61,129,.75); display: flex; align-items: center; justify-content: center; }
#tabs .add svg { width: 26px; height: 26px; }
.badge { position: absolute; top: 2px; left: calc(50% + 5px); min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--hot); color: #fff; font-size: .66rem; line-height: 17px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }

/* Sheets */
#sheet { position: fixed; inset: 0; background: rgba(20,22,43,.38); display: flex; align-items: flex-end; justify-content: center; z-index: 10; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.panel { background: var(--card); width: 100%; max-width: 620px; max-height: 92dvh; overflow-y: auto; border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .38s var(--spring); }
@keyframes up { from { transform: translateY(60%); } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.panel h2 { font-size: 1.45rem; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 4px; }
.tile { display: flex; flex-direction: column; gap: 14px; text-align: left; padding: 15px; border-radius: 22px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; min-height: 96px; background: color-mix(in srgb, var(--c) 15%, white); color: color-mix(in srgb, var(--c) 72%, black); }
.tile svg { width: 26px; height: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 5px 13px 5px 6px; border-radius: 22px; font-size: .92rem; font-weight: 600; color: var(--ink); background: var(--bg); }
.chip .av { width: 30px; height: 30px; font-size: .8rem; } .chip.plain { padding-left: 13px; }
.chip.on { background: var(--c, var(--brand)); color: #fff; font-weight: 700; } .chip.on .av { background: rgba(255,255,255,.28); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; padding: 4px 0; font-size: .96rem; font-weight: 600; color: var(--ink); }
.toggle .track { flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; transition: background .2s; }
.toggle .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .24s var(--spring); }
.toggle input:checked + .track { background: var(--good); } .toggle input:checked + .track::after { transform: translateX(20px); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .actions button { flex: 1 1 40%; width: auto; min-width: 0; }

/* Requests */
.req { position: relative; margin-bottom: 11px; overflow: hidden; padding-left: 22px; } .req::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--c, var(--brand)); }
.req .t { font: 800 1.14rem/1.2 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; } .req .w { font-weight: 600; font-size: .9rem; margin: 3px 0 7px; } .req p { margin: 7px 0; overflow-wrap: anywhere; font-size: .94rem; }
.status { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: .82rem; color: var(--soft); font-weight: 600; }
.tag { padding: 3px 9px; border-radius: 10px; font-size: .74rem; font-weight: 700; background: var(--bg); color: var(--soft); } .tag.yes { background: #DDF8EE; color: var(--good); } .tag.no { background: #FFEEF0; color: var(--danger); }

/* People page */
.person { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px; margin-bottom: 9px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.person .nm { font-weight: 700; font-size: 1.04rem; overflow-wrap: anywhere; } .person .rl { color: var(--soft); font-size: .82rem; font-weight: 500; } .person .col { flex: 1; min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 10px; } .swatch { width: 36px; height: 36px; border-radius: 50%; background: var(--c); } .swatch.on { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--c); }
.linkbox { word-break: break-all; font-size: .85rem; background: var(--bg); padding: 12px; border-radius: 14px; margin: 10px 0; user-select: all; -webkit-user-select: all; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; } .stat { background: var(--bg); border-radius: 16px; padding: 11px 10px; } .stat b { display: block; font: 800 1.25rem var(--display); overflow-wrap: anywhere; } .stat span { color: var(--soft); font-size: .72rem; font-weight: 600; }
.log { background: #14162B; color: #C9D2FF; border-radius: 14px; padding: 12px; font: 11px/1.45 ui-monospace, Menlo, monospace; overflow-x: auto; white-space: pre; margin: 8px 0; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; } .line:first-child { border-top: 0; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); margin: auto; max-width: 420px; text-align: center; background: var(--ink); color: #fff; font-weight: 600; padding: 13px 16px; border-radius: 16px; z-index: 20; animation: rise .32s var(--spring); }
.spark { position: fixed; width: 9px; height: 9px; border-radius: 3px; z-index: 30; pointer-events: none; animation: spark .85s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--x), var(--y)) rotate(320deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Jewish holidays */
.pill.hol { text-align: center; }
.pill.hol.yomtov { background: #FFB800; color: #3A2A00; } .pill.hol.major { background: #FFE08A; color: #5E4300; }
.pill.hol.fast { background: #DDE1EE; color: #3B4160; } .pill.hol.minor { background: #E9E3FF; color: #4B2FA8; }
.strip { display: flex; gap: 9px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 18px 8px; scrollbar-width: none; } .strip::-webkit-scrollbar { display: none; }
.soon { flex: none; display: flex; flex-direction: column; gap: 1px; min-width: 124px; max-width: 170px; padding: 11px 13px; border-radius: 18px; text-align: left; background: #FFF0B8; color: #4A3500; }
.soon strong { font: 800 1rem/1.15 var(--display); } .soon bdi { font-size: .8rem; font-weight: 600; opacity: .8; } .soon small { font-size: .74rem; font-weight: 700; opacity: .78; margin-top: 3px; }
.soon.yomtov { background: linear-gradient(135deg, #FFD65C, #FFB800); color: #3A2A00; } .soon.fast { background: #E4E7F2; color: #3B4160; }
.holiday { display: flex; align-items: center; gap: 11px; padding: 13px 14px; margin-bottom: 9px; border-radius: 20px; background: #FFE9A8; color: #4A3500; }
.holiday svg { width: 22px; height: 22px; flex: none; } .holiday .col { flex: 1; min-width: 0; } .holiday strong { font: 800 1.05rem var(--display); } .holiday small { font-weight: 700; } .holiday bdi { display: block; font-size: .84rem; font-weight: 600; opacity: .8; }
.holiday.yomtov { background: linear-gradient(135deg, #FFD65C, #FFB800); color: #3A2A00; } .holiday.fast { background: #E4E7F2; color: #3B4160; } .holiday.minor { background: #EEE9FF; color: #4B2FA8; }

/* Google Calendar */
.pill.ext { background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--soft)) 55%, white); line-height: 13px; }
.event.ext { background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c, var(--soft)) 40%, white); }
.ghost.wide { width: 100%; } .linkbtn { display: flex; flex: 1 1 40%; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); text-align: center; }
.steps { margin: 8px 0; padding-left: 20px; font-size: .92rem; } .steps li { margin: 6px 0; } .steps a { color: var(--brand); font-weight: 700; }
.line small { font-weight: 500; } .toggle small { font-weight: 500; }

/* View switch */
.seg { display: flex; gap: 3px; padding: 4px; margin-bottom: 11px; border-radius: 15px; background: #E7E9F4; }
.seg button { flex: 1; min-height: 38px; border-radius: 12px; font-weight: 700; font-size: .9rem; color: var(--soft); } .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(20,22,43,.12); }

/* Week */
.wk.next-in { animation: inRight .32s var(--spring); } .wk.prev-in { animation: inLeft .32s var(--spring); }
.wk-row { display: grid; grid-template-columns: 22px repeat(7, minmax(0, 1fr)); }
.wk-day { display: flex; flex-direction: column; align-items: center; padding: 3px 0 5px; border-radius: 12px; min-width: 0; } .wk-day small { font-size: .68rem; font-weight: 700; color: var(--faint); }
.wk-day .n { width: 26px; height: 26px; line-height: 26px; border-radius: 50%; font-size: .9rem; font-weight: 700; } .wk-day .hd { font-size: .56rem; color: var(--faint); font-weight: 600; direction: rtl; min-height: 9px; }
.wk-day.closed { background: var(--gold-soft); } .wk-day.today .n { background: linear-gradient(135deg, var(--hot), #FF8A00); color: #fff; } .wk-day.sel { background: color-mix(in srgb, var(--brand) 11%, white); box-shadow: inset 0 0 0 1.5px var(--brand); }
.alls { border-bottom: 1px solid var(--line); padding-bottom: 3px; } .wk-all { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 1px; } .wk-all .pill { width: 100%; }
.body { position: relative; } .hrs { display: flex; flex-direction: column; } .hr { height: 42px; font-size: .56rem; font-weight: 600; color: var(--faint); margin-top: -1px; }
.wk-col { position: relative; border-left: 1px solid var(--line); min-width: 0; background: repeating-linear-gradient(to bottom, transparent 0 41px, var(--line) 41px 42px); }
.wk-col.today { background-color: color-mix(in srgb, var(--hot) 5%, white); }
.blk { position: absolute; overflow: hidden; border-radius: 6px; padding: 2px 3px; text-align: left; background: var(--c, var(--soft)); color: #fff; font-size: .58rem; line-height: 1.12; font-weight: 700; box-shadow: 0 0 0 1px #fff; display: block; }
.blk span { display: block; overflow-wrap: anywhere; } .blk.ext { background: #fff; color: color-mix(in srgb, var(--c, var(--soft)) 72%, black); box-shadow: inset 0 0 0 1.5px var(--c, var(--soft)); }
.now { position: absolute; left: 0; right: 0; height: 2px; background: var(--hot); z-index: 2; }

/* Birthdays and yahrzeits */
.pill.occ.birthday { background: #FFE1EC; color: #B4134F; } .pill.occ.yahrzeit { background: #E4E7F2; color: #3B4160; }
.occasion { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 13px 14px; margin-bottom: 9px; border-radius: 20px; }
.occasion svg { width: 22px; height: 22px; flex: none; } .occasion .col { flex: 1; min-width: 0; } .occasion strong { display: block; font: 800 1.05rem var(--display); } .occasion small { font-size: .78rem; font-weight: 600; opacity: .8; }
.occasion.birthday { background: #FFE1EC; color: #8E0F40; } .occasion.yahrzeit { background: #E4E7F2; color: #3B4160; }
.occ-av svg { width: 23px; height: 23px; } .occ-av.birthday { background: #FF3D81; } .occ-av.yahrzeit { background: #626783; }
.convert { margin: 8px 0 12px; background: var(--bg); border-radius: 14px; padding: 11px 13px; } .convert summary { font-weight: 700; color: var(--brand); font-size: .9rem; } .convert input { background: #fff; } .convert[hidden] { display: none; }

/* Clashes */
.clash { margin-top: 8px; padding: 9px 12px; border-radius: 13px; background: #FFF0DB; color: #7A4300; font-size: .86rem; font-weight: 500; overflow-wrap: anywhere; }

/* Lists */
.back { display: inline-flex; align-items: center; gap: 2px; padding: 4px 2px; margin-left: -4px; } .back svg { width: 18px; height: 18px; }
.listicon { background: linear-gradient(135deg, #00B37E, #00A9D6); } .listicon svg { width: 25px; height: 25px; }
.addrow { align-items: center; margin-bottom: 12px; } .addrow input { margin: 0; background: #fff; box-shadow: var(--shadow); } .addrow .primary.tight { flex: none; width: auto; padding: 0 19px; min-height: 48px; }
.items { padding: 3px 13px; } .item { display: flex; align-items: center; gap: 11px; min-height: 52px; border-top: 1px solid var(--line); } .item:first-child { border-top: 0; }
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--faint); position: relative; }
.item.done .tick { background: var(--good); box-shadow: none; } .item.done .tick::after { content: ""; position: absolute; left: 10px; top: 5px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.item .tx { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; } .item.done .tx { color: var(--faint); text-decoration: line-through; font-weight: 500; }
.x { flex: none; width: 34px; height: 34px; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; } .x svg { width: 16px; height: 16px; }

/* Request chat */
.ghost.chatbtn { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 7px; background: color-mix(in srgb, var(--brand) 11%, white); color: var(--brand); font-weight: 700; } .ghost.chatbtn svg { width: 18px; height: 18px; }
.newtag { background: var(--hot); color: #fff; font-size: .72rem; padding: 2px 7px; border-radius: 9px; font-weight: 800; }
.lastmsg { margin-top: 8px; padding: 8px 11px; background: var(--bg); border-radius: 12px; font-size: .86rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.chatlog { display: flex; flex-direction: column; gap: 5px; min-height: 180px; max-height: 44dvh; overflow-y: auto; padding: 10px; margin: 10px -4px; background: var(--bg); border-radius: 18px; -webkit-overflow-scrolling: touch; }
.centre { text-align: center; margin: auto; }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; } .msg.mine { align-self: flex-end; } .msg .gap { width: 26px; flex: none; }
.bub { padding: 8px 12px 6px; border-radius: 17px 17px 17px 5px; background: #fff; box-shadow: 0 1px 2px rgba(20,22,43,.08); overflow-wrap: anywhere; min-width: 0; font-size: .94rem; }
.bub b { display: block; font-size: .74rem; color: color-mix(in srgb, var(--c, var(--soft)) 76%, black); } .bub span { white-space: pre-wrap; } .bub small { display: block; font-size: .64rem; color: var(--faint); font-weight: 600; margin-top: 2px; text-align: right; }
.msg.mine .bub { background: linear-gradient(135deg, var(--brand), #7A4BFF); color: #fff; border-radius: 17px 17px 5px 17px; } .msg.mine .bub small { color: rgba(255,255,255,.75); }
.chatbar { margin: 6px 0 0; } .chatbar input { background: var(--bg); box-shadow: none; }
