:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #263e34;
  background: #f8f9f6;
  font-size: 14px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  height: 88px;
  border-bottom: 1px solid #dfe5d9;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
}
header > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #718173;
}
header button {
  margin-left: auto;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
.primary {
  cursor: pointer;
  border: 1px solid #d9e1d3;
  border-radius: 7px;
  padding: 9px 14px;
  background: white;
  color: #263e34;
  font-weight: 550;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover {
  background: #eef2e5;
}
.primary {
  background: #263e34;
  color: #f2f5e9;
  border-color: #263e34;
}
.primary:hover {
  background: #385440;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #96ac6c;
  outline-offset: 3px;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 24px;
}
h1 {
  font-size: 44px;
  letter-spacing: -1.7px;
  line-height: 1.15;
  margin: 8px 0 16px;
}
p {
  color: #788678;
  margin: 8px 0 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 650;
  color: #8b996c;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.heading h1 {
  font-size: 36px;
}
.drop-card {
  margin: 20px 0 30px;
  border: 1px dashed #aebd97;
  border-radius: 12px;
  background: #f0f3e8;
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.drop-card p {
  font-size: 12px;
  margin: 2px 0;
}
.drop-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e0e8ce;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid #dfe5d9;
  gap: 18px;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  padding: 14px 0;
  color: #7c897a;
  font-size: 12px;
}
nav a.active {
  border-bottom: 2px solid #718947;
  color: #263e34;
}
.search {
  font-size: 10px;
  color: #7c897a;
}
.search input {
  display: block;
  border: 0;
  background: transparent;
  padding: 8px 0;
  max-width: 220px;
  color: #263e34;
}
.search-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.search-bar input {
  width: 260px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9e1d3;
  background: white;
}
.pinned-section {
  margin-bottom: 28px;
}
.pinned-section h2 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe5d9;
  font-size: 18px;
}
.pinned-section .empty {
  padding: 24px 12px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  font-size: 12px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.pagination button:disabled {
  cursor: default;
}
input {
  border: 1px solid #d9e1d3;
  border-radius: 6px;
  padding: 9px;
  max-width: 100%;
}
.file-row {
  padding: 20px 0;
  border-bottom: 1px solid #e5e9e0;
  display: flex;
  gap: 16px;
  align-items: center;
}
.file-icon {
  border-radius: 9px;
  background: #eaf0df;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 650;
  color: #6e8155;
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-heading {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.pin-button {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 4px;
  margin-top: -3px;
  border-color: transparent;
  background: transparent;
  color: #718173;
}
.pin-button[aria-pressed="true"] {
  color: #263e34;
  background: #eaf0df;
}
.pin-button[aria-pressed="true"] svg {
  fill: currentColor;
}
.file-name {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}
.file-info small {
  color: #83917f;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions button,
.actions a {
  font-size: 11px;
  padding: 6px 9px;
}
.empty {
  text-align: center;
  padding: 70px 20px;
  color: #859080;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: #8b9585;
  font-size: 11px;
}
footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7c8d67;
}
#login {
  padding-top: 35px;
  max-width: 620px;
}
details {
  margin-top: 28px;
  color: #75816e;
  font-size: 12px;
}
details label {
  display: block;
  margin: 16px 0;
}
details input {
  display: block;
  margin-top: 5px;
}
#message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 14px 20px;
  background: #263e34;
  color: #f7faee;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 4px 20px #263e3420;
}
#drop-overlay {
  position: fixed;
  inset: 12px;
  border: 3px dashed #8ca15f;
  background: #e9efdaed;
  border-radius: 20px;
  z-index: 20;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 600;
  pointer-events: none;
}
progress {
  width: 100%;
  height: 5px;
  accent-color: #78904f;
}
.upload-progress {
  padding: 12px;
  background: white;
  border: 1px solid #dfe5d9;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.upload-progress span {
  display: block;
  font-size: 12px;
}
dialog {
  border: 1px solid #d8dfd1;
  border-radius: 14px;
  padding: 24px;
  width: min(980px, 95vw);
  max-height: 90vh;
  color: #263e34;
}
dialog::backdrop {
  background: #1a2c24a0;
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 20px;
}
.preview-header h2 {
  font-size: 16px;
  word-break: break-word;
  flex: 1;
}
.preview-header button {
  font-size: 24px;
  border: 0;
}
#preview-body {
  margin: 20px 0;
  overflow: auto;
  max-height: 65vh;
}
#preview-body img,
#preview-body video {
  max-width: 100%;
  max-height: 60vh;
  display: block;
  margin: auto;
}
#preview-body iframe {
  width: 100%;
  height: 60vh;
  border: 0;
}
#preview-body audio {
  width: 100%;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #f4f6f0;
  padding: 18px;
  color: #263e34;
}
@media (max-width: 640px) {
  header {
    height: 70px;
    padding: 0 20px;
    gap: 16px;
  }
  main {
    padding: 32px 20px;
  }
  .heading {
    display: block;
  }
  .heading h1 {
    font-size: 32px;
  }
  .heading .primary {
    margin: 6px 0 14px;
  }
  .file-row {
    flex-wrap: wrap;
  }
  .actions {
    margin-left: 62px;
  }
  .tools {
    gap: 10px;
  }
  .search input {
    max-width: 150px;
  }
  .drop-card {
    padding: 18px;
  }
  h1 {
    font-size: 36px;
  }
  footer {
    flex-wrap: wrap;
  }
  nav {
    gap: 20px;
  }
}

