:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo,
    sans-serif;
  color: #172536;
  background: #f3f5f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.8;
}
main {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto;
}
.bar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
a {
  color: #007c8c;
  text-underline-offset: 4px;
}
.panel {
  max-width: 560px;
  margin: 64px auto 20px;
  padding: 32px;
  background: white;
  border: 1px solid #dce4e9;
  border-top: 4px solid #a92332;
  border-radius: 12px;
}
h1 {
  font-size: 28px;
  line-height: 1.4;
}
.eyebrow {
  color: #a92332;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}
label {
  display: block;
  font-weight: 700;
  margin-top: 20px;
}
input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #8293a4;
  border-radius: 6px;
  font: inherit;
  margin: 8px 0 18px;
}
input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin-right: 8px;
}
button,
.download {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  background: #a92332;
  color: white;
  padding: 11px 20px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #007c8c;
  outline-offset: 3px;
}
.note {
  color: #526174;
  font-size: 13px;
}
#status {
  text-align: center;
  overflow-wrap: anywhere;
}
iframe {
  display: block;
  width: 100%;
  height: 1px;
  border: 1px solid #dce4e9;
  border-radius: 10px;
  background: white;
}
body.document-open main {
  width: min(1600px, calc(100% - 32px));
}
[hidden] {
  display: none !important;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.library-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  background: white;
  color: #172536;
  border: 1px solid #dce4e9;
  border-top: 3px solid #007c8c;
  text-align: left;
}
.library-card:hover {
  border-color: #007c8c;
  background: #f0f7f8;
}
.library-card-title {
  font-size: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
#document-title {
  font-size: 17px;
  margin: 0;
  overflow-wrap: anywhere;
}
#document-bar {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .library-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 24px;
    margin-top: 32px;
  }
}
@media print {
  .bar,
  #status,
  #gate {
    display: none;
  }
  main {
    width: 100%;
    margin: 0;
  }
  iframe {
    border: 0;
  }
}
