:root {
  font-family:"Malgun Gothic",system-ui,sans-serif;
  color:#10283f;
  background:#f4f7fa;
  line-height:1.55;
}

* {
  box-sizing:border-box;
}

[hidden] {
  display:none!important;
}

body {
  margin:0;
}

header,.brand,header nav,.heading,.actions {
  display:flex;
  align-items:center;
  gap:1rem;
}

header {
  background:#10283f;
  color:white;
  justify-content:space-between;
  padding:1rem clamp(1rem,5vw,5rem);
}

.brand b {
  font:800 1.65rem Arial,sans-serif;
  letter-spacing:-.075em;
}

.brand span {
  border-left:1px solid #8596a6;
  padding-left:1rem;
  font:600 .8rem Arial,sans-serif;
  letter-spacing:.1em;
}

header a,aside a {
  color:white;
  text-decoration:none;
}

a:hover {
  text-decoration:underline;
}

header nav {
  font-size:.9rem;
  flex-wrap:wrap;
}

main {
  max-width:86rem;
  margin:auto;
  padding:clamp(1rem,3vw,3rem);
}

.card {
  background:white;
  border:1px solid #d5dee6;
  border-radius:.55rem;
  padding:clamp(1rem,2vw,2rem);
}

.login {
  max-width:29rem;
  margin:7vh auto;
  border-top:5px solid #087f8c;
}

.login button {
  width:100%;
  margin-top:.75rem;
}

h1,h2,p {
  margin-top:0;
}

h1 {
  font-size:clamp(1.45rem,3vw,2rem);
  line-height:1.25;
}

h2 {
  font-size:1.18rem;
}

.heading {
  justify-content:space-between;
  flex-wrap:wrap;
}

.heading h2 {
  margin-bottom:0;
}

#workspace {
  display:grid;
  grid-template-columns:minmax(11rem,15rem) minmax(0,1fr);
  gap:1.4rem;
  align-items:start;
}

aside {
  background:#10283f;
  border-radius:.55rem;
  padding:1.35rem;
  color:white;
}

aside a {
  display:block;
  padding:.6rem 0;
  border-top:1px solid #506273;
}

aside select {
  width:100%;
}

.content {
  display:grid;
  gap:1rem;
  min-width:0;
}

label {
  display:grid;
  gap:.35rem;
  margin:.8rem 0;
  font-weight:600;
  font-size:.92rem;
}

input,select,textarea,button {
  font:inherit;
}

input,textarea,select {
  border:1px solid #94a5b5;
  background:white;
  color:#10283f;
  border-radius:.3rem;
  padding:.65rem;
  min-width:0;
  max-width:100%;
}

button {
  cursor:pointer;
  border:1px solid #8296a7;
  background:white;
  color:#174d77;
  border-radius:.35rem;
  padding:.48rem .78rem;
  font-weight:600;
}

.primary {
  background:#174d77;
  color:white;
  border-color:#174d77;
}

.secondary {
  background:#eef5f9;
}

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

.scroll {
  overflow:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  font-size:.94rem;
}

caption {
  text-align:left;
  font-size:.85rem;
  color:#4b657a;
}

td,th {
  border-bottom:1px solid #dce4eb;
  padding:.65rem .35rem;
  text-align:left;
}

th {
  color:#455e72;
  background:#f4f7fa;
}

small {
  display:block;
  color:#526b7f;
}

#state {
  color:#056673;
  font-weight:bold;
}

.actions {
  flex-wrap:wrap;
}

.line {
  display:flex;
  gap:.8rem;
  align-items:center;
  justify-content:space-between;
  margin:.5rem 0;
  border-bottom:1px solid #dce4eb;
  padding:.4rem 0;
}

.line label {
  margin:0;
}

.line input {
  width:6rem;
}

.line strong {
  flex:1;
}

.warn {
  color:#a23918;
}

#status {
  margin:0 0 1rem;
  border-left:4px solid #087f8c;
  padding:.75rem 1rem;
  background:white;
}

#status.error {
  border-color:#b94723;
  color:#8b351d;
}

#requests {
  padding-left:0;
  list-style:none;
}

#requests li {
  margin:.5rem 0;
}

#requests button {
  overflow-wrap:anywhere;
  max-width:100%;
}

#retry {
  margin:1rem 0;
}

@media(max-width:720px) {
  #workspace {
    grid-template-columns:minmax(0,1fr);
  }
  aside a {
    display:inline-block;
    padding:.3rem .5rem;
    border:0;
  }
  header {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  header nav {
    gap:.75rem;
  }
  .line {
    flex-wrap:wrap;
  }
  .login {
    margin:2rem auto;
  }
  table {
    font-size:.85rem;
  }
}
