/* The sign editor's look, client/style.css's .sign-modal and .sign-editor rules as they are, on this
   page's own modal host (#sign-editor) and the aimed sign's or frame's line under the crosshair. */
#sign-editor {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.45);
  z-index: 30;
  font: 12px ui-monospace, Menlo, monospace;
}
#sign-editor[hidden] {
  display: none;
}
.modal.sign-modal {
  position: relative;
}
#target-info {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(640px, calc(100 * var(--vw) - 32px));
  padding: 4px 10px;
  color: #fff;
  background: rgb(0 0 0 / 0.55);
  font: 12px ui-monospace, Menlo, monospace;
  text-align: center;
  pointer-events: none;
  z-index: 5;
}
#target-info[hidden] {
  display: none;
}
#target-info .action {
  display: block;
  opacity: 0.75;
  font-size: 11px;
}
.modal.sign-modal {
  width: min(560px, calc(100 * var(--vw) - 32px));
  max-height: calc(100 * var(--dvh) - 28px);
  padding: 18px;
  color: #303030;
  background: #c6c6c6;
  border: 4px solid;
  border-color: #fff #555 #555 #fff;
  border-radius: 3px;
  box-shadow:
    0 0 0 2px #161616,
    0 16px 80px #0007;
}
.sign-modal h2 {
  margin: 0;
  color: #303030;
  font-family: inherit;
  font-size: 21px;
  letter-spacing: 0;
  text-shadow: 1px 1px #eee;
}
.sign-modal .inventory-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-right: 38px;
}
.sign-modal .inventory-title > span {
  color: #555;
  font-size: 10px;
}
.sign-modal .close-button {
  right: 14px;
  top: 14px;
  width: 25px;
  height: 25px;
  border: 2px solid;
  border-color: #eee #555 #555 #eee;
  border-radius: 0;
  background: #a5a5a5;
  color: #242424;
  box-shadow: 0 0 0 1px #666;
}
.sign-editor-note {
  margin: 12px 0 14px;
  color: #414141;
  font-size: 10px;
  line-height: 1.6;
}
.sign-editor-note.stale {
  color: #8a2f22;
}
.sign-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 16px;
  align-items: start;
}
.sign-editor-lines {
  display: grid;
  gap: 7px;
}
.sign-editor-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #3d3d3d;
}
.sign-editor-line input {
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  border: 2px solid;
  border-color: #373737 #eee #eee #373737;
  border-radius: 0;
  background: #8b8b8b;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  text-shadow: 1px 1px #373737;
}
.sign-editor-line input:focus-visible {
  outline: 2px solid #fcf5aa;
  outline-offset: 1px;
}
.sign-editor-line input:disabled {
  color: #dcdcdc;
  cursor: wait;
}
.sign-editor-line small {
  color: #555;
  font-size: 9px;
  text-align: right;
}
.sign-editor-line small.over,
.sign-editor-payload.over {
  color: #8a2f22;
}
.sign-editor-preview {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 7px;
  border: 2px solid;
  border-color: #373737 #eee #eee #373737;
  background: #8b8b8b;
}
.sign-editor-preview canvas {
  width: 168px;
  height: 84px;
  image-rendering: pixelated;
}
.sign-editor-preview small {
  color: #e2e2e2;
  font-size: 9px;
  text-shadow: 1px 1px #373737;
}
.sign-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.sign-editor-payload {
  margin-right: auto;
  color: #555;
  font-size: 9px;
}
.sign-editor-actions button {
  padding: 7px 14px;
  border: 2px solid;
  border-color: #eee #555 #555 #eee;
  border-radius: 0;
  background: #a5a5a5;
  color: #242424;
  box-shadow: 0 0 0 1px #666;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.sign-editor-actions button:hover:not(:disabled) {
  background: #b9b9b9;
}
.sign-editor-actions button:disabled {
  color: #6f6f6f;
  cursor: not-allowed;
}
.sign-editor-actions #sign-save {
  background: #737373;
  color: #fff;
  border-color: #555 #e8e8e8 #e8e8e8 #555;
}
