:root {
  color: #2b1b35;
  background: #faf6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, #eadcff 0, transparent 28rem),
    radial-gradient(circle at 95% 10%, #ffe0eb 0, transparent 25rem),
    #faf6fb;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: 1rem max(1.25rem, calc((100% - 68rem) / 2));
  color: #fff9fd;
  background: rgba(57, 26, 73, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}

header a {
  color: inherit;
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -.025em;
  text-decoration: none;
}

header span {
  color: #ebcfe5;
  font-size: .9rem;
}

main {
  flex: 1;
  width: min(100% - 2.5rem, 68rem);
  margin: 3.5rem auto 5rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, 68rem);
  margin: 0 auto;
  padding: 1.4rem 0 1.8rem;
  color: #856f87;
  border-top: 1px solid #eaddea;
  font-size: .78rem;
}

footer span:first-child {
  color: #603c61;
  font-weight: 730;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -.055em;
  line-height: 1.05;
}

h2 {
  margin: 2.5rem 0 .85rem;
  font-size: 1.05rem;
  letter-spacing: -.015em;
}

a { color: #943e83; }
a:hover { color: #6e245f; }

.card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #eaddea;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(92, 45, 91, .09);
}

.login {
  width: min(100%, 25rem);
  margin: 12vh auto;
  padding: 2rem;
}

.login h1 { margin-bottom: .6rem; }
.login > p:not(.error) { color: #746078; }

form {
  display: grid;
  gap: .9rem;
}

label {
  display: grid;
  gap: .42rem;
  color: #422b4c;
  font-size: .9rem;
  font-weight: 680;
}

input {
  width: 100%;
  padding: .72rem .8rem;
  color: inherit;
  background: #fff;
  border: 1px solid #d1bcd1;
  border-radius: .55rem;
  box-shadow: inset 0 1px 2px rgba(43, 27, 53, .04);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  border-color: #a24392;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(162, 67, 146, .17);
}

button {
  width: max-content;
  padding: .72rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, #a14391, #6c2c73);
  border: 0;
  border-radius: .55rem;
  box-shadow: 0 .35rem .8rem rgba(108, 44, 115, .24);
  cursor: pointer;
  font: inherit;
  font-weight: 680;
  transition: box-shadow .15s, transform .15s;
}

button:hover { box-shadow: 0 .5rem 1rem rgba(108, 44, 115, .32); transform: translateY(-1px); }
button:focus-visible { outline: 3px solid #e49cd6; outline-offset: 2px; }

.logout {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.logout button {
  padding: .55rem .75rem;
  background: #4c3156;
  box-shadow: 0 .3rem .8rem rgba(43, 27, 53, .2);
  font-size: .85rem;
}

.notice, .refreshing, .error {
  border-radius: .7rem;
}

.notice {
  margin-bottom: 1rem;
  padding: .82rem 1rem;
  color: #7c286b;
  background: #fde6f5;
  border: 1px solid #f2bddf;
}

.refreshing {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  color: #705d76;
  font-size: .9rem;
}

.refreshing::before {
  width: .55rem;
  height: .55rem;
  background: #b24791;
  border-radius: 999px;
  box-shadow: 0 0 0 .22rem rgba(178, 71, 145, .13);
  content: "";
}

.error {
  padding: .7rem .8rem;
  color: #9e2433;
  background: #fff0f1;
  border: 1px solid #fecdd3;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #eaddea;
  border-radius: .9rem;
  box-shadow: 0 .7rem 2.5rem rgba(92, 45, 91, .06);
}

table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
}

th, td {
  padding: .9rem 1rem;
  border-bottom: 1px solid #f0e6ef;
  text-align: left;
  vertical-align: top;
}

th {
  color: #806b81;
  background: #fdf9fd;
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .065em;
  text-transform: uppercase;
}

td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdf8fc; }

.status {
  display: inline-block;
  padding: .26rem .5rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 720;
  line-height: 1;
}

.queued { color: #725617; background: #fff4cc; }
.processing { color: #7a2e73; background: #f7ddf2; }
.completed { color: #12664d; background: #dbf5ea; }
.failed { color: #a22535; background: #ffe3e7; }

.url { max-width: 8rem; }
details { max-width: 24rem; margin-top: .5rem; color: #8f2734; white-space: pre-wrap; }
summary { cursor: pointer; font-size: .82rem; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
  color: #78657c;
  font-size: .9rem;
}

.pagination a { font-weight: 670; text-decoration: none; }
.pagination span:first-child, .pagination span:last-child { color: #ad9daf; }

@media (max-width: 42rem) {
  main { width: min(100% - 1.5rem, 68rem); margin-top: 2.2rem; }
  h1 { font-size: 2.1rem; }
  .card { padding: 1.1rem; }
  .login { margin-top: 7vh; }
  .logout { right: .75rem; bottom: .75rem; }
  footer { flex-direction: column; gap: .35rem; width: min(100% - 1.5rem, 68rem); }
}
