:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #edf1f6;
  color: #2f4657;
  --line: #cbd7db;
  --muted: #657b88;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: transparent;
  border: 1px solid #cad5de;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 11px;
}
button:hover {
  background: #e5ebef;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #7e83ae;
  outline-offset: 3px;
}
.primary {
  background: #375d74;
  color: #fff;
  border-color: #375d74;
}
.primary:hover {
  background: #466e86;
}
.desk-top {
  height: 82px;
  border-bottom: 1px solid #c6d2dd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  background: #f8fafc;
}
.desk-top > div {
  display: flex;
  gap: 9px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    25px Georgia,
    serif;
}
.brand span {
  font: 8px Arial;
  letter-spacing: 1.4px;
  margin-left: 8px;
}
.saved-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #637f7d;
}
.workspace {
  display: grid;
  grid-template-columns: 240px 300px minmax(0, 1fr);
  min-height: calc(100vh - 116px);
}
.rail {
  padding: 30px 22px;
  background: #e7edf3;
  border-right: 1px solid #c6d2dd;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  line-height: 1.6;
  color: #667c8d;
}
h1 {
  font:
    36px/1.04 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 20px 0 30px;
}
h1 em {
  color: #718795;
  font-weight: 400;
}
.search span {
  display: block;
  font-size: 9px;
  margin-bottom: 9px;
}
.search input {
  width: 100%;
  padding: 11px;
  border: 1px solid #c3d0da;
  background: #f8fafc;
  border-radius: 7px;
  font-size: 11px;
}
.rail nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rail nav button {
  text-align: left;
  border-color: transparent;
  padding: 12px 13px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.rail nav button[aria-pressed="true"] {
  background: #d2deea;
  color: #284f68;
  font-weight: 600;
}
.rail nav .eyebrow {
  margin: 23px 12px 8px;
}
.rail-bottom {
  margin-top: 45px;
  border-top: 1px solid #c6d2dd;
  padding-top: 22px;
}
.rail-bottom img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  mix-blend-mode: multiply;
  border-radius: 12px;
}
.rail-bottom p {
  font:
    20px/1.45 Georgia,
    serif;
  color: #5a7283;
}
.rail-bottom small {
  font-size: 7px;
  letter-spacing: 1.5px;
}
.entry-list-pane {
  background: #f3f6f9;
  border-right: 1px solid #c6d2dd;
  padding: 30px 16px;
  min-width: 0;
}
.list-top {
  padding: 0 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.list-top h2 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}
.list-top span {
  font-size: 9px;
  color: #6b7c89;
}
.entry-select {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 20px 17px;
  margin-bottom: 8px;
}
.entry-select[aria-pressed="true"] {
  background: #fff;
  border-color: #bfcfdc;
  box-shadow: 0 6px 20px #304c6707;
}
.entry-select .date {
  font-size: 9px;
  color: #768590;
}
.entry-select h3 {
  font:
    20px/1.2 Georgia,
    serif;
  margin: 12px 0;
}
.entry-select p {
  font-size: 11px;
  line-height: 1.7;
  color: #677e8a;
  margin: 0;
}
.entry-select small {
  display: block;
  font-size: 8px;
  margin-top: 15px;
  letter-spacing: 1px;
  color: #607483;
}
.local-note {
  font-size: 9px;
  line-height: 1.8;
  color: #72818e;
  margin: 30px 12px;
}
.entry-detail {
  background: #fcfdfc;
  min-width: 0;
  padding: 38px clamp(25px, 4vw, 75px) 35px;
  overflow-wrap: anywhere;
}
.entry-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 9px;
  color: #71838e;
  letter-spacing: 1px;
}
.entry-toolbar > div {
  display: flex;
  gap: 8px;
}
.entry-toolbar button {
  padding: 8px 12px;
  font-size: 10px;
}
.entry-detail h2 {
  font:
    clamp(35px, 3.7vw, 57px) / 1.1 Georgia,
    serif;
  letter-spacing: -1.7px;
  max-width: 510px;
  margin: 46px 0 18px;
}
.entry-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #69808b;
  padding-bottom: 24px;
  border-bottom: 1px solid #dce3e8;
}
.entry-art {
  height: 245px;
  width: 100%;
  object-fit: contain;
  margin: 10px 0;
}
.entry-detail .prose {
  font:
    17px/1.95 Georgia,
    serif;
  white-space: pre-wrap;
  max-width: 600px;
  color: #4c6472;
  margin: 15px 0 30px;
}
.entry-end {
  display: flex;
  align-items: center;
  gap: 14px;
  font:
    italic 13px Georgia,
    serif;
  color: #7a8e99;
}
.entry-end:before {
  content: "";
  height: 1px;
  width: 42px;
  background: #cbd7db;
}
.desk-footer {
  height: 34px;
  background: #e7edf3;
  border-top: 1px solid #c6d2dd;
  display: flex;
  justify-content: space-between;
  padding: 11px 25px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #6a7d8c;
}
.empty {
  padding: 25px 10px;
  font-size: 12px;
  color: #667d8b;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  width: min(570px, calc(100% - 30px));
  color: #254354;
  background: #f8faf9;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #15394d70;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 30px;
  margin: 10px 0 25px;
}
dialog label {
  display: block;
  font-size: 11px;
  margin: 16px 0;
}
dialog input,
dialog select,
dialog textarea {
  width: 100%;
  border: 1px solid #afc0c8;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  color: inherit;
  background: #fff;
}
textarea {
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 22px;
}
#import-count {
  font-size: 14px;
  line-height: 1.7;
}
#status:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #254354;
  color: #fff;
  padding: 15px 23px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 5px 30px #0003;
  z-index: 10;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
  padding: 15px;
  z-index: 20;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 200px 260px minmax(0, 1fr);
  }
  .saved-label {
    display: none;
  }
  .rail {
    padding: 25px 16px;
  }
  .entry-detail {
    padding: 30px;
  }
  .entry-detail h2 {
    font-size: 38px;
  }
  .entry-art {
    height: 190px;
  }
}
@media (max-width: 800px) {
  .desk-top {
    height: auto;
    min-height: 90px;
    padding: 16px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 23px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .rail {
    border-right: 0;
    padding: 20px;
  }
  .rail h1,
  .rail-bottom,
  .rail > .eyebrow {
    display: none;
  }
  .rail nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 15px;
  }
  .rail nav .eyebrow {
    display: none;
  }
  .rail nav button {
    padding: 9px;
  }
  .entry-list-pane {
    padding: 20px;
    border-right: 0;
  }
  .entry-list-pane #entry-list {
    display: flex;
    overflow: auto;
    gap: 10px;
  }
  .entry-select {
    min-width: 225px;
    width: 225px;
    margin: 0;
  }
  .local-note {
    margin: 15px 8px 0;
  }
  .entry-detail {
    padding: 25px;
  }
  .entry-detail h2 {
    margin-top: 30px;
  }
  .entry-art {
    height: 220px;
  }
  .desk-footer {
    height: auto;
    gap: 15px;
    font-size: 6px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
