:root{
  --ink:#172126;
  --muted:#6f7b81;
  --hair:#dde5e7;
  --grid:rgba(24,33,38,.035);
  --green:#2fbf71;
  --orange:#e77730;
  --bg:#f8faf9;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  height:100%;
  background:var(--bg);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Noto Sans KR",system-ui,sans-serif;
  overflow:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:18px 18px;
}
.top{
  height:76px;
  max-width:1280px;
  margin:0 auto;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  line-height:1;
}
.brand img{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:block;
  object-fit:contain;
}
.brand span{
  height:48px;
  display:flex;
  align-items:center;
  font-size:28px;
  line-height:1;
  font-weight:500;
  letter-spacing:.01em;
  color:#2f6f4b;
  animation:brandTone 13s ease-in-out infinite, brandPulse 5.5s ease-in-out infinite;
}
@keyframes brandTone{
  0%,100%{color:#2d3438}
  33%{color:#2f7b52}
  66%{color:#c9783d}
}
@keyframes brandPulse{
  0%,100%{opacity:.93;transform:translateY(0)}
  50%{opacity:1;transform:translateY(-.5px)}
}
.docs{
  width:40px;
  height:40px;
  border:1px solid var(--hair);
  border-radius:50%;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#516067;
  background:rgba(255,255,255,.58);
  font-size:21px;
}
.wrap{
  height:calc(100vh - 156px);
  max-width:1280px;
  margin:0 auto;
  padding:0 22px;
  display:grid;
  grid-template-columns:230px 1fr 320px;
  gap:18px;
  align-items:center;
}
.panel{
  border:1px solid rgba(221,229,231,.9);
  border-radius:20px;
  background:rgba(255,255,255,.52);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 32px rgba(24,33,38,.045);
}
.controls{
  padding:14px;
}
.kicker{
  font-size:11px;
  font-weight:700;
  letter-spacing:.26em;
  color:#516067;
  margin-bottom:12px;
}
.form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
label{
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-bottom:4px;
}
input,select{
  width:100%;
  height:34px;
  border:1px solid var(--hair);
  border-radius:11px;
  background:rgba(255,255,255,.85);
  padding:0 10px;
  font-size:13px;
  color:var(--ink);
}
#modeFixed{
  pointer-events:none;
  user-select:none;
  color:var(--ink);
  -webkit-text-fill-color:var(--ink);
}
.actions{
  display:grid;
  gap:8px;
  margin-top:12px;
}
button{
  border:1px solid var(--hair);
  border-radius:13px;
  background:rgba(255,255,255,.82);
  padding:10px 11px;
  text-align:left;
  cursor:pointer;
  color:var(--ink);
}
button b{
  display:block;
  font-size:12px;
  margin-bottom:3px;
  line-height:1.25;
}
button span{
  display:block;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.35;
}
.hero{
  position:relative;
  min-height:580px;
}
.product{
  position:absolute;
  inset:0 0 180px 0;
  display:grid;
  place-items:center;
  pointer-events:none;
  transform:translateY(-7%);
}
.productFrame{
  position:relative;
  width:min(92%,760px);
}
.productFrame img{
  display:block;
  width:100%;
  height:auto;
  background:transparent;
  opacity:.96;
  filter:contrast(1.04) brightness(1.02) saturate(.92);
}
.haptic{
  position:absolute;
  left:calc(var(--hx) * 100%);
  top:calc(var(--hy) * 100%);
  width:var(--hs);
  height:var(--hs);
  border-radius:999px;
  pointer-events:none;
  opacity:0;
  transform:translate(-50%,-50%);
  z-index:20;
  border:2.3px solid rgba(231,119,48,.92);
  background:rgba(231,119,48,.20);
}
#hChip{
  --hx:.276;
  --hy:.532;
  --hs:44px;
}
#hRightTip{
  --hx:.878;
  --hy:.464;
  --hs:32px;
}
#hLeftTip{
  --hx:.592;
  --hy:.392;
  --hs:23px;
}
.haptic.fire{
  animation:hapticCore 1.16s ease-out 1;
}
.haptic.fire::before,
.haptic.fire::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2.3px solid rgba(231,119,48,.84);
}
.haptic.fire::before{
  animation:hapticWaveA 1.16s ease-out 1;
}
.haptic.fire::after{
  animation:hapticWaveB 1.16s ease-out .12s 1;
}
@keyframes hapticCore{
  0%{opacity:1;transform:translate(-50%,-50%) scale(.72)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(1.24)}
}
@keyframes hapticWaveA{
  0%{opacity:.86;transform:scale(.35)}
  100%{opacity:0;transform:scale(2.82)}
}
@keyframes hapticWaveB{
  0%{opacity:.58;transform:scale(.58)}
  100%{opacity:0;transform:scale(3.62)}
}
.monitors{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  display:grid;
  gap:10px;
}
.monitor{
  height:88px;
  border:1px solid rgba(221,229,231,.82);
  border-radius:18px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(7px);
  padding:10px 12px;
}
.mh{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:3px;
}
.mh b{
  font-size:13px;
  font-weight:600;
}
.badge{
  font-size:10.5px;
  color:#7c878c;
}
canvas{
  display:block;
  width:100%;
  height:52px;
}
.evidence{
  padding:14px;
  height:580px;
  display:flex;
  flex-direction:column;
  text-align:center;
}
.enginePill{
  display:block;
  width:100%;
  text-align:center;
  margin:0 auto 10px auto;
  padding:0;
  border:0;
  background:transparent;
  font-size:11px;
  font-weight:700;
  letter-spacing:.26em;
  color:#516067;
}
.statusLead{
  width:100%;
  text-align:center;
  white-space:pre-line;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.55;
  margin:0 auto 10px auto;
}
.statusLead .state-normal,
.statusLead .state-alert{
  display:block;
  text-align:center;
  margin:0 auto 8px auto;
}
.statusLead .state-normal{color:var(--green)}
.statusLead .state-alert{color:var(--orange)}
.trace{
  flex:1;
  min-height:0;
  background:#0e171b;
  color:#dbe6e6;
  border-radius:14px;
  padding:12px;
  overflow:auto;
  font:11px/1.58 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.line{
  opacity:0;
  transform:translateY(-2px);
  animation:lineIn .22s forwards;
  white-space:pre-wrap;
}
@keyframes lineIn{
  to{opacity:1;transform:none}
}
.footer{
  height:74px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#8e989d;
  font-size:11px;
  line-height:1.55;
  padding:0 10px;
  transform:translateY(-6px);
}
.footer a,
.footer a:link,
.footer a:visited,
.footer span{
  color:#8e989d !important;
  text-decoration:none !important;
  pointer-events:none !important;
}
@media(max-width:980px){
  html,body{overflow:auto}
  .top{height:64px;padding:0 14px}
  .brand img{width:35px;height:35px;flex-basis:35px}
  .brand span{height:35px;font-size:21px}
  .wrap{height:auto;display:block;padding:0 14px}
  .panel{margin-bottom:14px}
  .hero{min-height:520px}
  .product{position:relative;inset:auto;height:250px;transform:translateY(-5%)}
  .productFrame{width:100%}
  .monitors{position:relative}
  .evidence{height:420px}
  .footer{
    height:auto;
    padding:10px 10px 24px;
    transform:none;
    word-break:keep-all;
    overflow-wrap:normal;
  }
}


/* GNX_STATUS_GAP_CSSONLY_V2_BEGIN 20260526T045515Z */
.statusLead .state-normal,
.statusLead .state-alert{
  display:block !important;
  text-align:center !important;
  margin:0 auto 0 auto !important;
  padding:0 !important;
  line-height:1.28 !important;
}
/* GNX_STATUS_GAP_CSSONLY_V2_END */


/* GNX_EVIDENCE_BALANCE_V3_BEGIN 20260526T055003Z */
/* White OS Engine card: keep width, align height visually to IAM Info card red-line reference */
.evidence{
  height:540px !important;
  margin-top:38px !important;
  padding:14px !important;
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

/* Title line and status block: compact, calm, professional spacing */
.enginePill{
  margin:0 auto 10px auto !important;
}

.statusLead{
  margin:0 auto 8px auto !important;
  line-height:1.48 !important;
}

.statusLead .state-normal,
.statusLead .state-alert{
  display:block !important;
  margin:0 auto 8px auto !important;
}

/* Black JSON box: slightly lower, fully contained inside white card */
.evidence > .trace{
  flex:0 0 330px !important;
  height:330px !important;
  min-height:0 !important;
  max-height:330px !important;
  margin-top:10px !important;
  margin-bottom:8px !important;
  overflow:auto !important;
  box-sizing:border-box !important;
}

/* Mobile safeguard */
@media(max-width:980px){
  .evidence{
    height:500px !important;
    margin-top:20px !important;
  }
  .evidence > .trace{
    flex:0 0 290px !important;
    height:290px !important;
    max-height:290px !important;
    margin-top:8px !important;
    margin-bottom:6px !important;
  }
}
/* GNX_EVIDENCE_BALANCE_V3_END */


/* GNX_EVIDENCE_BOTTOM_MOBILELINE_V4_BEGIN 20260526T060328Z */

/*
  Desktop:
  - Keep OS Engine card width.
  - Pull only the white parent card bottom upward to align with
    the Blood Pressure dotted-line reference.
  - Do not resize/move the black JSON trace box.
*/
@media(min-width:981px){
  .evidence{
    height:495px !important;
    overflow:visible !important;
  }
}

/*
  Mobile only:
  Make the final status sentence
  "Rule Graph & Evidence Packet에 의해 상태 안내만을 합니다."
  stay on one line without changing desktop layout.
*/
@media(max-width:980px){
  .statusLead{
    width:calc(100% + 42px) !important;
    margin-left:-21px !important;
    margin-right:-21px !important;
    font-size:9.2px !important;
    line-height:1.45 !important;
    letter-spacing:-0.045em !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
  }

  .statusLead .state-normal,
  .statusLead .state-alert{
    font-size:10.5px !important;
    letter-spacing:0 !important;
  }
}

/* GNX_EVIDENCE_BOTTOM_MOBILELINE_V4_END */

