:root {
  --bg: #070b10; --panel: #111a24; --panel2: #16212c; --line: #243242; --text: #e3ebf3; --dim: #8aa0b6;
  --accent: #39b3ff; --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444; --cotton: #f4f1e8;
  --font: Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { display: flex; flex-direction: column; overflow: hidden; }
button, input, select { font-family: inherit; }
header { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 14px; background: linear-gradient(#111a24, #0c131b); border-bottom: 1px solid #1d2a38; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; background: var(--cotton); border-radius: 6px; padding: 2px 4px; }
.brand b { display: block; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; }
.brand small { display: block; font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
header .sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.pill.ok { color: #a7f3d0; border-color: #14532d; } .pill.warn { color: #fde68a; border-color: #92400e; background: #2a1d0a; } .pill.bad { color: #fff; border-color: #b91c1c; background: #7f1d1d; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #5d6f82; display: inline-block; flex: none; }
.dot.online { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .dot.error, .dot.stopped { background: var(--bad); box-shadow: 0 0 8px var(--bad); } .dot.connecting { background: var(--warn); }
#wrap { flex: 1; display: flex; min-height: 0; }
nav { width: 200px; flex: none; background: #0c131b; border-right: 1px solid #1d2a38; padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; }
nav button { height: 48px; border: 0; border-radius: 10px; background: transparent; color: #b8c7d6; font-size: 15px; font-weight: 700; text-align: left; padding: 0 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; letter-spacing: .03em; }
nav button:hover { background: #121c27; }
nav button.on { background: #16324c; color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
nav .foot { margin-top: auto; font-size: 11px; color: var(--dim); padding: 8px; line-height: 1.5; }
main { flex: 1; overflow: auto; padding: 16px; min-width: 0; }
h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
h2 .sp { flex: 1; }
h3 { margin: 0 0 10px; font-size: 14px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.grid { display: grid; gap: 12px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.kpi span { display: block; font-size: 12px; color: var(--dim); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kpi b { font-size: 32px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--dim); font-size: 14px; margin-left: 4px; }
.btn { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover { border-color: #3b5470; }
.btn.pri { background: #1d6fb8; border-color: #2b8ad8; color: #fff; }
.btn.on { background: #16324c; border-color: var(--accent); color: #fff; }
.btn.danger { color: #fca5a5; border-color: #7f1d1d; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: #0a1118; border: 1px solid var(--line); border-radius: 10px; padding: 2px; gap: 2px; }
.seg button { height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-weight: 700; cursor: pointer; font-size: 13px; }
.seg button.on { background: #1d4f7a; color: #fff; }
input, select { height: 38px; background: #0a1118; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 0 8px; font-size: 14px; }
input[type=checkbox] { width: 20px; height: 20px; }
input[type=color] { width: 40px; padding: 2px; }
input:disabled, select:disabled { opacity: .55; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; padding: 8px 6px; position: sticky; top: 0; background: var(--panel); z-index: 1; white-space: nowrap; }
table.t td { padding: 5px 6px; border-top: 1px solid #1c2733; vertical-align: middle; }
table.t tbody tr:nth-child(even):not(.sel):not(.pensel) td { background: color-mix(in srgb, var(--panel2, #16202c) 70%, transparent); }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.sel td { background: #10263a; }
table.t input:not([type=checkbox]):not([type=color]), table.t select { height: 32px; font-size: 13px; }
.mono { font-family: Consolas, "SF Mono", monospace; font-size: 13px; }
.dimrow td { opacity: .6; } .dim { color: var(--dim); } .small { font-size: 12px; } .good { color: #86efac; } .badt { color: #fca5a5; } .warnt { color: #fde68a; }
.tablewrap { overflow: auto; max-height: calc(100vh - 230px); border-radius: 10px; }
.bar { height: 12px; border-radius: 6px; background: #0a1118; border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 6px; transition: width .5s; }
.bar i.warn { background: var(--warn); } .bar i.bad { background: var(--bad); }
.plc { display: flex; flex-direction: column; gap: 10px; }
.plc-h { display: flex; align-items: center; gap: 10px; }
.plc-h b { font-size: 18px; flex: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { background: #0a1118; border-radius: 10px; padding: 8px 10px; }
.stats span { display: block; font-size: 11px; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stats b { font-size: 20px; font-variant-numeric: tabular-nums; }
.events { max-height: 260px; overflow: auto; font-size: 13px; }
.events div { padding: 6px 0; border-top: 1px solid #1c2733; }
.events time { color: var(--dim); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* trend */
.trend { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 100px); }
.trend .chartbox { flex: 1; min-height: 260px; background: #0a1016; border: 1px solid var(--line); border-radius: 14px; position: relative; overflow: hidden; touch-action: none; }
.chartbox { position: relative; overflow: hidden; touch-action: none; background: #0a1016; border-radius: 10px; }
.chartbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chartbox .zoomhint { position: absolute; left: 12px; bottom: 8px; font-size: 11px; color: #5b7087; pointer-events: none; }
.chartbox .loading { position: absolute; right: 12px; top: 8px; font-size: 12px; color: var(--dim); }
.pens { max-height: 32vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.pens td .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: middle; }
.pens tr.pensel td { background: #10263a; }
.curval { font-variant-numeric: tabular-nums; font-weight: 700; }

/* modal */
.back { position: fixed; inset: 0; background: #000b; display: flex; align-items: center; justify-content: center; z-index: 50; backdrop-filter: blur(3px); }
.modal { background: #121b25; border: 1px solid var(--line); border-radius: 18px; padding: 18px; width: min(900px, 96vw); max-height: 92vh; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 80px #000c; }
.modal.small { width: 460px; }
.modal h3 { color: var(--text); font-size: 18px; letter-spacing: .04em; margin: 0; }
.modal .list { flex: 1; min-height: 240px; max-height: 56vh; overflow: auto; background: #0a1118; border: 1px solid var(--line); border-radius: 12px; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-bottom: 1px solid #16212c; cursor: pointer; }
.pick:hover { background: #121d29; }
.pick.on { background: #16324c; }
.pick .n { flex: 1; font-family: Consolas, monospace; font-size: 14px; }
.pick .ty { font-size: 12px; color: var(--dim); font-family: Consolas, monospace; }
.pick .exp { width: 20px; color: var(--accent); }
.mfoot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.sgrid { display: grid; grid-template-columns: 280px 1fr; gap: 10px 16px; align-items: center; max-width: 900px; }
.sgrid label { color: var(--dim); font-size: 14px; }
.lockbar { background: #2a1d0a; border: 1px solid #92400e; color: #fde68a; border-radius: 10px; padding: 8px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 99; pointer-events: none; }
.toast { background: #1e293b; padding: 12px 18px; border-radius: 12px; font-weight: 600; border: 1px solid var(--line); box-shadow: 0 10px 30px #000a; }
.toast.ok { background: #14532d; border-color: #16a34a; } .toast.bad { background: #7f1d1d; border-color: #dc2626; }
@media (max-width: 900px) { nav { width: 64px; } nav button span { display: none; } .stats { grid-template-columns: 1fr 1fr; } }

.poweredby { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 44px; padding: 0 10px; border: 1px solid #22313f; border-radius: 10px; background: #0e151d; flex: none; }
.poweredby small { font-size: 8.5px; letter-spacing: .16em; color: var(--dim); font-weight: 700; }
.poweredby img { height: 20px; display: block; }
@media (max-width: 900px) { nav .foot img { display: none !important; } }

/* top bar always fits the window (Windows display scaling can make it narrow) */
header { min-width: 0; gap: 10px; }
.brand { min-width: 0; flex: 0 1 auto; } .brand > div { min-width: 0; }
.brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header .pill, header .btn { flex: none; }
@media (max-width: 1180px) { #netpill { display: none; } .brand small { display: none; } .brand b { font-size: 16px; } }
@media (max-width: 980px) { #bkpill { display: none; } .poweredby small { display: none; } }
@media (max-width: 900px) { nav .foot { display: none; } }
@media (max-width: 760px) { .poweredby { display: none; } .brand img { height: 38px; } .sgrid { grid-template-columns: 1fr !important; } }

/* cards in a grid may shrink; form fields fill their cell instead of forcing it wider */
.grid > * { min-width: 0; }
.sgrid { grid-template-columns: minmax(130px, 280px) minmax(0, 1fr); }
.sgrid > * { min-width: 0; }
.sgrid input:not([type=checkbox]):not([type=radio]), .sgrid select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.sgrid .row input:not([type=checkbox]) { width: auto; flex: 1 1 120px; }
.sgrid .row { min-width: 0; }
.card .row > span { overflow-wrap: anywhere; min-width: 0; }
.card .row[style*="space-between"] > span:last-child { text-align: right; }
table.t td.mono { overflow-wrap: anywhere; }
table.t.bales td { white-space: nowrap; } table.t.bales.fit td { white-space: normal; overflow-wrap: anywhere; } table.t.bales th.num, table.t.bales td.num { text-align: right; font-variant-numeric: tabular-nums; }
label.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border: 1px solid #2a3a4b; border-radius: 999px; padding: 3px 10px; color: var(--dim); cursor: pointer; user-select: none; } label.chip.on { color: var(--text); border-color: #3b5169; background: #16202c; } label.chip input { margin: 0; }

.brand img.dark { background: #0b1117; }

/* login (uses the HMI's logins) */
.hlogin { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 20% 10%, #1b2a3a, #05080c 80%); padding: 16px; }
.hlcard { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 90px #000c; }
.hlcard img { height: 70px; align-self: flex-start; background: var(--cotton); border-radius: 8px; padding: 4px; }
.hlcard h2 { margin: 4px 0 0; } .hlcard label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
.hlcard input { height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #0a1118; color: var(--text); padding: 0 12px; font-size: 16px; font-family: inherit; }
.hlcard .btn { height: 52px; font-size: 17px; } .hlerr { color: #fca5a5; min-height: 1em; margin: 0; }

/* ---- phones (v1.10.9): side menu becomes a bottom bar, cards stack, tables scroll sideways instead of squeezing */
@media (max-width: 640px) {
  #wrap { flex-direction: column-reverse; }
  nav { width: 100%; height: 60px; flex-direction: row; justify-content: space-around; align-items: center; padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid #1d2a38; gap: 2px; }
  nav button { height: 48px; flex: 1; justify-content: center; padding: 0; border-radius: 10px; }
  nav button.on { box-shadow: inset 0 3px 0 var(--accent); }
  nav .foot { display: none; }
  header { height: 54px; padding: 0 10px; gap: 8px; }
  header .btn { height: 36px; padding: 0 10px; font-size: 13px; }
  main { padding: 12px; }
  h2 { font-size: 18px; flex-wrap: wrap; gap: 8px; }
  h2 input { width: 100% !important; order: 9; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 26px; }
  .card { padding: 12px; }
  .tablewrap { max-height: none; overflow-x: auto; }
  table.t { min-width: 720px; }
  table.t td.mono { overflow-wrap: normal; white-space: nowrap; }
  .row { gap: 6px; }
  .row .btn { height: 36px; padding: 0 10px; font-size: 13px; }
  .modal { width: calc(100vw - 16px) !important; max-width: none !important; padding: 12px !important; }
}

/* ---- Johnny in the historian: a drawer on the right (full width on a phone) */
.jbtn { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 6px; background: #163a5c; border-color: #2b6ea8; color: #fff; }
.jbtn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.jdrawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #0f1822; border-left: 1px solid var(--line); box-shadow: -20px 0 60px #0009; z-index: 40; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s; }
.jdrawer.open { transform: none; }
.jd-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #111c28; }
.jd-h img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.jd-h b { display: block; font-size: 15px; } .jd-h small { color: var(--dim); font-size: 12px; }
.jd-x { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 18px; cursor: pointer; }
.jd-chat { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.jd-msg { max-width: 92%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.jd-msg.me { align-self: flex-end; background: #1d4f7c; border-bottom-right-radius: 4px; }
.jd-msg.ai { align-self: flex-start; background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.jd-msg.ai .steps { display: block; margin-top: 6px; color: var(--dim); font-size: 11.5px; }
.jd-msg.ai .act { display: inline-block; margin-top: 8px; }
.jd-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.jd-quick button { border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
.jd-in { display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #111c28; }
.jd-in textarea { flex: 1; min-height: 60px; max-height: 170px; line-height: 20px; resize: none; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 10px 12px; font: inherit; font-size: 14px; }
.jd-in .btn.pri { height: 44px; align-self: flex-end; }
.jd-think { color: var(--dim); font-size: 13px; font-style: italic; }
@media (max-width: 640px) { .jbtn span { display: none; } .jbtn { padding: 0 6px; } }
.jd-msg code { background: #0b1117; border-radius: 4px; padding: 0 4px; font-size: 12.5px; } .jd-msg .trow { display: block; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.jl-list { max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.jl-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.jl-item summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; } .jl-item summary::-webkit-details-marker { display: none; }
.jl-item summary b { font-size: 14px; } .jl-a { margin-top: 8px; font-size: 14px; line-height: 1.45; border-top: 1px solid var(--line); padding-top: 8px; white-space: pre-wrap; }
.jd-x[data-jlog] { margin-left: auto; font-size: 16px; } .jd-x[data-jx] { margin-left: 6px; }
.jd-acts { display: flex; gap: 6px; margin-top: 8px; } .jd-sharebox { width: 100%; min-height: 40vh; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 13px/1.45 inherit; white-space: pre-wrap; } .jd-x[data-jshare-all] { margin-left: auto; font-size: 16px; } .jd-x[data-jlog] { margin-left: 6px; }
/* spreadsheets attached to Johnny */
.jd-files { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 6px; } .jd-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 12.5px; font-weight: 600; } .jd-chip small { color: var(--dim); font-weight: 500; } .jd-chip button { border: 0; background: transparent; color: var(--dim); cursor: pointer; font-size: 13px; padding: 0 4px; }
.jdrawer.jd-drop { outline: 3px dashed var(--accent, #3b82f6); outline-offset: -4px; }

/* feedback on Johnny's answers */
.fb-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; min-height: 28px; }
.fb-b { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 12px; cursor: pointer; } .fb-b:hover { border-color: var(--text); } .fb-b.fb-incorrect:hover { border-color: #e5484d; color: #e5484d; }
.fb-in { flex: 1; min-width: 160px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 8px; font: 12px/1.2 inherit; }

/* ---- Excubo brand login (2026-11) */
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/michroma/400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat/500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat/600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat/700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/montserrat/600i.woff2') format('woff2'); }
.hlogin { background: #1D1447; font-family: Montserrat, system-ui, sans-serif; color: #fff; position: fixed; }
.hlogin .g-grad { position: absolute; inset: 0; pointer-events: none; }
.hlogin[data-grad="streak"] .g-grad { background: linear-gradient(118deg, rgba(255,0,46,0) 38%, rgba(255,0,46,.34) 52%, rgba(0,102,255,.26) 62%, rgba(0,102,255,0) 76%); }
.hlogin[data-grad="glow"] .g-grad { background: radial-gradient(ellipse 60% 70% at 8% 100%, rgba(255,0,46,.45) 0%, rgba(255,0,46,0) 60%), radial-gradient(ellipse 55% 60% at 100% 0%, rgba(0,102,255,.38) 0%, rgba(0,102,255,0) 60%); }
.hlogin[data-grad="dusk"] .g-grad { background: linear-gradient(180deg, rgba(0,102,255,.16) 0%, rgba(29,20,71,0) 45%, rgba(255,0,46,.42) 100%); }
.hlogin[data-grad="silver"] .g-grad { background: linear-gradient(135deg, rgba(244,245,247,.22) 0%, rgba(174,179,189,.10) 30%, rgba(29,20,71,0) 55%, rgba(255,0,46,.18) 100%); }
.hlogin[data-grad="plain"] .g-grad { background: none; }
.hlcard { position: relative; width: min(460px, 100%); background: #141038; border: 1px solid #2b2560; border-radius: 20px; padding: 28px; gap: 12px; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.hlcard .xb-lock { display: flex; align-items: center; gap: 16px; } .hlcard .xb-e { width: 88px; height: 74px; fill: #FF002E; flex: none; }
.hlcard .xb-rule { width: 2px; height: 68px; background: #fff; opacity: .5; } .hlcard .xb-words { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hlcard .xb-name { font-family: Michroma, Montserrat, sans-serif; font-style: italic; font-size: 32px; letter-spacing: .02em; line-height: 1; color: #fff; }
.hlcard .xb-by { display: flex; align-items: center; gap: 7px; } .hlcard .xb-by i { font-style: italic; font-weight: 600; font-size: 14px; } .hlcard .xb-by img { height: 20px; width: auto; }
.hlcard .xb-fam { display: flex; align-items: center; gap: 12px; color: #FF002E; margin-top: 4px; } .hlcard .xb-fam svg { width: 36px; height: 36px; }
.hlcard .xb-fam small { display: block; font-family: Michroma, Montserrat, sans-serif; font-style: italic; font-size: 13px; color: #fff; line-height: 1.1; }
.hlcard .xb-fam b { display: block; font-size: 20px; font-weight: 600; letter-spacing: .06em; color: #fff; line-height: 1.1; }
.hlcard .xb-plant { display: flex; align-items: center; gap: 12px; margin-top: 6px; } .hlcard .xb-plant img { height: 44px; align-self: center; background: #fff; border-radius: 8px; padding: 4px; }
.hlcard h2 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; } .hlcard p.dim { color: #c9c5e6; }
.hlcard label { color: #E5E7EB; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hlcard input { background: #0f0b2a; border: 1px solid #2b2560; color: #fff; border-radius: 10px; font-family: inherit; } .hlcard input:focus { border-color: #0066FF; outline: none; box-shadow: 0 0 0 3px #0066ff33; }
.hlcard .xb-go { height: 54px; border: 0; border-radius: 999px; background: #FF002E; color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .06em; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.hlcard .xb-go span { font-size: 22px; line-height: 1; } .hlcard .xb-go:hover { background: #ff1f47; }
.hlcard .hlerr { color: #ff6b84; } .hlcard details { color: #8a90a8; } .hlcard summary { cursor: pointer; }
@media (max-width: 480px) { .hlcard { padding: 22px 18px; } .hlcard .xb-e { width: 70px; height: 58px; } .hlcard .xb-name { font-size: 25px; } }
.hlcard .xb-by img { background: none; padding: 0; border-radius: 0; height: 20px; align-self: auto; }
.hlcard h2 { text-transform: none; letter-spacing: 0; }
/* 1.49.1 - same on the historian: scroll a short phone screen instead of clipping the card top and bottom */
.hlogin { flex-direction: column; justify-content: flex-start; overflow: auto; -webkit-overflow-scrolling: touch; }
.hlcard { flex-shrink: 0; margin-top: auto; margin-bottom: auto; }
/* a read-only site: what the assistant was not allowed to do, said under the answer */
.jn-ro { margin: 8px 0 0; padding: 6px 10px; border-left: 3px solid #f59e0b; background: var(--bg); border-radius: 6px; font-size: 13px; }
