/* Balon hub v3 · design system for the comps. ink #26213A · coral #F25C3B · paper #FBF4EA · Fredoka */
@font-face {
  font-family: Fredoka;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fredoka-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Fredoka;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fredoka-latin-500-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Fredoka;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fredoka-latin-600-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Fredoka;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fredoka-hebrew-400-normal.woff2) format("woff2");
  unicode-range:
    U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Fredoka;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fredoka-hebrew-500-normal.woff2) format("woff2");
  unicode-range:
    U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Fredoka;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fredoka-hebrew-600-normal.woff2) format("woff2");
  unicode-range:
    U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --ink: #26213a;
  --ink-2: #4a4462;
  --mute: #7c768c;
  --faint: #a9a4b6;
  --line: #26213a14;
  --line-2: #26213a24;
  --well: #f3eadb;
  --well-2: #ebe0ce;
  --paper: #fbf4ea;
  --white: #fff;
  --coral: #f25c3b;
  --coral-ink: #c8401f;
  --coral-soft: #fde7df;
  --coral-mist: #fbefe8;
  --amber: #b97a0c;
  --amber-soft: #f7ecd2;
  --green: #2f8a5b;
  --green-soft: #ddefe3;
  --red: #b3261e;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --glide: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sheet: 0 -2px 0 #26213a08, 0 -24px 60px -20px #26213a40;
  --float: 0 1px 2px #26213a0f, 0 18px 50px -18px #26213a4d;
  --band: #26213a;
  --scrim: #26213a59;
  --hover: #ffffff8c;
  --glass: #fbf4eaee;
  --at-me: #ffd3c6;
  --wa: #1f9d55;
  --wa-ink: #17844a;
  --wa-line: #bfe3cd;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c768c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* brand ink theme, the default: the brand swap Ink <-> Paper, Ink-2/Ink-3 for blocks on ink */
:root:not([data-theme="light"]) {
  --ink: #fbf4ea;
  --ink-2: #cfc8e6;
  --mute: #a69fbd;
  --faint: #6c6588;
  --line: #fbf4ea17;
  --line-2: #fbf4ea2b;
  --well: #1e1a2f;
  --well-2: #181526;
  --paper: #26213a;
  --white: #322c4a;
  --coral-ink: #ff8f73;
  --coral-soft: #5a3039;
  --coral-mist: #3b2639;
  --amber: #e4a944;
  --amber-soft: #44372a;
  --green: #5cc48a;
  --green-soft: #23392f;
  --red: #ff7066;
  --sheet: 0 -1px 0 #fbf4ea12, 0 -24px 60px -20px #0009;
  --float: 0 0 0 1px #fbf4ea12, 0 18px 50px -18px #000b;
  --band: #1b1729;
  --scrim: #0d0b14a6;
  --hover: #fbf4ea0f;
  --glass: #26213aee;
  --at-me: #c8401f;
  --wa: #1f9d55;
  --wa-ink: #5cc48a;
  --wa-line: #2f6a4a;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a69fbd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(
      0,
      0.116,
      0.357,
      0.609,
      0.815,
      0.954,
      1.032,
      1.064,
      1.066,
      1.054,
      1.036,
      1.02,
      1.008,
      1,
      0.997,
      0.995,
      0.996,
      0.997,
      0.998,
      0.999,
      1
    );
    --glide: linear(
      0,
      0.1,
      0.289,
      0.475,
      0.629,
      0.745,
      0.829,
      0.887,
      0.926,
      0.952,
      0.969,
      0.981,
      0.988,
      0.992,
      0.995,
      0.997,
      0.998,
      0.999,
      1
    );
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}
html,
body {
  margin: 0;
  overscroll-behavior: none;
}
body {
  font-family:
    Fredoka, -apple-system, system-ui, "Segoe UI", "Noto Sans Hebrew", Arial,
    sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input,
textarea {
  font: inherit;
  font-size: 16px;
  color: inherit;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
svg.ic {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
svg.ic .mv {
  fill: var(--coral);
  stroke: none;
}
svg.ic.s {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
svg.ic.xs {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
[dir="auto"] {
  unicode-bidi: plaintext;
}
.hide {
  display: none;
}

/* type scale */
.t-display {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.t-count {
  font-size: 60px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.t-title {
  font-size: 22px;
  line-height: 1.18;
  font-weight: 600;
}
.t-head {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
}
.t-body {
  font-size: 16px;
  line-height: 1.38;
}
.t-meta {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--mute);
}
.t-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0.01em;
}

/* avatars */
.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  flex: none;
  position: relative;
  user-select: none;
}
.av.s {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.av.xs {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.av.l {
  width: 48px;
  height: 48px;
  font-size: 19px;
}
.av.bot {
  background: var(--well-2);
  color: var(--ink);
}
.av.bot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px dashed var(--faint);
}
.av .st {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--paper);
}
.av .st.blocked {
  background: var(--coral);
}
.av .st.away {
  background: var(--faint);
}
.av .st.resting {
  background: var(--amber);
}

/* status glyphs: one family, 18px */
.g {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
  position: relative;
  border: 1.8px solid var(--faint);
}
.g.doing {
  border-color: var(--coral);
  background: linear-gradient(90deg, var(--coral) 50%, transparent 50%);
}
.g.review {
  border-color: var(--amber);
  background: var(--amber-soft);
}
.g.review::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--amber);
}
.g.done {
  border-color: var(--green);
  background: var(--green);
}
.g.done::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.g.blocked {
  border-color: var(--ink);
  background: var(--ink);
}
.g.blocked::after {
  content: "!";
  position: absolute;
  inset: 0;
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
}
.g.todo {
  border-color: var(--faint);
}
.g.dropped {
  border-color: var(--faint);
  background: repeating-linear-gradient(
    135deg,
    transparent 0 3px,
    var(--faint) 3px 4px
  );
}
.g.later {
  border-style: dashed;
}

/* pills, chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--well);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill.coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.pill.ink {
  background: var(--ink);
  color: var(--paper);
}
.pill.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill.green {
  background: var(--green-soft);
  color: var(--green);
}
.pill.line {
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}
.chip.on {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.chip.coral {
  background: var(--coral);
  color: #fff;
  box-shadow: none;
}
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--well);
}
.seg b {
  font-weight: 500;
  padding: 0 14px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: var(--mute);
}
.seg b.on {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px #26213a14;
}
.seg b i {
  font-style: normal;
  font-size: 12px;
  background: var(--well);
  border-radius: 999px;
  padding: 1px 6px;
  color: var(--mute);
}
.seg b.on i {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.num {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  background: var(--well);
  border-radius: 999px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
  display: inline-block;
  line-height: 1.2;
}
.num.coral {
  background: var(--coral);
  color: #fff;
}
.at {
  color: var(--coral-ink);
  font-weight: 500;
  background: var(--coral-mist);
  border-radius: 6px;
  padding: 0 3px;
}
.hash {
  color: var(--mute);
  font-weight: 500;
  margin-right: 1px;
}
.press {
  transition: transform 0.45s var(--spring);
}
.press:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  user-select: none;
}
.btn.coral {
  background: var(--coral);
  color: #fff;
}
.btn.quiet {
  background: var(--well);
  color: var(--ink);
}
.btn.ghost {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  color: var(--ink);
}
.btn.sm {
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
}
.btn.icon {
  width: 44px;
  padding: 0;
}
.btn.icon.sm {
  width: 34px;
}

/* ------------- phone shell ------------- */
.phone {
  position: fixed;
  inset: 0;
  background: var(--paper);
  overflow: hidden;
  width: 390px;
  height: 844px;
  --top: 47px;
  --tabs: 84px;
  --gut: 20px;
}
.phone .statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px 32px;
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
  z-index: 5;
}
.phone .statusbar .r {
  display: flex;
  gap: 6px;
  align-items: center;
}
.phone .statusbar .bat {
  width: 25px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  position: relative;
  opacity: 0.9;
}
.phone .statusbar .bat::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 16px;
  background: var(--ink);
  border-radius: 1px;
}
.phone .home-ind {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: var(--ink);
  transform: translateX(-50%);
  opacity: 0.9;
  z-index: 6;
}
.phone .screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: var(--top) 0 var(--tabs);
}
.phone .screen.no-tabs {
  padding-bottom: 40px;
}
.phone .screen::-webkit-scrollbar {
  display: none;
}
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tabs);
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px 30px;
  z-index: 4;
  user-select: none;
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  position: relative;
  padding-top: 4px;
}
.tabbar a .ic {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}
.tabbar a .ic .mv {
  fill: var(--faint);
}
.tabbar a.on {
  color: var(--ink);
  font-weight: 600;
}
.tabbar a.on .ic {
  stroke-width: 2;
}
.tabbar a.on .ic .mv {
  fill: var(--coral);
}
.tabbar a .num {
  position: absolute;
  top: 0;
  left: calc(50% + 6px);
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--paper);
  padding: 1px 5px;
  min-width: 18px;
  line-height: 1.1;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 10px 0 6px;
  position: sticky;
  top: 0;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
}
.topbar .back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.topbar .ttl {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.topbar .ttl b {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .ttl span {
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .act {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.pad {
  padding: 0 var(--gut);
}
.hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px var(--gut) 0;
}
.hdr .date {
  color: var(--mute);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}
.sec {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 26px var(--gut) 10px;
}
.sec h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}
.sec .num {
  margin-left: 2px;
}
.sec .more {
  margin-left: auto;
  color: var(--coral-ink);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ------------- launch strip (home) ------------- */
.strip {
  margin: 18px var(--gut) 0;
  display: block;
  position: relative;
  padding: 14px 16px 14px;
  border-radius: var(--r-m);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.strip .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.strip .row b {
  font-size: 17px;
  font-weight: 600;
}
.strip .row b em {
  font-style: normal;
  color: var(--coral-ink);
}
.strip .row span {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}
.string {
  position: relative;
  height: 16px;
  margin: 12px 0 0;
}
.string::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: var(--line-2);
  border-radius: 2px;
}
.string i {
  position: absolute;
  left: 0;
  top: 8px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.string .knot {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--coral);
  transform: translateX(-50%);
  margin-left: 0;
}
.string .goal {
  position: absolute;
  right: -2px;
  top: -7px;
  width: 18px;
  height: 28px;
}
.string .goal svg {
  width: 18px;
  height: 28px;
  display: block;
}
.strip .legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
}
.strip .legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 0;
}
.strip .legend .d i {
  background: var(--coral);
}
.strip .legend .m i {
  background: var(--coral-soft);
  box-shadow: inset 0 0 0 1.5px var(--coral);
}
.strip .legend .b i {
  background: var(--ink);
}

/* ------------- decision deck ------------- */
.deck {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gut);
  scrollbar-width: none;
}
.deck::-webkit-scrollbar {
  display: none;
}
.dcard {
  flex: 0 0 calc(100% - 36px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--r-l);
  padding: 16px 18px 14px;
  box-shadow: var(--float);
  position: relative;
}
.dcard .who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}
.dcard .who .due {
  margin-left: auto;
  color: var(--coral-ink);
  background: var(--coral-mist);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.dcard .who .due.late {
  color: #fff;
  background: var(--coral);
}
.dcard .q {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin: 12px 0 6px;
}
.dcard .ctx {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.35;
}
.dcard .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.dcard .opts .chip {
  height: 36px;
  font-size: 15px;
  padding: 0 14px;
}
.dcard .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--mute);
  font-weight: 500;
}
.dcard .foot .write {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dcard .foot .link {
  color: var(--coral-ink);
  font-weight: 500;
}
.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 12px 0 0;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
}
.dots i.on {
  background: var(--coral);
  width: 18px;
  border-radius: 3px;
}

