/* Информация */
.rl {
  --rl-card: #fff;
  --rl-tx: #1f2733;
  --rl-mut: #818c99;
  --rl-soft: #f2f3f5;
  --rl-line: #eceef1;
  --rl-acc: #2d81e0;
  margin: 8px;
  color: var(--rl-tx);
  font-size: 14px;
}
[data-theme="dark"] .rl { --rl-card: var(--fon_korob, #16181b); --rl-tx: #e9edf3; --rl-mut: #98a2b0; --rl-soft: #22262c; --rl-line: #262b32; --rl-acc: #6aa8f0; }
@media (max-width: 881px) { .rl { margin: 8px 0; } }
.rl *, .rl *::before, .rl *::after { box-sizing: border-box; }
.rl a { text-decoration: none; }
.rl h1 { margin: 0; font-size: 19px; line-height: 1.25; }

.rl-card { display: block; margin-bottom: 8px; padding: 14px; border-radius: 14px; background: var(--rl-card); box-shadow: 0 2px 6px rgba(44, 61, 120, .07); }
.rl-empty { padding: 22px 4px; color: var(--rl-mut); text-align: center; }

.rl-ico { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; }
.rl-ico.is-big { width: 52px; height: 52px; border-radius: 15px; }
.rl-ico.is-blue { background: rgba(45, 129, 224, .12); color: #2d81e0; }
.rl-ico.is-green { background: rgba(40, 167, 69, .12); color: #28a745; }
.rl-ico.is-yellow { background: rgba(245, 159, 0, .14); color: #e08e00; }
.rl-ico.is-purple { background: rgba(124, 77, 255, .12); color: #7c4dff; }
.rl-ico.is-slate { background: rgba(96, 115, 140, .13); color: #60738c; }
.rl-ico.is-orange { background: rgba(250, 112, 40, .13); color: #f06a1e; }
.rl-ico.is-teal { background: rgba(18, 168, 150, .13); color: #12a896; }
[data-theme="dark"] .rl-ico.is-slate { color: #9fb0c6; }

.rl-hero { display: flex; align-items: center; gap: 14px; }
.rl-hero p, .rl-doc-head p { margin: 4px 0 0; color: var(--rl-mut); font-size: 13px; line-height: 1.45; }

.rl-menu { padding: 4px 14px; }
.rl-row { display: flex; align-items: center; gap: 8px; }
.rl-row + .rl-row { border-top: 1px solid var(--rl-line); }
.rl-row-a { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; color: var(--rl-tx) !important; }
.rl-row.is-text { align-items: flex-start; gap: 12px; padding: 12px 0; }
.rl-row-t { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.rl-row-t b { font-size: 15px; line-height: 1.3; }
.rl-row-t small { margin-top: 2px; color: var(--rl-mut); font-size: 12.5px; line-height: 1.4; }
.rl-note { padding-top: 2px; line-height: 1.55; overflow-wrap: anywhere; }
.rl-next { display: flex; flex: 0 0 auto; color: var(--rl-mut); opacity: .7; transition: transform .15s; }
.rl-row-a:hover .rl-next { transform: translateX(2px); opacity: 1; }
.rl-row-a:hover b { color: var(--rl-acc); }

.rl-tools { display: flex; flex: 0 0 auto; gap: 4px; }
.rl-tool-f { margin: 0; }
.rl-tool { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: var(--rl-soft); color: var(--rl-tx) !important; cursor: pointer; }
.rl-tool:hover { background: rgba(45, 129, 224, .14); color: var(--rl-acc) !important; }
.rl-tool.is-red { color: #e5484d !important; }
.rl-tool.is-red:hover { background: rgba(229, 72, 77, .12); }
.rl-tool.is-off { opacity: .3; cursor: default; }

.rl-dev { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--rl-tx) !important; }
.rl-dev span { display: flex; flex-direction: column; }
.rl-dev small { margin-top: 2px; color: var(--rl-mut); font-size: 12px; }
.rl-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px; background: #cfd5dd; transition: background .2s; }
.rl-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.rl-switch.is-on { background: #28a745; }
.rl-switch.is-on::after { transform: translateX(18px); }
[data-theme="dark"] .rl-switch { background: #454c56; }
[data-theme="dark"] .rl-switch.is-on { background: #28a745; }

.rl-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.rl-add .rl-card { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 8px; padding: 12px 6px; font-size: 13px; white-space: nowrap; color: var(--rl-acc) !important; font-weight: 700; }

.rl-doc { padding: 18px; }
.rl-doc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--rl-line); }
.rl-toc { margin-top: 14px; border-radius: 12px; background: var(--rl-soft); }
.rl-toc summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-weight: 700; cursor: pointer; list-style: none; }
.rl-toc summary::-webkit-details-marker { display: none; }
.rl-toc summary small { margin-left: auto; color: var(--rl-mut); font-weight: 600; }
.rl-toc ol { margin: 0; padding: 0 14px 12px 34px; }
.rl-toc li { padding: 4px 0; line-height: 1.4; }
.rl-toc a { color: var(--rl-acc) !important; }

.rl-part { display: flex; align-items: flex-start; gap: 10px; padding: 16px 0 2px; }
.rl-part + .rl-part { margin-top: 12px; border-top: 1px solid var(--rl-line); }
.rl-part-body { flex: 1; min-width: 0; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.rl-part-body p { margin: 0 0 10px; }
.rl-part-body ul { margin: 0 0 12px; padding-left: 22px; }
.rl-part-body li { margin-bottom: 6px; }
.rl-part-body h2 { margin: 24px 0 8px; font-size: 17px; line-height: 1.35; scroll-margin-top: 70px; }
.rl-part-body > h2:first-child { margin-top: 0; }
.rl-part-body > :last-child { margin-bottom: 0; }
.rl-part-body img { max-width: 100%; height: auto; vertical-align: middle; }

.rl-form h1 { margin-bottom: 14px; }
.rl-field { display: block; margin-bottom: 12px; }
.rl-field > span { display: block; margin-bottom: 6px; font-weight: 700; }
.rl-field input, .rl-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rl-line); border-radius: 10px; outline: 0; background: var(--rl-soft); color: var(--rl-tx); font: inherit; }
.rl-field input:focus, .rl-field textarea:focus { border-color: var(--rl-acc); }
.rl-field textarea { height: auto; min-height: 120px; resize: vertical; line-height: 1.5; }
.rl-field textarea.is-big { min-height: 340px; }
.rl-field small { display: block; margin-top: 5px; color: var(--rl-mut); font-size: 12px; }
.rl-field small a { color: var(--rl-acc) !important; }
.rl-form-btns { display: flex; justify-content: flex-end; gap: 8px; }
.rl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 0; border-radius: 11px; background: var(--rl-acc); color: #fff !important; font: inherit; font-weight: 700; cursor: pointer; }
.rl-btn.is-gray { background: var(--rl-soft); color: var(--rl-tx) !important; }
.rl-err { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(229, 72, 77, .1); color: #e5484d; font-weight: 600; }

.rl-acc { padding: 0; overflow: hidden; }
.rl-acc summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.rl-acc summary::-webkit-details-marker { display: none; }
.rl-acc summary b { flex: 1; font-size: 15px; }
.rl-acc-arrow { display: flex; color: var(--rl-mut); transition: transform .2s; }
.rl-acc[open] .rl-acc-arrow { transform: rotate(180deg); }
.rl-bb { display: grid; gap: 6px; padding: 0 14px 14px; }
.rl-bb-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.6fr); align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; background: var(--rl-soft); color: var(--rl-tx); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.rl-bb-row:hover { border-color: rgba(45, 129, 224, .35); }
.rl-bb-row.is-copied { border-color: #28a745; }
.rl-bb-row code { overflow: hidden; color: var(--rl-mut); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.rl-bb-row.is-copied code::before { content: "✓ "; color: #28a745; }
.rl-bb-prev { min-width: 0; overflow: hidden; }
.rl-bb-quote { display: inline-block; padding: 3px 10px; border-left: 3px solid #cbd5e1; border-radius: 4px; background: var(--rl-card); }
.rl-bb-marquee { display: inline-block; white-space: nowrap; animation: rl-marq 6s linear infinite; }
@keyframes rl-marq { from { transform: translateX(60%); } to { transform: translateX(-60%); } }
.rl-bb-al { display: block; }
.rl-bb-al.is-l { text-align: left; }
.rl-bb-al.is-c { text-align: center; }
.rl-bb-al.is-r { text-align: right; }
.rl-bb-chip { padding: 2px 8px; border-radius: 999px; background: orange; color: #111; font-weight: 700; }
.rl-bb-white { padding: 1px 6px; border-radius: 6px; background: #3a414b; color: #fff; }
.rl-bb-link { color: var(--rl-acc); text-decoration: underline; }
.rl-c-orange { color: orange; }
.rl-c-red { color: red; }
.rl-c-gold { color: gold; }
.rl-c-green { color: green; }
.rl-c-blue { color: deepskyblue; }

@media (max-width: 480px) {
  .rl-doc { padding: 14px; }
  .rl-part-body { font-size: 14.5px; }
  .rl-bb-row { grid-template-columns: 1fr; gap: 4px; }
  .rl-tools { flex-wrap: wrap; justify-content: flex-end; max-width: 68px; }
}
