*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--n900); font-family: var(--fb); -webkit-tap-highlight-color: transparent; }
.vp { container: tp / inline-size; min-height: 100vh; min-height: 100dvh; }
.tp { min-height: 100vh; min-height: 100dvh; }
.tp { --acc: var(--ink); --acc-deep: var(--ink); --acc-hi: var(--n400); --acc-50: var(--n50); --acc-100: var(--n200); --acc-ink: #fff; --ok: var(--ink); }
.tp.dir-A { --r: 10px; --r2: 6px; --btn: 6px; }
.tp { --warn: var(--n700); }
.tp { --tint: var(--brand-50); --tint2: var(--brand-100); --tint3: #C9E3DC; --tint-ink: var(--brand-deep); --done: #EDF0F5; --done-ink: #2E416B; }
#site:has(> header.t-nav .t-me) { --bg: var(--n50); }
#site .t-card, #site .db-stat { border-color: var(--n100); }
.tp .t-st { justify-content: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--n100); color: var(--n700); font-size: 14.5px; line-height: 1.25; }
.tp .t-st::before { content: none; }
.tp .t-st.go { background: var(--tint2); color: var(--tint-ink); }
.tp .t-st.paid { background: var(--done); color: var(--done-ink); }
.tp .t-st.todo { background: none; box-shadow: inset 0 0 0 1px var(--line2); color: var(--muted); }
.tp .t-prog, .tp .t-msbar { background: var(--tint2); }
.tp .t-prog i, .tp .t-msbar i, .tp .kB-ms li.done .d, .tp .t-tli.done .dot { background: var(--brand); border-color: var(--brand); }
.tp .kB-ms li.now .d { border-color: var(--brand); }
.tp .kB-ms li.now .d::after { background: var(--brand); }
.tp .t-ver .i, .tp .t-vi { color: var(--brand); }
.tp .t-sw.on, .tp .t-meter i.on { background: var(--brand); }
.tp .t-chip.on, .tp .t-seg b.on, .tp .t-pill.on { background: var(--tint2); color: var(--tint-ink); border-color: var(--tint3); box-shadow: inset 0 0 0 1px var(--tint3); }
.tp .t-ultabs b.on { color: var(--tint-ink); box-shadow: inset 0 -2px 0 var(--brand); }
.tp .au-opt.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--tint); }
.tp .db-act .ic, .tp .t-dd-n .ic { background: var(--tint2); color: var(--tint-ink); }
.tp .t-links { gap: 4px; }
.tp .t-links a { padding: 8px 12px; border-radius: 8px; transition: background-color .2s cubic-bezier(.22, 1, .36, 1), color .2s cubic-bezier(.22, 1, .36, 1); }
.tp .t-links a.on { background: var(--tint2); color: var(--tint-ink); }
.tp .t-msheet a.on { color: var(--tint-ink); }
.tp .t-dd-i.on { background: var(--tint2); color: var(--tint-ink); }
.tp .t-dd-i.on .i { color: inherit; }
.tp .t-ddw:has(.t-dd-i.on) .t-me { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--tint3); border-radius: 50%; }
.tp .t-tab .i { box-sizing: border-box; width: 54px; height: 30px; padding: 4px 16px; border-radius: 999px; transition: background-color .2s cubic-bezier(.22, 1, .36, 1); }
.tp .t-tab.on { color: var(--tint-ink); }
.tp .t-tab.on .i { background: var(--tint2); }
@media (hover: hover) { .tp .t-links a:not(.on):hover { background: var(--n100); } }
#site .kB-app { height: calc(100dvh - 69px); min-height: 520px; background: var(--card); }
#site .kB-chat { min-height: 0; }
#site .kB-list, #site .kB-msgs, #site .kB-side { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#site .kB-it.on { background: var(--tint2); }
#site .kB-un { background: var(--brand); }
.tp .t-msg.me { background: var(--tint2); color: var(--ink); border-color: var(--tint3); }
@container tp (min-width: 701px) {
  .tp .db-card:has(> .db-row) { display: grid; grid-template-columns: minmax(0px, 1fr) max-content max-content; column-gap: 20px; }
  .tp .db-card:has(> .db-row) > * { grid-column: 1 / -1; }
  .tp .db-card > .db-row { grid-template-columns: subgrid; }
  .tp .db-row > .t-st, .tp .db-row > .t-btn { justify-self: stretch; }
}
@container tp (max-width: 700px) {
  .tp .db-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .tp .db-row > .db-main, .tp .db-row > .db-hist { flex: 1 1 100%; }
}
@container tp (max-width: 700px) {
  #site .kB-app { height: calc(100dvh - 59px); min-height: 0; }
  #site .kB-comp { position: static; }
  #site .kB-sheetx { max-height: 45%; overflow-y: auto; flex: 0 0 auto; }
}
@container tp (max-width: 700px) {
  .tp .t-tabs, .tp .t-mbar { position: fixed; left: 0; right: 0; bottom: 0; }
  .tp:has(> .t-tabs) { padding-bottom: 72px; }
  .tp:has(> .t-mbar) { padding-bottom: 76px; }
}
.tp.enter { animation: page-in .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
#site > .t-nav, #site > .jB-top { view-transition-name: tp-top; }
#site > .t-tabs { view-transition-name: tp-tabs; }
.pv { view-transition-name: tp-view; }
::view-transition-old(root) { animation: vt-out .12s cubic-bezier(.32, 0, .67, 0) both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.22, 1, .36, 1) .1s both; }
::view-transition-group(tp-top), ::view-transition-group(tp-tabs) { animation-duration: .3s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.rv { opacity: 0; translate: 0 24px; transition: opacity .6s cubic-bezier(.22, 1, .36, 1), translate .6s cubic-bezier(.22, 1, .36, 1); }
.rv.in { opacity: 1; translate: 0 0; }
#site > .t-nav, #site > .jB-top { position: sticky; top: 0; z-index: 30; transition: box-shadow .25s cubic-bezier(.22, 1, .36, 1); }
.scrolled #site > .t-nav, .scrolled #site > .jB-top { box-shadow: 0 8px 20px -16px rgba(20, 14, 10, .35); }
@container tp (min-width: 701px) { #site .qA-form { top: 92px; } }
body.in-frame { scrollbar-width: none; }
@container tp (max-width: 700px) {
  .in-frame .tp .t-tabs { padding-bottom: 28px; }
  .in-frame .tp .t-mbar, .in-frame .tp .kB-comp { padding-bottom: 30px; }
  .in-frame .tp:has(> .t-tabs) { padding-bottom: 92px; }
  .in-frame .tp:has(> .t-mbar) { padding-bottom: 96px; }
}
body.in-frame::-webkit-scrollbar { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 8px); width: max-content; max-width: min(520px, calc(100vw - 40px));
  padding: 13px 18px; border-radius: 12px; background: var(--n900); color: #fff; font: 500 16px/1.45 var(--fb); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s cubic-bezier(.22, 1, .36, 1), transform .25s cubic-bezier(.22, 1, .36, 1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 701px) { .toast { bottom: 88px; } }
.pv { position: fixed; left: 16px; bottom: 16px; z-index: 95; display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 13px;
  background: var(--n900); color: #fff; font: 500 15px var(--fb); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .45); }
.pv:not(.open) > :not(.pv-t) { display: none; }
.pv-t { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 12px 7px 9px; border-radius: 9px; }
.pv-t .i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pv.open .pv-t { background: rgba(255, 255, 255, .1); }
.pv button { font: inherit; color: inherit; cursor: pointer; }
.pv-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.pv-seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; color: rgba(255, 255, 255, .75); transition: background-color .2s, color .2s; }
.pv-seg button.on { background: #fff; color: var(--n900); }
.pv-reset { border: 1px solid rgba(255, 255, 255, .22); background: none; border-radius: 9px; padding: 8px 14px; transition: border-color .2s; }
.pv-map { position: absolute; left: 0; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(3, 236px); gap: 8px 16px;
  max-height: calc(100vh - 110px); overflow: auto; padding: 16px; border-radius: 13px; background: var(--n900); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5); }
.pv-map h4 { margin: 0 0 6px; padding: 0 10px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.pv-map button { display: block; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 8px; text-align: left; line-height: 1.3;
  color: rgba(255, 255, 255, .85); transition: background-color .2s, color .2s; }
.pv-map button.on { background: #fff; color: var(--n900); }
@media (hover: hover) {
  .pv-seg button:not(.on):hover, .pv-map button:not(.on):hover { color: #fff; }
  .pv-map button:not(.on):hover { background: rgba(255, 255, 255, .1); }
  .pv-reset:hover { border-color: rgba(255, 255, 255, .6); }
  .pv-t:hover { background: rgba(255, 255, 255, .1); }
}
.pv :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 899px) { .pv, .pv-stage { display: none !important; } }
.pv-stage { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding-bottom: 64px; background: var(--n100); overflow: auto; }
.pv-stage[hidden] { display: none; }
body.pv-m { overflow: hidden; }
body.pv-m .vp { visibility: hidden; }
.pv-if { display: block; width: 100%; height: 798px; border: 0; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .tp.enter { animation: none; }
  .toast { transition: none; }
  html { scroll-behavior: auto; }
}
