/* Hashmark website (phase 3) - Wristband in the mockups' look: docs/design/app-a-c-screens.html, screen "Wristband".
   Website only: every rule starts with html[data-site] (siteui.css has the frame and the shared tokens).
   The library panel is shared with Call sheet and Sheet template; the band card keeps its real size and font
   (the fit check measures it), only its colors and frame change. Screen only: printing never changes. */
@media screen {

/* ---------- the page: two cards ---------- */
html[data-site][data-ui="a"] #build { gap: 16px; }
html[data-site][data-ui="a"] #build #lib,
html[data-site][data-ui="a"] #build.view-band #work { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--hs); overflow: hidden; }
html[data-site][data-ui="a"] #build #lib { width: 320px; min-width: 280px; flex: none; }
html[data-site][data-ui="a"] #build.view-band #work { padding: 18px 18px 6px; }

/* ---------- the library ---------- */
html[data-site][data-ui="a"] #lib .lib-head { padding: 14px 14px 10px; gap: 8px 6px; border-bottom: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
html[data-site][data-ui="a"] #lib .lib-head > .row { display: contents; }
html[data-site][data-ui="a"] #lib .lib-head > #libQ, html[data-site][data-ui="a"] #lib .lib-head > #smartBox { flex: 1 1 100%; }
html[data-site][data-ui="a"] #lib .lib-head > #smartBox:empty { display: none; }
html[data-site][data-ui="a"] #lib #libQ { width: 100%; box-sizing: border-box; height: 36px; padding: 8px 11px 8px 34px; border: 1px solid var(--line); border-radius: var(--rb); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a978f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 11px center / 15px 15px; font-size: 14px; }
html[data-site][data-ui="a"] #lib .lib-head select { flex: 0 1 auto; width: auto; min-width: 0; max-width: 100%; height: 32px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: var(--rb); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%239a978f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 8px center / 12px 12px; -webkit-appearance: none; appearance: none; font: 600 13px var(--ui, 'Barlow', sans-serif); color: var(--ink); cursor: pointer; }
html[data-site][data-ui="a"] #lib .lib-head select:hover { border-color: var(--line-2); }
/* not on band yet, this season only, beats their defense: chips; on = ink with yellow */
html[data-site][data-ui="a"] #lib .row label { position: relative; display: inline-flex; align-items: center; gap: 0; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--rb); background: var(--soft); font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
html[data-site][data-ui="a"] #lib .row label:hover { color: var(--ink); border-color: var(--line-2); }
html[data-site][data-ui="a"] #lib .row label input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
html[data-site][data-ui="a"] #lib .row label:has(input:checked) { background: var(--ink-bg, var(--ink)); color: var(--hi); border-color: var(--ink-bg, var(--ink)); }
html[data-site][data-ui="a"] #lib .row label:has(input:focus-visible) { outline: 2px solid var(--sel, #2149d6); outline-offset: 2px; }
html[data-site][data-ui="a"] #lib .row .spacer { display: none; }
html[data-site][data-ui="a"] #lib .row > span:last-child { font-size: 12.5px; color: var(--muted); }
html[data-site][data-ui="a"] #lib .row #fSort { min-width: 0 !important; }
html[data-site][data-ui="a"] #lib .smart { background: var(--soft); color: var(--ink); border: 1px solid var(--line); border-radius: var(--rs); padding: 6px 10px; font-size: 12.5px; }
html[data-site][data-ui="a"] #lib .smart b { color: var(--ink); }
html[data-site][data-ui="a"] #lib .smart button { background: var(--panel); color: var(--ink); border-color: var(--line); }

html[data-site][data-ui="a"] #libList { padding: 0 14px 6px; }
html[data-site][data-ui="a"] #libList .bd-li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
html[data-site][data-ui="a"] #libList .bd-li:hover { background: var(--soft); border-radius: var(--rs); border-top-color: transparent; }
html[data-site][data-ui="a"] #libList .bd-li:hover + .bd-li { border-top-color: transparent; }
html[data-site][data-ui="a"] #libList .bd-li.dragging, html[data-site][data-ui="a"] #libList .bd-li:active { background: var(--soft); border-radius: var(--rs); box-shadow: 0 0 0 1.5px var(--ink); }
html[data-site][data-ui="a"] .bd-pp { width: 24px; min-width: 24px; height: 24px; border-radius: 5px; display: grid; place-items: center; font: 700 11px/1 'Barlow', sans-serif; letter-spacing: -.02em; overflow: hidden; }
html[data-site][data-ui="a"] .bd-pp.none { background: var(--soft-2); color: var(--muted); }
html[data-site][data-ui="a"] #libList .bd-txt { min-width: 0; }
html[data-site][data-ui="a"] #libList .bd-li .li-main { padding: 0; display: block; width: 100%; font: 600 15px/1.15 var(--callf); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-site][data-ui="a"] #libList .bd-li .li-meta { font-size: 12px; font-weight: 500; color: var(--muted); gap: 4px 6px; margin-top: 1px; }
html[data-site][data-ui="a"] #libList .bd-li .badge { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; border: 0; }
html[data-site][data-ui="a"] #libList .bd-li .bd-beats { background: var(--tint-b, #e9edfc); color: var(--ink); }
html[data-site][data-ui="a"] #libList .bd-li .bd-stat { background: var(--ok-bg, #e6f3e8); color: var(--ok, #1f6a2f); }
html[data-site][data-ui="a"] #libList .bd-tags { display: flex; gap: 4px; align-items: center; }
html[data-site][data-ui="a"] #libList .bd-on { font: 700 11.5px/1 'Barlow', sans-serif; padding: 4px 7px; border-radius: 3px; background: var(--ok-bg, #e6f3e8); color: var(--ok, #1f6a2f); white-space: nowrap; }
html[data-site][data-ui="a"] #libList .bd-li .edit { position: static; font-size: 12px; padding: 3px 7px; color: var(--muted); opacity: .75; }
html[data-site][data-ui="a"] #libList .bd-li:hover .edit, html[data-site][data-ui="a"] #libList .bd-li .edit:focus-visible { opacity: 1; color: var(--ink); }
html[data-site][data-ui="a"] #lib .lib-foot { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- the band card: title, card switcher, actions ---------- */
html[data-site][data-ui="a"] #build.view-band #toolbar.bd-tb { display: block; padding: 0; background: transparent; border: 0; }
html[data-site][data-ui="a"] .bd-head { display: flex; gap: 12px 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
html[data-site][data-ui="a"] .bd-h1 { font: 800 32px/1 var(--display); text-transform: uppercase; letter-spacing: 0; margin: 0; color: var(--ink); }
html[data-site][data-ui="a"] .bd-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
html[data-site][data-ui="a"] .bd-cards button { padding: 6px 12px; font-size: 13px; }
html[data-site][data-ui="a"] .bd-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
html[data-site][data-ui="a"] .bd-acts .seg button { padding: 5px 11px; font-size: 13px; }
html[data-site][data-ui="a"] .bd-acts > button.small { min-height: 32px; padding: 5px 11px; font-size: 13px; }
html[data-site][data-ui="a"] .bd-acts #targetInfo { flex: 1 1 260px; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; }

/* the checker: only what needs a look (the green fit bar below says when all is well) */
html[data-site][data-ui="a"] #build.view-band #checker { background: transparent; border: 0; margin-bottom: 10px; }
html[data-site][data-ui="a"] #build.view-band #checker .sum.good { display: none; }
html[data-site][data-ui="a"] #build.view-band #checker .sum.bad { padding: 10px 14px; border-radius: var(--rs); background: var(--err-bg, #fbe7e2); color: var(--err, #a3260f); font-size: 13.5px; }
html[data-site][data-ui="a"] #build.view-band #checker ul { padding: 8px 14px 4px 30px; }

html[data-site][data-ui="a"] #build.view-band #canvas { padding: 0 0 12px; background: transparent; }
html[data-site][data-ui="a"] .bd-fit { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--rs); font-weight: 600; font-size: 13.5px; margin-bottom: 14px; }
html[data-site][data-ui="a"] .bd-fit svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html[data-site][data-ui="a"] .bd-fit.ok { background: #e6f3e8; color: #1f6a2f; }
html[data-site][data-ui="a"] .bd-fit.bad { background: var(--err-bg, #fbe7e2); color: var(--err, #a3260f); }
html[data-site][data-ui="a"][data-theme="dark"] .bd-fit.ok { background: #16281a; color: #9be3a6; }

/* ---------- the band: real size, the mockup's frame ---------- */
html[data-site][data-ui="a"] #bandStrip .bd-cardsv { display: flex; gap: 14px; }
html[data-site][data-ui="a"] #bandStrip .card-wrap.bd-off { position: absolute; left: -20000px; top: 0; visibility: hidden; pointer-events: none; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card-label { display: none; }
html[data-site][data-ui="a"] #bandStrip .bd-colhd { display: flex; background: var(--ink-bg, #141414); color: #f3f0e8; font: 700 9pt/1 var(--callf); letter-spacing: .04em; text-transform: uppercase; border: .4mm solid var(--ink-bg, #141414); border-bottom: 0; border-radius: .8mm .8mm 0 0; box-sizing: content-box; overflow: hidden; }
html[data-site][data-ui="a"] #bandStrip .bd-colhd b, html[data-site][data-ui="a"] #bandStrip .bd-colhd span { box-sizing: border-box; padding: 1.6mm 0; flex: none; }
html[data-site][data-ui="a"] #bandStrip .bd-colhd b { text-align: center; }
html[data-site][data-ui="a"] #bandStrip .bd-colhd span { padding-left: 1.6mm; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card { border: .4mm solid var(--ink); border-top: 0; border-radius: 0 0 .8mm .8mm; overflow: hidden; box-sizing: content-box; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card td { border-color: var(--line); }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card td.n { border-right-color: var(--line); }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card td.n.bd-e { background: transparent !important; color: var(--ink) !important; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card td.c { position: relative; cursor: pointer; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card td.c.bd-e .fit { display: none; }
html[data-site][data-ui="a"] #bandStrip .bd-drop { display: block; font: italic 400 6.5pt/1 var(--callf); color: #8a867d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv tr:hover .bd-drop, html[data-site][data-ui="a"] #bandStrip .bd-cardsv td.sel .bd-drop, html[data-site][data-ui="a"] #bandStrip .bd-cardsv td.drag-over .bd-drop { opacity: 1; }
/* the first free slot of each column always says it */
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card tr:not(:has(td.c.bd-e)) + tr td.c.bd-e .bd-drop { opacity: 1; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card tr:first-child td.c.bd-e .bd-drop { opacity: 1; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .card td:hover { background-color: var(--soft); }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .sel { outline: none !important; background: var(--soft) !important; box-shadow: inset 0 0 0 .4mm var(--ink); }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv td.n.sel { box-shadow: inset 0 0 0 .4mm var(--ink); }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .drag-over { outline: .4mm dashed var(--ink) !important; outline-offset: -.4mm; }
html[data-site][data-ui="a"] #bandStrip .bd-cardsv .small-text { background: var(--err-bg, #fbe7e2) !important; }
/* dark: the band goes dark like the mockup; the personnel colors stay the coach's own */
html[data-site][data-ui="a"][data-theme="dark"] #bandStrip .bd-cardsv .card { --ink: #f3f0e8; --line: #2c3036; --soft: #1b1e22; --err-bg: #2e1914; background: #141619; color: #f3f0e8; color-scheme: dark; }
html[data-site][data-ui="a"][data-theme="dark"] #bandStrip .bd-colhd { background: #f3f0e8; color: #141414; border-color: #f3f0e8; }
html[data-site][data-ui="a"][data-theme="dark"] #bandStrip .bd-drop { color: #6b6861; }

html[data-site][data-ui="a"] .bd-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
html[data-site][data-ui="a"] .bd-legend:empty { display: none; }
html[data-site][data-ui="a"] .bd-legend span { display: flex; gap: 6px; align-items: center; }
html[data-site][data-ui="a"] .bd-legend i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
html[data-site][data-ui="a"] #bandStrip .bd-help { margin: 10px 0 0; font: 400 12.5px var(--ui, 'Barlow', sans-serif); text-transform: none; letter-spacing: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
html[data-site][data-ui="a"] #bandStrip .bd-help .muted { font: inherit; }

/* narrow: the library over the band (iPad portrait, phone) */
@media (max-width: 900px) {
  html[data-site][data-ui="a"] #build:not(.view-template) { flex-direction: column; height: auto; }
  html[data-site][data-ui="a"] #build #lib { width: auto; min-width: 0; max-height: 60vh; }
  html[data-site][data-ui="a"] #build.view-band #work { padding: 14px 12px 4px; }
  html[data-site][data-ui="a"] .bd-h1 { font-size: 26px; }
}
}
