/* Back office interface styles (served as /style.css). */
:root {
  --bg: #0e0c14;
  --card: #1a1724;
  --line: #2c2838;
  --text: #f3eee4;
  --dim: #a9a2b6;
  --accent: #f2b134;
  --ok: #7bd389;
  --bad: #ff7b72;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.45 system-ui,
    sans-serif;
}
header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
header b {
  font-size: 16px;
}
nav a.stand {
  color: var(--accent);
  text-decoration: none;
  padding: 0 8px;
  white-space: nowrap;
}
nav button.on {
  background: var(--accent);
  color: #1a1300;
}
.docs iframe {
  width: 100%;
  height: calc(100vh - 210px);
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--dim);
  font-weight: 600;
}
input,
select,
textarea,
button {
  font: inherit;
  color: var(--text);
  background: #262236;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
button {
  cursor: pointer;
}
button.main {
  background: var(--accent);
  color: #1a1300;
  font-weight: 700;
  border: 0;
}
button.danger {
  background: var(--bad);
  color: #1a0000;
  border: 0;
}
form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}
label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--dim);
  font-size: 12px;
}
.err {
  color: var(--bad);
}
.ok {
  color: var(--ok);
}
.dim {
  color: var(--dim);
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  z-index: 10;
}
.modal .box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  max-width: 460px;
}
.modal .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
table.grid {
  width: auto;
  margin: 6px 0 10px;
}
table.grid td {
  border: 1px solid var(--line);
  text-align: center;
  min-width: 38px;
  font-weight: 600;
}
table.grid td.hit {
  background: var(--ok);
  color: #0e0c14;
}
a {
  color: var(--accent);
}
.gcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.gcard {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.gcard a.play {
  display: inline-block;
  margin-top: 6px;
  background: var(--accent);
  color: #1a1300;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 14px;
  text-decoration: none;
}
.gcard h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.gcard ul {
  margin: 6px 0;
  padding-left: 18px;
}
.rtpchart {
  margin: 0 0 18px;
  position: relative;
}
.rtpchart svg {
  width: 100%;
  height: auto;
  display: block;
}
.rtpchart .gridline {
  stroke: var(--line);
  stroke-width: 1;
}
.rtpchart .tick {
  fill: var(--dim);
  font-size: 11px;
}
.rtpchart .expected {
  stroke: var(--dim);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.rtpchart .series {
  fill: none;
  stroke: #3987e5;
  stroke-width: 2;
  stroke-linejoin: round;
}
.rtpchart .dot {
  fill: #3987e5;
  stroke: var(--card);
  stroke-width: 2;
}
.rtpchart .cross {
  stroke: var(--text);
  stroke-width: 1;
}
.rtpchart .hit {
  fill: transparent;
}
.rtpchart .tip {
  min-height: 20px;
  font-size: 12px;
  color: var(--text);
}
#login {
  max-width: 320px;
  margin: 80px auto;
}
#login form {
  flex-direction: column;
  align-items: stretch;
}