/* ------------- handoff row, task rows ------------- */
.hand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 var(--gut);
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: var(--coral-mist);
}
.hand .ic {
  color: var(--coral-ink);
}
.hand .txt {
  flex: 1;
  min-width: 0;
}
.hand .txt b {
  display: block;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hand .txt span {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.hand .chev {
  color: var(--coral-ink);
}
.rows {
  margin: 0 var(--gut);
  border-top: 1px solid var(--line);
}
.row-t {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.row-t .g {
  margin-top: 1px;
}
.row-t .m {
  flex: 1;
  min-width: 0;
}
.row-t .m b {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-t .m span {
  display: block;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-t .m span.warn {
  color: var(--coral-ink);
}
.row-t .r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}
.row-t .r .due {
  color: var(--ink-2);
}
.row-t .r .due.soon {
  color: var(--coral-ink);
  font-weight: 600;
}
.row-t.is-done .m b {
  color: var(--mute);
  text-decoration: line-through;
}
.grp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px var(--gut) 6px;
  font-size: 14px;
  font-weight: 600;
}
.grp .num {
  font-size: 11px;
}
.grp.first {
  padding-top: 14px;
}
.grp .ic {
  color: var(--coral-ink);
}

/* ------------- around ------------- */
.around {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 calc(var(--gut) - 6px);
  scrollbar-width: none;
}
.around::-webkit-scrollbar {
  display: none;
}
.person {
  flex: 0 0 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 4px 2px;
}
.person .av {
  width: 46px;
  height: 46px;
  font-size: 18px;
}
.person .av .st {
  width: 13px;
  height: 13px;
}
.person b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}
.person span {
  font-size: 11px;
  color: var(--mute);
  font-weight: 500;
  line-height: 1.15;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------- since (timeline) ------------- */
.since {
  margin: 0 var(--gut);
  position: relative;
  padding-left: 2px;
}
.ev {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  align-items: flex-start;
  position: relative;
}
.ev + .ev::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -14px;
  height: 14px;
  border-left: 2px solid var(--line);
}
.ev .av {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.ev .tile {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--well);
  color: var(--ink-2);
  flex: none;
}
.ev .tile.coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.ev .m {
  flex: 1;
  min-width: 0;
}
.ev .m .h {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.ev .m .h .num {
  font-size: 11px;
}
.ev .m .h time {
  margin-left: auto;
  color: var(--faint);
  font-weight: 500;
  flex: none;
}
.ev .m p {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev .m p b {
  font-weight: 500;
  color: var(--ink);
}

/* ------------- talk list ------------- */
.conv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gut);
  min-height: 66px;
}
.conv .tile {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--well);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink-2);
  flex: none;
}
.conv .av {
  width: 44px;
  height: 44px;
  font-size: 17px;
}
.conv .m {
  flex: 1;
  min-width: 0;
}
.conv .m .h {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.conv .m .h b {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv .m .h time {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
  flex: none;
}
.conv .m .h time.new {
  color: var(--coral-ink);
}
.conv .m p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv .m p b {
  font-weight: 500;
  color: var(--ink-2);
}
.conv.unread .m p {
  color: var(--ink-2);
}
.conv .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}

/* ------------- messenger ------------- */
.chat {
  padding: 4px var(--gut) 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.day {
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  background: var(--well);
  padding: 3px 10px;
  border-radius: 999px;
  margin: 14px 0 10px;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 88%;
  margin-top: 10px;
}
.msg.cont {
  margin-top: 3px;
}
.msg .av {
  width: 30px;
  height: 30px;
  font-size: 12px;
  margin-bottom: 2px;
}
.msg.cont .av {
  visibility: hidden;
}
.msg .col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.msg .name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 4px;
}
.msg .name i {
  font-style: normal;
  color: var(--faint);
  font-weight: 500;
  margin-left: 4px;
}
.bub {
  background: var(--white);
  border-radius: 18px 18px 18px 6px;
  padding: 9px 13px 7px;
  font-size: 16px;
  line-height: 1.35;
  box-shadow: 0 1px 1px #26213a0a;
  position: relative;
}
.bub .t {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  text-align: right;
  margin-top: 2px;
}
.msg.me {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg.me .col {
  align-items: flex-end;
}
.msg.me .bub {
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px 18px 6px 18px;
}
.msg.me .bub .t {
  color: color-mix(in srgb, var(--paper) 53%, transparent);
}
.msg.me .av {
  display: none;
}
.thr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-ink);
  padding: 4px 8px 4px 6px;
  margin-left: 10px;
  position: relative;
}
.thr::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  width: 10px;
  height: 16px;
  border-left: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  border-radius: 0 0 0 8px;
}
.thr .avs {
  display: inline-flex;
}
.thr .avs .av {
  width: 18px;
  height: 18px;
  font-size: 8px;
  border: 1.5px solid var(--paper);
  margin-right: -5px;
}
.thr .avs .av.bot::after {
  display: none;
}
.slip {
  background: var(--coral-mist);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 14px 10px;
  max-width: 100%;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral) 20%, transparent);
  position: relative;
  margin-top: 2px;
}
.slip .h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral-ink);
}
.slip .h .ic {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.slip .task {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 6px;
}
.slip .task .num {
  margin-right: 6px;
  vertical-align: 2px;
}
.slip dl {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.35;
}
.slip dt {
  font-weight: 600;
  color: var(--ink);
  display: inline;
}
.slip dd {
  display: inline;
  margin: 0;
}
.slip .acts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.composer {
  position: sticky;
  bottom: 0;
  margin-top: 14px;
  padding: 10px var(--gut) 12px;
  background: linear-gradient(transparent, var(--paper) 30%);
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.composer .field {
  flex: 1;
  min-height: 44px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  display: flex;
  align-items: center;
  padding: 0 6px 0 16px;
  color: var(--faint);
  gap: 8px;
}
.composer .field span {
  flex: 1;
}
.composer .send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
}
.composer .send .ic {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.composer .plus {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
/* thread */
.root {
  padding: 10px var(--gut) 0;
}
.root .h {
  display: flex;
  align-items: center;
  gap: 10px;
}
.root .h b {
  font-weight: 600;
}
.root .h span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}
.root p {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.35;
}
.replies {
  margin: 14px var(--gut) 0 calc(var(--gut) + 17px);
  border-left: 2px solid var(--line-2);
  padding-left: 18px;
}
.reply {
  position: relative;
  padding: 8px 0 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.reply::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 22px;
  width: 12px;
  height: 2px;
  background: var(--line-2);
}
.reply .av {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.reply .m {
  flex: 1;
  min-width: 0;
}
.reply .m .h {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
}
.reply .m .h span {
  color: var(--faint);
  font-weight: 500;
}
.reply .m p {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.35;
}
.replies .end {
  position: relative;
  height: 10px;
}
.replies .end::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-2);
}

/* ------------- quick capture ------------- */
.capture {
  margin: 12px var(--gut) 0;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 14px;
  color: var(--faint);
}
.capture .ic {
  color: var(--coral);
}
.capture span {
  flex: 1;
  font-size: 16px;
}
.capture kbd {
  font: inherit;
  font-size: 12px;
  color: var(--faint);
  background: var(--well);
  border-radius: 6px;
  padding: 2px 7px;
  font-weight: 600;
}

/* ------------- task page ------------- */
.task-hero {
  padding: 6px var(--gut) 0;
}
.task-hero .flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.task-hero h1 {
  margin: 10px 0 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
}
.stline {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px var(--gut) 0;
  scrollbar-width: none;
}
.stline::-webkit-scrollbar {
  display: none;
}
.stline .chip {
  height: 34px;
  font-size: 14px;
  padding: 0 12px;
  gap: 7px;
}
.stline .chip .g {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}
.stline .chip .g.blocked::after {
  font-size: 9px;
  line-height: 9px;
}
.stline .chip .g.done::after {
  left: 3px;
  top: 1px;
  width: 3px;
  height: 5px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 16px var(--gut) 0;
}
.fact {
  min-width: 0;
}
.fact .k {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.fact .v {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fact .v .av {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.fields {
  padding: 8px var(--gut) 0;
}
.field-b {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.field-b .k {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 4px;
}
.field-b .v {
  font-size: 16px;
  line-height: 1.4;
}
.field-b .v.blocker {
  color: var(--coral-ink);
}
.field-b .v.empty {
  color: var(--faint);
}
.acts-row {
  display: flex;
  gap: 8px;
  padding: 16px var(--gut) 0;
}
.acts-row .btn {
  flex: 1;
  padding: 0 10px;
}
.hist {
  margin: 8px var(--gut) 0;
}

/* ------------- launch (roadmap) ------------- */
.count {
  padding: 4px var(--gut) 0;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.count .big {
  font-size: 64px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--coral-ink);
}
.count .big small {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--mute);
  font-weight: 600;
  margin-top: 6px;
}
.count .goal {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.35;
  padding-bottom: 6px;
}
.count .goal b {
  display: block;
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}
.meter {
  margin: 18px var(--gut) 0;
}
.meter .bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--well-2);
  gap: 2px;
}
.meter .bar i {
  display: block;
  height: 100%;
}
.meter .bar .d {
  background: var(--coral);
}
.meter .bar .m {
  background: var(--coral-soft);
  box-shadow: inset 0 0 0 1.5px var(--coral);
}
.meter .bar .b {
  background: var(--ink);
}
.meter .leg {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}
.meter .leg b {
  color: var(--ink);
  font-weight: 600;
}
.rope {
  position: relative;
  margin: 26px 0 0 calc(var(--gut) + 15px);
  padding-left: 26px;
  border-left: 2px solid var(--line-2);
}
.rope .balloon {
  position: absolute;
  left: -15px;
  top: -30px;
  width: 28px;
  height: 38px;
}
.rope .balloon svg {
  width: 28px;
  height: 38px;
  display: block;
}
.phase {
  position: relative;
  padding: 0 var(--gut) 0 0;
  margin-top: 22px;
}
.phase:first-of-type {
  margin-top: 0;
}
.phase .knot {
  position: absolute;
  left: -41px;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 13px;
  display: grid;
  place-items: center;
  border: 3px solid var(--paper);
}
.phase.is-done .knot {
  background: var(--green);
}
.phase .ph {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.phase .ph h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  flex: 1;
}
.phase .ph .frac {
  font-size: 13px;
  color: var(--mute);
  font-weight: 600;
}
.phase .bar {
  height: 4px;
  border-radius: 2px;
  background: var(--well-2);
  margin: 8px 0 4px;
  overflow: hidden;
}
.phase .bar i {
  display: block;
  height: 100%;
  background: var(--coral);
  border-radius: 2px;
}
.item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  position: relative;
}
.item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 15px;
  width: 14px;
  height: 2px;
  background: var(--line-2);
}
.item .g {
  margin-top: 1px;
  width: 16px;
  height: 16px;
}
.item .g.blocked::after {
  font-size: 10px;
  line-height: 12px;
}
.item .g.done::after {
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
}
.item .m {
  flex: 1;
  min-width: 0;
}
.item .m b {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  display: block;
}
.item .m b .id {
  color: var(--mute);
  font-weight: 600;
  font-size: 12px;
  margin-right: 6px;
  vertical-align: 1px;
}
.item .m span {
  display: block;
  font-size: 12.5px;
  color: var(--mute);
  font-weight: 500;
  margin-top: 2px;
}
.item .m span.warn {
  color: var(--coral-ink);
}
.item .own {
  width: 22px;
  height: 22px;
  font-size: 10px;
  flex: none;
  margin-top: 0;
}
.item.is-later {
  opacity: 0.55;
}

