:root {
  color-scheme: light;
  --ink: #000;
  --line: #8a8a8a;
  --soft-line: #c6c6c6;
  --head: #dbe5f1;
  --subhead: #eef3f8;
  --paper: #fff;
  --muted: #555;
  --bad: #b00020;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.25;
}

button,
textarea {
  font: inherit;
}

.page {
  width: min(1040px, calc(100vw - 16px));
  margin: 8px auto 24px;
}

.event-head {
  text-align: center;
  margin-bottom: 8px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.2;
}

h2 {
  font-size: 15px;
  margin-top: 8px;
}

h3 {
  font-size: 13px;
}

.event-head p {
  color: var(--muted);
  margin-top: 2px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 8px 0;
}

button,
.toolbar a {
  border: 1px solid var(--line);
  background: #f6f6f6;
  color: var(--ink);
  cursor: pointer;
  min-height: 24px;
  padding: 3px 8px;
  text-decoration: none;
}

button:hover,
.toolbar a:hover {
  background: var(--head);
}

button:active,
.toolbar a:active {
  background: #c7d6e8;
  transform: translateY(1px);
}

button:focus-visible,
.toolbar a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

button:disabled {
  color: #777;
  cursor: not-allowed;
  background: #eee;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 10px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 3px 5px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--head);
  font-weight: 700;
}

.status-table {
  table-layout: fixed;
}

.status-table th {
  width: 9%;
}

.status-table td {
  width: 16%;
  text-align: right;
}

.editor {
  border: 1px solid var(--line);
  margin: 8px 0 10px;
}

.editor summary {
  background: var(--subhead);
  cursor: pointer;
  font-weight: 700;
  padding: 4px 6px;
}

textarea {
  display: block;
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 0;
  border-top: 1px solid var(--line);
  outline: 0;
  padding: 7px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
}

.status {
  color: var(--muted);
  margin: 4px 0 8px;
}

.status.updated {
  color: var(--ink);
  font-weight: 700;
}

.status.error {
  color: var(--bad);
  font-weight: 700;
}

.program-title th {
  background: var(--head);
  text-align: center;
}

.summary-table th,
.summary-table td {
  text-align: center;
}

.summary-table .name {
  text-align: left;
}

.details-caption {
  font-weight: 700;
  margin: 10px 0 3px;
}

.element-table th,
.element-table td,
.pcs-table th,
.pcs-table td {
  text-align: right;
  white-space: nowrap;
}

.element-table .element-code,
.pcs-table .component-name {
  text-align: left;
  white-space: normal;
}

.element-table .calls {
  color: var(--muted);
  text-align: left;
  white-space: normal;
}

.total-row td {
  background: #f7f7f7;
  font-weight: 700;
}

.blank {
  color: #777;
}

@media (max-width: 760px) {
  body {
    font-size: 11px;
  }

  .page {
    width: calc(100vw - 8px);
    margin-top: 4px;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .status-table {
    min-width: 720px;
  }

  .element-table,
  .pcs-table,
  .summary-table {
    min-width: 820px;
  }
}
