/* Roger mockups v4 — Cord look only. Tokens copied from the Cord prototype (p40 + live-dark):
 * light  bg #F2F2F7  ink #000  sub #8A8A8E  accent #0A84FF  card #fff     line #E5E5EA  soft #E9E9EE  radius 12px
 * dark   bg #1C1C1E  ink #fff  sub #8E8E93  accent #0A84FF  card #2C2C2E  line rgba(84,84,88,.65)  soft #3A3A3C */
.rdev { --r: 12px; --acc: #0A84FF; --acc-ink: #fff; --ok: #34C759; --warn: #FF9500; --danger: #FF3B30;
  --font: -apple-system, "SF Pro Text", Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  position: relative; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.3;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
.rdev.light { --bg: #F2F2F7; --ink: #000; --sub: #8A8A8E; --card: #fff; --ln: #E5E5EA; --soft: #E9E9EE; --them: #E9E9EB; --bar: rgba(249,249,249,.94); --track: #E9E9EE; --sw: #D1D1D6; color-scheme: light; }
.rdev.dark  { --bg: #1C1C1E; --ink: #fff; --sub: #8E8E93; --card: #2C2C2E; --ln: rgba(84,84,88,.65); --soft: #3A3A3C; --them: #2C2C2E; --bar: rgba(28,28,30,.94); --track: #3A3A3C; --sw: #48484A; color-scheme: dark;
  --ok: #30D158; --warn: #FF9F0A; --danger: #FF453A; }
.rdev *, .rdev *::before, .rdev *::after { box-sizing: border-box; }
.rdev :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
.rdev :where(button):disabled { cursor: default; }
.rdev :where(input, textarea) { font: inherit; color: inherit; }
.rdev :where(h1, h2, h3, p, ul) { margin: 0; }
.rdev .ic { width: 22px; height: 22px; flex: none; }

.rdev.framed.k-phone { border-radius: 46px; box-shadow: 0 0 0 9px #0b0b0c, 0 30px 70px -20px rgba(0,0,0,.35); }
.rdev.framed.k-desktop { border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 30px 70px -24px rgba(0,0,0,.3); }
.rdev.dark.framed.k-desktop { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px -24px rgba(0,0,0,.6); }

.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sbar { height: 46px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 30px 6px; font-size: 15px; font-weight: 600; }
.sb-i { display: flex; gap: 5px; } .sb-i .ic { width: 17px; height: 17px; }
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bare.k-phone .page { padding-top: max(env(safe-area-inset-top), 8px); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 28px; -webkit-overflow-scrolling: touch; }

/* large title */
.lt { padding: 8px 20px 10px; flex: none; }
.lt-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.lt h1 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.lt p { color: var(--sub); font-size: 15px; margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--acc); font-size: 17px; margin: 0 0 6px -8px; padding: 4px 8px 4px 2px; }
.back .ic { width: 24px; height: 24px; }
.ib { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--acc); flex: none; }
.ib.sm { width: 32px; height: 32px; color: var(--sub); } .ib.sm .ic { width: 20px; height: 20px; }
.ib.acc { background: var(--acc); color: #fff; }
.ib-sp { width: 38px; flex: none; }

/* groups + rows */
.gh { font-size: 13px; font-weight: 600; color: var(--sub); margin: 26px 6px 8px; }
.group { background: var(--card); border-radius: var(--r); overflow: hidden; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 16px; }
.row + .row { border-top: .5px solid var(--ln); }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main b.wrap { white-space: normal; line-height: 1.3; }
.row-main small { display: block; color: var(--sub); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main b.wrap + small { white-space: normal; }
.row-val { color: var(--sub); font-size: 15px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.row .chev { width: 16px; height: 16px; color: var(--sub); opacity: .6; }
.row .tick { color: var(--acc); }
.row .ok { color: var(--ok); width: 20px; height: 20px; }
.thread { min-height: 66px; }
.thread.sel { background: color-mix(in srgb, var(--acc) 12%, var(--card)); }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--sub); font-size: 18px; font-weight: 600; flex: none; }
.av.roger { background: var(--acc); color: #fff; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; align-self: flex-start; padding-top: 4px; }
.row-side em { font-style: normal; font-size: 13px; color: var(--sub); }
.row-side u { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.ev-t { width: 46px; color: var(--sub); font-size: 15px; font-variant-numeric: tabular-nums; flex: none; }
.cb { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--sub); display: grid; place-items: center; flex: none; opacity: .8; }
.cb .ic { width: 14px; height: 14px; stroke-width: 3; }
.todo.done .cb { background: var(--acc); border-color: var(--acc); color: #fff; opacity: 1; }
.todo.done b { color: var(--sub); text-decoration: line-through; }
.foot { color: var(--sub); font-size: 13px; padding: 12px 8px; line-height: 1.4; }
.textbtn { display: block; margin: 22px auto 0; padding: 8px 14px; color: var(--acc); font-size: 15px; font-weight: 500; text-align: center !important; }
.textbtn.danger { color: var(--danger); }
.sw { width: 51px; height: 31px; border-radius: 99px; background: var(--sw); position: relative; flex: none; transition: background .2s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.sw.on { background: var(--ok); } .sw.on i { transform: translateX(20px); }

/* progress bars */
.bar { display: block; flex: 1; height: 7px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar.thin { height: 4px; margin-top: 7px; width: 150px; flex: none; }
.bar b { display: block; height: 100%; border-radius: 99px; background: var(--acc); transition: width 1.4s linear; }
.bar.st-stuck b { background: var(--warn); }
.bar.st-paused b, .bar.st-stopped b { background: var(--sub); opacity: .7; }
.bar.st-done b { background: var(--ok); }
.pct { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

/* job card (compact) */
.job { background: var(--card); border-radius: 12px; padding: 8px 12px 9px; cursor: pointer; text-align: left; min-width: 0; max-width: 100%; width: 100%; overflow: hidden; }
.j1 { display: flex; align-items: baseline; gap: 7px; min-width: 0; height: 18px; line-height: 18px; }
.j1 b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.jp { font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
.jeta { margin-left: auto; align-self: center; }
.jm { margin-left: 0; width: 28px; height: 18px; display: grid; place-items: center; color: var(--sub); flex: none; align-self: center; margin-right: -6px; }
.jm .ic { width: 18px; height: 18px; }
.pg { display: flex; align-items: center; gap: 10px; margin: 12px 0 9px; }
.job .pg { margin: 6px 0 0; height: 14px; }
.jwait { font-size: 13px; line-height: 16px; margin-top: 3px; text-align: center; color: var(--warn); font-weight: 600; }
.job .pct { font-size: 13px; line-height: 14px; min-width: 34px; }
.job-bot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 15px; height: 15px; }
.jstep { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jeta { color: var(--sub); font-size: 12.5px; white-space: nowrap; flex: none; }
.job.st-stuck .jstep { color: var(--warn); }
.job.st-paused .jstep, .job.st-stopped .jstep { color: var(--sub); }
.stack { gap: 8px; }

/* working-on strip */
.strip { display: block; width: 100%; background: var(--card); border-radius: var(--r); padding: 11px 16px 13px; margin: 2px 0 6px; }
.strip-h { display: flex; justify-content: space-between; align-items: center; color: var(--sub); font-size: 13px; font-weight: 600; }
.strip-h .ic { width: 14px; height: 14px; opacity: .6; }
.sj { display: grid; grid-template-columns: minmax(0, 1fr) 74px 38px; align-items: center; gap: 10px; margin-top: 10px; }
.sj .sn { font-size: 15px; font-weight: 500; white-space: nowrap; display: flex; min-width: 0; align-items: baseline; }
.sj .snn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sj .sn i { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; max-width: 45%; }
.sj .sn i { font-style: normal; color: var(--sub); font-size: 13px; font-weight: 400; margin-left: 6px; }
.sj .bar { height: 5px; } .sj .pct { font-size: 13px; color: var(--sub); min-width: 0; }

/* tab bar */
.tabs { flex: none; display: flex; padding: 6px 8px calc(6px + max(env(safe-area-inset-bottom), 0px)); background: var(--bar); border-top: .5px solid var(--ln); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.framed .tabs { padding-bottom: 22px; }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--sub); font-size: 10.5px; font-weight: 500; text-align: center !important; }
.tabs button .ic { width: 25px; height: 25px; }
.tabs button.on { color: var(--acc); }

/* chat */
.chead { display: flex; align-items: center; gap: 4px; padding: 4px 8px 6px; flex: none; }
.chead .back { margin: 0; padding: 6px 8px; }
.ctitle { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center !important; padding: 2px 0; min-width: 0; }
.ctitle b { font-size: 17px; font-weight: 600; }
.ctitle small { font-size: 12px; color: var(--acc); display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; display: flex; flex-direction: column; }
.msg.me { align-self: flex-end; align-items: flex-end; } .msg.them { align-self: flex-start; }
.msg.wide { align-self: stretch; max-width: none; }
.bub { padding: 9px 14px; border-radius: 19px; font-size: 16px; line-height: 1.35; background: var(--them); }
.me .bub { background: var(--acc); color: #fff; border-bottom-right-radius: 6px; }
.them .bub { border-bottom-left-radius: 6px; }
.bub ul { margin-top: 6px; padding-left: 18px; } .bub li { margin: 2px 0; }
.bub.voice { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; }
.vplay { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; flex: none; }
.vplay .ic { width: 16px; height: 16px; }
.wave { display: flex; align-items: center; gap: 2.5px; height: 24px; } .wave i { display: block; width: 3px; border-radius: 2px; background: rgba(255,255,255,.85); }
.vdur { font-size: 13px; opacity: .9; font-variant-numeric: tabular-nums; }
.vtext { font-size: 12.5px; color: var(--sub); margin: 4px 6px 0; max-width: 260px; text-align: right; }
.typing { display: flex; gap: 4px; padding: 13px 14px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sub); opacity: .5; animation: bl 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

.card { background: var(--card); border-radius: 14px; padding: 14px 16px; }
.ask b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.ask small { display: block; color: var(--sub); font-size: 13px; margin-top: 4px; }
.ask-btns { display: flex; gap: 10px; margin-top: 14px; } .ask-btns .btn { flex: 1; }
.ask-done { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ok); font-size: 15px; font-weight: 600; }
.ask-done .ic { width: 18px; height: 18px; stroke-width: 2.6; } .ask-done.no { color: var(--sub); }
.q-h { display: flex; justify-content: space-between; color: var(--sub); font-size: 13px; }
.q { display: block; font-size: 18px; font-weight: 600; margin: 8px 0 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 10px 16px; border-radius: 99px; background: var(--soft); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.opt:hover { background: var(--acc); color: #fff; }
.qa { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 15px; } .qa small { color: var(--sub); font-size: 14px; } .qa span { font-weight: 600; color: var(--acc); }
.card > b:first-child { display: block; font-size: 16px; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: var(--r); background: var(--acc); color: #fff !important; font-size: 16px; font-weight: 600; text-align: center !important; }
.btn.quiet { background: var(--soft); color: var(--ink) !important; }
.btn.block { display: flex; width: 100%; height: 50px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; }

/* composer + commands */
.composer { position: relative; flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px calc(10px + max(env(safe-area-inset-bottom), 0px)); }
.framed.k-phone .composer { padding-bottom: 22px; }
.cmd { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--acc); font-size: 21px; font-weight: 600; display: grid; place-items: center; flex: none; text-align: center !important; }
.cmd.on { background: var(--acc); color: #fff; }
.field { flex: 1; display: flex; align-items: flex-end; min-height: 40px; background: var(--card); border: .5px solid var(--ln); border-radius: 20px; padding: 0 4px 0 15px; min-width: 0; }
.field input, .field textarea { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; }
/* CP-015 growing composer (match Cord/iMessage): 1 line -> up to ~6 lines, then scrolls inside */
.field textarea { display: block; resize: none; line-height: 22px; padding: 9px 0; height: 40px; max-height: 140px; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; white-space: pre-wrap; word-break: break-word; font-family: inherit; color: inherit; }
.field [data-slot], .field .clip { align-self: flex-end; margin-bottom: 4px; }
.field input::placeholder, .field textarea::placeholder { color: var(--sub); opacity: .8; }
.field [data-slot] { display: flex; }
.mic, .send { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mic { color: var(--sub); } .mic .ic { width: 21px; height: 21px; }
.send { background: var(--acc); color: #fff; } .send .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.picker { position: absolute; left: 12px; right: 12px; bottom: 100%; margin-bottom: -2px; background: var(--card); border-radius: 16px; padding: 6px; box-shadow: 0 10px 34px rgba(0,0,0,.18), 0 0 0 .5px var(--ln); z-index: 5; max-height: 330px; overflow: auto; }
.rdev.dark .picker { background: #3A3A3C; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; }
.prow:hover { background: var(--soft); } .rdev.dark .prow:hover { background: #48484A; }
.prow .ic { color: var(--acc); width: 20px; height: 20px; }
.prow b { font-size: 15px; font-weight: 600; } .prow small { margin-left: auto; color: var(--sub); font-size: 13px; }
.none { padding: 14px; color: var(--sub); font-size: 14px; }
.rec { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; background: var(--card); border-radius: 22px; padding: 0 6px 0 16px; }
.rec b { font-variant-numeric: tabular-nums; font-size: 15px; } .rec-l { flex: 1; color: var(--sub); font-size: 14px; }
.rdot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: bl 1.2s infinite; }

/* sheets */
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--card); border-radius: 24px 24px 0 0; padding: 8px 20px 22px; max-height: 88%; overflow-y: auto; box-shadow: 0 -12px 40px rgba(0,0,0,.18); }
.rdev.dark .sheet { background: #2C2C2E; }
.framed.k-phone .sheet { padding-bottom: 30px; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--ln); margin: 0 auto 14px; }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sheet-h h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.sheet-h small { color: var(--sub); font-size: 14px; display: block; margin-top: 2px; }
.sheet-h .ib { margin: -2px -8px 0 0; }
.big { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 10px; }
.big b { font-size: 42px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.big span { color: var(--sub); font-size: 15px; }
.sheet .pg { margin: 0; } .sheet .bar { height: 10px; }
.steps { list-style: none; padding: 0; margin: 20px 0 22px; }
.stp { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; font-size: 16px; }
.stp .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ln); display: grid; place-items: center; flex: none; margin-top: 0; }
.rdev.dark .stp .dot { border-color: #636366; }
.stp.done .dot { background: var(--acc); border-color: var(--acc); color: #fff; } .stp.done .dot .ic { width: 13px; height: 13px; stroke-width: 3.2; }
.stp.run .dot { border-color: var(--acc); box-shadow: inset 0 0 0 4px var(--card); background: var(--acc); }
.stp.todo { color: var(--sub); }
.sheet.menu { padding: 8px 14px 24px; }
.mi { display: block; width: 100%; padding: 15px 8px; text-align: center !important; font-size: 18px; color: var(--acc); }
.mi + .mi { border-top: .5px solid var(--ln); } .mi.danger { color: var(--danger); }
.sheet textarea { display: block; width: 100%; margin: 16px 0; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--soft); font-size: 16px; line-height: 1.4; resize: none; outline: none; }
.toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; background: rgba(30,30,32,.94); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* setup */
.ob { flex: 1; display: flex; flex-direction: column; padding: 16px 24px 30px; min-height: 0; }
.ob-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.ob-hero.top { justify-content: flex-start; padding-top: 50px; }
.ob-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.ob-hero p { color: var(--sub); font-size: 17px; line-height: 1.4; max-width: 300px; } .ob-hero p b { color: var(--ink); }
.ob-logo { width: 88px; height: 88px; border-radius: 24px; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 46px; font-weight: 700; margin-bottom: 8px; }
.ob-logo.ok { background: var(--ok); } .ob-logo .ic { width: 44px; height: 44px; stroke-width: 2.6; }
.ob-hero .group { width: 100%; text-align: left; margin-top: 18px; }
.ob-foot { display: flex; flex-direction: column; gap: 6px; }
.framed.k-phone .ob { padding-bottom: 36px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ln); } .dots i.on { background: var(--acc); }
.dlbar { text-align: center; } .dlbar .bar { height: 10px; margin-bottom: 10px; } .dlbar small { color: var(--sub); font-size: 14px; }
.ob-foot .textbtn { margin-top: 4px; }

/* desktop */
.app.dk { flex-direction: row; }
.rail { width: 84px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0; }
.rail-logo { width: 38px; height: 38px; border-radius: 11px; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.rail button { width: 62px; padding: 9px 0 7px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--sub); font-size: 11px; font-weight: 500; text-align: center !important; }
.rail button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.rail button.on { color: var(--acc); background: var(--card); }
.dk-split { flex: 1; min-width: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.dk-list { display: flex; flex-direction: column; min-height: 0; padding-top: 6px; }
.dk-chat { display: flex; flex-direction: column; min-height: 0; border-left: .5px solid var(--ln); }
.dk-chat .chead { padding: 10px 18px 6px; } .dk-chat .ctitle { align-items: flex-start; text-align: left !important; }
.dk-chat .msgs { padding: 12px 28px 16px; } .dk-chat .msg { max-width: 68%; } .dk-chat .msg.wide { align-self: flex-start; width: 460px; max-width: 80%; }
.dk-chat .composer { padding: 10px 24px 20px; } .dk-chat .picker { left: 24px; right: auto; width: 360px; }
.dk-page { flex: 1; min-width: 0; max-width: 720px; margin: 0 auto; width: 100%; padding-top: 18px; }
.dk-center { flex: 1; max-width: 440px; margin: 0 auto; }
.dk-page .lt h1 { font-size: 32px; }
.k-desktop .sheet { left: auto; top: 0; bottom: 0; right: 0; width: 420px; max-height: none; border-radius: 0; padding: 26px 26px 26px; box-shadow: -12px 0 40px rgba(0,0,0,.14); }
.k-desktop .sheet .grab { display: none; }
.k-desktop .sheet.menu { top: 50%; left: 50%; right: auto; bottom: auto; width: 320px; transform: translate(-50%, -50%); border-radius: 16px; padding: 6px 12px; }
.k-desktop .toast { bottom: 40px; }
.k-desktop .sj { grid-template-columns: minmax(0, 1fr) 52px 34px; gap: 8px; }
.k-desktop .sj .sn i { display: none; }
.k-desktop .ob { padding-top: 60px; }

/* week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--card); border-radius: var(--r); padding: 8px 4px 6px; margin-top: 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; text-align: center !important; }
.wd small { font-size: 12px; font-weight: 500; color: var(--sub); }
.wd b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 500; }
.wd.now b { color: var(--acc); font-weight: 700; }
.wd.sel b { background: var(--acc); color: #fff; font-weight: 700; }
.wd.sel small { color: var(--acc); font-weight: 600; }
.wd i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.wd i.on { background: var(--sub); opacity: .55; }
.wd.sel i.on, .wd.now i.on { background: var(--acc); opacity: 1; }
.wd:hover b { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.wd.sel:hover b { background: var(--acc); }
.week + .gh { margin-top: 18px; }
.row.todo:not(button) { min-height: 48px; }

/* brain */
.segs { display: flex; background: var(--soft); border-radius: 9px; padding: 2px; margin: 4px 0 18px; }
.segs button { flex: 1; text-align: center !important; padding: 7px 0; border-radius: 7px; font-size: 13.5px; font-weight: 500; }
.segs button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }
.rdev.dark .segs button.on { background: #636366; }
.row-main small.lbl { margin: 0 0 2px; }
.row-main small.wrap { white-space: normal; }   /* instructions must be readable in full */
.brainrow .br-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--acc); color: #fff; display: grid; place-items: center; flex: none; }
.brainrow .br-ic .ic { width: 22px; height: 22px; }
.group.sp { margin-top: 18px; }
.locked { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-size: 16px; line-height: 1.4; }
.locked .ic { color: var(--sub); width: 20px; height: 20px; margin-top: 1px; }
.sk-row { padding: 6px 0; } .sheet .sk-row { margin-top: 12px; }
.row[role=button] { cursor: pointer; }

/* projects */
.pjgrid { display: grid; gap: 10px; margin-top: 4px; }
.pj { background: var(--card); border-radius: 14px; padding: 13px 14px 12px; cursor: pointer; text-align: left; }
.pj-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pj-n b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pj-n small { display: block; font-size: 12.5px; color: var(--sub); margin-top: 1px; }
.pill { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--sub); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.pj-jobs { display: grid; gap: 7px; margin: 11px 0 10px; }
.mj { display: grid; grid-template-columns: minmax(0, 1fr) 84px 34px; align-items: center; gap: 10px; width: 100%; }
.mjn { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mj .bar { height: 5px; } .mj .pct { font-size: 12.5px; color: var(--sub); min-width: 0; }
.pj-none { font-size: 13.5px; color: var(--sub); margin: 11px 0 10px; }
.pj-f { display: flex; flex-direction: column; gap: 4px; border-top: .5px solid var(--ln); padding-top: 9px; font-size: 13px; color: var(--sub); }
.pj-f .need { color: var(--acc); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.pj-f .need .ic { width: 15px; height: 15px; margin-top: 1px; }
.pj-f .need i { font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-act u { text-decoration: none; display: inline-block; min-width: 46px; margin-right: 8px; font-weight: 600; opacity: .8; }
.pj-act { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sub); padding: 0 4px; }
.ask-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.ask-ic.w { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.ask-ic .ic { width: 18px; height: 18px; }
.ev-t.wide { width: 74px; font-size: 13px; }
.row.act { min-height: 44px; }

.k-desktop .dk-page.wide { max-width: 1040px; }
.k-desktop .pjgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-desktop .mj { grid-template-columns: minmax(0, 1fr) 110px 36px; }

/* ---------- real app additions (phase 1) — same tokens, nothing redesigned ---------- */
/* reply text */
.bub { overflow-wrap: anywhere; }
.bub code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 5px; border-radius: 5px; }
.bub pre { font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 8px 10px; border-radius: 9px; margin: 6px 0; overflow-x: auto; white-space: pre; }
.bub a { color: var(--acc); }
.me .bub a { color: #fff; }
.bub.err { background: color-mix(in srgb, var(--danger) 14%, var(--them)); }
.mnote { font-size: 12.5px; color: var(--sub); margin: 4px 6px 0; line-height: 1.3; }
.me .mnote { text-align: right; }
.mnote.fail { color: var(--danger); font-weight: 600; }
.empty { margin: auto; color: var(--sub); font-size: 15px; text-align: center; padding: 20px; } .empty b { color: var(--ink); }
/* quick-form buttons under a reply */
.msg.hasq { max-width: 92%; }
.opts.qf { margin-top: 8px; }
.opts.qf .opt { background: var(--card); color: var(--acc); box-shadow: 0 0 0 .5px var(--ln); text-align: left; line-height: 1.25; }
.opts.qf .opt:hover, .opts.qf .opt:active { background: var(--acc); color: #fff; }
/* attachments in a message */
.atts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; max-width: 260px; }
.me .atts { justify-content: flex-end; }
.att-img { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--soft); }
.att-img img { display: block; max-width: 220px; max-height: 260px; min-width: 60px; object-fit: cover; }
.atts .att-img:not(:only-child) img { width: 126px; height: 126px; }
.att-img.vid i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.att-img.vid i .ic { width: 34px; height: 34px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.att-vid { display: block; width: 240px; max-height: 300px; border-radius: 16px; background: #000; }
.att-file { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; max-width: 260px; box-shadow: 0 0 0 .5px var(--ln); }
.af-ic { width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); display: grid; place-items: center; flex: none; }
.af-ic .ic { width: 20px; height: 20px; }
.af-t { min-width: 0; } .af-t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-t small { display: block; font-size: 12px; color: var(--sub); margin-top: 1px; }
/* composer: attach button + pending tray */
.composer.has-tray { flex-wrap: wrap; }
.tray { flex-basis: 100%; display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; }
.tchip { position: relative; flex: none; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 30px 0 0; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 .5px var(--ln); max-width: 200px; overflow: hidden; }
.tchip img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.tchip .af-ic { margin-left: 10px; }
.tchip .tn { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tchip img + .tn { display: none; } .tchip:has(img) { padding-right: 0; }
.tchip button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.tchip button .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.clip { width: 32px; height: 32px; display: grid; place-items: center; color: var(--sub); flex: none; }
.clip .ic { width: 21px; height: 21px; }
/* photo viewer */
.viewer-bg { background: rgba(0,0,0,.88); }
.viewer { position: absolute; inset: 0; z-index: 22; display: grid; place-items: center; padding: max(env(safe-area-inset-top), 20px) 12px max(env(safe-area-inset-bottom), 20px); }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 6px; }
/* connection sheet */
.fld { display: block; margin-top: 14px; }
.fld span { display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin: 0 4px 6px; }
.fld input { display: block; width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--soft); font-size: 16px; outline: none; }
.sheet.conn .ask-btns { margin-top: 18px; }
.foot.warn { color: var(--warn); padding-bottom: 0; } .foot.okc { color: var(--ok); padding-bottom: 0; }
/* real app: the app fills the screen; sheets clear the home indicator */
.bare .sheet { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.jwait { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.typing { align-items: center; } .typing .think { color: var(--sub); font-size: 15px; margin-right: 4px; }

/* Jobs grouped by project */
.jg { margin-top: 14px; }
.jgh { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 6px 6px; text-align: left; border-radius: 10px; }
.jgc { width: 18px; height: 18px; color: var(--sub); transition: transform .15s; display: grid; place-items: center; } .jgc .ic { width: 16px; height: 16px; }
.jg.open .jgc { transform: rotate(90deg); }
.jgn { flex: 1; min-width: 0; } .jgn b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; } .jgn small { display: block; color: var(--sub); font-size: 13px; }
.badge { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--soft); color: var(--sub); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.badge.hot { background: var(--acc); color: #fff; }
.jgb { display: grid; gap: 8px; margin: 4px 0 6px; }

/* Real projects */
.row.ws { text-decoration: none; color: inherit; } .thr { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--acc); font-size: 14px; font-weight: 600; } .thr .ic { width: 15px; height: 15px; }
.need2 { color: var(--acc); font-weight: 600; margin-left: 6px; }

/* Calendar */
.seg { display: inline-flex; background: var(--soft); border-radius: 9px; padding: 2px; }
.seg button { min-height: 32px; min-width: 56px; padding: 0 12px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--sub); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.calnav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 0 4px; }
.calnav .ib { width: 44px; height: 44px; } .calnav .fwd .ic { transform: rotate(180deg); }
.calnow { flex: 1; min-height: 44px; text-align: center !important; } .calnow b { display: block; font-size: 17px; } .calnow small { color: var(--sub); font-size: 13px; }
.calsum { text-align: center; color: var(--sub); font-size: 14px; margin: 2px 0 12px; }
.cgrid { display: flex; background: var(--card); border-radius: 14px; padding: 0 4px 6px 0; overflow: hidden; }
.chrs { flex: none; width: 26px; } .chbody { position: relative; } .chbody span { position: absolute; right: 3px; font-size: 9.5px; color: var(--sub); transform: translateY(-6px); }
.cday { flex: 1; min-width: 0; border-left: .5px solid var(--ln); }
.cdh { height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; } .cdh small { font-size: 10px; color: var(--sub); } .cdh b { font-size: 14px; font-weight: 600; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cdh.now b { background: var(--acc); color: #fff; }
.ccol { position: relative; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 25px, var(--ln) 25px, var(--ln) 26px); }
.cb { position: absolute; padding: 1px 2px; border-radius: 5px; background: var(--c); color: #fff; font-size: 9px; line-height: 1.1; overflow: hidden; text-align: left !important; border: 1px solid var(--card); box-sizing: border-box; }
.cb span { display: block; overflow: hidden; word-break: break-word; max-height: 100%; }
.cb.bad { background: repeating-linear-gradient(135deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 55%, #fff) 5px 10px); outline: 2px solid var(--danger); outline-offset: -2px; }
.cb.run { outline: 2px dashed #fff; outline-offset: -3px; }
.dot { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; }
.row .dot { margin-right: 2px; }
.row.tot .row-val b { color: var(--ink); font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 6px 0; font-size: 12.5px; color: var(--sub); } .legend span { display: inline-flex; align-items: center; gap: 5px; } .legend .dot { width: 9px; height: 9px; }
.sheet.cal .cal-t { font-size: 15.5px; line-height: 1.4; margin: 0 4px; white-space: pre-wrap; word-break: break-word; }
.sheet.cal .sheet-h small .dot { width: 9px; height: 9px; margin-right: 3px; }
.sheet.cal a.btn { display: block; text-align: center; text-decoration: none; margin-top: 16px; }
.k-desktop .ccol, .k-desktop .cgrid { font-size: inherit; } .k-desktop .cb { font-size: 11px; }

/* ---------- round 2: Listen, voice notes, worksheet cards, live call ---------- */
.mic { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.vtext.wait { color: var(--sub); font-style: italic; }
.listen { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 0 4px; }
.lbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 4px; color: var(--acc); font-size: 14px; font-weight: 600; }
.lbtn .ic { width: 20px; height: 20px; }
.lbtn.loading .ic { animation: lpulse 1s ease-in-out infinite; }
@keyframes lpulse { 50% { opacity: .35; } }
.lbar { flex: 1 1 80px; max-width: 160px; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.lbar b { display: block; height: 100%; background: var(--acc); width: 0; transition: width .25s linear; }
.lerr { flex-basis: 100%; color: var(--sub); font-size: 12.5px; } .lerr.bad { color: var(--danger); }
.callmark { align-self: center; text-align: center; color: var(--sub); font-size: 13px; margin: 6px 0; }
.callmark span { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 99px; padding: 5px 12px; } .callmark .ic { width: 15px; height: 15px; }

.card.ws { padding: 0; overflow: hidden; }
.wsh { display: block; width: 100%; padding: 14px 16px; }
.wst { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; } .wst b { font-size: 17px; font-weight: 650; }
.wspill { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--sub); }
.wspill.s-questions { background: color-mix(in srgb, var(--warn) 22%, var(--card)); color: var(--warn); }
.wspill.s-done { background: color-mix(in srgb, var(--ok) 22%, var(--card)); color: var(--ok); }
.wsd { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; color: var(--sub); font-size: 14.5px; line-height: 1.35; }
.card.ws.open .wsd { -webkit-line-clamp: unset; }
.wsc { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.wsn { font-size: 14px; font-weight: 600; } .wsbar { flex: 1; height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; } .wsbar b { display: block; height: 100%; background: var(--ok); }
.wschev { color: var(--sub); display: inline-flex; } .wschev .ic { width: 18px; height: 18px; transform: rotate(0deg); } .card.ws.open .wsh .wschev .ic { transform: rotate(90deg); }
.wsb { border-top: .5px solid var(--ln); padding: 4px 8px 14px; }
.wsq { padding: 4px 8px 8px; border-bottom: .5px solid var(--ln); } .wsq:last-of-type { border-bottom: 0; }
.wsqh { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 0; }
.wsnum { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 13px; font-weight: 700; color: var(--sub); }
.wsq.done .wsnum { background: var(--ok); color: #fff; } .wsnum .ic { width: 15px; height: 15px; }
.wsqt { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 550; overflow-wrap: anywhere; } .wsqt small { display: block; margin-top: 2px; color: var(--sub); font-weight: 400; font-size: 13.5px; }
.wso { margin: 2px 0 4px 36px; gap: 8px; } .wso .opt { min-height: 44px; display: inline-flex; align-items: center; }
.opt.on { background: var(--acc); color: #fff; }
.wsact { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 12px 8px 0; flex-wrap: wrap; } .wsact .btn { min-height: 44px; } a.btn.sm { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.wssent, .wshint { display: block; text-align: right; margin: 6px 8px 0; color: var(--sub); font-size: 12.5px; }
.sheet.wsqs .wsqtext { font-size: 17px; font-weight: 600; margin: 12px 2px 8px; }
.wsth { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.wsr { position: relative; background: var(--soft); border-radius: 14px; padding: 9px 40px 9px 12px; font-size: 15.5px; overflow-wrap: anywhere; white-space: pre-wrap; } .wsr small { display: block; color: var(--sub); font-size: 11.5px; margin-top: 2px; }
.wsdel { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--sub); } .wsdel .ic { width: 16px; height: 16px; }
.wsin { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; }
.wsin input { flex: 1; height: 44px; border-radius: 22px; border: 0; background: var(--soft); padding: 0 16px; font-size: 16px; outline: none; }
.wsin .send { width: 44px; height: 44px; background: var(--acc); color: #fff; }

/* the call */
.rdev.callv { box-sizing: border-box; position: fixed; inset: 0; height: var(--app-h, 100dvh); z-index: 200; display: flex; flex-direction: column; align-items: center; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); }
.callv .cv-top { text-align: center; } .callv .cv-top b { display: block; font-size: 22px; font-weight: 700; } .callv .cv-top small { color: var(--sub); font-size: 15px; font-variant-numeric: tabular-nums; }
.callv .cv-mid { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 6px; max-width: 520px; text-align: center; }
.callv .orb { --lvl: 0; position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.callv .orb i { position: absolute; inset: 0; border-radius: 50%; background: var(--acc); opacity: .16; transform: scale(calc(1 + var(--lvl) * .5)); transition: transform .08s; }
.callv .orb i + i { opacity: .1; transform: scale(calc(1.2 + var(--lvl) * .7)); }
.callv .orb-core { position: relative; width: 74px; height: 74px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; } .callv .orb-core .ic { width: 32px; height: 32px; }
.callv .orb.st-thinking .orb-core, .callv .orb.st-transcribing .orb-core { animation: lpulse 1.1s ease-in-out infinite; background: var(--warn); }
.callv .orb.st-speaking .orb-core { background: var(--ok); } .callv .orb.st-speaking i { animation: cpulse 1.2s ease-in-out infinite; }
.callv .orb.st-recording .orb-core { background: var(--danger); } .callv .orb.st-error .orb-core { background: var(--sub); }
@keyframes cpulse { 50% { transform: scale(1.35); opacity: .22; } }
.callv .cv-state { font-size: 20px; font-weight: 650; } .callv .cv-note { min-height: 18px; color: var(--sub); font-size: 13.5px; line-height: 1.35; padding: 0 8px; }
.callv .cv-trans { flex: 1; min-height: 0; width: 100%; max-width: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; -webkit-overflow-scrolling: touch; }
.callv .cl { max-width: 88%; padding: 8px 12px; border-radius: 16px; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; } .callv .cl small { display: block; font-size: 11.5px; color: var(--sub); font-weight: 600; }
.callv .cl.me { align-self: flex-end; background: var(--acc); color: #fff; } .callv .cl.me small { color: rgba(255,255,255,.75); }
.callv .cl.roger { align-self: flex-start; background: var(--card); } .callv .cl.err { color: var(--danger); }
.callv .cv-mode { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 2px; margin: 8px 0; }
.callv .cv-mode button { min-height: 44px; min-width: 110px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--sub); text-align: center; } .callv .cv-mode button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.callv .cv-barge { min-height: 44px; padding: 0 14px; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--sub); border-radius: 10px; } .callv .cv-barge[aria-pressed=true] { color: var(--ink); }
.callv .cv-btns { display: flex; gap: 14px; align-items: flex-start; justify-content: center; width: 100%; }
.callv .cv-b { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; font-size: 13px; font-weight: 600; text-align: center; }
.callv .cv-i { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); } .callv .cv-b.on .cv-i { background: var(--ink); color: var(--bg); }
.callv .cv-b.main .cv-i { width: 72px; height: 72px; background: var(--acc); color: #fff; } .callv .cv-b.main.rec .cv-i { background: var(--danger); }
.callv .cv-b.end .cv-i { background: var(--danger); color: #fff; } .callv .cv-b:disabled { opacity: .45; }
.callv.failed .cv-state { color: var(--danger); font-size: 17px; }

/* fixes 2026-10-05: nothing may be wider than the screen; app-like (no pinch / double-tap zoom, no text-size jump) */
.scroll, .page, .app { min-width: 0; max-width: 100%; }
.scroll { overflow-x: hidden; }
.scroll > *, .group > *, .stack > * { min-width: 0; max-width: 100%; }
.rdev, .rdev * { -webkit-touch-callout: none; }
.rdev button, .rdev a, .rdev .row, .rdev .job, .rdev .tabs * { touch-action: manipulation; }
.rdev input, .rdev textarea, .rdev .bub, .rdev pre { -webkit-user-select: text; user-select: text; }
.rdev :not(input):not(textarea):not(.bub):not(.bub *) { -webkit-user-select: none; user-select: none; }

/* Roger's working fold */
.fold { align-self: stretch; background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 14px; margin: 0 0 4px; overflow: hidden; }
.fhead { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 8px 12px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fhead .ft { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fhead .ft b { font-size: 14.5px; font-weight: 600; }
.fhead .ft small { font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fspin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--sub); border-top-color: transparent; opacity: .7; animation: fspin 0.9s linear infinite; flex: none; }
.fdone { width: 18px; height: 18px; color: var(--sub); flex: none; display: inline-flex; } .fdone svg { width: 18px; height: 18px; }
.fchev { width: 18px; height: 18px; color: var(--sub); flex: none; display: inline-flex; transition: transform .15s; } .fchev svg { width: 18px; height: 18px; }
.fold.open .fchev { transform: rotate(180deg); }
.steps { list-style: none; margin: 0; padding: 2px 12px 10px; max-height: 260px; overflow-y: auto; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.steps li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 13px; line-height: 1.35; }
.steps .se { flex: none; width: 20px; text-align: center; }
.steps .sl { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; } .steps .sl b { font-family: inherit; font-weight: 600; }
.steps small { flex: none; color: var(--sub); font-size: 12px; }
.steps li.fail small { color: var(--danger); }
@keyframes fspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fspin { animation-duration: 3s; } }
.att-aud { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 .5px var(--ln); max-width: 260px; }
.att-aud .af-t b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; } .att-aud small { color: var(--sub); font-size: 12px; }
.vlink { display: inline; padding: 1px 8px; border-radius: 10px; background: var(--card); color: var(--acc); font: inherit; font-weight: 600; box-shadow: 0 0 0 .5px var(--ln); }
.cbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 4px; color: var(--sub); font-size: 14px; font-weight: 600; } .cbtn .ic { width: 20px; height: 20px; }
.mi-t { margin: 4px 10px 8px; text-align: center; color: var(--sub); font-size: 13px; overflow-wrap: anywhere; }
.sbar2 { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.sfield { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 .5px var(--ln); }
.sfield .ic { width: 18px; height: 18px; color: var(--sub); }
.sfield input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; color: var(--ink); outline: 0; }
.scount { padding: 0 16px 4px; color: var(--sub); font-size: 13px; }

/* every single-column grid must let its track shrink (long nowrap text was widening the whole list) */
.pjgrid, .pj-jobs, .pj-f, .strip, .group { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; }
.k-desktop .pjgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj, .pj-h, .pj-n, .pj-top, .strip, .sj { min-width: 0; max-width: 100%; }
.pj { overflow: hidden; }
.pj-n { flex: 1 1 auto; overflow: hidden; } .pj-n b, .pj-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-pill, .pj-h > :last-child { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.bar.indet b { width: 40% !important; animation: indet 1.6s ease-in-out infinite; transition: none; }
@keyframes indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar.indet b { animation: none; margin-left: 0; width: 100% !important; opacity: .45; } }
.steps .sout { display: block; margin-top: 3px; padding: 4px 6px; border-radius: 6px; background: var(--card); box-shadow: 0 0 0 .5px var(--ln); color: var(--sub); font-size: 11.5px; white-space: pre-wrap; max-height: 5.2em; overflow: hidden; }
.approve { align-self: stretch; border: 1px solid var(--acc); border-radius: 14px; padding: 10px 12px; margin: 0 0 4px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.approve small { color: var(--sub); }
.approve code { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--card); padding: 6px; border-radius: 8px; }
.approve .opts { display: flex; gap: 8px; flex-wrap: wrap; }
.wsqt small.wsctx, p.wsctx { color: var(--sub); font-weight: 400; font-size: 13px; font-style: italic; }
p.wsctx { margin: 0 2px 10px; }
.wsqt small.wssv { font-size: 12px; } .wsqt small.wssv.ok { color: var(--ok, #1f8a4c); } .wsqt small.wssv.later { color: var(--sub); }

/* ---------- Team page (Agents + Simulation) ---------- */
.tm-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex: none; position: relative; color: #fff; }
.tm-av i { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--card); background: var(--sub); }
.tm-av i.working { background: var(--ok); } .tm-av i.blocked { background: var(--danger); } .tm-av i.idle { background: #aeaeb2; }
.tm-row .row-main small { white-space: normal; overflow: visible; display: block; }
.tm-bar { height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; margin-top: 6px; } .tm-bar b { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.tm-bar.ind b { width: 35%; animation: tmind 1.4s ease-in-out infinite alternate; } @keyframes tmind { from { margin-left: 0; } to { margin-left: 65%; } }
.tm-lv { font-size: 12px; font-weight: 700; color: var(--acc); }
.tm-sec { padding: 4px 16px 12px; } .tm-sec h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }
.tm-prof { display: flex; gap: 14px; align-items: center; padding: 6px 4px 10px; } .tm-prof .tm-av { width: 64px; height: 64px; font-size: 32px; }
.tm-prof h2 { margin: 0; font-size: 22px; } .tm-prof p { margin: 2px 0 0; color: var(--sub); font-size: 14px; }
.tm-ta { width: 100%; min-height: 150px; border: 1px solid var(--ln); border-radius: 12px; background: var(--card); color: var(--ink); font: 14px/1.4 inherit; padding: 10px 12px; box-sizing: border-box; resize: vertical; }
.tm-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tm-btns .btn { flex: 1; min-width: 120px; }
.tm-note { color: var(--sub); font-size: 13px; line-height: 1.35; margin: 6px 2px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; } .tm-chips .chip { white-space: nowrap; }
.tm-sw { display: inline-flex; gap: 8px; flex-wrap: wrap; } .tm-sw button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; } .tm-sw button.on { border-color: var(--ink); }
.tm-simwrap { position: relative; flex: 1; min-height: 0; margin: 0; background: #1b2230; overflow: hidden; touch-action: none; }
.tm-simslot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tm-sim { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.tm-hud { position: absolute; left: 0; right: 0; top: 0; padding: 6px 8px; pointer-events: none; display: flex; flex-direction: column; gap: 5px; z-index: 2; font-size: 12px; color: #fff; }
.tm-hud > * { pointer-events: none; } .tm-hud .tm-hp, .tm-hud .tm-tick { pointer-events: auto; }
.tm-hr { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tm-hp { font-size: 11px; background: rgba(10,14,24,.72); backdrop-filter: blur(6px); border-radius: 99px; padding: 3px 8px; white-space: nowrap; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.tm-hp.btn2 { cursor: pointer; border: 0; color: #fff; font: inherit; font-weight: 600; min-height: 28px; }
.tm-meter { display: inline-block; width: 30px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; } .tm-meter b { display: block; height: 100%; background: #5ac8fa; } .tm-meter.hi b { background: #ff9f0a; }
.tm-td { width: 9px; height: 9px; border-radius: 50%; display: inline-block; } .tm-td.working { background: #34c759; } .tm-td.idle { background: #aeaeb2; } .tm-td.blocked { background: #ff453a; }
.tm-tick { font-size: 11px; background: rgba(10,14,24,.72); border-radius: 10px; padding: 4px 9px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ctl { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.tm-ctl button { width: 38px; height: 38px; border-radius: 50%; background: rgba(10,14,24,.72); color: #fff; border: 0; font-size: 18px; display: grid; place-items: center; }
.tm-ctl button.on { background: var(--acc); }
.tm-joy { position: absolute; left: 14px; bottom: 14px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); z-index: 2; touch-action: none; }
.tm-joy i { position: absolute; left: 35px; top: 35px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.65); }
.tm-opts { position: absolute; left: 8px; right: 58px; top: 74px; max-height: calc(100% - 90px); overflow: auto; z-index: 3; background: rgba(10,14,24,.92); border-radius: 14px; padding: 10px 12px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13px; }
.tm-opts label { display: flex; gap: 8px; align-items: center; min-height: 28px; } .tm-opts h5 { grid-column: 1 / -1; margin: 0; font-size: 12px; opacity: .7; text-transform: uppercase; }
.tm-tip { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; background: rgba(10,14,24,.92); color: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.35; max-height: 46%; overflow: auto; }
.tm-tip b { font-size: 15px; } .tm-tip button { color: #fff; background: rgba(255,255,255,.16); border: 0; border-radius: 99px; padding: 6px 12px; font: inherit; font-weight: 600; margin: 6px 6px 0 0; min-height: 32px; }
.tm-watch { position: absolute; inset: 0; z-index: 4; background: #000; color: #fff; display: flex; flex-direction: column; gap: 6px; padding: 12px; font-size: 14px; overflow: auto; }

/* Jobs queue (List / Board, filters, drag) */
.qbar { display: grid; gap: 10px; margin: 2px 0 6px; }
.qtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qsort { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-size: 14px; }
.qsort select { min-height: 36px; border-radius: 9px; border: 0; background: var(--soft); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; padding: 0 8px; }
.qchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.qchips::-webkit-scrollbar { display: none; }
.qchip { flex: none; min-height: 36px; padding: 0 13px; border-radius: 18px; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.qchip i { font-style: normal; font-size: 12px; opacity: .65; }
.qchip.on { background: var(--acc); color: #fff; } .qchip.on i { opacity: .85; }
.qchip.clear { background: transparent; color: var(--acc); }
.qmeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--sub); font-size: 14px; }
.qmeta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qmeta b { color: var(--ink); font-weight: 600; }
.qlink { flex: none; min-height: 36px; color: var(--acc); font-size: 14px; font-weight: 600; }
.qhint { color: var(--sub); font-size: 13px; margin: 2px 4px; }
.qtail { margin-top: 20px; }
.qgroup { overflow: hidden; }
.qsec + .qsec { border-top: .5px solid var(--ln); }
.qrow { position: relative; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 4px 6px 4px 2px; background: var(--card); }
.qrow + .qrow { border-top: .5px solid var(--ln); }
.qrow.parked { opacity: .65; }
/* .rdev button sets touch-action: manipulation; the handle must win or iOS scrolls instead of dragging */
.qh, .rdev .qh { flex: none; width: 40px; height: 48px; display: grid; place-items: center; color: var(--sub); touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.qh .ic { width: 20px; height: 20px; } .qh.off { cursor: default; width: 14px; }
.qmain { flex: 1; min-width: 0; text-align: left; padding: 6px 4px; min-height: 44px; }
.qmain b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qmain small { display: block; color: var(--sub); font-size: 12.5px; margin-top: 1px; }
.qpill { flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--soft); color: var(--sub); }
.qpill.active { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); }
.qpill.blocked { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.qpill.done { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.qm { flex: none; width: 40px; height: 44px; display: grid; place-items: center; color: var(--sub); } .qm .ic { width: 20px; height: 20px; }
.qrow.dragging { z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.28); border-radius: 12px; transition: none; opacity: 1; }
.dragging-list .qrow:not(.dragging) { transition: transform .15s; }
.qboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.qcol { background: var(--soft); border-radius: 14px; padding: 8px; min-width: 0; }
.qcol h3 { display: flex; align-items: center; justify-content: space-between; font-size: 15px; padding: 4px 6px 8px; }
.qcards { display: grid; gap: 8px; } .qcards .qrow { border-radius: 12px; border: 0; } .qcards .qrow + .qrow { border-top: 0; }
.qcards .qpill { display: none; } .qempty { color: var(--sub); font-size: 14px; padding: 8px; }
.k-phone .qboard, .rdev:not(.k-desktop) .qboard { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; -webkit-overflow-scrolling: touch; }
.k-phone .qcol, .rdev:not(.k-desktop) .qcol { flex: none; width: 84%; scroll-snap-align: center; }
.qsheet .qdetail { color: var(--sub); font-size: 14px; margin: 4px 0 8px; white-space: pre-wrap; max-height: 110px; overflow: auto; }
.qnotes { margin: 0 0 10px 18px; color: var(--sub); font-size: 13px; } .qnotes li { margin: 2px 0; }
.qacts { display: grid; gap: 8px; margin: 10px 0; } .qacts.two { grid-template-columns: 1fr 1fr; }
.qacts .btn { min-height: 46px; }

.qsend { flex: none; padding: 0 12px; } .dk-chat .qsend { padding: 0 24px; }
.qsend-h { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--sub, #6b6b72); font: inherit; font-size: 13px; padding: 4px 0; cursor: pointer; }
.qsend-h b, .qsend-h span { font-weight: 600; } .qsend-h small { opacity: .8; }
.qsend-h svg { width: 14px; height: 14px; transition: transform .15s; transform: none; } .qsend.open .qsend-h svg { transform: rotate(90deg); }
.qsend-b { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 0 6px; } .qsend-b .btn { min-height: 40px; font-size: 14px; }

/* Needs You */
.ntabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 96px; }
.ncount { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font: 600 12px/18px var(--font); text-align: center; }
.nlist { display: grid; gap: 12px; }
.nm { background: var(--card); border-radius: 14px; overflow: hidden; }
.nm-main { display: grid; gap: 6px; width: 100%; text-align: left; padding: 14px 14px 8px; }
.nm-job { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nm-job b { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-job .chev { width: 16px; height: 16px; color: var(--sub); flex: none; }
.nm-proj { font-style: normal; font-size: 12px; font-weight: 600; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); padding: 2px 8px; border-radius: 99px; flex: none; }
.nm-q { font-size: 17px; font-weight: 600; line-height: 1.3; }
.nm-why { color: var(--sub); font-size: 14px; line-height: 1.35; }
.nm-ex { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); } .nm-ex li { margin: 2px 0; }
.nm-shots { display: flex; gap: 8px; overflow-x: auto; } .nm-shots img { height: 96px; width: auto; max-width: 70%; border-radius: 8px; background: var(--soft); object-fit: cover; }
.nm-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 14px; }
.nm-opts .opt { text-align: left; } .nm-opts .opt b { color: var(--acc); margin-right: 4px; } .nm-opts .opt:hover b { color: #fff; }
.nm-opts .opt.other { background: transparent; box-shadow: inset 0 0 0 1px var(--ln); }
.nm-other { display: flex; gap: 8px; align-items: flex-end; padding: 0 14px 14px; }
.nm-other textarea { flex: 1; min-width: 0; border-radius: 12px; background: var(--soft); padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); resize: none; }
.nm-sheet { display: grid; gap: 6px; margin: 4px 0 10px; padding: 12px; background: var(--soft); border-radius: 12px; } .nm-sheet .nm-opts, .nm-sheet .nm-other { padding: 6px 0 0; }
.nm-sheet .nm-opts .opt { background: var(--card); box-shadow: 0 0 0 .5px var(--ln); } .nm-sheet .nm-opts .opt.other { background: transparent; box-shadow: inset 0 0 0 1px var(--ln); }
.card.nmc { display: grid; gap: 4px; } .card.nmc > small { color: var(--acc); font-weight: 600; }
.card.nmc .q { margin: 4px 0 6px; } .nm-link { text-align: left; font-size: 14px; color: var(--sub); } .nm-link b { font-weight: 500; }
.card.nmc .nm-opts, .card.nmc .nm-other { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.card.nmc.done .q { color: var(--sub); }
.qpill.needs { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.qrow.st-needs .qmain small { white-space: normal; }
.qcoltabs { display: none; gap: 6px; overflow-x: auto; padding: 2px 0 10px; }
.qcoltabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--soft); color: var(--sub); font-size: 14px; font-weight: 600; }
.qcoltabs button.on { background: var(--acc); color: #fff; } .qcoltabs i { font-style: normal; font-size: 12px; opacity: .85; }
.k-phone .qcoltabs, .rdev:not(.k-desktop) .qcoltabs { display: flex; }
.qstat .qempty { padding: 4px 14px 10px; }
.qstat.st-needs .jgn b { color: var(--danger); }

/* Jobs: compact rows (emoji, short title, project), progress bar, record view */
.qem { flex: none; width: 26px; text-align: center; font-size: 18px; line-height: 1; }
.qrow { min-height: 48px; }
.qmain b { -webkit-line-clamp: 1; font-size: 15px; }
.qmain small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow.st-needs .qmain small { white-space: normal; }
.qbar2 { display: block; height: 4px; margin-top: 5px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.qbar2 i { display: block; height: 100%; background: var(--acc); border-radius: 99px; }
.qbar2.ind i { opacity: .55; }
.qcheck, .qproof { list-style: none; margin: 0 0 8px; padding: 0 4px; font-size: 14.5px; }
.qcheck li, .qproof li { padding: 4px 0; } .qcheck li.done { color: var(--sub); } .qproof a { color: var(--acc); word-break: break-word; }

/* Projects: company groups, details toggle */
.pjco { margin-top: 6px; }
.pjdet { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 4px 4px 0; color: var(--sub); font-size: 14px; }
.pj.slim { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; }
.pj.slim .pj-n { flex: 1; min-width: 0; } .pj.slim .pj-n b { display: block; } .pj.slim .pj-n small { color: var(--sub); }
