/* Автоформа шапки эпизода (rift-episode-form.js). The form is the wanted entries' one (wanted.css: .rift-wanted-form and
   its rows, bank.css: its fields); here only the two templates to choose from, each drawn as it looks in a post, smaller. */
.rift-episode-variants{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:8px 0}
.rift-episode-variant{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--rift-chat-line);border-radius:5px;cursor:pointer}
.rift-episode-variant:has(input:checked){border-color:var(--rift-chat-accent);box-shadow:0 0 0 1px var(--rift-chat-accent)}
.rift-episode-sample{zoom:.55;max-height:620px;overflow:hidden;pointer-events:none}
.rift-episode-sample .firstPost{display:none}
/* «Создать эпизод» of a game forum (rift-theme.js): the forum's own button, where «Новая тема» stands (parity.css a.rift-new-topic). */
body[data-rift-view=rift] a.rift-new-episode{margin-left:auto;margin-right:28px}
/* Its FontAwesome pencil (parity.css, as «Новая тема») beside the text: over buttons.css's #container inline-block. */
body[data-rift-view=rift] #container a.rift-new-episode{display:inline-flex;gap:6px;align-items:center}
/* The topic's title, description and editor while the form fills them (owner 2026-11-13: nothing to see twice). */
tr.rift-episode-owned{display:none}
/* A field written wrong (rift-episode-form.js check()): the site's error colour (design-tokens.css), over bank.css's frame. */
.rift-wanted-form.rift-episode-form :is(input,textarea)[aria-invalid=true]{border-color:var(--rift-error);box-shadow:0 0 0 1px var(--rift-error)}
.rift-episode-wrong{color:var(--rift-error)}
.rift-episode-ready{display:flex;flex-direction:column;gap:6px;margin:12px 0 0}
.rift-episode-ready textarea{width:100%;resize:vertical}
.rift-episode-ready .button{align-self:flex-start}
