/* Studio workflow (web/workflow.js): the Library bulk bar and select mode, batch quote / progress sheets, share links, notification settings,
   "Notify me" buttons. Same tokens as style.css: brass for the primary action and selection, sage for done, bad for failures. */
.bulk { gap:8px; padding:6px 6px 6px 16px; }
.bulk .bn { white-space:nowrap; color:var(--cream-2); } .bulk .bn b { color:var(--cream); font-size:14px; }
.bulk .bacts { display:flex; gap:6px; align-items:center; flex-wrap:wrap; flex:1; min-width:0; }
.bulk .bacts button { height:32px; padding:0 13px; font-size:12.5px; }
.bulk .bacts button[disabled] { opacity:.45; cursor:default; }
.bulk button.dg, .wf-la button.dg { color:var(--bad); border-color:rgba(229,138,128,.4); }
.bulk .bclr { flex:none; }
.selm { height:32px; padding:0 13px; font-size:12.5px; }
.selm.on { background:var(--cream); color:#16100c; border-color:transparent; }
body.libsel .sc-card .vck { opacity:1; }
body.libsel .sc-card .m { cursor:pointer; }
body.libsel .sc-card:not(.chk) .m > img { filter:saturate(.75) brightness(.8); }
.sc-card { -webkit-touch-callout:none; }
@media (max-width:860px) {
  .selm { min-height:40px; }
  .bulk:not([hidden]) { position:fixed; left:10px; right:10px; bottom:calc(84px + env(safe-area-inset-bottom, 0px)); z-index:61; margin:0; border-radius:18px; flex-wrap:nowrap;
    background:linear-gradient(180deg, #2a2117, #1d1712); border-color:var(--brass-line); box-shadow:var(--shadow-l); padding:8px 8px 8px 14px; }
  .bulk .bacts { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; } .bulk .bacts::-webkit-scrollbar { display:none; }
  .bulk .bacts button, .bulk .bclr { height:40px; flex:none; }
  body.libsel #vt { padding-bottom:96px; }
}
@media (max-width:600px) {
  body.libsel .vck, body.libsel .sc-card .vck { display:grid !important; opacity:1; }
  body.libsel .sc-card .vck::after { content:''; position:absolute; inset:-10px; }
  body.libsel .bulk:not([hidden]) { display:flex !important; }
  .bulk .bn { font-size:12px; } .bulk .bn b { font-size:15px; }
}

/* batch quote, progress */
.modal-card.wf-card { max-width:540px; }
.wf-warn { color:var(--amber); font-size:13px; margin:0 0 10px; }
.wf-scn, .wf-res { display:flex; flex-direction:column; margin:10px 0 4px; max-height:min(46vh, 420px); overflow:auto; }
.wf-sr, .wf-rr { display:flex; align-items:baseline; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); min-width:0; }
.wf-sr b, .wf-rr b { font-weight:600; font-size:13px; flex:1; min-width:0; }
.wf-sr small { max-width:55%; text-align:right; }
.wf-rr span { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--cream-2); text-align:right; max-width:60%; }
.wf-rr.ok span { color:var(--sage); } .wf-rr.bad span { color:var(--bad); } .wf-rr.run span { color:var(--cream-3); }
.wf-skip { margin:10px 0 0; font-size:12.5px; } .wf-skip summary { cursor:pointer; color:var(--cream-2); padding:6px 0; }
.wf-skip .wf-sr small { color:var(--cream-3); }
.wf-go { margin-top:16px; }
.wf-two { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0; } .wf-two label { display:flex; flex-direction:column; gap:6px; }
.wf-card .lab { display:block; margin:12px 0 6px; }
@media (max-width:600px) { .wf-go { flex-wrap:wrap; } .wf-go button { flex:1 1 auto; min-height:44px; } .wf-two { grid-template-columns:1fr; } }

/* share links */
.wf-new { display:flex; flex-direction:column; } .wf-new input { width:100%; }
.wf-days { align-self:flex-start; }
.wf-links { margin-top:20px; border-top:1px solid var(--line); padding-top:14px; } .wf-links h4 { margin:0 0 8px; }
.wf-lk { border:1px solid var(--line-2); border-radius:14px; padding:12px 14px; margin-bottom:10px; background:rgba(241,232,218,.03); }
.wf-lk.new { border-color:var(--brass-line); background:var(--brass-wash); } .wf-lk.off { opacity:.65; }
.wf-lt { display:flex; align-items:center; gap:8px; min-width:0; } .wf-lt b { flex:1; min-width:0; font-weight:600; }
.wf-lm { margin:4px 0 8px; }
.wf-url input { width:100%; font-family:ui-monospace, 'SF Mono', Consolas, monospace; font-size:12px; height:36px; }
.wf-la { margin-top:8px; gap:6px; }
.wf-log { margin-top:10px; font-size:12.5px; } .wf-log ul { list-style:none; padding:0; margin:6px 0 0; max-height:220px; overflow:auto; }
.wf-log li { display:flex; flex-direction:column; gap:1px; padding:6px 0; border-bottom:1px solid var(--line); }
@media (max-width:600px) { .wf-la button { min-height:40px; flex:1 1 auto; } }

/* notifications: settings in the panel, the watch button */
.wf-nset { display:flex; flex-direction:column; gap:8px; padding:4px 8px 10px; border-bottom:1px solid var(--line); margin-bottom:4px; font-size:12.5px; }
.wf-nset > div { display:flex; align-items:center; justify-content:space-between; gap:10px; } .wf-nset > div > span { color:var(--cream-2); }
.wf-nset .seg button { height:26px; } .wf-nset button.on { border-color:var(--sage); color:var(--sage); }
.npanel .ni.k-kit_ready .nic, .npanel .ni.k-index_done .nic, .npanel .ni.k-comp_ready .nic { color:var(--sage); }
.npanel .ni.k-kit_failed .nic, .npanel .ni.k-comp_failed .nic { color:var(--bad); }
.wf-watch.on { color:var(--sage); border-color:rgba(156,195,160,.45); }
.kcancel-row, .kwait .row { gap:8px; flex-wrap:wrap; }
@media (max-width:860px) { .wf-nset .seg button { height:36px; } .wf-watch { min-height:40px; } }