/* ------------- decisions ------------- */
.qa {
  padding: 0 var(--gut);
}
.qa .for {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  padding: 22px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qa .for::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ask {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ask .av {
  width: 32px;
  height: 32px;
  font-size: 12px;
  margin-top: 2px;
}
.ask .m {
  flex: 1;
  min-width: 0;
}
.ask .m .h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.ask .m .h .due {
  margin-left: auto;
  font-size: 12px;
  color: var(--coral-ink);
  background: var(--coral-mist);
  padding: 2px 8px;
  border-radius: 999px;
}
.ask .m .h .due.late {
  color: #fff;
  background: var(--coral);
}
.ask .bub {
  display: inline-block;
  margin-top: 6px;
  border-radius: 6px 18px 18px 18px;
  padding: 10px 14px 9px;
}
.ask .bub .q {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  display: block;
}
.ask .bub .c {
  font-size: 14.5px;
  color: var(--ink-2);
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}
.ask .bub .lnk {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--coral-ink);
  font-weight: 600;
}
.ans {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 10px 0 0 42px;
}
.ans .chip {
  height: 38px;
  font-size: 15px;
}
.ans .chip.write {
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  border-style: dashed;
  color: var(--mute);
}
.decided {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.decided .ic {
  color: var(--green);
  margin-top: 2px;
}
.decided .m {
  flex: 1;
  min-width: 0;
}
.decided .m b {
  font-weight: 500;
  font-size: 15px;
  display: block;
}
.decided .m span {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}
.decided .m span em {
  font-style: normal;
  color: var(--green);
  font-weight: 600;
}

/* ------------- search ------------- */
.sbox {
  margin: 6px var(--gut) 0;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
}
.sbox .q {
  flex: 1;
  font-size: 17px;
}
.sbox span i {
  font-style: normal;
  border-right: 2px solid var(--coral);
}
.sbox .x {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--well-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.browse {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px var(--gut) 0;
  scrollbar-width: none;
}
.browse::-webkit-scrollbar {
  display: none;
}
.browse .chip {
  height: 34px;
  font-size: 14px;
  padding: 0 12px;
  gap: 6px;
  background: var(--well);
  box-shadow: none;
  color: var(--ink-2);
}
.res {
  padding: 0 var(--gut);
}
.res .k {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  padding: 20px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.res .k::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
}
.hit .tile {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--well);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
}
.hit .av {
  width: 36px;
  height: 36px;
}
.hit .m {
  flex: 1;
  min-width: 0;
}
.hit .m b {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
}
.hit .m span {
  display: block;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hit .m mark {
  background: var(--coral-soft);
  color: var(--coral-ink);
  border-radius: 4px;
  padding: 0;
}
.hit .r {
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
  flex: none;
  padding-top: 3px;
}

/* ------------- login ------------- */
.login {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  text-align: center;
}
.login .logo {
  width: 150px;
  margin-top: 150px;
}
.login .logo svg {
  width: 150px;
  display: block;
}
.login h1 {
  margin: 26px 0 6px;
  font-size: 26px;
  font-weight: 600;
}
.login p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.4;
  max-width: 280px;
}
.login .tok {
  margin-top: 34px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--faint);
  font-size: 16px;
  gap: 10px;
  position: relative;
}
.login .tok .ic {
  color: var(--mute);
}
.login .btn {
  width: 100%;
  margin-top: 12px;
  height: 52px;
  font-size: 17px;
}
.login .fine {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mute);
}
.login .fine b {
  color: var(--ink-2);
  font-weight: 600;
}
.login .bal {
  position: absolute;
  left: 50%;
  top: 92px;
  width: 30px;
  height: 60px;
  transform: translateX(66px);
}
.login .bal svg {
  width: 30px;
  height: 64px;
  display: block;
}

