:root {
  --ink: #20252a;
  --muted: #626b76;
  --line: #d7dce1;
  --blue: #124ad8;
  --paper: #f3f5f7;
  --mono: ui-monospace, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.5 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #bac2cc;
  border-radius: 3px;
  background: #fff;
  padding: 9px 12px;
  color: var(--ink);
  min-height: 38px;
}
button:hover {
  background: #edf2ff;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #124ad8;
  outline-offset: 3px;
}
header {
  display: flex;
  align-items: center;
  gap: 25px;
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 35px;
}
.wordmark {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -2px;
  text-decoration: none;
}
.app-name {
  font: 10px var(--mono);
  letter-spacing: 1px;
}
#connection {
  margin-left: auto;
  font: 11px var(--mono);
}
.quote-link {
  font-size: 12px;
  margin-left: 20px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 28px 35px;
}
.tag {
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.6px;
  color: var(--muted);
}
#demo-guide {
  padding: 25px 28px;
  background: #e7edfc;
  border: 1px solid #c7d4f5;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}
#demo-guide[hidden] {
  display: none;
}
#demo-guide h1 {
  font-size: 27px;
  margin: 8px 0;
  letter-spacing: -0.7px;
}
#scenario-description {
  margin: 0;
  max-width: 740px;
  font-size: 13px;
}
.scenario-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scenario-buttons button {
  text-align: left;
  font: 11px var(--mono);
}
.scenario-buttons button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.guide-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font: 10px/1.6 var(--mono);
  border-top: 1px solid #c7d4f5;
  padding-top: 15px;
}
.guide-bottom button {
  font-size: 11px;
  background: none;
  border: 0;
  text-decoration: underline;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.heading h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 8px 0;
}
.role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.role select {
  padding: 9px;
  max-width: 180px;
  border: 1px solid var(--line);
  background: white;
}
.role button {
  font-size: 11px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  font: 11px var(--mono);
}
.topline button {
  font-size: 11px;
  padding: 6px 10px;
}
.desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 14px;
}
.panel-title h2 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.3px;
}
.panel-title > span {
  font: 8px var(--mono);
  color: var(--muted);
  text-align: right;
}
.resource {
  display: grid;
  grid-template-columns: 1fr 126px 87px 66px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #e9ecf0;
  padding: 10px 0;
}
.resource:last-child {
  border: 0;
}
.resource strong {
  font-size: 12px;
}
.resource small {
  font: 9px var(--mono);
  display: block;
  color: var(--muted);
}
.resource select,
.resource input {
  min-width: 0;
  width: 100%;
  padding: 8px 4px;
  border: 1px solid var(--line);
  background: #fafbfc;
  font-size: 11px;
}
.resource button {
  font-size: 10px;
  padding: 7px 5px;
}
.resource.unavailable strong {
  color: #9c2722;
}
.resource.delayed strong {
  color: #955012;
}
.unit-heading {
  background: #e9edf2;
  font: 11px var(--mono);
  padding: 9px 12px;
  margin-top: 18px;
  text-transform: uppercase;
}
.scene {
  display: grid;
  grid-template-columns: 65px 1fr 88px;
  gap: 12px;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.scene time {
  font: 12px var(--mono);
}
.scene strong {
  font-size: 13px;
  display: block;
}
.scene small {
  font: 9px var(--mono);
  color: var(--muted);
}
.scene select {
  width: 100%;
  font-size: 10px;
  padding: 7px 3px;
  border: 1px solid var(--line);
  background: white;
}
.scene.changed {
  border-left: 3px solid var(--blue);
  background: #f2f6ff;
}
.changed-label {
  color: var(--blue);
  font: 9px var(--mono);
  display: block;
  margin-top: 3px;
}
.warning {
  padding: 11px 13px;
  background: #fff2e3;
  border-left: 3px solid #b86616;
  margin: 8px 0;
  font-size: 11px;
}
.action-panel > p {
  font-size: 12px;
  color: var(--muted);
}
.primary-button {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  width: 100%;
  font-weight: 600;
}
.primary-button:hover {
  background: #093bb7;
  color: white;
}
.clock-control {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 18px 0;
  font-size: 10px;
}
.clock-control input {
  display: block;
  padding: 8px;
  border: 1px solid var(--line);
  margin-top: 4px;
}
.clock-control button {
  font-size: 10px;
}
.change-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.change-row strong {
  display: block;
}
.change-row span {
  font: 11px var(--mono);
  color: var(--blue);
}
#proposal > h3 {
  font-size: 14px;
}
.hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.ack-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 12px;
  border-bottom: 1px solid #e9ecf0;
}
.ack-row span {
  font: 10px var(--mono);
  color: #82745e;
}
.ack-row span.confirmed {
  color: #1b6743;
}
#ack {
  margin-top: 15px;
}
textarea {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  resize: vertical;
  margin: 7px 0;
  font-size: 13px;
}
#support-form label {
  font-size: 11px;
}
#support-form button {
  width: 100%;
  font-size: 11px;
}
.ticket {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 12px;
  overflow-wrap: anywhere;
}
.ticket p {
  font-size: 12px;
  margin: 4px 0;
}
.ticket small {
  font: 9px var(--mono);
  color: var(--muted);
}
.ticket button {
  font-size: 10px;
  margin-top: 7px;
}
.history-row {
  border-bottom: 1px solid #e9ecf0;
  display: grid;
  grid-template-columns: 80px 90px 1fr;
  gap: 20px;
  padding: 10px 0;
  font-size: 12px;
}
.history-row time,
.history-row > span {
  font: 10px var(--mono);
  color: var(--muted);
}
.history-row details {
  margin-top: 8px;
}
.history-row summary {
  cursor: pointer;
  font-size: 10px;
  color: var(--blue);
}
.history-row pre {
  white-space: pre-wrap;
  font: 10px/1.7 var(--mono);
  background: #f4f6fa;
  padding: 10px;
}
.notice {
  background: #fff2e3;
  border: 1px solid #e2c99e;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 12px;
}
.footer-note {
  color: var(--muted);
  font-size: 11px;
  max-width: 950px;
}
#access {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
}
@media (max-width: 1000px) {
  .desk-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  main {
    padding: 20px;
  }
  .panel {
    padding: 15px;
  }
  .resource {
    grid-template-columns: 1fr 110px 78px;
    gap: 8px;
  }
  .resource button {
    grid-column: 2/-1;
  }
  .resource strong {
    font-size: 11px;
  }
  header {
    padding: 0 20px;
  }
  .app-name {
    display: none;
  }
  .scene {
    grid-template-columns: 55px 1fr;
    gap: 7px;
  }
  .scene select {
    grid-column: 2;
    width: 100px;
  }
}
@media (max-width: 720px) {
  header {
    height: 60px;
    gap: 10px;
    padding: 0 16px;
  }
  .wordmark {
    font-size: 29px;
  }
  #connection {
    font-size: 9px;
  }
  .quote-link {
    font-size: 10px;
    margin-left: 0;
  }
  main {
    padding: 15px;
  }
  .desk-grid {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: start;
    flex-direction: column;
  }
  .heading h1 {
    font-size: 26px;
  }
  #demo-guide {
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #demo-guide h1 {
    font-size: 24px;
  }
  .scenario-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .scenario-buttons button {
    font-size: 9px;
    flex: 1;
    padding: 8px;
  }
  .guide-bottom {
    display: block;
    font-size: 9px;
  }
  .guide-bottom button {
    margin-top: 10px;
  }
  .resource {
    grid-template-columns: 1fr 112px 85px;
    gap: 6px;
  }
  .resource > div {
    grid-column: 1/-1;
  }
  .resource button {
    grid-column: auto;
  }
  .resource select,
  .resource input {
    font-size: 12px;
    min-height: 38px;
  }
  .resource strong {
    font-size: 13px;
  }
  .scene {
    grid-template-columns: 51px 1fr 80px;
  }
  .scene select {
    grid-column: auto;
    width: 80px;
  }
  .scene strong {
    font-size: 12px;
  }
  .scene small {
    font-size: 8px;
  }
  .panel-title > span {
    font-size: 7px;
  }
  .topline {
    font-size: 9px;
    gap: 8px;
  }
  .topline > div {
    display: flex;
    gap: 5px;
  }
  .topline button {
    font-size: 9px;
  }
  .history-row {
    grid-template-columns: 55px 60px 1fr;
    gap: 10px;
    font-size: 11px;
  }
  .history-row time,
  .history-row > span {
    font-size: 8px;
  }
  .panel {
    padding: 14px;
  }
  .tag {
    font-size: 9px;
  }
  .role select {
    font-size: 12px;
  }
  .quote-link {
    max-width: 90px;
    text-align: right;
  }
  .footer-note {
    font-size: 10px;
  }
}
@media print {
  header,
  #demo-guide,
  .role,
  .topline button,
  aside,
  #resources button,
  .scene select,
  #support-form,
  #refresh,
  #notice {
    display: none !important;
  }
  main {
    padding: 0;
  }
  .desk-grid {
    display: block;
  }
  body {
    background: white;
  }
  .panel {
    break-inside: avoid;
    border: 0;
  }
  #resources input,
  #resources select {
    border: 0;
  }
  .history-panel {
    page-break-before: always;
  }
  .footer-note {
    font-size: 9px;
  }
}
