/* v71 shell (js/v2-shell.js): top bar, bell panel, sidebar, phone dock, New menu, Settings, stat tiles.
   Black and white; red only for problems, green only for wins. Bebas Neue headings, Montserrat text. */
:root { --v2-ink: #0b0b0b; --v2-line: rgba(0,0,0,.09); --v2-line2: rgba(0,0,0,.16); --v2-mute: #6a6a66; --v2-soft: #f7f7f5; --v2-bad: #cf2a1f; --v2-badbg: rgba(207,42,31,.08); --v2-good: #12844a; --v2-goodbg: rgba(18,132,74,.10); }
.v2-h2 { font-family: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif; font-weight: 400; font-size: 28px; letter-spacing: .03em; line-height: 1; margin: 0; text-transform: uppercase; }
.v2-sub { color: var(--v2-mute); margin: 8px 0 0; font-size: 14px; }
.v2-small { font-size: 12.5px; } .muted { color: var(--v2-mute); } .v2-small.bad { color: var(--v2-bad); }
.v2-note { font-size: 12.5px; color: var(--v2-mute); margin: 10px 0 0; line-height: 1.5; }
.v2-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.v2-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; background: rgba(0,0,0,.06); color: #2a2a28; white-space: nowrap; }
.v2-pill.good { background: var(--v2-goodbg); color: var(--v2-good); } .v2-pill.bad { background: var(--v2-badbg); color: var(--v2-bad); }
.v2-pill.ink { background: var(--v2-ink); color: #fff; } .v2-pill.line { background: none; border: 1px solid var(--v2-line2); }
.v2-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--v2-ink); }
.v2-dot.good { background: var(--v2-good); } .v2-dot.bad { background: var(--v2-bad); } .v2-dot.ink { background: var(--v2-ink); }
.v2-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.v2-tag.ext { background: var(--v2-ink); color: #fff; }
.v2-empty { padding: 22px; border: 1px dashed var(--v2-line2); border-radius: 14px; text-align: center; color: var(--v2-mute); font-size: 13px; }
.v2-empty b { display: block; color: var(--v2-ink); margin-bottom: 4px; }
.jjs-btn.v2-ghost, .ai-btn.v2-ghost { border-color: transparent; background: none; font-weight: 600; }
.ai-btn.v2-ghost { padding: 7px 10px; font-size: 12.5px; border: 1px solid transparent; }
.ai-btn.v2-ghost:hover, .ai-btn.v2-ghost.on { background: rgba(0,0,0,.05); color: var(--v2-ink); border-color: transparent; }

/* ---------- top bar: back link + breadcrumbs, search, Ask JJS, bell ---------- */
.jjs-topbar-in { justify-content: flex-start; align-items: center; flex-wrap: nowrap; }
.v2-topleft { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2-topleft:empty { display: block; }
.v2-topleft .jjs-back { margin: 0; }
.v2-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--v2-mute); font-size: 13px; min-width: 0; }
.v2-crumbs button { background: none; border: 0; padding: 0; color: var(--v2-mute); font: inherit; cursor: pointer; }
.v2-crumbs button:hover { color: var(--v2-ink); text-decoration: underline; }
.v2-crumbs > span:not(.v2-crumb-sep) { color: var(--v2-ink); font-weight: 600; }
.v2-crumb-sep { display: inline-flex; color: #a4a49f; } .v2-crumb-sep .jjs-ico { width: 14px; height: 14px; }
.jjs-topsearch { flex: 0 1 320px; }
.jjs-topsearch kbd { font-size: 10.5px; border: 1px solid var(--v2-line2); border-radius: 5px; padding: 1px 5px; color: var(--v2-mute); font-family: inherit; }
.v2-bell { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--v2-line2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--v2-ink); flex: none; }
.v2-bell:hover { border-color: var(--v2-ink); }
.v2-bell .jjs-ico { width: 18px; height: 18px; }
.v2-bell i { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--v2-bad); color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; display: grid; place-items: center; padding: 0 5px; }
.v2-panel { position: absolute; z-index: 45; top: 70px; right: 32px; width: min(400px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--v2-line); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.18); padding: 14px; }
.v2-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.v2-nt { display: flex; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font: inherit; color: inherit; align-items: flex-start; }
.v2-nt:hover { background: var(--v2-soft); }
.v2-nt + .v2-nt { margin-top: 2px; }
.v2-nt.unread { background: #f3f3f0; }
.v2-nt .v2-dot { margin-top: 6px; } .v2-nt .v2-tag { margin-top: 2px; }
.v2-nt p { margin: 0; font-size: 13px; overflow-wrap: anywhere; } .v2-nt small { color: var(--v2-mute); font-size: 11.5px; }
.v2-nt > div { min-width: 0; }

/* ---------- sidebar ---------- */
.v2-alllink { background: none; border: 0; color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.v2-alllink:hover, .v2-alllink.on { background: rgba(255,255,255,.14); }
.jjs-side .jjs-unreaddot { background: var(--v2-bad); width: 7px; height: 7px; }
.jjs-side .jjs-navbadge:not(.hot):not(.bad) { background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; padding: 1px 7px; min-width: 0; font-size: 11px; font-weight: 700; text-align: center; }
.jjs-side .jjs-navitem.on .jjs-navbadge:not(.hot):not(.bad) { background: rgba(0,0,0,.1); color: var(--v2-ink); }
.jjs-navbadge.hot, .jjs-side .jjs-navitem.on .jjs-navbadge.hot { background: var(--v2-bad); color: #fff; font-size: 11px; font-weight: 700; }
.jjs-side .jjs-navbadge.bad { font-size: 11px; }
.jjs-side .jjs-syncbadge, .jjs-side .jjs-syncbadge.saved, .jjs-side .jjs-syncbadge.saved .dot { color: rgba(255,255,255,.6); font-size: 11.5px; font-weight: 500; }
.jjs-side .jjs-syncbadge.saved .dot { background: #9a9a96; }
.jjs-side .jjs-syncbadge.saving .dot { background: #fff; }
.jjs-side { padding-bottom: 18px; }
.jjs-side .jjs-sidefoot { gap: 4px; padding-bottom: 6px; }
.v2-whoami { display: flex; flex-direction: column; gap: 4px; padding: 8px 4px 0; min-width: 0; }
.v2-who-main { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 6px; border-radius: 10px; cursor: pointer; text-align: left; color: #fff; font: inherit; min-width: 0; }
.v2-who-main:hover { background: rgba(255,255,255,.08); }
.v2-who-txt { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.v2-who-txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.v2-who-txt small { color: rgba(255,255,255,.55); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-who-row { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 48px; min-width: 0; flex-wrap: wrap; }
.v2-who-row .jjs-linktext { color: rgba(255,255,255,.75); font-size: 11.5px; text-decoration-color: rgba(255,255,255,.4); padding: 0; min-height: 0; }
.v2-who-row .jjs-linktext:hover { color: #fff; }
.v2-rolepill { font-size: 10.5px; font-weight: 700; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 0 7px; color: #fff; line-height: 18px; }
.v2-newbtn { width: 100%; border: 0; font: inherit; font-weight: 700; font-size: 14px; }

/* ---------- stat tiles: numbers black, red only for problems ---------- */
.jjs-proto .stat .n.good, .jjs-proto .stat.blk .n.good { color: inherit; }

/* ---------- New menu ---------- */
.v2-modal { max-width: 620px; border-radius: 24px; padding: 26px; }
.v2-new { position: relative; }
.v2-mx { position: absolute; right: -6px; top: -6px; border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--v2-ink); }
.v2-mx:hover { background: rgba(0,0,0,.05); }
.v2-new .v2-h2 { padding-right: 36px; }
.v2-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.v2-choice { border: 1px solid var(--v2-line2); border-radius: 16px; padding: 16px; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 6px; cursor: pointer; font: inherit; color: inherit; }
.v2-choice:hover { border-color: var(--v2-ink); background: #fafaf8; }
.v2-choice .jjs-ico { width: 18px; height: 18px; }
.v2-choice b { font-size: 14px; } .v2-choice span { font-size: 12.5px; color: var(--v2-mute); }
.v2-choose-more { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.v2-choice-row { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--v2-line2); border-radius: 12px; padding: 9px 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.v2-choice-row:hover { border-color: var(--v2-ink); background: #fafaf8; }
.v2-choice-row .jjs-ico { width: 16px; height: 16px; color: var(--v2-mute); }
.v2-choice-row b { font-size: 13px; } .v2-choice-row span { font-size: 12.5px; color: var(--v2-mute); }
.v2-picklist { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; max-height: 60vh; overflow: auto; }
.v2-pick-client { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-mute); padding: 10px 4px 2px; }
.v2-pick-client .jjs-clientdot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand, #888); display: inline-block; }
.v2-pick-proj { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--v2-line); border-radius: 12px; padding: 10px 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.v2-pick-proj:hover { border-color: var(--v2-ink); background: #fafaf8; }
.v2-pick-proj b { font-size: 13.5px; } .v2-pick-proj small { color: var(--v2-mute); font-size: 12px; }

/* ---------- Settings ---------- */
.v2-settings .jjs-seg.big { border-radius: 999px; padding: 4px; }
.v2-settings .jjs-seg.big button { border-radius: 999px; padding: 9px 18px; }
.v2-settings-note { margin: -6px 0 0; }
.v2-settings-body { display: flex; flex-direction: column; gap: 14px; }
.v2-card { padding: 20px; border-radius: 18px; }
.v2-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.v2-cardhead .v2-h2 { font-size: 26px; }
.v2-conn-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.v2-conn-title b { font-size: 14.5px; }
.v2-conn .jjs-datablock { padding: 0; border: 0; }
.v2-conn .jjs-datablock .jjs-help { margin: 0 0 10px; }
.v2-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.v2-logo.canva { background: linear-gradient(135deg, #00c4cc, #7d2ae8); color: #fff; }
.v2-logo.fio { background: #5b53ff; color: #fff; }
.v2-logo.drive { background: #1a73e8; color: #fff; }
.v2-logo.file { background: var(--v2-ink); color: #fff; }
.v2-logo .jjs-ico { width: 18px; height: 18px; }
.v2-connect { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--v2-line); background: #fff; flex-wrap: wrap; }
.v2-connect-txt { flex: 1; min-width: 200px; }
.v2-connect-txt b { font-size: 14.5px; }
.v2-connect-txt .v2-small { color: var(--v2-mute); margin-top: 2px; }
.v2-connect-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.v2-namebox { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--v2-ink); color: #fff; }
.v2-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.v2-fname { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; margin-top: 6px; word-break: break-all; }
.v2-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.v2-chip { border: 1px solid var(--v2-line2); background: #fff; border-radius: 999px; padding: 6px 6px 6px 13px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.v2-chip.fixed, .v2-chip:last-child:not(:has(.v2-chip-x)) { padding-right: 13px; }
.v2-chip-x { border: 0; background: none; padding: 2px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--v2-mute); }
.v2-chip-x:hover { background: rgba(0,0,0,.06); color: var(--v2-ink); }
.v2-chip-x .jjs-ico { width: 14px; height: 14px; }
.v2-chip-add { display: flex; gap: 6px; align-items: center; }
.v2-chip-add input { width: 170px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--v2-line2); border-radius: 12px; font: inherit; font-size: 13px; background: #fff; }
.v2-chip-add input:focus { outline: 2px solid var(--v2-ink); outline-offset: 0; }
.v2-num { width: 90px; padding: 9px 12px; border: 1px solid var(--v2-line2); border-radius: 12px; font: inherit; }
.v2-check { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; font-weight: 600; font-size: 13px; cursor: pointer; }
.v2-check input { width: 18px; height: 18px; accent-color: var(--v2-ink); margin: 0; flex: none; }
.v2-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.v2-kv .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--v2-mute); }
.v2-kv .v { font-weight: 700; font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.jjs-syncbadge.v2-light { padding: 4px 10px; border: 1px solid var(--v2-line2); border-radius: 999px; background: #fff; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--v2-mute); }
.jjs-syncbadge.v2-light.saved, .jjs-syncbadge.v2-light.saved .dot { color: var(--v2-mute); }
.jjs-syncbadge.v2-light.saved .dot { background: #9a9a96; }
.jjs-syncbadge.v2-light.error { color: var(--v2-bad); }
.v2-tablecard { padding: 6px 10px; }
.v2-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.v2-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.v2-tbl th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-mute); text-align: left; font-weight: 700; padding: 10px; border-bottom: 1px solid var(--v2-line); white-space: nowrap; }
.v2-tbl td { padding: 12px 10px; border-bottom: 1px solid var(--v2-line); vertical-align: top; }
.v2-tbl tr:last-child td { border-bottom: 0; }
.v2-tbl td.v2-small { max-width: 380px; line-height: 1.45; }
.v2-person { display: inline-flex; align-items: center; gap: 8px; }
.v2-person .tm-av { width: 24px; height: 24px; font-size: 10px; }
.v2-email { white-space: nowrap; }
.v2-rolesel { border: 1px solid var(--v2-line2); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; background: #fff; }
.v2-inp { border: 1px solid var(--v2-line2); border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 13px; width: 100%; min-width: 220px; background: #fff; }
.v2-can .jjs-btn { margin-top: 6px; }
.v2-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v2-li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--v2-line); background: #fff; min-width: 0; }
.v2-li.bad { background: var(--v2-badbg); border-color: rgba(207,42,31,.26); }
.v2-litxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2-litxt > b { font-size: 13.5px; overflow-wrap: anywhere; }
.v2-li.bad .v2-litxt > b { color: var(--v2-bad); }
.v2-litxt span { font-size: 12.5px; color: var(--v2-mute); }
.v2-todo { margin-top: 2px; color: var(--v2-ink) !important; }
.v2-liacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- phone ---------- */
.v2-dock, .v2-mdot { display: none; }
@media (max-width: 860px) {
  .jjs-mobilebar { gap: 10px; padding: 8px 12px; }
  .jjs-mobilebar .jjs-mobilebrand { margin-right: auto; }
  .v2-mdot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,.7); white-space: nowrap; }
  .v2-mdot i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a96; }
  .v2-mdot.saving i { background: #fff; } .v2-mdot.error i { background: #ff8a80; } .v2-mdot.error { color: #ff8a80; }
  .jjs-mobile-unread { background: var(--v2-bad); }
  .jjs-topbar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 10px 16px 0; align-items: center; }
  .v2-topleft { grid-column: 1 / -1; }
  .v2-topleft:empty { display: none; }
  .v2-crumbs { display: none; }
  .jjs-topsearch { flex: none; width: auto; min-width: 0; }
  .ai-btn.v2-ghost { padding: 7px 8px; }
  .ai-btn.v2-ghost span { display: none; }
  .v2-panel { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; max-height: 72vh; }
  .jjs-main-inner { padding-bottom: 104px; }
  .v2-dock { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; background: var(--v2-ink); color: #fff; border-radius: 22px; padding: 8px; gap: 4px; align-items: center; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
  .v2-dock-it { position: relative; flex: 1; display: flex; justify-content: center; align-items: center; padding: 10px 6px; border-radius: 14px; border: 0; background: none; color: rgba(255,255,255,.72); cursor: pointer; min-height: 42px; }
  .v2-dock-it .jjs-ico { width: 20px; height: 20px; }
  .v2-dock-it.on { background: #fff; color: var(--v2-ink); }
  .v2-dock-n { position: absolute; top: 2px; right: 4px; font-size: 10.5px; font-weight: 700; background: rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: 1px 6px; line-height: 15px; }
  .v2-dock-n.bad { background: var(--v2-bad); }
  .v2-dock-it.on .v2-dock-n { background: rgba(0,0,0,.1); color: var(--v2-ink); } .v2-dock-it.on .v2-dock-n.bad { background: var(--v2-bad); color: #fff; }
  .v2-fab { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--v2-ink); display: grid; place-items: center; cursor: pointer; margin-left: 4px; }
  .v2-fab .jjs-ico { width: 20px; height: 20px; }
  .jjs-toaststack { bottom: 84px; }
  .jjs-noticestack { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .v2-choose { grid-template-columns: 1fr; }
  .v2-modal { padding: 20px 16px; }
  .v2-tbl th, .v2-tbl td { padding: 8px; }
  .v2-connect { padding: 14px 16px; }
  .v2-connect-act { margin-left: 0; width: 100%; }
  .v2-card { padding: 16px; }
  .v2-cardhead .v2-h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  .v2-autotbl thead { display: none; }
  .v2-autotbl tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--v2-line); }
  .v2-autotbl td { display: block; padding: 3px 4px; border: 0; max-width: none; }
}
body.bd-tv-on .v2-dock { display: none !important; }
body.jjs-editor .v2-bell { display: grid !important; }
@media print { .v2-dock, .v2-panel { display: none !important; } }
