:root {
  font-family:
    Segoe UI,
    Inter,
    system-ui,
    sans-serif;
  color: #202c3a;
  background: #f5f4f1;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  border: 1px solid #d3d8df;
  border-radius: 5px;
  background: #fff;
  padding: 8px 12px;
  color: #243144;
  cursor: pointer;
}
button:hover {
  background: #eef1f6;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #162a43;
  color: white;
  border-color: #162a43;
}
.primary:hover {
  background: #243f5f;
}
input {
  padding: 9px;
  border: 1px solid #cbd2dc;
  border-radius: 5px;
}
input:focus,
button:focus-visible {
  outline: 2px solid #b58f48;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at top left, #e9edf1, #f7f4ed);
}
.card {
  width: min(460px, calc(100vw - 32px));
  padding: 40px;
  background: white;
  border: 1px solid #e2e5e8;
  border-radius: 12px;
  box-shadow: 0 16px 60px #172b4310;
}
.wordmark {
  font-family: Georgia, serif;
  font-size: 23px;
  letter-spacing: 3px;
  color: #b58f48;
  white-space: nowrap;
}
.wordmark span {
  font-family:
    Segoe UI,
    system-ui,
    sans-serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #748192;
  margin-left: 10px;
}
.card h1 {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
  margin: 30px 0 18px;
}
.card p {
  color: #667185;
  line-height: 1.6;
}
.card form {
  display: grid;
  gap: 15px;
  margin: 25px 0;
}
.card label {
  display: grid;
  gap: 6px;
}
.card small {
  color: #758194;
}
.card #auth-error {
  color: #a42c30;
}
#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.jura-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 53px;
  background: #15263c;
  padding: 9px 18px;
}
.jura-topbar #identity {
  margin-left: auto;
  color: #d3dbe5;
  font-size: 12px;
}
.jura-topbar button {
  background: transparent;
  color: #dce3eb;
  border-color: #445268;
  font-size: 12px;
}
.jura-topbar button:hover {
  background: #2a3d56;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #fbfaf8;
  border-bottom: 1px solid #d9dee5;
}
#title {
  width: min(230px, 35vw);
}
#status {
  font-size: 12px;
  color: #586b7e;
  min-width: 90px;
  margin-right: auto;
}
.autosave {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
}
#app > footer {
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-size: 11px;
  color: #637187;
  background: #eef1f4;
}
#app > footer span {
  margin-left: auto;
}
#message {
  padding: 10px 15px;
  background: #fff1d5;
  color: #70521e;
  border-bottom: 1px solid #ebd6aa;
}
dialog {
  border: 1px solid #d8dee5;
  border-radius: 9px;
  padding: 24px;
  max-width: 720px;
  width: calc(100% - 36px);
  max-height: 85vh;
  box-shadow: 0 20px 90px #15263c33;
}
dialog::backdrop {
  background: #15263c66;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-heading h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}
.document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
}
.document-row div {
  flex: 1;
}
.document-row small {
  display: block;
  color: #6e7c8e;
  margin-top: 5px;
}
pre {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 800px) {
  header .wordmark span {
    display: none;
  }
  #identity {
    display: none;
  }
  .toolbar button {
    font-size: 12px;
    padding: 7px;
  }
  #title {
    order: -1;
    flex: 1;
    width: 50%;
  }
}

#compatibility {
  padding: 7px 16px;
  background: #fff7e2;
  border-bottom: 1px solid #e4d7ad;
  color: #574919;
}
#compatibility p {
  max-width: 900px;
  margin: 8px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.section-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #26374a;
}
.section-grid label.autosave {
  flex-direction: row;
  align-items: center;
}
.section-grid select {
  min-width: 0;
  padding: 9px;
  border: 1px solid #cbd3dd;
  border-radius: 5px;
  background: white;
  font: inherit;
}
.section-help {
  grid-column: 1 / -1;
  margin: 0;
  color: #677585;
  line-height: 1.5;
}
#section-error {
  color: #a62929;
  min-height: 1.4em;
}
@media (max-width: 600px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}
