* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: var(--fw-reg) var(--fs-14)/var(--lh) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "tnum";
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
.foot a, .privacy a, .page-foot a { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.muted { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.app { display: flex; flex-direction: column; height: 100vh; min-height: 0; }
.topbar {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; padding: 0 24px;
  background: var(--surface); border-bottom: 1px solid var(--border); height: 56px; min-height: 56px;
  min-width: 0; flex: none; position: relative;
}
.life-mark {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-1);
}
.topbar .life-mark {
  width: 28px; height: 28px; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.life-logo { width: 28px; height: 28px; display: block; }
.life-dot { fill: var(--accent); }
.date { white-space: nowrap; font-size: var(--fs-16); font-weight: var(--fw-semi); letter-spacing: -.01em; }
.date .time { color: var(--text-3); font-weight: var(--fw-med); margin-left: 6px; }
.chip, .count, .join, .gchip, .btn, .tab, .seg button, .cb, .avatar {
  min-height: 24px; min-width: 24px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--fs-13); color: var(--text-2); white-space: nowrap;
}
.chip strong { color: var(--text); font-weight: var(--fw-semi); }
.chip.btnish { cursor: pointer; }
.trust-wrap { position: relative; }
.trust-pop {
  position: absolute; left: 0; top: 36px; z-index: 30; width: min(360px, 72vw);
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); white-space: normal;
}
.trust-fail { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-13); }
.trust-fail-actions { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.spacer { flex: 0 0 auto; width: 8px; min-width: 0; }
.top-tools {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; flex: 0 0 auto;
  margin-left: auto; min-height: 32px; min-width: 0;
}
.reload-link { max-width: 100%; }
.forecast {
  display: inline-flex; align-items: center; gap: 0; flex: none; min-width: 0;
  height: auto; padding: 0; border: 0; background: transparent; border-radius: 0;
  overflow: visible; font-size: 14px; color: var(--text-3); cursor: pointer;
}
.forecast-bit { white-space: nowrap; font-weight: 400; }
.forecast-bit + .forecast-bit::before { content: "\00a0· "; color: var(--text-3); white-space: pre; }
.forecast-today { color: var(--text); font-weight: 600; }
.forecast-wait { height: 28px; color: var(--text-3); background: transparent; border: 0; }
.forecast[hidden], .forecast-bit[hidden], .forecast-wait[hidden] { display: none; }
.top-rule { width: 1px; height: 16px; background: var(--border); flex: none; }
.trust {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0;
  border: 0; background: transparent; border-radius: 0; box-shadow: none;
  font-size: 14px; font-weight: 500; color: var(--text); position: relative; white-space: nowrap;
}
.trust strong { font-weight: 700; }
.trust .dot[data-tone="ok"] { background: var(--ok); }
.trust .dot[data-tone="warn"] { background: var(--warn); }
.trust .dot[data-tone="danger"] { background: var(--danger); }
.trust .dot[data-tone="off"] { background: var(--text-3); }
.trust[data-pill="shrink"] { min-width: 0; overflow: hidden; }
.trust[data-pill="shrink"] strong {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trust[data-pill="icon"] strong {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.top-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; max-width: 100%; }
.broker-note { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.broker-note[hidden], .reload-link[hidden], .join[hidden] { display: none !important; }
.hdr-apps { display: inline-flex; align-items: center; gap: 0; flex: none; }
.hdr-apps .ext-link {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 8px; color: var(--text-3);
}
.hdr-apps .ext-link img { filter: grayscale(1); opacity: 0.72; }
.hdr-apps .ext-link:hover img, .hdr-apps .ext-link:focus-visible img { filter: none; opacity: 1; }
.hdr-apps[hidden], .join[hidden], .avatar[hidden] { display: none !important; }
.count {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 30px;
  padding: 0 12px 0 10px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); font-size: var(--fs-13); box-shadow: var(--shadow-1); color: inherit;
}
.count b { font-weight: var(--fw-semi); }
.count .unread { color: var(--accent-text); font-weight: var(--fw-semi); }
.count.personal .unread { color: var(--personal-text); }
.count.findprices .unread { color: var(--fp-text); }
.count.slack .unread { color: var(--slack); }
.counts { display: inline-flex; align-items: center; }
.counts-full { display: inline-flex; align-items: center; gap: 8px; }
.counts-compact { display: none; position: relative; }
.counts-pop {
  position: absolute; right: 0; top: 36px; z-index: 30; display: flex; flex-direction: column; gap: 6px;
  padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.count[aria-pressed="true"] { border-color: var(--accent); }
.avatar {
  position: relative;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
  display: grid; place-items: center; font-size: var(--fs-12); font-weight: var(--fw-semi); border: 0; padding: 0;
}
.avatar-alert {
  position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px var(--surface); pointer-events: none;
}
.latitia-name { display: inline-flex; align-items: center; gap: 4px; }
.latitia-avatar {
  width: 16px; height: 16px; border-radius: 50%; overflow: hidden;
  display: inline-grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-text); font-size: 9px; font-weight: var(--fw-semi);
}
.latitia-avatar img { width: 100%; height: 100%; object-fit: cover; }
.latitia-avatar:has(img) .latitia-initials { display: none; }
.menu {
  position: absolute; right: 12px; top: calc(100% + 4px); z-index: 30; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; min-width: 180px;
}
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; height: 32px; border-radius: var(--r-sm); padding: 0 10px; }
.menu button:hover { background: var(--surface-2); }
.menu button[role="menuitemradio"] { display: flex; align-items: center; }
.menu button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-text); }
.menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }
.menu-rule { height: 1px; margin: 4px 6px; background: var(--border); }
.menu-label { padding: 4px 10px 2px; font-size: var(--fs-11); font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.banner {
  background: var(--warn-soft); color: var(--text); padding: 8px var(--sp-6); font-size: var(--fs-13);
  border-bottom: 1px solid var(--border);
}
.status-wait {
  background: var(--surface-2); color: var(--text-2); padding: 8px var(--sp-6); font-size: var(--fs-13);
  border-bottom: 1px solid var(--border);
}
.banner.bad { background: var(--danger-soft); }
.main { flex: 1 1 auto; min-height: 0; }
.work-main {
  display: grid;
  /* Side columns shrink toward their minimum so the email column stays usable at 1280. */
  grid-template-columns: minmax(640px, 1fr) minmax(220px, 270px) minmax(260px, 340px);
  grid-template-rows: auto minmax(0, 1fr); gap: 12px var(--sp-4);
  padding: 12px var(--sp-6) var(--sp-4); min-height: 0; min-width: 0; height: auto;
  position: relative;
}
.work-main.cols-custom {
  grid-template-columns: minmax(640px, 1fr) var(--col-cal, 270px) var(--col-tasks, 340px);
}
.col-resize {
  position: absolute; width: 8px; z-index: 6; cursor: col-resize;
  touch-action: none; background: transparent;
}
.col-resize:hover, .col-resize:focus-visible { background: var(--accent); }
.glance { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; position: relative; }
.gchip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; max-width: 100%; min-width: 0; padding: 0 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1);
  font-size: var(--fs-13); color: var(--text-2); white-space: nowrap; text-decoration: none; overflow: hidden;
}
button.gchip { cursor: pointer; }
.gchip:hover { text-decoration: none; border-color: var(--border-strong); }
.gchip b { color: var(--text); font-weight: var(--fw-semi); }
.gchip .gl { font-size: 10.5px; font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.gchip.ghost { background: transparent; box-shadow: none; border-style: dashed; }
.gbar { width: 56px; height: 5px; border-radius: 3px; background: var(--sunken); overflow: hidden; display: inline-block; }
.gbar i { display: block; height: 100%; background: var(--accent); }
.up { color: var(--ok); font-size: var(--fs-12); font-weight: var(--fw-semi); }
.pop {
  position: absolute; top: 40px; z-index: 20; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 10px 12px; min-width: 260px; font-size: var(--fs-13);
}
.col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.email-col { min-width: 480px; }
.email-col:not(:has(.pane)) { align-self: start; }
.inbox-wrap:not(:has(.pane)) { grid-template-columns: minmax(0, 1fr); }
.inbox-wrap:not(:has(.pane)) .list-resize { display: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-h { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: 12px var(--sp-4); min-height: 44px; min-width: 0; }
.card-h h2 { margin: 0; font-size: var(--fs-12); font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.card-h .meta { margin-left: auto; font-size: var(--fs-12); color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.cal-col .card-h .meta { min-width: 0; }
[data-calendar-note="delayed"] { line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-col .card-h .ext-link { flex-shrink: 0; }
.tasks-col .card-h .meta { white-space: nowrap; }
.tasks-col .snapshot-updated { display: block; padding: 0 var(--sp-4) 6px; font-size: var(--fs-12); white-space: nowrap; }
.tasks-col .tasks-reauth {
  display: block; flex: none; align-self: flex-start; width: max-content; min-width: 0;
  max-width: calc(100% - 2 * var(--sp-4)); box-sizing: border-box;
  margin: 0 var(--sp-4) 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scroll { overflow: auto; min-height: 0; }
.badge { font-size: var(--fs-11); font-weight: var(--fw-semi); padding: 2px 7px; border-radius: var(--r-pill); background: var(--sunken); color: var(--text-2); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.inbox, .today { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.inbox-wrap { display: grid; grid-template-columns: var(--list-w, 330px) minmax(0, 1fr); flex: 1; min-height: 0; min-width: 0; border-top: 1px solid var(--border); position: relative; }
.list-resize {
  position: absolute; top: 0; bottom: 0; width: 8px; z-index: 5; cursor: col-resize;
  left: calc(var(--list-w, 330px) - 4px); touch-action: none; background: transparent;
  user-select: none;
}
.list-resize:hover, .list-resize:focus-visible { background: var(--accent); }
.ilist { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--border); }
.ilist > .beeper-health { flex: 0 0 auto; position: relative; z-index: 4; background: var(--surface); }
.ilist.list-scrolled > .beeper-health { box-shadow: 0 1px 0 var(--border), 0 8px 12px rgba(28, 27, 25, 0.08); }
.ilist > .scroll, .tasks.scroll { flex: 1 1 auto; min-height: 0; overflow: auto; contain: paint; }
.ilist > .scroll { scroll-padding-top: var(--beeper-banner-h, 1.875rem); }
.ifilter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px var(--sp-3); min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 2px; border-radius: var(--r-sm); background: var(--sunken); border: 1px solid var(--border); }
.seg button { height: 24px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; font-size: var(--fs-12); font-weight: var(--fw-med); color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); font-weight: var(--fw-semi); }
.source-filter {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 10px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-1); font-size: var(--fs-12); font-weight: var(--fw-semi);
}
.source-filter .x { color: var(--text-3); font-weight: var(--fw-reg); }
.progress { padding: 0 var(--sp-3) 8px; font-size: var(--fs-11); color: var(--text-3); }
.bar { height: 4px; border-radius: 3px; background: var(--sunken); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.sec-label { padding: 5px var(--sp-3); font-size: var(--fs-11); font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mail-line { position: relative; min-width: 0; }
.mail { padding: 8px 96px 9px var(--sp-3); border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; width: 100%; position: relative; display: block; min-width: 0; box-sizing: border-box; }
.mail-line[data-beeper] .mail { padding-right: 44px; }
.row-spam, .row-archive, .row-read {
  position: absolute; top: 8px; z-index: 2; width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2);
  opacity: 0;
}
.row-spam { right: 40px; }
.row-archive, .row-read { right: 8px; }
.row-read[title]:hover::after, .row-read[title]:focus-visible::after,
.pane-read[title]:hover::after, .pane-read[title]:focus-visible::after {
  content: attr(title);
  position: absolute; z-index: 6; top: calc(100% + 6px); right: 0;
  padding: 3px 8px; border-radius: var(--r-sm); background: var(--text); color: var(--bg);
  font: 12px/1.3 var(--font); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-2);
}
.mail-line:hover .row-spam, .mail-line:focus-within .row-spam, .row-spam:focus-visible,
.mail-line:hover .row-archive, .mail-line:focus-within .row-archive, .row-archive:focus-visible,
.mail-line:hover .row-read, .mail-line:focus-within .row-read, .row-read:focus-visible,
.mail-line:has(.sel) .row-spam, .mail-line:has(.sel) .row-archive, .mail-line:has(.sel) .row-read { opacity: 1; }
.pane-read { display: none; position: relative; margin-left: auto; }
@media (max-width: 1099px) {
  .pane-read { display: inline-flex; }
}
.ext-link {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface);
}
.ext-link img { width: 16px; height: 16px; display: block; }
.ext-link:focus-visible { box-shadow: var(--focus); }
.mail:hover { background: var(--surface-2); }
.mail.sel { background: var(--accent-soft); }
.mail.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.m-top { display: flex; gap: 6px; align-items: center; min-width: 0; }
.source-mark { position: relative; width: 16px; height: 16px; flex: none; display: inline-flex; }
.source-icon { width: 16px; height: 16px; display: block; border-radius: 3px; }
.m-fav, .m-letter { width: 16px; height: 16px; flex: none; border-radius: 3px; }
.m-fav { display: block; object-fit: contain; background: var(--surface); }
.m-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--sunken); color: var(--text-2); font-size: 10px; font-weight: var(--fw-semi); line-height: 1; }
.m-from { font-size: var(--fs-13); font-weight: var(--fw-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.mail-line:hover .m-from, .mail-line:focus-within .m-from {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
}
.m-age { margin-left: auto; font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.m-age.long { color: var(--warn); font-weight: var(--fw-semi); }
.m-subj { font-size: var(--fs-13); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-why { font-size: var(--fs-12); color: var(--text-2); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; }
.mail.unread .m-subj { font-weight: var(--fw-semi); }
.mail.unread .m-subj::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}
.mail-line[data-bot] .mail { padding-right: var(--sp-3); cursor: pointer; }
.mail-line[data-bot] .m-from { flex: 0 1 auto; max-width: 11rem; }
.mail-line[data-bot] .bot-name,
.mail-line[data-bot] .bot-link,
.pane[data-bot] .bot-name,
.pane[data-bot] .bot-link {
  display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: inherit; font: inherit; text-decoration: none;
}
.mail-line[data-bot] .bot-link,
.pane[data-bot] .bot-link { margin-top: 2px; color: var(--text-2); font-size: var(--fs-12); font-weight: var(--fw-reg); }
.pane[data-bot] a.btn[data-bot-open] { display: inline-flex; align-items: center; align-self: flex-start; width: auto; }
.mail-line[data-beeper] .m-from { font-size: var(--fs-14); font-weight: var(--fw-med); }
.mail-line[data-beeper] .mail.unread .m-from { font-weight: var(--fw-semi); }
.mail-line[data-beeper] .m-subj { font-size: var(--fs-13); color: var(--text-2); font-weight: var(--fw-reg); }
.mail-line[data-beeper] .mail.unread .m-subj { color: var(--text); font-weight: var(--fw-reg); }
.mail-line[data-beeper] .mail.unread .m-subj::before { content: none; }
.mail-line[data-beeper] .mail.unread .m-age::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px;
  border-radius: 50%; background: var(--accent); vertical-align: 0;
}
.mail-line[data-beeper] .source-icon,
.pane[data-beeper] .source-icon,
.seg button.net-chip img { border-radius: 4px; box-shadow: 0 0 0 1px var(--border); }
[data-theme="dark"] .mail-line[data-beeper] .source-icon,
[data-theme="dark"] .pane[data-beeper] .source-icon,
[data-theme="dark"] .seg button.net-chip img { box-shadow: 0 0 0 1px var(--border-strong); }
.mail.plain .m-subj { color: var(--text-2); }
.tag { flex: none; font-size: 10.5px; font-weight: var(--fw-semi); line-height: 16px; padding: 0 6px; border-radius: var(--r-pill); }
.tag.w { background: var(--accent-soft); color: var(--accent-text); }
.tag.p { background: var(--personal-soft); color: var(--personal-text); }
.tag.fp { background: var(--fp-soft); color: var(--fp-text); }
.tag.s { background: var(--slack-soft); color: var(--slack); }
.tag.team { background: var(--sunken); color: var(--text-2); }
.xl { font-size: 10.5px; font-weight: var(--fw-semi); padding: 0 6px; line-height: 16px; border-radius: var(--r-pill); background: var(--sunken); color: var(--text-2); white-space: nowrap; }
.xl.gtm { background: var(--slack-soft); color: var(--slack); }
.pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: auto; overflow-x: hidden; overflow-anchor: none; padding: 16px; scroll-padding-top: 4.75rem; }
.pane > * { flex: 0 0 auto; min-width: 0; max-width: 100%; }
.pane-h {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; min-width: 0;
  position: sticky; top: 0; z-index: 3; background: var(--bg);
  box-sizing: border-box; width: calc(100% + 32px); max-width: none;
  margin-left: -16px; margin-right: -16px; padding: 0 16px 8px;
}
.pane-h.scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 12px rgba(28, 27, 25, 0.08); }
.pane > .pane-h { max-width: none; }
.latitia-draft { margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); min-width: 0; max-width: 100%; overflow: hidden; contain: inline-size; }
.latitia-draft h4 { margin: 0 0 6px; font-size: var(--fs-13); font-weight: var(--fw-semi); }
.latitia-draft .draft-rcpt { font-size: var(--fs-12); color: var(--text-2); line-height: 1.4; }
.latitia-draft .draft-subject { margin-top: 4px; color: var(--text); font-weight: var(--fw-semi); }
.latitia-draft .draft-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.latitia-draft textarea { width: 100%; box-sizing: border-box; min-height: 72px; margin: 8px 0 0; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 8px; background: var(--surface); color: var(--text); font: inherit; }
.pane-h > div:first-child { min-width: 0; flex: 1 1 12rem; }
.pane-h h2, .pane-h h3 { margin: 0; flex: 1 1 12em; min-width: min(100%, 10em); overflow-wrap: anywhere; font-size: var(--fs-16); font-weight: var(--fw-semi); line-height: var(--lh-tight); letter-spacing: -.01em; }
.pane-sub { font-size: var(--fs-12); color: var(--text-3); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pane-acts { margin-left: auto; display: flex; gap: 6px; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; min-width: 0; }
.notes { margin-top: 10px; padding: 9px 11px; border-radius: var(--r-md); background: var(--warn-soft); font-size: var(--fs-12); color: var(--text-2); }
.notes-label { display: block; margin: 0 0 4px; color: var(--text); font-weight: var(--fw-semi); }
.thread-tools {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: flex-end;
  height: 34px; min-height: 34px; margin-top: 10px;
  background: var(--bg);
}
.thread-tools .thread-toggle { width: 128px; height: 24px; }
.msg { position: relative; margin-top: 8px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: visible; background: var(--surface); flex: 0 0 auto; min-height: min-content; max-width: 100%; min-width: 0; }
.msg:has(.msg-more.open) { z-index: 4; }
.msg-bar { display: flex; flex-wrap: wrap; align-items: flex-start; min-width: 0; max-width: 100%; }
.msg-bar .msg-h { flex: 1 1 100%; width: 100%; min-width: 0; padding-bottom: 8px; }
.msg-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0 8px 10px auto; flex: 1 1 auto; min-width: 0; max-width: 100%; }
.msg-acts .btn, .msg-side > .btn { flex: 0 0 auto; }
.msg-side { display: flex; align-items: flex-start; justify-content: flex-end; gap: 4px; margin: 0 8px 10px auto; flex: 1 1 auto; min-width: 0; max-width: 100%; }
.msg-side .msg-more { margin: 0; }
.msg-more { position: relative; margin: 0 8px 10px auto; }
.msg-more-btn { width: 28px; height: 24px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: var(--fs-16); line-height: 1; padding: 0; }
.msg-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: flex; flex-direction: column; gap: 4px; min-width: 7.5rem; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-2); }
.msg-menu[hidden] { display: none; }
.msg-menu .btn { width: 100%; text-align: left; }
.msg.collapsed { background: var(--surface-2); }
.msg.draft { background: var(--sunken); border-style: dashed; border-color: var(--border-strong); }
.msg.draft .msg-name, .msg.draft .msg-when, .msg.draft .msg-snip, .msg.draft .msg-rcpt { color: var(--text-3); }
.msg.draft .msg-name { font-weight: var(--fw-med); }
.msg:has(iframe:focus), .msg:has(iframe:focus-visible), .msg.frame-focus { box-shadow: var(--focus); }
.msg-h { display: block; width: 100%; padding: var(--sp-6); border: 0; background: transparent; text-align: left; cursor: pointer; }
.msg-h:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.msg-top { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; min-width: 0; max-width: 100%; }
.msg-name { color: var(--text); font-weight: var(--fw-semi); font-size: var(--fs-13); min-width: 0; overflow-wrap: anywhere; }
.msg-when { margin-left: auto; color: var(--text-3); font-size: var(--fs-12); white-space: nowrap; flex: 0 0 auto; }
.msg-snip { display: block; margin-top: 2px; color: var(--text-2); font-size: var(--fs-12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-rcpt { padding: 0 var(--sp-6) var(--sp-6); font-size: var(--fs-12); color: var(--text-3); line-height: 1.4; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.msg-body { max-width: 100%; min-width: 0; overflow: hidden; padding: 0 var(--sp-6) var(--sp-6); }
.msg iframe, .mail-frame { width: 100%; max-width: 100%; min-width: 0; border: 0; height: 72px; background: var(--surface); display: block; overflow: hidden; }
.msg iframe:focus, .msg iframe:focus-visible { outline: none; box-shadow: var(--focus); }
.qr { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; font-size: var(--fs-12); color: var(--text-2); }
.qr button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.editor { position: relative; z-index: 1; margin-top: 10px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-2); overflow: visible; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; contain: inline-size; container-type: inline-size; }
.editor-h { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: var(--fs-12); color: var(--text-3); flex-wrap: wrap; }
.editor-h b { color: var(--text); font-weight: var(--fw-med); }
.forward-label { color: var(--text-3); }
.forward-to { flex: 1 1 12rem; min-width: 8rem; height: 28px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--text); padding: 0 8px; font-size: var(--fs-13); }
.pane[aria-label="New message"] .forward-to,
.pane[aria-label="New message"] .compose-account select { background: var(--surface); width: 100%; min-width: 0; }
.pane[aria-label="New message"] .chip-field { border: 0; padding: 0; background: transparent; min-height: 0; }
.pane[aria-label="New message"] .chip-field > .chip-input { width: 100%; height: 28px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); padding: 0 8px; }
.pane[aria-label="New message"] .chip-field:has(.recip-chip) { border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); padding: 2px 4px; min-height: 28px; }
.pane[aria-label="New message"] .chip-field:has(.recip-chip) > .chip-input { width: auto; height: 22px; border: 0; padding: 0 4px; background: transparent; }
.attach-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.attach-chip { height: 26px; }
.editor-subject { color: var(--text-2); }
.draft-fields { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.cc-bcc { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.cc-bcc .draft-fields { border-bottom: 0; padding: 0; width: 100%; }
.compose-account { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; max-width: 100%; }
.compose-account select { flex: 1; min-width: 0; max-width: 100%; height: 28px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font: inherit; font-size: var(--fs-13); padding: 0 8px; }
.draft-field { display: flex; gap: 8px; align-items: center; font-size: var(--fs-12); color: var(--text-3); }
.field-label { flex: 0 0 4.5rem; width: 4.5rem; font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }
.draft-field .forward-to { flex: 1 1 auto; }
.chip-field { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; min-height: 28px; }
.draft-fields .chip-field, .cc-bcc .chip-field, .editor-h .chip-field { border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg); padding: 2px 4px; }
.recip-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 22px; max-width: 100%; padding: 0 2px 0 8px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--sunken); color: var(--text); font-size: var(--fs-12); line-height: 22px; }
.recip-chip.is-invalid { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-bang { font-size: 12px; line-height: 12px; }
.chip-x { width: 18px; height: 18px; flex: 0 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: inherit; padding: 0; font-size: 12px; line-height: 18px; }
.chip-field > .chip-input { border: 0; background: transparent; box-shadow: none; height: 22px; min-width: 6rem; flex: 1 1 6rem; width: auto; padding: 0 4px; }
.chip-field { position: relative; }
.suggest-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); pointer-events: none;
  margin: 0; padding: 4px; list-style: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.pane[aria-label="New message"] .recipient-field .suggest-list {
  left: auto;
  right: 0;
  width: max(260px, calc(100% + 4.5rem + 8px));
  min-width: 260px;
}
.suggest-row {
  position: relative; pointer-events: none;
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  height: 40px; padding: 0 8px; border-radius: var(--r-sm); cursor: pointer;
}
.suggest-hitbox { position: absolute; inset: 0; pointer-events: auto; cursor: pointer; }
.suggest-row.is-active, .suggest-row:hover { background: var(--accent-soft); }
.suggest-avatar {
  width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--sunken); color: var(--text-2);
  display: grid; place-items: center; font-size: var(--fs-11); font-weight: var(--fw-semi);
}
.suggest-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.suggest-name, .suggest-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-name { font-size: var(--fs-13); font-weight: var(--fw-med); color: var(--text); }
.suggest-email { font-size: var(--fs-12); color: var(--text-2); }
.suggest-hit {
  background: none; color: inherit; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--accent); text-underline-offset: 2px;
}
.suggest-tag {
  height: 18px; padding: 0 6px; border-radius: var(--r-pill); display: inline-flex; align-items: center;
  font-size: var(--fs-11); font-weight: var(--fw-med); white-space: nowrap;
}
.suggest-tag.is-sent { background: var(--sunken); color: var(--text-2); }
[data-theme="dark"] .suggest-tag.is-sent { border: 1px solid var(--border); }
.suggest-tag.is-work { background: var(--ch-blue-bg); color: var(--ch-blue-fg); }
.suggest-tag.is-personal { background: var(--personal-soft); color: var(--personal-text); }
.suggest-tag.is-contacts { background: var(--ch-slate-bg); color: var(--ch-slate-fg); border: 1px solid var(--border); }
.suggest-avatar.is-plus { background: var(--accent-soft); color: var(--accent-text); font-size: var(--fs-14); }
.suggest-avatar.is-invalid { background: var(--danger-soft); color: var(--danger); font-weight: var(--fw-semi); }
.suggest-email.is-invalid { color: var(--danger); }
.suggest-status { padding: 6px 8px; color: var(--text-3); font-size: var(--fs-12); line-height: 1.3; }
.editor-h .recipient-field { flex: 1 1 16rem; min-width: 12rem; }
.pane[aria-label="New message"] .draft-fields {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 8px; row-gap: 6px; align-items: center; width: 100%;
}
.pane[aria-label="New message"] .compose-account,
.pane[aria-label="New message"] .draft-field,
.pane[aria-label="New message"] .compose-to-row {
  display: grid; grid-template-columns: subgrid; grid-column: 1 / -1;
  column-gap: 8px; align-items: center; width: auto; max-width: none; min-width: 0;
}
.pane[aria-label="New message"] .compose-to-row { position: relative; }
.pane[aria-label="New message"] .compose-to-row > .draft-field { display: contents; }
.pane[aria-label="New message"] .compose-to-row > .btn {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 1;
  height: auto; min-height: 0; padding: 0 0 0 8px; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--accent-text);
  font-size: var(--fs-12); font-weight: var(--fw-med);
}
.pane[aria-label="New message"] .compose-to-row > .btn:focus-visible {
  box-shadow: var(--focus); border-radius: var(--r-sm);
}
.pane[aria-label="New message"] #compose-to { padding-right: 4.75rem; }
.pane[aria-label="New message"] .compose-to-row .chip-field:has(.recip-chip) { padding-right: 4.75rem; }
.pane[aria-label="New message"] .compose-to-row .chip-field:has(.recip-chip) > #compose-to { padding-right: 4px; }
.draft-ask { margin: 8px 10px 0; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2); }
.draft-ask p { margin: 0 0 8px; font-size: var(--fs-13); color: var(--text); }
.draft-ask-acts { display: flex; gap: 6px; }
textarea.editor-b { width: 100%; max-width: 100%; box-sizing: border-box; border: 0; resize: vertical; padding: 8px 10px; min-height: 72px; background: transparent; line-height: 1.5; font-size: var(--fs-13); }
.sig-frame { display: block; width: 100%; box-sizing: border-box; border: 0; height: 48px; min-height: 0; background: transparent; margin: 0; padding: 0 10px; pointer-events: none; }
.note-pop { margin-top: 10px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-2); }
.note-pop label { font-size: var(--fs-13); font-weight: var(--fw-semi); }
.note-pop textarea { width: 100%; min-height: 72px; margin: 8px 0; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 8px; background: var(--surface); color: var(--text); font: inherit; }
.note-pop-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.editor-f { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px 8px; border-top: 1px solid var(--border); position: sticky; bottom: 0; z-index: 5; background: var(--surface); min-width: 0; max-width: 100%; }
.editor-f .hint { min-width: 0; flex: 1 1 auto; margin-left: 0; white-space: normal; flex-wrap: wrap; column-gap: 12px; }
.hint-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pane[aria-label="New message"] { padding-top: 0; padding-bottom: 0; }
.pane[aria-label="New message"] > .pane-h { padding-top: 16px; background: var(--surface); }
.pane[aria-label="New message"] > .editor {
  flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0;
  margin-top: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
.pane[aria-label="New message"] .draft-fields,
.pane[aria-label="New message"] .cc-bcc,
.pane[aria-label="New message"] .sig-frame,
.pane[aria-label="New message"] .editor-f { flex: 0 0 auto; }
.pane[aria-label="New message"] textarea.editor-b { flex: 0 0 auto; min-height: 72px; height: auto; field-sizing: content; resize: none; }
.pane[aria-label="New message"] textarea.editor-b::placeholder { color: var(--text-3); opacity: 1; }
.pane[aria-label="New message"] .editor-f { margin-top: auto; }
@media (max-width: 1279px) {
  .pane[aria-label="New message"] { align-self: stretch; height: auto; max-height: none; overflow: visible; }
}
.send-hit { display: inline-flex; }
.chip-block { font-size: var(--fs-12); color: var(--danger); }
.editor .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.editor button.primary:disabled { opacity: 0.55; pointer-events: none; }
.send-hit.is-blocked { cursor: not-allowed; }
.btn { height: 28px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--fs-12); font-weight: var(--fw-semi); white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .btn.primary { color: #0E1630; }
.btn.sm { height: 24px; padding: 0 8px; font-weight: var(--fw-med); }
.btn.live { background: var(--now); border-color: var(--now); color: #fff; }
.kbd { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); }
.hint { font-size: var(--fs-11); color: var(--text-3); margin-left: auto; display: flex; gap: 6px; align-items: center; }
.tabbar {
  display: flex; align-items: stretch; flex: 0 0 auto; align-self: flex-start; width: max-content; min-width: 0;
  height: 56px; padding: 0; position: relative; background: transparent;
  border-radius: 0; box-shadow: none;
}
.tabs {
  display: flex; flex: 0 0 auto; min-width: 0; overflow: visible;
  align-items: center; padding: 0; gap: 0; background: transparent; border: 0;
}
.tab[hidden], .tab-more[hidden] { display: none; }
.tab, .tab-more {
  height: 56px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap;
}
.tab:hover, .tab-more:hover { color: var(--text); }
.tab[aria-selected="true"],
.tab-more[aria-selected="true"] {
  background: transparent; color: var(--text); box-shadow: none; font-weight: 500;
  border-bottom-color: var(--text);
}
.tab-more[aria-expanded="true"] { background: transparent; color: var(--text); box-shadow: none; }
[data-theme="dark"] .tab[aria-selected="true"],
[data-theme="dark"] .tab-more[aria-selected="true"],
[data-theme="dark"] .tab-more[aria-expanded="true"] {
  background: transparent; box-shadow: none;
}
.tab:focus-visible,
.tab-more:focus-visible,
[data-theme="dark"] .tab:focus-visible,
[data-theme="dark"] .tab[aria-selected="true"]:focus-visible,
[data-theme="dark"] .tab-more[aria-selected="true"]:focus-visible,
[data-theme="dark"] .tab-more[aria-expanded="true"]:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
  position: relative;
  z-index: 1;
}
@media (max-width: 1099px) {
  .tab { padding: 0 6px; }
}
.tab-more-pop {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px;
  display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.tab-more-pop[hidden] { display: none; }
.tab-more-item {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text);
  font-size: var(--fs-13); font-weight: var(--fw-med); text-align: left;
}
.tab-more-item:hover { background: var(--surface-2); }
.tab-more-item[aria-current="page"] { background: var(--accent-soft); color: var(--text); font-weight: var(--fw-semi); }
.join { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface-2); font-size: var(--fs-13); color: var(--text-2); }
.join b { color: var(--text); font-weight: var(--fw-semi); }
.allday { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 var(--sp-4) 8px; }
.nextm { display: flex; align-items: center; gap: 8px; margin: 0 var(--sp-4) 8px; padding: 8px 10px; border-radius: var(--r-md); background: var(--accent-soft); font-size: var(--fs-13); color: var(--text); }
.nextm .sub { color: var(--text-2); }
.timeline { position: relative; margin: 0 var(--sp-4) 10px; border-top: 1px solid var(--border); flex: 1; }
.hour { position: relative; height: 50px; border-bottom: 1px dashed var(--border-strong); }
.hour span { position: absolute; left: 0; top: 2px; font-size: var(--fs-11); color: var(--text-2); width: 36px; }
button.trust.plain {
  display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 8px;
  background: transparent; border: 0; box-shadow: none; padding: 0;
  white-space: nowrap;
}
.reload-link {
  border: 0; background: transparent; padding: 0; color: var(--accent-text);
  font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none;
  cursor: pointer; min-height: 24px;
}
.reload-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-off { padding: 28px var(--sp-4); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cal-off p { margin: 0; color: var(--text-2); }
.page-foot { flex: none; padding: 8px var(--sp-4) 12px; font-size: var(--fs-11); color: var(--text-2); }
.page-foot a { color: inherit; }
.ev { position: absolute; left: 42px; right: 8px; border-radius: var(--r-sm); padding: 3px 8px; font-size: var(--fs-12); line-height: 1.3; background: var(--sunken); border-left: 3px solid var(--border-strong); color: var(--text-2); overflow: hidden; }
.ev.task {
  overflow: hidden; min-height: 16px; white-space: nowrap;
  background: var(--accent-soft); border-left-color: var(--accent); color: var(--text);
}
.ev.task > .btn { min-height: 16px; height: 16px; padding: 0 4px; position: relative; z-index: 2; }
.ev.task.short { display: flex; align-items: center; gap: 4px; }
.ev.task > a { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ev.done { color: var(--text-2); text-decoration: line-through; }
.ev.muted-cal { background: transparent; border: 1px dashed var(--border-strong); border-left-width: 3px; color: var(--text-3); }
[data-channel-color="blue"] { --ch-bg: var(--ch-blue-bg); --ch-fg: var(--ch-blue-fg); --ch-bar: var(--ch-blue-bar); }
[data-channel-color="teal"] { --ch-bg: var(--ch-teal-bg); --ch-fg: var(--ch-teal-fg); --ch-bar: var(--ch-teal-bar); }
[data-channel-color="green"] { --ch-bg: var(--ch-green-bg); --ch-fg: var(--ch-green-fg); --ch-bar: var(--ch-green-bar); }
[data-channel-color="amber"] { --ch-bg: var(--ch-amber-bg); --ch-fg: var(--ch-amber-fg); --ch-bar: var(--ch-amber-bar); }
[data-channel-color="orange"] { --ch-bg: var(--ch-orange-bg); --ch-fg: var(--ch-orange-fg); --ch-bar: var(--ch-orange-bar); }
[data-channel-color="red"] { --ch-bg: var(--ch-red-bg); --ch-fg: var(--ch-red-fg); --ch-bar: var(--ch-red-bar); }
[data-channel-color="pink"] { --ch-bg: var(--ch-pink-bg); --ch-fg: var(--ch-pink-fg); --ch-bar: var(--ch-pink-bar); }
[data-channel-color="purple"] { --ch-bg: var(--ch-purple-bg); --ch-fg: var(--ch-purple-fg); --ch-bar: var(--ch-purple-bar); }
[data-channel-color="indigo"] { --ch-bg: var(--ch-indigo-bg); --ch-fg: var(--ch-indigo-fg); --ch-bar: var(--ch-indigo-bar); }
[data-channel-color="slate"] { --ch-bg: var(--ch-slate-bg); --ch-fg: var(--ch-slate-fg); --ch-bar: var(--ch-slate-bar); }
.ev[data-channel-color] { background: var(--ch-bg); color: var(--ch-fg); border-left-color: var(--ch-bar); }
.ev[data-google-color] { background: var(--ev-bg); color: var(--ev-fg); border-left-color: var(--ev-bar); }
.ev.done[data-channel-color],
.ev.done[data-google-color] {
  color: var(--text);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.ev.done[data-channel-color] {
  background: color-mix(in srgb, var(--ch-bg) 42%, var(--surface));
  border-left-color: color-mix(in srgb, var(--ch-bar) 50%, var(--border-strong));
}
.ev.done[data-google-color] {
  background: color-mix(in srgb, var(--ev-bg) 42%, var(--surface));
  border-left-color: color-mix(in srgb, var(--ev-bar) 50%, var(--border-strong));
}
.ev.muted-cal[data-channel-color],
.ev.muted-cal[data-google-color] {
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 78%, var(--ch-bg, var(--ev-bg)));
  border: 1px dashed var(--border-strong);
  border-left-width: 3px;
  text-decoration: none;
}
.now { position: absolute; left: 36px; right: 0; height: 0; border-top: 2px solid var(--now); z-index: 3; }
.now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--now); }
.now em { position: absolute; right: 0; top: -17px; font-style: normal; font-size: var(--fs-11); font-weight: var(--fw-semi); color: var(--now); background: var(--surface); padding: 0 4px; }
.tasks { list-style: none; margin: 0; padding: 0; }
.task-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px var(--sp-4); border-top: 1px solid var(--border); position: relative; }
.task-row > div:not(.task-side):not(.task-form) { min-width: 0; }
.t-head { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.task-row:has(.t-open) .t-head { min-height: 28px; }
.t-head .t-title { flex: 1 1 auto; }
.task-side { position: relative; display: flex; align-items: flex-start; flex: none; min-height: 18px; }
.task-more {
  position: absolute; right: 0; top: -5px; width: 28px; height: 28px; flex: none;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-2); font-size: 18px; line-height: 1; opacity: 0; pointer-events: none; transition: opacity 120ms ease;
}
.task-more::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); }
.task-row:not(:has(.t-open)) .task-more::before { height: 30px; }
.task-row:has(.t-open) .task-more { top: 0; }
.task-row:hover .task-more,
.task-row:focus-within .task-more,
.task-row.cursor .task-more,
.task-more[aria-expanded="true"] { opacity: 1; pointer-events: auto; background: var(--surface); }
.task-row.cursor .task-more { background: var(--accent-soft); }
.task-more:hover, .task-more:focus-visible { background: var(--surface-2); }
.task-pop, .sub-menu {
  position: fixed; z-index: 80; width: 230px; min-width: 230px; max-width: 230px;
  box-sizing: border-box; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.task-pop button, .sub-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent;
  text-align: left; color: var(--text); white-space: nowrap;
}
.task-pop button:hover, .task-pop button:focus-visible,
.sub-menu button:hover, .sub-menu button:focus-visible { background: var(--surface-2); }
.task-pop button.danger { color: var(--danger); }
.task-pop .when { color: var(--text-3); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.task-menu-rule { height: 1px; margin: 4px 6px; background: var(--border); }
.badge, .task-date { white-space: nowrap; }
.task-date {
  appearance: none; border: 0; background: transparent; padding: 0; height: auto; min-height: 0; min-width: 0;
  color: var(--text-3); font-size: var(--fs-12); line-height: 16px;
}
.task-date.overdue {
  color: var(--danger); background: var(--danger-soft); border-radius: var(--r-pill);
  padding: 2px 7px; font-size: var(--fs-11); font-weight: var(--fw-semi);
}
.tasks-col { container-type: inline-size; container-name: tasks; }
.task-date-short { display: none; }
@container tasks (max-width: 420px) {
  .task-date-full { display: none; }
  .task-date-short { display: inline; }
}
.month-cal { display: flex; flex-direction: column; gap: 4px; padding: 4px 2px 6px; min-width: 0; }
.month-cal button {
  appearance: none; border: 0; background: transparent; color: inherit; font: inherit;
  border-radius: var(--r-sm);
}
.month-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.month-cal-grid { display: grid; grid-template-columns: repeat(7, 26px); gap: 2px; justify-content: space-between; }
.month-cal-dow { text-align: center; color: var(--text-3); font-size: 10px; line-height: 16px; }
.task-pop .month-cal-grid button {
  width: 26px; min-width: 26px; height: 26px; padding: 0; flex: none; justify-content: center;
}
.task-pop .month-cal-h button { width: 26px; height: 26px; flex: none; padding: 0; justify-content: center; }
.month-cal button[aria-current="date"]:not([aria-pressed="true"]) {
  background: transparent; color: inherit; outline: 1px solid var(--accent); outline-offset: -1px;
}
.month-cal button[aria-pressed="true"] { background: var(--accent); color: #fff; outline: none; }
[data-theme="dark"] .month-cal button[aria-pressed="true"] { color: #0E1630; }
.month-cal-clear { align-self: flex-start; }
.task-form[data-new-task],
.task-form[data-edit-task] {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-end;
}
.task-form[data-new-task] { margin: 8px var(--sp-4) 4px; }
.task-form[data-edit-task] { margin-top: 8px; }
.task-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--fs-12); font-weight: var(--fw-med); color: var(--text-2); }
.task-field-wide, .task-form-actions, .task-form-error { flex: 1 0 100%; }
.task-form-actions { display: flex; gap: 6px; }
.task-due { position: relative; display: inline-flex; align-self: flex-start; }
.task-due > .btn { height: 26px; width: auto; }
.task-form[data-new-task] input:not([type="hidden"]),
.task-form[data-edit-task] input:not([type="hidden"]),
.task-form[data-new-task] textarea,
.task-form[data-edit-task] textarea {
  width: 100%; max-width: none; box-sizing: border-box; font-weight: var(--fw-reg); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.task-form[data-new-task] input:not([type="hidden"]),
.task-form[data-edit-task] input:not([type="hidden"]) { padding: 0 8px; }
.task-form[data-new-task] input[name="estimate"],
.task-form[data-edit-task] input[name="estimate"],
.task-form[data-new-task] input[name="channel"],
.task-form[data-edit-task] input[name="channel"] { width: 7rem; max-width: 7rem; }
.task-form[data-new-task] textarea.task-notes,
.task-form[data-edit-task] textarea.task-notes {
  min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 6px 8px; background: var(--surface); resize: vertical;
}
.task-form button, .task-more { appearance: none; }
.tasks-col .task-form[data-new-task],
.tasks-col .tfoot { position: relative; z-index: 4; background: var(--surface); }
.task-row.cursor { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tgroup { padding: 6px var(--sp-4) 4px; font-size: var(--fs-11); font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); list-style: none; }
.cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); background: var(--surface); margin-top: 1px; padding: 0; }
.cb[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); position: relative; }
.cb[aria-pressed="true"]::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.t-title { font-size: var(--fs-13); font-weight: var(--fw-med); line-height: 1.3; min-width: 0; max-width: 100%; overflow-wrap: break-word; hyphens: auto; }
.t-title a { color: var(--text); }
.t-sub { font-size: var(--fs-12); color: var(--text-3); margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.t-sub .t-open { color: var(--text-3); text-decoration: none; margin-left: auto; }
.t-sub .t-open:hover, .t-sub .t-open:focus, .t-sub .t-open:focus-visible { text-decoration: underline; }
.task-row.overdue .t-sub .t-open,
.task-row.syncing .t-sub .t-open,
.task-row.done .t-sub .t-open { color: var(--text-3); text-decoration: none; }
.task-row.overdue .t-sub .t-open:is(:hover, :focus, :focus-visible),
.task-row.syncing .t-sub .t-open:is(:hover, :focus, :focus-visible),
.task-row.done .t-sub .t-open:is(:hover, :focus, :focus-visible) { text-decoration: underline; }
.task-row.overdue .t-title a { color: var(--text); }
.task-row.syncing .t-title, .task-row.done .t-title { text-decoration: line-through; color: var(--text-3); }
.task-row.syncing .t-title a, .task-row.done .t-title a { color: inherit; }
.est { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.ch { font-size: 11px; font-weight: var(--fw-med); color: var(--text-2); background: var(--sunken); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.ch[data-channel-color] { background: var(--ch-bg); color: var(--ch-fg); }
.day-panel .day-note { margin: 0; padding: 0 var(--sp-4) 8px; }
.day-panel .day-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px var(--sp-4);
  border-top: 1px solid var(--border);
  min-width: 0;
}
.day-panel .day-row[data-channel-color] { border-left: 3px solid var(--ch-bar); }
.day-panel .day-main { flex: 1; min-width: 0; }
.day-panel .t-title { overflow-wrap: break-word; }
.day-panel .day-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
  margin-left: auto;
  white-space: nowrap;
}
.day-panel .day-actions { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
.day-panel .day-close { margin: 12px var(--sp-4) 16px; }
.beeper-health { margin: 0 var(--sp-3) 8px; padding: 6px 10px; border-radius: var(--r-sm); font-size: var(--fs-12); font-weight: var(--fw-med); }
.beeper-health.stale { background: var(--warn-soft); color: var(--warn); }
.beeper-health.down { background: var(--danger-soft); color: var(--danger); white-space: pre-line; line-height: calc(1em + 2px); }
.beeper-health.ok { background: var(--ok-soft); color: var(--ok); }
.seg button.net-chip { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: var(--r-pill); }
.seg button.net-chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.seg button.net-chip img { width: 16px; height: 16px; display: block; }
.older-toggle { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.beeper-thread { display: flex; flex-direction: column; gap: 0; margin-top: 0; }
.pane[data-beeper] .pane-sub { color: var(--text-2); font-size: var(--fs-12); }
.pane[data-beeper] > .beeper-pin {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -8px 12px rgba(28, 27, 25, 0.08);
}
.ilist > .scroll {
  scroll-padding-bottom: var(--toast-clear, 0px);
  padding-bottom: var(--toast-clear, 0px);
}
.pane[data-beeper] .beeper-reply { margin-bottom: var(--toast-lift, 0px); }
@media (max-width: 1279px) {
  .pane[data-beeper][data-toast-lock] > .beeper-thread { flex: 1 1 auto; min-height: 0; overflow: auto; }
  .pane[data-beeper] .beeper-reply { margin-bottom: var(--toast-gap, 0px); }
}
.beeper-run { display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: 100%; margin: 0 0 12px; }
.beeper-run.mine { align-items: flex-end; }
.beeper-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; max-width: 100%; }
.beeper-run.mine .beeper-bubbles { align-items: flex-end; }
.beeper-msg { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: min(30rem, 80%); }
.beeper-run.mine .beeper-msg { align-self: flex-end; align-items: flex-end; }
.beeper-bubble {
  max-width: 100%; padding: var(--sp-2) var(--sp-3); border: 0; border-radius: var(--r-lg);
  font-size: var(--fs-14); line-height: 1.45; font-weight: var(--fw-reg); color: var(--text);
}
.beeper-bubble.theirs { background: var(--sunken); }
[data-theme="dark"] .beeper-bubble.theirs { background: var(--border); }
.beeper-bubble.mine { background: var(--accent-soft); }
.beeper-run.theirs .beeper-bubble { border-bottom-left-radius: 4px; }
.beeper-run.theirs .beeper-bubble.follow { border-top-left-radius: 4px; }
.beeper-run.mine .beeper-bubble { border-bottom-right-radius: 4px; }
.beeper-run.mine .beeper-bubble.follow { border-top-right-radius: 4px; }
.beeper-bubble:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.beeper-bubble:focus-visible { box-shadow: var(--focus); }
.beeper-who { margin: 0 0 2px 12px; font-weight: var(--fw-semi); font-size: var(--fs-12); color: var(--text-2); }
.beeper-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.beeper-bubble a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.beeper-thumb { display: block; max-width: 160px; max-height: 160px; margin-top: 4px; border-radius: 8px; }
.beeper-chip {
  display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  margin-top: 4px; padding: 8px; border: 0; border-radius: var(--r-md);
  background: var(--surface); color: var(--text); font-size: var(--fs-13); line-height: 1.3;
}
.beeper-file-tile {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 6px; background: var(--sunken); color: var(--text-2);
}
.beeper-file-tile.pdf { background: var(--danger-soft); color: var(--danger); }
.beeper-file-copy { display: flex; flex-direction: column; min-width: 0; }
.beeper-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beeper-file-size { font-size: var(--fs-12); color: var(--text-3); }
.beeper-chip svg { flex: none; }
.beeper-open {
  align-self: center; margin: 4px 0 12px; color: var(--text-3);
  font-size: var(--fs-12); line-height: 1.3; text-align: center;
}
.beeper-time { margin-top: 4px; color: var(--text-3); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.beeper-notice { align-self: center; max-width: min(28rem, 90%); margin: 8px 0; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-12); text-align: center; }
.beeper-day { align-self: center; margin: 16px 0 12px; color: var(--text-3); font-size: var(--fs-12); font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; scroll-margin-top: 4.75rem; }
.beeper-call { scroll-margin-top: 4.75rem; }
.beeper-call { align-self: center; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0; color: var(--text-2); font-size: var(--fs-13); line-height: 1.3; text-align: center; }
.beeper-call svg { flex: none; }
.beeper-reply textarea:disabled,
.beeper-reply textarea[readonly] { color: var(--text-2); background: var(--sunken); cursor: not-allowed; resize: none; }
.beeper-reactions { display: flex; gap: 8px; margin-top: 4px; }
.beeper-reaction { font-size: 14px; line-height: 1; }
.beeper-reaction.mine { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.beeper-picker {
  display: none; position: absolute; z-index: 3; top: 100%; left: 0;
  gap: 0; padding: 2px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-2);
}
.beeper-run.mine .beeper-picker { left: auto; right: 0; }
.beeper-msg:hover .beeper-picker,
.beeper-msg:focus-within .beeper-picker { display: flex; }
.beeper-react-btn {
  width: 28px; height: 28px; min-width: 28px; padding: 0; flex-shrink: 0;
  border: 0; border-radius: 50%; background: transparent; font-size: 14px; line-height: 1;
}
.beeper-react-btn:hover, .beeper-react-btn:focus-visible { background: var(--sunken); }
.beeper-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; min-width: 0; }
.beeper-reply textarea {
  width: 100%; box-sizing: border-box; min-height: 44px; max-height: calc(1.45em * 6 + 16px);
  border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 8px 12px;
  background: var(--surface); color: var(--text); font: inherit; field-sizing: content; resize: vertical;
}
.beeper-reply textarea::placeholder { color: var(--text-3); opacity: 1; }
.beeper-reply [data-copy-draft] { align-self: flex-start; width: auto; }
.beeper-reply [data-beeper-send] { align-self: flex-end; }
[data-theme="dark"] .beeper-reply .btn.primary { color: var(--surface); }
.beeper-send-off { margin: 0; color: var(--text-2); font-size: var(--fs-13); }
.beeper-undo { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: var(--fs-12); color: var(--text-2); }
.beeper-ring {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p, 1) * 360deg), var(--border-strong) 0);
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px);
  mask: radial-gradient(circle, transparent 6px, #000 7.5px);
}
.beeper-undo-btn {
  height: 24px; padding: 0 2px; border: 0; background: transparent; color: var(--accent-text);
  font-size: var(--fs-12); font-weight: var(--fw-semi); text-decoration: underline; text-underline-offset: 2px;
}
.beeper-failed { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); }
.beeper-unconfirmed { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 759px) {
  .day-panel .day-row { flex-wrap: wrap; row-gap: 8px; }
  .day-panel .day-main { flex-basis: 100%; }
  .day-panel .day-side { width: 100%; }
}
.tb { font-size: var(--fs-12); color: var(--text-2); font-weight: var(--fw-med); }
.tfoot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px var(--sp-4); border-top: 1px solid var(--border); min-width: 0; }
.tfoot .muted { min-width: 0; }
.foot { font-size: var(--fs-11); color: var(--text-3); padding: 0 var(--sp-4) 10px; }
.notice { margin: 8px var(--sp-3); padding: 8px 10px; border-radius: var(--r-md); background: var(--warn-soft); font-size: var(--fs-12); }
.notice.beeper-unconfirmed {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--danger-soft); color: var(--danger); border: none;
}
.notice.beeper-unconfirmed .beeper-check-copy { font-size: var(--fs-13); font-weight: var(--fw-semi); }
.notice.beeper-unconfirmed a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.notice.beeper-unconfirmed [data-beeper-note],
.beeper-check-note { display: block; white-space: nowrap; }
.notice.beeper-unconfirmed .btn { flex: none; }
.beeper-check-copy { min-width: 0; }
.empty { padding: 16px; color: var(--text-3); font-size: var(--fs-13); }
.skel { height: 14px; border-radius: 4px; background: var(--sunken); margin: 8px 0; }
.gate {
  position: relative; min-height: 100vh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center;
  column-gap: clamp(64px, 9vw, 128px); padding: 48px 64px 72px;
  background: radial-gradient(110% 90% at 36% 46%, var(--gate-wash) 0%, var(--bg) 62%);
}
.gate::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--gate-grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.gate-hero { position: relative; display: grid; place-items: center; }
.gate-mark { position: relative; width: clamp(240px, min(54vh, 42vw), 440px); aspect-ratio: 1; color: var(--text); }
.gate-mark svg { display: block; width: 100%; height: 100%; overflow: visible; position: relative; }
.gate-mark .life-dot { fill: var(--accent); }
.gate-mark::before {
  content: ""; position: absolute; z-index: 0;
  left: 69.7%; top: 30.3%; width: 70%; height: 70%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--gate-glow), transparent 100%);
  filter: blur(8px);
}
.gate-copy { width: 360px; justify-self: start; }
.gate-title { margin: 0; font-size: 72px; line-height: 1; font-weight: 650; letter-spacing: -.045em; }
.gate-tagline { margin: 16px 0 0; font-size: 22px; line-height: 1.35; color: var(--text-2); letter-spacing: -.012em; font-weight: 450; }
.gate-actions { margin-top: 44px; }
.gate-note { margin: 14px 0 0; font-size: var(--fs-13); color: var(--text-3); }
.gate-who {
  margin: 10px 0 0; font-size: var(--fs-13); line-height: 1.4; color: var(--text-2);
  width: max-content; max-width: 400px;
}
.gate-email { white-space: nowrap; }
.gate-error { margin: 0 0 14px; font-size: var(--fs-13); color: var(--danger); }
.gate-choice { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gsi {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; padding: 0 24px 0 18px; border-radius: var(--r-pill);
  background: var(--gsi-bg); color: var(--gsi-text); border: 1px solid var(--gsi-border);
  font: 500 16px/20px Roboto, var(--font-sans); letter-spacing: .1px; cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gsi:hover { background: var(--gsi-hover); box-shadow: var(--shadow-2); }
.gsi[aria-disabled="true"] { cursor: default; }
.gsi[aria-disabled="true"] svg,
.gsi[aria-disabled="true"] span { opacity: 0.55; }
.gsi[aria-disabled="true"]:hover { background: var(--gsi-bg); box-shadow: var(--shadow-1); }
.gsi[aria-disabled="true"]:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.gsi svg { width: 20px; height: 20px; flex: none; }
.gsi:focus-visible, .gsi.is-focus { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.gate-out {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
  font: 500 16px/20px var(--font-sans); letter-spacing: .1px; cursor: pointer;
}
.gate-out:hover { background: var(--surface-2); }
.gate-out[aria-disabled="true"] { cursor: default; }
.gate-out[aria-disabled="true"] span { opacity: 0.55; }
.gate-out[aria-disabled="true"]:hover { background: transparent; }
.gate-out[aria-disabled="true"]:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.gate-out:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.gate-link {
  font: 500 16px/20px var(--font-sans); color: var(--text-2);
  background: none; border: 0; padding: 8px 2px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; border-radius: var(--r-sm);
}
.gate-link:hover { color: var(--text); }
.gate-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); color: var(--text); }
.gate-foot {
  position: absolute; left: 0; right: 0; bottom: 24px; text-align: center;
  font-size: var(--fs-12); color: var(--text-3); font-feature-settings: "tnum";
}
.gate-foot a { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
.gate-foot a:hover { color: var(--text); }
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px) {
  .gate {
    grid-template-columns: 1fr; grid-template-rows: 1fr auto; justify-content: stretch; align-items: end;
    padding: 0 max(28px, calc((100vw - 520px) / 2)) calc(56px + env(safe-area-inset-bottom));
    background: radial-gradient(130% 70% at 50% 30%, var(--gate-wash) 0%, var(--bg) 65%);
  }
  .gate-hero { align-self: center; justify-items: start; padding-top: 32px; }
  .gate-mark { --w: min(88vw, 46vh, 600px); width: var(--w); margin-left: calc(var(--w) * -1.3 / 15.2); }
  .gate-copy { justify-self: stretch; width: auto; text-align: left; }
  .gate-title { font-size: 52px; }
  .gate-tagline { margin-top: 10px; font-size: 19px; }
  .gate-actions { margin-top: 32px; }
  .gsi, .gate-out { width: 100%; height: 52px; }
  .gate-note { text-align: center; }
  .gate-foot { bottom: calc(20px + env(safe-area-inset-bottom)); }
}
.app[data-tab="fitness"] > .topbar,
.app[data-tab="fitness"] > .banner,
.app[data-tab="fitness"] > .status-wait { flex: none; }
.admin-panel {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4); padding: var(--sp-4); align-items: start; align-content: start;
  max-width: 1680px;
}
.apanel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.apanel.span-2,
.admin-panel > .subscriptions { grid-column: 1 / -1; }
.apanel .card-h { border-bottom: 1px solid var(--border); padding: 12px var(--sp-4); flex-wrap: nowrap; }
.apanel .card-h .meta { margin-left: auto; flex-wrap: nowrap; }
.apanel .count {
  height: auto; min-height: 0; min-width: 0; gap: 0; border: 0; box-shadow: none;
  font-size: var(--fs-11); font-weight: var(--fw-semi); color: var(--text-3);
  background: var(--sunken); border-radius: var(--r-pill); padding: 1px 7px;
}
.ap-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.ap-dot.stale { background: var(--warn); }
.ap-dot.off { background: var(--text-3); }
.ap-stale {
  display: flex; gap: 8px; align-items: center; padding: 8px var(--sp-4);
  background: var(--warn-soft); color: var(--warn); font-size: var(--fs-12);
  font-weight: var(--fw-med); border-bottom: 1px solid var(--border);
}
.ap-empty { padding: 28px var(--sp-4); text-align: center; color: var(--text-3); font-size: var(--fs-13); }
.ap-empty b { display: block; color: var(--text-2); font-weight: var(--fw-semi); margin-bottom: 2px; }
.ap-colh, .ap-row {
  display: grid; grid-template-columns: var(--ap-cols); column-gap: var(--sp-4);
  align-items: center; justify-items: start; padding: 0 var(--sp-4); text-align: left;
}
.ap-colh {
  font-size: var(--fs-11); color: var(--text-3); font-weight: var(--fw-med);
  letter-spacing: .04em; text-transform: uppercase; height: 30px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.ap-colh > span { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-sec {
  font-size: var(--fs-11); font-weight: var(--fw-semi); color: var(--text-3);
  letter-spacing: .06em; text-transform: uppercase; padding: 14px var(--sp-4) 4px; margin: 0;
}
.ap-row { min-height: 44px; padding-top: 7px; padding-bottom: 7px; border-top: 1px solid var(--border); }
.ap-rows .ap-row:first-child { border-top: 0; }
.ap-row:hover { background: var(--surface-2); }
.ap-row > * { min-width: 0; max-width: 100%; }
.ap-t { font-weight: var(--fw-semi); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deliveries .ap-t {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ap-row.is-today { background: var(--accent-soft); }
.ap-sub { color: var(--text-2); font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-sub .sep { color: var(--text-3); margin: 0 4px; }
.ap-date { color: var(--text-2); font-size: var(--fs-13); white-space: nowrap; }
.ap-date.today, .ap-date.soon { color: var(--text); font-weight: var(--fw-semi); }
.ap-date.past { color: var(--text-3); font-weight: var(--fw-reg); }
.ap-row .badge { justify-self: start; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ap-track { font-size: var(--fs-13); justify-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-dash { color: var(--text-3); }
.delivery-track { color: var(--text-2); }
.deliveries { --ap-cols: minmax(0, 1fr) 260px 172px 84px 44px; container-type: inline-size; }
.subscriptions { --ap-cols: minmax(0, 1fr) max-content max-content; }
.subscriptions .ap-colh,
.subscriptions .ap-row { column-gap: 8px; }
.subscriptions .ap-date { min-width: max-content; max-width: none; overflow: visible; text-overflow: clip; }
.subscriptions .ap-t {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0;
  overflow: clip; overflow-clip-margin: 4px; text-overflow: clip;
}
.subscriptions .ap-name {
  flex: 1 1 100%; min-width: 4.5rem; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.subscriptions .ap-t > .badge,
.subscriptions .ap-cancel {
  flex: 0 1 auto; max-width: 100%; min-width: 0;
}
.subscriptions .ap-cancel { flex-wrap: wrap; margin-left: 0; }
.subscriptions .ap-t > .badge,
.subscriptions .ap-cancel .badge,
.subscriptions .ap-cancel-btn {
  flex-shrink: 0; white-space: nowrap; max-width: none; overflow: visible; text-overflow: clip;
}
.ap-cancel { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.subscriptions .ap-more { display: inline-flex; flex: none; }
.subscriptions .sub-more {
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-2); font-size: 18px; line-height: 1; display: grid; place-items: center;
  opacity: 0;
}
.subscriptions .ap-row:hover .sub-more,
.subscriptions .ap-row:focus-within .sub-more,
.subscriptions .sub-more[aria-expanded="true"] { opacity: 1; background: var(--surface); }
.subscriptions .sub-more:hover,
.subscriptions .sub-more:focus-visible { background: var(--surface-2); }
.subscriptions .ap-email {
  grid-column: 1 / -1; min-width: 0; max-width: 100%;
  color: var(--text-3); font-size: var(--fs-12); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ap-group-empty {
  margin: 0; padding: 2px var(--sp-4) 12px; color: var(--text-3); font-size: var(--fs-13);
}
.latitia-avatar {
  width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-text); font-size: 9px; font-weight: var(--fw-semi);
}
.ap-cancel-btn { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; }
/* The fixed retailer and status columns leave the item with a few dozen pixels
   once the panel is under about 800px (the 721–900 viewport, and again when
   Deliveries is two of three columns). Shrink those columns so the item stays readable. */
@container (max-width: 800px) {
  .deliveries .ap-colh,
  .deliveries .ap-row {
    grid-template-columns: minmax(9rem, 1fr) minmax(11rem, 1.25fr) 6.5rem 84px 44px;
  }
}
.ap-body { padding-bottom: 6px; }
.admin-panel .empty { margin: 0; }
.soon-panel { flex: 1 1 auto; min-height: 0; padding: var(--sp-4); }
#panel-sport.soon-panel { padding: 24px; }
.soon-card { padding: 28px; max-width: 560px; }
.soon-card h2 { margin: 0 0 8px; font-size: var(--fs-16); }
.soon-card p { margin: 0; color: var(--text-3); }
.sport-board, .travel-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; max-width: none; align-items: start; }
@media (min-width: 744px) { .sport-board, .travel-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sport-board, .travel-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.travel-board .soon-card { max-width: none; }
.travel-board .soon-card { min-width: 0; }
.travel-board [data-travel-trips] li { overflow-wrap: anywhere; }
.sport-title { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--text); }
.sport-card { padding: 18px; min-width: 0; border-radius: 12px; box-shadow: none; border-color: #e6e4df; }
.sport-card p { margin: 0; }
.sport-card .sport-kicker { margin-bottom: 4px; }
.sport-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sport-card.sport-empty .sport-hd { margin-bottom: 0; }
.soon-card p.sport-error { color: var(--danger); }
.soon-card p.sport-error-actions { margin-top: 8px; font-size: var(--fs-13); }
.sport-error-actions a { color: var(--accent-text); }
.sport-error-actions a { text-decoration: underline; }
.sport-error-actions a:focus-visible { box-shadow: var(--focus); }
.sport-logo { width: 28px; height: 28px; flex: none; display: block; }
.sport-mark {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--sunken); color: var(--text-2); font-size: 10px; font-weight: var(--fw-semi);
}
.sport-name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--text); }
.sport-sub, .sport-kicker, .sport-meta, .sport-ft { color: #6b6b6b; }
.sport-sub { font-size: 13px; }
.sport-hi {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px;
  margin-bottom: 18px; padding: 14px; background: #faf8f4; border-radius: 10px;
}
.sport-kicker {
  margin-bottom: 4px; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.sport-next, .sport-last { font-size: 14px; font-weight: 600; color: var(--text); }
.sport-last { display: flex; align-items: center; flex-wrap: wrap; }
.sport-chip {
  display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px;
  background: #eef0f5; color: #465078; font-size: 12px; font-weight: 700; line-height: 1.45;
}
.sport-chip.is-W { background: #e8f1ea; color: #2f6b3c; }
.sport-chip.is-L { background: #fbe9e7; color: #b3261e; }
.sport-meta { font-size: 13px; }
.sport-card h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: #6b6b6b; margin: 0 0 6px; font-weight: 600;
}
.sport-card .sec { margin-bottom: 16px; }
.sport-card > .sec:last-of-type { margin-bottom: 0; }
.sport-card .row {
  display: grid; grid-template-columns: 84px 30px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 0; border-top: 1px solid #f0eee9; font-variant-numeric: tabular-nums;
}
.sport-card [hidden] { display: none !important; }
.sport-card .row.f1 { grid-template-columns: 40px 1fr auto; }
.sport-card .row.nx {
  background: #faf8f4; margin: 0 -8px; padding: 7px 8px; border-radius: 6px; border-top-color: transparent;
}
.sport-card .pill { font-size: 11px; font-weight: 600; border-radius: 4px; text-align: center; padding: 1px 0; }
.sport-card .pill.H { background: #e8f1ea; color: #2f6b3c; }
.sport-card .pill.A { background: #eef0f5; color: #465078; }
.sport-card .t { color: #6b6b6b; }
.sport-card table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sport-card td { padding: 6px 4px; border-top: 1px solid #f0eee9; }
.sport-card td.n { text-align: right; width: 44px; }
.sport-card td.p { width: 28px; color: #6b6b6b; }
.sport-card tr.me td { background: #faf8f4; font-weight: 600; }
.sport-more {
  background: none; border: 0; padding: 8px 0 0; font: inherit; font-size: 13px; color: #1f1f1f;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.sport-card .mu { color: #6b6b6b; font-size: 13px; padding-top: 8px; }
.sport-card .sport-ft { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0eee9; font-size: 11px; }
[data-theme="dark"] .sport-card { border-color: var(--border); }
[data-theme="dark"] .sport-sub, [data-theme="dark"] .sport-kicker, [data-theme="dark"] .sport-meta,
[data-theme="dark"] .sport-ft, [data-theme="dark"] .sport-card h3, [data-theme="dark"] .sport-card .t,
[data-theme="dark"] .sport-card td.p, [data-theme="dark"] .sport-card .mu { color: var(--text-3); }
[data-theme="dark"] .sport-more { color: var(--text); }
[data-theme="dark"] .sport-hi,
[data-theme="dark"] .sport-card tr.me td { background: var(--surface-2); }
[data-theme="dark"] .sport-card .row.nx { background: var(--surface-2); border-top-color: transparent; }
[data-theme="dark"] .sport-card .row, [data-theme="dark"] .sport-card td,
[data-theme="dark"] .sport-ft { border-top-color: var(--border); }
.health-panel {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: var(--sp-4);
}
.health-bar { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 28px; flex: none; }
.health-panel .card { padding: var(--sp-6); max-width: 560px; }
.health-panel .health-blocked {
  align-self: center;
  width: min(480px, 100%);
  max-width: 480px;
  margin-inline: auto;
  padding: var(--sp-6);
  box-sizing: border-box;
}
.health-blocked p { margin: 0 0 var(--sp-3); }
.health-blocked-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.health-bar .muted { margin: 0; }
.health-panel .btn { display: inline-flex; align-items: center; text-decoration: none; }
.health-panel .btn:not(.primary) { color: var(--text); }
.health-frame-slot {
  flex: 1 1 auto; width: 100%; min-height: 240px;
}
.health-frame-host {
  position: fixed; z-index: 1; pointer-events: none; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
}
.health-frame-host.is-hidden { visibility: hidden; pointer-events: none; }
.health-frame-host.is-covered,
.health-frame-host.is-covered .health-frame { pointer-events: none; }
.health-frame-host .health-frame {
  display: block; width: 100%; height: 100%; border: 0; pointer-events: auto; background: var(--surface);
}
.privacy { max-width: 640px; margin: 0 auto; padding: 48px var(--sp-6) 64px; }
.privacy h1 { margin: 0 0 12px; font-size: var(--fs-24); letter-spacing: -.02em; }
.privacy h2 { margin: 28px 0 8px; font-size: var(--fs-16); }
.privacy p { margin: 0 0 12px; }
.privacy code { font-family: var(--font-mono); font-size: 0.92em; }
.privacy .eyebrow { font-size: var(--fs-12); font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.foot a { margin-left: 6px; text-decoration: underline; }
.overlay { position: fixed; inset: 0; background: rgba(18,19,21,.35); z-index: 40; display: grid; place-items: start center; padding: 12vh 16px 16px; }
.sheet { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 16px; max-height: 70vh; overflow: auto; }
.sheet h2 { margin: 0 0 8px; font-size: var(--fs-16); }
.sheet input { width: 100%; height: 36px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 10px; background: var(--surface); }
.sheet li { list-style: none; }
.sheet ul { margin: 8px 0 0; padding: 0; }
.sheet li button { width: 100%; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: var(--r-sm); }
.sheet li button:hover, .sheet li button[aria-selected="true"] { background: var(--accent-soft); }
.send-error {
  margin: 8px 10px 0; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--danger-soft); color: var(--danger);
  font-size: var(--fs-13); font-weight: var(--fw-semi);
}
.debug-dock {
  position: fixed; right: 12px; bottom: 12px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  width: min(420px, calc(100vw - 24px));
  max-height: 220px;
}
.debug-dock pre {
  display: none; margin: 0; width: 100%; max-height: 180px; min-height: 0;
  overflow: auto; padding: 8px 10px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-2);
  font: 11px/1.4 var(--font-mono); color: var(--text-2); white-space: pre-wrap;
}
.debug-dock[data-open="true"] pre { display: block; }
@media (min-width: 1100px) {
  .work-main .card-h {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    flex-wrap: nowrap;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}
@media (min-width: 1280px) {
  body:has(.debug-dock) .app { height: calc(100vh - 52px); padding-bottom: 0; }
  body:has(.debug-dock[data-open="true"]) .app { height: calc(100vh - 244px); padding-bottom: 0; }
  .pane[data-beeper] { overflow: hidden; padding-bottom: calc(16px + var(--toast-gap, 0px)); }
  .pane[data-beeper] > .beeper-thread { flex: 1 1 auto; min-height: 0; overflow: auto; }
}
.feedback-box {
  position: absolute; right: 0; top: 63px; z-index: 40;
  width: min(360px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.feedback-label { font-size: var(--fs-12); font-weight: var(--fw-semi); color: var(--text-2); }
.feedback-text {
  width: 100%; min-height: 96px; resize: vertical; padding: 8px 10px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface);
}
.feedback-actions { display: flex; justify-content: flex-end; gap: 8px; }
.feedback-actions .btn:disabled { opacity: 0.55; cursor: default; }
@media (max-width: 720px) {
  .feedback-box { position: fixed; left: 12px; right: 12px; top: 52px; width: auto; }
}
#toasts { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
/* Clearance lives in the thread and list scrollers, so the calendar stays put. */
html { scroll-padding-bottom: var(--toast-clear, 0px); }
.toast { background: var(--text); color: var(--bg); border-radius: var(--r-pill); padding: 8px 12px; font-size: var(--fs-13); display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow-2); pointer-events: none; }
.toast.error { background: var(--danger); color: #fff; }
.toast button { background: transparent; color: inherit; border: 0; font-weight: var(--fw-semi); text-decoration: underline; pointer-events: auto; }
.back { display: none; }
.help-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: var(--fs-13); }
.help-grid kbd { justify-self: start; }
[data-tab="fitness"] .work-only, [data-tab="work"] .health-only { display: none; }
.dayclosed { padding: 28px; text-align: center; }
/* Three equal columns at 1100px are about 345px. A subscription row then
   leaves the service name about 67px, so "Example Cloud" becomes "Exampl…".
   Two columns from here down; 720px goes to one column. Deliveries already
   spans both columns, so Subscriptions spans the row too and does not sit
   alone in the left cell. From 721 to 899 the name wraps instead of
   ellipsizing. */
@media (max-width: 1279px) {
  .admin-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-panel > .subscriptions { grid-column: 1 / -1; }
}
@media (max-width: 899px) and (min-width: 721px) {
  .subscriptions .ap-t,
  .subscriptions .ap-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}
@media (max-width: 720px) {
  .admin-panel { grid-template-columns: minmax(0, 1fr); padding: var(--sp-3); gap: var(--sp-3); }
  .apanel.span-2 { grid-column: auto; }
  .ap-colh { display: none; }
  .deliveries .ap-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "t t d" "s k b";
    row-gap: 3px; column-gap: var(--sp-3);
  }
  .deliveries .ap-t { grid-area: t; white-space: normal; }
  .deliveries .ap-sub { grid-area: s; font-size: var(--fs-12); white-space: normal; }
  .deliveries .badge { grid-area: b; justify-self: end; }
  .deliveries .ap-date { grid-area: d; justify-self: end; }
  .deliveries .ap-track { grid-area: k; justify-self: end; font-size: var(--fs-12); }
  .deliveries .ap-track.ap-dash { visibility: hidden; }
  .subscriptions .ap-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "t d" "a a";
    row-gap: 3px; column-gap: var(--sp-3);
  }
  .subscriptions .ap-t { grid-area: t; white-space: normal; }
  .subscriptions .ap-name { white-space: normal; overflow: visible; text-overflow: unset; }
  .subscriptions .ap-sub { grid-area: a; font-size: var(--fs-12); white-space: normal; }
  .subscriptions .ap-date { grid-area: d; justify-self: end; }
}
@media (max-width: 1279px) {
  html { scroll-padding-top: 4.75rem; }
  .app { height: auto; min-height: 100vh; }
  /* The window scrolls, not the pane. overflow:auto would trap the sticky header inside a pane that moves with the page. */
  .pane { overflow: visible; }
  #toasts { right: 16px; left: auto; transform: none; }
  .app[data-tab="fitness"] { height: 100vh; min-height: 100vh; }
  .glance { flex-wrap: wrap; height: auto; }
  .col-resize { display: none; }
  .work-main {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 340px);
    grid-template-rows: auto minmax(360px, auto) auto;
    height: auto;
  }
  .work-main.cols-custom {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 340px);
  }
  .cal-col { min-width: 0; }
  .glance { grid-row: 1; }
  .email-col { grid-column: 1; grid-row: 2; min-height: 360px; }
  .cal-col { grid-column: 2; grid-row: 2; min-height: 280px; }
  .tasks-col { grid-column: 1 / -1; grid-row: 3; min-height: 240px; }
}
@media (max-width: 759px) {
  .topbar { flex-wrap: nowrap; gap: 4px; padding: 6px; min-height: 44px; }
  .topbar:has(.reload-link) { flex-wrap: wrap; }
  .life-mark { width: 24px; height: 24px; border-radius: 8px; }
  .life-logo { width: 15px; height: 15px; }
  .tabbar { flex: 0 0 auto; width: max-content; min-width: 0; max-width: none; height: 32px; padding: 3px; }
  .tab, .tab-more { height: 26px; font-size: var(--fs-12); }
  .spacer { display: none; }
  .top-tools { flex: 0 0 auto; min-width: 0; flex-wrap: nowrap; margin-left: auto; padding-bottom: 0; gap: 4px; }
  .top-tools:has(.reload-link) { flex: 1 1 100%; flex-wrap: wrap; max-width: 100%; margin-left: 0; }
  .top-tools:has(.reload-link) .trust-wrap,
  .top-tools:has(.reload-link) .reload-link { flex: 1 0 100%; min-width: 0; max-width: 100%; }
  .top-tools:has(.reload-link) .trust {
    display: inline-flex; align-items: center; gap: 4px; width: max-content; max-width: 100%;
    height: auto; min-height: 26px; white-space: nowrap;
  }
  .top-tools:has(.reload-link) .reload-link {
    display: inline-flex; align-items: center; width: max-content; max-width: 100%;
    min-height: 44px; padding: 8px; white-space: nowrap; text-align: start;
  }
  .forecast { flex: none; }
  .trust { flex: none; height: 26px; padding: 0 6px; font-size: var(--fs-11); gap: 4px; }
  .join { flex: none; }
  .avatar { width: 24px; height: 24px; }
  .work-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: 12px; height: auto; }
  .work-main.cols-custom { grid-template-columns: minmax(0, 1fr); }
  .email-col, .cal-col, .tasks-col { grid-column: 1; grid-row: auto; min-height: 280px; }
  .email-col { order: 1; min-width: 0; }
  .cal-col { order: 2; }
  .tasks-col { order: 3; }
  .gchip, .chip, .count, .join { max-width: 100%; }
  .gchip { height: auto; min-height: 32px; white-space: normal; padding-top: 6px; padding-bottom: 6px; }
  .card-h, .pane-h, .pane-acts, .msg-acts { flex-wrap: wrap; }
  .card-h .meta { margin-left: 0; flex-wrap: wrap; max-width: 100%; }
  .glance { order: 0; }
  .inbox-wrap { grid-template-columns: 1fr; }
  .list-resize { display: none; }
  .ilist { border-right: 0; }
  .mail-line:hover .row-spam, .mail-line:hover .row-archive, .mail-line:hover .row-read,
  .mail-line:focus-within .row-spam, .mail-line:focus-within .row-archive, .mail-line:focus-within .row-read { opacity: 0; }
  .mail-line:has(.sel) .row-spam, .mail-line:has(.sel) .row-archive, .mail-line:has(.sel) .row-read,
  .row-spam:focus-visible, .row-archive:focus-visible, .row-read:focus-visible { opacity: 1; }
  .pane-open .ilist { display: none; }
  .pane-open .back { display: inline-flex; }
  .join span.when { display: none; }
}
.task-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; grid-column: 1 / -1; }
.task-form input { height: 26px; max-width: 9rem; }
.ev-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; padding: 0; border: 0; background: transparent; cursor: ns-resize; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.app.is-gated {
  visibility: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
.desk-only::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--gate-grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.desk-only {
  position: fixed; inset: 0; z-index: 2; min-height: 100vh; min-height: 100dvh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px max(28px, calc((100vw - 520px) / 2)) calc(88px + env(safe-area-inset-bottom));
  background: radial-gradient(130% 70% at 50% 34%, var(--gate-wash) 0%, var(--bg) 65%);
}
.desk-only .gate-mark { --w: min(88vw, 44vh, 600px); display: block; width: var(--w); aspect-ratio: 1; margin-left: calc(var(--w) * -1.3 / 15.2); }
.desk-copy { margin-top: clamp(32px, 6vh, 64px); }
.desk-only .gate-title { font-size: 52px; }
.desk-headline { margin: 18px 0 0; font-size: 21px; line-height: 1.3; font-weight: 550; letter-spacing: -.015em; color: var(--text); }
.desk-hint { margin: 6px 0 0; font-size: 17px; line-height: 1.4; color: var(--text-2); letter-spacing: -.01em; }
.desk-foot {
  position: absolute; left: max(28px, calc((100vw - 520px) / 2)); right: auto;
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: grid; gap: 6px; justify-items: start; text-align: left;
  font-size: var(--fs-12); color: var(--text-3); font-feature-settings: "tnum";
}
.desk-foot p { margin: 0; }
.desk-foot a, .desk-link { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
.desk-link { font: inherit; background: none; border: 0; padding: 10px 6px; margin: -10px -6px; cursor: pointer; border-radius: var(--r-sm); }
.desk-foot a:hover, .desk-link:hover { color: var(--text); }
.desk-foot a:focus-visible, .desk-link:focus-visible { outline: none; box-shadow: var(--focus); color: var(--text); }
.desk-foot .desk-account { color: var(--text-2); margin: 0 0 4px; }
.desk-account .desk-link { color: var(--text-2); font-weight: var(--fw-med); }
@media (min-width: 600px) {
  .desk-only .gate-title { font-size: 64px; }
  .desk-headline { font-size: 24px; margin-top: 20px; }
  .desk-hint { font-size: 18px; }
  .desk-foot { font-size: var(--fs-13); bottom: 32px; }
}
