/* TASKS - YantrAI's own task manager (v742). The app's own styles: a navy rail like Platform Manager's, the board, the list, a task's
   panel. Scoped to #tasks-view. Weights stop at 800 on the title only; a phone gets one column and no rail. v743: the rail is OHM's. */
#tasks-view { --tk-navy: #03234d; --tk-ink: #1B2432; --tk-mute: #5B6470; --tk-line: var(--border, #E1E4EA); --tk-lit: #9BCCF2;
  --tk-late: #8A2E22; --tk-late-bg: #F8E7E4; --tk-today: #7A5A12; --tk-today-bg: #FBF3E4; --tk-ok: #1E5B3A; --tk-ok-bg: #E8F3EC;
  font-family: Inter, "Segoe UI", system-ui, sans-serif; color: var(--tk-ink); min-height: 100vh; background: #F4F6FA; zoom: .8; }   /* v743 OHM's size, as the Partner app */
/* v743 THE RAIL IS OHM'S (owner, 2026-10-23: "remove this top strip and keep the interface like we have of ohm" -> call 11 A): 56px of
   icons that never leave the screen; the mouse resting on them a fifth of a second widens the column to 236px over the page (.is-wide,
   tasks.js, the Partner app's mechanic of v738); the Tasks mark on top, the person, Home and the version at the foot. At rest no count
   shows but what is due (red, on My tasks - the Home tile's number); wide, every line carries its count. The page runs at OHM's size. */