/* ------------- desktop shell ------------- */
.desk {
  position: fixed;
  inset: 0;
  width: 1280px;
  height: 800px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 76px 1fr;
  overflow: hidden;
}
.rail {
  --ink: var(--band);
  --paper: #fbf4ea;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 16px;
  gap: 6px;
  user-select: none;
}
.rail .mark {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
}
.rail .mark svg {
  width: 34px;
  height: 34px;
  display: block;
}
.rail a {
  width: 60px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: #fbf4eaa6;
  position: relative;
}
.rail a .ic {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}
.rail a .ic .mv {
  fill: #fbf4ea66;
}
.rail a.on {
  background: #fbf4ea1a;
  color: var(--paper);
  font-weight: 600;
}
.rail a.on .ic .mv {
  fill: var(--coral);
}
.rail a .num {
  position: absolute;
  top: 5px;
  right: 9px;
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 0 4px;
  min-width: 17px;
  font-size: 10.5px;
  line-height: 1.3;
}
.rail .sp {
  flex: 1;
}
.rail .me {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 600;
  position: relative;
}
.rail .me .st {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
}
.rail .kbd {
  font-size: 10px;
  color: #fbf4ea66;
  font-weight: 600;
  margin-top: 6px;
  background: #fbf4ea12;
  border-radius: 6px;
  padding: 2px 6px;
}
.main {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.bar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.bar .sub {
  color: var(--mute);
  font-weight: 500;
  font-size: 14px;
}
.bar .sp {
  flex: 1;
}
.bar .search {
  width: 300px;
  height: 38px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  color: var(--faint);
  font-size: 15px;
}
.bar .search span {
  flex: 1;
}
.bar .search kbd {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  background: var(--well);
  border-radius: 6px;
  padding: 2px 7px;
}
.panes {
  display: grid;
  min-height: 0;
  overflow: hidden;
}
.pane {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pane::-webkit-scrollbar {
  width: 0;
}
.pane.side {
  border-left: 1px solid var(--line);
}
.pane.list {
  border-right: 1px solid var(--line);
}
.desk .sec {
  padding: 22px 28px 10px;
}
.desk .sec h2 {
  font-size: 16px;
}
@media (hover: hover) {
  .press:hover {
    filter: brightness(0.98);
  }
}

/* desktop home */
.dhome {
  grid-template-columns: 1fr 380px;
}
.dhome .deck {
  padding: 0 28px;
  overflow: visible;
  flex-wrap: wrap;
}
.dhome .dcard {
  flex: 1 1 320px;
  max-width: 520px;
}
.dhome .rows {
  margin: 0 28px;
}
.dhome .since {
  margin: 0 28px;
}
.dhome .hand {
  margin: 0 28px;
}
.dhome .greet {
  padding: 22px 28px 0;
}
.dhome .greet .date {
  color: var(--mute);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
}
.dhome .greet h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}
.dhome .side .strip {
  margin: 22px 24px 0;
}
.dhome .side .pipe {
  margin: 12px 24px 0;
}
.dhome .side .plist {
  padding: 0 24px;
}
.prow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.prow .av {
  width: 38px;
  height: 38px;
}
.prow .m {
  flex: 1;
  min-width: 0;
}
.prow .m b {
  display: block;
  font-weight: 600;
  font-size: 15px;
}
.prow .m span {
  display: block;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prow time {
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
  flex: none;
}
.prow .btn {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

/* desktop talk */
.dtalk {
  grid-template-columns: 290px 1fr 380px;
}
.dtalk .list .conv {
  padding: 8px 16px;
  min-height: 60px;
}
.dtalk .list .conv.on {
  background: var(--white);
  border-radius: 14px;
  margin: 0 8px;
  padding: 8px 8px;
}
.dtalk .list .conv .tile {
  width: 40px;
  height: 40px;
  font-size: 18px;
}
.dtalk .list .conv .av {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.dtalk .list .lh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 8px;
}
.dtalk .list .lh h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.dtalk .list .lh .btn {
  height: 32px;
  width: 32px;
  padding: 0;
}
.dtalk .list .lk {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  padding: 16px 16px 4px;
}
.dtalk .chan {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}
.dtalk .chan .ch {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.dtalk .chan .ch b {
  font-size: 17px;
  font-weight: 600;
}
.dtalk .chan .ch .tp {
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.dtalk .chan .ch .avs {
  display: flex;
}
.dtalk .chan .ch .avs .av {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border: 2px solid var(--paper);
  margin-left: -6px;
}
.dtalk .chan .ch .avs .av.bot::after {
  display: none;
}
.dtalk .chan .body {
  overflow-y: auto;
  padding: 0 24px 10px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dtalk .chan .body .msg {
  max-width: 72%;
}
.dtalk .chan .composer {
  position: static;
  margin: 0;
  padding: 10px 24px 16px;
  background: none;
}
.dtalk .thread {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}
.dtalk .thread .th {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 10px 0 20px;
  border-bottom: 1px solid var(--line);
}
.dtalk .thread .th b {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}
.dtalk .thread .th span {
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
}
.dtalk .thread .tb {
  overflow-y: auto;
  padding: 0 20px;
  min-height: 0;
}
.dtalk .thread .root {
  padding: 14px 0 0;
}
.dtalk .thread .root p {
  font-size: 16px;
}
.dtalk .thread .replies {
  margin-left: 15px;
  margin-right: 0;
}
.dtalk .thread .composer {
  position: static;
  margin: 0;
  padding: 10px 16px 16px;
  background: none;
}

/* desktop board */
.dwork {
  grid-template-columns: 1fr;
}
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  padding: 18px 28px 24px;
  overflow-x: auto;
  min-height: 0;
  align-items: start;
}
.colm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.colm .cH {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 8px;
  font-weight: 600;
  font-size: 14px;
}
.colm .cH .num {
  margin-left: auto;
}
.colm .cH .g {
  width: 14px;
  height: 14px;
}
.colm .cH .g.blocked::after {
  font-size: 9px;
  line-height: 11px;
}
.colm .cH .g.done::after {
  left: 3px;
  top: 1px;
  width: 3px;
  height: 6px;
}
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 12px 12px 10px;
  box-shadow:
    0 1px 2px #26213a0f,
    0 6px 16px -10px #26213a2e;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card .h {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.card .h b {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  flex: 1;
}
.card .h .id {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  padding-top: 2px;
}
.card .sub {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  line-height: 1.3;
}
.card .sub.warn {
  color: var(--coral-ink);
}
.card .f {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.card .f .sp {
  flex: 1;
}
.card .f .pill {
  height: 22px;
  font-size: 12px;
  padding: 0 8px;
}
.card .f .due {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.card .f .due.soon {
  color: var(--coral-ink);
}
.card .f .av {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.card.is-done {
  opacity: 0.6;
}
.card.is-done .h b {
  text-decoration: line-through;
  color: var(--mute);
}
.colm .add {
  height: 38px;
  border-radius: 12px;
  border: 1.5px dashed var(--line-2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
}
.colm .add .ic {
  width: 16px;
  height: 16px;
}

/* desktop launch */
.dlaunch {
  grid-template-columns: 360px 1fr;
}
.dlaunch .side {
  border-left: 0;
  border-right: 1px solid var(--line);
  padding: 0 0 20px;
}
.dlaunch .count {
  padding: 22px 24px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.dlaunch .count .big {
  font-size: 88px;
}
.dlaunch .meter {
  margin: 18px 24px 0;
}
.dlaunch .ph-nav {
  padding: 0 24px;
}
.dlaunch .ph-nav .pn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.dlaunch .ph-nav .pn .k {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.dlaunch .ph-nav .pn.is-done .k {
  background: var(--green);
}
.dlaunch .ph-nav .pn b {
  flex: 1;
  font-weight: 500;
  font-size: 15px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dlaunch .ph-nav .pn .bar {
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: var(--well-2);
  overflow: hidden;
}
.dlaunch .ph-nav .pn .bar i {
  display: block;
  height: 100%;
  background: var(--coral);
}
.dlaunch .ph-nav .pn span {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  width: 30px;
  text-align: right;
}
.dlaunch .owners {
  padding: 0 24px;
}
.dlaunch .owners .o {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
}
.dlaunch .owners .o .bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--well-2);
  overflow: hidden;
}
.dlaunch .owners .o .bar i {
  display: block;
  height: 100%;
  background: var(--ink);
}
.dlaunch .owners .o .n {
  width: 56px;
  color: var(--ink);
}
.dlaunch .owners .o .cnt {
  width: 60px;
  text-align: right;
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
}
.dlaunch .ropewrap {
  padding: 26px 32px 30px 0;
}
.dlaunch .rope {
  margin-left: 58px;
}
.dlaunch .pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
}
.dlaunch .item .m b {
  font-size: 14.5px;
}
.dlaunch .phase {
  padding-right: 24px;
}

/* palette */
.scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 20;
}
.pal {
  position: absolute;
  left: 50%;
  top: 120px;
  transform: translateX(-50%);
  width: 620px;
  background: var(--paper);
  border-radius: 20px;
  box-shadow:
    0 30px 90px -20px #26213aaa,
    0 0 0 1px #26213a1a;
  z-index: 21;
  overflow: hidden;
}
.pal .in {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.pal .in span {
  flex: 1;
}
.pal .in span i {
  font-style: normal;
  border-right: 2px solid var(--coral);
  padding-right: 1px;
}
.pal .in kbd {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  background: var(--well);
  border-radius: 6px;
  padding: 2px 7px;
}
.pal .grp {
  padding: 12px 20px 4px;
  font-size: 12px;
  color: var(--mute);
}
.pal .it {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  margin: 0 8px;
  border-radius: 12px;
}
.pal .it.on {
  background: var(--white);
  box-shadow: 0 1px 2px #26213a14;
}
.pal .it .tile {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--well);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
}
.pal .it .av {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.pal .it .m {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pal .it .m span {
  color: var(--mute);
  font-weight: 400;
  margin-left: 8px;
  font-size: 13px;
}
.pal .it .m mark {
  background: var(--coral-soft);
  color: var(--coral-ink);
  border-radius: 4px;
  padding: 0;
}
.pal .it kbd {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  background: var(--well);
  border-radius: 6px;
  padding: 2px 7px;
}
.pal .ft {
  display: flex;
  gap: 16px;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
  margin-top: 8px;
}
.pal .ft kbd {
  font: inherit;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--well);
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 4px;
}

/* ================= the app (v3 build): real shell over the comp system ================= */
body {
  background: var(--paper);
}
[hidden] {
  display: none !important;
}
.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  --gut: 20px;
  --tabs: 58px;
}
.stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(var(--tabs) + env(safe-area-inset-bottom));
  overflow: hidden;
}
.scr {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--paper);
  padding-top: env(safe-area-inset-top);
}
.scr::-webkit-scrollbar {
  display: none;
}
.scr.is-in {
  transform: translateX(100%);
}
.scr.is-anim {
  transition: transform 0.32s var(--glide);
}
.scr.is-out {
  transform: translateX(100%);
  z-index: 2;
}
.scr.is-under {
  transform: translateX(-24%);
  transition: transform 0.32s var(--glide);
}
.fill {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.fill > .chat {
  flex: 1;
}
.tabbar {
  position: absolute;
  height: auto;
  padding: 6px 6px calc(env(safe-area-inset-bottom) + 4px);
  min-height: var(--tabs);
}
.tabbar a {
  padding-top: 2px;
}
.app.is-typing .tabbar {
  display: none;
}
.app.is-typing .stage {
  bottom: 0;
}
.rail {
  display: none;
}
button.press,
a.press {
  cursor: pointer;
}
.bar-err {
  margin: 8px var(--gut) 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--coral-mist);
  color: var(--coral-ink);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: center;
}
.bar-err button {
  margin-left: auto;
  font-weight: 600;
  text-decoration: underline;
}
.ph-block {
  margin: 14px var(--gut) 0;
  height: 64px;
  border-radius: 14px;
  background: var(--well);
}
.empty {
  padding: 18px var(--gut);
  color: var(--mute);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.empty.bal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px var(--gut) 6px;
}
.empty.bal svg {
  width: 26px;
  height: 44px;
}
.cap-in,
.sbox input,
.composer textarea {
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.capture {
  color: var(--ink);
}
.composer .field {
  color: var(--ink);
  padding: 0 4px 0 16px;
}
.composer textarea {
  resize: none;
  padding: 11px 0;
  line-height: 1.35;
  max-height: 160px;
  display: block;
}
.composer.is-ro {
  justify-content: center;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
}
.bub p {
  margin: 0;
}
.bub p + p {
  margin-top: 6px;
}
.bub ul,
.reply ul,
.root ul {
  margin: 4px 0;
  padding-left: 20px;
}
.bub pre,
.md pre {
  white-space: pre-wrap;
  background: var(--well);
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  margin: 6px 0;
  overflow-x: auto;
}
.msg.me .bub pre {
  background: color-mix(in srgb, var(--paper) 10%, transparent);
}
.bub a,
.md a,
.reply a,
.root a {
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.bub code,
.md code {
  font-size: 0.9em;
  background: var(--well);
  border-radius: 4px;
  padding: 0 3px;
}
.msg.me .bub code {
  background: color-mix(in srgb, var(--paper) 13%, transparent);
}
.msg.me .at {
  background: color-mix(in srgb, var(--paper) 13%, transparent);
  color: var(--at-me);
}
.msg.is-new {
  animation: in 0.2s var(--glide);
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.digest {
  background: var(--white);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 14px;
  margin-top: 10px;
  align-self: stretch;
}
.digest summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.digest summary::-webkit-details-marker {
  display: none;
}
.digest .md {
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.md p {
  margin: 0 0 6px;
}
.reply p,
.root p {
  white-space: normal;
}
.sec .more {
  cursor: pointer;
}
/* swipe rows */
.sw {
  position: relative;
  overflow: hidden;
}
.sw .row-t {
  background: var(--paper);
  position: relative;
  z-index: 1;
  touch-action: pan-y;
}
.sw .under {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-weight: 600;
  font-size: 14px;
}
.sw .under .l {
  color: var(--green);
}
.sw .under .r {
  color: var(--coral-ink);
}
.sw.is-gone {
  opacity: 0;
  transition: opacity 0.3s;
}
.dcard.is-gone {
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: top;
  transition:
    transform 0.24s var(--glide),
    opacity 0.24s;
}
.chip.is-pick {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
  transition: background 0.12s;
}
.chip.mute {
  opacity: 0.6;
}
/* task page edit-in-place */
.field-b {
  cursor: pointer;
}
.field-b textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  padding: 8px 10px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  resize: vertical;
  min-height: 44px;
  color: var(--ink);
}
.fact {
  cursor: pointer;
}
.links-l a {
  display: block;
  color: var(--coral-ink);
  text-decoration: underline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* sheets: one component for every modal. Phone and tablet: a bottom sheet. Desktop (1024+): a centred dialog.
   Title row with a close control, a body that scrolls on its own, a pinned footer action, safe areas on every edge. */
dialog.sheet {
  --gut: 20px;
  --sx: max(var(--gut), env(safe-area-inset-left));
  --sxr: max(var(--gut), env(safe-area-inset-right));
  --sh: 88vh;
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 560px;
  max-height: var(--sh);
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--sheet);
  overflow: hidden;
  overscroll-behavior: contain;
}
@supports (height: 100dvh) {
  dialog.sheet {
    --sh: calc(100dvh - env(safe-area-inset-top) - 12px);
  }
}
dialog.sheet[open] {
  animation: rise 0.35s var(--spring);
}
@keyframes rise {
  from {
    transform: translateY(100%);
  }
}
dialog.sheet::backdrop {
  background: var(--scrim);
}
.sheet form {
  display: flex;
  flex-direction: column;
  max-height: var(--sh);
}
.sheet .grab {
  flex: none;
  display: block;
  width: 100%;
  height: 18px;
  position: relative;
  cursor: grab;
  touch-action: none;
}
.sheet .grab::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-2);
  transform: translateX(-50%);
}
.sheet .sh {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 calc(var(--sxr) - 10px) 6px var(--sx);
  touch-action: none;
}
.sheet .sh h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  text-align: left;
  outline: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet .sh .x {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--well);
  color: var(--ink-2);
}
.sheet .sh .x .ic {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.sheet .sb {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px var(--sxr) 22px var(--sx);
}
.sheet.is-list .sb {
  padding-bottom: calc(env(safe-area-inset-bottom) + 14px);
}
.sheet .note {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 10px;
}
.sheet .f {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  margin: 20px 0 8px;
}
.sheet .sb > .f:first-child,
.sheet .sb > .note + .f {
  margin-top: 6px;
}
.sheet .hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mute);
}
.sheet input:not([type="checkbox"]):not([type="radio"]),
.sheet textarea,
.sheet select {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: 0;
}
.sheet select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: var(--chev);
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.sheet textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.4;
}
.sheet input:focus,
.sheet textarea:focus,
.sheet select:focus {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
/* the footer action, pinned under the scrolling body */
.sheet .acts {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 12px var(--sxr) calc(env(safe-area-inset-bottom) + 12px) var(--sx);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.sheet .acts[hidden] {
  display: none;
}
.sheet .acts .btn {
  height: 48px;
}
.sheet .acts .btn.quiet {
  flex: none;
}
.sheet .acts .btn:last-child {
  flex: 1;
}

/* list rows: lead, title, subtitle, chevron. 60px rows, left-aligned like the rest of the chrome */
.slist {
  display: flex;
  flex-direction: column;
  margin: 0 -10px;
}
.sgrp {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  padding: 18px 10px 6px;
}
.srow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 14px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.srow + .srow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 64px;
  right: 10px;
  height: 1px;
  background: var(--line);
}
.srow:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
@media (hover: hover) {
  .srow:not(.is-static):hover {
    background: var(--well);
  }
  .srow:not(.is-static):hover::before,
  .srow:not(.is-static):hover + .srow::before {
    opacity: 0;
  }
}
.srow.is-static {
  cursor: default;
}
.srow .lead {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.srow .lead .av {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.tile {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--well);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.tile svg.ic {
  width: 22px;
  height: 22px;
}
.tile.on {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.tile .g {
  width: 18px;
  height: 18px;
}
.srow .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.srow .tx b,
.srow .tx small {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.srow .tx b {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
}
.srow .tx small {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--mute);
}
.srow.is-static .tx small {
  white-space: normal;
}
.srow .cv {
  width: 18px;
  height: 18px;
  color: var(--faint);
}
.srow .btn {
  flex: none;
}

/* a segmented choice (radio), a switch row, a time range */
.sseg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 14px;
  background: var(--well);
}
.sseg label {
  flex: 1;
  min-width: 0;
  position: relative;
}
.sheet .sseg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sseg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: var(--mute);
}
.sseg input:checked + span {
  background: var(--white);
  color: var(--ink);
  box-shadow:
    0 1px 2px #26213a14,
    0 0 0 1px var(--line);
}
.sseg input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.sw-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  margin-top: 14px;
  padding: 8px 0 2px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.sw-row .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sw-row b {
  font-weight: 500;
  font-size: 16px;
}
.sw-row small {
  font-size: 13px;
  line-height: 1.35;
  color: var(--mute);
}
.sw-row input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: 999px;
  background: var(--well-2);
  cursor: pointer;
  transition: background 0.2s;
}
.sw-row input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px #26213a33;
  transition: transform 0.35s var(--spring);
}
.sw-row input:checked {
  background: var(--green);
}
.sw-row input:checked::before {
  transform: translateX(20px);
}
.sw-row input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.srange {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  transition: opacity 0.2s;
}
.srange label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.srange.is-off {
  opacity: 0.45;
}
.sheet .steps {
  list-style: none;
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sheet .steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.3;
}
.sheet .steps li > i {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--well);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
}
.sheet .steps b {
  font-weight: 600;
}
.sheet .steps svg.ic {
  color: #0a84ff;
}
.sheet .stest {
  width: 100%;
  height: 48px;
  margin-top: 20px;
}
.sheet .stest:disabled {
  opacity: 0.5;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 14px);
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.35s var(--spring);
  z-index: 60;
  max-width: 90vw;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* login */
.login {
  position: fixed;
  padding: env(safe-area-inset-top) 32px 0;
  background: var(--paper);
  overflow-y: auto;
}
.login form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login .logo {
  color: var(--ink);
  margin-top: 150px;
}
.login .tok {
  color: var(--ink);
}
.login .tok input {
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  flex: 1;
  min-width: 0;
  color: var(--ink);
}
.login .tok.is-shake {
  animation: shake 0.45s var(--spring);
}
@keyframes shake {
  20% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(3px);
  }
}
.login .err {
  color: var(--coral-ink);
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
  margin-top: 10px;
}
.login .bal {
  top: 92px;
  transition:
    transform 0.42s var(--glide),
    opacity 0.42s;
}
.login .bal.is-up {
  transform: translate(66px, -40px);
  opacity: 0;
}
@media (display-mode: standalone) {
  .login .fine {
    display: none;
  }
}
/* doc page, people, misc pages */
.article {
  padding: 6px var(--gut) 0;
  font-size: 16px;
  line-height: 1.5;
}
.article h3 {
  font-size: 18px;
  margin: 18px 0 6px;
}
.article p {
  margin: 0 0 10px;
}
.article .meta {
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
}
.btnrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px var(--gut) 0;
}
.oldv {
  margin: 8px 0;
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
}
.sales-strip {
  margin: 18px var(--gut) 0;
  display: flex;
  gap: 8px;
}
.sales-strip a {
  flex: 1;
  background: var(--white);
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 10px 12px;
  min-width: 0;
}
.sales-strip b {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
}
.sales-strip span {
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
}
.sales-strip a.hot b {
  color: var(--coral-ink);
}
/* palette */
.pal-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.pal-wrap .scrim {
  position: fixed;
}
.pal {
  position: fixed;
  top: 12vh;
  max-width: calc(100vw - 32px);
}
.pal .in input {
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 18px;
  flex: 1;
  color: var(--ink);
  min-width: 0;
}
.pal .list {
  max-height: 56vh;
  overflow-y: auto;
}
.pal .it {
  cursor: pointer;
}
.pal .empty {
  padding: 14px 20px;
  text-align: left;
}

