/* bcm-app-core 0.7.4 - the bug & improvement tool (bcm-feedback.js), the same in every BCM app. On the workflow page
   the app's look comes from imp.css and this file only adds the form's own parts (as feedback.css did); works on a
   390-wide phone. Elsewhere (class bcm-sa, set by the script when the workflow helpers are not there) the base rules at
   the end give the same look; they weigh nothing (:where), so an app's own styles always win. */
#modalbox:has(> .fbform), #bcmfbbox:has(> .fbform) { width:600px; max-width:94vw; }
.fbform .fbkinds { flex-wrap:wrap; }
.fbform textarea.fbtext { min-height:150px; resize:vertical; }
.fbform textarea.fblinks { min-height:44px; resize:vertical; }
.fbcount { text-align:right; margin-top:2px; font-variant-numeric:tabular-nums; }
.fbcount.full { color:var(--s-red, #b42318); font-weight:600; }
.fbcut { color:var(--amber, #9a5b00); background:var(--amberbg, #fff4e0); border-radius:6px; padding:6px 10px; margin-top:4px; }
.fbwarn { color:var(--amber, #9a5b00); background:var(--amberbg, #fff4e0); border-radius:6px; padding:6px 10px; margin:8px 0 4px; font-weight:600; }
.fbprompt { background:var(--surface-2, #f6f7f9); border-radius:6px; padding:6px 10px; }
.fbfiles { margin:10px 0 4px; }
.fbattach { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.fbdrop { border:1px dashed var(--line-strong, #c9cfd8); border-radius:6px; padding:8px 10px; margin-top:8px; text-align:center; }
.fbdrop.over { border-color:var(--primary, #1f4e8c); background:var(--hover, #f3f6fb); color:var(--ink, #1d2430); }
ul.fbchips { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
li.fbchip { display:flex; align-items:center; gap:8px; border:1px solid var(--line, #dfe3ea); border-radius:6px; padding:4px 4px 4px 6px;
  max-width:100%; min-width:0; background:var(--surface, #fff); }
img.fbthumb { width:56px; height:40px; object-fit:cover; border-radius:4px; border:1px solid var(--line, #dfe3ea); flex:none; }
.fbicon { width:44px; height:32px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700;
  border-radius:4px; background:var(--s-grey-bg, #eef0f3); color:var(--s-grey, #4b5563); flex:none; }
.fbname { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; max-width:260px; }
button.btn.fbremove { padding:2px 8px; font-size:16px; line-height:1; }
.fbmsg { color:var(--s-red, #b42318); background:var(--s-red-bg, #fdecea); border-radius:6px; padding:6px 10px; margin-top:8px; }
.fbpage { margin:12px 0 0; overflow-wrap:anywhere; }
.fbprog { margin-top:6px; color:var(--ink-2, #3a4350); }
ul.fblist { list-style:none; margin:0; padding:0; max-height:60vh; overflow:auto; }
li.fbrow { border-top:1px solid var(--line, #dfe3ea); padding:9px 0; }
li.fbrow:first-child { border-top:0; }
.fbtop { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.fbwhen { font-size:13px; color:var(--muted, #6b7380); margin-right:4px; }
.pill.fbstatus { white-space:normal; }
/* 0.7.4: the reference and the status pill (Received grey, In a build blue, Live green, Not planned red) */
.fbref { font:600 12px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:var(--ink-2, #3a4350);
  border:1px solid var(--line, #dfe3ea); border-radius:4px; padding:0 6px; white-space:nowrap; }
.pill.fbst { overflow-wrap:anywhere; max-width:100%; }
.fbsendnote { margin-top:2px; }
.fbhub-ref { margin:6px 0 0; }
.fbfirst { margin:4px 0 2px; overflow-wrap:anywhere; }
.fbwhere { overflow-wrap:anywhere; }
/* the form drawn in a page: the workflow app's hosted page /imp/feedback.html (other apps open it in a new tab) */
.fbform.fbinline { min-width:0; }
.fbform.fbinline > h2:first-child { margin-top:0; }
main.fbhub { max-width:720px; margin:0 auto; padding:22px 20px 60px; }
.fbhub-head h1 { overflow-wrap:anywhere; }
.fbhub-page { margin:2px 0 0; overflow-wrap:anywhere; }
.fbhub-card { min-width:0; }
.fbhub-sent h2 { margin-top:0; }
.fbhub-ok { overflow-wrap:anywhere; }
.fbhub .fbform .actions.split { justify-content:space-between; }
@media (max-width:700px) {
  main.fbhub { padding:14px 12px 40px; }
  .fbhub .fbhub-card { padding:14px 12px; }
}
@media (max-width:700px) {
  #modalbox:has(> .fbform), #bcmfbbox:has(> .fbform) { max-width:100vw; width:100vw; height:100vh; max-height:100vh; border-radius:0; }
  .fbname { max-width:200px; }
  .fbform .actions.split .right { width:100%; }
  .fbform .actions.split .right .btn { flex:1 1 100%; }
}

/* ---- base look where the workflow app's imp.css is not loaded (class bcm-sa); weightless, so an app's own rules win */
:where(.bcm-sa) { font:15px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:var(--ink, #1d2430); box-sizing:border-box; }
:where(.bcm-sa) :where(*) { box-sizing:border-box; }
:where(.bcm-sa.hidden, .bcm-sa .hidden) { display:none !important; }
:where(.bcm-sa.modal) { position:fixed; inset:0; z-index:50; background:rgba(22,35,58,.45); display:flex; align-items:center; justify-content:center; }
:where(.bcm-sa.modal) :where(.box) { background:var(--card, #fff); border-radius:10px; padding:22px 24px; width:560px; max-width:92vw; max-height:88vh; overflow:auto; }
:where(.bcm-sa.toast) { position:fixed; z-index:60; bottom:22px; left:50%; transform:translateX(-50%); background:var(--card, #fff); color:var(--ink, #1d2430);
  border:1px solid var(--line, #dfe3ea); box-shadow:0 4px 16px rgba(22,35,58,.15); padding:10px 18px; border-radius:6px; font-size:14px; max-width:92vw; }
:where(button.btn.bcm-sa, .bcm-sa button.btn) { border:1px solid var(--line, #dfe3ea); background:var(--card, #fff); color:var(--ink, #1d2430);
  padding:10px 18px; border-radius:6px; font-family:inherit; font-size:15px; font-weight:600; cursor:pointer; }
:where(button.btn.small.bcm-sa, .bcm-sa button.btn.small) { padding:5px 10px; font-size:13px; font-weight:500; }
:where(button.btn.improve.bcm-sa) { font-weight:600; }
:where(.bcm-sa button.btn.primary, .bcm-sa button.btn.toggle.on) { background:var(--blue2, #2d5ea8); border-color:var(--blue2, #2d5ea8); color:#fff; }
:where(.bcm-sa button.btn.ghost) { background:transparent; }
:where(.bcm-sa button.btn:disabled) { opacity:.55; cursor:default; }
:where(.bcm-sa) :where(h2) { font-size:16px; margin:0 0 8px; }
:where(.bcm-sa) :where(.small) { font-size:13px; }
:where(.bcm-sa) :where(.muted) { color:var(--muted, #6b7380); }
:where(.bcm-sa) :where(label) { display:block; font-size:13px; font-weight:600; margin:12px 0 4px; color:#3a4350; }
:where(.bcm-sa) :where(textarea) { width:100%; padding:9px 10px; border:1px solid #c9cfd8; border-radius:6px; font-family:inherit; font-size:15px; background:var(--card, #fff); color:var(--ink, #1d2430); }
:where(.bcm-sa) :where(.choice) { display:flex; gap:8px; margin:8px 0; }
:where(.bcm-sa) :where(.actions) { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 4px; }
:where(.bcm-sa) :where(.actions.split) { justify-content:space-between; }
:where(.bcm-sa) :where(.actions .left, .actions .right) { display:flex; flex-wrap:wrap; gap:10px; }
:where(.bcm-sa) :where(.err) { background:#fdecea; color:var(--red, #b42318); border-radius:6px; padding:9px 12px; font-size:14px; margin:10px 0; }
:where(.bcm-sa) :where(.pill) { display:inline-block; padding:2px 9px; border-radius:11px; font-size:12px; font-weight:600; background:#eef1f5; color:#3a4350; white-space:nowrap; }
:where(.bcm-sa) :where(.pill.green) { background:#e6f4ec; color:var(--green, #1e7a46); }
:where(.bcm-sa) :where(.pill.red) { background:#fdecea; color:var(--red, #b42318); }
:where(.bcm-sa) :where(.pill.blue) { background:#e7eefb; color:var(--blue2, #2d5ea8); }
:where(.bcm-sa) :where(.pill.grey) { background:#eef0f3; color:#4b5563; }
@media (prefers-color-scheme: dark) {
  :where(.bcm-sa.modal) :where(.box), :where(.bcm-sa.toast), :where(button.btn.bcm-sa, .bcm-sa button.btn), :where(.bcm-sa) :where(textarea) {
    background:var(--card, #1b2230); color:var(--ink, #e6ebf2); border-color:var(--line, #343e50); }
  :where(.bcm-sa) :where(label) { color:var(--ink, #e6ebf2); }
}
@media (max-width:700px) {
  :where(.bcm-sa.modal) :where(.box) { padding:16px; }
}
