:root {
  color-scheme: light;
  --bg: #f5f6f7;
  --panel: #ffffff;
  --input: #fbfcfd;
  --ink: #111827;
  --muted: #5d6775;
  --line: #d7dce1;
  --accent: #2e5a73;
  --danger: #9f2f2f;
  --avoid: #b0413e;
  --prefer: #3a7d5b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 9px 12px;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.topbar-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 12px;
  text-decoration: none;
}
.topbar-link:hover { border-color: var(--accent); color: var(--accent); }

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

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

h1 {
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: 0;
}

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

.actions,
.tabs,
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.tab-home { color: var(--accent); font-weight: 600; margin-right: 6px; }

.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hub-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; padding: 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); cursor: pointer; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.hub-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08); transform: translateY(-1px); }
.hub-icon { font-size: 28px; line-height: 1; }
.hub-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.hub-hint { font-size: 13px; color: var(--muted); }
.hub-tabs { font-size: 12px; color: var(--muted); opacity: .8; margin-top: 4px; }

.status {
  min-height: 24px;
  color: var(--muted);
  margin-bottom: 14px;
  white-space: pre-line;
}

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

.editor {
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.panel h2,
.panel h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: 0;
}

.panel h2::before,
.panel h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.panel > .hint {
  margin: -10px 0 14px;
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input);
  color: var(--ink);
  padding: 9px 10px;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.item {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.item:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

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

.inline input[type="checkbox"] {
  width: auto;
}

.checkbox-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border: 0;
  margin: 0;
  padding: 0;
}

.checkbox-group legend {
  width: 100%;
  margin-bottom: 6px;
  color: var(--muted);
}

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

  .topbar {
    display: grid;
  }
}

/* Профиль бренда */
.stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

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

.hint {
  color: var(--muted);
  font-size: 12.5px;
  margin: -2px 0 1px;
  opacity: 0.85;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent) 11%, var(--input));
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 8px 7px 13px;
  font-size: 13.5px;
}

.chip-remove {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.chip-remove:hover {
  color: var(--ink);
}

.tag-input {
  max-width: 380px;
}

.list-rows {
  display: grid;
  gap: 8px;
}

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

.list-row input {
  flex: 1;
}

.remove-row {
  color: var(--muted);
  padding: 0 12px;
  height: 40px;
  font-size: 16px;
  line-height: 1;
}

.remove-row:hover {
  color: var(--ink);
}

.list-add {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  justify-self: start;
}

.list-add:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* Типы контента (карточки + тумблер) */
.ct-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ct-count {
  color: var(--muted);
  font-size: 13px;
}

.ct-add {
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 9px 14px;
}

.ct-add:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ct-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
  transition: opacity 0.15s;
}

.ct-card.off {
  opacity: 0.5;
}

.ct-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-name {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 2px 0;
}

.ct-name:focus {
  outline: none;
  box-shadow: inset 0 -1px 0 var(--accent);
}

.ct-desc {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  resize: none;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  line-height: 1.45;
}

.ct-desc:focus {
  outline: none;
}

.ct-del {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
}

.ct-del:hover {
  color: var(--accent);
}

/* Тумблер */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 23px;
  flex: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}

.switch .track::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}

.switch input:checked + .track {
  background: var(--accent);
}

.switch input:checked + .track::before {
  transform: translateX(17px);
}

@media (max-width: 720px) {
  .ct-grid {
    grid-template-columns: 1fr;
  }
}

/* Механики: применимость и правило избегания */
.applic {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.applic-label {
  color: var(--muted);
  font-size: 12.5px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  color: var(--muted);
  background: var(--input);
  cursor: pointer;
}

.pill.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, var(--input));
  color: var(--ink);
}

.avoid-block {
  border-left: 2px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  padding-left: 11px;
}

.avoid-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.avoid-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  line-height: 1.45;
  min-height: 0;
  resize: none;
  overflow: hidden;
  display: block;
}

.avoid-input:focus {
  outline: none;
}

/* Тон и проверка */
.tone-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.col-h {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.col-h::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--line);
}

.col-h.avoid::before { background: var(--avoid); }
.col-h.prefer::before { background: var(--prefer); }

.li-list {
  display: grid;
  gap: 7px;
}