/* ================= desktop ================= */
@media (min-width: 1024px) {
  .app {
    display: grid;
    grid-template-columns: 76px 1fr;
    --tabs: 0px;
  }
  .tabbar {
    display: none;
  }
  .rail {
    display: flex;
  }
  .rail a,
  .rail .me {
    cursor: pointer;
  }
  .stage {
    position: relative;
    inset: auto;
    min-width: 0;
  }
  .scr {
    padding-top: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
  }
  .scr.flat {
    display: block;
    overflow-y: auto;
  }
  .scr.flat > .inner {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 30px;
  }
  .bar .search {
    cursor: text;
  }
  .toast {
    bottom: 24px;
  }
  dialog.sheet {
    --sh: min(720px, calc(100vh - 64px));
    --gut: 26px;
    margin: auto;
    border-radius: 22px;
    max-width: 520px;
  }
  dialog.sheet[open] {
    animation: pop 0.3s var(--spring);
  }
  .sheet .grab {
    display: none;
  }
  .sheet .sh {
    padding-top: 16px;
    padding-bottom: 8px;
    touch-action: auto;
  }
  .sheet .acts {
    justify-content: flex-end;
    padding-bottom: 16px;
  }
  .sheet .acts .btn:last-child {
    flex: none;
    min-width: 128px;
  }
  .dtalk.no-thread {
    grid-template-columns: 290px 1fr;
  }
  .dtalk .list .conv {
    cursor: pointer;
  }
  .dtalk .chan .body .day {
    align-self: center;
  }
  .dtalk .chan .body .msg.me {
    align-self: flex-end;
  }
  .dwork {
    position: relative;
  }
  .tpane {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px -30px #26213a55;
    overflow-y: auto;
    z-index: 5;
    animation: slide 0.32s var(--glide);
    padding-bottom: 24px;
  }
  .colm.is-over {
    outline: 2px dashed var(--coral);
    outline-offset: 4px;
    border-radius: 12px;
  }
  .colm.is-over .cH {
    color: var(--coral-ink);
  }
  .card[draggable="true"] {
    cursor: grab;
  }
  .colm .add input {
    border: 0;
    outline: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    flex: 1;
    color: var(--ink);
    min-width: 0;
  }
  .login .logo {
    margin-top: 16vh;
  }
  .login .bal {
    top: calc(16vh - 58px);
  }
}
@media (min-width: 1024px) and (max-width: 1100px) {
  .dlaunch .pgrid {
    grid-template-columns: 1fr;
  }
}
@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
}
@keyframes slide {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .dcard {
    flex-basis: min(calc(100% - 36px), 440px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.safe * {
  animation: none !important;
  transition: none !important;
}

/* ------------- Now v2: the pipe strip, the deck card kinds, Outside in Since ------------- */
.pipe {
  margin: 12px var(--gut) 0;
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-m);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pipe .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.pipe .row b {
  font-size: 17px;
  font-weight: 600;
  min-width: 0;
}
.pipe .row b em {
  font-style: normal;
  color: var(--coral-ink);
}
.pipe .row span {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  white-space: nowrap;
}
.pipe .win {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-top: 2px;
}
.pipe .win.shut {
  color: var(--mute);
}
.lanes {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 10px;
}
.lanes .ln {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  min-width: 0;
}
.lanes .ln i {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--well-2);
}
.lanes .ln.on i {
  background: var(--coral);
}
.lanes .ln.soft i {
  background: var(--coral-soft);
  box-shadow: inset 0 0 0 1.5px var(--coral);
}
.lanes .ln.done i {
  background: var(--green);
}
.lanes .ln b {
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
}
.lanes .ln span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dcard .kind {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}
.dcard .kind .tile {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--well);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  flex: none;
}
.dcard .kind .tile.coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.dcard .kind .tile.green {
  background: var(--green-soft);
  color: var(--green);
}
.dcard .kind .tile .ic {
  width: 16px;
  height: 16px;
}
.dcard .kind > span:not(.tile):not(.due) {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dcard .kind .due {
  flex: none;
  white-space: nowrap;
  margin-left: auto;
  color: var(--coral-ink);
  background: var(--coral-mist);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.dcard .quote {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--well);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.dcard .quote .ill {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 500;
  margin-top: 4px;
  text-align: left;
}
.dcard .acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.dcard .acts .chip {
  height: 36px;
  font-size: 15px;
  padding: 0 14px;
}
.dcard .acts .chip:disabled {
  opacity: 0.5;
}
.dcard .pins {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dcard .pins li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  min-width: 0;
}
.dcard .pins li > span:first-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dcard .pins li i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  flex: none;
}
.dcard .pins li .v {
  font-size: 12px;
  color: var(--mute);
  margin-left: auto;
  white-space: nowrap;
  flex: none;
}
.ev .m .h .src {
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  background: var(--well);
  border-radius: 6px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ev .m p .o-dr {
  color: var(--coral-ink);
  font-weight: 600;
}
.dcard[data-roomcard] .foot .write {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dcard[data-roomcard] .foot .link {
  flex: none;
  margin-left: 12px;
}

/* ================= task blocks (public/blocks.js, docs/TASK-BLOCKS.md) ================= */
.tb {
  padding: 4px var(--gut) 0;
}
.tb-md {
  padding: 14px 0 0;
  font-size: 16px;
  line-height: 1.45;
}
.tb-md p {
  margin: 0 0 8px;
}
.tb-md h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}
.tb-err {
  color: var(--red);
  font-size: 14px;
}
.tb input,
.tb textarea {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  padding: 10px 14px;
  color: var(--ink);
  outline: 0;
  line-height: 1.4;
}
.tb textarea {
  resize: vertical;
}
.tb input:focus,
.tb textarea:focus {
  box-shadow: inset 0 0 0 2px var(--coral);
}
.tb button:disabled {
  cursor: default;
}
.blk {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  border-radius: 2px;
}
.blk.is-flash {
  animation: blk-flash 1.1s var(--glide);
}
@keyframes blk-flash {
  0%,
  55% {
    box-shadow: 0 0 0 8px var(--coral-mist);
    background: var(--coral-mist);
  }
}
.blk-h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.blk-h b {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
}
.blk-h b:empty {
  display: none;
}
.blk-n {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--well);
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.blk-n.ok {
  background: var(--green-soft);
  color: var(--green);
}
.blk-o {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
}
.blk-hint {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mute);
}
.blk-empty {
  margin: 6px 0;
  font-size: 14px;
  color: var(--faint);
}
.blk.is-bad {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--red);
}
.tk {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.8px var(--line-2);
  color: transparent;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}
.tk.on {
  background: var(--green);
  box-shadow: none;
  color: #fff;
}
.tk svg.ic.xs {
  stroke-width: 2.8;
}

/* checklist */
.ck-l {
  margin-top: 6px;
}
.ck {
  border-bottom: 1px solid var(--line);
}
.ck:last-child {
  border-bottom: 0;
}
.ck-b {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  text-align: start;
  font-size: 16px;
  line-height: 1.35;
}
.ck.on .tx {
  color: var(--mute);
}
.ck-n {
  margin: -8px 0 10px;
  margin-inline-start: 38px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-ink);
}
.tb .ck-in,
.ck-ro {
  margin: -4px 0 10px;
  margin-inline-start: 38px;
  width: calc(100% - 38px);
}
.ck-ro {
  font-size: 14px;
  color: var(--ink-2);
}

