:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eaf0ff;
  background: #08101f;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #182b5b 0, #08101f 42%, #050914 100%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 60px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px; border: 1px solid #28406d; border-radius: 24px; background: linear-gradient(135deg, rgba(38,74,143,.75), rgba(13,25,49,.8)); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
h1 { margin: 4px 0 8px; font-size: clamp(32px, 5vw, 58px); line-height: 1; }
h2 { margin: 3px 0 0; font-size: 22px; }
p { margin: 0; }
.eyebrow { color: #75a8ff; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.muted { color: #9fb0ce; }
.status-stack { display: grid; gap: 10px; min-width: 210px; }
.pill { display: inline-flex; justify-content: center; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid; }
.pill.online { color: #9affc5; background: rgba(18,125,73,.25); border-color: #248b59; }
.pill.offline { color: #ffc3c3; background: rgba(126,31,31,.24); border-color: #8b3f46; }
.pill.wait { color: #ffe6a5; background: rgba(128,94,20,.25); border-color: #8b6b28; }
.panel { margin-top: 18px; padding: 22px; border: 1px solid #24385f; border-radius: 20px; background: rgba(12,23,45,.88); box-shadow: 0 16px 50px rgba(0,0,0,.2); }
.connect-panel { display: flex; gap: 12px; align-items: flex-end; }
.grid-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; }
.grid-two .panel { margin-top: 18px; }
.field { display: grid; gap: 8px; }
.field.grow { flex: 1; }
label { color: #c8d5ef; font-size: 13px; font-weight: 700; }
input, select { width: 100%; color: #eef4ff; background: #0b162b; border: 1px solid #31466f; border-radius: 12px; padding: 11px 12px; outline: none; }
input:focus, select:focus { border-color: #65a0ff; box-shadow: 0 0 0 3px rgba(101,160,255,.12); }
.input-prefix { display: flex; align-items: center; border: 1px solid #31466f; border-radius: 12px; background: #0b162b; overflow: hidden; }
.input-prefix span { padding-left: 13px; color: #7fa9e9; }
.input-prefix input { border: 0; box-shadow: none; padding-left: 5px; }
button { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; white-space: nowrap; }
button.primary { color: white; background: linear-gradient(135deg, #3d7cff, #725bff); }
button.primary:hover { filter: brightness(1.1); }
button.secondary { color: #d9e5ff; background: #172744; border: 1px solid #31466f; }
button.danger { color: #ffcaca; background: #48202a; border: 1px solid #743847; }
button.small { padding: 9px 12px; font-size: 13px; }
.button-group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.download-link { display: inline-flex; align-items: center; color: white; background: linear-gradient(135deg, #248f68, #2b78a5); text-decoration: none; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.download-link.mac { background: linear-gradient(135deg, #5965dc, #8b5ed7); }
.download-link.windows { background: linear-gradient(135deg, #248f68, #2b78a5); }
.download-link:hover { filter: brightness(1.1); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.code-box { margin-top: 13px; padding: 13px; color: #b9d1ff; border: 1px dashed #3e5e95; border-radius: 12px; background: #081326; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.sim-row { display: grid; grid-template-columns: 120px 1fr 90px auto; gap: 9px; }
.mapping-header, .mapping-row { display: grid; grid-template-columns: 150px minmax(160px, 1.5fr) 120px 100px 110px 46px; gap: 10px; align-items: center; }
.mapping-header { color: #8195b8; font-size: 12px; font-weight: 800; padding: 0 8px 8px; }
.mapping-list { display: grid; gap: 9px; }
.mapping-row { padding: 9px; border: 1px solid #24385f; border-radius: 14px; background: rgba(6,15,31,.75); }
.mapping-row .remove { padding: 9px 0; width: 38px; }
.match-wrap { display: grid; grid-template-columns: 1fr 98px; gap: 7px; }
.like-threshold { display: grid; grid-template-columns: 1fr; }
.actions-row { display: flex; gap: 14px; align-items: center; margin-top: 17px; }
.log-list { display: grid; gap: 8px; max-height: 340px; overflow: auto; }
.log-item { display: grid; grid-template-columns: 82px 80px 1fr; gap: 10px; align-items: center; padding: 10px 12px; background: #091426; border: 1px solid #203558; border-radius: 11px; font-size: 13px; }
.log-kind { text-transform: uppercase; color: #76a7ff; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.log-time { color: #7185a8; font-variant-numeric: tabular-nums; }
@media (max-width: 850px) {
  .hero, .connect-panel { align-items: stretch; flex-direction: column; }
  .grid-two { grid-template-columns: 1fr; gap: 0; }
  .mapping-header { display: none; }
  .mapping-row { grid-template-columns: 1fr 1fr; }
  .mapping-row .remove { width: 100%; }
  .sim-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .mapping-row, .sim-row { grid-template-columns: 1fr; }
  .log-item { grid-template-columns: 70px 1fr; }
  .log-item .log-message { grid-column: 1 / -1; }
}
