:root{
  --bg:#0b0f14;
  --card:#121826;
  --card2:#0f1522;
  --text:#e8eefc;
  --muted:#a8b3cf;
  --line:#24304a;
  --accent:#7aa7ff;
  --accent2:#77ffcc;
  --danger:#ff6b6b;
  --ok:#61ff9a;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo","Noto Sans KR", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(122,167,255,.18), transparent 60%),
              radial-gradient(1000px 500px at 80% 0%, rgba(119,255,204,.12), transparent 55%),
              var(--bg);
  color:var(--text);
}

.top{
  position:sticky; top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.72);
  border-bottom:1px solid rgba(36,48,74,.65);
}

.brand{
  display:flex; gap:12px;
  align-items:center;
  padding:18px 16px 10px;
  max-width: 1040px;
  margin: 0 auto;
}
.logo{
  width:44px; height:44px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(122,167,255,.25), rgba(119,255,204,.18));
  border:1px solid rgba(122,167,255,.35);
  box-shadow: var(--shadow);
  font-weight:800;
  letter-spacing:.5px;
}
.brand h1{ margin:0; font-size:20px; }
.brand p{ margin:2px 0 0; color:var(--muted); font-size:13px; }

.tabs{
  display:flex; gap:8px;
  padding: 0 16px 14px;
  max-width: 1040px;
  margin: 0 auto;
}
.tab{
  border:1px solid rgba(36,48,74,.9);
  background: rgba(18,24,38,.55);
  color: var(--text);
  padding:10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-size:13px;
  transition: .15s transform ease, .15s background ease, .15s border-color ease;
}
.tab:hover{ transform: translateY(-1px); border-color: rgba(122,167,255,.55); }
.tab.is-active{
  background: linear-gradient(135deg, rgba(122,167,255,.22), rgba(119,255,204,.16));
  border-color: rgba(122,167,255,.65);
}

.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 16px 30px;
}

.panel{ display:none; }
.panel.is-active{ display:block; }

h2{
  margin: 10px 0 8px;
  font-size: 18px;
}
.hint{
  margin:0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 860px){
  .grid2{ grid-template-columns: 1fr 1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(18,24,38,.9), rgba(15,21,34,.9));
  border:1px solid rgba(36,48,74,.85);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.card h3{
  margin: 0 0 10px;
  font-size: 14px;
  color: #dbe6ff;
}

.form{
  display:grid;
  gap: 10px;
}
label{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
input[type="number"]{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(36,48,74,.95);
  background: rgba(11,15,20,.65);
  color: var(--text);
  outline:none;
}
input[type="number"]:focus{
  border-color: rgba(122,167,255,.7);
  box-shadow: 0 0 0 3px rgba(122,167,255,.15);
}

.check{
  flex-direction: row;
  align-items:center;
  gap: 10px;
}
.check input{ transform: scale(1.1); }

.actions{
  display:flex;
  gap: 10px;
  margin: 14px 0 8px;
}
.btn{
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(122,167,255,.6);
  background: rgba(122,167,255,.18);
  color: var(--text);
  cursor:pointer;
  font-weight: 700;
  letter-spacing:.2px;
}
.btn:hover{ border-color: rgba(119,255,204,.55); }
.btn.ghost{
  border-color: rgba(36,48,74,.95);
  background: rgba(18,24,38,.4);
  color: var(--muted);
  font-weight: 600;
}
.btn.ghost:hover{
  color: var(--text);
  border-color: rgba(122,167,255,.45);
}

.result{
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(36,48,74,.95);
  background: rgba(15,21,34,.55);
  color: var(--text);
  line-height: 1.55;
}
.kv{
  display:grid;
  gap: 8px;
}
.row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(36,48,74,.75);
  padding-bottom: 8px;
}
.row:last-child{ border-bottom:none; padding-bottom:0; }
.key{ color: var(--muted); font-size: 12px; }
.val{ font-weight: 750; }
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(36,48,74,.95);
  background: rgba(11,15,20,.45);
  font-size: 12px;
  color: var(--muted);
}

.foot{
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.mini{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
}
.tag{
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(36,48,74,.95);
  background: rgba(18,24,38,.45);
  color: #dbe6ff;
}
.sep{ opacity:.6; }
