/* THROWAWAY PROTOTYPE. Deliberately ugly: the panel is the product here. */

body {
  margin: 0;
  font: 13px/1.4 system-ui, sans-serif;
  background: #fff;
  color: #111;
}

#banner {
  background: #b00;
  color: #fff;
  padding: 6px 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

#nav {
  padding: 6px 10px;
  border-bottom: 1px solid #ccc;
}
#nav a {
  margin-right: 12px;
  color: #06c;
}
#nav a.active {
  font-weight: bold;
  color: #000;
}

#app {
  padding: 10px;
  max-width: 640px;
}
#app label {
  display: block;
  margin: 4px 0;
}
#app input,
#app select {
  width: 260px;
  padding: 3px;
}
#app button {
  margin-top: 8px;
}

.hint {
  color: #555;
  font-size: 12px;
}
.msg {
  margin: 6px 0;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.msg.err,
.red {
  color: #b00;
}
.msg.ok,
.green {
  color: #060;
}
.amber {
  color: #a60;
}
.grey {
  color: #666;
}
.blue {
  color: #05a;
}

.result pre {
  max-height: 160px;
}

/* ---- debug panel ---- */

#panel {
  border-top: 3px solid #b00;
  margin-top: 16px;
  padding: 8px;
  background: #f6f6f6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.panel-head {
  font-weight: bold;
  margin-bottom: 6px;
}

.toolbar button {
  margin: 0 4px 4px 0;
  font-family: inherit;
  font-size: 11px;
}

.assertions {
  margin: 4px 0 8px;
}
.assertion {
  padding: 2px 0;
}
.assertion .detail {
  color: #444;
  padding-left: 12px;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
  align-items: start;
}
.cols section {
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px;
  min-width: 0;
}
.cols h3,
.cols h4 {
  margin: 4px 0;
  font-size: 11px;
}
.tag {
  color: #666;
  font-weight: normal;
}

.state {
  font-weight: bold;
  font-size: 14px;
  padding: 2px 0 4px;
}

#panel table {
  border-collapse: collapse;
  width: 100%;
}
#panel th {
  text-align: left;
  color: #555;
  font-weight: normal;
  vertical-align: top;
  padding-right: 6px;
  white-space: nowrap;
}
#panel td {
  word-break: break-all;
}
table.log {
  font-size: 10px;
}
table.log th,
table.log td {
  border-bottom: 1px solid #eee;
  padding: 1px 3px;
}
table.log .path {
  word-break: break-all;
}

#panel pre,
.curl {
  background: #f2f2f2;
  border: 1px solid #ddd;
  padding: 4px;
  margin: 2px 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
pre.claims {
  background: #eef7ee;
  border-color: #9c9;
}

.limitation {
  margin-top: 8px;
  padding: 6px;
  border: 1px dashed #b00;
  background: #fff8f8;
  line-height: 1.5;
}
