@font-face { font-family: Manrope; src: url('/fonts/manrope-400.ttf') format('truetype'); font-weight: 400; font-display: swap; } /* deslop-ignore 33 */
@font-face { font-family: Manrope; src: url('/fonts/manrope-800.ttf') format('truetype'); font-weight: 800; font-display: swap; } /* deslop-ignore 33 */

:root {
  --night: #121016;
  --deep: #1b1830;
  --paper: #f3efe6;
  --paper-2: #e9e3d6;
  --ink: #2a1c19;
  --muted: #8b8499;
  --muted-ink: #8a7f78;
  --lav: #a99bff;
  --lav-ink: #6550b5;
  --lav-soft: rgba(169, 155, 255, 0.16);
  --red: #ff7a6b;
  --green: #4fc28a;
  --line: rgba(255, 255, 255, .07);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --panel-w: 460px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font: 400 15px/1.35 Manrope, system-ui, sans-serif;
  color: #f5f5f8;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent 60%), /* deslop-ignore 06 */
    radial-gradient(1px 1px at 78% 8%, rgba(255,255,255,.45), transparent 60%), /* deslop-ignore 06 */
    radial-gradient(1.5px 1.5px at 62% 34%, rgba(255,255,255,.35), transparent 60%), /* deslop-ignore 06 */
    radial-gradient(1px 1px at 30% 62%, rgba(255,255,255,.3), transparent 60%), /* deslop-ignore 06 */
    radial-gradient(1px 1px at 90% 72%, rgba(255,255,255,.35), transparent 60%), /* deslop-ignore 06 */
    var(--night);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
button, select { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.muted { color: var(--muted); }

.app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.side { flex: none; }
.main { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 6px; padding: 10px 18px 4px 6px; }
#osha { width: 112px; height: 112px; flex: none; }
.hello { flex: 1; min-width: 0; }
.kicker { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lav); } /* deslop-ignore 10 */
h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { margin: 4px 0 8px; color: #bdb6cc; font-size: 13px; }
.meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lav-ink), var(--lav)); transition: width .6s cubic-bezier(.2,.8,.2,1); } /* deslop-ignore 26 */