.li {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.li .mark {
  flex: none;
  width: 16px;
  text-align: center;
  font-size: 13px;
}

.li-avoid .mark { color: var(--avoid); }
.li-prefer .mark { color: var(--prefer); }

.li-text {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
}

.li-text:focus { outline: none; }

.check-list {
  display: grid;
  gap: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  transition: opacity 0.15s;
}

.check.off { opacity: 0.5; }

.check-q {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
}

.check-q:focus { outline: none; }

.del {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 0 2px;
  flex: none;
}

.del:hover { color: var(--accent); }

@media (max-width: 720px) {
  .tone-cols { grid-template-columns: 1fr; }
}

/* Формат вывода */
.of-list {
  display: grid;
  gap: 7px;
}

.of-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.of-row.dragging {
  opacity: 0.45;
}

.of-row.drag-over {
  border-color: var(--accent);
  box-shadow: inset 0 2px 0 var(--accent);
}

.of-handle {
  flex: none;
  cursor: grab;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.of-handle:active {
  cursor: grabbing;
}

.of-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--input));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.of-name {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
}

.of-name:focus {
  outline: none;
}

.of-mech-list {
  display: grid;
  gap: 7px;
}

.of-mech-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--input);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}

.of-mech-name {
  color: var(--ink);
  font-weight: 600;
}

.of-mech-field {
  color: var(--ink);
}

.of-mech-empty {
  color: var(--muted);
  font-style: italic;
}

