@font-face {
  font-family: "Uncut Sans";
  src: url("/static/fonts/uncut-sans-regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Uncut Sans";
  src: url("/static/fonts/uncut-sans-medium.woff2") format("woff2");
  font-weight: 600;
}

:root {
  --ink: #191714;
  --muted: #706b63;
  --line: #ddd8cf;
  --paper: #f8f6f1;
  --panel: #ffffff;
  --accent: #ff9e1b;
  --accent-dark: #1f1a13;
  --danger: #a13224;
  --success: #287454;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Uncut Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 28px;
}

.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0 0 20px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 600;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 32px;
  width: auto;
}

.icon-button,
.primary-button,
.small-button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  text-decoration: none;
}

.icon-button {
  background: transparent;
  height: 38px;
  width: 38px;
}

.primary-button {
  background: var(--accent-dark);
  color: #fff;
  font-weight: 600;
  padding: 0 18px;
}

.small-button {
  background: #fff;
  color: var(--ink);
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.small-button.danger {
  border-color: #d2b3ad;
  color: var(--danger);
}

.messages {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.message {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
}

.message.success {
  background: #e7f1eb;
  border-color: #bad9c8;
  color: var(--success);
}

.message.error {
  background: #faebe9;
  border-color: #e3b8b1;
  color: var(--danger);
}

.upload-band {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
  padding: 34px 0;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  font-size: 20px;
}

p {
  color: var(--muted);
  margin: 8px 0 0;
}

.upload-form,
.form-stack {
  display: grid;
  gap: 16px;
}

.upload-form {
  align-items: end;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto auto;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 13px;
}

input[type="file"],
input[type="text"],
input[type="password"] {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(255, 158, 27, 0.25);
}

.check {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 42px;
}

.check input {
  height: 18px;
  width: 18px;
}

.check span {
  color: var(--ink);
  font-size: 14px;
}

.login-panel {
  margin: 80px auto 0;
  max-width: 360px;
}

.login-panel h1 {
  margin-bottom: 22px;
}

.list-section {
  padding: 30px 0 0;
}

.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head span {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  background: var(--panel);
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 920px;
  overflow: hidden;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #efebe3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

code {
  background: #f2eee6;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 6px;
}

.muted {
  color: var(--muted);
}

.pill {
  background: #eee8dd;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  min-width: 60px;
  padding: 5px 9px;
}

.pill.live {
  background: #e7f1eb;
  color: var(--success);
}

.actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.actions form {
  margin: 0;
}

.empty {
  color: var(--muted);
  padding: 30px 14px;
  text-align: center;
}

@media (max-width: 880px) {
  .shell {
    padding: 18px;
  }

  .upload-band {
    grid-template-columns: 1fr;
  }

  .upload-form {
    grid-template-columns: 1fr;
  }
}
