:root {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #eef2f5;
  color: #16202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
a {
  font: inherit;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.side {
  background: #101820;
  color: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: #9fb0c4;
  margin: 0 0 10px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.state {
  color: #ccd7e3;
}

.main {
  width: min(980px, calc(100vw - 320px));
  margin: 0 auto;
  padding: 48px 0;
}

.login {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
}

.login p,
.upload p,
.file p,
.title-row span,
.empty {
  color: #667789;
}

input[type="password"],
input[type="file"],
.file input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c8d3df;
  border-radius: 7px;
  padding: 9px 12px;
  background: #fff;
  color: #16202a;
}

button,
.secondary {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  background: #1769ff;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary {
  background: #e4ebf2;
  color: #233142;
}

.upload {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.upload form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 28px 0 10px;
}

.files {
  display: grid;
  gap: 8px;
}

.file {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #d5dee8;
}

.file strong {
  overflow-wrap: anywhere;
}

.file p {
  margin-top: 4px;
  font-size: 13px;
}

.ok {
  color: #067647;
}

.error {
  color: #b42318;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side {
    padding: 22px;
  }

  .main {
    width: calc(100vw - 32px);
    padding: 24px 0;
  }

  .upload form,
  .file,
  .title-row {
    grid-template-columns: 1fr;
  }
}
