/* Sales Brief — Pak-Qatar Family Takaful
   Palette taken from the logo: seal green, the garnet wave, black wordmark, on a cool mist ground. */
:root {
  --pine: #0b3b27;
  --seal: #025c39;
  --leaf: #1d7a4b;
  --mint: #d5eadf;
  --garnet: #921b3b;
  --blush: #f6e4e9;
  --ink: #14201a;
  --muted: #5d6c64;
  --faint: #8a988f;
  --mist: #eef3f0;
  --paper: #ffffff;
  --line: #dbe4de;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 59, 39, .06), 0 8px 24px -12px rgba(11, 59, 39, .18);
  --display: 'Sora', 'Figtree', system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--text); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--mist);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid rgba(29, 122, 75, .45); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ login */
.login {
  min-height: 100%; display: grid; place-items: center; padding: 32px 20px calc(32px + var(--safe-b));
  background: var(--pine); position: relative; overflow: hidden;
}
.login .rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.login-card {
  position: relative; width: min(400px, 100%); background: var(--paper); border-radius: 28px;
  padding: 36px 28px 28px; text-align: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.login-card .logo { width: 190px; height: auto; display: block; margin: 0 auto 22px; }
.login-card h1 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.login-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; height: 52px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 16px;
  background: #fbfcfb; font-size: 17px; transition: border-color .15s;
}
.field input:focus { border-color: var(--leaf); outline: none; background: #fff; }
.field input.pin { font-family: var(--display); font-size: 26px; letter-spacing: .5em; text-align: center; padding-left: .5em; }
.btn-primary {
  width: 100%; height: 54px; border-radius: var(--radius); background: var(--seal); color: #fff;
  font-weight: 600; font-size: 17px; margin-top: 6px; transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--pine); }
.btn-primary:active { transform: scale(.99); }
.btn-primary[disabled] { opacity: .6; cursor: default; }
.login-error { color: var(--garnet); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.login-foot { color: var(--faint); font-size: 12.5px; margin-top: 18px; }

/* ------------------------------------------------------------ shell */
.shell { min-height: 100%; display: flex; }
.rail { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(238, 243, 240, .92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar .emblem { width: 38px; height: 38px; }
.topbar .title { flex: 1; min-width: 0; line-height: 1.15; }
.topbar .title b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.topbar .title span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--seal);
  transition: background .15s;
}
.icon-btn:hover { background: rgba(2, 92, 57, .08); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--seal); color: #fff; font-weight: 700;
  font-size: 14px; display: grid; place-items: center;
}
.view { padding: 4px 16px calc(96px + var(--safe-b)); width: 100%; max-width: 760px; margin: 0 auto; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + var(--safe-b)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px;
  color: var(--faint); font-size: 12px; font-weight: 600;
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--seal); }

/* ------------------------------------------------------------ date strip */
.dates {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.dates::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; min-width: 64px; padding: 8px 14px; border-radius: 14px; background: var(--paper);
  border: 1px solid var(--line); text-align: left; line-height: 1.2; transition: background .15s, border-color .15s;
}
.chip b { display: block; font-size: 15px; font-weight: 700; }
.chip span { font-size: 12px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--seal); border-color: var(--seal); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }
.chip.more { background: transparent; border-style: dashed; border-color: #b9c9bf; color: var(--seal); }
.chip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d39b2a; margin-right: 5px; vertical-align: 1px; }

