/* Sunday, the board: two lines of pegged cards on a pale Sunday sky, and Sunday to talk to on the right. */
.app { background: var(--air); }
.app ::selection { background: var(--sun); }

/* ---------- signing in ---------- */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 60px 16px; background: var(--sky); }
.gate-line { position: relative; width: min(560px, 100%); padding-top: 26px; }
.gate-line .rope { top: 0; left: -40vw; right: -40vw; }
.gate-card { padding: 34px 30px 30px; display: grid; gap: 20px; rotate: -0.8deg; }
.gate-card .brand { font-size: 20px; }
.signin { display: grid; gap: 14px; }
.signin h2 { font-size: 30px; letter-spacing: -0.035em; }
.signin .soft { color: var(--ink-2); }
.signin form { display: grid; gap: 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }

/* ---------- the shell ---------- */
.shell { height: 100svh; display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 12px 18px 10px; }
.bar .brand { font-size: 20px; }
.bar .brand svg { width: 30px; height: 30px; }
.spacepick, .me { position: relative; }
.space-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 16px; border-radius: 999px; border: 0; background: var(--paper); font-weight: 750; font-size: 16px; box-shadow: 0 2px 0 rgba(27, 42, 74, 0.08); max-width: 280px; }
.space-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-btn svg { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.filters { display: flex; gap: 6px; margin-left: 6px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 2px solid transparent; background: transparent; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.chip:hover { background: rgba(255, 255, 255, 0.7); }
.chip.on { background: var(--ink); color: #fff; }
.bar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.people { display: flex; padding-left: 8px; }
.people .dot { margin-left: -8px; }
.people .more { background: var(--ink-3); }
.btn.icon svg { width: 18px; height: 18px; }
.dot.big { width: 36px; height: 36px; font-size: 14px; border: 0; }

.menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 250px; max-width: 320px; padding: 8px; background: var(--paper); border-radius: 18px; box-shadow: 0 20px 44px -16px rgba(27, 42, 74, 0.45); display: grid; gap: 2px; }
.menu.end { left: auto; right: 0; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; background: none; text-align: left; font-weight: 600; font-size: 15px; text-decoration: none; }
.menu button:hover, .menu a:hover, .menu button:focus-visible { background: var(--air); }
.menu .cur { background: var(--air); }
.menu small { margin-left: auto; color: var(--ink-3); font-weight: 600; font-size: 13px; white-space: nowrap; }
.menu hr { border: 0; height: 2px; background: var(--air); margin: 4px 6px; }
.menu .who { display: flex; align-items: center; gap: 12px; padding: 10px 12px 8px; min-width: 0; }
.menu .who .dot { width: 40px; height: 40px; font-size: 16px; box-shadow: none; }
.menu .who div { display: grid; min-width: 0; line-height: 1.25; }
.menu .who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .who span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memenu { width: 280px; }
.menu .mi svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.menu .mi.out { color: var(--danger); }
.menu .mi.out svg { color: var(--danger); }

/* ---------- the board: two lines ---------- */
.board { grid-column: 2; grid-row: 2; overflow-y: auto; scrollbar-width: none; padding: 18px clamp(16px, 2.4vw, 34px) 120px; scroll-padding: 80px; }
.line { position: relative; margin-bottom: 26px; }
.lname { display: flex; align-items: baseline; gap: 10px; font-size: 30px; font-weight: 850; letter-spacing: -0.035em; margin: 0 0 12px 2px; }
.lname .count { font-size: 15px; font-weight: 750; letter-spacing: 0; color: var(--ink-3); }
.line.done .lname { color: var(--grass-deep); }

/* each row of cards hangs on its own rope; the tile is one row: card (128) + gap (36) */
.cards { --row: 164px; position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); grid-auto-rows: 128px; gap: 36px 18px; padding-top: 22px; min-height: calc(var(--row) - 14px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 164' preserveAspectRatio='none'%3E%3Cpath d='M0 9 Q50 25 100 9' fill='none' stroke='%231b2a4a' stroke-opacity='.12' stroke-width='3' vector-effect='non-scaling-stroke' transform='translate(0 5)'/%3E%3Cpath d='M0 9 Q50 25 100 9' fill='none' stroke='%238b6a46' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% var(--row); background-repeat: repeat-y; background-position: 0 0; }
.line.done .cards { grid-auto-rows: 110px; --row: 146px; }

.tcard { position: relative; height: 100%; min-width: 0; padding: 17px 14px 12px; display: flex; flex-direction: column; gap: 8px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  translate: 0 var(--sag, 0px); rotate: var(--tilt, 0deg); transition: rotate 0.45s var(--ease-spring), translate 0.45s var(--ease-spring), box-shadow 0.2s; outline: none; }
.tcard:hover, .tcard:focus-visible { rotate: 0deg; }
.tcard:focus-visible { box-shadow: 0 0 0 3px var(--sun-deep), var(--shadow-hang); }
.tcard .n { font-weight: 650; color: var(--ink-3); }
.tcard .t { padding-right: 30px; font-size: 16px; font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tcard .foot { margin-top: auto; display: flex; align-items: center; gap: 8px; min-height: 26px; min-width: 0; }
.tcard .foot .dot { margin-left: auto; width: 24px; height: 24px; font-size: 11px; }
.tcard .note { width: 16px; height: 16px; color: var(--ink-3); }
.tcard .via { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.tick { position: absolute; top: 12px; right: 11px; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2.5px solid var(--line); background: var(--paper); display: grid; place-items: center; color: transparent; transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.2s var(--ease-spring); }
.tick svg { width: 15px; height: 15px; }
.tick:hover { border-color: var(--grass); color: var(--grass); transform: scale(1.08); }
.tcard .via { white-space: nowrap; }
.tcard.dn .tick { background: var(--grass); border-color: var(--grass); color: #fff; }
.tcard.dn .tick:hover { background: var(--paper); color: var(--ink-2); border-color: var(--ink-3); }
.tcard.dn .t { color: var(--ink-2); -webkit-line-clamp: 2; font-size: 15px; }
.tcard.dn { padding-top: 15px; }
.tcard.dn .when { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.tcard.hide { display: none; }
.tcard.fresh { animation: fresh 1.4s ease; }
@keyframes fresh { 0%, 100% { box-shadow: var(--shadow-hang); } 25%, 65% { box-shadow: 0 0 0 4px var(--sun), var(--shadow-hang); } }

/* the blank card at the front of the to-do line */
.addcard { position: relative; height: 100%; border-radius: var(--radius-paper); border: 2.5px dashed rgba(27, 42, 74, 0.22); background: rgba(255, 255, 255, 0.45); display: flex; flex-direction: column; padding: 14px; translate: 0 var(--sag, 0px); transition: background 0.15s, border-color 0.15s; }
.addcard:hover { background: rgba(255, 255, 255, 0.8); }
.addcard .open { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; font-weight: 750; font-size: 16px; color: var(--ink-2); }
.addcard .open svg { width: 20px; height: 20px; }
.addcard.on { border-style: solid; border-color: var(--ink); background: var(--paper); box-shadow: var(--shadow-hang); }
.addcard textarea { flex: 1; width: 100%; border: 0; resize: none; outline: none; background: none; font-size: 16px; font-weight: 700; line-height: 1.22; padding: 0; }
.addcard textarea::placeholder { color: var(--ink-3); font-weight: 600; }
.addcard .opts { display: flex; gap: 6px; align-items: center; }
.addcard .opts button { height: 26px; padding: 0 10px; border-radius: 999px; border: 2px solid var(--line); background: none; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.addcard .opts .hint { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 600; }

.empty { grid-column: 1 / -1; align-self: center; padding: 18px 4px; color: var(--ink-2); font-size: 16px; font-weight: 500; }
.line.done .empty { color: var(--ink-3); }
.more { margin: 4px 0 0 2px; }

/* dragging: the card leaves the rope and follows the hand */
.ghost { position: fixed; z-index: 60; pointer-events: none; rotate: 4deg; box-shadow: 0 30px 40px -20px rgba(27, 42, 74, 0.6); transition: none; translate: none; }
.tcard.lifted { opacity: 0.25; }
.drop-mark { width: 6px; border-radius: 6px; background: var(--sun-deep); position: absolute; z-index: 5; pointer-events: none; transition: left 0.12s, top 0.12s; }

/* ---------- Sunday, the chat ---------- */
.chat { grid-column: 1; grid-row: 2; margin: 4px 0 16px 16px; background: var(--paper); border-radius: 26px; box-shadow: 0 24px 50px -28px rgba(27, 42, 74, 0.5); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px; border-bottom: 2px solid var(--air); }
.chat-grab, .chat-close { display: none; }
.sunface { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--sun); }
.sunface::before, .sunface::after { content: ''; position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 3px; background: var(--ink); }
.sunface::before { top: 22px; } .sunface::after { top: 28px; left: 10px; right: 10px; }
.sunface.busy { animation: think 1.6s ease-in-out infinite; }
@keyframes think { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 197, 49, 0.6); } 50% { box-shadow: 0 0 0 9px rgba(255, 197, 49, 0); } }
.chat-head .who { display: grid; line-height: 1.2; flex: 1; min-width: 0; }
.chat-head .who b { font-size: 17px; }
.chat-head .who span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .link.small { font-size: 13.5px; }

.msgs { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.hello { margin: auto 0 0; display: grid; gap: 12px; padding: 4px 2px; }
.hello h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; }
.hello p { color: var(--ink-2); font-size: 15px; }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; }
.sugs button { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 650; text-align: left; transition: border-color 0.15s, transform 0.2s var(--ease-spring); }
.sugs button:hover { border-color: var(--ink); transform: translateY(-1px); }
.m { max-width: 90%; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.m.me { align-self: flex-end; background: var(--ink); color: #fff; padding: 10px 15px; border-radius: 18px 18px 4px 18px; white-space: pre-wrap; }
.m.it { align-self: stretch; max-width: 100%; min-width: 0; padding: 2px 4px; }
.m.it .txt p { margin: 0 0 8px; } .m.it .txt p:last-child { margin: 0; }
.m.it .txt ul, .m.it .txt ol { margin: 4px 0 8px; padding-left: 20px; }
.m.it .txt code { font-family: var(--mono); font-size: 13.5px; background: var(--air); padding: 1px 5px; border-radius: 5px; }
.m.it.undone { opacity: 0.5; }
.caret::after { content: ''; display: inline-block; width: 8px; height: 16px; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: var(--sun-deep); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.working { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--air); }
.working i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun-deep); animation: hop 1s ease-in-out infinite; }
.working i:nth-child(2) { animation-delay: 0.15s; } .working i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hop { 0%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }
.rcpts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.rcpts li { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 12px; background: var(--air); font-weight: 650; font-size: 14.5px; animation: rin 0.45s var(--ease-spring); }
.rcpts li button { all: unset; flex: 1; min-width: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcpts li button:hover { text-decoration: underline; }
@keyframes rin { from { transform: translateY(6px) scale(0.96); opacity: 0; } }
.ico { width: 22px; height: 22px; border-radius: 50%; flex: none; position: relative; background: var(--ink); }
.ico::before, .ico::after { content: ''; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; translate: -50% -50%; }
.ico.add::before { width: 10px; height: 2.5px; } .ico.add::after { width: 2.5px; height: 10px; }
.ico.done { background: var(--grass); }
.ico.done::before { width: 9px; height: 5px; background: none; border: solid #fff; border-width: 0 0 2.5px 2.5px; border-radius: 0; translate: -50% -70%; rotate: -45deg; } .ico.done::after { display: none; }
.ico.edit { background: var(--sun-deep); } .ico.edit::before { width: 10px; height: 2.5px; rotate: -45deg; } .ico.edit::after { display: none; }
.ico.todo { background: var(--dev); } .ico.todo::before { width: 8px; height: 8px; background: none; border: solid #fff; border-width: 2.5px 0 0 2.5px; border-radius: 0; translate: -35% -50%; rotate: -45deg; } .ico.todo::after { display: none; }
.ico.delete { background: var(--danger); } .ico.delete::before { width: 10px; height: 2.5px; rotate: 45deg; } .ico.delete::after { width: 10px; height: 2.5px; rotate: -45deg; }
.undo { margin-top: 6px; font-size: 13.5px; }
.m.err { color: var(--danger); font-weight: 600; font-size: 14.5px; }

.compose { display: flex; align-items: flex-end; gap: 8px; margin: 8px 12px 12px; padding: 7px 7px 7px 16px; border-radius: 26px; background: var(--air); border: 2px solid transparent; transition: border-color 0.15s, background 0.15s; }
.compose:focus-within { border-color: var(--ink); background: var(--paper); }
.compose textarea { flex: 1; min-width: 0; border: 0; outline: none; background: none; resize: none; font-size: 16px; line-height: 1.4; padding: 8px 0; max-height: 160px; }
.compose textarea::placeholder { color: var(--ink-3); }
.send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; transition: transform 0.2s var(--ease-spring), opacity 0.15s; }
.send svg { width: 21px; height: 21px; }
.send:hover { transform: scale(1.06); }
.send[disabled] { opacity: 0.5; }

/* ---------- the sheet (a card pegged over the board) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 34px 16px 16px; background: rgba(27, 42, 74, 0.38); animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet-card { width: min(520px, 100%); max-height: calc(100svh - 60px); overflow-y: auto; padding: 30px 26px 24px; animation: drop 0.55s var(--ease-spring); }
.sheet-card .peg { top: -12px; }
@keyframes drop { from { transform: translateY(-40px) rotate(-3deg); opacity: 0; } }
.sheet-card .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--air); display: grid; place-items: center; }
.sheet-card .x svg { width: 18px; height: 18px; }
.sheet-card h2 { font-size: 26px; letter-spacing: -0.03em; padding-right: 40px; }
.sheet-card .sub { margin-top: 8px; color: var(--ink-2); }
.sheet-card form, .sheet-card .stack { display: grid; gap: 14px; margin-top: 20px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { height: 38px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.seg button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg .newlabel { height: 38px; width: 130px; padding: 0 14px; border-radius: 999px; border: 2px dashed var(--line); background: var(--paper); font-weight: 700; font-size: 14.5px; outline: none; }
.seg .newlabel:focus { border-style: solid; border-color: var(--ink); }
.edit-title { width: 100%; border: 0; outline: none; resize: none; font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; padding: 0; background: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.row-actions .link.danger { color: var(--danger); margin-left: auto; }
.meta { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.plist { display: grid; gap: 4px; }
.plist .p { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 2px solid var(--air); }
.plist .p:last-child { border: 0; }
.plist .p .nm { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.plist .p .nm b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .p .nm span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .p .role { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.priceline { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--sun); font-weight: 650; }
.priceline b { font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.copybox { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--air); }
.copybox code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps { display: grid; gap: 14px; }
.steps h3 { font-size: 16px; letter-spacing: -0.01em; }
.steps p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.warn { padding: 10px 14px; border-radius: 12px; background: var(--mkt-tint); color: #8f1d45; font-size: 14px; font-weight: 600; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 70; right: 18px; bottom: 18px; justify-items: end; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 36px)); padding: 11px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 14px 30px -14px rgba(27, 42, 74, 0.7); animation: tin 0.4s var(--ease-spring); }
.toast button { all: unset; cursor: pointer; color: var(--sun); font-weight: 750; margin-left: 6px; }
@keyframes tin { from { transform: translateY(14px); opacity: 0; } }

/* ---------- narrower ---------- */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 360px minmax(0, 1fr); }
  #claudeBtn span { display: none; }
  #claudeBtn { width: 36px; padding: 0; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr); }
  .bar { flex-wrap: wrap; gap: 10px; padding: 10px 14px 4px; }
  .bar .brand span { display: none; }
  .filters { order: 5; width: 100%; margin: 0; overflow-x: auto; }
  .board { grid-column: 1; grid-row: 3; padding: 10px 14px 140px; }
  .people { display: none; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 34px 12px; grid-auto-rows: 124px; --row: 158px; }
  .line.done .cards { grid-auto-rows: 104px; --row: 138px; }
  .tcard { padding: 15px 11px 10px; }
  .tick { top: 10px; right: 9px; width: 26px; height: 26px; }
  .tcard .t { font-size: 15px; }
  .lname { font-size: 26px; }
  /* the chat is a sheet that rises from the bottom */
  .chat { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin: 0; height: 88svh; border-radius: 26px 26px 0 0; translate: 0 calc(100% - 132px); transition: translate 0.45s var(--ease-spring); box-shadow: 0 -10px 40px -18px rgba(27, 42, 74, 0.5); padding-bottom: env(safe-area-inset-bottom); }
  .chat.open { translate: 0 0; }
  .chat-grab { display: block; position: absolute; top: 0; left: 0; right: 0; height: 64px; border: 0; background: none; z-index: 1; }
  .chat-grab::before { content: none; }
  .chat.open .chat-grab { display: none; }
  .chat-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--air); }
  .chat:not(.open) .chat-close, .chat:not(.open) .chatpick, .chat:not(.open) #chatNew { display: none; }
  .chat-close svg { width: 16px; height: 16px; }
  .chat .msgs { order: 3; }
  .chat .compose { order: 2; }
  .chat.open .msgs { order: 2; }
  .chat.open .compose { order: 3; }
  .chat:not(.open) .msgs { visibility: hidden; }
  .toasts { bottom: 150px; left: 14px; right: 14px; justify-items: start; }
}
@media (max-width: 420px) {
  .space-btn { max-width: 170px; }
  #inviteBtn { padding: 0 12px; }
}

/* a big board: smaller cards, more to a rope, the same two lines */
.board.many .line.todo .cards { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-auto-rows: 96px; gap: 30px 14px; --row: 126px; }
.board.many .line.todo .tcard { padding: 14px 12px 9px; gap: 6px; }
.board.many .line.todo .tcard .t { font-size: 14.5px; -webkit-line-clamp: 2; }
.board.many .line.todo .tick { top: 9px; right: 9px; width: 24px; height: 24px; }
.board.many .line.todo .addcard { padding: 10px; }
.board.many .line.todo .addcard .open { font-size: 15px; }
.board.many .line.done .cards { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-auto-rows: 84px; gap: 30px 14px; --row: 114px; }
.board.many .line.done .tcard { padding: 13px 12px 8px; gap: 4px; }
.board.many .line.done .tcard .t { font-size: 14px; -webkit-line-clamp: 1; }
@media (max-width: 860px) {
  .board.many .line.todo .cards, .board.many .line.done .cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 10px; }
}

/* no scrollbars: the board and the chat scroll without the grey bar */
.board::-webkit-scrollbar, .msgs::-webkit-scrollbar, .menu::-webkit-scrollbar { display: none; }
.menu { scrollbar-width: none; }

/* the chat's own controls: your chats, a new one */
.chatpick { position: relative; }
.iconbtn { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--air); color: var(--ink); display: grid; place-items: center; transition: background 0.15s, transform 0.2s var(--ease-spring); }
.iconbtn:hover { background: #dcecf6; transform: scale(1.05); }
.iconbtn svg { width: 18px; height: 18px; }
.chatmenu { width: 300px; max-height: 60vh; overflow-y: auto; }
.chatmenu .row { display: flex; align-items: center; gap: 4px; border-radius: 11px; }
.chatmenu .row:hover, .chatmenu .row.cur { background: var(--air); }
.chatmenu .row > button:first-child { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 11px; }
.chatmenu .row > button:first-child b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatmenu .row > button:first-child span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.chatmenu .row .del { width: 30px; height: 30px; margin-right: 4px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); display: grid; place-items: center; opacity: 0; }
.chatmenu .row:hover .del, .chatmenu .row .del:focus-visible { opacity: 1; }
.chatmenu .row .del:hover { background: #fff; color: var(--danger); }
.chatmenu .row .del svg { width: 14px; height: 14px; }
.chatmenu .none { padding: 10px 12px; color: var(--ink-3); font-size: 14px; }
.chatmenu .newrow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; background: none; font-weight: 750; font-size: 15px; text-align: left; }
.chatmenu .newrow:hover { background: var(--air); }