/* ---------- views: chips on phones, sidebar on desktop ---------- */
.views { display: flex; gap: 6px; padding: 6px 16px 0; overflow-x: auto; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.view {
  flex: none; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; font-weight: 800; font-size: 13px;
  color: #cfc8de; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: background .15s, color .15s;
}
.view.on { color: var(--night); background: var(--paper); border-color: var(--paper); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lav); display: inline-grid; place-items: center; } /* deslop-ignore 19 */
.dot.me { background: linear-gradient(135deg, var(--lav), #ff9ec4); }
.dot.plus { background: none; width: auto; height: auto; font-size: 15px; line-height: 1; color: var(--lav); }
.view.add { border-style: dashed; color: var(--lav); background: none; }
.v-count { font-size: 11px; opacity: .7; }
.v-count:empty { display: none; }
.v-head, .v-bar, .archive { display: none; }
.side-foot { display: none; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 16px 0; flex-wrap: wrap; }
.tb-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-title h2, .tb-hint { display: none; }
.tb-title h2 { margin: 0; font-size: 20px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; align-items: center; gap: 9px; }
.tb-title h2 small { font-size: 12px; color: var(--muted); font-weight: 800; }
.tb-team { display: flex; padding-left: 6px; }
.tb-team .face { border-color: var(--night); }
.tb-team .more { margin-left: 4px; font-size: 12px; color: var(--muted); align-self: center; }
.tb-filters { display: none; }
.soft {
  padding: 8px 12px; border-radius: 11px; font-weight: 800; font-size: 13px; background: var(--lav-soft); color: var(--lav);
  transition: background .15s, transform .15s;
}
.soft:active { transform: scale(.96); }
.icon-btn { width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.06); font-size: 16px; }
.icon-btn:disabled { opacity: .35; }

/* ---------- tabs & board ---------- */
.tabs { display: flex; gap: 5px; padding: 12px 16px 8px; }
.tabs button {
  flex: 1; min-width: 0; padding: 9px 2px; border-radius: 12px; font-weight: 800; font-size: 12.5px; color: #bdb6cc;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); transition: .2s; white-space: nowrap;
}
.tabs button b { display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 1px; border-radius: 9px; background: rgba(255,255,255,.08); font-size: 10.5px; }
.tabs button.on { color: var(--night); background: var(--lav); border-color: var(--lav); }
.tabs button.on b { background: rgba(18,16,22,.18); }

.board {
  flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.board::-webkit-scrollbar { display: none; }
.col { flex: 0 0 100%; scroll-snap-align: start; overflow-y: auto; padding: 4px 16px calc(96px + var(--safe-b)); overscroll-behavior-y: contain; }
.col h3, .col .add { display: none; }
.col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-height: 40px; }

@media (min-width: 720px) {
  .tabs { display: none; }
  .board { gap: 12px; padding: 8px 16px 0; scroll-snap-type: none; }
  .col { flex: 1 1 0; min-width: 0; padding: 12px 10px 110px; border-radius: 18px; background: rgba(255,255,255,.03); transition: background .15s; }
  .col h3 { display: flex; align-items: center; gap: 8px; margin: 0 4px 12px; font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lav); }
  .col h3 b { font-size: 11px; color: var(--muted); letter-spacing: 0; }
  .col[data-col="review"] h3 { color: #ffd36e; }
  .col[data-col="done"] h3 { color: var(--green); }
}

/* ---------- cards ---------- */
.card {
  position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px 12px 12px;
  color: var(--ink); background: var(--paper); border-radius: 16px 14px 17px 13px;
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 8px 20px -12px rgba(0,0,0,.7);
  transform: rotate(var(--tilt, 0deg)); transition: transform .25s, opacity .25s, box-shadow .2s;
  cursor: pointer;
}
.card.enter { animation: pop .2s ease-out both; }
.card::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pc, transparent); }
.card.p1 { --pc: #7cc4ff; }
.card.p2 { --pc: #ffb547; }
.card.p3 { --pc: #ff6b5b; }
.card:active { transform: rotate(var(--tilt, 0deg)) scale(.98); }
.card.done { background: var(--paper-2); }
.card.done .title { color: #8a8076; text-decoration: line-through; text-decoration-color: var(--lav-ink); text-decoration-thickness: 2px; } /* deslop-ignore 09 */
.card.leaving { opacity: 0; transform: translateX(40px) rotate(4deg); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.check {
  flex: none; width: 30px; height: 30px; margin-top: -2px; border-radius: 50%; /* deslop-ignore 19 */
  border: 2.5px solid var(--ink); background: #fff; display: grid; place-items: center; transition: .2s;
}
.check::after { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); transform: scale(0); transition: transform .15s ease-out; } /* deslop-ignore 19 */
.card.done .check { background: var(--lav); }
.card.done .check::after { transform: scale(1); }
.body { flex: 1; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tag { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--c, #ddd); color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.proj { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.title { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.3; word-break: break-word; }
.notes { margin: 3px 0 0; font-size: 13px; color: #6f6560; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.pill { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: rgba(101, 80, 181, .12); color: var(--lav-ink); }
.pill.late { background: rgba(255, 122, 107, .18); color: #c44536; }
.pill.bell { background: rgba(255, 211, 110, .35); color: #7a5500; }
.pill.prio.p3 { background: #ff6b5b; color: #fff; }
.pill.prio.p2 { background: rgba(255, 181, 71, .3); color: #8a5300; }
.count { font-size: 11.5px; font-weight: 800; color: #7b706a; }
.count.full { color: #2f8a5c; }
.subbar { height: 4px; margin-top: 9px; border-radius: 4px; background: rgba(42,28,25,.08); overflow: hidden; }
.subbar i { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .4s; } /* deslop-ignore 26 */
.faces { display: flex; margin-left: auto; padding-left: 6px; }
.face {
  flex: none; width: 24px; height: 24px; border-radius: 50%; margin-left: -6px; display: inline-grid; place-items: center; /* deslop-ignore 19 */
  font-size: 10px; font-weight: 800; color: #fff; border: 2px solid var(--paper); font-style: normal;
}
.face.mini { width: 20px; height: 20px; font-size: 8.5px; margin: 0; border: 0; }

.card.shareable { padding-right: 46px; }
.share-btn {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; color: var(--lav-ink); background: rgba(101, 80, 181, .1); transition: .15s;
}
.share-btn:active { transform: scale(.9); background: rgba(101, 80, 181, .22); }
.share-btn svg { width: 18px; height: 18px; }

.empty { text-align: center; color: var(--muted); padding: 34px 20px; font-size: 14px; list-style: none; }
.empty b { display: block; color: #d9d3e6; font-size: 16px; margin-bottom: 4px; }

.card.placeholder { opacity: .3; }
.card.ghost { position: fixed; margin: 0; z-index: 50; pointer-events: none; box-shadow: 0 24px 50px -12px rgba(0,0,0,.8); transition: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
.col.over { background: rgba(169,155,255,.09); }

/* ---------- fab ---------- */
.fab {
  position: fixed; right: 18px; bottom: calc(20px + var(--safe-b)); width: 64px; height: 64px; border-radius: 50%; /* deslop-ignore 19 */
  background: var(--lav); border: 3px solid var(--ink); box-shadow: 0 10px 26px -8px rgba(169,155,255,.7), inset 0 -4px 0 rgba(0,0,0,.12);
  display: grid; place-items: center; transition: transform .2s; z-index: 5;
}
.fab span { font-size: 38px; font-weight: 800; line-height: 1; color: var(--ink); margin-top: -3px; }
.fab:active { transform: scale(.92) rotate(90deg); }

/* ---------- sheets: modal + task panel on phones ---------- */
.sheet-wrap, .panel-wrap { position: fixed; inset: 0; z-index: 10; }
.sheet-wrap { z-index: 12; }
.scrim { position: absolute; inset: 0; background: rgba(8, 6, 14, .6); animation: fade .2s both; }
.sheet, .panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 18px calc(18px + var(--safe-b)); border-radius: 16px 16px 0 0;
  background: var(--paper); color: var(--ink); animation: up .3s cubic-bezier(.2,.9,.3,1) both;
  user-select: text; -webkit-user-select: text;
}
@media (min-width: 720px) {
  .sheet, .panel { left: 50%; width: 560px; margin-left: -280px; bottom: 24px; max-height: calc(100% - 48px); border-radius: 16px; }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.grab { width: 44px; height: 5px; border-radius: 5px; background: rgba(42,28,25,.2); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(42,28,25,.08); font-size: 14px; } /* deslop-ignore 19 */

textarea, .inline-input, .big-input, .link-form input, .row input, .chip-input {
  width: 100%; resize: none; font: inherit; color: var(--ink); background: #fff; border: 2px solid rgba(42,28,25,.14);
  border-radius: 14px; padding: 11px 13px; outline: none; transition: border-color .2s;
}
textarea:focus, input:focus { border-color: var(--lav-ink); }
textarea:disabled, input:disabled { background: rgba(255,255,255,.5); }

.field { margin-top: 12px; }
.f-label, .sec-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-ink); margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.chips button, .chip-pick {
  position: relative; padding: 8px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 800;
  background: #fff; border: 2px solid rgba(42,28,25,.12); transition: .15s; display: inline-flex; align-items: center; gap: 6px;
}
.chips .on { background: var(--lav); border-color: var(--ink); }
.chip-pick { cursor: pointer; }
.chip-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.people button { padding: 5px 11px 5px 5px; }
.people .face { margin: 0; border: 0; width: 26px; height: 26px; }
.chips .take { border-style: dashed; border-color: rgba(101, 80, 181, .5); color: var(--lav-ink); padding: 8px 12px; }
.chips .dashed { border-style: dashed; color: var(--lav-ink); }
.labels button { border-color: var(--c); }
.labels .on { background: var(--c); border-color: var(--ink); }
.chip-input { width: 180px; padding: 7px 11px; border-radius: 11px; }

.seg { display: flex; background: rgba(42,28,25,.07); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; min-width: 0; padding: 8px 2px; border-radius: 10px; font-weight: 800; font-size: 12.5px; color: #6f6560; white-space: nowrap; }
.seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg.prio .on[data-p="1"] { background: #d9eeff; }
.seg.prio .on[data-p="2"] { background: #ffe3b3; }
.seg.prio .on[data-p="3"] { background: #ff6b5b; color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.actions button { padding: 9px 12px; border-radius: 11px; font-weight: 800; font-size: 13px; background: var(--lav-soft); color: var(--lav-ink); }
.actions .danger { margin-left: auto; background: rgba(255,122,107,.14); color: #c44536; }

.primary {
  display: block; width: 100%; margin-top: 18px; padding: 15px; border-radius: 16px; font-weight: 800; font-size: 16px; text-align: center; text-decoration: none;
  background: var(--ink); color: var(--paper); box-shadow: inset 0 -3px 0 rgba(0,0,0,.3);
}
.primary:disabled { opacity: .5; }
.primary.tg { background: #2aabee; color: #fff; }
.ghost { display: block; width: 100%; margin-top: 8px; padding: 12px; border-radius: 14px; font-weight: 800; font-size: 14px; text-align: center; text-decoration: none; color: var(--lav-ink); background: var(--lav-soft); }
.hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted-ink); }
.link-btn { font-weight: 800; font-size: 13px; color: var(--lav-ink); padding: 6px 4px; }
.sheet .soft, .panel .soft { color: var(--lav-ink); background: rgba(101, 80, 181, .12); }
.row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.row input { flex: 1; padding: 9px 12px; }

/* ---------- task panel ---------- */
.pn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--muted-ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--lav)); } /* deslop-ignore 19 */
.crumb i:not([style]) { background: linear-gradient(135deg, var(--lav), #ff9ec4); }
.p-title { font-weight: 800; font-size: 19px; line-height: 1.3; padding: 8px 10px; border-color: transparent; background: transparent; margin-left: -10px; width: calc(100% + 20px); overflow: hidden; }
.p-title:hover { background: rgba(255,255,255,.6); }
.p-title:focus { background: #fff; }
.p-sec { margin-top: 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; }
.sec-head .muted { font-size: 12.5px; font-weight: 800; color: var(--muted-ink); }
#p-notes { min-height: 70px; }
.members-row { display: flex; align-items: center; gap: 4px; padding-left: 6px; }
.members-row .face { width: 30px; height: 30px; font-size: 11px; }
.members-row .soft { margin-left: 10px; }

.suggest { margin-top: 16px; padding: 10px 10px 10px 14px; border-radius: 14px; display: flex; gap: 8px; align-items: center; background: #fff3cf; border: 2px solid #ffd36e; font-size: 13.5px; font-weight: 800; }
.suggest span { flex: 1; }
.suggest button:not(.x) { padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 13px; }

.subbar.big { height: 6px; margin: 0 0 8px; }
.subs { list-style: none; margin: 0 0 6px; padding: 0; }
.subtask { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 10px; }
.subtask:hover { background: rgba(255,255,255,.6); }
.sub-check { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2.5px solid var(--ink); background: #fff; display: grid; place-items: center; transition: background .15s; }
.subtask.done .sub-check { background: var(--green); border-color: var(--green); }
.subtask.done .sub-check::after { content: '✓'; color: #fff; font-weight: 800; font-size: 13px; line-height: 1; }
.sub-title { flex: 1; min-width: 0; font-size: 14.5px; word-break: break-word; }
.subtask.done .sub-title { color: var(--muted-ink); text-decoration: line-through; } /* deslop-ignore 09 */
.sub-x { flex: none; width: 26px; height: 26px; border-radius: 8px; color: var(--muted-ink); font-size: 12px; opacity: .45; }
.sub-x:hover { opacity: 1; background: rgba(255,122,107,.15); color: #c44536; }
.inline-input { padding: 9px 12px; border-style: dashed; background: transparent; }
.inline-input:focus { border-style: solid; background: #fff; }

.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; background: #fff; border: 2px solid rgba(42,28,25,.06); }
.files li.empty-line { background: none; border: 0; padding: 2px 0; font-size: 13px; }
.ficon { flex: none; width: 38px; height: 38px; border-radius: 9px; background: rgba(101,80,181,.1); display: grid; place-items: center; font-size: 18px; overflow: hidden; }
.ficon img { width: 100%; height: 100%; object-fit: cover; }
.fname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fname a { color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fname a:hover { text-decoration: underline; } /* deslop-ignore 09 */
.fname .muted { font-size: 12px; color: var(--muted-ink); }
.link-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.link-form input { padding: 9px 12px; }
.link-form button { align-self: flex-start; }
.panel.drop-over { box-shadow: inset 0 0 0 3px var(--lav-ink); }

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.act { font-size: 12.5px; color: #6f6560; padding-left: 36px; position: relative; }
.act::before { content: ''; position: absolute; left: 13px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: rgba(42,28,25,.2); } /* deslop-ignore 19 */
.act .muted { color: var(--muted-ink); }
.cmt { display: flex; gap: 8px; align-items: flex-start; }
.cmt > .face { margin: 2px 0 0; width: 28px; height: 28px; border: 0; font-size: 10.5px; }
.bubble { flex: 1; min-width: 0; padding: 8px 12px 9px; border-radius: 4px 14px 14px 14px; background: #fff; border: 2px solid rgba(42,28,25,.06); }
.cmt.mine .bubble { background: #f1edff; }
.cmt-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.cmt-head .muted { font-size: 11.5px; color: var(--muted-ink); }
.bubble p { margin: 3px 0 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.bubble p a { color: var(--lav-ink); }
.cmt-tools { display: flex; gap: 10px; margin-top: 4px; }
.cmt-tools button { font-size: 11.5px; font-weight: 800; color: var(--muted-ink); padding: 0; }
.cmt-tools button:hover { color: var(--lav-ink); }
.cmt-edit { margin-top: 6px; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.composer textarea { flex: 1; padding: 10px 12px; max-height: 180px; }
.composer button { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 16px; } /* deslop-ignore 19 */

/* ---------- project modal ---------- */
.stack { display: flex; flex-direction: column; gap: 10px; }
.big-input { font-weight: 800; font-size: 17px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); } /* deslop-ignore 19 */
.swatches button.on { border-color: var(--ink); }
.swatches.small { margin-top: 8px; }
.swatches.small button { width: 22px; height: 22px; }
.tabs-seg { margin-bottom: 14px; }
.label-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.label-list li { display: flex; align-items: center; gap: 2px; }
.label-list .tag { font-size: 13px; padding: 5px 10px; border-radius: 9px; }

.share-task { margin: -2px 0 12px; font-weight: 800; font-size: 15px; color: #6f6560; }
.team { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow-y: auto; }
.team li { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 14px; background: #fff; border: 2px solid rgba(42,28,25,.08); }
.team .face { margin: 0; width: 36px; height: 36px; font-size: 13px; border: 0; }
.team .who { flex: 1; min-width: 0; }
.team .who b { display: block; font-size: 15px; }
.team .who span { font-size: 12.5px; color: var(--muted-ink); }
.team button:not(.link-btn) { padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; background: var(--lav); border: 2px solid var(--ink); }
.team button:disabled { background: transparent; border-color: transparent; color: var(--green); }

/* ---------- login ---------- */
.login { padding: 8px 16px 24px; }
.login-card { max-width: 440px; margin: 0 auto; padding: 22px 20px; border-radius: 16px; background: var(--paper); color: var(--ink); user-select: text; }
.login-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.login-card p { margin: 0; color: #6f6560; font-size: 14.5px; }
.login-state { min-height: 20px; margin-top: 12px !important; font-weight: 800; color: var(--ink) !important; }
.login-card label { display: block; margin-top: 14px; font-size: 13px; font-weight: 800; }
.login-card input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 2px solid rgba(42,28,25,.15); font: inherit; color: var(--ink); background: #fff; }
.login-card button.primary, .login-card button.ghost { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.login-card .addr { margin-top: 10px; font-weight: 800; color: var(--ink) !important; word-break: break-all; }
.space-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.space-list a { display: block; padding: 10px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; border: 2px solid rgba(42,28,25,.12); }
.connect { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--lav-soft); color: #efeaff; font-size: 14px; }
.connect a { color: #fff; font-weight: 800; }
.primary.waiting { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .7; } }
body.login-mode .views, body.login-mode .main, body.login-mode .fab, body.login-mode .side-foot, body.login-mode .panel-wrap { display: none !important; }
body.login-mode .meter { display: none; }

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  body { overflow: hidden; }
  .app { flex-direction: row; }
  .side {
    width: 264px; display: flex; flex-direction: column; border-right: 1px solid var(--line);
    background: #16131c;
  }
  .top { padding: 14px 16px 6px 4px; }
  #osha { width: 84px; height: 84px; }
  h1 { font-size: 19px; }
  .sub { font-size: 12px; }
  .views { flex: 1; flex-direction: column; gap: 2px; padding: 14px 10px; overflow-x: hidden; overflow-y: auto; }
  .view { width: 100%; flex-wrap: wrap; padding: 9px 10px; border: 0; border-radius: 11px; background: none; font-size: 14px; text-align: left; }
  .view:hover { background: rgba(255,255,255,.05); }
  .view.on { background: rgba(169,155,255,.16); color: #fff; }
  .v-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .v-head { display: block; margin: 16px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .v-bar { display: block; flex-basis: 100%; height: 3px; margin: 2px 0 0 17px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
  .v-bar i { display: block; height: 100%; border-radius: inherit; }
  .view.add { margin-top: 4px; color: var(--lav); }
  .archive { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
  .archive summary { padding: 6px 10px; cursor: pointer; }
  .archive .view { opacity: .7; }
  .side-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
  .side-foot .me-name { font-weight: 800; color: #d9d3e6; margin-bottom: 4px; }
  .side-foot button, .side-foot a { padding: 2px 0; color: var(--muted); font-weight: 800; font-size: 12px; text-decoration: none; }
  .side-foot button:hover, .side-foot a:hover { color: var(--lav); }

  .app.with-panel .main { margin-right: var(--panel-w); }
  .toolbar { padding: 16px 20px 6px; gap: 14px; flex-wrap: nowrap; }
  .tb-title { flex: 1; }
  .tb-title h2 { display: flex; }
  .tb-hint { display: inline; font-size: 13px; white-space: nowrap; }
  .tb-filters { display: flex; align-items: center; gap: 6px; flex: none; }
  .tb-filters > button, .tb-filters select {
    padding: 7px 11px; border-radius: 10px; font-weight: 800; font-size: 12.5px; color: #cfc8de;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); white-space: nowrap;
  }
  .tb-filters select { max-width: 190px; }
  .tb-filters select option { color: var(--ink); }
  .tb-filters > button.on { background: var(--lav); color: var(--night); border-color: var(--lav); }
  .search { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
  .search span { color: var(--muted); font-size: 15px; }
  .search input { width: 180px; padding: 7px 0; border: 0; background: none; color: #fff; font: inherit; font-size: 13px; outline: none; }
  .search:focus-within { border-color: var(--lav); }
  .app.with-panel .tb-hint { display: none; }
  .app.with-panel .toolbar { flex-wrap: wrap; row-gap: 10px; }
  .app.with-panel .tb-filters { flex: 1 1 100%; flex-wrap: wrap; }
  .soft { white-space: nowrap; }
  .board { padding: 10px 20px 0; gap: 14px; }
  .col { padding: 12px 10px 20px; margin-bottom: 16px; }
  .col .add { display: block; width: 100%; margin-top: 10px; padding: 9px; border-radius: 12px; color: var(--muted); font-weight: 800; font-size: 13px; text-align: left; }
  .col .add:hover { background: rgba(255,255,255,.05); color: var(--lav); }
  .card { --tilt: 0deg !important; }
  .card:hover { box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 14px 28px -14px rgba(0,0,0,.9), 0 0 0 2px rgba(169,155,255,.55); }
  .card:active { transform: none; }
  .card .notes { -webkit-line-clamp: 1; }
  .empty { padding: 20px 12px; font-size: 13px; }
  .empty b { font-size: 14px; }
  .fab { display: none; }

  .panel-wrap { left: auto; width: var(--panel-w); z-index: 8; }
  .panel-wrap .scrim { display: none; }
  .panel {
    inset: 0; left: 0; width: auto; margin: 0; max-height: none; border-radius: 22px 0 0 22px; padding: 16px 22px 28px;
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.8); animation: slide .28s cubic-bezier(.2,.9,.3,1) both;
  }
  .panel .grab { display: none; }
  @keyframes slide { from { transform: translateX(100%); } }
  .toast { bottom: 28px; }
  .app.with-panel ~ .toast { left: calc((100% - var(--panel-w)) / 2); }

  body.login-mode { align-items: center; justify-content: center; }
  body.login-mode .app { flex: none; }
  body.login-mode .side { width: 440px; border: 0; background: none; backdrop-filter: none; }
  body.login-mode .login { width: 472px; }
}

/* ---------- toast & fx ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 20;
  max-width: calc(100% - 40px); padding: 11px 16px; border-radius: 14px; font-weight: 800; font-size: 14px;
  background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); animation: toast .3s both;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ---------- child tasks inside a card / panel ---------- */
.kids-toggle { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding: 4px 8px 4px 4px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--lav-ink); background: rgba(101, 80, 181, .08); }
.kids-toggle b { color: #7b706a; font-size: 11.5px; }
.kids-toggle .arr { display: inline-block; transform: rotate(-90deg); transition: transform .15s ease-out; }
.kids-toggle.open .arr { transform: none; }
.kids { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.kid { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.kid:hover { background: rgba(42, 28, 25, .05); }
.kid-title { flex: 1; min-width: 0; line-height: 1.3; word-break: break-word; }
.kid.done .kid-title { color: var(--muted-ink); text-decoration: line-through; } /* deslop-ignore 09 */
.kid-check { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; } /* deslop-ignore 19 */
.kid.done .kid-check { background: var(--lav); }
.kid.add { color: var(--lav-ink); font-size: 12.5px; }
.tag.up { background: rgba(101, 80, 181, .12); color: var(--lav-ink); }
.crumb-up { font-weight: 800; color: var(--lav-ink); text-decoration: underline; text-underline-offset: 3px; } /* deslop-ignore 09 */

/* ---------- money ---------- */
.dot.rub { background: none; width: auto; height: auto; font-size: 13px; font-weight: 800; line-height: 1; color: #7fe0b0; }
.seg.scr { flex-basis: 100%; background: rgba(255, 255, 255, .06); }
.tb-title { flex-wrap: wrap; }
.tb-title .soft { white-space: nowrap; }
.seg.scr button { padding: 6px 12px; color: #bdb6cc; }
.seg.scr button.on { background: var(--paper); color: var(--ink); }
.screen-money .tabs, .screen-money .board, .screen-money .tb-filters, body:has(.screen-money) .fab { display: none !important; }
.money { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px calc(40px + var(--safe-b)); }
.m-month { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.m-month b { font-size: 17px; font-weight: 800; min-width: 150px; text-align: center; }
.m-wait { padding: 30px 0; text-align: center; }
.m-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.m-tile { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); min-width: 0; }
.m-tile span { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }
.m-tile b { display: block; margin-top: 4px; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tile small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.m-tile.in b { color: #7fe0b0; }
.m-tile.out b { color: #ffb0a6; }
.m-tile.neg b { color: var(--red); }
.m-board { display: flex; flex-direction: column; gap: 12px; }
.m-col { padding: 12px 10px; border-radius: 16px; background: rgba(255, 255, 255, .03); }
.m-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7fe0b0; } /* deslop-ignore 10 */
.m-col.expense h3 { color: #ffb0a6; }
.m-col h3 b { margin-left: auto; font-size: 12px; letter-spacing: 0; color: #d9d3e6; }
.m-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m-col .empty { padding: 14px; font-size: 13px; }
.m-col .add { width: 100%; margin-top: 8px; padding: 9px; border-radius: 12px; font-weight: 800; font-size: 13px; color: var(--muted); border: 1px dashed rgba(255, 255, 255, .12); }
.m-col .add:hover { color: var(--lav); border-color: var(--lav); }
.m-card { padding: 11px 12px; border-radius: 14px; background: var(--paper); color: var(--ink); cursor: pointer; border-left: 4px solid var(--green); }
.m-card.expense { border-left-color: var(--red); }
.m-row { display: flex; gap: 10px; align-items: baseline; }
.m-title { flex: 1; min-width: 0; font-weight: 800; font-size: 14.5px; word-break: break-word; }
.m-sum { flex: none; font-size: 14.5px; color: #2f8a5c; }
.m-card.expense .m-sum { color: #c44536; }
.m-done { padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--ink); }
.m-table { display: flex; flex-direction: column; gap: 6px; }
.m-proj { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; align-items: center; padding: 11px 12px; border-radius: 14px; text-align: left; font-size: 13.5px; font-weight: 800; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.m-proj .m-name { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.m-proj .in { color: #7fe0b0; }
.m-proj .out { color: #ffb0a6; }
.m-proj .neg { color: var(--red); }
.m-proj .muted { grid-column: 1 / -1; font-size: 11.5px; }
.m-proj .muted:empty { display: none; }
.m-proj.head { display: none; }
.m-quick { display: flex; gap: 8px; margin-bottom: 12px; }
.m-quick .add { flex: 1; padding: 10px; border-radius: 12px; font-weight: 800; font-size: 13.5px; border: 1px dashed rgba(255, 255, 255, .14); }
.m-quick .add.in { color: #7fe0b0; }
.m-quick .add.out { color: #ffb0a6; }
.m-quick .add:hover { border-color: currentColor; }
.m-loose { margin-top: 16px; }
.m-loose h3 { margin: 0 4px 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m-loose ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-select { width: 100%; padding: 10px 12px; border-radius: 12px; font: inherit; font-weight: 700; color: inherit; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.m-fields { gap: 10px; }
.m-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.m-field input { width: 100%; }
.m-field.m-cur { flex: 0 0 76px; }
.m-field.m-cur select { width: 100%; }
.m-foreign { margin: 8px 0 0; }
.m-month { flex-wrap: wrap; }
.m-tabs { flex: 0 0 100%; }
.m-tabs button { flex: 1 0 auto; }
.m-empty { padding: 18px 4px; }
.m-h { margin: 18px 4px 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m-totals.four { grid-template-columns: repeat(2, 1fr); }
.m-rules li.m-rule { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 13.5px; }
.m-rule .m-sum { color: #7fe0b0; }
.m-rule.expense .m-sum { color: #ffb0a6; }
.m-rule .muted { font-size: 12px; }
.m-rule .link-btn { color: var(--lav); justify-self: end; }
.m-card.payout { border-left-color: var(--lav); }
.m-card.payout .m-sum { color: var(--lav-ink); }

.sh-terms { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 2px 12px; font-size: 13px; }
.sh-terms .soft { margin-left: auto; }
.sh-alert { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #ffd36e; background: rgba(255, 211, 110, .1); }
.sh-warn { font-style: normal; font-size: 11px; color: #ffd36e; }
.sh-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sh-who b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-who .face { margin: 0; }
.sh-split .neg, .sh-people .neg, .sh-row .neg { color: var(--red); }

.sh-people { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sh-person { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.sh-person dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 10px 0 0; font-size: 13px; }
.sh-person dt { color: var(--muted); }
.sh-person dd { margin: 0; font-weight: 800; text-align: right; }
.sh-due { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sh-due span { font-size: 12px; font-weight: 800; color: var(--muted); }
.sh-due b { font-size: 20px; color: #7fe0b0; }
.sh-due.neg b { color: var(--red); }

.sh-table, .sh-split { display: flex; flex-direction: column; gap: 6px; }
.sh-row, .sh-line { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; align-items: center; padding: 11px 12px; border-radius: 14px; text-align: left; font-size: 13.5px; font-weight: 800; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.sh-row .sh-name, .sh-line .sh-who { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.sh-row [data-l]::before, .sh-line [data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
.sh-row .in { color: #7fe0b0; }
.sh-row .out { color: #ffb0a6; }
.sh-row.head, .sh-line.head { display: none; }
.sh-row.total { background: none; border-style: dashed; }
.sh-line.fund { background: none; border-style: dashed; }
.sh-due-cell b { color: #7fe0b0; }
.sh-due-cell.neg b { color: var(--red); }
.sh-line .m-done { background: var(--lav); color: var(--night); padding: 6px 10px; }
.sh-inputs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sh-inputs li { display: flex; align-items: center; gap: 8px; }
.sh-inputs .face { margin: 0; }
.sh-inputs b { flex: 1; min-width: 0; font-size: 14px; }
.sh-inputs input { width: 90px; text-align: right; padding: 8px 10px; }
.hint.sh-bad { color: #c44536; font-weight: 800; }

@media (min-width: 720px) {
  .m-tabs { flex: none; margin-right: 8px; }
  .m-totals.four { grid-template-columns: repeat(4, 1fr); }
  .sh-people { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .m-rules ul { grid-template-columns: repeat(2, 1fr); }
  .m-rules li.m-rule { grid-template-columns: minmax(0, 1fr) auto auto auto; }
}
@media (min-width: 1024px) {
  .sh-row { grid-template-columns: minmax(0, 1.8fr) repeat(8, minmax(0, 1fr)); }
  .sh-line { grid-template-columns: minmax(0, 1.8fr) .6fr repeat(4, minmax(0, 1fr)) auto; }
  .sh-row .sh-name, .sh-line .sh-who { grid-column: auto; }
  .sh-row [data-l]::before, .sh-line [data-l]::before { display: none; }
  .sh-row.head, .sh-line.head { display: grid; background: none; border: 0; padding: 0 12px; font-size: 11.5px; color: var(--muted); cursor: default; }
  .sh-row span, .sh-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 720px) {
  .money { padding: 8px 20px 40px; }
  .m-board { flex-direction: row; align-items: flex-start; }
  .m-col { flex: 1 1 0; min-width: 0; }
  .m-tile b { font-size: 24px; }
  .seg.scr { flex-basis: auto; }
  .tb-title { flex-wrap: nowrap; }
  .m-proj { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); }
  .m-proj .m-name, .m-proj .muted { grid-column: auto; }
  .m-proj .muted:empty { display: block; }
  .m-proj.head { display: grid; background: none; border: 0; padding: 0 12px; font-size: 11.5px; color: var(--muted); cursor: default; }
}