/* ------------------------------------------------------------ hero */
.hero {
  background: var(--pine); color: #fff; border-radius: var(--radius-lg); padding: 20px 20px 22px; position: relative; overflow: hidden;
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-top h2 { margin: 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .78); line-height: 1.35; }
.hero-top h2 b { display: block; color: #fff; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 3px; flex: none; }
.seg button { padding: 6px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--pine); }
.seal-wrap { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.seal { width: 168px; height: 168px; flex: none; }
.seal .bead { transition: fill .25s; }
.seal-pct { font-family: var(--display); font-weight: 600; font-size: 38px; letter-spacing: -.03em; fill: #fff; }
.seal-sub { font-size: 12px; fill: rgba(255, 255, 255, .7); font-family: var(--text); }
.hero-figs { flex: 1; min-width: 0; display: grid; gap: 12px; }
.fig small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .68); }
.fig strong { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.fig.short strong { color: #ffb3c4; }
.fig.surplus strong { color: #9fe3bd; }
.pace-note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .72); display: flex; align-items: center; gap: 8px; }
.pace-note i { width: 14px; height: 3px; background: #f0c35a; border-radius: 2px; display: inline-block; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
.badge.warn { background: #f0c35a; color: #3d2c00; }

/* ------------------------------------------------------------ sections */
.block { background: var(--paper); border-radius: var(--radius-lg); padding: 18px; margin-top: 12px; box-shadow: var(--shadow); }
.block h3 { margin: 0 0 12px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.block h3 small { font-family: var(--text); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 6px; }
.moves { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 599px) {
  .moves { grid-template-columns: 1fr !important; gap: 0; }
  .move { background: none; border-radius: 0; padding: 10px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .move + .move { border-top: 1px solid var(--line); }
  .move small { font-size: 14.5px; color: var(--ink); }
  .move strong { margin: 0; }
}
.move { background: var(--mist); border-radius: var(--radius); padding: 12px; }
.move small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.move strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.up { color: var(--leaf); } .down { color: var(--garnet); }

.channel { display: grid; gap: 6px; padding: 10px 0; }
.channel + .channel { border-top: 1px solid var(--line); }
.channel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.channel-head b { font-size: 15.5px; }
.channel-head span { font-family: var(--display); font-weight: 600; }
.channel p { margin: 0; font-size: 13.5px; color: var(--muted); }

.bar { position: relative; height: 10px; background: var(--mist); border-radius: 999px; overflow: visible; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--leaf); }
.bar > i.low { background: var(--garnet); }
.bar > i.over { background: var(--seal); }
.bar .pace { position: absolute; top: -3px; bottom: -3px; width: 3px; border-radius: 2px; background: #d39b2a; transform: translateX(-1px); }

.tabs { display: flex; gap: 4px; background: var(--mist); border-radius: 12px; padding: 3px; margin-bottom: 8px; }
.tabs button { flex: 1; padding: 8px 6px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.region { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: center; padding: 11px 0; }
.region + .region { border-top: 1px solid var(--line); }
.region .rank { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--faint); grid-row: span 2; align-self: start; padding-top: 1px; }
.region .name { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region .pct { font-family: var(--display); font-weight: 600; font-size: 16px; text-align: right; }
.region .bar { grid-column: 2 / 4; }
.region .meta { grid-column: 2 / 4; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; background: #d39b2a; margin-right: 6px; vertical-align: 3px; }

.callout { border-left: 3px solid var(--garnet); padding: 2px 0 2px 12px; margin: 0; }
.callout + .callout { margin-top: 12px; }
.callout.ok { border-color: var(--leaf); }
.callout b { display: block; font-size: 14.5px; }
.callout span { font-size: 14.5px; color: var(--muted); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.btn {
  height: 48px; border-radius: var(--radius); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--seal);
}
.btn svg { width: 19px; height: 19px; }
.btn.solid { background: var(--seal); color: #fff; border-color: var(--seal); }
.status-line { font-size: 12.5px; color: var(--faint); text-align: center; margin: 16px 8px 0; }

/* waiting for today */
.waiting { background: var(--paper); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; box-shadow: var(--shadow); }
.waiting svg { width: 92px; height: 92px; margin-bottom: 8px; }
.waiting h2 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; margin: 0 0 6px; }
.waiting p { margin: 0 auto 18px; color: var(--muted); max-width: 34ch; }
.waiting .btn { padding: 0 18px; }

/* skeleton */
.skel { background: linear-gradient(90deg, #e3ebe6 0%, #f1f5f2 50%, #e3ebe6 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-lg); }

/* ------------------------------------------------------------ ask */
.chat { display: flex; flex-direction: column; min-height: calc(100vh - 160px); }
.chat-empty { text-align: center; padding: 26px 6px 10px; }
.chat-empty img { width: 64px; height: 64px; }
.chat-empty h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 10px 0 4px; }
.chat-empty p { margin: 0 auto 18px; color: var(--muted); max-width: 36ch; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.suggest button {
  padding: 9px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px;
  color: var(--ink); text-align: left; transition: border-color .15s;
}
.suggest button:hover { border-color: var(--leaf); }
.msgs { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 12px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--seal); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.bot p { margin: 0 0 8px; } .msg.bot p:last-child { margin-bottom: 0; }
.msg.bot ul { margin: 0 0 8px; padding-left: 18px; } .msg.bot li { margin: 2px 0; }
.msg.bot strong { font-weight: 700; }
.msg.err { background: var(--blush); color: var(--garnet); box-shadow: none; }
.msg-tools { display: flex; gap: 6px; margin-top: 8px; }
.msg-tools button { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 8px; border-radius: 8px; background: var(--mist); }
.msg-time { font-size: 11.5px; color: var(--faint); margin-left: auto; align-self: center; }

.thinking {
  align-self: flex-start; display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 18px;
  border-bottom-left-radius: 6px; padding: 12px 14px; box-shadow: var(--shadow); max-width: 92%;
}
.thinking .spinner { width: 34px; height: 34px; flex: none; animation: spin 2.4s linear infinite; }
.thinking .now { font-weight: 600; font-size: 14.5px; margin: 6px 0 0; animation: fadein .35s ease; }
.thinking ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.thinking li { display: flex; gap: 6px; align-items: baseline; }
.thinking li::before { content: '✓'; color: var(--leaf); font-weight: 700; }
.thinking .secs { font-size: 12px; color: var(--faint); margin-top: 4px; }

.composer {
  position: sticky; bottom: calc(64px + var(--safe-b)); margin-top: auto; padding: 10px 0 8px;
  background: linear-gradient(to top, var(--mist) 70%, rgba(238, 243, 240, 0));
}
.composer form { display: flex; align-items: flex-end; gap: 8px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); }
.composer form:focus-within { border-color: var(--leaf); }
.composer textarea { flex: 1; border: 0; resize: none; outline: none; background: transparent; font-size: 16px; line-height: 1.45; padding: 9px 0; height: 41px; min-height: 41px; max-height: 140px; overflow-y: hidden; scrollbar-width: thin; }
.send { width: 42px; height: 42px; border-radius: 50%; background: var(--seal); color: #fff; display: grid; place-items: center; flex: none; }
.send[disabled] { background: var(--line); color: var(--faint); }
.send svg { width: 20px; height: 20px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 4px; }
#viewAsk .chat-head { justify-content: flex-end; }
#viewAsk .chat-head h2 { display: none; }
.chat-head h2 { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.link-btn { font-size: 14px; font-weight: 600; color: var(--seal); padding: 6px 8px; border-radius: 8px; }
.link-btn:hover { background: rgba(2, 92, 57, .08); }

/* ------------------------------------------------------------ reports */
.rep-day { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px 0; }
.rep-day + .rep-day { border-top: 1px solid var(--line); }
.rep-day b { font-size: 15.5px; }
.rep-day small { display: block; color: var(--muted); font-size: 13px; }
.pills { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--mist); color: var(--muted); }
.pill.mbs { background: var(--mint); color: var(--seal); }

/* ------------------------------------------------------------ sheet + toast */
.scrim { position: fixed; inset: 0; background: rgba(11, 30, 20, .4); z-index: 50; animation: fadein .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--paper); border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(20px + var(--safe-b)); animation: rise .25s ease; max-width: 520px; margin: 0 auto;
}
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; }
.sheet p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.sheet .row { display: flex; gap: 10px; flex-direction: column; }
.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; max-width: calc(100% - 32px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); animation: rise .2s ease;
}
.offline { background: #fff4d6; color: #6b4b00; font-size: 13.5px; text-align: center; padding: 6px 12px; }

@keyframes spin { to { transform: rotate(360deg); } }
.seal .bead.lit { animation: beadOn .45s ease both; }
@keyframes beadOn { from { fill: rgba(255, 255, 255, .16); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translate(var(--tx, 0), 16px); opacity: 0; } to { transform: translate(var(--tx, 0), 0); opacity: 1; } }
.toast { --tx: -50%; }

/* ------------------------------------------------------------ desktop */
@media (min-width: 900px) {
  .tabbar { display: none; }
  .rail {
    display: flex; flex-direction: column; width: 232px; flex: none; position: sticky; top: 0; height: 100vh;
    background: var(--paper); border-right: 1px solid var(--line); padding: 22px 14px;
  }
  .rail .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
  .rail .brand img { width: 44px; height: 44px; }
  .rail .brand b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.1; }
  .rail .brand span { font-size: 12px; color: var(--muted); }
  .rail nav { display: grid; gap: 4px; }
  .rail nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; color: var(--muted); text-align: left; }
  .rail nav button svg { width: 21px; height: 21px; }
  .rail nav button:hover { background: var(--mist); }
  .rail nav button[aria-current="page"] { background: var(--mint); color: var(--seal); }
  .rail .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; text-align: left; }
  .rail .me:hover { background: var(--mist); }
  .rail .me small { display: block; color: var(--muted); font-size: 12px; }
  .topbar .emblem, .topbar .avatar { display: none; }
  .topbar { padding: 18px 28px 12px; }
  .view { padding: 4px 28px 40px; }
  .dates { margin: 0 -28px; padding-left: 28px; padding-right: 28px; }
  .composer { bottom: 0; }
  .chat { min-height: calc(100vh - 110px); }
  .toast { bottom: 28px; }
  .seal { width: 190px; height: 190px; }
}
@media (min-width: 1280px) {
  .dock { width: 410px; flex: none; position: sticky; top: 0; height: 100vh; border-left: 1px solid var(--line); background: #f6f9f7; padding: 18px 20px 12px; display: flex; flex-direction: column; }
  .dock .chat { min-height: 0; height: 100%; }
  .dock .msgs { flex: 1; overflow-y: auto; margin: 0 -8px; padding: 8px 8px 12px; }
  .dock .chat-empty { padding-top: 10px; overflow-y: auto; }
  .dock .chat-empty img { width: 52px; height: 52px; }
  .dock .msg { max-width: 94%; }
  .dock .composer { position: static; background: none; padding-bottom: 0; }
}
@media (max-width: 380px) {
  .seal { width: 140px; height: 140px; }
  .seal-pct { font-size: 34px; }
  .fig strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------ all briefs */
.month { padding: 4px 18px; }
.month-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; text-align: left; }
.month-head b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; }
.month-head small { color: var(--muted); font-size: 13px; }
.month-head svg { width: 22px; height: 22px; color: var(--muted); transition: transform .2s; }
.month-head[aria-expanded="true"] svg { transform: rotate(180deg); }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; padding: 0 0 16px; }
.day { border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px 8px; text-align: center; background: var(--paper); line-height: 1.15; position: relative; }
.day:hover { border-color: var(--leaf); }
.day b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; }
.day span { font-size: 12px; color: var(--muted); }
.day em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--leaf); margin-top: 3px; }
.day[aria-pressed="true"] { background: var(--seal); border-color: var(--seal); color: #fff; }
.day[aria-pressed="true"] span, .day[aria-pressed="true"] em { color: rgba(255, 255, 255, .8); }
.tabbar button { font-size: 11.5px; }
