body {
  font-family: system-ui, sans-serif;
  background: #f4f5f7;
  display: flex;
  justify-content: center;
  padding: 10vh 16px;
}
main {
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0001;
  width: 100%;
  max-width: 420px;
}
h1 {
  margin-top: 0;
  font-size: 1.3rem;
}
input,
select,
button {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin: 6px 0;
  font-size: 1rem;
}
button {
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
main.wide {
  max-width: 820px;
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}
.meta {
  color: #555;
  font-size: 0.9rem;
  word-break: break-all;
  margin: 2px 0;
}
h2 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bar h1 {
  margin: 0;
}
button.secondary,
.btn {
  width: auto;
  background: #2563eb;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}
button.secondary,
.btn.secondary {
  background: #6b7280;
}
.links a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.links a.card:hover {
  border-color: #2563eb;
}
.links .meta {
  display: block;
}
.log {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}
.actions {
  margin-top: 8px;
}
.actions button {
  width: auto;
  padding: 6px 10px;
  margin: 2px 4px 2px 0;
  font-size: 0.85rem;
}
.danger {
  background: #b91c1c;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.row input {
  flex: 1 1 180px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.check input {
  width: auto;
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
}
.picker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.picker select,
.row .picker input {
  width: auto;
  flex: 0 1 auto;
}
.row .picker input {
  width: 110px;
}
.editor {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}
.editor button {
  align-self: flex-end;
}
.row button {
  flex: 0 0 auto;
  width: auto;
}
progress {
  width: 100%;
  height: 14px;
  margin: 6px 0;
}
.preview {
  margin: 12px 0;
}
.preview img,
.preview video {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
}
.preview pre {
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f4f5f7;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.cut .row {
  margin: 6px 0;
}
.log video {
  display: block;
  max-width: 100%;
  max-height: 50vh;
  margin-bottom: 8px;
}
.err {
  color: #b91c1c;
}
.ok {
  word-break: break-all;
}
