:root {
  --bg: #f7f7f2;
  --panel: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #dfdfd8;
  --soft: #efefea;
  --danger: #8a1f1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px;
}

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

.brand-mark {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 7px;
}

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

h1 {
  margin-bottom: 0;
  font-size: 34px;
}

h2 {
  font-size: 20px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 20px;
}

.panel,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}

.compose {
  display: grid;
  gap: 16px;
  align-content: start;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #111111;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

button,
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.secondary {
  min-height: 36px;
  background: #ffffff;
  color: #111111;
  border-color: var(--line);
}

.hint,
.message,
.meta,
.log {
  color: var(--muted);
}

.panel-head,
.job-head,
.job-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jobs {
  display: grid;
  gap: 12px;
}

.job {
  border: 1px solid var(--line);
  background: #fbfbf8;
  padding: 15px;
}

.job h3 {
  margin: 0;
  font-size: 18px;
}

.status {
  display: inline-flex;
  min-width: 82px;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: #333333;
  font-size: 13px;
}

.status.done {
  background: #eef4ec;
}

.status.error,
.status.expired {
  color: var(--danger);
}

.meta {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.7;
}

.log {
  margin: 0 0 12px;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 13px;
}

.delete {
  color: var(--danger);
}

.login-body {
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(430px, calc(100vw - 36px));
}

.login-panel form {
  display: grid;
  gap: 16px;
}

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

  .topbar,
  .layout {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-head,
  .job-head,
  .job-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