#tasks-view .tk-rail { position: fixed; top: 0; left: 0; bottom: 0; width: 56px; background: var(--tk-navy); color: #fff; display: flex; flex-direction: column; padding: 10px 8px; gap: 4px; z-index: 50; overflow: hidden; transition: width .16s ease, box-shadow .16s ease; }
#tasks-view .tk-rail.is-wide { width: 236px; box-shadow: 8px 0 28px rgba(0,0,0,.38); }
#tasks-view .tk-brand { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 0 8px; margin-bottom: 4px; font-weight: 800; font-size: 14px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; flex: none; }
#tasks-view .tk-brand svg { width: 30px; height: 30px; border-radius: 9px; flex: none; margin-left: 5px; }
#tasks-view .tk-brand .tk-bn { display: none; } #tasks-view .tk-rail.is-wide .tk-bn { display: inline; }
#tasks-view .tk-brand .tk-bn small { display: block; font-size: 11px; font-weight: 500; color: #8FA3C4; }
#tasks-view .tk-ri { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; flex: none; padding: 0; border-radius: 9px; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%; font-family: inherit; white-space: nowrap; overflow: hidden; }
#tasks-view .tk-ri:hover { background: rgba(255,255,255,.12); } #tasks-view .tk-ri.on { background: var(--tk-lit); color: #111827; }
#tasks-view .tk-ri:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
#tasks-view .tk-ri .tk-ic { width: 40px; height: 38px; flex: none; padding: 10px 11px; box-sizing: border-box; }
#tasks-view .tk-ri .tk-nm { display: none; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #tasks-view .tk-rail.is-wide .tk-nm { display: block; }
#tasks-view .tk-ri i { display: none; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; border-radius: 999px; padding: 1px 6px; margin-right: 10px; background: rgba(255,255,255,.14); color: #fff; }
#tasks-view .tk-rail.is-wide .tk-ri i:not(:empty) { display: inline-block; } #tasks-view .tk-ri.on i { background: #fff; color: #1F4E9C; }
#tasks-view .tk-rail:not(.is-wide) .tk-ri[data-due]:not([data-due="0"])::after { content: attr(data-due); position: absolute; top: 3px; left: 25px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; font-size: 10px; font-weight: 700; text-align: center; background: #D92D20; color: #fff; border-radius: 8px; }
#tasks-view .tk-ri .tk-dot { width: 40px; height: 38px; flex: none; margin: 0; border-radius: 0; background: transparent !important; position: relative; }
#tasks-view .tk-ri .tk-dot::after { content: ""; position: absolute; left: 15px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #9BCCF2); }
#tasks-view .tk-grp { display: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8FA3C4; padding: 10px 10px 2px; font-weight: 700; } #tasks-view .tk-rail.is-wide .tk-grp { display: block; }
#tasks-view .tk-rail:not(.is-wide) .tk-grp + .tk-ri { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0 0 9px 9px; height: 44px; padding-top: 6px; }
#tasks-view .tk-ri.tk-add .tk-ic { opacity: .8; }
#tasks-view .tk-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 6px; display: flex; flex-direction: column; gap: 2px; flex: none; }
#tasks-view .tk-me { display: flex; align-items: center; gap: 8px; height: 44px; flex: none; padding: 0 0 0 8px; border-radius: 9px; cursor: pointer; border: 0; background: transparent; color: #fff; width: 100%; text-align: left; font-family: inherit; white-space: nowrap; overflow: hidden; }
#tasks-view .tk-me:hover { background: rgba(255,255,255,.08); } #tasks-view .tk-me:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
#tasks-view .tk-me .tk-av { margin: 0; width: 26px; height: 26px; flex: none; background: #7FB2FF; color: #03234d; font-size: 11px; }
#tasks-view .tk-me .tk-who { display: none; min-width: 0; line-height: 1.2; } #tasks-view .tk-rail.is-wide .tk-who { display: grid; }
#tasks-view .tk-me .tk-who b { font-size: 12.5px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; } #tasks-view .tk-me .tk-who small { font-size: 11px; color: #8FA3C4; }
#tasks-view .tk-ver { display: none; font-size: 10.5px; color: #8FA3C4; padding: 6px 10px 2px; white-space: nowrap; } #tasks-view .tk-rail.is-wide .tk-ver { display: block; }
#tasks-view .tk-main { margin-left: 56px; padding: 14px 18px 40px; min-width: 0; }
#tasks-view .tk-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; background: #fff; border: 1px solid var(--tk-line); border-radius: 6px; padding: 7px 12px; min-height: 44px; }
#tasks-view .tk-top h1 { margin: 0; font-size: 17px; font-weight: 800; } #tasks-view .tk-top .tk-sub { color: var(--tk-mute); font-size: 12.5px; padding-left: 8px; border-left: 1px solid var(--tk-line); }
#tasks-view .tk-seg { display: inline-flex; border: 1px solid var(--tk-line); border-radius: 8px; overflow: hidden; background: #fff; margin-left: auto; }
#tasks-view .tk-seg button { padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--tk-mute); border: 0; border-left: 1px solid var(--tk-line); background: transparent; cursor: pointer; font-family: inherit; }
#tasks-view .tk-seg button:first-child { border-left: 0; } #tasks-view .tk-seg button.on { background: var(--tk-lit); color: #111827; }
#tasks-view .tk-srch { height: 30px; width: 220px; border: 1px solid var(--tk-line); border-radius: 7px; padding: 0 9px; font-size: 12.5px; background: #fff; color: var(--tk-ink); font-family: inherit; }
#tasks-view .tk-btn { height: 30px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; padding: 0 12px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--tk-line); background: #fff; color: var(--tk-ink); cursor: pointer; font-family: inherit; white-space: nowrap; }
#tasks-view .tk-btn.pri { background: var(--tk-lit); border-color: var(--tk-lit); color: #111827; } #tasks-view .tk-btn.sm { height: 26px; padding: 0 9px; font-size: 11.5px; }
#tasks-view .tk-btn:focus-visible, #tasks-view .tk-sel:focus-visible, #tasks-view .tk-srch:focus-visible { outline: 2px solid #1F4E9C; outline-offset: 1px; }
#tasks-view .tk-btn[disabled] { opacity: .5; cursor: default; }
#tasks-view .tk-strip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-size: 12.5px; color: var(--tk-mute); }
#tasks-view .tk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--tk-line); background: #fff; font-weight: 600; color: var(--tk-ink); cursor: pointer; font-family: inherit; font-size: 12.5px; }
#tasks-view .tk-chip b { font-weight: 800; } #tasks-view .tk-chip.late { background: var(--tk-late-bg); color: var(--tk-late); border-color: transparent; } #tasks-view .tk-chip.today { background: var(--tk-today-bg); color: var(--tk-today); border-color: transparent; }
#tasks-view .tk-chip.on { box-shadow: 0 0 0 2px rgba(31,78,156,.25); }
#tasks-view .tk-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
#tasks-view .tk-col { background: #EEF1F6; border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 300px; }
#tasks-view .tk-col.over { background: #E3EAF6; }
#tasks-view .tk-ch { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; font-size: 13px; font-weight: 700; } #tasks-view .tk-ch i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--tk-mute); background: #fff; border-radius: 999px; padding: 1px 7px; }
#tasks-view .tk-card { background: #fff; border: 1px solid var(--tk-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.04); text-align: left; font-family: inherit; color: inherit; width: 100%; }
#tasks-view .tk-card:hover { border-color: #B9C6DB; } #tasks-view .tk-card.on { border-color: #1F4E9C; box-shadow: 0 0 0 2px rgba(31,78,156,.18); } #tasks-view .tk-card.drag { opacity: .5; }
#tasks-view .tk-card .tk-t { font-size: 13px; font-weight: 600; line-height: 1.35; } #tasks-view .tk-card.done .tk-t { color: var(--tk-mute); text-decoration: line-through; }
#tasks-view .tk-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--tk-mute); }
#tasks-view .tk-list { display: inline-flex; align-items: center; gap: 5px; } #tasks-view .tk-list .tk-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#tasks-view .tk-due { font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #F1F3F5; } #tasks-view .tk-due.late { background: var(--tk-late-bg); color: var(--tk-late); } #tasks-view .tk-due.today { background: var(--tk-today-bg); color: var(--tk-today); } #tasks-view .tk-due.ok { background: var(--tk-ok-bg); color: var(--tk-ok); }
#tasks-view .tk-av { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: #1F4E9C; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
#tasks-view .tk-av.n2 { background: #04785A; } #tasks-view .tk-av.n3 { background: #C2410C; } #tasks-view .tk-av.n4 { background: #6D28D9; } #tasks-view .tk-av.none { background: #C9CED6; color: #fff; }
#tasks-view .tk-addc { color: var(--tk-mute); font-size: 12.5px; padding: 6px 4px; cursor: pointer; border: 0; background: transparent; text-align: left; font-family: inherit; }
#tasks-view .tk-addc:hover { color: var(--tk-ink); }
#tasks-view .tk-quick { display: grid; gap: 6px; } #tasks-view .tk-quick input { height: 32px; border: 1px solid #1F4E9C; border-radius: 7px; padding: 0 10px; font-size: 12.5px; font-family: inherit; width: 100%; }
#tasks-view .tk-tbl { background: #fff; border: 1px solid var(--tk-line); border-radius: 12px; overflow: hidden; }
#tasks-view .tk-gh { padding: 8px 14px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--tk-mute); background: #F7F8FA; border-top: 1px solid var(--tk-line); } #tasks-view .tk-gh:first-child { border-top: 0; }
#tasks-view .tk-tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) 170px 120px 120px 90px; gap: 10px; align-items: center; height: 44px; padding: 0 14px; border-top: 1px solid #F1F3F5; font-size: 12.5px; cursor: pointer; width: 100%; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; font-family: inherit; color: inherit; text-align: left; }
#tasks-view .tk-tr:hover { background: #F7F8FA; }
#tasks-view .tk-tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #tasks-view .tk-tr .tk-t { font-weight: 600; }
#tasks-view .tk-ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #B9C6DB; display: inline-block; background: #fff; padding: 0; cursor: pointer; } #tasks-view .tk-ck.done { background: var(--tk-ok); border-color: var(--tk-ok); }
#tasks-view .tk-st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #F1F3F5; color: var(--tk-mute); } #tasks-view .tk-st.doing { background: #DBEAFE; color: #1F4E9C; } #tasks-view .tk-st.done { background: var(--tk-ok-bg); color: var(--tk-ok); }
#tasks-view .tk-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; background: #fff; border-left: 1px solid var(--tk-line); box-shadow: -12px 0 40px rgba(17,24,39,.12); z-index: 60; display: flex; flex-direction: column; overflow: auto; }
#tasks-view .tk-ph { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--tk-line); } #tasks-view .tk-ph .tk-x { margin-left: auto; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--tk-mute); }
#tasks-view .tk-pb { padding: 16px; display: grid; gap: 14px; }
#tasks-view .tk-pb .tk-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; margin: -4px -6px; font-family: inherit; width: calc(100% + 12px); background: transparent; color: inherit; }
#tasks-view .tk-pb .tk-title:focus { border-color: var(--tk-line); outline: none; background: #FBFCFE; }
#tasks-view .tk-kv { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 10px; font-size: 12.5px; align-items: center; margin: 0; } #tasks-view .tk-kv dt { color: var(--tk-mute); } #tasks-view .tk-kv dd { margin: 0; }
#tasks-view .tk-sel { height: 28px; border: 1px solid var(--tk-line); border-radius: 6px; padding: 0 8px; font-size: 12.5px; background: #fff; font-family: inherit; color: var(--tk-ink); max-width: 100%; }
#tasks-view .tk-lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--tk-mute); margin-bottom: 6px; }
#tasks-view .tk-note { border: 1px solid var(--tk-line); border-radius: 8px; padding: 9px 11px; font-size: 12.5px; line-height: 1.5; min-height: 60px; color: var(--tk-ink); background: #FBFCFE; width: 100%; font-family: inherit; resize: vertical; }
#tasks-view .tk-com { display: grid; gap: 8px; } #tasks-view .tk-c { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; font-size: 12.5px; } #tasks-view .tk-c .tk-av { margin: 0; width: 24px; height: 24px; } #tasks-view .tk-c b { font-weight: 700; } #tasks-view .tk-c small { color: var(--tk-mute); margin-left: 6px; }
#tasks-view .tk-cin { display: flex; gap: 8px; } #tasks-view .tk-cin input { flex: 1; height: 32px; border: 1px solid var(--tk-line); border-radius: 7px; padding: 0 10px; font-size: 12.5px; font-family: inherit; }
#tasks-view .tk-act { font-size: 11.5px; color: var(--tk-mute); display: grid; gap: 4px; }
#tasks-view .tk-say { font-size: 12.5px; color: var(--tk-mute); padding: 6px 0; } #tasks-view .tk-say.bad { color: var(--tk-late); }
#tasks-view .tk-empty { background: #fff; border: 1px dashed var(--tk-line); border-radius: 12px; padding: 28px; text-align: center; color: var(--tk-mute); font-size: 13px; }
#tasks-view .tk-off { max-width: 560px; margin: 60px auto; background: #fff; border: 1px solid var(--tk-line); border-radius: 12px; padding: 24px; font-size: 14px; line-height: 1.6; }
#tasks-view .tk-off b { display: block; font-size: 17px; margin-bottom: 6px; }
#tasks-view .tk-newlist { display: grid; gap: 6px; padding: 6px 10px; } #tasks-view .tk-newlist input { height: 30px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 0 8px; background: rgba(255,255,255,.1); color: #fff; font-family: inherit; font-size: 12.5px; }
#tasks-view .tk-newlist input::placeholder { color: #8FA3C4; }
#tasks-view .tk-newlist .tk-cols { display: flex; gap: 6px; } #tasks-view .tk-newlist .tk-cols button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; } #tasks-view .tk-newlist .tk-cols button.on { border-color: #fff; }
@media (max-width: 700px) {
  #tasks-view .tk-rail { display: none; } #tasks-view .tk-main { margin-left: 0; padding: 12px 14px 80px; } #tasks-view .tk-board { grid-template-columns: 1fr; }
  #tasks-view .tk-tr { grid-template-columns: 24px minmax(0, 1fr) 84px; } #tasks-view .tk-tr .tk-c3, #tasks-view .tk-tr .tk-c4, #tasks-view .tk-tr .tk-c6 { display: none; }
  #tasks-view .tk-seg { margin-left: 0; } #tasks-view .tk-srch { display: none; } #tasks-view .tk-panel { width: 100%; }
  #tasks-view .tk-mob { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
}
@media (min-width: 701px) { #tasks-view .tk-mob { display: none; } }

/* v797 TASKS IS AN APP IN FRONT (owner, 2026-10-31: "yes do same for tasks"), as the Partner app (v796): the platform's Chats strip is not drawn
   over this rail (static/index.html __cfApp 'tasks'); the rail starts where the page does, beside the Chat when it is open. #tasks-view runs
   at zoom .8, so the page's real edge is --cf-ml x 1.25 in its units. The rail's own Chat line opens the Chat. */
html.cf-frame #tasks-view .tk-rail { left: calc(var(--cf-ml, 0px) * 1.25); }
/* v799 - a business's first visit (tasks.js firstTime): whose list this is, until its first task */
#tasks-view .tk-first { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--tk-line); border-radius: 8px; background: #EEF4FB;
  font-size: 13px; line-height: 1.5; color: var(--tk-ink); }
#tasks-view .tk-first b { font-weight: 600; }

/* v860 SURVEY STEP 3 (owner, 2026-11-02: "yes to step 3"): Tasks by thumb - on a phone every press is at least 40 px tall (the chips, the buttons, Board | List,
   the small buttons 36); the "Home" chip goes where OHM's bar carries the way (html.yb-plat: Chats is Home there); the page's foot clears the bar (ybar.css) */
@media (max-width: 768px) {
  #tasks-view { zoom: 1; }   /* v860 - a phone: no 80% zoom (a 40 px press was 32 px to the thumb) */
  #tasks-view .tk-chip { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  #tasks-view .tk-btn { min-height: 40px; height: auto; padding: 0 14px; font-size: 14px; }
  #tasks-view .tk-btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
  #tasks-view .tk-seg button { min-height: 40px; padding: 0 14px; }
  #tasks-view .tk-mob { gap: 8px; }
  html.yb-plat #tasks-view .tk-mob [data-home], html.yb-plat #tasks-view .tk-chip[data-home], html.yb-plat #tasks-view [data-home="1"] { display: none !important; }
}
