:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #222b27;
  background: #f6f7f4;
  font-synthesis: none;
  --green: #236949;
  --border: #dfe4dc;
  --muted: #748077;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 78px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: #fcfdfb;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: inherit;
}
.mark {
  background: var(--green);
  color: white;
  border-radius: 9px;
  padding: 7px 6px;
  font-family: monospace;
  font-size: 17px;
}
.header-note,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--muted);
}
main {
  max-width: 1520px;
  margin: auto;
  padding: 0 5vw;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 46px 0 36px;
}
.eyebrow {
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 550;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
button,
a.primary,
.toolbar a {
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  border-radius: 7px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
button:hover,
.toolbar a:hover {
  background: #eef2ec;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary,
button.primary,
a.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  font-weight: 550;
}
.primary:hover,
button.primary:hover {
  background: #195438;
}
.intro .primary {
  padding: 13px 20px;
}
.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  min-height: 580px;
  overflow: hidden;
}
.library {
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  background: #fcfdfa;
}
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 18px;
}
.library-heading h2 {
  font-size: 14px;
}
.library-heading #count {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  padding-left: 6px;
}
.icon {
  padding: 0;
  border: 0;
  font-size: 20px;
  color: var(--muted);
  background: transparent;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 10px;
  background: white;
  color: var(--muted);
}
input {
  font: inherit;
  min-width: 0;
}
input[type="search"] {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 12px;
  color: inherit;
  background: transparent;
}
.documents {
  margin-top: 18px;
}
.document {
  display: block;
  text-align: left;
  width: 100%;
  padding: 14px 12px;
  border: 1px solid transparent;
  background: transparent;
  margin-bottom: 6px;
  border-radius: 8px;
  white-space: normal;
}
.document.active {
  border-color: #c7dcca;
  background: #eff5ec;
}
.document-title {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.file-icon {
  font: 11px monospace;
  color: var(--green);
  background: #e8efe6;
  border: 1px solid #dce6d9;
  border-radius: 5px;
  padding: 6px 4px;
  flex-shrink: 0;
}
.document-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 0 36px;
}
.empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 36px 12px;
  line-height: 1.7;
}
.more {
  width: 100%;
  margin-top: 12px;
}
.detail {
  min-width: 0;
}
.welcome {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.welcome-mark {
  font: 24px monospace;
  color: #859a85;
  background: #f1f5ee;
  padding: 30px 22px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.welcome h2 {
  font-size: 23px;
  font-weight: 500;
}
.welcome p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.welcome .small {
  font-size: 11px;
  margin-top: 24px;
}
.detail-header {
  padding: 25px 26px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.detail-title {
  min-width: 0;
}
.detail-title h2 {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.detail-title .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.detail-title .small {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 26px 23px;
}
.toolbar button,
.toolbar a {
  font-size: 11px;
  padding: 7px 10px;
}
.toolbar .danger {
  margin-left: auto;
  color: #a84b42;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8faf6;
  border-block: 1px solid var(--border);
  padding: 13px 26px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.3px;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #59985f;
  margin-right: 6px;
}
iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  background: white;
}
.storage-note {
  font-size: 10px;
  color: var(--muted);
  padding: 12px 24px;
  margin: 0;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #96a093;
  margin: 22px 0 32px;
}
footer span:first-child {
  font-size: 9px;
  letter-spacing: 1.5px;
}
#message {
  padding: 12px 16px;
  border: 1px solid #cfdfce;
  background: #edf4e9;
  border-radius: 7px;
  margin-bottom: 16px;
  font-size: 13px;
}
#message.error {
  background: #fff1ee;
  border-color: #edc9c2;
  color: #9c443a;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  max-width: 430px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 80px #22332222;
}
dialog::backdrop {
  background: #15271c55;
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 22px;
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 16px 0;
  color: var(--muted);
}
dialog input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px;
  font-size: 14px;
  color: #222b27;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.delete-button {
  background: #a5463c;
  color: white;
  border: 0;
}
#delete-name {
  overflow-wrap: anywhere;
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #4e8f67;
  outline-offset: 3px;
}
@media (max-width: 850px) {
  main {
    padding: 0 20px;
  }
  header {
    padding: 0 20px;
  }
  .workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .toolbar .danger {
    margin-left: 0;
  }
  .detail-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .intro {
    padding-block: 30px;
  }
  .header-note {
    display: none;
  }
}
@media (max-width: 620px) {
  .intro {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
  h1 {
    font-size: 30px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .library {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .documents {
    max-height: 240px;
    overflow: auto;
  }
  .welcome {
    min-height: 300px;
  }
  .detail-header,
  .toolbar {
    padding-inline: 18px;
  }
  .preview-heading {
    padding-inline: 18px;
  }
  iframe {
    height: 470px;
  }
  footer {
    gap: 20px;
  }
}