/* Примеры: карточка (поля вывода + пост Threads) */
.ex-cards { display: grid; gap: 14px; }
.ex-add-bottom { width: 100%; justify-content: center; margin-top: 14px; }
.ex-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 18px 18px; }
.ex-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ex-num { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, var(--input)); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.ex-card-ttl { flex: 1; color: var(--muted); font-size: 13px; }
.ex-two { display: grid; grid-template-columns: 1fr 1.05fr; gap: 18px; align-items: start; }
.ex-col-h { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.ex-col-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ex-two .hint { margin: 0 0 12px; }

.ef-list { display: grid; gap: 8px; }
.ef { position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--input); padding: 7px 30px 7px 10px; display: grid; gap: 3px; }
.ef-label { color: var(--muted); font-size: 11.5px; }
.ef input, .ef textarea { border: 0; background: transparent; color: var(--ink); padding: 0; width: 100%; font: inherit; resize: none; overflow: hidden; min-height: 0; line-height: 1.45; }
.ef input:focus, .ef textarea:focus { outline: none; }
.ef-del { position: absolute; top: 5px; right: 6px; font-size: 15px; }
.ef-add-select { margin-top: 10px; border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
.ef-control { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 0; cursor: pointer; }
.ef-control:focus { outline: none; }
.ef-mech-block { margin-top: 12px; }
.ef-mech-heading { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.ef-mech-heading::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.po-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.po-row { display: flex; align-items: flex-start; gap: 8px; }
.po-num { color: var(--muted); font-size: 12px; min-width: 16px; flex: none; padding-top: 5px; }
.po-row .po-del { padding-top: 3px; }
.ef .po-input { flex: 1; border-bottom: 1px solid var(--line); border-radius: 0; padding: 2px 0; resize: none; overflow: hidden; min-height: 0; line-height: 1.45; }
.ef .po-input:focus { border-bottom-color: var(--accent); }
.po-del { font-size: 15px; }
.po-add { margin-top: 10px; border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
.po-add:hover { border-color: var(--accent); color: var(--accent); }

.post { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, #fff), color-mix(in srgb, var(--accent) 75%, #000 6%)); flex: none; }
.post-brand { font-weight: 700; font-size: 14px; }
.post-handle { color: var(--muted); font-size: 12.5px; }
.post-text { width: 100%; border: 0; background: transparent; color: var(--ink); padding: 0; font: inherit; line-height: 1.5; resize: none; overflow: hidden; min-height: 24px; }
.post-text:focus { outline: none; }
.post-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ph { width: 96px; flex: none; }
.ph-box { position: relative; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--input); display: flex; align-items: center; justify-content: center; }
.ph-box img, .ph-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-upload { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: pointer; }
.ph-upload input { display: none; }
.ph-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(17, 24, 39, 0.55); color: #fff; border: 0; cursor: pointer; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.ph-cap-display { margin-top: 5px; width: 96px; color: var(--muted); font-size: 11.5px; text-align: center; line-height: 1.35; word-break: break-word; min-height: 14px; }
.ph-add { width: 96px; height: 120px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 24px; flex: none; }
.ph-add:hover { border-color: var(--accent); color: var(--accent); }
.post-engage { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Родительский пост в примере комментария (на который отвечаем) */
.parent-post { background: var(--input); margin-bottom: 12px; }
.post-avatar.parent-avatar { background: linear-gradient(135deg, #c7ced6, #9aa6b2); }
.pp-note { width: 100%; border: 0; border-top: 1px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; padding: 8px 0 0; margin-top: 8px; resize: none; overflow: hidden; min-height: 0; line-height: 1.45; }
.pp-note:focus { outline: none; }
.pp-shot { margin-top: 10px; }

/* Генератор (страница для сотрудника) */
.gen-field-label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 6px; }
.gen-textarea { width: 100%; min-height: 90px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--ink); font: inherit; padding: 10px; resize: vertical; }
.gen-textarea:focus { outline: none; border-color: var(--accent); }
.gen-select { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: var(--input); padding: 8px 10px; }
.gen-shot .gen-upload { display: inline-flex; align-items: center; justify-content: center; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; }
.gen-shot .gen-upload:hover { border-color: var(--accent); color: var(--accent); }
.gen-shot .gen-upload input { display: none; }
.gen-shot-img { max-width: 320px; max-height: 240px; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: 8px; }
/* Несколько скриншотов: ряд миниатюр + кнопка добавления */
.gen-shots { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.gen-shots .gen-shot { display: flex; flex-direction: column; align-items: flex-start; }
.gen-shots .gen-shot-img { max-width: 200px; max-height: 150px; }
.gen-shots .gen-upload { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; }
.gen-shots .gen-upload:hover { border-color: var(--accent); color: var(--accent); }
.gen-shots .gen-upload input { display: none; }
.gen-go { margin-top: 16px; }
.gen-result { white-space: pre-wrap; line-height: 1.55; font-size: 14px; min-height: 80px; }
.gen-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
.gen-param { display: flex; flex-direction: column; }
.gen-param-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.gen-param-head .gen-field-label { margin: 0; }
.gen-help-btn { width: 17px; height: 17px; line-height: 1; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 11px; cursor: pointer; flex: none; }
.gen-help-btn:hover, .gen-help-btn.on { border-color: var(--accent); color: var(--accent); }
.gen-help { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted); background: var(--input); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.gen-disabled-note { margin-top: 6px; font-size: 11.5px; line-height: 1.4; color: var(--avoid); }
.gen-param .gen-select, .gen-param .gen-textarea { width: 100%; box-sizing: border-box; }
.gen-param .gen-select:disabled { opacity: 0.5; cursor: not-allowed; background: var(--bg); }
.gen-advanced { margin-top: 14px; }
.gen-advanced > summary { cursor: pointer; color: var(--accent); font-size: 13px; margin-bottom: 10px; }

#paramsPanel { position: relative; }
.gen-info { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--input); padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.gen-info-title { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.gen-info-warn { margin-top: 10px; color: var(--avoid); font-size: 12.5px; }
/* На широких экранах описание — карточка в правом жёлобе, прижата к краю блока и на уровне панели
   «Параметры модели»: absolute относительно #paramsPanel → скроллится вместе с панелью. */
@media (min-width: 1900px) {
  .gen-info { position: absolute; top: 0; left: 100%; margin: 0 0 0 16px; width: 300px; max-height: 78vh; overflow: auto; box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08); }
}
.gen-param.active .gen-field-label { color: var(--accent); }
.gen-param.active .gen-help-btn { border-color: var(--accent); color: var(--accent); }

@media (max-width: 820px) {
  .ex-two { grid-template-columns: 1fr; }
}

/* Страница входа */
.login-shell { display: flex; justify-content: center; }
.login-card { max-width: 360px; width: 100%; margin: 12vh 0; display: flex; flex-direction: column; gap: 12px; }
.login-card input[type="password"] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); font: inherit; }
/* Кнопка «Выйти» в топбаре */
.logout-form { display: inline; margin: 0; }
.logout-form button { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; padding: 6px 8px; }
.logout-form button:hover { color: var(--ink); text-decoration: underline; }
