:root {
  --paper: #f6f5f0;
  --white: #fffefa;
  --ink: #222e28;
  --muted: #657068;
  --line: #d9dcd2;
  --green: #245943;
  --pale: #e9ede3;
  --danger: #a0382b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
label.button {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.upload-zone:focus-within {
  outline: 3px solid #a97922;
  outline-offset: 4px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font: normal clamp(36px, 5vw, 54px) / 1.12 var(--serif);
  letter-spacing: -1.6px;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  line-height: 1.4;
  margin-bottom: 8px;
}
p {
  color: var(--muted);
  margin-bottom: 20px;
}
small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.topbar {
  height: 100px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1.2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 31px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
}
.brand-note {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 600;
  margin-left: 20px;
  color: var(--muted);
}
#session {
  display: flex;
  align-items: center;
  gap: 20px;
}
#session-clock {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
main {
  max-width: 1120px;
  min-height: calc(100vh - 190px);
  margin: auto;
  padding: 56px 30px 60px;
}
.site-footer {
  max-width: 1060px;
  margin: auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.site-footer > span:first-child {
  font-weight: 700;
}
.eyebrow,
.section-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.eyebrow {
  margin-bottom: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.5;
}
.button:hover {
  text-decoration: none;
  filter: brightness(0.96);
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  background: var(--white);
  border-color: var(--line);
}
.quiet {
  background: transparent;
  color: var(--ink);
}
.quiet:hover {
  background: var(--pale);
}
.danger {
  color: var(--danger);
}
.danger-solid {
  background: var(--danger);
  color: white;
}
.text-link {
  text-decoration: underline;
  font-size: 13px;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-weight: normal;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 25px 0 20px;
}
.login-layout h1 {
  font-size: 66px;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}
.lede {
  font-size: 16px;
  line-height: 1.8;
}
.login-card {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.login-card h2 {
  font-size: 16px;
}
.login-card p {
  font-size: 13px;
}
.security-note {
  margin-top: 18px;
}
.illustration {
  background: var(--pale);
  border: 1px solid #d5ddce;
  padding: 28px;
  border-radius: 6px;
  transform: rotate(-2deg);
}
.sample-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.4px;
}
.sample-head span:last-child {
  font-size: 26px;
  line-height: 1;
}
.sample-title {
  font: normal 38px/1.1 var(--serif);
  letter-spacing: -1px;
  margin: 28px 0 32px;
}
.sample-file {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #ccd5c7;
  font-size: 13px;
}
.sample-file > span:last-child {
  margin-left: auto;
  color: var(--green);
}
.file-icon {
  flex-shrink: 0;
  width: 38px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--green);
}
.sample-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  padding-top: 32px;
  color: var(--muted);
}
.center {
  max-width: 570px;
  text-align: center;
  margin: 70px auto;
}
.code,
.login-card .code {
  font-family: monospace;
  font-size: 38px;
  letter-spacing: 9px;
  color: var(--green);
  margin: 22px 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 40px;
}
.page-heading p:last-child {
  margin-bottom: 0;
}
.page-heading h1 {
  margin-bottom: 12px;
}
.accent {
  color: var(--green);
}
.section-label {
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  display: flex;
  justify-content: space-between;
}
.drop-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 24px;
  gap: 20px;
  align-items: center;
  padding: 24px 5px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}