/* list */
.lr-l {
  margin-top: 8px;
}
.lr {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  transition: transform 0.2s var(--spring);
}
.lr.is-drag {
  transform: scale(1.02);
  opacity: 0.9;
}
.grip {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 46px;
  color: var(--faint);
  cursor: grab;
  touch-action: none;
}
.grip svg.ic circle {
  fill: currentColor;
  stroke-width: 2.6;
}
.lr-i {
  flex: none;
  width: 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  text-align: center;
}
.lr-m {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lr-m > span {
  padding: 9px 0;
  font-size: 16px;
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
}
.lr-m img {
  align-self: flex-start;
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  object-fit: cover;
}
.lr-m audio {
  width: 100%;
  height: 40px;
}
.lr-x {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 46px;
  color: var(--mute);
}
.lr-add {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.tb .lr-add input {
  flex: 1;
  min-width: 0;
  background: var(--well);
}
.lr-mb {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--well);
}
.lr-mb.is-rec {
  background: var(--coral);
  color: #fff;
  animation: rec 1.2s ease-in-out infinite;
}
.lr-mb.is-rec svg.ic .mv {
  fill: #fff;
}
@keyframes rec {
  50% {
    opacity: 0.6;
  }
}
.lr-add .btn {
  flex: none;
  height: 44px;
}

/* rate */
.rt {
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.2s;
}
.rt.is-up {
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.rt.is-down {
  box-shadow: inset 0 0 0 1.5px var(--coral);
}
.rt-q {
  display: flex;
  gap: 10px;
}
.rt-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--well);
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
}
.rt-q .m {
  flex: 1;
  min-width: 0;
}
.rt-q b {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.rt-q blockquote {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--well);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.rt-a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-ink);
}
.rt-b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.rt-b button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 999px;
  line-height: 1.2;
  text-align: center;
  background: var(--well);
  font-size: 15px;
  font-weight: 600;
}
.rt-b .up.on {
  background: var(--green);
  color: #fff;
}
.rt-b .down.on {
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.thumb {
  font-size: 18px;
  line-height: 1;
}
.tb .rt-why {
  margin-top: 10px;
  min-height: 42px;
}
.rt-why.ro {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* choice */
.chs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.ch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  text-align: start;
  font-size: 16px;
}
.ch.on {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.mk {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.8px var(--line-2);
}
.chs.multi .mk {
  border-radius: 7px;
}
.ch.on .mk {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.tb .ch.other input {
  min-height: 50px;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* answer */
.tb .an {
  margin-top: 10px;
}
.an-ro {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* steps */
.stp {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.stp li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}
.stp li:last-child {
  border-bottom: 0;
}
.stp .num {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--well);
  font-size: 14px;
  font-weight: 600;
}
.stp li.on .num {
  background: var(--green);
  color: #fff;
}
.stp .tx {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
}
.stp li.on .tx {
  color: var(--mute);
}
.stp .btn {
  flex: none;
  gap: 5px;
}
.tkb {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
}

/* link */
.blk-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
}
.blk-link .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.blk-link b {
  font-size: 17px;
  font-weight: 600;
}
.blk-link small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  opacity: 0.72;
}
.blk-link.on {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.blk-link.on small {
  color: var(--green);
  opacity: 1;
}
[dir="rtl"] .blk-link > svg.ic {
  transform: scaleX(-1);
}

/* confirm */
.blk-ok {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  text-align: start;
  font-size: 17px;
}
.blk-ok.on {
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.tb .ok-n {
  margin-top: 8px;
}

/* the hand-in bar sticks to the bottom while the blocks are on screen */
.hand-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px calc(-1 * var(--gut)) 0;
  padding: 12px var(--gut);
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -18px #0006;
}
.hb-m {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.meter {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--well-2);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--coral);
  transform-origin: left;
  transition: transform 0.35s var(--glide);
}
[dir="rtl"] .meter i {
  transform-origin: right;
}
.hb-t {
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hand-bar .btn {
  flex: none;
  padding: 0 28px;
}
.hand-st {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--well);
}
.hand-st.done {
  background: var(--green-soft);
}
.hand-st.re {
  background: var(--coral-mist);
  color: var(--coral-ink);
}
.hand-st .m {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}
.hand-st b {
  font-size: 15px;
  font-weight: 600;
}
.hand-st span {
  font-size: 13px;
  color: var(--mute);
}
.hand-st p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.4;
}
.hand-st .btn {
  flex-basis: 100%;
}

/* ================= push on by default: the first-open card and the banner ================= */
.pcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 2px;
  text-align: center;
}
.pc-ic {
  display: grid;
  place-items: center;
  align-self: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--coral-soft);
  color: var(--coral-ink);
}
.pc-ic svg.ic {
  width: 34px;
  height: 34px;
}
.pc-t {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}
.pc-go {
  height: 54px;
  font-size: 17px;
}
.pc-f {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mute);
}
.pcard .steps {
  text-align: start;
}
.pushbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: calc(38px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gut) 0;
  background: var(--coral-mist);
  box-shadow: inset 0 env(safe-area-inset-top) 0 0 var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}
