:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #20242a;
  --muted: #69717d;
  --line: #d9dee7;
  --accent: #1167b1;
  --accent-soft: #e8f2fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.filters {
  display: flex;
  gap: 8px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

input,
select,
.button-link {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  padding: 0 10px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
}

input {
  width: 260px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 1520px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef1f5;
  font-weight: 700;
  white-space: nowrap;
}

td {
  line-height: 1.45;
}

tr:last-child td {
  border-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.status {
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.status-ok {
  background: #e8f7ef;
  color: #18784f;
}

.status-error {
  background: #fdecec;
  color: #b42318;
}

.status-warning {
  background: #fff1cc;
  color: #805600;
}

.admin-table {
  min-width: 1680px;
}

.admin-subheader {
  margin-top: 28px;
}

.artist-site-table {
  min-width: 1220px;
}

.thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef1f5;
}

.thumb-empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
}

.stages {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.stage {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fbfcfe;
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.stage-method {
  font-weight: 700;
}

.stage-status {
  flex: none;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
}

.stage-period,
.stage-more {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .page {
    padding: 16px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    flex-direction: column;
  }

  .tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  input,
  select {
    width: 100%;
  }
}
