:root{
  --bg:#0b1220;
  --panel:#101a2e;
  --text:#d7dbe7;
  --muted:#8b93a7;
  --line:#1e2a44;
}

*{ box-sizing:border-box; }
html, body { height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

#wrap{
  height: 100vh;
  display:flex;
  gap:12px;
  padding:12px;
}

#left{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
}

.topbar{
  padding:10px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;
  margin-bottom:8px;
}
.row:last-child{ margin-bottom:0; }

label{
  font-size:12px;
  color: var(--muted);
}

select, input{
  background:#0f1930;
  color: var(--text);
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 10px;
  outline:none;
}

button{
  background:#16254a;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 12px;
  cursor:pointer;
}
button:hover{ filter:brightness(1.1); }

/* ✅ 차트 래퍼(오버레이 가능) */
#chartWrap{
  position: relative;
  flex: 1 1 auto;
  min-height: 520px;
  width: 100%;
}

#chart{
  position:absolute;
  inset:0;
}

/* ✅ OB 박스 레이어 */
#obLayer{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.ob-box{
  position:absolute;
  border-radius: 10px;
  border: 1px solid rgba(46, 204, 113, 0.60);
  background: rgba(46, 204, 113, 0.18);
}

.ob-box.bear{
  border: 1px solid rgba(231, 76, 60, 0.60);
  background: rgba(231, 76, 60, 0.18);
}

/* 오른쪽 패널 */
#right{
  width: 320px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.h{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.title{
  font-size:12px;
  color: var(--muted);
}

.big{
  font-size: 28px;
  font-weight: 800;
}

.muted{ color: var(--muted); font-size: 12px; }

.badge{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--line);
}

.b-long{ background: rgba(46, 204, 113, 0.18); }
.b-short{ background: rgba(231, 76, 60, 0.18); }
.b-wait{ background: rgba(241, 196, 15, 0.18); }

.reasons{
  margin: 8px 0 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--text);
}
.entryHint{
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(30,42,68,0.9);
  background: rgba(15,25,48,0.8);
  border-radius: 12px;
  line-height: 1.4;
}
.entryHint b{ color: #d7dbe7; }