.pushbar svg.ic {
  color: var(--coral-ink);
}
.pushbar span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pushbar b {
  flex: none;
  color: var(--coral-ink);
  font-weight: 600;
}
.app.has-pushbar .stage {
  top: calc(38px + env(safe-area-inset-top));
}
.app.has-pushbar .scr {
  padding-top: 0;
}
@media (min-width: 1024px) {
  .app.has-pushbar {
    grid-template-rows: 38px 1fr;
  }
  .app.has-pushbar .rail {
    grid-row: 1 / 3;
    grid-column: 1;
  }
  .pushbar {
    position: relative;
    grid-row: 1;
    grid-column: 2;
    height: 38px;
    padding: 0 24px;
    background: var(--coral-mist);
  }
  .app.has-pushbar .stage {
    grid-row: 2;
    grid-column: 2;
    top: auto;
  }
}

/* ================= task feel: the focused top, the creator's preview, the chat-like rate, the cards ================= */
.tb .task-hero {
  padding: 6px 0 0;
}
.tf-goal {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
}
.tf-goal span {
  color: var(--mute);
  font-weight: 600;
}
.tf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
}
.tf-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tf-meta .soon {
  color: var(--coral-ink);
}
.tf-meta .sep {
  font-style: normal;
  color: var(--faint);
}
.tf-p {
  margin-top: 14px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tf-n {
  font-size: 15px;
  font-weight: 500;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.tf-n b {
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  color: var(--ink);
}
.meter.big {
  height: 10px;
  margin-top: 10px;
}
.tf-p.full .meter i,
.tp.full .meter i {
  background: var(--green);
}
.tf-who {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tf-who > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tf-who b {
  font-size: 15px;
  font-weight: 600;
}
.tf-who span {
  font-size: 13px;
  color: var(--mute);
}
/* read-only: the controls stay, greyed; the owner's answers keep their colour */
.tb.is-ro button:disabled:not(.on),
.tb.is-ro input:disabled,
.tb.is-ro .lr-add {
  opacity: 0.5;
}
/* rate with a quote: the question in, the answer out, like the chat it came from */
.rt.has-q {
  display: flex;
  flex-direction: column;
}
.rt-ask {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.bub {
  margin: 0;
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bub.in {
  background: var(--well);
  border-end-start-radius: 6px;
  font-weight: 500;
}
.bub.out {
  align-self: flex-end;
  margin-top: 8px;
  background: var(--green-soft);
  color: var(--ink);
  border-end-end-radius: 6px;
}
.bub a {
  color: var(--coral-ink);
  text-decoration: underline;
}
.rt.has-q .rt-a {
  align-self: flex-end;
}
/* the hand-in bar: opaque, never over a field being typed in, and the screen scrolls clear of it */
.tb:has(input:focus, textarea:focus) .hand-bar {
  position: static;
}
.scr:has(.hand-bar),
.tpane:has(.hand-bar) {
  scroll-padding-bottom: 110px;
}
.hb-m {
  font: inherit;
  color: inherit;
  text-align: start;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}
.hb-m.is-view {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.hand-bar.is-view .hb-t {
  color: var(--ink-2);
}
.hand-bar .btn.is-off {
  background: var(--well-2);
  color: var(--mute);
  box-shadow: none;
}
.is-flash {
  animation: blk-flash 1.1s var(--glide);
}
.hand-st .btn.coral {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.hand-st .nt {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  opacity: 0.85;
}
.hs-last {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
/* status, facts and history fold under a block task */
.tmore {
  margin: 22px var(--gut) 0;
  border-top: 1px solid var(--line);
}
.tmore > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.tmore > summary::-webkit-details-marker {
  display: none;
}
.tmore > summary .g {
  width: 14px;
  height: 14px;
}
.tmore .tm-k {
  margin-inline-start: auto;
  font-weight: 500;
  color: var(--mute);
}
.tmore[open] > summary svg.ic {
  transform: rotate(90deg);
}
.tmore .stline,
.tmore .facts,
.tmore .fields,
.tmore .acts-row {
  padding-inline: 0;
}
.tmore .stline {
  padding-top: 2px;
}
/* the balloon on Hand in */
.cele {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--ink);
}
.cele svg {
  grid-area: 1 / 1;
  width: 72px;
  height: 108px;
  animation: cele-rise 1.8s cubic-bezier(0.3, 0.6, 0.4, 1) forwards;
}
.cele b {
  grid-area: 1 / 1;
  margin-top: 150px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  animation: cele-pop 1.8s var(--spring) forwards;
}
@keyframes cele-rise {
  0% {
    transform: translateY(30vh) rotate(-4deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateY(-4vh) rotate(4deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-60vh) rotate(-3deg);
    opacity: 0;
  }
}
@keyframes cele-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  15%,
  75% {
    transform: none;
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cele-fade {
  0%,
  100% {
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
}
.cele.still svg,
.cele.still b {
  animation: cele-fade 1.4s linear forwards;
}
@media (prefers-reduced-motion: reduce) {
  .cele svg,
  .cele b {
    animation: cele-fade 1.4s linear forwards;
  }
}
/* task rows and board cards: progress, time left, New */
.tp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}
.tp .meter {
  flex: none;
  width: 64px;
  height: 5px;
}
.card .tp {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  margin: 8px 0 2px;
}
.card .tp .meter {
  width: 100%;
}
.row-t.has-p {
  height: auto;
  min-height: 54px;
  padding-block: 10px;
}
.pill.new {
  background: var(--coral);
  color: #fff;
  font-weight: 600;
}
.prow .wk {
  color: var(--ink-2);
  font-weight: 500;
}
.prow .wk.none {
  color: var(--faint);
}
.row-t .m .tp {
  display: flex;
  margin-top: 6px;
}
.row-t .m .tp > span {
  margin: 0;
}
