/* Locator bar color. #lbc-scoped throughout: css/tool-theme.css loads AFTER this file and
 * re-skins buttons, inputs, sections and anything whose class contains "-card", "-panel",
 * "result" or "-out" — which is why the identity cards here are `.lbc-who`, not `.lbc-card`.
 * Where a rule must beat tool-theme's generic button rule, (1,2,1), it uses two ids. See CLAUDE.md.
 *
 * Every swatch, sprite and canvas carries data-tnorm-skip in the markup: on this page the colour
 * IS the content, and theme-normalize.js would otherwise "fix" a dark marker colour.
 */

#lbc { display: block; }
#lbc [hidden] { display: none !important; }

#lbc .lbc-field { display: block; min-width: 0; }
#lbc .lbc-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; opacity: .72; margin-bottom: 6px;
}
#lbc .lbc-hint { display: block; margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; opacity: .78; }
#lbc input[type="text"], #lbc select { width: 100%; }
#lbc input[type="range"] { width: 100%; margin-left: 0; margin-right: 0; }
#lbc .lbc-btn { padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }

#lbc .lbc-lookup { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
#lbc .lbc-grow { flex: 1 1 260px; }
#lbc .lbc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#lbc .lbc-preset { padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
#lbc .lbc-status { margin: 8px 0 0; min-height: 1.2em; font-size: 13px; opacity: .85; }

/* Identity cards --------------------------------------------------------------------------- */
#lbc .lbc-whos { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin: 10px 0 22px; }
#lbc .lbc-who { padding: 14px; border-radius: 12px; background: rgba(127, 127, 127, .10); min-width: 0; }
#lbc .lbc-whohead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#lbc .lbc-whohead img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 4px; flex: 0 0 auto; }
#lbc .lbc-whohead strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
#lbc .lbc-whohead span { display: block; font-size: 12px; opacity: .75; }
#lbc .lbc-swatchrow { display: flex; gap: 12px; align-items: center; }
#lbc .lbc-bigswatch { width: 64px; height: 64px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .35); flex: 0 0 auto; }
#lbc .lbc-hex { font-family: var(--font-mono, ui-monospace, monospace); font-size: 22px; font-weight: 800; }
#lbc .lbc-sprites { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 8px; background: #1b1f1d; width: max-content; max-width: 100%; }
#lbc .lbc-sprites canvas { width: 36px; height: 36px; image-rendering: pixelated; }
#lbc .lbc-facts { margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; unicode-bidi: isolate; }
#lbc .lbc-facts div { display: flex; justify-content: space-between; gap: 10px; }
#lbc .lbc-facts span:first-child { opacity: .75; }
#lbc .lbc-facts span:last-child { font-family: var(--font-mono, ui-monospace, monospace); text-align: right; overflow-wrap: anywhere; }
#lbc .lbc-cmd { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
#lbc .lbc-cmd code { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 12px; padding: 6px 8px; }
#tool-root #lbc button.lbc-copy { padding: 5px 9px; font-size: 12px; }

/* Preview ------------------------------------------------------------------------------------ */
#lbc .lbc-block { padding: 16px; margin: 0 0 20px; }
#lbc .lbc-h { margin: 0 0 6px; font-size: 18px; }
#lbc .lbc-simgrid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; margin-top: 12px; align-items: start; }
@media (max-width: 760px) { #lbc .lbc-simgrid { grid-template-columns: minmax(0, 1fr); } }
#lbc .lbc-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#lbc .lbc-radarwrap { border-radius: 12px; overflow: hidden; background: #111614; line-height: 0; touch-action: none; }
#lbc .lbc-radarwrap canvas { display: block; width: 100%; height: auto; cursor: grab; image-rendering: auto; }
#lbc .lbc-barwrap { margin-top: 14px; border-radius: 10px; overflow: hidden; background: #6c8e5a; line-height: 0; }
#lbc .lbc-barwrap canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
#lbc .lbc-players { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; unicode-bidi: isolate; }
#lbc .lbc-player { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
#lbc .lbc-dotchip { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .5); }
#lbc .lbc-player span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lbc .lbc-player span:last-child { font-family: var(--font-mono, ui-monospace, monospace); opacity: .8; }

/* Reverse ------------------------------------------------------------------------------------ */
#lbc .lbc-revgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 10px; }
#lbc .lbc-colorrow { display: flex; gap: 8px; }
#lbc .lbc-colorrow input[type="color"] { width: 52px; height: 40px; padding: 2px; flex: 0 0 auto; }
#lbc .lbc-nearest, #lbc .lbc-found { font-size: 13px; line-height: 1.6; }
#lbc .lbc-pair { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
#lbc .lbc-swatch { display: inline-block; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .35); flex: 0 0 auto; }
#lbc .lbc-foundlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; }
#lbc .lbc-name { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(127, 127, 127, .10); min-width: 0; }
#lbc .lbc-name code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; padding: 0; }

/* Teams ------------------------------------------------------------------------------------- */
#lbc .lbc-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 10px; }
#lbc .lbc-team { display: flex; gap: 8px; align-items: center; font-size: 12.5px; min-width: 0; }
#lbc .lbc-team code { background: none; border: 0; padding: 0; font-size: 12px; }

#lbc .lbc-help { margin-top: 8px; font-size: 14.5px; line-height: 1.65; max-width: 76ch; }
#lbc .lbc-help p { margin: 0 0 10px; }

[dir="rtl"] #lbc .lbc-facts, [dir="rtl"] #lbc .lbc-players, [dir="rtl"] #lbc .lbc-hex { direction: ltr; }
