/* Jabree Hub: one look across the app. Compact page headers, the phone tab bar and menu, clickable tiles,
   the full screen calendar, board tools, photos and drawings on boards, the clip picker, and Content on a phone. */

/* ---------- Page headers: icon, title, actions on one line ---------- */
.phead2{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;margin:0 0 18px;min-height:40px}
.ph-t{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.ph-ic{width:36px;height:36px;border-radius:11px;background:var(--panel);box-shadow:var(--ring);display:grid;place-items:center;flex:none;color:var(--ink)}
.ph-ic svg{width:18px;height:18px}
.phead2 h1{margin:0;font-size:26px;font-weight:600;letter-spacing:-.025em;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phead2 .actions{display:flex;gap:8px;flex:none;align-items:center}
.phead2 .actions .btn svg{width:16px;height:16px}
.cp2{margin:-4px 0 16px}
.cp2-link{border:0;cursor:pointer;font:inherit;color:var(--ink-2)}
.cp2-link:hover{color:var(--ink);background:var(--sel)}
.cp2-link svg{width:14px;height:14px}
.brename{display:flex;gap:6px;align-items:center}
.brename input{border:0;background:var(--tile);border-radius:10px;padding:6px 10px;font:inherit;font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--ink);outline:none;min-width:0;width:min(420px,60vw)}
@media (max-width:700px){
  .phead2{margin-bottom:14px}
  .phead2 h1{font-size:23px}
  .ph-ic{width:32px;height:32px;border-radius:10px}
  .phead2 .actions .btn .lbl{display:none}
  .phead2 .actions .btn{padding:0 11px}
  .phead2 .actions .btn,.phead2 .actions .cta{height:38px}
  .phead2 .actions .cta{padding-left:14px;font-size:14px}
}

/* ---------- Phone tab bar and the menu ---------- */
.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.tabbar button svg{width:22px;height:22px}
.tbl{font-size:10px;font-weight:500;line-height:1}
.tabbar button[aria-current="page"] .tbl{font-weight:600}
.mm{padding-top:16px;gap:20px}
.mm-me{display:flex;align-items:center;gap:12px;padding:2px}
.mm-me .av{width:44px;height:44px;font-size:16px;flex:none}
.mm-me .who{flex:1;display:flex;flex-direction:column;min-width:0;gap:1px}
.mm-me b{font-size:17px;font-weight:600}
.mm-me .who span{font-size:13px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mm-g h3{margin:0 0 8px 4px;font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.mm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mm-t{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;border:0;background:var(--tile);border-radius:16px;padding:12px 12px 11px;font:inherit;color:var(--ink);text-align:left;min-height:80px;cursor:pointer}
.mm-t.on{background:var(--cta);color:var(--on-cta)}
.mm-ic{display:grid}
.mm-ic svg{width:21px;height:21px}
.mm-l{font-size:13.5px;font-weight:500;line-height:1.2}
.mm-b{position:absolute;top:10px;right:10px;font-size:11px;font-weight:600;background:var(--panel);color:var(--ink-2);border-radius:999px;padding:1px 7px}
.mm-t.on .mm-b{color:var(--ink)}

/* ---------- Home: the snapshot tiles say they can be tapped ---------- */
.kpi-go{position:relative;cursor:pointer;transition:box-shadow .15s,transform .15s}
.kg-top{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.kg-ic{width:28px;height:28px;border-radius:9px;background:var(--tile);display:grid;place-items:center;flex:none;color:var(--ink-2)}
.kg-ic svg{width:15px;height:15px}
.kg-top small{flex:1;min-width:0}
.kg-arrow{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:var(--ink-3);background:var(--tile);flex:none;transition:background .15s,color .15s}
.kg-arrow svg{width:14px;height:14px}
.kpi-go:hover .kg-arrow,.kpi-go:focus-visible .kg-arrow{background:var(--cta);color:var(--on-cta)}
.kpi-go:active{transform:scale(.99)}
@media (max-width:520px){ .kg-ic{display:none} .kg-arrow{width:22px;height:22px} }

/* ---------- Calendar: full width, and full screen ---------- */
.cal2-bar{align-items:center}
.cal2-r{display:flex;align-items:center;gap:8px;margin-left:auto}
.cal2-r .btn svg{width:15px;height:15px}
.calhead .btn{margin-left:4px}
.cal-full{position:fixed;inset:0;z-index:35;background:var(--canvas);padding:calc(16px + env(safe-area-inset-top,0px)) 22px 18px;display:flex;flex-direction:column;overflow:hidden}
.cal-full .phead2{margin-bottom:10px}
.cal-full .cal2,.cal-full .cal2-main{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;width:100%}
.cal-full .cal-wrap{flex:1;min-height:0;display:flex}
.cal-full .cal{flex:1;grid-template-rows:auto repeat(6,minmax(0,1fr))}
.cal-full .day{min-height:0;overflow:hidden}
.cal-full .legend{display:none}
.cal-full .board-wrap{flex:1;min-height:0}
@media (max-width:700px){ .cal2-r [data-act="calFull"]{display:none} }

/* ---------- Boards: one floating toolbar like the To-do canvas ---------- */
.wb-tools{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.wb-ctx{display:flex;align-items:center;gap:2px}
.wb-ctxg{display:flex;align-items:center;gap:2px;padding-right:4px;margin-right:2px;border-right:1px solid var(--line)}
.wb-tb{border:0;background:none;font:inherit;font-size:13px;font-weight:500;color:var(--ink-2);height:34px;padding:0 12px;border-radius:10px;cursor:pointer;white-space:nowrap}
.wb-tb:hover{background:var(--tile);color:var(--ink)}
.wb-tb.on{background:var(--cta);color:var(--on-cta)}
.wb-hint{font-size:12.5px;color:var(--info);padding:0 8px;white-space:nowrap}
.tc-c.note.c-lime{background:#ecff8f}
.wb.tool-draw .wb-view{cursor:crosshair}
.wb.tool-erase .wb-view{cursor:cell}
.wb.tool-draw .wb-it,.wb.tool-erase .wb-it{pointer-events:none}
.wb-dl,.wb-live{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.wb-live{stroke:var(--ink);opacity:.85}
.wb-dh{fill:none;stroke:transparent;stroke-width:16;stroke-linecap:round;pointer-events:stroke;cursor:move}
.wb.tool-draw .wb-dh{pointer-events:none}
.wb.tool-erase .wb-dh{cursor:cell}
.wb-stroke.sel .wb-dl{filter:drop-shadow(0 0 3px color-mix(in srgb,var(--info) 70%,transparent))}
.k-image{background:var(--panel);box-shadow:0 0 0 1px var(--line),0 10px 24px rgba(31,28,25,.08)}
.wb-img{width:100%;height:100%;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:var(--tile)}
.wb-img img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.wb-view.drop{box-shadow:inset 0 0 0 2px var(--info)}
.wb-th{gap:10px}
.wb-pull{display:flex;align-items:center;gap:10px;border:0;background:var(--tile);border-radius:14px;padding:10px 12px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;width:100%}
.wb-pull:hover{background:var(--sel)}
.wb-pull>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.wb-pull b{font-size:14px;font-weight:600}
.wb-pull span span{font-size:12px;color:var(--ink-3)}
.wb-pull .wb-ic{background:var(--panel)}
.wb-pull>svg{width:16px;height:16px;color:var(--ink-3)}
@media (max-width:700px){ .wb-tools .tc-pct,.wb-tools [data-wb="zoomIn"],.wb-tools [data-wb="zoomOut"]{display:none} }

/* New board: three kinds */
.nb-kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.nb-k{display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:0;background:var(--tile);border-radius:18px;padding:14px 14px 13px;text-align:left;font:inherit;color:var(--ink);cursor:pointer}
.nb-k.on{background:var(--cta);color:var(--on-cta)}
.nb-ic{display:grid;margin-bottom:4px}
.nb-ic svg{width:22px;height:22px}
.nb-k b{font-size:15px;font-weight:600}
.nb-k>span:last-child{font-size:12px;opacity:.7;line-height:1.3}

/* ---------- Pull in clips: the Content folders, then pick ---------- */
.cpk{gap:12px}
.cpk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cpk-bar .btn svg{width:15px;height:15px}
.cpk-here{font-size:17px;font-weight:600;flex:1;min-width:120px;letter-spacing:-.01em}
.cpk-q{width:220px;height:36px;flex:none}
.cpk-folders{display:flex;flex-direction:column;background:var(--tile);border-radius:16px;overflow:hidden}
.cpk-f{display:flex;align-items:center;gap:12px;border:0;background:none;padding:9px 14px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;border-bottom:1px solid var(--line)}
.cpk-f:last-child{border-bottom:0}
.cpk-f:hover{background:var(--sel)}
.cpk-fi{width:42px;height:36px;display:grid;place-items:center;flex:none}
.cpk-fi .fx-fold{width:38px;height:31px}
.cpk-fi .fx-ath{width:34px;height:34px;font-size:13px}
.cpk-fn{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.cpk-fn b{font-size:14.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpk-fn span{font-size:12px;color:var(--ink-3)}
.cpk-f>svg{width:16px;height:16px;color:var(--ink-3);flex:none}
.cpk-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.cpk-c{position:relative;border:0;padding:0;background:var(--tile);border-radius:12px;overflow:hidden;aspect-ratio:3/4;cursor:pointer}
.cpk-c .scene,.cpk-c .thumbimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background-size:cover}
.cpk-c em{position:absolute;left:0;right:0;bottom:0;padding:18px 8px 6px;font-style:normal;font-size:11px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.6));text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpk-chk{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.2);display:grid;place-items:center;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.cpk-chk svg{width:13px;height:13px}
.cpk-c.on{box-shadow:0 0 0 3px var(--info)}
.cpk-c.on .cpk-chk{background:var(--info);border-color:var(--info)}
.modal:has(.cpk){width:min(760px,calc(100% - 32px))}
.modal .sft{position:sticky;bottom:0;background:var(--panel)}
@media (max-width:700px){ .cpk-q{width:100%} .cpk-files{grid-template-columns:repeat(3,minmax(0,1fr))} }

/* ---------- Content on a phone: where you are, one tap back, folders as rows ---------- */
.fx-upm{display:none}
@media (max-width:860px){
  .fx-locs{order:-3}
  .fx-upm{order:-2;flex-basis:100%;display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:6px 0 0;font:inherit;font-size:14.5px;font-weight:500;color:var(--info);justify-content:flex-start;min-width:0}
  .fx-upm svg{width:16px;height:16px;flex:none}
  .fx-upm span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .fx-title{order:-1;flex:1 1 0!important;font-size:24px!important;padding:0!important;min-width:0}
  .fx-nav,.fx-sort,.fx-crumbs.mob{display:none!important}
  .fx-seg{order:0;margin-left:0}
  .fx-tools .fx-tb{order:0}
  .fx-q{order:2}
  .fx-body.icons{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 6px}
  .fx-body.icons .fx-it:is([data-k^="f:"],[data-k^="v:"],[data-k^="a:"]){grid-column:1/-1;display:grid;grid-template-columns:44px minmax(0,1fr) 14px;grid-template-rows:auto auto;column-gap:12px;row-gap:1px;align-items:center;padding:10px 14px 10px 10px;background:var(--panel);border-radius:14px;box-shadow:var(--ring);text-align:left}
  .fx-body.icons .fx-it:is([data-k^="f:"],[data-k^="v:"],[data-k^="a:"]) .fx-ic{grid-row:1/3;width:44px;height:40px}
  .fx-body.icons .fx-it:is([data-k^="f:"],[data-k^="v:"],[data-k^="a:"]) .fx-fold{width:40px;height:32px}
  .fx-body.icons .fx-it:is([data-k^="f:"],[data-k^="v:"],[data-k^="a:"]) .fx-ath{width:38px;height:38px;font-size:14px}
  .fx-body.icons .fx-it:is([data-k^="f:"],[data-k^="v:"],[data-k^="a:"]) .fx-nm{grid-column:2;text-align:left;font-size:15px;font-weight:500;align-self:end}
  .fx-body.icons .fx-it:is([data-k^="f:"],[data-k^="v:"],[data-k^="a:"]) .fx-nm>span{-webkit-line-clamp:1;padding:0}
  .fx-body.icons .fx-it:is([data-k^="f:"],[data-k^="v:"],[data-k^="a:"]) .fx-sub{grid-column:2;font-size:12.5px;align-self:start}
  .fx-body.icons .fx-it:is([data-k^="f:"],[data-k^="v:"],[data-k^="a:"])::after{content:"";grid-column:3;grid-row:1/3;width:7px;height:7px;border-right:2px solid var(--ink-3);border-top:2px solid var(--ink-3);transform:rotate(45deg);margin-left:-2px}
  .fx-body.icons .fx-it[data-k^="c:"] .fx-ic{width:100%;height:auto;aspect-ratio:1}
  .fx-body.icons .fx-mh{grid-column:1/-1}
}
