/* Только то, чего нет в архивном news.css: шапка, цвета черновиков
   и отложенных новостей, форма правки. Цвета ленты не перекрашиваем. */

html, body { height: 100%; }
.sheet { width: 75%; margin: 0 auto; }
.logo-img { display: block; width: 740px; height: 121px; border: 0; }
.head-tools {
  position: absolute;
  left: 430px;
  right: 16px;
  top: 6px;
  z-index: 2;
  text-align: right;
  font-size: 11px;
}
.head-tools input { font-size: 11px; background: #fff; }
.guest-login { margin: 3px 0 2px; }
.when-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: #1f7a32;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  line-height: 16px;
  vertical-align: middle;
}
a.edit-news, .news-actions button {
  display: inline-block;
  margin: 6px 0 0 6px;
  padding: 2px 8px;
  background: #efe8cb;
  border: 1px solid #8c5d0b;
  color: #533809;
  font: bold 11px Verdana, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.news-actions form { display: inline; }
.made-at { margin-top: 6px; color: #6b5a3a; font-size: 11px; }
.wys-toolbar { margin: 8px 0 6px; }
.wys-toolbar button {
  margin: 0 4px 4px 0;
  padding: 3px 8px;
  background: #efe8cb;
  border: 1px solid #8c5d0b;
  color: #533809;
  font: bold 12px Verdana, sans-serif;
  cursor: pointer;
}
.wys-area {
  min-height: 280px;
  background: #fff;
  border: 1px solid #c9a36a;
  overflow: auto;
}
.wys-area:focus { outline: 1px solid #8c5d0b; }
.rights label { display: inline-block; margin: 0 10px 4px 0; }
table.tone-draft td.top_t1 { background-color: #d6e6f7; }
table.tone-soon td.top_t1 { background-color: #d8f3dc; }
.staff-box {
  background: #fff;
  border: 1px solid #c9a36a;
  padding: 12px;
  margin: 14px 0;
}
.staff-box h3 { margin: 0 0 8px; font-size: 13px; color: #533809; }
.editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.editor-head p { margin: 0 0 4px; }
.editor-head form { margin: 0; }
.editor-publish { flex: 0 0 auto; margin-left: auto; }
.editor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4.5em;
}
.editor-danger { display: flex; justify-content: flex-end; gap: 8px; margin-left: auto; }
.editor-danger form { margin: 0; }
.staff-box button.btn-delete {
  background: #9a0802;
  border-color: #6e0501;
  color: #fff;
}
.staff-box input[type="text"],
.staff-box input[type="password"],
.staff-box input[type="datetime-local"],
.staff-box select,
.staff-box textarea {
  font: 12px Verdana, sans-serif;
  border: 1px solid #c9a36a;
  padding: 4px;
  box-sizing: border-box;
}
.staff-box textarea,
.staff-box input[type="text"],
.staff-box input.wide { width: 100%; }
form[action="/user"] input[type="text"] { width: auto; }
.staff-box textarea { min-height: 90px; }
.staff-box button, .editor-actions button {
  background: #794728;
  color: #fff;
  border: 1px solid #533809;
  padding: 4px 12px;
  cursor: pointer;
  font: 12px Verdana, sans-serif;
}
.staff-note { color: #9a0802; font-weight: bold; }
.staff-ok { color: #1f7a32; font-weight: bold; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.html-src { min-height: 320px; font-family: Consolas, monospace; }
.preview-pane { min-height: 320px; background: #fff; border: 1px solid #c9a36a; overflow: auto; }
.journal-line { margin: 0 0 4px; }
.user-line { margin: 0 0 4px; }
.user-line form { display: inline; }
.top_t1 h2 { font-size: 16px; margin: 22px 0 10px; border-bottom: 1px dashed #d8cbb8; padding-bottom: 6px; }
.top_t1 hr { border: 0; border-top: 1px solid #e2d8c8; margin: 18px 0; }
.center { text-align: center; }
.items img { vertical-align: middle; margin: 2px 1px; }
.chars { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 14px 0; }
.chars img { width: 120px; height: 220px; object-fit: contain; background: #f5f2ec; border: 1px solid #e2d8c8; }
.badge {
  display: inline-block; padding: 0 6px; border-radius: 3px; color: #fff;
  font-weight: bold; font-size: 11px; line-height: 18px; vertical-align: middle;
}
.b-er { background: #e0af29; }
.b-u { background: #d26720; }
.b-l { background: #c20c0c; }
.b-r { background: #95486d; }
.b-vr { background: #b5ae0b; }
.note { color: #6b6b6b; font-size: 12px; }
table.dates { width: 100%; border-collapse: collapse; margin: 10px 0; }
table.dates td { padding: 6px 8px; border-bottom: 1px solid #e2d8c8; vertical-align: top; }
table.dates td:first-child { color: #9a5b00; white-space: nowrap; width: 1%; padding-right: 8px; }
.spoiler { margin: 10px 0; }
.spoiler > input { display: none; }
.spoiler > label {
  display: inline-block; cursor: pointer; color: #9a5b00;
  border-bottom: 1px dotted #9a5b00; user-select: none;
}
.spoiler .body { display: none; margin-top: 12px; padding: 12px 14px; background: #f5f2ec; }
.spoiler > input:checked ~ .body { display: block; }
.locations { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12px; }
.locations th, .locations td { border: 1px solid #e2d8c8; padding: 5px 8px; text-align: left; }
.locations th { background: #f5f2ec; color: #9a5b00; }
.empty { padding: 28px 10px; text-align: center; color: #6b6b6b; }

@media (max-width: 860px) {
  .head-tools { position: static; background: #533809; padding: 8px 10px 10px; }
  .sheet { width: auto; margin: 0 8px; }
  .logo-img { width: 100%; height: auto; }
  .mainrubric { padding: 10px 8px !important; }
  .top_t1 { padding: 10px !important; }
  .editor-grid { grid-template-columns: 1fr; }
}
