:root {
  color: #182230;
  background: #eef2f7;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 3rem 1rem 6rem;
  background: linear-gradient(145deg, #eef2f7, #f8fafc 55%, #e8eef7);
}

main {
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #e4e7ec;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 3rem #1018281a;
  overflow: hidden;
}

header {
  margin: -2rem -2rem 1.5rem;
  padding: 1.5rem 2rem;
  background: #172033;
  color: #fff;
}

header span {
  display: block;
  margin-bottom: .25rem;
  color: #98a9c5;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: #fff;
}

#status {
  min-height: 1.5rem;
  margin: .5rem 0 1.25rem;
  color: #667085;
  font-size: .9rem;
}

button {
  padding: .5rem .8rem;
  border: 1px solid #d0d5dd;
  border-radius: .55rem;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #f9fafb;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: default;
  opacity: .45;
}

button:disabled:active {
  transform: none;
}

button:focus-visible {
  outline: 3px solid #84adff;
  outline-offset: 2px;
}

#login {
  border-color: #175cd3;
  background: #175cd3;
  color: #fff;
}

#login:hover {
  background: #1849a9;
}

#documents {
  display: grid;
  gap: .6rem;
}

#documents:empty::after {
  content: "No documents yet";
  padding: 2.25rem 1rem;
  border: 1px dashed #cfd7e6;
  border-radius: .7rem;
  color: #7b879b;
  text-align: center;
}

.document {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .8rem .9rem;
  border: 1px solid #e4e7ec;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 .15rem .4rem #1018280a;
}

.document:hover {
  border-color: #b8c6dc;
}

.document button {
  border-color: #c7d7f5;
  background: #edf4ff;
  color: #175cd3;
}

.document button:hover {
  background: #dceaff;
}

.name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #101828;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#upload {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0 0 .2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #175cd3;
  color: #fff;
  box-shadow: 0 .6rem 1.25rem #175cd34d;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

#upload:hover {
  background: #1849a9;
}

#upload:disabled:hover {
  background: #175cd3;
}

@media (max-width: 36rem) {
  body {
    padding: .75rem .75rem 5rem;
  }

  main {
    padding: 1.25rem;
    border-radius: .85rem;
  }

  header {
    margin: -1.25rem -1.25rem 1.25rem;
    padding: 1.35rem 1.25rem;
  }
}
