/* Hexitronics support portal additions on top of site.css */
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #8a99a8; display: inline-block; }
.status-pill.ok i { background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.18); }
.status-pill.warn i { background: #f5a524; box-shadow: 0 0 0 3px rgba(245,165,36,.2); }

.lookup { display: flex; gap: 10px; max-width: 620px; margin-top: 28px; flex-wrap: wrap; }
.lookup input { flex: 1; min-width: 220px; font: 600 1.05rem var(--font); padding: 15px 18px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.lookup input::placeholder { color: var(--on-dark-2); text-transform: none; letter-spacing: 0; font-weight: 500; }
.lookup input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42,168,224,.2); }
.lookup-hint { color: var(--on-dark-2); font-size: .9rem; margin-top: 12px; }
.lookup-hint code, .muted code { background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 6px; font-size: .88em; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 6px; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; background: #e6f4fb; display: grid; place-items: center; margin-bottom: 8px; }
.tile .icon svg { width: 22px; height: 22px; stroke: var(--blue-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile b { font-family: var(--font-display); font-size: 1.1rem; }
.tile span { color: var(--muted); font-size: .9rem; }

.device-card { display: grid; grid-template-columns: 300px 1fr; gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.device-card img { border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 1; object-fit: cover; width: 100%; }
.device-id { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1.05rem; background: var(--bg-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; display: inline-block; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.kv div { background: var(--bg-2); border-radius: 12px; padding: 14px 16px; }
.kv small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.kv b { font-family: var(--font-display); font-size: 1.15rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: #8a99a8; }
.dot.on { background: #22b573; box-shadow: 0 0 0 4px rgba(34,181,115,.15); }
.dot.off { background: #e5484d; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.banner { border-radius: 12px; padding: 14px 18px; font-size: .95rem; margin: 16px 0; }
.banner.ok { background: #e8f7ee; color: #146c2e; }
.banner.info { background: #e6f4fb; color: #0b5d86; }
.banner.warn { background: #fff5e0; color: #8a5a00; }
.banner.err { background: #fdecec; color: #a12020; }

.ticket { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.ticket b { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 2rem; letter-spacing: .06em; color: var(--blue); margin: 8px 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; position: relative; padding: 22px 22px 22px 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--blue); font: 800 1.1rem var(--font-display); display: grid; place-items: center; }
.steps h3 { margin-bottom: 6px; }
.steps p, .steps li li { color: var(--text-2); }
.steps ul { margin: 8px 0 0; padding-left: 18px; }
.toc { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.toc a { display: block; padding: 6px 0; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; color: var(--blue-deep); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 12px 0 0; color: var(--text-2); }

.svc { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.svc b { display: block; }
.svc span { color: var(--muted); font-size: .9rem; }
.svc .state { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.svc .state.ok { color: #146c2e; }
.svc .state.down { color: #a12020; }
.dl { display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none !important; }
.dl:hover { border-color: var(--blue); }
.dl .ext { width: 48px; height: 48px; border-radius: 10px; background: var(--ink); color: var(--blue); font: 800 .75rem var(--font); display: grid; place-items: center; flex: none; }
.dl b { display: block; }
.dl span { color: var(--muted); font-size: .88rem; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.thumbs a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.thumbs img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .device-card, .guide { grid-template-columns: 1fr; }
  .toc { position: static; }
  .kv { grid-template-columns: 1fr 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; margin-top: -32px; } .steps > li { padding-left: 64px; } }
.nav > ul > li > a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 961px) { .header-cta .btn-outline { display: none; } .nav > ul > li > a { padding: 10px 10px; } }