.drop-row:hover {
  background: #eeefe7;
  text-decoration: none;
}
.drop-marker {
  width: 48px;
  height: 48px;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font: 28px var(--serif);
  border-radius: 4px;
}
.drop-row h2 {
  margin-bottom: 3px;
}
.drop-row p {
  margin: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-stats {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.row-arrow {
  color: var(--green);
  font-size: 21px;
  text-align: right;
}
.empty {
  text-align: center;
  padding: 60px 20px;
}
.empty-symbol {
  font: 42px var(--serif);
  color: var(--green);
  margin-bottom: 20px;
}
.empty p {
  font-size: 14px;
}
.compact {
  padding: 36px 20px;
}
.footnote {
  font-size: 12px;
  margin-top: 26px;
  margin-bottom: 0;
}
.back {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
#detail .page-heading {
  margin-bottom: 26px;
}
#drop-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.drop-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.quota-track {
  height: 3px;
  background: var(--line);
  margin-bottom: 26px;
  overflow: hidden;
}
.quota-track > div {
  height: 100%;
  background: var(--green);
  width: 0;
}
.upload-zone {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px dashed #94a591;
  background: #eff1e9;
  border-radius: 5px;
  padding: 30px;
  margin: 0 0 34px;
  transition: background 0.15s;
}
.upload-zone.dragging {
  background: #dce8d6;
  outline: 2px solid var(--green);
}
.upload-zone h2 {
  font-size: 16px;
}
.upload-zone p {
  font-size: 12px;
  margin-bottom: 0;
}
.upload-zone > div:nth-child(2) {
  flex: 1;
}
.upload-arrow {
  font: 32px var(--serif);
  color: var(--green);
  margin-right: 10px;
}
#file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  bottom: 20px;
  right: 20px;
}
.mobile-hint {
  display: none;
  width: 100%;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-name {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--ink);
}
.file-info small {
  margin-top: 3px;
}
.file-actions {
  display: flex;
  gap: 3px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
}
.icon-button:hover {
  background: var(--pale);
  text-decoration: none;
}
.detail-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.progress-row {
  padding: 12px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.progress-row span:first-child {
  max-width: 50%;
  overflow-wrap: anywhere;
}
.progress-row progress {
  flex: 1;
  min-width: 80px;
  accent-color: var(--green);
  height: 6px;
}
.progress-row.error {
  color: var(--danger);
}
dialog {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: 30px;
  width: 460px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 18px 80px #222e281c;
}
dialog::backdrop {
  background: #18251dcc;
}
dialog h2 {
  font: 30px var(--serif);
  margin-bottom: 22px;
}
dialog label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 17px 0 7px;
}
dialog input,
dialog textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #b7bfb2;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
dialog textarea {
  resize: vertical;
}
dialog .small {
  margin-top: 18px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}
.dialog-heading .eyebrow {
  margin: 5px 0 18px;
}
.dialog-heading .icon-button {
  margin: -9px -10px 0 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#preview-dialog {
  width: 800px;
}
#preview-body img {
  max-width: 100%;
  max-height: 65vh;
  display: block;
  margin: auto;
}
#preview-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 60vh;
  overflow: auto;
  background: var(--paper);
  padding: 20px;
  font-size: 13px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  background: var(--ink);
  color: white;
  border-radius: 5px;
  padding: 14px 24px;
  font-size: 13px;
  box-shadow: 0 4px 20px #222e2820;
  z-index: 10;
}
.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  padding: 12px;
  background: var(--ink);
  color: white;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
@media (max-width: 850px) {
  .login-layout {
    gap: 35px;
  }
  .login-layout h1 {
    font-size: 56px;
  }
  .illustration {
    padding: 20px;
  }
  .sample-title {
    font-size: 32px;
  }
  .brand-note {
    display: none;
  }
  .site-footer {
    margin: 0 30px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .page-heading h1 {
    font-size: 40px;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: 78px;
    padding: 0 20px;
  }
  .brand {
    font-size: 25px;
  }
  main {
    padding: 34px 20px 45px;
  }
  .login-layout {
    display: block;
    padding-top: 10px;
  }
  .login-layout h1 {
    font-size: 54px;
  }
  .illustration {
    margin: 46px 0 20px;
    transform: none;
  }
  .brand-note {
    display: none;
  }
  #session {
    gap: 4px;
    align-items: flex-end;
    flex-direction: column;
  }
  #session-clock {
    font-size: 10px;
  }
  #signout {
    font-size: 11px;
    padding: 5px;
    min-height: 26px;
  }
  .page-heading {
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 32px;
  }
  .page-heading h1 {
    font-size: 38px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading > .button {
    min-height: 42px;
  }
  .drop-row {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 20px 0;
  }
  .drop-stats {
    display: none;
  }
  .drop-row h2 {
    font-size: 16px;
  }
  .drop-marker {
    width: 38px;
    height: 42px;
  }
  .actions {
    justify-content: flex-start;
    width: 100%;
  }
  .upload-zone {
    padding: 22px 18px;
  }
  .upload-zone .button {
    margin-left: 44px;
  }
  .upload-arrow {
    margin-right: 0;
  }
  .upload-zone > div:nth-child(2) {
    min-width: 180px;
  }
  .mobile-hint {
    display: block;
  }
  .file-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .file-actions {
    gap: 0;
  }
  .file-actions .button {
    padding: 6px 8px;
    min-height: 40px;
    font-size: 11px;
  }
  .file-icon {
    width: 32px;
    height: 40px;
    font-size: 8px;
  }
  .detail-footer {
    display: block;
  }
  .detail-footer .button {
    margin-top: 18px;
  }
  .site-footer {
    margin: 0 20px;
  }
  .center {
    margin: 36px auto;
  }
  .drop-meta {
    font-size: 10px;
  }
  .empty {
    padding: 40px 12px;
  }
  .footnote {
    font-size: 11px;
  }
  dialog {
    padding: 24px;
  }
  .file-info {
    min-width: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