.preview-link {
  cursor: pointer;
  border: 1px solid #d9e1d3;
  border-radius: 7px;
  background: white;
  color: #263e34;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-link:hover {
  background: #eef2e5;
}
.back-link {
  display: inline-block;
  color: #385440;
  text-decoration: underline;
  margin-bottom: 20px;
}
.document-heading {
  align-items: flex-start;
  flex-wrap: wrap;
}
.document-heading h1 {
  font-size: 28px;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}
.document-heading .actions {
  margin: 0;
}
.markdown {
  margin-top: 28px;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.markdown p {
  color: inherit;
}
.markdown h1 {
  font-size: 32px;
  letter-spacing: -0.5px;
}
.markdown h2 {
  font-size: 24px;
}
.markdown h3 {
  font-size: 20px;
}
.markdown h1,
.markdown h2,
.markdown h3 {
  margin-top: 28px;
  line-height: 1.3;
}
.markdown a {
  color: #315f90;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.markdown blockquote {
  margin-inline: 0;
  border-inline-start: 3px solid #aebd97;
  padding-inline-start: 18px;
}
.markdown pre {
  white-space: pre;
  overflow: auto;
  max-width: 100%;
  font-size: 14px;
}
.markdown code {
  background: #edf1e6;
  padding: 2px 4px;
  border-radius: 3px;
}
.markdown pre code {
  padding: 0;
  background: none;
}
.markdown table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  max-width: 100%;
  margin-block: 20px;
}
.markdown th,
.markdown td {
  border: 1px solid #d9e1d3;
  padding: 8px 12px;
  text-align: start;
}
.markdown input[type="checkbox"] {
  margin-inline-end: 6px;
}
.html-document .html-frame {
  display: block;
  width: 100%;
  height: max(600px, calc(100dvh - 240px));
  border: 1px solid #d9e1d3;
  border-radius: 8px;
  background: white;
}
.media-document .media-preview {
  display: block;
  max-width: 100%;
  max-height: max(400px, calc(100dvh - 240px));
  margin: auto;
  border-radius: 8px;
}
.fullscreen-button {
  width: 40px;
  height: 40px;
  padding: 0;
  flex: none;
}
.preview-fullscreen-bar {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  border-bottom: 1px solid #dfe5d9;
}
.preview-fullscreen-bar button {
  height: 40px;
  padding: 4px 12px;
  border: 0;
  background: transparent;
}
body.preview-fullscreen {
  overflow: hidden;
}
.preview-expanded {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8f9f6;
}
.preview-expanded
  > :not(.preview-fullscreen-bar):not(#document-body):not(#preview-body) {
  display: none;
}
.preview-expanded #document-body,
.preview-expanded #preview-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow: auto;
}
.preview-expanded.html-document #document-body {
  padding: 0;
  overflow: hidden;
}
.preview-expanded .html-frame,
.preview-expanded #preview-body iframe {
  height: 100%;
  border: 0;
  border-radius: 0;
}
.preview-expanded #preview-body img,
.preview-expanded #preview-body video,
.preview-expanded .media-preview {
  max-height: calc(100dvh - 92px);
}
.preview-actions {
  margin-left: 0;
}
@media (max-width: 640px) {
  .document-heading h1 {
    font-size: 24px;
  }
  .document-heading .actions {
    margin: 12px 0;
  }
  .markdown h1 {
    font-size: 28px;
  }
}
