/* SECTION BOX */
.section-box{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:10px;
  padding:18px;
  margin-bottom:18px;
}

.label{
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:10px;
}

/* INTRO / EXPLAINER (same section-box style, just a toggle) */
.intro-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
}
.intro-head h3{
  margin:0;
  font-size:14px;
  font-weight:600;
}
.intro-head span{
  font-size:13px;
  color:#07517d;
}
.intro-body{
  margin-top:12px;
  font-size:13px;
  color:#444;
  line-height:1.6;
}
.intro-body.hidden{display:none;}

.field-table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
  font-size:13px;
}
.field-table th,.field-table td{
  border:1px solid #eee;
  padding:6px 8px;
  text-align:center;
}
.field-table th{
  background:#f0f0f0;
}

/* EXAMPLE CHIPS */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.chip{
  font-size:12px;
  padding:6px 12px;
  border-radius:20px;
  background:#fff;
  border:1px solid #ddd;
  cursor:pointer;
}
.chip:hover{background:#f0f0f0;}

/* INPUT */
.input-box{
  width:100%;
  padding:12px;
  border:1px solid #ccc;
  border-radius:6px;
  box-sizing:border-box;
}

/* GRID OPTIONS */
.grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:10px;
}

.toggle{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px;
  border:1px solid #eee;
  background:#fff;
  border-radius:8px;
  font-size:13px;
}

/* BUTTONS (same app style) */
.btns{
  display:flex;
  justify-content:flex-end;
  margin-top:15px;
  gap:10px;
}

.app{
  padding:12px 20px;
  background:linear-gradient(135deg,#0a3d62,#07517d);
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer;
}

.secondary{
  padding:12px 20px;
  background:#eee;
  border:none;
  border-radius:4px;
  cursor:pointer;
}

/* OUTPUT */
.output{
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  padding:15px;
  font-size:13px;
  line-height:1.6;
}

.output .placeholder{
  color:#999;
  white-space:pre-wrap;
}

.result-headline{
  background:linear-gradient(135deg,#0a3d62,#07517d);
  color:#fff;
  border-radius:8px;
  padding:16px 18px;
  font-size:17px;
  font-weight:600;
  margin-bottom:14px;
  line-height:1.4;
}
.result-headline .sub{
  display:block;
  font-size:12px;
  font-weight:400;
  color:#cfe0ea;
  margin-top:6px;
  font-family:'SFMono-Regular',Consolas,monospace;
}

.result-breakdown{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-bottom:16px;
}
.rb-cell{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:6px;
  padding:9px 6px;
  text-align:center;
}
.rb-cell .k{
  font-size:10px;
  color:#888;
  text-transform:uppercase;
  letter-spacing:.3px;
  margin-bottom:4px;
}
.rb-cell .v{
  font-family:'SFMono-Regular',Consolas,monospace;
  font-size:13px;
  font-weight:700;
  color:#07517d;
}

.result-runs{
  border:1px solid #eee;
  border-radius:8px;
  padding:14px 16px;
  margin-bottom:14px;
}
.result-runs h4{
  margin:0 0 10px;
  font-size:12px;
  color:#07517d;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.run-row{
  display:flex;
  padding:7px 0;
  border-bottom:1px dashed #eee;
  font-size:13px;
}
.run-row:last-child{border-bottom:none;}
.run-row .idx{
  color:#999;
  font-size:11px;
  margin-right:8px;
  min-width:16px;
}

.result-verbose{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:8px;
  padding:12px 14px;
  font-size:12px;
  color:#666;
  line-height:1.6;
}

.result-error{
  background:#fdf1ec;
  border:1px solid #f0c7ab;
  color:#a1481a;
  border-radius:8px;
  padding:14px 16px;
  font-size:13px;
  font-weight:600;
}