:root {
  font:
    16px/1.5 system-ui,
    sans-serif;
  color: #172d36;
  background: #f4f7f7;
  --accent: #116a68;
  --line: #d8e2e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1120px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.brand {
  text-decoration: none;
  font-size: 24px;
  font-weight: 750;
  color: #172d36;
}
.brand span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: #62747b;
}
nav,
.actions,
.heading,
.list-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
nav form {
  margin: 0;
}
.heading,
.list-heading {
  justify-content: space-between;
}
.heading {
  margin: 24px 0;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 8px 0;
}
h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.auth {
  max-width: 440px;
  margin: 56px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.auth form {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
label {
  display: grid;
  gap: 6px;
}
input {
  font: inherit;
  border: 1px solid #afc2c5;
  border-radius: 6px;
  padding: 11px;
  width: 100%;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: 600 14px/1.3 system-ui;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  border-color: var(--line);
  color: #24474c;
}
.quiet {
  background: transparent;
  color: var(--accent);
  padding: 6px;
}
.danger {
  background: #a43d3d;
}
.upload {
  background: #e7f1ef;
  border: 1px dashed #9fbdb7;
  border-radius: 10px;
  padding: 24px;
  margin: 24px 0;
}
.upload.drag {
  outline: 3px solid var(--accent);
}
.upload p {
  margin: 0 0 18px;
  color: #48625f;
}
.actions {
  flex-wrap: wrap;
}
.muted {
  color: #62747b;
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-top: 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
td,
th {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e8eeee;
}
th {
  font-size: 12px;
  color: #62747b;
  background: #fafcfc;
}
tr:last-child td {
  border: 0;
}
td:first-child {
  min-width: 220px;
  word-break: break-word;
}
.row-actions {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 8px;
  align-items: stretch;
}
.row-actions button {
  min-height: 36px;
  font-size: 12px;
  padding: 8px 12px;
  background: #fff;
  border-color: var(--line);
  color: #24474c;
}
.row-actions button:hover {
  background: #edf5f3;
  border-color: var(--accent);
}
.row-actions .row-delete {
  background: #fff8f7;
  border-color: #e6c5c2;
  color: #923b35;
}
.row-actions .row-delete:hover {
  background: #f9e6e5;
  border-color: #b65c55;
}
td:nth-child(2),
td:nth-child(3) {
  white-space: nowrap;
}
.error,
.success {
  padding: 12px 16px;
  border-radius: 6px;
  background: #f9e6e5;
  color: #8f2e2e;
}
.success {
  background: #e0f0e5;
  color: #285f3d;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 600px;
  width: calc(100% - 32px);
}
dialog h2,
dialog p,
dialog .version {
  min-width: 0;
  overflow-wrap: anywhere;
}
dialog::backdrop {
  background: #102e3a88;
}
dialog .actions {
  margin-top: 20px;
}
dialog label {
  margin-top: 18px;
}
progress {
  accent-color: var(--accent);
  width: 240px;
  margin-right: 12px;
}
#upload-progress {
  margin-top: 20px;
}
#breadcrumbs {
  flex-wrap: wrap;
}
footer {
  font-size: 12px;
  color: #62747b;
  margin-top: 40px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
.button:focus-within {
  outline: 3px solid #d29d39;
  outline-offset: 3px;
}
.version {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  header,
  main,
  footer {
    padding: 16px;
  }
  .brand {
    font-size: 21px;
  }
  header nav {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  header nav a {
    font-size: 12px;
  }
  .auth {
    padding: 24px;
    margin: 32px auto;
  }
  h1 {
    font-size: 30px;
  }
  .upload {
    padding: 18px;
  }
  .list-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  td,
  th {
    padding: 10px;
  }

}

.public-link {
  display: block;
  font-size: 12px;
  max-width: 42ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
