/* Two layers: the training frame (tb-*) and the ChargEye look-alike (ce-*).
   The training frame must always be visible so nobody mistakes this for the real system. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Open Sans", "Segoe UI", Arial, sans-serif; font-size: 13px; color: #1d1d1b; background: #ededed; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

/* ---------- training frame ---------- */
.tb-bar { background: #2b3a8f; color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 38px; position: sticky; top: 0; z-index: 50; }
.tb-bar b { font-weight: 700; letter-spacing: .04em; }
.tb-bar .tb-sp { flex: 1; }
.tb-bar .tb-tag { background: #ffd54a; color: #3a2c00; font-weight: 700; padding: 2px 8px; border-radius: 3px; font-size: 11px; letter-spacing: .05em; }
.tb-btn { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 4px; padding: 4px 10px; }
.tb-btn:hover { background: rgba(255,255,255,.14); }
.tb-btn.tb-primary { background: #fff; color: #2b3a8f; border-color: #fff; font-weight: 700; }
.tb-page { max-width: 980px; margin: 0 auto; padding: 28px 16px 60px; }
.tb-page h1 { font-size: 22px; margin-bottom: 6px; }
.tb-page .tb-lead { color: #555; margin-bottom: 22px; }
.tb-card { background: #fff; border: 1px solid #d8d8d8; border-radius: 6px; padding: 16px 18px; margin-bottom: 12px; }
.tb-sc { display: flex; align-items: center; gap: 16px; }
.tb-sc h3 { font-size: 15px; }
.tb-sc .tb-meta { color: #666; font-size: 12px; margin-top: 2px; }
.tb-sc .tb-sp { flex: 1; }
.tb-go { background: #2b3a8f; color: #fff; border: 0; border-radius: 4px; padding: 8px 16px; font-weight: 700; }
.tb-go:hover { background: #1f2c75; }
.tb-pill { display: inline-block; border-radius: 10px; padding: 1px 9px; font-size: 11px; font-weight: 700; }
.tb-ok { background: #dff3df; color: #1d5a1f; } .tb-bad { background: #fbe1e1; color: #8a1c1c; } .tb-neutral { background: #e9e9e9; color: #444; }
.tb-login { max-width: 340px; margin: 12vh auto 0; }
.tb-login label { display: block; font-weight: 700; margin: 12px 0 4px; }
.tb-login input, .tb-field { width: 100%; border: 1px solid #bbb; border-radius: 4px; padding: 8px 10px; background: #fff; }
.tb-err { color: #a11; margin-top: 10px; min-height: 18px; }
.tb-overlay { position: fixed; inset: 0; background: rgba(20,24,50,.55); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 70px 16px; overflow: auto; }
.tb-modal { background: #fff; border-radius: 8px; max-width: 560px; width: 100%; padding: 22px 24px; border-top: 5px solid #2b3a8f; }
.tb-modal h2 { font-size: 17px; margin-bottom: 10px; }
.tb-modal .tb-call { font-size: 15px; line-height: 1.55; background: #f3f4fb; border-left: 4px solid #2b3a8f; padding: 12px 14px; margin: 10px 0 16px; }
.tb-modal .tb-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.tb-modal .tb-btn { color: #2b3a8f; border-color: #2b3a8f; }
.tb-modal .tb-btn.tb-primary { background: #2b3a8f; color: #fff; }
.tb-radio { display: block; padding: 7px 0; }
.tb-check { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eee; }
.tb-check i { font-style: normal; font-weight: 700; width: 18px; }
.tb-score { font-size: 40px; font-weight: 700; }
table.tb-t { width: 100%; border-collapse: collapse; }
table.tb-t th, table.tb-t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #eee; }

/* ---------- ChargEye look-alike ---------- */
.ce { min-height: calc(100vh - 38px); display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 50px 1fr; }
.ce-top { grid-column: 1 / 3; background: #fff; border-bottom: 1px solid #dcdcdc; display: flex; align-items: center; gap: 12px; padding-right: 14px; }
.ce-burger { width: 48px; text-align: center; font-size: 20px; }
.ce-logo { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.ce-logo .ce-dot { width: 24px; height: 24px; border-radius: 50%; background: #f26a21; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; line-height: 1; }
.ce-logo small { color: #f26a21; font-size: 13px; font-weight: 600; }
.ce-top .ce-sp { flex: 1; }
.ce-org { text-align: right; line-height: 1.2; } .ce-org b { display: block; font-size: 13px; } .ce-org span { font-size: 11px; color: #444; }
.ce-search { border: 0; border-bottom: 1px solid #999; padding: 4px 6px; width: 100px; background: transparent; }
.ce-clock { line-height: 1.15; font-weight: 700; } .ce-clock span { display: block; font-size: 10px; font-weight: 400; }
.ce-rail { background: #333; color: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.ce-rail button { background: none; border: 0; color: #fff; width: 48px; height: 46px; font-size: 11px; }
.ce-rail button.on { background: #555; }
.ce-rail svg { width: 22px; height: 22px; }
.ce-rail .ce-beta { background: #f58a42; height: 58px; font-weight: 700; font-size: 9px; line-height: 1.15; margin-top: 6px; padding: 0; }
.ce-rail .ce-admin { font-weight: 700; margin: 10px 0 2px; background: #4a4a4a; width: 100%; text-align: center; padding: 2px 0; font-size: 11px; }
.ce-main { padding: 0 12px 30px 12px; min-width: 0; }
.ce-tabs { background: #fff; display: flex; gap: 30px; padding: 0 44px; height: 48px; align-items: center; margin: 0 4px 10px -12px; }
.ce-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 2px; font-weight: 700; font-size: 12px; text-transform: uppercase; color: #333; }
.ce-tabs button.on { border-bottom-color: #f26a21; }
.ce-found { font-size: 14px; text-transform: uppercase; margin: 18px 8px 10px; } .ce-found b { color: #d6601f; font-weight: 600; }
table.ce-t { width: 100%; border-collapse: collapse; background: #fff; }
table.ce-t th { text-align: left; padding: 10px 14px; font-size: 12px; background: #ededed; }
table.ce-t td { padding: 8px 14px; border-bottom: 1px solid #efefef; height: 34px; }
table.ce-t tr.ce-click { cursor: pointer; } table.ce-t tr.ce-click:hover td { background: #faf3ee; }
.ce-ok { color: #9a9a9a; } .ce-warn { font-weight: 700; } .ce-warn::before { content: ""; display: inline-block; width: 16px; height: 11px; border: 2px solid #d9342b; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ce-dots span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; }
.d-av { background: #8fc98f; } .d-ch { background: #5b8fc4; } .d-oc { background: #7d7d7d; } .d-un { background: #222; }
.ce-crumb { background: #fff; margin: 0 -12px 12px -12px; padding: 10px 20px; display: flex; align-items: center; gap: 18px; min-height: 58px; }
.ce-crumb .ce-loc { border-bottom: 2px solid #f26a21; padding: 0 30px 4px 2px; line-height: 1.25; cursor: pointer; } .ce-crumb .ce-loc b { display: block; text-transform: uppercase; font-size: 13px; }
.ce-crumb .ce-pick { color: #555; cursor: pointer; background: none; border: 0; padding: 4px 0; }
.ce-crumb .ce-pick.on { color: #1d1d1b; font-weight: 700; border-bottom: 2px solid #f26a21; }
.ce-crumb .ce-x { margin-left: auto; font-size: 22px; background: none; border: 0; }
.ce-grid { display: grid; grid-template-columns: 478px 240px 240px 240px; gap: 12px; align-items: start; }
.ce-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.ce-card { background: #fff; border: 1px solid #dcdcdc; padding: 12px 14px; min-height: 120px; }
.ce-card > h3 { font-size: 16px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; }
.ce-card h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; color: #555; }
.ce-out { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #ddd; cursor: pointer; min-height: 41px; width: 62%; }
.ce-out:hover { background: #faf3ee; }
.ce-chip { min-width: 30px; text-align: center; color: #fff; font-weight: 700; font-size: 11px; padding: 3px 5px; border-radius: 5px; }
.c-av { background: #8fc98f; } .c-ch { background: #5b8fc4; } .c-oc { background: #7d7d7d; } .c-un { background: #222; }
.ce-out .ce-v { line-height: 1.25; font-size: 11px; } .ce-out .ce-v b.nm { display: block; text-transform: uppercase; }
.ce-out.ch .ce-v { color: #5b8fc4; }
.ce-att { display: flex; gap: 8px; align-items: flex-start; border-bottom: 1px solid #ddd; padding-bottom: 6px; margin-bottom: 6px; line-height: 1.2; }
.ce-att b { display: block; text-transform: uppercase; font-size: 11px; } .ce-att small { color: #666; }
.ce-tri { color: #e9a23b; font-size: 18px; line-height: 1; }
.ce-sess { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0; line-height: 1.2; font-size: 11px; cursor: pointer; }
.ce-sess b { text-transform: uppercase; display: block; } .ce-sess .r { text-align: right; color: #5b8fc4; white-space: nowrap; }
.ce-kv { display: grid; grid-template-columns: 150px 1fr; row-gap: 5px; } .ce-kv span { color: #666; }
.ce-usage b { display: block; font-size: 15px; } .ce-usage span { text-transform: uppercase; font-size: 11px; color: #555; font-weight: 700; }
.ce-panel { position: fixed; top: 118px; left: 272px; width: 300px; max-height: calc(100vh - 140px); overflow: auto; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.3); z-index: 40; padding: 12px 14px; }
.ce-panel h3 { font-size: 13px; text-transform: uppercase; display: flex; justify-content: space-between; margin-bottom: 10px; }
.ce-panel h3 button, .ce-raw h3 button { background: none; border: 0; font-size: 18px; line-height: 1; }
.ce-panel .sum { background: #f1f1f1; padding: 8px; display: flex; justify-content: space-between; font-size: 11px; line-height: 1.25; }
.ce-panel .sum b { text-transform: uppercase; display: block; } .ce-panel .blue { color: #5b8fc4; font-weight: 700; }
.ce-panel .lim { display: flex; justify-content: space-between; margin: 10px 0; line-height: 1.25; }
.ce-sec { background: #f1f1f1; font-weight: 700; text-transform: uppercase; padding: 6px 8px; margin-top: 8px; font-size: 12px; display: flex; justify-content: space-between; cursor: pointer; }
.ce-tl { border: 1px solid #ccc; padding: 8px 10px; font-size: 11px; line-height: 1.45; }
.ce-tl .ev { display: grid; grid-template-columns: 40px 1fr; margin-top: 6px; } .ce-tl .ev b { display: block; }
.ce-link { color: #1a3fb0; text-decoration: underline; background: none; border: 0; padding: 0; }
.ce-raw { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; display: flex; align-items: center; justify-content: center; }
.ce-raw > div { background: #fff; width: 520px; max-width: 94vw; padding: 14px 16px; }
.ce-raw h3 { display: flex; justify-content: space-between; text-transform: uppercase; font-size: 13px; margin-bottom: 8px; }
.ce-raw pre { background: #1e1e1e; color: #d6e2d0; padding: 12px; font: 12px/1.5 Consolas, "Courier New", monospace; overflow: auto; max-height: 60vh; margin: 0; }
.ce-cab { border: 1px solid #ddd; padding: 8px 10px; margin-bottom: 8px; } .ce-cab > label { font-weight: 700; display: block; margin-bottom: 6px; }
.ce-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; } .ce-mods label, .ce-sats label { display: flex; gap: 6px; align-items: center; padding: 3px 0; }
.ce-mods label.off, .ce-sats label.off { color: #999; }
.ce-banner { background: #fff4d6; border: 1px solid #e6c463; padding: 8px 10px; margin-bottom: 10px; font-weight: 600; }
.ce-banner.off { background: #fbe1e1; border-color: #d99; }
.ce-in { border: 1px solid #aaa; padding: 5px 8px; width: 90px; background: #fff; }
.ce-btn { background: #fff; border: 1px solid #333; padding: 5px 12px; font-weight: 700; text-transform: uppercase; font-size: 11px; }
.ce-btn:hover { background: #f3f3f3; } .ce-btn.org { background: #f26a21; border-color: #f26a21; color: #fff; }
.ce-form { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; } .ce-form span { min-width: 150px; }
.ce-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 16px; z-index: 90; border-radius: 3px; }
.ce-toast.err { background: #b3261e; }
@media (max-width: 1280px) { .ce-grid { grid-template-columns: 1fr 1fr; } .ce-out { width: 100%; } }
